public OpenpayAPI(string api_key, string merchant_id, bool production = false) { this.httpClient = new OpenpayHttpClient(api_key, merchant_id, production); CustomerService = new CustomerService(this.httpClient); CardService = new CardService(this.httpClient); BankAccountService = new BankAccountService(this.httpClient); ChargeService = new ChargeService(this.httpClient); PayoutService = new PayoutService(this.httpClient); TransferService = new TransferService(this.httpClient); FeeService = new FeeService(this.httpClient); PlanService = new PlanService(this.httpClient); SubscriptionService = new SubscriptionService(this.httpClient); OpenpayFeesService = new OpenpayFeesService(this.httpClient); WebhooksService = new WebhookService(this.httpClient); }
internal MerchantService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = ""; }
internal ChargeService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "charges"; }
internal CardService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "cards"; }
internal CustomerService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "customers"; }
internal PayoutReportService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { }
internal WebhookService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "webhooks"; }
internal OpenpayFeesService(OpenpayHttpClient opHttpClient) { this.httpClient = opHttpClient; }
internal SubscriptionService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "subscriptions"; }
internal BankAccountService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "bankaccounts"; }
internal FeeService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "fees"; }
internal OpenpayGenericService(OpenpayHttpClient opHttpClient) { this.httpClient = opHttpClient; }
internal PlanService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "plans"; }
internal TransferService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "transfers"; }
public OpenpayResourceService(string api_key, string merchant_id, bool production = false) { this.httpClient = new OpenpayHttpClient(api_key, merchant_id, production); }
internal OpenpayResourceService(OpenpayHttpClient opHttpClient) { this.httpClient = opHttpClient; }
internal PayoutService(OpenpayHttpClient opHttpClient) : base(opHttpClient) { ResourceName = "payouts"; }