github.com/stripe/stripe-go/v76@v76.25.0/client/api.go (about) 1 // 2 // 3 // File generated from our OpenAPI spec 4 // 5 // 6 7 // Package client provides a Stripe client for invoking APIs across all resources 8 package client 9 10 import ( 11 stripe "github.com/stripe/stripe-go/v76" 12 "github.com/stripe/stripe-go/v76/account" 13 "github.com/stripe/stripe-go/v76/accountlink" 14 "github.com/stripe/stripe-go/v76/accountsession" 15 "github.com/stripe/stripe-go/v76/applepaydomain" 16 "github.com/stripe/stripe-go/v76/applicationfee" 17 appssecret "github.com/stripe/stripe-go/v76/apps/secret" 18 "github.com/stripe/stripe-go/v76/balance" 19 "github.com/stripe/stripe-go/v76/balancetransaction" 20 "github.com/stripe/stripe-go/v76/bankaccount" 21 billingmeter "github.com/stripe/stripe-go/v76/billing/meter" 22 billingmeterevent "github.com/stripe/stripe-go/v76/billing/meterevent" 23 billingmetereventadjustment "github.com/stripe/stripe-go/v76/billing/metereventadjustment" 24 billingmetereventsummary "github.com/stripe/stripe-go/v76/billing/metereventsummary" 25 billingportalconfiguration "github.com/stripe/stripe-go/v76/billingportal/configuration" 26 billingportalsession "github.com/stripe/stripe-go/v76/billingportal/session" 27 "github.com/stripe/stripe-go/v76/capability" 28 "github.com/stripe/stripe-go/v76/card" 29 "github.com/stripe/stripe-go/v76/cashbalance" 30 "github.com/stripe/stripe-go/v76/charge" 31 checkoutsession "github.com/stripe/stripe-go/v76/checkout/session" 32 climateorder "github.com/stripe/stripe-go/v76/climate/order" 33 climateproduct "github.com/stripe/stripe-go/v76/climate/product" 34 climatesupplier "github.com/stripe/stripe-go/v76/climate/supplier" 35 "github.com/stripe/stripe-go/v76/confirmationtoken" 36 "github.com/stripe/stripe-go/v76/countryspec" 37 "github.com/stripe/stripe-go/v76/coupon" 38 "github.com/stripe/stripe-go/v76/creditnote" 39 "github.com/stripe/stripe-go/v76/customer" 40 "github.com/stripe/stripe-go/v76/customerbalancetransaction" 41 "github.com/stripe/stripe-go/v76/customercashbalancetransaction" 42 "github.com/stripe/stripe-go/v76/customersession" 43 "github.com/stripe/stripe-go/v76/dispute" 44 entitlementsactiveentitlement "github.com/stripe/stripe-go/v76/entitlements/activeentitlement" 45 entitlementsfeature "github.com/stripe/stripe-go/v76/entitlements/feature" 46 "github.com/stripe/stripe-go/v76/ephemeralkey" 47 "github.com/stripe/stripe-go/v76/event" 48 "github.com/stripe/stripe-go/v76/feerefund" 49 "github.com/stripe/stripe-go/v76/file" 50 "github.com/stripe/stripe-go/v76/filelink" 51 financialconnectionsaccount "github.com/stripe/stripe-go/v76/financialconnections/account" 52 financialconnectionssession "github.com/stripe/stripe-go/v76/financialconnections/session" 53 financialconnectionstransaction "github.com/stripe/stripe-go/v76/financialconnections/transaction" 54 forwardingrequest "github.com/stripe/stripe-go/v76/forwarding/request" 55 identityverificationreport "github.com/stripe/stripe-go/v76/identity/verificationreport" 56 identityverificationsession "github.com/stripe/stripe-go/v76/identity/verificationsession" 57 "github.com/stripe/stripe-go/v76/invoice" 58 "github.com/stripe/stripe-go/v76/invoiceitem" 59 "github.com/stripe/stripe-go/v76/invoicelineitem" 60 issuingauthorization "github.com/stripe/stripe-go/v76/issuing/authorization" 61 issuingcard "github.com/stripe/stripe-go/v76/issuing/card" 62 issuingcardholder "github.com/stripe/stripe-go/v76/issuing/cardholder" 63 issuingdispute "github.com/stripe/stripe-go/v76/issuing/dispute" 64 issuingpersonalizationdesign "github.com/stripe/stripe-go/v76/issuing/personalizationdesign" 65 issuingphysicalbundle "github.com/stripe/stripe-go/v76/issuing/physicalbundle" 66 issuingtoken "github.com/stripe/stripe-go/v76/issuing/token" 67 issuingtransaction "github.com/stripe/stripe-go/v76/issuing/transaction" 68 "github.com/stripe/stripe-go/v76/loginlink" 69 "github.com/stripe/stripe-go/v76/mandate" 70 "github.com/stripe/stripe-go/v76/oauth" 71 "github.com/stripe/stripe-go/v76/paymentintent" 72 "github.com/stripe/stripe-go/v76/paymentlink" 73 "github.com/stripe/stripe-go/v76/paymentmethod" 74 "github.com/stripe/stripe-go/v76/paymentmethodconfiguration" 75 "github.com/stripe/stripe-go/v76/paymentmethoddomain" 76 "github.com/stripe/stripe-go/v76/paymentsource" 77 "github.com/stripe/stripe-go/v76/payout" 78 "github.com/stripe/stripe-go/v76/person" 79 "github.com/stripe/stripe-go/v76/plan" 80 "github.com/stripe/stripe-go/v76/price" 81 "github.com/stripe/stripe-go/v76/product" 82 "github.com/stripe/stripe-go/v76/promotioncode" 83 "github.com/stripe/stripe-go/v76/quote" 84 radarearlyfraudwarning "github.com/stripe/stripe-go/v76/radar/earlyfraudwarning" 85 radarvaluelist "github.com/stripe/stripe-go/v76/radar/valuelist" 86 radarvaluelistitem "github.com/stripe/stripe-go/v76/radar/valuelistitem" 87 "github.com/stripe/stripe-go/v76/refund" 88 reportingreportrun "github.com/stripe/stripe-go/v76/reporting/reportrun" 89 reportingreporttype "github.com/stripe/stripe-go/v76/reporting/reporttype" 90 "github.com/stripe/stripe-go/v76/review" 91 "github.com/stripe/stripe-go/v76/setupattempt" 92 "github.com/stripe/stripe-go/v76/setupintent" 93 "github.com/stripe/stripe-go/v76/shippingrate" 94 sigmascheduledqueryrun "github.com/stripe/stripe-go/v76/sigma/scheduledqueryrun" 95 "github.com/stripe/stripe-go/v76/source" 96 "github.com/stripe/stripe-go/v76/sourcetransaction" 97 "github.com/stripe/stripe-go/v76/subscription" 98 "github.com/stripe/stripe-go/v76/subscriptionitem" 99 "github.com/stripe/stripe-go/v76/subscriptionschedule" 100 taxcalculation "github.com/stripe/stripe-go/v76/tax/calculation" 101 taxregistration "github.com/stripe/stripe-go/v76/tax/registration" 102 taxsettings "github.com/stripe/stripe-go/v76/tax/settings" 103 taxtransaction "github.com/stripe/stripe-go/v76/tax/transaction" 104 "github.com/stripe/stripe-go/v76/taxcode" 105 "github.com/stripe/stripe-go/v76/taxid" 106 "github.com/stripe/stripe-go/v76/taxrate" 107 terminalconfiguration "github.com/stripe/stripe-go/v76/terminal/configuration" 108 terminalconnectiontoken "github.com/stripe/stripe-go/v76/terminal/connectiontoken" 109 terminallocation "github.com/stripe/stripe-go/v76/terminal/location" 110 terminalreader "github.com/stripe/stripe-go/v76/terminal/reader" 111 testhelpersconfirmationtoken "github.com/stripe/stripe-go/v76/testhelpers/confirmationtoken" 112 testhelperscustomer "github.com/stripe/stripe-go/v76/testhelpers/customer" 113 testhelpersissuingauthorization "github.com/stripe/stripe-go/v76/testhelpers/issuing/authorization" 114 testhelpersissuingcard "github.com/stripe/stripe-go/v76/testhelpers/issuing/card" 115 testhelpersissuingpersonalizationdesign "github.com/stripe/stripe-go/v76/testhelpers/issuing/personalizationdesign" 116 testhelpersissuingtransaction "github.com/stripe/stripe-go/v76/testhelpers/issuing/transaction" 117 testhelpersrefund "github.com/stripe/stripe-go/v76/testhelpers/refund" 118 testhelpersterminalreader "github.com/stripe/stripe-go/v76/testhelpers/terminal/reader" 119 testhelperstestclock "github.com/stripe/stripe-go/v76/testhelpers/testclock" 120 testhelperstreasuryinboundtransfer "github.com/stripe/stripe-go/v76/testhelpers/treasury/inboundtransfer" 121 testhelperstreasuryoutboundpayment "github.com/stripe/stripe-go/v76/testhelpers/treasury/outboundpayment" 122 testhelperstreasuryoutboundtransfer "github.com/stripe/stripe-go/v76/testhelpers/treasury/outboundtransfer" 123 testhelperstreasuryreceivedcredit "github.com/stripe/stripe-go/v76/testhelpers/treasury/receivedcredit" 124 testhelperstreasuryreceiveddebit "github.com/stripe/stripe-go/v76/testhelpers/treasury/receiveddebit" 125 "github.com/stripe/stripe-go/v76/token" 126 "github.com/stripe/stripe-go/v76/topup" 127 "github.com/stripe/stripe-go/v76/transfer" 128 "github.com/stripe/stripe-go/v76/transferreversal" 129 treasurycreditreversal "github.com/stripe/stripe-go/v76/treasury/creditreversal" 130 treasurydebitreversal "github.com/stripe/stripe-go/v76/treasury/debitreversal" 131 treasuryfinancialaccount "github.com/stripe/stripe-go/v76/treasury/financialaccount" 132 treasuryinboundtransfer "github.com/stripe/stripe-go/v76/treasury/inboundtransfer" 133 treasuryoutboundpayment "github.com/stripe/stripe-go/v76/treasury/outboundpayment" 134 treasuryoutboundtransfer "github.com/stripe/stripe-go/v76/treasury/outboundtransfer" 135 treasuryreceivedcredit "github.com/stripe/stripe-go/v76/treasury/receivedcredit" 136 treasuryreceiveddebit "github.com/stripe/stripe-go/v76/treasury/receiveddebit" 137 treasurytransaction "github.com/stripe/stripe-go/v76/treasury/transaction" 138 treasurytransactionentry "github.com/stripe/stripe-go/v76/treasury/transactionentry" 139 "github.com/stripe/stripe-go/v76/usagerecord" 140 "github.com/stripe/stripe-go/v76/usagerecordsummary" 141 "github.com/stripe/stripe-go/v76/webhookendpoint" 142 ) 143 144 // API is the Stripe client. It contains all the different resources available. 145 type API struct { 146 // AccountLinks is the client used to invoke /account_links APIs. 147 AccountLinks *accountlink.Client 148 // Accounts is the client used to invoke /accounts APIs. 149 Accounts *account.Client 150 // AccountSessions is the client used to invoke /account_sessions APIs. 151 AccountSessions *accountsession.Client 152 // ApplePayDomains is the client used to invoke /apple_pay/domains APIs. 153 ApplePayDomains *applepaydomain.Client 154 // ApplicationFees is the client used to invoke /application_fees APIs. 155 ApplicationFees *applicationfee.Client 156 // AppsSecrets is the client used to invoke /apps/secrets APIs. 157 AppsSecrets *appssecret.Client 158 // Balance is the client used to invoke /balance APIs. 159 Balance *balance.Client 160 // BalanceTransactions is the client used to invoke /balance_transactions APIs. 161 BalanceTransactions *balancetransaction.Client 162 // BankAccounts is the client used to invoke bankaccount related APIs. 163 BankAccounts *bankaccount.Client 164 // BillingMeterEventAdjustments is the client used to invoke /billing/meter_event_adjustments APIs. 165 BillingMeterEventAdjustments *billingmetereventadjustment.Client 166 // BillingMeterEvents is the client used to invoke /billing/meter_events APIs. 167 BillingMeterEvents *billingmeterevent.Client 168 // BillingMeterEventSummaries is the client used to invoke /billing/meters/{id}/event_summaries APIs. 169 BillingMeterEventSummaries *billingmetereventsummary.Client 170 // BillingMeters is the client used to invoke /billing/meters APIs. 171 BillingMeters *billingmeter.Client 172 // BillingPortalConfigurations is the client used to invoke /billing_portal/configurations APIs. 173 BillingPortalConfigurations *billingportalconfiguration.Client 174 // BillingPortalSessions is the client used to invoke /billing_portal/sessions APIs. 175 BillingPortalSessions *billingportalsession.Client 176 // Capabilities is the client used to invoke /accounts/{account}/capabilities APIs. 177 Capabilities *capability.Client 178 // Cards is the client used to invoke card related APIs. 179 Cards *card.Client 180 // CashBalances is the client used to invoke /customers/{customer}/cash_balance APIs. 181 CashBalances *cashbalance.Client 182 // Charges is the client used to invoke /charges APIs. 183 Charges *charge.Client 184 // CheckoutSessions is the client used to invoke /checkout/sessions APIs. 185 CheckoutSessions *checkoutsession.Client 186 // ClimateOrders is the client used to invoke /climate/orders APIs. 187 ClimateOrders *climateorder.Client 188 // ClimateProducts is the client used to invoke /climate/products APIs. 189 ClimateProducts *climateproduct.Client 190 // ClimateSuppliers is the client used to invoke /climate/suppliers APIs. 191 ClimateSuppliers *climatesupplier.Client 192 // ConfirmationTokens is the client used to invoke /confirmation_tokens APIs. 193 ConfirmationTokens *confirmationtoken.Client 194 // CountrySpecs is the client used to invoke /country_specs APIs. 195 CountrySpecs *countryspec.Client 196 // Coupons is the client used to invoke /coupons APIs. 197 Coupons *coupon.Client 198 // CreditNotes is the client used to invoke /credit_notes APIs. 199 CreditNotes *creditnote.Client 200 // CustomerBalanceTransactions is the client used to invoke /customers/{customer}/balance_transactions APIs. 201 CustomerBalanceTransactions *customerbalancetransaction.Client 202 // CustomerCashBalanceTransactions is the client used to invoke /customers/{customer}/cash_balance_transactions APIs. 203 CustomerCashBalanceTransactions *customercashbalancetransaction.Client 204 // Customers is the client used to invoke /customers APIs. 205 Customers *customer.Client 206 // CustomerSessions is the client used to invoke /customer_sessions APIs. 207 CustomerSessions *customersession.Client 208 // Disputes is the client used to invoke /disputes APIs. 209 Disputes *dispute.Client 210 // EntitlementsActiveEntitlements is the client used to invoke /entitlements/active_entitlements APIs. 211 EntitlementsActiveEntitlements *entitlementsactiveentitlement.Client 212 // EntitlementsFeatures is the client used to invoke /entitlements/features APIs. 213 EntitlementsFeatures *entitlementsfeature.Client 214 // EphemeralKeys is the client used to invoke /ephemeral_keys APIs. 215 EphemeralKeys *ephemeralkey.Client 216 // Events is the client used to invoke /events APIs. 217 Events *event.Client 218 // FeeRefunds is the client used to invoke /application_fees/{id}/refunds APIs. 219 FeeRefunds *feerefund.Client 220 // FileLinks is the client used to invoke /file_links APIs. 221 FileLinks *filelink.Client 222 // Files is the client used to invoke /files APIs. 223 Files *file.Client 224 // FinancialConnectionsAccounts is the client used to invoke /financial_connections/accounts APIs. 225 FinancialConnectionsAccounts *financialconnectionsaccount.Client 226 // FinancialConnectionsSessions is the client used to invoke /financial_connections/sessions APIs. 227 FinancialConnectionsSessions *financialconnectionssession.Client 228 // FinancialConnectionsTransactions is the client used to invoke /financial_connections/transactions APIs. 229 FinancialConnectionsTransactions *financialconnectionstransaction.Client 230 // ForwardingRequests is the client used to invoke /forwarding/requests APIs. 231 ForwardingRequests *forwardingrequest.Client 232 // IdentityVerificationReports is the client used to invoke /identity/verification_reports APIs. 233 IdentityVerificationReports *identityverificationreport.Client 234 // IdentityVerificationSessions is the client used to invoke /identity/verification_sessions APIs. 235 IdentityVerificationSessions *identityverificationsession.Client 236 // InvoiceItems is the client used to invoke /invoiceitems APIs. 237 InvoiceItems *invoiceitem.Client 238 // InvoiceLineItems is the client used to invoke /invoices/{invoice}/lines APIs. 239 InvoiceLineItems *invoicelineitem.Client 240 // Invoices is the client used to invoke /invoices APIs. 241 Invoices *invoice.Client 242 // IssuingAuthorizations is the client used to invoke /issuing/authorizations APIs. 243 IssuingAuthorizations *issuingauthorization.Client 244 // IssuingCardholders is the client used to invoke /issuing/cardholders APIs. 245 IssuingCardholders *issuingcardholder.Client 246 // IssuingCards is the client used to invoke /issuing/cards APIs. 247 IssuingCards *issuingcard.Client 248 // IssuingDisputes is the client used to invoke /issuing/disputes APIs. 249 IssuingDisputes *issuingdispute.Client 250 // IssuingPersonalizationDesigns is the client used to invoke /issuing/personalization_designs APIs. 251 IssuingPersonalizationDesigns *issuingpersonalizationdesign.Client 252 // IssuingPhysicalBundles is the client used to invoke /issuing/physical_bundles APIs. 253 IssuingPhysicalBundles *issuingphysicalbundle.Client 254 // IssuingTokens is the client used to invoke /issuing/tokens APIs. 255 IssuingTokens *issuingtoken.Client 256 // IssuingTransactions is the client used to invoke /issuing/transactions APIs. 257 IssuingTransactions *issuingtransaction.Client 258 // LoginLinks is the client used to invoke /accounts/{account}/login_links APIs. 259 LoginLinks *loginlink.Client 260 // Mandates is the client used to invoke /mandates APIs. 261 Mandates *mandate.Client 262 // OAuth is the client used to invoke /oauth APIs 263 OAuth *oauth.Client 264 // PaymentIntents is the client used to invoke /payment_intents APIs. 265 PaymentIntents *paymentintent.Client 266 // PaymentLinks is the client used to invoke /payment_links APIs. 267 PaymentLinks *paymentlink.Client 268 // PaymentMethodConfigurations is the client used to invoke /payment_method_configurations APIs. 269 PaymentMethodConfigurations *paymentmethodconfiguration.Client 270 // PaymentMethodDomains is the client used to invoke /payment_method_domains APIs. 271 PaymentMethodDomains *paymentmethoddomain.Client 272 // PaymentMethods is the client used to invoke /payment_methods APIs. 273 PaymentMethods *paymentmethod.Client 274 // PaymentSources is the client used to invoke /customers/{customer}/sources APIs. 275 PaymentSources *paymentsource.Client 276 // Payouts is the client used to invoke /payouts APIs. 277 Payouts *payout.Client 278 // Persons is the client used to invoke /accounts/{account}/persons APIs. 279 Persons *person.Client 280 // Plans is the client used to invoke /plans APIs. 281 Plans *plan.Client 282 // Prices is the client used to invoke /prices APIs. 283 Prices *price.Client 284 // Products is the client used to invoke /products APIs. 285 Products *product.Client 286 // PromotionCodes is the client used to invoke /promotion_codes APIs. 287 PromotionCodes *promotioncode.Client 288 // Quotes is the client used to invoke /quotes APIs. 289 Quotes *quote.Client 290 // RadarEarlyFraudWarnings is the client used to invoke /radar/early_fraud_warnings APIs. 291 RadarEarlyFraudWarnings *radarearlyfraudwarning.Client 292 // RadarValueListItems is the client used to invoke /radar/value_list_items APIs. 293 RadarValueListItems *radarvaluelistitem.Client 294 // RadarValueLists is the client used to invoke /radar/value_lists APIs. 295 RadarValueLists *radarvaluelist.Client 296 // Refunds is the client used to invoke /refunds APIs. 297 Refunds *refund.Client 298 // ReportingReportRuns is the client used to invoke /reporting/report_runs APIs. 299 ReportingReportRuns *reportingreportrun.Client 300 // ReportingReportTypes is the client used to invoke /reporting/report_types APIs. 301 ReportingReportTypes *reportingreporttype.Client 302 // Reviews is the client used to invoke /reviews APIs. 303 Reviews *review.Client 304 // SetupAttempts is the client used to invoke /setup_attempts APIs. 305 SetupAttempts *setupattempt.Client 306 // SetupIntents is the client used to invoke /setup_intents APIs. 307 SetupIntents *setupintent.Client 308 // ShippingRates is the client used to invoke /shipping_rates APIs. 309 ShippingRates *shippingrate.Client 310 // SigmaScheduledQueryRuns is the client used to invoke /sigma/scheduled_query_runs APIs. 311 SigmaScheduledQueryRuns *sigmascheduledqueryrun.Client 312 // Sources is the client used to invoke /sources APIs. 313 Sources *source.Client 314 // SourceTransactions is the client used to invoke sourcetransaction related APIs. 315 SourceTransactions *sourcetransaction.Client 316 // SubscriptionItems is the client used to invoke /subscription_items APIs. 317 SubscriptionItems *subscriptionitem.Client 318 // Subscriptions is the client used to invoke /subscriptions APIs. 319 Subscriptions *subscription.Client 320 // SubscriptionSchedules is the client used to invoke /subscription_schedules APIs. 321 SubscriptionSchedules *subscriptionschedule.Client 322 // TaxCalculations is the client used to invoke /tax/calculations APIs. 323 TaxCalculations *taxcalculation.Client 324 // TaxCodes is the client used to invoke /tax_codes APIs. 325 TaxCodes *taxcode.Client 326 // TaxIDs is the client used to invoke /tax_ids APIs. 327 TaxIDs *taxid.Client 328 // TaxRates is the client used to invoke /tax_rates APIs. 329 TaxRates *taxrate.Client 330 // TaxRegistrations is the client used to invoke /tax/registrations APIs. 331 TaxRegistrations *taxregistration.Client 332 // TaxSettings is the client used to invoke /tax/settings APIs. 333 TaxSettings *taxsettings.Client 334 // TaxTransactions is the client used to invoke /tax/transactions APIs. 335 TaxTransactions *taxtransaction.Client 336 // TerminalConfigurations is the client used to invoke /terminal/configurations APIs. 337 TerminalConfigurations *terminalconfiguration.Client 338 // TerminalConnectionTokens is the client used to invoke /terminal/connection_tokens APIs. 339 TerminalConnectionTokens *terminalconnectiontoken.Client 340 // TerminalLocations is the client used to invoke /terminal/locations APIs. 341 TerminalLocations *terminallocation.Client 342 // TerminalReaders is the client used to invoke /terminal/readers APIs. 343 TerminalReaders *terminalreader.Client 344 // TestHelpersConfirmationTokens is the client used to invoke /confirmation_tokens APIs. 345 TestHelpersConfirmationTokens *testhelpersconfirmationtoken.Client 346 // TestHelpersCustomers is the client used to invoke /customers APIs. 347 TestHelpersCustomers *testhelperscustomer.Client 348 // TestHelpersIssuingAuthorizations is the client used to invoke /issuing/authorizations APIs. 349 TestHelpersIssuingAuthorizations *testhelpersissuingauthorization.Client 350 // TestHelpersIssuingCards is the client used to invoke /issuing/cards APIs. 351 TestHelpersIssuingCards *testhelpersissuingcard.Client 352 // TestHelpersIssuingPersonalizationDesigns is the client used to invoke /issuing/personalization_designs APIs. 353 TestHelpersIssuingPersonalizationDesigns *testhelpersissuingpersonalizationdesign.Client 354 // TestHelpersIssuingTransactions is the client used to invoke /issuing/transactions APIs. 355 TestHelpersIssuingTransactions *testhelpersissuingtransaction.Client 356 // TestHelpersRefunds is the client used to invoke /refunds APIs. 357 TestHelpersRefunds *testhelpersrefund.Client 358 // TestHelpersTerminalReaders is the client used to invoke /terminal/readers APIs. 359 TestHelpersTerminalReaders *testhelpersterminalreader.Client 360 // TestHelpersTestClocks is the client used to invoke /test_helpers/test_clocks APIs. 361 TestHelpersTestClocks *testhelperstestclock.Client 362 // TestHelpersTreasuryInboundTransfers is the client used to invoke /treasury/inbound_transfers APIs. 363 TestHelpersTreasuryInboundTransfers *testhelperstreasuryinboundtransfer.Client 364 // TestHelpersTreasuryOutboundPayments is the client used to invoke /treasury/outbound_payments APIs. 365 TestHelpersTreasuryOutboundPayments *testhelperstreasuryoutboundpayment.Client 366 // TestHelpersTreasuryOutboundTransfers is the client used to invoke /treasury/outbound_transfers APIs. 367 TestHelpersTreasuryOutboundTransfers *testhelperstreasuryoutboundtransfer.Client 368 // TestHelpersTreasuryReceivedCredits is the client used to invoke /treasury/received_credits APIs. 369 TestHelpersTreasuryReceivedCredits *testhelperstreasuryreceivedcredit.Client 370 // TestHelpersTreasuryReceivedDebits is the client used to invoke /treasury/received_debits APIs. 371 TestHelpersTreasuryReceivedDebits *testhelperstreasuryreceiveddebit.Client 372 // Tokens is the client used to invoke /tokens APIs. 373 Tokens *token.Client 374 // Topups is the client used to invoke /topups APIs. 375 Topups *topup.Client 376 // TransferReversals is the client used to invoke /transfers/{id}/reversals APIs. 377 TransferReversals *transferreversal.Client 378 // Transfers is the client used to invoke /transfers APIs. 379 Transfers *transfer.Client 380 // TreasuryCreditReversals is the client used to invoke /treasury/credit_reversals APIs. 381 TreasuryCreditReversals *treasurycreditreversal.Client 382 // TreasuryDebitReversals is the client used to invoke /treasury/debit_reversals APIs. 383 TreasuryDebitReversals *treasurydebitreversal.Client 384 // TreasuryFinancialAccounts is the client used to invoke /treasury/financial_accounts APIs. 385 TreasuryFinancialAccounts *treasuryfinancialaccount.Client 386 // TreasuryInboundTransfers is the client used to invoke /treasury/inbound_transfers APIs. 387 TreasuryInboundTransfers *treasuryinboundtransfer.Client 388 // TreasuryOutboundPayments is the client used to invoke /treasury/outbound_payments APIs. 389 TreasuryOutboundPayments *treasuryoutboundpayment.Client 390 // TreasuryOutboundTransfers is the client used to invoke /treasury/outbound_transfers APIs. 391 TreasuryOutboundTransfers *treasuryoutboundtransfer.Client 392 // TreasuryReceivedCredits is the client used to invoke /treasury/received_credits APIs. 393 TreasuryReceivedCredits *treasuryreceivedcredit.Client 394 // TreasuryReceivedDebits is the client used to invoke /treasury/received_debits APIs. 395 TreasuryReceivedDebits *treasuryreceiveddebit.Client 396 // TreasuryTransactionEntries is the client used to invoke /treasury/transaction_entries APIs. 397 TreasuryTransactionEntries *treasurytransactionentry.Client 398 // TreasuryTransactions is the client used to invoke /treasury/transactions APIs. 399 TreasuryTransactions *treasurytransaction.Client 400 // UsageRecords is the client used to invoke /subscription_items/{subscription_item}/usage_records APIs. 401 UsageRecords *usagerecord.Client 402 // UsageRecordSummaries is the client used to invoke /subscription_items/{subscription_item}/usage_record_summaries APIs. 403 UsageRecordSummaries *usagerecordsummary.Client 404 // WebhookEndpoints is the client used to invoke /webhook_endpoints APIs. 405 WebhookEndpoints *webhookendpoint.Client 406 } 407 408 func (a *API) Init(key string, backends *stripe.Backends) { 409 410 if backends == nil { 411 backends = &stripe.Backends{ 412 API: stripe.GetBackend(stripe.APIBackend), 413 Connect: stripe.GetBackend(stripe.ConnectBackend), 414 Uploads: stripe.GetBackend(stripe.UploadsBackend), 415 } 416 } 417 418 a.AccountLinks = &accountlink.Client{B: backends.API, Key: key} 419 a.Accounts = &account.Client{B: backends.API, Key: key} 420 a.AccountSessions = &accountsession.Client{B: backends.API, Key: key} 421 a.ApplePayDomains = &applepaydomain.Client{B: backends.API, Key: key} 422 a.ApplicationFees = &applicationfee.Client{B: backends.API, Key: key} 423 a.AppsSecrets = &appssecret.Client{B: backends.API, Key: key} 424 a.Balance = &balance.Client{B: backends.API, Key: key} 425 a.BalanceTransactions = &balancetransaction.Client{B: backends.API, Key: key} 426 a.BankAccounts = &bankaccount.Client{B: backends.API, Key: key} 427 a.BillingMeterEventAdjustments = &billingmetereventadjustment.Client{B: backends.API, Key: key} 428 a.BillingMeterEvents = &billingmeterevent.Client{B: backends.API, Key: key} 429 a.BillingMeterEventSummaries = &billingmetereventsummary.Client{B: backends.API, Key: key} 430 a.BillingMeters = &billingmeter.Client{B: backends.API, Key: key} 431 a.BillingPortalConfigurations = &billingportalconfiguration.Client{B: backends.API, Key: key} 432 a.BillingPortalSessions = &billingportalsession.Client{B: backends.API, Key: key} 433 a.Capabilities = &capability.Client{B: backends.API, Key: key} 434 a.Cards = &card.Client{B: backends.API, Key: key} 435 a.CashBalances = &cashbalance.Client{B: backends.API, Key: key} 436 a.Charges = &charge.Client{B: backends.API, Key: key} 437 a.CheckoutSessions = &checkoutsession.Client{B: backends.API, Key: key} 438 a.ClimateOrders = &climateorder.Client{B: backends.API, Key: key} 439 a.ClimateProducts = &climateproduct.Client{B: backends.API, Key: key} 440 a.ClimateSuppliers = &climatesupplier.Client{B: backends.API, Key: key} 441 a.ConfirmationTokens = &confirmationtoken.Client{B: backends.API, Key: key} 442 a.CountrySpecs = &countryspec.Client{B: backends.API, Key: key} 443 a.Coupons = &coupon.Client{B: backends.API, Key: key} 444 a.CreditNotes = &creditnote.Client{B: backends.API, Key: key} 445 a.CustomerBalanceTransactions = &customerbalancetransaction.Client{B: backends.API, Key: key} 446 a.CustomerCashBalanceTransactions = &customercashbalancetransaction.Client{B: backends.API, Key: key} 447 a.Customers = &customer.Client{B: backends.API, Key: key} 448 a.CustomerSessions = &customersession.Client{B: backends.API, Key: key} 449 a.Disputes = &dispute.Client{B: backends.API, Key: key} 450 a.EntitlementsActiveEntitlements = &entitlementsactiveentitlement.Client{B: backends.API, Key: key} 451 a.EntitlementsFeatures = &entitlementsfeature.Client{B: backends.API, Key: key} 452 a.EphemeralKeys = &ephemeralkey.Client{B: backends.API, Key: key} 453 a.Events = &event.Client{B: backends.API, Key: key} 454 a.FeeRefunds = &feerefund.Client{B: backends.API, Key: key} 455 a.FileLinks = &filelink.Client{B: backends.API, Key: key} 456 a.Files = &file.Client{B: backends.API, BUploads: backends.Uploads, Key: key} 457 a.FinancialConnectionsAccounts = &financialconnectionsaccount.Client{B: backends.API, Key: key} 458 a.FinancialConnectionsSessions = &financialconnectionssession.Client{B: backends.API, Key: key} 459 a.FinancialConnectionsTransactions = &financialconnectionstransaction.Client{B: backends.API, Key: key} 460 a.ForwardingRequests = &forwardingrequest.Client{B: backends.API, Key: key} 461 a.IdentityVerificationReports = &identityverificationreport.Client{B: backends.API, Key: key} 462 a.IdentityVerificationSessions = &identityverificationsession.Client{B: backends.API, Key: key} 463 a.InvoiceItems = &invoiceitem.Client{B: backends.API, Key: key} 464 a.InvoiceLineItems = &invoicelineitem.Client{B: backends.API, Key: key} 465 a.Invoices = &invoice.Client{B: backends.API, Key: key} 466 a.IssuingAuthorizations = &issuingauthorization.Client{B: backends.API, Key: key} 467 a.IssuingCardholders = &issuingcardholder.Client{B: backends.API, Key: key} 468 a.IssuingCards = &issuingcard.Client{B: backends.API, Key: key} 469 a.IssuingDisputes = &issuingdispute.Client{B: backends.API, Key: key} 470 a.IssuingPersonalizationDesigns = &issuingpersonalizationdesign.Client{B: backends.API, Key: key} 471 a.IssuingPhysicalBundles = &issuingphysicalbundle.Client{B: backends.API, Key: key} 472 a.IssuingTokens = &issuingtoken.Client{B: backends.API, Key: key} 473 a.IssuingTransactions = &issuingtransaction.Client{B: backends.API, Key: key} 474 a.LoginLinks = &loginlink.Client{B: backends.API, Key: key} 475 a.Mandates = &mandate.Client{B: backends.API, Key: key} 476 a.OAuth = &oauth.Client{B: backends.Connect, Key: key} 477 a.PaymentIntents = &paymentintent.Client{B: backends.API, Key: key} 478 a.PaymentLinks = &paymentlink.Client{B: backends.API, Key: key} 479 a.PaymentMethodConfigurations = &paymentmethodconfiguration.Client{B: backends.API, Key: key} 480 a.PaymentMethodDomains = &paymentmethoddomain.Client{B: backends.API, Key: key} 481 a.PaymentMethods = &paymentmethod.Client{B: backends.API, Key: key} 482 a.PaymentSources = &paymentsource.Client{B: backends.API, Key: key} 483 a.Payouts = &payout.Client{B: backends.API, Key: key} 484 a.Persons = &person.Client{B: backends.API, Key: key} 485 a.Plans = &plan.Client{B: backends.API, Key: key} 486 a.Prices = &price.Client{B: backends.API, Key: key} 487 a.Products = &product.Client{B: backends.API, Key: key} 488 a.PromotionCodes = &promotioncode.Client{B: backends.API, Key: key} 489 a.Quotes = "e.Client{B: backends.API, BUploads: backends.Uploads, Key: key} 490 a.RadarEarlyFraudWarnings = &radarearlyfraudwarning.Client{B: backends.API, Key: key} 491 a.RadarValueListItems = &radarvaluelistitem.Client{B: backends.API, Key: key} 492 a.RadarValueLists = &radarvaluelist.Client{B: backends.API, Key: key} 493 a.Refunds = &refund.Client{B: backends.API, Key: key} 494 a.ReportingReportRuns = &reportingreportrun.Client{B: backends.API, Key: key} 495 a.ReportingReportTypes = &reportingreporttype.Client{B: backends.API, Key: key} 496 a.Reviews = &review.Client{B: backends.API, Key: key} 497 a.SetupAttempts = &setupattempt.Client{B: backends.API, Key: key} 498 a.SetupIntents = &setupintent.Client{B: backends.API, Key: key} 499 a.ShippingRates = &shippingrate.Client{B: backends.API, Key: key} 500 a.SigmaScheduledQueryRuns = &sigmascheduledqueryrun.Client{B: backends.API, Key: key} 501 a.Sources = &source.Client{B: backends.API, Key: key} 502 a.SourceTransactions = &sourcetransaction.Client{B: backends.API, Key: key} 503 a.SubscriptionItems = &subscriptionitem.Client{B: backends.API, Key: key} 504 a.Subscriptions = &subscription.Client{B: backends.API, Key: key} 505 a.SubscriptionSchedules = &subscriptionschedule.Client{B: backends.API, Key: key} 506 a.TaxCalculations = &taxcalculation.Client{B: backends.API, Key: key} 507 a.TaxCodes = &taxcode.Client{B: backends.API, Key: key} 508 a.TaxIDs = &taxid.Client{B: backends.API, Key: key} 509 a.TaxRates = &taxrate.Client{B: backends.API, Key: key} 510 a.TaxRegistrations = &taxregistration.Client{B: backends.API, Key: key} 511 a.TaxSettings = &taxsettings.Client{B: backends.API, Key: key} 512 a.TaxTransactions = &taxtransaction.Client{B: backends.API, Key: key} 513 a.TerminalConfigurations = &terminalconfiguration.Client{B: backends.API, Key: key} 514 a.TerminalConnectionTokens = &terminalconnectiontoken.Client{B: backends.API, Key: key} 515 a.TerminalLocations = &terminallocation.Client{B: backends.API, Key: key} 516 a.TerminalReaders = &terminalreader.Client{B: backends.API, Key: key} 517 a.TestHelpersConfirmationTokens = &testhelpersconfirmationtoken.Client{B: backends.API, Key: key} 518 a.TestHelpersCustomers = &testhelperscustomer.Client{B: backends.API, Key: key} 519 a.TestHelpersIssuingAuthorizations = &testhelpersissuingauthorization.Client{B: backends.API, Key: key} 520 a.TestHelpersIssuingCards = &testhelpersissuingcard.Client{B: backends.API, Key: key} 521 a.TestHelpersIssuingPersonalizationDesigns = &testhelpersissuingpersonalizationdesign.Client{B: backends.API, Key: key} 522 a.TestHelpersIssuingTransactions = &testhelpersissuingtransaction.Client{B: backends.API, Key: key} 523 a.TestHelpersRefunds = &testhelpersrefund.Client{B: backends.API, Key: key} 524 a.TestHelpersTerminalReaders = &testhelpersterminalreader.Client{B: backends.API, Key: key} 525 a.TestHelpersTestClocks = &testhelperstestclock.Client{B: backends.API, Key: key} 526 a.TestHelpersTreasuryInboundTransfers = &testhelperstreasuryinboundtransfer.Client{B: backends.API, Key: key} 527 a.TestHelpersTreasuryOutboundPayments = &testhelperstreasuryoutboundpayment.Client{B: backends.API, Key: key} 528 a.TestHelpersTreasuryOutboundTransfers = &testhelperstreasuryoutboundtransfer.Client{B: backends.API, Key: key} 529 a.TestHelpersTreasuryReceivedCredits = &testhelperstreasuryreceivedcredit.Client{B: backends.API, Key: key} 530 a.TestHelpersTreasuryReceivedDebits = &testhelperstreasuryreceiveddebit.Client{B: backends.API, Key: key} 531 a.Tokens = &token.Client{B: backends.API, Key: key} 532 a.Topups = &topup.Client{B: backends.API, Key: key} 533 a.TransferReversals = &transferreversal.Client{B: backends.API, Key: key} 534 a.Transfers = &transfer.Client{B: backends.API, Key: key} 535 a.TreasuryCreditReversals = &treasurycreditreversal.Client{B: backends.API, Key: key} 536 a.TreasuryDebitReversals = &treasurydebitreversal.Client{B: backends.API, Key: key} 537 a.TreasuryFinancialAccounts = &treasuryfinancialaccount.Client{B: backends.API, Key: key} 538 a.TreasuryInboundTransfers = &treasuryinboundtransfer.Client{B: backends.API, Key: key} 539 a.TreasuryOutboundPayments = &treasuryoutboundpayment.Client{B: backends.API, Key: key} 540 a.TreasuryOutboundTransfers = &treasuryoutboundtransfer.Client{B: backends.API, Key: key} 541 a.TreasuryReceivedCredits = &treasuryreceivedcredit.Client{B: backends.API, Key: key} 542 a.TreasuryReceivedDebits = &treasuryreceiveddebit.Client{B: backends.API, Key: key} 543 a.TreasuryTransactionEntries = &treasurytransactionentry.Client{B: backends.API, Key: key} 544 a.TreasuryTransactions = &treasurytransaction.Client{B: backends.API, Key: key} 545 a.UsageRecords = &usagerecord.Client{B: backends.API, Key: key} 546 a.UsageRecordSummaries = &usagerecordsummary.Client{B: backends.API, Key: key} 547 a.WebhookEndpoints = &webhookendpoint.Client{B: backends.API, Key: key} 548 } 549 550 // New creates a new Stripe client with the appropriate secret key 551 // as well as providing the ability to override the backends as needed. 552 func New(key string, backends *stripe.Backends) *API { 553 api := API{} 554 api.Init(key, backends) 555 return &api 556 }