public TransactionClient( IAuthorizeNetClient <CreateTransactionRequest, CreateTransactionResponse> create, IAuthorizeNetClient <GetTransactionDetailsRequest, GetTransactionDetailsResponse> get, IAuthorizeNetClient <GetSettledBatchListRequest, GetSettledBatchListResponse> getBatchList, IAuthorizeNetClient <GetTransactionListRequest, GetTransactionListResponse> getList, IAuthorizeNetClient <GetUnsettledTransactionListRequest, GetUnsettledTransactionListResponse> getUnsettledList) { _create = create ?? throw new ArgumentNullException(nameof(create)); _get = get ?? throw new ArgumentNullException(nameof(get)); _getBatchList = getBatchList ?? throw new ArgumentNullException(nameof(getBatchList)); _getList = getList ?? throw new ArgumentNullException(nameof(getList)); _getUnsettledList = getUnsettledList ?? throw new ArgumentNullException(nameof(getUnsettledList)); }
public CustomerProfileClient( IAuthorizeNetClient <CreateCustomerProfileRequest, CreateCustomerProfileResponse> create, IAuthorizeNetClient <GetCustomerProfileRequest, GetCustomerProfileResponse> get, IAuthorizeNetClient <GetCustomerProfileIdsRequest, GetCustomerProfileIdsResponse> getAll, IAuthorizeNetClient <DeleteCustomerProfileRequest, DeleteCustomerProfileResponse> delete, IAuthorizeNetClient <UpdateCustomerProfileRequest, UpdateCustomerProfileResponse> update, IAuthorizeNetClient <CreateCustomerProfileFromTransactionRequest, CreateCustomerProfileResponse> createFromTrans) { _create = create ?? throw new ArgumentNullException(nameof(create)); _get = get ?? throw new ArgumentNullException(nameof(get)); _getAll = getAll ?? throw new ArgumentNullException(nameof(getAll)); _delete = delete ?? throw new ArgumentNullException(nameof(delete)); _update = update ?? throw new ArgumentNullException(nameof(update)); _createFromTrans = createFromTrans ?? throw new ArgumentNullException(nameof(createFromTrans)); }
public CustomerPaymentProfileClient( IAuthorizeNetClient <CreateCustomerPaymentProfileRequest, CreateCustomerPaymentProfileResponse> create, IAuthorizeNetClient <GetCustomerPaymentProfileRequest, GetCustomerPaymentProfileResponse> get, IAuthorizeNetClient <GetCustomerPaymentProfileListRequest, GetCustomerPaymentProfileListResponse> getList, IAuthorizeNetClient <UpdateCustomerPaymentProfileRequest, UpdateCustomerPaymentProfileResponse> update, IAuthorizeNetClient <DeleteCustomerPaymentProfileRequest, DeleteCustomerPaymentProfileResponse> delete, IAuthorizeNetClient <ValidateCustomerPaymentProfileRequest, ValidateCustomerPaymentProfileResponse> validate) { _create = create; _get = get; _getList = getList; _update = update; _delete = delete; _validate = validate; }