public Client(Credentials credentials, IEnvironment env = null) { if (credentials == null) { throw new ArgumentNullException(nameof(credentials)); } environment = env ?? Environments.Production; requester = new Requester(credentials, environment, null, this.apiVersion); Account = new AccountResource(requester); Balance = new BalanceResource(requester); Charges = new ChargeResource(requester); Customers = new CustomerResource(requester); Disputes = new DisputeResource(requester); Events = new EventResource(requester); Forex = new ForexResource(requester); Links = new LinkResource(requester); Occurrences = new OccurrenceResource(requester); Sources = new PaymentSourceResource(requester); Receipts = new ReceiptResource(requester); Recipients = new RecipientResource(requester); Refunds = new RefundResource(requester); Schedules = new ScheduleResource(requester); Tokens = new TokenResource(requester); Transactions = new TransactionResource(requester); Transfers = new TransferResource(requester); }
public Client(Credentials credentials) { if (credentials == null) throw new ArgumentNullException("credentials"); requester = new Requester(credentials); Account = new AccountResource(requester); Balance = new BalanceResource(requester); Cards = new CardResourceShim(requester); Charges = new ChargeResource(requester); Customers = new CustomerResource(requester); Disputes = new DisputeResource(requester); Events = new EventResource(requester); Recipients = new RecipientResource(requester); Refunds = new RefundResourceShim(requester); Tokens = new TokenResource(requester); Transactions = new TransactionResource(requester); Transfers = new TransferResource(requester); }
public Client(Credentials credentials) { if (credentials == null) { throw new ArgumentNullException(nameof(credentials)); } requester = new Requester(credentials); Account = new AccountResource(requester); Balance = new BalanceResource(requester); Cards = new CardResourceShim(requester); Charges = new ChargeResource(requester); Customers = new CustomerResource(requester); Disputes = new DisputeResource(requester); Events = new EventResource(requester); Links = new LinkResource(requester); Recipients = new RecipientResource(requester); Refunds = new RefundResourceShim(requester); Tokens = new TokenResource(requester); Transactions = new TransactionResource(requester); Transfers = new TransferResource(requester); }