From 54777a62f73ae779d3e80919a9657c3b58c8fb90 Mon Sep 17 00:00:00 2001 From: Prathmesh Ranaut <165320323+prathmesh-stripe@users.noreply.github.com> Date: Mon, 1 Dec 2025 14:33:52 -0500 Subject: [PATCH 1/5] Make EventUtility.ComputeSignature public (#3270) --- src/Stripe.net/Services/Events/EventUtility.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Stripe.net/Services/Events/EventUtility.cs b/src/Stripe.net/Services/Events/EventUtility.cs index d31d381ae0..657800cc77 100644 --- a/src/Stripe.net/Services/Events/EventUtility.cs +++ b/src/Stripe.net/Services/Events/EventUtility.cs @@ -218,7 +218,14 @@ private static bool IsSignaturePresent(string signature, IEnumerable sig return signatures.Any(key => StringUtils.SecureEquals(key, signature)); } - private static string ComputeSignature(string secret, string timestamp, string payload) + /// + /// Computes the signature for a given payload. + /// + /// The webhook endpoint's signing secret. + /// The timestamp of the payload. + /// The payload to compute the signature for. + /// The computed signature. + public static string ComputeSignature(string secret, string timestamp, string payload) { var secretBytes = SafeUTF8.GetBytes(secret); var payloadBytes = SafeUTF8.GetBytes($"{timestamp}.{payload}"); From 032fc3eb0d71476b117f0d12e7b83510ccd8785f Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 16:30:39 -0800 Subject: [PATCH 2/5] Update generated code (#3271) * Update generated code for v2129 and * Update generated code for v2134 and * Update generated code for v2137 and * Update generated code for v2140 and * Update generated code for v2143 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/Stripe.net/Constants/ApiVersion.cs | 2 +- .../Entities/AccountLinks/AccountLink.cs | 2 +- .../AccountSessions/AccountSession.cs | 4 +- src/Stripe.net/Entities/Accounts/Account.cs | 2 +- .../Entities/Accounts/AccountCapabilities.cs | 11 + .../Entities/Accounts/AccountCompany.cs | 8 +- .../AccountCompanyVerificationDocument.cs | 32 +- .../Entities/Accounts/AccountController.cs | 2 +- .../Accounts/AccountFutureRequirements.cs | 31 +- .../AccountFutureRequirementsAlternative.cs | 4 +- .../Entities/Accounts/AccountGroups.cs | 2 +- .../Entities/Accounts/AccountRequirements.cs | 34 +- .../AccountRequirementsAlternative.cs | 4 +- .../ApplicationFeeRefund.cs | 4 +- .../Entities/Apps/Secrets/Secret.cs | 2 +- .../BalanceSettingsPaymentsPayouts.cs | 2 +- .../BalanceTransactions/BalanceTransaction.cs | 2 +- src/Stripe.net/Entities/Balances/Balance.cs | 8 +- .../Entities/BankAccounts/BankAccount.cs | 4 +- .../BankAccountFutureRequirements.cs | 23 +- .../BankAccounts/BankAccountRequirements.cs | 23 +- .../Entities/Billing/Alerts/Alert.cs | 2 +- .../CreditBalanceSummary.cs | 9 + .../Billing/CreditGrants/CreditGrant.cs | 11 +- .../Billing/MeterEvents/MeterEvent.cs | 2 +- .../Configurations/Configuration.cs | 4 +- ...ConfigurationFeaturesSubscriptionUpdate.cs | 14 + .../Configurations/ConfigurationLoginPage.cs | 2 +- .../BillingPortal/Sessions/Session.cs | 15 +- .../SessionFlowSubscriptionUpdateConfirm.cs | 2 +- ...essionFlowSubscriptionUpdateConfirmItem.cs | 6 +- .../Entities/Capabilities/Capability.cs | 2 +- .../CapabilityFutureRequirements.cs | 31 +- ...CapabilityFutureRequirementsAlternative.cs | 4 +- .../Capabilities/CapabilityRequirements.cs | 32 +- .../CapabilityRequirementsAlternative.cs | 4 +- src/Stripe.net/Entities/Cards/Card.cs | 4 +- .../Entities/CashBalances/CashBalance.cs | 11 +- src/Stripe.net/Entities/Charges/Charge.cs | 28 +- .../Entities/Charges/ChargeOutcome.cs | 10 +- .../Charges/ChargePaymentMethodDetails.cs | 8 +- .../ChargePaymentMethodDetailsAcssDebit.cs | 9 + .../ChargePaymentMethodDetailsAffirm.cs | 4 +- .../ChargePaymentMethodDetailsAuBecsDebit.cs | 9 + .../ChargePaymentMethodDetailsBacsDebit.cs | 9 + .../Charges/ChargePaymentMethodDetailsCard.cs | 2 +- .../ChargePaymentMethodDetailsCardPresent.cs | 4 +- .../ChargePaymentMethodDetailsIdeal.cs | 13 +- ...ChargePaymentMethodDetailsNzBankAccount.cs | 9 + .../ChargePaymentMethodDetailsPaynow.cs | 4 +- .../ChargePaymentMethodDetailsPayto.cs | 47 ++ .../ChargePaymentMethodDetailsSepaDebit.cs | 13 +- ...ChargePaymentMethodDetailsUsBankAccount.cs | 9 + .../ChargePaymentMethodDetailsWechatPay.cs | 4 +- .../Entities/Charges/ChargeRadarOptions.cs | 2 +- .../Entities/Checkout/Sessions/Session.cs | 41 +- .../SessionInvoiceCreationInvoiceData.cs | 2 +- .../Sessions/SessionPaymentMethodOptions.cs | 6 + .../SessionPaymentMethodOptionsCard.cs | 4 +- .../SessionPaymentMethodOptionsPayto.cs | 44 ++ ...PaymentMethodOptionsPaytoMandateOptions.cs | 86 ++++ .../SessionTotalDetailsBreakdownDiscount.cs | 6 +- .../Entities/Climate/Orders/Order.cs | 2 +- .../ConfirmationTokens/ConfirmationToken.cs | 6 +- .../ConfirmationTokenPaymentMethodPreview.cs | 14 +- ...atedFromPaymentMethodDetailsCardPresent.cs | 4 +- ...firmationTokenPaymentMethodPreviewIdeal.cs | 13 +- ...firmationTokenPaymentMethodPreviewPayto.cs | 38 ++ src/Stripe.net/Entities/Coupons/Coupon.cs | 14 +- .../CreditNoteLineItemTaxTaxRateDetails.cs | 3 + .../Entities/CreditNotes/CreditNote.cs | 15 +- .../CreditNoteTotalTaxTaxRateDetails.cs | 3 + .../CustomerBalanceTransaction.cs | 19 +- .../CustomerCashBalanceTransaction.cs | 16 +- ...hBalanceTransactionAdjustedForOverdraft.cs | 8 +- ...rCashBalanceTransactionAppliedToPayment.cs | 4 +- ...shBalanceTransactionRefundedFromPayment.cs | 4 +- ...hBalanceTransactionTransferredToBalance.cs | 4 +- ...hBalanceTransactionUnappliedFromPayment.cs | 4 +- .../CustomerSessions/CustomerSession.cs | 9 + src/Stripe.net/Entities/Customers/Customer.cs | 24 +- src/Stripe.net/Entities/Discounts/Discount.cs | 15 +- src/Stripe.net/Entities/Disputes/Dispute.cs | 6 +- ...ence3DisputedTransactionShippingAddress.cs | 3 +- ...iorUndisputedTransactionShippingAddress.cs | 3 +- .../ActiveEntitlements/ActiveEntitlement.cs | 4 +- src/Stripe.net/Entities/FileLinks/FileLink.cs | 2 +- src/Stripe.net/Entities/Files/File.cs | 14 +- .../FinancialConnections/Accounts/Account.cs | 2 +- .../Accounts/AccountAccountHolder.cs | 18 +- .../Sessions/SessionAccountHolder.cs | 18 +- .../Entities/Forwarding/Requests/Request.cs | 2 +- .../FundingInstructions.cs | 4 +- .../VerificationReports/VerificationReport.cs | 6 +- .../VerificationReportDocument.cs | 2 +- .../VerificationReportOptionsDocument.cs | 6 +- .../VerificationReportSelfie.cs | 4 +- .../VerificationSession.cs | 27 +- .../VerificationSessionOptionsDocument.cs | 6 +- .../Entities/InvoiceItems/InvoiceItem.cs | 27 +- .../InvoiceLineItems/InvoiceLineItem.cs | 18 +- .../InvoiceLineItemTaxTaxRateDetails.cs | 3 + .../InvoicePayments/InvoicePayment.cs | 2 +- .../InvoiceRenderingTemplate.cs | 2 +- src/Stripe.net/Entities/Invoices/Invoice.cs | 35 +- .../Entities/Invoices/InvoiceAutomaticTax.cs | 2 +- .../InvoiceParentSubscriptionDetails.cs | 2 +- .../Invoices/InvoicePaymentSettings.cs | 5 +- ...oicePaymentSettingsPaymentMethodOptions.cs | 10 + ...PaymentSettingsPaymentMethodOptionsCard.cs | 4 +- ...aymentSettingsPaymentMethodOptionsPayto.cs | 17 + ...PaymentMethodOptionsPaytoMandateOptions.cs | 44 ++ .../Invoices/InvoiceTotalTaxTaxRateDetails.cs | 3 + .../Issuing/Authorizations/Authorization.cs | 22 +- .../AuthorizationMerchantData.cs | 2 +- .../AuthorizationPendingRequest.cs | 10 +- .../AuthorizationRequestHistory.cs | 6 +- .../Authorizations/AuthorizationTreasury.cs | 6 +- .../Issuing/Cardholders/Cardholder.cs | 14 +- ...ardholderIndividualVerificationDocument.cs | 20 +- .../Cardholders/CardholderSpendingControls.cs | 4 +- ...CardholderSpendingControlsSpendingLimit.cs | 4 +- src/Stripe.net/Entities/Issuing/Cards/Card.cs | 16 +- .../Issuing/Cards/CardSpendingControls.cs | 4 +- .../CardSpendingControlsSpendingLimit.cs | 4 +- .../Entities/Issuing/Disputes/Dispute.cs | 10 +- .../Issuing/Disputes/DisputeTreasury.cs | 4 +- .../PersonalizationDesign.cs | 2 +- .../Entities/Issuing/Tokens/Token.cs | 4 +- .../Issuing/Transactions/Transaction.cs | 22 +- .../Transactions/TransactionTreasury.cs | 4 +- src/Stripe.net/Entities/LineItems/LineItem.cs | 13 +- .../Entities/LineItems/LineItemDiscount.cs | 6 +- .../Entities/LoginLinks/LoginLink.cs | 4 +- .../Mandates/MandatePaymentMethodDetails.cs | 6 + .../MandatePaymentMethodDetailsPayto.cs | 86 ++++ .../PaymentAttemptRecord.cs | 2 +- .../PaymentAttemptRecordAmount.cs | 2 +- .../PaymentAttemptRecordAmountAuthorized.cs | 2 +- .../PaymentAttemptRecordAmountCanceled.cs | 2 +- .../PaymentAttemptRecordAmountFailed.cs | 2 +- .../PaymentAttemptRecordAmountGuaranteed.cs | 2 +- .../PaymentAttemptRecordAmountRefunded.cs | 2 +- .../PaymentAttemptRecordAmountRequested.cs | 2 +- ...aymentAttemptRecordPaymentMethodDetails.cs | 8 +- ...emptRecordPaymentMethodDetailsAcssDebit.cs | 9 + ...AttemptRecordPaymentMethodDetailsAffirm.cs | 4 +- ...ptRecordPaymentMethodDetailsAuBecsDebit.cs | 9 + ...emptRecordPaymentMethodDetailsBacsDebit.cs | 9 + ...ymentMethodDetailsBillingDetailsAddress.cs | 3 +- ...ntAttemptRecordPaymentMethodDetailsCard.cs | 74 ++++ ...ordPaymentMethodDetailsCardInstallments.cs | 17 + ...aymentMethodDetailsCardInstallmentsPlan.cs | 41 ++ ...ptRecordPaymentMethodDetailsCardPresent.cs | 4 +- ...tAttemptRecordPaymentMethodDetailsIdeal.cs | 13 +- ...RecordPaymentMethodDetailsNzBankAccount.cs | 9 + ...AttemptRecordPaymentMethodDetailsPaynow.cs | 4 +- ...tAttemptRecordPaymentMethodDetailsPayto.cs | 47 ++ ...emptRecordPaymentMethodDetailsSepaDebit.cs | 13 +- ...RecordPaymentMethodDetailsUsBankAccount.cs | 9 + ...emptRecordPaymentMethodDetailsWechatPay.cs | 4 +- ...mentAttemptRecordShippingDetailsAddress.cs | 3 +- .../PaymentIntentAmountDetailsLineItem.cs | 4 +- .../PaymentIntentAmountDetailsLineItemTax.cs | 2 +- .../Entities/PaymentIntents/PaymentIntent.cs | 69 ++- .../PaymentIntentAmountDetails.cs | 4 +- .../PaymentIntentAmountDetailsShipping.cs | 2 +- .../PaymentIntentAmountDetailsTax.cs | 2 +- .../PaymentIntentAutomaticPaymentMethods.cs | 2 +- .../PaymentIntentHooksInputsTax.cs | 2 +- .../PaymentIntentPaymentMethodOptions.cs | 6 + .../PaymentIntentPaymentMethodOptionsCard.cs | 14 +- ...ntIntentPaymentMethodOptionsCardPresent.cs | 8 +- .../PaymentIntentPaymentMethodOptionsPayto.cs | 44 ++ ...PaymentMethodOptionsPaytoMandateOptions.cs | 76 ++++ .../PaymentIntentTransferData.cs | 2 +- .../Entities/PaymentLinks/PaymentLink.cs | 14 +- .../PaymentLinkInvoiceCreationInvoiceData.cs | 2 +- .../PaymentLinkPaymentIntentData.cs | 6 +- .../PaymentLinkSubscriptionData.cs | 4 +- .../PaymentMethodConfiguration.cs | 14 +- .../PaymentMethodConfigurationPayto.cs | 27 ++ ...thodConfigurationPaytoDisplayPreference.cs | 41 ++ .../PaymentMethodDomain.cs | 2 +- .../Entities/PaymentMethods/PaymentMethod.cs | 24 +- ...atedFromPaymentMethodDetailsCardPresent.cs | 4 +- .../PaymentMethods/PaymentMethodIdeal.cs | 13 +- .../PaymentMethods/PaymentMethodPayto.cs | 38 ++ .../PaymentMethodRadarOptions.cs | 2 +- .../Entities/PaymentRecords/PaymentRecord.cs | 12 +- .../PaymentRecords/PaymentRecordAmount.cs | 2 +- .../PaymentRecordAmountAuthorized.cs | 2 +- .../PaymentRecordAmountCanceled.cs | 2 +- .../PaymentRecordAmountFailed.cs | 2 +- .../PaymentRecordAmountGuaranteed.cs | 2 +- .../PaymentRecordAmountRefunded.cs | 2 +- .../PaymentRecordAmountRequested.cs | 2 +- .../PaymentRecordPaymentMethodDetails.cs | 8 +- ...mentRecordPaymentMethodDetailsAcssDebit.cs | 9 + ...PaymentRecordPaymentMethodDetailsAffirm.cs | 4 +- ...ntRecordPaymentMethodDetailsAuBecsDebit.cs | 9 + ...mentRecordPaymentMethodDetailsBacsDebit.cs | 9 + ...ymentMethodDetailsBillingDetailsAddress.cs | 3 +- .../PaymentRecordPaymentMethodDetailsCard.cs | 74 ++++ ...ordPaymentMethodDetailsCardInstallments.cs | 17 + ...aymentMethodDetailsCardInstallmentsPlan.cs | 41 ++ ...ntRecordPaymentMethodDetailsCardPresent.cs | 4 +- .../PaymentRecordPaymentMethodDetailsIdeal.cs | 13 +- ...RecordPaymentMethodDetailsNzBankAccount.cs | 9 + ...PaymentRecordPaymentMethodDetailsPaynow.cs | 4 +- .../PaymentRecordPaymentMethodDetailsPayto.cs | 47 ++ ...mentRecordPaymentMethodDetailsSepaDebit.cs | 13 +- ...RecordPaymentMethodDetailsUsBankAccount.cs | 9 + ...mentRecordPaymentMethodDetailsWechatPay.cs | 4 +- .../PaymentRecordShippingDetailsAddress.cs | 3 +- src/Stripe.net/Entities/Payouts/Payout.cs | 16 +- src/Stripe.net/Entities/Persons/Person.cs | 4 +- .../Persons/PersonFutureRequirements.cs | 39 +- .../PersonFutureRequirementsAlternative.cs | 4 +- .../Entities/Persons/PersonRequirements.cs | 30 +- .../Persons/PersonRequirementsAlternative.cs | 4 +- .../Entities/Persons/PersonVerification.cs | 2 +- .../PersonVerificationAdditionalDocument.cs | 8 +- .../Persons/PersonVerificationDocument.cs | 8 +- src/Stripe.net/Entities/Plans/Plan.cs | 14 +- src/Stripe.net/Entities/Prices/Price.cs | 12 +- .../Entities/Prices/PriceCurrencyOptions.cs | 2 +- .../Entities/Prices/PriceRecurring.cs | 2 +- src/Stripe.net/Entities/Products/Product.cs | 24 +- .../Entities/PromotionCodes/PromotionCode.cs | 17 +- src/Stripe.net/Entities/Quotes/Quote.cs | 24 +- ...dRecurringTotalDetailsBreakdownDiscount.cs | 6 +- ...tedUpfrontTotalDetailsBreakdownDiscount.cs | 6 +- .../Entities/Quotes/QuoteSubscriptionData.cs | 2 +- .../QuoteTotalDetailsBreakdownDiscount.cs | 6 +- .../EarlyFraudWarnings/EarlyFraudWarning.cs | 2 +- .../Radar/ValueListItems/ValueListItem.cs | 2 +- .../Entities/Radar/ValueLists/ValueList.cs | 4 +- src/Stripe.net/Entities/Refunds/Refund.cs | 6 +- .../Reporting/ReportRuns/ReportRun.cs | 6 +- .../Reporting/ReportTypes/ReportType.cs | 6 +- src/Stripe.net/Entities/Reviews/Review.cs | 2 +- .../Entities/SetupAttempts/SetupAttempt.cs | 25 +- .../SetupAttemptPaymentMethodDetails.cs | 6 + .../SetupAttemptPaymentMethodDetailsIdeal.cs | 13 +- .../SetupAttemptPaymentMethodDetailsPayto.cs | 7 + .../Entities/SetupIntents/SetupIntent.cs | 29 +- .../SetupIntentAutomaticPaymentMethods.cs | 2 +- .../SetupIntentPaymentMethodOptions.cs | 6 + .../SetupIntentPaymentMethodOptionsCard.cs | 4 +- .../SetupIntentPaymentMethodOptionsPayto.cs | 17 + ...PaymentMethodOptionsPaytoMandateOptions.cs | 86 ++++ .../Entities/ShippingRates/ShippingRate.cs | 8 +- .../ScheduledQueryRuns/ScheduledQueryRun.cs | 2 +- .../SourceMandateNotification.cs | 8 +- src/Stripe.net/Entities/Sources/Source.cs | 12 +- .../SubscriptionItems/SubscriptionItem.cs | 22 +- .../SubscriptionSchedule.cs | 15 +- .../SubscriptionScheduleDefaultSettings.cs | 2 +- .../SubscriptionSchedulePhase.cs | 4 +- ...SubscriptionSchedulePhaseAddInvoiceItem.cs | 2 +- .../SubscriptionSchedulePhaseItem.cs | 2 +- .../Entities/Subscriptions/Subscription.cs | 53 ++- .../SubscriptionPaymentSettings.cs | 5 +- ...tionPaymentSettingsPaymentMethodOptions.cs | 10 + ...PaymentSettingsPaymentMethodOptionsCard.cs | 4 +- ...aymentSettingsPaymentMethodOptionsPayto.cs | 17 + ...PaymentMethodOptionsPaytoMandateOptions.cs | 44 ++ .../SubscriptionPendingUpdate.cs | 2 +- .../Entities/Tax/Associations/Association.cs | 4 +- ...sociationTaxTransactionAttemptCommitted.cs | 2 +- .../CalculationLineItem.cs | 10 +- .../CalculationLineItemTaxBreakdown.cs | 4 +- .../Entities/Tax/Calculations/Calculation.cs | 6 +- .../Calculations/CalculationShippingCost.cs | 8 +- .../CalculationShippingCostTaxBreakdown.cs | 4 +- .../Calculations/CalculationTaxBreakdown.cs | 4 +- .../CalculationTaxBreakdownTaxRateDetails.cs | 3 +- .../Tax/Registrations/Registration.cs | 6 +- .../Entities/Tax/Settings/Settings.cs | 2 +- .../TransactionLineItem.cs | 10 +- .../Entities/Tax/Transactions/Transaction.cs | 6 +- .../Transactions/TransactionShippingCost.cs | 8 +- .../TransactionShippingCostTaxBreakdown.cs | 4 +- src/Stripe.net/Entities/TaxIds/TaxId.cs | 15 +- src/Stripe.net/Entities/TaxIds/TaxIdOwner.cs | 10 + src/Stripe.net/Entities/TaxRates/TaxRate.cs | 2 +- .../ConnectionTokens/ConnectionToken.cs | 2 +- .../Entities/Terminal/Locations/Location.cs | 4 +- .../Entities/Terminal/Readers/Reader.cs | 8 +- .../Readers/ReaderActionCollectInputs.cs | 2 +- .../ReaderActionCollectPaymentMethod.cs | 6 +- .../Readers/ReaderActionRefundPayment.cs | 2 +- .../ReaderActionSetReaderDisplayCart.cs | 4 +- ...eaderActionSetReaderDisplayCartLineItem.cs | 2 +- src/Stripe.net/Entities/Tokens/Token.cs | 8 +- src/Stripe.net/Entities/Topups/Topup.cs | 6 +- .../TransferReversals/TransferReversal.cs | 8 +- src/Stripe.net/Entities/Transfers/Transfer.cs | 12 +- .../CreditReversals/CreditReversal.cs | 8 +- .../Treasury/DebitReversals/DebitReversal.cs | 11 +- .../FinancialAccounts/FinancialAccount.cs | 2 +- .../InboundTransfers/InboundTransfer.cs | 6 +- ...OriginPaymentMethodDetailsUsBankAccount.cs | 2 +- .../OutboundPayments/OutboundPayment.cs | 12 +- ...nationPaymentMethodDetailsUsBankAccount.cs | 2 +- .../OutboundTransfers/OutboundTransfer.cs | 14 +- ...nationPaymentMethodDetailsUsBankAccount.cs | 2 +- .../ReceivedCredits/ReceivedCredit.cs | 6 +- ...vedCreditInitiatingPaymentMethodDetails.cs | 2 +- .../ReceivedCreditLinkedFlows.cs | 5 +- ...eivedCreditLinkedFlowsSourceFlowDetails.cs | 22 +- .../Treasury/ReceivedDebits/ReceivedDebit.cs | 6 +- ...ivedDebitInitiatingPaymentMethodDetails.cs | 2 +- .../ReceivedDebitLinkedFlows.cs | 7 +- .../TransactionEntries/TransactionEntry.cs | 2 +- .../TransactionEntryFlowDetails.cs | 43 +- .../Treasury/Transactions/Transaction.cs | 2 +- .../Transactions/TransactionFlowDetails.cs | 43 +- .../V2/Core/AccountLinks/AccountLink.cs | 81 ++++ .../Core/AccountLinks/AccountLinkUseCase.cs | 41 ++ .../AccountLinkUseCaseAccountOnboarding.cs | 58 +++ ...eCaseAccountOnboardingCollectionOptions.cs | 35 ++ .../AccountLinkUseCaseAccountUpdate.cs | 58 +++ ...nkUseCaseAccountUpdateCollectionOptions.cs | 34 ++ .../AccountPersonTokens/AccountPersonToken.cs | 73 +++ .../V2/Core/AccountPersons/AccountPerson.cs | 242 ++++++++++ .../AccountPersonAdditionalAddress.cs | 84 ++++ .../AccountPersonAdditionalName.cs | 48 ++ .../AccountPersonAdditionalTermsOfService.cs | 20 + ...ntPersonAdditionalTermsOfServiceAccount.cs | 42 ++ .../AccountPersons/AccountPersonAddress.cs | 75 ++++ .../AccountPersonDateOfBirth.cs | 38 ++ .../AccountPersons/AccountPersonDocuments.cs | 59 +++ ...ountPersonDocumentsCompanyAuthorization.cs | 32 ++ .../AccountPersonDocumentsPassport.cs | 32 ++ ...countPersonDocumentsPrimaryVerification.cs | 30 ++ ...onDocumentsPrimaryVerificationFrontBack.cs | 35 ++ ...untPersonDocumentsSecondaryVerification.cs | 30 ++ ...DocumentsSecondaryVerificationFrontBack.cs | 35 ++ .../AccountPersonDocumentsVisa.cs | 32 ++ .../AccountPersons/AccountPersonIdNumber.cs | 35 ++ .../AccountPersonRelationship.cs | 90 ++++ .../AccountPersonScriptAddresses.cs | 29 ++ .../AccountPersonScriptAddressesKana.cs | 75 ++++ .../AccountPersonScriptAddressesKanji.cs | 75 ++++ .../AccountPersonScriptNames.cs | 29 ++ .../AccountPersonScriptNamesKana.cs | 29 ++ .../AccountPersonScriptNamesKanji.cs | 29 ++ .../V2/Core/AccountTokens/AccountToken.cs | 73 +++ .../Entities/V2/Core/Accounts/Account.cs | 167 +++++++ .../V2/Core/Accounts/AccountConfiguration.cs | 44 ++ .../Accounts/AccountConfigurationCustomer.cs | 71 +++ ...nfigurationCustomerAutomaticIndirectTax.cs | 54 +++ ...ionCustomerAutomaticIndirectTaxLocation.cs | 29 ++ .../AccountConfigurationCustomerBilling.cs | 30 ++ ...ountConfigurationCustomerBillingInvoice.cs | 59 +++ ...rationCustomerBillingInvoiceCustomField.cs | 30 ++ ...gurationCustomerBillingInvoiceRendering.cs | 32 ++ ...ccountConfigurationCustomerCapabilities.cs | 22 + ...ustomerCapabilitiesAutomaticIndirectTax.cs | 32 ++ ...ilitiesAutomaticIndirectTaxStatusDetail.cs | 35 ++ .../AccountConfigurationCustomerShipping.cs | 38 ++ ...untConfigurationCustomerShippingAddress.cs | 66 +++ .../Accounts/AccountConfigurationMerchant.cs | 114 +++++ ...tConfigurationMerchantBacsDebitPayments.cs | 29 ++ .../AccountConfigurationMerchantBranding.cs | 50 +++ ...ccountConfigurationMerchantCapabilities.cs | 416 ++++++++++++++++++ ...ionMerchantCapabilitiesAchDebitPayments.cs | 32 ++ ...apabilitiesAchDebitPaymentsStatusDetail.cs | 35 ++ ...onMerchantCapabilitiesAcssDebitPayments.cs | 32 ++ ...pabilitiesAcssDebitPaymentsStatusDetail.cs | 35 ++ ...ationMerchantCapabilitiesAffirmPayments.cs | 32 ++ ...tCapabilitiesAffirmPaymentsStatusDetail.cs | 35 ++ ...antCapabilitiesAfterpayClearpayPayments.cs | 32 ++ ...iesAfterpayClearpayPaymentsStatusDetail.cs | 35 ++ ...urationMerchantCapabilitiesAlmaPayments.cs | 32 ++ ...antCapabilitiesAlmaPaymentsStatusDetail.cs | 35 ++ ...onMerchantCapabilitiesAmazonPayPayments.cs | 32 ++ ...pabilitiesAmazonPayPaymentsStatusDetail.cs | 35 ++ ...MerchantCapabilitiesAuBecsDebitPayments.cs | 32 ++ ...bilitiesAuBecsDebitPaymentsStatusDetail.cs | 35 ++ ...onMerchantCapabilitiesBacsDebitPayments.cs | 32 ++ ...pabilitiesBacsDebitPaymentsStatusDetail.cs | 35 ++ ...nMerchantCapabilitiesBancontactPayments.cs | 32 ++ ...abilitiesBancontactPaymentsStatusDetail.cs | 35 ++ ...urationMerchantCapabilitiesBlikPayments.cs | 32 ++ ...antCapabilitiesBlikPaymentsStatusDetail.cs | 35 ++ ...ationMerchantCapabilitiesBoletoPayments.cs | 32 ++ ...tCapabilitiesBoletoPaymentsStatusDetail.cs | 35 ++ ...urationMerchantCapabilitiesCardPayments.cs | 32 ++ ...antCapabilitiesCardPaymentsStatusDetail.cs | 35 ++ ...hantCapabilitiesCartesBancairesPayments.cs | 32 ++ ...tiesCartesBancairesPaymentsStatusDetail.cs | 35 ++ ...tionMerchantCapabilitiesCashappPayments.cs | 32 ++ ...CapabilitiesCashappPaymentsStatusDetail.cs | 35 ++ ...gurationMerchantCapabilitiesEpsPayments.cs | 32 ++ ...hantCapabilitiesEpsPaymentsStatusDetail.cs | 35 ++ ...gurationMerchantCapabilitiesFpxPayments.cs | 32 ++ ...hantCapabilitiesFpxPaymentsStatusDetail.cs | 35 ++ ...chantCapabilitiesGbBankTransferPayments.cs | 32 ++ ...itiesGbBankTransferPaymentsStatusDetail.cs | 35 ++ ...tionMerchantCapabilitiesGrabpayPayments.cs | 32 ++ ...CapabilitiesGrabpayPaymentsStatusDetail.cs | 35 ++ ...rationMerchantCapabilitiesIdealPayments.cs | 32 ++ ...ntCapabilitiesIdealPaymentsStatusDetail.cs | 35 ++ ...gurationMerchantCapabilitiesJcbPayments.cs | 32 ++ ...hantCapabilitiesJcbPaymentsStatusDetail.cs | 35 ++ ...chantCapabilitiesJpBankTransferPayments.cs | 32 ++ ...itiesJpBankTransferPaymentsStatusDetail.cs | 35 ++ ...ionMerchantCapabilitiesKakaoPayPayments.cs | 32 ++ ...apabilitiesKakaoPayPaymentsStatusDetail.cs | 35 ++ ...ationMerchantCapabilitiesKlarnaPayments.cs | 32 ++ ...tCapabilitiesKlarnaPaymentsStatusDetail.cs | 35 ++ ...tionMerchantCapabilitiesKonbiniPayments.cs | 32 ++ ...CapabilitiesKonbiniPaymentsStatusDetail.cs | 35 ++ ...ationMerchantCapabilitiesKrCardPayments.cs | 32 ++ ...tCapabilitiesKrCardPaymentsStatusDetail.cs | 35 ++ ...urationMerchantCapabilitiesLinkPayments.cs | 32 ++ ...antCapabilitiesLinkPaymentsStatusDetail.cs | 35 ++ ...onMerchantCapabilitiesMobilepayPayments.cs | 32 ++ ...pabilitiesMobilepayPaymentsStatusDetail.cs | 35 ++ ...nMerchantCapabilitiesMultibancoPayments.cs | 32 ++ ...abilitiesMultibancoPaymentsStatusDetail.cs | 35 ++ ...chantCapabilitiesMxBankTransferPayments.cs | 32 ++ ...itiesMxBankTransferPaymentsStatusDetail.cs | 35 ++ ...ionMerchantCapabilitiesNaverPayPayments.cs | 32 ++ ...apabilitiesNaverPayPaymentsStatusDetail.cs | 35 ++ ...urationMerchantCapabilitiesOxxoPayments.cs | 32 ++ ...antCapabilitiesOxxoPaymentsStatusDetail.cs | 35 ++ ...gurationMerchantCapabilitiesP24Payments.cs | 32 ++ ...hantCapabilitiesP24PaymentsStatusDetail.cs | 35 ++ ...onMerchantCapabilitiesPayByBankPayments.cs | 32 ++ ...pabilitiesPayByBankPaymentsStatusDetail.cs | 35 ++ ...rationMerchantCapabilitiesPaycoPayments.cs | 32 ++ ...ntCapabilitiesPaycoPaymentsStatusDetail.cs | 35 ++ ...ationMerchantCapabilitiesPaynowPayments.cs | 32 ++ ...tCapabilitiesPaynowPaymentsStatusDetail.cs | 35 ++ ...onMerchantCapabilitiesPromptpayPayments.cs | 32 ++ ...pabilitiesPromptpayPaymentsStatusDetail.cs | 35 ++ ...nMerchantCapabilitiesRevolutPayPayments.cs | 32 ++ ...abilitiesRevolutPayPaymentsStatusDetail.cs | 35 ++ ...nMerchantCapabilitiesSamsungPayPayments.cs | 32 ++ ...abilitiesSamsungPayPaymentsStatusDetail.cs | 35 ++ ...antCapabilitiesSepaBankTransferPayments.cs | 32 ++ ...iesSepaBankTransferPaymentsStatusDetail.cs | 35 ++ ...onMerchantCapabilitiesSepaDebitPayments.cs | 32 ++ ...pabilitiesSepaDebitPaymentsStatusDetail.cs | 35 ++ ...rationMerchantCapabilitiesStripeBalance.cs | 20 + ...erchantCapabilitiesStripeBalancePayouts.cs | 32 ++ ...ilitiesStripeBalancePayoutsStatusDetail.cs | 35 ++ ...rationMerchantCapabilitiesSwishPayments.cs | 32 ++ ...ntCapabilitiesSwishPaymentsStatusDetail.cs | 35 ++ ...rationMerchantCapabilitiesTwintPayments.cs | 32 ++ ...ntCapabilitiesTwintPaymentsStatusDetail.cs | 35 ++ ...chantCapabilitiesUsBankTransferPayments.cs | 32 ++ ...itiesUsBankTransferPaymentsStatusDetail.cs | 35 ++ ...gurationMerchantCapabilitiesZipPayments.cs | 32 ++ ...hantCapabilitiesZipPaymentsStatusDetail.cs | 35 ++ ...ccountConfigurationMerchantCardPayments.cs | 21 + ...figurationMerchantCardPaymentsDeclineOn.cs | 32 ++ ...untConfigurationMerchantKonbiniPayments.cs | 20 + ...igurationMerchantKonbiniPaymentsSupport.cs | 38 ++ ...tionMerchantKonbiniPaymentsSupportHours.cs | 29 ++ ...rationMerchantScriptStatementDescriptor.cs | 35 ++ ...onMerchantScriptStatementDescriptorKana.cs | 40 ++ ...nMerchantScriptStatementDescriptorKanji.cs | 40 ++ ...tConfigurationMerchantSepaDebitPayments.cs | 20 + ...onfigurationMerchantStatementDescriptor.cs | 40 ++ .../AccountConfigurationMerchantSupport.cs | 47 ++ ...ountConfigurationMerchantSupportAddress.cs | 75 ++++ .../Accounts/AccountConfigurationRecipient.cs | 32 ++ ...countConfigurationRecipientCapabilities.cs | 20 + ...ationRecipientCapabilitiesStripeBalance.cs | 29 ++ ...cipientCapabilitiesStripeBalancePayouts.cs | 32 ++ ...ilitiesStripeBalancePayoutsStatusDetail.cs | 35 ++ ...apabilitiesStripeBalanceStripeTransfers.cs | 32 ++ ...tripeBalanceStripeTransfersStatusDetail.cs | 35 ++ .../V2/Core/Accounts/AccountDefaults.cs | 63 +++ .../Core/Accounts/AccountDefaultsProfile.cs | 39 ++ .../AccountDefaultsResponsibilities.cs | 43 ++ .../Accounts/AccountFutureRequirements.cs | 40 ++ .../AccountFutureRequirementsEntry.cs | 79 ++++ .../AccountFutureRequirementsEntryError.cs | 93 ++++ .../AccountFutureRequirementsEntryImpact.cs | 22 + ...uirementsEntryImpactRestrictsCapability.cs | 58 +++ ...sEntryImpactRestrictsCapabilityDeadline.cs | 21 + ...tFutureRequirementsEntryMinimumDeadline.cs | 21 + ...AccountFutureRequirementsEntryReference.cs | 41 ++ ...tFutureRequirementsEntryRequestedReason.cs | 21 + .../AccountFutureRequirementsSummary.cs | 22 + ...utureRequirementsSummaryMinimumDeadline.cs | 31 ++ .../V2/Core/Accounts/AccountIdentity.cs | 63 +++ .../Accounts/AccountIdentityAttestations.cs | 59 +++ ...tityAttestationsDirectorshipDeclaration.cs | 40 ++ ...dentityAttestationsOwnershipDeclaration.cs | 41 ++ ...ountIdentityAttestationsPersonsProvided.cs | 55 +++ ...tyAttestationsRepresentativeDeclaration.cs | 41 ++ ...countIdentityAttestationsTermsOfService.cs | 22 + ...entityAttestationsTermsOfServiceAccount.cs | 42 ++ .../AccountIdentityBusinessDetails.cs | 124 ++++++ .../AccountIdentityBusinessDetailsAddress.cs | 75 ++++ ...untIdentityBusinessDetailsAnnualRevenue.cs | 30 ++ ...ntityBusinessDetailsAnnualRevenueAmount.cs | 32 ++ ...AccountIdentityBusinessDetailsDocuments.cs | 106 +++++ ...cumentsBankAccountOwnershipVerification.cs | 32 ++ ...yBusinessDetailsDocumentsCompanyLicense.cs | 32 ++ ...DocumentsCompanyMemorandumOfAssociation.cs | 32 ++ ...etailsDocumentsCompanyMinisterialDecree.cs | 32 ++ ...ocumentsCompanyRegistrationVerification.cs | 32 ++ ...etailsDocumentsCompanyTaxIdVerification.cs | 32 ++ ...nessDetailsDocumentsPrimaryVerification.cs | 30 ++ ...lsDocumentsPrimaryVerificationFrontBack.cs | 35 ++ ...yBusinessDetailsDocumentsProofOfAddress.cs | 32 ++ ...nessDetailsDocumentsProofOfRegistration.cs | 32 ++ ...mentsProofOfUltimateBeneficialOwnership.cs | 32 ++ .../AccountIdentityBusinessDetailsIdNumber.cs | 51 +++ ...yBusinessDetailsMonthlyEstimatedRevenue.cs | 21 + ...essDetailsMonthlyEstimatedRevenueAmount.cs | 32 ++ ...tIdentityBusinessDetailsScriptAddresses.cs | 29 ++ ...ntityBusinessDetailsScriptAddressesKana.cs | 75 ++++ ...tityBusinessDetailsScriptAddressesKanji.cs | 75 ++++ ...countIdentityBusinessDetailsScriptNames.cs | 29 ++ ...tIdentityBusinessDetailsScriptNamesKana.cs | 20 + ...IdentityBusinessDetailsScriptNamesKanji.cs | 20 + .../Accounts/AccountIdentityIndividual.cs | 227 ++++++++++ ...ountIdentityIndividualAdditionalAddress.cs | 84 ++++ ...AccountIdentityIndividualAdditionalName.cs | 48 ++ ...ntityIndividualAdditionalTermsOfService.cs | 20 + ...dividualAdditionalTermsOfServiceAccount.cs | 42 ++ .../AccountIdentityIndividualAddress.cs | 75 ++++ .../AccountIdentityIndividualDateOfBirth.cs | 38 ++ .../AccountIdentityIndividualDocuments.cs | 59 +++ ...IndividualDocumentsCompanyAuthorization.cs | 32 ++ ...ountIdentityIndividualDocumentsPassport.cs | 32 ++ ...yIndividualDocumentsPrimaryVerification.cs | 30 ++ ...alDocumentsPrimaryVerificationFrontBack.cs | 35 ++ ...ndividualDocumentsSecondaryVerification.cs | 30 ++ ...DocumentsSecondaryVerificationFrontBack.cs | 35 ++ .../AccountIdentityIndividualDocumentsVisa.cs | 32 ++ .../AccountIdentityIndividualIdNumber.cs | 35 ++ .../AccountIdentityIndividualRelationship.cs | 90 ++++ ...ccountIdentityIndividualScriptAddresses.cs | 29 ++ ...ntIdentityIndividualScriptAddressesKana.cs | 75 ++++ ...tIdentityIndividualScriptAddressesKanji.cs | 75 ++++ .../AccountIdentityIndividualScriptNames.cs | 29 ++ ...ccountIdentityIndividualScriptNamesKana.cs | 29 ++ ...countIdentityIndividualScriptNamesKanji.cs | 29 ++ .../V2/Core/Accounts/AccountRequirements.cs | 30 ++ .../Core/Accounts/AccountRequirementsEntry.cs | 79 ++++ .../Accounts/AccountRequirementsEntryError.cs | 93 ++++ .../AccountRequirementsEntryImpact.cs | 22 + ...uirementsEntryImpactRestrictsCapability.cs | 58 +++ ...sEntryImpactRestrictsCapabilityDeadline.cs | 21 + ...AccountRequirementsEntryMinimumDeadline.cs | 21 + .../AccountRequirementsEntryReference.cs | 41 ++ ...AccountRequirementsEntryRequestedReason.cs | 21 + .../Accounts/AccountRequirementsSummary.cs | 22 + ...countRequirementsSummaryMinimumDeadline.cs | 31 ++ .../Entities/V2/Core/Events/Event.cs | 10 + .../WebhookEndpoints/WebhookEndpoint.cs | 2 +- .../Public/StripeTypeRegistry.cs | 5 + .../AccountExternalAccountCreateOptions.cs | 4 +- ...BankAccountOwnershipVerificationOptions.cs | 5 +- .../AccountExternalAccountUpdateOptions.cs | 2 +- .../AccountPersonCreateOptions.cs | 2 +- ...sonDocumentsCompanyAuthorizationOptions.cs | 5 +- .../AccountPersonDocumentsPassportOptions.cs | 5 +- .../AccountPersonDocumentsVisaOptions.cs | 5 +- .../AccountPersonUpdateOptions.cs | 2 +- ...onVerificationAdditionalDocumentOptions.cs | 4 +- ...ccountPersonVerificationDocumentOptions.cs | 4 +- .../Accounts/AccountCapabilitiesOptions.cs | 9 + ...AccountCapabilitiesPaytoPaymentsOptions.cs | 22 + ...countCompanyVerificationDocumentOptions.cs | 18 +- .../Services/Accounts/AccountCreateOptions.cs | 4 +- ...BankAccountOwnershipVerificationOptions.cs | 5 +- .../AccountDocumentsCompanyLicenseOptions.cs | 5 +- ...tsCompanyMemorandumOfAssociationOptions.cs | 5 +- ...ocumentsCompanyMinisterialDecreeOptions.cs | 5 +- ...sCompanyRegistrationVerificationOptions.cs | 5 +- ...ocumentsCompanyTaxIdVerificationOptions.cs | 5 +- .../AccountDocumentsProofOfAddressOptions.cs | 5 +- ...ountDocumentsProofOfRegistrationOptions.cs | 14 +- ...cumentsProofOfRegistrationSignerOptions.cs | 20 + ...oofOfUltimateBeneficialOwnershipOptions.cs | 14 +- ...ltimateBeneficialOwnershipSignerOptions.cs | 20 + .../Services/Accounts/AccountGroupsOptions.cs | 2 +- .../Accounts/AccountIndividualOptions.cs | 2 +- ...alVerificationAdditionalDocumentOptions.cs | 4 +- ...ntIndividualVerificationDocumentOptions.cs | 4 +- .../Services/Accounts/AccountUpdateOptions.cs | 4 +- .../ApplicationFeeRefundCreateOptions.cs | 2 +- .../ApplicationFeeRefundUpdateOptions.cs | 2 +- ...BankAccountOwnershipVerificationOptions.cs | 5 +- .../BankAccounts/BankAccountUpdateOptions.cs | 2 +- .../CreditBalanceSummaryGetOptions.cs | 11 +- .../CreditBalanceTransactionListOptions.cs | 12 +- .../CreditGrants/CreditGrantCreateOptions.cs | 11 +- .../CreditGrants/CreditGrantListOptions.cs | 9 + .../MeterEvents/MeterEventCreateOptions.cs | 2 +- .../ConfigurationCreateOptions.cs | 4 +- ...rationFeaturesSubscriptionUpdateOptions.cs | 14 + .../ConfigurationLoginPageOptions.cs | 2 +- .../ConfigurationUpdateOptions.cs | 4 +- .../Sessions/SessionCreateOptions.cs | 17 +- ...ataSubscriptionUpdateConfirmItemOptions.cs | 6 +- ...lowDataSubscriptionUpdateConfirmOptions.cs | 2 +- ...BankAccountOwnershipVerificationOptions.cs | 5 +- .../Services/Cards/CardUpdateOptions.cs | 2 +- .../Services/Charges/ChargeCaptureOptions.cs | 4 +- .../Services/Charges/ChargeCreateOptions.cs | 45 +- .../Charges/ChargeRadarOptionsOptions.cs | 2 +- .../Services/Charges/ChargeUpdateOptions.cs | 4 +- .../Checkout/Sessions/SessionCreateOptions.cs | 45 +- ...essionInvoiceCreationInvoiceDataOptions.cs | 2 +- ...essionLineItemAdjustableQuantityOptions.cs | 3 +- .../Sessions/SessionLineItemOptions.cs | 36 +- .../SessionLineItemPriceDataOptions.cs | 2 +- ...sionLineItemPriceDataProductDataOptions.cs | 4 +- .../Checkout/Sessions/SessionListOptions.cs | 9 + .../Sessions/SessionOptionalItemOptions.cs | 4 +- .../SessionPaymentIntentDataOptions.cs | 10 +- .../SessionPaymentMethodOptionsCardOptions.cs | 4 +- .../SessionPaymentMethodOptionsOptions.cs | 9 + ...essionPaymentMethodOptionsPaypalOptions.cs | 2 +- ...MethodOptionsPaytoMandateOptionsOptions.cs | 86 ++++ ...SessionPaymentMethodOptionsPaytoOptions.cs | 47 ++ .../Sessions/SessionSetupIntentDataOptions.cs | 2 +- ...onShippingOptionShippingRateDataOptions.cs | 4 +- .../SessionSubscriptionDataOptions.cs | 4 +- .../Checkout/Sessions/SessionUpdateOptions.cs | 25 +- .../Climate/Orders/OrderCreateOptions.cs | 2 +- .../Climate/Orders/OrderUpdateOptions.cs | 2 +- .../Services/Coupons/CouponCreateOptions.cs | 2 +- .../Services/Coupons/CouponUpdateOptions.cs | 2 +- .../CreditNotePreviewLinesListOptions.cs | 2 +- .../CreditNotes/CreditNoteCreateOptions.cs | 2 +- .../CreditNotes/CreditNoteListOptions.cs | 10 + .../CreditNotes/CreditNotePreviewOptions.cs | 2 +- .../CreditNotes/CreditNoteUpdateOptions.cs | 2 +- ...CustomerBalanceTransactionCreateOptions.cs | 4 +- .../CustomerBalanceTransactionListOptions.cs | 9 + ...CustomerBalanceTransactionUpdateOptions.cs | 2 +- .../CustomerPaymentMethodListOptions.cs | 6 +- .../CustomerPaymentSourceCreateOptions.cs | 4 +- .../CustomerPaymentSourceUpdateOptions.cs | 2 +- .../CustomerSessionCreateOptions.cs | 9 + .../CustomerCashBalanceSettingsOptions.cs | 2 +- .../Customers/CustomerCreateOptions.cs | 6 +- .../Customers/CustomerUpdateOptions.cs | 10 +- .../Services/Disputes/DisputeUpdateOptions.cs | 2 +- .../FileLinks/FileLinkCreateOptions.cs | 2 +- .../FileLinks/FileLinkUpdateOptions.cs | 2 +- .../Services/Files/FileCreateOptions.cs | 4 +- .../Services/Files/FileFileLinkDataOptions.cs | 2 +- .../Accounts/AccountAccountHolderOptions.cs | 13 +- .../Sessions/SessionAccountHolderOptions.cs | 16 +- .../Requests/RequestCreateOptions.cs | 2 +- .../VerificationSessionCreateOptions.cs | 13 +- .../VerificationSessionListOptions.cs | 14 +- ...rificationSessionOptionsDocumentOptions.cs | 6 +- .../VerificationSessionOptionsOptions.cs | 2 +- .../VerificationSessionUpdateOptions.cs | 4 +- .../InvoiceItems/InvoiceItemCreateOptions.cs | 23 +- .../InvoiceItems/InvoiceItemListOptions.cs | 14 +- .../InvoiceItemPriceDataOptions.cs | 2 +- .../InvoiceItems/InvoiceItemUpdateOptions.cs | 12 +- .../InvoiceLineItemPriceDataOptions.cs | 2 +- ...oiceLineItemPriceDataProductDataOptions.cs | 4 +- .../InvoiceLineItemUpdateOptions.cs | 16 +- .../Invoices/InvoiceAddLinesOptions.cs | 2 +- .../Invoices/InvoiceAutomaticTaxOptions.cs | 2 +- .../Services/Invoices/InvoiceCreateOptions.cs | 21 +- .../Invoices/InvoiceCreatePreviewOptions.cs | 16 +- .../Invoices/InvoiceCustomerDetailsOptions.cs | 4 +- .../Invoices/InvoiceFinalizeOptions.cs | 2 +- .../Services/Invoices/InvoiceLineOptions.cs | 16 +- .../Invoices/InvoiceLinePriceDataOptions.cs | 2 +- .../InvoiceLinePriceDataProductDataOptions.cs | 4 +- .../Services/Invoices/InvoiceListOptions.cs | 12 +- .../Invoices/InvoicePaymentSettingsOptions.cs | 5 +- ...SettingsPaymentMethodOptionsCardOptions.cs | 6 +- ...mentSettingsPaymentMethodOptionsOptions.cs | 10 + ...MethodOptionsPaytoMandateOptionsOptions.cs | 34 ++ ...ettingsPaymentMethodOptionsPaytoOptions.cs | 20 + .../Invoices/InvoiceRemoveLinesOptions.cs | 2 +- ...heduleDetailsPhaseAddInvoiceItemOptions.cs | 4 +- ...ailsPhaseAddInvoiceItemPriceDataOptions.cs | 2 +- ...etailsPhaseItemBillingThresholdsOptions.cs | 2 +- .../InvoiceScheduleDetailsPhaseItemOptions.cs | 8 +- ...cheduleDetailsPhaseItemPriceDataOptions.cs | 2 +- .../InvoiceScheduleDetailsPhaseOptions.cs | 18 +- ...oiceShippingCostShippingRateDataOptions.cs | 4 +- ...tionDetailsItemBillingThresholdsOptions.cs | 2 +- .../InvoiceSubscriptionDetailsItemOptions.cs | 8 +- ...SubscriptionDetailsItemPriceDataOptions.cs | 2 +- .../InvoiceSubscriptionDetailsOptions.cs | 4 +- .../Invoices/InvoiceUpdateLinesOptions.cs | 4 +- .../Services/Invoices/InvoiceUpdateOptions.cs | 8 +- .../AuthorizationApproveOptions.cs | 4 +- .../AuthorizationDeclineOptions.cs | 2 +- .../AuthorizationUpdateOptions.cs | 2 +- .../Cardholders/CardholderCreateOptions.cs | 10 +- ...erIndividualVerificationDocumentOptions.cs | 4 +- .../CardholderSpendingControlsOptions.cs | 4 +- ...derSpendingControlsSpendingLimitOptions.cs | 2 +- .../Cardholders/CardholderUpdateOptions.cs | 8 +- .../Issuing/Cards/CardCreateOptions.cs | 6 +- .../Cards/CardSpendingControlsOptions.cs | 4 +- ...ardSpendingControlsSpendingLimitOptions.cs | 2 +- .../Issuing/Cards/CardUpdateOptions.cs | 4 +- .../Issuing/Disputes/DisputeCreateOptions.cs | 4 +- .../Issuing/Disputes/DisputeSubmitOptions.cs | 2 +- .../Issuing/Disputes/DisputeUpdateOptions.cs | 4 +- .../PersonalizationDesignCreateOptions.cs | 2 +- .../PersonalizationDesignUpdateOptions.cs | 2 +- .../Transactions/TransactionUpdateOptions.cs | 2 +- ...ymentIntentAmountDetailsLineItemOptions.cs | 4 +- ...ntIntentAmountDetailsLineItemTaxOptions.cs | 2 +- .../PaymentIntentAmountDetailsOptions.cs | 4 +- ...ymentIntentAmountDetailsShippingOptions.cs | 2 +- .../PaymentIntentAmountDetailsTaxOptions.cs | 2 +- ...aymentIntentApplyCustomerBalanceOptions.cs | 2 +- ...entIntentAutomaticPaymentMethodsOptions.cs | 2 +- .../PaymentIntentCaptureOptions.cs | 8 +- .../PaymentIntentConfirmOptions.cs | 16 +- .../PaymentIntentCreateOptions.cs | 67 ++- .../PaymentIntentHooksInputsTaxOptions.cs | 2 +- ...mentIntentIncrementAuthorizationOptions.cs | 6 +- .../PaymentIntentListOptions.cs | 10 + ...mentIntentPaymentMethodDataIdealOptions.cs | 6 +- .../PaymentIntentPaymentMethodDataOptions.cs | 16 +- ...mentIntentPaymentMethodDataPaytoOptions.cs | 38 ++ ...entPaymentMethodDataRadarOptionsOptions.cs | 2 +- ...ntIntentPaymentMethodOptionsCardOptions.cs | 14 +- ...tPaymentMethodOptionsCardPresentOptions.cs | 8 +- ...aymentIntentPaymentMethodOptionsOptions.cs | 10 + ...IntentPaymentMethodOptionsPaypalOptions.cs | 2 +- ...MethodOptionsPaytoMandateOptionsOptions.cs | 76 ++++ ...tIntentPaymentMethodOptionsPaytoOptions.cs | 53 +++ .../PaymentIntentRadarOptionsOptions.cs | 2 +- .../PaymentIntentTransferDataOptions.cs | 2 +- .../PaymentIntentUpdateOptions.cs | 43 +- ...ymentLinkAfterCompletionRedirectOptions.cs | 2 +- .../PaymentLinks/PaymentLinkCreateOptions.cs | 24 +- ...ntLinkInvoiceCreationInvoiceDataOptions.cs | 2 +- .../PaymentLinkLineItemOptions.cs | 6 +- .../PaymentLinkLineItemPriceDataOptions.cs | 2 +- ...LinkLineItemPriceDataProductDataOptions.cs | 4 +- .../PaymentLinkOptionalItemOptions.cs | 4 +- .../PaymentLinkPaymentIntentDataOptions.cs | 8 +- .../PaymentLinkSubscriptionDataOptions.cs | 4 +- .../PaymentLinks/PaymentLinkUpdateOptions.cs | 18 +- ...PaymentMethodConfigurationCreateOptions.cs | 104 +++-- ...figurationPaytoDisplayPreferenceOptions.cs | 21 + .../PaymentMethodConfigurationPaytoOptions.cs | 20 + ...PaymentMethodConfigurationUpdateOptions.cs | 104 +++-- .../PaymentMethodAttachOptions.cs | 9 + .../PaymentMethodCreateOptions.cs | 20 +- .../PaymentMethodIdealOptions.cs | 6 +- .../PaymentMethodListOptions.cs | 27 +- .../PaymentMethodPaytoOptions.cs | 38 ++ .../PaymentMethodRadarOptionsOptions.cs | 2 +- .../PaymentMethods/PaymentMethodService.cs | 20 +- .../PaymentMethodUpdateOptions.cs | 12 +- .../PaymentRecordAmountOptions.cs | 2 +- .../PaymentRecordAmountRequestedOptions.cs | 2 +- ...eportPaymentAttemptInformationalOptions.cs | 2 +- ...aymentRecordReportPaymentAttemptOptions.cs | 2 +- .../PaymentRecordReportPaymentOptions.cs | 2 +- .../PaymentRecordReportRefundOptions.cs | 4 +- .../Services/Payouts/PayoutCreateOptions.cs | 2 +- .../Services/Payouts/PayoutReverseOptions.cs | 2 +- .../Services/Payouts/PayoutUpdateOptions.cs | 2 +- .../Services/Plans/PlanCreateOptions.cs | 4 +- .../Services/Plans/PlanProductOptions.cs | 4 +- .../Services/Plans/PlanUpdateOptions.cs | 4 +- .../Services/Prices/PriceCreateOptions.cs | 4 +- .../Prices/PriceCurrencyOptionsOptions.cs | 2 +- .../Prices/PriceProductDataOptions.cs | 4 +- .../Services/Prices/PriceRecurringOptions.cs | 2 +- .../Services/Prices/PriceUpdateOptions.cs | 4 +- .../ProductFeatureCreateOptions.cs | 2 +- .../Services/Products/ProductCreateOptions.cs | 8 +- ...tDefaultPriceDataCurrencyOptionsOptions.cs | 2 +- .../ProductDefaultPriceDataOptions.cs | 4 +- .../Services/Products/ProductListOptions.cs | 4 +- .../Services/Products/ProductUpdateOptions.cs | 8 +- .../PromotionCodeCreateOptions.cs | 16 +- .../PromotionCodeListOptions.cs | 10 + .../PromotionCodeUpdateOptions.cs | 2 +- .../Services/Quotes/QuoteCreateOptions.cs | 12 +- .../Services/Quotes/QuoteLineItemOptions.cs | 2 +- .../Quotes/QuoteLineItemPriceDataOptions.cs | 2 +- .../Services/Quotes/QuoteListOptions.cs | 11 +- .../Quotes/QuoteSubscriptionDataOptions.cs | 2 +- .../Services/Quotes/QuoteUpdateOptions.cs | 12 +- .../ValueLists/ValueListCreateOptions.cs | 2 +- .../ValueLists/ValueListUpdateOptions.cs | 2 +- .../Services/Refunds/RefundCreateOptions.cs | 4 +- .../Services/Refunds/RefundUpdateOptions.cs | 2 +- .../ReportRuns/ReportRunCreateOptions.cs | 4 +- ...tupIntentAutomaticPaymentMethodsOptions.cs | 2 +- .../SetupIntents/SetupIntentConfirmOptions.cs | 2 +- .../SetupIntents/SetupIntentCreateOptions.cs | 25 +- .../SetupIntents/SetupIntentListOptions.cs | 9 + ...etupIntentPaymentMethodDataIdealOptions.cs | 6 +- .../SetupIntentPaymentMethodDataOptions.cs | 16 +- ...etupIntentPaymentMethodDataPaytoOptions.cs | 38 ++ ...entPaymentMethodDataRadarOptionsOptions.cs | 2 +- ...upIntentPaymentMethodOptionsCardOptions.cs | 4 +- .../SetupIntentPaymentMethodOptionsOptions.cs | 10 + ...MethodOptionsPaytoMandateOptionsOptions.cs | 86 ++++ ...pIntentPaymentMethodOptionsPaytoOptions.cs | 20 + .../SetupIntentSingleUseOptions.cs | 4 +- .../SetupIntents/SetupIntentUpdateOptions.cs | 21 +- .../ShippingRateCreateOptions.cs | 4 +- .../ShippingRateUpdateOptions.cs | 2 +- .../Services/Sources/SourceUpdateOptions.cs | 2 +- .../SubscriptionItemCreateOptions.cs | 21 +- .../SubscriptionItemDeleteOptions.cs | 5 +- .../SubscriptionItemUpdateOptions.cs | 21 +- .../SubscriptionScheduleCreateOptions.cs | 11 +- ...scriptionScheduleDefaultSettingsOptions.cs | 2 +- .../SubscriptionScheduleListOptions.cs | 9 + ...ptionSchedulePhaseAddInvoiceItemOptions.cs | 4 +- ...dulePhaseAddInvoiceItemPriceDataOptions.cs | 2 +- ...hedulePhaseItemBillingThresholdsOptions.cs | 2 +- .../SubscriptionSchedulePhaseItemOptions.cs | 8 +- ...iptionSchedulePhaseItemPriceDataOptions.cs | 2 +- .../SubscriptionSchedulePhaseOptions.cs | 18 +- .../SubscriptionScheduleUpdateOptions.cs | 2 +- .../SubscriptionAddInvoiceItemOptions.cs | 4 +- ...scriptionAddInvoiceItemPriceDataOptions.cs | 2 +- .../SubscriptionCreateOptions.cs | 37 +- ...ubscriptionItemBillingThresholdsOptions.cs | 2 +- .../Subscriptions/SubscriptionItemOptions.cs | 8 +- .../SubscriptionItemPriceDataOptions.cs | 2 +- .../Subscriptions/SubscriptionListOptions.cs | 13 +- .../SubscriptionPaymentSettingsOptions.cs | 5 +- ...SettingsPaymentMethodOptionsCardOptions.cs | 4 +- ...mentSettingsPaymentMethodOptionsOptions.cs | 10 + ...MethodOptionsPaytoMandateOptionsOptions.cs | 34 ++ ...ettingsPaymentMethodOptionsPaytoOptions.cs | 20 + .../SubscriptionResumeOptions.cs | 4 +- .../SubscriptionUpdateOptions.cs | 28 +- .../Associations/AssociationFindOptions.cs | 2 +- .../CalculationLineItemOptions.cs | 8 +- .../CalculationShippingCostOptions.cs | 6 +- .../Tax/Settings/SettingsDefaultsOptions.cs | 2 +- ...TransactionCreateFromCalculationOptions.cs | 2 +- .../TransactionCreateReversalOptions.cs | 6 +- .../TransactionLineItemOptions.cs | 8 +- .../TransactionShippingCostOptions.cs | 4 +- .../Services/TaxIds/TaxIdOwnerOptions.cs | 12 +- .../Services/TaxRates/TaxRateCreateOptions.cs | 2 +- .../Services/TaxRates/TaxRateUpdateOptions.cs | 2 +- .../Locations/LocationCreateOptions.cs | 2 +- .../Locations/LocationUpdateOptions.cs | 2 +- .../Readers/ReaderCartLineItemOptions.cs | 2 +- .../Terminal/Readers/ReaderCartOptions.cs | 4 +- .../Readers/ReaderCollectInputsOptions.cs | 2 +- .../Terminal/Readers/ReaderCreateOptions.cs | 2 +- .../Readers/ReaderRefundPaymentOptions.cs | 2 +- .../Terminal/Readers/ReaderUpdateOptions.cs | 2 +- .../ConfirmationTokenCreateOptions.cs | 2 +- ...ationTokenPaymentMethodDataIdealOptions.cs | 6 +- ...nfirmationTokenPaymentMethodDataOptions.cs | 16 +- ...ationTokenPaymentMethodDataPaytoOptions.cs | 38 ++ ...kenPaymentMethodDataRadarOptionsOptions.cs | 2 +- .../CustomerFundCashBalanceOptions.cs | 4 +- .../AuthorizationCaptureOptions.cs | 2 +- .../AuthorizationCreateOptions.cs | 8 +- .../AuthorizationFinalizeAmountOptions.cs | 2 +- .../AuthorizationIncrementOptions.cs | 4 +- .../AuthorizationMerchantDataOptions.cs | 2 +- .../AuthorizationReverseOptions.cs | 2 +- .../TransactionCreateForceCaptureOptions.cs | 2 +- .../TransactionCreateUnlinkedRefundOptions.cs | 2 +- .../TransactionMerchantDataOptions.cs | 2 +- .../Transactions/TransactionRefundOptions.cs | 2 +- .../ReceivedCreditCreateOptions.cs | 2 +- .../ReceivedDebitCreateOptions.cs | 2 +- ...countCompanyVerificationDocumentOptions.cs | 18 +- .../Tokens/TokenAccountIndividualOptions.cs | 2 +- ...alVerificationAdditionalDocumentOptions.cs | 4 +- ...ntIndividualVerificationDocumentOptions.cs | 4 +- .../Tokens/TokenBankAccountOptions.cs | 2 +- .../Services/Tokens/TokenCreateOptions.cs | 6 +- ...sonDocumentsCompanyAuthorizationOptions.cs | 5 +- .../TokenPersonDocumentsPassportOptions.cs | 5 +- .../Tokens/TokenPersonDocumentsVisaOptions.cs | 5 +- .../Services/Tokens/TokenPersonOptions.cs | 2 +- ...onVerificationAdditionalDocumentOptions.cs | 4 +- .../TokenPersonVerificationDocumentOptions.cs | 4 +- .../Services/Topups/TopupCreateOptions.cs | 4 +- .../Services/Topups/TopupUpdateOptions.cs | 2 +- .../TransferReversalCreateOptions.cs | 2 +- .../TransferReversalUpdateOptions.cs | 2 +- .../Transfers/TransferCreateOptions.cs | 6 +- .../Transfers/TransferUpdateOptions.cs | 2 +- .../CreditReversalCreateOptions.cs | 2 +- .../DebitReversalCreateOptions.cs | 2 +- .../FinancialAccountCreateOptions.cs | 2 +- .../FinancialAccountUpdateOptions.cs | 2 +- .../InboundTransferCreateOptions.cs | 4 +- .../OutboundPaymentCreateOptions.cs | 5 +- ...mentDestinationPaymentMethodDataOptions.cs | 2 +- ...aymentMethodOptionsUsBankAccountOptions.cs | 2 +- .../OutboundTransferCreateOptions.cs | 5 +- ...aymentMethodOptionsUsBankAccountOptions.cs | 2 +- .../AccountLinks/AccountLinkCreateOptions.cs | 29 ++ ...countOnboardingCollectionOptionsOptions.cs | 35 ++ ...nkCreateUseCaseAccountOnboardingOptions.cs | 58 +++ ...seAccountUpdateCollectionOptionsOptions.cs | 34 ++ ...ntLinkCreateUseCaseAccountUpdateOptions.cs | 58 +++ .../AccountLinkCreateUseCaseOptions.cs | 41 ++ .../Core/AccountLinks/AccountLinkService.cs | 39 ++ ...estationsDirectorshipDeclarationOptions.cs | 20 + ...tTokenCreateIdentityAttestationsOptions.cs | 59 +++ ...AttestationsOwnershipDeclarationOptions.cs | 20 + ...ntityAttestationsPersonsProvidedOptions.cs | 55 +++ ...tationsRepresentativeDeclarationOptions.cs | 21 + ...ttestationsTermsOfServiceAccountOptions.cs | 20 + ...entityAttestationsTermsOfServiceOptions.cs | 21 + ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ++ ...tityBusinessDetailsAnnualRevenueOptions.cs | 30 ++ ...BankAccountOwnershipVerificationOptions.cs | 32 ++ ...ssDetailsDocumentsCompanyLicenseOptions.cs | 32 ++ ...tsCompanyMemorandumOfAssociationOptions.cs | 32 ++ ...ocumentsCompanyMinisterialDecreeOptions.cs | 32 ++ ...sCompanyRegistrationVerificationOptions.cs | 32 ++ ...ocumentsCompanyTaxIdVerificationOptions.cs | 32 ++ ...IdentityBusinessDetailsDocumentsOptions.cs | 106 +++++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...ailsDocumentsPrimaryVerificationOptions.cs | 30 ++ ...ssDetailsDocumentsProofOfAddressOptions.cs | 32 ++ ...ailsDocumentsProofOfRegistrationOptions.cs | 32 ++ ...oofOfUltimateBeneficialOwnershipOptions.cs | 32 ++ ...eIdentityBusinessDetailsIdNumberOptions.cs | 60 +++ ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ++ ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 20 + ...kenCreateIdentityBusinessDetailsOptions.cs | 123 ++++++ ...tyBusinessDetailsScriptAddressesOptions.cs | 29 ++ ...tyBusinessDetailsScriptNamesKanaOptions.cs | 20 + ...yBusinessDetailsScriptNamesKanjiOptions.cs | 20 + ...entityBusinessDetailsScriptNamesOptions.cs | 29 ++ ...ntityIndividualAdditionalAddressOptions.cs | 84 ++++ ...IdentityIndividualAdditionalNameOptions.cs | 48 ++ ...ateIdentityIndividualDateOfBirthOptions.cs | 38 ++ ...ualDocumentsCompanyAuthorizationOptions.cs | 32 ++ ...reateIdentityIndividualDocumentsOptions.cs | 59 +++ ...ntityIndividualDocumentsPassportOptions.cs | 32 ++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...dualDocumentsPrimaryVerificationOptions.cs | 30 ++ ...tsSecondaryVerificationFrontBackOptions.cs | 35 ++ ...alDocumentsSecondaryVerificationOptions.cs | 30 ++ ...eIdentityIndividualDocumentsVisaOptions.cs | 32 ++ ...CreateIdentityIndividualIdNumberOptions.cs | 44 ++ ...untTokenCreateIdentityIndividualOptions.cs | 169 +++++++ ...teIdentityIndividualRelationshipOptions.cs | 59 +++ ...dentityIndividualScriptAddressesOptions.cs | 29 ++ ...dentityIndividualScriptNamesKanaOptions.cs | 29 ++ ...entityIndividualScriptNamesKanjiOptions.cs | 29 ++ ...ateIdentityIndividualScriptNamesOptions.cs | 29 ++ .../AccountTokenCreateIdentityOptions.cs | 50 +++ .../AccountTokenCreateOptions.cs | 40 ++ .../AccountTokens/AccountTokenGetOptions.cs | 7 + .../Core/AccountTokens/AccountTokenService.cs | 54 +++ .../V2/Core/Accounts/AccountCloseOptions.cs | 23 + ...tionCustomerAutomaticIndirectTaxOptions.cs | 32 ++ ...ustomerBillingInvoiceCustomFieldOptions.cs | 30 ++ ...figurationCustomerBillingInvoiceOptions.cs | 58 +++ ...nCustomerBillingInvoiceRenderingOptions.cs | 32 ++ ...eateConfigurationCustomerBillingOptions.cs | 20 + ...CapabilitiesAutomaticIndirectTaxOptions.cs | 21 + ...onfigurationCustomerCapabilitiesOptions.cs | 22 + ...countCreateConfigurationCustomerOptions.cs | 60 +++ ...ateConfigurationCustomerShippingOptions.cs | 38 ++ ...urationMerchantBacsDebitPaymentsOptions.cs | 20 + ...ateConfigurationMerchantBrandingOptions.cs | 50 +++ ...hantCapabilitiesAchDebitPaymentsOptions.cs | 21 + ...antCapabilitiesAcssDebitPaymentsOptions.cs | 21 + ...rchantCapabilitiesAffirmPaymentsOptions.cs | 21 + ...bilitiesAfterpayClearpayPaymentsOptions.cs | 21 + ...MerchantCapabilitiesAlmaPaymentsOptions.cs | 21 + ...antCapabilitiesAmazonPayPaymentsOptions.cs | 21 + ...tCapabilitiesAuBecsDebitPaymentsOptions.cs | 21 + ...antCapabilitiesBacsDebitPaymentsOptions.cs | 21 + ...ntCapabilitiesBancontactPaymentsOptions.cs | 21 + ...MerchantCapabilitiesBlikPaymentsOptions.cs | 21 + ...rchantCapabilitiesBoletoPaymentsOptions.cs | 21 + ...MerchantCapabilitiesCardPaymentsOptions.cs | 21 + ...abilitiesCartesBancairesPaymentsOptions.cs | 21 + ...chantCapabilitiesCashappPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesEpsPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesFpxPaymentsOptions.cs | 21 + ...pabilitiesGbBankTransferPaymentsOptions.cs | 21 + ...chantCapabilitiesGrabpayPaymentsOptions.cs | 21 + ...erchantCapabilitiesIdealPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesJcbPaymentsOptions.cs | 21 + ...pabilitiesJpBankTransferPaymentsOptions.cs | 21 + ...hantCapabilitiesKakaoPayPaymentsOptions.cs | 21 + ...rchantCapabilitiesKlarnaPaymentsOptions.cs | 21 + ...chantCapabilitiesKonbiniPaymentsOptions.cs | 21 + ...rchantCapabilitiesKrCardPaymentsOptions.cs | 21 + ...MerchantCapabilitiesLinkPaymentsOptions.cs | 21 + ...antCapabilitiesMobilepayPaymentsOptions.cs | 21 + ...ntCapabilitiesMultibancoPaymentsOptions.cs | 21 + ...pabilitiesMxBankTransferPaymentsOptions.cs | 21 + ...hantCapabilitiesNaverPayPaymentsOptions.cs | 21 + ...onfigurationMerchantCapabilitiesOptions.cs | 407 +++++++++++++++++ ...MerchantCapabilitiesOxxoPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesP24PaymentsOptions.cs | 21 + ...antCapabilitiesPayByBankPaymentsOptions.cs | 21 + ...erchantCapabilitiesPaycoPaymentsOptions.cs | 21 + ...rchantCapabilitiesPaynowPaymentsOptions.cs | 21 + ...antCapabilitiesPromptpayPaymentsOptions.cs | 21 + ...ntCapabilitiesRevolutPayPaymentsOptions.cs | 21 + ...ntCapabilitiesSamsungPayPaymentsOptions.cs | 21 + ...bilitiesSepaBankTransferPaymentsOptions.cs | 21 + ...antCapabilitiesSepaDebitPaymentsOptions.cs | 21 + ...erchantCapabilitiesSwishPaymentsOptions.cs | 21 + ...erchantCapabilitiesTwintPaymentsOptions.cs | 21 + ...pabilitiesUsBankTransferPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesZipPaymentsOptions.cs | 21 + ...ionMerchantCardPaymentsDeclineOnOptions.cs | 32 ++ ...onfigurationMerchantCardPaymentsOptions.cs | 21 + ...igurationMerchantKonbiniPaymentsOptions.cs | 20 + ...chantKonbiniPaymentsSupportHoursOptions.cs | 29 ++ ...onMerchantKonbiniPaymentsSupportOptions.cs | 38 ++ ...countCreateConfigurationMerchantOptions.cs | 94 ++++ ...antScriptStatementDescriptorKanaOptions.cs | 40 ++ ...ntScriptStatementDescriptorKanjiOptions.cs | 40 ++ ...erchantScriptStatementDescriptorOptions.cs | 35 ++ ...ationMerchantStatementDescriptorOptions.cs | 40 ++ ...eateConfigurationMerchantSupportOptions.cs | 47 ++ .../AccountCreateConfigurationOptions.cs | 44 ++ ...nfigurationRecipientCapabilitiesOptions.cs | 20 + ...cipientCapabilitiesStripeBalanceOptions.cs | 20 + ...tiesStripeBalanceStripeTransfersOptions.cs | 21 + ...ountCreateConfigurationRecipientOptions.cs | 20 + .../Accounts/AccountCreateDefaultsOptions.cs | 63 +++ .../AccountCreateDefaultsProfileOptions.cs | 39 ++ ...ntCreateDefaultsResponsibilitiesOptions.cs | 33 ++ ...estationsDirectorshipDeclarationOptions.cs | 40 ++ ...ccountCreateIdentityAttestationsOptions.cs | 59 +++ ...AttestationsOwnershipDeclarationOptions.cs | 41 ++ ...ntityAttestationsPersonsProvidedOptions.cs | 55 +++ ...tationsRepresentativeDeclarationOptions.cs | 41 ++ ...ttestationsTermsOfServiceAccountOptions.cs | 42 ++ ...entityAttestationsTermsOfServiceOptions.cs | 22 + ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ++ ...tityBusinessDetailsAnnualRevenueOptions.cs | 30 ++ ...BankAccountOwnershipVerificationOptions.cs | 32 ++ ...ssDetailsDocumentsCompanyLicenseOptions.cs | 32 ++ ...tsCompanyMemorandumOfAssociationOptions.cs | 32 ++ ...ocumentsCompanyMinisterialDecreeOptions.cs | 32 ++ ...sCompanyRegistrationVerificationOptions.cs | 32 ++ ...ocumentsCompanyTaxIdVerificationOptions.cs | 32 ++ ...IdentityBusinessDetailsDocumentsOptions.cs | 106 +++++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...ailsDocumentsPrimaryVerificationOptions.cs | 30 ++ ...ssDetailsDocumentsProofOfAddressOptions.cs | 32 ++ ...ailsDocumentsProofOfRegistrationOptions.cs | 32 ++ ...oofOfUltimateBeneficialOwnershipOptions.cs | 32 ++ ...eIdentityBusinessDetailsIdNumberOptions.cs | 60 +++ ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ++ ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 20 + ...untCreateIdentityBusinessDetailsOptions.cs | 123 ++++++ ...tyBusinessDetailsScriptAddressesOptions.cs | 29 ++ ...tyBusinessDetailsScriptNamesKanaOptions.cs | 20 + ...yBusinessDetailsScriptNamesKanjiOptions.cs | 20 + ...entityBusinessDetailsScriptNamesOptions.cs | 29 ++ ...ntityIndividualAdditionalAddressOptions.cs | 84 ++++ ...IdentityIndividualAdditionalNameOptions.cs | 48 ++ ...ateIdentityIndividualDateOfBirthOptions.cs | 38 ++ ...ualDocumentsCompanyAuthorizationOptions.cs | 32 ++ ...reateIdentityIndividualDocumentsOptions.cs | 59 +++ ...ntityIndividualDocumentsPassportOptions.cs | 32 ++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...dualDocumentsPrimaryVerificationOptions.cs | 30 ++ ...tsSecondaryVerificationFrontBackOptions.cs | 35 ++ ...alDocumentsSecondaryVerificationOptions.cs | 30 ++ ...eIdentityIndividualDocumentsVisaOptions.cs | 32 ++ ...CreateIdentityIndividualIdNumberOptions.cs | 44 ++ .../AccountCreateIdentityIndividualOptions.cs | 169 +++++++ ...teIdentityIndividualRelationshipOptions.cs | 59 +++ ...dentityIndividualScriptAddressesOptions.cs | 29 ++ ...dentityIndividualScriptNamesKanaOptions.cs | 29 ++ ...entityIndividualScriptNamesKanjiOptions.cs | 29 ++ ...ateIdentityIndividualScriptNamesOptions.cs | 29 ++ .../Accounts/AccountCreateIdentityOptions.cs | 62 +++ .../V2/Core/Accounts/AccountCreateOptions.cs | 102 +++++ .../V2/Core/Accounts/AccountGetOptions.cs | 24 + .../V2/Core/Accounts/AccountListOptions.cs | 33 ++ .../V2/Core/Accounts/AccountService.cs | 140 ++++++ ...tionCustomerAutomaticIndirectTaxOptions.cs | 42 ++ ...ustomerBillingInvoiceCustomFieldOptions.cs | 30 ++ ...figurationCustomerBillingInvoiceOptions.cs | 58 +++ ...nCustomerBillingInvoiceRenderingOptions.cs | 32 ++ ...dateConfigurationCustomerBillingOptions.cs | 30 ++ ...CapabilitiesAutomaticIndirectTaxOptions.cs | 21 + ...onfigurationCustomerCapabilitiesOptions.cs | 22 + ...countUpdateConfigurationCustomerOptions.cs | 70 +++ ...ateConfigurationCustomerShippingOptions.cs | 38 ++ ...urationMerchantBacsDebitPaymentsOptions.cs | 20 + ...ateConfigurationMerchantBrandingOptions.cs | 50 +++ ...hantCapabilitiesAchDebitPaymentsOptions.cs | 21 + ...antCapabilitiesAcssDebitPaymentsOptions.cs | 21 + ...rchantCapabilitiesAffirmPaymentsOptions.cs | 21 + ...bilitiesAfterpayClearpayPaymentsOptions.cs | 21 + ...MerchantCapabilitiesAlmaPaymentsOptions.cs | 21 + ...antCapabilitiesAmazonPayPaymentsOptions.cs | 21 + ...tCapabilitiesAuBecsDebitPaymentsOptions.cs | 21 + ...antCapabilitiesBacsDebitPaymentsOptions.cs | 21 + ...ntCapabilitiesBancontactPaymentsOptions.cs | 21 + ...MerchantCapabilitiesBlikPaymentsOptions.cs | 21 + ...rchantCapabilitiesBoletoPaymentsOptions.cs | 21 + ...MerchantCapabilitiesCardPaymentsOptions.cs | 21 + ...abilitiesCartesBancairesPaymentsOptions.cs | 21 + ...chantCapabilitiesCashappPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesEpsPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesFpxPaymentsOptions.cs | 21 + ...pabilitiesGbBankTransferPaymentsOptions.cs | 21 + ...chantCapabilitiesGrabpayPaymentsOptions.cs | 21 + ...erchantCapabilitiesIdealPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesJcbPaymentsOptions.cs | 21 + ...pabilitiesJpBankTransferPaymentsOptions.cs | 21 + ...hantCapabilitiesKakaoPayPaymentsOptions.cs | 21 + ...rchantCapabilitiesKlarnaPaymentsOptions.cs | 21 + ...chantCapabilitiesKonbiniPaymentsOptions.cs | 21 + ...rchantCapabilitiesKrCardPaymentsOptions.cs | 21 + ...MerchantCapabilitiesLinkPaymentsOptions.cs | 21 + ...antCapabilitiesMobilepayPaymentsOptions.cs | 21 + ...ntCapabilitiesMultibancoPaymentsOptions.cs | 21 + ...pabilitiesMxBankTransferPaymentsOptions.cs | 21 + ...hantCapabilitiesNaverPayPaymentsOptions.cs | 21 + ...onfigurationMerchantCapabilitiesOptions.cs | 407 +++++++++++++++++ ...MerchantCapabilitiesOxxoPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesP24PaymentsOptions.cs | 21 + ...antCapabilitiesPayByBankPaymentsOptions.cs | 21 + ...erchantCapabilitiesPaycoPaymentsOptions.cs | 21 + ...rchantCapabilitiesPaynowPaymentsOptions.cs | 21 + ...antCapabilitiesPromptpayPaymentsOptions.cs | 21 + ...ntCapabilitiesRevolutPayPaymentsOptions.cs | 21 + ...ntCapabilitiesSamsungPayPaymentsOptions.cs | 21 + ...bilitiesSepaBankTransferPaymentsOptions.cs | 21 + ...antCapabilitiesSepaDebitPaymentsOptions.cs | 21 + ...erchantCapabilitiesSwishPaymentsOptions.cs | 21 + ...erchantCapabilitiesTwintPaymentsOptions.cs | 21 + ...pabilitiesUsBankTransferPaymentsOptions.cs | 21 + ...nMerchantCapabilitiesZipPaymentsOptions.cs | 21 + ...ionMerchantCardPaymentsDeclineOnOptions.cs | 32 ++ ...onfigurationMerchantCardPaymentsOptions.cs | 21 + ...igurationMerchantKonbiniPaymentsOptions.cs | 20 + ...chantKonbiniPaymentsSupportHoursOptions.cs | 29 ++ ...onMerchantKonbiniPaymentsSupportOptions.cs | 38 ++ ...countUpdateConfigurationMerchantOptions.cs | 105 +++++ ...antScriptStatementDescriptorKanaOptions.cs | 40 ++ ...ntScriptStatementDescriptorKanjiOptions.cs | 40 ++ ...erchantScriptStatementDescriptorOptions.cs | 35 ++ ...ationMerchantStatementDescriptorOptions.cs | 40 ++ ...dateConfigurationMerchantSupportOptions.cs | 47 ++ .../AccountUpdateConfigurationOptions.cs | 44 ++ ...nfigurationRecipientCapabilitiesOptions.cs | 20 + ...cipientCapabilitiesStripeBalanceOptions.cs | 20 + ...tiesStripeBalanceStripeTransfersOptions.cs | 21 + ...ountUpdateConfigurationRecipientOptions.cs | 30 ++ .../Accounts/AccountUpdateDefaultsOptions.cs | 63 +++ .../AccountUpdateDefaultsProfileOptions.cs | 39 ++ ...ntUpdateDefaultsResponsibilitiesOptions.cs | 33 ++ ...estationsDirectorshipDeclarationOptions.cs | 40 ++ ...ccountUpdateIdentityAttestationsOptions.cs | 59 +++ ...AttestationsOwnershipDeclarationOptions.cs | 41 ++ ...ntityAttestationsPersonsProvidedOptions.cs | 55 +++ ...tationsRepresentativeDeclarationOptions.cs | 41 ++ ...ttestationsTermsOfServiceAccountOptions.cs | 42 ++ ...ationsTermsOfServiceCryptoStorerOptions.cs | 42 ++ ...entityAttestationsTermsOfServiceOptions.cs | 40 ++ ...AttestationsTermsOfServiceStorerOptions.cs | 42 ++ ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ++ ...tityBusinessDetailsAnnualRevenueOptions.cs | 30 ++ ...BankAccountOwnershipVerificationOptions.cs | 32 ++ ...ssDetailsDocumentsCompanyLicenseOptions.cs | 32 ++ ...tsCompanyMemorandumOfAssociationOptions.cs | 32 ++ ...ocumentsCompanyMinisterialDecreeOptions.cs | 32 ++ ...sCompanyRegistrationVerificationOptions.cs | 32 ++ ...ocumentsCompanyTaxIdVerificationOptions.cs | 32 ++ ...IdentityBusinessDetailsDocumentsOptions.cs | 106 +++++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...ailsDocumentsPrimaryVerificationOptions.cs | 30 ++ ...ssDetailsDocumentsProofOfAddressOptions.cs | 32 ++ ...ailsDocumentsProofOfRegistrationOptions.cs | 32 ++ ...oofOfUltimateBeneficialOwnershipOptions.cs | 32 ++ ...eIdentityBusinessDetailsIdNumberOptions.cs | 60 +++ ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ++ ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 20 + ...untUpdateIdentityBusinessDetailsOptions.cs | 123 ++++++ ...tyBusinessDetailsScriptAddressesOptions.cs | 29 ++ ...tyBusinessDetailsScriptNamesKanaOptions.cs | 20 + ...yBusinessDetailsScriptNamesKanjiOptions.cs | 20 + ...entityBusinessDetailsScriptNamesOptions.cs | 29 ++ ...ntityIndividualAdditionalAddressOptions.cs | 84 ++++ ...IdentityIndividualAdditionalNameOptions.cs | 48 ++ ...ateIdentityIndividualDateOfBirthOptions.cs | 38 ++ ...ualDocumentsCompanyAuthorizationOptions.cs | 32 ++ ...pdateIdentityIndividualDocumentsOptions.cs | 59 +++ ...ntityIndividualDocumentsPassportOptions.cs | 32 ++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...dualDocumentsPrimaryVerificationOptions.cs | 30 ++ ...tsSecondaryVerificationFrontBackOptions.cs | 35 ++ ...alDocumentsSecondaryVerificationOptions.cs | 30 ++ ...eIdentityIndividualDocumentsVisaOptions.cs | 32 ++ ...UpdateIdentityIndividualIdNumberOptions.cs | 44 ++ .../AccountUpdateIdentityIndividualOptions.cs | 169 +++++++ ...teIdentityIndividualRelationshipOptions.cs | 59 +++ ...dentityIndividualScriptAddressesOptions.cs | 29 ++ ...dentityIndividualScriptNamesKanaOptions.cs | 29 ++ ...entityIndividualScriptNamesKanjiOptions.cs | 29 ++ ...ateIdentityIndividualScriptNamesOptions.cs | 29 ++ .../Accounts/AccountUpdateIdentityOptions.cs | 63 +++ .../V2/Core/Accounts/AccountUpdateOptions.cs | 102 +++++ ...rsonTokenCreateAdditionalAddressOptions.cs | 84 ++++ .../PersonTokenCreateAdditionalNameOptions.cs | 48 ++ ...eAdditionalTermsOfServiceAccountOptions.cs | 20 + ...enCreateAdditionalTermsOfServiceOptions.cs | 21 + .../PersonTokenCreateDateOfBirthOptions.cs | 38 ++ ...ateDocumentsCompanyAuthorizationOptions.cs | 32 ++ .../PersonTokenCreateDocumentsOptions.cs | 59 +++ ...rsonTokenCreateDocumentsPassportOptions.cs | 32 ++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...eateDocumentsPrimaryVerificationOptions.cs | 30 ++ ...tsSecondaryVerificationFrontBackOptions.cs | 35 ++ ...teDocumentsSecondaryVerificationOptions.cs | 30 ++ .../PersonTokenCreateDocumentsVisaOptions.cs | 32 ++ .../PersonTokenCreateIdNumberOptions.cs | 44 ++ .../PersonTokens/PersonTokenCreateOptions.cs | 177 ++++++++ .../PersonTokenCreateRelationshipOptions.cs | 83 ++++ ...PersonTokenCreateScriptAddressesOptions.cs | 29 ++ ...PersonTokenCreateScriptNamesKanaOptions.cs | 29 ++ ...ersonTokenCreateScriptNamesKanjiOptions.cs | 29 ++ .../PersonTokenCreateScriptNamesOptions.cs | 29 ++ .../PersonTokens/PersonTokenGetOptions.cs | 7 + .../PersonTokens/PersonTokenService.cs | 54 +++ .../PersonCreateAdditionalAddressOptions.cs | 84 ++++ .../PersonCreateAdditionalNameOptions.cs | 48 ++ ...eAdditionalTermsOfServiceAccountOptions.cs | 42 ++ ...onCreateAdditionalTermsOfServiceOptions.cs | 20 + .../Persons/PersonCreateDateOfBirthOptions.cs | 38 ++ ...ateDocumentsCompanyAuthorizationOptions.cs | 32 ++ .../Persons/PersonCreateDocumentsOptions.cs | 59 +++ .../PersonCreateDocumentsPassportOptions.cs | 32 ++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...eateDocumentsPrimaryVerificationOptions.cs | 30 ++ ...tsSecondaryVerificationFrontBackOptions.cs | 35 ++ ...teDocumentsSecondaryVerificationOptions.cs | 30 ++ .../PersonCreateDocumentsVisaOptions.cs | 32 ++ .../Persons/PersonCreateIdNumberOptions.cs | 44 ++ .../Accounts/Persons/PersonCreateOptions.cs | 186 ++++++++ .../PersonCreateRelationshipOptions.cs | 83 ++++ .../PersonCreateScriptAddressesOptions.cs | 29 ++ .../PersonCreateScriptNamesKanaOptions.cs | 29 ++ .../PersonCreateScriptNamesKanjiOptions.cs | 29 ++ .../Persons/PersonCreateScriptNamesOptions.cs | 29 ++ .../Accounts/Persons/PersonDeleteOptions.cs | 7 + .../Core/Accounts/Persons/PersonGetOptions.cs | 7 + .../Accounts/Persons/PersonListOptions.cs | 7 + .../V2/Core/Accounts/Persons/PersonService.cs | 121 +++++ .../PersonUpdateAdditionalAddressOptions.cs | 84 ++++ .../PersonUpdateAdditionalNameOptions.cs | 48 ++ ...eAdditionalTermsOfServiceAccountOptions.cs | 42 ++ ...onUpdateAdditionalTermsOfServiceOptions.cs | 20 + .../Persons/PersonUpdateDateOfBirthOptions.cs | 38 ++ ...ateDocumentsCompanyAuthorizationOptions.cs | 32 ++ .../Persons/PersonUpdateDocumentsOptions.cs | 59 +++ .../PersonUpdateDocumentsPassportOptions.cs | 32 ++ ...entsPrimaryVerificationFrontBackOptions.cs | 35 ++ ...dateDocumentsPrimaryVerificationOptions.cs | 30 ++ ...tsSecondaryVerificationFrontBackOptions.cs | 35 ++ ...teDocumentsSecondaryVerificationOptions.cs | 30 ++ .../PersonUpdateDocumentsVisaOptions.cs | 32 ++ .../Persons/PersonUpdateIdNumberOptions.cs | 44 ++ .../Accounts/Persons/PersonUpdateOptions.cs | 186 ++++++++ .../PersonUpdateRelationshipOptions.cs | 83 ++++ .../PersonUpdateScriptAddressesOptions.cs | 29 ++ .../PersonUpdateScriptNamesKanaOptions.cs | 29 ++ .../PersonUpdateScriptNamesKanjiOptions.cs | 29 ++ .../Persons/PersonUpdateScriptNamesOptions.cs | 29 ++ src/Stripe.net/Services/V2/CoreService.cs | 12 + .../WebhookEndpointCreateOptions.cs | 5 +- .../WebhookEndpointUpdateOptions.cs | 2 +- .../Services/GeneratedExamplesTest.cs | 304 ++++++++++++- 1296 files changed, 30389 insertions(+), 1825 deletions(-) create mode 100644 src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPayto.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPayto.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptions.cs create mode 100644 src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPayto.cs create mode 100644 src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPayto.cs create mode 100644 src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs create mode 100644 src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsPayto.cs create mode 100644 src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs create mode 100644 src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallmentsPlan.cs create mode 100644 src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPayto.cs create mode 100644 src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPayto.cs create mode 100644 src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptions.cs create mode 100644 src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPayto.cs create mode 100644 src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreference.cs create mode 100644 src/Stripe.net/Entities/PaymentMethods/PaymentMethodPayto.cs create mode 100644 src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs create mode 100644 src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallmentsPlan.cs create mode 100644 src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPayto.cs create mode 100644 src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsPayto.cs create mode 100644 src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPayto.cs create mode 100644 src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptions.cs create mode 100644 src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPayto.cs create mode 100644 src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboardingCollectionOptions.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdateCollectionOptions.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersonTokens/AccountPersonToken.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPerson.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalName.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfService.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfServiceAccount.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDateOfBirth.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocuments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsCompanyAuthorization.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPassport.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerificationFrontBack.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerificationFrontBack.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsVisa.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddresses.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKana.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKanji.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNames.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKana.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKanji.cs create mode 100644 src/Stripe.net/Entities/V2/Core/AccountTokens/AccountToken.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/Account.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomer.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTax.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceCustomField.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceRendering.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilities.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTax.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShipping.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBacsDebitPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBranding.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24Payments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalance.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayouts.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupport.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupportHours.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptor.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKana.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKanji.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSepaDebitPayments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantStatementDescriptor.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupport.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipient.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilities.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalance.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayouts.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsProfile.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirements.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntry.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryError.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpact.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapabilityDeadline.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryMinimumDeadline.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryReference.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryRequestedReason.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummary.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummaryMinimumDeadline.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestations.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsRepresentativeDeclaration.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyLicense.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMinisterialDecree.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyRegistrationVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyTaxIdVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfRegistration.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddresses.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNames.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKana.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKanji.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalName.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfService.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDateOfBirth.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocuments.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsCompanyAuthorization.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPassport.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerificationFrontBack.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerification.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerificationFrontBack.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsVisa.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddresses.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNames.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKana.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKanji.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirements.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntry.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryError.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpact.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapabilityDeadline.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryMinimumDeadline.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryReference.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryRequestedReason.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummary.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs create mode 100644 src/Stripe.net/Services/Accounts/AccountCapabilitiesPaytoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationSignerOptions.cs create mode 100644 src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipSignerOptions.cs create mode 100644 src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptionsOptions.cs create mode 100644 src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoOptions.cs create mode 100644 src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs create mode 100644 src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions.cs create mode 100644 src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataPaytoOptions.cs create mode 100644 src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs create mode 100644 src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoOptions.cs create mode 100644 src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreferenceOptions.cs create mode 100644 src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoOptions.cs create mode 100644 src/Stripe.net/Services/PaymentMethods/PaymentMethodPaytoOptions.cs create mode 100644 src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataPaytoOptions.cs create mode 100644 src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs create mode 100644 src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoOptions.cs create mode 100644 src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs create mode 100644 src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions.cs create mode 100644 src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataPaytoOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkService.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsDirectorshipDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOwnershipDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsPersonsProvidedOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsRepresentativeDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceAccountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalNameOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDateOfBirthOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPassportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsVisaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenGetOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenService.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerAutomaticIndirectTaxOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceRenderingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerShippingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBacsDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBrandingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsDeclineOnOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantStatementDescriptorOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSupportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsProfileOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsResponsibilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsDirectorshipDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOwnershipDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsPersonsProvidedOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsRepresentativeDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceAccountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalNameOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDateOfBirthOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPassportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsVisaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerAutomaticIndirectTaxOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceRenderingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerShippingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBacsDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBrandingOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsDeclineOnOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantStatementDescriptorOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSupportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsProfileOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsResponsibilitiesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsDirectorshipDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOwnershipDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsPersonsProvidedOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsRepresentativeDeclarationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalNameOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDateOfBirthOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPassportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsVisaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalNameOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceAccountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDateOfBirthOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsCompanyAuthorizationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPassportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsVisaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenGetOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalNameOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceAccountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDateOfBirthOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsCompanyAuthorizationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPassportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsVisaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonDeleteOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonGetOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonListOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonService.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalNameOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceAccountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDateOfBirthOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsCompanyAuthorizationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPassportOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationFrontBackOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsVisaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptAddressesOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanaOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanjiOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesOptions.cs diff --git a/API_VERSION b/API_VERSION index 3304332752..faffe73c57 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -e62524b587909bee231a15ce0dc618f1d04f69a4 \ No newline at end of file +ee56c4b73d856e48409065f8d7e7c82c2e805c38 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ea1ecdee17..abf60f2064 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2124 \ No newline at end of file +v2143 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index fe194fbea8..a79674f706 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,7 +3,7 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2025-11-17.clover"; + public const string Current = "2025-12-15.clover"; public const string CurrentMajor = "clover"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountLinks/AccountLink.cs b/src/Stripe.net/Entities/AccountLinks/AccountLink.cs index 86581ad248..373a3ef476 100644 --- a/src/Stripe.net/Entities/AccountLinks/AccountLink.cs +++ b/src/Stripe.net/Entities/AccountLinks/AccountLink.cs @@ -13,7 +13,7 @@ namespace Stripe /// permission to access Stripe-hosted applications, such as Connect Onboarding. /// /// Related guide: Connect Onboarding. + /// href="https://docs.stripe.com/connect/custom/hosted-onboarding">Connect Onboarding. /// public class AccountLink : StripeEntity, IHasObject { diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSession.cs b/src/Stripe.net/Entities/AccountSessions/AccountSession.cs index 6fdf220ecd..7e71ddcdd4 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSession.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSession.cs @@ -17,7 +17,7 @@ namespace Stripe /// relatively quickly, and cannot be used more than once. /// /// Related guide: Connect + /// href="https://docs.stripe.com/connect/get-started-connect-embedded-components">Connect /// embedded components. /// public class AccountSession : StripeEntity, IHasObject @@ -49,7 +49,7 @@ public class AccountSession : StripeEntity, IHasObject /// Make sure that you have TLS enabled on any page that includes the client secret. /// /// Refer to our docs to setup + /// href="https://docs.stripe.com/connect/get-started-connect-embedded-components">setup /// Connect embedded components and learn about how client_secret should be /// handled. /// diff --git a/src/Stripe.net/Entities/Accounts/Account.cs b/src/Stripe.net/Entities/Accounts/Account.cs index 3e4d3c1d1e..64e0929cf2 100644 --- a/src/Stripe.net/Entities/Accounts/Account.cs +++ b/src/Stripe.net/Entities/Accounts/Account.cs @@ -206,7 +206,7 @@ public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject, public Person Individual { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs index 15b92b013a..ad5deb42a8 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs @@ -480,6 +480,17 @@ public class AccountCapabilities : StripeEntity #endif public string PaynowPayments { get; set; } + /// + /// The status of the PayTo capability of the account, or whether the account can directly + /// process PayTo charges. + /// One of: active, inactive, or pending. + /// + [JsonProperty("payto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto_payments")] +#endif + public string PaytoPayments { get; set; } + /// /// The status of the pix payments capability of the account, or whether the account can /// directly process pix charges. diff --git a/src/Stripe.net/Entities/Accounts/AccountCompany.cs b/src/Stripe.net/Entities/Accounts/AccountCompany.cs index a7e851cfe1..24c8a32c92 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCompany.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCompany.cs @@ -35,7 +35,7 @@ public class AccountCompany : StripeEntity /// /// Whether the company's directors have been provided. This Boolean will be true if /// you've manually indicated that all directors are provided via the + /// href="https://docs.stripe.com/api/accounts/update#update_account-company-directors_provided">the /// directors_provided parameter. /// [JsonProperty("directors_provided")] @@ -57,7 +57,7 @@ public class AccountCompany : StripeEntity /// /// Whether the company's executives have been provided. This Boolean will be true if /// you've manually indicated that all executives are provided via the + /// href="https://docs.stripe.com/api/accounts/update#update_account-company-executives_provided">the /// executives_provided parameter, or if Stripe determined that sufficient /// executives were provided. /// @@ -124,7 +124,7 @@ public class AccountCompany : StripeEntity /// /// Whether the company's owners have been provided. This Boolean will be true if /// you've manually indicated that all owners are provided via the + /// href="https://docs.stripe.com/api/accounts/update#update_account-company-owners_provided">the /// owners_provided parameter, or if Stripe determined that sufficient owners /// were provided. Stripe determines ownership requirements using both the number of owners /// provided and their total percent ownership (calculated by adding the @@ -192,7 +192,7 @@ public class AccountCompany : StripeEntity /// available for accounts where controller.requirement_collection /// is stripe. See Business + /// href="https://docs.stripe.com/connect/identity-verification#business-structure">Business /// structure for more details. /// One of: free_zone_establishment, free_zone_llc, /// government_instrumentality, governmental_unit, diff --git a/src/Stripe.net/Entities/Accounts/AccountCompanyVerificationDocument.cs b/src/Stripe.net/Entities/Accounts/AccountCompanyVerificationDocument.cs index bb9248b75e..c72f08fe0f 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCompanyVerificationDocument.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCompanyVerificationDocument.cs @@ -16,10 +16,10 @@ public class AccountCompanyVerificationDocument : StripeEntity /// (ID of the File) - /// The back of a document returned by a file upload with a purpose - /// value of additional_verification. Note that additional_verification files - /// are not downloadable. + /// The back of a document returned by a file + /// upload with a purpose value of additional_verification. Note that + /// additional_verification files are not downloadable. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -33,10 +33,10 @@ public string BackId /// /// (Expanded) - /// The back of a document returned by a file upload with a purpose - /// value of additional_verification. Note that additional_verification files - /// are not downloadable. + /// The back of a document returned by a file + /// upload with a purpose value of additional_verification. Note that + /// additional_verification files are not downloadable. /// /// For more information, see the expand documentation. /// @@ -87,10 +87,10 @@ public File Back /// /// (ID of the File) - /// The front of a document returned by a file upload with a purpose - /// value of additional_verification. Note that additional_verification files - /// are not downloadable. + /// The front of a document returned by a file + /// upload with a purpose value of additional_verification. Note that + /// additional_verification files are not downloadable. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -104,10 +104,10 @@ public string FrontId /// /// (Expanded) - /// The front of a document returned by a file upload with a purpose - /// value of additional_verification. Note that additional_verification files - /// are not downloadable. + /// The front of a document returned by a file + /// upload with a purpose value of additional_verification. Note that + /// additional_verification files are not downloadable. /// /// For more information, see the expand documentation. /// diff --git a/src/Stripe.net/Entities/Accounts/AccountController.cs b/src/Stripe.net/Entities/Accounts/AccountController.cs index fe8273fb13..490a914080 100644 --- a/src/Stripe.net/Entities/Accounts/AccountController.cs +++ b/src/Stripe.net/Entities/Accounts/AccountController.cs @@ -17,7 +17,7 @@ public class AccountController : StripeEntity /// /// true if the Connect application retrieving the resource controls the account and /// can therefore exercise platform + /// href="https://docs.stripe.com/connect/platform-controls-for-standard-accounts">platform /// controls. Otherwise, this field is null. /// [JsonProperty("is_controller")] diff --git a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs index e1b42b5480..f8be29fae6 100644 --- a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs +++ b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs @@ -12,8 +12,11 @@ namespace Stripe public class AccountFutureRequirements : StripeEntity { /// - /// Fields that are due and can be satisfied by providing the corresponding alternative - /// fields instead. + /// Fields that are due and can be resolved by providing the corresponding alternative + /// fields instead. Many alternatives can list the same original_fields_due, and any + /// of these alternatives can serve as a pathway for attempting to resolve the fields again. + /// Re-providing original_fields_due also serves as a pathway for attempting to + /// resolve the fields again. /// [JsonProperty("alternatives")] #if NET6_0_OR_GREATER @@ -36,7 +39,7 @@ public class AccountFutureRequirements : StripeEntity public DateTime? CurrentDeadline { get; set; } /// - /// Fields that need to be collected to keep the account enabled. If not collected by + /// Fields that need to be resolved to keep the account enabled. If not resolved by /// future_requirements[current_deadline], these fields will transition to the main /// requirements hash. /// @@ -62,8 +65,8 @@ public class AccountFutureRequirements : StripeEntity public string DisabledReason { get; set; } /// - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -82,10 +85,9 @@ public class AccountFutureRequirements : StripeEntity public List EventuallyDue { get; set; } /// - /// Fields that weren't collected by requirements.current_deadline. These fields need - /// to be collected to enable the capability on the account. New fields will never appear - /// here; future_requirements.past_due will always be a subset of - /// requirements.past_due. + /// Fields that haven't been resolved by requirements.current_deadline. These fields + /// need to be resolved to enable the capability on the account. + /// future_requirements.past_due is a subset of requirements.past_due. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -94,12 +96,11 @@ public class AccountFutureRequirements : StripeEntity public List PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due or currently_due. Fields might - /// appear in eventually_due or currently_due and in - /// pending_verification if verification fails but another verification is still - /// pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsAlternative.cs b/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsAlternative.cs index 0cafc95438..e3d70132b1 100644 --- a/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsAlternative.cs +++ b/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsAlternative.cs @@ -10,7 +10,7 @@ namespace Stripe public class AccountFutureRequirementsAlternative : StripeEntity { /// - /// Fields that can be provided to satisfy all fields in original_fields_due. + /// Fields that can be provided to resolve all fields in original_fields_due. /// [JsonProperty("alternative_fields_due")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class AccountFutureRequirementsAlternative : StripeEntity AlternativeFieldsDue { get; set; } /// - /// Fields that are due and can be satisfied by providing all fields in + /// Fields that are due and can be resolved by providing all fields in /// alternative_fields_due. /// [JsonProperty("original_fields_due")] diff --git a/src/Stripe.net/Entities/Accounts/AccountGroups.cs b/src/Stripe.net/Entities/Accounts/AccountGroups.cs index 5e4eb86f5b..66bdb651fc 100644 --- a/src/Stripe.net/Entities/Accounts/AccountGroups.cs +++ b/src/Stripe.net/Entities/Accounts/AccountGroups.cs @@ -11,7 +11,7 @@ public class AccountGroups : StripeEntity /// /// The group the account is in to determine their payments pricing, and null if the account /// is on customized pricing. See the Platform pricing + /// href="https://docs.stripe.com/connect/platform-pricing-tools">See the Platform pricing /// tool documentation for details. /// [JsonProperty("payments_pricing")] diff --git a/src/Stripe.net/Entities/Accounts/AccountRequirements.cs b/src/Stripe.net/Entities/Accounts/AccountRequirements.cs index f2a5291693..5a2f006d36 100644 --- a/src/Stripe.net/Entities/Accounts/AccountRequirements.cs +++ b/src/Stripe.net/Entities/Accounts/AccountRequirements.cs @@ -12,8 +12,11 @@ namespace Stripe public class AccountRequirements : StripeEntity { /// - /// Fields that are due and can be satisfied by providing the corresponding alternative - /// fields instead. + /// Fields that are due and can be resolved by providing the corresponding alternative + /// fields instead. Many alternatives can list the same original_fields_due, and any + /// of these alternatives can serve as a pathway for attempting to resolve the fields again. + /// Re-providing original_fields_due also serves as a pathway for attempting to + /// resolve the fields again. /// [JsonProperty("alternatives")] #if NET6_0_OR_GREATER @@ -35,9 +38,9 @@ public class AccountRequirements : StripeEntity public DateTime? CurrentDeadline { get; set; } /// - /// Fields that need to be collected to keep the account enabled. If not collected by - /// current_deadline, these fields appear in past_due as well, and the account - /// is disabled. + /// Fields that need to be resolved to keep the account enabled. If not resolved by + /// current_deadline, these fields will appear in past_due as well, and the + /// account is disabled. /// [JsonProperty("currently_due")] #if NET6_0_OR_GREATER @@ -47,7 +50,7 @@ public class AccountRequirements : StripeEntity /// /// If the account is disabled, this enum describes why. Learn more about + /// href="https://docs.stripe.com/connect/handling-api-verification">Learn more about /// handling verification issues. /// One of: action_required.requested_capabilities, listed, other, /// platform_paused, rejected.fraud, rejected.incomplete_verification, @@ -63,8 +66,8 @@ public class AccountRequirements : StripeEntity public string DisabledReason { get; set; } /// - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -83,8 +86,8 @@ public class AccountRequirements : StripeEntity public List EventuallyDue { get; set; } /// - /// Fields that weren't collected by current_deadline. These fields need to be - /// collected to enable the account. + /// Fields that haven't been resolved by current_deadline. These fields need to be + /// resolved to enable the account. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -93,12 +96,11 @@ public class AccountRequirements : StripeEntity public List PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due, currently_due, or - /// past_due. Fields might appear in eventually_due, currently_due, or - /// past_due and in pending_verification if verification fails but another - /// verification is still pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Accounts/AccountRequirementsAlternative.cs b/src/Stripe.net/Entities/Accounts/AccountRequirementsAlternative.cs index 1a342f531d..34370f3eab 100644 --- a/src/Stripe.net/Entities/Accounts/AccountRequirementsAlternative.cs +++ b/src/Stripe.net/Entities/Accounts/AccountRequirementsAlternative.cs @@ -10,7 +10,7 @@ namespace Stripe public class AccountRequirementsAlternative : StripeEntity { /// - /// Fields that can be provided to satisfy all fields in original_fields_due. + /// Fields that can be provided to resolve all fields in original_fields_due. /// [JsonProperty("alternative_fields_due")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class AccountRequirementsAlternative : StripeEntity AlternativeFieldsDue { get; set; } /// - /// Fields that are due and can be satisfied by providing all fields in + /// Fields that are due and can be resolved by providing all fields in /// alternative_fields_due. /// [JsonProperty("original_fields_due")] diff --git a/src/Stripe.net/Entities/ApplicationFeeRefunds/ApplicationFeeRefund.cs b/src/Stripe.net/Entities/ApplicationFeeRefunds/ApplicationFeeRefund.cs index f1665caa38..d6b63c5c9a 100644 --- a/src/Stripe.net/Entities/ApplicationFeeRefunds/ApplicationFeeRefund.cs +++ b/src/Stripe.net/Entities/ApplicationFeeRefunds/ApplicationFeeRefund.cs @@ -15,7 +15,7 @@ namespace Stripe /// account from which the fee was originally collected. /// /// Related guide: Refunding + /// href="https://docs.stripe.com/connect/destination-charges#refunding-app-fee">Refunding /// application fees. /// #if NET6_0_OR_GREATER @@ -155,7 +155,7 @@ public ApplicationFee Fee #endregion /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Apps/Secrets/Secret.cs b/src/Stripe.net/Entities/Apps/Secrets/Secret.cs index a9120c282b..4e2b53a939 100644 --- a/src/Stripe.net/Entities/Apps/Secrets/Secret.cs +++ b/src/Stripe.net/Entities/Apps/Secrets/Secret.cs @@ -24,7 +24,7 @@ namespace Stripe.Apps /// different users might have different permissions. /// /// Related guide: Store data + /// href="https://docs.stripe.com/stripe-apps/store-auth-data-custom-objects">Store data /// between page reloads. /// public class Secret : StripeEntity, IHasId, IHasObject diff --git a/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPaymentsPayouts.cs b/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPaymentsPayouts.cs index 6923db6a27..ecc6b375d5 100644 --- a/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPaymentsPayouts.cs +++ b/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPaymentsPayouts.cs @@ -24,7 +24,7 @@ public class BalanceSettingsPaymentsPayouts : StripeEntity /// Details on when funds from charges are available, and when they are paid out to an /// external account. See our Setting Bank + /// href="https://docs.stripe.com/connect/bank-transfers#payout-information">Setting Bank /// and Debit Card Payouts documentation for details. /// [JsonProperty("schedule")] diff --git a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs index b99409bb92..affa9ba51e 100644 --- a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs +++ b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs @@ -14,7 +14,7 @@ namespace Stripe /// them for every type of transaction that enters or leaves your Stripe account balance. /// /// Related guide: Balance transaction + /// href="https://docs.stripe.com/reports/balance-transaction-types">Balance transaction /// types. /// #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Balances/Balance.cs b/src/Stripe.net/Entities/Balances/Balance.cs index d1d17d87f8..6f151e7335 100644 --- a/src/Stripe.net/Entities/Balances/Balance.cs +++ b/src/Stripe.net/Entities/Balances/Balance.cs @@ -13,9 +13,9 @@ namespace Stripe /// /// The top-level available and pending comprise your "payments balance.". /// - /// Related guide: Balances and + /// Related guide: Balances and /// settlement time, Understanding Connect account + /// href="https://docs.stripe.com/connect/account-balances">Understanding Connect account /// balances. /// public class Balance : StripeEntity, IHasObject @@ -31,8 +31,8 @@ public class Balance : StripeEntity, IHasObject /// /// Available funds that you can transfer or pay out automatically by Stripe or explicitly - /// through the Transfers API or Payouts API. You can find the available + /// through the Transfers API or Payouts API. You can find the available /// balance for each currency and payment type in the source_types property. /// [JsonProperty("available")] diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccount.cs b/src/Stripe.net/Entities/BankAccounts/BankAccount.cs index 27bb0dec24..d3515b571c 100644 --- a/src/Stripe.net/Entities/BankAccounts/BankAccount.cs +++ b/src/Stripe.net/Entities/BankAccounts/BankAccount.cs @@ -232,7 +232,7 @@ public Customer Customer /// /// Information about the upcoming new + /// href="https://docs.stripe.com/connect/custom-accounts/future-requirements">upcoming new /// requirements for the bank account, including what information needs to be collected, /// and by when. /// @@ -252,7 +252,7 @@ public Customer Customer public string Last4 { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirements.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirements.cs index 38eae8556d..e96dd64880 100644 --- a/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirements.cs +++ b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirements.cs @@ -10,8 +10,8 @@ namespace Stripe public class BankAccountFutureRequirements : StripeEntity { /// - /// Fields that need to be collected to keep the external account enabled. If not collected - /// by current_deadline, these fields appear in past_due as well, and the + /// Fields that need to be resolved to keep the external account enabled. If not resolved by + /// current_deadline, these fields will appear in past_due as well, and the /// account is disabled. /// [JsonProperty("currently_due")] @@ -21,8 +21,8 @@ public class BankAccountFutureRequirements : StripeEntity CurrentlyDue { get; set; } /// - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -31,8 +31,8 @@ public class BankAccountFutureRequirements : StripeEntity Errors { get; set; } /// - /// Fields that weren't collected by current_deadline. These fields need to be - /// collected to enable the external account. + /// Fields that haven't been resolved by current_deadline. These fields need to be + /// resolved to enable the external account. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -41,12 +41,11 @@ public class BankAccountFutureRequirements : StripeEntity PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due, currently_due, or - /// past_due. Fields might appear in eventually_due, currently_due, or - /// past_due and in pending_verification if verification fails but another - /// verification is still pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs index 4399b335fa..3916703acc 100644 --- a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs +++ b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs @@ -10,8 +10,8 @@ namespace Stripe public class BankAccountRequirements : StripeEntity { /// - /// Fields that need to be collected to keep the external account enabled. If not collected - /// by current_deadline, these fields appear in past_due as well, and the + /// Fields that need to be resolved to keep the external account enabled. If not resolved by + /// current_deadline, these fields will appear in past_due as well, and the /// account is disabled. /// [JsonProperty("currently_due")] @@ -21,8 +21,8 @@ public class BankAccountRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -31,8 +31,8 @@ public class BankAccountRequirements : StripeEntity public List Errors { get; set; } /// - /// Fields that weren't collected by current_deadline. These fields need to be - /// collected to enable the external account. + /// Fields that haven't been resolved by current_deadline. These fields need to be + /// resolved to enable the external account. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -41,12 +41,11 @@ public class BankAccountRequirements : StripeEntity public List PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due, currently_due, or - /// past_due. Fields might appear in eventually_due, currently_due, or - /// past_due and in pending_verification if verification fails but another - /// verification is still pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Billing/Alerts/Alert.cs b/src/Stripe.net/Entities/Billing/Alerts/Alert.cs index 79dfe66d02..d95d75418e 100644 --- a/src/Stripe.net/Entities/Billing/Alerts/Alert.cs +++ b/src/Stripe.net/Entities/Billing/Alerts/Alert.cs @@ -71,7 +71,7 @@ public class Alert : StripeEntity, IHasId, IHasObject /// /// Encapsulates configuration of the alert to monitor usage on a specific Billing Meter. + /// href="https://docs.stripe.com/api/billing/meter">Billing Meter. /// [JsonProperty("usage_threshold")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs index b9a636aba1..0719e8fbb5 100644 --- a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs +++ b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs @@ -76,6 +76,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The account the balance is for. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Has the value true if the object exists in live mode or the value false if /// the object exists in test mode. diff --git a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs index 1b95837bad..555b33a82a 100644 --- a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs +++ b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs @@ -115,6 +115,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// ID of the account representing the customer receiving the billing credits. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The time when the billing credits become effective-when they're eligible for use. /// @@ -149,7 +158,7 @@ public Customer Customer public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs b/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs index b4ea7a80dd..ae25719700 100644 --- a/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs +++ b/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs @@ -70,7 +70,7 @@ public class MeterEvent : StripeEntity, IHasObject /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// payload. + /// href="https://docs.stripe.com/billing/subscriptions/usage-based/meters/configure#meter-configuration-attributes">payload. /// [JsonProperty("payload")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs b/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs index d295989483..05749774ea 100644 --- a/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs +++ b/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs @@ -108,7 +108,7 @@ public Application Application /// /// The default URL to redirect customers to when they click on the portal's link to return /// to your website. This can be overriden + /// href="https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url">overriden /// when creating the session. /// [JsonProperty("default_return_url")] @@ -151,7 +151,7 @@ public Application Application public ConfigurationLoginPage LoginPage { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdate.cs b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdate.cs index 59d0e50567..dbfee22c07 100644 --- a/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdate.cs +++ b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdate.cs @@ -9,6 +9,20 @@ namespace Stripe.BillingPortal public class ConfigurationFeaturesSubscriptionUpdate : StripeEntity { + /// + /// Determines the value to use for the billing cycle anchor on subscription updates. Valid + /// values are now or unchanged, and the default value is unchanged. + /// Setting the value to now resets the subscription's billing cycle anchor to the + /// current time (in UTC). For more information, see the billing cycle documentation. + /// One of: now, or unchanged. + /// + [JsonProperty("billing_cycle_anchor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_cycle_anchor")] +#endif + public string BillingCycleAnchor { get; set; } + /// /// The types of subscription updates that are supported for items listed in the /// products attribute. When empty, subscriptions are not updateable. diff --git a/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationLoginPage.cs b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationLoginPage.cs index df04f9bd62..79bb6a21d9 100644 --- a/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationLoginPage.cs +++ b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationLoginPage.cs @@ -23,7 +23,7 @@ public class ConfigurationLoginPage : StripeEntity /// /// A shareable URL to the hosted portal login page. Your customers will be able to log in /// with their email and + /// href="https://docs.stripe.com/api/customers/object#customer_object-email">email and /// receive a link to their customer portal. /// [JsonProperty("url")] diff --git a/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs b/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs index 4dc22184ee..31c4b0448f 100644 --- a/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs +++ b/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs @@ -107,9 +107,18 @@ public Configuration Configuration #endif public string Customer { get; set; } + /// + /// The ID of the account for this session. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Information about a specific flow for the customer to go through. See the docs to learn + /// href="https://docs.stripe.com/customer-management/portal-deep-links">docs to learn /// more about using customer portal deep links and flows. /// [JsonProperty("flow")] @@ -149,9 +158,9 @@ public Configuration Configuration /// The account for which the session was created on behalf of. When specified, only /// subscriptions and invoices with this on_behalf_of account appear in the portal. /// For more information, see the docs. + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant">docs. /// Use the Accounts + /// href="https://docs.stripe.com/api/accounts/object#account_object-settings-branding">Accounts /// API to modify the on_behalf_of account's branding settings, which the portal /// displays. /// diff --git a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs index b0b802ae7c..4fa0945436 100644 --- a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs +++ b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs @@ -19,7 +19,7 @@ public class SessionFlowSubscriptionUpdateConfirm : StripeEntity Discounts { get; set; } /// - /// The subscription item to be + /// The subscription item to be /// updated through this flow. Currently, only up to one may be specified and subscriptions /// with multiple items are not updatable. /// diff --git a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirmItem.cs b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirmItem.cs index 354f332c1a..47d07e8b14 100644 --- a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirmItem.cs +++ b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirmItem.cs @@ -10,7 +10,7 @@ public class SessionFlowSubscriptionUpdateConfirmItem : StripeEntity /// The ID of the subscription + /// href="https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-id">subscription /// item to be updated. /// [JsonProperty("id")] @@ -22,7 +22,7 @@ public class SessionFlowSubscriptionUpdateConfirmItem : StripeEntity /// The price the customer should subscribe to through this flow. The price must also be /// included in the configuration's features.subscription_update.products. + /// href="https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products">features.subscription_update.products. /// [JsonProperty("price")] #if NET6_0_OR_GREATER @@ -31,7 +31,7 @@ public class SessionFlowSubscriptionUpdateConfirmItem : StripeEntity - /// Quantity for this item + /// Quantity for this item /// that the customer should subscribe to through this flow. /// [JsonProperty("quantity")] diff --git a/src/Stripe.net/Entities/Capabilities/Capability.cs b/src/Stripe.net/Entities/Capabilities/Capability.cs index 7753c69558..aa987890ae 100644 --- a/src/Stripe.net/Entities/Capabilities/Capability.cs +++ b/src/Stripe.net/Entities/Capabilities/Capability.cs @@ -11,7 +11,7 @@ namespace Stripe /// /// This is an object representing a capability for a Stripe account. /// - /// Related guide: Account + /// Related guide: Account /// capabilities. /// #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs index 6f01dc3fa2..efc717095e 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs @@ -12,8 +12,11 @@ namespace Stripe public class CapabilityFutureRequirements : StripeEntity { /// - /// Fields that are due and can be satisfied by providing the corresponding alternative - /// fields instead. + /// Fields that are due and can be resolved by providing the corresponding alternative + /// fields instead. Multiple alternatives can reference the same original_fields_due. + /// When this happens, any of these alternatives can serve as a pathway for attempting to + /// resolve the fields. Additionally, providing original_fields_due again also serves + /// as a pathway for attempting to resolve the fields. /// [JsonProperty("alternatives")] #if NET6_0_OR_GREATER @@ -36,7 +39,7 @@ public class CapabilityFutureRequirements : StripeEntity - /// Fields that need to be collected to keep the capability enabled. If not collected by + /// Fields that need to be resolved to keep the capability enabled. If not resolved by /// future_requirements[current_deadline], these fields will transition to the main /// requirements hash. /// @@ -62,8 +65,8 @@ public class CapabilityFutureRequirements : StripeEntity - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -82,10 +85,9 @@ public class CapabilityFutureRequirements : StripeEntity EventuallyDue { get; set; } /// - /// Fields that weren't collected by requirements.current_deadline. These fields need - /// to be collected to enable the capability on the account. New fields will never appear - /// here; future_requirements.past_due will always be a subset of - /// requirements.past_due. + /// Fields that haven't been resolved by requirements.current_deadline. These fields + /// need to be resolved to enable the capability on the account. + /// future_requirements.past_due is a subset of requirements.past_due. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -94,12 +96,11 @@ public class CapabilityFutureRequirements : StripeEntity PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due or currently_due. Fields might - /// appear in eventually_due or currently_due and in - /// pending_verification if verification fails but another verification is still - /// pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsAlternative.cs b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsAlternative.cs index 5804eb74ef..41b7b1d423 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsAlternative.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsAlternative.cs @@ -10,7 +10,7 @@ namespace Stripe public class CapabilityFutureRequirementsAlternative : StripeEntity { /// - /// Fields that can be provided to satisfy all fields in original_fields_due. + /// Fields that can be provided to resolve all fields in original_fields_due. /// [JsonProperty("alternative_fields_due")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class CapabilityFutureRequirementsAlternative : StripeEntity AlternativeFieldsDue { get; set; } /// - /// Fields that are due and can be satisfied by providing all fields in + /// Fields that are due and can be resolved by providing all fields in /// alternative_fields_due. /// [JsonProperty("original_fields_due")] diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs b/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs index 2c0b1eac5b..ebe4be2b5c 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs @@ -12,8 +12,11 @@ namespace Stripe public class CapabilityRequirements : StripeEntity { /// - /// Fields that are due and can be satisfied by providing the corresponding alternative - /// fields instead. + /// Fields that are due and can be resolved by providing the corresponding alternative + /// fields instead. Multiple alternatives can reference the same original_fields_due. + /// When this happens, any of these alternatives can serve as a pathway for attempting to + /// resolve the fields. Additionally, providing original_fields_due again also serves + /// as a pathway for attempting to resolve the fields. /// [JsonProperty("alternatives")] #if NET6_0_OR_GREATER @@ -37,8 +40,8 @@ public class CapabilityRequirements : StripeEntity public DateTime? CurrentDeadline { get; set; } /// - /// Fields that need to be collected to keep the capability enabled. If not collected by - /// current_deadline, these fields appear in past_due as well, and the + /// Fields that need to be resolved to keep the capability enabled. If not resolved by + /// current_deadline, these fields will appear in past_due as well, and the /// capability is disabled. /// [JsonProperty("currently_due")] @@ -49,7 +52,7 @@ public class CapabilityRequirements : StripeEntity /// /// Description of why the capability is disabled. Learn more about + /// href="https://docs.stripe.com/connect/handling-api-verification">Learn more about /// handling verification issues. /// One of: other, paused.inactivity, pending.onboarding, /// pending.review, platform_disabled, platform_paused, @@ -63,8 +66,8 @@ public class CapabilityRequirements : StripeEntity public string DisabledReason { get; set; } /// - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -83,8 +86,8 @@ public class CapabilityRequirements : StripeEntity public List EventuallyDue { get; set; } /// - /// Fields that weren't collected by current_deadline. These fields need to be - /// collected to enable the capability on the account. + /// Fields that haven't been resolved by current_deadline. These fields need to be + /// resolved to enable the capability on the account. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -93,12 +96,11 @@ public class CapabilityRequirements : StripeEntity public List PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due, currently_due, or - /// past_due. Fields might appear in eventually_due, currently_due, or - /// past_due and in pending_verification if verification fails but another - /// verification is still pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityRequirementsAlternative.cs b/src/Stripe.net/Entities/Capabilities/CapabilityRequirementsAlternative.cs index e390f41909..ea4aedc33a 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityRequirementsAlternative.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityRequirementsAlternative.cs @@ -10,7 +10,7 @@ namespace Stripe public class CapabilityRequirementsAlternative : StripeEntity { /// - /// Fields that can be provided to satisfy all fields in original_fields_due. + /// Fields that can be provided to resolve all fields in original_fields_due. /// [JsonProperty("alternative_fields_due")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class CapabilityRequirementsAlternative : StripeEntity AlternativeFieldsDue { get; set; } /// - /// Fields that are due and can be satisfied by providing all fields in + /// Fields that are due and can be resolved by providing all fields in /// alternative_fields_due. /// [JsonProperty("original_fields_due")] diff --git a/src/Stripe.net/Entities/Cards/Card.cs b/src/Stripe.net/Entities/Cards/Card.cs index bf87773a14..8626b1e4ec 100644 --- a/src/Stripe.net/Entities/Cards/Card.cs +++ b/src/Stripe.net/Entities/Cards/Card.cs @@ -13,7 +13,7 @@ namespace Stripe /// can also store multiple debit cards on a recipient in order to transfer to those cards /// later. /// - /// Related guide: Card payments with + /// Related guide: Card payments with /// Sources. /// #if NET6_0_OR_GREATER @@ -377,7 +377,7 @@ public Customer Customer public string Last4 { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/CashBalances/CashBalance.cs b/src/Stripe.net/Entities/CashBalances/CashBalance.cs index 46e69847e8..b5926a69ae 100644 --- a/src/Stripe.net/Entities/CashBalances/CashBalance.cs +++ b/src/Stripe.net/Entities/CashBalances/CashBalance.cs @@ -26,7 +26,7 @@ public class CashBalance : StripeEntity, IHasObject /// /// A hash of all cash balances available to this customer. You cannot delete a customer /// with any cash balances, even if the balance is 0. Amounts are represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("available")] #if NET6_0_OR_GREATER @@ -43,6 +43,15 @@ public class CashBalance : StripeEntity, IHasObject #endif public string Customer { get; set; } + /// + /// The ID of an Account representing a customer whose cash balance this object represents. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Has the value true if the object exists in live mode or the value false if /// the object exists in test mode. diff --git a/src/Stripe.net/Entities/Charges/Charge.cs b/src/Stripe.net/Entities/Charges/Charge.cs index b38341f62d..4b3e05585a 100644 --- a/src/Stripe.net/Entities/Charges/Charge.cs +++ b/src/Stripe.net/Entities/Charges/Charge.cs @@ -12,7 +12,7 @@ namespace Stripe /// /// The Charge object represents a single attempt to move money into your Stripe /// account. PaymentIntent confirmation is the most common way to create Charges, but Account Debits may also create + /// href="https://docs.stripe.com/connect/account-debits">Account Debits may also create /// Charges. Some legacy payment flows create Charges directly, which is not recommended for /// new integrations. /// @@ -41,10 +41,10 @@ public class Charge : StripeEntity, IHasId, IHasMetadata, IHasObject, IB /// /// Amount intended to be collected by this payment. A positive integer representing how - /// much to charge in the smallest + /// much to charge in the smallest /// currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal /// currency). The minimum amount is $0.50 US or equivalent + /// href="https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts">equivalent /// in charge currency. The amount value supports up to eight digits (e.g., a value of /// 99999999 for a USD charge of $999,999.99). /// @@ -120,7 +120,7 @@ public Application Application /// /// (ID of the ApplicationFee) /// The application fee (if any) for the charge. See the Connect + /// href="https://docs.stripe.com/connect/direct-charges#collect-fees">See the Connect /// documentation for details. /// [JsonIgnore] @@ -136,7 +136,7 @@ public string ApplicationFeeId /// /// (Expanded) /// The application fee (if any) for the charge. See the Connect + /// href="https://docs.stripe.com/connect/direct-charges#collect-fees">See the Connect /// documentation for details. /// /// For more information, see the expand documentation. @@ -162,7 +162,7 @@ public ApplicationFee ApplicationFee /// /// The amount of the application fee (if any) requested for the charge. See the Connect + /// href="https://docs.stripe.com/connect/direct-charges#collect-fees">See the Connect /// documentation for details. /// [JsonProperty("application_fee_amount")] @@ -377,7 +377,7 @@ public BalanceTransaction FailureBalanceTransaction /// /// Error code explaining reason for charge failure if available (see the errors section for a list of codes). + /// href="https://docs.stripe.com/error-codes">the errors section for a list of codes). /// [JsonProperty("failure_code")] #if NET6_0_OR_GREATER @@ -420,7 +420,7 @@ public BalanceTransaction FailureBalanceTransaction public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -436,7 +436,7 @@ public BalanceTransaction FailureBalanceTransaction /// (ID of the Account) /// The account (if any) the charge was made on behalf of without triggering an automatic /// transfer. See the Connect + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers">Connect /// documentation for details. /// [JsonIgnore] @@ -453,7 +453,7 @@ public string OnBehalfOfId /// (Expanded) /// The account (if any) the charge was made on behalf of without triggering an automatic /// transfer. See the Connect + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers">Connect /// documentation for details. /// /// For more information, see the expand documentation. @@ -479,7 +479,7 @@ public Account OnBehalfOf /// /// Details about whether the payment was accepted, and why. See understanding declines for details. + /// href="https://docs.stripe.com/declines">understanding declines for details. /// [JsonProperty("outcome")] #if NET6_0_OR_GREATER @@ -563,7 +563,7 @@ public PaymentIntent PaymentIntent /// /// Options to configure Radar. See Radar Session for more + /// href="https://docs.stripe.com/radar/radar-session">Radar Session for more /// information. /// [JsonProperty("radar_options")] @@ -812,7 +812,7 @@ public Transfer Transfer /// /// An optional dictionary including the account to automatically transfer to as part of a - /// destination charge. See + /// destination charge. See /// the Connect documentation for details. /// [JsonProperty("transfer_data")] @@ -823,7 +823,7 @@ public Transfer Transfer /// /// A string that identifies this transaction as part of a group. See the Connect + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options">Connect /// documentation for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Entities/Charges/ChargeOutcome.cs b/src/Stripe.net/Entities/Charges/ChargeOutcome.cs index 1f7ed3184e..c5c3fd3f53 100644 --- a/src/Stripe.net/Entities/Charges/ChargeOutcome.cs +++ b/src/Stripe.net/Entities/Charges/ChargeOutcome.cs @@ -14,7 +14,7 @@ public class ChargeOutcome : StripeEntity { /// /// An enumerated value providing a more detailed explanation on how to proceed with an + /// href="https://docs.stripe.com/declines#retrying-issuer-declines">how to proceed with an /// error. /// One of: confirm_card_data, do_not_try_again, or try_again_later. /// @@ -48,7 +48,7 @@ public class ChargeOutcome : StripeEntity /// Possible values are approved_by_network, declined_by_network, /// not_sent_to_network, and reversed_after_approval. The value /// reversed_after_approval indicates the payment was blocked by Stripe after + /// href="https://docs.stripe.com/declines#blocked-payments">blocked by Stripe after /// bank authorization, and may temporarily appear as "pending" on a cardholder's statement. /// [JsonProperty("network_status")] @@ -64,7 +64,7 @@ public class ChargeOutcome : StripeEntity /// elevated_risk_level. Charges blocked because the payment is unlikely to be /// authorized have the value low_probability_of_authorization. Charges authorized, /// blocked, or placed in review by custom rules have the value rule. See understanding declines for more details. + /// href="https://docs.stripe.com/declines">understanding declines for more details. /// [JsonProperty("reason")] #if NET6_0_OR_GREATER @@ -151,8 +151,8 @@ public Radar.Rule Rule /// /// Possible values are authorized, manual_review, issuer_declined, /// blocked, and invalid. See understanding declines and Radar reviews for details. + /// href="https://docs.stripe.com/declines">understanding declines and Radar reviews for details. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index ac59de655b..d9894f6b51 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -254,6 +254,12 @@ public class ChargePaymentMethodDetails : StripeEntity /// The type of transaction-specific details of the payment method used in the payment. See /// PaymentMethod.type + /// href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-type">PaymentMethod.type /// for the full list of possible types. An additional hash is included on /// payment_method_details with a name matching this value. It contains information /// specific to the payment method. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAcssDebit.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAcssDebit.cs index 3dc2c23517..937822477e 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAcssDebit.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAcssDebit.cs @@ -17,6 +17,15 @@ public class ChargePaymentMethodDetailsAcssDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAffirm.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAffirm.cs index 7e5bff8f9b..2c9e46389d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAffirm.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAffirm.cs @@ -9,7 +9,7 @@ namespace Stripe public class ChargePaymentMethodDetailsAffirm : StripeEntity { /// - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -19,7 +19,7 @@ public class ChargePaymentMethodDetailsAffirm : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAuBecsDebit.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAuBecsDebit.cs index 159a8c4a93..7a826c39ee 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAuBecsDebit.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAuBecsDebit.cs @@ -17,6 +17,15 @@ public class ChargePaymentMethodDetailsAuBecsDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBacsDebit.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBacsDebit.cs index 81b9c06431..1b896c7043 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBacsDebit.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBacsDebit.cs @@ -8,6 +8,15 @@ namespace Stripe public class ChargePaymentMethodDetailsBacsDebit : StripeEntity { + /// + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs index b42537db2d..cec990150d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs @@ -149,7 +149,7 @@ public class ChargePaymentMethodDetailsCard : StripeEntityinstallments integration guide. + /// href="https://docs.stripe.com/payments/installments">installments integration guide. /// [JsonProperty("installments")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs index d6af1e1fba..47c956b654 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs @@ -161,9 +161,9 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity - /// Whether this PaymentIntent is + /// Whether this PaymentIntent is /// eligible for incremental authorizations. Request support using request_incremental_authorization_support. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support">request_incremental_authorization_support. /// [JsonProperty("incremental_authorization_supported")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs index dc76ae31fa..73107a76cb 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs @@ -14,14 +14,14 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, - /// buut, finom, handelsbanken, ing, knab, + /// buut, finom, handelsbanken, ing, knab, mollie, /// moneyou, n26, nn, rabobank, regiobank, /// revolut, sns_bank, triodos_bank, van_lanschot, or /// yoursafe. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -33,8 +33,9 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntityABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, /// BUUTNL2A, FNOMNL22, FVLBNL22, HANDNL2A, INGBNL2A, - /// KNABNL2H, MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, - /// RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. + /// KNABNL2H, MLLENL2A, MOYONL21, NNBANL2G, NTSBDEB1, + /// RABONL2U, RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or + /// TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsNzBankAccount.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsNzBankAccount.cs index b5e0578585..1f39767a6e 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsNzBankAccount.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsNzBankAccount.cs @@ -45,6 +45,15 @@ public class ChargePaymentMethodDetailsNzBankAccount : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Last four digits of the bank account number. /// diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaynow.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaynow.cs index 554c105c36..862c8cfc45 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaynow.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaynow.cs @@ -9,7 +9,7 @@ namespace Stripe public class ChargePaymentMethodDetailsPaynow : StripeEntity { /// - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -19,7 +19,7 @@ public class ChargePaymentMethodDetailsPaynow : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPayto.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPayto.cs new file mode 100644 index 0000000000..770eafb7fb --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPayto.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ChargePaymentMethodDetailsPayto : StripeEntity + { + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// Last four digits of the bank account number. + /// + [JsonProperty("last4")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("last4")] +#endif + public string Last4 { get; set; } + + /// + /// ID of the mandate used to make this payment. + /// + [JsonProperty("mandate")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate")] +#endif + public string Mandate { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsSepaDebit.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsSepaDebit.cs index 95c297a2db..fd168c1d07 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsSepaDebit.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsSepaDebit.cs @@ -35,6 +35,15 @@ public class ChargePaymentMethodDetailsSepaDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. @@ -56,9 +65,9 @@ public class ChargePaymentMethodDetailsSepaDebit : StripeEntity /// Find the ID of the mandate used for this payment under the payment_method_details.sepa_debit.mandate + /// href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate">payment_method_details.sepa_debit.mandate /// property on the Charge. Use this mandate ID to retrieve the Mandate. + /// href="https://docs.stripe.com/api/mandates/retrieve">retrieve the Mandate. /// [JsonProperty("mandate")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUsBankAccount.cs index d857020642..1080cb71b2 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUsBankAccount.cs @@ -41,6 +41,15 @@ public class ChargePaymentMethodDetailsUsBankAccount : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsWechatPay.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsWechatPay.cs index e3a4f12053..487a2ec627 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsWechatPay.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsWechatPay.cs @@ -19,7 +19,7 @@ public class ChargePaymentMethodDetailsWechatPay : StripeEntity - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -29,7 +29,7 @@ public class ChargePaymentMethodDetailsWechatPay : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/Charges/ChargeRadarOptions.cs b/src/Stripe.net/Entities/Charges/ChargeRadarOptions.cs index 6daa628dc6..7bd62b6647 100644 --- a/src/Stripe.net/Entities/Charges/ChargeRadarOptions.cs +++ b/src/Stripe.net/Entities/Charges/ChargeRadarOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class ChargeRadarOptions : StripeEntity { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index ff1362c540..171dbcc0ea 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -12,19 +12,19 @@ namespace Stripe.Checkout /// /// A Checkout Session represents your customer's session as they pay for one-time purchases /// or subscriptions through Checkout or Payment Links. We recommend + /// href="https://docs.stripe.com/payments/checkout">Checkout or Payment Links. We recommend /// creating a new Session each time your customer attempts to pay. /// /// Once payment is successful, the Checkout Session will contain a reference to the Customer, and either the successful PaymentIntent or an active Subscription. + /// href="https://docs.stripe.com/api/customers">Customer, and either the successful PaymentIntent or an active Subscription. /// /// You can create a Checkout Session on your server and redirect to its URL to begin /// Checkout. /// - /// Related guide: Checkout + /// Related guide: Checkout /// quickstart. /// #if NET6_0_OR_GREATER @@ -144,7 +144,7 @@ public class Session : StripeEntity, IHasId, IHasMetadata, IHasObject /// ui_mode: embedded or ui_mode: custom. For ui_mode: embedded, the /// client secret is to be used when initializing Stripe.js embedded checkout. For /// ui_mode: custom, use the client secret with initCheckout on your front + /// href="https://docs.stripe.com/js/custom_checkout/init">initCheckout on your front /// end. /// [JsonProperty("client_secret")] @@ -279,6 +279,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The ID of the account for this Session. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Configure whether a Checkout Session creates a Customer when the Checkout Session /// completes. @@ -430,7 +439,7 @@ public Invoice Invoice public string Locale { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -482,7 +491,7 @@ public Invoice Invoice /// (ID of the PaymentIntent) /// The ID of the PaymentIntent for Checkout Sessions in payment mode. You can't /// confirm or cancel the PaymentIntent for a Checkout Session. To cancel, expire the Checkout + /// href="https://docs.stripe.com/api/checkout/sessions/expire">expire the Checkout /// Session instead. /// [JsonIgnore] @@ -499,7 +508,7 @@ public string PaymentIntentId /// (Expanded) /// The ID of the PaymentIntent for Checkout Sessions in payment mode. You can't /// confirm or cancel the PaymentIntent for a Checkout Session. To cancel, expire the Checkout + /// href="https://docs.stripe.com/api/checkout/sessions/expire">expire the Checkout /// Session instead. /// /// For more information, see the expand documentation. @@ -653,7 +662,7 @@ public PaymentLink PaymentLink /// /// This parameter applies to ui_mode: embedded. Learn more about the redirect + /// href="https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form">redirect /// behavior of embedded sessions. Defaults to always. /// One of: always, if_required, or never. /// @@ -690,7 +699,7 @@ public PaymentLink PaymentLink /// (ID of the SetupIntent) /// The ID of the SetupIntent for Checkout Sessions in setup mode. You can't confirm /// or cancel the SetupIntent for a Checkout Session. To cancel, expire the Checkout + /// href="https://docs.stripe.com/api/checkout/sessions/expire">expire the Checkout /// Session instead. /// [JsonIgnore] @@ -707,7 +716,7 @@ public string SetupIntentId /// (Expanded) /// The ID of the SetupIntent for Checkout Sessions in setup mode. You can't confirm /// or cancel the SetupIntent for a Checkout Session. To cancel, expire the Checkout + /// href="https://docs.stripe.com/api/checkout/sessions/expire">expire the Checkout /// Session instead. /// /// For more information, see the expand documentation. @@ -788,7 +797,7 @@ public SetupIntent SetupIntent /// /// (ID of the Subscription) - /// The ID of the Subscription for + /// The ID of the Subscription for /// Checkout Sessions in subscription mode. /// [JsonIgnore] @@ -803,7 +812,7 @@ public string SubscriptionId /// /// (Expanded) - /// The ID of the Subscription for + /// The ID of the Subscription for /// Checkout Sessions in subscription mode. /// /// For more information, see the expand documentation. @@ -865,7 +874,7 @@ public Subscription Subscription /// /// The URL to the Checkout Session. Applies to Checkout Sessions with ui_mode: /// hosted. Redirect customers to this URL to take them to Checkout. If you’re using Custom Domains, the + /// href="https://docs.stripe.com/payments/checkout/custom-domains">Custom Domains, the /// URL will use your subdomain. Otherwise, it’ll use checkout.stripe.com. This value /// is only present when the session is active. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceData.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceData.cs index ba2d9888de..e8cc7eb5ec 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceData.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceData.cs @@ -91,7 +91,7 @@ public List AccountTaxIds public SessionInvoiceCreationInvoiceDataIssuer Issuer { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs index 193a5335f1..6a5edac236 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs @@ -200,6 +200,12 @@ public class SessionPaymentMethodOptions : StripeEntity /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. If not provided, this value defaults to automatic. Read our /// guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPayto.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPayto.cs new file mode 100644 index 0000000000..65fa434873 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPayto.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionPaymentMethodOptionsPayto : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SessionPaymentMethodOptionsPaytoMandateOptions MandateOptions { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// One of: none, or off_session. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptions.cs new file mode 100644 index 0000000000..fe40106e97 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptions.cs @@ -0,0 +1,86 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionPaymentMethodOptionsPaytoMandateOptions : StripeEntity + { + /// + /// Amount that will be collected. It is required when amount_type is fixed. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The type of amount that will be collected. The amount charged must be exact or up to the + /// value of amount param for fixed or maximum type respectively. + /// Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no + /// end date. + /// + [JsonProperty("end_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] +#endif + public string EndDate { get; set; } + + /// + /// The periodicity at which payments will be collected. Defaults to adhoc. + /// One of: adhoc, annual, daily, fortnightly, monthly, + /// quarterly, semi_annual, or weekly. + /// + [JsonProperty("payment_schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_schedule")] +#endif + public string PaymentSchedule { get; set; } + + /// + /// The number of payments that will be made during a payment period. Defaults to 1 except + /// for when payment_schedule is adhoc. In that case, it defaults to no limit. + /// + [JsonProperty("payments_per_period")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payments_per_period")] +#endif + public long? PaymentsPerPeriod { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to + /// confirmation time. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetailsBreakdownDiscount.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetailsBreakdownDiscount.cs index 37401dd67b..90fa9cf28f 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetailsBreakdownDiscount.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetailsBreakdownDiscount.cs @@ -19,12 +19,12 @@ public class SessionTotalDetailsBreakdownDiscount : StripeEntity /// A discount represents the actual application of a coupon or promotion code. It contains + /// href="https://api.stripe.com#coupons">coupon or promotion code. It contains /// information about when the discount began, when it will end, and what it is applied to. /// /// Related guide: Applying discounts to + /// href="https://docs.stripe.com/billing/subscriptions/discounts">Applying discounts to /// subscriptions. /// [JsonProperty("discount")] diff --git a/src/Stripe.net/Entities/Climate/Orders/Order.cs b/src/Stripe.net/Entities/Climate/Orders/Order.cs index 624b4b068c..faecce9a09 100644 --- a/src/Stripe.net/Entities/Climate/Orders/Order.cs +++ b/src/Stripe.net/Entities/Climate/Orders/Order.cs @@ -184,7 +184,7 @@ public class Order : StripeEntity, IHasId, IHasMetadata, IHasObject public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs index 2885b4ee88..b8fb570367 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs @@ -14,9 +14,9 @@ namespace Stripe /// values present on the ConfirmationToken are written onto the Intent. /// /// To learn more about how to use ConfirmationToken, visit the related guides: - Finalize + /// href="https://docs.stripe.com/payments/finalize-payments-on-the-server">Finalize /// payments on the server - Build two-step + /// href="https://docs.stripe.com/payments/build-a-two-step-confirmation">Build two-step /// confirmation. /// public class ConfirmationToken : StripeEntity, IHasId, IHasObject @@ -124,7 +124,7 @@ public class ConfirmationToken : StripeEntity, IHasId, IHasOb /// method. /// /// The presence of this property will attach the payment + /// href="https://docs.stripe.com/payments/save-during-payment">attach the payment /// method to the PaymentIntent's Customer, if present, after the PaymentIntent is /// confirmed and any required actions from the user are complete. /// One of: off_session, or on_session. diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs index b0e56f94d7..39e4d1bedc 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs @@ -170,6 +170,12 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + [JsonProperty("customer_balance")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("customer_balance")] @@ -308,6 +314,12 @@ public Customer Customer #endif public ConfirmationTokenPaymentMethodPreviewPaypal Paypal { get; set; } + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public ConfirmationTokenPaymentMethodPreviewPayto Payto { get; set; } + [JsonProperty("pix")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("pix")] @@ -374,7 +386,7 @@ public Customer Customer /// ideal, interac_present, kakao_pay, klarna, konbini, /// kr_card, link, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs index c81121d3ae..fd3a7302fd 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -161,9 +161,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string Iin { get; set; } /// - /// Whether this PaymentIntent is + /// Whether this PaymentIntent is /// eligible for incremental authorizations. Request support using request_incremental_authorization_support. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support">request_incremental_authorization_support. /// [JsonProperty("incremental_authorization_supported")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs index 91c51b0965..6c9ec9c1e4 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs @@ -11,13 +11,13 @@ public class ConfirmationTokenPaymentMethodPreviewIdeal : StripeEntity /// The customer's bank, if provided. Can be one of abn_amro, asn_bank, /// bunq, buut, finom, handelsbanken, ing, knab, - /// moneyou, n26, nn, rabobank, regiobank, + /// mollie, moneyou, n26, nn, rabobank, regiobank, /// revolut, sns_bank, triodos_bank, van_lanschot, or /// yoursafe. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -29,8 +29,9 @@ public class ConfirmationTokenPaymentMethodPreviewIdeal : StripeEntityABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, /// BUUTNL2A, FNOMNL22, FVLBNL22, HANDNL2A, INGBNL2A, - /// KNABNL2H, MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, - /// RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. + /// KNABNL2H, MLLENL2A, MOYONL21, NNBANL2G, NTSBDEB1, + /// RABONL2U, RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or + /// TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPayto.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPayto.cs new file mode 100644 index 0000000000..441e9f6f11 --- /dev/null +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPayto.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfirmationTokenPaymentMethodPreviewPayto : StripeEntity + { + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// Last four digits of the bank account number. + /// + [JsonProperty("last4")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("last4")] +#endif + public string Last4 { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Coupons/Coupon.cs b/src/Stripe.net/Entities/Coupons/Coupon.cs index 156aa5e926..624943740d 100644 --- a/src/Stripe.net/Entities/Coupons/Coupon.cs +++ b/src/Stripe.net/Entities/Coupons/Coupon.cs @@ -12,12 +12,12 @@ namespace Stripe /// /// A coupon contains information about a percent-off or amount-off discount you might want /// to apply to a customer. Coupons may be applied to subscriptions, invoices, checkout sessions, quotes, and more. Coupons do not work with - /// conventional one-off charges or - /// payment intents. + /// href="https://api.stripe.com#subscriptions">subscriptions, invoices, checkout sessions, quotes, and more. Coupons do not work with + /// conventional one-off charges or payment intents. /// public class Coupon : StripeEntity, IHasId, IHasMetadata, IHasObject { @@ -140,7 +140,7 @@ public class Coupon : StripeEntity, IHasId, IHasMetadata, IHasObject public long? MaxRedemptions { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs b/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs index c4272b2885..6bad7e4bc5 100644 --- a/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs @@ -8,6 +8,9 @@ namespace Stripe public class CreditNoteLineItemTaxTaxRateDetails : StripeEntity { + /// + /// ID of the tax rate. + /// [JsonProperty("tax_rate")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tax_rate")] diff --git a/src/Stripe.net/Entities/CreditNotes/CreditNote.cs b/src/Stripe.net/Entities/CreditNotes/CreditNote.cs index eac1cb1902..a3c01db42c 100644 --- a/src/Stripe.net/Entities/CreditNotes/CreditNote.cs +++ b/src/Stripe.net/Entities/CreditNotes/CreditNote.cs @@ -12,7 +12,7 @@ namespace Stripe /// /// Issue a credit note to adjust an invoice's amount after the invoice is finalized. /// - /// Related guide: Credit + /// Related guide: Credit /// notes. /// #if NET6_0_OR_GREATER @@ -120,6 +120,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// ID of the account representing the customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + #region Expandable CustomerBalanceTransaction /// @@ -263,7 +272,7 @@ public Invoice Invoice public string Memo { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -362,7 +371,7 @@ public Invoice Invoice /// /// Status of this credit note, one of issued or void. Learn more about voiding credit + /// href="https://docs.stripe.com/billing/invoices/credit-notes#voiding">voiding credit /// notes. /// One of: issued, or void. /// diff --git a/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs b/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs index b3d31a25f2..be7af2878d 100644 --- a/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs @@ -8,6 +8,9 @@ namespace Stripe public class CreditNoteTotalTaxTaxRateDetails : StripeEntity { + /// + /// ID of the tax rate. + /// [JsonProperty("tax_rate")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tax_rate")] diff --git a/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs b/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs index 70b571fbe6..eb31892d48 100644 --- a/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs +++ b/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs @@ -11,14 +11,14 @@ namespace Stripe /// /// Each customer has a Balance + /// href="https://docs.stripe.com/api/customers/object#customer_object-balance">Balance /// value, which denotes a debit or credit that's automatically applied to their next /// invoice upon finalization. You may modify the value directly by using the update customer API, or by + /// href="https://docs.stripe.com/api/customers/update">update customer API, or by /// creating a Customer Balance Transaction, which increments or decrements the customer's /// balance by the specified amount. /// - /// Related guide: Customer + /// Related guide: Customer /// balance. /// #if NET6_0_OR_GREATER @@ -199,6 +199,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The ID of an Account representing a customer that the transaction belongs to. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// @@ -271,7 +280,7 @@ public Invoice Invoice public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -287,7 +296,7 @@ public Invoice Invoice /// invoice_too_small, unspent_receiver_credit, unapplied_from_invoice, /// checkout_session_subscription_payment, or /// checkout_session_subscription_payment_canceled. See the Customer Balance page + /// href="https://docs.stripe.com/billing/customer/balance#types">Customer Balance page /// to learn more about transaction types. /// One of: adjustment, applied_to_invoice, /// checkout_session_subscription_payment, diff --git a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs index 23f6956900..a546a12e36 100644 --- a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs +++ b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs @@ -113,10 +113,20 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The ID of an Account representing a customer whose available cash balance changed as a + /// result of this transaction. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The total available cash balance for the specified currency after this transaction was /// applied. Represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("ending_balance")] #if NET6_0_OR_GREATER @@ -142,7 +152,7 @@ public Customer Customer /// /// The amount by which the cash balance changed, represented in the smallest currency unit. A + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. A /// positive value represents funds being added to the cash balance, a negative value /// represents funds being removed from the cash balance. /// @@ -166,7 +176,7 @@ public Customer Customer /// /// The type of the cash balance transaction. New types may be added in future. See Customer Balance to + /// href="https://docs.stripe.com/payments/customer-balance#types">Customer Balance to /// learn more about these types. /// One of: adjusted_for_overdraft, applied_to_payment, funded, /// funding_reversed, refunded_from_payment, return_canceled, diff --git a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAdjustedForOverdraft.cs b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAdjustedForOverdraft.cs index 4a1bde8356..c99c1d6086 100644 --- a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAdjustedForOverdraft.cs +++ b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAdjustedForOverdraft.cs @@ -16,7 +16,7 @@ public class CustomerCashBalanceTransactionAdjustedForOverdraft : StripeEntity /// (ID of the BalanceTransaction) - /// The Balance + /// The Balance /// Transaction that corresponds to funds taken out of your Stripe balance. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string BalanceTransactionId /// /// (Expanded) - /// The Balance + /// The Balance /// Transaction that corresponds to funds taken out of your Stripe balance. /// /// For more information, see the expand documentation. @@ -59,7 +59,7 @@ public BalanceTransaction BalanceTransaction /// /// (ID of the CustomerCashBalanceTransaction) - /// The Cash Balance + /// The Cash Balance /// Transaction that brought the customer balance negative, triggering the clawback of /// funds. /// @@ -75,7 +75,7 @@ public string LinkedTransactionId /// /// (Expanded) - /// The Cash Balance + /// The Cash Balance /// Transaction that brought the customer balance negative, triggering the clawback of /// funds. /// diff --git a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAppliedToPayment.cs b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAppliedToPayment.cs index eb8dbec8cc..b1e197aa31 100644 --- a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAppliedToPayment.cs +++ b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionAppliedToPayment.cs @@ -16,7 +16,7 @@ public class CustomerCashBalanceTransactionAppliedToPayment : StripeEntity /// (ID of the PaymentIntent) - /// The Payment Intent that + /// The Payment Intent that /// funds were applied to. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string PaymentIntentId /// /// (Expanded) - /// The Payment Intent that + /// The Payment Intent that /// funds were applied to. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionRefundedFromPayment.cs b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionRefundedFromPayment.cs index ae8851bd7f..83899122dd 100644 --- a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionRefundedFromPayment.cs +++ b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionRefundedFromPayment.cs @@ -16,7 +16,7 @@ public class CustomerCashBalanceTransactionRefundedFromPayment : StripeEntity /// (ID of the Refund) - /// The Refund that moved these + /// The Refund that moved these /// funds into the customer's cash balance. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string RefundId /// /// (Expanded) - /// The Refund that moved these + /// The Refund that moved these /// funds into the customer's cash balance. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionTransferredToBalance.cs b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionTransferredToBalance.cs index 8b1f22bf00..158378fff1 100644 --- a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionTransferredToBalance.cs +++ b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionTransferredToBalance.cs @@ -16,7 +16,7 @@ public class CustomerCashBalanceTransactionTransferredToBalance : StripeEntity /// (ID of the BalanceTransaction) - /// The Balance + /// The Balance /// Transaction that corresponds to funds transferred to your Stripe balance. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string BalanceTransactionId /// /// (Expanded) - /// The Balance + /// The Balance /// Transaction that corresponds to funds transferred to your Stripe balance. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionUnappliedFromPayment.cs b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionUnappliedFromPayment.cs index 2110e897ec..48a6ee3648 100644 --- a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionUnappliedFromPayment.cs +++ b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransactionUnappliedFromPayment.cs @@ -16,7 +16,7 @@ public class CustomerCashBalanceTransactionUnappliedFromPayment : StripeEntity /// (ID of the PaymentIntent) - /// The Payment Intent that + /// The Payment Intent that /// funds were unapplied from. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string PaymentIntentId /// /// (Expanded) - /// The Payment Intent that + /// The Payment Intent that /// funds were unapplied from. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs index e9d8efd9c7..3a1d1544f5 100644 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs +++ b/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs @@ -109,6 +109,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The Account that the Customer Session was created for. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The timestamp at which this Customer Session will expire. /// diff --git a/src/Stripe.net/Entities/Customers/Customer.cs b/src/Stripe.net/Entities/Customers/Customer.cs index a943415fec..792138e2cf 100644 --- a/src/Stripe.net/Entities/Customers/Customer.cs +++ b/src/Stripe.net/Entities/Customers/Customer.cs @@ -11,8 +11,8 @@ namespace Stripe /// /// This object represents a customer of your business. Use it to create recurring charges, save payment and contact + /// href="https://docs.stripe.com/invoicing/customer">create recurring charges, save payment and contact /// information, and track payments that belong to the same customer. /// #if NET6_0_OR_GREATER @@ -54,7 +54,7 @@ public class Customer : StripeEntity, IHasId, IHasMetadata, IHasObject /// considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't /// reflect unpaid invoices. This balance is only taken into account after invoices /// finalize. For multi-currency balances, see invoice_credit_balance. + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance">invoice_credit_balance. /// [JsonProperty("balance")] #if NET6_0_OR_GREATER @@ -104,6 +104,16 @@ public class Customer : StripeEntity, IHasId, IHasMetadata, IHasObject #endif public string Currency { get; set; } + /// + /// The ID of an Account representing a customer. You can use this ID with any v1 API that + /// accepts a customer_account parameter. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + #region Expandable DefaultSource /// @@ -111,7 +121,7 @@ public class Customer : StripeEntity, IHasId, IHasMetadata, IHasObject /// ID of the default payment source for the customer. /// /// If you use payment methods created through the PaymentMethods API, see the invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// field instead. /// [JsonIgnore] @@ -129,7 +139,7 @@ public string DefaultSourceId /// ID of the default payment source for the customer. /// /// If you use payment methods created through the PaymentMethods API, see the invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// field instead. /// /// For more information, see the expand documentation. @@ -170,7 +180,7 @@ public IPaymentSource DefaultSource /// true. /// /// If an invoice becomes uncollectible by dunning, + /// href="https://docs.stripe.com/billing/automatic-collection">dunning, /// delinquent doesn't reset to false. /// /// If you care whether the customer has paid their most recent subscription invoice, use @@ -261,7 +271,7 @@ public IPaymentSource DefaultSource public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Discounts/Discount.cs b/src/Stripe.net/Entities/Discounts/Discount.cs index ea25687087..647648448d 100644 --- a/src/Stripe.net/Entities/Discounts/Discount.cs +++ b/src/Stripe.net/Entities/Discounts/Discount.cs @@ -10,12 +10,12 @@ namespace Stripe /// /// A discount represents the actual application of a coupon or promotion code. It contains + /// href="https://api.stripe.com#coupons">coupon or promotion code. It contains /// information about when the discount began, when it will end, and what it is applied to. /// /// Related guide: Applying discounts to + /// href="https://docs.stripe.com/billing/subscriptions/discounts">Applying discounts to /// subscriptions. /// #if NET6_0_OR_GREATER @@ -93,6 +93,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The ID of the account representing the customer associated with this discount. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Whether this object is deleted or not. /// diff --git a/src/Stripe.net/Entities/Disputes/Dispute.cs b/src/Stripe.net/Entities/Disputes/Dispute.cs index ad8d0dcc6b..a5a7189508 100644 --- a/src/Stripe.net/Entities/Disputes/Dispute.cs +++ b/src/Stripe.net/Entities/Disputes/Dispute.cs @@ -14,7 +14,7 @@ namespace Stripe /// happens, you have the opportunity to respond to the dispute with evidence that shows /// that the charge is legitimate. /// - /// Related guide: Disputes and fraud. + /// Related guide: Disputes and fraud. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -166,7 +166,7 @@ public Charge Charge public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -239,7 +239,7 @@ public PaymentIntent PaymentIntent /// incorrect_account_details, insufficient_funds, noncompliant, /// product_not_received, product_unacceptable, subscription_canceled, /// or unrecognized. Learn more about dispute reasons. + /// href="https://docs.stripe.com/disputes/categories">dispute reasons. /// [JsonProperty("reason")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress.cs b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress.cs index d8cdaedf15..75612eff37 100644 --- a/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress.cs +++ b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress.cs @@ -55,7 +55,8 @@ public class DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTrans public string PostalCode { get; set; } /// - /// State, county, province, or region. + /// State, county, province, or region (ISO 3166-2). /// [JsonProperty("state")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress.cs b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress.cs index a935fd17aa..0b2359a562 100644 --- a/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress.cs +++ b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress.cs @@ -55,7 +55,8 @@ public class DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisput public string PostalCode { get; set; } /// - /// State, county, province, or region. + /// State, county, province, or region (ISO 3166-2). /// [JsonProperty("state")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs b/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs index 9c91921ceb..3a18fc29c9 100644 --- a/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs +++ b/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs @@ -37,7 +37,7 @@ public class ActiveEntitlement : StripeEntity, IHasId, IHasOb /// /// (ID of the Feature) - /// The Feature that the + /// The Feature that the /// customer is entitled to. /// [JsonIgnore] @@ -52,7 +52,7 @@ public string FeatureId /// /// (Expanded) - /// The Feature that the + /// The Feature that the /// customer is entitled to. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/FileLinks/FileLink.cs b/src/Stripe.net/Entities/FileLinks/FileLink.cs index c5e5178a31..83e3dac31c 100644 --- a/src/Stripe.net/Entities/FileLinks/FileLink.cs +++ b/src/Stripe.net/Entities/FileLinks/FileLink.cs @@ -120,7 +120,7 @@ public File File public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Files/File.cs b/src/Stripe.net/Entities/Files/File.cs index 19f228fa55..141360e07e 100644 --- a/src/Stripe.net/Entities/Files/File.cs +++ b/src/Stripe.net/Entities/Files/File.cs @@ -10,12 +10,12 @@ namespace Stripe /// /// This object represents files hosted on Stripe's servers. You can upload files with the - /// create file request (for example, - /// when uploading dispute evidence). Stripe also creates files independently (for example, - /// the results of a Sigma scheduled + /// create file request (for example, when + /// uploading dispute evidence). Stripe also creates files independently (for example, the + /// results of a Sigma scheduled /// query). /// - /// Related guide: File upload guide. + /// Related guide: File upload guide. /// public class File : StripeEntity, IHasId, IHasObject { @@ -69,8 +69,8 @@ public class File : StripeEntity, IHasId, IHasObject public string Filename { get; set; } /// - /// A list of file links that point at - /// this file. + /// A list of file links that point at this + /// file. /// [JsonProperty("links")] #if NET6_0_OR_GREATER @@ -79,7 +79,7 @@ public class File : StripeEntity, IHasId, IHasObject public StripeList Links { get; set; } /// - /// The purpose of the + /// The purpose of the /// uploaded file. /// One of: account_requirement, additional_verification, /// business_icon, business_logo, customer_signature, diff --git a/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs b/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs index d629637502..2e27baf0db 100644 --- a/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs +++ b/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs @@ -232,7 +232,7 @@ public AccountOwnership Ownership /// /// The PaymentMethod + /// href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-type">PaymentMethod /// type(s) that can be created from this account. /// One of: link, or us_bank_account. /// diff --git a/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountAccountHolder.cs b/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountAccountHolder.cs index 8862b6d4ed..4333bed9da 100644 --- a/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountAccountHolder.cs +++ b/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountAccountHolder.cs @@ -16,7 +16,7 @@ public class AccountAccountHolder : StripeEntity /// /// (ID of the Account) - /// The ID of the Stripe account this account belongs to. Should only be present if + /// The ID of the Stripe account that this account belongs to. Only available when /// account_holder.type is account. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string AccountId /// /// (Expanded) - /// The ID of the Stripe account this account belongs to. Should only be present if + /// The ID of the Stripe account that this account belongs to. Only available when /// account_holder.type is account. /// /// For more information, see the expand documentation. @@ -59,8 +59,8 @@ public Account Account /// /// (ID of the Customer) - /// ID of the Stripe customer this account belongs to. Present if and only if - /// account_holder.type is customer. + /// The ID for an Account representing a customer that this account belongs to. Only + /// available when account_holder.type is customer. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -74,8 +74,8 @@ public string CustomerId /// /// (Expanded) - /// ID of the Stripe customer this account belongs to. Present if and only if - /// account_holder.type is customer. + /// The ID for an Account representing a customer that this account belongs to. Only + /// available when account_holder.type is customer. /// /// For more information, see the expand documentation. /// @@ -98,6 +98,12 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Type of account holder that this account belongs to. /// One of: account, or customer. diff --git a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionAccountHolder.cs b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionAccountHolder.cs index 5cca3f80bc..4109744a8b 100644 --- a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionAccountHolder.cs +++ b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionAccountHolder.cs @@ -16,7 +16,7 @@ public class SessionAccountHolder : StripeEntity /// /// (ID of the Account) - /// The ID of the Stripe account this account belongs to. Should only be present if + /// The ID of the Stripe account that this account belongs to. Only available when /// account_holder.type is account. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string AccountId /// /// (Expanded) - /// The ID of the Stripe account this account belongs to. Should only be present if + /// The ID of the Stripe account that this account belongs to. Only available when /// account_holder.type is account. /// /// For more information, see the expand documentation. @@ -59,8 +59,8 @@ public Account Account /// /// (ID of the Customer) - /// ID of the Stripe customer this account belongs to. Present if and only if - /// account_holder.type is customer. + /// The ID for an Account representing a customer that this account belongs to. Only + /// available when account_holder.type is customer. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -74,8 +74,8 @@ public string CustomerId /// /// (Expanded) - /// ID of the Stripe customer this account belongs to. Present if and only if - /// account_holder.type is customer. + /// The ID for an Account representing a customer that this account belongs to. Only + /// available when account_holder.type is customer. /// /// For more information, see the expand documentation. /// @@ -98,6 +98,12 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Type of account holder that this account belongs to. /// One of: account, or customer. diff --git a/src/Stripe.net/Entities/Forwarding/Requests/Request.cs b/src/Stripe.net/Entities/Forwarding/Requests/Request.cs index 79c9bc1f79..aad1f05541 100644 --- a/src/Stripe.net/Entities/Forwarding/Requests/Request.cs +++ b/src/Stripe.net/Entities/Forwarding/Requests/Request.cs @@ -72,7 +72,7 @@ public class Request : StripeEntity, IHasId, IHasMetadata, IHasObject public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs index a7304f39e6..ab01c709e9 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs @@ -8,11 +8,11 @@ namespace Stripe /// /// Each customer has a balance + /// href="https://docs.stripe.com/api/customers/object#customer_object-balance">balance /// that is automatically applied to future invoices and payments using the /// customer_balance payment method. Customers can fund this balance by initiating a /// bank transfer to any account in the financial_addresses field. Related guide: Customer + /// href="https://docs.stripe.com/payments/customer-balance/funding-instructions">Customer /// balance funding instructions. /// public class FundingInstructions : StripeEntity, IHasObject diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs index c0e0cae7c6..07a39d627b 100644 --- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs @@ -17,13 +17,13 @@ namespace Stripe.Identity /// /// Each VerificationReport contains a copy of any data collected by the user as well as /// reference IDs which can be used to access collected images through the FileUpload API. To configure and create + /// href="https://docs.stripe.com/api/files">FileUpload API. To configure and create /// VerificationReports, use the VerificationSession + /// href="https://docs.stripe.com/api/identity/verification_sessions">VerificationSession /// API. /// /// Related guide: Accessing + /// href="https://docs.stripe.com/identity/verification-sessions#results">Accessing /// verification results. /// public class VerificationReport : StripeEntity, IHasId, IHasObject diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportDocument.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportDocument.cs index 9c63c2a6b9..4ff4bfe4d7 100644 --- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportDocument.cs +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportDocument.cs @@ -46,7 +46,7 @@ public class VerificationReportDocument : StripeEntity - /// Array of File ids containing images for + /// Array of File ids containing images for /// this document. /// [JsonProperty("files")] diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportOptionsDocument.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportOptionsDocument.cs index 2530303713..afd82dcf57 100644 --- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportOptionsDocument.cs +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportOptionsDocument.cs @@ -23,7 +23,7 @@ public class VerificationReportOptionsDocument : StripeEntity /// Collect an ID number and perform an ID number + /// href="https://docs.stripe.com/identity/verification-checks?type=id-number">ID number /// check with the document’s extracted name and date of birth. /// [JsonProperty("require_id_number")] @@ -44,9 +44,9 @@ public class VerificationReportOptionsDocument : StripeEntity /// Capture a face image and perform a selfie check + /// href="https://docs.stripe.com/identity/verification-checks?type=selfie">selfie check /// comparing a photo ID and a picture of your user’s face. Learn more. + /// href="https://docs.stripe.com/identity/selfie">Learn more. /// [JsonProperty("require_matching_selfie")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportSelfie.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportSelfie.cs index 0a2d375d68..e60d3a5d2a 100644 --- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportSelfie.cs +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportSelfie.cs @@ -9,7 +9,7 @@ namespace Stripe.Identity public class VerificationReportSelfie : StripeEntity { /// - /// ID of the File holding the image of the + /// ID of the File holding the image of the /// identity document used in this check. /// [JsonProperty("document")] @@ -28,7 +28,7 @@ public class VerificationReportSelfie : StripeEntity public VerificationReportSelfieError Error { get; set; } /// - /// ID of the File holding the image of the + /// ID of the File holding the image of the /// selfie used in this check. /// [JsonProperty("selfie")] diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs index e251baa366..2a5e1f3501 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs @@ -22,7 +22,7 @@ namespace Stripe.Identity /// VerificationSession contains the user's verified data after verification checks are /// complete. /// - /// Related guide: The + /// Related guide: The /// Verification Sessions API. /// #if NET6_0_OR_GREATER @@ -60,12 +60,12 @@ public class VerificationSession : StripeEntity, IHasId, IH /// /// The short-lived client secret used by Stripe.js to show a verification modal inside + /// href="https://docs.stripe.com/js/identity/modal">show a verification modal inside /// your app. This client secret expires after 24 hours and can only be used once. Don’t /// store it, log it, embed it in a URL, or expose it to anyone other than the user. Make /// sure that you have TLS enabled on any page that includes the client secret. Refer to our /// docs on passing the + /// href="https://docs.stripe.com/identity/verification-sessions#client-secret">passing the /// client secret to the frontend to learn more. /// [JsonProperty("client_secret")] @@ -100,7 +100,7 @@ public class VerificationSession : StripeEntity, IHasId, IH /// /// (ID of the VerificationReport) /// ID of the most recent VerificationReport. Learn more about + /// href="https://docs.stripe.com/identity/verification-sessions#results">Learn more about /// accessing detailed verification results.. /// [JsonIgnore] @@ -116,7 +116,7 @@ public string LastVerificationReportId /// /// (Expanded) /// ID of the most recent VerificationReport. Learn more about + /// href="https://docs.stripe.com/identity/verification-sessions#results">Learn more about /// accessing detailed verification results.. /// /// For more information, see the expand documentation. @@ -151,7 +151,7 @@ public VerificationReport LastVerificationReport public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -198,6 +198,15 @@ public VerificationReport LastVerificationReport #endif public string RelatedCustomer { get; set; } + /// + /// The ID of the Account representing a customer. + /// + [JsonProperty("related_customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_customer_account")] +#endif + public string RelatedCustomerAccount { get; set; } + [JsonProperty("related_person")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("related_person")] @@ -206,7 +215,7 @@ public VerificationReport LastVerificationReport /// /// Status of this VerificationSession. Learn more about the lifecycle + /// href="https://docs.stripe.com/identity/how-sessions-work">Learn more about the lifecycle /// of sessions. /// One of: canceled, processing, requires_input, or verified. /// @@ -217,7 +226,7 @@ public VerificationReport LastVerificationReport public string Status { get; set; } /// - /// The type of verification + /// The type of verification /// check to be performed. /// One of: document, id_number, or verification_flow. /// @@ -232,7 +241,7 @@ public VerificationReport LastVerificationReport /// information. This URL expires after 48 hours and can only be used once. Don’t store it, /// log it, send it in emails or expose it to anyone other than the user. Refer to our docs /// on verifying + /// href="https://docs.stripe.com/identity/verify-identity-documents?platform=web&type=redirect">verifying /// identity documents to learn how to redirect users to Stripe. /// [JsonProperty("url")] diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptionsDocument.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptionsDocument.cs index 45a03ff994..1696adce2b 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptionsDocument.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptionsDocument.cs @@ -23,7 +23,7 @@ public class VerificationSessionOptionsDocument : StripeEntity /// Collect an ID number and perform an ID number + /// href="https://docs.stripe.com/identity/verification-checks?type=id-number">ID number /// check with the document’s extracted name and date of birth. /// [JsonProperty("require_id_number")] @@ -44,9 +44,9 @@ public class VerificationSessionOptionsDocument : StripeEntity /// Capture a face image and perform a selfie check + /// href="https://docs.stripe.com/identity/verification-checks?type=selfie">selfie check /// comparing a photo ID and a picture of your user’s face. Learn more. + /// href="https://docs.stripe.com/identity/selfie">Learn more. /// [JsonProperty("require_matching_selfie")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs index 8b8795762e..ea98a3aac4 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs @@ -12,22 +12,22 @@ namespace Stripe /// /// Invoice Items represent the component lines of an invoice. When you create an invoice item + /// href="https://docs.stripe.com/api/invoices">invoice. When you create an invoice item /// with an invoice field, it is attached to the specified invoice and included as an invoice line item within invoice.lines. + /// href="https://docs.stripe.com/api/invoices/line_item">an invoice line item within invoice.lines. /// /// Invoice Items can be created before you are ready to actually send the invoice. This can /// be particularly useful when combined with a subscription. Sometimes you want to + /// href="https://docs.stripe.com/api/subscriptions">subscription. Sometimes you want to /// add a charge or credit to a customer, but actually charge or credit the customer's card /// only at the end of a regular billing cycle. This is useful for combining several charges /// (to minimize per-transaction fees), or for having Stripe tabulate your usage-based /// billing totals. /// - /// Related guides: Integrate with + /// Related guides: Integrate with /// the Invoicing API, Subscription + /// href="https://docs.stripe.com/billing/invoices/subscription#adding-upcoming-invoice-items">Subscription /// Invoices. /// #if NET6_0_OR_GREATER @@ -78,7 +78,7 @@ public class InvoiceItem : StripeEntity, IHasId, IHasMetadata, IHas /// /// (ID of the Customer) - /// The ID of the customer who will be billed when this invoice item is billed. + /// The ID of the customer to bill for this invoice item. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -92,7 +92,7 @@ public string CustomerId /// /// (Expanded) - /// The ID of the customer who will be billed when this invoice item is billed. + /// The ID of the customer to bill for this invoice item. /// /// For more information, see the expand documentation. /// @@ -115,6 +115,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The ID of the account to bill for this invoice item. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Time at which the object was created. Measured in seconds since the Unix epoch. /// @@ -247,7 +256,7 @@ public Invoice Invoice public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs index a5824d11bb..7ddd9fb8ef 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs @@ -11,12 +11,12 @@ namespace Stripe /// /// Invoice Line Items represent the individual lines within an invoice and only exist within the + /// href="https://docs.stripe.com/api/invoices">invoice and only exist within the /// context of an invoice. /// /// Each line item is backed by either an invoice item or a subscription item. + /// href="https://docs.stripe.com/api/invoiceitems">invoice item or a subscription item. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -149,7 +149,7 @@ public List Discounts public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Note that for line items with type=subscription, /// metadata reflects the current metadata from the subscription associated with the @@ -236,6 +236,16 @@ public Subscription Subscription internal ExpandableField InternalSubscription { get; set; } #endregion + /// + /// The subtotal of the line item, in cents (or local equivalent), before any discounts or + /// taxes. + /// + [JsonProperty("subtotal")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subtotal")] +#endif + public long Subtotal { get; set; } + /// /// The tax information of the line item. /// diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs index 8da24238db..689f2c3e41 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs @@ -8,6 +8,9 @@ namespace Stripe public class InvoiceLineItemTaxTaxRateDetails : StripeEntity { + /// + /// ID of the tax rate. + /// [JsonProperty("tax_rate")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tax_rate")] diff --git a/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs b/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs index 8ff1f73267..d495471fe3 100644 --- a/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs +++ b/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs @@ -11,7 +11,7 @@ namespace Stripe /// /// Invoice Payments represent payments made against invoices. Invoice Payments can be /// accessed in two ways: 1. By expanding the payments field on the Invoice resource. 2. By using the Invoice + /// href="https://api.stripe.com#invoice">Invoice resource. 2. By using the Invoice /// Payment retrieve and list endpoints. /// /// Invoice Payments include the mapping between payment objects, such as Payment Intent, diff --git a/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs b/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs index 15ffec3fdb..45bb41b78a 100644 --- a/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs +++ b/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs @@ -56,7 +56,7 @@ public class InvoiceRenderingTemplate : StripeEntity, public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs index 8467c11e6d..11ff9dd4cd 100644 --- a/src/Stripe.net/Entities/Invoices/Invoice.cs +++ b/src/Stripe.net/Entities/Invoices/Invoice.cs @@ -14,14 +14,14 @@ namespace Stripe /// Invoices are statements of amounts owed by a customer, and are either generated one-off, /// or generated periodically from a subscription. /// - /// They contain invoice items, and + /// They contain invoice items, and /// proration adjustments that may be caused by subscription upgrades/downgrades (if /// necessary). /// /// If your invoice is configured to be billed through automatic charges, Stripe /// automatically finalizes your invoice and attempts payment. Note that finalizing the /// invoice, when + /// href="https://docs.stripe.com/invoicing/integration/automatic-advancement-collection">when /// automatic, does not happen immediately as the invoice is created. Stripe waits until /// one hour after the last webhook was successfully sent (or the last webhook timed out /// after failing). If you (and the platforms you may have connected to) have no webhooks @@ -40,9 +40,9 @@ namespace Stripe /// the amount due to the customer's credit balance which is applied to the next invoice. /// /// More details on the customer's credit balance are here. + /// href="https://docs.stripe.com/billing/customer/balance">here. /// - /// Related guide: Send invoices + /// Related guide: Send invoices /// to customers. /// #if NET6_0_OR_GREATER @@ -252,7 +252,7 @@ public Application Application /// /// Controls whether Stripe performs automatic + /// href="https://docs.stripe.com/invoicing/integration/automatic-advancement-collection">automatic /// collection of the invoice. If false, the invoice's state doesn't /// automatically advance without an explicit action. /// @@ -363,7 +363,7 @@ public Application Application /// /// (ID of the Customer) - /// The ID of the customer who will be billed. + /// The ID of the customer to bill. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -377,7 +377,7 @@ public string CustomerId /// /// (Expanded) - /// The ID of the customer who will be billed. + /// The ID of the customer to bill. /// /// For more information, see the expand documentation. /// @@ -400,6 +400,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The ID of the account representing the customer to bill. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The customer's address. Until the invoice is finalized, this field will equal /// customer.address. Once the invoice is finalized, this field will no longer be @@ -685,7 +694,7 @@ public List Discounts /// /// Details of the invoice that was cloned. See the revision documentation + /// href="https://docs.stripe.com/invoicing/invoice-revisions">revision documentation /// for more details. /// [JsonProperty("from_invoice")] @@ -794,7 +803,7 @@ public Invoice LatestRevision public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -832,7 +841,7 @@ public Invoice LatestRevision /// (ID of the Account) /// The account (if any) for which the funds of the invoice payment are intended. If set, /// the invoice will be presented with the branding and support information of the specified - /// account. See the Invoices + /// account. See the Invoices /// with Connect documentation for details. /// [JsonIgnore] @@ -849,7 +858,7 @@ public string OnBehalfOfId /// (Expanded) /// The account (if any) for which the funds of the invoice payment are intended. If set, /// the invoice will be presented with the branding and support information of the specified - /// account. See the Invoices + /// account. See the Invoices /// with Connect documentation for details. /// /// For more information, see the expand documentation. @@ -1005,7 +1014,7 @@ public Account OnBehalfOf /// /// The status of the invoice, one of draft, open, paid, /// uncollectible, or void. Learn + /// href="https://docs.stripe.com/billing/invoices/workflow#workflow-overview">Learn /// more. /// One of: draft, open, paid, uncollectible, or void. /// @@ -1141,7 +1150,7 @@ public TestHelpers.TestClock TestClock /// /// Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until /// all webhook delivery attempts have been exhausted. This + /// href="https://docs.stripe.com/billing/webhooks#understand">been exhausted. This /// field tracks the time when webhooks for this invoice were successfully delivered. If the /// invoice had no webhooks to deliver, this will be set while the invoice is being created. /// diff --git a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs index 30d989a89b..0edf1af4ca 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs @@ -22,7 +22,7 @@ public class InvoiceAutomaticTax : StripeEntity /// /// Whether Stripe automatically computes tax on this invoice. Note that incompatible /// invoice items (invoice items with manually specified tax rates, negative amounts, or + /// href="https://docs.stripe.com/api/tax_rates">tax rates, negative amounts, or /// tax_behavior=unspecified) cannot be added to automatic tax invoices. /// [JsonProperty("enabled")] diff --git a/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetails.cs b/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetails.cs index 8f337f21db..004cc75340 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetails.cs @@ -15,7 +15,7 @@ namespace Stripe public class InvoiceParentSubscriptionDetails : StripeEntity, IHasMetadata { /// - /// Set of key-value pairs defined as + /// Set of key-value pairs defined as /// subscription metadata when an invoice is created. Becomes an immutable snapshot of the /// subscription metadata at the time of invoice finalization. Note: This attribute is /// populated only for invoices created on or after June 29, 2023.. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index 168d4a7728..ad1109eee9 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -43,8 +43,9 @@ public class InvoicePaymentSettings : StripeEntity /// ideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, payco, paynow, paypal, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, swish, us_bank_account, or wechat_pay. + /// payto, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, swish, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs index dd664c9752..78069a08eb 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs @@ -58,6 +58,16 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by payto, this sub-hash contains details about the PayTo payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsPayto Payto { get; set; } + /// /// If paying by sepa_debit, this sub-hash contains details about the SEPA Direct /// Debit payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCard.cs index a640a00559..73b579c0d9 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCard.cs @@ -17,10 +17,10 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCard : StripeEntity /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. Read our guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPayto.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPayto.cs new file mode 100644 index 0000000000..de2ad98e8e --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPayto.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsPayto : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs new file mode 100644 index 0000000000..e67b079599 --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptions : StripeEntity + { + /// + /// The maximum amount that can be collected in a single invoice. If you don't specify a + /// maximum, then there is no limit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// Only maximum is supported. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs b/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs index 5ef072b8f5..639d7fc199 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs @@ -8,6 +8,9 @@ namespace Stripe public class InvoiceTotalTaxTaxRateDetails : StripeEntity { + /// + /// ID of the tax rate. + /// [JsonProperty("tax_rate")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tax_rate")] diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 29fbeccab1..b1d3086714 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -10,12 +10,12 @@ namespace Stripe.Issuing #endif /// - /// When an issued card is used to make a + /// When an issued card is used to make a /// purchase, an Issuing Authorization object is created. Authorizations must + /// href="https://docs.stripe.com/issuing/purchases/authorizations">Authorizations must /// be approved for the purchase to be completed successfully. /// - /// Related guide: Issued + /// Related guide: Issued /// card authorizations. /// #if NET6_0_OR_GREATER @@ -56,7 +56,7 @@ public class Authorization : StripeEntity, IHasId, IHasMetadata, /// /// Detailed breakdown of amount components. These amounts are denominated in /// currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_details")] #if NET6_0_OR_GREATER @@ -94,7 +94,7 @@ public class Authorization : StripeEntity, IHasId, IHasMetadata, public List BalanceTransactions { get; set; } /// - /// You can create physical or virtual cards + /// You can create physical or virtual cards /// that are issued to cardholders. /// [JsonProperty("card")] @@ -242,7 +242,7 @@ public Cardholder Cardholder public AuthorizationMerchantData MerchantData { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -298,7 +298,7 @@ public Cardholder Cardholder /// /// (ID of the Token) - /// Token object used for + /// Token object used for /// this authorization. If a network token was not used for this authorization, this field /// will be null. /// @@ -314,7 +314,7 @@ public string TokenId /// /// (Expanded) - /// Token object used for + /// Token object used for /// this authorization. If a network token was not used for this authorization, this field /// will be null. /// @@ -340,7 +340,7 @@ public Token Token #endregion /// - /// List of transactions + /// List of transactions /// associated with this authorization. /// [JsonProperty("transactions")] @@ -350,9 +350,9 @@ public Token Token public List Transactions { get; set; } /// - /// Treasury details related to this + /// Treasury details related to this /// authorization if it was created on a FinancialAccount. + /// href="https://docs.stripe.com/api/treasury/financial_accounts">FinancialAccount. /// [JsonProperty("treasury")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs index 4be6dd4b94..457aec066f 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs @@ -10,7 +10,7 @@ public class AuthorizationMerchantData : StripeEntity { /// /// A categorization of the seller's type of business. See our merchant categories guide + /// href="https://docs.stripe.com/issuing/merchant-categories">merchant categories guide /// for a list of possible values. /// [JsonProperty("category")] diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationPendingRequest.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationPendingRequest.cs index 869496eef7..dbe7377021 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationPendingRequest.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationPendingRequest.cs @@ -11,8 +11,8 @@ public class AuthorizationPendingRequest : StripeEntity /// The additional amount Stripe will hold if the authorization is approved, in the card's /// currency - /// and in the smallest currency + /// href="https://docs.stripe.com/api#issuing_authorization_object-pending-request-currency">currency + /// and in the smallest currency /// unit. /// [JsonProperty("amount")] @@ -24,7 +24,7 @@ public class AuthorizationPendingRequest : StripeEntity /// Detailed breakdown of amount components. These amounts are denominated in /// currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_details")] #if NET6_0_OR_GREATER @@ -45,7 +45,7 @@ public class AuthorizationPendingRequest : StripeEntity /// If set true, you may provide amount + /// href="https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount">amount /// to control how much to hold for the authorization. /// [JsonProperty("is_amount_controllable")] @@ -56,7 +56,7 @@ public class AuthorizationPendingRequest : StripeEntity /// The amount the merchant is requesting to be authorized in the merchant_currency. - /// The amount is in the smallest + /// The amount is in the smallest /// currency unit. /// [JsonProperty("merchant_amount")] diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs index 609ac8fcf2..e21cc917d4 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs @@ -12,7 +12,7 @@ public class AuthorizationRequestHistory : StripeEntity /// The pending_request.amount at the time of the request, presented in your card's - /// currency and in the smallest + /// currency and in the smallest /// currency unit. Stripe held this amount from your account to fund the authorization /// if the request was approved. /// @@ -25,7 +25,7 @@ public class AuthorizationRequestHistory : StripeEntity /// Detailed breakdown of amount components. These amounts are denominated in /// currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_details")] #if NET6_0_OR_GREATER @@ -80,7 +80,7 @@ public class AuthorizationRequestHistory : StripeEntity /// The pending_request.merchant_amount at the time of the request, presented in the /// merchant_currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("merchant_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTreasury.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTreasury.cs index 16ffd5e58e..65538b2dc3 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTreasury.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTreasury.cs @@ -11,7 +11,7 @@ public class AuthorizationTreasury : StripeEntity { /// /// The array of ReceivedCredits + /// href="https://docs.stripe.com/api/treasury/received_credits">ReceivedCredits /// associated with this authorization. /// [JsonProperty("received_credits")] @@ -22,7 +22,7 @@ public class AuthorizationTreasury : StripeEntity /// /// The array of ReceivedDebits + /// href="https://docs.stripe.com/api/treasury/received_debits">ReceivedDebits /// associated with this authorization. /// [JsonProperty("received_debits")] @@ -32,7 +32,7 @@ public class AuthorizationTreasury : StripeEntity public List ReceivedDebits { get; set; } /// - /// The Treasury Transaction + /// The Treasury Transaction /// associated with this authorization. /// [JsonProperty("transaction")] diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs index 13a0930626..dfae9a36e3 100644 --- a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs +++ b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs @@ -11,10 +11,10 @@ namespace Stripe.Issuing /// /// An Issuing Cardholder object represents an individual or business entity who is - /// issued cards. + /// issued cards. /// /// Related guide: How + /// href="https://docs.stripe.com/issuing/cards/virtual/issue-cards#create-cardholder">How /// to create a cardholder. /// public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasObject @@ -92,7 +92,7 @@ public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasOb public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -114,7 +114,7 @@ public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasOb /// /// The cardholder's phone number. This is required for all cardholders who will be creating /// EU cards. See the 3D Secure + /// href="https://docs.stripe.com/issuing/3d-secure#when-is-3d-secure-applied">3D Secure /// documentation for more details. /// [JsonProperty("phone_number")] @@ -126,7 +126,7 @@ public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasOb /// /// The cardholder’s preferred locales (languages), ordered by preference. Locales can be /// de, en, es, fr, or it. This changes the language of - /// the 3D Secure flow and one-time + /// the 3D Secure flow and one-time /// password messages sent to the cardholder. /// One of: de, en, es, fr, or it. /// @@ -144,7 +144,7 @@ public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasOb /// /// Rules that control spending across this cardholder's cards. Refer to our documentation for + /// href="https://docs.stripe.com/issuing/controls/spending-controls">documentation for /// more details. /// [JsonProperty("spending_controls")] @@ -165,7 +165,7 @@ public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasOb /// /// One of individual or company. See Choose a cardholder + /// href="https://docs.stripe.com/issuing/other/choose-cardholder">Choose a cardholder /// type for more details. /// One of: company, or individual. /// diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderIndividualVerificationDocument.cs b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderIndividualVerificationDocument.cs index 2f636191d8..b4c7c2bc9a 100644 --- a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderIndividualVerificationDocument.cs +++ b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderIndividualVerificationDocument.cs @@ -16,9 +16,8 @@ public class CardholderIndividualVerificationDocument : StripeEntity /// (ID of the File) - /// The back of a document returned by a file upload with a purpose - /// value of identity_document. + /// The back of a document returned by a file + /// upload with a purpose value of identity_document. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -32,9 +31,8 @@ public string BackId /// /// (Expanded) - /// The back of a document returned by a file upload with a purpose - /// value of identity_document. + /// The back of a document returned by a file + /// upload with a purpose value of identity_document. /// /// For more information, see the expand documentation. /// @@ -61,9 +59,8 @@ public File Back /// /// (ID of the File) - /// The front of a document returned by a file upload with a purpose - /// value of identity_document. + /// The front of a document returned by a file + /// upload with a purpose value of identity_document. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -77,9 +74,8 @@ public string FrontId /// /// (Expanded) - /// The front of a document returned by a file upload with a purpose - /// value of identity_document. + /// The front of a document returned by a file + /// upload with a purpose value of identity_document. /// /// For more information, see the expand documentation. /// diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs index bd4bbf5a4d..26b6916c64 100644 --- a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs +++ b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs @@ -11,7 +11,7 @@ public class CardholderSpendingControls : StripeEntity /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to allow. All other categories will be blocked. Cannot be set with /// blocked_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, @@ -180,7 +180,7 @@ public class CardholderSpendingControls : StripeEntity /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to decline. All other categories will be allowed. Cannot be set with /// allowed_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControlsSpendingLimit.cs b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControlsSpendingLimit.cs index 4275211ef8..9701eede84 100644 --- a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControlsSpendingLimit.cs +++ b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControlsSpendingLimit.cs @@ -11,7 +11,7 @@ public class CardholderSpendingControlsSpendingLimit : StripeEntity /// Maximum amount allowed to spend per interval. This amount is in the card's currency and - /// in the smallest currency + /// in the smallest currency /// unit. /// [JsonProperty("amount")] @@ -22,7 +22,7 @@ public class CardholderSpendingControlsSpendingLimit : StripeEntity /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// this limit applies to. Omitting this field will apply the limit to all categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, /// advertising_services, agricultural_cooperative, diff --git a/src/Stripe.net/Entities/Issuing/Cards/Card.cs b/src/Stripe.net/Entities/Issuing/Cards/Card.cs index 25226abd10..173a6a3fdc 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/Card.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/Card.cs @@ -10,7 +10,7 @@ namespace Stripe.Issuing #endif /// - /// You can create physical or virtual cards + /// You can create physical or virtual cards /// that are issued to cardholders. /// #if NET6_0_OR_GREATER @@ -57,10 +57,10 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// An Issuing Cardholder object represents an individual or business entity who is - /// issued cards. + /// issued cards. /// /// Related guide: How + /// href="https://docs.stripe.com/issuing/cards/virtual/issue-cards#create-cardholder">How /// to create a cardholder. /// [JsonProperty("cardholder")] @@ -94,9 +94,9 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// The card's CVC. For security reasons, this is only available for virtual cards, and will /// be omitted unless you explicitly request it with the expand parameter. + /// href="https://docs.stripe.com/api/expanding_objects">the expand parameter. /// Additionally, it's only available via the "Retrieve a card" + /// href="https://docs.stripe.com/api/issuing/cards/retrieve">"Retrieve a card" /// endpoint, not via "List all cards" or any other endpoint. /// [JsonProperty("cvc")] @@ -162,7 +162,7 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -175,9 +175,9 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// The full unredacted card number. For security reasons, this is only available for /// virtual cards, and will be omitted unless you explicitly request it with the expand parameter. + /// href="https://docs.stripe.com/api/expanding_objects">the expand parameter. /// Additionally, it's only available via the "Retrieve a card" + /// href="https://docs.stripe.com/api/issuing/cards/retrieve">"Retrieve a card" /// endpoint, not via "List all cards" or any other endpoint. /// [JsonProperty("number")] diff --git a/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs b/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs index 8e391c48e6..b70d37b007 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs @@ -11,7 +11,7 @@ public class CardSpendingControls : StripeEntity { /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to allow. All other categories will be blocked. Cannot be set with /// blocked_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, @@ -180,7 +180,7 @@ public class CardSpendingControls : StripeEntity /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to decline. All other categories will be allowed. Cannot be set with /// allowed_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, diff --git a/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControlsSpendingLimit.cs b/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControlsSpendingLimit.cs index e561012012..3381fd8596 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControlsSpendingLimit.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControlsSpendingLimit.cs @@ -11,7 +11,7 @@ public class CardSpendingControlsSpendingLimit : StripeEntity /// Maximum amount allowed to spend per interval. This amount is in the card's currency and - /// in the smallest currency + /// in the smallest currency /// unit. /// [JsonProperty("amount")] @@ -22,7 +22,7 @@ public class CardSpendingControlsSpendingLimit : StripeEntity /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// this limit applies to. Omitting this field will apply the limit to all categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, /// advertising_services, agricultural_cooperative, diff --git a/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs b/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs index 9fe9b2f131..1e198a861a 100644 --- a/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs +++ b/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs @@ -10,11 +10,11 @@ namespace Stripe.Issuing #endif /// - /// As a card issuer, you can dispute + /// As a card issuer, you can dispute /// transactions that the cardholder does not recognize, suspects to be fraudulent, or has /// other issues with. /// - /// Related guide: Issuing + /// Related guide: Issuing /// disputes. /// #if NET6_0_OR_GREATER @@ -42,7 +42,7 @@ public class Dispute : StripeEntity, IHasId, IHasMetadata, IHasObject, /// /// Disputed amount in the card's currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// Usually the amount of the transaction, but can differ (usually because of /// currency fluctuation). /// @@ -121,7 +121,7 @@ public class Dispute : StripeEntity, IHasId, IHasMetadata, IHasObject, public string LossReason { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -184,7 +184,7 @@ public Transaction Transaction #endregion /// - /// Treasury details related to this + /// Treasury details related to this /// dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts. /// [JsonProperty("treasury")] diff --git a/src/Stripe.net/Entities/Issuing/Disputes/DisputeTreasury.cs b/src/Stripe.net/Entities/Issuing/Disputes/DisputeTreasury.cs index 1697e6c0d9..9d7b46fdca 100644 --- a/src/Stripe.net/Entities/Issuing/Disputes/DisputeTreasury.cs +++ b/src/Stripe.net/Entities/Issuing/Disputes/DisputeTreasury.cs @@ -10,7 +10,7 @@ public class DisputeTreasury : StripeEntity { /// /// The Treasury DebitReversal + /// href="https://docs.stripe.com/api/treasury/debit_reversals">DebitReversal /// representing this Issuing dispute. /// [JsonProperty("debit_reversal")] @@ -21,7 +21,7 @@ public class DisputeTreasury : StripeEntity /// /// The Treasury ReceivedDebit that is + /// href="https://docs.stripe.com/api/treasury/received_debits">ReceivedDebit that is /// being disputed. /// [JsonProperty("received_debit")] diff --git a/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs b/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs index beac2c3605..e9f1c43c3a 100644 --- a/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs +++ b/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs @@ -120,7 +120,7 @@ public File CardLogo public string LookupKey { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Issuing/Tokens/Token.cs b/src/Stripe.net/Entities/Issuing/Tokens/Token.cs index c923a54f93..4c30732c68 100644 --- a/src/Stripe.net/Entities/Issuing/Tokens/Token.cs +++ b/src/Stripe.net/Entities/Issuing/Tokens/Token.cs @@ -10,8 +10,8 @@ namespace Stripe.Issuing /// /// An issuing token object is created when an issued card is added to a digital wallet. As - /// a card issuer, you can view and manage these + /// a card issuer, you can view and manage these /// tokens through Stripe. /// #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs b/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs index 0c98afe716..f827686681 100644 --- a/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs @@ -10,11 +10,11 @@ namespace Stripe.Issuing #endif /// - /// Any use of an issued card that results in + /// Any use of an issued card that results in /// funds entering or leaving your Stripe account, such as a completed purchase or refund, /// is represented by an Issuing Transaction object. /// - /// Related guide: Issued + /// Related guide: Issued /// card transactions. /// #if NET6_0_OR_GREATER @@ -42,7 +42,7 @@ public class Transaction : StripeEntity, IHasId, IHasMetadata, IHas /// /// The transaction amount, which will be reflected in your balance. This amount is in your - /// currency and in the smallest + /// currency and in the smallest /// currency unit. /// [JsonProperty("amount")] @@ -54,7 +54,7 @@ public class Transaction : StripeEntity, IHasId, IHasMetadata, IHas /// /// Detailed breakdown of amount components. These amounts are denominated in /// currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_details")] #if NET6_0_OR_GREATER @@ -107,7 +107,7 @@ public Authorization Authorization /// /// (ID of the BalanceTransaction) - /// ID of the balance + /// ID of the balance /// transaction associated with this transaction. /// [JsonIgnore] @@ -122,7 +122,7 @@ public string BalanceTransactionId /// /// (Expanded) - /// ID of the balance + /// ID of the balance /// transaction associated with this transaction. /// /// For more information, see the expand documentation. @@ -303,7 +303,7 @@ public Dispute Dispute /// /// The amount that the merchant will receive, denominated in merchant_currency and - /// in the smallest currency + /// in the smallest currency /// unit. It will be different from amount if the merchant is taking payment in a /// different currency. /// @@ -329,7 +329,7 @@ public Dispute Dispute public AuthorizationMerchantData MerchantData { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -361,7 +361,7 @@ public Dispute Dispute /// /// (ID of the Token) - /// Token object used for + /// Token object used for /// this transaction. If a network token was not used for this transaction, this field will /// be null. /// @@ -377,7 +377,7 @@ public string TokenId /// /// (Expanded) - /// Token object used for + /// Token object used for /// this transaction. If a network token was not used for this transaction, this field will /// be null. /// @@ -403,7 +403,7 @@ public Token Token #endregion /// - /// Treasury details related to this + /// Treasury details related to this /// transaction if it was created on a /// [FinancialAccount](/docs/api/treasury/financial_accounts. /// diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionTreasury.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionTreasury.cs index c3f8db34f9..d33299899d 100644 --- a/src/Stripe.net/Entities/Issuing/Transactions/TransactionTreasury.cs +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionTreasury.cs @@ -10,7 +10,7 @@ public class TransactionTreasury : StripeEntity { /// /// The Treasury ReceivedCredit + /// href="https://docs.stripe.com/api/treasury/received_credits">ReceivedCredit /// representing this Issuing transaction if it is a refund. /// [JsonProperty("received_credit")] @@ -21,7 +21,7 @@ public class TransactionTreasury : StripeEntity /// /// The Treasury ReceivedDebit + /// href="https://docs.stripe.com/api/treasury/received_debits">ReceivedDebit /// representing this Issuing transaction if it is a capture. /// [JsonProperty("received_debit")] diff --git a/src/Stripe.net/Entities/LineItems/LineItem.cs b/src/Stripe.net/Entities/LineItems/LineItem.cs index 46194b6be8..7b48d41f24 100644 --- a/src/Stripe.net/Entities/LineItems/LineItem.cs +++ b/src/Stripe.net/Entities/LineItems/LineItem.cs @@ -10,7 +10,7 @@ namespace Stripe /// /// A line item. /// - public class LineItem : StripeEntity, IHasId, IHasObject + public class LineItem : StripeEntity, IHasId, IHasMetadata, IHasObject { /// /// Unique identifier for the object. @@ -106,6 +106,17 @@ public class LineItem : StripeEntity, IHasId, IHasObject #endif public List Discounts { get; set; } + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + /// /// The price used to generate the line item. /// diff --git a/src/Stripe.net/Entities/LineItems/LineItemDiscount.cs b/src/Stripe.net/Entities/LineItems/LineItemDiscount.cs index f75007c7ea..d5d699bc84 100644 --- a/src/Stripe.net/Entities/LineItems/LineItemDiscount.cs +++ b/src/Stripe.net/Entities/LineItems/LineItemDiscount.cs @@ -19,12 +19,12 @@ public class LineItemDiscount : StripeEntity /// /// A discount represents the actual application of a coupon or promotion code. It contains + /// href="https://api.stripe.com#coupons">coupon or promotion code. It contains /// information about when the discount began, when it will end, and what it is applied to. /// /// Related guide: Applying discounts to + /// href="https://docs.stripe.com/billing/subscriptions/discounts">Applying discounts to /// subscriptions. /// [JsonProperty("discount")] diff --git a/src/Stripe.net/Entities/LoginLinks/LoginLink.cs b/src/Stripe.net/Entities/LoginLinks/LoginLink.cs index 3a9bded574..9c30b0164d 100644 --- a/src/Stripe.net/Entities/LoginLinks/LoginLink.cs +++ b/src/Stripe.net/Entities/LoginLinks/LoginLink.cs @@ -11,9 +11,9 @@ namespace Stripe /// /// Login Links are single-use URLs that takes an Express account to the login page for /// their Stripe dashboard. A Login Link differs from an Account Link in that it takes the + /// href="https://docs.stripe.com/api/account_links">Account Link in that it takes the /// user directly to their Express + /// href="https://docs.stripe.com/connect/integrate-express-dashboard#create-login-link">Express /// dashboard for the specified account. /// public class LoginLink : StripeEntity, IHasObject diff --git a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs index 340101a46f..f6f4c0a2e0 100644 --- a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs @@ -86,6 +86,12 @@ public class MandatePaymentMethodDetails : StripeEntity + { + /// + /// Amount that will be collected. It is required when amount_type is fixed. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The type of amount that will be collected. The amount charged must be exact or up to the + /// value of amount param for fixed or maximum type respectively. + /// Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no + /// end date. + /// + [JsonProperty("end_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] +#endif + public string EndDate { get; set; } + + /// + /// The periodicity at which payments will be collected. Defaults to adhoc. + /// One of: adhoc, annual, daily, fortnightly, monthly, + /// quarterly, semi_annual, or weekly. + /// + [JsonProperty("payment_schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_schedule")] +#endif + public string PaymentSchedule { get; set; } + + /// + /// The number of payments that will be made during a payment period. Defaults to 1 except + /// for when payment_schedule is adhoc. In that case, it defaults to no limit. + /// + [JsonProperty("payments_per_period")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payments_per_period")] +#endif + public long? PaymentsPerPeriod { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to + /// confirmation time. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs index 98d1bfdb6f..91de7557ac 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs @@ -157,7 +157,7 @@ public class PaymentAttemptRecord : StripeEntity, IHasId, public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmount.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmount.cs index d7e37e3dcc..78cf6de774 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmount.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmount.cs @@ -21,7 +21,7 @@ public class PaymentAttemptRecordAmount : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountAuthorized.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountAuthorized.cs index 1c51574a8d..0cb47cf4ab 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountAuthorized.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountAuthorized.cs @@ -21,7 +21,7 @@ public class PaymentAttemptRecordAmountAuthorized : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountCanceled.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountCanceled.cs index 4d60c508d9..8528dee903 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountCanceled.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountCanceled.cs @@ -21,7 +21,7 @@ public class PaymentAttemptRecordAmountCanceled : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountFailed.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountFailed.cs index a1244e63d2..58ccf4b316 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountFailed.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountFailed.cs @@ -21,7 +21,7 @@ public class PaymentAttemptRecordAmountFailed : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountGuaranteed.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountGuaranteed.cs index ebd770d66a..e460cf54d5 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountGuaranteed.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountGuaranteed.cs @@ -21,7 +21,7 @@ public class PaymentAttemptRecordAmountGuaranteed : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRefunded.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRefunded.cs index ba3898cd59..4ed14175dd 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRefunded.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRefunded.cs @@ -21,7 +21,7 @@ public class PaymentAttemptRecordAmountRefunded : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRequested.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRequested.cs index 65f3277ca1..0772465abf 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRequested.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordAmountRequested.cs @@ -21,7 +21,7 @@ public class PaymentAttemptRecordAmountRequested : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs index a1e6bf232f..321904b19e 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs @@ -286,6 +286,12 @@ public class PaymentAttemptRecordPaymentMethodDetails : StripeEntity /// The type of transaction-specific details of the payment method used in the payment. See /// PaymentMethod.type + /// href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-type">PaymentMethod.type /// for the full list of possible types. An additional hash is included on /// payment_method_details with a name matching this value. It contains information /// specific to the payment method. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAcssDebit.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAcssDebit.cs index 15dc865bc7..26f6e5f40d 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAcssDebit.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAcssDebit.cs @@ -17,6 +17,15 @@ public class PaymentAttemptRecordPaymentMethodDetailsAcssDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs index 92a2f41a54..4f71a46db0 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsAffirm : StripeEntity { /// - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -19,7 +19,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsAffirm : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAuBecsDebit.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAuBecsDebit.cs index 37c21720a7..a912d18d7c 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAuBecsDebit.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAuBecsDebit.cs @@ -17,6 +17,15 @@ public class PaymentAttemptRecordPaymentMethodDetailsAuBecsDebit : StripeEntity< #endif public string BsbNumber { get; set; } + /// + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBacsDebit.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBacsDebit.cs index c668237321..c331942a5f 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBacsDebit.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBacsDebit.cs @@ -8,6 +8,15 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsBacsDebit : StripeEntity { + /// + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBillingDetailsAddress.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBillingDetailsAddress.cs index 0ca47e3589..c6f455fab5 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBillingDetailsAddress.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBillingDetailsAddress.cs @@ -55,7 +55,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsBillingDetailsAddress : Str public string PostalCode { get; set; } /// - /// State, county, province, or region. + /// State, county, province, or region (ISO 3166-2). /// [JsonProperty("state")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs index de8b905b74..aa80f01e8e 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs @@ -10,6 +10,15 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity { + /// + /// The authorization code of the payment. + /// + [JsonProperty("authorization_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authorization_code")] +#endif + public string AuthorizationCode { get; set; } + /// /// Card brand. Can be amex, cartes_bancaires, diners, discover, /// eftpos_au, jcb, link, mastercard, unionpay, @@ -55,6 +64,15 @@ public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity + /// A high-level description of the type of cards issued in this range. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + /// /// Two-digit number representing the card's expiration month. /// @@ -99,6 +117,33 @@ public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity + /// Issuer identification number of the card. + /// + [JsonProperty("iin")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("iin")] +#endif + public string Iin { get; set; } + + /// + /// Installment details for this payment. + /// + [JsonProperty("installments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("installments")] +#endif + public PaymentAttemptRecordPaymentMethodDetailsCardInstallments Installments { get; set; } + + /// + /// The name of the card's issuing bank. + /// + [JsonProperty("issuer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("issuer")] +#endif + public string Issuer { get; set; } + /// /// The last four digits of the card. /// @@ -132,6 +177,24 @@ public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity + /// Advice code from the card network for the failed payment. + /// + [JsonProperty("network_advice_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network_advice_code")] +#endif + public string NetworkAdviceCode { get; set; } + + /// + /// Decline code from the card network for the failed payment. + /// + [JsonProperty("network_decline_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network_decline_code")] +#endif + public string NetworkDeclineCode { get; set; } + /// /// If this card has network token credentials, this contains the details of the network /// token credentials. @@ -154,6 +217,17 @@ public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity + /// The transaction type that was passed for an off-session, Merchant-Initiated transaction, + /// one of recurring or unscheduled. + /// One of: recurring, or unscheduled. + /// + [JsonProperty("stored_credential_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stored_credential_usage")] +#endif + public string StoredCredentialUsage { get; set; } + /// /// Populated if this transaction used 3D Secure authentication. /// diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs new file mode 100644 index 0000000000..f4fe81391b --- /dev/null +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordPaymentMethodDetailsCardInstallments : StripeEntity + { + [JsonProperty("plan")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("plan")] +#endif + public PaymentAttemptRecordPaymentMethodDetailsCardInstallmentsPlan Plan { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallmentsPlan.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallmentsPlan.cs new file mode 100644 index 0000000000..8398816199 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallmentsPlan.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordPaymentMethodDetailsCardInstallmentsPlan : StripeEntity + { + /// + /// For fixed_count installment plans, this is the number of installment payments + /// your customer will make to their credit card. + /// + [JsonProperty("count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("count")] +#endif + public long? Count { get; set; } + + /// + /// For fixed_count installment plans, this is the interval between installment + /// payments your customer will make to their credit card. One of month. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// Type of installment plan, one of fixed_count, revolving, or bonus. + /// One of: bonus, fixed_count, or revolving. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs index 4ab40f7813..66ea4a7719 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs @@ -161,9 +161,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< public string Iin { get; set; } /// - /// Whether this PaymentIntent is + /// Whether this PaymentIntent is /// eligible for incremental authorizations. Request support using request_incremental_authorization_support. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support">request_incremental_authorization_support. /// [JsonProperty("incremental_authorization_supported")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs index 05d09359df..bbb02a0688 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs @@ -14,14 +14,14 @@ public class PaymentAttemptRecordPaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, - /// buut, finom, handelsbanken, ing, knab, + /// buut, finom, handelsbanken, ing, knab, mollie, /// moneyou, n26, nn, rabobank, regiobank, /// revolut, sns_bank, triodos_bank, van_lanschot, or /// yoursafe. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -33,8 +33,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsIdeal : StripeEntityABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, /// BUUTNL2A, FNOMNL22, FVLBNL22, HANDNL2A, INGBNL2A, - /// KNABNL2H, MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, - /// RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. + /// KNABNL2H, MLLENL2A, MOYONL21, NNBANL2G, NTSBDEB1, + /// RABONL2U, RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or + /// TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsNzBankAccount.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsNzBankAccount.cs index 63b1e40810..d80a3676ed 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsNzBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsNzBankAccount.cs @@ -45,6 +45,15 @@ public class PaymentAttemptRecordPaymentMethodDetailsNzBankAccount : StripeEntit #endif public string BranchCode { get; set; } + /// + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Last four digits of the bank account number. /// diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPaynow.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPaynow.cs index b9a2c86679..98d6cfbcd5 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPaynow.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPaynow.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsPaynow : StripeEntity { /// - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -19,7 +19,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsPaynow : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPayto.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPayto.cs new file mode 100644 index 0000000000..2e245e0052 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPayto.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordPaymentMethodDetailsPayto : StripeEntity + { + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// Last four digits of the bank account number. + /// + [JsonProperty("last4")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("last4")] +#endif + public string Last4 { get; set; } + + /// + /// ID of the mandate used to make this payment. + /// + [JsonProperty("mandate")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate")] +#endif + public string Mandate { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsSepaDebit.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsSepaDebit.cs index a20882ee35..4fb531560f 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsSepaDebit.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsSepaDebit.cs @@ -35,6 +35,15 @@ public class PaymentAttemptRecordPaymentMethodDetailsSepaDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. @@ -56,9 +65,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsSepaDebit : StripeEntity /// Find the ID of the mandate used for this payment under the payment_method_details.sepa_debit.mandate + /// href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate">payment_method_details.sepa_debit.mandate /// property on the Charge. Use this mandate ID to retrieve the Mandate. + /// href="https://docs.stripe.com/api/mandates/retrieve">retrieve the Mandate. /// [JsonProperty("mandate")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs index acdecb8120..8c93835193 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs @@ -41,6 +41,15 @@ public class PaymentAttemptRecordPaymentMethodDetailsUsBankAccount : StripeEntit #endif public string BankName { get; set; } + /// + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsWechatPay.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsWechatPay.cs index 0ead641a86..ccb6b59459 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsWechatPay.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsWechatPay.cs @@ -19,7 +19,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsWechatPay : StripeEntity - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -29,7 +29,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsWechatPay : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsAddress.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsAddress.cs index aae4dab913..f04f7ae227 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsAddress.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsAddress.cs @@ -55,7 +55,8 @@ public class PaymentAttemptRecordShippingDetailsAddress : StripeEntity - /// State, county, province, or region. + /// State, county, province, or region (ISO 3166-2). /// [JsonProperty("state")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs index 222f718e8e..48cc7fcf22 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs @@ -28,7 +28,7 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity /// The discount applied on this line item represented in the smallest currency unit. An + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. An /// integer greater than 0. /// /// This field is mutually exclusive with the amount_details[discount_amount] field. @@ -90,7 +90,7 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity /// The unit cost of the line item represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// Required for L3 rates. An integer greater than or equal to 0. /// [JsonProperty("unit_cost")] diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs index 7068d49e07..06af67520f 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsLineItemTax : StripeEntity /// The total amount of tax on the transaction represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// Required for L2 rates. An integer greater than or equal to 0. /// /// This field is mutually exclusive with the diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs index dbba48065d..95e935b081 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -16,11 +16,11 @@ namespace Stripe /// history of payment attempts for a particular session. /// /// A PaymentIntent transitions through multiple statuses + /// href="https://stripe.com/payments/paymentintents/lifecycle">multiple statuses /// throughout its lifetime as it interfaces with Stripe.js to perform authentication flows /// and ultimately creates at most one successful charge. /// - /// Related guide: Payment + /// Related guide: Payment /// Intents API. /// #if NET6_0_OR_GREATER @@ -49,10 +49,10 @@ public class PaymentIntent : StripeEntity, IHasId, IHasMetadata, /// /// Amount intended to be collected by this PaymentIntent. A positive integer representing /// how much to charge in the smallest currency unit (e.g., + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit (e.g., /// 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum /// amount is $0.50 US or equivalent + /// href="https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts">equivalent /// in charge currency. The amount value supports up to eight digits (e.g., a value of /// 99999999 for a USD charge of $999,999.99). /// @@ -132,7 +132,7 @@ public Application Application /// payment and transferred to the application owner's Stripe account. The amount of the /// application fee collected will be capped at the total amount captured. For more /// information, see the PaymentIntents use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("application_fee_amount")] @@ -197,7 +197,7 @@ public Application Application /// TLS enabled on any page that includes the client secret. /// /// Refer to our docs to accept a + /// href="https://docs.stripe.com/payments/accept-a-payment?ui=elements">accept a /// payment and learn about how client_secret should be handled. /// [JsonProperty("client_secret")] @@ -248,7 +248,7 @@ public Application Application /// Payment methods attached to other Customers cannot be used with this PaymentIntent. /// /// If setup_future_usage + /// href="https://api.stripe.com#payment_intent_object-setup_future_usage">setup_future_usage /// is set and this PaymentIntent's payment method is not card_present, then the /// payment method attaches to the Customer after the PaymentIntent has been confirmed and /// any required actions from the user are complete. If the payment method is @@ -273,7 +273,7 @@ public string CustomerId /// Payment methods attached to other Customers cannot be used with this PaymentIntent. /// /// If setup_future_usage + /// href="https://api.stripe.com#payment_intent_object-setup_future_usage">setup_future_usage /// is set and this PaymentIntent's payment method is not card_present, then the /// payment method attaches to the Customer after the PaymentIntent has been confirmed and /// any required actions from the user are complete. If the payment method is @@ -302,6 +302,27 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// ID of the Account representing the customer that this PaymentIntent belongs to, if one + /// exists. + /// + /// Payment methods attached to other Accounts cannot be used with this PaymentIntent. + /// + /// If setup_future_usage + /// is set and this PaymentIntent's payment method is not card_present, then the + /// payment method attaches to the Account after the PaymentIntent has been confirmed and + /// any required actions from the user are complete. If the payment method is + /// card_present and isn't a digital wallet, then a generated_card + /// payment method representing the card is created and attached to the Account instead. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// @@ -320,7 +341,7 @@ public Customer Customer /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -351,7 +372,7 @@ public Customer Customer /// /// (ID of the Charge) - /// ID of the latest Charge object created + /// ID of the latest Charge object created /// by this PaymentIntent. This property is null until PaymentIntent confirmation is /// attempted. /// @@ -367,7 +388,7 @@ public string LatestChargeId /// /// (Expanded) - /// ID of the latest Charge object created + /// ID of the latest Charge object created /// by this PaymentIntent. This property is null until PaymentIntent confirmation is /// attempted. /// @@ -403,10 +424,10 @@ public Charge LatestCharge public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Learn more about storing + /// href="https://docs.stripe.com/payments/payment-intents/creating-payment-intents#storing-information-in-metadata">storing /// information in metadata. /// [JsonProperty("metadata")] @@ -429,9 +450,10 @@ public Charge LatestCharge /// /// (ID of the Account) - /// The account (if any) for which the funds of the PaymentIntent are intended. See the - /// PaymentIntents use case - /// for connected accounts for details. + /// You can specify the settlement merchant as the connected account using the + /// on_behalf_of attribute on the charge. See the PaymentIntents use case for connected + /// accounts for details. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -445,9 +467,10 @@ public string OnBehalfOfId /// /// (Expanded) - /// The account (if any) for which the funds of the PaymentIntent are intended. See the - /// PaymentIntents use case - /// for connected accounts for details. + /// You can specify the settlement merchant as the connected account using the + /// on_behalf_of attribute on the charge. See the PaymentIntents use case for connected + /// accounts for details. /// /// For more information, see the expand documentation. /// @@ -519,7 +542,7 @@ public PaymentMethod PaymentMethod /// /// Information about the payment method + /// href="https://docs.stripe.com/api/payment_method_configurations">payment method /// configuration used for this PaymentIntent. /// [JsonProperty("payment_method_configuration_details")] @@ -729,7 +752,7 @@ public IPaymentSource Source /// requires_confirmation, requires_action, processing, /// requires_capture, canceled, or succeeded. Read more about each /// PaymentIntent status. + /// href="https://docs.stripe.com/payments/intents#intent-statuses">status. /// One of: canceled, processing, requires_action, /// requires_capture, requires_confirmation, requires_payment_method, /// or succeeded. @@ -742,7 +765,7 @@ public IPaymentSource Source /// /// The data that automatically creates a Transfer after the payment finalizes. Learn more - /// about the use case for + /// about the use case for /// connected accounts. /// [JsonProperty("transfer_data")] @@ -753,7 +776,7 @@ public IPaymentSource Source /// /// A string that identifies the resulting payment as part of a group. Learn more about the - /// use case for + /// use case for /// connected accounts. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs index 2a195d64fa..b9ccdd31e9 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetails : StripeEntity /// The total discount applied on the transaction represented in the smallest currency unit. An + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. An /// integer greater than 0. /// /// This field is mutually exclusive with the @@ -24,7 +24,7 @@ public class PaymentIntentAmountDetails : StripeEntity /// A list of line items, each containing information about a product in the PaymentIntent. - /// There is a maximum of 100 line items. + /// There is a maximum of 200 line items. /// [JsonProperty("line_items")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs index e4e90a21b2..fe8b966d80 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsShipping : StripeEntity /// If a physical good is being shipped, the cost of shipping represented in the smallest currency unit. An + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. An /// integer greater than or equal to 0. /// [JsonProperty("amount")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs index 87c26c9913..b5a022051d 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsTax : StripeEntity /// The total amount of tax on the transaction represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// Required for L2 rates. An integer greater than or equal to 0. /// /// This field is mutually exclusive with the diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAutomaticPaymentMethods.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAutomaticPaymentMethods.cs index dfc1aed31f..ad69aaa60d 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAutomaticPaymentMethods.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAutomaticPaymentMethods.cs @@ -13,7 +13,7 @@ public class PaymentIntentAutomaticPaymentMethods : StripeEntityconfirm this + /// href="https://docs.stripe.com/api/payment_intents/confirm">confirm this /// PaymentIntent, you may be required to provide a return_url to redirect customers /// back to your site after they authenticate or complete the payment. /// One of: always, or never. diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentHooksInputsTax.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentHooksInputsTax.cs index d955964187..6445da2598 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentHooksInputsTax.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentHooksInputsTax.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentIntentHooksInputsTax : StripeEntity { /// - /// The TaxCalculation id. + /// The TaxCalculation id. /// [JsonProperty("calculation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs index d3d96d9cfc..e163007a6b 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs @@ -242,6 +242,12 @@ public class PaymentIntentPaymentMethodOptions : StripeEntityinstallments integration guide. + /// href="https://docs.stripe.com/payments/installments">installments integration guide. /// [JsonProperty("installments")] #if NET6_0_OR_GREATER @@ -53,7 +53,7 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity /// Request ability to capture beyond the + /// href="https://docs.stripe.com/payments/extended-authorization">capture beyond the /// standard authorization validity window for this PaymentIntent. /// One of: if_available, or never. /// @@ -65,7 +65,7 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity /// Request ability to increment the + /// href="https://docs.stripe.com/payments/incremental-authorization">increment the /// authorization for this PaymentIntent. /// One of: if_available, or never. /// @@ -76,7 +76,7 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity - /// Request ability to make multiple + /// Request ability to make multiple /// captures for this PaymentIntent. /// One of: if_available, or never. /// @@ -88,7 +88,7 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity /// Request ability to overcapture for this + /// href="https://docs.stripe.com/payments/overcapture">overcapture for this /// PaymentIntent. /// One of: if_available, or never. /// @@ -101,11 +101,11 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. If not provided, this value defaults to automatic. Read our /// guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs index 8434a1640f..37166a1ee5 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs @@ -20,7 +20,7 @@ public class PaymentIntentPaymentMethodOptionsCardPresent : StripeEntity /// Request ability to capture this payment beyond the standard authorization + /// href="https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity">authorization /// validity window. /// [JsonProperty("request_extended_authorization")] @@ -31,10 +31,10 @@ public class PaymentIntentPaymentMethodOptionsCardPresent : StripeEntity /// Request ability to increment + /// href="https://docs.stripe.com/terminal/features/incremental-authorizations">increment /// this PaymentIntent if the combination of MCC and card brand is eligible. Check incremental_authorization_supported - /// in the Confirm + /// href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported">incremental_authorization_supported + /// in the Confirm /// response to verify support. /// [JsonProperty("request_incremental_authorization_support")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPayto.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPayto.cs new file mode 100644 index 0000000000..080ff04423 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPayto.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsPayto : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public PaymentIntentPaymentMethodOptionsPaytoMandateOptions MandateOptions { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// One of: none, or off_session. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptions.cs new file mode 100644 index 0000000000..e891df5a9b --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptions.cs @@ -0,0 +1,76 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsPaytoMandateOptions : StripeEntity + { + /// + /// Amount that will be collected. It is required when amount_type is fixed. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The type of amount that will be collected. The amount charged must be exact or up to the + /// value of amount param for fixed or maximum type respectively. + /// Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no + /// end date. + /// + [JsonProperty("end_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] +#endif + public string EndDate { get; set; } + + /// + /// The periodicity at which payments will be collected. Defaults to adhoc. + /// One of: adhoc, annual, daily, fortnightly, monthly, + /// quarterly, semi_annual, or weekly. + /// + [JsonProperty("payment_schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_schedule")] +#endif + public string PaymentSchedule { get; set; } + + /// + /// The number of payments that will be made during a payment period. Defaults to 1 except + /// for when payment_schedule is adhoc. In that case, it defaults to no limit. + /// + [JsonProperty("payments_per_period")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payments_per_period")] +#endif + public long? PaymentsPerPeriod { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentTransferData.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentTransferData.cs index 35615d83e2..3602292c6f 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentTransferData.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentTransferData.cs @@ -17,7 +17,7 @@ public class PaymentIntentTransferData : StripeEntity /// automatically after the payment succeeds. If no amount is specified, by default the /// entire payment amount is transferred to the destination account. The amount must be less /// than or equal to the amount, + /// href="https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount">amount, /// and must be a positive integer representing how much to transfer in the smallest /// currency unit (e.g., 100 cents to charge $1.00). /// diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs index bce7db4db2..e54ff72747 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs @@ -13,12 +13,12 @@ namespace Stripe /// page. A payment link can be shared and used multiple times. /// /// When a customer opens a payment link it will open a new checkout session to render the + /// href="https://docs.stripe.com/api/checkout/sessions">checkout session to render the /// payment page. You can use checkout + /// href="https://docs.stripe.com/api/events/types#event_types-checkout.session.completed">checkout /// session events to track payments through payment links. /// - /// Related guide: Payment Links API. + /// Related guide: Payment Links API. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -230,7 +230,7 @@ public Application Application public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -330,9 +330,9 @@ public Account OnBehalfOf /// boleto, card, cashapp, eps, fpx, giropay, /// grabpay, ideal, klarna, konbini, link, mb_way, /// mobilepay, multibanco, oxxo, p24, pay_by_bank, - /// paynow, paypal, pix, promptpay, satispay, - /// sepa_debit, sofort, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// paynow, paypal, payto, pix, promptpay, + /// satispay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceData.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceData.cs index d2ea8977e7..fdf559d74c 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceData.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceData.cs @@ -91,7 +91,7 @@ public List AccountTaxIds public PaymentLinkInvoiceCreationInvoiceDataIssuer Issuer { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkPaymentIntentData.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkPaymentIntentData.cs index 2c341b19ac..827e2e652c 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkPaymentIntentData.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkPaymentIntentData.cs @@ -29,8 +29,8 @@ public class PaymentLinkPaymentIntentData : StripeEntity - /// Set of key-value pairs that will set - /// metadata on Payment Intents + /// Set of key-value pairs that will set + /// metadata on Payment Intents /// generated from this payment link. /// [JsonProperty("metadata")] @@ -74,7 +74,7 @@ public class PaymentLinkPaymentIntentData : StripeEntity /// A string that identifies the resulting payment as part of a group. See the /// PaymentIntents use case for + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers">use case for /// connected accounts for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionData.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionData.cs index 89af872101..3f51fd029b 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionData.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionData.cs @@ -27,8 +27,8 @@ public class PaymentLinkSubscriptionData : StripeEntity - /// Set of key-value pairs that will set - /// metadata on Subscriptions + /// Set of key-value pairs that will set + /// metadata on Subscriptions /// generated from this payment link. /// [JsonProperty("metadata")] diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs index 39402f6ab5..9ec77a50e2 100644 --- a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs +++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs @@ -12,7 +12,7 @@ namespace Stripe /// configurations with different sets of payment methods for different scenarios. /// /// There are two types of PaymentMethodConfigurations. Which is used depends on the charge type:. + /// href="https://docs.stripe.com/connect/charges">charge type:. /// /// Direct configurations apply to payments created on your account, /// including Connect destination charges, Connect separate charges and transfers, and @@ -29,11 +29,11 @@ namespace Stripe /// in the dashboard and are not available in this API. /// /// Related guides: - Payment Method + /// href="https://docs.stripe.com/connect/payment-method-configurations">Payment Method /// Configurations API - Multiple + /// href="https://docs.stripe.com/payments/multiple-payment-method-configs">Multiple /// configurations on dynamic payment methods - Multiple + /// href="https://docs.stripe.com/connect/multiple-payment-method-configurations">Multiple /// configurations for your Connect accounts. /// public class PaymentMethodConfiguration : StripeEntity, IHasId, IHasObject @@ -358,6 +358,12 @@ public class PaymentMethodConfiguration : StripeEntity + { + /// + /// Whether this payment method may be offered at checkout. True if + /// display_preference is on and the payment method's capability is active. + /// + [JsonProperty("available")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("available")] +#endif + public bool Available { get; set; } + + [JsonProperty("display_preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_preference")] +#endif + public PaymentMethodConfigurationPaytoDisplayPreference DisplayPreference { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreference.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreference.cs new file mode 100644 index 0000000000..8300321470 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreference.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentMethodConfigurationPaytoDisplayPreference : StripeEntity + { + /// + /// For child configs, whether or not the account's preference will be observed. If + /// false, the parent configuration's default is used. + /// + [JsonProperty("overridable")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("overridable")] +#endif + public bool? Overridable { get; set; } + + /// + /// The account's display preference. + /// One of: none, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + + /// + /// The effective display preference value. + /// One of: off, or on. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs index 336b367198..b03764f0a5 100644 --- a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs +++ b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs @@ -14,7 +14,7 @@ namespace Stripe /// methods are shown. /// /// Related guide: Payment method + /// href="https://docs.stripe.com/payments/payment-methods/pmd-registration">Payment method /// domains. /// public class PaymentMethodDomain : StripeEntity, IHasId, IHasObject diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index 629c2b7240..0ab9ed2377 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -11,12 +11,12 @@ namespace Stripe /// /// PaymentMethod objects represent your customer's payment instruments. You can use them - /// with PaymentIntents to + /// with PaymentIntents to /// collect payments or save them to Customer objects to store instrument details for future /// payments. /// - /// Related guides: Payment - /// Methods and More + /// Related guides: Payment + /// Methods and More /// Payment Scenarios. /// #if NET6_0_OR_GREATER @@ -217,6 +217,12 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + [JsonProperty("customer_balance")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("customer_balance")] @@ -306,7 +312,7 @@ public Customer Customer public PaymentMethodMbWay MbWay { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -376,6 +382,12 @@ public Customer Customer #endif public PaymentMethodPaypal Paypal { get; set; } + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public PaymentMethodPayto Payto { get; set; } + [JsonProperty("pix")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("pix")] @@ -390,7 +402,7 @@ public Customer Customer /// /// Options to configure Radar. See Radar Session for more + /// href="https://docs.stripe.com/radar/radar-session">Radar Session for more /// information. /// [JsonProperty("radar_options")] @@ -453,7 +465,7 @@ public Customer Customer /// ideal, interac_present, kakao_pay, klarna, konbini, /// kr_card, link, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs index 9ec6e7372c..69abf23bd5 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -161,9 +161,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str public string Iin { get; set; } /// - /// Whether this PaymentIntent is + /// Whether this PaymentIntent is /// eligible for incremental authorizations. Request support using request_incremental_authorization_support. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support">request_incremental_authorization_support. /// [JsonProperty("incremental_authorization_supported")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs index c4f5ec8957..64bd8c1279 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs @@ -11,13 +11,13 @@ public class PaymentMethodIdeal : StripeEntity /// /// The customer's bank, if provided. Can be one of abn_amro, asn_bank, /// bunq, buut, finom, handelsbanken, ing, knab, - /// moneyou, n26, nn, rabobank, regiobank, + /// mollie, moneyou, n26, nn, rabobank, regiobank, /// revolut, sns_bank, triodos_bank, van_lanschot, or /// yoursafe. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -29,8 +29,9 @@ public class PaymentMethodIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank, if the bank was provided. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, /// BUUTNL2A, FNOMNL22, FVLBNL22, HANDNL2A, INGBNL2A, - /// KNABNL2H, MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, - /// RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. + /// KNABNL2H, MLLENL2A, MOYONL21, NNBANL2G, NTSBDEB1, + /// RABONL2U, RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or + /// TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPayto.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPayto.cs new file mode 100644 index 0000000000..bb9901ffe6 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPayto.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentMethodPayto : StripeEntity + { + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// Last four digits of the bank account number. + /// + [JsonProperty("last4")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("last4")] +#endif + public string Last4 { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodRadarOptions.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodRadarOptions.cs index 9b9f4fb668..63a6cd3125 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodRadarOptions.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodRadarOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentMethodRadarOptions : StripeEntity { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs index c1d4598b08..5483512190 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs @@ -167,7 +167,7 @@ public class PaymentRecord : StripeEntity, IHasId, IHasMetadata, public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -195,6 +195,16 @@ public class PaymentRecord : StripeEntity, IHasId, IHasMetadata, #endif public PaymentRecordProcessorDetails ProcessorDetails { get; set; } + /// + /// Indicates who reported the payment. + /// One of: self, or stripe. + /// + [JsonProperty("reported_by")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reported_by")] +#endif + public string ReportedBy { get; set; } + /// /// Shipping information for this payment. /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmount.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmount.cs index 47e1df7339..0ded49788d 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmount.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmount.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmount : StripeEntity /// /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountAuthorized.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountAuthorized.cs index 31c6e2fc1b..3160e3f215 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountAuthorized.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountAuthorized.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountAuthorized : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountCanceled.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountCanceled.cs index 9b79530c70..f9f859fc47 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountCanceled.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountCanceled.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountCanceled : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountFailed.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountFailed.cs index 0fc5c933c3..d368945609 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountFailed.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountFailed.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountFailed : StripeEntity /// /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountGuaranteed.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountGuaranteed.cs index c948b6ec8e..3706a9f7dd 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountGuaranteed.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountGuaranteed.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountGuaranteed : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRefunded.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRefunded.cs index 6bb55bbb0b..9c6990d8db 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRefunded.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRefunded.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountRefunded : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRequested.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRequested.cs index c2aa5b39db..282647a3b5 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRequested.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordAmountRequested.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountRequested : StripeEntity /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs index 3364ea16ea..3fd27fc682 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs @@ -286,6 +286,12 @@ public class PaymentRecordPaymentMethodDetails : StripeEntity /// The type of transaction-specific details of the payment method used in the payment. See /// PaymentMethod.type + /// href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-type">PaymentMethod.type /// for the full list of possible types. An additional hash is included on /// payment_method_details with a name matching this value. It contains information /// specific to the payment method. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAcssDebit.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAcssDebit.cs index ca434c17bc..5a276de375 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAcssDebit.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAcssDebit.cs @@ -17,6 +17,15 @@ public class PaymentRecordPaymentMethodDetailsAcssDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs index 02deb6c3f6..45040df18d 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsAffirm : StripeEntity { /// - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -19,7 +19,7 @@ public class PaymentRecordPaymentMethodDetailsAffirm : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAuBecsDebit.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAuBecsDebit.cs index 95b26055d9..5f3e12c30b 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAuBecsDebit.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAuBecsDebit.cs @@ -17,6 +17,15 @@ public class PaymentRecordPaymentMethodDetailsAuBecsDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBacsDebit.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBacsDebit.cs index e54a9497ba..6103bda5f0 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBacsDebit.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBacsDebit.cs @@ -8,6 +8,15 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsBacsDebit : StripeEntity { + /// + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBillingDetailsAddress.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBillingDetailsAddress.cs index 67e853084c..7b40e67815 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBillingDetailsAddress.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBillingDetailsAddress.cs @@ -55,7 +55,8 @@ public class PaymentRecordPaymentMethodDetailsBillingDetailsAddress : StripeEnti public string PostalCode { get; set; } /// - /// State, county, province, or region. + /// State, county, province, or region (ISO 3166-2). /// [JsonProperty("state")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs index 23835868a7..1cf47438e3 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs @@ -10,6 +10,15 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCard : StripeEntity { + /// + /// The authorization code of the payment. + /// + [JsonProperty("authorization_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authorization_code")] +#endif + public string AuthorizationCode { get; set; } + /// /// Card brand. Can be amex, cartes_bancaires, diners, discover, /// eftpos_au, jcb, link, mastercard, unionpay, @@ -55,6 +64,15 @@ public class PaymentRecordPaymentMethodDetailsCard : StripeEntity + /// A high-level description of the type of cards issued in this range. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + /// /// Two-digit number representing the card's expiration month. /// @@ -99,6 +117,33 @@ public class PaymentRecordPaymentMethodDetailsCard : StripeEntity + /// Issuer identification number of the card. + /// + [JsonProperty("iin")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("iin")] +#endif + public string Iin { get; set; } + + /// + /// Installment details for this payment. + /// + [JsonProperty("installments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("installments")] +#endif + public PaymentRecordPaymentMethodDetailsCardInstallments Installments { get; set; } + + /// + /// The name of the card's issuing bank. + /// + [JsonProperty("issuer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("issuer")] +#endif + public string Issuer { get; set; } + /// /// The last four digits of the card. /// @@ -132,6 +177,24 @@ public class PaymentRecordPaymentMethodDetailsCard : StripeEntity + /// Advice code from the card network for the failed payment. + /// + [JsonProperty("network_advice_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network_advice_code")] +#endif + public string NetworkAdviceCode { get; set; } + + /// + /// Decline code from the card network for the failed payment. + /// + [JsonProperty("network_decline_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network_decline_code")] +#endif + public string NetworkDeclineCode { get; set; } + /// /// If this card has network token credentials, this contains the details of the network /// token credentials. @@ -154,6 +217,17 @@ public class PaymentRecordPaymentMethodDetailsCard : StripeEntity + /// The transaction type that was passed for an off-session, Merchant-Initiated transaction, + /// one of recurring or unscheduled. + /// One of: recurring, or unscheduled. + /// + [JsonProperty("stored_credential_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stored_credential_usage")] +#endif + public string StoredCredentialUsage { get; set; } + /// /// Populated if this transaction used 3D Secure authentication. /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs new file mode 100644 index 0000000000..2cf78cae33 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentRecordPaymentMethodDetailsCardInstallments : StripeEntity + { + [JsonProperty("plan")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("plan")] +#endif + public PaymentRecordPaymentMethodDetailsCardInstallmentsPlan Plan { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallmentsPlan.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallmentsPlan.cs new file mode 100644 index 0000000000..a00c82eeba --- /dev/null +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallmentsPlan.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentRecordPaymentMethodDetailsCardInstallmentsPlan : StripeEntity + { + /// + /// For fixed_count installment plans, this is the number of installment payments + /// your customer will make to their credit card. + /// + [JsonProperty("count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("count")] +#endif + public long? Count { get; set; } + + /// + /// For fixed_count installment plans, this is the interval between installment + /// payments your customer will make to their credit card. One of month. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// Type of installment plan, one of fixed_count, revolving, or bonus. + /// One of: bonus, fixed_count, or revolving. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs index 4b8181c73c..497b00eafd 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs @@ -161,9 +161,9 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity - /// Whether this PaymentIntent is + /// Whether this PaymentIntent is /// eligible for incremental authorizations. Request support using request_incremental_authorization_support. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support">request_incremental_authorization_support. /// [JsonProperty("incremental_authorization_supported")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs index 419184c93d..2763f95ee7 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs @@ -14,14 +14,14 @@ public class PaymentRecordPaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, - /// buut, finom, handelsbanken, ing, knab, + /// buut, finom, handelsbanken, ing, knab, mollie, /// moneyou, n26, nn, rabobank, regiobank, /// revolut, sns_bank, triodos_bank, van_lanschot, or /// yoursafe. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -33,8 +33,9 @@ public class PaymentRecordPaymentMethodDetailsIdeal : StripeEntityABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, /// BUUTNL2A, FNOMNL22, FVLBNL22, HANDNL2A, INGBNL2A, - /// KNABNL2H, MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, - /// RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. + /// KNABNL2H, MLLENL2A, MOYONL21, NNBANL2G, NTSBDEB1, + /// RABONL2U, RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or + /// TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsNzBankAccount.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsNzBankAccount.cs index 0009d3525f..0fe8f4a3d7 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsNzBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsNzBankAccount.cs @@ -45,6 +45,15 @@ public class PaymentRecordPaymentMethodDetailsNzBankAccount : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Last four digits of the bank account number. /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPaynow.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPaynow.cs index 5ca7d56511..0a8f14a9e3 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPaynow.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPaynow.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsPaynow : StripeEntity { /// - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -19,7 +19,7 @@ public class PaymentRecordPaymentMethodDetailsPaynow : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPayto.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPayto.cs new file mode 100644 index 0000000000..c87c47950a --- /dev/null +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPayto.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentRecordPaymentMethodDetailsPayto : StripeEntity + { + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// Last four digits of the bank account number. + /// + [JsonProperty("last4")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("last4")] +#endif + public string Last4 { get; set; } + + /// + /// ID of the mandate used to make this payment. + /// + [JsonProperty("mandate")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate")] +#endif + public string Mandate { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsSepaDebit.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsSepaDebit.cs index 7d840918de..329c9125cc 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsSepaDebit.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsSepaDebit.cs @@ -35,6 +35,15 @@ public class PaymentRecordPaymentMethodDetailsSepaDebit : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. @@ -56,9 +65,9 @@ public class PaymentRecordPaymentMethodDetailsSepaDebit : StripeEntity /// Find the ID of the mandate used for this payment under the payment_method_details.sepa_debit.mandate + /// href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate">payment_method_details.sepa_debit.mandate /// property on the Charge. Use this mandate ID to retrieve the Mandate. + /// href="https://docs.stripe.com/api/mandates/retrieve">retrieve the Mandate. /// [JsonProperty("mandate")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs index a26ba93bf8..d0663db378 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs @@ -41,6 +41,15 @@ public class PaymentRecordPaymentMethodDetailsUsBankAccount : StripeEntity + /// Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format. + /// + [JsonProperty("expected_debit_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expected_debit_date")] +#endif + public string ExpectedDebitDate { get; set; } + /// /// Uniquely identifies this particular bank account. You can use this attribute to check /// whether two bank accounts are the same. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsWechatPay.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsWechatPay.cs index d8bb308e16..1a34ef9a6c 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsWechatPay.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsWechatPay.cs @@ -19,7 +19,7 @@ public class PaymentRecordPaymentMethodDetailsWechatPay : StripeEntity - /// ID of the location that + /// ID of the location that /// this transaction's reader is assigned to. /// [JsonProperty("location")] @@ -29,7 +29,7 @@ public class PaymentRecordPaymentMethodDetailsWechatPay : StripeEntity - /// ID of the reader this + /// ID of the reader this /// transaction was made on. /// [JsonProperty("reader")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordShippingDetailsAddress.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordShippingDetailsAddress.cs index 2dcf3d8d89..1736e6221e 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordShippingDetailsAddress.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordShippingDetailsAddress.cs @@ -55,7 +55,8 @@ public class PaymentRecordShippingDetailsAddress : StripeEntity - /// State, county, province, or region. + /// State, county, province, or region (ISO 3166-2). /// [JsonProperty("state")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Payouts/Payout.cs b/src/Stripe.net/Entities/Payouts/Payout.cs index a8c59bec2f..4001becae2 100644 --- a/src/Stripe.net/Entities/Payouts/Payout.cs +++ b/src/Stripe.net/Entities/Payouts/Payout.cs @@ -17,7 +17,7 @@ namespace Stripe /// on varying /// schedules, depending on your country and industry. /// - /// Related guide: Receiving payouts. + /// Related guide: Receiving payouts. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -57,7 +57,7 @@ public class Payout : StripeEntity, IHasId, IHasMetadata, IHasObject, IB /// /// (ID of the ApplicationFee) /// The application fee (if any) for the payout. See the + /// href="https://docs.stripe.com/connect/instant-payouts#monetization-and-fees">See the /// Connect documentation for details. /// [JsonIgnore] @@ -73,7 +73,7 @@ public string ApplicationFeeId /// /// (Expanded) /// The application fee (if any) for the payout. See the + /// href="https://docs.stripe.com/connect/instant-payouts#monetization-and-fees">See the /// Connect documentation for details. /// /// For more information, see the expand documentation. @@ -99,7 +99,7 @@ public ApplicationFee ApplicationFee /// /// The amount of the application fee (if any) requested for the payout. See the + /// href="https://docs.stripe.com/connect/instant-payouts#monetization-and-fees">See the /// Connect documentation for details. /// [JsonProperty("application_fee_amount")] @@ -122,7 +122,7 @@ public ApplicationFee ApplicationFee /// /// Returns true if the payout is created by an automated payout schedule and + /// href="https://docs.stripe.com/payouts#payout-schedule">automated payout schedule and /// false if it's requested /// manually. /// @@ -294,7 +294,7 @@ public BalanceTransaction FailureBalanceTransaction /// /// Error code that provides a reason for a payout failure, if available. View our list of failure codes. + /// href="https://docs.stripe.com/api#payout_failures">list of failure codes. /// [JsonProperty("failure_code")] #if NET6_0_OR_GREATER @@ -322,7 +322,7 @@ public BalanceTransaction FailureBalanceTransaction public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -397,7 +397,7 @@ public Payout OriginalPayout /// /// If completed, you can use the Balance + /// href="https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-payout">Balance /// Transactions API to list all balance transactions that are paid out in this payout. /// One of: completed, in_progress, or not_applicable. /// diff --git a/src/Stripe.net/Entities/Persons/Person.cs b/src/Stripe.net/Entities/Persons/Person.cs index e459e613dd..6dee3eaf54 100644 --- a/src/Stripe.net/Entities/Persons/Person.cs +++ b/src/Stripe.net/Entities/Persons/Person.cs @@ -170,7 +170,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// Information about the upcoming new + /// href="https://docs.stripe.com/connect/custom-accounts/future-requirements">upcoming new /// requirements for this person, including what information needs to be collected, and /// by when. /// @@ -254,7 +254,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject public string MaidenName { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs b/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs index 37135d49af..5f557338de 100644 --- a/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs +++ b/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs @@ -10,8 +10,11 @@ namespace Stripe public class PersonFutureRequirements : StripeEntity { /// - /// Fields that are due and can be satisfied by providing the corresponding alternative - /// fields instead. + /// Fields that are due and can be resolved by providing the corresponding alternative + /// fields instead. Many alternatives can list the same original_fields_due, and any + /// of these alternatives can serve as a pathway for attempting to resolve the fields again. + /// Re-providing original_fields_due also serves as a pathway for attempting to + /// resolve the fields again. /// [JsonProperty("alternatives")] #if NET6_0_OR_GREATER @@ -20,11 +23,11 @@ public class PersonFutureRequirements : StripeEntity public List Alternatives { get; set; } /// - /// Fields that need to be collected to keep the person's account enabled. If not collected - /// by the account's future_requirements[current_deadline], these fields will - /// transition to the main requirements hash, and may immediately become - /// past_due, but the account may also be given a grace period depending on the - /// account's enablement state prior to transition. + /// Fields that need to be resolved to keep the person's account enabled. If not resolved by + /// the account's future_requirements[current_deadline], these fields will transition + /// to the main requirements hash, and may immediately become past_due, but + /// the account may also be given a grace period depending on the account's enablement state + /// prior to transition. /// [JsonProperty("currently_due")] #if NET6_0_OR_GREATER @@ -33,8 +36,8 @@ public class PersonFutureRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -54,10 +57,9 @@ public class PersonFutureRequirements : StripeEntity public List EventuallyDue { get; set; } /// - /// Fields that weren't collected by the account's requirements.current_deadline. - /// These fields need to be collected to enable the person's account. New fields will never - /// appear here; future_requirements.past_due will always be a subset of - /// requirements.past_due. + /// Fields that haven't been resolved by the account's requirements.current_deadline. + /// These fields need to be resolved to enable the person's account. + /// future_requirements.past_due is a subset of requirements.past_due. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -66,12 +68,11 @@ public class PersonFutureRequirements : StripeEntity public List PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due or currently_due. Fields might - /// appear in eventually_due or currently_due and in - /// pending_verification if verification fails but another verification is still - /// pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Persons/PersonFutureRequirementsAlternative.cs b/src/Stripe.net/Entities/Persons/PersonFutureRequirementsAlternative.cs index 8db365a11c..bb40f1ac60 100644 --- a/src/Stripe.net/Entities/Persons/PersonFutureRequirementsAlternative.cs +++ b/src/Stripe.net/Entities/Persons/PersonFutureRequirementsAlternative.cs @@ -10,7 +10,7 @@ namespace Stripe public class PersonFutureRequirementsAlternative : StripeEntity { /// - /// Fields that can be provided to satisfy all fields in original_fields_due. + /// Fields that can be provided to resolve all fields in original_fields_due. /// [JsonProperty("alternative_fields_due")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class PersonFutureRequirementsAlternative : StripeEntity AlternativeFieldsDue { get; set; } /// - /// Fields that are due and can be satisfied by providing all fields in + /// Fields that are due and can be resolved by providing all fields in /// alternative_fields_due. /// [JsonProperty("original_fields_due")] diff --git a/src/Stripe.net/Entities/Persons/PersonRequirements.cs b/src/Stripe.net/Entities/Persons/PersonRequirements.cs index 0349952fd9..d6f408f40e 100644 --- a/src/Stripe.net/Entities/Persons/PersonRequirements.cs +++ b/src/Stripe.net/Entities/Persons/PersonRequirements.cs @@ -10,8 +10,11 @@ namespace Stripe public class PersonRequirements : StripeEntity { /// - /// Fields that are due and can be satisfied by providing the corresponding alternative - /// fields instead. + /// Fields that are due and can be resolved by providing the corresponding alternative + /// fields instead. Many alternatives can list the same original_fields_due, and any + /// of these alternatives can serve as a pathway for attempting to resolve the fields again. + /// Re-providing original_fields_due also serves as a pathway for attempting to + /// resolve the fields again. /// [JsonProperty("alternatives")] #if NET6_0_OR_GREATER @@ -20,8 +23,8 @@ public class PersonRequirements : StripeEntity public List Alternatives { get; set; } /// - /// Fields that need to be collected to keep the person's account enabled. If not collected - /// by the account's current_deadline, these fields appear in past_due as + /// Fields that need to be resolved to keep the person's account enabled. If not resolved by + /// the account's current_deadline, these fields will appear in past_due as /// well, and the account is disabled. /// [JsonProperty("currently_due")] @@ -31,8 +34,8 @@ public class PersonRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// Fields that are currently_due and need to be collected again because validation - /// or verification failed. + /// Details about validation and verification failures for due requirements that must + /// be resolved. /// [JsonProperty("errors")] #if NET6_0_OR_GREATER @@ -52,8 +55,8 @@ public class PersonRequirements : StripeEntity public List EventuallyDue { get; set; } /// - /// Fields that weren't collected by the account's current_deadline. These fields - /// need to be collected to enable the person's account. + /// Fields that haven't been resolved by current_deadline. These fields need to be + /// resolved to enable the person's account. /// [JsonProperty("past_due")] #if NET6_0_OR_GREATER @@ -62,12 +65,11 @@ public class PersonRequirements : StripeEntity public List PastDue { get; set; } /// - /// Fields that might become required depending on the results of verification or review. - /// It's an empty array unless an asynchronous verification is pending. If verification - /// fails, these fields move to eventually_due, currently_due, or - /// past_due. Fields might appear in eventually_due, currently_due, or - /// past_due and in pending_verification if verification fails but another - /// verification is still pending. + /// Fields that are being reviewed, or might become required depending on the results of a + /// review. If the review fails, these fields can move to eventually_due, + /// currently_due, past_due or alternatives. Fields might appear in + /// eventually_due, currently_due, past_due or alternatives and + /// in pending_verification if one verification fails but another is still pending. /// [JsonProperty("pending_verification")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Persons/PersonRequirementsAlternative.cs b/src/Stripe.net/Entities/Persons/PersonRequirementsAlternative.cs index ab7362517f..17e6325a00 100644 --- a/src/Stripe.net/Entities/Persons/PersonRequirementsAlternative.cs +++ b/src/Stripe.net/Entities/Persons/PersonRequirementsAlternative.cs @@ -10,7 +10,7 @@ namespace Stripe public class PersonRequirementsAlternative : StripeEntity { /// - /// Fields that can be provided to satisfy all fields in original_fields_due. + /// Fields that can be provided to resolve all fields in original_fields_due. /// [JsonProperty("alternative_fields_due")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class PersonRequirementsAlternative : StripeEntity AlternativeFieldsDue { get; set; } /// - /// Fields that are due and can be satisfied by providing all fields in + /// Fields that are due and can be resolved by providing all fields in /// alternative_fields_due. /// [JsonProperty("original_fields_due")] diff --git a/src/Stripe.net/Entities/Persons/PersonVerification.cs b/src/Stripe.net/Entities/Persons/PersonVerification.cs index a894c72bff..fa356a6f75 100644 --- a/src/Stripe.net/Entities/Persons/PersonVerification.cs +++ b/src/Stripe.net/Entities/Persons/PersonVerification.cs @@ -50,7 +50,7 @@ public class PersonVerification : StripeEntity /// /// The state of verification for the person. Possible values are unverified, /// pending, or verified. Please refer guide to handle + /// href="https://docs.stripe.com/connect/handling-api-verification">guide to handle /// verification updates. /// [JsonProperty("status")] diff --git a/src/Stripe.net/Entities/Persons/PersonVerificationAdditionalDocument.cs b/src/Stripe.net/Entities/Persons/PersonVerificationAdditionalDocument.cs index bfb507d080..b7685eaee5 100644 --- a/src/Stripe.net/Entities/Persons/PersonVerificationAdditionalDocument.cs +++ b/src/Stripe.net/Entities/Persons/PersonVerificationAdditionalDocument.cs @@ -16,7 +16,7 @@ public class PersonVerificationAdditionalDocument : StripeEntity /// (ID of the File) - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string BackId /// /// (Expanded) - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. /// /// For more information, see the expand documentation. @@ -87,7 +87,7 @@ public File Back /// /// (ID of the File) - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. /// [JsonIgnore] @@ -102,7 +102,7 @@ public string FrontId /// /// (Expanded) - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/Persons/PersonVerificationDocument.cs b/src/Stripe.net/Entities/Persons/PersonVerificationDocument.cs index 2ec40cd854..2f85010d84 100644 --- a/src/Stripe.net/Entities/Persons/PersonVerificationDocument.cs +++ b/src/Stripe.net/Entities/Persons/PersonVerificationDocument.cs @@ -16,7 +16,7 @@ public class PersonVerificationDocument : StripeEntity /// (ID of the File) - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. /// [JsonIgnore] @@ -31,7 +31,7 @@ public string BackId /// /// (Expanded) - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. /// /// For more information, see the expand documentation. @@ -87,7 +87,7 @@ public File Back /// /// (ID of the File) - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. /// [JsonIgnore] @@ -102,7 +102,7 @@ public string FrontId /// /// (Expanded) - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/Plans/Plan.cs b/src/Stripe.net/Entities/Plans/Plan.cs index b7c0ca4237..1a1724c433 100644 --- a/src/Stripe.net/Entities/Plans/Plan.cs +++ b/src/Stripe.net/Entities/Plans/Plan.cs @@ -11,11 +11,11 @@ namespace Stripe /// /// You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and - /// is backwards compatible to simplify your migration. + /// href="https://api.stripe.com#prices">Prices API. It replaces the Plans API and is + /// backwards compatible to simplify your migration. /// /// Plans define the base price, currency, and billing cycle for recurring purchases of - /// products. Products help you track + /// products. Products help you track /// inventory or provisioning, and plans help you track pricing. Different physical goods or /// levels of service should be represented by products, and pricing options should be /// represented by plans. This approach lets you change prices without having to change your @@ -25,9 +25,9 @@ namespace Stripe /// $100/year, €9/month, and €90/year. /// /// Related guides: Set up a + /// href="https://docs.stripe.com/billing/subscriptions/set-up-subscription">Set up a /// subscription and more about products and prices. + /// href="https://docs.stripe.com/products-prices/overview">products and prices. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -161,7 +161,7 @@ public class Plan : StripeEntity, IHasId, IHasMetadata, IHasObject public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -264,7 +264,7 @@ public Product Product /// /// Default number of trial days when subscribing a customer to this plan using trial_from_plan=true. + /// href="https://docs.stripe.com/api#create_subscription-trial_from_plan">trial_from_plan=true. /// [JsonProperty("trial_period_days")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Prices/Price.cs b/src/Stripe.net/Entities/Prices/Price.cs index 1528697c9a..fa8768c7ce 100644 --- a/src/Stripe.net/Entities/Prices/Price.cs +++ b/src/Stripe.net/Entities/Prices/Price.cs @@ -12,7 +12,7 @@ namespace Stripe /// /// Prices define the unit cost, currency, and (optional) billing cycle for both recurring /// and one-time purchases of products. Products help you track inventory or + /// href="https://api.stripe.com#products">Products help you track inventory or /// provisioning, and prices help you track payment terms. Different physical goods or /// levels of service should be represented by products, and pricing options should be /// represented by prices. This approach lets you change prices without having to change @@ -22,10 +22,10 @@ namespace Stripe /// $100/year, and €9 once. /// /// Related guides: Set up a - /// subscription, create an + /// href="https://docs.stripe.com/billing/subscriptions/set-up-subscription">Set up a + /// subscription, create an /// invoice, and more about products and prices. + /// href="https://docs.stripe.com/products-prices/overview">products and prices. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -149,7 +149,7 @@ public class Price : StripeEntity, IHasId, IHasMetadata, IHasObject public string LookupKey { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -220,7 +220,7 @@ public Product Product /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Entities/Prices/PriceCurrencyOptions.cs b/src/Stripe.net/Entities/Prices/PriceCurrencyOptions.cs index ffc5fe4635..a0549a6c55 100644 --- a/src/Stripe.net/Entities/Prices/PriceCurrencyOptions.cs +++ b/src/Stripe.net/Entities/Prices/PriceCurrencyOptions.cs @@ -21,7 +21,7 @@ public class PriceCurrencyOptions : StripeEntity /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Entities/Prices/PriceRecurring.cs b/src/Stripe.net/Entities/Prices/PriceRecurring.cs index f9e8566bb0..a42d2415dd 100644 --- a/src/Stripe.net/Entities/Prices/PriceRecurring.cs +++ b/src/Stripe.net/Entities/Prices/PriceRecurring.cs @@ -41,7 +41,7 @@ public class PriceRecurring : StripeEntity /// /// Default number of trial days when subscribing a customer to this price using trial_from_plan=true. + /// href="https://docs.stripe.com/api#create_subscription-trial_from_plan">trial_from_plan=true. /// [JsonProperty("trial_period_days")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Products/Product.cs b/src/Stripe.net/Entities/Products/Product.cs index 44249cdc64..c18f8a10f4 100644 --- a/src/Stripe.net/Entities/Products/Product.cs +++ b/src/Stripe.net/Entities/Products/Product.cs @@ -13,16 +13,16 @@ namespace Stripe /// Products describe the specific goods or services you offer to your customers. For /// example, you might offer a Standard and Premium version of your goods or service; each /// version would be a separate Product. They can be used in conjunction with Prices to configure pricing in Payment - /// Links, Checkout, and Subscriptions. + /// href="https://api.stripe.com#prices">Prices to configure pricing in Payment Links, + /// Checkout, and Subscriptions. /// /// Related guides: Set up a - /// subscription, share a Payment + /// href="https://docs.stripe.com/billing/subscriptions/set-up-subscription">Set up a + /// subscription, share a Payment /// Link, accept + /// href="https://docs.stripe.com/payments/accept-a-payment#create-product-prices-upfront">accept /// payments with Checkout, and more about Products and Prices. + /// href="https://docs.stripe.com/products-prices/overview">Products and Prices. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -71,7 +71,7 @@ public class Product : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// (ID of the Price) - /// The ID of the Price object that is the + /// The ID of the Price object that is the /// default price for this product. /// [JsonIgnore] @@ -86,7 +86,7 @@ public string DefaultPriceId /// /// (Expanded) - /// The ID of the Price object that is the + /// The ID of the Price object that is the /// default price for this product. /// /// For more information, see the expand documentation. @@ -153,7 +153,7 @@ public Price DefaultPrice /// /// A list of up to 15 marketing features for this product. These are displayed in pricing tables. + /// href="https://docs.stripe.com/payments/checkout/pricing-table">pricing tables. /// [JsonProperty("marketing_features")] #if NET6_0_OR_GREATER @@ -162,7 +162,7 @@ public Price DefaultPrice public List MarketingFeatures { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -214,7 +214,7 @@ public Price DefaultPrice /// /// (ID of the TaxCode) - /// A tax code ID. + /// A tax code ID. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -228,7 +228,7 @@ public string TaxCodeId /// /// (Expanded) - /// A tax code ID. + /// A tax code ID. /// /// For more information, see the expand documentation. /// diff --git a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs index a6d4c332dd..f9258babdf 100644 --- a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs +++ b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs @@ -14,7 +14,7 @@ namespace Stripe /// can create multiple codes for a single promotion. /// /// If you enable promotion codes in your customer portal + /// href="https://docs.stripe.com/customer-management/configure-portal">customer portal /// configuration, then customers can redeem a code themselves when updating a /// subscription in the portal. Customers can also view the currently active promotion codes /// and coupons on each of their subscriptions in the portal. @@ -78,7 +78,7 @@ public class PromotionCode : StripeEntity, IHasId, IHasMetadata, /// /// (ID of the Customer) - /// The customer that this promotion code can be used by. + /// The customer who can use this promotion code. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -92,7 +92,7 @@ public string CustomerId /// /// (Expanded) - /// The customer that this promotion code can be used by. + /// The customer who can use this promotion code. /// /// For more information, see the expand documentation. /// @@ -115,6 +115,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The account representing the customer who can use this promotion code. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Date at which the promotion code can no longer be redeemed. /// @@ -146,7 +155,7 @@ public Customer Customer public long? MaxRedemptions { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Quotes/Quote.cs b/src/Stripe.net/Entities/Quotes/Quote.cs index 16130ca8bb..a3c484bdb0 100644 --- a/src/Stripe.net/Entities/Quotes/Quote.cs +++ b/src/Stripe.net/Entities/Quotes/Quote.cs @@ -173,8 +173,8 @@ public Application Application /// /// (ID of the Customer) - /// The customer which this quote belongs to. A customer is required before finalizing the - /// quote. Once specified, it cannot be changed. + /// The customer who received this quote. A customer is required to finalize the quote. Once + /// specified, you can't change it. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -188,8 +188,8 @@ public string CustomerId /// /// (Expanded) - /// The customer which this quote belongs to. A customer is required before finalizing the - /// quote. Once specified, it cannot be changed. + /// The customer who received this quote. A customer is required to finalize the quote. Once + /// specified, you can't change it. /// /// For more information, see the expand documentation. /// @@ -212,6 +212,16 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The account representing the customer who received this quote. A customer or account is + /// required to finalize the quote. Once specified, you can't change it. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + #region Expandable DefaultTaxRates /// @@ -322,7 +332,7 @@ public List Discounts /// /// Details of the quote that was cloned. See the cloning documentation for more details. + /// href="https://docs.stripe.com/quotes/clone">cloning documentation for more details. /// [JsonProperty("from_quote")] #if NET6_0_OR_GREATER @@ -406,7 +416,7 @@ public Invoice Invoice public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -418,7 +428,7 @@ public Invoice Invoice /// /// A unique number that identifies this particular quote. This number is assigned once the - /// quote is finalized. + /// quote is finalized. /// [JsonProperty("number")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Quotes/QuoteComputedRecurringTotalDetailsBreakdownDiscount.cs b/src/Stripe.net/Entities/Quotes/QuoteComputedRecurringTotalDetailsBreakdownDiscount.cs index fffce513c2..14a11d04f7 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteComputedRecurringTotalDetailsBreakdownDiscount.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteComputedRecurringTotalDetailsBreakdownDiscount.cs @@ -19,12 +19,12 @@ public class QuoteComputedRecurringTotalDetailsBreakdownDiscount : StripeEntity< /// /// A discount represents the actual application of a coupon or promotion code. It contains + /// href="https://api.stripe.com#coupons">coupon or promotion code. It contains /// information about when the discount began, when it will end, and what it is applied to. /// /// Related guide: Applying discounts to + /// href="https://docs.stripe.com/billing/subscriptions/discounts">Applying discounts to /// subscriptions. /// [JsonProperty("discount")] diff --git a/src/Stripe.net/Entities/Quotes/QuoteComputedUpfrontTotalDetailsBreakdownDiscount.cs b/src/Stripe.net/Entities/Quotes/QuoteComputedUpfrontTotalDetailsBreakdownDiscount.cs index ef042a7a43..9e365adedd 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteComputedUpfrontTotalDetailsBreakdownDiscount.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteComputedUpfrontTotalDetailsBreakdownDiscount.cs @@ -19,12 +19,12 @@ public class QuoteComputedUpfrontTotalDetailsBreakdownDiscount : StripeEntity /// A discount represents the actual application of a coupon or promotion code. It contains + /// href="https://api.stripe.com#coupons">coupon or promotion code. It contains /// information about when the discount began, when it will end, and what it is applied to. /// /// Related guide: Applying discounts to + /// href="https://docs.stripe.com/billing/subscriptions/discounts">Applying discounts to /// subscriptions. /// [JsonProperty("discount")] diff --git a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs index 3188379b53..7bce292062 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs @@ -45,7 +45,7 @@ public class QuoteSubscriptionData : StripeEntity, IHasMe public DateTime? EffectiveDate { get; set; } /// - /// Set of key-value pairs that will set + /// Set of key-value pairs that will set /// metadata on the subscription or subscription schedule when the quote is accepted. If a /// recurring price is included in line_items, this field will be passed to the /// resulting subscription's metadata field. If diff --git a/src/Stripe.net/Entities/Quotes/QuoteTotalDetailsBreakdownDiscount.cs b/src/Stripe.net/Entities/Quotes/QuoteTotalDetailsBreakdownDiscount.cs index 11357b0343..7309184d46 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteTotalDetailsBreakdownDiscount.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteTotalDetailsBreakdownDiscount.cs @@ -19,12 +19,12 @@ public class QuoteTotalDetailsBreakdownDiscount : StripeEntity /// A discount represents the actual application of a coupon or promotion code. It contains + /// href="https://api.stripe.com#coupons">coupon or promotion code. It contains /// information about when the discount began, when it will end, and what it is applied to. /// /// Related guide: Applying discounts to + /// href="https://docs.stripe.com/billing/subscriptions/discounts">Applying discounts to /// subscriptions. /// [JsonProperty("discount")] diff --git a/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs b/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs index 9e1b020dfe..b275f0bf70 100644 --- a/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs +++ b/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs @@ -13,7 +13,7 @@ namespace Stripe.Radar /// be fraudulent. /// /// Related guide: Early fraud + /// href="https://docs.stripe.com/disputes/measuring#early-fraud-warnings">Early fraud /// warnings. /// #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs b/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs index c2939b706e..68d9ef0bcd 100644 --- a/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs +++ b/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs @@ -13,7 +13,7 @@ namespace Stripe.Radar /// then be used in rules. /// /// Related guide: Managing list items. + /// href="https://docs.stripe.com/radar/lists#managing-list-items">Managing list items. /// public class ValueListItem : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs index c2ef4f335c..d17a370d0a 100644 --- a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs +++ b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs @@ -12,7 +12,7 @@ namespace Stripe.Radar /// /// Value lists allow you to group values together which can then be referenced in rules. /// - /// Related guide: Default + /// Related guide: Default /// Stripe lists. /// public class ValueList : StripeEntity, IHasId, IHasMetadata, IHasObject @@ -109,7 +109,7 @@ public class ValueList : StripeEntity, IHasId, IHasMetadata, IHasObje public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Refunds/Refund.cs b/src/Stripe.net/Entities/Refunds/Refund.cs index 28eca40244..e8cfcbfdba 100644 --- a/src/Stripe.net/Entities/Refunds/Refund.cs +++ b/src/Stripe.net/Entities/Refunds/Refund.cs @@ -13,7 +13,7 @@ namespace Stripe /// Refund objects allow you to refund a previously created charge that isn't refunded yet. /// Funds are refunded to the credit or debit card that's initially charged. /// - /// Related guide: Refunds. + /// Related guide: Refunds. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -233,7 +233,7 @@ public BalanceTransaction FailureBalanceTransaction public string InstructionsEmail { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -375,7 +375,7 @@ public TransferReversal SourceTransferReversal /// /// Status of the refund. This can be pending, requires_action, /// succeeded, failed, or canceled. Learn more about failed refunds. + /// href="https://docs.stripe.com/refunds#failed-refunds">failed refunds. /// [JsonProperty("status")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Reporting/ReportRuns/ReportRun.cs b/src/Stripe.net/Entities/Reporting/ReportRuns/ReportRun.cs index 3eded5df34..64247456ab 100644 --- a/src/Stripe.net/Entities/Reporting/ReportRuns/ReportRun.cs +++ b/src/Stripe.net/Entities/Reporting/ReportRuns/ReportRun.cs @@ -13,11 +13,11 @@ namespace Stripe.Reporting /// run parameters. Once the object is created, Stripe begins processing the report. When /// the report has finished running, it will give you a reference to a file where you can /// retrieve your results. For an overview, see API Access to Reports. + /// href="https://docs.stripe.com/reporting/statements/api">API Access to Reports. /// /// Note that certain report types can only be run based on your live-mode data (not /// test-mode data), and will error when queried without a live-mode API key. + /// href="https://docs.stripe.com/keys#test-live-modes">live-mode API key. /// public class ReportRun : StripeEntity, IHasId, IHasObject { @@ -77,7 +77,7 @@ public class ReportRun : StripeEntity, IHasId, IHasObject public ReportRunParameters Parameters { get; set; } /// - /// The ID of the report type to + /// The ID of the report type to /// run, such as "balance.summary.1". /// [JsonProperty("report_type")] diff --git a/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs b/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs index 4df5fef142..e18980e3e0 100644 --- a/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs +++ b/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs @@ -13,18 +13,18 @@ namespace Stripe.Reporting /// The Report Type resource corresponds to a particular type of report, such as the /// "Activity summary" or "Itemized payouts" reports. These objects are identified by an ID /// belonging to a set of enumerated values. See API Access to Reports + /// href="https://docs.stripe.com/reporting/statements/api">API Access to Reports /// documentation for those Report Type IDs, along with required and optional /// parameters. /// /// Note that certain report types can only be run based on your live-mode data (not /// test-mode data), and will error when queried without a live-mode API key. + /// href="https://docs.stripe.com/keys#test-live-modes">live-mode API key. /// public class ReportType : StripeEntity, IHasId, IHasObject { /// - /// The ID + /// The ID /// of the Report Type, such as balance.summary.1. /// [JsonProperty("id")] diff --git a/src/Stripe.net/Entities/Reviews/Review.cs b/src/Stripe.net/Entities/Reviews/Review.cs index 12ccfd82d8..088e97afdb 100644 --- a/src/Stripe.net/Entities/Reviews/Review.cs +++ b/src/Stripe.net/Entities/Reviews/Review.cs @@ -12,7 +12,7 @@ namespace Stripe /// Reviews can be used to supplement automated fraud detection with human expertise. /// /// Learn more about Radar and reviewing payments here. + /// href="https://docs.stripe.com/radar/reviews">here. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs index dcced0520f..6b56f734f3 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs @@ -42,7 +42,7 @@ public class SetupAttempt : StripeEntity, IHasId, IHasObject /// /// (ID of the Application) /// The value of application + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-application">application /// on the SetupIntent at the time of this confirmation. /// [JsonIgnore] @@ -58,7 +58,7 @@ public string ApplicationId /// /// (Expanded) /// The value of application + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-application">application /// on the SetupIntent at the time of this confirmation. /// /// For more information, see the expand documentation. @@ -113,7 +113,7 @@ public Application Application /// /// (ID of the Customer) /// The value of customer + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-customer">customer /// on the SetupIntent at the time of this confirmation. /// [JsonIgnore] @@ -129,7 +129,7 @@ public string CustomerId /// /// (Expanded) /// The value of customer + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-customer">customer /// on the SetupIntent at the time of this confirmation. /// /// For more information, see the expand documentation. @@ -153,6 +153,17 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The value of customer_account + /// on the SetupIntent at the time of this confirmation. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Indicates the directions of money movement for which this payment method is intended to /// be used. @@ -184,7 +195,7 @@ public Customer Customer /// /// (ID of the Account) /// The value of on_behalf_of + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-on_behalf_of">on_behalf_of /// on the SetupIntent at the time of this confirmation. /// [JsonIgnore] @@ -200,7 +211,7 @@ public string OnBehalfOfId /// /// (Expanded) /// The value of on_behalf_of + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-on_behalf_of">on_behalf_of /// on the SetupIntent at the time of this confirmation. /// /// For more information, see the expand documentation. @@ -334,7 +345,7 @@ public SetupIntent SetupIntent /// /// The value of usage + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage">usage /// on the SetupIntent at the time of this confirmation, one of off_session or /// on_session. /// diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs index af69ec48aa..072ccb9578 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs @@ -110,6 +110,12 @@ public class SetupAttemptPaymentMethodDetails : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, - /// buut, finom, handelsbanken, ing, knab, + /// buut, finom, handelsbanken, ing, knab, mollie, /// moneyou, n26, nn, rabobank, regiobank, /// revolut, sns_bank, triodos_bank, van_lanschot, or /// yoursafe. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -33,8 +33,9 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntityABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, /// BUUTNL2A, FNOMNL22, FVLBNL22, HANDNL2A, INGBNL2A, - /// KNABNL2H, MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, - /// RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. + /// KNABNL2H, MLLENL2A, MOYONL21, NNBANL2G, NTSBDEB1, + /// RABONL2U, RBRBNL21, REVOIE23, REVOLT21, SNSBNL2A, or + /// TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsPayto.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsPayto.cs new file mode 100644 index 0000000000..cb273f0df0 --- /dev/null +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsPayto.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class SetupAttemptPaymentMethodDetailsPayto : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index dc09cc6069..0aff06bd3a 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -13,8 +13,8 @@ namespace Stripe /// A SetupIntent guides you through the process of setting up and saving a customer's /// payment credentials for future payments. For example, you can use a SetupIntent to set /// up and save your customer's card without immediately collecting a payment. Later, you - /// can use PaymentIntents to - /// drive the payment flow. + /// can use PaymentIntents to drive the + /// payment flow. /// /// Create a SetupIntent when you're ready to collect your customer's payment credentials. /// Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. The @@ -30,10 +30,10 @@ namespace Stripe /// Authentication during payment method collection to streamline later off-session payments. If you /// use the SetupIntent with a Customer, it + /// href="https://api.stripe.com#setup_intent_object-customer">Customer, it /// automatically attaches the resulting payment method to that Customer after successful /// setup. We recommend using SetupIntents or setup_future_usage + /// href="https://api.stripe.com#payment_intent_object-setup_future_usage">setup_future_usage /// on PaymentIntents to save payment methods to prevent saving invalid or unoptimized /// payment methods. /// @@ -216,6 +216,19 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// ID of the Account this SetupIntent belongs to, if one exists. + /// + /// If present, the SetupIntent's payment method will be attached to the Account on + /// successful setup. Payment methods attached to other Accounts cannot be used with this + /// SetupIntent. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// @@ -234,7 +247,7 @@ public Customer Customer /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -363,7 +376,7 @@ public Mandate Mandate #endregion /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -473,7 +486,7 @@ public PaymentMethod PaymentMethod /// /// Information about the payment method + /// href="https://docs.stripe.com/api/payment_method_configurations">payment method /// configuration used for this Setup Intent. /// [JsonProperty("payment_method_configuration_details")] @@ -544,7 +557,7 @@ public Mandate SingleUseMandate #endregion /// - /// Status of this + /// Status of this /// SetupIntent, one of requires_payment_method, requires_confirmation, /// requires_action, processing, canceled, or succeeded. /// One of: canceled, processing, requires_action, diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentAutomaticPaymentMethods.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentAutomaticPaymentMethods.cs index c4a5b81352..144342e146 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntentAutomaticPaymentMethods.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentAutomaticPaymentMethods.cs @@ -13,7 +13,7 @@ public class SetupIntentAutomaticPaymentMethods : StripeEntityconfirm this SetupIntent, + /// href="https://docs.stripe.com/api/setup_intents/confirm">confirm this SetupIntent, /// you may be required to provide a return_url to redirect customers back to your /// site after they authenticate or complete the setup. /// One of: always, or never. diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs index 5b6f3f98e8..d4db34526b 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs @@ -56,6 +56,12 @@ public class SetupIntentPaymentMethodOptions : StripeEntity /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. If not provided, this value defaults to automatic. Read our /// guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPayto.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPayto.cs new file mode 100644 index 0000000000..c77a90d907 --- /dev/null +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPayto.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsPayto : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SetupIntentPaymentMethodOptionsPaytoMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptions.cs new file mode 100644 index 0000000000..b538bf503a --- /dev/null +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptions.cs @@ -0,0 +1,86 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsPaytoMandateOptions : StripeEntity + { + /// + /// Amount that will be collected. It is required when amount_type is fixed. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The type of amount that will be collected. The amount charged must be exact or up to the + /// value of amount param for fixed or maximum type respectively. + /// Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no + /// end date. + /// + [JsonProperty("end_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] +#endif + public string EndDate { get; set; } + + /// + /// The periodicity at which payments will be collected. Defaults to adhoc. + /// One of: adhoc, annual, daily, fortnightly, monthly, + /// quarterly, semi_annual, or weekly. + /// + [JsonProperty("payment_schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_schedule")] +#endif + public string PaymentSchedule { get; set; } + + /// + /// The number of payments that will be made during a payment period. Defaults to 1 except + /// for when payment_schedule is adhoc. In that case, it defaults to no limit. + /// + [JsonProperty("payments_per_period")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payments_per_period")] +#endif + public long? PaymentsPerPeriod { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to + /// confirmation time. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs b/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs index 9c19eca253..4837a490c3 100644 --- a/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs +++ b/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs @@ -12,7 +12,7 @@ namespace Stripe /// /// Shipping rates describe the price of shipping presented to your customers and applied to /// a purchase. For more information, see Charge for + /// href="https://docs.stripe.com/payments/during-payment/charge-shipping">Charge for /// shipping. /// #if NET6_0_OR_GREATER @@ -95,7 +95,7 @@ public class ShippingRate : StripeEntity, IHasId, IHasMetadata, IH public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -120,7 +120,7 @@ public class ShippingRate : StripeEntity, IHasId, IHasMetadata, IH /// /// (ID of the TaxCode) - /// A tax code ID. The Shipping tax + /// A tax code ID. The Shipping tax /// code is txcd_92010001. /// [JsonIgnore] @@ -135,7 +135,7 @@ public string TaxCodeId /// /// (Expanded) - /// A tax code ID. The Shipping tax + /// A tax code ID. The Shipping tax /// code is txcd_92010001. /// /// For more information, see the expand documentation. diff --git a/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs b/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs index 271946988a..d6d50a4ac6 100644 --- a/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs +++ b/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs @@ -9,7 +9,7 @@ namespace Stripe.Sigma #endif /// - /// If you have scheduled a Sigma + /// If you have scheduled a Sigma /// query, you'll receive a sigma.scheduled_query_run.created webhook each time /// the query runs. The webhook contains a ScheduledQueryRun object, which you can /// use to retrieve the query results. diff --git a/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs b/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs index 8e6a979e30..68551070c8 100644 --- a/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs +++ b/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs @@ -101,12 +101,12 @@ public class SourceMandateNotification : StripeEntity /// customers. /// /// Stripe doesn't recommend using the deprecated Sources API. We recommend that you adopt - /// the PaymentMethods API. This + /// href="https://docs.stripe.com/api/sources">Sources API. We recommend that you adopt + /// the PaymentMethods API. This /// newer API provides access to our latest features and payment method types. /// - /// Related guides: Sources API and Sources & Customers. + /// Related guides: Sources API and Sources & Customers. /// [JsonProperty("source")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Sources/Source.cs b/src/Stripe.net/Entities/Sources/Source.cs index 6eedad5871..88ac251e6b 100644 --- a/src/Stripe.net/Entities/Sources/Source.cs +++ b/src/Stripe.net/Entities/Sources/Source.cs @@ -16,12 +16,12 @@ namespace Stripe /// customers. /// /// Stripe doesn't recommend using the deprecated Sources API. We recommend that you adopt - /// the PaymentMethods API. This + /// href="https://docs.stripe.com/api/sources">Sources API. We recommend that you adopt + /// the PaymentMethods API. This /// newer API provides access to our latest features and payment method types. /// - /// Related guides: Sources API and Sources & Customers. + /// Related guides: Sources API and Sources & Customers. /// public class Source : StripeEntity, IHasId, IHasMetadata, IHasObject, IPaymentSource { @@ -208,7 +208,7 @@ public class Source : StripeEntity, IHasId, IHasMetadata, IHasObject, IP public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -310,7 +310,7 @@ public class Source : StripeEntity, IHasId, IHasMetadata, IHasObject, IP /// multibanco, klarna, p24, sepa_debit, sofort, /// three_d_secure, or wechat. An additional hash is included on the source /// with a name matching this value. It contains additional information specific to the payment method used. + /// href="https://docs.stripe.com/sources">payment method used. /// One of: ach_credit_transfer, ach_debit, acss_debit, alipay, /// au_becs_debit, bancontact, card, card_present, eps, /// giropay, ideal, klarna, multibanco, p24, diff --git a/src/Stripe.net/Entities/SubscriptionItems/SubscriptionItem.cs b/src/Stripe.net/Entities/SubscriptionItems/SubscriptionItem.cs index 6d01345d5d..89de770328 100644 --- a/src/Stripe.net/Entities/SubscriptionItems/SubscriptionItem.cs +++ b/src/Stripe.net/Entities/SubscriptionItems/SubscriptionItem.cs @@ -132,7 +132,7 @@ public List Discounts #endregion /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -144,11 +144,11 @@ public List Discounts /// /// You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and - /// is backwards compatible to simplify your migration. + /// href="https://api.stripe.com#prices">Prices API. It replaces the Plans API and is + /// backwards compatible to simplify your migration. /// /// Plans define the base price, currency, and billing cycle for recurring purchases of - /// products. Products help you track + /// products. Products help you track /// inventory or provisioning, and plans help you track pricing. Different physical goods or /// levels of service should be represented by products, and pricing options should be /// represented by plans. This approach lets you change prices without having to change your @@ -158,9 +158,9 @@ public List Discounts /// $100/year, €9/month, and €90/year. /// /// Related guides: Set up a + /// href="https://docs.stripe.com/billing/subscriptions/set-up-subscription">Set up a /// subscription and more about products and prices. + /// href="https://docs.stripe.com/products-prices/overview">products and prices. /// [JsonProperty("plan")] #if NET6_0_OR_GREATER @@ -171,7 +171,7 @@ public List Discounts /// /// Prices define the unit cost, currency, and (optional) billing cycle for both recurring /// and one-time purchases of products. Products help you track inventory or + /// href="https://api.stripe.com#products">Products help you track inventory or /// provisioning, and prices help you track payment terms. Different physical goods or /// levels of service should be represented by products, and pricing options should be /// represented by prices. This approach lets you change prices without having to change @@ -181,10 +181,10 @@ public List Discounts /// $100/year, and €9 once. /// /// Related guides: Set up a - /// subscription, create an + /// href="https://docs.stripe.com/billing/subscriptions/set-up-subscription">Set up a + /// subscription, create an /// invoice, and more about products and prices. + /// href="https://docs.stripe.com/products-prices/overview">products and prices. /// [JsonProperty("price")] #if NET6_0_OR_GREATER @@ -193,7 +193,7 @@ public List Discounts public Price Price { get; set; } /// - /// The quantity of the plan + /// The quantity of the plan /// to which the customer should be subscribed. /// [JsonProperty("quantity")] diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs index 1ec5fa67cb..6aa3b6f82f 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs @@ -14,7 +14,7 @@ namespace Stripe /// by predefining expected changes. /// /// Related guide: Subscription + /// href="https://docs.stripe.com/billing/subscriptions/subscription-schedules">Subscription /// schedules. /// #if NET6_0_OR_GREATER @@ -176,6 +176,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// ID of the account who owns the subscription schedule. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + [JsonProperty("default_settings")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("default_settings")] @@ -207,7 +216,7 @@ public Customer Customer public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -251,7 +260,7 @@ public Customer Customer /// The present status of the subscription schedule. Possible values are not_started, /// active, completed, released, and canceled. You can read more /// about the different states in our behavior + /// href="https://docs.stripe.com/billing/subscriptions/subscription-schedules">behavior /// guide. /// One of: active, canceled, completed, not_started, or /// released. diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettings.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettings.cs index 35459e069a..cf7b584740 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettings.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettings.cs @@ -34,7 +34,7 @@ public class SubscriptionScheduleDefaultSettings : StripeEntityautomatic then the billing cycle anchor is automatically modified /// as needed when entering the phase. For more information, see the billing cycle documentation. + /// href="https://docs.stripe.com/billing/subscriptions/billing-cycle">documentation. /// One of: automatic, or phase_start. /// [JsonProperty("billing_cycle_anchor")] diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs index 2938573d70..99a8975bda 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs @@ -46,7 +46,7 @@ public class SubscriptionSchedulePhase : StripeEntity /// billing cycle anchor of the subscription is set to the start of the phase when entering /// the phase. If automatic then the billing cycle anchor is automatically modified /// as needed when entering the phase. For more information, see the billing cycle documentation. + /// href="https://docs.stripe.com/billing/subscriptions/billing-cycle">documentation. /// One of: automatic, or phase_start. /// [JsonProperty("billing_cycle_anchor")] @@ -197,7 +197,7 @@ public PaymentMethod DefaultPaymentMethod public List Items { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to a phase. Metadata on a schedule's phase will update the underlying /// subscription's metadata when the phase is entered. Updating the underlying /// subscription's metadata directly will not affect the current phase's diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItem.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItem.cs index 16ec2b348e..b814d8dbcb 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItem.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItem.cs @@ -23,7 +23,7 @@ public class SubscriptionSchedulePhaseAddInvoiceItem : StripeEntity Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItem.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItem.cs index ebb0013de2..76f60c48e4 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItem.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItem.cs @@ -34,7 +34,7 @@ public class SubscriptionSchedulePhaseItem : StripeEntity Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an item. Metadata on this item will update the underlying subscription item's /// metadata when the phase is entered. /// diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index c7603d98b0..c45e77b10a 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -13,7 +13,7 @@ namespace Stripe /// /// Subscriptions allow you to charge a customer on a recurring basis. /// - /// Related guide: Creating + /// Related guide: Creating /// subscriptions. /// #if NET6_0_OR_GREATER @@ -99,7 +99,7 @@ public Application Application /// /// The reference point that aligns future billing cycle dates. It + /// href="https://docs.stripe.com/subscriptions/billing-cycle">billing cycle dates. It /// sets the day of week for week intervals, the day of month for month and /// year intervals, and the month of year for year intervals. The timestamp is /// in UTC format. @@ -261,6 +261,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// ID of the account representing the customer who owns the subscription. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Number of days a customer has to pay invoices generated by this subscription. This value /// will be null for subscriptions where @@ -279,9 +288,9 @@ public Customer Customer /// ID of the default payment method for the subscription. It must belong to the customer /// associated with the subscription. This takes precedence over default_source. If /// neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -298,9 +307,9 @@ public string DefaultPaymentMethodId /// ID of the default payment method for the subscription. It must belong to the customer /// associated with the subscription. This takes precedence over default_source. If /// neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// /// For more information, see the expand documentation. /// @@ -331,9 +340,9 @@ public PaymentMethod DefaultPaymentMethod /// associated with the subscription and be in a chargeable state. If /// default_payment_method is also set, default_payment_method will take /// precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// [JsonIgnore] #if NET6_0_OR_GREATER @@ -351,9 +360,9 @@ public string DefaultSourceId /// associated with the subscription and be in a chargeable state. If /// default_payment_method is also set, default_payment_method will take /// precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// /// For more information, see the expand documentation. /// @@ -517,7 +526,7 @@ public Invoice LatestInvoice public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -545,7 +554,7 @@ public Invoice LatestInvoice /// (ID of the Account) /// The account (if any) the charge was made on behalf of for charges associated with this /// subscription. See the Connect + /// href="https://docs.stripe.com/connect/subscriptions#on-behalf-of">Connect /// documentation for details. /// [JsonIgnore] @@ -562,7 +571,7 @@ public string OnBehalfOfId /// (Expanded) /// The account (if any) the charge was made on behalf of for charges associated with this /// subscription. See the Connect + /// href="https://docs.stripe.com/connect/subscriptions#on-behalf-of">Connect /// documentation for details. /// /// For more information, see the expand documentation. @@ -589,7 +598,7 @@ public Account OnBehalfOf /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] @@ -609,7 +618,7 @@ public Account OnBehalfOf /// /// Specifies an interval for how often to bill for any pending invoice items. It is - /// analogous to calling Create an + /// analogous to calling Create an /// invoice for the given subscription at the specified interval. /// [JsonProperty("pending_invoice_item_interval")] @@ -622,11 +631,11 @@ public Account OnBehalfOf /// /// (ID of the SetupIntent) - /// You can use this SetupIntent to + /// You can use this SetupIntent to /// collect user authentication when creating a subscription without immediate payment or /// updating a subscription's payment method, allowing you to optimize for off-session /// payments. Learn more in the SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication#scenario-2">SCA /// Migration Guide. /// [JsonIgnore] @@ -641,11 +650,11 @@ public string PendingSetupIntentId /// /// (Expanded) - /// You can use this SetupIntent to + /// You can use this SetupIntent to /// collect user authentication when creating a subscription without immediate payment or /// updating a subscription's payment method, allowing you to optimize for off-session /// payments. Learn more in the SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication#scenario-2">SCA /// Migration Guide. /// /// For more information, see the expand documentation. @@ -671,7 +680,7 @@ public SetupIntent PendingSetupIntent /// /// If specified, pending updates + /// href="https://docs.stripe.com/billing/subscriptions/pending-updates">pending updates /// that will be applied to the subscription once the latest_invoice has been paid. /// [JsonProperty("pending_update")] @@ -748,11 +757,11 @@ public SubscriptionSchedule Schedule /// active when the trial period is over. /// /// A subscription can only enter a paused status when + /// href="https://docs.stripe.com/billing/subscriptions/trials#create-free-trials-without-payment">when /// a trial ends without a payment method. A paused subscription doesn't generate /// invoices and can be resumed after your customer adds their payment method. The /// paused status is different from pausing + /// href="https://docs.stripe.com/billing/subscriptions/pause-payment">pausing /// collection, which still generates invoices and leaves the subscription's status /// unchanged. /// diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index ced3103a81..b4e0e37a39 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -33,8 +33,9 @@ public class SubscriptionPaymentSettings : StripeEntityideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, payco, paynow, paypal, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, swish, us_bank_account, or wechat_pay. + /// payto, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, swish, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs index 37734497fa..a4bcf37f38 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs @@ -58,6 +58,16 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the PayTo payment method options to pass to + /// invoices created by the subscription. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsPayto Payto { get; set; } + /// /// This sub-hash contains details about the SEPA Direct Debit payment method options to /// pass to invoices created by the subscription. diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs index 126be9dc90..95fda206f8 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs @@ -30,10 +30,10 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCard : StripeEntity< /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. Read our guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPayto.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPayto.cs new file mode 100644 index 0000000000..269b6205c4 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPayto.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsPayto : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs new file mode 100644 index 0000000000..ff13cc0ef1 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptions : StripeEntity + { + /// + /// The maximum amount that can be collected in a single invoice. If you don't specify a + /// maximum, then there is no limit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// Only maximum is supported. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPendingUpdate.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPendingUpdate.cs index a54a85c7f6..e1c9a6e58d 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPendingUpdate.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPendingUpdate.cs @@ -62,7 +62,7 @@ public class SubscriptionPendingUpdate : StripeEntity /// Indicates if a plan's trial_period_days should be applied to the subscription. /// Setting trial_end per subscription is preferred, and this defaults to /// false. Setting this flag to true together with trial_end is not - /// allowed. See Using trial + /// allowed. See Using trial /// periods on subscriptions to learn more. /// [JsonProperty("trial_from_plan")] diff --git a/src/Stripe.net/Entities/Tax/Associations/Association.cs b/src/Stripe.net/Entities/Tax/Associations/Association.cs index 090e2f3767..2ca6ee3295 100644 --- a/src/Stripe.net/Entities/Tax/Associations/Association.cs +++ b/src/Stripe.net/Entities/Tax/Associations/Association.cs @@ -32,7 +32,7 @@ public class Association : StripeEntity, IHasId, IHasObject public string Object { get; set; } /// - /// The Tax Calculation + /// The Tax Calculation /// that was included in PaymentIntent. /// [JsonProperty("calculation")] @@ -42,7 +42,7 @@ public class Association : StripeEntity, IHasId, IHasObject public string Calculation { get; set; } /// - /// The PaymentIntent that + /// The PaymentIntent that /// this Tax Association is tracking. /// [JsonProperty("payment_intent")] diff --git a/src/Stripe.net/Entities/Tax/Associations/AssociationTaxTransactionAttemptCommitted.cs b/src/Stripe.net/Entities/Tax/Associations/AssociationTaxTransactionAttemptCommitted.cs index 93cbf366fd..2fd1a3bc83 100644 --- a/src/Stripe.net/Entities/Tax/Associations/AssociationTaxTransactionAttemptCommitted.cs +++ b/src/Stripe.net/Entities/Tax/Associations/AssociationTaxTransactionAttemptCommitted.cs @@ -9,7 +9,7 @@ namespace Stripe.Tax public class AssociationTaxTransactionAttemptCommitted : StripeEntity { /// - /// The Tax Transaction. + /// The Tax Transaction. /// [JsonProperty("transaction")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs index 6af3810465..f1b26cdc9f 100644 --- a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs +++ b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs @@ -29,7 +29,7 @@ public class CalculationLineItem : StripeEntity, IHasId, IH /// /// The line item amount in the smallest currency unit. If + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. If /// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were /// calculated on top of this amount. /// @@ -41,7 +41,7 @@ public class CalculationLineItem : StripeEntity, IHasId, IH /// /// The amount of tax calculated for this line item, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_tax")] #if NET6_0_OR_GREATER @@ -60,7 +60,7 @@ public class CalculationLineItem : StripeEntity, IHasId, IH public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -71,7 +71,7 @@ public class CalculationLineItem : StripeEntity, IHasId, IH public Dictionary Metadata { get; set; } /// - /// The ID of an existing Product. + /// The ID of an existing Product. /// [JsonProperty("product")] #if NET6_0_OR_GREATER @@ -119,7 +119,7 @@ public class CalculationLineItem : StripeEntity, IHasId, IH public List TaxBreakdown { get; set; } /// - /// The tax code ID used for this + /// The tax code ID used for this /// resource. /// [JsonProperty("tax_code")] diff --git a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs index 619f1b65c0..53dab0f147 100644 --- a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs +++ b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs @@ -10,7 +10,7 @@ public class CalculationLineItemTaxBreakdown : StripeEntity /// The amount of tax, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -62,7 +62,7 @@ public class CalculationLineItemTaxBreakdown : StripeEntity /// The amount on which tax is calculated, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("taxable_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs b/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs index a1cdb4e51a..fd3b00b0e1 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs @@ -12,7 +12,7 @@ namespace Stripe.Tax /// /// A Tax Calculation allows you to calculate the tax to collect from your customer. /// - /// Related guide: Calculate tax in your custom + /// Related guide: Calculate tax in your custom /// payment flow. /// public class Calculation : StripeEntity, IHasId, IHasObject @@ -37,7 +37,7 @@ public class Calculation : StripeEntity, IHasId, IHasObject /// /// Total amount after taxes in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_total")] #if NET6_0_OR_GREATER @@ -58,7 +58,7 @@ public class Calculation : StripeEntity, IHasId, IHasObject /// /// The ID of an existing Customer used for the resource. + /// href="https://docs.stripe.com/api/customers/object">Customer used for the resource. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs index 8f8fd81b53..0e5d0d1a79 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs @@ -11,7 +11,7 @@ public class CalculationShippingCost : StripeEntity { /// /// The shipping amount in the smallest currency unit. If + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. If /// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were /// calculated on top of this amount. /// @@ -23,7 +23,7 @@ public class CalculationShippingCost : StripeEntity /// /// The amount of tax calculated for shipping, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_tax")] #if NET6_0_OR_GREATER @@ -33,7 +33,7 @@ public class CalculationShippingCost : StripeEntity /// /// The ID of an existing ShippingRate. + /// href="https://docs.stripe.com/api/shipping_rates/object">ShippingRate. /// [JsonProperty("shipping_rate")] #if NET6_0_OR_GREATER @@ -62,7 +62,7 @@ public class CalculationShippingCost : StripeEntity public List TaxBreakdown { get; set; } /// - /// The tax code ID used for + /// The tax code ID used for /// shipping. /// [JsonProperty("tax_code")] diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs index 8e970a5641..fed0f64e64 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs @@ -10,7 +10,7 @@ public class CalculationShippingCostTaxBreakdown : StripeEntity /// The amount of tax, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -62,7 +62,7 @@ public class CalculationShippingCostTaxBreakdown : StripeEntity /// The amount on which tax is calculated, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("taxable_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs index 08f234798b..289e224c4a 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs @@ -10,7 +10,7 @@ public class CalculationTaxBreakdown : StripeEntity { /// /// The amount of tax, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -50,7 +50,7 @@ public class CalculationTaxBreakdown : StripeEntity /// /// The amount on which tax is calculated, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("taxable_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs index db0714078a..c80e92e7b9 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs @@ -52,7 +52,8 @@ public class CalculationTaxBreakdownTaxRateDetails : StripeEntity - /// State, county, province, or region. + /// State, county, province, or region (ISO 3166-2). /// [JsonProperty("state")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/Registration.cs b/src/Stripe.net/Entities/Tax/Registrations/Registration.cs index 5d1ff601d5..b1e9ee0658 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/Registration.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/Registration.cs @@ -11,13 +11,13 @@ namespace Stripe.Tax /// /// A Tax Registration lets us know that your business is registered to collect tax /// on payments within a region, enabling you to automatically collect tax. + /// href="https://docs.stripe.com/tax">automatically collect tax. /// /// Stripe doesn't register on your behalf with the relevant authorities when you create a /// Tax Registration object. For more information on how to register to collect tax, - /// see our guide. + /// see our guide. /// - /// Related guide: Using the + /// Related guide: Using the /// Registrations API. /// public class Registration : StripeEntity, IHasId, IHasObject diff --git a/src/Stripe.net/Entities/Tax/Settings/Settings.cs b/src/Stripe.net/Entities/Tax/Settings/Settings.cs index 3073e4ebcd..c76af91c69 100644 --- a/src/Stripe.net/Entities/Tax/Settings/Settings.cs +++ b/src/Stripe.net/Entities/Tax/Settings/Settings.cs @@ -10,7 +10,7 @@ namespace Stripe.Tax /// You can use Tax Settings to manage configurations used by Stripe Tax /// calculations. /// - /// Related guide: Using the Settings + /// Related guide: Using the Settings /// API. /// public class Settings : StripeEntity, IHasObject diff --git a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs index 05d3a9a932..2d9cd41699 100644 --- a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs +++ b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs @@ -29,7 +29,7 @@ public class TransactionLineItem : StripeEntity, IHasId, IH /// /// The line item amount in the smallest currency unit. If + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. If /// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were /// calculated on top of this amount. /// @@ -41,7 +41,7 @@ public class TransactionLineItem : StripeEntity, IHasId, IH /// /// The amount of tax calculated for this line item, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_tax")] #if NET6_0_OR_GREATER @@ -60,7 +60,7 @@ public class TransactionLineItem : StripeEntity, IHasId, IH public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -71,7 +71,7 @@ public class TransactionLineItem : StripeEntity, IHasId, IH public Dictionary Metadata { get; set; } /// - /// The ID of an existing Product. + /// The ID of an existing Product. /// [JsonProperty("product")] #if NET6_0_OR_GREATER @@ -119,7 +119,7 @@ public class TransactionLineItem : StripeEntity, IHasId, IH public string TaxBehavior { get; set; } /// - /// The tax code ID used for this + /// The tax code ID used for this /// resource. /// [JsonProperty("tax_code")] diff --git a/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs b/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs index da0e1c0c0d..f94deffef9 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs @@ -12,7 +12,7 @@ namespace Stripe.Tax /// /// A Tax Transaction records the tax collected from or refunded to your customer. /// - /// Related guide: Calculate + /// Related guide: Calculate /// tax in your custom payment flow. /// public class Transaction : StripeEntity, IHasId, IHasMetadata, IHasObject @@ -59,7 +59,7 @@ public class Transaction : StripeEntity, IHasId, IHasMetadata, IHas /// /// The ID of an existing Customer used for the resource. + /// href="https://docs.stripe.com/api/customers/object">Customer used for the resource. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -93,7 +93,7 @@ public class Transaction : StripeEntity, IHasId, IHasMetadata, IHas public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs index 301c06c7a2..0ccf633f4e 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs @@ -11,7 +11,7 @@ public class TransactionShippingCost : StripeEntity { /// /// The shipping amount in the smallest currency unit. If + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. If /// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were /// calculated on top of this amount. /// @@ -23,7 +23,7 @@ public class TransactionShippingCost : StripeEntity /// /// The amount of tax calculated for shipping, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_tax")] #if NET6_0_OR_GREATER @@ -33,7 +33,7 @@ public class TransactionShippingCost : StripeEntity /// /// The ID of an existing ShippingRate. + /// href="https://docs.stripe.com/api/shipping_rates/object">ShippingRate. /// [JsonProperty("shipping_rate")] #if NET6_0_OR_GREATER @@ -63,7 +63,7 @@ public class TransactionShippingCost : StripeEntity public List TaxBreakdown { get; set; } /// - /// The tax code ID used for + /// The tax code ID used for /// shipping. /// [JsonProperty("tax_code")] diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs index 067acad462..785bb52ed0 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs @@ -10,7 +10,7 @@ public class TransactionShippingCostTaxBreakdown : StripeEntity /// The amount of tax, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -62,7 +62,7 @@ public class TransactionShippingCostTaxBreakdown : StripeEntity /// The amount on which tax is calculated, in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("taxable_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs index 267d71e21c..61b94f943a 100644 --- a/src/Stripe.net/Entities/TaxIds/TaxId.cs +++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs @@ -10,12 +10,12 @@ namespace Stripe /// /// You can add one or multiple tax IDs to a customer or account. Customer and + /// href="https://docs.stripe.com/api/customers">customer or account. Customer and /// account tax IDs get displayed on related invoices and credit notes. /// - /// Related guides: Customer tax + /// Related guides: Customer tax /// identification numbers, Account tax IDs. + /// href="https://docs.stripe.com/invoicing/connect#account-tax-ids">Account tax IDs. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -101,6 +101,15 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// ID of the Account representing the customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Whether this object is deleted or not. /// diff --git a/src/Stripe.net/Entities/TaxIds/TaxIdOwner.cs b/src/Stripe.net/Entities/TaxIds/TaxIdOwner.cs index fd495014c2..6a32fe8192 100644 --- a/src/Stripe.net/Entities/TaxIds/TaxIdOwner.cs +++ b/src/Stripe.net/Entities/TaxIds/TaxIdOwner.cs @@ -135,6 +135,16 @@ public Customer Customer internal ExpandableField InternalCustomer { get; set; } #endregion + /// + /// The Account representing the customer being referenced when type is + /// customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Type of owner referenced. /// One of: account, application, customer, or self. diff --git a/src/Stripe.net/Entities/TaxRates/TaxRate.cs b/src/Stripe.net/Entities/TaxRates/TaxRate.cs index 40c5abd7aa..3071f3d20a 100644 --- a/src/Stripe.net/Entities/TaxRates/TaxRate.cs +++ b/src/Stripe.net/Entities/TaxRates/TaxRate.cs @@ -156,7 +156,7 @@ public class TaxRate : StripeEntity, IHasId, IHasMetadata, IHasObject public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Terminal/ConnectionTokens/ConnectionToken.cs b/src/Stripe.net/Entities/Terminal/ConnectionTokens/ConnectionToken.cs index 8294b947d5..8aaee3acbe 100644 --- a/src/Stripe.net/Entities/Terminal/ConnectionTokens/ConnectionToken.cs +++ b/src/Stripe.net/Entities/Terminal/ConnectionTokens/ConnectionToken.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal /// /// A Connection Token is used by the Stripe Terminal SDK to connect to a reader. /// - /// Related guide: Fleet + /// Related guide: Fleet /// management. /// public class ConnectionToken : StripeEntity, IHasObject diff --git a/src/Stripe.net/Entities/Terminal/Locations/Location.cs b/src/Stripe.net/Entities/Terminal/Locations/Location.cs index ed2a7443f3..11aa6d7392 100644 --- a/src/Stripe.net/Entities/Terminal/Locations/Location.cs +++ b/src/Stripe.net/Entities/Terminal/Locations/Location.cs @@ -10,7 +10,7 @@ namespace Stripe.Terminal /// /// A Location represents a grouping of readers. /// - /// Related guide: Fleet + /// Related guide: Fleet /// management. /// public class Location : StripeEntity, IHasId, IHasMetadata, IHasObject @@ -108,7 +108,7 @@ public class Location : StripeEntity, IHasId, IHasMetadata, IHasObject public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs index f6dc32f7f1..bdcf24bf00 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs @@ -13,7 +13,7 @@ namespace Stripe.Terminal /// A Reader represents a physical device for accepting payment details. /// /// Related guide: Connecting to a + /// href="https://docs.stripe.com/terminal/payments/connect-reader">Connecting to a /// reader. /// #if NET6_0_OR_GREATER @@ -98,7 +98,9 @@ public class Reader : StripeEntity, IHasId, IHasMetadata, IHasObject public string Label { get; set; } /// - /// The last time this reader reported to Stripe backend. + /// The last time this reader reported to Stripe backend. Timestamp is measured in + /// milliseconds since the Unix epoch. Unlike most other Stripe timestamp fields which use + /// seconds, this field uses milliseconds. /// [JsonProperty("last_seen_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -160,7 +162,7 @@ public Location Location #endregion /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectInputs.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectInputs.cs index 34c97a0fc8..8c1f5d4d88 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectInputs.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectInputs.cs @@ -19,7 +19,7 @@ public class ReaderActionCollectInputs : StripeEntity public List Inputs { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs index 5c1575c8f8..a17fd32c47 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs @@ -64,12 +64,12 @@ public PaymentIntent PaymentIntent /// /// PaymentMethod objects represent your customer's payment instruments. You can use them - /// with PaymentIntents to + /// with PaymentIntents to /// collect payments or save them to Customer objects to store instrument details for future /// payments. /// - /// Related guides: Payment - /// Methods and More + /// Related guides: Payment + /// Methods and More /// Payment Scenarios. /// [JsonProperty("payment_method")] diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs index dc58f17830..23dcf5c895 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs @@ -64,7 +64,7 @@ public Charge Charge #endregion /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCart.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCart.cs index da26070caf..f87008884a 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCart.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCart.cs @@ -31,7 +31,7 @@ public class ReaderActionSetReaderDisplayCart : StripeEntity /// Tax amount for the entire cart. A positive integer in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("tax")] #if NET6_0_OR_GREATER @@ -41,7 +41,7 @@ public class ReaderActionSetReaderDisplayCart : StripeEntity /// Total amount for the entire cart, including tax. A positive integer in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("total")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCartLineItem.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCartLineItem.cs index aee697d64f..a0ab1709ec 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCartLineItem.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionSetReaderDisplayCartLineItem.cs @@ -10,7 +10,7 @@ public class ReaderActionSetReaderDisplayCartLineItem : StripeEntity /// The amount of the line item. A positive integer in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tokens/Token.cs b/src/Stripe.net/Entities/Tokens/Token.cs index eb5352e95c..bb002a4ef9 100644 --- a/src/Stripe.net/Entities/Tokens/Token.cs +++ b/src/Stripe.net/Entities/Tokens/Token.cs @@ -12,7 +12,7 @@ namespace Stripe /// Tokenization is the process Stripe uses to collect sensitive card or bank account /// details, or personally identifiable information (PII), directly from your customers in a /// secure manner. A token representing this information is returned to your server to use. - /// Use our recommended payments integrations + /// Use our recommended payments integrations /// to perform this process on the client-side. This guarantees that no sensitive card data /// touches your server, and allows your integration to operate in a PCI-compliant way. /// @@ -23,9 +23,9 @@ namespace Stripe /// sent directly to Stripe, so we can't determine how it's handled or stored. /// /// You can't store or use tokens more than once. To store card or bank account information - /// for later use, create Customer + /// for later use, create Customer /// objects or External accounts. Radar, our integrated solution for automatic + /// href="https://docs.stripe.com/radar">Radar, our integrated solution for automatic /// fraud protection, performs best with integrations that use client-side tokenization. /// public class Token : StripeEntity, IHasId, IHasObject @@ -69,7 +69,7 @@ public class Token : StripeEntity, IHasId, IHasObject /// can also store multiple debit cards on a recipient in order to transfer to those cards /// later. /// - /// Related guide: Card payments with + /// Related guide: Card payments with /// Sources. /// [JsonProperty("card")] diff --git a/src/Stripe.net/Entities/Topups/Topup.cs b/src/Stripe.net/Entities/Topups/Topup.cs index e2754310ba..704130a771 100644 --- a/src/Stripe.net/Entities/Topups/Topup.cs +++ b/src/Stripe.net/Entities/Topups/Topup.cs @@ -13,7 +13,7 @@ namespace Stripe /// To top up your Stripe balance, you create a top-up object. You can retrieve individual /// top-ups, as well as list all top-ups. Top-ups are identified by a unique, random ID. /// - /// Related guide: Topping up your + /// Related guide: Topping up your /// platform account. /// #if NET6_0_OR_GREATER @@ -137,7 +137,7 @@ public BalanceTransaction BalanceTransaction /// /// Error code explaining reason for top-up failure if available (see the errors section for a list of codes). + /// href="https://docs.stripe.com/api#errors">the errors section for a list of codes). /// [JsonProperty("failure_code")] #if NET6_0_OR_GREATER @@ -165,7 +165,7 @@ public BalanceTransaction BalanceTransaction public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/TransferReversals/TransferReversal.cs b/src/Stripe.net/Entities/TransferReversals/TransferReversal.cs index 3a11dc23e2..bc8c382fb4 100644 --- a/src/Stripe.net/Entities/TransferReversals/TransferReversal.cs +++ b/src/Stripe.net/Entities/TransferReversals/TransferReversal.cs @@ -10,7 +10,7 @@ namespace Stripe #endif /// - /// Stripe Connect platforms can reverse + /// Stripe Connect platforms can reverse /// transfers made to a connected account, either entirely or partially, and can also /// specify whether to refund any related application fees. Transfer reversals add to the /// platform's balance and subtract from the destination account's balance. @@ -18,11 +18,11 @@ namespace Stripe /// Reversing a transfer that was made for a destination charge is /// allowed only up to the amount of the charge. It is possible to reverse a transfer_group + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options">transfer_group /// transfer only if the destination account has enough balance to cover the reversal. /// /// Related guide: Reverse + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#reverse-transfers">Reverse /// transfers. /// #if NET6_0_OR_GREATER @@ -162,7 +162,7 @@ public Refund DestinationPaymentRefund #endregion /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Transfers/Transfer.cs b/src/Stripe.net/Entities/Transfers/Transfer.cs index b52051b882..457b93d16c 100644 --- a/src/Stripe.net/Entities/Transfers/Transfer.cs +++ b/src/Stripe.net/Entities/Transfers/Transfer.cs @@ -15,12 +15,12 @@ namespace Stripe /// /// Before April 6, 2017, transfers also represented movement of funds from a Stripe account /// to a card or bank account. This behavior has since been split out into a Payout object, with corresponding - /// payout endpoints. For more information, read about the transfer/payout split. + /// href="https://api.stripe.com#payout_object">Payout object, with corresponding payout + /// endpoints. For more information, read about the transfer/payout split. /// /// Related guide: Creating separate + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers">Creating separate /// charges and transfers. /// #if NET6_0_OR_GREATER @@ -232,7 +232,7 @@ public Charge DestinationPayment public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -316,7 +316,7 @@ public Charge SourceTransaction /// /// A string that identifies this transaction as part of a group. See the Connect + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options">Connect /// documentation for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs b/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs index 0de64ad359..bba6609d8b 100644 --- a/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs +++ b/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs @@ -11,8 +11,8 @@ namespace Stripe.Treasury /// /// You can reverse some ReceivedCredits depending on - /// their network and source flow. Reversing a ReceivedCredit leads to the creation of a new + /// href="https://api.stripe.com#received_credits">ReceivedCredits depending on their + /// network and source flow. Reversing a ReceivedCredit leads to the creation of a new /// object known as a CreditReversal. /// #if NET6_0_OR_GREATER @@ -79,7 +79,7 @@ public class CreditReversal : StripeEntity, IHasId, IHasMetadata public string FinancialAccount { get; set; } /// - /// A hosted + /// A hosted /// transaction receipt URL that is provided when money movement is considered regulated /// under Stripe's money transmission licenses. /// @@ -100,7 +100,7 @@ public class CreditReversal : StripeEntity, IHasId, IHasMetadata public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs b/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs index 0d730f9f85..41d7ac22f6 100644 --- a/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs +++ b/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs @@ -10,10 +10,9 @@ namespace Stripe.Treasury #endif /// - /// You can reverse some ReceivedDebits depending on their - /// network and source flow. Reversing a ReceivedDebit leads to the creation of a new object - /// known as a DebitReversal. + /// You can reverse some ReceivedDebits + /// depending on their network and source flow. Reversing a ReceivedDebit leads to the + /// creation of a new object known as a DebitReversal. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -79,7 +78,7 @@ public class DebitReversal : StripeEntity, IHasId, IHasMetadata, public string FinancialAccount { get; set; } /// - /// A hosted + /// A hosted /// transaction receipt URL that is provided when money movement is considered regulated /// under Stripe's money transmission licenses. /// @@ -109,7 +108,7 @@ public class DebitReversal : StripeEntity, IHasId, IHasMetadata, public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs b/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs index d41288a4d6..4332311dfa 100644 --- a/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs +++ b/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs @@ -115,7 +115,7 @@ public class FinancialAccount : StripeEntity, IHasId, IHasMeta public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs b/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs index 17935374ae..35a1ce6160 100644 --- a/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs +++ b/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs @@ -13,7 +13,7 @@ namespace Stripe.Treasury /// Use InboundTransfers /// to add funds to your FinancialAccount via a + /// href="https://api.stripe.com#financial_accounts">FinancialAccount via a /// PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. /// /// Related guide: , IHasId, IHasMetada public string FinancialAccount { get; set; } /// - /// A hosted + /// A hosted /// transaction receipt URL that is provided when money movement is considered regulated /// under Stripe's money transmission licenses. /// @@ -138,7 +138,7 @@ public class InboundTransfer : StripeEntity, IHasId, IHasMetada public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransferOriginPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransferOriginPaymentMethodDetailsUsBankAccount.cs index 23da87aa45..5eed6b1cd5 100644 --- a/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransferOriginPaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransferOriginPaymentMethodDetailsUsBankAccount.cs @@ -103,7 +103,7 @@ public Mandate Mandate /// /// The network rails used. See the docs to learn more + /// href="https://docs.stripe.com/treasury/money-movement/timelines">docs to learn more /// about money movement timelines for each network type. /// [JsonProperty("network")] diff --git a/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs index 64045b8350..1d219652ba 100644 --- a/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs @@ -13,9 +13,9 @@ namespace Stripe.Treasury /// Use OutboundPayments /// to send funds to another party's external bank account or FinancialAccount. To send - /// money to an account belonging to the same user, use an OutboundTransfer. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount. To send money to + /// an account belonging to the same user, use an OutboundTransfer. /// /// Simulate OutboundPayment state changes with the /// /v1/test_helpers/treasury/outbound_payments endpoints. These methods can only be @@ -89,7 +89,7 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada public string Currency { get; set; } /// - /// ID of the customer to whom an + /// ID of the customer to whom an /// OutboundPayment is sent. /// [JsonProperty("customer")] @@ -156,7 +156,7 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada public string FinancialAccount { get; set; } /// - /// A hosted + /// A hosted /// transaction receipt URL that is provided when money movement is considered regulated /// under Stripe's money transmission licenses. /// @@ -177,7 +177,7 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDetailsUsBankAccount.cs index af7749cb3a..a9b636dc0b 100644 --- a/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDetailsUsBankAccount.cs @@ -103,7 +103,7 @@ public Mandate Mandate /// /// The network rails used. See the docs to learn more + /// href="https://docs.stripe.com/treasury/money-movement/timelines">docs to learn more /// about money movement timelines for each network type. /// One of: ach, or us_domestic_wire. /// diff --git a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs index c1acd40549..95670924d2 100644 --- a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs +++ b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs @@ -13,11 +13,11 @@ namespace Stripe.Treasury /// Use OutboundTransfers /// to transfer funds from a FinancialAccount to a - /// PaymentMethod belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You - /// can send funds over ACH rails or through a domestic wire transfer to a user's own - /// external bank account. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount to a PaymentMethod + /// belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can + /// send funds over ACH rails or through a domestic wire transfer to a user's own external + /// bank account. /// /// Simulate OutboundTransfer state changes with the /// /v1/test_helpers/treasury/outbound_transfers endpoints. These methods can only be @@ -135,7 +135,7 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta public string FinancialAccount { get; set; } /// - /// A hosted + /// A hosted /// transaction receipt URL that is provided when money movement is considered regulated /// under Stripe's money transmission licenses. /// @@ -156,7 +156,7 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetailsUsBankAccount.cs index 883232db4f..fe42e916be 100644 --- a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetailsUsBankAccount.cs @@ -103,7 +103,7 @@ public Mandate Mandate /// /// The network rails used. See the docs to learn more + /// href="https://docs.stripe.com/treasury/money-movement/timelines">docs to learn more /// about money movement timelines for each network type. /// One of: ach, or us_domestic_wire. /// diff --git a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs index 547c12d94f..bfa71992c8 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs @@ -10,8 +10,8 @@ namespace Stripe.Treasury /// /// ReceivedCredits represent funds sent to a FinancialAccount (for example, - /// via ACH or wire). These money movements are not initiated from the FinancialAccount. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount (for example, via + /// ACH or wire). These money movements are not initiated from the FinancialAccount. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -98,7 +98,7 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject public string FinancialAccount { get; set; } /// - /// A hosted + /// A hosted /// transaction receipt URL that is provided when money movement is considered regulated /// under Stripe's money transmission licenses. /// diff --git a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditInitiatingPaymentMethodDetails.cs b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditInitiatingPaymentMethodDetails.cs index e5754c0b5c..0dcf9d6b6a 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditInitiatingPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditInitiatingPaymentMethodDetails.cs @@ -31,7 +31,7 @@ public class ReceivedCreditInitiatingPaymentMethodDetails : StripeEntity /// Set when type is issuing_card. This is an Issuing Card ID. + /// href="https://api.stripe.com#issuing_cards">Issuing Card ID. /// [JsonProperty("issuing_card")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlows.cs b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlows.cs index 2f05060454..6cbad70676 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlows.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlows.cs @@ -19,8 +19,7 @@ public class ReceivedCreditLinkedFlows : StripeEntity /// /// Set if the ReceivedCredit was created due to an Issuing Authorization - /// object. + /// href="https://api.stripe.com#issuing_authorizations">Issuing Authorization object. /// [JsonProperty("issuing_authorization")] #if NET6_0_OR_GREATER @@ -30,7 +29,7 @@ public class ReceivedCreditLinkedFlows : StripeEntity /// /// Set if the ReceivedCredit is also viewable as an Issuing transaction object. + /// href="https://api.stripe.com#issuing_transactions">Issuing transaction object. /// [JsonProperty("issuing_transaction")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs index 7586676369..6c1dc66491 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs @@ -10,8 +10,8 @@ public class ReceivedCreditLinkedFlowsSourceFlowDetails : StripeEntity /// You can reverse some ReceivedCredits depending on - /// their network and source flow. Reversing a ReceivedCredit leads to the creation of a new + /// href="https://api.stripe.com#received_credits">ReceivedCredits depending on their + /// network and source flow. Reversing a ReceivedCredit leads to the creation of a new /// object known as a CreditReversal. /// [JsonProperty("credit_reversal")] @@ -24,9 +24,9 @@ public class ReceivedCreditLinkedFlowsSourceFlowDetails : StripeEntityOutboundPayments /// to send funds to another party's external bank account or FinancialAccount. To send - /// money to an account belonging to the same user, use an OutboundTransfer. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount. To send money to + /// an account belonging to the same user, use an OutboundTransfer. /// /// Simulate OutboundPayment state changes with the /// /v1/test_helpers/treasury/outbound_payments endpoints. These methods can only be @@ -46,11 +46,11 @@ public class ReceivedCreditLinkedFlowsSourceFlowDetails : StripeEntityOutboundTransfers /// to transfer funds from a FinancialAccount to a - /// PaymentMethod belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You - /// can send funds over ACH rails or through a domestic wire transfer to a user's own - /// external bank account. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount to a PaymentMethod + /// belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can + /// send funds over ACH rails or through a domestic wire transfer to a user's own external + /// bank account. /// /// Simulate OutboundTransfer state changes with the /// /v1/test_helpers/treasury/outbound_transfers endpoints. These methods can only be @@ -74,7 +74,7 @@ public class ReceivedCreditLinkedFlowsSourceFlowDetails : StripeEntityvarying /// schedules, depending on your country and industry. /// - /// Related guide: Receiving payouts. + /// Related guide: Receiving payouts. /// [JsonProperty("payout")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs index d9867440b0..15935610c1 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs @@ -10,8 +10,8 @@ namespace Stripe.Treasury /// /// ReceivedDebits represent funds pulled from a FinancialAccount. These are - /// not initiated from the FinancialAccount. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount. These are not + /// initiated from the FinancialAccount. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] @@ -98,7 +98,7 @@ public class ReceivedDebit : StripeEntity, IHasId, IHasObject public string FinancialAccount { get; set; } /// - /// A hosted + /// A hosted /// transaction receipt URL that is provided when money movement is considered regulated /// under Stripe's money transmission licenses. /// diff --git a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitInitiatingPaymentMethodDetails.cs b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitInitiatingPaymentMethodDetails.cs index 078aee4bdc..ec97e09224 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitInitiatingPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitInitiatingPaymentMethodDetails.cs @@ -31,7 +31,7 @@ public class ReceivedDebitInitiatingPaymentMethodDetails : StripeEntity /// Set when type is issuing_card. This is an Issuing Card ID. + /// href="https://api.stripe.com#issuing_cards">Issuing Card ID. /// [JsonProperty("issuing_card")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitLinkedFlows.cs b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitLinkedFlows.cs index 075e688efa..67152b711f 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitLinkedFlows.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitLinkedFlows.cs @@ -28,8 +28,7 @@ public class ReceivedDebitLinkedFlows : StripeEntity /// /// Set if the ReceivedDebit was created due to an Issuing Authorization - /// object. + /// href="https://api.stripe.com#issuing_authorizations">Issuing Authorization object. /// [JsonProperty("issuing_authorization")] #if NET6_0_OR_GREATER @@ -39,7 +38,7 @@ public class ReceivedDebitLinkedFlows : StripeEntity /// /// Set if the ReceivedDebit is also viewable as an Issuing Dispute object. + /// href="https://api.stripe.com#issuing_disputes">Issuing Dispute object. /// [JsonProperty("issuing_transaction")] #if NET6_0_OR_GREATER @@ -49,7 +48,7 @@ public class ReceivedDebitLinkedFlows : StripeEntity /// /// Set if the ReceivedDebit was created due to a Payout object. + /// href="https://api.stripe.com#payouts">Payout object. /// [JsonProperty("payout")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs b/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs index d2f188eab2..cef68eedc9 100644 --- a/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs +++ b/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs @@ -10,7 +10,7 @@ namespace Stripe.Treasury /// /// TransactionEntries represent individual units of money movements within a single Transaction. + /// href="https://api.stripe.com#transactions">Transaction. /// #if NET6_0_OR_GREATER [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] diff --git a/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntryFlowDetails.cs b/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntryFlowDetails.cs index 250cd5f94a..2db61e07be 100644 --- a/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntryFlowDetails.cs +++ b/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntryFlowDetails.cs @@ -10,8 +10,8 @@ public class TransactionEntryFlowDetails : StripeEntity /// You can reverse some ReceivedCredits depending on - /// their network and source flow. Reversing a ReceivedCredit leads to the creation of a new + /// href="https://api.stripe.com#received_credits">ReceivedCredits depending on their + /// network and source flow. Reversing a ReceivedCredit leads to the creation of a new /// object known as a CreditReversal. /// [JsonProperty("credit_reversal")] @@ -21,10 +21,9 @@ public class TransactionEntryFlowDetails : StripeEntity - /// You can reverse some ReceivedDebits depending on their - /// network and source flow. Reversing a ReceivedDebit leads to the creation of a new object - /// known as a DebitReversal. + /// You can reverse some ReceivedDebits + /// depending on their network and source flow. Reversing a ReceivedDebit leads to the + /// creation of a new object known as a DebitReversal. /// [JsonProperty("debit_reversal")] #if NET6_0_OR_GREATER @@ -36,7 +35,7 @@ public class TransactionEntryFlowDetails : StripeEntityInboundTransfers /// to add funds to your FinancialAccount via a + /// href="https://api.stripe.com#financial_accounts">FinancialAccount via a /// PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. /// /// Related guide: - /// When an issued card is used to make a + /// When an issued card is used to make a /// purchase, an Issuing Authorization object is created. Authorizations must + /// href="https://docs.stripe.com/issuing/purchases/authorizations">Authorizations must /// be approved for the purchase to be completed successfully. /// - /// Related guide: Issued + /// Related guide: Issued /// card authorizations. /// [JsonProperty("issuing_authorization")] @@ -68,9 +67,9 @@ public class TransactionEntryFlowDetails : StripeEntityOutboundPayments /// to send funds to another party's external bank account or FinancialAccount. To send - /// money to an account belonging to the same user, use an OutboundTransfer. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount. To send money to + /// an account belonging to the same user, use an OutboundTransfer. /// /// Simulate OutboundPayment state changes with the /// /v1/test_helpers/treasury/outbound_payments endpoints. These methods can only be @@ -90,11 +89,11 @@ public class TransactionEntryFlowDetails : StripeEntityOutboundTransfers /// to transfer funds from a FinancialAccount to a - /// PaymentMethod belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You - /// can send funds over ACH rails or through a domestic wire transfer to a user's own - /// external bank account. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount to a PaymentMethod + /// belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can + /// send funds over ACH rails or through a domestic wire transfer to a user's own external + /// bank account. /// /// Simulate OutboundTransfer state changes with the /// /v1/test_helpers/treasury/outbound_transfers endpoints. These methods can only be @@ -112,8 +111,8 @@ public class TransactionEntryFlowDetails : StripeEntity /// ReceivedCredits represent funds sent to a FinancialAccount (for example, - /// via ACH or wire). These money movements are not initiated from the FinancialAccount. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount (for example, via + /// ACH or wire). These money movements are not initiated from the FinancialAccount. /// [JsonProperty("received_credit")] #if NET6_0_OR_GREATER @@ -123,8 +122,8 @@ public class TransactionEntryFlowDetails : StripeEntity /// ReceivedDebits represent funds pulled from a FinancialAccount. These are - /// not initiated from the FinancialAccount. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount. These are not + /// initiated from the FinancialAccount. /// [JsonProperty("received_debit")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs b/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs index 0b8e766eb4..b08ac676e0 100644 --- a/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs @@ -10,7 +10,7 @@ namespace Stripe.Treasury /// /// Transactions represent changes to a FinancialAccount's balance. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount's balance. /// public class Transaction : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/Treasury/Transactions/TransactionFlowDetails.cs b/src/Stripe.net/Entities/Treasury/Transactions/TransactionFlowDetails.cs index 1cec6a2892..24ef2c96a9 100644 --- a/src/Stripe.net/Entities/Treasury/Transactions/TransactionFlowDetails.cs +++ b/src/Stripe.net/Entities/Treasury/Transactions/TransactionFlowDetails.cs @@ -10,8 +10,8 @@ public class TransactionFlowDetails : StripeEntity { /// /// You can reverse some ReceivedCredits depending on - /// their network and source flow. Reversing a ReceivedCredit leads to the creation of a new + /// href="https://api.stripe.com#received_credits">ReceivedCredits depending on their + /// network and source flow. Reversing a ReceivedCredit leads to the creation of a new /// object known as a CreditReversal. /// [JsonProperty("credit_reversal")] @@ -21,10 +21,9 @@ public class TransactionFlowDetails : StripeEntity public CreditReversal CreditReversal { get; set; } /// - /// You can reverse some ReceivedDebits depending on their - /// network and source flow. Reversing a ReceivedDebit leads to the creation of a new object - /// known as a DebitReversal. + /// You can reverse some ReceivedDebits + /// depending on their network and source flow. Reversing a ReceivedDebit leads to the + /// creation of a new object known as a DebitReversal. /// [JsonProperty("debit_reversal")] #if NET6_0_OR_GREATER @@ -36,7 +35,7 @@ public class TransactionFlowDetails : StripeEntity /// Use InboundTransfers /// to add funds to your FinancialAccount via a + /// href="https://api.stripe.com#financial_accounts">FinancialAccount via a /// PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. /// /// Related guide: public InboundTransfer InboundTransfer { get; set; } /// - /// When an issued card is used to make a + /// When an issued card is used to make a /// purchase, an Issuing Authorization object is created. Authorizations must + /// href="https://docs.stripe.com/issuing/purchases/authorizations">Authorizations must /// be approved for the purchase to be completed successfully. /// - /// Related guide: Issued + /// Related guide: Issued /// card authorizations. /// [JsonProperty("issuing_authorization")] @@ -68,9 +67,9 @@ public class TransactionFlowDetails : StripeEntity /// Use OutboundPayments /// to send funds to another party's external bank account or FinancialAccount. To send - /// money to an account belonging to the same user, use an OutboundTransfer. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount. To send money to + /// an account belonging to the same user, use an OutboundTransfer. /// /// Simulate OutboundPayment state changes with the /// /v1/test_helpers/treasury/outbound_payments endpoints. These methods can only be @@ -90,11 +89,11 @@ public class TransactionFlowDetails : StripeEntity /// Use OutboundTransfers /// to transfer funds from a FinancialAccount to a - /// PaymentMethod belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You - /// can send funds over ACH rails or through a domestic wire transfer to a user's own - /// external bank account. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount to a PaymentMethod + /// belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can + /// send funds over ACH rails or through a domestic wire transfer to a user's own external + /// bank account. /// /// Simulate OutboundTransfer state changes with the /// /v1/test_helpers/treasury/outbound_transfers endpoints. These methods can only be @@ -112,8 +111,8 @@ public class TransactionFlowDetails : StripeEntity /// /// ReceivedCredits represent funds sent to a FinancialAccount (for example, - /// via ACH or wire). These money movements are not initiated from the FinancialAccount. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount (for example, via + /// ACH or wire). These money movements are not initiated from the FinancialAccount. /// [JsonProperty("received_credit")] #if NET6_0_OR_GREATER @@ -123,8 +122,8 @@ public class TransactionFlowDetails : StripeEntity /// /// ReceivedDebits represent funds pulled from a FinancialAccount. These are - /// not initiated from the FinancialAccount. + /// href="https://api.stripe.com#financial_accounts">FinancialAccount. These are not + /// initiated from the FinancialAccount. /// [JsonProperty("received_debit")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs new file mode 100644 index 0000000000..3cab62e0c0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs @@ -0,0 +1,81 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Account Links let a platform create a temporary, single-use URL that an account can use + /// to access a Stripe-hosted flow for collecting or updating required information. + /// + public class AccountLink : StripeEntity, IHasObject + { + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// The ID of the connected account this Account Link applies to. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// The timestamp at which this Account Link was created. + /// + [JsonProperty("created")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The timestamp at which this Account Link will expire. + /// + [JsonProperty("expires_at")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expires_at")] +#endif + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// The URL at which the account can access the Stripe-hosted flow. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + + /// + /// Hash containing usage options. + /// + [JsonProperty("use_case")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("use_case")] +#endif + public AccountLinkUseCase UseCase { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs new file mode 100644 index 0000000000..806bbfff74 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCase : StripeEntity + { + /// + /// Open Enum. The type of Account Link the user is requesting. + /// One of: account_onboarding, or account_update. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// Hash containing configuration options for an Account Link object that onboards a new + /// account. + /// + [JsonProperty("account_onboarding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_onboarding")] +#endif + public AccountLinkUseCaseAccountOnboarding AccountOnboarding { get; set; } + + /// + /// Hash containing configuration options for an Account Link that updates an existing + /// account. + /// + [JsonProperty("account_update")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_update")] +#endif + public AccountLinkUseCaseAccountUpdate AccountUpdate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs new file mode 100644 index 0000000000..e55b854c8a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseAccountOnboarding : StripeEntity + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkUseCaseAccountOnboardingCollectionOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/core/account can be configured to enable certain functionality. The + /// configuration param targets the v2/core/account_link to collect information for the + /// specified v2/core/account configuration/s. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the AccountLink is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new AccountLink + /// with the same parameters used to create the original AccountLink, then redirect the user + /// to the new AccountLink’s URL so they can continue the flow. If a new AccountLink cannot + /// be generated or the redirect fails you should display a useful error to the user. Please + /// make sure to implement authentication before redirecting the user in case this URL is + /// leaked to a third party. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboardingCollectionOptions.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboardingCollectionOptions.cs new file mode 100644 index 0000000000..efce1ce739 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboardingCollectionOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseAccountOnboardingCollectionOptions : StripeEntity + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don’t specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs new file mode 100644 index 0000000000..f691acfc5d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseAccountUpdate : StripeEntity + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkUseCaseAccountUpdateCollectionOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/account can be configured to enable certain functionality. The + /// configuration param targets the v2/account_link to collect information for the specified + /// v2/account configuration/s. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the Account Link is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new Account Link + /// with the same parameters used to create the original Account Link, then redirect the + /// user to the new Account Link URL so they can continue the flow. Make sure to + /// authenticate the user before redirecting to the new Account Link, in case the URL leaks + /// to a third party. If a new Account Link can't be generated, or if the redirect fails, + /// you should display a useful error to the user. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdateCollectionOptions.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdateCollectionOptions.cs new file mode 100644 index 0000000000..c2f15113de --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdateCollectionOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseAccountUpdateCollectionOptions : StripeEntity + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). The default value is currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersonTokens/AccountPersonToken.cs b/src/Stripe.net/Entities/V2/Core/AccountPersonTokens/AccountPersonToken.cs new file mode 100644 index 0000000000..ad15700ab6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersonTokens/AccountPersonToken.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Person Tokens are single-use tokens which tokenize person information, and are used for + /// creating or updating a Person. + /// + public class AccountPersonToken : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier for the token. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// Time at which the token was created. Represented as a RFC 3339 date & time UTC value + /// in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("created")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Time at which the token will expire. + /// + [JsonProperty("expires_at")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expires_at")] +#endif + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Has the value true if the token exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// Determines if the token has already been used (tokens can only be used once). + /// + [JsonProperty("used")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("used")] +#endif + public bool Used { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPerson.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPerson.cs new file mode 100644 index 0000000000..b6e32b2206 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPerson.cs @@ -0,0 +1,242 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// A Person represents an individual associated with an Account's identity (for example, an + /// owner, director, executive, or representative). Use Persons to provide and update + /// identity information for verification and compliance. + /// + public class AccountPerson : StripeEntity, IHasId, IHasMetadata, IHasObject + { + /// + /// Unique identifier for the Person. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// The account ID which the individual belongs to. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// Additional addresses associated with the person. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the person. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("additional_terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_terms_of_service")] +#endif + public AccountPersonAdditionalTermsOfService AdditionalTermsOfService { get; set; } + + /// + /// The person's residential address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AccountPersonAddress Address { get; set; } + + /// + /// Time at which the object was created. Represented as a RFC 3339 date & time UTC + /// value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("created")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The person's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public AccountPersonDateOfBirth DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountPersonDocuments Documents { get; set; } + + /// + /// The person's email address. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The person's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the person. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The person's gender (International regulations require either "male" or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The countries where the person is a national. Two-letter country code (ISO 3166-1 alpha-2). + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// The person's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The person's political exposure. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this person has with the Account's business or legal entity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public AccountPersonRelationship Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the person. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountPersonScriptAddresses ScriptAddresses { get; set; } + + /// + /// The script names (e.g. non-Latin characters) associated with the person. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountPersonScriptNames ScriptNames { get; set; } + + /// + /// The person's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + + /// + /// Time at which the object was last updated. Represented as a RFC 3339 date & time UTC + /// value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("updated")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("updated")] +#endif + public DateTime Updated { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalAddress.cs new file mode 100644 index 0000000000..1cf459f461 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalAddress.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonAdditionalAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalName.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalName.cs new file mode 100644 index 0000000000..ea0835c066 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalName.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonAdditionalName : StripeEntity + { + /// + /// The individual's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The individual's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The individual's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfService.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfService.cs new file mode 100644 index 0000000000..8864e9ec1e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfService.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonAdditionalTermsOfService : StripeEntity + { + /// + /// Stripe terms of service agreement. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public AccountPersonAdditionalTermsOfServiceAccount Account { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfServiceAccount.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfServiceAccount.cs new file mode 100644 index 0000000000..648351d244 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfServiceAccount.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonAdditionalTermsOfServiceAccount : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAddress.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAddress.cs new file mode 100644 index 0000000000..c3ca8b2014 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAddress.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDateOfBirth.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDateOfBirth.cs new file mode 100644 index 0000000000..2a4c9cc316 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDateOfBirth.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDateOfBirth : StripeEntity + { + /// + /// The day of birth, between 1 and 31. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long Day { get; set; } + + /// + /// The month of birth, between 1 and 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long Month { get; set; } + + /// + /// The four-digit year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long Year { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocuments.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocuments.cs new file mode 100644 index 0000000000..d5f64dc7f7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocuments.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocuments : StripeEntity + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public AccountPersonDocumentsCompanyAuthorization CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public AccountPersonDocumentsPassport Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountPersonDocumentsPrimaryVerification PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public AccountPersonDocumentsSecondaryVerification SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public AccountPersonDocumentsVisa Visa { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsCompanyAuthorization.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsCompanyAuthorization.cs new file mode 100644 index 0000000000..72720f4dd2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsCompanyAuthorization.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocumentsCompanyAuthorization : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPassport.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPassport.cs new file mode 100644 index 0000000000..69229d0070 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPassport.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocumentsPassport : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerification.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerification.cs new file mode 100644 index 0000000000..77652dc3cd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerification.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocumentsPrimaryVerification : StripeEntity + { + /// + /// The file upload + /// tokens for the front and back of the verification document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountPersonDocumentsPrimaryVerificationFrontBack FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerificationFrontBack.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerificationFrontBack.cs new file mode 100644 index 0000000000..d2429abf92 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerificationFrontBack.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocumentsPrimaryVerificationFrontBack : StripeEntity + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerification.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerification.cs new file mode 100644 index 0000000000..8cb8f2a8a2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerification.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocumentsSecondaryVerification : StripeEntity + { + /// + /// The file upload + /// tokens for the front and back of the verification document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountPersonDocumentsSecondaryVerificationFrontBack FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerificationFrontBack.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerificationFrontBack.cs new file mode 100644 index 0000000000..302bf3427e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerificationFrontBack.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocumentsSecondaryVerificationFrontBack : StripeEntity + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsVisa.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsVisa.cs new file mode 100644 index 0000000000..6853e6cf1a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsVisa.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonDocumentsVisa : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs new file mode 100644 index 0000000000..3929656e16 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonIdNumber : StripeEntity + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs new file mode 100644 index 0000000000..52259b7264 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs @@ -0,0 +1,90 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonRelationship : StripeEntity + { + /// + /// Whether the individual is an authorizer of the Account's identity. + /// + [JsonProperty("authorizer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authorizer")] +#endif + public bool? Authorizer { get; set; } + + /// + /// Whether the individual is a director of the Account's identity. Directors are typically + /// members of the governing board of the company or are responsible for making sure that + /// the company meets its regulatory obligations. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Whether the individual has significant responsibility to control, manage, or direct the + /// organization. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Whether the individual is the legal guardian of the Account's representative. + /// + [JsonProperty("legal_guardian")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_guardian")] +#endif + public bool? LegalGuardian { get; set; } + + /// + /// Whether the individual is an owner of the Account's identity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percentage of the Account's identity that the individual owns. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// Whether the individual is authorized as the primary representative of the Account. This + /// is the person nominated by the business to provide information about themselves, and + /// general information about the account. There can only be one representative at any given + /// time. At the time the account is created, this person should be set to the person + /// responsible for opening the account. + /// + [JsonProperty("representative")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative")] +#endif + public bool? Representative { get; set; } + + /// + /// The individual's title (e.g., CEO, Support Engineer). + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddresses.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddresses.cs new file mode 100644 index 0000000000..9be684f0ab --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddresses.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonScriptAddresses : StripeEntity + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountPersonScriptAddressesKana Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountPersonScriptAddressesKanji Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKana.cs new file mode 100644 index 0000000000..edc989c679 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKana.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonScriptAddressesKana : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKanji.cs new file mode 100644 index 0000000000..d6f47ce8f2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKanji.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonScriptAddressesKanji : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNames.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNames.cs new file mode 100644 index 0000000000..7053ff0b64 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNames.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonScriptNames : StripeEntity + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountPersonScriptNamesKana Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountPersonScriptNamesKanji Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKana.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKana.cs new file mode 100644 index 0000000000..922e7dca03 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKana.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonScriptNamesKana : StripeEntity + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKanji.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKanji.cs new file mode 100644 index 0000000000..699d71e1bd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKanji.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountPersonScriptNamesKanji : StripeEntity + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountTokens/AccountToken.cs b/src/Stripe.net/Entities/V2/Core/AccountTokens/AccountToken.cs new file mode 100644 index 0000000000..ff2d894960 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountTokens/AccountToken.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Account tokens are single-use tokens which tokenize company/individual/business + /// information, and are used for creating or updating an Account. + /// + public class AccountToken : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier for the token. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// Time at which the token was created. Represented as a RFC 3339 date & time UTC value + /// in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("created")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Time at which the token will expire. + /// + [JsonProperty("expires_at")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expires_at")] +#endif + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Has the value true if the token exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// Determines if the token has already been used (tokens can only be used once). + /// + [JsonProperty("used")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("used")] +#endif + public bool Used { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs new file mode 100644 index 0000000000..d7853746a5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs @@ -0,0 +1,167 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// A V2 Account is a representation of a company or individual that a Stripe user does + /// business with. Accounts contain the contact details, Legal Entity information, and + /// configuration required to enable the Account for use across Stripe products. + /// + public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject + { + /// + /// Unique identifier for the Account. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// The configurations that have been applied to this account. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("applied_configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied_configurations")] +#endif + public List AppliedConfigurations { get; set; } + + /// + /// Indicates whether the account has been closed. + /// + [JsonProperty("closed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("closed")] +#endif + public bool? Closed { get; set; } + + /// + /// An Account represents a company, individual, or other entity that a user interacts with. + /// Accounts store identity information and one or more configurations that enable + /// product-specific capabilities. You can assign configurations at creation or add them + /// later. + /// + [JsonProperty("configuration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configuration")] +#endif + public AccountConfiguration Configuration { get; set; } + + /// + /// The default contact email address for the Account. Required when configuring the account + /// as a merchant or recipient. + /// + [JsonProperty("contact_email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("contact_email")] +#endif + public string ContactEmail { get; set; } + + /// + /// Time at which the object was created. Represented as a RFC 3339 date & time UTC + /// value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("created")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// A value indicating the Stripe dashboard this Account has access to. This will depend on + /// which configurations are enabled for this account. + /// One of: express, full, or none. + /// + [JsonProperty("dashboard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dashboard")] +#endif + public string Dashboard { get; set; } + + /// + /// Default values for settings shared across Account configurations. + /// + [JsonProperty("defaults")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("defaults")] +#endif + public AccountDefaults Defaults { get; set; } + + /// + /// A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard + /// and on any invoices sent to the Account. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + + /// + /// Information about the future requirements for the Account that will eventually come into + /// effect, including what information needs to be collected, and by when. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public AccountFutureRequirements FutureRequirements { get; set; } + + /// + /// Information about the company, individual, and business represented by the Account. + /// + [JsonProperty("identity")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("identity")] +#endif + public AccountIdentity Identity { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// Information about the active requirements for the Account, including what information + /// needs to be collected, and by when. + /// + [JsonProperty("requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requirements")] +#endif + public AccountRequirements Requirements { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs new file mode 100644 index 0000000000..ac88578a73 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfiguration : StripeEntity + { + /// + /// The Customer Configuration allows the Account to be used in inbound payment flows. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public AccountConfigurationCustomer Customer { get; set; } + + /// + /// Enables the Account to act as a connected account and collect payments facilitated by a + /// Connect platform. You must onboard your platform to Connect before you can add this + /// configuration to your connected accounts. Utilize this configuration when the Account + /// will be the Merchant of Record, like with Direct charges or Destination Charges with + /// on_behalf_of set. + /// + [JsonProperty("merchant")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("merchant")] +#endif + public AccountConfigurationMerchant Merchant { get; set; } + + /// + /// The Recipient Configuration allows the Account to receive funds. Utilize this + /// configuration if the Account will not be the Merchant of Record, like with Separate + /// Charges & Transfers, or Destination Charges without on_behalf_of set. + /// + [JsonProperty("recipient")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recipient")] +#endif + public AccountConfigurationRecipient Recipient { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomer.cs new file mode 100644 index 0000000000..a0a6e5c15a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomer.cs @@ -0,0 +1,71 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomer : StripeEntity + { + /// + /// Indicates whether the customer configuration is active. You can deactivate or reactivate + /// the customer configuration by updating this property. Deactivating the configuration by + /// setting this value to false will unrequest all capabilities within the configuration. It + /// will not delete any of the configuration's other properties. + /// + [JsonProperty("applied")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied")] +#endif + public bool Applied { get; set; } + + /// + /// Settings for automatic indirect tax calculation on the customer's invoices, + /// subscriptions, Checkout Sessions, and Payment Links. Available when automatic tax + /// calculation is available for the customer account's location. + /// + [JsonProperty("automatic_indirect_tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("automatic_indirect_tax")] +#endif + public AccountConfigurationCustomerAutomaticIndirectTax AutomaticIndirectTax { get; set; } + + /// + /// Default Billing settings for the customer account, used in Invoices and Subscriptions. + /// + [JsonProperty("billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing")] +#endif + public AccountConfigurationCustomerBilling Billing { get; set; } + + /// + /// Capabilities that have been requested on the Customer Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountConfigurationCustomerCapabilities Capabilities { get; set; } + + /// + /// The customer's shipping information. Appears on invoices emailed to this customer. + /// + [JsonProperty("shipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping")] +#endif + public AccountConfigurationCustomerShipping Shipping { get; set; } + + /// + /// ID of the test clock to attach to the customer. Can only be set on testmode Accounts, + /// and when the Customer Configuration is first set on an Account. + /// + [JsonProperty("test_clock")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("test_clock")] +#endif + public string TestClock { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTax.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTax.cs new file mode 100644 index 0000000000..bfd0fff32a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTax.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerAutomaticIndirectTax : StripeEntity + { + /// + /// The customer account's tax exemption status: none, exempt, or + /// reverse. When reverse, invoice and receipt PDFs include "Reverse charge". + /// One of: exempt, none, or reverse. + /// + [JsonProperty("exempt")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("exempt")] +#endif + public string Exempt { get; set; } + + /// + /// A recent IP address of the customer used for tax reporting and tax location inference. + /// + [JsonProperty("ip_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip_address")] +#endif + public string IpAddress { get; set; } + + /// + /// The customer account's identified tax location, derived from location_source. + /// Only rendered if the automatic_indirect_tax feature is requested and + /// active. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public AccountConfigurationCustomerAutomaticIndirectTaxLocation Location { get; set; } + + /// + /// Data source used to identify the customer account's tax location. Defaults to + /// identity_address. Used for automatic indirect tax calculation. + /// One of: identity_address, ip_address, payment_method, or + /// shipping_address. + /// + [JsonProperty("location_source")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location_source")] +#endif + public string LocationSource { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs new file mode 100644 index 0000000000..bb82f1bc04 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerAutomaticIndirectTaxLocation : StripeEntity + { + /// + /// The identified tax country of the customer. + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// The identified tax state, county, province, or region of the customer. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs new file mode 100644 index 0000000000..e0076da150 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerBilling : StripeEntity + { + /// + /// ID of a PaymentMethod attached to the customer account to use as the default for + /// invoices and subscriptions. + /// + [JsonProperty("default_payment_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("default_payment_method")] +#endif + public string DefaultPaymentMethod { get; set; } + + /// + /// Default invoice settings for the customer account. + /// + [JsonProperty("invoice")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("invoice")] +#endif + public AccountConfigurationCustomerBillingInvoice Invoice { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs new file mode 100644 index 0000000000..e1aa110926 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerBillingInvoice : StripeEntity + { + /// + /// The list of up to 4 default custom fields to be displayed on invoices for this customer. + /// When updating, pass an empty string to remove previously-defined fields. + /// + [JsonProperty("custom_fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom_fields")] +#endif + public List CustomFields { get; set; } + + /// + /// Default invoice footer. + /// + [JsonProperty("footer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("footer")] +#endif + public string Footer { get; set; } + + /// + /// Sequence number to use on the customer account's next invoice. Defaults to 1. + /// + [JsonProperty("next_sequence")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_sequence")] +#endif + public long? NextSequence { get; set; } + + /// + /// Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or + /// numbers. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + + /// + /// Default invoice PDF rendering options. + /// + [JsonProperty("rendering")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("rendering")] +#endif + public AccountConfigurationCustomerBillingInvoiceRendering Rendering { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceCustomField.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceCustomField.cs new file mode 100644 index 0000000000..e7c1020499 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceCustomField.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerBillingInvoiceCustomField : StripeEntity + { + /// + /// The name of the custom field. This may be up to 40 characters. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// The value of the custom field. This may be up to 140 characters. When updating, pass an + /// empty string to remove previously-defined values. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceRendering.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceRendering.cs new file mode 100644 index 0000000000..c7da3c9d9a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoiceRendering.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerBillingInvoiceRendering : StripeEntity + { + /// + /// Indicates whether displayed line item prices and amounts on invoice PDFs include + /// inclusive tax amounts. Must be either include_inclusive_tax or + /// exclude_tax. + /// One of: exclude_tax, or include_inclusive_tax. + /// + [JsonProperty("amount_tax_display")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_tax_display")] +#endif + public string AmountTaxDisplay { get; set; } + + /// + /// ID of the invoice rendering template to use for future invoices. + /// + [JsonProperty("template")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("template")] +#endif + public string Template { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilities.cs new file mode 100644 index 0000000000..c407f48ab1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilities.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerCapabilities : StripeEntity + { + /// + /// Generates requirements for enabling automatic indirect tax calculation on this + /// customer's invoices or subscriptions. Recommended to request this capability if planning + /// to enable automatic tax calculation on this customer's invoices or subscriptions. + /// + [JsonProperty("automatic_indirect_tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("automatic_indirect_tax")] +#endif + public AccountConfigurationCustomerCapabilitiesAutomaticIndirectTax AutomaticIndirectTax { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTax.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTax.cs new file mode 100644 index 0000000000..4b57a40096 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTax.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerCapabilitiesAutomaticIndirectTax : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs new file mode 100644 index 0000000000..5ea4e6c42e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShipping.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShipping.cs new file mode 100644 index 0000000000..c79d018155 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShipping.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerShipping : StripeEntity + { + /// + /// Customer shipping address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AccountConfigurationCustomerShippingAddress Address { get; set; } + + /// + /// Customer name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Customer phone (including extension). + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs new file mode 100644 index 0000000000..a3d7f45555 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs @@ -0,0 +1,66 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCustomerShippingAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs new file mode 100644 index 0000000000..1fbe049046 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs @@ -0,0 +1,114 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchant : StripeEntity + { + /// + /// Indicates whether the merchant configuration is active. You can deactivate or reactivate + /// the merchant configuration by updating this property. Deactivating the configuration by + /// setting this value to false doesn't delete the configuration's properties. + /// + [JsonProperty("applied")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied")] +#endif + public bool Applied { get; set; } + + /// + /// Settings for Bacs Direct Debit payments. + /// + [JsonProperty("bacs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bacs_debit_payments")] +#endif + public AccountConfigurationMerchantBacsDebitPayments BacsDebitPayments { get; set; } + + /// + /// Settings used to apply the merchant's branding to email receipts, invoices, Checkout, + /// and other products. + /// + [JsonProperty("branding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("branding")] +#endif + public AccountConfigurationMerchantBranding Branding { get; set; } + + /// + /// Capabilities that have been requested on the Merchant Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountConfigurationMerchantCapabilities Capabilities { get; set; } + + /// + /// Card payments settings. + /// + [JsonProperty("card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_payments")] +#endif + public AccountConfigurationMerchantCardPayments CardPayments { get; set; } + + /// + /// Settings specific to Konbini payments on the account. + /// + [JsonProperty("konbini_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("konbini_payments")] +#endif + public AccountConfigurationMerchantKonbiniPayments KonbiniPayments { get; set; } + + /// + /// The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the + /// goods or services they provide. + /// + [JsonProperty("mcc")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mcc")] +#endif + public string Mcc { get; set; } + + /// + /// Settings for the default text that appears on statements for language variations. + /// + [JsonProperty("script_statement_descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_statement_descriptor")] +#endif + public AccountConfigurationMerchantScriptStatementDescriptor ScriptStatementDescriptor { get; set; } + + /// + /// Settings for SEPA Direct Debit payments. + /// + [JsonProperty("sepa_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sepa_debit_payments")] +#endif + public AccountConfigurationMerchantSepaDebitPayments SepaDebitPayments { get; set; } + + /// + /// Statement descriptor. + /// + [JsonProperty("statement_descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("statement_descriptor")] +#endif + public AccountConfigurationMerchantStatementDescriptor StatementDescriptor { get; set; } + + /// + /// Publicly available contact information for sending support issues to. + /// + [JsonProperty("support")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("support")] +#endif + public AccountConfigurationMerchantSupport Support { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBacsDebitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBacsDebitPayments.cs new file mode 100644 index 0000000000..1f6297ba24 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBacsDebitPayments.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantBacsDebitPayments : StripeEntity + { + /// + /// Display name for Bacs Direct Debit payments. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + + /// + /// Service User Number (SUN) for Bacs Direct Debit payments. + /// + [JsonProperty("service_user_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_user_number")] +#endif + public string ServiceUserNumber { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBranding.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBranding.cs new file mode 100644 index 0000000000..f0c4ee86c4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantBranding.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantBranding : StripeEntity + { + /// + /// ID of a file + /// upload: An icon for the merchant. Must be square and at least 128px x 128px. + /// + [JsonProperty("icon")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("icon")] +#endif + public string Icon { get; set; } + + /// + /// ID of a file + /// upload: A logo for the merchant that will be used in Checkout instead of the icon + /// and without the merchant's name next to it if provided. Must be at least 128px x 128px. + /// + [JsonProperty("logo")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("logo")] +#endif + public string Logo { get; set; } + + /// + /// A CSS hex color value representing the primary branding color for the merchant. + /// + [JsonProperty("primary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_color")] +#endif + public string PrimaryColor { get; set; } + + /// + /// A CSS hex color value representing the secondary branding color for the merchant. + /// + [JsonProperty("secondary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_color")] +#endif + public string SecondaryColor { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs new file mode 100644 index 0000000000..8324f66def --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs @@ -0,0 +1,416 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilities : StripeEntity + { + /// + /// Allow the merchant to process ACH debit payments. + /// + [JsonProperty("ach_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ach_debit_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesAchDebitPayments AchDebitPayments { get; set; } + + /// + /// Allow the merchant to process ACSS debit payments. + /// + [JsonProperty("acss_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("acss_debit_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesAcssDebitPayments AcssDebitPayments { get; set; } + + /// + /// Allow the merchant to process Affirm payments. + /// + [JsonProperty("affirm_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("affirm_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesAffirmPayments AffirmPayments { get; set; } + + /// + /// Allow the merchant to process Afterpay/Clearpay payments. + /// + [JsonProperty("afterpay_clearpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("afterpay_clearpay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesAfterpayClearpayPayments AfterpayClearpayPayments { get; set; } + + /// + /// Allow the merchant to process Alma payments. + /// + [JsonProperty("alma_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("alma_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesAlmaPayments AlmaPayments { get; set; } + + /// + /// Allow the merchant to process Amazon Pay payments. + /// + [JsonProperty("amazon_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amazon_pay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesAmazonPayPayments AmazonPayPayments { get; set; } + + /// + /// Allow the merchant to process Australian BECS Direct Debit payments. + /// + [JsonProperty("au_becs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("au_becs_debit_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesAuBecsDebitPayments AuBecsDebitPayments { get; set; } + + /// + /// Allow the merchant to process BACS Direct Debit payments. + /// + [JsonProperty("bacs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bacs_debit_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesBacsDebitPayments BacsDebitPayments { get; set; } + + /// + /// Allow the merchant to process Bancontact payments. + /// + [JsonProperty("bancontact_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bancontact_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesBancontactPayments BancontactPayments { get; set; } + + /// + /// Allow the merchant to process BLIK payments. + /// + [JsonProperty("blik_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("blik_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesBlikPayments BlikPayments { get; set; } + + /// + /// Allow the merchant to process Boleto payments. + /// + [JsonProperty("boleto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("boleto_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesBoletoPayments BoletoPayments { get; set; } + + /// + /// Allow the merchant to collect card payments. + /// + [JsonProperty("card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesCardPayments CardPayments { get; set; } + + /// + /// Allow the merchant to process Cartes Bancaires payments. + /// + [JsonProperty("cartes_bancaires_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cartes_bancaires_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesCartesBancairesPayments CartesBancairesPayments { get; set; } + + /// + /// Allow the merchant to process Cash App payments. + /// + [JsonProperty("cashapp_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cashapp_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesCashappPayments CashappPayments { get; set; } + + /// + /// Allow the merchant to process EPS payments. + /// + [JsonProperty("eps_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("eps_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesEpsPayments EpsPayments { get; set; } + + /// + /// Allow the merchant to process FPX payments. + /// + [JsonProperty("fpx_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fpx_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesFpxPayments FpxPayments { get; set; } + + /// + /// Allow the merchant to process UK bank transfer payments. + /// + [JsonProperty("gb_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("gb_bank_transfer_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesGbBankTransferPayments GbBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process GrabPay payments. + /// + [JsonProperty("grabpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("grabpay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesGrabpayPayments GrabpayPayments { get; set; } + + /// + /// Allow the merchant to process iDEAL payments. + /// + [JsonProperty("ideal_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ideal_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesIdealPayments IdealPayments { get; set; } + + /// + /// Allow the merchant to process JCB card payments. + /// + [JsonProperty("jcb_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jcb_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesJcbPayments JcbPayments { get; set; } + + /// + /// Allow the merchant to process Japanese bank transfer payments. + /// + [JsonProperty("jp_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jp_bank_transfer_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesJpBankTransferPayments JpBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Kakao Pay payments. + /// + [JsonProperty("kakao_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kakao_pay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesKakaoPayPayments KakaoPayPayments { get; set; } + + /// + /// Allow the merchant to process Klarna payments. + /// + [JsonProperty("klarna_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("klarna_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesKlarnaPayments KlarnaPayments { get; set; } + + /// + /// Allow the merchant to process Konbini convenience store payments. + /// + [JsonProperty("konbini_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("konbini_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesKonbiniPayments KonbiniPayments { get; set; } + + /// + /// Allow the merchant to process Korean card payments. + /// + [JsonProperty("kr_card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kr_card_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesKrCardPayments KrCardPayments { get; set; } + + /// + /// Allow the merchant to process Link payments. + /// + [JsonProperty("link_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("link_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesLinkPayments LinkPayments { get; set; } + + /// + /// Allow the merchant to process MobilePay payments. + /// + [JsonProperty("mobilepay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mobilepay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesMobilepayPayments MobilepayPayments { get; set; } + + /// + /// Allow the merchant to process Multibanco payments. + /// + [JsonProperty("multibanco_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("multibanco_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesMultibancoPayments MultibancoPayments { get; set; } + + /// + /// Allow the merchant to process Mexican bank transfer payments. + /// + [JsonProperty("mx_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mx_bank_transfer_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesMxBankTransferPayments MxBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Naver Pay payments. + /// + [JsonProperty("naver_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("naver_pay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesNaverPayPayments NaverPayPayments { get; set; } + + /// + /// Allow the merchant to process OXXO payments. + /// + [JsonProperty("oxxo_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("oxxo_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesOxxoPayments OxxoPayments { get; set; } + + /// + /// Allow the merchant to process Przelewy24 (P24) payments. + /// + [JsonProperty("p24_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("p24_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesP24Payments P24Payments { get; set; } + + /// + /// Allow the merchant to process Pay by Bank payments. + /// + [JsonProperty("pay_by_bank_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_by_bank_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesPayByBankPayments PayByBankPayments { get; set; } + + /// + /// Allow the merchant to process PAYCO payments. + /// + [JsonProperty("payco_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payco_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesPaycoPayments PaycoPayments { get; set; } + + /// + /// Allow the merchant to process PayNow payments. + /// + [JsonProperty("paynow_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("paynow_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesPaynowPayments PaynowPayments { get; set; } + + /// + /// Allow the merchant to process PromptPay payments. + /// + [JsonProperty("promptpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("promptpay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesPromptpayPayments PromptpayPayments { get; set; } + + /// + /// Allow the merchant to process Revolut Pay payments. + /// + [JsonProperty("revolut_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("revolut_pay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesRevolutPayPayments RevolutPayPayments { get; set; } + + /// + /// Allow the merchant to process Samsung Pay payments. + /// + [JsonProperty("samsung_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("samsung_pay_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesSamsungPayPayments SamsungPayPayments { get; set; } + + /// + /// Allow the merchant to process SEPA bank transfer payments. + /// + [JsonProperty("sepa_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sepa_bank_transfer_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesSepaBankTransferPayments SepaBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process SEPA Direct Debit payments. + /// + [JsonProperty("sepa_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sepa_debit_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesSepaDebitPayments SepaDebitPayments { get; set; } + + /// + /// Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). + /// + [JsonProperty("stripe_balance")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_balance")] +#endif + public AccountConfigurationMerchantCapabilitiesStripeBalance StripeBalance { get; set; } + + /// + /// Allow the merchant to process Swish payments. + /// + [JsonProperty("swish_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("swish_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesSwishPayments SwishPayments { get; set; } + + /// + /// Allow the merchant to process TWINT payments. + /// + [JsonProperty("twint_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("twint_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesTwintPayments TwintPayments { get; set; } + + /// + /// Allow the merchant to process US bank transfer payments. + /// + [JsonProperty("us_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("us_bank_transfer_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesUsBankTransferPayments UsBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Zip payments. + /// + [JsonProperty("zip_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("zip_payments")] +#endif + public AccountConfigurationMerchantCapabilitiesZipPayments ZipPayments { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPayments.cs new file mode 100644 index 0000000000..427e6f4e37 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAchDebitPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs new file mode 100644 index 0000000000..dee58fa41e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPayments.cs new file mode 100644 index 0000000000..acbc2dddc2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAcssDebitPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs new file mode 100644 index 0000000000..2babc6b7cb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPayments.cs new file mode 100644 index 0000000000..eaa86c1fd9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAffirmPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs new file mode 100644 index 0000000000..ce269e78a5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPayments.cs new file mode 100644 index 0000000000..1e276f5cf6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAfterpayClearpayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..6f6834d933 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPayments.cs new file mode 100644 index 0000000000..a3f7b2906a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAlmaPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs new file mode 100644 index 0000000000..ab23aef043 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPayments.cs new file mode 100644 index 0000000000..8474ac4f5f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAmazonPayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..010840317b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPayments.cs new file mode 100644 index 0000000000..c8fe769a3c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAuBecsDebitPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs new file mode 100644 index 0000000000..f3cb1a3ad2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPayments.cs new file mode 100644 index 0000000000..b24c9de169 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBacsDebitPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs new file mode 100644 index 0000000000..3a9813efeb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPayments.cs new file mode 100644 index 0000000000..0204a798fe --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBancontactPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs new file mode 100644 index 0000000000..5aa11fb1e7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPayments.cs new file mode 100644 index 0000000000..c4c16d4cff --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBlikPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs new file mode 100644 index 0000000000..51f5823640 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPayments.cs new file mode 100644 index 0000000000..48c6d8598b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBoletoPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs new file mode 100644 index 0000000000..59a7b8cd9d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPayments.cs new file mode 100644 index 0000000000..61a7e108bf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesCardPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs new file mode 100644 index 0000000000..7143fb3734 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPayments.cs new file mode 100644 index 0000000000..c4bd9521ea --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesCartesBancairesPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs new file mode 100644 index 0000000000..8a9b4e3d03 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPayments.cs new file mode 100644 index 0000000000..ec79753f2a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesCashappPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs new file mode 100644 index 0000000000..e65f75ed51 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPayments.cs new file mode 100644 index 0000000000..500f384416 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesEpsPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs new file mode 100644 index 0000000000..b75d65eda2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPayments.cs new file mode 100644 index 0000000000..3177ae5497 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesFpxPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs new file mode 100644 index 0000000000..5e0c0e674a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPayments.cs new file mode 100644 index 0000000000..91feb685b5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesGbBankTransferPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs new file mode 100644 index 0000000000..f01c6f1cf7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPayments.cs new file mode 100644 index 0000000000..d05f3ffd37 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesGrabpayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..4aba03837d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPayments.cs new file mode 100644 index 0000000000..a542447c13 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesIdealPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs new file mode 100644 index 0000000000..51b2c4b174 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPayments.cs new file mode 100644 index 0000000000..9502224795 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesJcbPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs new file mode 100644 index 0000000000..9f95f267d5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPayments.cs new file mode 100644 index 0000000000..ea7473a56a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesJpBankTransferPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs new file mode 100644 index 0000000000..9d4a826229 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPayments.cs new file mode 100644 index 0000000000..c375e19d8b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKakaoPayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..7e07d0e11e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPayments.cs new file mode 100644 index 0000000000..f7f132ab88 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKlarnaPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs new file mode 100644 index 0000000000..f12da16250 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPayments.cs new file mode 100644 index 0000000000..13ef5141c3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKonbiniPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs new file mode 100644 index 0000000000..42b526a2a5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPayments.cs new file mode 100644 index 0000000000..c8638f5d76 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKrCardPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs new file mode 100644 index 0000000000..7b62b4df4b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPayments.cs new file mode 100644 index 0000000000..b26d7e2572 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesLinkPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs new file mode 100644 index 0000000000..b7db2b58f1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPayments.cs new file mode 100644 index 0000000000..ec8a0a4f4f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesMobilepayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..f1d857bede --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPayments.cs new file mode 100644 index 0000000000..daa059aed1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesMultibancoPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs new file mode 100644 index 0000000000..d315e435ec --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPayments.cs new file mode 100644 index 0000000000..fa625ad22d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesMxBankTransferPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs new file mode 100644 index 0000000000..a718d4939b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPayments.cs new file mode 100644 index 0000000000..80a3e544ce --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesNaverPayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..3775df9a3b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPayments.cs new file mode 100644 index 0000000000..8cc5456acf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesOxxoPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs new file mode 100644 index 0000000000..33f63fd8b5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24Payments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24Payments.cs new file mode 100644 index 0000000000..e2fb68be25 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24Payments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesP24Payments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs new file mode 100644 index 0000000000..579c759efc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPayments.cs new file mode 100644 index 0000000000..cf59cf720c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPayByBankPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs new file mode 100644 index 0000000000..f5b7bd14c2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPayments.cs new file mode 100644 index 0000000000..5054fd1941 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPaycoPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs new file mode 100644 index 0000000000..96017ea510 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPayments.cs new file mode 100644 index 0000000000..5795e9d4b2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPaynowPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs new file mode 100644 index 0000000000..7bdd71a9d7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPayments.cs new file mode 100644 index 0000000000..7098a295d9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPromptpayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..64a4155c89 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPayments.cs new file mode 100644 index 0000000000..e14793511b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesRevolutPayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..2b3a7cc0c5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPayments.cs new file mode 100644 index 0000000000..70daa0a3e3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSamsungPayPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs new file mode 100644 index 0000000000..50efdae9d0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPayments.cs new file mode 100644 index 0000000000..6b275e6946 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSepaBankTransferPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs new file mode 100644 index 0000000000..2b634ca5d5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPayments.cs new file mode 100644 index 0000000000..9dae4dfe4c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSepaDebitPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs new file mode 100644 index 0000000000..7710cd3b1a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalance.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalance.cs new file mode 100644 index 0000000000..31c5f20cdf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalance.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesStripeBalance : StripeEntity + { + /// + /// Enables this Account to complete payouts from their Stripe Balance (/v1/balance). + /// + [JsonProperty("payouts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payouts")] +#endif + public AccountConfigurationMerchantCapabilitiesStripeBalancePayouts Payouts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayouts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayouts.cs new file mode 100644 index 0000000000..4fe4d59515 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayouts.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesStripeBalancePayouts : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs new file mode 100644 index 0000000000..d1572062d3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPayments.cs new file mode 100644 index 0000000000..e7011e638f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSwishPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs new file mode 100644 index 0000000000..490692aaec --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPayments.cs new file mode 100644 index 0000000000..31fd5671ec --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesTwintPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs new file mode 100644 index 0000000000..d3ee73d8db --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPayments.cs new file mode 100644 index 0000000000..ede3ae4d06 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesUsBankTransferPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs new file mode 100644 index 0000000000..c8173bd65f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPayments.cs new file mode 100644 index 0000000000..0cc104c17f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPayments.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesZipPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs new file mode 100644 index 0000000000..a01d0ee1fb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPayments.cs new file mode 100644 index 0000000000..d9322e633d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPayments.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCardPayments : StripeEntity + { + /// + /// Automatically declines certain charge types regardless of whether the card issuer + /// accepted or declined the charge. + /// + [JsonProperty("decline_on")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("decline_on")] +#endif + public AccountConfigurationMerchantCardPaymentsDeclineOn DeclineOn { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs new file mode 100644 index 0000000000..c6a655e8eb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantCardPaymentsDeclineOn : StripeEntity + { + /// + /// Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This + /// setting only applies when a ZIP or postal code is provided and they fail bank + /// verification. + /// + [JsonProperty("avs_failure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("avs_failure")] +#endif + public bool? AvsFailure { get; set; } + + /// + /// Whether Stripe automatically declines charges with an incorrect CVC. This setting only + /// applies when a CVC is provided and it fails bank verification. + /// + [JsonProperty("cvc_failure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cvc_failure")] +#endif + public bool? CvcFailure { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPayments.cs new file mode 100644 index 0000000000..e60072fc74 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPayments.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantKonbiniPayments : StripeEntity + { + /// + /// Support for Konbini payments. + /// + [JsonProperty("support")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("support")] +#endif + public AccountConfigurationMerchantKonbiniPaymentsSupport Support { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupport.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupport.cs new file mode 100644 index 0000000000..4f5018c71a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupport.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantKonbiniPaymentsSupport : StripeEntity + { + /// + /// Support email address for Konbini payments. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// Support hours for Konbini payments. + /// + [JsonProperty("hours")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hours")] +#endif + public AccountConfigurationMerchantKonbiniPaymentsSupportHours Hours { get; set; } + + /// + /// Support phone number for Konbini payments. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupportHours.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupportHours.cs new file mode 100644 index 0000000000..7e9f45605e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantKonbiniPaymentsSupportHours.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantKonbiniPaymentsSupportHours : StripeEntity + { + /// + /// Support hours end time (JST time of day) for in HH:MM format. + /// + [JsonProperty("end_time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_time")] +#endif + public string EndTime { get; set; } + + /// + /// Support hours start time (JST time of day) for in HH:MM format. + /// + [JsonProperty("start_time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_time")] +#endif + public string StartTime { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptor.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptor.cs new file mode 100644 index 0000000000..530d1513d8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptor.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantScriptStatementDescriptor : StripeEntity + { + /// + /// The Kana variation of statement_descriptor used for charges in Japan. Japanese statement + /// descriptors have special + /// requirements. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountConfigurationMerchantScriptStatementDescriptorKana Kana { get; set; } + + /// + /// The Kanji variation of statement_descriptor used for charges in Japan. Japanese + /// statement descriptors have special + /// requirements. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountConfigurationMerchantScriptStatementDescriptorKanji Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKana.cs new file mode 100644 index 0000000000..30c7bf0011 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKana.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantScriptStatementDescriptorKana : StripeEntity + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKanji.cs new file mode 100644 index 0000000000..7ee5621eef --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantScriptStatementDescriptorKanji.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantScriptStatementDescriptorKanji : StripeEntity + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSepaDebitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSepaDebitPayments.cs new file mode 100644 index 0000000000..05dca33a7a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSepaDebitPayments.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantSepaDebitPayments : StripeEntity + { + /// + /// Creditor ID for SEPA Direct Debit payments. + /// + [JsonProperty("creditor_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("creditor_id")] +#endif + public string CreditorId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantStatementDescriptor.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantStatementDescriptor.cs new file mode 100644 index 0000000000..5f3ef0b372 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantStatementDescriptor.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantStatementDescriptor : StripeEntity + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupport.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupport.cs new file mode 100644 index 0000000000..17cd887f08 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupport.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantSupport : StripeEntity + { + /// + /// A publicly available mailing address for sending support issues to. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AccountConfigurationMerchantSupportAddress Address { get; set; } + + /// + /// A publicly available email address for sending support issues to. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// A publicly available phone number to call with support issues. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// A publicly available website for handling support issues. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs new file mode 100644 index 0000000000..c51f4526c8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantSupportAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipient.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipient.cs new file mode 100644 index 0000000000..8dcc0e0db8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipient.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationRecipient : StripeEntity + { + /// + /// Indicates whether the recipient configuration is active. You can deactivate or + /// reactivate the recipient configuration by updating this property. Deactivating the + /// configuration by setting this value to false unrequest all capabilities within the + /// configuration. It will not delete any of the configuration's other properties. + /// + [JsonProperty("applied")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied")] +#endif + public bool Applied { get; set; } + + /// + /// Capabilities that have been requested on the Recipient Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountConfigurationRecipientCapabilities Capabilities { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilities.cs new file mode 100644 index 0000000000..cf6f01bcb0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilities.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationRecipientCapabilities : StripeEntity + { + /// + /// Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + /// + [JsonProperty("stripe_balance")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_balance")] +#endif + public AccountConfigurationRecipientCapabilitiesStripeBalance StripeBalance { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalance.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalance.cs new file mode 100644 index 0000000000..56854bee09 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalance.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationRecipientCapabilitiesStripeBalance : StripeEntity + { + /// + /// Enables this Account to complete payouts from their Stripe Balance (/v1/balance). + /// + [JsonProperty("payouts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payouts")] +#endif + public AccountConfigurationRecipientCapabilitiesStripeBalancePayouts Payouts { get; set; } + + /// + /// Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + /// + [JsonProperty("stripe_transfers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_transfers")] +#endif + public AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers StripeTransfers { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayouts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayouts.cs new file mode 100644 index 0000000000..6cc7f417e4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayouts.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationRecipientCapabilitiesStripeBalancePayouts : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs new file mode 100644 index 0000000000..30009db1e0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers.cs new file mode 100644 index 0000000000..f625bd0057 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs new file mode 100644 index 0000000000..5e87525e0c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs new file mode 100644 index 0000000000..e7de78d1e4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountDefaults : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// The Account's preferred locales (languages), ordered by preference. + /// One of: ar-SA, bg, bg-BG, cs, cs-CZ, da, + /// da-DK, de, de-DE, el, el-GR, en, en-AU, + /// en-CA, en-GB, en-IE, en-IN, en-NZ, en-SG, + /// en-US, es, es-419, es-ES, et, et-EE, + /// fi, fil, fil-PH, fi-FI, fr, fr-CA, + /// fr-FR, he-IL, hr, hr-HR, hu, hu-HU, id, + /// id-ID, it, it-IT, ja, ja-JP, ko, ko-KR, + /// lt, lt-LT, lv, lv-LV, ms, ms-MY, mt, + /// mt-MT, nb, nb-NO, nl, nl-NL, pl, pl-PL, + /// pt, pt-BR, pt-PT, ro, ro-RO, ru, ru-RU, + /// sk, sk-SK, sl, sl-SI, sv, sv-SE, th, + /// th-TH, tr, tr-TR, vi, vi-VN, zh, + /// zh-Hans, zh-Hant-HK, zh-Hant-TW, zh-HK, or zh-TW. + /// + [JsonProperty("locales")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("locales")] +#endif + public List Locales { get; set; } + + /// + /// Account profile information. + /// + [JsonProperty("profile")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("profile")] +#endif + public AccountDefaultsProfile Profile { get; set; } + + /// + /// Default responsibilities held by either Stripe or the platform. + /// + [JsonProperty("responsibilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("responsibilities")] +#endif + public AccountDefaultsResponsibilities Responsibilities { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsProfile.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsProfile.cs new file mode 100644 index 0000000000..bc1e9980eb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsProfile.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountDefaultsProfile : StripeEntity + { + /// + /// The business's publicly-available website. + /// + [JsonProperty("business_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("business_url")] +#endif + public string BusinessUrl { get; set; } + + /// + /// The customer-facing business name. + /// + [JsonProperty("doing_business_as")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("doing_business_as")] +#endif + public string DoingBusinessAs { get; set; } + + /// + /// Internal-only description of the product sold or service provided by the business. It's + /// used by Stripe for risk and underwriting purposes. + /// + [JsonProperty("product_description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product_description")] +#endif + public string ProductDescription { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs new file mode 100644 index 0000000000..0658152c00 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs @@ -0,0 +1,43 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountDefaultsResponsibilities : StripeEntity + { + /// + /// Indicates whether the platform or connected account is responsible for paying Stripe + /// fees for pricing-control-eligible products. + /// One of: application, application_custom, application_express, or + /// stripe. + /// + [JsonProperty("fees_collector")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fees_collector")] +#endif + public string FeesCollector { get; set; } + + /// + /// A value indicating responsibility for collecting requirements on this account. + /// One of: application, or stripe. + /// + [JsonProperty("losses_collector")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("losses_collector")] +#endif + public string LossesCollector { get; set; } + + /// + /// A value indicating responsibility for collecting requirements on this account. + /// One of: application, or stripe. + /// + [JsonProperty("requirements_collector")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requirements_collector")] +#endif + public string RequirementsCollector { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirements.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirements.cs new file mode 100644 index 0000000000..8186d3856b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirements.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirements : StripeEntity + { + /// + /// A list of requirements for the Account. + /// + [JsonProperty("entries")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("entries")] +#endif + public List Entries { get; set; } + + /// + /// The time at which the future requirements become effective. + /// + [JsonProperty("minimum_transition_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_transition_date")] +#endif + public DateTime? MinimumTransitionDate { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// An object containing an overview of requirements for the Account. + /// + [JsonProperty("summary")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("summary")] +#endif + public AccountFutureRequirementsSummary Summary { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntry.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntry.cs new file mode 100644 index 0000000000..f82fca2476 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntry.cs @@ -0,0 +1,79 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntry : StripeEntity + { + /// + /// Indicates whether the platform or Stripe is currently responsible for taking action on + /// the requirement. Value can be user or stripe. + /// One of: stripe, or user. + /// + [JsonProperty("awaiting_action_from")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("awaiting_action_from")] +#endif + public string AwaitingActionFrom { get; set; } + + /// + /// Machine-readable string describing the requirement. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// Descriptions of why the requirement must be collected, or why the collected information + /// isn't satisfactory to Stripe. + /// + [JsonProperty("errors")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("errors")] +#endif + public List Errors { get; set; } + + /// + /// A hash describing the impact of not collecting the requirement, or Stripe not being able + /// to verify the collected information. + /// + [JsonProperty("impact")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("impact")] +#endif + public AccountFutureRequirementsEntryImpact Impact { get; set; } + + /// + /// The soonest point when the account will be impacted by not providing the requirement. + /// + [JsonProperty("minimum_deadline")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_deadline")] +#endif + public AccountFutureRequirementsEntryMinimumDeadline MinimumDeadline { get; set; } + + /// + /// A reference to the location of the requirement. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public AccountFutureRequirementsEntryReference Reference { get; set; } + + /// + /// A list of reasons why Stripe is collecting the requirement. + /// + [JsonProperty("requested_reasons")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested_reasons")] +#endif + public List RequestedReasons { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryError.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryError.cs new file mode 100644 index 0000000000..406fbca988 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryError.cs @@ -0,0 +1,93 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntryError : StripeEntity + { + /// + /// Machine-readable code describing the error. + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_url_web_presence_detected, + /// invalid_value_other, unresolvable_ip_address, + /// unresolvable_postal_code, verification_directors_mismatch, + /// verification_document_address_mismatch, + /// verification_document_address_missing, verification_document_corrupt, + /// verification_document_country_not_supported, + /// verification_document_directors_mismatch, + /// verification_document_dob_mismatch, verification_document_duplicate_type, + /// verification_document_expired, verification_document_failed_copy, + /// verification_document_failed_greyscale, + /// verification_document_failed_other, + /// verification_document_failed_test_mode, verification_document_fraudulent, + /// verification_document_id_number_mismatch, + /// verification_document_id_number_missing, verification_document_incomplete, + /// verification_document_invalid, + /// verification_document_issue_or_expiry_date_missing, + /// verification_document_manipulated, verification_document_missing_back, + /// verification_document_missing_front, verification_document_name_mismatch, + /// verification_document_name_missing, + /// verification_document_nationality_mismatch, + /// verification_document_not_readable, verification_document_not_signed, + /// verification_document_not_uploaded, verification_document_photo_mismatch, + /// verification_document_too_large, verification_document_type_not_supported, + /// verification_extraneous_directors, verification_failed_address_match, + /// verification_failed_business_iec_number, + /// verification_failed_document_match, verification_failed_id_number_match, + /// verification_failed_keyed_identity, verification_failed_keyed_match, + /// verification_failed_name_match, verification_failed_other, + /// verification_failed_representative_authority, + /// verification_failed_residential_address, verification_failed_tax_id_match, + /// verification_failed_tax_id_not_issued, verification_missing_directors, + /// verification_missing_executives, verification_missing_owners, + /// verification_requires_additional_memorandum_of_associations, + /// verification_requires_additional_proof_of_registration, + /// verification_selfie_document_missing_photo, + /// verification_selfie_face_mismatch, verification_selfie_manipulated, + /// verification_selfie_unverified_other, verification_supportability, or + /// verification_token_stale. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Human-readable description of the error. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpact.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpact.cs new file mode 100644 index 0000000000..7b6a6a5c1e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpact.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntryImpact : StripeEntity + { + /// + /// The Capabilities that will be restricted if the requirement is not collected and + /// satisfactory to Stripe. + /// + [JsonProperty("restricts_capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("restricts_capabilities")] +#endif + public List RestrictsCapabilities { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs new file mode 100644 index 0000000000..3346865eab --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntryImpactRestrictsCapability : StripeEntity + { + /// + /// The name of the Capability which will be restricted. + /// One of: ach_debit_payments, acss_debit_payments, affirm_payments, + /// afterpay_clearpay_payments, alma_payments, amazon_pay_payments, + /// automatic_indirect_tax, au_becs_debit_payments, + /// bacs_debit_payments, bancontact_payments, bank_accounts.local, + /// bank_accounts.wire, blik_payments, boleto_payments, cards, + /// card_payments, cartes_bancaires_payments, cashapp_payments, + /// eps_payments, fpx_payments, gb_bank_transfer_payments, + /// grabpay_payments, ideal_payments, jcb_payments, + /// jp_bank_transfer_payments, kakao_pay_payments, klarna_payments, + /// konbini_payments, kr_card_payments, link_payments, + /// mobilepay_payments, multibanco_payments, mx_bank_transfer_payments, + /// naver_pay_payments, oxxo_payments, p24_payments, + /// payco_payments, paynow_payments, pay_by_bank_payments, + /// promptpay_payments, revolut_pay_payments, samsung_pay_payments, + /// sepa_bank_transfer_payments, sepa_debit_payments, + /// stripe_balance.payouts, stripe_balance.stripe_transfers, + /// swish_payments, twint_payments, us_bank_transfer_payments, or + /// zip_payments. + /// + [JsonProperty("capability")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capability")] +#endif + public string Capability { get; set; } + + /// + /// The configuration which specifies the Capability which will be restricted. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("configuration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configuration")] +#endif + public string Configuration { get; set; } + + /// + /// Details about when in the account lifecycle the requirement must be collected by the + /// avoid the Capability restriction. + /// + [JsonProperty("deadline")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("deadline")] +#endif + public AccountFutureRequirementsEntryImpactRestrictsCapabilityDeadline Deadline { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapabilityDeadline.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapabilityDeadline.cs new file mode 100644 index 0000000000..893584c5de --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapabilityDeadline.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntryImpactRestrictsCapabilityDeadline : StripeEntity + { + /// + /// The current status of the requirement's impact. + /// One of: currently_due, eventually_due, or past_due. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryMinimumDeadline.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryMinimumDeadline.cs new file mode 100644 index 0000000000..085058ff47 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryMinimumDeadline.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntryMinimumDeadline : StripeEntity + { + /// + /// The current status of the requirement's impact. + /// One of: currently_due, eventually_due, or past_due. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryReference.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryReference.cs new file mode 100644 index 0000000000..88b4c43172 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryReference.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntryReference : StripeEntity + { + /// + /// If inquiry is the type, the inquiry token. + /// + [JsonProperty("inquiry")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("inquiry")] +#endif + public string Inquiry { get; set; } + + /// + /// If resource is the type, the resource token. + /// + [JsonProperty("resource")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resource")] +#endif + public string Resource { get; set; } + + /// + /// The type of the reference. If the type is "inquiry", the inquiry token can be found in + /// the "inquiry" field. Otherwise the type is an API resource, the token for which can be + /// found in the "resource" field. + /// One of: inquiry, payment_method, or person. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryRequestedReason.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryRequestedReason.cs new file mode 100644 index 0000000000..5319f35f97 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryRequestedReason.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsEntryRequestedReason : StripeEntity + { + /// + /// Machine-readable description of Stripe's reason for collecting the requirement. + /// One of: routine_onboarding, or routine_verification. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummary.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummary.cs new file mode 100644 index 0000000000..20756b6027 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummary.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsSummary : StripeEntity + { + /// + /// The soonest date and time a requirement on the Account will become past due. + /// Represented as a RFC 3339 date & time UTC value in millisecond precision, for + /// example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("minimum_deadline")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_deadline")] +#endif + public AccountFutureRequirementsSummaryMinimumDeadline MinimumDeadline { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummaryMinimumDeadline.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummaryMinimumDeadline.cs new file mode 100644 index 0000000000..3da4d4782f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsSummaryMinimumDeadline.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountFutureRequirementsSummaryMinimumDeadline : StripeEntity + { + /// + /// The current strictest status of all requirements on the Account. + /// One of: currently_due, eventually_due, or past_due. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// The soonest RFC3339 date & time UTC value a requirement can impact the Account. + /// + [JsonProperty("time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("time")] +#endif + public DateTime? Time { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs new file mode 100644 index 0000000000..be70f24088 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentity : StripeEntity + { + /// + /// Attestations from the identity's key people, e.g. owners, executives, directors, + /// representatives. + /// + [JsonProperty("attestations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attestations")] +#endif + public AccountIdentityAttestations Attestations { get; set; } + + /// + /// Information about the company or business. + /// + [JsonProperty("business_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("business_details")] +#endif + public AccountIdentityBusinessDetails BusinessDetails { get; set; } + + /// + /// The country in which the account holder resides, or in which the business is legally + /// established. This should be an ISO 3166-1 alpha-2 country + /// code. + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// The entity type. + /// One of: company, government_entity, individual, or + /// non_profit. + /// + [JsonProperty("entity_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("entity_type")] +#endif + public string EntityType { get; set; } + + /// + /// Information about the individual represented by the Account. This property is + /// null unless entity_type is set to individual. + /// + [JsonProperty("individual")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("individual")] +#endif + public AccountIdentityIndividual Individual { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestations.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestations.cs new file mode 100644 index 0000000000..e79e0b93ed --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestations.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestations : StripeEntity + { + /// + /// This hash is used to attest that the directors information provided to Stripe is both + /// current and correct. + /// + [JsonProperty("directorship_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directorship_declaration")] +#endif + public AccountIdentityAttestationsDirectorshipDeclaration DirectorshipDeclaration { get; set; } + + /// + /// This hash is used to attest that the beneficial owner information provided to Stripe is + /// both current and correct. + /// + [JsonProperty("ownership_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_declaration")] +#endif + public AccountIdentityAttestationsOwnershipDeclaration OwnershipDeclaration { get; set; } + + /// + /// Attestation that all Persons with a specific Relationship value have been provided. + /// + [JsonProperty("persons_provided")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("persons_provided")] +#endif + public AccountIdentityAttestationsPersonsProvided PersonsProvided { get; set; } + + /// + /// This hash is used to attest that the representative is authorized to act as the + /// representative of their legal entity. + /// + [JsonProperty("representative_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative_declaration")] +#endif + public AccountIdentityAttestationsRepresentativeDeclaration RepresentativeDeclaration { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("terms_of_service")] +#endif + public AccountIdentityAttestationsTermsOfService TermsOfService { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs new file mode 100644 index 0000000000..a8644fcf31 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsDirectorshipDeclaration : StripeEntity + { + /// + /// The time marking when the director attestation was made. Represented as a RFC 3339 date + /// & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the director attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the director attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs new file mode 100644 index 0000000000..3b9a049e16 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsOwnershipDeclaration : StripeEntity + { + /// + /// The time marking when the beneficial owner attestation was made. Represented as a RFC + /// 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the beneficial owner attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the beneficial owner attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs new file mode 100644 index 0000000000..2bb260c843 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsPersonsProvided : StripeEntity + { + /// + /// Whether the company’s directors have been provided. Set this Boolean to true after + /// creating all the company’s directors with the Persons API. + /// + [JsonProperty("directors")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directors")] +#endif + public bool? Directors { get; set; } + + /// + /// Whether the company’s executives have been provided. Set this Boolean to true after + /// creating all the company’s executives with the Persons API. + /// + [JsonProperty("executives")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executives")] +#endif + public bool? Executives { get; set; } + + /// + /// Whether the company’s owners have been provided. Set this Boolean to true after creating + /// all the company’s owners with the Persons API. + /// + [JsonProperty("owners")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owners")] +#endif + public bool? Owners { get; set; } + + /// + /// Reason for why the company is exempt from providing ownership information. + /// One of: qualified_entity_exceeds_ownership_threshold, or + /// qualifies_as_financial_institution. + /// + [JsonProperty("ownership_exemption_reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_exemption_reason")] +#endif + public string OwnershipExemptionReason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsRepresentativeDeclaration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsRepresentativeDeclaration.cs new file mode 100644 index 0000000000..9baf35a2a7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsRepresentativeDeclaration.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsRepresentativeDeclaration : StripeEntity + { + /// + /// The time marking when the representative attestation was made. Represented as a RFC 3339 + /// date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the representative attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the representative attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs new file mode 100644 index 0000000000..7424189279 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfService : StripeEntity + { + /// + /// Details on the Account's acceptance of the Stripe Services + /// Agreement. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public AccountIdentityAttestationsTermsOfServiceAccount Account { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs new file mode 100644 index 0000000000..2aac08f703 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfServiceAccount : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs new file mode 100644 index 0000000000..84d9fdf6ec --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs @@ -0,0 +1,124 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetails : StripeEntity + { + /// + /// The company’s primary address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AccountIdentityBusinessDetailsAddress Address { get; set; } + + /// + /// The business gross annual revenue for its preceding fiscal year. + /// + [JsonProperty("annual_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("annual_revenue")] +#endif + public AccountIdentityBusinessDetailsAnnualRevenue AnnualRevenue { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountIdentityBusinessDetailsDocuments Documents { get; set; } + + /// + /// Estimated maximum number of workers currently engaged by the business (including + /// employees, contractors, and vendors). + /// + [JsonProperty("estimated_worker_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("estimated_worker_count")] +#endif + public long? EstimatedWorkerCount { get; set; } + + /// + /// The provided ID numbers of a business entity. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil + /// and India. + /// + [JsonProperty("monthly_estimated_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_estimated_revenue")] +#endif + public AccountIdentityBusinessDetailsMonthlyEstimatedRevenue MonthlyEstimatedRevenue { get; set; } + + /// + /// The company’s phone number (used for verification). + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The business legal name. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + + /// + /// The business registration address of the business entity in non latin script. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountIdentityBusinessDetailsScriptAddresses ScriptAddresses { get; set; } + + /// + /// The business legal name in non latin script. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountIdentityBusinessDetailsScriptNames ScriptNames { get; set; } + + /// + /// The category identifying the legal structure of the business. + /// One of: cooperative, free_zone_establishment, free_zone_llc, + /// governmental_unit, government_instrumentality, + /// incorporated_association, incorporated_non_profit, + /// incorporated_partnership, limited_liability_partnership, llc, + /// multi_member_llc, private_company, private_corporation, + /// private_partnership, public_company, public_corporation, + /// public_listed_corporation, public_partnership, registered_charity, + /// single_member_llc, sole_establishment, sole_proprietorship, + /// tax_exempt_government_instrumentality, trust, + /// unincorporated_association, unincorporated_non_profit, or + /// unincorporated_partnership. + /// + [JsonProperty("structure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("structure")] +#endif + public string Structure { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs new file mode 100644 index 0000000000..9a4b500d33 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs new file mode 100644 index 0000000000..767dafdcb9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsAnnualRevenue : StripeEntity + { + /// + /// Annual revenue amount in minor currency units (for example, '123' for 1.23 USD). + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountIdentityBusinessDetailsAnnualRevenueAmount Amount { get; set; } + + /// + /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + /// the 31st of December, 2023. + /// + [JsonProperty("fiscal_year_end")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fiscal_year_end")] +#endif + public string FiscalYearEnd { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs new file mode 100644 index 0000000000..32d51ceaaf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsAnnualRevenueAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs new file mode 100644 index 0000000000..1b46230171 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs @@ -0,0 +1,106 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocuments : StripeEntity + { + /// + /// One or more documents that support the Bank account ownership verification requirement. + /// Must be a document associated with the account’s primary active bank account that + /// displays the last 4 digits of the account number, either a statement or a check. + /// + [JsonProperty("bank_account_ownership_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_account_ownership_verification")] +#endif + public AccountIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification BankAccountOwnershipVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s license to operate. + /// + [JsonProperty("company_license")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_license")] +#endif + public AccountIdentityBusinessDetailsDocumentsCompanyLicense CompanyLicense { get; set; } + + /// + /// One or more documents showing the company’s Memorandum of Association. + /// + [JsonProperty("company_memorandum_of_association")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_memorandum_of_association")] +#endif + public AccountIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation CompanyMemorandumOfAssociation { get; set; } + + /// + /// Certain countries only: One or more documents showing the ministerial decree legalizing + /// the company’s establishment. + /// + [JsonProperty("company_ministerial_decree")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_ministerial_decree")] +#endif + public AccountIdentityBusinessDetailsDocumentsCompanyMinisterialDecree CompanyMinisterialDecree { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s registration with the + /// appropriate local authorities. + /// + [JsonProperty("company_registration_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_registration_verification")] +#endif + public AccountIdentityBusinessDetailsDocumentsCompanyRegistrationVerification CompanyRegistrationVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s tax ID. + /// + [JsonProperty("company_tax_id_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_tax_id_verification")] +#endif + public AccountIdentityBusinessDetailsDocumentsCompanyTaxIdVerification CompanyTaxIdVerification { get; set; } + + /// + /// A document verifying the business. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountIdentityBusinessDetailsDocumentsPrimaryVerification PrimaryVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountIdentityBusinessDetailsDocumentsProofOfAddress ProofOfAddress { get; set; } + + /// + /// One or more documents showing the company’s proof of registration with the national + /// business registry. + /// + [JsonProperty("proof_of_registration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_registration")] +#endif + public AccountIdentityBusinessDetailsDocumentsProofOfRegistration ProofOfRegistration { get; set; } + + /// + /// One or more documents that demonstrate proof of ultimate beneficial ownership. + /// + [JsonProperty("proof_of_ultimate_beneficial_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_ultimate_beneficial_ownership")] +#endif + public AccountIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership ProofOfUltimateBeneficialOwnership { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification.cs new file mode 100644 index 0000000000..ebbb016817 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyLicense.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyLicense.cs new file mode 100644 index 0000000000..0f02812b35 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyLicense.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsCompanyLicense : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation.cs new file mode 100644 index 0000000000..c469a4a481 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMinisterialDecree.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMinisterialDecree.cs new file mode 100644 index 0000000000..524febcb88 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyMinisterialDecree.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsCompanyMinisterialDecree : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyRegistrationVerification.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyRegistrationVerification.cs new file mode 100644 index 0000000000..a1971a7afa --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyRegistrationVerification.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsCompanyRegistrationVerification : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyTaxIdVerification.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyTaxIdVerification.cs new file mode 100644 index 0000000000..d343d8c305 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsCompanyTaxIdVerification.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsCompanyTaxIdVerification : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerification.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerification.cs new file mode 100644 index 0000000000..931dcf7135 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerification.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsPrimaryVerification : StripeEntity + { + /// + /// The file upload + /// tokens for the front and back of the verification document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack.cs new file mode 100644 index 0000000000..b7e9befae4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack : StripeEntity + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfAddress.cs new file mode 100644 index 0000000000..5832073af6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfAddress.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsProofOfAddress : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfRegistration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfRegistration.cs new file mode 100644 index 0000000000..9826f9fb8f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfRegistration.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsProofOfRegistration : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership.cs new file mode 100644 index 0000000000..1868b1c026 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs new file mode 100644 index 0000000000..e17da42765 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsIdNumber : StripeEntity + { + /// + /// The registrar of the ID number (Only valid for DE ID number types). + /// + [JsonProperty("registrar")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registrar")] +#endif + public string Registrar { get; set; } + + /// + /// Open Enum. The ID number type of a business entity. + /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, + /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, + /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, hr_mbs, + /// hr_oib, hr_vat, hu_cjs, hu_tin, hu_vat, + /// ie_crn, ie_trn, ie_vat, it_rea, it_vat, jp_cn, + /// kz_bin, li_uid, lt_ccrn, lt_vat, lu_nif, + /// lu_rcs, lu_vat, lv_urn, lv_vat, mt_crn, + /// mt_tin, mt_vat, mx_rfc, my_brn, my_coid, + /// my_itn, my_sst, mz_nuit, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pe_ruc, + /// pk_ntn, pl_nip, pl_regon, pl_vat, pt_vat, + /// ro_cui, ro_orc, ro_vat, sa_crn, sa_tin, + /// se_orgnr, se_vat, sg_uen, si_msp, si_tin, + /// si_vat, sk_dic, sk_ico, sk_vat, th_crn, + /// th_prn, th_tin, or us_ein. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs new file mode 100644 index 0000000000..50684d17d2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenue : StripeEntity + { + /// + /// Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 + /// USD). + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount Amount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs new file mode 100644 index 0000000000..18c61f4bb4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddresses.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddresses.cs new file mode 100644 index 0000000000..1322e525bc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddresses.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsScriptAddresses : StripeEntity + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountIdentityBusinessDetailsScriptAddressesKana Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountIdentityBusinessDetailsScriptAddressesKanji Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs new file mode 100644 index 0000000000..2343abb70e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsScriptAddressesKana : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs new file mode 100644 index 0000000000..6be1fe4d3c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsScriptAddressesKanji : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNames.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNames.cs new file mode 100644 index 0000000000..0d9e1260fc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNames.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsScriptNames : StripeEntity + { + /// + /// Kana name. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountIdentityBusinessDetailsScriptNamesKana Kana { get; set; } + + /// + /// Kanji name. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountIdentityBusinessDetailsScriptNamesKanji Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKana.cs new file mode 100644 index 0000000000..2b55786fe7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKana.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsScriptNamesKana : StripeEntity + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKanji.cs new file mode 100644 index 0000000000..e15afb1e57 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptNamesKanji.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsScriptNamesKanji : StripeEntity + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs new file mode 100644 index 0000000000..ff9d7aedd5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs @@ -0,0 +1,227 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividual : StripeEntity, IHasId, IHasMetadata, IHasObject + { + /// + /// The account ID which the individual belongs to. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// Additional addresses associated with the individual. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the individual. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// Terms of service acceptances. + /// + [JsonProperty("additional_terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_terms_of_service")] +#endif + public AccountIdentityIndividualAdditionalTermsOfService AdditionalTermsOfService { get; set; } + + /// + /// The individual's residential address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AccountIdentityIndividualAddress Address { get; set; } + + /// + /// Time at which the object was created. Represented as a RFC 3339 date & time UTC + /// value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("created")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The individual's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public AccountIdentityIndividualDateOfBirth DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountIdentityIndividualDocuments Documents { get; set; } + + /// + /// The individual's email address. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The individual's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// Unique identifier for the object. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the individual. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The individual's gender (International regulations require either "male” or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// The individual's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// Indicates if the individual or any of their representatives, family members, or other + /// closely related persons, declares that they hold or have held an important public job or + /// function, in any jurisdiction. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this individual has with the Account's identity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public AccountIdentityIndividualRelationship Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the individual. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountIdentityIndividualScriptAddresses ScriptAddresses { get; set; } + + /// + /// The script names (e.g. non-Latin characters) associated with the individual. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountIdentityIndividualScriptNames ScriptNames { get; set; } + + /// + /// The individual's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + + /// + /// Time at which the object was last updated. + /// + [JsonProperty("updated")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("updated")] +#endif + public DateTime Updated { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs new file mode 100644 index 0000000000..bf37ba9a42 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualAdditionalAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalName.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalName.cs new file mode 100644 index 0000000000..2cf60971ed --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalName.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualAdditionalName : StripeEntity + { + /// + /// The individual's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The individual's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The individual's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfService.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfService.cs new file mode 100644 index 0000000000..f7706961ec --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfService.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualAdditionalTermsOfService : StripeEntity + { + /// + /// Stripe terms of service agreement. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public AccountIdentityIndividualAdditionalTermsOfServiceAccount Account { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs new file mode 100644 index 0000000000..0b0e5650d8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualAdditionalTermsOfServiceAccount : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs new file mode 100644 index 0000000000..c9ac0f1c34 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDateOfBirth.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDateOfBirth.cs new file mode 100644 index 0000000000..7dc640883e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDateOfBirth.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDateOfBirth : StripeEntity + { + /// + /// The day of birth, between 1 and 31. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long Day { get; set; } + + /// + /// The month of birth, between 1 and 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long Month { get; set; } + + /// + /// The four-digit year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long Year { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocuments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocuments.cs new file mode 100644 index 0000000000..60b1790071 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocuments.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocuments : StripeEntity + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public AccountIdentityIndividualDocumentsCompanyAuthorization CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public AccountIdentityIndividualDocumentsPassport Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountIdentityIndividualDocumentsPrimaryVerification PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public AccountIdentityIndividualDocumentsSecondaryVerification SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public AccountIdentityIndividualDocumentsVisa Visa { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsCompanyAuthorization.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsCompanyAuthorization.cs new file mode 100644 index 0000000000..9da28f0270 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsCompanyAuthorization.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocumentsCompanyAuthorization : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPassport.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPassport.cs new file mode 100644 index 0000000000..4eba2e4872 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPassport.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocumentsPassport : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerification.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerification.cs new file mode 100644 index 0000000000..fce67720b1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerification.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocumentsPrimaryVerification : StripeEntity + { + /// + /// The file upload + /// tokens for the front and back of the verification document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountIdentityIndividualDocumentsPrimaryVerificationFrontBack FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerificationFrontBack.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerificationFrontBack.cs new file mode 100644 index 0000000000..5930fcea23 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsPrimaryVerificationFrontBack.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocumentsPrimaryVerificationFrontBack : StripeEntity + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerification.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerification.cs new file mode 100644 index 0000000000..7df5a9b5e0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerification.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocumentsSecondaryVerification : StripeEntity + { + /// + /// The file upload + /// tokens for the front and back of the verification document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountIdentityIndividualDocumentsSecondaryVerificationFrontBack FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerificationFrontBack.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerificationFrontBack.cs new file mode 100644 index 0000000000..71f23d5487 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsSecondaryVerificationFrontBack.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocumentsSecondaryVerificationFrontBack : StripeEntity + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsVisa.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsVisa.cs new file mode 100644 index 0000000000..ba3bb36acf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualDocumentsVisa.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualDocumentsVisa : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs new file mode 100644 index 0000000000..846eb11df9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualIdNumber : StripeEntity + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs new file mode 100644 index 0000000000..7ddee561c3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs @@ -0,0 +1,90 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualRelationship : StripeEntity + { + /// + /// Whether the individual is an authorizer of the Account's identity. + /// + [JsonProperty("authorizer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authorizer")] +#endif + public bool? Authorizer { get; set; } + + /// + /// Whether the individual is a director of the Account's identity. Directors are typically + /// members of the governing board of the company or are responsible for making sure that + /// the company meets its regulatory obligations. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Whether the individual has significant responsibility to control, manage, or direct the + /// organization. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Whether the individual is the legal guardian of the Account's representative. + /// + [JsonProperty("legal_guardian")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_guardian")] +#endif + public bool? LegalGuardian { get; set; } + + /// + /// Whether the individual is an owner of the Account's identity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percentage of the Account's identity that the individual owns. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// Whether the individual is authorized as the primary representative of the Account. This + /// is the person nominated by the business to provide information about themselves, and + /// general information about the account. There can only be one representative at any given + /// time. At the time the account is created, this person should be set to the person + /// responsible for opening the account. + /// + [JsonProperty("representative")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative")] +#endif + public bool? Representative { get; set; } + + /// + /// The individual's title (e.g., CEO, Support Engineer). + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddresses.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddresses.cs new file mode 100644 index 0000000000..908584bcf9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddresses.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualScriptAddresses : StripeEntity + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountIdentityIndividualScriptAddressesKana Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountIdentityIndividualScriptAddressesKanji Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs new file mode 100644 index 0000000000..c153c40157 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualScriptAddressesKana : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs new file mode 100644 index 0000000000..c440121372 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualScriptAddressesKanji : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNames.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNames.cs new file mode 100644 index 0000000000..237387f7c3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNames.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualScriptNames : StripeEntity + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountIdentityIndividualScriptNamesKana Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountIdentityIndividualScriptNamesKanji Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKana.cs new file mode 100644 index 0000000000..b60735bcdd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKana.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualScriptNamesKana : StripeEntity + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKanji.cs new file mode 100644 index 0000000000..a8cbe0ae9a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptNamesKanji.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityIndividualScriptNamesKanji : StripeEntity + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirements.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirements.cs new file mode 100644 index 0000000000..e46834f2d7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirements.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirements : StripeEntity + { + /// + /// A list of requirements for the Account. + /// + [JsonProperty("entries")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("entries")] +#endif + public List Entries { get; set; } + + /// + /// An object containing an overview of requirements for the Account. + /// + [JsonProperty("summary")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("summary")] +#endif + public AccountRequirementsSummary Summary { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntry.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntry.cs new file mode 100644 index 0000000000..869b2a672e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntry.cs @@ -0,0 +1,79 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntry : StripeEntity + { + /// + /// Indicates whether the platform or Stripe is currently responsible for taking action on + /// the requirement. Value can be user or stripe. + /// One of: stripe, or user. + /// + [JsonProperty("awaiting_action_from")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("awaiting_action_from")] +#endif + public string AwaitingActionFrom { get; set; } + + /// + /// Machine-readable string describing the requirement. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// Descriptions of why the requirement must be collected, or why the collected information + /// isn't satisfactory to Stripe. + /// + [JsonProperty("errors")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("errors")] +#endif + public List Errors { get; set; } + + /// + /// A hash describing the impact of not collecting the requirement, or Stripe not being able + /// to verify the collected information. + /// + [JsonProperty("impact")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("impact")] +#endif + public AccountRequirementsEntryImpact Impact { get; set; } + + /// + /// The soonest point when the account will be impacted by not providing the requirement. + /// + [JsonProperty("minimum_deadline")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_deadline")] +#endif + public AccountRequirementsEntryMinimumDeadline MinimumDeadline { get; set; } + + /// + /// A reference to the location of the requirement. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public AccountRequirementsEntryReference Reference { get; set; } + + /// + /// A list of reasons why Stripe is collecting the requirement. + /// + [JsonProperty("requested_reasons")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested_reasons")] +#endif + public List RequestedReasons { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryError.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryError.cs new file mode 100644 index 0000000000..34eda89e3d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryError.cs @@ -0,0 +1,93 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntryError : StripeEntity + { + /// + /// Machine-readable code describing the error. + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_url_web_presence_detected, + /// invalid_value_other, unresolvable_ip_address, + /// unresolvable_postal_code, verification_directors_mismatch, + /// verification_document_address_mismatch, + /// verification_document_address_missing, verification_document_corrupt, + /// verification_document_country_not_supported, + /// verification_document_directors_mismatch, + /// verification_document_dob_mismatch, verification_document_duplicate_type, + /// verification_document_expired, verification_document_failed_copy, + /// verification_document_failed_greyscale, + /// verification_document_failed_other, + /// verification_document_failed_test_mode, verification_document_fraudulent, + /// verification_document_id_number_mismatch, + /// verification_document_id_number_missing, verification_document_incomplete, + /// verification_document_invalid, + /// verification_document_issue_or_expiry_date_missing, + /// verification_document_manipulated, verification_document_missing_back, + /// verification_document_missing_front, verification_document_name_mismatch, + /// verification_document_name_missing, + /// verification_document_nationality_mismatch, + /// verification_document_not_readable, verification_document_not_signed, + /// verification_document_not_uploaded, verification_document_photo_mismatch, + /// verification_document_too_large, verification_document_type_not_supported, + /// verification_extraneous_directors, verification_failed_address_match, + /// verification_failed_business_iec_number, + /// verification_failed_document_match, verification_failed_id_number_match, + /// verification_failed_keyed_identity, verification_failed_keyed_match, + /// verification_failed_name_match, verification_failed_other, + /// verification_failed_representative_authority, + /// verification_failed_residential_address, verification_failed_tax_id_match, + /// verification_failed_tax_id_not_issued, verification_missing_directors, + /// verification_missing_executives, verification_missing_owners, + /// verification_requires_additional_memorandum_of_associations, + /// verification_requires_additional_proof_of_registration, + /// verification_selfie_document_missing_photo, + /// verification_selfie_face_mismatch, verification_selfie_manipulated, + /// verification_selfie_unverified_other, verification_supportability, or + /// verification_token_stale. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Human-readable description of the error. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpact.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpact.cs new file mode 100644 index 0000000000..e7cfcb733f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpact.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntryImpact : StripeEntity + { + /// + /// The Capabilities that will be restricted if the requirement is not collected and + /// satisfactory to Stripe. + /// + [JsonProperty("restricts_capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("restricts_capabilities")] +#endif + public List RestrictsCapabilities { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs new file mode 100644 index 0000000000..eb03469007 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntryImpactRestrictsCapability : StripeEntity + { + /// + /// The name of the Capability which will be restricted. + /// One of: ach_debit_payments, acss_debit_payments, affirm_payments, + /// afterpay_clearpay_payments, alma_payments, amazon_pay_payments, + /// automatic_indirect_tax, au_becs_debit_payments, + /// bacs_debit_payments, bancontact_payments, bank_accounts.local, + /// bank_accounts.wire, blik_payments, boleto_payments, cards, + /// card_payments, cartes_bancaires_payments, cashapp_payments, + /// eps_payments, fpx_payments, gb_bank_transfer_payments, + /// grabpay_payments, ideal_payments, jcb_payments, + /// jp_bank_transfer_payments, kakao_pay_payments, klarna_payments, + /// konbini_payments, kr_card_payments, link_payments, + /// mobilepay_payments, multibanco_payments, mx_bank_transfer_payments, + /// naver_pay_payments, oxxo_payments, p24_payments, + /// payco_payments, paynow_payments, pay_by_bank_payments, + /// promptpay_payments, revolut_pay_payments, samsung_pay_payments, + /// sepa_bank_transfer_payments, sepa_debit_payments, + /// stripe_balance.payouts, stripe_balance.stripe_transfers, + /// swish_payments, twint_payments, us_bank_transfer_payments, or + /// zip_payments. + /// + [JsonProperty("capability")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capability")] +#endif + public string Capability { get; set; } + + /// + /// The configuration which specifies the Capability which will be restricted. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("configuration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configuration")] +#endif + public string Configuration { get; set; } + + /// + /// Details about when in the account lifecycle the requirement must be collected by the + /// avoid the Capability restriction. + /// + [JsonProperty("deadline")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("deadline")] +#endif + public AccountRequirementsEntryImpactRestrictsCapabilityDeadline Deadline { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapabilityDeadline.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapabilityDeadline.cs new file mode 100644 index 0000000000..fcfb73cece --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapabilityDeadline.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntryImpactRestrictsCapabilityDeadline : StripeEntity + { + /// + /// The current status of the requirement's impact. + /// One of: currently_due, eventually_due, or past_due. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryMinimumDeadline.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryMinimumDeadline.cs new file mode 100644 index 0000000000..b58577bb0c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryMinimumDeadline.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntryMinimumDeadline : StripeEntity + { + /// + /// The current status of the requirement's impact. + /// One of: currently_due, eventually_due, or past_due. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryReference.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryReference.cs new file mode 100644 index 0000000000..ae8f5676b6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryReference.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntryReference : StripeEntity + { + /// + /// If inquiry is the type, the inquiry token. + /// + [JsonProperty("inquiry")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("inquiry")] +#endif + public string Inquiry { get; set; } + + /// + /// If resource is the type, the resource token. + /// + [JsonProperty("resource")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resource")] +#endif + public string Resource { get; set; } + + /// + /// The type of the reference. If the type is "inquiry", the inquiry token can be found in + /// the "inquiry" field. Otherwise the type is an API resource, the token for which can be + /// found in the "resource" field. + /// One of: inquiry, payment_method, or person. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryRequestedReason.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryRequestedReason.cs new file mode 100644 index 0000000000..8665b86ffe --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryRequestedReason.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsEntryRequestedReason : StripeEntity + { + /// + /// Machine-readable description of Stripe's reason for collecting the requirement. + /// One of: routine_onboarding, or routine_verification. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummary.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummary.cs new file mode 100644 index 0000000000..d0a594a284 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummary.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsSummary : StripeEntity + { + /// + /// The soonest date and time a requirement on the Account will become past due. + /// Represented as a RFC 3339 date & time UTC value in millisecond precision, for + /// example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("minimum_deadline")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_deadline")] +#endif + public AccountRequirementsSummaryMinimumDeadline MinimumDeadline { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs new file mode 100644 index 0000000000..b9571032be --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountRequirementsSummaryMinimumDeadline : StripeEntity + { + /// + /// The current strictest status of all requirements on the Account. + /// One of: currently_due, eventually_due, or past_due. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// The soonest RFC3339 date & time UTC value a requirement can impact the Account. + /// + [JsonProperty("time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("time")] +#endif + public DateTime? Time { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Events/Event.cs b/src/Stripe.net/Entities/V2/Core/Events/Event.cs index 93f2c9ad39..090774f6d3 100644 --- a/src/Stripe.net/Entities/V2/Core/Events/Event.cs +++ b/src/Stripe.net/Entities/V2/Core/Events/Event.cs @@ -2,6 +2,7 @@ namespace Stripe.V2.Core { using System; + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -31,6 +32,15 @@ public partial class Event : StripeEntity, IHasId, IHasObject #endif public string Object { get; set; } + /// + /// Before and after changes for the primary related object. + /// + [JsonProperty("changes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("changes")] +#endif + public Dictionary Changes { get; set; } + /// /// Authentication context needed to fetch the event or related object. /// diff --git a/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs b/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs index 996b54b618..f6e675fab5 100644 --- a/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs +++ b/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs @@ -110,7 +110,7 @@ public class WebhookEndpoint : StripeEntity, IHasId, IHasMetada public bool Livemode { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index f52099db7d..7ba51360e5 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -189,6 +189,11 @@ public static class StripeTypeRegistry { "v2.billing.meter_event", typeof(V2.Billing.MeterEvent) }, { "v2.billing.meter_event_adjustment", typeof(V2.Billing.MeterEventAdjustment) }, { "v2.billing.meter_event_session", typeof(V2.Billing.MeterEventSession) }, + { "v2.core.account", typeof(V2.Core.Account) }, + { "v2.core.account_link", typeof(V2.Core.AccountLink) }, + { "v2.core.account_person", typeof(V2.Core.AccountPerson) }, + { "v2.core.account_person_token", typeof(V2.Core.AccountPersonToken) }, + { "v2.core.account_token", typeof(V2.Core.AccountToken) }, { "v2.core.event", typeof(V2.Core.Event) }, { "v2.core.event_destination", typeof(V2.Core.EventDestination) }, diff --git a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCreateOptions.cs b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCreateOptions.cs index f7a1ff9b0f..4919f3a6ed 100644 --- a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCreateOptions.cs +++ b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCreateOptions.cs @@ -21,7 +21,7 @@ public class AccountExternalAccountCreateOptions : BaseOptions, IHasMetadata public bool? DefaultForCurrency { get; set; } /// - /// A token, like the ones returned by Stripe.js or + /// A token, like the ones returned by Stripe.js or /// a dictionary containing a user's external account details (with the options shown /// below). Please refer to full documentation instead. @@ -35,7 +35,7 @@ public class AccountExternalAccountCreateOptions : BaseOptions, IHasMetadata public AnyOf ExternalAccount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountDocumentsBankAccountOwnershipVerificationOptions.cs b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountDocumentsBankAccountOwnershipVerificationOptions.cs index 07f925ff63..94842c4a66 100644 --- a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountDocumentsBankAccountOwnershipVerificationOptions.cs +++ b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountDocumentsBankAccountOwnershipVerificationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountExternalAccountDocumentsBankAccountOwnershipVerificationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountUpdateOptions.cs b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountUpdateOptions.cs index 354ba24e52..6e1fbaec66 100644 --- a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountUpdateOptions.cs @@ -131,7 +131,7 @@ public class AccountExternalAccountUpdateOptions : BaseOptions, IHasMetadata public string ExpYear { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs index a3feb5dbd2..3f114ffa50 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs @@ -181,7 +181,7 @@ public class AccountPersonCreateOptions : BaseOptions, IHasMetadata public string MaidenName { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsCompanyAuthorizationOptions.cs index 7c74aec4bc..9cd06b3497 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsCompanyAuthorizationOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsCompanyAuthorizationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountPersonDocumentsCompanyAuthorizationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsPassportOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsPassportOptions.cs index ddbe761237..85bcaf3a49 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsPassportOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsPassportOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountPersonDocumentsPassportOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsVisaOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsVisaOptions.cs index 02430d47f4..160286234a 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsVisaOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonDocumentsVisaOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountPersonDocumentsVisaOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs index c9a7c9449e..f9853f3da5 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs @@ -181,7 +181,7 @@ public class AccountPersonUpdateOptions : BaseOptions, IHasMetadata public string MaidenName { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationAdditionalDocumentOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationAdditionalDocumentOptions.cs index 73ded0f35b..319b846de7 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationAdditionalDocumentOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationAdditionalDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class AccountPersonVerificationAdditionalDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class AccountPersonVerificationAdditionalDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationDocumentOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationDocumentOptions.cs index a7668082ca..ce4e5dca1d 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationDocumentOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonVerificationDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class AccountPersonVerificationDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class AccountPersonVerificationDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs index 2db37d35a3..49d8c21285 100644 --- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs @@ -395,6 +395,15 @@ public class AccountCapabilitiesOptions : INestedOptions #endif public AccountCapabilitiesPaynowPaymentsOptions PaynowPayments { get; set; } + /// + /// The payto_payments capability. + /// + [JsonProperty("payto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto_payments")] +#endif + public AccountCapabilitiesPaytoPaymentsOptions PaytoPayments { get; set; } + /// /// The pix_payments capability. /// diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesPaytoPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesPaytoPaymentsOptions.cs new file mode 100644 index 0000000000..b3d9d4d949 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesPaytoPaymentsOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCapabilitiesPaytoPaymentsOptions : INestedOptions + { + /// + /// Passing true requests the capability for the account, if it is not already requested. A + /// requested capability may not immediately become active. Any requirements to activate the + /// capability are returned in the requirements arrays. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCompanyVerificationDocumentOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyVerificationDocumentOptions.cs index de5c994c8d..f497ca2671 100644 --- a/src/Stripe.net/Services/Accounts/AccountCompanyVerificationDocumentOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCompanyVerificationDocumentOptions.cs @@ -9,11 +9,10 @@ namespace Stripe public class AccountCompanyVerificationDocumentOptions : INestedOptions { /// - /// The back of a document returned by a file upload with a purpose - /// value of additional_verification. The uploaded file needs to be a color image - /// (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in - /// size. + /// The back of a document returned by a file + /// upload with a purpose value of additional_verification. The uploaded + /// file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF + /// format, and less than 10 MB in size. /// [JsonProperty("back")] #if NET6_0_OR_GREATER @@ -22,11 +21,10 @@ public class AccountCompanyVerificationDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of a document returned by a file upload with a purpose - /// value of additional_verification. The uploaded file needs to be a color image - /// (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in - /// size. + /// The front of a document returned by a file + /// upload with a purpose value of additional_verification. The uploaded + /// file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF + /// format, and less than 10 MB in size. /// [JsonProperty("front")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs b/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs index 93d0baa6b3..ec5ece2418 100644 --- a/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs @@ -11,7 +11,7 @@ namespace Stripe public class AccountCreateOptions : BaseOptions, IHasMetadata { /// - /// An account token, used to + /// An account token, used to /// securely provide details to the account. /// [JsonProperty("account_token")] @@ -186,7 +186,7 @@ public class AccountCreateOptions : BaseOptions, IHasMetadata public AccountIndividualOptions Individual { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsBankAccountOwnershipVerificationOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsBankAccountOwnershipVerificationOptions.cs index 4aac3a8df5..9d3bc0bc5d 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsBankAccountOwnershipVerificationOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsBankAccountOwnershipVerificationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountDocumentsBankAccountOwnershipVerificationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyLicenseOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyLicenseOptions.cs index de42013e87..f436e40a5d 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyLicenseOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyLicenseOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountDocumentsCompanyLicenseOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMemorandumOfAssociationOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMemorandumOfAssociationOptions.cs index 1665d97d45..b4eadcec5f 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMemorandumOfAssociationOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMemorandumOfAssociationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountDocumentsCompanyMemorandumOfAssociationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMinisterialDecreeOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMinisterialDecreeOptions.cs index 204840bfaa..e93eb47c27 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMinisterialDecreeOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyMinisterialDecreeOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountDocumentsCompanyMinisterialDecreeOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyRegistrationVerificationOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyRegistrationVerificationOptions.cs index f79d860b96..9f098e145b 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyRegistrationVerificationOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyRegistrationVerificationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountDocumentsCompanyRegistrationVerificationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyTaxIdVerificationOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyTaxIdVerificationOptions.cs index 3d700be618..dc5b00b94d 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyTaxIdVerificationOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsCompanyTaxIdVerificationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountDocumentsCompanyTaxIdVerificationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs index 8f17234612..47e4e05977 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class AccountDocumentsProofOfAddressOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationOptions.cs index af8510cd3e..c838c34f4a 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationOptions.cs @@ -10,14 +10,22 @@ namespace Stripe public class AccountDocumentsProofOfRegistrationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("files")] #endif public List Files { get; set; } + + /// + /// Information regarding the person signing the document if applicable. + /// + [JsonProperty("signer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("signer")] +#endif + public AccountDocumentsProofOfRegistrationSignerOptions Signer { get; set; } } } diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationSignerOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationSignerOptions.cs new file mode 100644 index 0000000000..8c72bd7dd1 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfRegistrationSignerOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountDocumentsProofOfRegistrationSignerOptions : INestedOptions + { + /// + /// The token of the person signing the document, if applicable. + /// + [JsonProperty("person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person")] +#endif + public string Person { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipOptions.cs index a64be73b41..215241a1a7 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipOptions.cs @@ -10,14 +10,22 @@ namespace Stripe public class AccountDocumentsProofOfUltimateBeneficialOwnershipOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("files")] #endif public List Files { get; set; } + + /// + /// Information regarding the person signing the document if applicable. + /// + [JsonProperty("signer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("signer")] +#endif + public AccountDocumentsProofOfUltimateBeneficialOwnershipSignerOptions Signer { get; set; } } } diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipSignerOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipSignerOptions.cs new file mode 100644 index 0000000000..17c5419ee7 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipSignerOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountDocumentsProofOfUltimateBeneficialOwnershipSignerOptions : INestedOptions + { + /// + /// The token of the person signing the document, if applicable. + /// + [JsonProperty("person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person")] +#endif + public string Person { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountGroupsOptions.cs b/src/Stripe.net/Services/Accounts/AccountGroupsOptions.cs index 4f5ad8a0a0..bb451efae7 100644 --- a/src/Stripe.net/Services/Accounts/AccountGroupsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountGroupsOptions.cs @@ -11,7 +11,7 @@ public class AccountGroupsOptions : INestedOptions /// /// The group the account is in to determine their payments pricing, and null if the account /// is on customized pricing. See the Platform pricing + /// href="https://docs.stripe.com/connect/platform-pricing-tools">See the Platform pricing /// tool documentation for details. /// [JsonProperty("payments_pricing")] diff --git a/src/Stripe.net/Services/Accounts/AccountIndividualOptions.cs b/src/Stripe.net/Services/Accounts/AccountIndividualOptions.cs index 8a86ff5805..32276c1aae 100644 --- a/src/Stripe.net/Services/Accounts/AccountIndividualOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountIndividualOptions.cs @@ -163,7 +163,7 @@ public class AccountIndividualOptions : INestedOptions, IHasMetadata public string MaidenName { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Accounts/AccountIndividualVerificationAdditionalDocumentOptions.cs b/src/Stripe.net/Services/Accounts/AccountIndividualVerificationAdditionalDocumentOptions.cs index 2cc82a3691..d89e8c044e 100644 --- a/src/Stripe.net/Services/Accounts/AccountIndividualVerificationAdditionalDocumentOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountIndividualVerificationAdditionalDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class AccountIndividualVerificationAdditionalDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class AccountIndividualVerificationAdditionalDocumentOptions : INestedOpt public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/Accounts/AccountIndividualVerificationDocumentOptions.cs b/src/Stripe.net/Services/Accounts/AccountIndividualVerificationDocumentOptions.cs index e5ab42a0c4..88813c7151 100644 --- a/src/Stripe.net/Services/Accounts/AccountIndividualVerificationDocumentOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountIndividualVerificationDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class AccountIndividualVerificationDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class AccountIndividualVerificationDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/Accounts/AccountUpdateOptions.cs b/src/Stripe.net/Services/Accounts/AccountUpdateOptions.cs index f6e0e36d08..9ad79d2eb5 100644 --- a/src/Stripe.net/Services/Accounts/AccountUpdateOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountUpdateOptions.cs @@ -11,7 +11,7 @@ namespace Stripe public class AccountUpdateOptions : BaseOptions, IHasMetadata { /// - /// An account token, used to + /// An account token, used to /// securely provide details to the account. /// [JsonProperty("account_token")] @@ -161,7 +161,7 @@ public class AccountUpdateOptions : BaseOptions, IHasMetadata public AccountIndividualOptions Individual { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundCreateOptions.cs b/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundCreateOptions.cs index 07e16a1c87..b793681a4b 100644 --- a/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundCreateOptions.cs +++ b/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundCreateOptions.cs @@ -20,7 +20,7 @@ public class ApplicationFeeRefundCreateOptions : BaseOptions, IHasMetadata public long? Amount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundUpdateOptions.cs b/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundUpdateOptions.cs index 0e55e9761f..166c107d53 100644 --- a/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundUpdateOptions.cs +++ b/src/Stripe.net/Services/ApplicationFeeRefunds/ApplicationFeeRefundUpdateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class ApplicationFeeRefundUpdateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/BankAccounts/BankAccountDocumentsBankAccountOwnershipVerificationOptions.cs b/src/Stripe.net/Services/BankAccounts/BankAccountDocumentsBankAccountOwnershipVerificationOptions.cs index f44274c84c..dfef789609 100644 --- a/src/Stripe.net/Services/BankAccounts/BankAccountDocumentsBankAccountOwnershipVerificationOptions.cs +++ b/src/Stripe.net/Services/BankAccounts/BankAccountDocumentsBankAccountOwnershipVerificationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class BankAccountDocumentsBankAccountOwnershipVerificationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/BankAccounts/BankAccountUpdateOptions.cs b/src/Stripe.net/Services/BankAccounts/BankAccountUpdateOptions.cs index bfd1c2cc91..08a901b58f 100644 --- a/src/Stripe.net/Services/BankAccounts/BankAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/BankAccounts/BankAccountUpdateOptions.cs @@ -50,7 +50,7 @@ public class BankAccountUpdateOptions : BaseOptions, IHasMetadata public BankAccountDocumentsOptions Documents { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryGetOptions.cs b/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryGetOptions.cs index 830e2e5d1b..855ab193d0 100644 --- a/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryGetOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryGetOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Billing public class CreditBalanceSummaryGetOptions : BaseOptions { /// - /// The customer for which to fetch credit balance summary. + /// The customer whose credit balance summary you're retrieving. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -17,6 +17,15 @@ public class CreditBalanceSummaryGetOptions : BaseOptions #endif public string Customer { get; set; } + /// + /// The account representing the customer whose credit balance summary you're retrieving. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The filter criteria for the credit balance summary. /// diff --git a/src/Stripe.net/Services/Billing/CreditBalanceTransactions/CreditBalanceTransactionListOptions.cs b/src/Stripe.net/Services/Billing/CreditBalanceTransactions/CreditBalanceTransactionListOptions.cs index ae7eda774d..8ad61c4fb5 100644 --- a/src/Stripe.net/Services/Billing/CreditBalanceTransactions/CreditBalanceTransactionListOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditBalanceTransactions/CreditBalanceTransactionListOptions.cs @@ -18,12 +18,22 @@ public class CreditBalanceTransactionListOptions : ListOptions public string CreditGrant { get; set; } /// - /// The customer for which to fetch credit balance transactions. + /// The customer whose credit balance transactions you're retrieving. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("customer")] #endif public string Customer { get; set; } + + /// + /// The account representing the customer whose credit balance transactions you're + /// retrieving. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } } } diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs index 58ce328e52..1c8821a451 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs @@ -42,7 +42,7 @@ public class CreditGrantCreateOptions : BaseOptions, IHasMetadata public string Category { get; set; } /// - /// ID of the customer to receive the billing credits. + /// ID of the customer receiving the billing credits. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -50,6 +50,15 @@ public class CreditGrantCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// ID of the account representing the customer receiving the billing credits. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The time when the billing credits become effective-when they're eligible for use. It /// defaults to the current timestamp if not specified. diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantListOptions.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantListOptions.cs index 99babbe03d..a57332a0fa 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantListOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantListOptions.cs @@ -16,5 +16,14 @@ public class CreditGrantListOptions : ListOptions [STJS.JsonPropertyName("customer")] #endif public string Customer { get; set; } + + /// + /// Only return credit grants for this account representing the customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } } } diff --git a/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs b/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs index 458f0505b4..7a15120562 100644 --- a/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs +++ b/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs @@ -38,7 +38,7 @@ public class MeterEventCreateOptions : BaseOptions /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// payload. + /// href="https://docs.stripe.com/billing/subscriptions/usage-based/meters/configure#meter-configuration-attributes">payload. /// [JsonProperty("payload")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs index 51fd093d3b..fb00703523 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs @@ -21,7 +21,7 @@ public class ConfigurationCreateOptions : BaseOptions, IHasMetadata /// /// The default URL to redirect customers to when they click on the portal's link to return /// to your website. This can be overriden + /// href="https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url">overriden /// when creating the session. /// [JsonProperty("default_return_url")] @@ -52,7 +52,7 @@ public class ConfigurationCreateOptions : BaseOptions, IHasMetadata public ConfigurationLoginPageOptions LoginPage { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateOptions.cs index 5d0ebd6148..ae7f29e67d 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateOptions.cs @@ -9,6 +9,20 @@ namespace Stripe.BillingPortal public class ConfigurationFeaturesSubscriptionUpdateOptions : INestedOptions { + /// + /// Determines the value to use for the billing cycle anchor on subscription updates. Valid + /// values are now or unchanged, and the default value is unchanged. + /// Setting the value to now resets the subscription's billing cycle anchor to the + /// current time (in UTC). For more information, see the billing cycle documentation. + /// One of: now, or unchanged. + /// + [JsonProperty("billing_cycle_anchor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_cycle_anchor")] +#endif + public string BillingCycleAnchor { get; set; } + /// /// The types of subscription updates that are supported. When empty, subscriptions are not /// updateable. diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationLoginPageOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationLoginPageOptions.cs index a8665a9159..21c6fd9368 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationLoginPageOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationLoginPageOptions.cs @@ -10,7 +10,7 @@ public class ConfigurationLoginPageOptions : INestedOptions { /// /// Set to true to generate a shareable URL login_page.url + /// href="https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-login_page-url">login_page.url /// that will take your customers to a hosted login page for the customer portal. /// /// Set to false to deactivate the login_page.url. diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs index edb3f09f69..33a6a46030 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs @@ -30,7 +30,7 @@ public class ConfigurationUpdateOptions : BaseOptions, IHasMetadata /// /// The default URL to redirect customers to when they click on the portal's link to return /// to your website. This can be overriden + /// href="https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url">overriden /// when creating the session. /// [JsonProperty("default_return_url")] @@ -61,7 +61,7 @@ public class ConfigurationUpdateOptions : BaseOptions, IHasMetadata public ConfigurationLoginPageOptions LoginPage { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs index 18fe2083ce..15ec619cab 100644 --- a/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs @@ -10,7 +10,7 @@ public class SessionCreateOptions : BaseOptions { /// /// The ID of an existing configuration to + /// href="https://docs.stripe.com/api/customer_portal/configuration">configuration to /// use for this session, describing its functionality and features. If not specified, the /// session uses the default configuration. /// @@ -29,9 +29,18 @@ public class SessionCreateOptions : BaseOptions #endif public string Customer { get; set; } + /// + /// The ID of an existing account. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Information about a specific flow for the customer to go through. See the docs to learn + /// href="https://docs.stripe.com/customer-management/portal-deep-links">docs to learn /// more about using customer portal deep links and flows. /// [JsonProperty("flow_data")] @@ -61,9 +70,9 @@ public class SessionCreateOptions : BaseOptions /// The on_behalf_of account to use for this session. When specified, only /// subscriptions and invoices with this on_behalf_of account appear in the portal. /// For more information, see the docs. + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant">docs. /// Use the Accounts + /// href="https://docs.stripe.com/api/accounts/object#account_object-settings-branding">Accounts /// API to modify the on_behalf_of account's branding settings, which the portal /// displays. /// diff --git a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmItemOptions.cs b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmItemOptions.cs index 3274e2d588..c3bd53bd5d 100644 --- a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmItemOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmItemOptions.cs @@ -10,7 +10,7 @@ public class SessionFlowDataSubscriptionUpdateConfirmItemOptions : INestedOption { /// /// The ID of the subscription + /// href="https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-id">subscription /// item to be updated. /// [JsonProperty("id")] @@ -22,7 +22,7 @@ public class SessionFlowDataSubscriptionUpdateConfirmItemOptions : INestedOption /// /// The price the customer should subscribe to through this flow. The price must also be /// included in the configuration's features.subscription_update.products. + /// href="https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products">features.subscription_update.products. /// [JsonProperty("price")] #if NET6_0_OR_GREATER @@ -31,7 +31,7 @@ public class SessionFlowDataSubscriptionUpdateConfirmItemOptions : INestedOption public string Price { get; set; } /// - /// Quantity for this item + /// Quantity for this item /// that the customer should subscribe to through this flow. /// [JsonProperty("quantity")] diff --git a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs index fe4514694e..6c3a5d8e02 100644 --- a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs @@ -19,7 +19,7 @@ public class SessionFlowDataSubscriptionUpdateConfirmOptions : INestedOptions public List Discounts { get; set; } /// - /// The subscription item to be + /// The subscription item to be /// updated through this flow. Currently, only up to one may be specified and subscriptions /// with multiple items are not updatable. /// diff --git a/src/Stripe.net/Services/Cards/CardDocumentsBankAccountOwnershipVerificationOptions.cs b/src/Stripe.net/Services/Cards/CardDocumentsBankAccountOwnershipVerificationOptions.cs index 4fc48b5c2d..4cacfeedc3 100644 --- a/src/Stripe.net/Services/Cards/CardDocumentsBankAccountOwnershipVerificationOptions.cs +++ b/src/Stripe.net/Services/Cards/CardDocumentsBankAccountOwnershipVerificationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class CardDocumentsBankAccountOwnershipVerificationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Cards/CardUpdateOptions.cs b/src/Stripe.net/Services/Cards/CardUpdateOptions.cs index a009aa279c..57b50d5114 100644 --- a/src/Stripe.net/Services/Cards/CardUpdateOptions.cs +++ b/src/Stripe.net/Services/Cards/CardUpdateOptions.cs @@ -102,7 +102,7 @@ public class CardUpdateOptions : BaseOptions, IHasMetadata public long? ExpYear { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Charges/ChargeCaptureOptions.cs b/src/Stripe.net/Services/Charges/ChargeCaptureOptions.cs index 5bd7ef5bb8..dee44faef7 100644 --- a/src/Stripe.net/Services/Charges/ChargeCaptureOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargeCaptureOptions.cs @@ -84,7 +84,7 @@ public class ChargeCaptureOptions : BaseOptions /// /// An optional dictionary including the account to automatically transfer to as part of a - /// destination charge. See + /// destination charge. See /// the Connect documentation for details. /// [JsonProperty("transfer_data")] @@ -96,7 +96,7 @@ public class ChargeCaptureOptions : BaseOptions /// /// A string that identifies this transaction as part of a group. transfer_group may /// only be provided if it has not been set. See the Connect + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options">Connect /// documentation for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/Charges/ChargeCreateOptions.cs b/src/Stripe.net/Services/Charges/ChargeCreateOptions.cs index 9811574aa8..2b86d449c5 100644 --- a/src/Stripe.net/Services/Charges/ChargeCreateOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargeCreateOptions.cs @@ -12,10 +12,10 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata { /// /// Amount intended to be collected by this payment. A positive integer representing how - /// much to charge in the smallest + /// much to charge in the smallest /// currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal /// currency). The minimum amount is $0.50 US or equivalent + /// href="https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts">equivalent /// in charge currency. The amount value supports up to eight digits (e.g., a value of /// 99999999 for a USD charge of $999,999.99). /// @@ -30,7 +30,7 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata /// to the application owner's Stripe account. The request must be made with an OAuth key or /// the Stripe-Account header in order to take an application fee. For more /// information, see the application fees documentation. + /// href="https://docs.stripe.com/connect/direct-charges#collect-fees">documentation. /// [JsonProperty("application_fee_amount")] #if NET6_0_OR_GREATER @@ -41,9 +41,9 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata /// /// Whether to immediately capture the charge. Defaults to true. When false, /// the charge issues an authorization (or pre-authorization), and will need to be captured later. Uncaptured charges + /// href="https://api.stripe.com#capture_charge">captured later. Uncaptured charges /// expire after a set number of days (7 by default). For more information, see the authorizing charges and settling + /// href="https://docs.stripe.com/charges/placing-a-hold">authorizing charges and settling /// later documentation. /// [JsonProperty("capture")] @@ -103,7 +103,7 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata public ChargeLevel3Options Level3 { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -115,9 +115,10 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata public Dictionary Metadata { get; set; } /// - /// The Stripe account ID for which these funds are intended. Automatically set if you use - /// the destination parameter. For details, see Creating + /// The Stripe account ID for which these funds are intended. You can specify the business + /// of record as the connected account using the on_behalf_of attribute on the + /// charge. For details, see Creating /// Separate Charges and Transfers. /// [JsonProperty("on_behalf_of")] @@ -128,7 +129,7 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata /// /// Options to configure Radar. See Radar Session for more + /// href="https://docs.stripe.com/radar/radar-session">Radar Session for more /// information. /// [JsonProperty("radar_options")] @@ -139,10 +140,10 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata /// /// The email address to which this charge's receipt will be sent. The receipt + /// href="https://docs.stripe.com/dashboard/receipts">receipt will be sent. The receipt /// will not be sent until the charge is paid, and no receipts will be sent for test mode /// charges. If this charge is for a Customer, the email address + /// href="https://docs.stripe.com/api/customers/object">Customer, the email address /// specified here will override the customer's email address. If receipt_email is /// specified for a charge in live mode, a receipt will be sent regardless of your email settings. @@ -164,15 +165,15 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata /// /// A payment source to be charged. This can be the ID of a card (i.e., credit or debit card), a bank account, a source, a token, or a connected + /// href="https://docs.stripe.com/api#cards">card (i.e., credit or debit card), a bank account, a source, a token, or a connected /// account. For certain sources---namely, cards, bank accounts, and attached sources---you must also pass the ID of + /// href="https://docs.stripe.com/api#cards">cards, bank accounts, and attached sources---you must also pass the ID of /// the associated customer. /// [JsonProperty("source")] @@ -214,7 +215,7 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata /// /// An optional dictionary including the account to automatically transfer to as part of a - /// destination charge. See + /// destination charge. See /// the Connect documentation for details. /// [JsonProperty("transfer_data")] @@ -225,7 +226,7 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata /// /// A string that identifies this transaction as part of a group. For details, see Grouping + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options">Grouping /// transactions. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/Charges/ChargeRadarOptionsOptions.cs b/src/Stripe.net/Services/Charges/ChargeRadarOptionsOptions.cs index e59c86dc95..13aade97c2 100644 --- a/src/Stripe.net/Services/Charges/ChargeRadarOptionsOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargeRadarOptionsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class ChargeRadarOptionsOptions : INestedOptions { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Services/Charges/ChargeUpdateOptions.cs b/src/Stripe.net/Services/Charges/ChargeUpdateOptions.cs index 09c9024f68..e6e7626546 100644 --- a/src/Stripe.net/Services/Charges/ChargeUpdateOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargeUpdateOptions.cs @@ -51,7 +51,7 @@ public class ChargeUpdateOptions : BaseOptions, IHasMetadata public ChargeFraudDetailsOptions FraudDetails { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -84,7 +84,7 @@ public class ChargeUpdateOptions : BaseOptions, IHasMetadata /// /// A string that identifies this transaction as part of a group. transfer_group may /// only be provided if it has not been set. See the Connect + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options">Connect /// documentation for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 989456fb8f..ea23502e5d 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -135,13 +135,13 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// recently saved card payment method will be used to prefill the email, name, card /// details, and billing address on the Checkout page. In subscription mode, the /// customer’s default + /// href="https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method">default /// payment method will be used if it’s a card, otherwise the most recently saved card /// will be used. A valid billing address, billing name and billing email are required on /// the payment method for Checkout to prefill the customer's card details. /// /// If the Customer already has a valid email set, + /// href="https://docs.stripe.com/api/customers/object#customer_object-email">email set, /// the email will be prefilled and not editable in Checkout. If the Customer does not have /// a valid email, Checkout will set the email entered during the session on the /// Customer. @@ -151,7 +151,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// create a new Customer object based on information provided during the payment flow. /// /// You can set payment_intent_data.setup_future_usage + /// href="https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage">payment_intent_data.setup_future_usage /// to have Checkout automatically attach the payment method to the Customer you pass in for /// future reuse. /// @@ -161,16 +161,25 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// ID of an existing Account, if one exists. Has the same behavior as customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Configure whether a Checkout Session creates a Customer during Session confirmation. + /// href="https://docs.stripe.com/api/customers">Customer during Session confirmation. /// /// When a Customer is not created, you can still retrieve email, address, and other /// customer data entered in Checkout with customer_details. + /// href="https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details">customer_details. /// /// Sessions that don't create Customers instead are grouped by guest customers in + /// href="https://docs.stripe.com/payments/checkout/guest-customers">guest customers in /// the Dashboard. Promotion codes limited to first time customers will return invalid for /// these Sessions. /// @@ -227,7 +236,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -262,7 +271,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// A list of items the customer is purchasing. Use this parameter to pass one-time or - /// recurring Prices. The parameter is + /// recurring Prices. The parameter is /// required for payment and subscription mode. /// /// For payment mode, there is a maximum of 100 line items, however it is recommended @@ -295,7 +304,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata public string Locale { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -323,7 +332,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// You can configure Checkout to collect your customers' business names, individual names, /// or both. Each name field can be either required or optional. /// - /// If a Customer is created or + /// If a Customer is created or /// provided, the names can be saved to the Customer object as well. /// [JsonProperty("name_collection")] @@ -335,7 +344,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// A list of optional items the customer can add to their order at checkout. Use this /// parameter to pass one-time or recurring Prices. + /// href="https://docs.stripe.com/api/prices">Prices. /// /// There is a maximum of 10 optional items allowed on a Checkout Session, and the existing /// limits on the number of line items allowed on a Checkout Session apply to the combined @@ -385,7 +394,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// If you'd like information on how to collect a payment method outside of Checkout, read /// the guide on configuring subscriptions with a free + /// href="https://docs.stripe.com/payments/checkout/free-trials">subscriptions with a free /// trial. /// One of: always, or if_required. /// @@ -430,7 +439,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// You can omit this attribute to manage your payment methods from the Stripe Dashboard. See /// Dynamic + /// href="https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods">Dynamic /// Payment Methods for more details. /// /// Read more about the supported payment methods and their requirements in our giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, link, mb_way, mobilepay, /// multibanco, naver_pay, nz_bank_account, oxxo, p24, - /// pay_by_bank, payco, paynow, paypal, pix, - /// promptpay, revolut_pay, samsung_pay, satispay, + /// pay_by_bank, payco, paynow, paypal, payto, + /// pix, promptpay, revolut_pay, samsung_pay, satispay, /// sepa_debit, sofort, swish, twint, us_bank_account, /// wechat_pay, or zip. /// @@ -477,7 +486,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// We recommend that you review your privacy policy and check with your legal contacts /// before using this feature. Learn more about collecting phone numbers + /// href="https://docs.stripe.com/payments/checkout/phone-numbers">collecting phone numbers /// with Checkout. /// [JsonProperty("phone_number_collection")] @@ -488,7 +497,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// This parameter applies to ui_mode: embedded. Learn more about the redirect + /// href="https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form">redirect /// behavior of embedded sessions. Defaults to always. /// One of: always, if_required, or never. /// @@ -576,7 +585,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// The URL to which Stripe should send customers when payment or setup is complete. This /// parameter is not allowed if ui_mode is embedded or custom. If you'd like /// to use information from the successful Checkout Session on your page, read the guide on - /// customizing your + /// customizing your /// success page. /// [JsonProperty("success_url")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataOptions.cs index a54b2a2b29..e7bfdfa92e 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataOptions.cs @@ -56,7 +56,7 @@ public class SessionInvoiceCreationInvoiceDataOptions : INestedOptions, IHasMeta public SessionInvoiceCreationInvoiceDataIssuerOptions Issuer { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs index 75c51df28e..488854546d 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs @@ -9,7 +9,8 @@ namespace Stripe.Checkout public class SessionLineItemAdjustableQuantityOptions : INestedOptions { /// - /// Set to true if the quantity can be adjusted to any non-negative integer. + /// Set to true if the quantity can be adjusted to any positive integer. Setting to false + /// will remove any previously specified constraints on quantity. /// [JsonProperty("enabled")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs index efdeb896d5..79e7b0103e 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs @@ -7,7 +7,7 @@ namespace Stripe.Checkout using STJS = System.Text.Json.Serialization; #endif - public class SessionLineItemOptions : INestedOptions + public class SessionLineItemOptions : INestedOptions, IHasMetadata, IHasId { /// /// When set, provides configuration for this item’s quantity to be adjusted by the customer @@ -20,7 +20,7 @@ public class SessionLineItemOptions : INestedOptions public SessionLineItemAdjustableQuantityOptions AdjustableQuantity { get; set; } /// - /// The tax rates that will be applied + /// The tax rates that will be applied /// to this line item depending on the customer's billing/shipping address. We currently /// support the following countries: US, GB, AU, and all countries in the EU. /// @@ -31,8 +31,29 @@ public class SessionLineItemOptions : INestedOptions public List DynamicTaxRates { get; set; } /// - /// The ID of the Price or Plan object. One of price or + /// ID of an existing line item. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The ID of the Price or Plan object. One of price or /// price_data is required. /// [JsonProperty("price")] @@ -42,8 +63,9 @@ public class SessionLineItemOptions : INestedOptions public string Price { get; set; } /// - /// Data used to generate a new Price - /// object inline. One of price or price_data is required. + /// Data used to generate a new Price + /// object inline. One of price or price_data is required when creating a new + /// line item. /// [JsonProperty("price_data")] #if NET6_0_OR_GREATER @@ -62,7 +84,7 @@ public class SessionLineItemOptions : INestedOptions public long? Quantity { get; set; } /// - /// The tax rates which apply to this + /// The tax rates which apply to this /// line item. /// [JsonProperty("tax_rates")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataOptions.cs index 82897c9fca..0dbfcfdf58 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataOptions.cs @@ -51,7 +51,7 @@ public class SessionLineItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataOptions.cs index bb37737b4c..a245435be8 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataOptions.cs @@ -31,7 +31,7 @@ public class SessionLineItemPriceDataProductDataOptions : INestedOptions, IHasMe public List Images { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -52,7 +52,7 @@ public class SessionLineItemPriceDataProductDataOptions : INestedOptions, IHasMe public string Name { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionListOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionListOptions.cs index ba2e6fbc81..8788ca5b8a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionListOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionListOptions.cs @@ -30,6 +30,15 @@ public class SessionListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// Only return the Checkout Sessions for the Account specified. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Only return the Checkout Sessions for the Customer details specified. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionOptionalItemOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionOptionalItemOptions.cs index d55bc68b3b..1413ad5614 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionOptionalItemOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionOptionalItemOptions.cs @@ -19,8 +19,8 @@ public class SessionOptionalItemOptions : INestedOptions public SessionOptionalItemAdjustableQuantityOptions AdjustableQuantity { get; set; } /// - /// The ID of the Price or Plan object. + /// The ID of the Price or Plan object. /// [JsonProperty("price")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentIntentDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentIntentDataOptions.cs index 0f5718bb22..ff103aff5f 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentIntentDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentIntentDataOptions.cs @@ -14,7 +14,7 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata /// payment and transferred to the application owner's Stripe account. The amount of the /// application fee collected will be capped at the total amount captured. For more /// information, see the PaymentIntents use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("application_fee_amount")] @@ -43,7 +43,7 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -79,7 +79,7 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata /// /// Indicates that you intend to make future + /// href="https://docs.stripe.com/payments/payment-intents#future-usage">make future /// payments with the payment method collected by this Checkout Session. /// /// When setting this to on_session, Checkout will show a notice to the customer that @@ -147,7 +147,7 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata /// /// The parameters used to automatically create a Transfer when the payment succeeds. For /// more information, see the PaymentIntents use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("transfer_data")] @@ -159,7 +159,7 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata /// /// A string that identifies the resulting payment as part of a group. See the /// PaymentIntents use case for + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers">use case for /// connected accounts for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs index eaac5859c1..d93fa273d8 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs @@ -74,11 +74,11 @@ public class SessionPaymentMethodOptionsCardOptions : INestedOptions /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. If not provided, this value defaults to automatic. Read our /// guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs index 4b26f01825..1a647872ca 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs @@ -314,6 +314,15 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions #endif public SessionPaymentMethodOptionsPaypalOptions Paypal { get; set; } + /// + /// contains details about the PayTo payment method options. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public SessionPaymentMethodOptionsPaytoOptions Payto { get; set; } + /// /// contains details about the Pix payment method options. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaypalOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaypalOptions.cs index bc250e0302..eab652a259 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaypalOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaypalOptions.cs @@ -18,7 +18,7 @@ public class SessionPaymentMethodOptionsPaypalOptions : INestedOptions public string CaptureMethod { get; set; } /// - /// Preferred locale + /// Preferred locale /// of the PayPal checkout page that the customer is redirected to. /// One of: cs-CZ, da-DK, de-AT, de-DE, de-LU, /// el-GR, en-GB, en-US, es-ES, fi-FI, fr-BE, diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptionsOptions.cs new file mode 100644 index 0000000000..8112c4cbf8 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoMandateOptionsOptions.cs @@ -0,0 +1,86 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionPaymentMethodOptionsPaytoMandateOptionsOptions : INestedOptions + { + /// + /// Amount that will be collected. It is required when amount_type is fixed. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The type of amount that will be collected. The amount charged must be exact or up to the + /// value of amount param for fixed or maximum type respectively. + /// Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no + /// end date. + /// + [JsonProperty("end_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] +#endif + public string EndDate { get; set; } + + /// + /// The periodicity at which payments will be collected. Defaults to adhoc. + /// One of: adhoc, annual, daily, fortnightly, monthly, + /// quarterly, semi_annual, or weekly. + /// + [JsonProperty("payment_schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_schedule")] +#endif + public string PaymentSchedule { get; set; } + + /// + /// The number of payments that will be made during a payment period. Defaults to 1 except + /// for when payment_schedule is adhoc. In that case, it defaults to no limit. + /// + [JsonProperty("payments_per_period")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payments_per_period")] +#endif + public long? PaymentsPerPeriod { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to + /// confirmation time. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoOptions.cs new file mode 100644 index 0000000000..e957ed653d --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaytoOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionPaymentMethodOptionsPaytoOptions : INestedOptions + { + /// + /// Additional fields for Mandate creation. + /// + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SessionPaymentMethodOptionsPaytoMandateOptionsOptions MandateOptions { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// One of: none, or off_session. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSetupIntentDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSetupIntentDataOptions.cs index c75fd508d3..94d5ab63f0 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSetupIntentDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSetupIntentDataOptions.cs @@ -19,7 +19,7 @@ public class SessionSetupIntentDataOptions : INestedOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionShippingOptionShippingRateDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionShippingOptionShippingRateDataOptions.cs index 2087600ea1..50299ce7b2 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionShippingOptionShippingRateDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionShippingOptionShippingRateDataOptions.cs @@ -40,7 +40,7 @@ public class SessionShippingOptionShippingRateDataOptions : INestedOptions, IHas public SessionShippingOptionShippingRateDataFixedAmountOptions FixedAmount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -63,7 +63,7 @@ public class SessionShippingOptionShippingRateDataOptions : INestedOptions, IHas public string TaxBehavior { get; set; } /// - /// A tax code ID. The Shipping tax + /// A tax code ID. The Shipping tax /// code is txcd_92010001. /// [JsonProperty("tax_code")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs index e2aa7467d7..fa37ec23c2 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs @@ -59,7 +59,7 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata /// /// The subscription's description, meant to be displayable to the customer. Use this field /// to optionally store an explanation of the subscription for rendering in the customer portal. + /// href="https://docs.stripe.com/customer-management">customer portal. /// [JsonProperty("description")] #if NET6_0_OR_GREATER @@ -77,7 +77,7 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata public SessionSubscriptionDataInvoiceSettingsOptions InvoiceSettings { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs index 2314c588e7..f872908b46 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs @@ -20,7 +20,30 @@ public class SessionUpdateOptions : BaseOptions, IHasMetadata public SessionCollectedInformationOptions CollectedInformation { get; set; } /// - /// Set of key-value pairs that you can + /// A list of items the customer is purchasing. + /// + /// When updating line items, you must retransmit the entire array of line items. + /// + /// To retain an existing line item, specify its id. + /// + /// To update an existing line item, specify its id along with the new values of the + /// fields to update. + /// + /// To add a new line item, specify one of price or price_data and + /// quantity. + /// + /// To remove an existing line item, omit the line item's ID from the retransmitted array. + /// + /// To reorder a line item, specify it at the desired position in the retransmitted array. + /// + [JsonProperty("line_items")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line_items")] +#endif + public List LineItems { get; set; } + + /// + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Climate/Orders/OrderCreateOptions.cs b/src/Stripe.net/Services/Climate/Orders/OrderCreateOptions.cs index cf1c4e0b72..46d89adeb6 100644 --- a/src/Stripe.net/Services/Climate/Orders/OrderCreateOptions.cs +++ b/src/Stripe.net/Services/Climate/Orders/OrderCreateOptions.cs @@ -42,7 +42,7 @@ public class OrderCreateOptions : BaseOptions, IHasMetadata public string Currency { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Climate/Orders/OrderUpdateOptions.cs b/src/Stripe.net/Services/Climate/Orders/OrderUpdateOptions.cs index 9635747f4f..a9411d8ad9 100644 --- a/src/Stripe.net/Services/Climate/Orders/OrderUpdateOptions.cs +++ b/src/Stripe.net/Services/Climate/Orders/OrderUpdateOptions.cs @@ -20,7 +20,7 @@ public class OrderUpdateOptions : BaseOptions, IHasMetadata public OrderBeneficiaryOptions Beneficiary { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Coupons/CouponCreateOptions.cs b/src/Stripe.net/Services/Coupons/CouponCreateOptions.cs index 6f7e042ecb..92d3deea76 100644 --- a/src/Stripe.net/Services/Coupons/CouponCreateOptions.cs +++ b/src/Stripe.net/Services/Coupons/CouponCreateOptions.cs @@ -96,7 +96,7 @@ public class CouponCreateOptions : BaseOptions, IHasId, IHasMetadata public long? MaxRedemptions { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Coupons/CouponUpdateOptions.cs b/src/Stripe.net/Services/Coupons/CouponUpdateOptions.cs index 8b1105a80c..ab2e0f4d53 100644 --- a/src/Stripe.net/Services/Coupons/CouponUpdateOptions.cs +++ b/src/Stripe.net/Services/Coupons/CouponUpdateOptions.cs @@ -22,7 +22,7 @@ public class CouponUpdateOptions : BaseOptions, IHasMetadata public Dictionary CurrencyOptions { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs index c5066e0766..8b9918ca01 100644 --- a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs +++ b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs @@ -85,7 +85,7 @@ public class CreditNotePreviewLinesListOptions : ListOptions, IHasMetadata public string Memo { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs index 51fe4331d8..7184e356b3 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs @@ -85,7 +85,7 @@ public class CreditNoteCreateOptions : BaseOptions, IHasMetadata public string Memo { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteListOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteListOptions.cs index 3663f442e6..aed8f7fb18 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteListOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteListOptions.cs @@ -30,6 +30,16 @@ public class CreditNoteListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// Only return credit notes for the account representing the customer specified by this + /// account ID. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Only return credit notes for the invoice specified by this invoice ID. /// diff --git a/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs index 84eced1d3d..847592375c 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs @@ -85,7 +85,7 @@ public class CreditNotePreviewOptions : BaseOptions, IHasMetadata public string Memo { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteUpdateOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteUpdateOptions.cs index 24caabd151..4b8a93538f 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteUpdateOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteUpdateOptions.cs @@ -19,7 +19,7 @@ public class CreditNoteUpdateOptions : BaseOptions, IHasMetadata public string Memo { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionCreateOptions.cs b/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionCreateOptions.cs index 0980b65f80..9c9c61b50e 100644 --- a/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionCreateOptions.cs @@ -23,7 +23,7 @@ public class CustomerBalanceTransactionCreateOptions : BaseOptions, IHasMetadata /// Three-letter ISO currency /// code, in lowercase. Must be a supported /// currency. Specifies the invoice_credit_balance + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance">invoice_credit_balance /// that this transaction will apply to. If the customer's currency is not set, it /// will be updated to this value. /// @@ -43,7 +43,7 @@ public class CustomerBalanceTransactionCreateOptions : BaseOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionListOptions.cs b/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionListOptions.cs index 0251ef05b3..f8f9f2a841 100644 --- a/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionListOptions.cs +++ b/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionListOptions.cs @@ -21,5 +21,14 @@ public class CustomerBalanceTransactionListOptions : ListOptions [STJS.JsonConverter(typeof(STJAnyOfConverter))] #endif public AnyOf Created { get; set; } + + /// + /// Only return transactions that are related to the specified invoice. + /// + [JsonProperty("invoice")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("invoice")] +#endif + public string Invoice { get; set; } } } diff --git a/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionUpdateOptions.cs b/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionUpdateOptions.cs index fbc5e7f5ed..17916f88b0 100644 --- a/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionUpdateOptions.cs +++ b/src/Stripe.net/Services/CustomerBalanceTransactions/CustomerBalanceTransactionUpdateOptions.cs @@ -19,7 +19,7 @@ public class CustomerBalanceTransactionUpdateOptions : BaseOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs index 0001f143c8..94b610c150 100644 --- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs @@ -33,9 +33,9 @@ public class CustomerPaymentMethodListOptions : ListOptions /// klarna, konbini, kr_card, link, mb_way, /// mobilepay, multibanco, naver_pay, nz_bank_account, /// oxxo, p24, pay_by_bank, payco, paynow, paypal, - /// pix, promptpay, revolut_pay, samsung_pay, satispay, - /// sepa_debit, sofort, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// payto, pix, promptpay, revolut_pay, samsung_pay, + /// satispay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceCreateOptions.cs b/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceCreateOptions.cs index 5db96273c2..814aa7c93b 100644 --- a/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class CustomerPaymentSourceCreateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -22,7 +22,7 @@ public class CustomerPaymentSourceCreateOptions : BaseOptions, IHasMetadata public Dictionary Metadata { get; set; } /// - /// Please refer to full documentation instead. + /// Please refer to full documentation instead. /// [JsonProperty("source")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceUpdateOptions.cs b/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceUpdateOptions.cs index 509a8b93f4..3193cab379 100644 --- a/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceUpdateOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceUpdateOptions.cs @@ -102,7 +102,7 @@ public class CustomerPaymentSourceUpdateOptions : BaseOptions, IHasMetadata public string ExpYear { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs index 0e33c9befd..e2a102e306 100644 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs @@ -25,5 +25,14 @@ public class CustomerSessionCreateOptions : BaseOptions [STJS.JsonPropertyName("customer")] #endif public string Customer { get; set; } + + /// + /// The ID of an existing Account for which to create the Customer Session. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } } } diff --git a/src/Stripe.net/Services/Customers/CustomerCashBalanceSettingsOptions.cs b/src/Stripe.net/Services/Customers/CustomerCashBalanceSettingsOptions.cs index 4508d099bf..e30490ee70 100644 --- a/src/Stripe.net/Services/Customers/CustomerCashBalanceSettingsOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerCashBalanceSettingsOptions.cs @@ -12,7 +12,7 @@ public class CustomerCashBalanceSettingsOptions : INestedOptions /// Controls how funds transferred by the customer are applied to payment intents and /// invoices. Valid options are automatic, manual, or merchant_default. /// For more information about these reconciliation modes, see Reconciliation. + /// href="https://docs.stripe.com/payments/customer-balance/reconciliation">Reconciliation. /// One of: automatic, manual, or merchant_default. /// [JsonProperty("reconciliation_mode")] diff --git a/src/Stripe.net/Services/Customers/CustomerCreateOptions.cs b/src/Stripe.net/Services/Customers/CustomerCreateOptions.cs index 611d7edad8..e6bf3bf4be 100644 --- a/src/Stripe.net/Services/Customers/CustomerCreateOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerCreateOptions.cs @@ -11,7 +11,9 @@ namespace Stripe public class CustomerCreateOptions : BaseOptions, IHasMetadata { /// - /// The customer's address. + /// The customer's address. Learn about country-specific + /// requirements for calculating tax. /// [JsonProperty("address")] #if NET6_0_OR_GREATER @@ -98,7 +100,7 @@ public class CustomerCreateOptions : BaseOptions, IHasMetadata public CustomerInvoiceSettingsOptions InvoiceSettings { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Customers/CustomerUpdateOptions.cs b/src/Stripe.net/Services/Customers/CustomerUpdateOptions.cs index 595e1c5329..91e76a06da 100644 --- a/src/Stripe.net/Services/Customers/CustomerUpdateOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerUpdateOptions.cs @@ -11,7 +11,9 @@ namespace Stripe public class CustomerUpdateOptions : BaseOptions, IHasMetadata { /// - /// The customer's address. + /// The customer's address. Learn about country-specific + /// requirements for calculating tax. /// [JsonProperty("address")] #if NET6_0_OR_GREATER @@ -51,14 +53,14 @@ public class CustomerUpdateOptions : BaseOptions, IHasMetadata /// /// If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// parameter. /// /// Provide the ID of a payment source already attached to this customer to make it this /// customer's default payment source. /// /// If you want to add a new payment source and make it the default, see the source + /// href="https://docs.stripe.com/api/customers/update#update_customer-source">source /// property. /// [JsonProperty("default_source")] @@ -116,7 +118,7 @@ public class CustomerUpdateOptions : BaseOptions, IHasMetadata public CustomerInvoiceSettingsOptions InvoiceSettings { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs b/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs index d7054b7938..4c4998c3c6 100644 --- a/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs +++ b/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs @@ -21,7 +21,7 @@ public class DisputeUpdateOptions : BaseOptions, IHasMetadata public DisputeEvidenceOptions Evidence { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs b/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs index 7b5790dbbf..f5bfeac3f2 100644 --- a/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs +++ b/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs @@ -38,7 +38,7 @@ public class FileLinkCreateOptions : BaseOptions, IHasMetadata public string File { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/FileLinks/FileLinkUpdateOptions.cs b/src/Stripe.net/Services/FileLinks/FileLinkUpdateOptions.cs index f830e191af..5590f295d6 100644 --- a/src/Stripe.net/Services/FileLinks/FileLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/FileLinks/FileLinkUpdateOptions.cs @@ -24,7 +24,7 @@ public class FileLinkUpdateOptions : BaseOptions, IHasMetadata public DateTime? ExpiresAt { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Files/FileCreateOptions.cs b/src/Stripe.net/Services/Files/FileCreateOptions.cs index be96d6720e..9dfc810809 100644 --- a/src/Stripe.net/Services/Files/FileCreateOptions.cs +++ b/src/Stripe.net/Services/Files/FileCreateOptions.cs @@ -20,7 +20,7 @@ public class FileCreateOptions : BaseOptions /// /// Optional parameters that automatically create a file link for the newly created file. + /// href="https://api.stripe.com#file_links">file link for the newly created file. /// [JsonProperty("file_link_data")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class FileCreateOptions : BaseOptions public FileFileLinkDataOptions FileLinkData { get; set; } /// - /// The purpose of the + /// The purpose of the /// uploaded file. /// One of: account_requirement, additional_verification, /// business_icon, business_logo, customer_signature, diff --git a/src/Stripe.net/Services/Files/FileFileLinkDataOptions.cs b/src/Stripe.net/Services/Files/FileFileLinkDataOptions.cs index 1a57e8f694..a222f7b6dc 100644 --- a/src/Stripe.net/Services/Files/FileFileLinkDataOptions.cs +++ b/src/Stripe.net/Services/Files/FileFileLinkDataOptions.cs @@ -37,7 +37,7 @@ public class FileFileLinkDataOptions : INestedOptions, IHasMetadata public DateTime? ExpiresAt { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/FinancialConnections/Accounts/AccountAccountHolderOptions.cs b/src/Stripe.net/Services/FinancialConnections/Accounts/AccountAccountHolderOptions.cs index 2ab372fa4e..6de73628eb 100644 --- a/src/Stripe.net/Services/FinancialConnections/Accounts/AccountAccountHolderOptions.cs +++ b/src/Stripe.net/Services/FinancialConnections/Accounts/AccountAccountHolderOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.FinancialConnections public class AccountAccountHolderOptions : INestedOptions { /// - /// The ID of the Stripe account whose accounts will be retrieved. + /// The ID of the Stripe account whose accounts you will retrieve. /// [JsonProperty("account")] #if NET6_0_OR_GREATER @@ -18,12 +18,21 @@ public class AccountAccountHolderOptions : INestedOptions public string Account { get; set; } /// - /// The ID of the Stripe customer whose accounts will be retrieved. + /// The ID of the Stripe customer whose accounts you will retrieve. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("customer")] #endif public string Customer { get; set; } + + /// + /// The ID of the Account representing a customer whose accounts you will retrieve. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } } } diff --git a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionAccountHolderOptions.cs b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionAccountHolderOptions.cs index dad23c3bd5..19c30fee53 100644 --- a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionAccountHolderOptions.cs +++ b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionAccountHolderOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.FinancialConnections public class SessionAccountHolderOptions : INestedOptions { /// - /// The ID of the Stripe account whose accounts will be retrieved. Should only be present if + /// The ID of the Stripe account whose accounts you will retrieve. Only available when /// type is account. /// [JsonProperty("account")] @@ -19,8 +19,8 @@ public class SessionAccountHolderOptions : INestedOptions public string Account { get; set; } /// - /// The ID of the Stripe customer whose accounts will be retrieved. Should only be present - /// if type is customer. + /// The ID of the Stripe customer whose accounts you will retrieve. Only available when + /// type is customer. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -28,6 +28,16 @@ public class SessionAccountHolderOptions : INestedOptions #endif public string Customer { get; set; } + /// + /// The ID of Account representing a customer whose accounts you will retrieve. Only + /// available when type is customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Type of account holder to collect accounts for. /// One of: account, or customer. diff --git a/src/Stripe.net/Services/Forwarding/Requests/RequestCreateOptions.cs b/src/Stripe.net/Services/Forwarding/Requests/RequestCreateOptions.cs index 2895ced1cf..98a711649d 100644 --- a/src/Stripe.net/Services/Forwarding/Requests/RequestCreateOptions.cs +++ b/src/Stripe.net/Services/Forwarding/Requests/RequestCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Forwarding public class RequestCreateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs index acd10d3925..a2b2edd848 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs @@ -20,7 +20,7 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata public string ClientReferenceId { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -58,6 +58,15 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata #endif public string RelatedCustomer { get; set; } + /// + /// The ID of the Account representing a customer. + /// + [JsonProperty("related_customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_customer_account")] +#endif + public string RelatedCustomerAccount { get; set; } + /// /// Tokens referencing a Person resource and it's associated account. /// @@ -77,7 +86,7 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata public string ReturnUrl { get; set; } /// - /// The type of verification + /// The type of verification /// check to be performed. You must provide a type if not passing /// verification_flow. /// One of: document, or id_number. diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionListOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionListOptions.cs index b9771fd099..1ece78483d 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionListOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionListOptions.cs @@ -31,15 +31,27 @@ public class VerificationSessionListOptions : ListOptions #endif public AnyOf Created { get; set; } + /// + /// Customer ID. + /// [JsonProperty("related_customer")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("related_customer")] #endif public string RelatedCustomer { get; set; } + /// + /// The ID of the Account representing a customer. + /// + [JsonProperty("related_customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_customer_account")] +#endif + public string RelatedCustomerAccount { get; set; } + /// /// Only return VerificationSessions with this status. Learn more about the lifecycle + /// href="https://docs.stripe.com/identity/how-sessions-work">Learn more about the lifecycle /// of sessions. /// One of: canceled, processing, requires_input, or verified. /// diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsDocumentOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsDocumentOptions.cs index a1ad94f4eb..11c9ccbeaa 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsDocumentOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsDocumentOptions.cs @@ -23,7 +23,7 @@ public class VerificationSessionOptionsDocumentOptions : INestedOptions /// /// Collect an ID number and perform an ID number + /// href="https://docs.stripe.com/identity/verification-checks?type=id-number">ID number /// check with the document’s extracted name and date of birth. /// [JsonProperty("require_id_number")] @@ -44,9 +44,9 @@ public class VerificationSessionOptionsDocumentOptions : INestedOptions /// /// Capture a face image and perform a selfie check + /// href="https://docs.stripe.com/identity/verification-checks?type=selfie">selfie check /// comparing a photo ID and a picture of your user’s face. Learn more. + /// href="https://docs.stripe.com/identity/selfie">Learn more. /// [JsonProperty("require_matching_selfie")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsOptions.cs index f6d7f02da0..855fd26294 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionOptionsOptions.cs @@ -10,7 +10,7 @@ public class VerificationSessionOptionsOptions : INestedOptions { /// /// Options that apply to the document + /// href="https://docs.stripe.com/identity/verification-checks?type=document">document /// check. /// [JsonProperty("document")] diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs index 209dc1751b..4fbcb88736 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Identity public class VerificationSessionUpdateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -40,7 +40,7 @@ public class VerificationSessionUpdateOptions : BaseOptions, IHasMetadata public VerificationSessionProvidedDetailsOptions ProvidedDetails { get; set; } /// - /// The type of verification + /// The type of verification /// check to be performed. /// One of: document, or id_number. /// diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs index 3c376ef0fe..da66199173 100644 --- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs +++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs @@ -32,7 +32,7 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata public string Currency { get; set; } /// - /// The ID of the customer who will be billed when this invoice item is billed. + /// The ID of the customer to bill for this invoice item. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -40,6 +40,15 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// The ID of the account representing the customer to bill for this invoice item. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string which you can attach to the invoice item. The description is /// displayed in the invoice for easy tracking. @@ -85,7 +94,7 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata public string Invoice { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -99,9 +108,9 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata /// /// The period associated with this invoice item. When set to different values, the period /// will be rendered on the invoice. If you have Stripe Revenue Recognition + /// href="https://docs.stripe.com/revenue-recognition">Stripe Revenue Recognition /// enabled, the period will be used to recognize and defer revenue. See the Revenue + /// href="https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing">Revenue /// Recognition documentation for details. /// [JsonProperty("period")] @@ -111,7 +120,7 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata public InvoiceItemPeriodOptions Period { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. /// [JsonProperty("price_data")] @@ -153,7 +162,7 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or @@ -167,7 +176,7 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata public string TaxBehavior { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemListOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemListOptions.cs index e5b6aa7bd2..d523cc11b4 100644 --- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemListOptions.cs +++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemListOptions.cs @@ -22,8 +22,8 @@ public class InvoiceItemListOptions : ListOptions public AnyOf Created { get; set; } /// - /// The identifier of the customer whose invoice items to return. If none is provided, all - /// invoice items will be returned. + /// The identifier of the customer whose invoice items to return. If none is provided, + /// returns all invoice items. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -31,6 +31,16 @@ public class InvoiceItemListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// The identifier of the account representing the customer whose invoice items to return. + /// If none is provided, returns all invoice items. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Only return invoice items belonging to this invoice. If none is provided, all invoice /// items will be returned. If specifying an invoice, no customer identifier is needed. diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemPriceDataOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemPriceDataOptions.cs index 3342f8edb1..03d762394c 100644 --- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemPriceDataOptions.cs @@ -31,7 +31,7 @@ public class InvoiceItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs index 3755c8ec14..0e10ae1926 100644 --- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs +++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs @@ -53,7 +53,7 @@ public class InvoiceItemUpdateOptions : BaseOptions, IHasMetadata public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -67,9 +67,9 @@ public class InvoiceItemUpdateOptions : BaseOptions, IHasMetadata /// /// The period associated with this invoice item. When set to different values, the period /// will be rendered on the invoice. If you have Stripe Revenue Recognition + /// href="https://docs.stripe.com/revenue-recognition">Stripe Revenue Recognition /// enabled, the period will be used to recognize and defer revenue. See the Revenue + /// href="https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing">Revenue /// Recognition documentation for details. /// [JsonProperty("period")] @@ -79,7 +79,7 @@ public class InvoiceItemUpdateOptions : BaseOptions, IHasMetadata public InvoiceItemPeriodOptions Period { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. /// [JsonProperty("price_data")] @@ -108,7 +108,7 @@ public class InvoiceItemUpdateOptions : BaseOptions, IHasMetadata /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or @@ -122,7 +122,7 @@ public class InvoiceItemUpdateOptions : BaseOptions, IHasMetadata public string TaxBehavior { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataOptions.cs index 9892e2bd2c..175b77be57 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataOptions.cs @@ -42,7 +42,7 @@ public class InvoiceLineItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataOptions.cs index 0ac5c7fe54..1095266ed4 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataOptions.cs @@ -31,7 +31,7 @@ public class InvoiceLineItemPriceDataProductDataOptions : INestedOptions, IHasMe public List Images { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -52,7 +52,7 @@ public class InvoiceLineItemPriceDataProductDataOptions : INestedOptions, IHasMe public string Name { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs index a72d495d11..22d2db623b 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs @@ -53,11 +53,11 @@ public class InvoiceLineItemUpdateOptions : BaseOptions, IHasMetadata public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. For type=subscription + /// href="https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type">type=subscription /// line items, the incoming metadata specified on the request is directly used to set this /// value, in contrast to type=invoiceitem line @@ -72,9 +72,9 @@ public class InvoiceLineItemUpdateOptions : BaseOptions, IHasMetadata /// /// The period associated with this invoice item. When set to different values, the period /// will be rendered on the invoice. If you have Stripe Revenue Recognition + /// href="https://docs.stripe.com/revenue-recognition">Stripe Revenue Recognition /// enabled, the period will be used to recognize and defer revenue. See the Revenue + /// href="https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing">Revenue /// Recognition documentation for details. /// [JsonProperty("period")] @@ -84,7 +84,7 @@ public class InvoiceLineItemUpdateOptions : BaseOptions, IHasMetadata public InvoiceLineItemPeriodOptions Period { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. /// [JsonProperty("price_data")] @@ -115,10 +115,10 @@ public class InvoiceLineItemUpdateOptions : BaseOptions, IHasMetadata /// A list of up to 10 tax amounts for this line item. This can be useful if you calculate /// taxes on your own or use a third-party to calculate them. You cannot set tax amounts if /// any line item has tax_rates + /// href="https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates">tax_rates /// or if the invoice has default_tax_rates - /// or uses automatic tax. Pass an empty + /// href="https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates">default_tax_rates + /// or uses automatic tax. Pass an empty /// string to remove previously defined tax amounts. /// [JsonProperty("tax_amounts")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceAddLinesOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceAddLinesOptions.cs index 5dcf77af81..b5ecc90427 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceAddLinesOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceAddLinesOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class InvoiceAddLinesOptions : BaseOptions { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxOptions.cs index 2bc7526b30..498083829b 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxOptions.cs @@ -11,7 +11,7 @@ public class InvoiceAutomaticTaxOptions : INestedOptions /// /// Whether Stripe automatically computes tax on this invoice. Note that incompatible /// invoice items (invoice items with manually specified tax rates, negative amounts, or + /// href="https://docs.stripe.com/api/tax_rates">tax rates, negative amounts, or /// tax_behavior=unspecified) cannot be added to automatic tax invoices. /// [JsonProperty("enabled")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs index 0ac3f3c15a..529c38d849 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs @@ -26,7 +26,7 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata /// to the application owner's Stripe account. The request must be made with an OAuth key or /// the Stripe-Account header in order to take an application fee. For more information, see /// the application fees documentation. + /// href="https://docs.stripe.com/billing/invoices/connect#collecting-fees">documentation. /// [JsonProperty("application_fee_amount")] #if NET6_0_OR_GREATER @@ -36,7 +36,7 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata /// /// Controls whether Stripe performs automatic + /// href="https://docs.stripe.com/invoicing/integration/automatic-advancement-collection">automatic /// collection of the invoice. If false, the invoice's state doesn't /// automatically advance without an explicit action. Defaults to false. /// @@ -100,7 +100,7 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata public List CustomFields { get; set; } /// - /// The ID of the customer who will be billed. + /// The ID of the customer to bill. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -108,6 +108,15 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// The ID of the account to bill. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The number of days from when the invoice is created until it is due. Valid only for /// invoices where collection_method=send_invoice. @@ -206,7 +215,7 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata /// /// Revise an existing invoice. The new invoice will be created in status=draft. See - /// the revision + /// the revision /// documentation for more details. /// [JsonProperty("from_invoice")] @@ -226,7 +235,7 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata public InvoiceIssuerOptions Issuer { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -254,7 +263,7 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata /// /// The account (if any) for which the funds of the invoice payment are intended. If set, /// the invoice will be presented with the branding and support information of the specified - /// account. See the Invoices + /// account. See the Invoices /// with Connect documentation for details. /// [JsonProperty("on_behalf_of")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceCreatePreviewOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCreatePreviewOptions.cs index d11a9e2287..70eced31d8 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCreatePreviewOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCreatePreviewOptions.cs @@ -29,7 +29,7 @@ public class InvoiceCreatePreviewOptions : BaseOptions public string Currency { get; set; } /// - /// The identifier of the customer whose upcoming invoice you'd like to retrieve. If + /// The identifier of the customer whose upcoming invoice you're retrieving. If /// automatic_tax is enabled then one of customer, customer_details, /// subscription, or schedule must be set. /// @@ -39,6 +39,18 @@ public class InvoiceCreatePreviewOptions : BaseOptions #endif public string Customer { get; set; } + /// + /// The identifier of the account representing the customer whose upcoming invoice you're + /// retrieving. If automatic_tax is enabled then one of customer, + /// customer_account, customer_details, subscription, or + /// schedule must be set. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Details about the customer you want to invoice or overrides for an existing customer. If /// automatic_tax is enabled then one of customer, customer_details, @@ -84,7 +96,7 @@ public class InvoiceCreatePreviewOptions : BaseOptions /// /// The account (if any) for which the funds of the invoice payment are intended. If set, /// the invoice will be presented with the branding and support information of the specified - /// account. See the Invoices + /// account. See the Invoices /// with Connect documentation for details. /// [JsonProperty("on_behalf_of")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsOptions.cs index 96ccaf8ead..a26d59da52 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsOptions.cs @@ -10,7 +10,9 @@ namespace Stripe public class InvoiceCustomerDetailsOptions : INestedOptions { /// - /// The customer's address. + /// The customer's address. Learn about country-specific + /// requirements for calculating tax. /// [JsonProperty("address")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs index 9dd92e1684..fdef07e3fe 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs @@ -10,7 +10,7 @@ public class InvoiceFinalizeOptions : BaseOptions { /// /// Controls whether Stripe performs automatic + /// href="https://docs.stripe.com/invoicing/integration/automatic-advancement-collection">automatic /// collection of the invoice. If false, the invoice's state doesn't /// automatically advance without an explicit action. /// diff --git a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs index 0f85c1372e..6cea8ecf98 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs @@ -83,11 +83,11 @@ public class InvoiceLineOptions : INestedOptions, IHasMetadata, IHasId public string InvoiceItem { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. For type=subscription + /// href="https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type">type=subscription /// line items, the incoming metadata specified on the request is directly used to set this /// value, in contrast to type=invoiceitem line @@ -102,9 +102,9 @@ public class InvoiceLineOptions : INestedOptions, IHasMetadata, IHasId /// /// The period associated with this invoice item. When set to different values, the period /// will be rendered on the invoice. If you have Stripe Revenue Recognition + /// href="https://docs.stripe.com/revenue-recognition">Stripe Revenue Recognition /// enabled, the period will be used to recognize and defer revenue. See the Revenue + /// href="https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing">Revenue /// Recognition documentation for details. /// [JsonProperty("period")] @@ -114,7 +114,7 @@ public class InvoiceLineOptions : INestedOptions, IHasMetadata, IHasId public InvoiceLinePeriodOptions Period { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. /// [JsonProperty("price_data")] @@ -145,10 +145,10 @@ public class InvoiceLineOptions : INestedOptions, IHasMetadata, IHasId /// A list of up to 10 tax amounts for this line item. This can be useful if you calculate /// taxes on your own or use a third-party to calculate them. You cannot set tax amounts if /// any line item has tax_rates + /// href="https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates">tax_rates /// or if the invoice has default_tax_rates - /// or uses automatic tax. Pass an empty + /// href="https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates">default_tax_rates + /// or uses automatic tax. Pass an empty /// string to remove previously defined tax amounts. /// [JsonProperty("tax_amounts")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataOptions.cs index f6150f0846..c39ff475e2 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataOptions.cs @@ -42,7 +42,7 @@ public class InvoiceLinePriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataOptions.cs index 0573c7291d..4dd19ecb41 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataOptions.cs @@ -31,7 +31,7 @@ public class InvoiceLinePriceDataProductDataOptions : INestedOptions, IHasMetada public List Images { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -52,7 +52,7 @@ public class InvoiceLinePriceDataProductDataOptions : INestedOptions, IHasMetada public string Name { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoiceListOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceListOptions.cs index abd903fe33..3066a9552e 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceListOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceListOptions.cs @@ -41,6 +41,16 @@ public class InvoiceListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// Only return invoices for the account representing the customer specified by this account + /// ID. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + [JsonProperty("due_date")] [JsonConverter(typeof(AnyOfConverter))] #if NET6_0_OR_GREATER @@ -52,7 +62,7 @@ public class InvoiceListOptions : ListOptions /// /// The status of the invoice, one of draft, open, paid, /// uncollectible, or void. Learn + /// href="https://docs.stripe.com/billing/invoices/workflow#workflow-overview">Learn /// more. /// One of: draft, open, paid, uncollectible, or void. /// diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 1b19134ad4..3e9d0b535a 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -43,8 +43,9 @@ public class InvoicePaymentSettingsOptions : INestedOptions /// ideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, payco, paynow, paypal, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, swish, us_bank_account, or wechat_pay. + /// payto, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, swish, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs index e02c086715..163a0a74bf 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs @@ -12,7 +12,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCardOptions : INestedOpti /// Installment configuration for payments attempted on this invoice. /// /// For more information, see the installments integration guide. + /// href="https://docs.stripe.com/payments/installments">installments integration guide. /// [JsonProperty("installments")] #if NET6_0_OR_GREATER @@ -23,10 +23,10 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCardOptions : INestedOpti /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. Read our guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs index fbc13846e2..5982fefb69 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs @@ -58,6 +58,16 @@ public class InvoicePaymentSettingsPaymentMethodOptionsOptions : INestedOptions #endif public InvoicePaymentSettingsPaymentMethodOptionsKonbiniOptions Konbini { get; set; } + /// + /// If paying by payto, this sub-hash contains details about the PayTo payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions Payto { get; set; } + /// /// If paying by sepa_debit, this sub-hash contains details about the SEPA Direct /// Debit payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs new file mode 100644 index 0000000000..2ee1f7c92a --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions : INestedOptions + { + /// + /// The maximum amount that can be collected in a single invoice. If you don't specify a + /// maximum, then there is no limit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions.cs new file mode 100644 index 0000000000..9d2ab820b6 --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions : INestedOptions + { + /// + /// Additional fields for Mandate creation. + /// + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoiceRemoveLinesOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceRemoveLinesOptions.cs index 065693e2e0..fb77848944 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceRemoveLinesOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceRemoveLinesOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class InvoiceRemoveLinesOptions : BaseOptions { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemOptions.cs index fac06b2ec2..8377859ce9 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemOptions.cs @@ -19,7 +19,7 @@ public class InvoiceScheduleDetailsPhaseAddInvoiceItemOptions : INestedOptions, public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -51,7 +51,7 @@ public class InvoiceScheduleDetailsPhaseAddInvoiceItemOptions : INestedOptions, public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemPriceDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemPriceDataOptions.cs index 8580a64dfe..6383f956c3 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAddInvoiceItemPriceDataOptions.cs @@ -31,7 +31,7 @@ public class InvoiceScheduleDetailsPhaseAddInvoiceItemPriceDataOptions : INested /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemBillingThresholdsOptions.cs index d7b15b3f94..864b763213 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemBillingThresholdsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemBillingThresholdsOptions.cs @@ -11,7 +11,7 @@ public class InvoiceScheduleDetailsPhaseItemBillingThresholdsOptions : INestedOp /// /// Number of units that meets the billing threshold to advance the subscription to a new /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary + /// href="https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte">monetary /// threshold). /// [JsonProperty("usage_gte")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemOptions.cs index c31c1f1ccc..0a921e8cb0 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemOptions.cs @@ -29,7 +29,7 @@ public class InvoiceScheduleDetailsPhaseItemOptions : INestedOptions, IHasMetada public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to a configuration item. Metadata on a configuration item will update the /// underlying subscription item's metadata when the phase is entered, adding new /// keys and replacing existing keys. Individual keys in the subscription item's @@ -64,7 +64,7 @@ public class InvoiceScheduleDetailsPhaseItemOptions : INestedOptions, IHasMetada public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. /// [JsonProperty("price_data")] @@ -84,9 +84,9 @@ public class InvoiceScheduleDetailsPhaseItemOptions : INestedOptions, IHasMetada public long? Quantity { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will override the default_tax_rates + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates /// on the Subscription. When updating, pass an empty string to remove previously-defined /// tax rates. /// diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemPriceDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemPriceDataOptions.cs index a4a9b59285..494a30d1e9 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseItemPriceDataOptions.cs @@ -40,7 +40,7 @@ public class InvoiceScheduleDetailsPhaseItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs index 5f89372349..81c3456515 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs @@ -49,7 +49,7 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata /// automatic to automatically change it if needed. Cannot be set to /// phase_start if this phase specifies a trial. For more information, see the /// billing cycle documentation. + /// href="https://docs.stripe.com/billing/subscriptions/billing-cycle">documentation. /// One of: automatic, or phase_start. /// [JsonProperty("billing_cycle_anchor")] @@ -105,11 +105,11 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata public string DefaultPaymentMethod { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will set the Subscription's default_tax_rates, + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates, /// which means they will be the Invoice's default_tax_rates + /// href="https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates">default_tax_rates /// for any Invoices issued by the Subscription during this Phase. /// [JsonProperty("default_tax_rates")] @@ -150,8 +150,8 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata public InvoiceScheduleDetailsPhaseDurationOptions Duration { get; set; } /// - /// The date at which this phase of the subscription schedule ends. If set, - /// iterations must not be set. + /// The date at which this phase of the subscription schedule ends. If set, duration + /// must not be set. /// [JsonProperty("end_date")] [JsonConverter(typeof(AnyOfConverter))] @@ -181,7 +181,7 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata public List Items { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to a phase. Metadata on a schedule's phase will update the underlying /// subscription's metadata when the phase is entered, adding new keys and replacing /// existing keys in the subscription's metadata. Individual keys in the @@ -208,10 +208,10 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata /// /// Controls whether the subscription schedule should create prorations when + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations when /// transitioning to this phase if there is a difference in billing configuration. It's /// different from the request-level proration_behavior + /// href="https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior">proration_behavior /// parameter which controls what happens if the update request affects the billing /// configuration (item price, quantity, etc.) of the current phase. /// One of: always_invoice, create_prorations, or none. diff --git a/src/Stripe.net/Services/Invoices/InvoiceShippingCostShippingRateDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceShippingCostShippingRateDataOptions.cs index 3fc65c17cb..dc15b224bd 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceShippingCostShippingRateDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceShippingCostShippingRateDataOptions.cs @@ -40,7 +40,7 @@ public class InvoiceShippingCostShippingRateDataOptions : INestedOptions, IHasMe public InvoiceShippingCostShippingRateDataFixedAmountOptions FixedAmount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -63,7 +63,7 @@ public class InvoiceShippingCostShippingRateDataOptions : INestedOptions, IHasMe public string TaxBehavior { get; set; } /// - /// A tax code ID. The Shipping tax + /// A tax code ID. The Shipping tax /// code is txcd_92010001. /// [JsonProperty("tax_code")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemBillingThresholdsOptions.cs index 442591b03f..6ed5061ec8 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemBillingThresholdsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemBillingThresholdsOptions.cs @@ -11,7 +11,7 @@ public class InvoiceSubscriptionDetailsItemBillingThresholdsOptions : INestedOpt /// /// Number of units that meets the billing threshold to advance the subscription to a new /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary + /// href="https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte">monetary /// threshold). /// [JsonProperty("usage_gte")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs index 5bc05564d7..bbb90e203b 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs @@ -58,7 +58,7 @@ public class InvoiceSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHa public string Id { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -90,7 +90,7 @@ public class InvoiceSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHa public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] @@ -109,9 +109,9 @@ public class InvoiceSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHa public long? Quantity { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will override the default_tax_rates + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates /// on the Subscription. When updating, pass an empty string to remove previously-defined /// tax rates. /// diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs index ffd627552a..bfd7cc2139 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs @@ -40,7 +40,7 @@ public class InvoiceSubscriptionDetailsItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs index b06f7e965f..1d4ccb1a45 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs @@ -13,7 +13,7 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions { /// /// For new subscriptions, a future timestamp to anchor the subscription's billing cycle. This is + /// href="https://docs.stripe.com/subscriptions/billing-cycle">billing cycle. This is /// used to determine the date of the first full invoice, and, for plans with month /// or year intervals, the day of the month for subsequent invoices. For existing /// subscriptions, the value can only be set to now or unchanged. @@ -90,7 +90,7 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions /// /// Determines how to handle prorations when the + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations when the /// billing cycle changes (e.g., when switching plans, resetting /// billing_cycle_anchor=now, or starting a trial), or if an item's quantity /// changes. The default value is create_prorations. diff --git a/src/Stripe.net/Services/Invoices/InvoiceUpdateLinesOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceUpdateLinesOptions.cs index 52dcfd7f11..1ba8ff68ed 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceUpdateLinesOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceUpdateLinesOptions.cs @@ -10,11 +10,11 @@ namespace Stripe public class InvoiceUpdateLinesOptions : BaseOptions { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. For type=subscription + /// href="https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type">type=subscription /// line items, the incoming metadata specified on the request is directly used to set this /// value, in contrast to type=invoiceitem line diff --git a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs index 3336eb829b..9f3832ac2c 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs @@ -26,7 +26,7 @@ public class InvoiceUpdateOptions : BaseOptions, IHasMetadata /// to the application owner's Stripe account. The request must be made with an OAuth key or /// the Stripe-Account header in order to take an application fee. For more information, see /// the application fees documentation. + /// href="https://docs.stripe.com/billing/invoices/connect#collecting-fees">documentation. /// [JsonProperty("application_fee_amount")] #if NET6_0_OR_GREATER @@ -36,7 +36,7 @@ public class InvoiceUpdateOptions : BaseOptions, IHasMetadata /// /// Controls whether Stripe performs automatic + /// href="https://docs.stripe.com/invoicing/integration/automatic-advancement-collection">automatic /// collection of the invoice. /// [JsonProperty("auto_advance")] @@ -198,7 +198,7 @@ public class InvoiceUpdateOptions : BaseOptions, IHasMetadata public InvoiceIssuerOptions Issuer { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -226,7 +226,7 @@ public class InvoiceUpdateOptions : BaseOptions, IHasMetadata /// /// The account (if any) for which the funds of the invoice payment are intended. If set, /// the invoice will be presented with the branding and support information of the specified - /// account. See the Invoices + /// account. See the Invoices /// with Connect documentation for details. /// [JsonProperty("on_behalf_of")] diff --git a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationApproveOptions.cs b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationApproveOptions.cs index a812d63609..49e8c26ff2 100644 --- a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationApproveOptions.cs +++ b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationApproveOptions.cs @@ -13,7 +13,7 @@ public class AuthorizationApproveOptions : BaseOptions, IHasMetadata /// If the authorization's pending_request.is_amount_controllable property is /// true, you may provide this value to control how much to hold for the /// authorization. Must be positive (use decline to + /// href="https://docs.stripe.com/api/issuing/authorizations/decline">decline to /// decline an authorization request). /// [JsonProperty("amount")] @@ -23,7 +23,7 @@ public class AuthorizationApproveOptions : BaseOptions, IHasMetadata public long? Amount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationDeclineOptions.cs b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationDeclineOptions.cs index d406146619..bf68dfebfe 100644 --- a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationDeclineOptions.cs +++ b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationDeclineOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Issuing public class AuthorizationDeclineOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationUpdateOptions.cs b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationUpdateOptions.cs index 219fe69869..896a58a2d8 100644 --- a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationUpdateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationUpdateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Issuing public class AuthorizationUpdateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs index 004b36b710..e6566dd1e0 100644 --- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs @@ -46,7 +46,7 @@ public class CardholderCreateOptions : BaseOptions, IHasMetadata public CardholderIndividualOptions Individual { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -72,7 +72,7 @@ public class CardholderCreateOptions : BaseOptions, IHasMetadata /// The cardholder's phone number. This will be transformed to E.164 if it is not provided in that /// format already. This is required for all cardholders who will be creating EU cards. See - /// the 3D + /// the 3D /// Secure documentation for more details. /// [JsonProperty("phone_number")] @@ -84,7 +84,7 @@ public class CardholderCreateOptions : BaseOptions, IHasMetadata /// /// The cardholder’s preferred locales (languages), ordered by preference. Locales can be /// de, en, es, fr, or it. This changes the language of - /// the 3D Secure flow and one-time + /// the 3D Secure flow and one-time /// password messages sent to the cardholder. /// One of: de, en, es, fr, or it. /// @@ -96,7 +96,7 @@ public class CardholderCreateOptions : BaseOptions, IHasMetadata /// /// Rules that control spending across this cardholder's cards. Refer to our documentation for + /// href="https://docs.stripe.com/issuing/controls/spending-controls">documentation for /// more details. /// [JsonProperty("spending_controls")] @@ -118,7 +118,7 @@ public class CardholderCreateOptions : BaseOptions, IHasMetadata /// /// One of individual or company. See Choose a cardholder + /// href="https://docs.stripe.com/issuing/other/choose-cardholder">Choose a cardholder /// type for more details. /// One of: company, or individual. /// diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualVerificationDocumentOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualVerificationDocumentOptions.cs index db3d47ef0b..95a09107ba 100644 --- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualVerificationDocumentOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualVerificationDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Issuing public class CardholderIndividualVerificationDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. /// [JsonProperty("back")] @@ -19,7 +19,7 @@ public class CardholderIndividualVerificationDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. /// [JsonProperty("front")] diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs index e876cfc29a..ef59663b53 100644 --- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs @@ -11,7 +11,7 @@ public class CardholderSpendingControlsOptions : INestedOptions { /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to allow. All other categories will be blocked. Cannot be set with /// blocked_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, @@ -180,7 +180,7 @@ public class CardholderSpendingControlsOptions : INestedOptions /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to decline. All other categories will be allowed. Cannot be set with /// allowed_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsSpendingLimitOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsSpendingLimitOptions.cs index c59d829d10..43da92162b 100644 --- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsSpendingLimitOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsSpendingLimitOptions.cs @@ -20,7 +20,7 @@ public class CardholderSpendingControlsSpendingLimitOptions : INestedOptions /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// this limit applies to. Omitting this field will apply the limit to all categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, /// advertising_services, agricultural_cooperative, diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs index 220b607d10..bdc319a6bb 100644 --- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs @@ -46,7 +46,7 @@ public class CardholderUpdateOptions : BaseOptions, IHasMetadata public CardholderIndividualOptions Individual { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -59,7 +59,7 @@ public class CardholderUpdateOptions : BaseOptions, IHasMetadata /// /// The cardholder's phone number. This is required for all cardholders who will be creating - /// EU cards. See the 3D Secure + /// EU cards. See the 3D Secure /// documentation for more details. /// [JsonProperty("phone_number")] @@ -71,7 +71,7 @@ public class CardholderUpdateOptions : BaseOptions, IHasMetadata /// /// The cardholder’s preferred locales (languages), ordered by preference. Locales can be /// de, en, es, fr, or it. This changes the language of - /// the 3D Secure flow and one-time + /// the 3D Secure flow and one-time /// password messages sent to the cardholder. /// One of: de, en, es, fr, or it. /// @@ -83,7 +83,7 @@ public class CardholderUpdateOptions : BaseOptions, IHasMetadata /// /// Rules that control spending across this cardholder's cards. Refer to our documentation for + /// href="https://docs.stripe.com/issuing/controls/spending-controls">documentation for /// more details. /// [JsonProperty("spending_controls")] diff --git a/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs index 159d5db7f0..69ea6435a6 100644 --- a/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Issuing public class CardCreateOptions : BaseOptions, IHasMetadata { /// - /// The Cardholder + /// The Cardholder /// object with which the card will be associated. /// [JsonProperty("cardholder")] @@ -61,7 +61,7 @@ public class CardCreateOptions : BaseOptions, IHasMetadata public string FinancialAccount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -130,7 +130,7 @@ public class CardCreateOptions : BaseOptions, IHasMetadata /// /// Rules that control spending for this card. Refer to our documentation for + /// href="https://docs.stripe.com/issuing/controls/spending-controls">documentation for /// more details. /// [JsonProperty("spending_controls")] diff --git a/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs index 16b1e13a88..6aed214e2c 100644 --- a/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs @@ -11,7 +11,7 @@ public class CardSpendingControlsOptions : INestedOptions { /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to allow. All other categories will be blocked. Cannot be set with /// blocked_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, @@ -180,7 +180,7 @@ public class CardSpendingControlsOptions : INestedOptions /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// of authorizations to decline. All other categories will be allowed. Cannot be set with /// allowed_categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, diff --git a/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsSpendingLimitOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsSpendingLimitOptions.cs index be19eb293a..4367a06ea6 100644 --- a/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsSpendingLimitOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsSpendingLimitOptions.cs @@ -20,7 +20,7 @@ public class CardSpendingControlsSpendingLimitOptions : INestedOptions /// /// Array of strings containing categories + /// href="https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category">categories /// this limit applies to. Omitting this field will apply the limit to all categories. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, /// advertising_services, agricultural_cooperative, diff --git a/src/Stripe.net/Services/Issuing/Cards/CardUpdateOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardUpdateOptions.cs index a1ff6de337..de1d0fcd30 100644 --- a/src/Stripe.net/Services/Issuing/Cards/CardUpdateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cards/CardUpdateOptions.cs @@ -20,7 +20,7 @@ public class CardUpdateOptions : BaseOptions, IHasMetadata public string CancellationReason { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -57,7 +57,7 @@ public class CardUpdateOptions : BaseOptions, IHasMetadata /// /// Rules that control spending for this card. Refer to our documentation for + /// href="https://docs.stripe.com/issuing/controls/spending-controls">documentation for /// more details. /// [JsonProperty("spending_controls")] diff --git a/src/Stripe.net/Services/Issuing/Disputes/DisputeCreateOptions.cs b/src/Stripe.net/Services/Issuing/Disputes/DisputeCreateOptions.cs index 692c079dc7..add6d3e425 100644 --- a/src/Stripe.net/Services/Issuing/Disputes/DisputeCreateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Disputes/DisputeCreateOptions.cs @@ -11,7 +11,7 @@ public class DisputeCreateOptions : BaseOptions, IHasMetadata { /// /// The dispute amount in the card's currency and in the smallest currency unit. If + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. If /// not set, defaults to the full transaction amount. /// [JsonProperty("amount")] @@ -30,7 +30,7 @@ public class DisputeCreateOptions : BaseOptions, IHasMetadata public DisputeEvidenceOptions Evidence { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/Disputes/DisputeSubmitOptions.cs b/src/Stripe.net/Services/Issuing/Disputes/DisputeSubmitOptions.cs index 466cba6b2c..2de6d9959f 100644 --- a/src/Stripe.net/Services/Issuing/Disputes/DisputeSubmitOptions.cs +++ b/src/Stripe.net/Services/Issuing/Disputes/DisputeSubmitOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Issuing public class DisputeSubmitOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/Disputes/DisputeUpdateOptions.cs b/src/Stripe.net/Services/Issuing/Disputes/DisputeUpdateOptions.cs index 07216afa8b..cefc5c2aef 100644 --- a/src/Stripe.net/Services/Issuing/Disputes/DisputeUpdateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Disputes/DisputeUpdateOptions.cs @@ -11,7 +11,7 @@ public class DisputeUpdateOptions : BaseOptions, IHasMetadata { /// /// The dispute amount in the card's currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class DisputeUpdateOptions : BaseOptions, IHasMetadata public DisputeEvidenceOptions Evidence { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignCreateOptions.cs b/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignCreateOptions.cs index 7686e01a91..d54cfd01b0 100644 --- a/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignCreateOptions.cs +++ b/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignCreateOptions.cs @@ -39,7 +39,7 @@ public class PersonalizationDesignCreateOptions : BaseOptions, IHasMetadata public string LookupKey { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignUpdateOptions.cs b/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignUpdateOptions.cs index ca5de498f7..76e329c9b5 100644 --- a/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignUpdateOptions.cs +++ b/src/Stripe.net/Services/Issuing/PersonalizationDesigns/PersonalizationDesignUpdateOptions.cs @@ -39,7 +39,7 @@ public class PersonalizationDesignUpdateOptions : BaseOptions, IHasMetadata public string LookupKey { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Issuing/Transactions/TransactionUpdateOptions.cs b/src/Stripe.net/Services/Issuing/Transactions/TransactionUpdateOptions.cs index 2d687c6943..627b93e533 100644 --- a/src/Stripe.net/Services/Issuing/Transactions/TransactionUpdateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Transactions/TransactionUpdateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Issuing public class TransactionUpdateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs index 1612a3f8f4..d232c2f22f 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions { /// /// The discount applied on this line item represented in the smallest currency unit. An + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. An /// integer greater than 0. /// /// This field is mutually exclusive with the amount_details[discount_amount] field. @@ -72,7 +72,7 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions /// /// The unit cost of the line item represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// Required for L3 rates. An integer greater than or equal to 0. /// [JsonProperty("unit_cost")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs index 90a83a67ed..e93bc99513 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsLineItemTaxOptions : INestedOptions { /// /// The total amount of tax on a single line item represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// Required for L3 rates. An integer greater than or equal to 0. /// /// This field is mutually exclusive with the amount_details[tax][total_tax_amount] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs index 60abaf463f..3559cf3465 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs @@ -11,7 +11,7 @@ public class PaymentIntentAmountDetailsOptions : INestedOptions { /// /// The total discount applied on the transaction represented in the smallest currency unit. An + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. An /// integer greater than 0. /// /// This field is mutually exclusive with the @@ -25,7 +25,7 @@ public class PaymentIntentAmountDetailsOptions : INestedOptions /// /// A list of line items, each containing information about a product in the PaymentIntent. - /// There is a maximum of 100 line items. + /// There is a maximum of 200 line items. /// [JsonProperty("line_items")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs index b64e732b13..028cb52eef 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsShippingOptions : INestedOptions { /// /// If a physical good is being shipped, the cost of shipping represented in the smallest currency unit. An + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. An /// integer greater than or equal to 0. /// [JsonProperty("amount")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs index 267eb32b0c..e48342308e 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsTaxOptions : INestedOptions { /// /// The total amount of tax on the transaction represented in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// Required for L2 rates. An integer greater than or equal to 0. /// /// This field is mutually exclusive with the diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentApplyCustomerBalanceOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentApplyCustomerBalanceOptions.cs index 3e31f73d9d..aae66803eb 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentApplyCustomerBalanceOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentApplyCustomerBalanceOptions.cs @@ -14,7 +14,7 @@ public class PaymentIntentApplyCustomerBalanceOptions : BaseOptions /// applied regardless of this parameter. /// /// A positive integer representing how much to charge in the smallest currency unit (for + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit (for /// example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). /// The maximum amount is the amount of the PaymentIntent. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAutomaticPaymentMethodsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAutomaticPaymentMethodsOptions.cs index 880c75f483..1241f7279b 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAutomaticPaymentMethodsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAutomaticPaymentMethodsOptions.cs @@ -13,7 +13,7 @@ public class PaymentIntentAutomaticPaymentMethodsOptions : INestedOptions /// /// Redirect-based payment methods may require your customer to be redirected to a payment /// method's app or site for authentication or additional steps. To confirm this + /// href="https://docs.stripe.com/api/payment_intents/confirm">confirm this /// PaymentIntent, you may be required to provide a return_url to redirect customers /// back to your site after they authenticate or complete the payment. /// One of: always, or never. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs index 7aa958add7..1ec6699e1f 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs @@ -33,7 +33,7 @@ public class PaymentIntentCaptureOptions : BaseOptions, IHasMetadata /// payment and transferred to the application owner's Stripe account. The amount of the /// application fee collected will be capped at the total amount captured. For more /// information, see the PaymentIntents use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("application_fee_amount")] @@ -46,7 +46,7 @@ public class PaymentIntentCaptureOptions : BaseOptions, IHasMetadata /// Defaults to true. When capturing a PaymentIntent, setting final_capture to /// false notifies Stripe to not release the remaining uncaptured funds to make sure /// that they're captured in future requests. You can only use this setting when multicapture is available for + /// href="https://docs.stripe.com/payments/multicapture">multicapture is available for /// PaymentIntents. /// [JsonProperty("final_capture")] @@ -65,7 +65,7 @@ public class PaymentIntentCaptureOptions : BaseOptions, IHasMetadata public PaymentIntentHooksOptions Hooks { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -117,7 +117,7 @@ public class PaymentIntentCaptureOptions : BaseOptions, IHasMetadata /// /// The parameters that you can use to automatically create a transfer after the payment is /// captured. Learn more about the use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("transfer_data")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index 2650df98f8..407e2c38fc 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -51,7 +51,7 @@ public class PaymentIntentConfirmOptions : BaseOptions /// Set to true to fail the payment attempt if the PaymentIntent transitions into /// requires_action. This parameter is intended for simpler integrations that do not /// handle customer actions, like saving cards + /// href="https://docs.stripe.com/payments/save-card-without-authentication">saving cards /// without authentication. /// [JsonProperty("error_on_requires_action")] @@ -69,7 +69,7 @@ public class PaymentIntentConfirmOptions : BaseOptions /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -108,7 +108,7 @@ public class PaymentIntentConfirmOptions : BaseOptions /// Set to true to indicate that the customer isn't in your checkout flow during this /// payment attempt and can't authenticate. Use this parameter in scenarios where you /// collect card details and charge them + /// href="https://docs.stripe.com/payments/cards/charging-saved-cards">charge them /// later. /// [JsonProperty("off_session")] @@ -128,11 +128,11 @@ public class PaymentIntentConfirmOptions : BaseOptions /// /// ID of the payment method (a PaymentMethod, Card, or compatible + /// href="https://docs.stripe.com/payments/payment-methods/transitioning#compatibility">compatible /// Source object) to attach to this PaymentIntent. If the payment method is attached to /// a Customer, it must match the customer that is - /// set on this PaymentIntent. + /// href="https://api.stripe.com#create_payment_intent-customer">customer that is set on + /// this PaymentIntent. /// [JsonProperty("payment_method")] #if NET6_0_OR_GREATER @@ -143,7 +143,7 @@ public class PaymentIntentConfirmOptions : BaseOptions /// /// If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod /// will appear in the payment_method + /// href="https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method">payment_method /// property on the PaymentIntent. /// [JsonProperty("payment_method_data")] @@ -176,7 +176,7 @@ public class PaymentIntentConfirmOptions : BaseOptions /// /// Options to configure Radar. Learn more about Radar Sessions. + /// href="https://docs.stripe.com/radar/radar-session">Radar Sessions. /// [JsonProperty("radar_options")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index 6b5d104cfc..cf24c57a78 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -12,10 +12,10 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// Amount intended to be collected by this PaymentIntent. A positive integer representing /// how much to charge in the smallest currency unit (e.g., + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit (e.g., /// 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum /// amount is $0.50 US or equivalent + /// href="https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts">equivalent /// in charge currency. The amount value supports up to eight digits (e.g., a value of /// 99999999 for a USD charge of $999,999.99). /// @@ -39,7 +39,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// payment and transferred to the application owner's Stripe account. The amount of the /// application fee collected will be capped at the total amount captured. For more /// information, see the PaymentIntents use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("application_fee_amount")] @@ -71,10 +71,10 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// Set to true to attempt to confirm this + /// href="https://docs.stripe.com/api/payment_intents/confirm">confirm this /// PaymentIntent immediately. This parameter defaults to false. When creating /// and confirming a PaymentIntent at the same time, you can also provide the parameters - /// available in the Confirm + /// available in the Confirm /// API. /// [JsonProperty("confirm")] @@ -124,7 +124,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// Payment methods attached to other Customers cannot be used with this PaymentIntent. /// /// If setup_future_usage + /// href="https://api.stripe.com#payment_intent_object-setup_future_usage">setup_future_usage /// is set and this PaymentIntent's payment method is not card_present, then the /// payment method attaches to the Customer after the PaymentIntent has been confirmed and /// any required actions from the user are complete. If the payment method is @@ -138,6 +138,27 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// ID of the Account representing the customer that this PaymentIntent belongs to, if one + /// exists. + /// + /// Payment methods attached to other Accounts cannot be used with this PaymentIntent. + /// + /// If setup_future_usage + /// is set and this PaymentIntent's payment method is not card_present, then the + /// payment method attaches to the Account after the PaymentIntent has been confirmed and + /// any required actions from the user are complete. If the payment method is + /// card_present and isn't a digital wallet, then a generated_card + /// payment method representing the card is created and attached to the Account instead. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// @@ -151,9 +172,9 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// Set to true to fail the payment attempt if the PaymentIntent transitions into /// requires_action. Use this parameter for simpler integrations that don't handle /// customer actions, such as saving cards + /// href="https://docs.stripe.com/payments/save-card-without-authentication">saving cards /// without authentication. This parameter can only be used with confirm=true. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm">confirm=true. /// [JsonProperty("error_on_requires_action")] #if NET6_0_OR_GREATER @@ -170,7 +191,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -192,7 +213,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// ID of the mandate that's used for this payment. This parameter can only be used with confirm=true. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm">confirm=true. /// [JsonProperty("mandate")] #if NET6_0_OR_GREATER @@ -203,7 +224,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// This hash contains details about the Mandate to create. This parameter can only be used /// with confirm=true. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm">confirm=true. /// [JsonProperty("mandate_data")] #if NET6_0_OR_GREATER @@ -212,7 +233,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata public PaymentIntentMandateDataOptions MandateData { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -227,9 +248,9 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// Set to true to indicate that the customer isn't in your checkout flow during this /// payment attempt and can't authenticate. Use this parameter in scenarios where you /// collect card details and charge them + /// href="https://docs.stripe.com/payments/cards/charging-saved-cards">charge them /// later. This parameter can only be used with confirm=true. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm">confirm=true. /// [JsonProperty("off_session")] #if NET6_0_OR_GREATER @@ -239,7 +260,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// The Stripe account ID that these funds are intended for. Learn more about the use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("on_behalf_of")] @@ -259,7 +280,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// ID of the payment method (a PaymentMethod, Card, or compatible + /// href="https://docs.stripe.com/payments/payment-methods#compatibility">compatible /// Source object) to attach to this PaymentIntent. /// /// If you don't provide the payment_method parameter or the source parameter @@ -267,7 +288,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// customer.default_source to improve migration for users of the Charges API. We /// recommend that you explicitly provide the payment_method moving forward. If the /// payment method is attached to a Customer, you must also provide the ID of that Customer - /// as the customer + /// as the customer /// parameter of this PaymentIntent. end. /// [JsonProperty("payment_method")] @@ -278,7 +299,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// The ID of the payment method + /// href="https://docs.stripe.com/api/payment_method_configurations">payment method /// configuration to use with this PaymentIntent. /// [JsonProperty("payment_method_configuration")] @@ -290,7 +311,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod /// will appear in the payment_method + /// href="https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method">payment_method /// property on the PaymentIntent. /// [JsonProperty("payment_method_data")] @@ -323,7 +344,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// Options to configure Radar. Learn more about Radar Sessions. + /// href="https://docs.stripe.com/radar/radar-session">Radar Sessions. /// [JsonProperty("radar_options")] #if NET6_0_OR_GREATER @@ -347,7 +368,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// payment on the payment method's app or site. If you'd prefer to redirect to a mobile /// application, you can alternatively supply an application URI scheme. This parameter can /// only be used with confirm=true. + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm">confirm=true. /// [JsonProperty("return_url")] #if NET6_0_OR_GREATER @@ -422,7 +443,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// The parameters that you can use to automatically create a Transfer. Learn more about the - /// use case for connected + /// use case for connected /// accounts. /// [JsonProperty("transfer_data")] @@ -433,7 +454,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// A string that identifies the resulting payment as part of a group. Learn more about the - /// use case for + /// use case for /// connected accounts. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentHooksInputsTaxOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentHooksInputsTaxOptions.cs index da581e6405..4018cd18e2 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentHooksInputsTaxOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentHooksInputsTaxOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentIntentHooksInputsTaxOptions : INestedOptions { /// - /// The TaxCalculation id. + /// The TaxCalculation id. /// [JsonProperty("calculation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs index 77ce6e7e42..b569d7d163 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs @@ -33,7 +33,7 @@ public class PaymentIntentIncrementAuthorizationOptions : BaseOptions, IHasMetad /// payment and transferred to the application owner's Stripe account. The amount of the /// application fee collected will be capped at the total amount captured. For more /// information, see the PaymentIntents use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("application_fee_amount")] @@ -61,7 +61,7 @@ public class PaymentIntentIncrementAuthorizationOptions : BaseOptions, IHasMetad public PaymentIntentHooksOptions Hooks { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -96,7 +96,7 @@ public class PaymentIntentIncrementAuthorizationOptions : BaseOptions, IHasMetad /// /// The parameters used to automatically create a transfer after the payment is captured. - /// Learn more about the use + /// Learn more about the use /// case for connected accounts. /// [JsonProperty("transfer_data")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentListOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentListOptions.cs index 74eedff23e..99f6beae71 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentListOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentListOptions.cs @@ -31,5 +31,15 @@ public class PaymentIntentListOptions : ListOptions [STJS.JsonPropertyName("customer")] #endif public string Customer { get; set; } + + /// + /// Only return PaymentIntents for the account representing the customer that this ID + /// specifies. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs index c0c3e0e8fe..010fd2b9fb 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs @@ -12,9 +12,9 @@ public class PaymentIntentPaymentMethodDataIdealOptions : INestedOptions /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index 6cd7a8f9ba..fb0130e644 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -303,7 +303,7 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat public PaymentIntentPaymentMethodDataMbWayOptions MbWay { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -414,6 +414,16 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat #endif public PaymentIntentPaymentMethodDataPaypalOptions Paypal { get; set; } + /// + /// If this is a payto PaymentMethod, this hash contains details about the PayTo + /// payment method. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public PaymentIntentPaymentMethodDataPaytoOptions Payto { get; set; } + /// /// If this is a pix PaymentMethod, this hash contains details about the Pix payment /// method. @@ -436,7 +446,7 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// /// Options to configure Radar. See Radar Session for more + /// href="https://docs.stripe.com/radar/radar-session">Radar Session for more /// information. /// [JsonProperty("radar_options")] @@ -526,7 +536,7 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// grabpay, ideal, kakao_pay, klarna, konbini, /// kr_card, link, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataPaytoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataPaytoOptions.cs new file mode 100644 index 0000000000..07df4e7121 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataPaytoOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodDataPaytoOptions : INestedOptions + { + /// + /// The account number for the bank account. + /// + [JsonProperty("account_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_number")] +#endif + public string AccountNumber { get; set; } + + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataRadarOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataRadarOptionsOptions.cs index f1380156af..4d3f29fcf1 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataRadarOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataRadarOptionsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentIntentPaymentMethodDataRadarOptionsOptions : INestedOptions { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs index b2639906ea..bae22490de 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs @@ -39,7 +39,7 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions /// Installment configuration for payments attempted on this PaymentIntent. /// /// For more information, see the installments integration guide. + /// href="https://docs.stripe.com/payments/installments">installments integration guide. /// [JsonProperty("installments")] #if NET6_0_OR_GREATER @@ -82,7 +82,7 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions /// /// Request ability to capture beyond the + /// href="https://docs.stripe.com/payments/extended-authorization">capture beyond the /// standard authorization validity window for this PaymentIntent. /// One of: if_available, or never. /// @@ -94,7 +94,7 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions /// /// Request ability to increment the + /// href="https://docs.stripe.com/payments/incremental-authorization">increment the /// authorization for this PaymentIntent. /// One of: if_available, or never. /// @@ -105,7 +105,7 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions public string RequestIncrementalAuthorization { get; set; } /// - /// Request ability to make multiple + /// Request ability to make multiple /// captures for this PaymentIntent. /// One of: if_available, or never. /// @@ -117,7 +117,7 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions /// /// Request ability to overcapture for this + /// href="https://docs.stripe.com/payments/overcapture">overcapture for this /// PaymentIntent. /// One of: if_available, or never. /// @@ -130,11 +130,11 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. If not provided, this value defaults to automatic. Read our /// guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs index b79c11d158..e552426c51 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs @@ -27,7 +27,7 @@ public class PaymentIntentPaymentMethodOptionsCardPresentOptions : INestedOption /// /// Request ability to capture this payment beyond the standard authorization + /// href="https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity">authorization /// validity window. /// [JsonProperty("request_extended_authorization")] @@ -38,10 +38,10 @@ public class PaymentIntentPaymentMethodOptionsCardPresentOptions : INestedOption /// /// Request ability to increment + /// href="https://docs.stripe.com/terminal/features/incremental-authorizations">increment /// this PaymentIntent if the combination of MCC and card brand is eligible. Check incremental_authorization_supported - /// in the Confirm + /// href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported">incremental_authorization_supported + /// in the Confirm /// response to verify support. /// [JsonProperty("request_incremental_authorization_support")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs index 8515cd0ae7..bcee286b50 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs @@ -397,6 +397,16 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions #endif public PaymentIntentPaymentMethodOptionsPaypalOptions Paypal { get; set; } + /// + /// If this is a payto PaymentMethod, this sub-hash contains details about the PayTo + /// payment method options. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public PaymentIntentPaymentMethodOptionsPaytoOptions Payto { get; set; } + /// /// If this is a pix PaymentMethod, this sub-hash contains details about the Pix /// payment method options. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypalOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypalOptions.cs index 1dcd717cc2..fb116297a0 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypalOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypalOptions.cs @@ -18,7 +18,7 @@ public class PaymentIntentPaymentMethodOptionsPaypalOptions : INestedOptions public string CaptureMethod { get; set; } /// - /// Preferred locale + /// Preferred locale /// of the PayPal checkout page that the customer is redirected to. /// One of: cs-CZ, da-DK, de-AT, de-DE, de-LU, /// el-GR, en-GB, en-US, es-ES, fi-FI, fr-BE, diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs new file mode 100644 index 0000000000..d833f37a70 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs @@ -0,0 +1,76 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsPaytoMandateOptionsOptions : INestedOptions + { + /// + /// Amount that will be collected. It is required when amount_type is fixed. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The type of amount that will be collected. The amount charged must be exact or up to the + /// value of amount param for fixed or maximum type respectively. + /// Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no + /// end date. + /// + [JsonProperty("end_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] +#endif + public string EndDate { get; set; } + + /// + /// The periodicity at which payments will be collected. Defaults to adhoc. + /// One of: adhoc, annual, daily, fortnightly, monthly, + /// quarterly, semi_annual, or weekly. + /// + [JsonProperty("payment_schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_schedule")] +#endif + public string PaymentSchedule { get; set; } + + /// + /// The number of payments that will be made during a payment period. Defaults to 1 except + /// for when payment_schedule is adhoc. In that case, it defaults to no limit. + /// + [JsonProperty("payments_per_period")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payments_per_period")] +#endif + public long? PaymentsPerPeriod { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoOptions.cs new file mode 100644 index 0000000000..bf9a349781 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaytoOptions.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsPaytoOptions : INestedOptions + { + /// + /// Additional fields for Mandate creation. Only purpose field is configurable for + /// PayTo PaymentIntent with setup_future_usage=none. Other fields are only + /// applicable to PayTo PaymentIntent with setup_future_usage=off_session. + /// + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public PaymentIntentPaymentMethodOptionsPaytoMandateOptionsOptions MandateOptions { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + /// If you've already set setup_future_usage and you're performing a request using a + /// publishable key, you can only update the value from on_session to + /// off_session. + /// One of: none, or off_session. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs index 665d230e3b..455b2a23ec 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentIntentRadarOptionsOptions : INestedOptions { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentTransferDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentTransferDataOptions.cs index 931f0d6319..ee2c0396e6 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentTransferDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentTransferDataOptions.cs @@ -14,7 +14,7 @@ public class PaymentIntentTransferDataOptions : INestedOptions /// transferred. /// /// If you intend to collect a fee and you need a more robust reporting experience, using application_fee_amount + /// href="https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount">application_fee_amount /// might be a better fit for your integration. /// [JsonProperty("amount")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index c703f0405a..84b5984f32 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -12,10 +12,10 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// Amount intended to be collected by this PaymentIntent. A positive integer representing /// how much to charge in the smallest currency unit (e.g., + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit (e.g., /// 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum /// amount is $0.50 US or equivalent + /// href="https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts">equivalent /// in charge currency. The amount value supports up to eight digits (e.g., a value of /// 99999999 for a USD charge of $999,999.99). /// @@ -39,7 +39,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// payment and transferred to the application owner's Stripe account. The amount of the /// application fee collected will be capped at the total amount captured. For more /// information, see the PaymentIntents use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("application_fee_amount")] @@ -75,7 +75,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// Payment methods attached to other Customers cannot be used with this PaymentIntent. /// /// If setup_future_usage + /// href="https://api.stripe.com#payment_intent_object-setup_future_usage">setup_future_usage /// is set and this PaymentIntent's payment method is not card_present, then the /// payment method attaches to the Customer after the PaymentIntent has been confirmed and /// any required actions from the user are complete. If the payment method is @@ -89,6 +89,27 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// ID of the Account representing the customer that this PaymentIntent belongs to, if one + /// exists. + /// + /// Payment methods attached to other Accounts cannot be used with this PaymentIntent. + /// + /// If setup_future_usage + /// is set and this PaymentIntent's payment method is not card_present, then the + /// payment method attaches to the Account after the PaymentIntent has been confirmed and + /// any required actions from the user are complete. If the payment method is + /// card_present and isn't a digital wallet, then a generated_card + /// payment method representing the card is created and attached to the Account instead. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// @@ -107,7 +128,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -128,7 +149,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata public PaymentIntentHooksOptions Hooks { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -150,7 +171,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// ID of the payment method (a PaymentMethod, Card, or compatible + /// href="https://docs.stripe.com/payments/payment-methods/transitioning#compatibility">compatible /// Source object) to attach to this PaymentIntent. To unset this field to null, pass in /// an empty string. /// @@ -162,7 +183,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// The ID of the payment method + /// href="https://docs.stripe.com/api/payment_method_configurations">payment method /// configuration to use with this PaymentIntent. /// [JsonProperty("payment_method_configuration")] @@ -174,7 +195,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod /// will appear in the payment_method + /// href="https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method">payment_method /// property on the PaymentIntent. /// [JsonProperty("payment_method_data")] @@ -288,7 +309,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// Use this parameter to automatically create a Transfer when the payment succeeds. Learn - /// more about the use case + /// more about the use case /// for connected accounts. /// [JsonProperty("transfer_data")] @@ -300,7 +321,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// A string that identifies the resulting payment as part of a group. You can only provide /// transfer_group if it hasn't been set. Learn more about the use case for connected + /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkAfterCompletionRedirectOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAfterCompletionRedirectOptions.cs index 1af03a3beb..132a209221 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkAfterCompletionRedirectOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAfterCompletionRedirectOptions.cs @@ -11,7 +11,7 @@ public class PaymentLinkAfterCompletionRedirectOptions : INestedOptions /// /// The URL the customer will be redirected to after the purchase is complete. You can embed /// {CHECKOUT_SESSION_ID} into the URL to have the id of the completed checkout + /// href="https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-id">checkout /// session included. /// [JsonProperty("url")] diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs index da38cdecbd..c05f92dfdb 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -109,9 +109,9 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata public PaymentLinkCustomTextOptions CustomText { get; set; } /// - /// Configures whether checkout + /// Configures whether checkout /// sessions created by this payment link create a Customer. + /// href="https://docs.stripe.com/api/customers">Customer. /// One of: always, or if_required. /// [JsonProperty("customer_creation")] @@ -150,12 +150,12 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata public List LineItems { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. Metadata /// associated with this Payment Link will automatically be copied to checkout sessions created by + /// href="https://docs.stripe.com/api/checkout/sessions">checkout sessions created by /// this payment link. /// [JsonProperty("metadata")] @@ -185,7 +185,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// /// A list of optional items the customer can add to their order at checkout. Use this /// parameter to pass one-time or recurring Prices. There is a maximum of 10 optional + /// href="https://docs.stripe.com/api/prices">Prices. There is a maximum of 10 optional /// items allowed on a payment link, and the existing limits on the number of line items /// allowed on a payment link apply to the combined number of line items and optional items. /// There is a maximum of 20 combined line items and optional items. @@ -215,7 +215,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// Can only be set in subscription mode. Defaults to always. /// /// If you'd like information on how to collect a payment method outside of Checkout, read - /// the guide on configuring + /// the guide on configuring /// subscriptions with a free trial. /// One of: always, or if_required. /// @@ -230,15 +230,15 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// will dynamically show relevant payment methods from your payment method settings /// (20+ payment methods supported). + /// href="https://docs.stripe.com/payments/payment-methods/integration-options#payment-method-product-support">supported). /// One of: affirm, afterpay_clearpay, alipay, alma, /// au_becs_debit, bacs_debit, bancontact, billie, blik, /// boleto, card, cashapp, eps, fpx, giropay, /// grabpay, ideal, klarna, konbini, link, mb_way, /// mobilepay, multibanco, oxxo, p24, pay_by_bank, - /// paynow, paypal, pix, promptpay, satispay, - /// sepa_debit, sofort, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// paynow, paypal, payto, pix, promptpay, + /// satispay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER @@ -277,7 +277,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// /// The shipping rate options to apply to checkout sessions created by + /// href="https://docs.stripe.com/api/checkout/sessions">checkout sessions created by /// this payment link. /// [JsonProperty("shipping_options")] @@ -290,7 +290,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// Describes the type of transaction being performed in order to customize relevant text on /// the page, such as the submit button. Changing this value will also affect the hostname /// in the url + /// href="https://docs.stripe.com/api/payment_links/payment_links/object#url">url /// property (example: donate.stripe.com). /// One of: auto, book, donate, pay, or subscribe. /// diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataOptions.cs index 073ec417d2..acf7810cdd 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataOptions.cs @@ -56,7 +56,7 @@ public class PaymentLinkInvoiceCreationInvoiceDataOptions : INestedOptions, IHas public PaymentLinkInvoiceCreationInvoiceDataIssuerOptions Issuer { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs index 9d3e22c23a..734e3393f0 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs @@ -28,8 +28,8 @@ public class PaymentLinkLineItemOptions : INestedOptions, IHasId public string Id { get; set; } /// - /// The ID of the Price or Plan object. One of price or + /// The ID of the Price or Plan object. One of price or /// price_data is required. /// [JsonProperty("price")] @@ -39,7 +39,7 @@ public class PaymentLinkLineItemOptions : INestedOptions, IHasId public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataOptions.cs index 7b30933c1c..cc45e2f499 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataOptions.cs @@ -51,7 +51,7 @@ public class PaymentLinkLineItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataOptions.cs index 7cf9d31944..1e9f854fd5 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataOptions.cs @@ -31,7 +31,7 @@ public class PaymentLinkLineItemPriceDataProductDataOptions : INestedOptions, IH public List Images { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -52,7 +52,7 @@ public class PaymentLinkLineItemPriceDataProductDataOptions : INestedOptions, IH public string Name { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemOptions.cs index 4c107d22c1..afb7f1269f 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemOptions.cs @@ -19,8 +19,8 @@ public class PaymentLinkOptionalItemOptions : INestedOptions public PaymentLinkOptionalItemAdjustableQuantityOptions AdjustableQuantity { get; set; } /// - /// The ID of the Price or Plan object. + /// The ID of the Price or Plan object. /// [JsonProperty("price")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkPaymentIntentDataOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkPaymentIntentDataOptions.cs index 46dd7374b1..5903c72338 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkPaymentIntentDataOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkPaymentIntentDataOptions.cs @@ -29,9 +29,9 @@ public class PaymentLinkPaymentIntentDataOptions : INestedOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that will + /// Set of key-value pairs that will /// declaratively set metadata on Payment Intents generated from + /// href="https://docs.stripe.com/api/payment_intents">Payment Intents generated from /// this payment link. Unlike object-level metadata, this field is declarative. Updates will /// clear prior values. /// @@ -43,7 +43,7 @@ public class PaymentLinkPaymentIntentDataOptions : INestedOptions, IHasMetadata /// /// Indicates that you intend to make future + /// href="https://docs.stripe.com/payments/payment-intents#future-usage">make future /// payments with the payment method collected by this Checkout Session. /// /// When setting this to on_session, Checkout will show a notice to the customer that @@ -102,7 +102,7 @@ public class PaymentLinkPaymentIntentDataOptions : INestedOptions, IHasMetadata /// /// A string that identifies the resulting payment as part of a group. See the /// PaymentIntents use case for + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers">use case for /// connected accounts for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataOptions.cs index 44f551d4d7..2a27f04270 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataOptions.cs @@ -30,9 +30,9 @@ public class PaymentLinkSubscriptionDataOptions : INestedOptions, IHasMetadata public PaymentLinkSubscriptionDataInvoiceSettingsOptions InvoiceSettings { get; set; } /// - /// Set of key-value pairs that will + /// Set of key-value pairs that will /// declaratively set metadata on Subscriptions generated from this + /// href="https://docs.stripe.com/api/subscriptions">Subscriptions generated from this /// payment link. Unlike object-level metadata, this field is declarative. Updates will /// clear prior values. /// diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index 8b17f66811..195ae4e37a 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -76,9 +76,9 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata public PaymentLinkCustomTextOptions CustomText { get; set; } /// - /// Configures whether checkout + /// Configures whether checkout /// sessions created by this payment link create a Customer. + /// href="https://docs.stripe.com/api/customers">Customer. /// One of: always, or if_required. /// [JsonProperty("customer_creation")] @@ -117,12 +117,12 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata public List LineItems { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. Metadata /// associated with this Payment Link will automatically be copied to checkout sessions created by + /// href="https://docs.stripe.com/api/checkout/sessions">checkout sessions created by /// this payment link. /// [JsonProperty("metadata")] @@ -159,7 +159,7 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata /// Can only be set in subscription mode. Defaults to always. /// /// If you'd like information on how to collect a payment method outside of Checkout, read - /// the guide on configuring + /// the guide on configuring /// subscriptions with a free trial. /// One of: always, or if_required. /// @@ -179,9 +179,9 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata /// boleto, card, cashapp, eps, fpx, giropay, /// grabpay, ideal, klarna, konbini, link, mb_way, /// mobilepay, multibanco, oxxo, p24, pay_by_bank, - /// paynow, paypal, pix, promptpay, satispay, - /// sepa_debit, sofort, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// paynow, paypal, payto, pix, promptpay, + /// satispay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER @@ -222,7 +222,7 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata /// Describes the type of transaction being performed in order to customize relevant text on /// the page, such as the submit button. Changing this value will also affect the hostname /// in the url + /// href="https://docs.stripe.com/api/payment_links/payment_links/object#url">url /// property (example: donate.stripe.com). /// One of: auto, book, donate, pay, or subscribe. /// diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs index 81d38f7543..5a7c60a602 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs @@ -10,7 +10,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions { /// /// Canadian pre-authorized debit payments, check this page for more details like + /// href="https://docs.stripe.com/payments/acss-debit">page for more details like /// country availability. /// [JsonProperty("acss_debit")] @@ -23,7 +23,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// Affirm gives your customers a way to split /// purchases over a series of payments. Depending on the purchase, they can pay with four /// interest-free payments (Split Pay) or pay over a longer term (Installments), which might - /// include interest. Check this page + /// include interest. Check this page /// for more details like country availability. /// [JsonProperty("affirm")] @@ -34,7 +34,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Afterpay gives your customers a way to pay for purchases in installments, check this page for more details like + /// href="https://docs.stripe.com/payments/afterpay-clearpay">page for more details like /// country availability. Afterpay is particularly popular among businesses selling fashion, /// beauty, and sports products. /// @@ -49,7 +49,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// Alipay users can pay on the web or on a mobile device using login credentials or their /// Alipay app. Alipay has a low dispute rate and reduces fraud by authenticating payments /// using the customer's login credentials. Check this page for more details. + /// href="https://docs.stripe.com/payments/alipay">page for more details. /// [JsonProperty("alipay")] #if NET6_0_OR_GREATER @@ -82,7 +82,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or /// macOS Sierra. There are no additional fees to process Apple Pay payments, and the pricing is the same as other card transactions. - /// Check this page for more details. + /// Check this page for more details. /// [JsonProperty("apple_pay")] #if NET6_0_OR_GREATER @@ -103,7 +103,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit /// payments from customers with an Australian bank account. Check this page for more details. + /// href="https://docs.stripe.com/payments/au-becs-debit">page for more details. /// [JsonProperty("au_becs_debit")] #if NET6_0_OR_GREATER @@ -114,7 +114,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK /// bank account, check this page for more + /// href="https://docs.stripe.com/payments/payment-methods/bacs-debit">page for more /// details. /// [JsonProperty("bacs_debit")] @@ -125,10 +125,10 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Bancontact is the most popular online payment method in Belgium, with over 15 million - /// cards in circulation. Customers use + /// cards in circulation. Customers use /// a Bancontact card or mobile app linked to a Belgian bank account to make online payments /// that are secure, guaranteed, and confirmed immediately. Check this page for more details. + /// href="https://docs.stripe.com/payments/bancontact">page for more details. /// [JsonProperty("bancontact")] #if NET6_0_OR_GREATER @@ -152,11 +152,11 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions public PaymentMethodConfigurationBillieOptions Billie { get; set; } /// - /// BLIK is a single + /// BLIK is a single /// use payment method that requires customers to authenticate their payments. When /// customers want to pay online using BLIK, they request a six-digit code from their /// banking application and enter it into the payment collection form. Check this page for more details. + /// href="https://docs.stripe.com/payments/blik">page for more details. /// [JsonProperty("blik")] #if NET6_0_OR_GREATER @@ -166,7 +166,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Boleto is an official (regulated by the Central Bank of Brazil) payment method in - /// Brazil. Check this page for more + /// Brazil. Check this page for more /// details. /// [JsonProperty("boleto")] @@ -189,7 +189,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// Cartes Bancaires is France's local card network. More than 95% of these cards are /// co-branded with either Visa or Mastercard, meaning you can process these cards over /// either Cartes Bancaires or the Visa or Mastercard networks. Check this page for more details. + /// href="https://docs.stripe.com/payments/cartes-bancaires">page for more details. /// [JsonProperty("cartes_bancaires")] #if NET6_0_OR_GREATER @@ -200,7 +200,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Cash App is a popular consumer app in the US that allows customers to bank, invest, /// send, and receive money using their digital wallet. Check this page for more details. + /// href="https://docs.stripe.com/payments/cash-app-pay">page for more details. /// [JsonProperty("cashapp")] #if NET6_0_OR_GREATER @@ -209,7 +209,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions public PaymentMethodConfigurationCashappOptions Cashapp { get; set; } /// - /// Stablecoin payments + /// Stablecoin payments /// enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom /// and Metamask. /// @@ -220,9 +220,9 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions public PaymentMethodConfigurationCryptoOptions Crypto { get; set; } /// - /// Uses a customer’s cash + /// Uses a customer’s cash /// balance for the payment. The cash balance can be funded via a bank transfer. Check - /// this page for more + /// this page for more /// details. /// [JsonProperty("customer_balance")] @@ -235,7 +235,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// EPS is an Austria-based payment method that allows customers to complete transactions /// online using their bank credentials. EPS is supported by all Austrian banks and is /// accepted by over 80% of Austrian online retailers. Check this page for more details. + /// href="https://docs.stripe.com/payments/eps">page for more details. /// [JsonProperty("eps")] #if NET6_0_OR_GREATER @@ -250,7 +250,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// institutions are members of the PayNet Group, which owns and operates FPX. It is one of /// the most popular online payment methods in Malaysia, with nearly 90 million transactions /// in 2018 according to BNM. Check this page for more details. + /// href="https://docs.stripe.com/payments/fpx">page for more details. /// [JsonProperty("fpx")] #if NET6_0_OR_GREATER @@ -262,7 +262,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// Meal vouchers in France, or “titres-restaurant”, is a local benefits program commonly /// offered by employers for their employees to purchase prepared food and beverages on /// working days. Check this page for more + /// href="https://docs.stripe.com/payments/benefits/fr-meal-vouchers">page for more /// details. /// [JsonProperty("fr_meal_voucher_conecs")] @@ -277,7 +277,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// with funds debited from their bank account. Depending on their bank, customers confirm /// payments on giropay using a second factor of authentication or a PIN. giropay accounts /// for 10% of online checkouts in Germany. Check this page for more details. + /// href="https://docs.stripe.com/payments/giropay">page for more details. /// [JsonProperty("giropay")] #if NET6_0_OR_GREATER @@ -290,7 +290,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// debit card saved to their Google Account, including those from Google Play, YouTube, /// Chrome, or an Android device. Use the Google Pay API to request any credit or debit card /// stored in your customer's Google account. Check this page for more details. + /// href="https://docs.stripe.com/google-pay">page for more details. /// [JsonProperty("google_pay")] #if NET6_0_OR_GREATER @@ -302,7 +302,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// GrabPay is a payment method developed by Grab. GrabPay is a digital /// wallet - customers maintain a balance in their wallets that they pay out with. Check - /// this page for more details. + /// this page for more details. /// [JsonProperty("grabpay")] #if NET6_0_OR_GREATER @@ -315,7 +315,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// transactions online using their bank credentials. All major Dutch banks are members of /// Currence, the scheme that operates iDEAL, making it the most popular online payment /// method in the Netherlands with a share of online transactions close to 55%. Check this - /// page for more details. + /// page for more details. /// [JsonProperty("ideal")] #if NET6_0_OR_GREATER @@ -348,11 +348,11 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Klarna gives customers a range of payment options + /// href="https://docs.stripe.com/payments/klarna#payment-options">payment options /// during checkout. Available payment options vary depending on the customer's billing /// address and the transaction amount. These payment options make it convenient for /// customers to purchase items in all price ranges. Check this page for more details. + /// href="https://docs.stripe.com/payments/klarna">page for more details. /// [JsonProperty("klarna")] #if NET6_0_OR_GREATER @@ -362,7 +362,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Konbini allows customers in Japan to pay for bills and online purchases at convenience - /// stores with cash. Check this page + /// stores with cash. Check this page /// for more details. /// [JsonProperty("konbini")] @@ -381,7 +381,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions public PaymentMethodConfigurationKrCardOptions KrCard { get; set; } /// - /// Link is a payment method network. + /// Link is a payment method network. /// With Link, users save their payment details once, then reuse that information to pay /// with one click for any business on the network. /// @@ -394,7 +394,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// MB WAY is the most popular wallet in Portugal. After entering their phone number in your /// checkout, customers approve the payment directly in their MB WAY app. Check this page for more details. + /// href="https://docs.stripe.com/payments/mb-way">page for more details. /// [JsonProperty("mb_way")] #if NET6_0_OR_GREATER @@ -404,11 +404,11 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// MobilePay is a single-use card wallet + /// href="https://docs.stripe.com/payments/payment-methods#usage">single-use card wallet /// payment method used in Denmark and Finland. It allows customers to authenticate + /// href="https://docs.stripe.com/payments/payment-methods#customer-actions">authenticate /// and approve payments using the MobilePay app. Check this page for more details. + /// href="https://docs.stripe.com/payments/mobilepay">page for more details. /// [JsonProperty("mobilepay")] #if NET6_0_OR_GREATER @@ -448,7 +448,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct /// debit payments from customers with a New Zeland bank account. Check this page for more details. + /// href="https://docs.stripe.com/payments/nz-bank-account">page for more details. /// [JsonProperty("nz_bank_account")] #if NET6_0_OR_GREATER @@ -460,7 +460,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// OXXO is a Mexican chain of convenience stores with thousands of locations across Latin /// America and represents nearly 20% of online transactions in Mexico. OXXO allows /// customers to pay bills and online purchases in-store with cash. Check this page for more details. + /// href="https://docs.stripe.com/payments/oxxo">page for more details. /// [JsonProperty("oxxo")] #if NET6_0_OR_GREATER @@ -472,7 +472,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// Przelewy24 is a Poland-based payment method aggregator that allows customers to complete /// transactions online using bank transfers and other methods. Bank transfers account for /// 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with - /// over 165 banks. Check this page for + /// over 165 banks. Check this page for /// more details. /// [JsonProperty("p24")] @@ -515,7 +515,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// PayNow is a Singapore-based payment method that allows customers to make a payment using /// their preferred app from participating banks and participating non-bank financial - /// institutions. Check this page for + /// institutions. Check this page for /// more details. /// [JsonProperty("paynow")] @@ -527,7 +527,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// PayPal, a digital wallet popular with customers in Europe, allows your customers /// worldwide to pay using their PayPal account. Check this page for more details. + /// href="https://docs.stripe.com/payments/paypal">page for more details. /// [JsonProperty("paypal")] #if NET6_0_OR_GREATER @@ -535,6 +535,18 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions #endif public PaymentMethodConfigurationPaypalOptions Paypal { get; set; } + /// + /// PayTo is a real-time payment + /// method that enables customers in Australia to pay by providing their bank account + /// details. Customers must accept a mandate authorizing you to debit their account. Check + /// this page for more details. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public PaymentMethodConfigurationPaytoOptions Payto { get; set; } + /// /// Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate /// and approve payments by scanning a QR code in their preferred banking app. Check this /// PromptPay is a Thailand-based payment method that allows customers to make a payment /// using their preferred app from participating banks. Check this page for more details. + /// href="https://docs.stripe.com/payments/promptpay">page for more details. /// [JsonProperty("promptpay")] #if NET6_0_OR_GREATER @@ -600,7 +612,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// Payments Area (SEPA) is an initiative of the European Union to simplify payments /// within and across member countries. SEPA established and enforced banking standards to /// allow for the direct debiting of every EUR-denominated bank account within the SEPA - /// region, check this page for + /// region, check this page for /// more details. /// [JsonProperty("sepa_debit")] @@ -614,7 +626,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// href="https://stripe.com/docs/payments/payment-intents">Payment Intents API—a single /// integration path for creating payments using any supported method—to accept Sofort payments from customers. Check this page for more details. + /// href="https://docs.stripe.com/payments/sofort">page for more details. /// [JsonProperty("sofort")] #if NET6_0_OR_GREATER @@ -623,11 +635,11 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions public PaymentMethodConfigurationSofortOptions Sofort { get; set; } /// - /// Swish is a real-time payment + /// Swish is a real-time payment /// method popular in Sweden. It allows customers to authenticate + /// href="https://docs.stripe.com/payments/payment-methods#customer-actions">authenticate /// and approve payments using the Swish mobile app and the Swedish BankID mobile app. - /// Check this page for more details. + /// Check this page for more details. /// [JsonProperty("swish")] #if NET6_0_OR_GREATER @@ -650,7 +662,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// Stripe users in the United States can accept ACH direct debit payments from customers /// with a US bank account using the Automated Clearing House (ACH) payments system operated /// by Nacha. Check this page for more details. + /// href="https://docs.stripe.com/payments/ach-direct-debit">page for more details. /// [JsonProperty("us_bank_account")] #if NET6_0_OR_GREATER @@ -663,7 +675,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// active users. Chinese consumers can use WeChat Pay to pay for goods and services inside /// of businesses' apps and websites. WeChat Pay users buy most frequently in gaming, /// e-commerce, travel, online education, and food/nutrition. Check this page for more details. + /// href="https://docs.stripe.com/payments/wechat-pay">page for more details. /// [JsonProperty("wechat_pay")] #if NET6_0_OR_GREATER @@ -673,7 +685,7 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions /// /// Zip gives your customers a way to split purchases over a series of payments. Check this - /// page for more details like country + /// page for more details like country /// availability. /// [JsonProperty("zip")] diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreferenceOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreferenceOptions.cs new file mode 100644 index 0000000000..6b4d9f53d3 --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoDisplayPreferenceOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentMethodConfigurationPaytoDisplayPreferenceOptions : INestedOptions + { + /// + /// The account's preference for whether or not to display this payment method. + /// One of: none, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoOptions.cs new file mode 100644 index 0000000000..e65fcdc6cc --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPaytoOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentMethodConfigurationPaytoOptions : INestedOptions + { + /// + /// Whether or not the payment method should be displayed. + /// + [JsonProperty("display_preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_preference")] +#endif + public PaymentMethodConfigurationPaytoDisplayPreferenceOptions DisplayPreference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs index 7d26ea1f5f..cf6507a20d 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs @@ -10,7 +10,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions { /// /// Canadian pre-authorized debit payments, check this page for more details like + /// href="https://docs.stripe.com/payments/acss-debit">page for more details like /// country availability. /// [JsonProperty("acss_debit")] @@ -32,7 +32,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// Affirm gives your customers a way to split /// purchases over a series of payments. Depending on the purchase, they can pay with four /// interest-free payments (Split Pay) or pay over a longer term (Installments), which might - /// include interest. Check this page + /// include interest. Check this page /// for more details like country availability. /// [JsonProperty("affirm")] @@ -43,7 +43,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Afterpay gives your customers a way to pay for purchases in installments, check this page for more details like + /// href="https://docs.stripe.com/payments/afterpay-clearpay">page for more details like /// country availability. Afterpay is particularly popular among businesses selling fashion, /// beauty, and sports products. /// @@ -58,7 +58,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// Alipay users can pay on the web or on a mobile device using login credentials or their /// Alipay app. Alipay has a low dispute rate and reduces fraud by authenticating payments /// using the customer's login credentials. Check this page for more details. + /// href="https://docs.stripe.com/payments/alipay">page for more details. /// [JsonProperty("alipay")] #if NET6_0_OR_GREATER @@ -91,7 +91,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or /// macOS Sierra. There are no additional fees to process Apple Pay payments, and the pricing is the same as other card transactions. - /// Check this page for more details. + /// Check this page for more details. /// [JsonProperty("apple_pay")] #if NET6_0_OR_GREATER @@ -112,7 +112,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit /// payments from customers with an Australian bank account. Check this page for more details. + /// href="https://docs.stripe.com/payments/au-becs-debit">page for more details. /// [JsonProperty("au_becs_debit")] #if NET6_0_OR_GREATER @@ -123,7 +123,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK /// bank account, check this page for more + /// href="https://docs.stripe.com/payments/payment-methods/bacs-debit">page for more /// details. /// [JsonProperty("bacs_debit")] @@ -134,10 +134,10 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Bancontact is the most popular online payment method in Belgium, with over 15 million - /// cards in circulation. Customers use + /// cards in circulation. Customers use /// a Bancontact card or mobile app linked to a Belgian bank account to make online payments /// that are secure, guaranteed, and confirmed immediately. Check this page for more details. + /// href="https://docs.stripe.com/payments/bancontact">page for more details. /// [JsonProperty("bancontact")] #if NET6_0_OR_GREATER @@ -161,11 +161,11 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions public PaymentMethodConfigurationBillieOptions Billie { get; set; } /// - /// BLIK is a single + /// BLIK is a single /// use payment method that requires customers to authenticate their payments. When /// customers want to pay online using BLIK, they request a six-digit code from their /// banking application and enter it into the payment collection form. Check this page for more details. + /// href="https://docs.stripe.com/payments/blik">page for more details. /// [JsonProperty("blik")] #if NET6_0_OR_GREATER @@ -175,7 +175,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Boleto is an official (regulated by the Central Bank of Brazil) payment method in - /// Brazil. Check this page for more + /// Brazil. Check this page for more /// details. /// [JsonProperty("boleto")] @@ -198,7 +198,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// Cartes Bancaires is France's local card network. More than 95% of these cards are /// co-branded with either Visa or Mastercard, meaning you can process these cards over /// either Cartes Bancaires or the Visa or Mastercard networks. Check this page for more details. + /// href="https://docs.stripe.com/payments/cartes-bancaires">page for more details. /// [JsonProperty("cartes_bancaires")] #if NET6_0_OR_GREATER @@ -209,7 +209,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Cash App is a popular consumer app in the US that allows customers to bank, invest, /// send, and receive money using their digital wallet. Check this page for more details. + /// href="https://docs.stripe.com/payments/cash-app-pay">page for more details. /// [JsonProperty("cashapp")] #if NET6_0_OR_GREATER @@ -218,7 +218,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions public PaymentMethodConfigurationCashappOptions Cashapp { get; set; } /// - /// Stablecoin payments + /// Stablecoin payments /// enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom /// and Metamask. /// @@ -229,9 +229,9 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions public PaymentMethodConfigurationCryptoOptions Crypto { get; set; } /// - /// Uses a customer’s cash + /// Uses a customer’s cash /// balance for the payment. The cash balance can be funded via a bank transfer. Check - /// this page for more + /// this page for more /// details. /// [JsonProperty("customer_balance")] @@ -244,7 +244,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// EPS is an Austria-based payment method that allows customers to complete transactions /// online using their bank credentials. EPS is supported by all Austrian banks and is /// accepted by over 80% of Austrian online retailers. Check this page for more details. + /// href="https://docs.stripe.com/payments/eps">page for more details. /// [JsonProperty("eps")] #if NET6_0_OR_GREATER @@ -259,7 +259,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// institutions are members of the PayNet Group, which owns and operates FPX. It is one of /// the most popular online payment methods in Malaysia, with nearly 90 million transactions /// in 2018 according to BNM. Check this page for more details. + /// href="https://docs.stripe.com/payments/fpx">page for more details. /// [JsonProperty("fpx")] #if NET6_0_OR_GREATER @@ -271,7 +271,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// Meal vouchers in France, or “titres-restaurant”, is a local benefits program commonly /// offered by employers for their employees to purchase prepared food and beverages on /// working days. Check this page for more + /// href="https://docs.stripe.com/payments/benefits/fr-meal-vouchers">page for more /// details. /// [JsonProperty("fr_meal_voucher_conecs")] @@ -286,7 +286,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// with funds debited from their bank account. Depending on their bank, customers confirm /// payments on giropay using a second factor of authentication or a PIN. giropay accounts /// for 10% of online checkouts in Germany. Check this page for more details. + /// href="https://docs.stripe.com/payments/giropay">page for more details. /// [JsonProperty("giropay")] #if NET6_0_OR_GREATER @@ -299,7 +299,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// debit card saved to their Google Account, including those from Google Play, YouTube, /// Chrome, or an Android device. Use the Google Pay API to request any credit or debit card /// stored in your customer's Google account. Check this page for more details. + /// href="https://docs.stripe.com/google-pay">page for more details. /// [JsonProperty("google_pay")] #if NET6_0_OR_GREATER @@ -311,7 +311,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// GrabPay is a payment method developed by Grab. GrabPay is a digital /// wallet - customers maintain a balance in their wallets that they pay out with. Check - /// this page for more details. + /// this page for more details. /// [JsonProperty("grabpay")] #if NET6_0_OR_GREATER @@ -324,7 +324,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// transactions online using their bank credentials. All major Dutch banks are members of /// Currence, the scheme that operates iDEAL, making it the most popular online payment /// method in the Netherlands with a share of online transactions close to 55%. Check this - /// page for more details. + /// page for more details. /// [JsonProperty("ideal")] #if NET6_0_OR_GREATER @@ -357,11 +357,11 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Klarna gives customers a range of payment options + /// href="https://docs.stripe.com/payments/klarna#payment-options">payment options /// during checkout. Available payment options vary depending on the customer's billing /// address and the transaction amount. These payment options make it convenient for /// customers to purchase items in all price ranges. Check this page for more details. + /// href="https://docs.stripe.com/payments/klarna">page for more details. /// [JsonProperty("klarna")] #if NET6_0_OR_GREATER @@ -371,7 +371,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Konbini allows customers in Japan to pay for bills and online purchases at convenience - /// stores with cash. Check this page + /// stores with cash. Check this page /// for more details. /// [JsonProperty("konbini")] @@ -390,7 +390,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions public PaymentMethodConfigurationKrCardOptions KrCard { get; set; } /// - /// Link is a payment method network. + /// Link is a payment method network. /// With Link, users save their payment details once, then reuse that information to pay /// with one click for any business on the network. /// @@ -403,7 +403,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// MB WAY is the most popular wallet in Portugal. After entering their phone number in your /// checkout, customers approve the payment directly in their MB WAY app. Check this page for more details. + /// href="https://docs.stripe.com/payments/mb-way">page for more details. /// [JsonProperty("mb_way")] #if NET6_0_OR_GREATER @@ -413,11 +413,11 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// MobilePay is a single-use card wallet + /// href="https://docs.stripe.com/payments/payment-methods#usage">single-use card wallet /// payment method used in Denmark and Finland. It allows customers to authenticate + /// href="https://docs.stripe.com/payments/payment-methods#customer-actions">authenticate /// and approve payments using the MobilePay app. Check this page for more details. + /// href="https://docs.stripe.com/payments/mobilepay">page for more details. /// [JsonProperty("mobilepay")] #if NET6_0_OR_GREATER @@ -457,7 +457,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct /// debit payments from customers with a New Zeland bank account. Check this page for more details. + /// href="https://docs.stripe.com/payments/nz-bank-account">page for more details. /// [JsonProperty("nz_bank_account")] #if NET6_0_OR_GREATER @@ -469,7 +469,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// OXXO is a Mexican chain of convenience stores with thousands of locations across Latin /// America and represents nearly 20% of online transactions in Mexico. OXXO allows /// customers to pay bills and online purchases in-store with cash. Check this page for more details. + /// href="https://docs.stripe.com/payments/oxxo">page for more details. /// [JsonProperty("oxxo")] #if NET6_0_OR_GREATER @@ -481,7 +481,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// Przelewy24 is a Poland-based payment method aggregator that allows customers to complete /// transactions online using bank transfers and other methods. Bank transfers account for /// 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with - /// over 165 banks. Check this page for + /// over 165 banks. Check this page for /// more details. /// [JsonProperty("p24")] @@ -515,7 +515,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// PayNow is a Singapore-based payment method that allows customers to make a payment using /// their preferred app from participating banks and participating non-bank financial - /// institutions. Check this page for + /// institutions. Check this page for /// more details. /// [JsonProperty("paynow")] @@ -527,7 +527,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// PayPal, a digital wallet popular with customers in Europe, allows your customers /// worldwide to pay using their PayPal account. Check this page for more details. + /// href="https://docs.stripe.com/payments/paypal">page for more details. /// [JsonProperty("paypal")] #if NET6_0_OR_GREATER @@ -535,6 +535,18 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions #endif public PaymentMethodConfigurationPaypalOptions Paypal { get; set; } + /// + /// PayTo is a real-time payment + /// method that enables customers in Australia to pay by providing their bank account + /// details. Customers must accept a mandate authorizing you to debit their account. Check + /// this page for more details. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public PaymentMethodConfigurationPaytoOptions Payto { get; set; } + /// /// Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate /// and approve payments by scanning a QR code in their preferred banking app. Check this /// PromptPay is a Thailand-based payment method that allows customers to make a payment /// using their preferred app from participating banks. Check this page for more details. + /// href="https://docs.stripe.com/payments/promptpay">page for more details. /// [JsonProperty("promptpay")] #if NET6_0_OR_GREATER @@ -600,7 +612,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// Payments Area (SEPA) is an initiative of the European Union to simplify payments /// within and across member countries. SEPA established and enforced banking standards to /// allow for the direct debiting of every EUR-denominated bank account within the SEPA - /// region, check this page for + /// region, check this page for /// more details. /// [JsonProperty("sepa_debit")] @@ -614,7 +626,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// href="https://stripe.com/docs/payments/payment-intents">Payment Intents API—a single /// integration path for creating payments using any supported method—to accept Sofort payments from customers. Check this page for more details. + /// href="https://docs.stripe.com/payments/sofort">page for more details. /// [JsonProperty("sofort")] #if NET6_0_OR_GREATER @@ -623,11 +635,11 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions public PaymentMethodConfigurationSofortOptions Sofort { get; set; } /// - /// Swish is a real-time payment + /// Swish is a real-time payment /// method popular in Sweden. It allows customers to authenticate + /// href="https://docs.stripe.com/payments/payment-methods#customer-actions">authenticate /// and approve payments using the Swish mobile app and the Swedish BankID mobile app. - /// Check this page for more details. + /// Check this page for more details. /// [JsonProperty("swish")] #if NET6_0_OR_GREATER @@ -650,7 +662,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// Stripe users in the United States can accept ACH direct debit payments from customers /// with a US bank account using the Automated Clearing House (ACH) payments system operated /// by Nacha. Check this page for more details. + /// href="https://docs.stripe.com/payments/ach-direct-debit">page for more details. /// [JsonProperty("us_bank_account")] #if NET6_0_OR_GREATER @@ -663,7 +675,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// active users. Chinese consumers can use WeChat Pay to pay for goods and services inside /// of businesses' apps and websites. WeChat Pay users buy most frequently in gaming, /// e-commerce, travel, online education, and food/nutrition. Check this page for more details. + /// href="https://docs.stripe.com/payments/wechat-pay">page for more details. /// [JsonProperty("wechat_pay")] #if NET6_0_OR_GREATER @@ -673,7 +685,7 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions /// /// Zip gives your customers a way to split purchases over a series of payments. Check this - /// page for more details like country + /// page for more details like country /// availability. /// [JsonProperty("zip")] diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodAttachOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodAttachOptions.cs index a08bb1ae79..e325e3e0ec 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodAttachOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodAttachOptions.cs @@ -16,5 +16,14 @@ public class PaymentMethodAttachOptions : BaseOptions [STJS.JsonPropertyName("customer")] #endif public string Customer { get; set; } + + /// + /// The ID of the Account representing the customer to which to attach the PaymentMethod. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } } } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs index 4ef04b41be..fc3c00bf27 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs @@ -337,7 +337,7 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata public PaymentMethodMbWayOptions MbWay { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -457,6 +457,16 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata #endif public PaymentMethodPaypalOptions Paypal { get; set; } + /// + /// If this is a payto PaymentMethod, this hash contains details about the PayTo + /// payment method. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public PaymentMethodPaytoOptions Payto { get; set; } + /// /// If this is a pix PaymentMethod, this hash contains details about the Pix payment /// method. @@ -479,7 +489,7 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// /// Options to configure Radar. See Radar Session for more + /// href="https://docs.stripe.com/radar/radar-session">Radar Session for more /// information. /// [JsonProperty("radar_options")] @@ -570,9 +580,9 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// klarna, konbini, kr_card, link, mb_way, /// mobilepay, multibanco, naver_pay, nz_bank_account, /// oxxo, p24, pay_by_bank, payco, paynow, paypal, - /// pix, promptpay, revolut_pay, samsung_pay, satispay, - /// sepa_debit, sofort, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// payto, pix, promptpay, revolut_pay, samsung_pay, + /// satispay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs index 2b791deff2..a897d7da09 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs @@ -12,9 +12,9 @@ public class PaymentMethodIdealOptions : INestedOptions /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs index 60a435e891..046773d26b 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs @@ -8,6 +8,18 @@ namespace Stripe public class PaymentMethodListOptions : ListOptions { + /// + /// This field indicates whether this payment method can be shown again to its customer in a + /// checkout flow. Stripe products such as Checkout and Elements use this field to determine + /// whether a payment method can be shown as a saved payment method in a checkout flow. + /// One of: always, limited, or unspecified. + /// + [JsonProperty("allow_redisplay")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("allow_redisplay")] +#endif + public string AllowRedisplay { get; set; } + /// /// The ID of the customer whose PaymentMethods will be retrieved. /// @@ -17,6 +29,15 @@ public class PaymentMethodListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// The ID of the Account whose PaymentMethods will be retrieved. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Filters the list by the object type field. Unfiltered, the list returns all /// payment method types except custom. If your integration expects only one type of @@ -30,9 +51,9 @@ public class PaymentMethodListOptions : ListOptions /// klarna, konbini, kr_card, link, mb_way, /// mobilepay, multibanco, naver_pay, nz_bank_account, /// oxxo, p24, pay_by_bank, payco, paynow, paypal, - /// pix, promptpay, revolut_pay, samsung_pay, satispay, - /// sepa_debit, sofort, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// payto, pix, promptpay, revolut_pay, samsung_pay, + /// satispay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodPaytoOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodPaytoOptions.cs new file mode 100644 index 0000000000..4ee4212693 --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodPaytoOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentMethodPaytoOptions : INestedOptions + { + /// + /// The account number for the bank account. + /// + [JsonProperty("account_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_number")] +#endif + public string AccountNumber { get; set; } + + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodRadarOptionsOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodRadarOptionsOptions.cs index 86b90fe043..36dcc69add 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodRadarOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodRadarOptionsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentMethodRadarOptionsOptions : INestedOptions { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs index 954de19c99..dba38fbca3 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs @@ -149,10 +149,7 @@ public virtual Task GetAsync(string id, PaymentMethodGetOptions o } /// - ///

Returns a list of PaymentMethods for Treasury flows. If you want to list the - /// PaymentMethods attached to a Customer for payments, you should use the List a Customer’s - /// PaymentMethods API instead.

. + ///

Returns a list of all PaymentMethods.

. ///
public virtual StripeList List(PaymentMethodListOptions options = null, RequestOptions requestOptions = null) { @@ -160,10 +157,7 @@ public virtual StripeList List(PaymentMethodListOptions options = } /// - ///

Returns a list of PaymentMethods for Treasury flows. If you want to list the - /// PaymentMethods attached to a Customer for payments, you should use the List a Customer’s - /// PaymentMethods API instead.

. + ///

Returns a list of all PaymentMethods.

. ///
public virtual Task> ListAsync(PaymentMethodListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -171,10 +165,7 @@ public virtual Task> ListAsync(PaymentMethodListOption } /// - ///

Returns a list of PaymentMethods for Treasury flows. If you want to list the - /// PaymentMethods attached to a Customer for payments, you should use the List a Customer’s - /// PaymentMethods API instead.

. + ///

Returns a list of all PaymentMethods.

. ///
public virtual IEnumerable ListAutoPaging(PaymentMethodListOptions options = null, RequestOptions requestOptions = null) { @@ -182,10 +173,7 @@ public virtual IEnumerable ListAutoPaging(PaymentMethodListOption } /// - ///

Returns a list of PaymentMethods for Treasury flows. If you want to list the - /// PaymentMethods attached to a Customer for payments, you should use the List a Customer’s - /// PaymentMethods API instead.

. + ///

Returns a list of all PaymentMethods.

. ///
public virtual IAsyncEnumerable ListAutoPagingAsync(PaymentMethodListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs index fa8eeaa363..51eaffc379 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs @@ -42,7 +42,7 @@ public class PaymentMethodUpdateOptions : BaseOptions, IHasMetadata public PaymentMethodCardOptions Card { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -53,6 +53,16 @@ public class PaymentMethodUpdateOptions : BaseOptions, IHasMetadata #endif public Dictionary Metadata { get; set; } + /// + /// If this is a payto PaymentMethod, this hash contains details about the PayTo + /// payment method. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public PaymentMethodPaytoOptions Payto { get; set; } + /// /// If this is an us_bank_account PaymentMethod, this hash contains details about the /// US bank account payment method. diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountOptions.cs index 40498c8f74..3ff97ae645 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountOptions.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountOptions : INestedOptions /// /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountRequestedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountRequestedOptions.cs index d2143db3b8..1bd026b747 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountRequestedOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordAmountRequestedOptions.cs @@ -21,7 +21,7 @@ public class PaymentRecordAmountRequestedOptions : INestedOptions /// /// A positive integer representing the amount in the currency's minor unit. For example, + /// href="https://docs.stripe.com/currencies#zero-decimal">minor unit. For example, /// 100 can represent 1 USD or 100 JPY. /// [JsonProperty("value")] diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptInformationalOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptInformationalOptions.cs index cb7fd5073f..b974caff6a 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptInformationalOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptInformationalOptions.cs @@ -28,7 +28,7 @@ public class PaymentRecordReportPaymentAttemptInformationalOptions : BaseOptions public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptOptions.cs index db9e573be6..c4641888c5 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptOptions.cs @@ -50,7 +50,7 @@ public class PaymentRecordReportPaymentAttemptOptions : BaseOptions, IHasMetadat public DateTime? InitiatedAt { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentOptions.cs index cb9381b6f5..cc700d7614 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentOptions.cs @@ -78,7 +78,7 @@ public class PaymentRecordReportPaymentOptions : BaseOptions, IHasMetadata public DateTime? InitiatedAt { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportRefundOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportRefundOptions.cs index 905aa3aa2e..43e65a57b1 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportRefundOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportRefundOptions.cs @@ -13,7 +13,7 @@ public class PaymentRecordReportRefundOptions : BaseOptions, IHasMetadata { /// /// A positive integer in the smallest currency unit + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit /// representing how much of this payment to refund. Can refund only up to the remaining, /// unrefunded amount of the payment. /// @@ -35,7 +35,7 @@ public class PaymentRecordReportRefundOptions : BaseOptions, IHasMetadata public DateTime? InitiatedAt { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Payouts/PayoutCreateOptions.cs b/src/Stripe.net/Services/Payouts/PayoutCreateOptions.cs index c67f635aa7..89064d4403 100644 --- a/src/Stripe.net/Services/Payouts/PayoutCreateOptions.cs +++ b/src/Stripe.net/Services/Payouts/PayoutCreateOptions.cs @@ -49,7 +49,7 @@ public class PayoutCreateOptions : BaseOptions, IHasMetadata public string Destination { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Payouts/PayoutReverseOptions.cs b/src/Stripe.net/Services/Payouts/PayoutReverseOptions.cs index 96dac0b073..34c0196775 100644 --- a/src/Stripe.net/Services/Payouts/PayoutReverseOptions.cs +++ b/src/Stripe.net/Services/Payouts/PayoutReverseOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class PayoutReverseOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Payouts/PayoutUpdateOptions.cs b/src/Stripe.net/Services/Payouts/PayoutUpdateOptions.cs index e6580e0549..0f8965d601 100644 --- a/src/Stripe.net/Services/Payouts/PayoutUpdateOptions.cs +++ b/src/Stripe.net/Services/Payouts/PayoutUpdateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class PayoutUpdateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Plans/PlanCreateOptions.cs b/src/Stripe.net/Services/Plans/PlanCreateOptions.cs index 6e0469eb48..6406f56b60 100644 --- a/src/Stripe.net/Services/Plans/PlanCreateOptions.cs +++ b/src/Stripe.net/Services/Plans/PlanCreateOptions.cs @@ -100,7 +100,7 @@ public class PlanCreateOptions : BaseOptions, IHasId, IHasMetadata public long? IntervalCount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -172,7 +172,7 @@ public class PlanCreateOptions : BaseOptions, IHasId, IHasMetadata /// /// Default number of trial days when subscribing a customer to this plan using trial_from_plan=true. + /// href="https://docs.stripe.com/api#create_subscription-trial_from_plan">trial_from_plan=true. /// [JsonProperty("trial_period_days")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Plans/PlanProductOptions.cs b/src/Stripe.net/Services/Plans/PlanProductOptions.cs index 69216835f5..61034129d2 100644 --- a/src/Stripe.net/Services/Plans/PlanProductOptions.cs +++ b/src/Stripe.net/Services/Plans/PlanProductOptions.cs @@ -29,7 +29,7 @@ public class PlanProductOptions : INestedOptions, IHasId, IHasMetadata public string Id { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -65,7 +65,7 @@ public class PlanProductOptions : INestedOptions, IHasId, IHasMetadata public string StatementDescriptor { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Plans/PlanUpdateOptions.cs b/src/Stripe.net/Services/Plans/PlanUpdateOptions.cs index 430457ba7f..b0d546c85a 100644 --- a/src/Stripe.net/Services/Plans/PlanUpdateOptions.cs +++ b/src/Stripe.net/Services/Plans/PlanUpdateOptions.cs @@ -19,7 +19,7 @@ public class PlanUpdateOptions : BaseOptions, IHasMetadata public bool? Active { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -51,7 +51,7 @@ public class PlanUpdateOptions : BaseOptions, IHasMetadata /// /// Default number of trial days when subscribing a customer to this plan using trial_from_plan=true. + /// href="https://docs.stripe.com/api#create_subscription-trial_from_plan">trial_from_plan=true. /// [JsonProperty("trial_period_days")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Prices/PriceCreateOptions.cs b/src/Stripe.net/Services/Prices/PriceCreateOptions.cs index 358ba946da..1526868dec 100644 --- a/src/Stripe.net/Services/Prices/PriceCreateOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceCreateOptions.cs @@ -77,7 +77,7 @@ public class PriceCreateOptions : BaseOptions, IHasMetadata public string LookupKey { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -127,7 +127,7 @@ public class PriceCreateOptions : BaseOptions, IHasMetadata /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Prices/PriceCurrencyOptionsOptions.cs b/src/Stripe.net/Services/Prices/PriceCurrencyOptionsOptions.cs index c522d49265..45190e12a7 100644 --- a/src/Stripe.net/Services/Prices/PriceCurrencyOptionsOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceCurrencyOptionsOptions.cs @@ -21,7 +21,7 @@ public class PriceCurrencyOptionsOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Prices/PriceProductDataOptions.cs b/src/Stripe.net/Services/Prices/PriceProductDataOptions.cs index 88b15646f4..67b32b15a7 100644 --- a/src/Stripe.net/Services/Prices/PriceProductDataOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceProductDataOptions.cs @@ -29,7 +29,7 @@ public class PriceProductDataOptions : INestedOptions, IHasId, IHasMetadata public string Id { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -65,7 +65,7 @@ public class PriceProductDataOptions : INestedOptions, IHasId, IHasMetadata public string StatementDescriptor { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Prices/PriceRecurringOptions.cs b/src/Stripe.net/Services/Prices/PriceRecurringOptions.cs index 080e94a405..688e1eb4ef 100644 --- a/src/Stripe.net/Services/Prices/PriceRecurringOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceRecurringOptions.cs @@ -41,7 +41,7 @@ public class PriceRecurringOptions : INestedOptions /// /// Default number of trial days when subscribing a customer to this price using trial_from_plan=true. + /// href="https://docs.stripe.com/api#create_subscription-trial_from_plan">trial_from_plan=true. /// [JsonProperty("trial_period_days")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs b/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs index 690c1794ec..2bd7855dd2 100644 --- a/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs @@ -40,7 +40,7 @@ public class PriceUpdateOptions : BaseOptions, IHasMetadata public string LookupKey { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -62,7 +62,7 @@ public class PriceUpdateOptions : BaseOptions, IHasMetadata /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/ProductFeatures/ProductFeatureCreateOptions.cs b/src/Stripe.net/Services/ProductFeatures/ProductFeatureCreateOptions.cs index cebbe523e8..239c684a82 100644 --- a/src/Stripe.net/Services/ProductFeatures/ProductFeatureCreateOptions.cs +++ b/src/Stripe.net/Services/ProductFeatures/ProductFeatureCreateOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class ProductFeatureCreateOptions : BaseOptions { /// - /// The ID of the Feature + /// The ID of the Feature /// object attached to this product. /// [JsonProperty("entitlement_feature")] diff --git a/src/Stripe.net/Services/Products/ProductCreateOptions.cs b/src/Stripe.net/Services/Products/ProductCreateOptions.cs index 8089f4db4f..1509074fd1 100644 --- a/src/Stripe.net/Services/Products/ProductCreateOptions.cs +++ b/src/Stripe.net/Services/Products/ProductCreateOptions.cs @@ -19,7 +19,7 @@ public class ProductCreateOptions : BaseOptions, IHasId, IHasMetadata public bool? Active { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object. This Price will be set as the default price for this product. /// [JsonProperty("default_price_data")] @@ -61,7 +61,7 @@ public class ProductCreateOptions : BaseOptions, IHasId, IHasMetadata /// /// A list of up to 15 marketing features for this product. These are displayed in pricing tables. + /// href="https://docs.stripe.com/payments/checkout/pricing-table">pricing tables. /// [JsonProperty("marketing_features")] #if NET6_0_OR_GREATER @@ -70,7 +70,7 @@ public class ProductCreateOptions : BaseOptions, IHasId, IHasMetadata public List MarketingFeatures { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -125,7 +125,7 @@ public class ProductCreateOptions : BaseOptions, IHasId, IHasMetadata public string StatementDescriptor { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Products/ProductDefaultPriceDataCurrencyOptionsOptions.cs b/src/Stripe.net/Services/Products/ProductDefaultPriceDataCurrencyOptionsOptions.cs index 4d7c7e41e2..1f6056d23f 100644 --- a/src/Stripe.net/Services/Products/ProductDefaultPriceDataCurrencyOptionsOptions.cs +++ b/src/Stripe.net/Services/Products/ProductDefaultPriceDataCurrencyOptionsOptions.cs @@ -21,7 +21,7 @@ public class ProductDefaultPriceDataCurrencyOptionsOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Products/ProductDefaultPriceDataOptions.cs b/src/Stripe.net/Services/Products/ProductDefaultPriceDataOptions.cs index 98a5b9993d..b343fb1fdb 100644 --- a/src/Stripe.net/Services/Products/ProductDefaultPriceDataOptions.cs +++ b/src/Stripe.net/Services/Products/ProductDefaultPriceDataOptions.cs @@ -42,7 +42,7 @@ public class ProductDefaultPriceDataOptions : INestedOptions, IHasMetadata public ProductDefaultPriceDataCustomUnitAmountOptions CustomUnitAmount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -64,7 +64,7 @@ public class ProductDefaultPriceDataOptions : INestedOptions, IHasMetadata /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Products/ProductListOptions.cs b/src/Stripe.net/Services/Products/ProductListOptions.cs index 9c78b37223..d54330d9e5 100644 --- a/src/Stripe.net/Services/Products/ProductListOptions.cs +++ b/src/Stripe.net/Services/Products/ProductListOptions.cs @@ -34,8 +34,8 @@ public class ProductListOptions : ListOptions /// /// Only return products with the given IDs. Cannot be used with starting_after or ending_before. + /// href="https://api.stripe.com#list_products-starting_after">starting_after or ending_before. /// [JsonProperty("ids")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Products/ProductUpdateOptions.cs b/src/Stripe.net/Services/Products/ProductUpdateOptions.cs index a4879d7882..e974ca0efa 100644 --- a/src/Stripe.net/Services/Products/ProductUpdateOptions.cs +++ b/src/Stripe.net/Services/Products/ProductUpdateOptions.cs @@ -19,7 +19,7 @@ public class ProductUpdateOptions : BaseOptions, IHasMetadata public bool? Active { get; set; } /// - /// The ID of the Price object that is the + /// The ID of the Price object that is the /// default price for this product. /// [JsonProperty("default_price")] @@ -51,7 +51,7 @@ public class ProductUpdateOptions : BaseOptions, IHasMetadata /// /// A list of up to 15 marketing features for this product. These are displayed in pricing tables. + /// href="https://docs.stripe.com/payments/checkout/pricing-table">pricing tables. /// [JsonProperty("marketing_features")] #if NET6_0_OR_GREATER @@ -60,7 +60,7 @@ public class ProductUpdateOptions : BaseOptions, IHasMetadata public List MarketingFeatures { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -116,7 +116,7 @@ public class ProductUpdateOptions : BaseOptions, IHasMetadata public string StatementDescriptor { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs b/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs index 3f6db89657..ccbab14908 100644 --- a/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs +++ b/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs @@ -34,8 +34,8 @@ public class PromotionCodeCreateOptions : BaseOptions, IHasMetadata public string Code { get; set; } /// - /// The customer that this promotion code can be used by. If not set, the promotion code can - /// be used by all customers. + /// The customer who can use this promotion code. If not set, all customers can use the + /// promotion code. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -43,6 +43,16 @@ public class PromotionCodeCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// The account representing the customer who can use this promotion code. If not set, all + /// customers can use the promotion code. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The timestamp at which this promotion code will expire. If the coupon has specified a /// redeems_by, then this value cannot be after the coupon's redeems_by. @@ -67,7 +77,7 @@ public class PromotionCodeCreateOptions : BaseOptions, IHasMetadata public long? MaxRedemptions { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/PromotionCodes/PromotionCodeListOptions.cs b/src/Stripe.net/Services/PromotionCodes/PromotionCodeListOptions.cs index dec2d4930f..ddf6f8dcd9 100644 --- a/src/Stripe.net/Services/PromotionCodes/PromotionCodeListOptions.cs +++ b/src/Stripe.net/Services/PromotionCodes/PromotionCodeListOptions.cs @@ -58,5 +58,15 @@ public class PromotionCodeListOptions : ListOptions [STJS.JsonPropertyName("customer")] #endif public string Customer { get; set; } + + /// + /// Only return promotion codes that are restricted to this account representing the + /// customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } } } diff --git a/src/Stripe.net/Services/PromotionCodes/PromotionCodeUpdateOptions.cs b/src/Stripe.net/Services/PromotionCodes/PromotionCodeUpdateOptions.cs index 012e18703a..d7d7f2d03b 100644 --- a/src/Stripe.net/Services/PromotionCodes/PromotionCodeUpdateOptions.cs +++ b/src/Stripe.net/Services/PromotionCodes/PromotionCodeUpdateOptions.cs @@ -20,7 +20,7 @@ public class PromotionCodeUpdateOptions : BaseOptions, IHasMetadata public bool? Active { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Quotes/QuoteCreateOptions.cs b/src/Stripe.net/Services/Quotes/QuoteCreateOptions.cs index c871f089cb..994641b790 100644 --- a/src/Stripe.net/Services/Quotes/QuoteCreateOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteCreateOptions.cs @@ -69,6 +69,16 @@ public class QuoteCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// The account for which this quote belongs to. A customer or account is required before + /// finalizing the quote. Once specified, it cannot be changed. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The tax rates that will apply to any line item that does not have tax_rates set. /// @@ -169,7 +179,7 @@ public class QuoteCreateOptions : BaseOptions, IHasMetadata public List LineItems { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Quotes/QuoteLineItemOptions.cs b/src/Stripe.net/Services/Quotes/QuoteLineItemOptions.cs index fe5fcc55fe..4d7574ee68 100644 --- a/src/Stripe.net/Services/Quotes/QuoteLineItemOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteLineItemOptions.cs @@ -37,7 +37,7 @@ public class QuoteLineItemOptions : INestedOptions, IHasId public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] diff --git a/src/Stripe.net/Services/Quotes/QuoteLineItemPriceDataOptions.cs b/src/Stripe.net/Services/Quotes/QuoteLineItemPriceDataOptions.cs index 4725afe25c..f6000c545e 100644 --- a/src/Stripe.net/Services/Quotes/QuoteLineItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteLineItemPriceDataOptions.cs @@ -40,7 +40,7 @@ public class QuoteLineItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Quotes/QuoteListOptions.cs b/src/Stripe.net/Services/Quotes/QuoteListOptions.cs index b7104f7215..2e8ee29deb 100644 --- a/src/Stripe.net/Services/Quotes/QuoteListOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteListOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class QuoteListOptions : ListOptions { /// - /// The ID of the customer whose quotes will be retrieved. + /// The ID of the customer whose quotes you're retrieving. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -17,6 +17,15 @@ public class QuoteListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// The ID of the account representing the customer whose quotes you're retrieving. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The status of the quote. /// One of: accepted, canceled, draft, or open. diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs index 15f5524784..a8b629d5aa 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs @@ -45,7 +45,7 @@ public class QuoteSubscriptionDataOptions : INestedOptions, IHasMetadata public AnyOf EffectiveDate { get; set; } /// - /// Set of key-value pairs that will set + /// Set of key-value pairs that will set /// metadata on the subscription or subscription schedule when the quote is accepted. If a /// recurring price is included in line_items, this field will be passed to the /// resulting subscription's metadata field. If diff --git a/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs b/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs index 448b53d71d..877b482c0e 100644 --- a/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs @@ -69,6 +69,16 @@ public class QuoteUpdateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// The account for which this quote belongs to. A customer or account is required before + /// finalizing the quote. Once specified, it cannot be changed. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The tax rates that will apply to any line item that does not have tax_rates set. /// @@ -146,7 +156,7 @@ public class QuoteUpdateOptions : BaseOptions, IHasMetadata public List LineItems { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs index 97bf4debe2..5eb9ccb7b4 100644 --- a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs +++ b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs @@ -35,7 +35,7 @@ public class ValueListCreateOptions : BaseOptions, IHasMetadata public string ItemType { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Radar/ValueLists/ValueListUpdateOptions.cs b/src/Stripe.net/Services/Radar/ValueLists/ValueListUpdateOptions.cs index 0ed4912cc5..0f508d6488 100644 --- a/src/Stripe.net/Services/Radar/ValueLists/ValueListUpdateOptions.cs +++ b/src/Stripe.net/Services/Radar/ValueLists/ValueListUpdateOptions.cs @@ -19,7 +19,7 @@ public class ValueListUpdateOptions : BaseOptions, IHasMetadata public string Alias { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs b/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs index b5abcecbd7..9b863bec0b 100644 --- a/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs +++ b/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs @@ -55,7 +55,7 @@ public class RefundCreateOptions : BaseOptions, IHasMetadata public string InstructionsEmail { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -88,7 +88,7 @@ public class RefundCreateOptions : BaseOptions, IHasMetadata /// String indicating the reason for the refund. If set, possible values are /// duplicate, fraudulent, and requested_by_customer. If you believe /// the charge to be fraudulent, specifying fraudulent as the reason will add the - /// associated card and email to your block + /// associated card and email to your block /// lists, and will also help us improve our fraud detection algorithms. /// One of: duplicate, fraudulent, or requested_by_customer. /// diff --git a/src/Stripe.net/Services/Refunds/RefundUpdateOptions.cs b/src/Stripe.net/Services/Refunds/RefundUpdateOptions.cs index 620b86c753..9d29a294a0 100644 --- a/src/Stripe.net/Services/Refunds/RefundUpdateOptions.cs +++ b/src/Stripe.net/Services/Refunds/RefundUpdateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class RefundUpdateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunCreateOptions.cs b/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunCreateOptions.cs index 8d1ce641b1..33348e71b0 100644 --- a/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunCreateOptions.cs +++ b/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunCreateOptions.cs @@ -11,7 +11,7 @@ public class ReportRunCreateOptions : BaseOptions /// /// Parameters specifying how the report should be run. Different Report Types have /// different required and optional parameters, listed in the API Access to Reports + /// href="https://docs.stripe.com/reporting/statements/api">API Access to Reports /// documentation. /// [JsonProperty("parameters")] @@ -22,7 +22,7 @@ public class ReportRunCreateOptions : BaseOptions /// /// The ID of the report type to + /// href="https://docs.stripe.com/reporting/statements/api#report-types">report type to /// run, such as "balance.summary.1". /// [JsonProperty("report_type")] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentAutomaticPaymentMethodsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentAutomaticPaymentMethodsOptions.cs index 4d55ba22f9..7fb0cbf2bd 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentAutomaticPaymentMethodsOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentAutomaticPaymentMethodsOptions.cs @@ -13,7 +13,7 @@ public class SetupIntentAutomaticPaymentMethodsOptions : INestedOptions /// /// Redirect-based payment methods may require your customer to be redirected to a payment /// method's app or site for authentication or additional steps. To confirm this SetupIntent, + /// href="https://docs.stripe.com/api/setup_intents/confirm">confirm this SetupIntent, /// you may be required to provide a return_url to redirect customers back to your /// site after they authenticate or complete the setup. /// One of: always, or never. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs index d959d03cd3..d6a71f4280 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs @@ -45,7 +45,7 @@ public class SetupIntentConfirmOptions : BaseOptions /// /// When included, this hash creates a PaymentMethod that is set as the payment_method + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-payment_method">payment_method /// value in the SetupIntent. /// [JsonProperty("payment_method_data")] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs index b3afb1624a..5bd2913aae 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs @@ -71,6 +71,19 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// ID of the Account this SetupIntent belongs to, if one exists. + /// + /// If present, the SetupIntent's payment method will be attached to the Account on + /// successful setup. Payment methods attached to other Accounts cannot be used with this + /// SetupIntent. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// @@ -89,7 +102,7 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -119,7 +132,7 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// /// This hash contains details about the mandate to create. This parameter can only be used /// with confirm=true. + /// href="https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm">confirm=true. /// [JsonProperty("mandate_data")] #if NET6_0_OR_GREATER @@ -128,7 +141,7 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata public SetupIntentMandateDataOptions MandateData { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -160,7 +173,7 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// /// The ID of the payment method + /// href="https://docs.stripe.com/api/payment_method_configurations">payment method /// configuration to use with this SetupIntent. /// [JsonProperty("payment_method_configuration")] @@ -171,7 +184,7 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// /// When included, this hash creates a PaymentMethod that is set as the payment_method + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-payment_method">payment_method /// value in the SetupIntent. /// [JsonProperty("payment_method_data")] @@ -207,7 +220,7 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// payment on the payment method's app or site. To redirect to a mobile application, you /// can alternatively supply an application URI scheme. This parameter can only be used with /// confirm=true. + /// href="https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm">confirm=true. /// [JsonProperty("return_url")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentListOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentListOptions.cs index f1f36cda25..49a0e9dbe9 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentListOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentListOptions.cs @@ -47,6 +47,15 @@ public class SetupIntentListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// Only return SetupIntents for the account specified by this customer ID. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Only return SetupIntents that associate with the specified payment method. /// diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs index c9c191a84a..60e5ccf095 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs @@ -12,9 +12,9 @@ public class SetupIntentPaymentMethodDataIdealOptions : INestedOptions /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index fc2324c56c..5d030ce001 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -303,7 +303,7 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata public SetupIntentPaymentMethodDataMbWayOptions MbWay { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -414,6 +414,16 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata #endif public SetupIntentPaymentMethodDataPaypalOptions Paypal { get; set; } + /// + /// If this is a payto PaymentMethod, this hash contains details about the PayTo + /// payment method. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public SetupIntentPaymentMethodDataPaytoOptions Payto { get; set; } + /// /// If this is a pix PaymentMethod, this hash contains details about the Pix payment /// method. @@ -436,7 +446,7 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// /// Options to configure Radar. See Radar Session for more + /// href="https://docs.stripe.com/radar/radar-session">Radar Session for more /// information. /// [JsonProperty("radar_options")] @@ -526,7 +536,7 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// grabpay, ideal, kakao_pay, klarna, konbini, /// kr_card, link, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataPaytoOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataPaytoOptions.cs new file mode 100644 index 0000000000..430ce7e59c --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataPaytoOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodDataPaytoOptions : INestedOptions + { + /// + /// The account number for the bank account. + /// + [JsonProperty("account_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_number")] +#endif + public string AccountNumber { get; set; } + + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataRadarOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataRadarOptionsOptions.cs index 16473fdfbf..1cd2f0d6fe 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataRadarOptionsOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataRadarOptionsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class SetupIntentPaymentMethodDataRadarOptionsOptions : INestedOptions { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs index cfb956acb4..7b7216e1f5 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs @@ -44,11 +44,11 @@ public class SetupIntentPaymentMethodOptionsCardOptions : INestedOptions /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. If not provided, this value defaults to automatic. Read our /// guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs index b56727e211..5119214f31 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs @@ -87,6 +87,16 @@ public class SetupIntentPaymentMethodOptionsOptions : INestedOptions #endif public SetupIntentPaymentMethodOptionsPaypalOptions Paypal { get; set; } + /// + /// If this is a payto SetupIntent, this sub-hash contains details about the PayTo + /// payment method options. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public SetupIntentPaymentMethodOptionsPaytoOptions Payto { get; set; } + /// /// If this is a sepa_debit SetupIntent, this sub-hash contains details about the /// SEPA Debit payment method options. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs new file mode 100644 index 0000000000..6a6ff3df57 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoMandateOptionsOptions.cs @@ -0,0 +1,86 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsPaytoMandateOptionsOptions : INestedOptions + { + /// + /// Amount that will be collected. It is required when amount_type is fixed. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The type of amount that will be collected. The amount charged must be exact or up to the + /// value of amount param for fixed or maximum type respectively. + /// Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no + /// end date. + /// + [JsonProperty("end_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] +#endif + public string EndDate { get; set; } + + /// + /// The periodicity at which payments will be collected. Defaults to adhoc. + /// One of: adhoc, annual, daily, fortnightly, monthly, + /// quarterly, semi_annual, or weekly. + /// + [JsonProperty("payment_schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_schedule")] +#endif + public string PaymentSchedule { get; set; } + + /// + /// The number of payments that will be made during a payment period. Defaults to 1 except + /// for when payment_schedule is adhoc. In that case, it defaults to no limit. + /// + [JsonProperty("payments_per_period")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payments_per_period")] +#endif + public long? PaymentsPerPeriod { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to + /// confirmation time. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoOptions.cs new file mode 100644 index 0000000000..ffb4ec7eca --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPaytoOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsPaytoOptions : INestedOptions + { + /// + /// Additional fields for Mandate creation. + /// + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SetupIntentPaymentMethodOptionsPaytoMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentSingleUseOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentSingleUseOptions.cs index 9c331d5797..96fff49352 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentSingleUseOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentSingleUseOptions.cs @@ -11,10 +11,10 @@ public class SetupIntentSingleUseOptions : INestedOptions /// /// Amount the customer is granting permission to collect later. A positive integer /// representing how much to charge in the smallest currency unit (e.g., + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit (e.g., /// 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum /// amount is $0.50 US or equivalent + /// href="https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts">equivalent /// in charge currency. The amount value supports up to eight digits (e.g., a value of /// 99999999 for a USD charge of $999,999.99). /// diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs index 19cc8dadd7..4f2413d1fb 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs @@ -37,6 +37,19 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// ID of the Account this SetupIntent belongs to, if one exists. + /// + /// If present, the SetupIntent's payment method will be attached to the Account on + /// successful setup. Payment methods attached to other Accounts cannot be used with this + /// SetupIntent. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// @@ -55,7 +68,7 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// giropay, grabpay, ideal, kakao_pay, klarna, /// konbini, kr_card, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. @@ -83,7 +96,7 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata public List FlowDirections { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -106,7 +119,7 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// /// The ID of the payment method + /// href="https://docs.stripe.com/api/payment_method_configurations">payment method /// configuration to use with this SetupIntent. /// [JsonProperty("payment_method_configuration")] @@ -117,7 +130,7 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// /// When included, this hash creates a PaymentMethod that is set as the payment_method + /// href="https://docs.stripe.com/api/setup_intents/object#setup_intent_object-payment_method">payment_method /// value in the SetupIntent. /// [JsonProperty("payment_method_data")] diff --git a/src/Stripe.net/Services/ShippingRates/ShippingRateCreateOptions.cs b/src/Stripe.net/Services/ShippingRates/ShippingRateCreateOptions.cs index 946f0deb9d..cbdb0e2beb 100644 --- a/src/Stripe.net/Services/ShippingRates/ShippingRateCreateOptions.cs +++ b/src/Stripe.net/Services/ShippingRates/ShippingRateCreateOptions.cs @@ -40,7 +40,7 @@ public class ShippingRateCreateOptions : BaseOptions, IHasMetadata public ShippingRateFixedAmountOptions FixedAmount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -63,7 +63,7 @@ public class ShippingRateCreateOptions : BaseOptions, IHasMetadata public string TaxBehavior { get; set; } /// - /// A tax code ID. The Shipping tax + /// A tax code ID. The Shipping tax /// code is txcd_92010001. /// [JsonProperty("tax_code")] diff --git a/src/Stripe.net/Services/ShippingRates/ShippingRateUpdateOptions.cs b/src/Stripe.net/Services/ShippingRates/ShippingRateUpdateOptions.cs index d3cf5f4e5b..2bed038214 100644 --- a/src/Stripe.net/Services/ShippingRates/ShippingRateUpdateOptions.cs +++ b/src/Stripe.net/Services/ShippingRates/ShippingRateUpdateOptions.cs @@ -29,7 +29,7 @@ public class ShippingRateUpdateOptions : BaseOptions, IHasMetadata public ShippingRateFixedAmountOptions FixedAmount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Sources/SourceUpdateOptions.cs b/src/Stripe.net/Services/Sources/SourceUpdateOptions.cs index a647c469d5..05d41028d7 100644 --- a/src/Stripe.net/Services/Sources/SourceUpdateOptions.cs +++ b/src/Stripe.net/Services/Sources/SourceUpdateOptions.cs @@ -35,7 +35,7 @@ public class SourceUpdateOptions : BaseOptions, IHasMetadata public SourceMandateOptions Mandate { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs index 543b9bb833..b6460f5e21 100644 --- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs @@ -31,7 +31,7 @@ public class SubscriptionItemCreateOptions : BaseOptions, IHasMetadata public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -47,21 +47,21 @@ public class SubscriptionItemCreateOptions : BaseOptions, IHasMetadata /// a payment is required but cannot be paid. This allows you to manage scenarios where /// additional user actions are needed to pay a subscription's invoice. For example, SCA /// regulation may require 3DS authentication to complete payment. See the SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// Migration Guide for Billing to learn more. This is the default behavior. /// /// Use default_incomplete to transition the subscription to status=past_due /// when payment is required and await explicit confirmation of the invoice's payment /// intent. This allows simpler management of scenarios where additional user actions are /// needed to pay a subscription’s invoice. Such as failed payments, SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// regulation, or collecting a mandate for a bank debit payment method. /// /// Use pending_if_incomplete to update the subscription using pending + /// href="https://docs.stripe.com/billing/subscriptions/pending-updates">pending /// updates. When you use pending_if_incomplete you can only pass the parameters /// supported + /// href="https://docs.stripe.com/billing/pending-updates-reference#supported-attributes">supported /// by pending updates. /// /// Use error_if_incomplete if you want Stripe to return an HTTP 402 status code if a @@ -98,7 +98,7 @@ public class SubscriptionItemCreateOptions : BaseOptions, IHasMetadata public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. /// [JsonProperty("price_data")] @@ -109,7 +109,7 @@ public class SubscriptionItemCreateOptions : BaseOptions, IHasMetadata /// /// Determines how to handle prorations when the + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations when the /// billing cycle changes (e.g., when switching plans, resetting /// billing_cycle_anchor=now, or starting a trial), or if an item's quantity /// changes. The default value is create_prorations. @@ -124,8 +124,7 @@ public class SubscriptionItemCreateOptions : BaseOptions, IHasMetadata /// /// If set, the proration will be calculated as though the subscription was updated at the /// given time. This can be used to apply the same proration that was previewed with the upcoming invoice - /// endpoint. + /// href="https://api.stripe.com#retrieve_customer_invoice">upcoming invoice endpoint. /// [JsonProperty("proration_date")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -154,9 +153,9 @@ public class SubscriptionItemCreateOptions : BaseOptions, IHasMetadata public string Subscription { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will override the default_tax_rates + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates /// on the Subscription. When updating, pass an empty string to remove previously-defined /// tax rates. /// diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs index 68fa91b190..cf13d23d08 100644 --- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs +++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs @@ -22,7 +22,7 @@ public class SubscriptionItemDeleteOptions : BaseOptions /// /// Determines how to handle prorations when the + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations when the /// billing cycle changes (e.g., when switching plans, resetting /// billing_cycle_anchor=now, or starting a trial), or if an item's quantity /// changes. The default value is create_prorations. @@ -37,8 +37,7 @@ public class SubscriptionItemDeleteOptions : BaseOptions /// /// If set, the proration will be calculated as though the subscription was updated at the /// given time. This can be used to apply the same proration that was previewed with the upcoming invoice - /// endpoint. + /// href="https://api.stripe.com#retrieve_customer_invoice">upcoming invoice endpoint. /// [JsonProperty("proration_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs index e700fe27d5..4433688ea4 100644 --- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs @@ -31,7 +31,7 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -57,21 +57,21 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata /// a payment is required but cannot be paid. This allows you to manage scenarios where /// additional user actions are needed to pay a subscription's invoice. For example, SCA /// regulation may require 3DS authentication to complete payment. See the SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// Migration Guide for Billing to learn more. This is the default behavior. /// /// Use default_incomplete to transition the subscription to status=past_due /// when payment is required and await explicit confirmation of the invoice's payment /// intent. This allows simpler management of scenarios where additional user actions are /// needed to pay a subscription’s invoice. Such as failed payments, SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// regulation, or collecting a mandate for a bank debit payment method. /// /// Use pending_if_incomplete to update the subscription using pending + /// href="https://docs.stripe.com/billing/subscriptions/pending-updates">pending /// updates. When you use pending_if_incomplete you can only pass the parameters /// supported + /// href="https://docs.stripe.com/billing/pending-updates-reference#supported-attributes">supported /// by pending updates. /// /// Use error_if_incomplete if you want Stripe to return an HTTP 402 status code if a @@ -110,7 +110,7 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] @@ -121,7 +121,7 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata /// /// Determines how to handle prorations when the + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations when the /// billing cycle changes (e.g., when switching plans, resetting /// billing_cycle_anchor=now, or starting a trial), or if an item's quantity /// changes. The default value is create_prorations. @@ -136,8 +136,7 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata /// /// If set, the proration will be calculated as though the subscription was updated at the /// given time. This can be used to apply the same proration that was previewed with the upcoming invoice - /// endpoint. + /// href="https://api.stripe.com#retrieve_customer_invoice">upcoming invoice endpoint. /// [JsonProperty("proration_date")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -157,9 +156,9 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata public long? Quantity { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will override the default_tax_rates + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates /// on the Subscription. When updating, pass an empty string to remove previously-defined /// tax rates. /// diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs index f568ae1669..254a79ad43 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs @@ -29,6 +29,15 @@ public class SubscriptionScheduleCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// The identifier of the account to create the subscription schedule for. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Object representing the subscription schedule's default settings. /// @@ -66,7 +75,7 @@ public class SubscriptionScheduleCreateOptions : BaseOptions, IHasMetadata public string FromSubscription { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsOptions.cs index 5f2fb642dc..786283d0f5 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsOptions.cs @@ -36,7 +36,7 @@ public class SubscriptionScheduleDefaultSettingsOptions : INestedOptions /// automatic to automatically change it if needed. Cannot be set to /// phase_start if this phase specifies a trial. For more information, see the /// billing cycle documentation. + /// href="https://docs.stripe.com/billing/subscriptions/billing-cycle">documentation. /// One of: automatic, or phase_start. /// [JsonProperty("billing_cycle_anchor")] diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs index eafd02ddbb..6d21911d67 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs @@ -52,6 +52,15 @@ public class SubscriptionScheduleListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// Only return subscription schedules for the given account. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Only return subscription schedules that were released during the given date interval. /// diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemOptions.cs index 6069ac5437..596be91bf9 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemOptions.cs @@ -19,7 +19,7 @@ public class SubscriptionSchedulePhaseAddInvoiceItemOptions : INestedOptions, IH public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -51,7 +51,7 @@ public class SubscriptionSchedulePhaseAddInvoiceItemOptions : INestedOptions, IH public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemPriceDataOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemPriceDataOptions.cs index a1247b2185..1c1e9c5bca 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAddInvoiceItemPriceDataOptions.cs @@ -31,7 +31,7 @@ public class SubscriptionSchedulePhaseAddInvoiceItemPriceDataOptions : INestedOp /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemBillingThresholdsOptions.cs index 1fb045bd3e..6b75a33d01 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemBillingThresholdsOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemBillingThresholdsOptions.cs @@ -11,7 +11,7 @@ public class SubscriptionSchedulePhaseItemBillingThresholdsOptions : INestedOpti /// /// Number of units that meets the billing threshold to advance the subscription to a new /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary + /// href="https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte">monetary /// threshold). /// [JsonProperty("usage_gte")] diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemOptions.cs index c7d25cf126..3e1d87ef45 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemOptions.cs @@ -29,7 +29,7 @@ public class SubscriptionSchedulePhaseItemOptions : INestedOptions, IHasMetadata public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to a configuration item. Metadata on a configuration item will update the /// underlying subscription item's metadata when the phase is entered, adding new /// keys and replacing existing keys. Individual keys in the subscription item's @@ -64,7 +64,7 @@ public class SubscriptionSchedulePhaseItemOptions : INestedOptions, IHasMetadata public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. /// [JsonProperty("price_data")] @@ -84,9 +84,9 @@ public class SubscriptionSchedulePhaseItemOptions : INestedOptions, IHasMetadata public long? Quantity { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will override the default_tax_rates + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates /// on the Subscription. When updating, pass an empty string to remove previously-defined /// tax rates. /// diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemPriceDataOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemPriceDataOptions.cs index 3928babde9..8f1bca267c 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseItemPriceDataOptions.cs @@ -40,7 +40,7 @@ public class SubscriptionSchedulePhaseItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs index 80b38c1c32..073f872a74 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs @@ -49,7 +49,7 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata /// automatic to automatically change it if needed. Cannot be set to /// phase_start if this phase specifies a trial. For more information, see the /// billing cycle documentation. + /// href="https://docs.stripe.com/billing/subscriptions/billing-cycle">documentation. /// One of: automatic, or phase_start. /// [JsonProperty("billing_cycle_anchor")] @@ -105,11 +105,11 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata public string DefaultPaymentMethod { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will set the Subscription's default_tax_rates, + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates, /// which means they will be the Invoice's default_tax_rates + /// href="https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates">default_tax_rates /// for any Invoices issued by the Subscription during this Phase. /// [JsonProperty("default_tax_rates")] @@ -150,8 +150,8 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata public SubscriptionSchedulePhaseDurationOptions Duration { get; set; } /// - /// The date at which this phase of the subscription schedule ends. If set, - /// iterations must not be set. + /// The date at which this phase of the subscription schedule ends. If set, duration + /// must not be set. /// [JsonProperty("end_date")] [JsonConverter(typeof(AnyOfConverter))] @@ -181,7 +181,7 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata public List Items { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to a phase. Metadata on a schedule's phase will update the underlying /// subscription's metadata when the phase is entered, adding new keys and replacing /// existing keys in the subscription's metadata. Individual keys in the @@ -208,10 +208,10 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata /// /// Controls whether the subscription schedule should create prorations when + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations when /// transitioning to this phase if there is a difference in billing configuration. It's /// different from the request-level proration_behavior + /// href="https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior">proration_behavior /// parameter which controls what happens if the update request affects the billing /// configuration (item price, quantity, etc.) of the current phase. /// One of: always_invoice, create_prorations, or none. diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs index 817a355972..c4465f394b 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs @@ -33,7 +33,7 @@ public class SubscriptionScheduleUpdateOptions : BaseOptions, IHasMetadata public string EndBehavior { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemOptions.cs index 04566fba0b..cc494bf781 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemOptions.cs @@ -19,7 +19,7 @@ public class SubscriptionAddInvoiceItemOptions : INestedOptions, IHasMetadata public List Discounts { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -51,7 +51,7 @@ public class SubscriptionAddInvoiceItemOptions : INestedOptions, IHasMetadata public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemPriceDataOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemPriceDataOptions.cs index 8fa183767c..4c8e9fee6a 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionAddInvoiceItemPriceDataOptions.cs @@ -31,7 +31,7 @@ public class SubscriptionAddInvoiceItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs index fccfb1a5a1..58faf4f3af 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs @@ -59,7 +59,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// /// A future timestamp in UTC format to anchor the subscription's billing cycle. The anchor + /// href="https://docs.stripe.com/subscriptions/billing-cycle">billing cycle. The anchor /// is the reference point that aligns future billing cycle dates. It sets the day of week /// for week intervals, the day of month for month and year intervals, /// and the month of year for year intervals. @@ -161,6 +161,15 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata #endif public string Customer { get; set; } + /// + /// The identifier of the account representing the customer to subscribe. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Number of days a customer has to pay invoices generated by this subscription. Valid only /// for subscriptions where collection_method is set to send_invoice. @@ -175,9 +184,9 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// ID of the default payment method for the subscription. It must belong to the customer /// associated with the subscription. This takes precedence over default_source. If /// neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// [JsonProperty("default_payment_method")] #if NET6_0_OR_GREATER @@ -190,9 +199,9 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// associated with the subscription and be in a chargeable state. If /// default_payment_method is also set, default_payment_method will take /// precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// [JsonProperty("default_source")] #if NET6_0_OR_GREATER @@ -251,7 +260,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata public List Items { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -289,7 +298,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// manage scenarios where additional customer actions are needed to pay a subscription's /// invoice. For example, SCA regulation may require 3DS authentication to complete payment. /// See the SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// Migration Guide for Billing to learn more. This is the default behavior. /// /// Use default_incomplete to create Subscriptions with status=incomplete when @@ -297,7 +306,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// to status=active when successfully confirming the PaymentIntent on the first /// invoice. This allows simpler management of scenarios where additional customer actions /// are needed to pay a subscription’s invoice, such as failed payments, SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// regulation, or collecting a mandate for a bank debit payment method. If the /// PaymentIntent is not confirmed within 23 hours Subscriptions transition to /// status=incomplete_expired, which is a terminal state. @@ -307,7 +316,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// 3DS authentication due to SCA regulation and further customer action is needed, this /// parameter doesn't create a Subscription and returns an error instead. This was the /// default behavior for API versions prior to 2019-03-14. See the changelog to learn more. + /// href="https://docs.stripe.com/upgrades#2019-03-14">changelog to learn more. /// /// pending_if_incomplete is only used with updates and cannot be passed when /// creating a Subscription. @@ -334,7 +343,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// /// Specifies an interval for how often to bill for any pending invoice items. It is - /// analogous to calling Create an + /// analogous to calling Create an /// invoice for the given subscription at the specified interval. /// [JsonProperty("pending_invoice_item_interval")] @@ -345,7 +354,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// /// Determines how to handle prorations resulting + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations resulting /// from the billing_cycle_anchor. If no value is passed, the default is /// create_prorations. /// One of: always_invoice, create_prorations, or none. @@ -373,7 +382,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// period of the plan the customer is being subscribed to. The special value now can /// be provided to end the customer's trial immediately. Can be at most two years from /// billing_cycle_anchor. See Using trial periods on + /// href="https://docs.stripe.com/billing/subscriptions/trials">Using trial periods on /// subscriptions to learn more. /// [JsonProperty("trial_end")] @@ -388,7 +397,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// Indicates if a plan's trial_period_days should be applied to the subscription. /// Setting trial_end per subscription is preferred, and this defaults to /// false. Setting this flag to true together with trial_end is not - /// allowed. See Using trial + /// allowed. See Using trial /// periods on subscriptions to learn more. /// [JsonProperty("trial_from_plan")] @@ -400,7 +409,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// /// Integer representing the number of trial period days before the customer is charged for /// the first time. This will always overwrite any trials that might apply via a subscribed - /// plan. See Using trial + /// plan. See Using trial /// periods on subscriptions to learn more. /// [JsonProperty("trial_period_days")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionItemBillingThresholdsOptions.cs index 54ed79ee07..c31c685423 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionItemBillingThresholdsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionItemBillingThresholdsOptions.cs @@ -11,7 +11,7 @@ public class SubscriptionItemBillingThresholdsOptions : INestedOptions /// /// Number of units that meets the billing threshold to advance the subscription to a new /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary + /// href="https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte">monetary /// threshold). /// [JsonProperty("usage_gte")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs index cac49284e9..2732082b05 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs @@ -58,7 +58,7 @@ public class SubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata public string Id { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -90,7 +90,7 @@ public class SubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata public string Price { get; set; } /// - /// Data used to generate a new Price + /// Data used to generate a new Price /// object inline. One of price or price_data is required. /// [JsonProperty("price_data")] @@ -109,9 +109,9 @@ public class SubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata public long? Quantity { get; set; } /// - /// A list of Tax Rate ids. These Tax + /// A list of Tax Rate ids. These Tax /// Rates will override the default_tax_rates + /// href="https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates">default_tax_rates /// on the Subscription. When updating, pass an empty string to remove previously-defined /// tax rates. /// diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionItemPriceDataOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionItemPriceDataOptions.cs index 86e0592bb6..1e0cd35269 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionItemPriceDataOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionItemPriceDataOptions.cs @@ -40,7 +40,7 @@ public class SubscriptionItemPriceDataOptions : INestedOptions /// /// Only required if a default + /// href="https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)">default /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, /// exclusive, or unspecified. Once specified as either inclusive or diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs index 39d1d8bef6..1bf2c8e4e3 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs @@ -66,7 +66,7 @@ public class SubscriptionListOptions : ListOptions public AnyOf CurrentPeriodStart { get; set; } /// - /// The ID of the customer whose subscriptions will be retrieved. + /// The ID of the customer whose subscriptions you're retrieving. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -74,6 +74,15 @@ public class SubscriptionListOptions : ListOptions #endif public string Customer { get; set; } + /// + /// The ID of the account representing the customer whose subscriptions you're retrieving. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// The ID of the plan whose subscriptions will be retrieved. /// @@ -97,7 +106,7 @@ public class SubscriptionListOptions : ListOptions /// return all canceled subscriptions, including those belonging to deleted customers. Pass /// ended to find subscriptions that are canceled and subscriptions that are expired /// due to incomplete + /// href="https://docs.stripe.com/billing/subscriptions/overview#subscription-statuses">incomplete /// payment. Passing in a value of all will return subscriptions of all statuses. /// If no value is supplied, all subscriptions that have not been canceled are returned. /// One of: active, all, canceled, ended, incomplete, diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index f37edb81d4..81e475e2be 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -33,8 +33,9 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions /// ideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, payco, paynow, paypal, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, swish, us_bank_account, or wechat_pay. + /// payto, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, swish, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs index 685c2c2810..dec9b23087 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs @@ -33,10 +33,10 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions : INeste /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and other requirements. + /// href="https://docs.stripe.com/strong-customer-authentication">other requirements. /// However, if you wish to request 3D Secure based on logic from your own fraud engine, /// provide this option. Read our guide on manually + /// href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually /// requesting 3D Secure for more information on how this configuration interacts with /// Radar and our SCA Engine. /// One of: any, automatic, or challenge. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs index d679265b5a..891d5abe80 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs @@ -58,6 +58,16 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsOptions : INestedOpt #endif public SubscriptionPaymentSettingsPaymentMethodOptionsKonbiniOptions Konbini { get; set; } + /// + /// This sub-hash contains details about the PayTo payment method options to pass to the + /// invoice’s PaymentIntent. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions Payto { get; set; } + /// /// This sub-hash contains details about the SEPA Direct Debit payment method options to /// pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs new file mode 100644 index 0000000000..a91397e880 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions : INestedOptions + { + /// + /// The maximum amount that can be collected in a single invoice. If you don't specify a + /// maximum, then there is no limit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The purpose for which payments are made. Has a default value based on your merchant + /// category code. + /// One of: dependant_support, government, loan, mortgage, + /// other, pension, personal, retail, salary, tax, + /// or utility. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions.cs new file mode 100644 index 0000000000..7b4683a289 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions : INestedOptions + { + /// + /// Additional fields for Mandate creation. + /// + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsPaytoMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionResumeOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionResumeOptions.cs index bcfc7f5e90..d9179acbe0 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionResumeOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionResumeOptions.cs @@ -14,7 +14,7 @@ public class SubscriptionResumeOptions : BaseOptions /// The billing cycle anchor that applies when the subscription is resumed. Either /// now or unchanged. The default is now. For more information, see the /// billing cycle documentation. + /// href="https://docs.stripe.com/billing/subscriptions/billing-cycle">documentation. /// One of: now, or unchanged. /// [JsonProperty("billing_cycle_anchor")] @@ -25,7 +25,7 @@ public class SubscriptionResumeOptions : BaseOptions /// /// Determines how to handle prorations resulting + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations resulting /// from the billing_cycle_anchor being unchanged. When the /// billing_cycle_anchor is set to now (default value), no prorations are /// generated. If no value is passed, the default is create_prorations. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs index ee8a87b5c0..246d6f888f 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs @@ -49,7 +49,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// Either now or unchanged. Setting the value to now resets the /// subscription's billing cycle anchor to the current time (in UTC). For more information, /// see the billing cycle documentation. + /// href="https://docs.stripe.com/billing/subscriptions/billing-cycle">documentation. /// One of: now, or unchanged. /// [JsonProperty("billing_cycle_anchor")] @@ -130,9 +130,9 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// ID of the default payment method for the subscription. It must belong to the customer /// associated with the subscription. This takes precedence over default_source. If /// neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// [JsonProperty("default_payment_method")] #if NET6_0_OR_GREATER @@ -145,9 +145,9 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// associated with the subscription and be in a chargeable state. If /// default_payment_method is also set, default_payment_method will take /// precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method + /// href="https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method /// or default_source. + /// href="https://docs.stripe.com/api/customers/object#customer_object-default_source">default_source. /// [JsonProperty("default_source")] #if NET6_0_OR_GREATER @@ -207,7 +207,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata public List Items { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -240,7 +240,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] @@ -254,21 +254,21 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// a payment is required but cannot be paid. This allows you to manage scenarios where /// additional user actions are needed to pay a subscription's invoice. For example, SCA /// regulation may require 3DS authentication to complete payment. See the SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// Migration Guide for Billing to learn more. This is the default behavior. /// /// Use default_incomplete to transition the subscription to status=past_due /// when payment is required and await explicit confirmation of the invoice's payment /// intent. This allows simpler management of scenarios where additional user actions are /// needed to pay a subscription’s invoice. Such as failed payments, SCA + /// href="https://docs.stripe.com/billing/migration/strong-customer-authentication">SCA /// regulation, or collecting a mandate for a bank debit payment method. /// /// Use pending_if_incomplete to update the subscription using pending + /// href="https://docs.stripe.com/billing/subscriptions/pending-updates">pending /// updates. When you use pending_if_incomplete you can only pass the parameters /// supported + /// href="https://docs.stripe.com/billing/pending-updates-reference#supported-attributes">supported /// by pending updates. /// /// Use error_if_incomplete if you want Stripe to return an HTTP 402 status code if a @@ -297,7 +297,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// /// Specifies an interval for how often to bill for any pending invoice items. It is - /// analogous to calling Create an + /// analogous to calling Create an /// invoice for the given subscription at the specified interval. /// [JsonProperty("pending_invoice_item_interval")] @@ -308,7 +308,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// /// Determines how to handle prorations when the + /// href="https://docs.stripe.com/billing/subscriptions/prorations">prorations when the /// billing cycle changes (e.g., when switching plans, resetting /// billing_cycle_anchor=now, or starting a trial), or if an item's quantity /// changes. The default value is create_prorations. @@ -368,7 +368,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// Indicates if a plan's trial_period_days should be applied to the subscription. /// Setting trial_end per subscription is preferred, and this defaults to /// false. Setting this flag to true together with trial_end is not - /// allowed. See Using trial + /// allowed. See Using trial /// periods on subscriptions to learn more. /// [JsonProperty("trial_from_plan")] diff --git a/src/Stripe.net/Services/Tax/Associations/AssociationFindOptions.cs b/src/Stripe.net/Services/Tax/Associations/AssociationFindOptions.cs index 82b32b756a..9da42e5160 100644 --- a/src/Stripe.net/Services/Tax/Associations/AssociationFindOptions.cs +++ b/src/Stripe.net/Services/Tax/Associations/AssociationFindOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Tax public class AssociationFindOptions : BaseOptions { /// - /// Valid PaymentIntent id. + /// Valid PaymentIntent id. /// [JsonProperty("payment_intent")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs index 50f32ddf24..be647f65ac 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs @@ -11,7 +11,7 @@ public class CalculationLineItemOptions : INestedOptions, IHasMetadata { /// /// A positive integer representing the line item's total price in the smallest currency unit. If + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. If /// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes are /// calculated on top of this amount. /// @@ -22,7 +22,7 @@ public class CalculationLineItemOptions : INestedOptions, IHasMetadata public long? Amount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -56,7 +56,7 @@ public class CalculationLineItemOptions : INestedOptions, IHasMetadata /// /// A custom identifier for this line item, which must be unique across the line items in /// the calculation. The reference helps identify each line item in exported tax reports. + /// href="https://docs.stripe.com/tax/reports">tax reports. /// [JsonProperty("reference")] #if NET6_0_OR_GREATER @@ -75,7 +75,7 @@ public class CalculationLineItemOptions : INestedOptions, IHasMetadata public string TaxBehavior { get; set; } /// - /// A tax code ID to use for this + /// A tax code ID to use for this /// line item. If not provided, we will use the tax code from the provided product /// param. If neither tax_code nor product is provided, we will use the /// default tax code from your Tax Settings. diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs index 9106043be3..6dd52b5437 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs @@ -10,7 +10,7 @@ public class CalculationShippingCostOptions : INestedOptions { /// /// A positive integer in the smallest currency unit + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit /// representing the shipping charge. If tax_behavior=inclusive, then this amount /// includes taxes. Otherwise, taxes are calculated on top of this amount. /// @@ -21,7 +21,7 @@ public class CalculationShippingCostOptions : INestedOptions public long? Amount { get; set; } /// - /// If provided, the shipping + /// If provided, the shipping /// rate's amount, tax_code and tax_behavior are used. If you /// provide a shipping rate, then you cannot pass the amount, tax_code, or /// tax_behavior parameters. @@ -44,7 +44,7 @@ public class CalculationShippingCostOptions : INestedOptions public string TaxBehavior { get; set; } /// - /// The tax code used to calculate + /// The tax code used to calculate /// tax on shipping. If not provided, the default shipping tax code from your Tax Settings is used. /// diff --git a/src/Stripe.net/Services/Tax/Settings/SettingsDefaultsOptions.cs b/src/Stripe.net/Services/Tax/Settings/SettingsDefaultsOptions.cs index cdf68a0ea6..7697054234 100644 --- a/src/Stripe.net/Services/Tax/Settings/SettingsDefaultsOptions.cs +++ b/src/Stripe.net/Services/Tax/Settings/SettingsDefaultsOptions.cs @@ -23,7 +23,7 @@ public class SettingsDefaultsOptions : INestedOptions public string TaxBehavior { get; set; } /// - /// A tax code ID. + /// A tax code ID. /// [JsonProperty("tax_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Transactions/TransactionCreateFromCalculationOptions.cs b/src/Stripe.net/Services/Tax/Transactions/TransactionCreateFromCalculationOptions.cs index b1d83fe304..957ae9944c 100644 --- a/src/Stripe.net/Services/Tax/Transactions/TransactionCreateFromCalculationOptions.cs +++ b/src/Stripe.net/Services/Tax/Transactions/TransactionCreateFromCalculationOptions.cs @@ -21,7 +21,7 @@ public class TransactionCreateFromCalculationOptions : BaseOptions, IHasMetadata public string Calculation { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs b/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs index 46bcb1776f..523b368af6 100644 --- a/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs +++ b/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs @@ -11,7 +11,7 @@ public class TransactionCreateReversalOptions : BaseOptions, IHasMetadata { /// /// A flat amount to reverse across the entire transaction, in the smallest currency unit in + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit in /// negative. This value represents the total amount to refund from the transaction, /// including taxes. /// @@ -31,7 +31,7 @@ public class TransactionCreateReversalOptions : BaseOptions, IHasMetadata public List LineItems { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -65,7 +65,7 @@ public class TransactionCreateReversalOptions : BaseOptions, IHasMetadata /// /// A custom identifier for this reversal, such as myOrder_123-refund_1, which must /// be unique across all transactions. The reference helps identify this reversal - /// transaction in exported tax reports. + /// transaction in exported tax reports. /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs b/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs index 0ebc764f1d..b109098374 100644 --- a/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs +++ b/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs @@ -11,7 +11,7 @@ public class TransactionLineItemOptions : INestedOptions, IHasMetadata { /// /// The amount to reverse, in the smallest currency unit in + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit in /// negative. /// [JsonProperty("amount")] @@ -22,7 +22,7 @@ public class TransactionLineItemOptions : INestedOptions, IHasMetadata /// /// The amount of tax to reverse, in the smallest currency unit in + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit in /// negative. /// [JsonProperty("amount_tax")] @@ -32,7 +32,7 @@ public class TransactionLineItemOptions : INestedOptions, IHasMetadata public long? AmountTax { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// @@ -52,7 +52,7 @@ public class TransactionLineItemOptions : INestedOptions, IHasMetadata public string OriginalLineItem { get; set; } /// - /// The quantity reversed. Appears in tax + /// The quantity reversed. Appears in tax /// exports, but does not affect the amount of tax reversed. /// [JsonProperty("quantity")] diff --git a/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs b/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs index b8216b8849..cc1d28e9ad 100644 --- a/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs +++ b/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs @@ -10,7 +10,7 @@ public class TransactionShippingCostOptions : INestedOptions { /// /// The amount to reverse, in the smallest currency unit in + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit in /// negative. /// [JsonProperty("amount")] @@ -21,7 +21,7 @@ public class TransactionShippingCostOptions : INestedOptions /// /// The amount of tax to reverse, in the smallest currency unit in + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit in /// negative. /// [JsonProperty("amount_tax")] diff --git a/src/Stripe.net/Services/TaxIds/TaxIdOwnerOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdOwnerOptions.cs index e343437a6c..6a85f504a4 100644 --- a/src/Stripe.net/Services/TaxIds/TaxIdOwnerOptions.cs +++ b/src/Stripe.net/Services/TaxIds/TaxIdOwnerOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class TaxIdOwnerOptions : INestedOptions { /// - /// Account the tax ID belongs to. Required when type=account. + /// Connected Account the tax ID belongs to. Required when type=account. /// [JsonProperty("account")] #if NET6_0_OR_GREATER @@ -26,6 +26,16 @@ public class TaxIdOwnerOptions : INestedOptions #endif public string Customer { get; set; } + /// + /// ID of the Account representing the customer that the tax ID belongs to. Can be used in + /// place of customer when type=customer. + /// + [JsonProperty("customer_account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_account")] +#endif + public string CustomerAccount { get; set; } + /// /// Type of owner referenced. /// One of: account, application, customer, or self. diff --git a/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs index b221bd111c..0223faa26a 100644 --- a/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs +++ b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs @@ -69,7 +69,7 @@ public class TaxRateCreateOptions : BaseOptions, IHasMetadata public string Jurisdiction { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs index 604f918543..a4e50107ae 100644 --- a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs +++ b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs @@ -60,7 +60,7 @@ public class TaxRateUpdateOptions : BaseOptions, IHasMetadata public string Jurisdiction { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Terminal/Locations/LocationCreateOptions.cs b/src/Stripe.net/Services/Terminal/Locations/LocationCreateOptions.cs index ddfd488215..087cc71bc1 100644 --- a/src/Stripe.net/Services/Terminal/Locations/LocationCreateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Locations/LocationCreateOptions.cs @@ -75,7 +75,7 @@ public class LocationCreateOptions : BaseOptions, IHasMetadata public string DisplayNameKanji { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs index 5b3389c893..e60237bcf8 100644 --- a/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs @@ -75,7 +75,7 @@ public class LocationUpdateOptions : BaseOptions, IHasMetadata public string DisplayNameKanji { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCartLineItemOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCartLineItemOptions.cs index 7788411dc6..ee6f2826cf 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderCartLineItemOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCartLineItemOptions.cs @@ -10,7 +10,7 @@ public class ReaderCartLineItemOptions : INestedOptions { /// /// The price of the item in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCartOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCartOptions.cs index 8d12dda56c..03ee56aedc 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderCartOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCartOptions.cs @@ -31,7 +31,7 @@ public class ReaderCartOptions : INestedOptions /// /// The amount of tax in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("tax")] #if NET6_0_OR_GREATER @@ -41,7 +41,7 @@ public class ReaderCartOptions : INestedOptions /// /// Total balance of cart due in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("total")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectInputsOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectInputsOptions.cs index 2ef86947ed..6aa058d67e 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectInputsOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectInputsOptions.cs @@ -19,7 +19,7 @@ public class ReaderCollectInputsOptions : BaseOptions, IHasMetadata public List Inputs { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCreateOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCreateOptions.cs index 8c8ec2377d..08083a01b7 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderCreateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCreateOptions.cs @@ -29,7 +29,7 @@ public class ReaderCreateOptions : BaseOptions, IHasMetadata public string Location { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderRefundPaymentOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderRefundPaymentOptions.cs index 858e8b9b03..557520be9f 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderRefundPaymentOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderRefundPaymentOptions.cs @@ -29,7 +29,7 @@ public class ReaderRefundPaymentOptions : BaseOptions, IHasMetadata public string Charge { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderUpdateOptions.cs index 73de028c9d..8642f3bd7b 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderUpdateOptions.cs @@ -19,7 +19,7 @@ public class ReaderUpdateOptions : BaseOptions, IHasMetadata public string Label { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs index 15bdb0c28e..12cbf0f1d4 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs @@ -49,7 +49,7 @@ public class ConfirmationTokenCreateOptions : BaseOptions /// method. /// /// The presence of this property will attach the payment + /// href="https://docs.stripe.com/payments/save-during-payment">attach the payment /// method to the PaymentIntent's Customer, if present, after the PaymentIntent is /// confirmed and any required actions from the user are complete. /// One of: off_session, or on_session. diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs index adcccbd3af..0b3625ead6 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs @@ -12,9 +12,9 @@ public class ConfirmationTokenPaymentMethodDataIdealOptions : INestedOptions /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. /// One of: abn_amro, asn_bank, bunq, buut, finom, - /// handelsbanken, ing, knab, moneyou, n26, nn, - /// rabobank, regiobank, revolut, sns_bank, triodos_bank, - /// van_lanschot, or yoursafe. + /// handelsbanken, ing, knab, mollie, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index 2d05f8b8dc..bcfffe0603 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -303,7 +303,7 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet public ConfirmationTokenPaymentMethodDataMbWayOptions MbWay { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -414,6 +414,16 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet #endif public ConfirmationTokenPaymentMethodDataPaypalOptions Paypal { get; set; } + /// + /// If this is a payto PaymentMethod, this hash contains details about the PayTo + /// payment method. + /// + [JsonProperty("payto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payto")] +#endif + public ConfirmationTokenPaymentMethodDataPaytoOptions Payto { get; set; } + /// /// If this is a pix PaymentMethod, this hash contains details about the Pix payment /// method. @@ -436,7 +446,7 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet /// /// Options to configure Radar. See Radar Session for more + /// href="https://docs.stripe.com/radar/radar-session">Radar Session for more /// information. /// [JsonProperty("radar_options")] @@ -526,7 +536,7 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet /// grabpay, ideal, kakao_pay, klarna, konbini, /// kr_card, link, mb_way, mobilepay, multibanco, /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, pix, promptpay, + /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, /// sofort, swish, twint, us_bank_account, wechat_pay, or /// zip. diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataPaytoOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataPaytoOptions.cs new file mode 100644 index 0000000000..d0a27a6a76 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataPaytoOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfirmationTokenPaymentMethodDataPaytoOptions : INestedOptions + { + /// + /// The account number for the bank account. + /// + [JsonProperty("account_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_number")] +#endif + public string AccountNumber { get; set; } + + /// + /// Bank-State-Branch number of the bank account. + /// + [JsonProperty("bsb_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bsb_number")] +#endif + public string BsbNumber { get; set; } + + /// + /// The PayID alias for the bank account. + /// + [JsonProperty("pay_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_id")] +#endif + public string PayId { get; set; } + } +} diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataRadarOptionsOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataRadarOptionsOptions.cs index 85b70501f3..78c5ae5973 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataRadarOptionsOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataRadarOptionsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.TestHelpers public class ConfirmationTokenPaymentMethodDataRadarOptionsOptions : INestedOptions { /// - /// A Radar Session is a snapshot + /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate /// predictions on your payments. /// diff --git a/src/Stripe.net/Services/TestHelpers/Customers/CustomerFundCashBalanceOptions.cs b/src/Stripe.net/Services/TestHelpers/Customers/CustomerFundCashBalanceOptions.cs index 9c1b12493a..04a2d55296 100644 --- a/src/Stripe.net/Services/TestHelpers/Customers/CustomerFundCashBalanceOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Customers/CustomerFundCashBalanceOptions.cs @@ -11,7 +11,7 @@ public class CustomerFundCashBalanceOptions : BaseOptions /// /// Amount to be used for this test cash balance transaction. A positive integer /// representing how much to fund in the smallest currency unit (e.g., + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit (e.g., /// 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). /// [JsonProperty("amount")] @@ -35,7 +35,7 @@ public class CustomerFundCashBalanceOptions : BaseOptions /// A description of the test funding. This simulates free-text references supplied by /// customers when making bank transfers to their cash balance. You can use this to test how /// Stripe's reconciliation + /// href="https://docs.stripe.com/payments/customer-balance/reconciliation">reconciliation /// algorithm applies to different user inputs. /// [JsonProperty("reference")] diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs index e335f00850..26fe6792a2 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs @@ -11,7 +11,7 @@ public class AuthorizationCaptureOptions : BaseOptions /// /// The amount to capture from the authorization. If not provided, the full amount of the /// authorization will be captured. This amount is in the authorization currency and in the - /// smallest currency unit. + /// smallest currency unit. /// [JsonProperty("capture_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs index 6cfe688cb2..0abf3032bd 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs @@ -11,7 +11,7 @@ public class AuthorizationCreateOptions : BaseOptions /// /// The total amount to attempt to authorize. This amount is in the provided currency, or /// defaults to the card's currency, and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -22,7 +22,7 @@ public class AuthorizationCreateOptions : BaseOptions /// /// Detailed breakdown of amount components. These amounts are denominated in /// currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount_details")] #if NET6_0_OR_GREATER @@ -93,7 +93,7 @@ public class AuthorizationCreateOptions : BaseOptions /// /// If set true, you may provide amount + /// href="https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount">amount /// to control how much to hold for the authorization. /// [JsonProperty("is_amount_controllable")] @@ -104,7 +104,7 @@ public class AuthorizationCreateOptions : BaseOptions /// /// The total amount to attempt to authorize. This amount is in the provided merchant - /// currency, and in the smallest + /// currency, and in the smallest /// currency unit. /// [JsonProperty("merchant_amount")] diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFinalizeAmountOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFinalizeAmountOptions.cs index 528f863ca4..14d0b1a162 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFinalizeAmountOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFinalizeAmountOptions.cs @@ -11,7 +11,7 @@ public class AuthorizationFinalizeAmountOptions : BaseOptions /// /// The final authorization amount that will be captured by the merchant. This amount is in /// the authorization currency and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("final_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationIncrementOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationIncrementOptions.cs index 1670f8e4ae..73a9948f8f 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationIncrementOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationIncrementOptions.cs @@ -10,7 +10,7 @@ public class AuthorizationIncrementOptions : BaseOptions { /// /// The amount to increment the authorization by. This amount is in the authorization - /// currency and in the smallest + /// currency and in the smallest /// currency unit. /// [JsonProperty("increment_amount")] @@ -21,7 +21,7 @@ public class AuthorizationIncrementOptions : BaseOptions /// /// If set true, you may provide amount + /// href="https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount">amount /// to control how much to hold for the authorization. /// [JsonProperty("is_amount_controllable")] diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs index 761ab5c9ab..099ce14da7 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs @@ -10,7 +10,7 @@ public class AuthorizationMerchantDataOptions : INestedOptions { /// /// A categorization of the seller's type of business. See our merchant categories guide + /// href="https://docs.stripe.com/issuing/merchant-categories">merchant categories guide /// for a list of possible values. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, /// advertising_services, agricultural_cooperative, diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationReverseOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationReverseOptions.cs index 4c1819ac0b..f71f006a85 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationReverseOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationReverseOptions.cs @@ -11,7 +11,7 @@ public class AuthorizationReverseOptions : BaseOptions /// /// The amount to reverse from the authorization. If not provided, the full amount of the /// authorization will be reversed. This amount is in the authorization currency and in the - /// smallest currency unit. + /// smallest currency unit. /// [JsonProperty("reverse_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs index 6daa346d3c..03794b67f6 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs @@ -11,7 +11,7 @@ public class TransactionCreateForceCaptureOptions : BaseOptions /// /// The total amount to attempt to capture. This amount is in the provided currency, or /// defaults to the cards currency, and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateUnlinkedRefundOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateUnlinkedRefundOptions.cs index e5bd8d6d96..e865abdb2c 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateUnlinkedRefundOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateUnlinkedRefundOptions.cs @@ -11,7 +11,7 @@ public class TransactionCreateUnlinkedRefundOptions : BaseOptions /// /// The total amount to attempt to refund. This amount is in the provided currency, or /// defaults to the cards currency, and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs index c8b5db4748..94cba1b23e 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs @@ -10,7 +10,7 @@ public class TransactionMerchantDataOptions : INestedOptions { /// /// A categorization of the seller's type of business. See our merchant categories guide + /// href="https://docs.stripe.com/issuing/merchant-categories">merchant categories guide /// for a list of possible values. /// One of: ac_refrigeration_repair, accounting_bookkeeping_services, /// advertising_services, agricultural_cooperative, diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionRefundOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionRefundOptions.cs index 88b5098b5a..562efcdf56 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionRefundOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionRefundOptions.cs @@ -11,7 +11,7 @@ public class TransactionRefundOptions : BaseOptions /// /// The total amount to attempt to refund. This amount is in the provided currency, or /// defaults to the cards currency, and in the smallest currency unit. + /// href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit. /// [JsonProperty("refund_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedCredits/ReceivedCreditCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedCredits/ReceivedCreditCreateOptions.cs index 94db0ac185..08b2d41acd 100644 --- a/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedCredits/ReceivedCreditCreateOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedCredits/ReceivedCreditCreateOptions.cs @@ -58,7 +58,7 @@ public class ReceivedCreditCreateOptions : BaseOptions /// /// Specifies the network rails to be used. If not set, will default to the PaymentMethod's /// preferred network. See the docs to learn more + /// href="https://docs.stripe.com/treasury/money-movement/timelines">docs to learn more /// about money movement timelines for each network type. /// One of: ach, or us_domestic_wire. /// diff --git a/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedDebits/ReceivedDebitCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedDebits/ReceivedDebitCreateOptions.cs index 85b85245da..5fbfbe4376 100644 --- a/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedDebits/ReceivedDebitCreateOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Treasury/ReceivedDebits/ReceivedDebitCreateOptions.cs @@ -58,7 +58,7 @@ public class ReceivedDebitCreateOptions : BaseOptions /// /// Specifies the network rails to be used. If not set, will default to the PaymentMethod's /// preferred network. See the docs to learn more + /// href="https://docs.stripe.com/treasury/money-movement/timelines">docs to learn more /// about money movement timelines for each network type. /// [JsonProperty("network")] diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyVerificationDocumentOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyVerificationDocumentOptions.cs index 061952a3c3..93df755b20 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyVerificationDocumentOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyVerificationDocumentOptions.cs @@ -9,11 +9,10 @@ namespace Stripe public class TokenAccountCompanyVerificationDocumentOptions : INestedOptions { /// - /// The back of a document returned by a file upload with a purpose - /// value of additional_verification. The uploaded file needs to be a color image - /// (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in - /// size. + /// The back of a document returned by a file + /// upload with a purpose value of additional_verification. The uploaded + /// file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF + /// format, and less than 10 MB in size. /// [JsonProperty("back")] #if NET6_0_OR_GREATER @@ -22,11 +21,10 @@ public class TokenAccountCompanyVerificationDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of a document returned by a file upload with a purpose - /// value of additional_verification. The uploaded file needs to be a color image - /// (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in - /// size. + /// The front of a document returned by a file + /// upload with a purpose value of additional_verification. The uploaded + /// file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF + /// format, and less than 10 MB in size. /// [JsonProperty("front")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tokens/TokenAccountIndividualOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountIndividualOptions.cs index fb3daefd35..4c3a2dcaf0 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountIndividualOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountIndividualOptions.cs @@ -163,7 +163,7 @@ public class TokenAccountIndividualOptions : INestedOptions, IHasMetadata public string MaidenName { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationAdditionalDocumentOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationAdditionalDocumentOptions.cs index 39cd345f28..4887ab8818 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationAdditionalDocumentOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationAdditionalDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class TokenAccountIndividualVerificationAdditionalDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class TokenAccountIndividualVerificationAdditionalDocumentOptions : INest public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationDocumentOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationDocumentOptions.cs index a336bd9f66..b2fe681fb1 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationDocumentOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountIndividualVerificationDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class TokenAccountIndividualVerificationDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class TokenAccountIndividualVerificationDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/Tokens/TokenBankAccountOptions.cs b/src/Stripe.net/Services/Tokens/TokenBankAccountOptions.cs index 348c30603a..2bf86129f7 100644 --- a/src/Stripe.net/Services/Tokens/TokenBankAccountOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenBankAccountOptions.cs @@ -61,7 +61,7 @@ public class TokenBankAccountOptions : INestedOptions /// /// The currency the bank account is in. This must be a country/currency pairing that Stripe supports.. + /// href="https://docs.stripe.com/payouts">Stripe supports.. /// [JsonProperty("currency")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tokens/TokenCreateOptions.cs b/src/Stripe.net/Services/Tokens/TokenCreateOptions.cs index d553a0d813..9be2f692c6 100644 --- a/src/Stripe.net/Services/Tokens/TokenCreateOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenCreateOptions.cs @@ -45,11 +45,11 @@ public class TokenCreateOptions : BaseOptions /// /// Create a token for the customer, which is owned by the application's account. You can - /// only use this with an OAuth + /// only use this with an OAuth /// access token or Stripe-Account header. Learn + /// href="https://docs.stripe.com/connect/authentication">Stripe-Account header. Learn /// more about cloning saved + /// href="https://docs.stripe.com/connect/cloning-saved-payment-methods">cloning saved /// payment methods. /// [JsonProperty("customer")] diff --git a/src/Stripe.net/Services/Tokens/TokenPersonDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonDocumentsCompanyAuthorizationOptions.cs index 1655dfe2e8..fb9a80675e 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonDocumentsCompanyAuthorizationOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonDocumentsCompanyAuthorizationOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class TokenPersonDocumentsCompanyAuthorizationOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tokens/TokenPersonDocumentsPassportOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonDocumentsPassportOptions.cs index 6df85d7720..f522e3c7b3 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonDocumentsPassportOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonDocumentsPassportOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class TokenPersonDocumentsPassportOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tokens/TokenPersonDocumentsVisaOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonDocumentsVisaOptions.cs index 2f0f1f500d..a3b96e1f14 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonDocumentsVisaOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonDocumentsVisaOptions.cs @@ -10,9 +10,8 @@ namespace Stripe public class TokenPersonDocumentsVisaOptions : INestedOptions { /// - /// One or more document ids returned by a file upload with a purpose - /// value of account_requirement. + /// One or more document ids returned by a file + /// upload with a purpose value of account_requirement. /// [JsonProperty("files")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs index 1d282b8ac6..2d23398c2e 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs @@ -181,7 +181,7 @@ public class TokenPersonOptions : INestedOptions, IHasMetadata public string MaidenName { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Tokens/TokenPersonVerificationAdditionalDocumentOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonVerificationAdditionalDocumentOptions.cs index 7e27cf2bcc..e018b25676 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonVerificationAdditionalDocumentOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonVerificationAdditionalDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class TokenPersonVerificationAdditionalDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class TokenPersonVerificationAdditionalDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/Tokens/TokenPersonVerificationDocumentOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonVerificationDocumentOptions.cs index 77f9df7733..f2312dbf95 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonVerificationDocumentOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonVerificationDocumentOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class TokenPersonVerificationDocumentOptions : INestedOptions { /// - /// The back of an ID returned by a file + /// The back of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. @@ -21,7 +21,7 @@ public class TokenPersonVerificationDocumentOptions : INestedOptions public string Back { get; set; } /// - /// The front of an ID returned by a file + /// The front of an ID returned by a file /// upload with a purpose value of identity_document. The uploaded file /// needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, /// and less than 10 MB in size. diff --git a/src/Stripe.net/Services/Topups/TopupCreateOptions.cs b/src/Stripe.net/Services/Topups/TopupCreateOptions.cs index f595309d02..50855b4c77 100644 --- a/src/Stripe.net/Services/Topups/TopupCreateOptions.cs +++ b/src/Stripe.net/Services/Topups/TopupCreateOptions.cs @@ -39,7 +39,7 @@ public class TopupCreateOptions : BaseOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -54,7 +54,7 @@ public class TopupCreateOptions : BaseOptions, IHasMetadata /// The ID of a source to transfer funds from. For most users, this should be left /// unspecified which will use the bank account that was set up in the dashboard for the /// specified currency. In test mode, this can be a test bank token (see Testing Top-ups). + /// href="https://docs.stripe.com/connect/testing#testing-top-ups">Testing Top-ups). /// [JsonProperty("source")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Topups/TopupUpdateOptions.cs b/src/Stripe.net/Services/Topups/TopupUpdateOptions.cs index 8c8e16f3e7..4ab6ed4684 100644 --- a/src/Stripe.net/Services/Topups/TopupUpdateOptions.cs +++ b/src/Stripe.net/Services/Topups/TopupUpdateOptions.cs @@ -19,7 +19,7 @@ public class TopupUpdateOptions : BaseOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/TransferReversals/TransferReversalCreateOptions.cs b/src/Stripe.net/Services/TransferReversals/TransferReversalCreateOptions.cs index 0208527cad..8d18ed2c3b 100644 --- a/src/Stripe.net/Services/TransferReversals/TransferReversalCreateOptions.cs +++ b/src/Stripe.net/Services/TransferReversals/TransferReversalCreateOptions.cs @@ -32,7 +32,7 @@ public class TransferReversalCreateOptions : BaseOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/TransferReversals/TransferReversalUpdateOptions.cs b/src/Stripe.net/Services/TransferReversals/TransferReversalUpdateOptions.cs index 8180197067..b0b93171ed 100644 --- a/src/Stripe.net/Services/TransferReversals/TransferReversalUpdateOptions.cs +++ b/src/Stripe.net/Services/TransferReversals/TransferReversalUpdateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class TransferReversalUpdateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Transfers/TransferCreateOptions.cs b/src/Stripe.net/Services/Transfers/TransferCreateOptions.cs index 0c0b220abc..019f141d2c 100644 --- a/src/Stripe.net/Services/Transfers/TransferCreateOptions.cs +++ b/src/Stripe.net/Services/Transfers/TransferCreateOptions.cs @@ -50,7 +50,7 @@ public class TransferCreateOptions : BaseOptions, IHasMetadata public string Destination { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -65,7 +65,7 @@ public class TransferCreateOptions : BaseOptions, IHasMetadata /// You can use this parameter to transfer funds from a charge before they are added to your /// available balance. A pending balance will transfer immediately but the funds will not /// become available until the original charge becomes available. See + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability">See /// the Connect documentation for details. /// [JsonProperty("source_transaction")] @@ -87,7 +87,7 @@ public class TransferCreateOptions : BaseOptions, IHasMetadata /// /// A string that identifies this transaction as part of a group. See the Connect + /// href="https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options">Connect /// documentation for details. /// [JsonProperty("transfer_group")] diff --git a/src/Stripe.net/Services/Transfers/TransferUpdateOptions.cs b/src/Stripe.net/Services/Transfers/TransferUpdateOptions.cs index 862c538923..71b1f735ff 100644 --- a/src/Stripe.net/Services/Transfers/TransferUpdateOptions.cs +++ b/src/Stripe.net/Services/Transfers/TransferUpdateOptions.cs @@ -19,7 +19,7 @@ public class TransferUpdateOptions : BaseOptions, IHasMetadata public string Description { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Treasury/CreditReversals/CreditReversalCreateOptions.cs b/src/Stripe.net/Services/Treasury/CreditReversals/CreditReversalCreateOptions.cs index 2977928f14..98ef1ae842 100644 --- a/src/Stripe.net/Services/Treasury/CreditReversals/CreditReversalCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/CreditReversals/CreditReversalCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Treasury public class CreditReversalCreateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Treasury/DebitReversals/DebitReversalCreateOptions.cs b/src/Stripe.net/Services/Treasury/DebitReversals/DebitReversalCreateOptions.cs index 7ead8e4805..99a2d0bdeb 100644 --- a/src/Stripe.net/Services/Treasury/DebitReversals/DebitReversalCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/DebitReversals/DebitReversalCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.Treasury public class DebitReversalCreateOptions : BaseOptions, IHasMetadata { /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs index b0067a0b5e..e576a432bd 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs @@ -20,7 +20,7 @@ public class FinancialAccountCreateOptions : BaseOptions, IHasMetadata public FinancialAccountFeaturesOptions Features { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs index fd9ef1b86d..5c136bb1a4 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs @@ -31,7 +31,7 @@ public class FinancialAccountUpdateOptions : BaseOptions, IHasMetadata public FinancialAccountForwardingSettingsOptions ForwardingSettings { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Treasury/InboundTransfers/InboundTransferCreateOptions.cs b/src/Stripe.net/Services/Treasury/InboundTransfers/InboundTransferCreateOptions.cs index cd490d3043..1ecfe9a841 100644 --- a/src/Stripe.net/Services/Treasury/InboundTransfers/InboundTransferCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/InboundTransfers/InboundTransferCreateOptions.cs @@ -48,7 +48,7 @@ public class InboundTransferCreateOptions : BaseOptions, IHasMetadata public string FinancialAccount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -70,7 +70,7 @@ public class InboundTransferCreateOptions : BaseOptions, IHasMetadata /// /// The complete description that appears on your customers' statements. Maximum 10 - /// characters. + /// characters. Can only include -#.$&*, spaces, and alphanumeric characters. /// [JsonProperty("statement_descriptor")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs index a2565c901a..15e6b7e913 100644 --- a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs @@ -96,7 +96,7 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata public string FinancialAccount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -111,7 +111,8 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata /// The description that appears on the receiving end for this OutboundPayment (for example, /// bank statement for external bank transfer). Maximum 10 characters for ach /// payments, 140 characters for us_domestic_wire payments, or 500 characters for - /// stripe network transfers. The default value is "payment". + /// stripe network transfers. Can only include -#.$&*, spaces, and alphanumeric + /// characters. The default value is "payment". /// [JsonProperty("statement_descriptor")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDataOptions.cs b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDataOptions.cs index 308d9b384b..c72b9259bd 100644 --- a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodDataOptions.cs @@ -30,7 +30,7 @@ public class OutboundPaymentDestinationPaymentMethodDataOptions : INestedOptions public string FinancialAccount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodOptionsUsBankAccountOptions.cs b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodOptionsUsBankAccountOptions.cs index 392f79b950..e892e8ef08 100644 --- a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodOptionsUsBankAccountOptions.cs +++ b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentDestinationPaymentMethodOptionsUsBankAccountOptions.cs @@ -11,7 +11,7 @@ public class OutboundPaymentDestinationPaymentMethodOptionsUsBankAccountOptions /// /// Specifies the network rails to be used. If not set, will default to the PaymentMethod's /// preferred network. See the docs to learn more + /// href="https://docs.stripe.com/treasury/money-movement/timelines">docs to learn more /// about money movement timelines for each network type. /// One of: ach, or us_domestic_wire. /// diff --git a/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs index f8c49c56ef..961359012c 100644 --- a/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs @@ -76,7 +76,7 @@ public class OutboundTransferCreateOptions : BaseOptions, IHasMetadata public string FinancialAccount { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. @@ -90,7 +90,8 @@ public class OutboundTransferCreateOptions : BaseOptions, IHasMetadata /// /// Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 /// characters for ach transfers or 140 characters for us_domestic_wire - /// transfers. The default value is "transfer". + /// transfers. The default value is "transfer". Can only include -#.$&*, spaces, and + /// alphanumeric characters. /// [JsonProperty("statement_descriptor")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodOptionsUsBankAccountOptions.cs b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodOptionsUsBankAccountOptions.cs index 51a563c839..446a9b208a 100644 --- a/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodOptionsUsBankAccountOptions.cs +++ b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodOptionsUsBankAccountOptions.cs @@ -11,7 +11,7 @@ public class OutboundTransferDestinationPaymentMethodOptionsUsBankAccountOptions /// /// Specifies the network rails to be used. If not set, will default to the PaymentMethod's /// preferred network. See the docs to learn more + /// href="https://docs.stripe.com/treasury/money-movement/timelines">docs to learn more /// about money movement timelines for each network type. /// One of: ach, or us_domestic_wire. /// diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateOptions.cs new file mode 100644 index 0000000000..0cccd75503 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateOptions : BaseOptions + { + /// + /// The ID of the Account to create link for. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// The use case of the AccountLink. + /// + [JsonProperty("use_case")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("use_case")] +#endif + public AccountLinkCreateUseCaseOptions UseCase { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions.cs new file mode 100644 index 0000000000..d184c3e35c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions : INestedOptions + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don’t specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs new file mode 100644 index 0000000000..af73b5452f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseAccountOnboardingOptions : INestedOptions + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/core/account can be configured to enable certain functionality. The + /// configuration param targets the v2/core/account_link to collect information for the + /// specified v2/core/account configuration/s. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the AccountLink is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new AccountLink + /// with the same parameters used to create the original AccountLink, then redirect the user + /// to the new AccountLink’s URL so they can continue the flow. If a new AccountLink cannot + /// be generated or the redirect fails you should display a useful error to the user. Please + /// make sure to implement authentication before redirecting the user in case this URL is + /// leaked to a third party. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions.cs new file mode 100644 index 0000000000..1b01528356 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions : INestedOptions + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). The default value is currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs new file mode 100644 index 0000000000..0fb5577367 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseAccountUpdateOptions : INestedOptions + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/account can be configured to enable certain functionality. The + /// configuration param targets the v2/account_link to collect information for the specified + /// v2/account configuration/s. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the Account Link is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new Account Link + /// with the same parameters used to create the original Account Link, then redirect the + /// user to the new Account Link URL so they can continue the flow. Make sure to + /// authenticate the user before redirecting to the new Account Link, in case the URL leaks + /// to a third party. If a new Account Link can't be generated, or if the redirect fails, + /// you should display a useful error to the user. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs new file mode 100644 index 0000000000..7661af4192 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseOptions : INestedOptions + { + /// + /// Open Enum. The type of Account Link the user is requesting. + /// One of: account_onboarding, or account_update. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// Hash containing configuration options for an Account Link object that onboards a new + /// account. + /// + [JsonProperty("account_onboarding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_onboarding")] +#endif + public AccountLinkCreateUseCaseAccountOnboardingOptions AccountOnboarding { get; set; } + + /// + /// Hash containing configuration options for an Account Link that updates an existing + /// account. + /// + [JsonProperty("account_update")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_update")] +#endif + public AccountLinkCreateUseCaseAccountUpdateOptions AccountUpdate { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkService.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkService.cs new file mode 100644 index 0000000000..b6f826b8fb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkService.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class AccountLinkService : Service + { + internal AccountLinkService(ApiRequestor requestor) + : base(requestor) + { + } + + internal AccountLinkService(IStripeClient client) + : base(client) + { + } + + /// + /// Creates an AccountLink object that includes a single-use URL that an account can use to + /// access a Stripe-hosted flow for collecting or updating required information. + /// + public virtual AccountLink Create(AccountLinkCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/account_links", options, requestOptions); + } + + /// + /// Creates an AccountLink object that includes a single-use URL that an account can use to + /// access a Stripe-hosted flow for collecting or updating required information. + /// + public virtual Task CreateAsync(AccountLinkCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/account_links", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsDirectorshipDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsDirectorshipDeclarationOptions.cs new file mode 100644 index 0000000000..f9d3b63c77 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsDirectorshipDeclarationOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityAttestationsDirectorshipDeclarationOptions : INestedOptions + { + /// + /// A boolean indicating if the directors information has been attested. + /// + [JsonProperty("attested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attested")] +#endif + public bool? Attested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOptions.cs new file mode 100644 index 0000000000..c7c5442032 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityAttestationsOptions : INestedOptions + { + /// + /// This hash is used to attest that the directors information provided to Stripe is both + /// current and correct; IP, date, and User Agent are expanded by Stripe. + /// + [JsonProperty("directorship_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directorship_declaration")] +#endif + public AccountTokenCreateIdentityAttestationsDirectorshipDeclarationOptions DirectorshipDeclaration { get; set; } + + /// + /// This hash is used to attest that the beneficial owner information provided to Stripe is + /// both current and correct; IP, date, and User Agent are expanded by Stripe. + /// + [JsonProperty("ownership_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_declaration")] +#endif + public AccountTokenCreateIdentityAttestationsOwnershipDeclarationOptions OwnershipDeclaration { get; set; } + + /// + /// Attestation that all Persons with a specific Relationship value have been provided. + /// + [JsonProperty("persons_provided")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("persons_provided")] +#endif + public AccountTokenCreateIdentityAttestationsPersonsProvidedOptions PersonsProvided { get; set; } + + /// + /// This hash is used to attest that the representative is authorized to act as the + /// representative of their legal entity; IP, date, and User Agent are expanded by Stripe. + /// + [JsonProperty("representative_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative_declaration")] +#endif + public AccountTokenCreateIdentityAttestationsRepresentativeDeclarationOptions RepresentativeDeclaration { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("terms_of_service")] +#endif + public AccountTokenCreateIdentityAttestationsTermsOfServiceOptions TermsOfService { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOwnershipDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOwnershipDeclarationOptions.cs new file mode 100644 index 0000000000..6e2cdd6131 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsOwnershipDeclarationOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityAttestationsOwnershipDeclarationOptions : INestedOptions + { + /// + /// A boolean indicating if the beneficial owner information has been attested. + /// + [JsonProperty("attested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attested")] +#endif + public bool? Attested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsPersonsProvidedOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsPersonsProvidedOptions.cs new file mode 100644 index 0000000000..4c2e59c3d0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsPersonsProvidedOptions.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityAttestationsPersonsProvidedOptions : INestedOptions + { + /// + /// Whether the company’s directors have been provided. Set this Boolean to true after + /// creating all the company’s directors with the Persons API. + /// + [JsonProperty("directors")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directors")] +#endif + public bool? Directors { get; set; } + + /// + /// Whether the company’s executives have been provided. Set this Boolean to true after + /// creating all the company’s executives with the Persons API. + /// + [JsonProperty("executives")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executives")] +#endif + public bool? Executives { get; set; } + + /// + /// Whether the company’s owners have been provided. Set this Boolean to true after creating + /// all the company’s owners with the Persons API. + /// + [JsonProperty("owners")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owners")] +#endif + public bool? Owners { get; set; } + + /// + /// Reason for why the company is exempt from providing ownership information. + /// One of: qualified_entity_exceeds_ownership_threshold, or + /// qualifies_as_financial_institution. + /// + [JsonProperty("ownership_exemption_reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_exemption_reason")] +#endif + public string OwnershipExemptionReason { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsRepresentativeDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsRepresentativeDeclarationOptions.cs new file mode 100644 index 0000000000..ff2d1d6c40 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsRepresentativeDeclarationOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityAttestationsRepresentativeDeclarationOptions : INestedOptions + { + /// + /// A boolean indicating if the representative is authorized to act as the representative of + /// their legal entity. + /// + [JsonProperty("attested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attested")] +#endif + public bool? Attested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceAccountOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceAccountOptions.cs new file mode 100644 index 0000000000..9a5e35c1ea --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceAccountOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityAttestationsTermsOfServiceAccountOptions : INestedOptions + { + /// + /// The boolean value indicating if the terms of service have been accepted. + /// + [JsonProperty("shown_and_accepted")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shown_and_accepted")] +#endif + public bool? ShownAndAccepted { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs new file mode 100644 index 0000000000..018554a1e0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityAttestationsTermsOfServiceOptions : INestedOptions + { + /// + /// Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and + /// User Agent are expanded by Stripe. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public AccountTokenCreateIdentityAttestationsTermsOfServiceAccountOptions Account { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs new file mode 100644 index 0000000000..8a6382b632 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs new file mode 100644 index 0000000000..08068e14d4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions : INestedOptions + { + /// + /// A non-negative integer representing the amount in the smallest currency unit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } + + /// + /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + /// the 31st of December, 2023. + /// + [JsonProperty("fiscal_year_end")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fiscal_year_end")] +#endif + public string FiscalYearEnd { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs new file mode 100644 index 0000000000..ee110043e8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs new file mode 100644 index 0000000000..1884e28dc7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs new file mode 100644 index 0000000000..cee250de20 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs new file mode 100644 index 0000000000..4fb773a1c5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs new file mode 100644 index 0000000000..ecb73190e1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs new file mode 100644 index 0000000000..4993872f49 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsOptions.cs new file mode 100644 index 0000000000..e71f05851f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsOptions.cs @@ -0,0 +1,106 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsOptions : INestedOptions + { + /// + /// One or more documents that support the bank account ownership verification requirement. + /// Must be a document associated with the account’s primary active bank account that + /// displays the last 4 digits of the account number, either a statement or a check. + /// + [JsonProperty("bank_account_ownership_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_account_ownership_verification")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions BankAccountOwnershipVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s license to operate. + /// + [JsonProperty("company_license")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_license")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions CompanyLicense { get; set; } + + /// + /// One or more documents showing the company’s Memorandum of Association. + /// + [JsonProperty("company_memorandum_of_association")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_memorandum_of_association")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions CompanyMemorandumOfAssociation { get; set; } + + /// + /// Certain countries only: One or more documents showing the ministerial decree legalizing + /// the company’s establishment. + /// + [JsonProperty("company_ministerial_decree")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_ministerial_decree")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions CompanyMinisterialDecree { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s registration with the + /// appropriate local authorities. + /// + [JsonProperty("company_registration_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_registration_verification")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions CompanyRegistrationVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s tax ID. + /// + [JsonProperty("company_tax_id_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_tax_id_verification")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions CompanyTaxIdVerification { get; set; } + + /// + /// A document verifying the business. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions ProofOfAddress { get; set; } + + /// + /// One or more documents showing the company’s proof of registration with the national + /// business registry. + /// + [JsonProperty("proof_of_registration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_registration")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions ProofOfRegistration { get; set; } + + /// + /// One or more documents that demonstrate proof of ultimate beneficial ownership. + /// + [JsonProperty("proof_of_ultimate_beneficial_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_ultimate_beneficial_ownership")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions ProofOfUltimateBeneficialOwnership { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..2baad01023 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..cef17139ad --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs new file mode 100644 index 0000000000..7f50d4e3f3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs new file mode 100644 index 0000000000..91cef16fb9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs new file mode 100644 index 0000000000..e85f9ab944 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs new file mode 100644 index 0000000000..a7bcaa6951 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsIdNumberOptions : INestedOptions + { + /// + /// The registrar of the ID number (Only valid for DE ID number types). + /// + [JsonProperty("registrar")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registrar")] +#endif + public string Registrar { get; set; } + + /// + /// Open Enum. The ID number type of a business entity. + /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, + /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, + /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, hr_mbs, + /// hr_oib, hr_vat, hu_cjs, hu_tin, hu_vat, + /// ie_crn, ie_trn, ie_vat, it_rea, it_vat, jp_cn, + /// kz_bin, li_uid, lt_ccrn, lt_vat, lu_nif, + /// lu_rcs, lu_vat, lv_urn, lv_vat, mt_crn, + /// mt_tin, mt_vat, mx_rfc, my_brn, my_coid, + /// my_itn, my_sst, mz_nuit, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pe_ruc, + /// pk_ntn, pl_nip, pl_regon, pl_vat, pt_vat, + /// ro_cui, ro_orc, ro_vat, sa_crn, sa_tin, + /// se_orgnr, se_vat, sg_uen, si_msp, si_tin, + /// si_vat, sk_dic, sk_ico, sk_vat, th_crn, + /// th_prn, th_tin, or us_ein. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs new file mode 100644 index 0000000000..98e7513e62 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs new file mode 100644 index 0000000000..2177862476 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions : INestedOptions + { + /// + /// A non-negative integer representing the amount in the smallest currency unit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs new file mode 100644 index 0000000000..714a7ce940 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs @@ -0,0 +1,123 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsOptions : INestedOptions + { + /// + /// The business registration address of the business entity. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The business gross annual revenue for its preceding fiscal year. + /// + [JsonProperty("annual_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("annual_revenue")] +#endif + public AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions AnnualRevenue { get; set; } + + /// + /// A document verifying the business. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountTokenCreateIdentityBusinessDetailsDocumentsOptions Documents { get; set; } + + /// + /// Estimated maximum number of workers currently engaged by the business (including + /// employees, contractors, and vendors). + /// + [JsonProperty("estimated_worker_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("estimated_worker_count")] +#endif + public long? EstimatedWorkerCount { get; set; } + + /// + /// The ID numbers of a business entity. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// An estimate of the monthly revenue of the business. + /// + [JsonProperty("monthly_estimated_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_estimated_revenue")] +#endif + public AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions MonthlyEstimatedRevenue { get; set; } + + /// + /// The phone number of the Business Entity. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The business legal name. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + + /// + /// The business registration address of the business entity in non latin script. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountTokenCreateIdentityBusinessDetailsScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The business legal name in non latin script. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountTokenCreateIdentityBusinessDetailsScriptNamesOptions ScriptNames { get; set; } + + /// + /// The category identifying the legal structure of the business. + /// One of: cooperative, free_zone_establishment, free_zone_llc, + /// governmental_unit, government_instrumentality, + /// incorporated_association, incorporated_non_profit, + /// incorporated_partnership, limited_liability_partnership, llc, + /// multi_member_llc, private_company, private_corporation, + /// private_partnership, public_company, public_corporation, + /// public_listed_corporation, public_partnership, registered_charity, + /// single_member_llc, sole_establishment, sole_proprietorship, + /// tax_exempt_government_instrumentality, trust, + /// unincorporated_association, unincorporated_non_profit, or + /// unincorporated_partnership. + /// + [JsonProperty("structure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("structure")] +#endif + public string Structure { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptAddressesOptions.cs new file mode 100644 index 0000000000..5ed9642d00 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..7d3a846872 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsScriptNamesKanaOptions : INestedOptions + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..3b3e48ef5a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsScriptNamesKanjiOptions : INestedOptions + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesOptions.cs new file mode 100644 index 0000000000..f524a62eb3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsScriptNamesOptions : INestedOptions + { + /// + /// Kana name. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountTokenCreateIdentityBusinessDetailsScriptNamesKanaOptions Kana { get; set; } + + /// + /// Kanji name. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountTokenCreateIdentityBusinessDetailsScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalAddressOptions.cs new file mode 100644 index 0000000000..0a88b570b1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalAddressOptions.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalNameOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalNameOptions.cs new file mode 100644 index 0000000000..c271deb4be --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualAdditionalNameOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualAdditionalNameOptions : INestedOptions + { + /// + /// The person's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDateOfBirthOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDateOfBirthOptions.cs new file mode 100644 index 0000000000..b36a1ae3cd --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDateOfBirthOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDateOfBirthOptions : INestedOptions + { + /// + /// The day of the birth. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long? Day { get; set; } + + /// + /// The month of birth. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs new file mode 100644 index 0000000000..06bf587e38 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsCompanyAuthorizationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsOptions.cs new file mode 100644 index 0000000000..59df9ce898 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsOptions : INestedOptions + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsCompanyAuthorizationOptions CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsPassportOptions Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationOptions SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsVisaOptions Visa { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPassportOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPassportOptions.cs new file mode 100644 index 0000000000..d4c5b5db16 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPassportOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsPassportOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..5c6f077ec0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..13d0d68352 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..aa76123d4d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs new file mode 100644 index 0000000000..e90c3856c3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsVisaOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsVisaOptions.cs new file mode 100644 index 0000000000..48ff6c55ce --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualDocumentsVisaOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualDocumentsVisaOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs new file mode 100644 index 0000000000..3b107e0fac --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualIdNumberOptions : INestedOptions + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs new file mode 100644 index 0000000000..e189d0aef2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs @@ -0,0 +1,169 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualOptions : INestedOptions, IHasMetadata + { + /// + /// Additional addresses associated with the individual. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the individual. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// The individual's residential address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The individual's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public AccountTokenCreateIdentityIndividualDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountTokenCreateIdentityIndividualDocumentsOptions Documents { get; set; } + + /// + /// The individual's email address. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The individual's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the individual. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The individual's gender (International regulations require either "male" or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// The individual's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The individual's political exposure. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this individual has with the account's identity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public AccountTokenCreateIdentityIndividualRelationshipOptions Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the individual. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountTokenCreateIdentityIndividualScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The individuals primary name in non latin script. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountTokenCreateIdentityIndividualScriptNamesOptions ScriptNames { get; set; } + + /// + /// The individual's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs new file mode 100644 index 0000000000..877b348235 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualRelationshipOptions : INestedOptions + { + /// + /// Whether the person is a director of the account's identity. Directors are typically + /// members of the governing board of the company, or responsible for ensuring the company + /// meets its regulatory obligations. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Whether the person has significant responsibility to control, manage, or direct the + /// organization. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Whether the person is an owner of the account’s identity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percent owned by the person of the account's legal entity. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// The person's title (e.g., CEO, Support Engineer). + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptAddressesOptions.cs new file mode 100644 index 0000000000..92bbffa6ce --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..8d96e6da68 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanaOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualScriptNamesKanaOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..13ebc73867 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesKanjiOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualScriptNamesKanjiOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesOptions.cs new file mode 100644 index 0000000000..afd341ae47 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityIndividualScriptNamesOptions : INestedOptions + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountTokenCreateIdentityIndividualScriptNamesKanaOptions Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountTokenCreateIdentityIndividualScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityOptions.cs new file mode 100644 index 0000000000..e59c661d5a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityOptions.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityOptions : INestedOptions + { + /// + /// Attestations from the identity's key people, e.g. owners, executives, directors, + /// representatives. + /// + [JsonProperty("attestations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attestations")] +#endif + public AccountTokenCreateIdentityAttestationsOptions Attestations { get; set; } + + /// + /// Information about the company or business. + /// + [JsonProperty("business_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("business_details")] +#endif + public AccountTokenCreateIdentityBusinessDetailsOptions BusinessDetails { get; set; } + + /// + /// The entity type. + /// One of: company, government_entity, individual, or + /// non_profit. + /// + [JsonProperty("entity_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("entity_type")] +#endif + public string EntityType { get; set; } + + /// + /// Information about the person represented by the account. + /// + [JsonProperty("individual")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("individual")] +#endif + public AccountTokenCreateIdentityIndividualOptions Individual { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs new file mode 100644 index 0000000000..7635522d58 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateOptions : BaseOptions + { + /// + /// The default contact email address for the Account. Required when configuring the account + /// as a merchant or recipient. + /// + [JsonProperty("contact_email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("contact_email")] +#endif + public string ContactEmail { get; set; } + + /// + /// A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard + /// and on any invoices sent to the Account. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + + /// + /// Information about the company, individual, and business represented by the Account. + /// + [JsonProperty("identity")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("identity")] +#endif + public AccountTokenCreateIdentityOptions Identity { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenGetOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenGetOptions.cs new file mode 100644 index 0000000000..1a7f01e35a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenGetOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + public class AccountTokenGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenService.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenService.cs new file mode 100644 index 0000000000..2dc70f8735 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenService.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class AccountTokenService : Service + { + internal AccountTokenService(ApiRequestor requestor) + : base(requestor) + { + } + + internal AccountTokenService(IStripeClient client) + : base(client) + { + } + + /// + /// Creates an Account Token. + /// + public virtual AccountToken Create(AccountTokenCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/account_tokens", options, requestOptions); + } + + /// + /// Creates an Account Token. + /// + public virtual Task CreateAsync(AccountTokenCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/account_tokens", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves an Account Token. + /// + public virtual AccountToken Get(string id, AccountTokenGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/account_tokens/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves an Account Token. + /// + public virtual Task GetAsync(string id, AccountTokenGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/account_tokens/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs new file mode 100644 index 0000000000..8b66a033fd --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCloseOptions : BaseOptions + { + /// + /// Configurations on the Account to be closed. All configurations on the Account must be + /// passed in for this request to succeed. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("applied_configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied_configurations")] +#endif + public List AppliedConfigurations { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerAutomaticIndirectTaxOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerAutomaticIndirectTaxOptions.cs new file mode 100644 index 0000000000..68bc32e38e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerAutomaticIndirectTaxOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerAutomaticIndirectTaxOptions : INestedOptions + { + /// + /// Describes the customer's tax exemption status, which is none, exempt, or + /// reverse. When set to reverse, invoice and receipt PDFs include the following + /// text: “Reverse charge”. + /// One of: exempt, none, or reverse. + /// + [JsonProperty("exempt")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("exempt")] +#endif + public string Exempt { get; set; } + + /// + /// A recent IP address of the customer used for tax reporting and tax location inference. + /// + [JsonProperty("ip_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip_address")] +#endif + public string IpAddress { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs new file mode 100644 index 0000000000..38418e5a2d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerBillingInvoiceCustomFieldOptions : INestedOptions + { + /// + /// The name of the custom field. This may be up to 40 characters. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// The value of the custom field. This may be up to 140 characters. When updating, pass an + /// empty string to remove previously-defined values. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceOptions.cs new file mode 100644 index 0000000000..c84b7c5414 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceOptions.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerBillingInvoiceOptions : INestedOptions + { + /// + /// The list of up to 4 default custom fields to be displayed on invoices for this customer. + /// + [JsonProperty("custom_fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom_fields")] +#endif + public List CustomFields { get; set; } + + /// + /// Default invoice footer. + /// + [JsonProperty("footer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("footer")] +#endif + public string Footer { get; set; } + + /// + /// Sequence number to use on the customer account's next invoice. Defaults to 1. + /// + [JsonProperty("next_sequence")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_sequence")] +#endif + public long? NextSequence { get; set; } + + /// + /// Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or + /// numbers. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + + /// + /// Default invoice PDF rendering options. + /// + [JsonProperty("rendering")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("rendering")] +#endif + public AccountCreateConfigurationCustomerBillingInvoiceRenderingOptions Rendering { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceRenderingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceRenderingOptions.cs new file mode 100644 index 0000000000..c31c0b9a12 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingInvoiceRenderingOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerBillingInvoiceRenderingOptions : INestedOptions + { + /// + /// Indicates whether displayed line item prices and amounts on invoice PDFs include + /// inclusive tax amounts. Must be either include_inclusive_tax or + /// exclude_tax. + /// One of: exclude_tax, or include_inclusive_tax. + /// + [JsonProperty("amount_tax_display")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_tax_display")] +#endif + public string AmountTaxDisplay { get; set; } + + /// + /// ID of the invoice rendering template to use for future invoices. + /// + [JsonProperty("template")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("template")] +#endif + public string Template { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingOptions.cs new file mode 100644 index 0000000000..b74aa72e1f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerBillingOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerBillingOptions : INestedOptions + { + /// + /// Default invoice settings for the customer account. + /// + [JsonProperty("invoice")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("invoice")] +#endif + public AccountCreateConfigurationCustomerBillingInvoiceOptions Invoice { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs new file mode 100644 index 0000000000..2741c03fa2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesOptions.cs new file mode 100644 index 0000000000..d379240581 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerCapabilitiesOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerCapabilitiesOptions : INestedOptions + { + /// + /// Generates requirements for enabling automatic indirect tax calculation on this + /// customer's invoices or subscriptions. Recommended to request this capability if planning + /// to enable automatic tax calculation on this customer's invoices or subscriptions. + /// + [JsonProperty("automatic_indirect_tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("automatic_indirect_tax")] +#endif + public AccountCreateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions AutomaticIndirectTax { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerOptions.cs new file mode 100644 index 0000000000..d5a3b3a726 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerOptions : INestedOptions + { + /// + /// Automatic indirect tax settings to be used when automatic tax calculation is enabled on + /// the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if + /// automatic tax calculation is possible given the current customer location information. + /// + [JsonProperty("automatic_indirect_tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("automatic_indirect_tax")] +#endif + public AccountCreateConfigurationCustomerAutomaticIndirectTaxOptions AutomaticIndirectTax { get; set; } + + /// + /// Billing settings - default settings used for this customer in Billing flows such as + /// Invoices and Subscriptions. + /// + [JsonProperty("billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing")] +#endif + public AccountCreateConfigurationCustomerBillingOptions Billing { get; set; } + + /// + /// Capabilities that have been requested on the Customer Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountCreateConfigurationCustomerCapabilitiesOptions Capabilities { get; set; } + + /// + /// The customer's shipping information. Appears on invoices emailed to this customer. + /// + [JsonProperty("shipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping")] +#endif + public AccountCreateConfigurationCustomerShippingOptions Shipping { get; set; } + + /// + /// ID of the test clock to attach to the customer. Can only be set on testmode Accounts, + /// and when the Customer Configuration is first set on an Account. + /// + [JsonProperty("test_clock")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("test_clock")] +#endif + public string TestClock { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerShippingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerShippingOptions.cs new file mode 100644 index 0000000000..6021e86122 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCustomerShippingOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCustomerShippingOptions : INestedOptions + { + /// + /// Customer shipping address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressOptions Address { get; set; } + + /// + /// Customer name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Customer phone (including extension). + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBacsDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBacsDebitPaymentsOptions.cs new file mode 100644 index 0000000000..c5e348733a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBacsDebitPaymentsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantBacsDebitPaymentsOptions : INestedOptions + { + /// + /// Display name for Bacs Direct Debit payments. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBrandingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBrandingOptions.cs new file mode 100644 index 0000000000..d3ecfa2895 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantBrandingOptions.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantBrandingOptions : INestedOptions + { + /// + /// ID of a file + /// upload: An icon for the merchant. Must be square and at least 128px x 128px. + /// + [JsonProperty("icon")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("icon")] +#endif + public string Icon { get; set; } + + /// + /// ID of a file + /// upload: A logo for the merchant that will be used in Checkout instead of the icon + /// and without the merchant's name next to it if provided. Must be at least 128px x 128px. + /// + [JsonProperty("logo")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("logo")] +#endif + public string Logo { get; set; } + + /// + /// A CSS hex color value representing the primary branding color for the merchant. + /// + [JsonProperty("primary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_color")] +#endif + public string PrimaryColor { get; set; } + + /// + /// A CSS hex color value representing the secondary branding color for the merchant. + /// + [JsonProperty("secondary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_color")] +#endif + public string SecondaryColor { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs new file mode 100644 index 0000000000..e6dc38c1e9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs new file mode 100644 index 0000000000..634da90b7a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs new file mode 100644 index 0000000000..ba1da5a0cb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesAffirmPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs new file mode 100644 index 0000000000..98023c0ead --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs new file mode 100644 index 0000000000..0cddd177fe --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesAlmaPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs new file mode 100644 index 0000000000..070f332cfc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs new file mode 100644 index 0000000000..17da24c1c1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs new file mode 100644 index 0000000000..2c9918963e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs new file mode 100644 index 0000000000..2f5112f4b7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesBancontactPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs new file mode 100644 index 0000000000..fb154e8da6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesBlikPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs new file mode 100644 index 0000000000..29dd405ab2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesBoletoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs new file mode 100644 index 0000000000..33c2ec1c48 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesCardPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs new file mode 100644 index 0000000000..aa9659c4d4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs new file mode 100644 index 0000000000..2c443cec59 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesCashappPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs new file mode 100644 index 0000000000..418c8bdb4a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesEpsPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs new file mode 100644 index 0000000000..a9fe4ee417 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesFpxPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..f42079bc30 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs new file mode 100644 index 0000000000..ff1fa53d39 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs new file mode 100644 index 0000000000..6ecb55effa --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesIdealPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs new file mode 100644 index 0000000000..1c150bbebf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesJcbPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..1e68663322 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs new file mode 100644 index 0000000000..92cf2e89a0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs new file mode 100644 index 0000000000..5640eb268d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs new file mode 100644 index 0000000000..c282e0c43a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs new file mode 100644 index 0000000000..08238a9f1a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesKrCardPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs new file mode 100644 index 0000000000..b5572c2f43 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesLinkPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs new file mode 100644 index 0000000000..7dc82ccdc0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs new file mode 100644 index 0000000000..7a0e214e8c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..031ec533af --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs new file mode 100644 index 0000000000..f3469aa9ad --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs new file mode 100644 index 0000000000..4fdd909b8a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs @@ -0,0 +1,407 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesOptions : INestedOptions + { + /// + /// Allow the merchant to process ACH debit payments. + /// + [JsonProperty("ach_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ach_debit_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions AchDebitPayments { get; set; } + + /// + /// Allow the merchant to process ACSS debit payments. + /// + [JsonProperty("acss_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("acss_debit_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions AcssDebitPayments { get; set; } + + /// + /// Allow the merchant to process Affirm payments. + /// + [JsonProperty("affirm_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("affirm_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesAffirmPaymentsOptions AffirmPayments { get; set; } + + /// + /// Allow the merchant to process Afterpay/Clearpay payments. + /// + [JsonProperty("afterpay_clearpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("afterpay_clearpay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions AfterpayClearpayPayments { get; set; } + + /// + /// Allow the merchant to process Alma payments. + /// + [JsonProperty("alma_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("alma_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesAlmaPaymentsOptions AlmaPayments { get; set; } + + /// + /// Allow the merchant to process Amazon Pay payments. + /// + [JsonProperty("amazon_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amazon_pay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions AmazonPayPayments { get; set; } + + /// + /// Allow the merchant to process Australian BECS Direct Debit payments. + /// + [JsonProperty("au_becs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("au_becs_debit_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions AuBecsDebitPayments { get; set; } + + /// + /// Allow the merchant to process BACS Direct Debit payments. + /// + [JsonProperty("bacs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bacs_debit_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions BacsDebitPayments { get; set; } + + /// + /// Allow the merchant to process Bancontact payments. + /// + [JsonProperty("bancontact_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bancontact_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesBancontactPaymentsOptions BancontactPayments { get; set; } + + /// + /// Allow the merchant to process BLIK payments. + /// + [JsonProperty("blik_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("blik_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesBlikPaymentsOptions BlikPayments { get; set; } + + /// + /// Allow the merchant to process Boleto payments. + /// + [JsonProperty("boleto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("boleto_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesBoletoPaymentsOptions BoletoPayments { get; set; } + + /// + /// Allow the merchant to collect card payments. + /// + [JsonProperty("card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesCardPaymentsOptions CardPayments { get; set; } + + /// + /// Allow the merchant to process Cartes Bancaires payments. + /// + [JsonProperty("cartes_bancaires_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cartes_bancaires_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions CartesBancairesPayments { get; set; } + + /// + /// Allow the merchant to process Cash App payments. + /// + [JsonProperty("cashapp_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cashapp_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesCashappPaymentsOptions CashappPayments { get; set; } + + /// + /// Allow the merchant to process EPS payments. + /// + [JsonProperty("eps_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("eps_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesEpsPaymentsOptions EpsPayments { get; set; } + + /// + /// Allow the merchant to process FPX payments. + /// + [JsonProperty("fpx_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fpx_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesFpxPaymentsOptions FpxPayments { get; set; } + + /// + /// Allow the merchant to process UK bank transfer payments. + /// + [JsonProperty("gb_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("gb_bank_transfer_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions GbBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process GrabPay payments. + /// + [JsonProperty("grabpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("grabpay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions GrabpayPayments { get; set; } + + /// + /// Allow the merchant to process iDEAL payments. + /// + [JsonProperty("ideal_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ideal_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesIdealPaymentsOptions IdealPayments { get; set; } + + /// + /// Allow the merchant to process JCB card payments. + /// + [JsonProperty("jcb_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jcb_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesJcbPaymentsOptions JcbPayments { get; set; } + + /// + /// Allow the merchant to process Japanese bank transfer payments. + /// + [JsonProperty("jp_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jp_bank_transfer_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions JpBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Kakao Pay payments. + /// + [JsonProperty("kakao_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kakao_pay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions KakaoPayPayments { get; set; } + + /// + /// Allow the merchant to process Klarna payments. + /// + [JsonProperty("klarna_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("klarna_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions KlarnaPayments { get; set; } + + /// + /// Allow the merchant to process Konbini convenience store payments. + /// + [JsonProperty("konbini_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("konbini_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions KonbiniPayments { get; set; } + + /// + /// Allow the merchant to process Korean card payments. + /// + [JsonProperty("kr_card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kr_card_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesKrCardPaymentsOptions KrCardPayments { get; set; } + + /// + /// Allow the merchant to process Link payments. + /// + [JsonProperty("link_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("link_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesLinkPaymentsOptions LinkPayments { get; set; } + + /// + /// Allow the merchant to process MobilePay payments. + /// + [JsonProperty("mobilepay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mobilepay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions MobilepayPayments { get; set; } + + /// + /// Allow the merchant to process Multibanco payments. + /// + [JsonProperty("multibanco_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("multibanco_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions MultibancoPayments { get; set; } + + /// + /// Allow the merchant to process Mexican bank transfer payments. + /// + [JsonProperty("mx_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mx_bank_transfer_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions MxBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Naver Pay payments. + /// + [JsonProperty("naver_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("naver_pay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions NaverPayPayments { get; set; } + + /// + /// Allow the merchant to process OXXO payments. + /// + [JsonProperty("oxxo_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("oxxo_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesOxxoPaymentsOptions OxxoPayments { get; set; } + + /// + /// Allow the merchant to process Przelewy24 (P24) payments. + /// + [JsonProperty("p24_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("p24_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesP24PaymentsOptions P24Payments { get; set; } + + /// + /// Allow the merchant to process Pay by Bank payments. + /// + [JsonProperty("pay_by_bank_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_by_bank_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions PayByBankPayments { get; set; } + + /// + /// Allow the merchant to process PAYCO payments. + /// + [JsonProperty("payco_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payco_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesPaycoPaymentsOptions PaycoPayments { get; set; } + + /// + /// Allow the merchant to process PayNow payments. + /// + [JsonProperty("paynow_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("paynow_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesPaynowPaymentsOptions PaynowPayments { get; set; } + + /// + /// Allow the merchant to process PromptPay payments. + /// + [JsonProperty("promptpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("promptpay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions PromptpayPayments { get; set; } + + /// + /// Allow the merchant to process Revolut Pay payments. + /// + [JsonProperty("revolut_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("revolut_pay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions RevolutPayPayments { get; set; } + + /// + /// Allow the merchant to process Samsung Pay payments. + /// + [JsonProperty("samsung_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("samsung_pay_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions SamsungPayPayments { get; set; } + + /// + /// Allow the merchant to process SEPA bank transfer payments. + /// + [JsonProperty("sepa_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sepa_bank_transfer_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions SepaBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process SEPA Direct Debit payments. + /// + [JsonProperty("sepa_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sepa_debit_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions SepaDebitPayments { get; set; } + + /// + /// Allow the merchant to process Swish payments. + /// + [JsonProperty("swish_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("swish_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesSwishPaymentsOptions SwishPayments { get; set; } + + /// + /// Allow the merchant to process TWINT payments. + /// + [JsonProperty("twint_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("twint_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesTwintPaymentsOptions TwintPayments { get; set; } + + /// + /// Allow the merchant to process US bank transfer payments. + /// + [JsonProperty("us_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("us_bank_transfer_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions UsBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Zip payments. + /// + [JsonProperty("zip_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("zip_payments")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesZipPaymentsOptions ZipPayments { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs new file mode 100644 index 0000000000..26e1e8a356 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesOxxoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs new file mode 100644 index 0000000000..30502418dc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesP24PaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs new file mode 100644 index 0000000000..50ffcdd291 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs new file mode 100644 index 0000000000..83f33b9136 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesPaycoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs new file mode 100644 index 0000000000..46a9474494 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesPaynowPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs new file mode 100644 index 0000000000..8178a99b04 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs new file mode 100644 index 0000000000..1641b73ed8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs new file mode 100644 index 0000000000..a538085cc3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..167e13bcf7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs new file mode 100644 index 0000000000..a7f55f2436 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs new file mode 100644 index 0000000000..11b03ed0c8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesSwishPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs new file mode 100644 index 0000000000..83321325a4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesTwintPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..2a1bcb9c39 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs new file mode 100644 index 0000000000..adc1ca2a9f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCapabilitiesZipPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsDeclineOnOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsDeclineOnOptions.cs new file mode 100644 index 0000000000..58a5444284 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsDeclineOnOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCardPaymentsDeclineOnOptions : INestedOptions + { + /// + /// Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This + /// setting only applies when a ZIP or postal code is provided and they fail bank + /// verification. + /// + [JsonProperty("avs_failure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("avs_failure")] +#endif + public bool? AvsFailure { get; set; } + + /// + /// Whether Stripe automatically declines charges with an incorrect CVC. This setting only + /// applies when a CVC is provided and it fails bank verification. + /// + [JsonProperty("cvc_failure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cvc_failure")] +#endif + public bool? CvcFailure { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsOptions.cs new file mode 100644 index 0000000000..2f64fa1e30 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCardPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantCardPaymentsOptions : INestedOptions + { + /// + /// Automatically declines certain charge types regardless of whether the card issuer + /// accepted or declined the charge. + /// + [JsonProperty("decline_on")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("decline_on")] +#endif + public AccountCreateConfigurationMerchantCardPaymentsDeclineOnOptions DeclineOn { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsOptions.cs new file mode 100644 index 0000000000..71a4c9c860 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantKonbiniPaymentsOptions : INestedOptions + { + /// + /// Support for Konbini payments. + /// + [JsonProperty("support")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("support")] +#endif + public AccountCreateConfigurationMerchantKonbiniPaymentsSupportOptions Support { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs new file mode 100644 index 0000000000..adab5d6b5e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantKonbiniPaymentsSupportHoursOptions : INestedOptions + { + /// + /// Support hours end time (JST time of day) for in HH:MM format. + /// + [JsonProperty("end_time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_time")] +#endif + public string EndTime { get; set; } + + /// + /// Support hours start time (JST time of day) for in HH:MM format. + /// + [JsonProperty("start_time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_time")] +#endif + public string StartTime { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportOptions.cs new file mode 100644 index 0000000000..d063fa7d89 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantKonbiniPaymentsSupportOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantKonbiniPaymentsSupportOptions : INestedOptions + { + /// + /// Support email address for Konbini payments. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// Support hours for Konbini payments. + /// + [JsonProperty("hours")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hours")] +#endif + public AccountCreateConfigurationMerchantKonbiniPaymentsSupportHoursOptions Hours { get; set; } + + /// + /// Support phone number for Konbini payments. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs new file mode 100644 index 0000000000..a35f22cccb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs @@ -0,0 +1,94 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantOptions : INestedOptions + { + /// + /// Settings used for Bacs debit payments. + /// + [JsonProperty("bacs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bacs_debit_payments")] +#endif + public AccountCreateConfigurationMerchantBacsDebitPaymentsOptions BacsDebitPayments { get; set; } + + /// + /// Settings used to apply the merchant's branding to email receipts, invoices, Checkout, + /// and other products. + /// + [JsonProperty("branding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("branding")] +#endif + public AccountCreateConfigurationMerchantBrandingOptions Branding { get; set; } + + /// + /// Capabilities to request on the Merchant Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountCreateConfigurationMerchantCapabilitiesOptions Capabilities { get; set; } + + /// + /// Card payments settings. + /// + [JsonProperty("card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_payments")] +#endif + public AccountCreateConfigurationMerchantCardPaymentsOptions CardPayments { get; set; } + + /// + /// Settings specific to Konbini payments on the account. + /// + [JsonProperty("konbini_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("konbini_payments")] +#endif + public AccountCreateConfigurationMerchantKonbiniPaymentsOptions KonbiniPayments { get; set; } + + /// + /// The Merchant Category Code (MCC) for the Merchant Configuration. MCCs classify + /// businesses based on the goods or services they provide. + /// + [JsonProperty("mcc")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mcc")] +#endif + public string Mcc { get; set; } + + /// + /// Settings for the default text that appears on statements for language variations. + /// + [JsonProperty("script_statement_descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_statement_descriptor")] +#endif + public AccountCreateConfigurationMerchantScriptStatementDescriptorOptions ScriptStatementDescriptor { get; set; } + + /// + /// Statement descriptor. + /// + [JsonProperty("statement_descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("statement_descriptor")] +#endif + public AccountCreateConfigurationMerchantStatementDescriptorOptions StatementDescriptor { get; set; } + + /// + /// Publicly available contact information for sending support issues to. + /// + [JsonProperty("support")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("support")] +#endif + public AccountCreateConfigurationMerchantSupportOptions Support { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs new file mode 100644 index 0000000000..53a060253f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantScriptStatementDescriptorKanaOptions : INestedOptions + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs new file mode 100644 index 0000000000..4a929afeb2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantScriptStatementDescriptorKanjiOptions : INestedOptions + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorOptions.cs new file mode 100644 index 0000000000..6267d483f4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantScriptStatementDescriptorOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantScriptStatementDescriptorOptions : INestedOptions + { + /// + /// The Kana variation of statement_descriptor used for charges in Japan. Japanese statement + /// descriptors have special + /// requirements. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountCreateConfigurationMerchantScriptStatementDescriptorKanaOptions Kana { get; set; } + + /// + /// The Kanji variation of statement_descriptor used for charges in Japan. Japanese + /// statement descriptors have special + /// requirements. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountCreateConfigurationMerchantScriptStatementDescriptorKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantStatementDescriptorOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantStatementDescriptorOptions.cs new file mode 100644 index 0000000000..776e200d92 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantStatementDescriptorOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantStatementDescriptorOptions : INestedOptions + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSupportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSupportOptions.cs new file mode 100644 index 0000000000..002b2d1f6a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSupportOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantSupportOptions : INestedOptions + { + /// + /// A publicly available mailing address for sending support issues to. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// A publicly available email address for sending support issues to. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// A publicly available phone number to call with support issues. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// A publicly available website for handling support issues. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs new file mode 100644 index 0000000000..9ffa0b26f4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationOptions : INestedOptions + { + /// + /// The Customer Configuration allows the Account to be used in inbound payment flows. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public AccountCreateConfigurationCustomerOptions Customer { get; set; } + + /// + /// Enables the Account to act as a connected account and collect payments facilitated by a + /// Connect platform. You must onboard your platform to Connect before you can add this + /// configuration to your connected accounts. Utilize this configuration when the Account + /// will be the Merchant of Record, like with Direct charges or Destination Charges with + /// on_behalf_of set. + /// + [JsonProperty("merchant")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("merchant")] +#endif + public AccountCreateConfigurationMerchantOptions Merchant { get; set; } + + /// + /// The Recipient Configuration allows the Account to receive funds. Utilize this + /// configuration if the Account will not be the Merchant of Record, like with Separate + /// Charges & Transfers, or Destination Charges without on_behalf_of set. + /// + [JsonProperty("recipient")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recipient")] +#endif + public AccountCreateConfigurationRecipientOptions Recipient { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesOptions.cs new file mode 100644 index 0000000000..98f2ddd3b2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationRecipientCapabilitiesOptions : INestedOptions + { + /// + /// Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + /// + [JsonProperty("stripe_balance")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_balance")] +#endif + public AccountCreateConfigurationRecipientCapabilitiesStripeBalanceOptions StripeBalance { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs new file mode 100644 index 0000000000..fbd1d0c189 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationRecipientCapabilitiesStripeBalanceOptions : INestedOptions + { + /// + /// Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + /// + [JsonProperty("stripe_transfers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_transfers")] +#endif + public AccountCreateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions StripeTransfers { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs new file mode 100644 index 0000000000..8576b487b0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientOptions.cs new file mode 100644 index 0000000000..f699d08ce2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationRecipientOptions : INestedOptions + { + /// + /// Capabilities to be requested on the Recipient Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountCreateConfigurationRecipientCapabilitiesOptions Capabilities { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsOptions.cs new file mode 100644 index 0000000000..029aa27d36 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsOptions.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateDefaultsOptions : INestedOptions + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// The Account's preferred locales (languages), ordered by preference. + /// One of: ar-SA, bg, bg-BG, cs, cs-CZ, da, + /// da-DK, de, de-DE, el, el-GR, en, en-AU, + /// en-CA, en-GB, en-IE, en-IN, en-NZ, en-SG, + /// en-US, es, es-419, es-ES, et, et-EE, + /// fi, fil, fil-PH, fi-FI, fr, fr-CA, + /// fr-FR, he-IL, hr, hr-HR, hu, hu-HU, id, + /// id-ID, it, it-IT, ja, ja-JP, ko, ko-KR, + /// lt, lt-LT, lv, lv-LV, ms, ms-MY, mt, + /// mt-MT, nb, nb-NO, nl, nl-NL, pl, pl-PL, + /// pt, pt-BR, pt-PT, ro, ro-RO, ru, ru-RU, + /// sk, sk-SK, sl, sl-SI, sv, sv-SE, th, + /// th-TH, tr, tr-TR, vi, vi-VN, zh, + /// zh-Hans, zh-Hant-HK, zh-Hant-TW, zh-HK, or zh-TW. + /// + [JsonProperty("locales")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("locales")] +#endif + public List Locales { get; set; } + + /// + /// Account profile information. + /// + [JsonProperty("profile")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("profile")] +#endif + public AccountCreateDefaultsProfileOptions Profile { get; set; } + + /// + /// Default responsibilities held by either Stripe or the platform. + /// + [JsonProperty("responsibilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("responsibilities")] +#endif + public AccountCreateDefaultsResponsibilitiesOptions Responsibilities { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsProfileOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsProfileOptions.cs new file mode 100644 index 0000000000..800019751b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsProfileOptions.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateDefaultsProfileOptions : INestedOptions + { + /// + /// The business's publicly-available website. + /// + [JsonProperty("business_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("business_url")] +#endif + public string BusinessUrl { get; set; } + + /// + /// The name which is used by the business. + /// + [JsonProperty("doing_business_as")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("doing_business_as")] +#endif + public string DoingBusinessAs { get; set; } + + /// + /// Internal-only description of the product sold or service provided by the business. It's + /// used by Stripe for risk and underwriting purposes. + /// + [JsonProperty("product_description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product_description")] +#endif + public string ProductDescription { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsResponsibilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsResponsibilitiesOptions.cs new file mode 100644 index 0000000000..aa142110ac --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateDefaultsResponsibilitiesOptions.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateDefaultsResponsibilitiesOptions : INestedOptions + { + /// + /// A value indicating the party responsible for collecting fees from this account. + /// One of: application, application_custom, application_express, or + /// stripe. + /// + [JsonProperty("fees_collector")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fees_collector")] +#endif + public string FeesCollector { get; set; } + + /// + /// A value indicating who is responsible for losses when this Account can’t pay back + /// negative balances from payments. + /// One of: application, or stripe. + /// + [JsonProperty("losses_collector")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("losses_collector")] +#endif + public string LossesCollector { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsDirectorshipDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsDirectorshipDeclarationOptions.cs new file mode 100644 index 0000000000..ed335fcd06 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsDirectorshipDeclarationOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsDirectorshipDeclarationOptions : INestedOptions + { + /// + /// The time marking when the director attestation was made. Represented as a RFC 3339 date + /// & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the director attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the director attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOptions.cs new file mode 100644 index 0000000000..e84a868e3a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsOptions : INestedOptions + { + /// + /// This hash is used to attest that the directors information provided to Stripe is both + /// current and correct. + /// + [JsonProperty("directorship_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directorship_declaration")] +#endif + public AccountCreateIdentityAttestationsDirectorshipDeclarationOptions DirectorshipDeclaration { get; set; } + + /// + /// This hash is used to attest that the beneficial owner information provided to Stripe is + /// both current and correct. + /// + [JsonProperty("ownership_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_declaration")] +#endif + public AccountCreateIdentityAttestationsOwnershipDeclarationOptions OwnershipDeclaration { get; set; } + + /// + /// Attestation that all Persons with a specific Relationship value have been provided. + /// + [JsonProperty("persons_provided")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("persons_provided")] +#endif + public AccountCreateIdentityAttestationsPersonsProvidedOptions PersonsProvided { get; set; } + + /// + /// This hash is used to attest that the representative is authorized to act as the + /// representative of their legal entity. + /// + [JsonProperty("representative_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative_declaration")] +#endif + public AccountCreateIdentityAttestationsRepresentativeDeclarationOptions RepresentativeDeclaration { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("terms_of_service")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceOptions TermsOfService { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOwnershipDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOwnershipDeclarationOptions.cs new file mode 100644 index 0000000000..3acac4dbcb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsOwnershipDeclarationOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsOwnershipDeclarationOptions : INestedOptions + { + /// + /// The time marking when the beneficial owner attestation was made. Represented as a RFC + /// 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the beneficial owner attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the beneficial owner attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsPersonsProvidedOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsPersonsProvidedOptions.cs new file mode 100644 index 0000000000..ba3ab15059 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsPersonsProvidedOptions.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsPersonsProvidedOptions : INestedOptions + { + /// + /// Whether the company’s directors have been provided. Set this Boolean to true after + /// creating all the company’s directors with the Persons API. + /// + [JsonProperty("directors")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directors")] +#endif + public bool? Directors { get; set; } + + /// + /// Whether the company’s executives have been provided. Set this Boolean to true after + /// creating all the company’s executives with the Persons API. + /// + [JsonProperty("executives")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executives")] +#endif + public bool? Executives { get; set; } + + /// + /// Whether the company’s owners have been provided. Set this Boolean to true after creating + /// all the company’s owners with the Persons API. + /// + [JsonProperty("owners")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owners")] +#endif + public bool? Owners { get; set; } + + /// + /// Reason for why the company is exempt from providing ownership information. + /// One of: qualified_entity_exceeds_ownership_threshold, or + /// qualifies_as_financial_institution. + /// + [JsonProperty("ownership_exemption_reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_exemption_reason")] +#endif + public string OwnershipExemptionReason { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsRepresentativeDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsRepresentativeDeclarationOptions.cs new file mode 100644 index 0000000000..94891268db --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsRepresentativeDeclarationOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsRepresentativeDeclarationOptions : INestedOptions + { + /// + /// The time marking when the representative attestation was made. Represented as a RFC 3339 + /// date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the representative attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the representative attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceAccountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceAccountOptions.cs new file mode 100644 index 0000000000..b047adad7f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceAccountOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceAccountOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs new file mode 100644 index 0000000000..9ba277c608 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceOptions : INestedOptions + { + /// + /// Details on the Account's acceptance of the Stripe Services + /// Agreement. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceAccountOptions Account { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs new file mode 100644 index 0000000000..65dd1cadf3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs new file mode 100644 index 0000000000..2c1bfe19b9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsAnnualRevenueOptions : INestedOptions + { + /// + /// A non-negative integer representing the amount in the smallest currency unit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } + + /// + /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + /// the 31st of December, 2023. + /// + [JsonProperty("fiscal_year_end")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fiscal_year_end")] +#endif + public string FiscalYearEnd { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs new file mode 100644 index 0000000000..745f869226 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs new file mode 100644 index 0000000000..8e357d8f91 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs new file mode 100644 index 0000000000..d07cfdff42 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs new file mode 100644 index 0000000000..2aef8080df --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs new file mode 100644 index 0000000000..8184e6a42f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs new file mode 100644 index 0000000000..25b8ac301c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs new file mode 100644 index 0000000000..b880142879 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs @@ -0,0 +1,106 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsOptions : INestedOptions + { + /// + /// One or more documents that support the bank account ownership verification requirement. + /// Must be a document associated with the account’s primary active bank account that + /// displays the last 4 digits of the account number, either a statement or a check. + /// + [JsonProperty("bank_account_ownership_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_account_ownership_verification")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions BankAccountOwnershipVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s license to operate. + /// + [JsonProperty("company_license")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_license")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsCompanyLicenseOptions CompanyLicense { get; set; } + + /// + /// One or more documents showing the company’s Memorandum of Association. + /// + [JsonProperty("company_memorandum_of_association")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_memorandum_of_association")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions CompanyMemorandumOfAssociation { get; set; } + + /// + /// Certain countries only: One or more documents showing the ministerial decree legalizing + /// the company’s establishment. + /// + [JsonProperty("company_ministerial_decree")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_ministerial_decree")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions CompanyMinisterialDecree { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s registration with the + /// appropriate local authorities. + /// + [JsonProperty("company_registration_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_registration_verification")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions CompanyRegistrationVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s tax ID. + /// + [JsonProperty("company_tax_id_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_tax_id_verification")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions CompanyTaxIdVerification { get; set; } + + /// + /// A document verifying the business. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions ProofOfAddress { get; set; } + + /// + /// One or more documents showing the company’s proof of registration with the national + /// business registry. + /// + [JsonProperty("proof_of_registration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_registration")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions ProofOfRegistration { get; set; } + + /// + /// One or more documents that demonstrate proof of ultimate beneficial ownership. + /// + [JsonProperty("proof_of_ultimate_beneficial_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_ultimate_beneficial_ownership")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions ProofOfUltimateBeneficialOwnership { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..5435423b15 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..298490069c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs new file mode 100644 index 0000000000..01e2da1ebc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs new file mode 100644 index 0000000000..dcc4780617 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs new file mode 100644 index 0000000000..5f241856e8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs new file mode 100644 index 0000000000..39cc97021a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsIdNumberOptions : INestedOptions + { + /// + /// The registrar of the ID number (Only valid for DE ID number types). + /// + [JsonProperty("registrar")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registrar")] +#endif + public string Registrar { get; set; } + + /// + /// Open Enum. The ID number type of a business entity. + /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, + /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, + /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, hr_mbs, + /// hr_oib, hr_vat, hu_cjs, hu_tin, hu_vat, + /// ie_crn, ie_trn, ie_vat, it_rea, it_vat, jp_cn, + /// kz_bin, li_uid, lt_ccrn, lt_vat, lu_nif, + /// lu_rcs, lu_vat, lv_urn, lv_vat, mt_crn, + /// mt_tin, mt_vat, mx_rfc, my_brn, my_coid, + /// my_itn, my_sst, mz_nuit, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pe_ruc, + /// pk_ntn, pl_nip, pl_regon, pl_vat, pt_vat, + /// ro_cui, ro_orc, ro_vat, sa_crn, sa_tin, + /// se_orgnr, se_vat, sg_uen, si_msp, si_tin, + /// si_vat, sk_dic, sk_ico, sk_vat, th_crn, + /// th_prn, th_tin, or us_ein. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs new file mode 100644 index 0000000000..7be1063978 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs new file mode 100644 index 0000000000..649c532d05 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions : INestedOptions + { + /// + /// A non-negative integer representing the amount in the smallest currency unit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs new file mode 100644 index 0000000000..77d3c140b8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs @@ -0,0 +1,123 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsOptions : INestedOptions + { + /// + /// The business registration address of the business entity. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The business gross annual revenue for its preceding fiscal year. + /// + [JsonProperty("annual_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("annual_revenue")] +#endif + public AccountCreateIdentityBusinessDetailsAnnualRevenueOptions AnnualRevenue { get; set; } + + /// + /// A document verifying the business. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsOptions Documents { get; set; } + + /// + /// Estimated maximum number of workers currently engaged by the business (including + /// employees, contractors, and vendors). + /// + [JsonProperty("estimated_worker_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("estimated_worker_count")] +#endif + public long? EstimatedWorkerCount { get; set; } + + /// + /// The ID numbers of a business entity. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// An estimate of the monthly revenue of the business. + /// + [JsonProperty("monthly_estimated_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_estimated_revenue")] +#endif + public AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions MonthlyEstimatedRevenue { get; set; } + + /// + /// The phone number of the Business Entity. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The business legal name. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + + /// + /// The business registration address of the business entity in non latin script. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountCreateIdentityBusinessDetailsScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The business legal name in non latin script. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountCreateIdentityBusinessDetailsScriptNamesOptions ScriptNames { get; set; } + + /// + /// The category identifying the legal structure of the business. + /// One of: cooperative, free_zone_establishment, free_zone_llc, + /// governmental_unit, government_instrumentality, + /// incorporated_association, incorporated_non_profit, + /// incorporated_partnership, limited_liability_partnership, llc, + /// multi_member_llc, private_company, private_corporation, + /// private_partnership, public_company, public_corporation, + /// public_listed_corporation, public_partnership, registered_charity, + /// single_member_llc, sole_establishment, sole_proprietorship, + /// tax_exempt_government_instrumentality, trust, + /// unincorporated_association, unincorporated_non_profit, or + /// unincorporated_partnership. + /// + [JsonProperty("structure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("structure")] +#endif + public string Structure { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptAddressesOptions.cs new file mode 100644 index 0000000000..132027eb7f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..d55294d53e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanaOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsScriptNamesKanaOptions : INestedOptions + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..af1cff8cb5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesKanjiOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsScriptNamesKanjiOptions : INestedOptions + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesOptions.cs new file mode 100644 index 0000000000..9ace7a5a25 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsScriptNamesOptions : INestedOptions + { + /// + /// Kana name. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountCreateIdentityBusinessDetailsScriptNamesKanaOptions Kana { get; set; } + + /// + /// Kanji name. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountCreateIdentityBusinessDetailsScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs new file mode 100644 index 0000000000..d9177d75f8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalNameOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalNameOptions.cs new file mode 100644 index 0000000000..35467073f0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalNameOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualAdditionalNameOptions : INestedOptions + { + /// + /// The person's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDateOfBirthOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDateOfBirthOptions.cs new file mode 100644 index 0000000000..35e68b49b2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDateOfBirthOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDateOfBirthOptions : INestedOptions + { + /// + /// The day of birth. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long? Day { get; set; } + + /// + /// The month of birth. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs new file mode 100644 index 0000000000..387bd9856b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsCompanyAuthorizationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsOptions.cs new file mode 100644 index 0000000000..c89a5a5a29 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsOptions : INestedOptions + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public AccountCreateIdentityIndividualDocumentsCompanyAuthorizationOptions CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public AccountCreateIdentityIndividualDocumentsPassportOptions Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountCreateIdentityIndividualDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public AccountCreateIdentityIndividualDocumentsSecondaryVerificationOptions SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public AccountCreateIdentityIndividualDocumentsVisaOptions Visa { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPassportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPassportOptions.cs new file mode 100644 index 0000000000..27d48a932a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPassportOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsPassportOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..a95266b95a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..b7a515b766 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountCreateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..44fd90721d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs new file mode 100644 index 0000000000..5cc1167268 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsSecondaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsSecondaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountCreateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsVisaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsVisaOptions.cs new file mode 100644 index 0000000000..9d7c200551 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualDocumentsVisaOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualDocumentsVisaOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs new file mode 100644 index 0000000000..175a1b0a4d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualIdNumberOptions : INestedOptions + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs new file mode 100644 index 0000000000..903b996a23 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs @@ -0,0 +1,169 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualOptions : INestedOptions, IHasMetadata + { + /// + /// Additional addresses associated with the individual. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the individual. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// The individual's residential address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The individual's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public AccountCreateIdentityIndividualDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountCreateIdentityIndividualDocumentsOptions Documents { get; set; } + + /// + /// The individual's email address. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The individual's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the individual. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The individual's gender (International regulations require either "male" or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// The individual's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The individual's political exposure. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this individual has with the account's identity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public AccountCreateIdentityIndividualRelationshipOptions Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the individual. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountCreateIdentityIndividualScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The individuals primary name in non latin script. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountCreateIdentityIndividualScriptNamesOptions ScriptNames { get; set; } + + /// + /// The individual's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs new file mode 100644 index 0000000000..f8d1392e98 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualRelationshipOptions : INestedOptions + { + /// + /// Whether the person is a director of the account's identity. Directors are typically + /// members of the governing board of the company, or responsible for ensuring the company + /// meets its regulatory obligations. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Whether the person has significant responsibility to control, manage, or direct the + /// organization. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Whether the person is an owner of the account’s identity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percent owned by the person of the account's legal entity. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// The person's title (e.g., CEO, Support Engineer). + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptAddressesOptions.cs new file mode 100644 index 0000000000..aba923b7d2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..d2b56f6591 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanaOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualScriptNamesKanaOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..3cb81cb456 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesKanjiOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualScriptNamesKanjiOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesOptions.cs new file mode 100644 index 0000000000..873382a2cc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityIndividualScriptNamesOptions : INestedOptions + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountCreateIdentityIndividualScriptNamesKanaOptions Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountCreateIdentityIndividualScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs new file mode 100644 index 0000000000..1060c19280 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs @@ -0,0 +1,62 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityOptions : INestedOptions + { + /// + /// Attestations from the identity's key people, e.g. owners, executives, directors, + /// representatives. + /// + [JsonProperty("attestations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attestations")] +#endif + public AccountCreateIdentityAttestationsOptions Attestations { get; set; } + + /// + /// Information about the company or business. + /// + [JsonProperty("business_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("business_details")] +#endif + public AccountCreateIdentityBusinessDetailsOptions BusinessDetails { get; set; } + + /// + /// The country in which the account holder resides, or in which the business is legally + /// established. This should be an ISO 3166-1 alpha-2 country + /// code. + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// The entity type. + /// One of: company, government_entity, individual, or + /// non_profit. + /// + [JsonProperty("entity_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("entity_type")] +#endif + public string EntityType { get; set; } + + /// + /// Information about the person represented by the account. + /// + [JsonProperty("individual")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("individual")] +#endif + public AccountCreateIdentityIndividualOptions Individual { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs new file mode 100644 index 0000000000..79098cb523 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs @@ -0,0 +1,102 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateOptions : BaseOptions, IHasMetadata + { + /// + /// The account token generated by the account token api. + /// + [JsonProperty("account_token")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_token")] +#endif + public string AccountToken { get; set; } + + /// + /// An Account Configuration which allows the Account to take on a key persona across Stripe + /// products. + /// + [JsonProperty("configuration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configuration")] +#endif + public AccountCreateConfigurationOptions Configuration { get; set; } + + /// + /// The default contact email address for the Account. Required when configuring the account + /// as a merchant or recipient. + /// + [JsonProperty("contact_email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("contact_email")] +#endif + public string ContactEmail { get; set; } + + /// + /// A value indicating the Stripe dashboard this Account has access to. This will depend on + /// which configurations are enabled for this account. + /// One of: express, full, or none. + /// + [JsonProperty("dashboard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dashboard")] +#endif + public string Dashboard { get; set; } + + /// + /// Default values to be used on Account Configurations. + /// + [JsonProperty("defaults")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("defaults")] +#endif + public AccountCreateDefaultsOptions Defaults { get; set; } + + /// + /// A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard + /// and on any invoices sent to the Account. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + + /// + /// Information about the company, individual, and business represented by the Account. + /// + [JsonProperty("identity")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("identity")] +#endif + public AccountCreateIdentityOptions Identity { get; set; } + + /// + /// Additional fields to include in the response. + /// One of: configuration.customer, configuration.merchant, + /// configuration.recipient, defaults, future_requirements, + /// identity, or requirements. + /// + [JsonProperty("include")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("include")] +#endif + public List Include { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs new file mode 100644 index 0000000000..4a5e630c19 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs @@ -0,0 +1,24 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountGetOptions : BaseOptions + { + /// + /// Additional fields to include in the response. + /// One of: configuration.customer, configuration.merchant, + /// configuration.recipient, defaults, future_requirements, + /// identity, or requirements. + /// + [JsonProperty("include")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("include")] +#endif + public List Include { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs new file mode 100644 index 0000000000..2877ac8eac --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountListOptions : V2.ListOptions + { + /// + /// Filter only accounts that have all of the configurations specified. If omitted, returns + /// all accounts regardless of which configurations they have. + /// One of: customer, merchant, or recipient. + /// + [JsonProperty("applied_configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied_configurations")] +#endif + public List AppliedConfigurations { get; set; } + + /// + /// Filter by whether the account is closed. If omitted, returns only Accounts that are not + /// closed. + /// + [JsonProperty("closed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("closed")] +#endif + public bool? Closed { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs new file mode 100644 index 0000000000..3cf237a868 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs @@ -0,0 +1,140 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class AccountService : Service + { + private V2.Core.Accounts.PersonService persons; + private V2.Core.Accounts.PersonTokenService personTokens; + + internal AccountService(ApiRequestor requestor) + : base(requestor) + { + } + + internal AccountService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Core.Accounts.PersonService Persons => this.persons ??= new V2.Core.Accounts.PersonService( + this.Requestor); + + public virtual V2.Core.Accounts.PersonTokenService PersonTokens => this.personTokens ??= new V2.Core.Accounts.PersonTokenService( + this.Requestor); + + /// + /// Removes access to the Account and its associated resources. Closed Accounts can no + /// longer be operated on, but limited information can still be retrieved through the API in + /// order to be able to track their history. + /// + public virtual Account Close(string id, AccountCloseOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/close", options, requestOptions); + } + + /// + /// Removes access to the Account and its associated resources. Closed Accounts can no + /// longer be operated on, but limited information can still be retrieved through the API in + /// order to be able to track their history. + /// + public virtual Task CloseAsync(string id, AccountCloseOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/close", options, requestOptions, cancellationToken); + } + + /// + /// An Account is a representation of a company, individual or other entity that a user + /// interacts with. Accounts contain identifying information about the entity, and + /// configurations that store the features an account has access to. An account can be + /// configured as any or all of the following configurations: Customer, Merchant and/or + /// Recipient. + /// + public virtual Account Create(AccountCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts", options, requestOptions); + } + + /// + /// An Account is a representation of a company, individual or other entity that a user + /// interacts with. Accounts contain identifying information about the entity, and + /// configurations that store the features an account has access to. An account can be + /// configured as any or all of the following configurations: Customer, Merchant and/or + /// Recipient. + /// + public virtual Task CreateAsync(AccountCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves the details of an Account. + /// + public virtual Account Get(string id, AccountGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves the details of an Account. + /// + public virtual Task GetAsync(string id, AccountGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Returns a list of Accounts. + /// + public virtual V2.StripeList List(AccountListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts", options, requestOptions); + } + + /// + /// Returns a list of Accounts. + /// + public virtual Task> ListAsync(AccountListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts", options, requestOptions, cancellationToken); + } + + /// + /// Returns a list of Accounts. + /// + public virtual IEnumerable ListAutoPaging(AccountListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/core/accounts", options, requestOptions); + } + + /// + /// Returns a list of Accounts. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(AccountListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/core/accounts", options, requestOptions, cancellationToken); + } + + /// + /// Updates the details of an Account. + /// + public virtual Account Update(string id, AccountUpdateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Updates the details of an Account. + /// + public virtual Task UpdateAsync(string id, AccountUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerAutomaticIndirectTaxOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerAutomaticIndirectTaxOptions.cs new file mode 100644 index 0000000000..ec8fb504ea --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerAutomaticIndirectTaxOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerAutomaticIndirectTaxOptions : INestedOptions + { + /// + /// The customer account's tax exemption status: none, exempt, or + /// reverse. When reverse, invoice and receipt PDFs include "Reverse charge". + /// One of: exempt, none, or reverse. + /// + [JsonProperty("exempt")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("exempt")] +#endif + public string Exempt { get; set; } + + /// + /// A recent IP address of the customer used for tax reporting and tax location inference. + /// + [JsonProperty("ip_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip_address")] +#endif + public string IpAddress { get; set; } + + /// + /// A per-request flag that indicates when Stripe should validate the customer tax location + /// - defaults to auto. + /// One of: auto, deferred, or immediately. + /// + [JsonProperty("validate_location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("validate_location")] +#endif + public string ValidateLocation { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs new file mode 100644 index 0000000000..2e3e33c809 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceCustomFieldOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerBillingInvoiceCustomFieldOptions : INestedOptions + { + /// + /// The name of the custom field. This may be up to 40 characters. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// The value of the custom field. This may be up to 140 characters. When updating, pass an + /// empty string to remove previously-defined values. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceOptions.cs new file mode 100644 index 0000000000..688ff9b26b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceOptions.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerBillingInvoiceOptions : INestedOptions + { + /// + /// The list of up to 4 default custom fields to be displayed on invoices for this customer. + /// + [JsonProperty("custom_fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom_fields")] +#endif + public List CustomFields { get; set; } + + /// + /// Default invoice footer. + /// + [JsonProperty("footer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("footer")] +#endif + public string Footer { get; set; } + + /// + /// Sequence number to use on the customer account's next invoice. Defaults to 1. + /// + [JsonProperty("next_sequence")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_sequence")] +#endif + public long? NextSequence { get; set; } + + /// + /// Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or + /// numbers. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + + /// + /// Default invoice PDF rendering options. + /// + [JsonProperty("rendering")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("rendering")] +#endif + public AccountUpdateConfigurationCustomerBillingInvoiceRenderingOptions Rendering { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceRenderingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceRenderingOptions.cs new file mode 100644 index 0000000000..19af614892 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingInvoiceRenderingOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerBillingInvoiceRenderingOptions : INestedOptions + { + /// + /// Indicates whether displayed line item prices and amounts on invoice PDFs include + /// inclusive tax amounts. Must be either include_inclusive_tax or + /// exclude_tax. + /// One of: exclude_tax, or include_inclusive_tax. + /// + [JsonProperty("amount_tax_display")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_tax_display")] +#endif + public string AmountTaxDisplay { get; set; } + + /// + /// ID of the invoice rendering template to use for future invoices. + /// + [JsonProperty("template")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("template")] +#endif + public string Template { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs new file mode 100644 index 0000000000..900a438964 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerBillingOptions : INestedOptions + { + /// + /// ID of a PaymentMethod attached to the customer account to use as the default for + /// invoices and subscriptions. + /// + [JsonProperty("default_payment_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("default_payment_method")] +#endif + public string DefaultPaymentMethod { get; set; } + + /// + /// Default invoice settings for the customer account. + /// + [JsonProperty("invoice")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("invoice")] +#endif + public AccountUpdateConfigurationCustomerBillingInvoiceOptions Invoice { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs new file mode 100644 index 0000000000..76d7e8357d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesOptions.cs new file mode 100644 index 0000000000..0d0b9a5ffb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerCapabilitiesOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerCapabilitiesOptions : INestedOptions + { + /// + /// Generates requirements for enabling automatic indirect tax calculation on this + /// customer's invoices or subscriptions. Recommended to request this capability if planning + /// to enable automatic tax calculation on this customer's invoices or subscriptions. + /// + [JsonProperty("automatic_indirect_tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("automatic_indirect_tax")] +#endif + public AccountUpdateConfigurationCustomerCapabilitiesAutomaticIndirectTaxOptions AutomaticIndirectTax { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerOptions.cs new file mode 100644 index 0000000000..6b418ae339 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerOptions.cs @@ -0,0 +1,70 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerOptions : INestedOptions + { + /// + /// Represents the state of the configuration, and can be updated to deactivate or re-apply + /// a configuration. + /// + [JsonProperty("applied")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied")] +#endif + public bool? Applied { get; set; } + + /// + /// Automatic indirect tax settings to be used when automatic tax calculation is enabled on + /// the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if + /// automatic tax calculation is possible given the current customer location information. + /// + [JsonProperty("automatic_indirect_tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("automatic_indirect_tax")] +#endif + public AccountUpdateConfigurationCustomerAutomaticIndirectTaxOptions AutomaticIndirectTax { get; set; } + + /// + /// Billing settings - default settings used for this customer in Billing flows such as + /// Invoices and Subscriptions. + /// + [JsonProperty("billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing")] +#endif + public AccountUpdateConfigurationCustomerBillingOptions Billing { get; set; } + + /// + /// Capabilities that have been requested on the Customer Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountUpdateConfigurationCustomerCapabilitiesOptions Capabilities { get; set; } + + /// + /// The customer's shipping information. Appears on invoices emailed to this customer. + /// + [JsonProperty("shipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping")] +#endif + public AccountUpdateConfigurationCustomerShippingOptions Shipping { get; set; } + + /// + /// ID of the test clock to attach to the customer. Can only be set on testmode Accounts, + /// and when the Customer Configuration is first set on an Account. + /// + [JsonProperty("test_clock")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("test_clock")] +#endif + public string TestClock { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerShippingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerShippingOptions.cs new file mode 100644 index 0000000000..d2ed12bd56 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerShippingOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCustomerShippingOptions : INestedOptions + { + /// + /// Customer shipping address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressOptions Address { get; set; } + + /// + /// Customer name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Customer phone (including extension). + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBacsDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBacsDebitPaymentsOptions.cs new file mode 100644 index 0000000000..0d246edd9f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBacsDebitPaymentsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantBacsDebitPaymentsOptions : INestedOptions + { + /// + /// Display name for Bacs Direct Debit payments. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBrandingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBrandingOptions.cs new file mode 100644 index 0000000000..e5150fc654 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantBrandingOptions.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantBrandingOptions : INestedOptions + { + /// + /// ID of a file + /// upload: An icon for the merchant. Must be square and at least 128px x 128px. + /// + [JsonProperty("icon")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("icon")] +#endif + public string Icon { get; set; } + + /// + /// ID of a file + /// upload: A logo for the merchant that will be used in Checkout instead of the icon + /// and without the merchant's name next to it if provided. Must be at least 128px x 128px. + /// + [JsonProperty("logo")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("logo")] +#endif + public string Logo { get; set; } + + /// + /// A CSS hex color value representing the primary branding color for the merchant. + /// + [JsonProperty("primary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_color")] +#endif + public string PrimaryColor { get; set; } + + /// + /// A CSS hex color value representing the secondary branding color for the merchant. + /// + [JsonProperty("secondary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_color")] +#endif + public string SecondaryColor { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs new file mode 100644 index 0000000000..cfccf78cd0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs new file mode 100644 index 0000000000..887b9a3ac7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs new file mode 100644 index 0000000000..af2f814655 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAffirmPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesAffirmPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs new file mode 100644 index 0000000000..2af9af14ff --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs new file mode 100644 index 0000000000..b46e885b70 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAlmaPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesAlmaPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs new file mode 100644 index 0000000000..00321e67ed --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs new file mode 100644 index 0000000000..d2ee97ff46 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs new file mode 100644 index 0000000000..2af748f17a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs new file mode 100644 index 0000000000..1d2fdea09e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBancontactPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesBancontactPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs new file mode 100644 index 0000000000..4cf45e610f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBlikPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesBlikPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs new file mode 100644 index 0000000000..64c4a1aa17 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesBoletoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesBoletoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs new file mode 100644 index 0000000000..63b1763ded --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCardPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesCardPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs new file mode 100644 index 0000000000..458a0224c8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs new file mode 100644 index 0000000000..24cbd48593 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesCashappPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesCashappPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs new file mode 100644 index 0000000000..61f8370468 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesEpsPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesEpsPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs new file mode 100644 index 0000000000..80d738c3ba --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesFpxPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesFpxPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..4e4773566d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs new file mode 100644 index 0000000000..2ef7514e49 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs new file mode 100644 index 0000000000..5069a09345 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesIdealPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesIdealPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs new file mode 100644 index 0000000000..217d28abfb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJcbPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesJcbPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..0a363a1b8a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs new file mode 100644 index 0000000000..076d645c7a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs new file mode 100644 index 0000000000..79bee8267e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs new file mode 100644 index 0000000000..c7eb2bb450 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs new file mode 100644 index 0000000000..9b097e7dcf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesKrCardPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesKrCardPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs new file mode 100644 index 0000000000..088405e608 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesLinkPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesLinkPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs new file mode 100644 index 0000000000..2d97d23d42 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs new file mode 100644 index 0000000000..2a2cac184c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..cadec7d678 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs new file mode 100644 index 0000000000..1e778e4e49 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs new file mode 100644 index 0000000000..d85e5ebca1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs @@ -0,0 +1,407 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesOptions : INestedOptions + { + /// + /// Allow the merchant to process ACH debit payments. + /// + [JsonProperty("ach_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ach_debit_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesAchDebitPaymentsOptions AchDebitPayments { get; set; } + + /// + /// Allow the merchant to process ACSS debit payments. + /// + [JsonProperty("acss_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("acss_debit_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesAcssDebitPaymentsOptions AcssDebitPayments { get; set; } + + /// + /// Allow the merchant to process Affirm payments. + /// + [JsonProperty("affirm_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("affirm_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesAffirmPaymentsOptions AffirmPayments { get; set; } + + /// + /// Allow the merchant to process Afterpay/Clearpay payments. + /// + [JsonProperty("afterpay_clearpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("afterpay_clearpay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsOptions AfterpayClearpayPayments { get; set; } + + /// + /// Allow the merchant to process Alma payments. + /// + [JsonProperty("alma_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("alma_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesAlmaPaymentsOptions AlmaPayments { get; set; } + + /// + /// Allow the merchant to process Amazon Pay payments. + /// + [JsonProperty("amazon_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amazon_pay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesAmazonPayPaymentsOptions AmazonPayPayments { get; set; } + + /// + /// Allow the merchant to process Australian BECS Direct Debit payments. + /// + [JsonProperty("au_becs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("au_becs_debit_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesAuBecsDebitPaymentsOptions AuBecsDebitPayments { get; set; } + + /// + /// Allow the merchant to process BACS Direct Debit payments. + /// + [JsonProperty("bacs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bacs_debit_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesBacsDebitPaymentsOptions BacsDebitPayments { get; set; } + + /// + /// Allow the merchant to process Bancontact payments. + /// + [JsonProperty("bancontact_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bancontact_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesBancontactPaymentsOptions BancontactPayments { get; set; } + + /// + /// Allow the merchant to process BLIK payments. + /// + [JsonProperty("blik_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("blik_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesBlikPaymentsOptions BlikPayments { get; set; } + + /// + /// Allow the merchant to process Boleto payments. + /// + [JsonProperty("boleto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("boleto_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesBoletoPaymentsOptions BoletoPayments { get; set; } + + /// + /// Allow the merchant to collect card payments. + /// + [JsonProperty("card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesCardPaymentsOptions CardPayments { get; set; } + + /// + /// Allow the merchant to process Cartes Bancaires payments. + /// + [JsonProperty("cartes_bancaires_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cartes_bancaires_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesCartesBancairesPaymentsOptions CartesBancairesPayments { get; set; } + + /// + /// Allow the merchant to process Cash App payments. + /// + [JsonProperty("cashapp_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cashapp_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesCashappPaymentsOptions CashappPayments { get; set; } + + /// + /// Allow the merchant to process EPS payments. + /// + [JsonProperty("eps_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("eps_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesEpsPaymentsOptions EpsPayments { get; set; } + + /// + /// Allow the merchant to process FPX payments. + /// + [JsonProperty("fpx_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fpx_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesFpxPaymentsOptions FpxPayments { get; set; } + + /// + /// Allow the merchant to process UK bank transfer payments. + /// + [JsonProperty("gb_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("gb_bank_transfer_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesGbBankTransferPaymentsOptions GbBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process GrabPay payments. + /// + [JsonProperty("grabpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("grabpay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesGrabpayPaymentsOptions GrabpayPayments { get; set; } + + /// + /// Allow the merchant to process iDEAL payments. + /// + [JsonProperty("ideal_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ideal_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesIdealPaymentsOptions IdealPayments { get; set; } + + /// + /// Allow the merchant to process JCB card payments. + /// + [JsonProperty("jcb_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jcb_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesJcbPaymentsOptions JcbPayments { get; set; } + + /// + /// Allow the merchant to process Japanese bank transfer payments. + /// + [JsonProperty("jp_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jp_bank_transfer_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesJpBankTransferPaymentsOptions JpBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Kakao Pay payments. + /// + [JsonProperty("kakao_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kakao_pay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesKakaoPayPaymentsOptions KakaoPayPayments { get; set; } + + /// + /// Allow the merchant to process Klarna payments. + /// + [JsonProperty("klarna_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("klarna_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesKlarnaPaymentsOptions KlarnaPayments { get; set; } + + /// + /// Allow the merchant to process Konbini convenience store payments. + /// + [JsonProperty("konbini_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("konbini_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesKonbiniPaymentsOptions KonbiniPayments { get; set; } + + /// + /// Allow the merchant to process Korean card payments. + /// + [JsonProperty("kr_card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kr_card_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesKrCardPaymentsOptions KrCardPayments { get; set; } + + /// + /// Allow the merchant to process Link payments. + /// + [JsonProperty("link_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("link_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesLinkPaymentsOptions LinkPayments { get; set; } + + /// + /// Allow the merchant to process MobilePay payments. + /// + [JsonProperty("mobilepay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mobilepay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesMobilepayPaymentsOptions MobilepayPayments { get; set; } + + /// + /// Allow the merchant to process Multibanco payments. + /// + [JsonProperty("multibanco_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("multibanco_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesMultibancoPaymentsOptions MultibancoPayments { get; set; } + + /// + /// Allow the merchant to process Mexican bank transfer payments. + /// + [JsonProperty("mx_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mx_bank_transfer_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesMxBankTransferPaymentsOptions MxBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Naver Pay payments. + /// + [JsonProperty("naver_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("naver_pay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesNaverPayPaymentsOptions NaverPayPayments { get; set; } + + /// + /// Allow the merchant to process OXXO payments. + /// + [JsonProperty("oxxo_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("oxxo_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesOxxoPaymentsOptions OxxoPayments { get; set; } + + /// + /// Allow the merchant to process Przelewy24 (P24) payments. + /// + [JsonProperty("p24_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("p24_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesP24PaymentsOptions P24Payments { get; set; } + + /// + /// Allow the merchant to process Pay by Bank payments. + /// + [JsonProperty("pay_by_bank_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pay_by_bank_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions PayByBankPayments { get; set; } + + /// + /// Allow the merchant to process PAYCO payments. + /// + [JsonProperty("payco_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payco_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesPaycoPaymentsOptions PaycoPayments { get; set; } + + /// + /// Allow the merchant to process PayNow payments. + /// + [JsonProperty("paynow_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("paynow_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesPaynowPaymentsOptions PaynowPayments { get; set; } + + /// + /// Allow the merchant to process PromptPay payments. + /// + [JsonProperty("promptpay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("promptpay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions PromptpayPayments { get; set; } + + /// + /// Allow the merchant to process Revolut Pay payments. + /// + [JsonProperty("revolut_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("revolut_pay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions RevolutPayPayments { get; set; } + + /// + /// Allow the merchant to process Samsung Pay payments. + /// + [JsonProperty("samsung_pay_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("samsung_pay_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions SamsungPayPayments { get; set; } + + /// + /// Allow the merchant to process SEPA bank transfer payments. + /// + [JsonProperty("sepa_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sepa_bank_transfer_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions SepaBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process SEPA Direct Debit payments. + /// + [JsonProperty("sepa_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sepa_debit_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions SepaDebitPayments { get; set; } + + /// + /// Allow the merchant to process Swish payments. + /// + [JsonProperty("swish_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("swish_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesSwishPaymentsOptions SwishPayments { get; set; } + + /// + /// Allow the merchant to process TWINT payments. + /// + [JsonProperty("twint_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("twint_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesTwintPaymentsOptions TwintPayments { get; set; } + + /// + /// Allow the merchant to process US bank transfer payments. + /// + [JsonProperty("us_bank_transfer_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("us_bank_transfer_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions UsBankTransferPayments { get; set; } + + /// + /// Allow the merchant to process Zip payments. + /// + [JsonProperty("zip_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("zip_payments")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesZipPaymentsOptions ZipPayments { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs new file mode 100644 index 0000000000..dff29806ca --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOxxoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesOxxoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs new file mode 100644 index 0000000000..bf670b0fba --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesP24PaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesP24PaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs new file mode 100644 index 0000000000..7e6ba2e7a7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesPayByBankPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs new file mode 100644 index 0000000000..93eb5f2bbe --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaycoPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesPaycoPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs new file mode 100644 index 0000000000..e750f01fbb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPaynowPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesPaynowPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs new file mode 100644 index 0000000000..d244879aa0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesPromptpayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs new file mode 100644 index 0000000000..06be3d07c5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesRevolutPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs new file mode 100644 index 0000000000..085ef7a705 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesSamsungPayPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..f37ebcd9cc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesSepaBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs new file mode 100644 index 0000000000..25064f96f8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs new file mode 100644 index 0000000000..e497f99797 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSwishPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesSwishPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs new file mode 100644 index 0000000000..7298578500 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesTwintPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesTwintPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs new file mode 100644 index 0000000000..4b3974ed0c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesUsBankTransferPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs new file mode 100644 index 0000000000..8d36a2a542 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesZipPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCapabilitiesZipPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsDeclineOnOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsDeclineOnOptions.cs new file mode 100644 index 0000000000..7c34d256b7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsDeclineOnOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCardPaymentsDeclineOnOptions : INestedOptions + { + /// + /// Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This + /// setting only applies when a ZIP or postal code is provided and they fail bank + /// verification. + /// + [JsonProperty("avs_failure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("avs_failure")] +#endif + public bool? AvsFailure { get; set; } + + /// + /// Whether Stripe automatically declines charges with an incorrect CVC. This setting only + /// applies when a CVC is provided and it fails bank verification. + /// + [JsonProperty("cvc_failure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cvc_failure")] +#endif + public bool? CvcFailure { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsOptions.cs new file mode 100644 index 0000000000..44d6f85433 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCardPaymentsOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantCardPaymentsOptions : INestedOptions + { + /// + /// Automatically declines certain charge types regardless of whether the card issuer + /// accepted or declined the charge. + /// + [JsonProperty("decline_on")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("decline_on")] +#endif + public AccountUpdateConfigurationMerchantCardPaymentsDeclineOnOptions DeclineOn { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsOptions.cs new file mode 100644 index 0000000000..5a05f382fd --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantKonbiniPaymentsOptions : INestedOptions + { + /// + /// Support for Konbini payments. + /// + [JsonProperty("support")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("support")] +#endif + public AccountUpdateConfigurationMerchantKonbiniPaymentsSupportOptions Support { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs new file mode 100644 index 0000000000..7dbc9c28d8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportHoursOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantKonbiniPaymentsSupportHoursOptions : INestedOptions + { + /// + /// Support hours end time (JST time of day) for in HH:MM format. + /// + [JsonProperty("end_time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_time")] +#endif + public string EndTime { get; set; } + + /// + /// Support hours start time (JST time of day) for in HH:MM format. + /// + [JsonProperty("start_time")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_time")] +#endif + public string StartTime { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportOptions.cs new file mode 100644 index 0000000000..83f23e2a83 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantKonbiniPaymentsSupportOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantKonbiniPaymentsSupportOptions : INestedOptions + { + /// + /// Support email address for Konbini payments. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// Support hours for Konbini payments. + /// + [JsonProperty("hours")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hours")] +#endif + public AccountUpdateConfigurationMerchantKonbiniPaymentsSupportHoursOptions Hours { get; set; } + + /// + /// Support phone number for Konbini payments. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs new file mode 100644 index 0000000000..272d6d1d3b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs @@ -0,0 +1,105 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantOptions : INestedOptions + { + /// + /// Represents the state of the configuration, and can be updated to deactivate or re-apply + /// a configuration. + /// + [JsonProperty("applied")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied")] +#endif + public bool? Applied { get; set; } + + /// + /// Settings for Bacs Direct Debit payments. + /// + [JsonProperty("bacs_debit_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bacs_debit_payments")] +#endif + public AccountUpdateConfigurationMerchantBacsDebitPaymentsOptions BacsDebitPayments { get; set; } + + /// + /// Settings used to apply the merchant's branding to email receipts, invoices, Checkout, + /// and other products. + /// + [JsonProperty("branding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("branding")] +#endif + public AccountUpdateConfigurationMerchantBrandingOptions Branding { get; set; } + + /// + /// Capabilities to request on the Merchant Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountUpdateConfigurationMerchantCapabilitiesOptions Capabilities { get; set; } + + /// + /// Card payments settings. + /// + [JsonProperty("card_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_payments")] +#endif + public AccountUpdateConfigurationMerchantCardPaymentsOptions CardPayments { get; set; } + + /// + /// Settings specific to Konbini payments on the account. + /// + [JsonProperty("konbini_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("konbini_payments")] +#endif + public AccountUpdateConfigurationMerchantKonbiniPaymentsOptions KonbiniPayments { get; set; } + + /// + /// The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the + /// goods or services they provide. + /// + [JsonProperty("mcc")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mcc")] +#endif + public string Mcc { get; set; } + + /// + /// Settings for the default text that appears on statements for language variations. + /// + [JsonProperty("script_statement_descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_statement_descriptor")] +#endif + public AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions ScriptStatementDescriptor { get; set; } + + /// + /// Settings for the default statement descriptor text. + /// + [JsonProperty("statement_descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("statement_descriptor")] +#endif + public AccountUpdateConfigurationMerchantStatementDescriptorOptions StatementDescriptor { get; set; } + + /// + /// Publicly available contact information for sending support issues to. + /// + [JsonProperty("support")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("support")] +#endif + public AccountUpdateConfigurationMerchantSupportOptions Support { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs new file mode 100644 index 0000000000..87d4fd2873 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanaOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantScriptStatementDescriptorKanaOptions : INestedOptions + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs new file mode 100644 index 0000000000..481395d6b8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorKanjiOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantScriptStatementDescriptorKanjiOptions : INestedOptions + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions.cs new file mode 100644 index 0000000000..890960549a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions : INestedOptions + { + /// + /// The Kana variation of statement_descriptor used for charges in Japan. Japanese statement + /// descriptors have special + /// requirements. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountUpdateConfigurationMerchantScriptStatementDescriptorKanaOptions Kana { get; set; } + + /// + /// The Kanji variation of statement_descriptor used for charges in Japan. Japanese + /// statement descriptors have special + /// requirements. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountUpdateConfigurationMerchantScriptStatementDescriptorKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantStatementDescriptorOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantStatementDescriptorOptions.cs new file mode 100644 index 0000000000..0623793699 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantStatementDescriptorOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantStatementDescriptorOptions : INestedOptions + { + /// + /// The default text that appears on statements for non-card charges outside of Japan. For + /// card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + /// the statement descriptor prefix. In that case, if concatenating the statement descriptor + /// suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + /// statement_descriptor text to limit the full descriptor to 22 characters. For more + /// information about statement descriptors and their requirements, see the Merchant + /// Configuration settings documentation. + /// + [JsonProperty("descriptor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("descriptor")] +#endif + public string Descriptor { get; set; } + + /// + /// Default text that appears on statements for card charges outside of Japan, prefixing any + /// dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + /// dynamic part of the descriptor, keep this text short. If you don’t specify this value, + /// statement_descriptor is used as the prefix. For more information about statement + /// descriptors and their requirements, see the Merchant Configuration settings + /// documentation. + /// + [JsonProperty("prefix")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prefix")] +#endif + public string Prefix { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSupportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSupportOptions.cs new file mode 100644 index 0000000000..50e823431a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSupportOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantSupportOptions : INestedOptions + { + /// + /// A publicly available mailing address for sending support issues to. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// A publicly available email address for sending support issues to. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// A publicly available phone number to call with support issues. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// A publicly available website for handling support issues. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs new file mode 100644 index 0000000000..325d0f90f4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationOptions : INestedOptions + { + /// + /// The Customer Configuration allows the Account to be charged. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public AccountUpdateConfigurationCustomerOptions Customer { get; set; } + + /// + /// Enables the Account to act as a connected account and collect payments facilitated by a + /// Connect platform. You must onboard your platform to Connect before you can add this + /// configuration to your connected accounts. Utilize this configuration when the Account + /// will be the Merchant of Record, like with Direct charges or Destination Charges with + /// on_behalf_of set. + /// + [JsonProperty("merchant")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("merchant")] +#endif + public AccountUpdateConfigurationMerchantOptions Merchant { get; set; } + + /// + /// The Recipient Configuration allows the Account to receive funds. Utilize this + /// configuration if the Account will not be the Merchant of Record, like with Separate + /// Charges & Transfers, or Destination Charges without on_behalf_of set. + /// + [JsonProperty("recipient")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recipient")] +#endif + public AccountUpdateConfigurationRecipientOptions Recipient { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesOptions.cs new file mode 100644 index 0000000000..2ec943df3b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationRecipientCapabilitiesOptions : INestedOptions + { + /// + /// Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + /// + [JsonProperty("stripe_balance")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_balance")] +#endif + public AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceOptions StripeBalance { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs new file mode 100644 index 0000000000..8c4f8bd595 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceOptions : INestedOptions + { + /// + /// Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + /// + [JsonProperty("stripe_transfers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_transfers")] +#endif + public AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions StripeTransfers { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs new file mode 100644 index 0000000000..5342fadbee --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientOptions.cs new file mode 100644 index 0000000000..cc09a16f06 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationRecipientOptions : INestedOptions + { + /// + /// Represents the state of the configuration, and can be updated to deactivate or re-apply + /// a configuration. + /// + [JsonProperty("applied")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("applied")] +#endif + public bool? Applied { get; set; } + + /// + /// Capabilities to request on the Recipient Configuration. + /// + [JsonProperty("capabilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capabilities")] +#endif + public AccountUpdateConfigurationRecipientCapabilitiesOptions Capabilities { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsOptions.cs new file mode 100644 index 0000000000..446e24e3cb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsOptions.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateDefaultsOptions : INestedOptions + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// The Account's preferred locales (languages), ordered by preference. + /// One of: ar-SA, bg, bg-BG, cs, cs-CZ, da, + /// da-DK, de, de-DE, el, el-GR, en, en-AU, + /// en-CA, en-GB, en-IE, en-IN, en-NZ, en-SG, + /// en-US, es, es-419, es-ES, et, et-EE, + /// fi, fil, fil-PH, fi-FI, fr, fr-CA, + /// fr-FR, he-IL, hr, hr-HR, hu, hu-HU, id, + /// id-ID, it, it-IT, ja, ja-JP, ko, ko-KR, + /// lt, lt-LT, lv, lv-LV, ms, ms-MY, mt, + /// mt-MT, nb, nb-NO, nl, nl-NL, pl, pl-PL, + /// pt, pt-BR, pt-PT, ro, ro-RO, ru, ru-RU, + /// sk, sk-SK, sl, sl-SI, sv, sv-SE, th, + /// th-TH, tr, tr-TR, vi, vi-VN, zh, + /// zh-Hans, zh-Hant-HK, zh-Hant-TW, zh-HK, or zh-TW. + /// + [JsonProperty("locales")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("locales")] +#endif + public List Locales { get; set; } + + /// + /// Account profile information. + /// + [JsonProperty("profile")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("profile")] +#endif + public AccountUpdateDefaultsProfileOptions Profile { get; set; } + + /// + /// Default responsibilities held by either Stripe or the platform. + /// + [JsonProperty("responsibilities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("responsibilities")] +#endif + public AccountUpdateDefaultsResponsibilitiesOptions Responsibilities { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsProfileOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsProfileOptions.cs new file mode 100644 index 0000000000..479270471b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsProfileOptions.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateDefaultsProfileOptions : INestedOptions + { + /// + /// The business's publicly-available website. + /// + [JsonProperty("business_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("business_url")] +#endif + public string BusinessUrl { get; set; } + + /// + /// The name which is used by the business. + /// + [JsonProperty("doing_business_as")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("doing_business_as")] +#endif + public string DoingBusinessAs { get; set; } + + /// + /// Internal-only description of the product sold or service provided by the business. It's + /// used by Stripe for risk and underwriting purposes. + /// + [JsonProperty("product_description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product_description")] +#endif + public string ProductDescription { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsResponsibilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsResponsibilitiesOptions.cs new file mode 100644 index 0000000000..73b3b422c1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateDefaultsResponsibilitiesOptions.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateDefaultsResponsibilitiesOptions : INestedOptions + { + /// + /// A value indicating the party responsible for collecting fees from this account. + /// One of: application, application_custom, application_express, or + /// stripe. + /// + [JsonProperty("fees_collector")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fees_collector")] +#endif + public string FeesCollector { get; set; } + + /// + /// A value indicating who is responsible for losses when this Account can’t pay back + /// negative balances from payments. + /// One of: application, or stripe. + /// + [JsonProperty("losses_collector")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("losses_collector")] +#endif + public string LossesCollector { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsDirectorshipDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsDirectorshipDeclarationOptions.cs new file mode 100644 index 0000000000..05425f267d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsDirectorshipDeclarationOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsDirectorshipDeclarationOptions : INestedOptions + { + /// + /// The time marking when the director attestation was made. Represented as a RFC 3339 date + /// & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the director attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the director attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOptions.cs new file mode 100644 index 0000000000..76c829ea34 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsOptions : INestedOptions + { + /// + /// This hash is used to attest that the directors information provided to Stripe is both + /// current and correct. + /// + [JsonProperty("directorship_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directorship_declaration")] +#endif + public AccountUpdateIdentityAttestationsDirectorshipDeclarationOptions DirectorshipDeclaration { get; set; } + + /// + /// This hash is used to attest that the beneficial owner information provided to Stripe is + /// both current and correct. + /// + [JsonProperty("ownership_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_declaration")] +#endif + public AccountUpdateIdentityAttestationsOwnershipDeclarationOptions OwnershipDeclaration { get; set; } + + /// + /// Attestation that all Persons with a specific Relationship value have been provided. + /// + [JsonProperty("persons_provided")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("persons_provided")] +#endif + public AccountUpdateIdentityAttestationsPersonsProvidedOptions PersonsProvided { get; set; } + + /// + /// This hash is used to attest that the representative is authorized to act as the + /// representative of their legal entity. + /// + [JsonProperty("representative_declaration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative_declaration")] +#endif + public AccountUpdateIdentityAttestationsRepresentativeDeclarationOptions RepresentativeDeclaration { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("terms_of_service")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceOptions TermsOfService { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOwnershipDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOwnershipDeclarationOptions.cs new file mode 100644 index 0000000000..a8246adb72 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsOwnershipDeclarationOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsOwnershipDeclarationOptions : INestedOptions + { + /// + /// The time marking when the beneficial owner attestation was made. Represented as a RFC + /// 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the beneficial owner attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the beneficial owner attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsPersonsProvidedOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsPersonsProvidedOptions.cs new file mode 100644 index 0000000000..e1c77429fa --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsPersonsProvidedOptions.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsPersonsProvidedOptions : INestedOptions + { + /// + /// Whether the company’s directors have been provided. Set this Boolean to true after + /// creating all the company’s directors with the Persons API. + /// + [JsonProperty("directors")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("directors")] +#endif + public bool? Directors { get; set; } + + /// + /// Whether the company’s executives have been provided. Set this Boolean to true after + /// creating all the company’s executives with the Persons API. + /// + [JsonProperty("executives")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executives")] +#endif + public bool? Executives { get; set; } + + /// + /// Whether the company’s owners have been provided. Set this Boolean to true after creating + /// all the company’s owners with the Persons API. + /// + [JsonProperty("owners")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owners")] +#endif + public bool? Owners { get; set; } + + /// + /// Reason for why the company is exempt from providing ownership information. + /// One of: qualified_entity_exceeds_ownership_threshold, or + /// qualifies_as_financial_institution. + /// + [JsonProperty("ownership_exemption_reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ownership_exemption_reason")] +#endif + public string OwnershipExemptionReason { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsRepresentativeDeclarationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsRepresentativeDeclarationOptions.cs new file mode 100644 index 0000000000..d298fd331c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsRepresentativeDeclarationOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsRepresentativeDeclarationOptions : INestedOptions + { + /// + /// The time marking when the representative attestation was made. Represented as a RFC 3339 + /// date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the representative attestation was made. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the representative attestation was made. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions.cs new file mode 100644 index 0000000000..f789c3b58c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs new file mode 100644 index 0000000000..5396236ef4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs new file mode 100644 index 0000000000..fa243764b5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceOptions : INestedOptions + { + /// + /// Details on the Account's acceptance of the Stripe Services + /// Agreement. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions Account { get; set; } + + /// + /// Details on the Account's acceptance of Crypto-storer-specific terms of service. + /// + [JsonProperty("crypto_storer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto_storer")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions CryptoStorer { get; set; } + + /// + /// Details on the Account's acceptance of Treasury-specific terms of service. + /// + [JsonProperty("storer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("storer")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions Storer { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs new file mode 100644 index 0000000000..895ea552a3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs new file mode 100644 index 0000000000..e9ba19b275 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs new file mode 100644 index 0000000000..5165ca7d98 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions : INestedOptions + { + /// + /// A non-negative integer representing the amount in the smallest currency unit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } + + /// + /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + /// the 31st of December, 2023. + /// + [JsonProperty("fiscal_year_end")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fiscal_year_end")] +#endif + public string FiscalYearEnd { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs new file mode 100644 index 0000000000..4bb8bb6f1b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs new file mode 100644 index 0000000000..89132ba10f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyLicenseOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsCompanyLicenseOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs new file mode 100644 index 0000000000..2c8a305a80 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs new file mode 100644 index 0000000000..0c9d80d586 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs new file mode 100644 index 0000000000..f63dc0522d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs new file mode 100644 index 0000000000..e5c8139144 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs new file mode 100644 index 0000000000..d182e849a1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs @@ -0,0 +1,106 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsOptions : INestedOptions + { + /// + /// One or more documents that support the bank account ownership verification requirement. + /// Must be a document associated with the account’s primary active bank account that + /// displays the last 4 digits of the account number, either a statement or a check. + /// + [JsonProperty("bank_account_ownership_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_account_ownership_verification")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsBankAccountOwnershipVerificationOptions BankAccountOwnershipVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s license to operate. + /// + [JsonProperty("company_license")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_license")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsCompanyLicenseOptions CompanyLicense { get; set; } + + /// + /// One or more documents showing the company’s Memorandum of Association. + /// + [JsonProperty("company_memorandum_of_association")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_memorandum_of_association")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociationOptions CompanyMemorandumOfAssociation { get; set; } + + /// + /// Certain countries only: One or more documents showing the ministerial decree legalizing + /// the company’s establishment. + /// + [JsonProperty("company_ministerial_decree")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_ministerial_decree")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsCompanyMinisterialDecreeOptions CompanyMinisterialDecree { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s registration with the + /// appropriate local authorities. + /// + [JsonProperty("company_registration_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_registration_verification")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsCompanyRegistrationVerificationOptions CompanyRegistrationVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of a company’s tax ID. + /// + [JsonProperty("company_tax_id_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_tax_id_verification")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsCompanyTaxIdVerificationOptions CompanyTaxIdVerification { get; set; } + + /// + /// A document verifying the business. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions ProofOfAddress { get; set; } + + /// + /// One or more documents showing the company’s proof of registration with the national + /// business registry. + /// + [JsonProperty("proof_of_registration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_registration")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions ProofOfRegistration { get; set; } + + /// + /// One or more documents that demonstrate proof of ultimate beneficial ownership. + /// + [JsonProperty("proof_of_ultimate_beneficial_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_ultimate_beneficial_ownership")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions ProofOfUltimateBeneficialOwnership { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..ad33a67815 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..33e5009ffc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs new file mode 100644 index 0000000000..cd1dc97b4d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs new file mode 100644 index 0000000000..798190f1c6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsProofOfRegistrationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs new file mode 100644 index 0000000000..f39bd971b3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs new file mode 100644 index 0000000000..34430b5b43 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsIdNumberOptions : INestedOptions + { + /// + /// The registrar of the ID number (Only valid for DE ID number types). + /// + [JsonProperty("registrar")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registrar")] +#endif + public string Registrar { get; set; } + + /// + /// Open Enum. The ID number type of a business entity. + /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, + /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, + /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, hr_mbs, + /// hr_oib, hr_vat, hu_cjs, hu_tin, hu_vat, + /// ie_crn, ie_trn, ie_vat, it_rea, it_vat, jp_cn, + /// kz_bin, li_uid, lt_ccrn, lt_vat, lu_nif, + /// lu_rcs, lu_vat, lv_urn, lv_vat, mt_crn, + /// mt_tin, mt_vat, mx_rfc, my_brn, my_coid, + /// my_itn, my_sst, mz_nuit, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pe_ruc, + /// pk_ntn, pl_nip, pl_regon, pl_vat, pt_vat, + /// ro_cui, ro_orc, ro_vat, sa_crn, sa_tin, + /// se_orgnr, se_vat, sg_uen, si_msp, si_tin, + /// si_vat, sk_dic, sk_ico, sk_vat, th_crn, + /// th_prn, th_tin, or us_ein. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs new file mode 100644 index 0000000000..224acf7c3d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs new file mode 100644 index 0000000000..32e6dbdb61 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions : INestedOptions + { + /// + /// A non-negative integer representing the amount in the smallest currency unit. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs new file mode 100644 index 0000000000..b4bba6ffbe --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs @@ -0,0 +1,123 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsOptions : INestedOptions + { + /// + /// The business registration address of the business entity. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The business gross annual revenue for its preceding fiscal year. + /// + [JsonProperty("annual_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("annual_revenue")] +#endif + public AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions AnnualRevenue { get; set; } + + /// + /// A document verifying the business. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsOptions Documents { get; set; } + + /// + /// Estimated maximum number of workers currently engaged by the business (including + /// employees, contractors, and vendors). + /// + [JsonProperty("estimated_worker_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("estimated_worker_count")] +#endif + public long? EstimatedWorkerCount { get; set; } + + /// + /// The ID numbers of a business entity. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// An estimate of the monthly revenue of the business. + /// + [JsonProperty("monthly_estimated_revenue")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_estimated_revenue")] +#endif + public AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions MonthlyEstimatedRevenue { get; set; } + + /// + /// The phone number of the Business Entity. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The business legal name. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + + /// + /// The business registration address of the business entity in non latin script. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountUpdateIdentityBusinessDetailsScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The business legal name in non latin script. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountUpdateIdentityBusinessDetailsScriptNamesOptions ScriptNames { get; set; } + + /// + /// The category identifying the legal structure of the business. + /// One of: cooperative, free_zone_establishment, free_zone_llc, + /// governmental_unit, government_instrumentality, + /// incorporated_association, incorporated_non_profit, + /// incorporated_partnership, limited_liability_partnership, llc, + /// multi_member_llc, private_company, private_corporation, + /// private_partnership, public_company, public_corporation, + /// public_listed_corporation, public_partnership, registered_charity, + /// single_member_llc, sole_establishment, sole_proprietorship, + /// tax_exempt_government_instrumentality, trust, + /// unincorporated_association, unincorporated_non_profit, or + /// unincorporated_partnership. + /// + [JsonProperty("structure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("structure")] +#endif + public string Structure { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptAddressesOptions.cs new file mode 100644 index 0000000000..b8430641e8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..e38ce59164 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanaOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsScriptNamesKanaOptions : INestedOptions + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..5d0ce00bcd --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesKanjiOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsScriptNamesKanjiOptions : INestedOptions + { + /// + /// Registered name of the business. + /// + [JsonProperty("registered_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registered_name")] +#endif + public string RegisteredName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesOptions.cs new file mode 100644 index 0000000000..69ef6f1a30 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsScriptNamesOptions : INestedOptions + { + /// + /// Kana name. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountUpdateIdentityBusinessDetailsScriptNamesKanaOptions Kana { get; set; } + + /// + /// Kanji name. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountUpdateIdentityBusinessDetailsScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs new file mode 100644 index 0000000000..423efab972 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalNameOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalNameOptions.cs new file mode 100644 index 0000000000..705767f654 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalNameOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualAdditionalNameOptions : INestedOptions + { + /// + /// The person's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDateOfBirthOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDateOfBirthOptions.cs new file mode 100644 index 0000000000..d0551a6122 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDateOfBirthOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDateOfBirthOptions : INestedOptions + { + /// + /// The day of the birth. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long? Day { get; set; } + + /// + /// The month of birth. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs new file mode 100644 index 0000000000..d9c16bc6f6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsCompanyAuthorizationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsCompanyAuthorizationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsOptions.cs new file mode 100644 index 0000000000..1569ab2786 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsOptions : INestedOptions + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public AccountUpdateIdentityIndividualDocumentsCompanyAuthorizationOptions CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public AccountUpdateIdentityIndividualDocumentsPassportOptions Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public AccountUpdateIdentityIndividualDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public AccountUpdateIdentityIndividualDocumentsSecondaryVerificationOptions SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public AccountUpdateIdentityIndividualDocumentsVisaOptions Visa { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPassportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPassportOptions.cs new file mode 100644 index 0000000000..0cacb198cb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPassportOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsPassportOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..5c50ddd274 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..15e42b03b9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountUpdateIdentityIndividualDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..f2ed030b4c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationOptions.cs new file mode 100644 index 0000000000..5296b0c1da --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsSecondaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsSecondaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public AccountUpdateIdentityIndividualDocumentsSecondaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsVisaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsVisaOptions.cs new file mode 100644 index 0000000000..87b9e1100e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualDocumentsVisaOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualDocumentsVisaOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs new file mode 100644 index 0000000000..416556b93d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualIdNumberOptions : INestedOptions + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs new file mode 100644 index 0000000000..689d2709cf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs @@ -0,0 +1,169 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualOptions : INestedOptions, IHasMetadata + { + /// + /// Additional addresses associated with the individual. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the individual. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// The individual's residential address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The individual's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public AccountUpdateIdentityIndividualDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public AccountUpdateIdentityIndividualDocumentsOptions Documents { get; set; } + + /// + /// The individual's email address. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The individual's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the individual. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The individual's gender (International regulations require either "male" or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// The individual's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The individual's political exposure. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this individual has with the account's identity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public AccountUpdateIdentityIndividualRelationshipOptions Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the individual. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public AccountUpdateIdentityIndividualScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The individuals primary name in non latin script. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public AccountUpdateIdentityIndividualScriptNamesOptions ScriptNames { get; set; } + + /// + /// The individual's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs new file mode 100644 index 0000000000..607323778e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualRelationshipOptions : INestedOptions + { + /// + /// Whether the person is a director of the account's identity. Directors are typically + /// members of the governing board of the company, or responsible for ensuring the company + /// meets its regulatory obligations. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Whether the person has significant responsibility to control, manage, or direct the + /// organization. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Whether the person is an owner of the account’s identity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percent owned by the person of the account's legal entity. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// The person's title (e.g., CEO, Support Engineer). + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptAddressesOptions.cs new file mode 100644 index 0000000000..2a5296546a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..5619a51a67 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanaOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualScriptNamesKanaOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..d6b4fe2090 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesKanjiOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualScriptNamesKanjiOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesOptions.cs new file mode 100644 index 0000000000..8e78dd89b9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityIndividualScriptNamesOptions : INestedOptions + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AccountUpdateIdentityIndividualScriptNamesKanaOptions Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AccountUpdateIdentityIndividualScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs new file mode 100644 index 0000000000..8f9e419e1e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityOptions : INestedOptions + { + /// + /// Attestations from the identity's key people, e.g. owners, executives, directors, + /// representatives. + /// + [JsonProperty("attestations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attestations")] +#endif + public AccountUpdateIdentityAttestationsOptions Attestations { get; set; } + + /// + /// Information about the company or business. + /// + [JsonProperty("business_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("business_details")] +#endif + public AccountUpdateIdentityBusinessDetailsOptions BusinessDetails { get; set; } + + /// + /// The country in which the account holder resides, or in which the business is legally + /// established. This should be an ISO 3166-1 alpha-2 country + /// code. + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// The entity type. + /// One of: company, government_entity, individual, or + /// non_profit. + /// + [JsonProperty("entity_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("entity_type")] +#endif + public string EntityType { get; set; } + + /// + /// Information about the individual represented by the Account. This property is + /// null unless entity_type is set to individual. + /// + [JsonProperty("individual")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("individual")] +#endif + public AccountUpdateIdentityIndividualOptions Individual { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs new file mode 100644 index 0000000000..82d3a90bf8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs @@ -0,0 +1,102 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateOptions : BaseOptions, IHasMetadata + { + /// + /// The account token generated by the account token api. + /// + [JsonProperty("account_token")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_token")] +#endif + public string AccountToken { get; set; } + + /// + /// An Account Configuration which allows the Account to take on a key persona across Stripe + /// products. + /// + [JsonProperty("configuration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configuration")] +#endif + public AccountUpdateConfigurationOptions Configuration { get; set; } + + /// + /// The default contact email address for the Account. Required when configuring the account + /// as a merchant or recipient. + /// + [JsonProperty("contact_email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("contact_email")] +#endif + public string ContactEmail { get; set; } + + /// + /// A value indicating the Stripe dashboard this Account has access to. This will depend on + /// which configurations are enabled for this account. + /// One of: express, full, or none. + /// + [JsonProperty("dashboard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dashboard")] +#endif + public string Dashboard { get; set; } + + /// + /// Default values to be used on Account Configurations. + /// + [JsonProperty("defaults")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("defaults")] +#endif + public AccountUpdateDefaultsOptions Defaults { get; set; } + + /// + /// A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard + /// and on any invoices sent to the Account. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + + /// + /// Information about the company, individual, and business represented by the Account. + /// + [JsonProperty("identity")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("identity")] +#endif + public AccountUpdateIdentityOptions Identity { get; set; } + + /// + /// Additional fields to include in the response. + /// One of: configuration.customer, configuration.merchant, + /// configuration.recipient, defaults, future_requirements, + /// identity, or requirements. + /// + [JsonProperty("include")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("include")] +#endif + public List Include { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalAddressOptions.cs new file mode 100644 index 0000000000..479a2dc8d9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalAddressOptions.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalNameOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalNameOptions.cs new file mode 100644 index 0000000000..dceaf6af96 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalNameOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateAdditionalNameOptions : INestedOptions + { + /// + /// The person's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceAccountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceAccountOptions.cs new file mode 100644 index 0000000000..47f6c9ab7d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceAccountOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateAdditionalTermsOfServiceAccountOptions : INestedOptions + { + /// + /// The boolean value indicating if the terms of service have been accepted. + /// + [JsonProperty("shown_and_accepted")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shown_and_accepted")] +#endif + public bool? ShownAndAccepted { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceOptions.cs new file mode 100644 index 0000000000..963d4710e6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateAdditionalTermsOfServiceOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateAdditionalTermsOfServiceOptions : INestedOptions + { + /// + /// Details on the Person's acceptance of the [Stripe Services Agreement]; IP, date, and + /// User Agent are expanded by Stripe. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public PersonTokenCreateAdditionalTermsOfServiceAccountOptions Account { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDateOfBirthOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDateOfBirthOptions.cs new file mode 100644 index 0000000000..c8fec38485 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDateOfBirthOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDateOfBirthOptions : INestedOptions + { + /// + /// The day of the birth. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long? Day { get; set; } + + /// + /// The month of birth. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsCompanyAuthorizationOptions.cs new file mode 100644 index 0000000000..545f2114c7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsCompanyAuthorizationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsCompanyAuthorizationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsOptions.cs new file mode 100644 index 0000000000..4fc757d820 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsOptions : INestedOptions + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public PersonTokenCreateDocumentsCompanyAuthorizationOptions CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public PersonTokenCreateDocumentsPassportOptions Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public PersonTokenCreateDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public PersonTokenCreateDocumentsSecondaryVerificationOptions SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public PersonTokenCreateDocumentsVisaOptions Visa { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPassportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPassportOptions.cs new file mode 100644 index 0000000000..137fd13aad --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPassportOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsPassportOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..56c5f3dca5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..9ddf96a76e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public PersonTokenCreateDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..094e687e0c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsSecondaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationOptions.cs new file mode 100644 index 0000000000..f5cff3c585 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsSecondaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsSecondaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public PersonTokenCreateDocumentsSecondaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsVisaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsVisaOptions.cs new file mode 100644 index 0000000000..f48e259a5f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateDocumentsVisaOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateDocumentsVisaOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs new file mode 100644 index 0000000000..c2568c96a0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateIdNumberOptions : INestedOptions + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateOptions.cs new file mode 100644 index 0000000000..122375406f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateOptions.cs @@ -0,0 +1,177 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateOptions : BaseOptions, IHasMetadata + { + /// + /// Additional addresses associated with the person. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the person. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("additional_terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_terms_of_service")] +#endif + public PersonTokenCreateAdditionalTermsOfServiceOptions AdditionalTermsOfService { get; set; } + + /// + /// The person's residential address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The person's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public PersonTokenCreateDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public PersonTokenCreateDocumentsOptions Documents { get; set; } + + /// + /// Email. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The person's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the person. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The person's gender (International regulations require either "male" or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The nationalities (countries) this person is associated with. + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// The phone number for this person. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The person's political exposure. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this person has with the Account's business or legal entity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public PersonTokenCreateRelationshipOptions Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the person. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public PersonTokenCreateScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The script names (e.g. non-Latin characters) associated with the person. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public PersonTokenCreateScriptNamesOptions ScriptNames { get; set; } + + /// + /// The person's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs new file mode 100644 index 0000000000..a9d625ed32 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs @@ -0,0 +1,83 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateRelationshipOptions : INestedOptions + { + /// + /// Whether the individual is an authorizer of the Account's identity. + /// + [JsonProperty("authorizer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authorizer")] +#endif + public bool? Authorizer { get; set; } + + /// + /// Indicates whether the person is a director of the associated legal entity. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Indicates whether the person is an executive of the associated legal entity. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Indicates whether the person is a legal guardian of the associated legal entity. + /// + [JsonProperty("legal_guardian")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_guardian")] +#endif + public bool? LegalGuardian { get; set; } + + /// + /// Indicates whether the person is an owner of the associated legal entity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percentage of ownership the person has in the associated legal entity. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// Indicates whether the person is a representative of the associated legal entity. + /// + [JsonProperty("representative")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative")] +#endif + public bool? Representative { get; set; } + + /// + /// The title or position the person holds in the associated legal entity. + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptAddressesOptions.cs new file mode 100644 index 0000000000..32bd5faf4c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..d3a8afe9f8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanaOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateScriptNamesKanaOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..9bde3c461a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesKanjiOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateScriptNamesKanjiOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesOptions.cs new file mode 100644 index 0000000000..d0cd7215a1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonTokenCreateScriptNamesOptions : INestedOptions + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public PersonTokenCreateScriptNamesKanaOptions Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public PersonTokenCreateScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenGetOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenGetOptions.cs new file mode 100644 index 0000000000..8a439c773f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenGetOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + public class PersonTokenGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs new file mode 100644 index 0000000000..3f143c12b4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class PersonTokenService : Service + { + internal PersonTokenService(ApiRequestor requestor) + : base(requestor) + { + } + + internal PersonTokenService(IStripeClient client) + : base(client) + { + } + + /// + /// Creates a Person Token associated with an Account. + /// + public virtual V2.Core.AccountPersonToken Create(string id, PersonTokenCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/person_tokens", options, requestOptions); + } + + /// + /// Creates a Person Token associated with an Account. + /// + public virtual Task CreateAsync(string id, PersonTokenCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/person_tokens", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves a Person Token associated with an Account. + /// + public virtual V2.Core.AccountPersonToken Get(string parentId, string id, PersonTokenGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/person_tokens/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves a Person Token associated with an Account. + /// + public virtual Task GetAsync(string parentId, string id, PersonTokenGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/person_tokens/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs new file mode 100644 index 0000000000..df90e0bdd6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalNameOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalNameOptions.cs new file mode 100644 index 0000000000..af794837c8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalNameOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateAdditionalNameOptions : INestedOptions + { + /// + /// The person's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceAccountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceAccountOptions.cs new file mode 100644 index 0000000000..d953e05946 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceAccountOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateAdditionalTermsOfServiceAccountOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceOptions.cs new file mode 100644 index 0000000000..a4470bc8af --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalTermsOfServiceOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateAdditionalTermsOfServiceOptions : INestedOptions + { + /// + /// Stripe terms of service agreement. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public PersonCreateAdditionalTermsOfServiceAccountOptions Account { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDateOfBirthOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDateOfBirthOptions.cs new file mode 100644 index 0000000000..ad05f91a52 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDateOfBirthOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDateOfBirthOptions : INestedOptions + { + /// + /// The day of birth. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long? Day { get; set; } + + /// + /// The month of birth. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsCompanyAuthorizationOptions.cs new file mode 100644 index 0000000000..b71342887c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsCompanyAuthorizationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsCompanyAuthorizationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsOptions.cs new file mode 100644 index 0000000000..c26a897bc8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsOptions : INestedOptions + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public PersonCreateDocumentsCompanyAuthorizationOptions CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public PersonCreateDocumentsPassportOptions Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public PersonCreateDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public PersonCreateDocumentsSecondaryVerificationOptions SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public PersonCreateDocumentsVisaOptions Visa { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPassportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPassportOptions.cs new file mode 100644 index 0000000000..871922632b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPassportOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsPassportOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..fadded6c58 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..852f4895e1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public PersonCreateDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..d042c6bfb9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsSecondaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationOptions.cs new file mode 100644 index 0000000000..f1ca3e1c1a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsSecondaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsSecondaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public PersonCreateDocumentsSecondaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsVisaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsVisaOptions.cs new file mode 100644 index 0000000000..2e2c722a66 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateDocumentsVisaOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateDocumentsVisaOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs new file mode 100644 index 0000000000..1d4c169e1d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateIdNumberOptions : INestedOptions + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs new file mode 100644 index 0000000000..c7a789ca83 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs @@ -0,0 +1,186 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateOptions : BaseOptions, IHasMetadata + { + /// + /// Additional addresses associated with the person. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the person. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("additional_terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_terms_of_service")] +#endif + public PersonCreateAdditionalTermsOfServiceOptions AdditionalTermsOfService { get; set; } + + /// + /// The person's residential address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The person's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public PersonCreateDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public PersonCreateDocumentsOptions Documents { get; set; } + + /// + /// Email. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The person's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the person. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The person's gender (International regulations require either "male" or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The nationalities (countries) this person is associated with. + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// The person token generated by the person token api. + /// + [JsonProperty("person_token")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person_token")] +#endif + public string PersonToken { get; set; } + + /// + /// The phone number for this person. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The person's political exposure. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this person has with the Account's business or legal entity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public PersonCreateRelationshipOptions Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the person. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public PersonCreateScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The script names (e.g. non-Latin characters) associated with the person. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public PersonCreateScriptNamesOptions ScriptNames { get; set; } + + /// + /// The person's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs new file mode 100644 index 0000000000..bababeb3de --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs @@ -0,0 +1,83 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateRelationshipOptions : INestedOptions + { + /// + /// Whether the individual is an authorizer of the Account's identity. + /// + [JsonProperty("authorizer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authorizer")] +#endif + public bool? Authorizer { get; set; } + + /// + /// Indicates whether the person is a director of the associated legal entity. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Indicates whether the person is an executive of the associated legal entity. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Indicates whether the person is a legal guardian of the associated legal entity. + /// + [JsonProperty("legal_guardian")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_guardian")] +#endif + public bool? LegalGuardian { get; set; } + + /// + /// Indicates whether the person is an owner of the associated legal entity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percentage of ownership the person has in the associated legal entity. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// Indicates whether the person is a representative of the associated legal entity. + /// + [JsonProperty("representative")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative")] +#endif + public bool? Representative { get; set; } + + /// + /// The title or position the person holds in the associated legal entity. + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptAddressesOptions.cs new file mode 100644 index 0000000000..22940f163c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..8644b95a0a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanaOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateScriptNamesKanaOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..a4aee44862 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesKanjiOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateScriptNamesKanjiOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesOptions.cs new file mode 100644 index 0000000000..062aca71db --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonCreateScriptNamesOptions : INestedOptions + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public PersonCreateScriptNamesKanaOptions Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public PersonCreateScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonDeleteOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonDeleteOptions.cs new file mode 100644 index 0000000000..dad40c9667 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonDeleteOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + public class PersonDeleteOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonGetOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonGetOptions.cs new file mode 100644 index 0000000000..89a396cde8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonGetOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + public class PersonGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonListOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonListOptions.cs new file mode 100644 index 0000000000..3599b7decf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonListOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + public class PersonListOptions : V2.ListOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonService.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonService.cs new file mode 100644 index 0000000000..ec35b2ebcb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonService.cs @@ -0,0 +1,121 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class PersonService : Service + { + internal PersonService(ApiRequestor requestor) + : base(requestor) + { + } + + internal PersonService(IStripeClient client) + : base(client) + { + } + + /// + /// Create a Person. Adds an individual to an Account's identity. You can set relationship + /// attributes and identity information at creation. + /// + public virtual V2.Core.AccountPerson Create(string id, PersonCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/persons", options, requestOptions); + } + + /// + /// Create a Person. Adds an individual to an Account's identity. You can set relationship + /// attributes and identity information at creation. + /// + public virtual Task CreateAsync(string id, PersonCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/persons", options, requestOptions, cancellationToken); + } + + /// + /// Delete a Person associated with an Account. + /// + public virtual V2.DeletedObject Delete(string parentId, string id, PersonDeleteOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Delete, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/persons/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Delete a Person associated with an Account. + /// + public virtual Task DeleteAsync(string parentId, string id, PersonDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Delete, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/persons/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves a Person associated with an Account. + /// + public virtual V2.Core.AccountPerson Get(string parentId, string id, PersonGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/persons/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves a Person associated with an Account. + /// + public virtual Task GetAsync(string parentId, string id, PersonGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/persons/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Returns a paginated list of Persons associated with an Account. + /// + public virtual V2.StripeList List(string id, PersonListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/persons", options, requestOptions); + } + + /// + /// Returns a paginated list of Persons associated with an Account. + /// + public virtual Task> ListAsync(string id, PersonListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/accounts/{WebUtility.UrlEncode(id)}/persons", options, requestOptions, cancellationToken); + } + + /// + /// Returns a paginated list of Persons associated with an Account. + /// + public virtual IEnumerable ListAutoPaging(string id, PersonListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/core/accounts/{WebUtility.UrlEncode(id)}/persons", options, requestOptions); + } + + /// + /// Returns a paginated list of Persons associated with an Account. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(string id, PersonListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/core/accounts/{WebUtility.UrlEncode(id)}/persons", options, requestOptions, cancellationToken); + } + + /// + /// Updates a Person associated with an Account. + /// + public virtual V2.Core.AccountPerson Update(string parentId, string id, PersonUpdateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/persons/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Updates a Person associated with an Account. + /// + public virtual Task UpdateAsync(string parentId, string id, PersonUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/accounts/{WebUtility.UrlEncode(parentId)}/persons/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs new file mode 100644 index 0000000000..319b80c83b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs @@ -0,0 +1,84 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("town")] +#endif + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalNameOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalNameOptions.cs new file mode 100644 index 0000000000..b890c2a386 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalNameOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateAdditionalNameOptions : INestedOptions + { + /// + /// The person's full name. + /// + [JsonProperty("full_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("full_name")] +#endif + public string FullName { get; set; } + + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The purpose or type of the additional name. + /// One of: alias, or maiden. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceAccountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceAccountOptions.cs new file mode 100644 index 0000000000..89201cb34d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceAccountOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateAdditionalTermsOfServiceAccountOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceOptions.cs new file mode 100644 index 0000000000..70943494c8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalTermsOfServiceOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateAdditionalTermsOfServiceOptions : INestedOptions + { + /// + /// Stripe terms of service agreement. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public PersonUpdateAdditionalTermsOfServiceAccountOptions Account { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDateOfBirthOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDateOfBirthOptions.cs new file mode 100644 index 0000000000..c77f3d3b93 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDateOfBirthOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDateOfBirthOptions : INestedOptions + { + /// + /// The day of the birth. + /// + [JsonProperty("day")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day")] +#endif + public long? Day { get; set; } + + /// + /// The month of birth. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The year of birth. + /// + [JsonProperty("year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("year")] +#endif + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsCompanyAuthorizationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsCompanyAuthorizationOptions.cs new file mode 100644 index 0000000000..16fabdda98 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsCompanyAuthorizationOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsCompanyAuthorizationOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsOptions.cs new file mode 100644 index 0000000000..5d5ea01333 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsOptions.cs @@ -0,0 +1,59 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsOptions : INestedOptions + { + /// + /// One or more documents that demonstrate proof that this person is authorized to represent + /// the company. + /// + [JsonProperty("company_authorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("company_authorization")] +#endif + public PersonUpdateDocumentsCompanyAuthorizationOptions CompanyAuthorization { get; set; } + + /// + /// One or more documents showing the person’s passport page with photo and personal data. + /// + [JsonProperty("passport")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("passport")] +#endif + public PersonUpdateDocumentsPassportOptions Passport { get; set; } + + /// + /// An identifying document showing the person's name, either a passport or local ID card. + /// + [JsonProperty("primary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_verification")] +#endif + public PersonUpdateDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + + /// + /// A document showing address, either a passport, local ID card, or utility bill from a + /// well-known utility company. + /// + [JsonProperty("secondary_verification")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_verification")] +#endif + public PersonUpdateDocumentsSecondaryVerificationOptions SecondaryVerification { get; set; } + + /// + /// One or more documents showing the person’s visa required for living in the country where + /// they are residing. + /// + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public PersonUpdateDocumentsVisaOptions Visa { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPassportOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPassportOptions.cs new file mode 100644 index 0000000000..c0eab48429 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPassportOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsPassportOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..ce5fb2c5e5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsPrimaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationOptions.cs new file mode 100644 index 0000000000..2f9734658e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsPrimaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsPrimaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public PersonUpdateDocumentsPrimaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationFrontBackOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationFrontBackOptions.cs new file mode 100644 index 0000000000..d2f8071807 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationFrontBackOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsSecondaryVerificationFrontBackOptions : INestedOptions + { + /// + /// A file upload token + /// representing the back of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("back")] +#endif + public string Back { get; set; } + + /// + /// A file upload token + /// representing the front of the verification document. The purpose of the uploaded file + /// should be 'identity_document'. The uploaded file needs to be a color image (smaller than + /// 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + /// + [JsonProperty("front")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front")] +#endif + public string Front { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationOptions.cs new file mode 100644 index 0000000000..653913fa6f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsSecondaryVerificationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsSecondaryVerificationOptions : INestedOptions + { + /// + /// The file upload + /// tokens referring to each side of the document. + /// + [JsonProperty("front_back")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("front_back")] +#endif + public PersonUpdateDocumentsSecondaryVerificationFrontBackOptions FrontBack { get; set; } + + /// + /// The format of the verification document. Currently supports front_back only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsVisaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsVisaOptions.cs new file mode 100644 index 0000000000..69ae43e50a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateDocumentsVisaOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateDocumentsVisaOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs new file mode 100644 index 0000000000..30cb555913 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateIdNumberOptions : INestedOptions + { + /// + /// The ID number type of an individual. + /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, + /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The value of the ID number. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs new file mode 100644 index 0000000000..79b4fd1aa0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs @@ -0,0 +1,186 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateOptions : BaseOptions, IHasMetadata + { + /// + /// Additional addresses associated with the person. + /// + [JsonProperty("additional_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_addresses")] +#endif + public List AdditionalAddresses { get; set; } + + /// + /// Additional names (e.g. aliases) associated with the person. + /// + [JsonProperty("additional_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_names")] +#endif + public List AdditionalNames { get; set; } + + /// + /// Attestations of accepted terms of service agreements. + /// + [JsonProperty("additional_terms_of_service")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("additional_terms_of_service")] +#endif + public PersonUpdateAdditionalTermsOfServiceOptions AdditionalTermsOfService { get; set; } + + /// + /// The primary address associated with the person. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressJapanOptions Address { get; set; } + + /// + /// The person's date of birth. + /// + [JsonProperty("date_of_birth")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date_of_birth")] +#endif + public PersonUpdateDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Documents that may be submitted to satisfy various informational requests. + /// + [JsonProperty("documents")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("documents")] +#endif + public PersonUpdateDocumentsOptions Documents { get; set; } + + /// + /// Email. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The person's first name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The identification numbers (e.g., SSN) associated with the person. + /// + [JsonProperty("id_numbers")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id_numbers")] +#endif + public List IdNumbers { get; set; } + + /// + /// The person's gender (International regulations require either "male" or "female"). + /// One of: female, or male. + /// + [JsonProperty("legal_gender")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_gender")] +#endif + public string LegalGender { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The nationalities (countries) this person is associated with. + /// + [JsonProperty("nationalities")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("nationalities")] +#endif + public List Nationalities { get; set; } + + /// + /// The person token generated by the person token api. + /// + [JsonProperty("person_token")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person_token")] +#endif + public string PersonToken { get; set; } + + /// + /// The phone number for this person. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The person's political exposure. + /// One of: existing, or none. + /// + [JsonProperty("political_exposure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("political_exposure")] +#endif + public string PoliticalExposure { get; set; } + + /// + /// The relationship that this person has with the Account's business or legal entity. + /// + [JsonProperty("relationship")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("relationship")] +#endif + public PersonUpdateRelationshipOptions Relationship { get; set; } + + /// + /// The script addresses (e.g., non-Latin characters) associated with the person. + /// + [JsonProperty("script_addresses")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_addresses")] +#endif + public PersonUpdateScriptAddressesOptions ScriptAddresses { get; set; } + + /// + /// The script names (e.g. non-Latin characters) associated with the person. + /// + [JsonProperty("script_names")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("script_names")] +#endif + public PersonUpdateScriptNamesOptions ScriptNames { get; set; } + + /// + /// The person's last name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs new file mode 100644 index 0000000000..c86780d631 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs @@ -0,0 +1,83 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateRelationshipOptions : INestedOptions + { + /// + /// Whether the individual is an authorizer of the Account's identity. + /// + [JsonProperty("authorizer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authorizer")] +#endif + public bool? Authorizer { get; set; } + + /// + /// Indicates whether the person is a director of the associated legal entity. + /// + [JsonProperty("director")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("director")] +#endif + public bool? Director { get; set; } + + /// + /// Indicates whether the person is an executive of the associated legal entity. + /// + [JsonProperty("executive")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("executive")] +#endif + public bool? Executive { get; set; } + + /// + /// Indicates whether the person is a legal guardian of the associated legal entity. + /// + [JsonProperty("legal_guardian")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("legal_guardian")] +#endif + public bool? LegalGuardian { get; set; } + + /// + /// Indicates whether the person is an owner of the associated legal entity. + /// + [JsonProperty("owner")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("owner")] +#endif + public bool? Owner { get; set; } + + /// + /// The percentage of ownership the person has in the associated legal entity. + /// + [JsonProperty("percent_ownership")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_ownership")] +#endif + public string PercentOwnership { get; set; } + + /// + /// Indicates whether the person is a representative of the associated legal entity. + /// + [JsonProperty("representative")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("representative")] +#endif + public bool? Representative { get; set; } + + /// + /// The title or position the person holds in the associated legal entity. + /// + [JsonProperty("title")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("title")] +#endif + public string Title { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptAddressesOptions.cs new file mode 100644 index 0000000000..8d2140f9f4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptAddressesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateScriptAddressesOptions : INestedOptions + { + /// + /// Kana Address. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public AddressJapanOptions Kana { get; set; } + + /// + /// Kanji Address. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public AddressJapanOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanaOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanaOptions.cs new file mode 100644 index 0000000000..328d014040 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanaOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateScriptNamesKanaOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanjiOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanjiOptions.cs new file mode 100644 index 0000000000..48746746ae --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesKanjiOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateScriptNamesKanjiOptions : INestedOptions + { + /// + /// The person's first or given name. + /// + [JsonProperty("given_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("given_name")] +#endif + public string GivenName { get; set; } + + /// + /// The person's last or family name. + /// + [JsonProperty("surname")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("surname")] +#endif + public string Surname { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesOptions.cs new file mode 100644 index 0000000000..ca434ef655 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateScriptNamesOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Accounts +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PersonUpdateScriptNamesOptions : INestedOptions + { + /// + /// Persons name in kana script. + /// + [JsonProperty("kana")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kana")] +#endif + public PersonUpdateScriptNamesKanaOptions Kana { get; set; } + + /// + /// Persons name in kanji script. + /// + [JsonProperty("kanji")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("kanji")] +#endif + public PersonUpdateScriptNamesKanjiOptions Kanji { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/CoreService.cs b/src/Stripe.net/Services/V2/CoreService.cs index 19fd1c43ca..df96df4ab1 100644 --- a/src/Stripe.net/Services/V2/CoreService.cs +++ b/src/Stripe.net/Services/V2/CoreService.cs @@ -7,6 +7,9 @@ namespace Stripe.V2 public class CoreService : Service { + private V2.Core.AccountService accounts; + private V2.Core.AccountLinkService accountLinks; + private V2.Core.AccountTokenService accountTokens; private V2.Core.EventService events; private V2.Core.EventDestinationService eventDestinations; @@ -20,6 +23,15 @@ internal CoreService(IStripeClient client) { } + public virtual V2.Core.AccountService Accounts => this.accounts ??= new V2.Core.AccountService( + this.Requestor); + + public virtual V2.Core.AccountLinkService AccountLinks => this.accountLinks ??= new V2.Core.AccountLinkService( + this.Requestor); + + public virtual V2.Core.AccountTokenService AccountTokens => this.accountTokens ??= new V2.Core.AccountTokenService( + this.Requestor); + public virtual V2.Core.EventService Events => this.events ??= new V2.Core.EventService( this.Requestor); diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 6f8da87d0c..c257a219f1 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -42,7 +42,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2025-01-27.acacia, 2025-02-24.acacia, 2025-03-01.dashboard, /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, /// 2025-06-30.basil, 2025-07-30.basil, 2025-08-27.basil, - /// 2025-09-30.clover, 2025-10-29.clover, or 2025-11-17.clover. + /// 2025-09-30.clover, 2025-10-29.clover, 2025-11-17.clover, + /// 2025-12-15.clover, or 2026-01-28.clover. /// [JsonProperty("api_version")] #if NET6_0_OR_GREATER @@ -208,7 +209,7 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata public List EnabledEvents { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 0502bec91c..7cf1960263 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -166,7 +166,7 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata public List EnabledEvents { get; set; } /// - /// Set of key-value pairs that you can + /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 74d295d303..2690fd6103 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -723,7 +723,7 @@ public void TestCoreEventsGet() HttpMethod.Get, "/v2/core/events/ll_123", HttpStatusCode.OK, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}"); + "{\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Events; Stripe.V2.Core.Event result = service.Get("ll_123"); @@ -6162,7 +6162,7 @@ public void TestV2BillingMeterEventPost() HttpMethod.Post, "/v2/billing/meter_events", (HttpStatusCode)200, - "{\"object\":\"v2.billing.meter_event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"livemode\":true,\"payload\":{\"key\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"object\":\"v2.billing.meter_event\",\"payload\":{\"key\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\",\"livemode\":true}"); var options = new Stripe.V2.Billing.MeterEventCreateOptions { EventName = "event_name", @@ -6184,7 +6184,7 @@ public void TestV2BillingMeterEventAdjustmentPost() HttpMethod.Post, "/v2/billing/meter_event_adjustments", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_adjustment\",\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"livemode\":true,\"status\":\"complete\",\"type\":\"cancel\"}"); + "{\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_adjustment\",\"status\":\"complete\",\"type\":\"cancel\",\"livemode\":true}"); var options = new Stripe.V2.Billing.MeterEventAdjustmentCreateOptions { Cancel = new Stripe.V2.Billing.MeterEventAdjustmentCreateCancelOptions @@ -6210,7 +6210,7 @@ public void TestV2BillingMeterEventSessionPost() HttpMethod.Post, "/v2/billing/meter_event_session", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true}"); + "{\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"livemode\":true}"); var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.MeterEventSession; @@ -6255,6 +6255,284 @@ public void TestV2BillingMeterEventStreamPost() "/v2/billing/meter_event_stream"); } + [Fact] + public void TestV2CoreAccountGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/accounts", + (HttpStatusCode)200, + "{\"data\":[{\"applied_configurations\":[\"recipient\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts; + Stripe.V2.StripeList accounts = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/core/accounts"); + } + + [Fact] + public void TestV2CoreAccountPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts", + (HttpStatusCode)200, + "{\"applied_configurations\":[\"recipient\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + var options = new Stripe.V2.Core.AccountCreateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts; + Stripe.V2.Core.Account account = service.Create(options); + this.AssertRequest(HttpMethod.Post, "/v2/core/accounts"); + } + + [Fact] + public void TestV2CoreAccountGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/accounts/id_123", + (HttpStatusCode)200, + "{\"applied_configurations\":[\"recipient\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts; + Stripe.V2.Core.Account account = service.Get("id_123"); + this.AssertRequest(HttpMethod.Get, "/v2/core/accounts/id_123"); + } + + [Fact] + public void TestV2CoreAccountPost2() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts/id_123", + (HttpStatusCode)200, + "{\"applied_configurations\":[\"recipient\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + var options = new Stripe.V2.Core.AccountUpdateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts; + Stripe.V2.Core.Account account = service.Update("id_123", options); + this.AssertRequest(HttpMethod.Post, "/v2/core/accounts/id_123"); + } + + [Fact] + public void TestV2CoreAccountPost3() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts/id_123/close", + (HttpStatusCode)200, + "{\"applied_configurations\":[\"recipient\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts; + Stripe.V2.Core.Account account = service.Close("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/accounts/id_123/close"); + } + + [Fact] + public void TestV2CoreAccountsPersonGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/persons", + (HttpStatusCode)200, + "{\"data\":[{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.Persons; + Stripe.V2.StripeList accountPersons = service + .List("account_id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/persons"); + } + + [Fact] + public void TestV2CoreAccountsPersonPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts/account_id_123/persons", + (HttpStatusCode)200, + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + var options = new Stripe.V2.Core.Accounts.PersonCreateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.Persons; + Stripe.V2.Core.AccountPerson accountPerson = service.Create( + "account_id_123", + options); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/accounts/account_id_123/persons"); + } + + [Fact] + public void TestV2CoreAccountsPersonDelete() + { + this.StubRequest( + HttpMethod.Delete, + "/v2/core/accounts/account_id_123/persons/id_123", + (HttpStatusCode)200, + "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.Persons; + Stripe.V2.DeletedObject deleted = service.Delete( + "account_id_123", + "id_123"); + this.AssertRequest( + HttpMethod.Delete, + "/v2/core/accounts/account_id_123/persons/id_123"); + } + + [Fact] + public void TestV2CoreAccountsPersonGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/persons/id_123", + (HttpStatusCode)200, + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.Persons; + Stripe.V2.Core.AccountPerson accountPerson = service.Get( + "account_id_123", + "id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/persons/id_123"); + } + + [Fact] + public void TestV2CoreAccountsPersonPost2() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts/account_id_123/persons/id_123", + (HttpStatusCode)200, + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + var options = new Stripe.V2.Core.Accounts.PersonUpdateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.Persons; + Stripe.V2.Core.AccountPerson accountPerson = service.Update( + "account_id_123", + "id_123", + options); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/accounts/account_id_123/persons/id_123"); + } + + [Fact] + public void TestV2CoreAccountsPersonTokenPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts/account_id_123/person_tokens", + (HttpStatusCode)200, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}"); + var options = new Stripe.V2.Core.Accounts.PersonTokenCreateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.PersonTokens; + Stripe.V2.Core.AccountPersonToken accountPersonToken = service + .Create("account_id_123", options); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/accounts/account_id_123/person_tokens"); + } + + [Fact] + public void TestV2CoreAccountsPersonTokenGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/person_tokens/id_123", + (HttpStatusCode)200, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.PersonTokens; + Stripe.V2.Core.AccountPersonToken accountPersonToken = service.Get( + "account_id_123", + "id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/person_tokens/id_123"); + } + + [Fact] + public void TestV2CoreAccountLinkPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/account_links", + (HttpStatusCode)200, + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"object\":\"v2.core.account_link\",\"url\":\"url\",\"use_case\":{\"type\":\"account_onboarding\"},\"livemode\":true}"); + var options = new Stripe.V2.Core.AccountLinkCreateOptions + { + Account = "account", + UseCase = new Stripe.V2.Core.AccountLinkCreateUseCaseOptions + { + Type = "account_onboarding", + AccountOnboarding = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingOptions + { + CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions + { + Fields = "eventually_due", + FutureRequirements = "include", + }, + Configurations = new List { "merchant" }, + RefreshUrl = "refresh_url", + ReturnUrl = "return_url", + }, + AccountUpdate = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountUpdateOptions + { + CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions + { + Fields = "eventually_due", + FutureRequirements = "include", + }, + Configurations = new List { "merchant" }, + RefreshUrl = "refresh_url", + ReturnUrl = "return_url", + }, + }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.AccountLinks; + Stripe.V2.Core.AccountLink accountLink = service.Create(options); + this.AssertRequest(HttpMethod.Post, "/v2/core/account_links"); + } + + [Fact] + public void TestV2CoreAccountTokenPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/account_tokens", + (HttpStatusCode)200, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}"); + var options = new Stripe.V2.Core.AccountTokenCreateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.AccountTokens; + Stripe.V2.Core.AccountToken accountToken = service.Create(options); + this.AssertRequest(HttpMethod.Post, "/v2/core/account_tokens"); + } + + [Fact] + public void TestV2CoreAccountTokenGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/account_tokens/id_123", + (HttpStatusCode)200, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.AccountTokens; + Stripe.V2.Core.AccountToken accountToken = service.Get("id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/account_tokens/id_123"); + } + [Fact] public void TestV2CoreEventGet() { @@ -6262,7 +6540,7 @@ public void TestV2CoreEventGet() HttpMethod.Get, "/v2/core/events", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"type\":\"type\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Events; Stripe.V2.StripeList events = service.List(); @@ -6276,7 +6554,7 @@ public void TestV2CoreEventGet2() HttpMethod.Get, "/v2/core/events/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"type\":\"type\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Events; Stripe.V2.Core.Event result = service.Get("id_123"); @@ -6290,7 +6568,7 @@ public void TestV2CoreEventDestinationGet() HttpMethod.Get, "/v2/core/event_destinations", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.StripeList eventDestinations = service @@ -6305,7 +6583,7 @@ public void TestV2CoreEventDestinationPost() HttpMethod.Post, "/v2/core/event_destinations", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); var options = new Stripe.V2.Core.EventDestinationCreateOptions { EnabledEvents = new List { "enabled_events" }, @@ -6343,7 +6621,7 @@ public void TestV2CoreEventDestinationGet2() HttpMethod.Get, "/v2/core/event_destinations/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.EventDestination eventDestination = service.Get( @@ -6360,7 +6638,7 @@ public void TestV2CoreEventDestinationPost2() HttpMethod.Post, "/v2/core/event_destinations/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); var options = new Stripe.V2.Core.EventDestinationUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; @@ -6379,7 +6657,7 @@ public void TestV2CoreEventDestinationPost3() HttpMethod.Post, "/v2/core/event_destinations/id_123/disable", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.EventDestination eventDestination = service.Disable( @@ -6396,7 +6674,7 @@ public void TestV2CoreEventDestinationPost4() HttpMethod.Post, "/v2/core/event_destinations/id_123/enable", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.EventDestination eventDestination = service.Enable( @@ -6413,7 +6691,7 @@ public void TestV2CoreEventDestinationPost5() HttpMethod.Post, "/v2/core/event_destinations/id_123/ping", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"type\":\"type\"}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.Event result = service.Ping("id_123"); From 168d123f67e254de5d623eca41f172a85789b37a Mon Sep 17 00:00:00 2001 From: System Administrator Date: Tue, 16 Dec 2025 11:46:21 -0800 Subject: [PATCH 3/5] Bump version to 50.1.0 --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ VERSION | 2 +- src/Stripe.net/Constants/Version.cs | 2 +- src/Stripe.net/Stripe.net.csproj | 2 +- 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f8fb43735..14f82b987f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## 50.1.0 - 2025-12-16 +This release changes the pinned API version to `2025-12-15.clover`. + +* [#3271](https://github.com/stripe/stripe-dotnet/pull/3271) Update generated code + * Add support for new resources `V2.Core.AccountLink`, `V2.Core.AccountPersonToken`, `V2.Core.AccountPerson`, `V2.Core.AccountToken`, and `V2.Core.Account` + * Add support for `Create` and `Get` methods on resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken` + * Add support for `Create` method on resource `V2.Core.AccountLink` + * Add support for `Close`, `Create`, `Get`, `List`, and `Update` methods on resource `V2.Core.Account` + * Add support for `Create`, `Delete`, `Get`, `List`, and `Update` methods on resource `V2.Core.AccountPerson` + * Add support for `CustomerAccount` on `Billing.CreditBalanceSummaryGetOptions`, `Billing.CreditBalanceSummary`, `Billing.CreditBalanceTransactionListOptions`, `Billing.CreditGrantCreateOptions`, `Billing.CreditGrantListOptions`, `Billing.CreditGrant`, `BillingPortal.SessionCreateOptions`, `BillingPortal.Session`, `CashBalance`, `Checkout.SessionCreateOptions`, `Checkout.SessionListOptions`, `Checkout.Session`, `ConfirmationToken.PaymentMethodPreview`, `CreditNoteListOptions`, `CreditNote`, `CustomerBalanceTransaction`, `CustomerCashBalanceTransaction`, `CustomerSessionCreateOptions`, `CustomerSession`, `Customer`, `Discount`, `FinancialConnections.Account.AccountHolder`, `FinancialConnections.Session.AccountHolder`, `FinancialConnectionsAccountAccountHolderOptions`, `FinancialConnectionsSessionAccountHolderOptions`, `InvoiceCreateOptions`, `InvoiceCreatePreviewOptions`, `InvoiceItemCreateOptions`, `InvoiceItemListOptions`, `InvoiceItem`, `InvoiceListOptions`, `Invoice`, `PaymentIntentCreateOptions`, `PaymentIntentListOptions`, `PaymentIntentUpdateOptions`, `PaymentIntent`, `PaymentMethodAttachOptions`, `PaymentMethodListOptions`, `PaymentMethod`, `PromotionCodeCreateOptions`, `PromotionCodeListOptions`, `PromotionCode`, `QuoteCreateOptions`, `QuoteListOptions`, `QuoteUpdateOptions`, `Quote`, `SetupAttempt`, `SetupIntentCreateOptions`, `SetupIntentListOptions`, `SetupIntentUpdateOptions`, `SetupIntent`, `SubscriptionCreateOptions`, `SubscriptionListOptions`, `SubscriptionScheduleCreateOptions`, `SubscriptionScheduleListOptions`, `SubscriptionSchedule`, `Subscription`, `TaxId.Owner`, `TaxIdOwnerOptions`, and `TaxId` + * Add support for `Metadata` on `CheckoutSessionLineItemOptions` and `LineItem` + * Add support for `PaytoPayments` on `Account.Capabilities` and `AccountCapabilitiesOptions` + * Add support for `Signer` on `AccountDocumentsProofOfRegistrationOptions` and `AccountDocumentsProofOfUltimateBeneficialOwnershipOptions` + * Add support for `BillingCycleAnchor` on `BillingPortal.Configuration.Features.SubscriptionUpdate` and `BillingPortalConfigurationFeaturesSubscriptionUpdateOptions` + * Add support for `Payto` on `Charge.PaymentMethodDetails`, `Checkout.Session.PaymentMethodOptions`, `CheckoutSessionPaymentMethodOptionsOptions`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenPaymentMethodDataOptions`, `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoicePaymentSettingsPaymentMethodOptionsOptions`, `Mandate.PaymentMethodDetails`, `PaymentAttemptRecord.PaymentMethodDetails`, `PaymentIntent.PaymentMethodOptions`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, `PaymentMethodConfiguration`, `PaymentMethodCreateOptions`, `PaymentMethodUpdateOptions`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetails`, `SetupAttempt.PaymentMethodDetails`, `SetupIntent.PaymentMethodOptions`, `SetupIntentPaymentMethodDataOptions`, `SetupIntentPaymentMethodOptionsOptions`, `Subscription.PaymentSettings.PaymentMethodOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsOptions` + * Add support for `ExpectedDebitDate` on `Charge.PaymentMethodDetails.AcssDebit`, `Charge.PaymentMethodDetails.AuBecsDebit`, `Charge.PaymentMethodDetails.BacsDebit`, `Charge.PaymentMethodDetails.NzBankAccount`, `Charge.PaymentMethodDetails.SepaDebit`, `Charge.PaymentMethodDetails.UsBankAccount`, `PaymentAttemptRecord.PaymentMethodDetails.AcssDebit`, `PaymentAttemptRecord.PaymentMethodDetails.AuBecsDebit`, `PaymentAttemptRecord.PaymentMethodDetails.BacsDebit`, `PaymentAttemptRecord.PaymentMethodDetails.NzBankAccount`, `PaymentAttemptRecord.PaymentMethodDetails.SepaDebit`, `PaymentAttemptRecord.PaymentMethodDetails.UsBankAccount`, `PaymentRecord.PaymentMethodDetails.AcssDebit`, `PaymentRecord.PaymentMethodDetails.AuBecsDebit`, `PaymentRecord.PaymentMethodDetails.BacsDebit`, `PaymentRecord.PaymentMethodDetails.NzBankAccount`, `PaymentRecord.PaymentMethodDetails.SepaDebit`, and `PaymentRecord.PaymentMethodDetails.UsBankAccount` + * Add support for `LineItems` on `Checkout.SessionUpdateOptions` + * Add support for `Invoice` on `CustomerCustomerBalanceTransactionListOptions` + * Add support for `RelatedCustomerAccount` on `Identity.VerificationSessionCreateOptions`, `Identity.VerificationSessionListOptions`, and `Identity.VerificationSession` + * Add support for `Subtotal` on `InvoiceLineItem` + * Add support for `AuthorizationCode`, `Description`, `Iin`, `Installments`, `Issuer`, `NetworkAdviceCode`, `NetworkDeclineCode`, and `StoredCredentialUsage` on `PaymentAttemptRecord.PaymentMethodDetails.Card` and `PaymentRecord.PaymentMethodDetails.Card` + * Add support for `AllowRedisplay` on `PaymentMethodListOptions` + * Add support for `ReportedBy` on `PaymentRecord` + * Add support for `Changes` on `V2.Core.Event` +* [#3270](https://github.com/stripe/stripe-dotnet/pull/3270) Make `EventUtility.ComputeSignature` public + ## 50.0.0 - 2025-11-18 This release changes the pinned API version to `2025-11-17.clover`. diff --git a/VERSION b/VERSION index 819ea47b74..4ff0fdaa3e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -50.0.0 +50.1.0 diff --git a/src/Stripe.net/Constants/Version.cs b/src/Stripe.net/Constants/Version.cs index 26a1356797..e7a76407dc 100644 --- a/src/Stripe.net/Constants/Version.cs +++ b/src/Stripe.net/Constants/Version.cs @@ -2,6 +2,6 @@ namespace Stripe { internal class Version { - public const string Current = "50.0.0"; + public const string Current = "50.1.0"; } } \ No newline at end of file diff --git a/src/Stripe.net/Stripe.net.csproj b/src/Stripe.net/Stripe.net.csproj index 3a11425bc5..042b17deb9 100644 --- a/src/Stripe.net/Stripe.net.csproj +++ b/src/Stripe.net/Stripe.net.csproj @@ -2,7 +2,7 @@ Stripe.net is a sync/async client and portable class library for the Stripe API, supporting .NET Standard 2.0+, .NET Core 5+, and .NET Framework 4.6.2+. (Official Library) - 50.0.0 + 50.1.0 8 Stripe, Jayme Davis