diff --git a/API_VERSION b/API_VERSION index e91c9d844..e2854d256 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -91ef4c6abe8dcdab3a855d81aa624693a6a4da9f \ No newline at end of file +7f436e73385732b1c5502f408a6fe37f7b6b0612 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 927a37ae7..1d5ad796c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2125 \ No newline at end of file +v2128 \ No newline at end of file diff --git a/lib/stripe/event_types.rb b/lib/stripe/event_types.rb index f955d4946..5c4c9cc75 100644 --- a/lib/stripe/event_types.rb +++ b/lib/stripe/event_types.rb @@ -5,256 +5,9 @@ module EventTypes def self.v2_event_types_to_classes { # v2 event types: The beginning of the section generated from our OpenAPI spec - Events::V1AccountUpdatedEvent.lookup_type => Events::V1AccountUpdatedEvent, - Events::V1ApplicationFeeCreatedEvent.lookup_type => Events::V1ApplicationFeeCreatedEvent, - Events::V1ApplicationFeeRefundedEvent.lookup_type => Events::V1ApplicationFeeRefundedEvent, Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type => Events::V1BillingMeterErrorReportTriggeredEvent, Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent, - Events::V1BillingPortalConfigurationCreatedEvent.lookup_type => - Events::V1BillingPortalConfigurationCreatedEvent, - Events::V1BillingPortalConfigurationUpdatedEvent.lookup_type => - Events::V1BillingPortalConfigurationUpdatedEvent, - Events::V1CapabilityUpdatedEvent.lookup_type => Events::V1CapabilityUpdatedEvent, - Events::V1ChargeCapturedEvent.lookup_type => Events::V1ChargeCapturedEvent, - Events::V1ChargeDisputeClosedEvent.lookup_type => Events::V1ChargeDisputeClosedEvent, - Events::V1ChargeDisputeCreatedEvent.lookup_type => Events::V1ChargeDisputeCreatedEvent, - Events::V1ChargeDisputeFundsReinstatedEvent.lookup_type => - Events::V1ChargeDisputeFundsReinstatedEvent, - Events::V1ChargeDisputeFundsWithdrawnEvent.lookup_type => - Events::V1ChargeDisputeFundsWithdrawnEvent, - Events::V1ChargeDisputeUpdatedEvent.lookup_type => Events::V1ChargeDisputeUpdatedEvent, - Events::V1ChargeExpiredEvent.lookup_type => Events::V1ChargeExpiredEvent, - Events::V1ChargeFailedEvent.lookup_type => Events::V1ChargeFailedEvent, - Events::V1ChargePendingEvent.lookup_type => Events::V1ChargePendingEvent, - Events::V1ChargeRefundUpdatedEvent.lookup_type => Events::V1ChargeRefundUpdatedEvent, - Events::V1ChargeRefundedEvent.lookup_type => Events::V1ChargeRefundedEvent, - Events::V1ChargeSucceededEvent.lookup_type => Events::V1ChargeSucceededEvent, - Events::V1ChargeUpdatedEvent.lookup_type => Events::V1ChargeUpdatedEvent, - Events::V1CheckoutSessionAsyncPaymentFailedEvent.lookup_type => - Events::V1CheckoutSessionAsyncPaymentFailedEvent, - Events::V1CheckoutSessionAsyncPaymentSucceededEvent.lookup_type => - Events::V1CheckoutSessionAsyncPaymentSucceededEvent, - Events::V1CheckoutSessionCompletedEvent.lookup_type => Events::V1CheckoutSessionCompletedEvent, - Events::V1CheckoutSessionExpiredEvent.lookup_type => Events::V1CheckoutSessionExpiredEvent, - Events::V1ClimateOrderCanceledEvent.lookup_type => Events::V1ClimateOrderCanceledEvent, - Events::V1ClimateOrderCreatedEvent.lookup_type => Events::V1ClimateOrderCreatedEvent, - Events::V1ClimateOrderDelayedEvent.lookup_type => Events::V1ClimateOrderDelayedEvent, - Events::V1ClimateOrderDeliveredEvent.lookup_type => Events::V1ClimateOrderDeliveredEvent, - Events::V1ClimateOrderProductSubstitutedEvent.lookup_type => - Events::V1ClimateOrderProductSubstitutedEvent, - Events::V1ClimateProductCreatedEvent.lookup_type => Events::V1ClimateProductCreatedEvent, - Events::V1ClimateProductPricingUpdatedEvent.lookup_type => - Events::V1ClimateProductPricingUpdatedEvent, - Events::V1CouponCreatedEvent.lookup_type => Events::V1CouponCreatedEvent, - Events::V1CouponDeletedEvent.lookup_type => Events::V1CouponDeletedEvent, - Events::V1CouponUpdatedEvent.lookup_type => Events::V1CouponUpdatedEvent, - Events::V1CreditNoteCreatedEvent.lookup_type => Events::V1CreditNoteCreatedEvent, - Events::V1CreditNoteUpdatedEvent.lookup_type => Events::V1CreditNoteUpdatedEvent, - Events::V1CreditNoteVoidedEvent.lookup_type => Events::V1CreditNoteVoidedEvent, - Events::V1CustomerCreatedEvent.lookup_type => Events::V1CustomerCreatedEvent, - Events::V1CustomerDeletedEvent.lookup_type => Events::V1CustomerDeletedEvent, - Events::V1CustomerSubscriptionCreatedEvent.lookup_type => - Events::V1CustomerSubscriptionCreatedEvent, - Events::V1CustomerSubscriptionDeletedEvent.lookup_type => - Events::V1CustomerSubscriptionDeletedEvent, - Events::V1CustomerSubscriptionPausedEvent.lookup_type => Events::V1CustomerSubscriptionPausedEvent, - Events::V1CustomerSubscriptionPendingUpdateAppliedEvent.lookup_type => - Events::V1CustomerSubscriptionPendingUpdateAppliedEvent, - Events::V1CustomerSubscriptionPendingUpdateExpiredEvent.lookup_type => - Events::V1CustomerSubscriptionPendingUpdateExpiredEvent, - Events::V1CustomerSubscriptionResumedEvent.lookup_type => - Events::V1CustomerSubscriptionResumedEvent, - Events::V1CustomerSubscriptionTrialWillEndEvent.lookup_type => - Events::V1CustomerSubscriptionTrialWillEndEvent, - Events::V1CustomerSubscriptionUpdatedEvent.lookup_type => - Events::V1CustomerSubscriptionUpdatedEvent, - Events::V1CustomerTaxIdCreatedEvent.lookup_type => Events::V1CustomerTaxIdCreatedEvent, - Events::V1CustomerTaxIdDeletedEvent.lookup_type => Events::V1CustomerTaxIdDeletedEvent, - Events::V1CustomerTaxIdUpdatedEvent.lookup_type => Events::V1CustomerTaxIdUpdatedEvent, - Events::V1CustomerUpdatedEvent.lookup_type => Events::V1CustomerUpdatedEvent, - Events::V1FileCreatedEvent.lookup_type => Events::V1FileCreatedEvent, - Events::V1FinancialConnectionsAccountCreatedEvent.lookup_type => - Events::V1FinancialConnectionsAccountCreatedEvent, - Events::V1FinancialConnectionsAccountDeactivatedEvent.lookup_type => - Events::V1FinancialConnectionsAccountDeactivatedEvent, - Events::V1FinancialConnectionsAccountDisconnectedEvent.lookup_type => - Events::V1FinancialConnectionsAccountDisconnectedEvent, - Events::V1FinancialConnectionsAccountReactivatedEvent.lookup_type => - Events::V1FinancialConnectionsAccountReactivatedEvent, - Events::V1FinancialConnectionsAccountRefreshedBalanceEvent.lookup_type => - Events::V1FinancialConnectionsAccountRefreshedBalanceEvent, - Events::V1FinancialConnectionsAccountRefreshedOwnershipEvent.lookup_type => - Events::V1FinancialConnectionsAccountRefreshedOwnershipEvent, - Events::V1FinancialConnectionsAccountRefreshedTransactionsEvent.lookup_type => - Events::V1FinancialConnectionsAccountRefreshedTransactionsEvent, - Events::V1IdentityVerificationSessionCanceledEvent.lookup_type => - Events::V1IdentityVerificationSessionCanceledEvent, - Events::V1IdentityVerificationSessionCreatedEvent.lookup_type => - Events::V1IdentityVerificationSessionCreatedEvent, - Events::V1IdentityVerificationSessionProcessingEvent.lookup_type => - Events::V1IdentityVerificationSessionProcessingEvent, - Events::V1IdentityVerificationSessionRedactedEvent.lookup_type => - Events::V1IdentityVerificationSessionRedactedEvent, - Events::V1IdentityVerificationSessionRequiresInputEvent.lookup_type => - Events::V1IdentityVerificationSessionRequiresInputEvent, - Events::V1IdentityVerificationSessionVerifiedEvent.lookup_type => - Events::V1IdentityVerificationSessionVerifiedEvent, - Events::V1InvoiceCreatedEvent.lookup_type => Events::V1InvoiceCreatedEvent, - Events::V1InvoiceDeletedEvent.lookup_type => Events::V1InvoiceDeletedEvent, - Events::V1InvoiceFinalizationFailedEvent.lookup_type => Events::V1InvoiceFinalizationFailedEvent, - Events::V1InvoiceFinalizedEvent.lookup_type => Events::V1InvoiceFinalizedEvent, - Events::V1InvoiceMarkedUncollectibleEvent.lookup_type => Events::V1InvoiceMarkedUncollectibleEvent, - Events::V1InvoiceOverdueEvent.lookup_type => Events::V1InvoiceOverdueEvent, - Events::V1InvoiceOverpaidEvent.lookup_type => Events::V1InvoiceOverpaidEvent, - Events::V1InvoicePaidEvent.lookup_type => Events::V1InvoicePaidEvent, - Events::V1InvoicePaymentActionRequiredEvent.lookup_type => - Events::V1InvoicePaymentActionRequiredEvent, - Events::V1InvoicePaymentFailedEvent.lookup_type => Events::V1InvoicePaymentFailedEvent, - Events::V1InvoicePaymentPaidEvent.lookup_type => Events::V1InvoicePaymentPaidEvent, - Events::V1InvoicePaymentSucceededEvent.lookup_type => Events::V1InvoicePaymentSucceededEvent, - Events::V1InvoiceSentEvent.lookup_type => Events::V1InvoiceSentEvent, - Events::V1InvoiceUpcomingEvent.lookup_type => Events::V1InvoiceUpcomingEvent, - Events::V1InvoiceUpdatedEvent.lookup_type => Events::V1InvoiceUpdatedEvent, - Events::V1InvoiceVoidedEvent.lookup_type => Events::V1InvoiceVoidedEvent, - Events::V1InvoiceWillBeDueEvent.lookup_type => Events::V1InvoiceWillBeDueEvent, - Events::V1InvoiceitemCreatedEvent.lookup_type => Events::V1InvoiceitemCreatedEvent, - Events::V1InvoiceitemDeletedEvent.lookup_type => Events::V1InvoiceitemDeletedEvent, - Events::V1IssuingAuthorizationCreatedEvent.lookup_type => - Events::V1IssuingAuthorizationCreatedEvent, - Events::V1IssuingAuthorizationRequestEvent.lookup_type => - Events::V1IssuingAuthorizationRequestEvent, - Events::V1IssuingAuthorizationUpdatedEvent.lookup_type => - Events::V1IssuingAuthorizationUpdatedEvent, - Events::V1IssuingCardCreatedEvent.lookup_type => Events::V1IssuingCardCreatedEvent, - Events::V1IssuingCardUpdatedEvent.lookup_type => Events::V1IssuingCardUpdatedEvent, - Events::V1IssuingCardholderCreatedEvent.lookup_type => Events::V1IssuingCardholderCreatedEvent, - Events::V1IssuingCardholderUpdatedEvent.lookup_type => Events::V1IssuingCardholderUpdatedEvent, - Events::V1IssuingDisputeClosedEvent.lookup_type => Events::V1IssuingDisputeClosedEvent, - Events::V1IssuingDisputeCreatedEvent.lookup_type => Events::V1IssuingDisputeCreatedEvent, - Events::V1IssuingDisputeFundsReinstatedEvent.lookup_type => - Events::V1IssuingDisputeFundsReinstatedEvent, - Events::V1IssuingDisputeFundsRescindedEvent.lookup_type => - Events::V1IssuingDisputeFundsRescindedEvent, - Events::V1IssuingDisputeSubmittedEvent.lookup_type => Events::V1IssuingDisputeSubmittedEvent, - Events::V1IssuingDisputeUpdatedEvent.lookup_type => Events::V1IssuingDisputeUpdatedEvent, - Events::V1IssuingPersonalizationDesignActivatedEvent.lookup_type => - Events::V1IssuingPersonalizationDesignActivatedEvent, - Events::V1IssuingPersonalizationDesignDeactivatedEvent.lookup_type => - Events::V1IssuingPersonalizationDesignDeactivatedEvent, - Events::V1IssuingPersonalizationDesignRejectedEvent.lookup_type => - Events::V1IssuingPersonalizationDesignRejectedEvent, - Events::V1IssuingPersonalizationDesignUpdatedEvent.lookup_type => - Events::V1IssuingPersonalizationDesignUpdatedEvent, - Events::V1IssuingTokenCreatedEvent.lookup_type => Events::V1IssuingTokenCreatedEvent, - Events::V1IssuingTokenUpdatedEvent.lookup_type => Events::V1IssuingTokenUpdatedEvent, - Events::V1IssuingTransactionCreatedEvent.lookup_type => Events::V1IssuingTransactionCreatedEvent, - Events::V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.lookup_type => - Events::V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent, - Events::V1IssuingTransactionUpdatedEvent.lookup_type => Events::V1IssuingTransactionUpdatedEvent, - Events::V1MandateUpdatedEvent.lookup_type => Events::V1MandateUpdatedEvent, - Events::V1PaymentIntentAmountCapturableUpdatedEvent.lookup_type => - Events::V1PaymentIntentAmountCapturableUpdatedEvent, - Events::V1PaymentIntentCanceledEvent.lookup_type => Events::V1PaymentIntentCanceledEvent, - Events::V1PaymentIntentCreatedEvent.lookup_type => Events::V1PaymentIntentCreatedEvent, - Events::V1PaymentIntentPartiallyFundedEvent.lookup_type => - Events::V1PaymentIntentPartiallyFundedEvent, - Events::V1PaymentIntentPaymentFailedEvent.lookup_type => Events::V1PaymentIntentPaymentFailedEvent, - Events::V1PaymentIntentProcessingEvent.lookup_type => Events::V1PaymentIntentProcessingEvent, - Events::V1PaymentIntentRequiresActionEvent.lookup_type => - Events::V1PaymentIntentRequiresActionEvent, - Events::V1PaymentIntentSucceededEvent.lookup_type => Events::V1PaymentIntentSucceededEvent, - Events::V1PaymentLinkCreatedEvent.lookup_type => Events::V1PaymentLinkCreatedEvent, - Events::V1PaymentLinkUpdatedEvent.lookup_type => Events::V1PaymentLinkUpdatedEvent, - Events::V1PaymentMethodAttachedEvent.lookup_type => Events::V1PaymentMethodAttachedEvent, - Events::V1PaymentMethodAutomaticallyUpdatedEvent.lookup_type => - Events::V1PaymentMethodAutomaticallyUpdatedEvent, - Events::V1PaymentMethodDetachedEvent.lookup_type => Events::V1PaymentMethodDetachedEvent, - Events::V1PaymentMethodUpdatedEvent.lookup_type => Events::V1PaymentMethodUpdatedEvent, - Events::V1PayoutCanceledEvent.lookup_type => Events::V1PayoutCanceledEvent, - Events::V1PayoutCreatedEvent.lookup_type => Events::V1PayoutCreatedEvent, - Events::V1PayoutFailedEvent.lookup_type => Events::V1PayoutFailedEvent, - Events::V1PayoutPaidEvent.lookup_type => Events::V1PayoutPaidEvent, - Events::V1PayoutReconciliationCompletedEvent.lookup_type => - Events::V1PayoutReconciliationCompletedEvent, - Events::V1PayoutUpdatedEvent.lookup_type => Events::V1PayoutUpdatedEvent, - Events::V1PersonCreatedEvent.lookup_type => Events::V1PersonCreatedEvent, - Events::V1PersonDeletedEvent.lookup_type => Events::V1PersonDeletedEvent, - Events::V1PersonUpdatedEvent.lookup_type => Events::V1PersonUpdatedEvent, - Events::V1PlanCreatedEvent.lookup_type => Events::V1PlanCreatedEvent, - Events::V1PlanDeletedEvent.lookup_type => Events::V1PlanDeletedEvent, - Events::V1PlanUpdatedEvent.lookup_type => Events::V1PlanUpdatedEvent, - Events::V1PriceCreatedEvent.lookup_type => Events::V1PriceCreatedEvent, - Events::V1PriceDeletedEvent.lookup_type => Events::V1PriceDeletedEvent, - Events::V1PriceUpdatedEvent.lookup_type => Events::V1PriceUpdatedEvent, - Events::V1ProductCreatedEvent.lookup_type => Events::V1ProductCreatedEvent, - Events::V1ProductDeletedEvent.lookup_type => Events::V1ProductDeletedEvent, - Events::V1ProductUpdatedEvent.lookup_type => Events::V1ProductUpdatedEvent, - Events::V1PromotionCodeCreatedEvent.lookup_type => Events::V1PromotionCodeCreatedEvent, - Events::V1PromotionCodeUpdatedEvent.lookup_type => Events::V1PromotionCodeUpdatedEvent, - Events::V1QuoteAcceptedEvent.lookup_type => Events::V1QuoteAcceptedEvent, - Events::V1QuoteCanceledEvent.lookup_type => Events::V1QuoteCanceledEvent, - Events::V1QuoteCreatedEvent.lookup_type => Events::V1QuoteCreatedEvent, - Events::V1QuoteFinalizedEvent.lookup_type => Events::V1QuoteFinalizedEvent, - Events::V1RadarEarlyFraudWarningCreatedEvent.lookup_type => - Events::V1RadarEarlyFraudWarningCreatedEvent, - Events::V1RadarEarlyFraudWarningUpdatedEvent.lookup_type => - Events::V1RadarEarlyFraudWarningUpdatedEvent, - Events::V1RefundCreatedEvent.lookup_type => Events::V1RefundCreatedEvent, - Events::V1RefundFailedEvent.lookup_type => Events::V1RefundFailedEvent, - Events::V1RefundUpdatedEvent.lookup_type => Events::V1RefundUpdatedEvent, - Events::V1ReviewClosedEvent.lookup_type => Events::V1ReviewClosedEvent, - Events::V1ReviewOpenedEvent.lookup_type => Events::V1ReviewOpenedEvent, - Events::V1SetupIntentCanceledEvent.lookup_type => Events::V1SetupIntentCanceledEvent, - Events::V1SetupIntentCreatedEvent.lookup_type => Events::V1SetupIntentCreatedEvent, - Events::V1SetupIntentRequiresActionEvent.lookup_type => Events::V1SetupIntentRequiresActionEvent, - Events::V1SetupIntentSetupFailedEvent.lookup_type => Events::V1SetupIntentSetupFailedEvent, - Events::V1SetupIntentSucceededEvent.lookup_type => Events::V1SetupIntentSucceededEvent, - Events::V1SigmaScheduledQueryRunCreatedEvent.lookup_type => - Events::V1SigmaScheduledQueryRunCreatedEvent, - Events::V1SourceCanceledEvent.lookup_type => Events::V1SourceCanceledEvent, - Events::V1SourceChargeableEvent.lookup_type => Events::V1SourceChargeableEvent, - Events::V1SourceFailedEvent.lookup_type => Events::V1SourceFailedEvent, - Events::V1SourceRefundAttributesRequiredEvent.lookup_type => - Events::V1SourceRefundAttributesRequiredEvent, - Events::V1SubscriptionScheduleAbortedEvent.lookup_type => - Events::V1SubscriptionScheduleAbortedEvent, - Events::V1SubscriptionScheduleCanceledEvent.lookup_type => - Events::V1SubscriptionScheduleCanceledEvent, - Events::V1SubscriptionScheduleCompletedEvent.lookup_type => - Events::V1SubscriptionScheduleCompletedEvent, - Events::V1SubscriptionScheduleCreatedEvent.lookup_type => - Events::V1SubscriptionScheduleCreatedEvent, - Events::V1SubscriptionScheduleExpiringEvent.lookup_type => - Events::V1SubscriptionScheduleExpiringEvent, - Events::V1SubscriptionScheduleReleasedEvent.lookup_type => - Events::V1SubscriptionScheduleReleasedEvent, - Events::V1SubscriptionScheduleUpdatedEvent.lookup_type => - Events::V1SubscriptionScheduleUpdatedEvent, - Events::V1TaxRateCreatedEvent.lookup_type => Events::V1TaxRateCreatedEvent, - Events::V1TaxRateUpdatedEvent.lookup_type => Events::V1TaxRateUpdatedEvent, - Events::V1TerminalReaderActionFailedEvent.lookup_type => Events::V1TerminalReaderActionFailedEvent, - Events::V1TerminalReaderActionSucceededEvent.lookup_type => - Events::V1TerminalReaderActionSucceededEvent, - Events::V1TerminalReaderActionUpdatedEvent.lookup_type => - Events::V1TerminalReaderActionUpdatedEvent, - Events::V1TestHelpersTestClockAdvancingEvent.lookup_type => - Events::V1TestHelpersTestClockAdvancingEvent, - Events::V1TestHelpersTestClockCreatedEvent.lookup_type => - Events::V1TestHelpersTestClockCreatedEvent, - Events::V1TestHelpersTestClockDeletedEvent.lookup_type => - Events::V1TestHelpersTestClockDeletedEvent, - Events::V1TestHelpersTestClockInternalFailureEvent.lookup_type => - Events::V1TestHelpersTestClockInternalFailureEvent, - Events::V1TestHelpersTestClockReadyEvent.lookup_type => Events::V1TestHelpersTestClockReadyEvent, - Events::V1TopupCanceledEvent.lookup_type => Events::V1TopupCanceledEvent, - Events::V1TopupCreatedEvent.lookup_type => Events::V1TopupCreatedEvent, - Events::V1TopupFailedEvent.lookup_type => Events::V1TopupFailedEvent, - Events::V1TopupReversedEvent.lookup_type => Events::V1TopupReversedEvent, - Events::V1TopupSucceededEvent.lookup_type => Events::V1TopupSucceededEvent, - Events::V1TransferCreatedEvent.lookup_type => Events::V1TransferCreatedEvent, - Events::V1TransferReversedEvent.lookup_type => Events::V1TransferReversedEvent, - Events::V1TransferUpdatedEvent.lookup_type => Events::V1TransferUpdatedEvent, Events::V2BillingCadenceBilledEvent.lookup_type => Events::V2BillingCadenceBilledEvent, Events::V2BillingCadenceCanceledEvent.lookup_type => Events::V2BillingCadenceCanceledEvent, Events::V2BillingCadenceCreatedEvent.lookup_type => Events::V2BillingCadenceCreatedEvent, @@ -466,6 +219,10 @@ def self.v2_event_types_to_classes Events::V2MoneyManagementTransactionCreatedEvent, Events::V2MoneyManagementTransactionUpdatedEvent.lookup_type => Events::V2MoneyManagementTransactionUpdatedEvent, + Events::V2PaymentsOffSessionPaymentAttemptFailedEvent.lookup_type => + Events::V2PaymentsOffSessionPaymentAttemptFailedEvent, + Events::V2PaymentsOffSessionPaymentAttemptStartedEvent.lookup_type => + Events::V2PaymentsOffSessionPaymentAttemptStartedEvent, Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.lookup_type => Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent, Events::V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.lookup_type => @@ -492,328 +249,10 @@ def self.v2_event_types_to_classes def self.event_notification_types_to_classes { # event notification types: The beginning of the section generated from our OpenAPI spec - Events::V1AccountUpdatedEventNotification.lookup_type => Events::V1AccountUpdatedEventNotification, - Events::V1ApplicationFeeCreatedEventNotification.lookup_type => - Events::V1ApplicationFeeCreatedEventNotification, - Events::V1ApplicationFeeRefundedEventNotification.lookup_type => - Events::V1ApplicationFeeRefundedEventNotification, Events::V1BillingMeterErrorReportTriggeredEventNotification.lookup_type => Events::V1BillingMeterErrorReportTriggeredEventNotification, Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type => Events::V1BillingMeterNoMeterFoundEventNotification, - Events::V1BillingPortalConfigurationCreatedEventNotification.lookup_type => - Events::V1BillingPortalConfigurationCreatedEventNotification, - Events::V1BillingPortalConfigurationUpdatedEventNotification.lookup_type => - Events::V1BillingPortalConfigurationUpdatedEventNotification, - Events::V1CapabilityUpdatedEventNotification.lookup_type => - Events::V1CapabilityUpdatedEventNotification, - Events::V1ChargeCapturedEventNotification.lookup_type => Events::V1ChargeCapturedEventNotification, - Events::V1ChargeDisputeClosedEventNotification.lookup_type => - Events::V1ChargeDisputeClosedEventNotification, - Events::V1ChargeDisputeCreatedEventNotification.lookup_type => - Events::V1ChargeDisputeCreatedEventNotification, - Events::V1ChargeDisputeFundsReinstatedEventNotification.lookup_type => - Events::V1ChargeDisputeFundsReinstatedEventNotification, - Events::V1ChargeDisputeFundsWithdrawnEventNotification.lookup_type => - Events::V1ChargeDisputeFundsWithdrawnEventNotification, - Events::V1ChargeDisputeUpdatedEventNotification.lookup_type => - Events::V1ChargeDisputeUpdatedEventNotification, - Events::V1ChargeExpiredEventNotification.lookup_type => Events::V1ChargeExpiredEventNotification, - Events::V1ChargeFailedEventNotification.lookup_type => Events::V1ChargeFailedEventNotification, - Events::V1ChargePendingEventNotification.lookup_type => Events::V1ChargePendingEventNotification, - Events::V1ChargeRefundUpdatedEventNotification.lookup_type => - Events::V1ChargeRefundUpdatedEventNotification, - Events::V1ChargeRefundedEventNotification.lookup_type => Events::V1ChargeRefundedEventNotification, - Events::V1ChargeSucceededEventNotification.lookup_type => - Events::V1ChargeSucceededEventNotification, - Events::V1ChargeUpdatedEventNotification.lookup_type => Events::V1ChargeUpdatedEventNotification, - Events::V1CheckoutSessionAsyncPaymentFailedEventNotification.lookup_type => - Events::V1CheckoutSessionAsyncPaymentFailedEventNotification, - Events::V1CheckoutSessionAsyncPaymentSucceededEventNotification.lookup_type => - Events::V1CheckoutSessionAsyncPaymentSucceededEventNotification, - Events::V1CheckoutSessionCompletedEventNotification.lookup_type => - Events::V1CheckoutSessionCompletedEventNotification, - Events::V1CheckoutSessionExpiredEventNotification.lookup_type => - Events::V1CheckoutSessionExpiredEventNotification, - Events::V1ClimateOrderCanceledEventNotification.lookup_type => - Events::V1ClimateOrderCanceledEventNotification, - Events::V1ClimateOrderCreatedEventNotification.lookup_type => - Events::V1ClimateOrderCreatedEventNotification, - Events::V1ClimateOrderDelayedEventNotification.lookup_type => - Events::V1ClimateOrderDelayedEventNotification, - Events::V1ClimateOrderDeliveredEventNotification.lookup_type => - Events::V1ClimateOrderDeliveredEventNotification, - Events::V1ClimateOrderProductSubstitutedEventNotification.lookup_type => - Events::V1ClimateOrderProductSubstitutedEventNotification, - Events::V1ClimateProductCreatedEventNotification.lookup_type => - Events::V1ClimateProductCreatedEventNotification, - Events::V1ClimateProductPricingUpdatedEventNotification.lookup_type => - Events::V1ClimateProductPricingUpdatedEventNotification, - Events::V1CouponCreatedEventNotification.lookup_type => Events::V1CouponCreatedEventNotification, - Events::V1CouponDeletedEventNotification.lookup_type => Events::V1CouponDeletedEventNotification, - Events::V1CouponUpdatedEventNotification.lookup_type => Events::V1CouponUpdatedEventNotification, - Events::V1CreditNoteCreatedEventNotification.lookup_type => - Events::V1CreditNoteCreatedEventNotification, - Events::V1CreditNoteUpdatedEventNotification.lookup_type => - Events::V1CreditNoteUpdatedEventNotification, - Events::V1CreditNoteVoidedEventNotification.lookup_type => - Events::V1CreditNoteVoidedEventNotification, - Events::V1CustomerCreatedEventNotification.lookup_type => - Events::V1CustomerCreatedEventNotification, - Events::V1CustomerDeletedEventNotification.lookup_type => - Events::V1CustomerDeletedEventNotification, - Events::V1CustomerSubscriptionCreatedEventNotification.lookup_type => - Events::V1CustomerSubscriptionCreatedEventNotification, - Events::V1CustomerSubscriptionDeletedEventNotification.lookup_type => - Events::V1CustomerSubscriptionDeletedEventNotification, - Events::V1CustomerSubscriptionPausedEventNotification.lookup_type => - Events::V1CustomerSubscriptionPausedEventNotification, - Events::V1CustomerSubscriptionPendingUpdateAppliedEventNotification.lookup_type => - Events::V1CustomerSubscriptionPendingUpdateAppliedEventNotification, - Events::V1CustomerSubscriptionPendingUpdateExpiredEventNotification.lookup_type => - Events::V1CustomerSubscriptionPendingUpdateExpiredEventNotification, - Events::V1CustomerSubscriptionResumedEventNotification.lookup_type => - Events::V1CustomerSubscriptionResumedEventNotification, - Events::V1CustomerSubscriptionTrialWillEndEventNotification.lookup_type => - Events::V1CustomerSubscriptionTrialWillEndEventNotification, - Events::V1CustomerSubscriptionUpdatedEventNotification.lookup_type => - Events::V1CustomerSubscriptionUpdatedEventNotification, - Events::V1CustomerTaxIdCreatedEventNotification.lookup_type => - Events::V1CustomerTaxIdCreatedEventNotification, - Events::V1CustomerTaxIdDeletedEventNotification.lookup_type => - Events::V1CustomerTaxIdDeletedEventNotification, - Events::V1CustomerTaxIdUpdatedEventNotification.lookup_type => - Events::V1CustomerTaxIdUpdatedEventNotification, - Events::V1CustomerUpdatedEventNotification.lookup_type => - Events::V1CustomerUpdatedEventNotification, - Events::V1FileCreatedEventNotification.lookup_type => Events::V1FileCreatedEventNotification, - Events::V1FinancialConnectionsAccountCreatedEventNotification.lookup_type => - Events::V1FinancialConnectionsAccountCreatedEventNotification, - Events::V1FinancialConnectionsAccountDeactivatedEventNotification.lookup_type => - Events::V1FinancialConnectionsAccountDeactivatedEventNotification, - Events::V1FinancialConnectionsAccountDisconnectedEventNotification.lookup_type => - Events::V1FinancialConnectionsAccountDisconnectedEventNotification, - Events::V1FinancialConnectionsAccountReactivatedEventNotification.lookup_type => - Events::V1FinancialConnectionsAccountReactivatedEventNotification, - Events::V1FinancialConnectionsAccountRefreshedBalanceEventNotification.lookup_type => - Events::V1FinancialConnectionsAccountRefreshedBalanceEventNotification, - Events::V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.lookup_type => - Events::V1FinancialConnectionsAccountRefreshedOwnershipEventNotification, - Events::V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.lookup_type => - Events::V1FinancialConnectionsAccountRefreshedTransactionsEventNotification, - Events::V1IdentityVerificationSessionCanceledEventNotification.lookup_type => - Events::V1IdentityVerificationSessionCanceledEventNotification, - Events::V1IdentityVerificationSessionCreatedEventNotification.lookup_type => - Events::V1IdentityVerificationSessionCreatedEventNotification, - Events::V1IdentityVerificationSessionProcessingEventNotification.lookup_type => - Events::V1IdentityVerificationSessionProcessingEventNotification, - Events::V1IdentityVerificationSessionRedactedEventNotification.lookup_type => - Events::V1IdentityVerificationSessionRedactedEventNotification, - Events::V1IdentityVerificationSessionRequiresInputEventNotification.lookup_type => - Events::V1IdentityVerificationSessionRequiresInputEventNotification, - Events::V1IdentityVerificationSessionVerifiedEventNotification.lookup_type => - Events::V1IdentityVerificationSessionVerifiedEventNotification, - Events::V1InvoiceCreatedEventNotification.lookup_type => Events::V1InvoiceCreatedEventNotification, - Events::V1InvoiceDeletedEventNotification.lookup_type => Events::V1InvoiceDeletedEventNotification, - Events::V1InvoiceFinalizationFailedEventNotification.lookup_type => - Events::V1InvoiceFinalizationFailedEventNotification, - Events::V1InvoiceFinalizedEventNotification.lookup_type => - Events::V1InvoiceFinalizedEventNotification, - Events::V1InvoiceMarkedUncollectibleEventNotification.lookup_type => - Events::V1InvoiceMarkedUncollectibleEventNotification, - Events::V1InvoiceOverdueEventNotification.lookup_type => Events::V1InvoiceOverdueEventNotification, - Events::V1InvoiceOverpaidEventNotification.lookup_type => - Events::V1InvoiceOverpaidEventNotification, - Events::V1InvoicePaidEventNotification.lookup_type => Events::V1InvoicePaidEventNotification, - Events::V1InvoicePaymentActionRequiredEventNotification.lookup_type => - Events::V1InvoicePaymentActionRequiredEventNotification, - Events::V1InvoicePaymentFailedEventNotification.lookup_type => - Events::V1InvoicePaymentFailedEventNotification, - Events::V1InvoicePaymentPaidEventNotification.lookup_type => - Events::V1InvoicePaymentPaidEventNotification, - Events::V1InvoicePaymentSucceededEventNotification.lookup_type => - Events::V1InvoicePaymentSucceededEventNotification, - Events::V1InvoiceSentEventNotification.lookup_type => Events::V1InvoiceSentEventNotification, - Events::V1InvoiceUpcomingEventNotification.lookup_type => - Events::V1InvoiceUpcomingEventNotification, - Events::V1InvoiceUpdatedEventNotification.lookup_type => Events::V1InvoiceUpdatedEventNotification, - Events::V1InvoiceVoidedEventNotification.lookup_type => Events::V1InvoiceVoidedEventNotification, - Events::V1InvoiceWillBeDueEventNotification.lookup_type => - Events::V1InvoiceWillBeDueEventNotification, - Events::V1InvoiceitemCreatedEventNotification.lookup_type => - Events::V1InvoiceitemCreatedEventNotification, - Events::V1InvoiceitemDeletedEventNotification.lookup_type => - Events::V1InvoiceitemDeletedEventNotification, - Events::V1IssuingAuthorizationCreatedEventNotification.lookup_type => - Events::V1IssuingAuthorizationCreatedEventNotification, - Events::V1IssuingAuthorizationRequestEventNotification.lookup_type => - Events::V1IssuingAuthorizationRequestEventNotification, - Events::V1IssuingAuthorizationUpdatedEventNotification.lookup_type => - Events::V1IssuingAuthorizationUpdatedEventNotification, - Events::V1IssuingCardCreatedEventNotification.lookup_type => - Events::V1IssuingCardCreatedEventNotification, - Events::V1IssuingCardUpdatedEventNotification.lookup_type => - Events::V1IssuingCardUpdatedEventNotification, - Events::V1IssuingCardholderCreatedEventNotification.lookup_type => - Events::V1IssuingCardholderCreatedEventNotification, - Events::V1IssuingCardholderUpdatedEventNotification.lookup_type => - Events::V1IssuingCardholderUpdatedEventNotification, - Events::V1IssuingDisputeClosedEventNotification.lookup_type => - Events::V1IssuingDisputeClosedEventNotification, - Events::V1IssuingDisputeCreatedEventNotification.lookup_type => - Events::V1IssuingDisputeCreatedEventNotification, - Events::V1IssuingDisputeFundsReinstatedEventNotification.lookup_type => - Events::V1IssuingDisputeFundsReinstatedEventNotification, - Events::V1IssuingDisputeFundsRescindedEventNotification.lookup_type => - Events::V1IssuingDisputeFundsRescindedEventNotification, - Events::V1IssuingDisputeSubmittedEventNotification.lookup_type => - Events::V1IssuingDisputeSubmittedEventNotification, - Events::V1IssuingDisputeUpdatedEventNotification.lookup_type => - Events::V1IssuingDisputeUpdatedEventNotification, - Events::V1IssuingPersonalizationDesignActivatedEventNotification.lookup_type => - Events::V1IssuingPersonalizationDesignActivatedEventNotification, - Events::V1IssuingPersonalizationDesignDeactivatedEventNotification.lookup_type => - Events::V1IssuingPersonalizationDesignDeactivatedEventNotification, - Events::V1IssuingPersonalizationDesignRejectedEventNotification.lookup_type => - Events::V1IssuingPersonalizationDesignRejectedEventNotification, - Events::V1IssuingPersonalizationDesignUpdatedEventNotification.lookup_type => - Events::V1IssuingPersonalizationDesignUpdatedEventNotification, - Events::V1IssuingTokenCreatedEventNotification.lookup_type => - Events::V1IssuingTokenCreatedEventNotification, - Events::V1IssuingTokenUpdatedEventNotification.lookup_type => - Events::V1IssuingTokenUpdatedEventNotification, - Events::V1IssuingTransactionCreatedEventNotification.lookup_type => - Events::V1IssuingTransactionCreatedEventNotification, - Events::V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.lookup_type => - Events::V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification, - Events::V1IssuingTransactionUpdatedEventNotification.lookup_type => - Events::V1IssuingTransactionUpdatedEventNotification, - Events::V1MandateUpdatedEventNotification.lookup_type => Events::V1MandateUpdatedEventNotification, - Events::V1PaymentIntentAmountCapturableUpdatedEventNotification.lookup_type => - Events::V1PaymentIntentAmountCapturableUpdatedEventNotification, - Events::V1PaymentIntentCanceledEventNotification.lookup_type => - Events::V1PaymentIntentCanceledEventNotification, - Events::V1PaymentIntentCreatedEventNotification.lookup_type => - Events::V1PaymentIntentCreatedEventNotification, - Events::V1PaymentIntentPartiallyFundedEventNotification.lookup_type => - Events::V1PaymentIntentPartiallyFundedEventNotification, - Events::V1PaymentIntentPaymentFailedEventNotification.lookup_type => - Events::V1PaymentIntentPaymentFailedEventNotification, - Events::V1PaymentIntentProcessingEventNotification.lookup_type => - Events::V1PaymentIntentProcessingEventNotification, - Events::V1PaymentIntentRequiresActionEventNotification.lookup_type => - Events::V1PaymentIntentRequiresActionEventNotification, - Events::V1PaymentIntentSucceededEventNotification.lookup_type => - Events::V1PaymentIntentSucceededEventNotification, - Events::V1PaymentLinkCreatedEventNotification.lookup_type => - Events::V1PaymentLinkCreatedEventNotification, - Events::V1PaymentLinkUpdatedEventNotification.lookup_type => - Events::V1PaymentLinkUpdatedEventNotification, - Events::V1PaymentMethodAttachedEventNotification.lookup_type => - Events::V1PaymentMethodAttachedEventNotification, - Events::V1PaymentMethodAutomaticallyUpdatedEventNotification.lookup_type => - Events::V1PaymentMethodAutomaticallyUpdatedEventNotification, - Events::V1PaymentMethodDetachedEventNotification.lookup_type => - Events::V1PaymentMethodDetachedEventNotification, - Events::V1PaymentMethodUpdatedEventNotification.lookup_type => - Events::V1PaymentMethodUpdatedEventNotification, - Events::V1PayoutCanceledEventNotification.lookup_type => Events::V1PayoutCanceledEventNotification, - Events::V1PayoutCreatedEventNotification.lookup_type => Events::V1PayoutCreatedEventNotification, - Events::V1PayoutFailedEventNotification.lookup_type => Events::V1PayoutFailedEventNotification, - Events::V1PayoutPaidEventNotification.lookup_type => Events::V1PayoutPaidEventNotification, - Events::V1PayoutReconciliationCompletedEventNotification.lookup_type => - Events::V1PayoutReconciliationCompletedEventNotification, - Events::V1PayoutUpdatedEventNotification.lookup_type => Events::V1PayoutUpdatedEventNotification, - Events::V1PersonCreatedEventNotification.lookup_type => Events::V1PersonCreatedEventNotification, - Events::V1PersonDeletedEventNotification.lookup_type => Events::V1PersonDeletedEventNotification, - Events::V1PersonUpdatedEventNotification.lookup_type => Events::V1PersonUpdatedEventNotification, - Events::V1PlanCreatedEventNotification.lookup_type => Events::V1PlanCreatedEventNotification, - Events::V1PlanDeletedEventNotification.lookup_type => Events::V1PlanDeletedEventNotification, - Events::V1PlanUpdatedEventNotification.lookup_type => Events::V1PlanUpdatedEventNotification, - Events::V1PriceCreatedEventNotification.lookup_type => Events::V1PriceCreatedEventNotification, - Events::V1PriceDeletedEventNotification.lookup_type => Events::V1PriceDeletedEventNotification, - Events::V1PriceUpdatedEventNotification.lookup_type => Events::V1PriceUpdatedEventNotification, - Events::V1ProductCreatedEventNotification.lookup_type => Events::V1ProductCreatedEventNotification, - Events::V1ProductDeletedEventNotification.lookup_type => Events::V1ProductDeletedEventNotification, - Events::V1ProductUpdatedEventNotification.lookup_type => Events::V1ProductUpdatedEventNotification, - Events::V1PromotionCodeCreatedEventNotification.lookup_type => - Events::V1PromotionCodeCreatedEventNotification, - Events::V1PromotionCodeUpdatedEventNotification.lookup_type => - Events::V1PromotionCodeUpdatedEventNotification, - Events::V1QuoteAcceptedEventNotification.lookup_type => Events::V1QuoteAcceptedEventNotification, - Events::V1QuoteCanceledEventNotification.lookup_type => Events::V1QuoteCanceledEventNotification, - Events::V1QuoteCreatedEventNotification.lookup_type => Events::V1QuoteCreatedEventNotification, - Events::V1QuoteFinalizedEventNotification.lookup_type => Events::V1QuoteFinalizedEventNotification, - Events::V1RadarEarlyFraudWarningCreatedEventNotification.lookup_type => - Events::V1RadarEarlyFraudWarningCreatedEventNotification, - Events::V1RadarEarlyFraudWarningUpdatedEventNotification.lookup_type => - Events::V1RadarEarlyFraudWarningUpdatedEventNotification, - Events::V1RefundCreatedEventNotification.lookup_type => Events::V1RefundCreatedEventNotification, - Events::V1RefundFailedEventNotification.lookup_type => Events::V1RefundFailedEventNotification, - Events::V1RefundUpdatedEventNotification.lookup_type => Events::V1RefundUpdatedEventNotification, - Events::V1ReviewClosedEventNotification.lookup_type => Events::V1ReviewClosedEventNotification, - Events::V1ReviewOpenedEventNotification.lookup_type => Events::V1ReviewOpenedEventNotification, - Events::V1SetupIntentCanceledEventNotification.lookup_type => - Events::V1SetupIntentCanceledEventNotification, - Events::V1SetupIntentCreatedEventNotification.lookup_type => - Events::V1SetupIntentCreatedEventNotification, - Events::V1SetupIntentRequiresActionEventNotification.lookup_type => - Events::V1SetupIntentRequiresActionEventNotification, - Events::V1SetupIntentSetupFailedEventNotification.lookup_type => - Events::V1SetupIntentSetupFailedEventNotification, - Events::V1SetupIntentSucceededEventNotification.lookup_type => - Events::V1SetupIntentSucceededEventNotification, - Events::V1SigmaScheduledQueryRunCreatedEventNotification.lookup_type => - Events::V1SigmaScheduledQueryRunCreatedEventNotification, - Events::V1SourceCanceledEventNotification.lookup_type => Events::V1SourceCanceledEventNotification, - Events::V1SourceChargeableEventNotification.lookup_type => - Events::V1SourceChargeableEventNotification, - Events::V1SourceFailedEventNotification.lookup_type => Events::V1SourceFailedEventNotification, - Events::V1SourceRefundAttributesRequiredEventNotification.lookup_type => - Events::V1SourceRefundAttributesRequiredEventNotification, - Events::V1SubscriptionScheduleAbortedEventNotification.lookup_type => - Events::V1SubscriptionScheduleAbortedEventNotification, - Events::V1SubscriptionScheduleCanceledEventNotification.lookup_type => - Events::V1SubscriptionScheduleCanceledEventNotification, - Events::V1SubscriptionScheduleCompletedEventNotification.lookup_type => - Events::V1SubscriptionScheduleCompletedEventNotification, - Events::V1SubscriptionScheduleCreatedEventNotification.lookup_type => - Events::V1SubscriptionScheduleCreatedEventNotification, - Events::V1SubscriptionScheduleExpiringEventNotification.lookup_type => - Events::V1SubscriptionScheduleExpiringEventNotification, - Events::V1SubscriptionScheduleReleasedEventNotification.lookup_type => - Events::V1SubscriptionScheduleReleasedEventNotification, - Events::V1SubscriptionScheduleUpdatedEventNotification.lookup_type => - Events::V1SubscriptionScheduleUpdatedEventNotification, - Events::V1TaxRateCreatedEventNotification.lookup_type => Events::V1TaxRateCreatedEventNotification, - Events::V1TaxRateUpdatedEventNotification.lookup_type => Events::V1TaxRateUpdatedEventNotification, - Events::V1TerminalReaderActionFailedEventNotification.lookup_type => - Events::V1TerminalReaderActionFailedEventNotification, - Events::V1TerminalReaderActionSucceededEventNotification.lookup_type => - Events::V1TerminalReaderActionSucceededEventNotification, - Events::V1TerminalReaderActionUpdatedEventNotification.lookup_type => - Events::V1TerminalReaderActionUpdatedEventNotification, - Events::V1TestHelpersTestClockAdvancingEventNotification.lookup_type => - Events::V1TestHelpersTestClockAdvancingEventNotification, - Events::V1TestHelpersTestClockCreatedEventNotification.lookup_type => - Events::V1TestHelpersTestClockCreatedEventNotification, - Events::V1TestHelpersTestClockDeletedEventNotification.lookup_type => - Events::V1TestHelpersTestClockDeletedEventNotification, - Events::V1TestHelpersTestClockInternalFailureEventNotification.lookup_type => - Events::V1TestHelpersTestClockInternalFailureEventNotification, - Events::V1TestHelpersTestClockReadyEventNotification.lookup_type => - Events::V1TestHelpersTestClockReadyEventNotification, - Events::V1TopupCanceledEventNotification.lookup_type => Events::V1TopupCanceledEventNotification, - Events::V1TopupCreatedEventNotification.lookup_type => Events::V1TopupCreatedEventNotification, - Events::V1TopupFailedEventNotification.lookup_type => Events::V1TopupFailedEventNotification, - Events::V1TopupReversedEventNotification.lookup_type => Events::V1TopupReversedEventNotification, - Events::V1TopupSucceededEventNotification.lookup_type => Events::V1TopupSucceededEventNotification, - Events::V1TransferCreatedEventNotification.lookup_type => - Events::V1TransferCreatedEventNotification, - Events::V1TransferReversedEventNotification.lookup_type => - Events::V1TransferReversedEventNotification, - Events::V1TransferUpdatedEventNotification.lookup_type => - Events::V1TransferUpdatedEventNotification, Events::V2BillingCadenceBilledEventNotification.lookup_type => Events::V2BillingCadenceBilledEventNotification, Events::V2BillingCadenceCanceledEventNotification.lookup_type => @@ -1050,6 +489,10 @@ def self.event_notification_types_to_classes Events::V2MoneyManagementTransactionCreatedEventNotification, Events::V2MoneyManagementTransactionUpdatedEventNotification.lookup_type => Events::V2MoneyManagementTransactionUpdatedEventNotification, + Events::V2PaymentsOffSessionPaymentAttemptFailedEventNotification.lookup_type => + Events::V2PaymentsOffSessionPaymentAttemptFailedEventNotification, + Events::V2PaymentsOffSessionPaymentAttemptStartedEventNotification.lookup_type => + Events::V2PaymentsOffSessionPaymentAttemptStartedEventNotification, Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification.lookup_type => Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification, Events::V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification.lookup_type => diff --git a/lib/stripe/events/v1_account_updated_event.rb b/lib/stripe/events/v1_account_updated_event.rb deleted file mode 100644 index 69081029a..000000000 --- a/lib/stripe/events/v1_account_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an account status or property has changed. - class V1AccountUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.account.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an account status or property has changed. - class V1AccountUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.account.updated" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_application_fee_created_event.rb b/lib/stripe/events/v1_application_fee_created_event.rb deleted file mode 100644 index c7c7e3fc7..000000000 --- a/lib/stripe/events/v1_application_fee_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an application fee is created on a charge. - class V1ApplicationFeeCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.application_fee.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an application fee is created on a charge. - class V1ApplicationFeeCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.application_fee.created" - end - - attr_reader :related_object - - # Retrieves the ApplicationFee related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_application_fee_refunded_event.rb b/lib/stripe/events/v1_application_fee_refunded_event.rb deleted file mode 100644 index 2e92410dd..000000000 --- a/lib/stripe/events/v1_application_fee_refunded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an application fee is refunded, whether from refunding a charge or from [refunding the application fee directly](https://docs.stripe.com/api#fee_refunds). This includes partial refunds. - class V1ApplicationFeeRefundedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.application_fee.refunded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an application fee is refunded, whether from refunding a charge or from [refunding the application fee directly](https://docs.stripe.com/api#fee_refunds). This includes partial refunds. - class V1ApplicationFeeRefundedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.application_fee.refunded" - end - - attr_reader :related_object - - # Retrieves the ApplicationFee related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_billing_portal_configuration_created_event.rb b/lib/stripe/events/v1_billing_portal_configuration_created_event.rb deleted file mode 100644 index 7e557a234..000000000 --- a/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a portal configuration is created. - class V1BillingPortalConfigurationCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.billing_portal.configuration.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a portal configuration is created. - class V1BillingPortalConfigurationCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.billing_portal.configuration.created" - end - - attr_reader :related_object - - # Retrieves the Configuration related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb b/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb deleted file mode 100644 index 382bd5f92..000000000 --- a/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a portal configuration is updated. - class V1BillingPortalConfigurationUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.billing_portal.configuration.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a portal configuration is updated. - class V1BillingPortalConfigurationUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.billing_portal.configuration.updated" - end - - attr_reader :related_object - - # Retrieves the Configuration related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_capability_updated_event.rb b/lib/stripe/events/v1_capability_updated_event.rb deleted file mode 100644 index a2c0c25bf..000000000 --- a/lib/stripe/events/v1_capability_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a capability has new requirements or a new status. - class V1CapabilityUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.capability.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a capability has new requirements or a new status. - class V1CapabilityUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.capability.updated" - end - - attr_reader :related_object - - # Retrieves the Capability related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_captured_event.rb b/lib/stripe/events/v1_charge_captured_event.rb deleted file mode 100644 index 6b55d9d51..000000000 --- a/lib/stripe/events/v1_charge_captured_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a previously uncaptured charge is captured. - class V1ChargeCapturedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.captured" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a previously uncaptured charge is captured. - class V1ChargeCapturedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.captured" - end - - attr_reader :related_object - - # Retrieves the Charge related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_dispute_closed_event.rb b/lib/stripe/events/v1_charge_dispute_closed_event.rb deleted file mode 100644 index 497356de0..000000000 --- a/lib/stripe/events/v1_charge_dispute_closed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a dispute is closed and the dispute status changes to `lost`, `warning_closed`, or `won`. - class V1ChargeDisputeClosedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.dispute.closed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a dispute is closed and the dispute status changes to `lost`, `warning_closed`, or `won`. - class V1ChargeDisputeClosedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.dispute.closed" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_dispute_created_event.rb b/lib/stripe/events/v1_charge_dispute_created_event.rb deleted file mode 100644 index f21f4c9e5..000000000 --- a/lib/stripe/events/v1_charge_dispute_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer disputes a charge with their bank. - class V1ChargeDisputeCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.dispute.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer disputes a charge with their bank. - class V1ChargeDisputeCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.dispute.created" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb b/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb deleted file mode 100644 index 194cf87d9..000000000 --- a/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when funds are reinstated to your account after a dispute is closed. This includes [partially refunded payments](https://docs.stripe.com/disputes#disputes-on-partially-refunded-payments). - class V1ChargeDisputeFundsReinstatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.dispute.funds_reinstated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when funds are reinstated to your account after a dispute is closed. This includes [partially refunded payments](https://docs.stripe.com/disputes#disputes-on-partially-refunded-payments). - class V1ChargeDisputeFundsReinstatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.dispute.funds_reinstated" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb b/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb deleted file mode 100644 index 2efa0c9dc..000000000 --- a/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when funds are removed from your account due to a dispute. - class V1ChargeDisputeFundsWithdrawnEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.dispute.funds_withdrawn" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when funds are removed from your account due to a dispute. - class V1ChargeDisputeFundsWithdrawnEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.dispute.funds_withdrawn" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_dispute_updated_event.rb b/lib/stripe/events/v1_charge_dispute_updated_event.rb deleted file mode 100644 index 36b55969e..000000000 --- a/lib/stripe/events/v1_charge_dispute_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when the dispute is updated (usually with evidence). - class V1ChargeDisputeUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.dispute.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when the dispute is updated (usually with evidence). - class V1ChargeDisputeUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.dispute.updated" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_expired_event.rb b/lib/stripe/events/v1_charge_expired_event.rb deleted file mode 100644 index e49cba99d..000000000 --- a/lib/stripe/events/v1_charge_expired_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an uncaptured charge expires. - class V1ChargeExpiredEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.expired" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an uncaptured charge expires. - class V1ChargeExpiredEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.expired" - end - - attr_reader :related_object - - # Retrieves the Charge related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_failed_event.rb b/lib/stripe/events/v1_charge_failed_event.rb deleted file mode 100644 index 9912fa76e..000000000 --- a/lib/stripe/events/v1_charge_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a failed charge attempt occurs. - class V1ChargeFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a failed charge attempt occurs. - class V1ChargeFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.failed" - end - - attr_reader :related_object - - # Retrieves the Charge related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_pending_event.rb b/lib/stripe/events/v1_charge_pending_event.rb deleted file mode 100644 index d45008a90..000000000 --- a/lib/stripe/events/v1_charge_pending_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a pending charge is created. - class V1ChargePendingEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.pending" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a pending charge is created. - class V1ChargePendingEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.pending" - end - - attr_reader :related_object - - # Retrieves the Charge related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_refund_updated_event.rb b/lib/stripe/events/v1_charge_refund_updated_event.rb deleted file mode 100644 index f677daea9..000000000 --- a/lib/stripe/events/v1_charge_refund_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a refund is updated on selected payment methods. For updates on all refunds, listen to `refund.updated` instead. - class V1ChargeRefundUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.refund.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a refund is updated on selected payment methods. For updates on all refunds, listen to `refund.updated` instead. - class V1ChargeRefundUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.refund.updated" - end - - attr_reader :related_object - - # Retrieves the Refund related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_refunded_event.rb b/lib/stripe/events/v1_charge_refunded_event.rb deleted file mode 100644 index cfc433c2a..000000000 --- a/lib/stripe/events/v1_charge_refunded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a charge is refunded, including partial refunds. Listen to `refund.created` for information about the refund. - class V1ChargeRefundedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.refunded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a charge is refunded, including partial refunds. Listen to `refund.created` for information about the refund. - class V1ChargeRefundedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.refunded" - end - - attr_reader :related_object - - # Retrieves the Charge related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_succeeded_event.rb b/lib/stripe/events/v1_charge_succeeded_event.rb deleted file mode 100644 index 7021b90f9..000000000 --- a/lib/stripe/events/v1_charge_succeeded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a charge is successful. - class V1ChargeSucceededEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.succeeded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a charge is successful. - class V1ChargeSucceededEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.succeeded" - end - - attr_reader :related_object - - # Retrieves the Charge related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_charge_updated_event.rb b/lib/stripe/events/v1_charge_updated_event.rb deleted file mode 100644 index 89aeccf77..000000000 --- a/lib/stripe/events/v1_charge_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a charge description or metadata is updated, or upon an asynchronous capture. - class V1ChargeUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.charge.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a charge description or metadata is updated, or upon an asynchronous capture. - class V1ChargeUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.charge.updated" - end - - attr_reader :related_object - - # Retrieves the Charge related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb b/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb deleted file mode 100644 index 8340c05db..000000000 --- a/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a payment intent using a delayed payment method fails. - class V1CheckoutSessionAsyncPaymentFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.checkout.session.async_payment_failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a payment intent using a delayed payment method fails. - class V1CheckoutSessionAsyncPaymentFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.checkout.session.async_payment_failed" - end - - attr_reader :related_object - - # Retrieves the Session related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb b/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb deleted file mode 100644 index 073afd2ca..000000000 --- a/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a payment intent using a delayed payment method finally succeeds. - class V1CheckoutSessionAsyncPaymentSucceededEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.checkout.session.async_payment_succeeded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a payment intent using a delayed payment method finally succeeds. - class V1CheckoutSessionAsyncPaymentSucceededEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.checkout.session.async_payment_succeeded" - end - - attr_reader :related_object - - # Retrieves the Session related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_checkout_session_completed_event.rb b/lib/stripe/events/v1_checkout_session_completed_event.rb deleted file mode 100644 index a5e1e422e..000000000 --- a/lib/stripe/events/v1_checkout_session_completed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Checkout Session has been successfully completed. - class V1CheckoutSessionCompletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.checkout.session.completed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Checkout Session has been successfully completed. - class V1CheckoutSessionCompletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.checkout.session.completed" - end - - attr_reader :related_object - - # Retrieves the Session related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_checkout_session_expired_event.rb b/lib/stripe/events/v1_checkout_session_expired_event.rb deleted file mode 100644 index f17bed3f4..000000000 --- a/lib/stripe/events/v1_checkout_session_expired_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Checkout Session is expired. - class V1CheckoutSessionExpiredEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.checkout.session.expired" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Checkout Session is expired. - class V1CheckoutSessionExpiredEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.checkout.session.expired" - end - - attr_reader :related_object - - # Retrieves the Session related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_climate_order_canceled_event.rb b/lib/stripe/events/v1_climate_order_canceled_event.rb deleted file mode 100644 index fb85cf03c..000000000 --- a/lib/stripe/events/v1_climate_order_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Climate order is canceled. - class V1ClimateOrderCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.climate.order.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Climate order is canceled. - class V1ClimateOrderCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.climate.order.canceled" - end - - attr_reader :related_object - - # Retrieves the Order related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_climate_order_created_event.rb b/lib/stripe/events/v1_climate_order_created_event.rb deleted file mode 100644 index 9fbc8d627..000000000 --- a/lib/stripe/events/v1_climate_order_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Climate order is created. - class V1ClimateOrderCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.climate.order.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Climate order is created. - class V1ClimateOrderCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.climate.order.created" - end - - attr_reader :related_object - - # Retrieves the Order related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_climate_order_delayed_event.rb b/lib/stripe/events/v1_climate_order_delayed_event.rb deleted file mode 100644 index 0c7b1590b..000000000 --- a/lib/stripe/events/v1_climate_order_delayed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Climate order is delayed. - class V1ClimateOrderDelayedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.climate.order.delayed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Climate order is delayed. - class V1ClimateOrderDelayedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.climate.order.delayed" - end - - attr_reader :related_object - - # Retrieves the Order related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_climate_order_delivered_event.rb b/lib/stripe/events/v1_climate_order_delivered_event.rb deleted file mode 100644 index c5d53a15d..000000000 --- a/lib/stripe/events/v1_climate_order_delivered_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Climate order is delivered. - class V1ClimateOrderDeliveredEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.climate.order.delivered" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Climate order is delivered. - class V1ClimateOrderDeliveredEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.climate.order.delivered" - end - - attr_reader :related_object - - # Retrieves the Order related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_climate_order_product_substituted_event.rb b/lib/stripe/events/v1_climate_order_product_substituted_event.rb deleted file mode 100644 index eaeb2505b..000000000 --- a/lib/stripe/events/v1_climate_order_product_substituted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Climate order's product is substituted for another. - class V1ClimateOrderProductSubstitutedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.climate.order.product_substituted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Climate order's product is substituted for another. - class V1ClimateOrderProductSubstitutedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.climate.order.product_substituted" - end - - attr_reader :related_object - - # Retrieves the Order related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_climate_product_created_event.rb b/lib/stripe/events/v1_climate_product_created_event.rb deleted file mode 100644 index fcc5bbf61..000000000 --- a/lib/stripe/events/v1_climate_product_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Climate product is created. - class V1ClimateProductCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.climate.product.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Climate product is created. - class V1ClimateProductCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.climate.product.created" - end - - attr_reader :related_object - - # Retrieves the Product related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_climate_product_pricing_updated_event.rb b/lib/stripe/events/v1_climate_product_pricing_updated_event.rb deleted file mode 100644 index 53d479340..000000000 --- a/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Climate product is updated. - class V1ClimateProductPricingUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.climate.product.pricing_updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Climate product is updated. - class V1ClimateProductPricingUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.climate.product.pricing_updated" - end - - attr_reader :related_object - - # Retrieves the Product related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_coupon_created_event.rb b/lib/stripe/events/v1_coupon_created_event.rb deleted file mode 100644 index 4c7176c29..000000000 --- a/lib/stripe/events/v1_coupon_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a coupon is created. - class V1CouponCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.coupon.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a coupon is created. - class V1CouponCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.coupon.created" - end - - attr_reader :related_object - - # Retrieves the Coupon related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_coupon_deleted_event.rb b/lib/stripe/events/v1_coupon_deleted_event.rb deleted file mode 100644 index e6c7ffe28..000000000 --- a/lib/stripe/events/v1_coupon_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a coupon is deleted. - class V1CouponDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.coupon.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a coupon is deleted. - class V1CouponDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.coupon.deleted" - end - - attr_reader :related_object - - # Retrieves the Coupon related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_coupon_updated_event.rb b/lib/stripe/events/v1_coupon_updated_event.rb deleted file mode 100644 index bdcf95f5d..000000000 --- a/lib/stripe/events/v1_coupon_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a coupon is updated. - class V1CouponUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.coupon.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a coupon is updated. - class V1CouponUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.coupon.updated" - end - - attr_reader :related_object - - # Retrieves the Coupon related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_credit_note_created_event.rb b/lib/stripe/events/v1_credit_note_created_event.rb deleted file mode 100644 index d4083d834..000000000 --- a/lib/stripe/events/v1_credit_note_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a credit note is created. - class V1CreditNoteCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.credit_note.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a credit note is created. - class V1CreditNoteCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.credit_note.created" - end - - attr_reader :related_object - - # Retrieves the CreditNote related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_credit_note_updated_event.rb b/lib/stripe/events/v1_credit_note_updated_event.rb deleted file mode 100644 index 158c44a81..000000000 --- a/lib/stripe/events/v1_credit_note_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a credit note is updated. - class V1CreditNoteUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.credit_note.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a credit note is updated. - class V1CreditNoteUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.credit_note.updated" - end - - attr_reader :related_object - - # Retrieves the CreditNote related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_credit_note_voided_event.rb b/lib/stripe/events/v1_credit_note_voided_event.rb deleted file mode 100644 index d122be4d2..000000000 --- a/lib/stripe/events/v1_credit_note_voided_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a credit note is voided. - class V1CreditNoteVoidedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.credit_note.voided" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a credit note is voided. - class V1CreditNoteVoidedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.credit_note.voided" - end - - attr_reader :related_object - - # Retrieves the CreditNote related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_created_event.rb b/lib/stripe/events/v1_customer_created_event.rb deleted file mode 100644 index 0a78a6b3e..000000000 --- a/lib/stripe/events/v1_customer_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new customer is created. - class V1CustomerCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new customer is created. - class V1CustomerCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.created" - end - - attr_reader :related_object - - # Retrieves the Customer related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_deleted_event.rb b/lib/stripe/events/v1_customer_deleted_event.rb deleted file mode 100644 index 0ca0cf1a0..000000000 --- a/lib/stripe/events/v1_customer_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer is deleted. - class V1CustomerDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer is deleted. - class V1CustomerDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.deleted" - end - - attr_reader :related_object - - # Retrieves the Customer related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_created_event.rb b/lib/stripe/events/v1_customer_subscription_created_event.rb deleted file mode 100644 index c92525dbb..000000000 --- a/lib/stripe/events/v1_customer_subscription_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer is signed up for a new plan. - class V1CustomerSubscriptionCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer is signed up for a new plan. - class V1CustomerSubscriptionCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.created" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_deleted_event.rb b/lib/stripe/events/v1_customer_subscription_deleted_event.rb deleted file mode 100644 index c52d60f21..000000000 --- a/lib/stripe/events/v1_customer_subscription_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer's subscription ends. - class V1CustomerSubscriptionDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer's subscription ends. - class V1CustomerSubscriptionDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.deleted" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_paused_event.rb b/lib/stripe/events/v1_customer_subscription_paused_event.rb deleted file mode 100644 index b1ce1716f..000000000 --- a/lib/stripe/events/v1_customer_subscription_paused_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer's subscription is paused. Only applies when subscriptions enter `status=paused`, not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is paused. - class V1CustomerSubscriptionPausedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.paused" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer's subscription is paused. Only applies when subscriptions enter `status=paused`, not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is paused. - class V1CustomerSubscriptionPausedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.paused" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb b/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb deleted file mode 100644 index 326e1868a..000000000 --- a/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer's subscription's pending update is applied, and the subscription is updated. - class V1CustomerSubscriptionPendingUpdateAppliedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.pending_update_applied" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer's subscription's pending update is applied, and the subscription is updated. - class V1CustomerSubscriptionPendingUpdateAppliedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.pending_update_applied" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb b/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb deleted file mode 100644 index 451c9a94d..000000000 --- a/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer's subscription's pending update expires before the related invoice is paid. - class V1CustomerSubscriptionPendingUpdateExpiredEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.pending_update_expired" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer's subscription's pending update expires before the related invoice is paid. - class V1CustomerSubscriptionPendingUpdateExpiredEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.pending_update_expired" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_resumed_event.rb b/lib/stripe/events/v1_customer_subscription_resumed_event.rb deleted file mode 100644 index 98c036e07..000000000 --- a/lib/stripe/events/v1_customer_subscription_resumed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer's subscription is no longer paused. Only applies when a `status=paused` subscription is [resumed](https://docs.stripe.com/api/subscriptions/resume), not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is resumed. - class V1CustomerSubscriptionResumedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.resumed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer's subscription is no longer paused. Only applies when a `status=paused` subscription is [resumed](https://docs.stripe.com/api/subscriptions/resume), not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is resumed. - class V1CustomerSubscriptionResumedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.resumed" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb b/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb deleted file mode 100644 index e91949dfb..000000000 --- a/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs three days before a subscription's trial period is scheduled to end, or when a trial is ended immediately (using `trial_end=now`). - class V1CustomerSubscriptionTrialWillEndEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.trial_will_end" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs three days before a subscription's trial period is scheduled to end, or when a trial is ended immediately (using `trial_end=now`). - class V1CustomerSubscriptionTrialWillEndEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.trial_will_end" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_subscription_updated_event.rb b/lib/stripe/events/v1_customer_subscription_updated_event.rb deleted file mode 100644 index 5e43e8a43..000000000 --- a/lib/stripe/events/v1_customer_subscription_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a subscription changes (e.g., switching from one plan to another, or changing the status from trial to active). - class V1CustomerSubscriptionUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.subscription.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a subscription changes (e.g., switching from one plan to another, or changing the status from trial to active). - class V1CustomerSubscriptionUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.subscription.updated" - end - - attr_reader :related_object - - # Retrieves the Subscription related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_tax_id_created_event.rb b/lib/stripe/events/v1_customer_tax_id_created_event.rb deleted file mode 100644 index 04eef6a23..000000000 --- a/lib/stripe/events/v1_customer_tax_id_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a tax ID is created for a customer. - class V1CustomerTaxIdCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.tax_id.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a tax ID is created for a customer. - class V1CustomerTaxIdCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.tax_id.created" - end - - attr_reader :related_object - - # Retrieves the TaxId related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_tax_id_deleted_event.rb b/lib/stripe/events/v1_customer_tax_id_deleted_event.rb deleted file mode 100644 index 1bfdd7771..000000000 --- a/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a tax ID is deleted from a customer. - class V1CustomerTaxIdDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.tax_id.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a tax ID is deleted from a customer. - class V1CustomerTaxIdDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.tax_id.deleted" - end - - attr_reader :related_object - - # Retrieves the TaxId related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_tax_id_updated_event.rb b/lib/stripe/events/v1_customer_tax_id_updated_event.rb deleted file mode 100644 index 4aa7d0525..000000000 --- a/lib/stripe/events/v1_customer_tax_id_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a customer's tax ID is updated. - class V1CustomerTaxIdUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.tax_id.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a customer's tax ID is updated. - class V1CustomerTaxIdUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.tax_id.updated" - end - - attr_reader :related_object - - # Retrieves the TaxId related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_customer_updated_event.rb b/lib/stripe/events/v1_customer_updated_event.rb deleted file mode 100644 index df88c8dae..000000000 --- a/lib/stripe/events/v1_customer_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever any property of a customer changes. - class V1CustomerUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.customer.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever any property of a customer changes. - class V1CustomerUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.customer.updated" - end - - attr_reader :related_object - - # Retrieves the Customer related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_file_created_event.rb b/lib/stripe/events/v1_file_created_event.rb deleted file mode 100644 index 192e3a968..000000000 --- a/lib/stripe/events/v1_file_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new Stripe-generated file is available for your account. - class V1FileCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.file.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new Stripe-generated file is available for your account. - class V1FileCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.file.created" - end - - attr_reader :related_object - - # Retrieves the File related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_financial_connections_account_created_event.rb b/lib/stripe/events/v1_financial_connections_account_created_event.rb deleted file mode 100644 index ad2bb76a3..000000000 --- a/lib/stripe/events/v1_financial_connections_account_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a new Financial Connections account is created. - class V1FinancialConnectionsAccountCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.financial_connections.account.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a new Financial Connections account is created. - class V1FinancialConnectionsAccountCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.financial_connections.account.created" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb b/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb deleted file mode 100644 index 05b1f00d0..000000000 --- a/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Financial Connections account's status is updated from `active` to `inactive`. - class V1FinancialConnectionsAccountDeactivatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.financial_connections.account.deactivated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Financial Connections account's status is updated from `active` to `inactive`. - class V1FinancialConnectionsAccountDeactivatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.financial_connections.account.deactivated" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb b/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb deleted file mode 100644 index dd9e9e2d3..000000000 --- a/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Financial Connections account is disconnected. - class V1FinancialConnectionsAccountDisconnectedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.financial_connections.account.disconnected" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Financial Connections account is disconnected. - class V1FinancialConnectionsAccountDisconnectedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.financial_connections.account.disconnected" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb b/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb deleted file mode 100644 index 89f848cf4..000000000 --- a/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a Financial Connections account's status is updated from `inactive` to `active`. - class V1FinancialConnectionsAccountReactivatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.financial_connections.account.reactivated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a Financial Connections account's status is updated from `inactive` to `active`. - class V1FinancialConnectionsAccountReactivatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.financial_connections.account.reactivated" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb b/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb deleted file mode 100644 index 8f509c50b..000000000 --- a/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when an Account's `balance_refresh` status transitions from `pending` to either `succeeded` or `failed`. - class V1FinancialConnectionsAccountRefreshedBalanceEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.financial_connections.account.refreshed_balance" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when an Account's `balance_refresh` status transitions from `pending` to either `succeeded` or `failed`. - class V1FinancialConnectionsAccountRefreshedBalanceEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.financial_connections.account.refreshed_balance" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb b/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb deleted file mode 100644 index a51f09c6c..000000000 --- a/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when an Account's `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`. - class V1FinancialConnectionsAccountRefreshedOwnershipEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.financial_connections.account.refreshed_ownership" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when an Account's `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`. - class V1FinancialConnectionsAccountRefreshedOwnershipEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.financial_connections.account.refreshed_ownership" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb b/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb deleted file mode 100644 index aea23db1f..000000000 --- a/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when an Account's `transaction_refresh` status transitions from `pending` to either `succeeded` or `failed`. - class V1FinancialConnectionsAccountRefreshedTransactionsEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.financial_connections.account.refreshed_transactions" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when an Account's `transaction_refresh` status transitions from `pending` to either `succeeded` or `failed`. - class V1FinancialConnectionsAccountRefreshedTransactionsEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.financial_connections.account.refreshed_transactions" - end - - attr_reader :related_object - - # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_identity_verification_session_canceled_event.rb b/lib/stripe/events/v1_identity_verification_session_canceled_event.rb deleted file mode 100644 index 95c279417..000000000 --- a/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a VerificationSession is canceled. - class V1IdentityVerificationSessionCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.identity.verification_session.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a VerificationSession is canceled. - class V1IdentityVerificationSessionCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.identity.verification_session.canceled" - end - - attr_reader :related_object - - # Retrieves the VerificationSession related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_identity_verification_session_created_event.rb b/lib/stripe/events/v1_identity_verification_session_created_event.rb deleted file mode 100644 index 356384065..000000000 --- a/lib/stripe/events/v1_identity_verification_session_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a VerificationSession is created. - class V1IdentityVerificationSessionCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.identity.verification_session.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a VerificationSession is created. - class V1IdentityVerificationSessionCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.identity.verification_session.created" - end - - attr_reader :related_object - - # Retrieves the VerificationSession related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_identity_verification_session_processing_event.rb b/lib/stripe/events/v1_identity_verification_session_processing_event.rb deleted file mode 100644 index 982090ed6..000000000 --- a/lib/stripe/events/v1_identity_verification_session_processing_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a VerificationSession transitions to processing. - class V1IdentityVerificationSessionProcessingEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.identity.verification_session.processing" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a VerificationSession transitions to processing. - class V1IdentityVerificationSessionProcessingEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.identity.verification_session.processing" - end - - attr_reader :related_object - - # Retrieves the VerificationSession related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_identity_verification_session_redacted_event.rb b/lib/stripe/events/v1_identity_verification_session_redacted_event.rb deleted file mode 100644 index 450c3f0eb..000000000 --- a/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a VerificationSession is redacted. - class V1IdentityVerificationSessionRedactedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.identity.verification_session.redacted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a VerificationSession is redacted. - class V1IdentityVerificationSessionRedactedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.identity.verification_session.redacted" - end - - attr_reader :related_object - - # Retrieves the VerificationSession related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb b/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb deleted file mode 100644 index 5286b6adc..000000000 --- a/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a VerificationSession transitions to require user input. - class V1IdentityVerificationSessionRequiresInputEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.identity.verification_session.requires_input" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a VerificationSession transitions to require user input. - class V1IdentityVerificationSessionRequiresInputEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.identity.verification_session.requires_input" - end - - attr_reader :related_object - - # Retrieves the VerificationSession related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_identity_verification_session_verified_event.rb b/lib/stripe/events/v1_identity_verification_session_verified_event.rb deleted file mode 100644 index c1c8e7b23..000000000 --- a/lib/stripe/events/v1_identity_verification_session_verified_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a VerificationSession transitions to verified. - class V1IdentityVerificationSessionVerifiedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.identity.verification_session.verified" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a VerificationSession transitions to verified. - class V1IdentityVerificationSessionVerifiedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.identity.verification_session.verified" - end - - attr_reader :related_object - - # Retrieves the VerificationSession related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_created_event.rb b/lib/stripe/events/v1_invoice_created_event.rb deleted file mode 100644 index 21ccc8105..000000000 --- a/lib/stripe/events/v1_invoice_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new invoice is created. To learn how webhooks can be used with this event, and how they can affect it, see [Using Webhooks with Subscriptions](https://docs.stripe.com/subscriptions/webhooks). - class V1InvoiceCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new invoice is created. To learn how webhooks can be used with this event, and how they can affect it, see [Using Webhooks with Subscriptions](https://docs.stripe.com/subscriptions/webhooks). - class V1InvoiceCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.created" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_deleted_event.rb b/lib/stripe/events/v1_invoice_deleted_event.rb deleted file mode 100644 index a2bce9074..000000000 --- a/lib/stripe/events/v1_invoice_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a draft invoice is deleted. Note: This event is not sent for [invoice previews](https://docs.stripe.com/api/invoices/create_preview). - class V1InvoiceDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a draft invoice is deleted. Note: This event is not sent for [invoice previews](https://docs.stripe.com/api/invoices/create_preview). - class V1InvoiceDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.deleted" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_finalization_failed_event.rb b/lib/stripe/events/v1_invoice_finalization_failed_event.rb deleted file mode 100644 index 18e700710..000000000 --- a/lib/stripe/events/v1_invoice_finalization_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a draft invoice cannot be finalized. See the invoice's [last finalization error](https://docs.stripe.com/api/invoices/object#invoice_object-last_finalization_error) for details. - class V1InvoiceFinalizationFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.finalization_failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a draft invoice cannot be finalized. See the invoice's [last finalization error](https://docs.stripe.com/api/invoices/object#invoice_object-last_finalization_error) for details. - class V1InvoiceFinalizationFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.finalization_failed" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_finalized_event.rb b/lib/stripe/events/v1_invoice_finalized_event.rb deleted file mode 100644 index f09e4f0f6..000000000 --- a/lib/stripe/events/v1_invoice_finalized_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a draft invoice is finalized and updated to be an open invoice. - class V1InvoiceFinalizedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.finalized" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a draft invoice is finalized and updated to be an open invoice. - class V1InvoiceFinalizedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.finalized" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb b/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb deleted file mode 100644 index 1a6331eb7..000000000 --- a/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice is marked uncollectible. - class V1InvoiceMarkedUncollectibleEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.marked_uncollectible" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice is marked uncollectible. - class V1InvoiceMarkedUncollectibleEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.marked_uncollectible" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_overdue_event.rb b/lib/stripe/events/v1_invoice_overdue_event.rb deleted file mode 100644 index a31adb806..000000000 --- a/lib/stripe/events/v1_invoice_overdue_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs X number of days after an invoice becomes due—where X is determined by Automations. - class V1InvoiceOverdueEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.overdue" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs X number of days after an invoice becomes due—where X is determined by Automations. - class V1InvoiceOverdueEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.overdue" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_overpaid_event.rb b/lib/stripe/events/v1_invoice_overpaid_event.rb deleted file mode 100644 index 033df6ffe..000000000 --- a/lib/stripe/events/v1_invoice_overpaid_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when an invoice transitions to paid with a non-zero amount_overpaid. - class V1InvoiceOverpaidEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.overpaid" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when an invoice transitions to paid with a non-zero amount_overpaid. - class V1InvoiceOverpaidEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.overpaid" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_paid_event.rb b/lib/stripe/events/v1_invoice_paid_event.rb deleted file mode 100644 index 335cc31c2..000000000 --- a/lib/stripe/events/v1_invoice_paid_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band. - class V1InvoicePaidEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.paid" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band. - class V1InvoicePaidEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.paid" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_payment_action_required_event.rb b/lib/stripe/events/v1_invoice_payment_action_required_event.rb deleted file mode 100644 index 0688b018f..000000000 --- a/lib/stripe/events/v1_invoice_payment_action_required_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice payment attempt requires further user action to complete. - class V1InvoicePaymentActionRequiredEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.payment_action_required" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice payment attempt requires further user action to complete. - class V1InvoicePaymentActionRequiredEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.payment_action_required" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_payment_failed_event.rb b/lib/stripe/events/v1_invoice_payment_failed_event.rb deleted file mode 100644 index 4f87ae903..000000000 --- a/lib/stripe/events/v1_invoice_payment_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice payment attempt fails, due to either a declined payment, including soft decline, or to the lack of a stored payment method. - class V1InvoicePaymentFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.payment_failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice payment attempt fails, due to either a declined payment, including soft decline, or to the lack of a stored payment method. - class V1InvoicePaymentFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.payment_failed" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_payment_paid_event.rb b/lib/stripe/events/v1_invoice_payment_paid_event.rb deleted file mode 100644 index f33a94316..000000000 --- a/lib/stripe/events/v1_invoice_payment_paid_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when an InvoicePayment is successfully paid. - class V1InvoicePaymentPaidEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice_payment.paid" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when an InvoicePayment is successfully paid. - class V1InvoicePaymentPaidEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice_payment.paid" - end - - attr_reader :related_object - - # Retrieves the InvoicePayment related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_payment_succeeded_event.rb b/lib/stripe/events/v1_invoice_payment_succeeded_event.rb deleted file mode 100644 index 9cd03294e..000000000 --- a/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice payment attempt succeeds. - class V1InvoicePaymentSucceededEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.payment_succeeded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice payment attempt succeeds. - class V1InvoicePaymentSucceededEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.payment_succeeded" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_sent_event.rb b/lib/stripe/events/v1_invoice_sent_event.rb deleted file mode 100644 index edef8e274..000000000 --- a/lib/stripe/events/v1_invoice_sent_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice email is sent out. - class V1InvoiceSentEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.sent" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice email is sent out. - class V1InvoiceSentEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.sent" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_upcoming_event.rb b/lib/stripe/events/v1_invoice_upcoming_event.rb deleted file mode 100644 index 20fb1d2f0..000000000 --- a/lib/stripe/events/v1_invoice_upcoming_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs X number of days before a subscription is scheduled to create an invoice that is automatically charged—where X is determined by your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). Note: The received `Invoice` object will not have an invoice ID. - class V1InvoiceUpcomingEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.upcoming" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs X number of days before a subscription is scheduled to create an invoice that is automatically charged—where X is determined by your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). Note: The received `Invoice` object will not have an invoice ID. - class V1InvoiceUpcomingEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.upcoming" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_updated_event.rb b/lib/stripe/events/v1_invoice_updated_event.rb deleted file mode 100644 index a959e0882..000000000 --- a/lib/stripe/events/v1_invoice_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice changes (e.g., the invoice amount). - class V1InvoiceUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice changes (e.g., the invoice amount). - class V1InvoiceUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.updated" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_voided_event.rb b/lib/stripe/events/v1_invoice_voided_event.rb deleted file mode 100644 index 99f1bc410..000000000 --- a/lib/stripe/events/v1_invoice_voided_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice is voided. - class V1InvoiceVoidedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.voided" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice is voided. - class V1InvoiceVoidedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.voided" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoice_will_be_due_event.rb b/lib/stripe/events/v1_invoice_will_be_due_event.rb deleted file mode 100644 index d938f5ebb..000000000 --- a/lib/stripe/events/v1_invoice_will_be_due_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs X number of days before an invoice becomes due—where X is determined by Automations. - class V1InvoiceWillBeDueEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoice.will_be_due" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs X number of days before an invoice becomes due—where X is determined by Automations. - class V1InvoiceWillBeDueEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoice.will_be_due" - end - - attr_reader :related_object - - # Retrieves the Invoice related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoiceitem_created_event.rb b/lib/stripe/events/v1_invoiceitem_created_event.rb deleted file mode 100644 index 5d47a9371..000000000 --- a/lib/stripe/events/v1_invoiceitem_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice item is created. - class V1InvoiceitemCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoiceitem.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice item is created. - class V1InvoiceitemCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoiceitem.created" - end - - attr_reader :related_object - - # Retrieves the InvoiceItem related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_invoiceitem_deleted_event.rb b/lib/stripe/events/v1_invoiceitem_deleted_event.rb deleted file mode 100644 index 8facdde5b..000000000 --- a/lib/stripe/events/v1_invoiceitem_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an invoice item is deleted. - class V1InvoiceitemDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.invoiceitem.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an invoice item is deleted. - class V1InvoiceitemDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.invoiceitem.deleted" - end - - attr_reader :related_object - - # Retrieves the InvoiceItem related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_authorization_created_event.rb b/lib/stripe/events/v1_issuing_authorization_created_event.rb deleted file mode 100644 index af3965016..000000000 --- a/lib/stripe/events/v1_issuing_authorization_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an authorization is created. - class V1IssuingAuthorizationCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_authorization.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an authorization is created. - class V1IssuingAuthorizationCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_authorization.created" - end - - attr_reader :related_object - - # Retrieves the Authorization related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_authorization_request_event.rb b/lib/stripe/events/v1_issuing_authorization_request_event.rb deleted file mode 100644 index 7ce88ef44..000000000 --- a/lib/stripe/events/v1_issuing_authorization_request_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Represents a synchronous request for authorization, see [Using your integration to handle authorization requests](https://docs.stripe.com/issuing/purchases/authorizations#authorization-handling). - class V1IssuingAuthorizationRequestEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_authorization.request" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Represents a synchronous request for authorization, see [Using your integration to handle authorization requests](https://docs.stripe.com/issuing/purchases/authorizations#authorization-handling). - class V1IssuingAuthorizationRequestEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_authorization.request" - end - - attr_reader :related_object - - # Retrieves the Authorization related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_authorization_updated_event.rb b/lib/stripe/events/v1_issuing_authorization_updated_event.rb deleted file mode 100644 index 3f7d39659..000000000 --- a/lib/stripe/events/v1_issuing_authorization_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an authorization is updated. - class V1IssuingAuthorizationUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_authorization.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an authorization is updated. - class V1IssuingAuthorizationUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_authorization.updated" - end - - attr_reader :related_object - - # Retrieves the Authorization related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_card_created_event.rb b/lib/stripe/events/v1_issuing_card_created_event.rb deleted file mode 100644 index 0207867ba..000000000 --- a/lib/stripe/events/v1_issuing_card_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a card is created. - class V1IssuingCardCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_card.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a card is created. - class V1IssuingCardCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_card.created" - end - - attr_reader :related_object - - # Retrieves the Card related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_card_updated_event.rb b/lib/stripe/events/v1_issuing_card_updated_event.rb deleted file mode 100644 index 437d43e12..000000000 --- a/lib/stripe/events/v1_issuing_card_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a card is updated. - class V1IssuingCardUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_card.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a card is updated. - class V1IssuingCardUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_card.updated" - end - - attr_reader :related_object - - # Retrieves the Card related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_cardholder_created_event.rb b/lib/stripe/events/v1_issuing_cardholder_created_event.rb deleted file mode 100644 index aeae8d39e..000000000 --- a/lib/stripe/events/v1_issuing_cardholder_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a cardholder is created. - class V1IssuingCardholderCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_cardholder.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a cardholder is created. - class V1IssuingCardholderCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_cardholder.created" - end - - attr_reader :related_object - - # Retrieves the Cardholder related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_cardholder_updated_event.rb b/lib/stripe/events/v1_issuing_cardholder_updated_event.rb deleted file mode 100644 index fd7dadeb3..000000000 --- a/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a cardholder is updated. - class V1IssuingCardholderUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_cardholder.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a cardholder is updated. - class V1IssuingCardholderUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_cardholder.updated" - end - - attr_reader :related_object - - # Retrieves the Cardholder related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_dispute_closed_event.rb b/lib/stripe/events/v1_issuing_dispute_closed_event.rb deleted file mode 100644 index 11485333d..000000000 --- a/lib/stripe/events/v1_issuing_dispute_closed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a dispute is won, lost or expired. - class V1IssuingDisputeClosedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_dispute.closed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a dispute is won, lost or expired. - class V1IssuingDisputeClosedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_dispute.closed" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_dispute_created_event.rb b/lib/stripe/events/v1_issuing_dispute_created_event.rb deleted file mode 100644 index 641a81d46..000000000 --- a/lib/stripe/events/v1_issuing_dispute_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a dispute is created. - class V1IssuingDisputeCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_dispute.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a dispute is created. - class V1IssuingDisputeCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_dispute.created" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb b/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb deleted file mode 100644 index f09279056..000000000 --- a/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever funds are reinstated to your account for an Issuing dispute. - class V1IssuingDisputeFundsReinstatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_dispute.funds_reinstated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever funds are reinstated to your account for an Issuing dispute. - class V1IssuingDisputeFundsReinstatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_dispute.funds_reinstated" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb b/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb deleted file mode 100644 index 6a384458b..000000000 --- a/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever funds are deducted from your account for an Issuing dispute. - class V1IssuingDisputeFundsRescindedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_dispute.funds_rescinded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever funds are deducted from your account for an Issuing dispute. - class V1IssuingDisputeFundsRescindedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_dispute.funds_rescinded" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_dispute_submitted_event.rb b/lib/stripe/events/v1_issuing_dispute_submitted_event.rb deleted file mode 100644 index e0a9ce809..000000000 --- a/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a dispute is submitted. - class V1IssuingDisputeSubmittedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_dispute.submitted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a dispute is submitted. - class V1IssuingDisputeSubmittedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_dispute.submitted" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_dispute_updated_event.rb b/lib/stripe/events/v1_issuing_dispute_updated_event.rb deleted file mode 100644 index 3f9f82e22..000000000 --- a/lib/stripe/events/v1_issuing_dispute_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a dispute is updated. - class V1IssuingDisputeUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_dispute.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a dispute is updated. - class V1IssuingDisputeUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_dispute.updated" - end - - attr_reader :related_object - - # Retrieves the Dispute related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb b/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb deleted file mode 100644 index 578ee22d7..000000000 --- a/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it. - class V1IssuingPersonalizationDesignActivatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_personalization_design.activated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it. - class V1IssuingPersonalizationDesignActivatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_personalization_design.activated" - end - - attr_reader :related_object - - # Retrieves the PersonalizationDesign related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb b/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb deleted file mode 100644 index db9588830..000000000 --- a/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a personalization design is deactivated following the deactivation of the physical bundle that belongs to it. - class V1IssuingPersonalizationDesignDeactivatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_personalization_design.deactivated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a personalization design is deactivated following the deactivation of the physical bundle that belongs to it. - class V1IssuingPersonalizationDesignDeactivatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_personalization_design.deactivated" - end - - attr_reader :related_object - - # Retrieves the PersonalizationDesign related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb b/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb deleted file mode 100644 index a4f485623..000000000 --- a/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a personalization design is rejected by design review. - class V1IssuingPersonalizationDesignRejectedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_personalization_design.rejected" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a personalization design is rejected by design review. - class V1IssuingPersonalizationDesignRejectedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_personalization_design.rejected" - end - - attr_reader :related_object - - # Retrieves the PersonalizationDesign related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb b/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb deleted file mode 100644 index 4ad536459..000000000 --- a/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a personalization design is updated. - class V1IssuingPersonalizationDesignUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_personalization_design.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a personalization design is updated. - class V1IssuingPersonalizationDesignUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_personalization_design.updated" - end - - attr_reader :related_object - - # Retrieves the PersonalizationDesign related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_token_created_event.rb b/lib/stripe/events/v1_issuing_token_created_event.rb deleted file mode 100644 index 73db9e70d..000000000 --- a/lib/stripe/events/v1_issuing_token_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an issuing digital wallet token is created. - class V1IssuingTokenCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_token.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an issuing digital wallet token is created. - class V1IssuingTokenCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_token.created" - end - - attr_reader :related_object - - # Retrieves the Token related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_token_updated_event.rb b/lib/stripe/events/v1_issuing_token_updated_event.rb deleted file mode 100644 index db409a2cb..000000000 --- a/lib/stripe/events/v1_issuing_token_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an issuing digital wallet token is updated. - class V1IssuingTokenUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_token.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an issuing digital wallet token is updated. - class V1IssuingTokenUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_token.updated" - end - - attr_reader :related_object - - # Retrieves the Token related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_transaction_created_event.rb b/lib/stripe/events/v1_issuing_transaction_created_event.rb deleted file mode 100644 index e5080f599..000000000 --- a/lib/stripe/events/v1_issuing_transaction_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an issuing transaction is created. - class V1IssuingTransactionCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_transaction.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an issuing transaction is created. - class V1IssuingTransactionCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_transaction.created" - end - - attr_reader :related_object - - # Retrieves the Transaction related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb b/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb deleted file mode 100644 index c5e7ecc1b..000000000 --- a/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an issuing transaction is updated with receipt data. - class V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_transaction.purchase_details_receipt_updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an issuing transaction is updated with receipt data. - class V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_transaction.purchase_details_receipt_updated" - end - - attr_reader :related_object - - # Retrieves the Transaction related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_issuing_transaction_updated_event.rb b/lib/stripe/events/v1_issuing_transaction_updated_event.rb deleted file mode 100644 index 9d45d66c8..000000000 --- a/lib/stripe/events/v1_issuing_transaction_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an issuing transaction is updated. - class V1IssuingTransactionUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.issuing_transaction.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an issuing transaction is updated. - class V1IssuingTransactionUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.issuing_transaction.updated" - end - - attr_reader :related_object - - # Retrieves the Transaction related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_mandate_updated_event.rb b/lib/stripe/events/v1_mandate_updated_event.rb deleted file mode 100644 index ea9924707..000000000 --- a/lib/stripe/events/v1_mandate_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a Mandate is updated. - class V1MandateUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.mandate.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a Mandate is updated. - class V1MandateUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.mandate.updated" - end - - attr_reader :related_object - - # Retrieves the Mandate related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb b/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb deleted file mode 100644 index 03175e889..000000000 --- a/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a PaymentIntent has funds to be captured. Check the `amount_capturable` property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an `amount_to_capture` value up to the specified amount. [Learn more about capturing PaymentIntents.](https://docs.stripe.com/api/payment_intents/capture). - class V1PaymentIntentAmountCapturableUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.amount_capturable_updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a PaymentIntent has funds to be captured. Check the `amount_capturable` property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an `amount_to_capture` value up to the specified amount. [Learn more about capturing PaymentIntents.](https://docs.stripe.com/api/payment_intents/capture). - class V1PaymentIntentAmountCapturableUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.amount_capturable_updated" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_canceled_event.rb b/lib/stripe/events/v1_payment_intent_canceled_event.rb deleted file mode 100644 index ab944efa9..000000000 --- a/lib/stripe/events/v1_payment_intent_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a PaymentIntent is canceled. - class V1PaymentIntentCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a PaymentIntent is canceled. - class V1PaymentIntentCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.canceled" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_created_event.rb b/lib/stripe/events/v1_payment_intent_created_event.rb deleted file mode 100644 index 9da26cd9f..000000000 --- a/lib/stripe/events/v1_payment_intent_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a new PaymentIntent is created. - class V1PaymentIntentCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a new PaymentIntent is created. - class V1PaymentIntentCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.created" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_partially_funded_event.rb b/lib/stripe/events/v1_payment_intent_partially_funded_event.rb deleted file mode 100644 index f3d992011..000000000 --- a/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when funds are applied to a customer_balance PaymentIntent and the 'amount_remaining' changes. - class V1PaymentIntentPartiallyFundedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.partially_funded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when funds are applied to a customer_balance PaymentIntent and the 'amount_remaining' changes. - class V1PaymentIntentPartiallyFundedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.partially_funded" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_payment_failed_event.rb b/lib/stripe/events/v1_payment_intent_payment_failed_event.rb deleted file mode 100644 index 2b8e6526e..000000000 --- a/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a PaymentIntent has failed the attempt to create a payment method or a payment. - class V1PaymentIntentPaymentFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.payment_failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a PaymentIntent has failed the attempt to create a payment method or a payment. - class V1PaymentIntentPaymentFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.payment_failed" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_processing_event.rb b/lib/stripe/events/v1_payment_intent_processing_event.rb deleted file mode 100644 index 621afe18d..000000000 --- a/lib/stripe/events/v1_payment_intent_processing_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a PaymentIntent has started processing. - class V1PaymentIntentProcessingEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.processing" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a PaymentIntent has started processing. - class V1PaymentIntentProcessingEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.processing" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_requires_action_event.rb b/lib/stripe/events/v1_payment_intent_requires_action_event.rb deleted file mode 100644 index 44ed2cc25..000000000 --- a/lib/stripe/events/v1_payment_intent_requires_action_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a PaymentIntent transitions to requires_action state. - class V1PaymentIntentRequiresActionEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.requires_action" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a PaymentIntent transitions to requires_action state. - class V1PaymentIntentRequiresActionEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.requires_action" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_intent_succeeded_event.rb b/lib/stripe/events/v1_payment_intent_succeeded_event.rb deleted file mode 100644 index 5bfde1863..000000000 --- a/lib/stripe/events/v1_payment_intent_succeeded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a PaymentIntent has successfully completed payment. - class V1PaymentIntentSucceededEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_intent.succeeded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a PaymentIntent has successfully completed payment. - class V1PaymentIntentSucceededEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_intent.succeeded" - end - - attr_reader :related_object - - # Retrieves the PaymentIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_link_created_event.rb b/lib/stripe/events/v1_payment_link_created_event.rb deleted file mode 100644 index 6aee9d153..000000000 --- a/lib/stripe/events/v1_payment_link_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a payment link is created. - class V1PaymentLinkCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_link.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a payment link is created. - class V1PaymentLinkCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_link.created" - end - - attr_reader :related_object - - # Retrieves the PaymentLink related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_link_updated_event.rb b/lib/stripe/events/v1_payment_link_updated_event.rb deleted file mode 100644 index 5c8c3d241..000000000 --- a/lib/stripe/events/v1_payment_link_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a payment link is updated. - class V1PaymentLinkUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_link.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a payment link is updated. - class V1PaymentLinkUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_link.updated" - end - - attr_reader :related_object - - # Retrieves the PaymentLink related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_method_attached_event.rb b/lib/stripe/events/v1_payment_method_attached_event.rb deleted file mode 100644 index 9ae278bb2..000000000 --- a/lib/stripe/events/v1_payment_method_attached_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new payment method is attached to a customer. - class V1PaymentMethodAttachedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_method.attached" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new payment method is attached to a customer. - class V1PaymentMethodAttachedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_method.attached" - end - - attr_reader :related_object - - # Retrieves the PaymentMethod related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_method_automatically_updated_event.rb b/lib/stripe/events/v1_payment_method_automatically_updated_event.rb deleted file mode 100644 index 0364d4a4c..000000000 --- a/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payment method's details are automatically updated by the network. - class V1PaymentMethodAutomaticallyUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_method.automatically_updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payment method's details are automatically updated by the network. - class V1PaymentMethodAutomaticallyUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_method.automatically_updated" - end - - attr_reader :related_object - - # Retrieves the PaymentMethod related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_method_detached_event.rb b/lib/stripe/events/v1_payment_method_detached_event.rb deleted file mode 100644 index 100280b74..000000000 --- a/lib/stripe/events/v1_payment_method_detached_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payment method is detached from a customer. - class V1PaymentMethodDetachedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_method.detached" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payment method is detached from a customer. - class V1PaymentMethodDetachedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_method.detached" - end - - attr_reader :related_object - - # Retrieves the PaymentMethod related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payment_method_updated_event.rb b/lib/stripe/events/v1_payment_method_updated_event.rb deleted file mode 100644 index 6b789c5cc..000000000 --- a/lib/stripe/events/v1_payment_method_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payment method is updated via the [PaymentMethod update API](https://docs.stripe.com/api/payment_methods/update). - class V1PaymentMethodUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payment_method.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payment method is updated via the [PaymentMethod update API](https://docs.stripe.com/api/payment_methods/update). - class V1PaymentMethodUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payment_method.updated" - end - - attr_reader :related_object - - # Retrieves the PaymentMethod related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payout_canceled_event.rb b/lib/stripe/events/v1_payout_canceled_event.rb deleted file mode 100644 index 7ba7542ad..000000000 --- a/lib/stripe/events/v1_payout_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payout is canceled. - class V1PayoutCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payout.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payout is canceled. - class V1PayoutCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payout.canceled" - end - - attr_reader :related_object - - # Retrieves the Payout related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payout_created_event.rb b/lib/stripe/events/v1_payout_created_event.rb deleted file mode 100644 index de481b50c..000000000 --- a/lib/stripe/events/v1_payout_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payout is created. - class V1PayoutCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payout.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payout is created. - class V1PayoutCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payout.created" - end - - attr_reader :related_object - - # Retrieves the Payout related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payout_failed_event.rb b/lib/stripe/events/v1_payout_failed_event.rb deleted file mode 100644 index 686dd61fa..000000000 --- a/lib/stripe/events/v1_payout_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payout attempt fails. - class V1PayoutFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payout.failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payout attempt fails. - class V1PayoutFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payout.failed" - end - - attr_reader :related_object - - # Retrieves the Payout related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payout_paid_event.rb b/lib/stripe/events/v1_payout_paid_event.rb deleted file mode 100644 index c8354b1a6..000000000 --- a/lib/stripe/events/v1_payout_paid_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payout is *expected* to be available in the destination account. If the payout fails, a `payout.failed` notification is also sent, at a later time. - class V1PayoutPaidEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payout.paid" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payout is *expected* to be available in the destination account. If the payout fails, a `payout.failed` notification is also sent, at a later time. - class V1PayoutPaidEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payout.paid" - end - - attr_reader :related_object - - # Retrieves the Payout related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payout_reconciliation_completed_event.rb b/lib/stripe/events/v1_payout_reconciliation_completed_event.rb deleted file mode 100644 index 2f6d4b73f..000000000 --- a/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever balance transactions paid out in an automatic payout can be queried. - class V1PayoutReconciliationCompletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payout.reconciliation_completed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever balance transactions paid out in an automatic payout can be queried. - class V1PayoutReconciliationCompletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payout.reconciliation_completed" - end - - attr_reader :related_object - - # Retrieves the Payout related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_payout_updated_event.rb b/lib/stripe/events/v1_payout_updated_event.rb deleted file mode 100644 index 92dd53c69..000000000 --- a/lib/stripe/events/v1_payout_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a payout is updated. - class V1PayoutUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.payout.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a payout is updated. - class V1PayoutUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.payout.updated" - end - - attr_reader :related_object - - # Retrieves the Payout related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_person_created_event.rb b/lib/stripe/events/v1_person_created_event.rb deleted file mode 100644 index dcd516035..000000000 --- a/lib/stripe/events/v1_person_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a person associated with an account is created. - class V1PersonCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.person.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a person associated with an account is created. - class V1PersonCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.person.created" - end - - attr_reader :related_object - - # Retrieves the Person related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_person_deleted_event.rb b/lib/stripe/events/v1_person_deleted_event.rb deleted file mode 100644 index 568ee7647..000000000 --- a/lib/stripe/events/v1_person_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a person associated with an account is deleted. - class V1PersonDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.person.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a person associated with an account is deleted. - class V1PersonDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.person.deleted" - end - - attr_reader :related_object - - # Retrieves the Person related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_person_updated_event.rb b/lib/stripe/events/v1_person_updated_event.rb deleted file mode 100644 index 0b4cf88fe..000000000 --- a/lib/stripe/events/v1_person_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a person associated with an account is updated. - class V1PersonUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.person.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a person associated with an account is updated. - class V1PersonUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.person.updated" - end - - attr_reader :related_object - - # Retrieves the Person related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_plan_created_event.rb b/lib/stripe/events/v1_plan_created_event.rb deleted file mode 100644 index e1b5fa778..000000000 --- a/lib/stripe/events/v1_plan_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a plan is created. - class V1PlanCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.plan.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a plan is created. - class V1PlanCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.plan.created" - end - - attr_reader :related_object - - # Retrieves the Plan related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_plan_deleted_event.rb b/lib/stripe/events/v1_plan_deleted_event.rb deleted file mode 100644 index 3fc73ebe3..000000000 --- a/lib/stripe/events/v1_plan_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a plan is deleted. - class V1PlanDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.plan.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a plan is deleted. - class V1PlanDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.plan.deleted" - end - - attr_reader :related_object - - # Retrieves the Plan related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_plan_updated_event.rb b/lib/stripe/events/v1_plan_updated_event.rb deleted file mode 100644 index cb1581cd3..000000000 --- a/lib/stripe/events/v1_plan_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a plan is updated. - class V1PlanUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.plan.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a plan is updated. - class V1PlanUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.plan.updated" - end - - attr_reader :related_object - - # Retrieves the Plan related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_price_created_event.rb b/lib/stripe/events/v1_price_created_event.rb deleted file mode 100644 index 336d8fe1c..000000000 --- a/lib/stripe/events/v1_price_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a price is created. - class V1PriceCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.price.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a price is created. - class V1PriceCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.price.created" - end - - attr_reader :related_object - - # Retrieves the Price related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_price_deleted_event.rb b/lib/stripe/events/v1_price_deleted_event.rb deleted file mode 100644 index 0b54f39dc..000000000 --- a/lib/stripe/events/v1_price_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a price is deleted. - class V1PriceDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.price.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a price is deleted. - class V1PriceDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.price.deleted" - end - - attr_reader :related_object - - # Retrieves the Price related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_price_updated_event.rb b/lib/stripe/events/v1_price_updated_event.rb deleted file mode 100644 index 7521dfcdf..000000000 --- a/lib/stripe/events/v1_price_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a price is updated. - class V1PriceUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.price.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a price is updated. - class V1PriceUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.price.updated" - end - - attr_reader :related_object - - # Retrieves the Price related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_product_created_event.rb b/lib/stripe/events/v1_product_created_event.rb deleted file mode 100644 index eaad925f5..000000000 --- a/lib/stripe/events/v1_product_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a product is created. - class V1ProductCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.product.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a product is created. - class V1ProductCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.product.created" - end - - attr_reader :related_object - - # Retrieves the Product related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_product_deleted_event.rb b/lib/stripe/events/v1_product_deleted_event.rb deleted file mode 100644 index 22d8cadb4..000000000 --- a/lib/stripe/events/v1_product_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a product is deleted. - class V1ProductDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.product.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a product is deleted. - class V1ProductDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.product.deleted" - end - - attr_reader :related_object - - # Retrieves the Product related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_product_updated_event.rb b/lib/stripe/events/v1_product_updated_event.rb deleted file mode 100644 index 41f787ea0..000000000 --- a/lib/stripe/events/v1_product_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a product is updated. - class V1ProductUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.product.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a product is updated. - class V1ProductUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.product.updated" - end - - attr_reader :related_object - - # Retrieves the Product related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_promotion_code_created_event.rb b/lib/stripe/events/v1_promotion_code_created_event.rb deleted file mode 100644 index 01033cbb3..000000000 --- a/lib/stripe/events/v1_promotion_code_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a promotion code is created. - class V1PromotionCodeCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.promotion_code.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a promotion code is created. - class V1PromotionCodeCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.promotion_code.created" - end - - attr_reader :related_object - - # Retrieves the PromotionCode related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_promotion_code_updated_event.rb b/lib/stripe/events/v1_promotion_code_updated_event.rb deleted file mode 100644 index a9dca52cb..000000000 --- a/lib/stripe/events/v1_promotion_code_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a promotion code is updated. - class V1PromotionCodeUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.promotion_code.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a promotion code is updated. - class V1PromotionCodeUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.promotion_code.updated" - end - - attr_reader :related_object - - # Retrieves the PromotionCode related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_quote_accepted_event.rb b/lib/stripe/events/v1_quote_accepted_event.rb deleted file mode 100644 index a812994cb..000000000 --- a/lib/stripe/events/v1_quote_accepted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a quote is accepted. - class V1QuoteAcceptedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.quote.accepted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a quote is accepted. - class V1QuoteAcceptedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.quote.accepted" - end - - attr_reader :related_object - - # Retrieves the Quote related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_quote_canceled_event.rb b/lib/stripe/events/v1_quote_canceled_event.rb deleted file mode 100644 index 12faa4e71..000000000 --- a/lib/stripe/events/v1_quote_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a quote is canceled. - class V1QuoteCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.quote.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a quote is canceled. - class V1QuoteCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.quote.canceled" - end - - attr_reader :related_object - - # Retrieves the Quote related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_quote_created_event.rb b/lib/stripe/events/v1_quote_created_event.rb deleted file mode 100644 index 5f73eb12d..000000000 --- a/lib/stripe/events/v1_quote_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a quote is created. - class V1QuoteCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.quote.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a quote is created. - class V1QuoteCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.quote.created" - end - - attr_reader :related_object - - # Retrieves the Quote related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_quote_finalized_event.rb b/lib/stripe/events/v1_quote_finalized_event.rb deleted file mode 100644 index 859442901..000000000 --- a/lib/stripe/events/v1_quote_finalized_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a quote is finalized. - class V1QuoteFinalizedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.quote.finalized" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a quote is finalized. - class V1QuoteFinalizedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.quote.finalized" - end - - attr_reader :related_object - - # Retrieves the Quote related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb b/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb deleted file mode 100644 index e7503b566..000000000 --- a/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an early fraud warning is updated. - class V1RadarEarlyFraudWarningUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.radar.early_fraud_warning.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an early fraud warning is updated. - class V1RadarEarlyFraudWarningUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.radar.early_fraud_warning.updated" - end - - attr_reader :related_object - - # Retrieves the EarlyFraudWarning related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_refund_created_event.rb b/lib/stripe/events/v1_refund_created_event.rb deleted file mode 100644 index 5c12330c1..000000000 --- a/lib/stripe/events/v1_refund_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a refund is created. - class V1RefundCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.refund.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a refund is created. - class V1RefundCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.refund.created" - end - - attr_reader :related_object - - # Retrieves the Refund related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_refund_failed_event.rb b/lib/stripe/events/v1_refund_failed_event.rb deleted file mode 100644 index c5c641dbb..000000000 --- a/lib/stripe/events/v1_refund_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a refund has failed. - class V1RefundFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.refund.failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a refund has failed. - class V1RefundFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.refund.failed" - end - - attr_reader :related_object - - # Retrieves the Refund related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_refund_updated_event.rb b/lib/stripe/events/v1_refund_updated_event.rb deleted file mode 100644 index e36090a04..000000000 --- a/lib/stripe/events/v1_refund_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a refund is updated. - class V1RefundUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.refund.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a refund is updated. - class V1RefundUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.refund.updated" - end - - attr_reader :related_object - - # Retrieves the Refund related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_review_closed_event.rb b/lib/stripe/events/v1_review_closed_event.rb deleted file mode 100644 index 95751fdb4..000000000 --- a/lib/stripe/events/v1_review_closed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a review is closed. The review's `reason` field indicates why: `approved`, `disputed`, `refunded`, `refunded_as_fraud`, or `canceled`. - class V1ReviewClosedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.review.closed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a review is closed. The review's `reason` field indicates why: `approved`, `disputed`, `refunded`, `refunded_as_fraud`, or `canceled`. - class V1ReviewClosedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.review.closed" - end - - attr_reader :related_object - - # Retrieves the Review related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_review_opened_event.rb b/lib/stripe/events/v1_review_opened_event.rb deleted file mode 100644 index fb0ef1600..000000000 --- a/lib/stripe/events/v1_review_opened_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a review is opened. - class V1ReviewOpenedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.review.opened" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a review is opened. - class V1ReviewOpenedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.review.opened" - end - - attr_reader :related_object - - # Retrieves the Review related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_setup_intent_canceled_event.rb b/lib/stripe/events/v1_setup_intent_canceled_event.rb deleted file mode 100644 index b5aa73dfd..000000000 --- a/lib/stripe/events/v1_setup_intent_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a SetupIntent is canceled. - class V1SetupIntentCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.setup_intent.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a SetupIntent is canceled. - class V1SetupIntentCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.setup_intent.canceled" - end - - attr_reader :related_object - - # Retrieves the SetupIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_setup_intent_created_event.rb b/lib/stripe/events/v1_setup_intent_created_event.rb deleted file mode 100644 index b0d796c4c..000000000 --- a/lib/stripe/events/v1_setup_intent_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a new SetupIntent is created. - class V1SetupIntentCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.setup_intent.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a new SetupIntent is created. - class V1SetupIntentCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.setup_intent.created" - end - - attr_reader :related_object - - # Retrieves the SetupIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_setup_intent_requires_action_event.rb b/lib/stripe/events/v1_setup_intent_requires_action_event.rb deleted file mode 100644 index 6a3740b1f..000000000 --- a/lib/stripe/events/v1_setup_intent_requires_action_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a SetupIntent is in requires_action state. - class V1SetupIntentRequiresActionEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.setup_intent.requires_action" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a SetupIntent is in requires_action state. - class V1SetupIntentRequiresActionEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.setup_intent.requires_action" - end - - attr_reader :related_object - - # Retrieves the SetupIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_setup_intent_setup_failed_event.rb b/lib/stripe/events/v1_setup_intent_setup_failed_event.rb deleted file mode 100644 index d54447f2c..000000000 --- a/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when a SetupIntent has failed the attempt to setup a payment method. - class V1SetupIntentSetupFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.setup_intent.setup_failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when a SetupIntent has failed the attempt to setup a payment method. - class V1SetupIntentSetupFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.setup_intent.setup_failed" - end - - attr_reader :related_object - - # Retrieves the SetupIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_setup_intent_succeeded_event.rb b/lib/stripe/events/v1_setup_intent_succeeded_event.rb deleted file mode 100644 index 3e13da508..000000000 --- a/lib/stripe/events/v1_setup_intent_succeeded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs when an SetupIntent has successfully setup a payment method. - class V1SetupIntentSucceededEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.setup_intent.succeeded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs when an SetupIntent has successfully setup a payment method. - class V1SetupIntentSucceededEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.setup_intent.succeeded" - end - - attr_reader :related_object - - # Retrieves the SetupIntent related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_source_canceled_event.rb b/lib/stripe/events/v1_source_canceled_event.rb deleted file mode 100644 index 9b5b8f2b6..000000000 --- a/lib/stripe/events/v1_source_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a source is canceled. - class V1SourceCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.source.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a source is canceled. - class V1SourceCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.source.canceled" - end - - attr_reader :related_object - - # Retrieves the Source related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_source_chargeable_event.rb b/lib/stripe/events/v1_source_chargeable_event.rb deleted file mode 100644 index aa1ccfe29..000000000 --- a/lib/stripe/events/v1_source_chargeable_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a source transitions to chargeable. - class V1SourceChargeableEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.source.chargeable" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a source transitions to chargeable. - class V1SourceChargeableEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.source.chargeable" - end - - attr_reader :related_object - - # Retrieves the Source related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_source_failed_event.rb b/lib/stripe/events/v1_source_failed_event.rb deleted file mode 100644 index 5778ae5d7..000000000 --- a/lib/stripe/events/v1_source_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a source fails. - class V1SourceFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.source.failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a source fails. - class V1SourceFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.source.failed" - end - - attr_reader :related_object - - # Retrieves the Source related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_source_refund_attributes_required_event.rb b/lib/stripe/events/v1_source_refund_attributes_required_event.rb deleted file mode 100644 index 7c2e54876..000000000 --- a/lib/stripe/events/v1_source_refund_attributes_required_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever the refund attributes are required on a receiver source to process a refund or a mispayment. - class V1SourceRefundAttributesRequiredEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.source.refund_attributes_required" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever the refund attributes are required on a receiver source to process a refund or a mispayment. - class V1SourceRefundAttributesRequiredEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.source.refund_attributes_required" - end - - attr_reader :related_object - - # Retrieves the Source related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_subscription_schedule_aborted_event.rb b/lib/stripe/events/v1_subscription_schedule_aborted_event.rb deleted file mode 100644 index a09dc7dad..000000000 --- a/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a subscription schedule is canceled due to the underlying subscription being canceled because of delinquency. - class V1SubscriptionScheduleAbortedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.subscription_schedule.aborted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a subscription schedule is canceled due to the underlying subscription being canceled because of delinquency. - class V1SubscriptionScheduleAbortedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.subscription_schedule.aborted" - end - - attr_reader :related_object - - # Retrieves the SubscriptionSchedule related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_subscription_schedule_canceled_event.rb b/lib/stripe/events/v1_subscription_schedule_canceled_event.rb deleted file mode 100644 index a23ba642c..000000000 --- a/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a subscription schedule is canceled. - class V1SubscriptionScheduleCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.subscription_schedule.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a subscription schedule is canceled. - class V1SubscriptionScheduleCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.subscription_schedule.canceled" - end - - attr_reader :related_object - - # Retrieves the SubscriptionSchedule related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_subscription_schedule_completed_event.rb b/lib/stripe/events/v1_subscription_schedule_completed_event.rb deleted file mode 100644 index 3897da09e..000000000 --- a/lib/stripe/events/v1_subscription_schedule_completed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new subscription schedule is completed. - class V1SubscriptionScheduleCompletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.subscription_schedule.completed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new subscription schedule is completed. - class V1SubscriptionScheduleCompletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.subscription_schedule.completed" - end - - attr_reader :related_object - - # Retrieves the SubscriptionSchedule related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_subscription_schedule_created_event.rb b/lib/stripe/events/v1_subscription_schedule_created_event.rb deleted file mode 100644 index 14d70468a..000000000 --- a/lib/stripe/events/v1_subscription_schedule_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new subscription schedule is created. - class V1SubscriptionScheduleCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.subscription_schedule.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new subscription schedule is created. - class V1SubscriptionScheduleCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.subscription_schedule.created" - end - - attr_reader :related_object - - # Retrieves the SubscriptionSchedule related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_subscription_schedule_expiring_event.rb b/lib/stripe/events/v1_subscription_schedule_expiring_event.rb deleted file mode 100644 index b6cc5ad53..000000000 --- a/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs 7 days before a subscription schedule will expire. - class V1SubscriptionScheduleExpiringEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.subscription_schedule.expiring" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs 7 days before a subscription schedule will expire. - class V1SubscriptionScheduleExpiringEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.subscription_schedule.expiring" - end - - attr_reader :related_object - - # Retrieves the SubscriptionSchedule related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_subscription_schedule_released_event.rb b/lib/stripe/events/v1_subscription_schedule_released_event.rb deleted file mode 100644 index ed08fe590..000000000 --- a/lib/stripe/events/v1_subscription_schedule_released_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new subscription schedule is released. - class V1SubscriptionScheduleReleasedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.subscription_schedule.released" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new subscription schedule is released. - class V1SubscriptionScheduleReleasedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.subscription_schedule.released" - end - - attr_reader :related_object - - # Retrieves the SubscriptionSchedule related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_subscription_schedule_updated_event.rb b/lib/stripe/events/v1_subscription_schedule_updated_event.rb deleted file mode 100644 index 5da8f2df9..000000000 --- a/lib/stripe/events/v1_subscription_schedule_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a subscription schedule is updated. - class V1SubscriptionScheduleUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.subscription_schedule.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a subscription schedule is updated. - class V1SubscriptionScheduleUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.subscription_schedule.updated" - end - - attr_reader :related_object - - # Retrieves the SubscriptionSchedule related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_tax_rate_created_event.rb b/lib/stripe/events/v1_tax_rate_created_event.rb deleted file mode 100644 index 5cfc449ef..000000000 --- a/lib/stripe/events/v1_tax_rate_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a new tax rate is created. - class V1TaxRateCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.tax_rate.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a new tax rate is created. - class V1TaxRateCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.tax_rate.created" - end - - attr_reader :related_object - - # Retrieves the TaxRate related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_tax_rate_updated_event.rb b/lib/stripe/events/v1_tax_rate_updated_event.rb deleted file mode 100644 index e7357d5e0..000000000 --- a/lib/stripe/events/v1_tax_rate_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a tax rate is updated. - class V1TaxRateUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.tax_rate.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a tax rate is updated. - class V1TaxRateUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.tax_rate.updated" - end - - attr_reader :related_object - - # Retrieves the TaxRate related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_terminal_reader_action_failed_event.rb b/lib/stripe/events/v1_terminal_reader_action_failed_event.rb deleted file mode 100644 index 39c22fa47..000000000 --- a/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an action sent to a Terminal reader failed. - class V1TerminalReaderActionFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.terminal.reader.action_failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an action sent to a Terminal reader failed. - class V1TerminalReaderActionFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.terminal.reader.action_failed" - end - - attr_reader :related_object - - # Retrieves the Reader related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb b/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb deleted file mode 100644 index 2e213e29f..000000000 --- a/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an action sent to a Terminal reader was successful. - class V1TerminalReaderActionSucceededEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.terminal.reader.action_succeeded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an action sent to a Terminal reader was successful. - class V1TerminalReaderActionSucceededEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.terminal.reader.action_succeeded" - end - - attr_reader :related_object - - # Retrieves the Reader related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_terminal_reader_action_updated_event.rb b/lib/stripe/events/v1_terminal_reader_action_updated_event.rb deleted file mode 100644 index d667c7e21..000000000 --- a/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever an action sent to a Terminal reader is updated. - class V1TerminalReaderActionUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.terminal.reader.action_updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever an action sent to a Terminal reader is updated. - class V1TerminalReaderActionUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.terminal.reader.action_updated" - end - - attr_reader :related_object - - # Retrieves the Reader related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb b/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb deleted file mode 100644 index be9f57f41..000000000 --- a/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a test clock starts advancing. - class V1TestHelpersTestClockAdvancingEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.test_helpers.test_clock.advancing" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a test clock starts advancing. - class V1TestHelpersTestClockAdvancingEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.test_helpers.test_clock.advancing" - end - - attr_reader :related_object - - # Retrieves the TestClock related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb b/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb deleted file mode 100644 index b5c5e7c95..000000000 --- a/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a test clock is created. - class V1TestHelpersTestClockCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.test_helpers.test_clock.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a test clock is created. - class V1TestHelpersTestClockCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.test_helpers.test_clock.created" - end - - attr_reader :related_object - - # Retrieves the TestClock related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb b/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb deleted file mode 100644 index eb7c24c9d..000000000 --- a/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a test clock is deleted. - class V1TestHelpersTestClockDeletedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.test_helpers.test_clock.deleted" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a test clock is deleted. - class V1TestHelpersTestClockDeletedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.test_helpers.test_clock.deleted" - end - - attr_reader :related_object - - # Retrieves the TestClock related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb b/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb deleted file mode 100644 index 11a7b9d37..000000000 --- a/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a test clock fails to advance its frozen time. - class V1TestHelpersTestClockInternalFailureEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.test_helpers.test_clock.internal_failure" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a test clock fails to advance its frozen time. - class V1TestHelpersTestClockInternalFailureEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.test_helpers.test_clock.internal_failure" - end - - attr_reader :related_object - - # Retrieves the TestClock related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb b/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb deleted file mode 100644 index 34cb5d631..000000000 --- a/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a test clock transitions to a ready status. - class V1TestHelpersTestClockReadyEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.test_helpers.test_clock.ready" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a test clock transitions to a ready status. - class V1TestHelpersTestClockReadyEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.test_helpers.test_clock.ready" - end - - attr_reader :related_object - - # Retrieves the TestClock related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_topup_canceled_event.rb b/lib/stripe/events/v1_topup_canceled_event.rb deleted file mode 100644 index 689a0225d..000000000 --- a/lib/stripe/events/v1_topup_canceled_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a top-up is canceled. - class V1TopupCanceledEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.topup.canceled" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a top-up is canceled. - class V1TopupCanceledEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.topup.canceled" - end - - attr_reader :related_object - - # Retrieves the Topup related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_topup_created_event.rb b/lib/stripe/events/v1_topup_created_event.rb deleted file mode 100644 index 57297dcd6..000000000 --- a/lib/stripe/events/v1_topup_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a top-up is created. - class V1TopupCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.topup.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a top-up is created. - class V1TopupCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.topup.created" - end - - attr_reader :related_object - - # Retrieves the Topup related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_topup_failed_event.rb b/lib/stripe/events/v1_topup_failed_event.rb deleted file mode 100644 index 63a8fc152..000000000 --- a/lib/stripe/events/v1_topup_failed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a top-up fails. - class V1TopupFailedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.topup.failed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a top-up fails. - class V1TopupFailedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.topup.failed" - end - - attr_reader :related_object - - # Retrieves the Topup related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_topup_reversed_event.rb b/lib/stripe/events/v1_topup_reversed_event.rb deleted file mode 100644 index dbee59490..000000000 --- a/lib/stripe/events/v1_topup_reversed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a top-up is reversed. - class V1TopupReversedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.topup.reversed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a top-up is reversed. - class V1TopupReversedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.topup.reversed" - end - - attr_reader :related_object - - # Retrieves the Topup related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_topup_succeeded_event.rb b/lib/stripe/events/v1_topup_succeeded_event.rb deleted file mode 100644 index 4ef9a23a3..000000000 --- a/lib/stripe/events/v1_topup_succeeded_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a top-up succeeds. - class V1TopupSucceededEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.topup.succeeded" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a top-up succeeds. - class V1TopupSucceededEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.topup.succeeded" - end - - attr_reader :related_object - - # Retrieves the Topup related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_transfer_created_event.rb b/lib/stripe/events/v1_transfer_created_event.rb deleted file mode 100644 index 554819645..000000000 --- a/lib/stripe/events/v1_transfer_created_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a transfer is created. - class V1TransferCreatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.transfer.created" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a transfer is created. - class V1TransferCreatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.transfer.created" - end - - attr_reader :related_object - - # Retrieves the Transfer related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_transfer_reversed_event.rb b/lib/stripe/events/v1_transfer_reversed_event.rb deleted file mode 100644 index 46a1b7bf3..000000000 --- a/lib/stripe/events/v1_transfer_reversed_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a transfer is reversed, including partial reversals. - class V1TransferReversedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.transfer.reversed" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a transfer is reversed, including partial reversals. - class V1TransferReversedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.transfer.reversed" - end - - attr_reader :related_object - - # Retrieves the Transfer related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v1_transfer_updated_event.rb b/lib/stripe/events/v1_transfer_updated_event.rb deleted file mode 100644 index f6b2b7d80..000000000 --- a/lib/stripe/events/v1_transfer_updated_event.rb +++ /dev/null @@ -1,44 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - module Events - # Occurs whenever a transfer's description or metadata is updated. - class V1TransferUpdatedEvent < Stripe::V2::Core::Event - def self.lookup_type - "v1.transfer.updated" - end - - # Retrieves the related object from the API. Makes an API request on every call. - def fetch_related_object - _request( - method: :get, - path: related_object.url, - base_address: :api, - opts: { stripe_context: context } - ) - end - attr_reader :related_object - end - - # Occurs whenever a transfer's description or metadata is updated. - class V1TransferUpdatedEventNotification < Stripe::V2::Core::EventNotification - def self.lookup_type - "v1.transfer.updated" - end - - attr_reader :related_object - - # Retrieves the Transfer related to this EventNotification from the Stripe API. Makes an API request on every call. - def fetch_related_object - resp = @client.raw_request( - :get, - related_object.url, - opts: { stripe_context: context }, - usage: ["fetch_related_object"] - ) - @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) - end - end - end -end diff --git a/lib/stripe/events/v2_core_health_api_error_firing_event.rb b/lib/stripe/events/v2_core_health_api_error_firing_event.rb index 8f6665ff1..2d4c79a5d 100644 --- a/lib/stripe/events/v2_core_health_api_error_firing_event.rb +++ b/lib/stripe/events/v2_core_health_api_error_firing_event.rb @@ -21,6 +21,8 @@ class Impact < ::Stripe::StripeObject attr_reader :http_status # The number of impacted requests. attr_reader :impacted_requests + # The percentage of impacted requests. + attr_reader :impacted_requests_percentage def self.inner_class_types @inner_class_types = {} diff --git a/lib/stripe/events/v2_core_health_api_error_resolved_event.rb b/lib/stripe/events/v2_core_health_api_error_resolved_event.rb index a98b0a7ae..ef8d2d7e2 100644 --- a/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +++ b/lib/stripe/events/v2_core_health_api_error_resolved_event.rb @@ -21,6 +21,8 @@ class Impact < ::Stripe::StripeObject attr_reader :http_status # The number of impacted requests. attr_reader :impacted_requests + # The percentage of impacted requests. + attr_reader :impacted_requests_percentage def self.inner_class_types @inner_class_types = {} diff --git a/lib/stripe/events/v2_core_health_api_latency_firing_event.rb b/lib/stripe/events/v2_core_health_api_latency_firing_event.rb index d3d64f31c..7f2f814c4 100644 --- a/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +++ b/lib/stripe/events/v2_core_health_api_latency_firing_event.rb @@ -19,6 +19,8 @@ class Impact < ::Stripe::StripeObject attr_reader :http_status # The number of impacted requests. attr_reader :impacted_requests + # The percentage of impacted requests. + attr_reader :impacted_requests_percentage def self.inner_class_types @inner_class_types = {} diff --git a/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb b/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb index 183c98bdc..b60bb0cbf 100644 --- a/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +++ b/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb @@ -19,6 +19,8 @@ class Impact < ::Stripe::StripeObject attr_reader :http_status # The number of impacted requests. attr_reader :impacted_requests + # The percentage of impacted requests. + attr_reader :impacted_requests_percentage def self.inner_class_types @inner_class_types = {} diff --git a/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb b/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb index 5e6ffe7c7..8cda86aae 100644 --- a/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +++ b/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb @@ -11,19 +11,31 @@ def self.lookup_type class V2CoreHealthEventGenerationFailureResolvedEventData < ::Stripe::StripeObject class Impact < ::Stripe::StripeObject - # The account id the event should have been generated for. Only present when the account is a connected account. - attr_reader :account + class RelatedObject < ::Stripe::StripeObject + # The ID of the related object (e.g., "pi_..."). + attr_reader :id + # The type of the related object (e.g., "payment_intent"). + attr_reader :type + # The API URL for the related object (e.g., "/v1/payment_intents/pi_..."). + attr_reader :url + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The context the event should have been generated for. Only present when the account is a connected account. + attr_reader :context # The type of event that Stripe failed to generate. attr_reader :event_type - # Indicates if the event was for livemode or not. - attr_reader :livemode - # The number of webhooks that Stripe failed to create and deliver. - attr_reader :missing_delivery_attempts - # The related object id. - attr_reader :related_object_id + # The related object details. + attr_reader :related_object def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { related_object: RelatedObject } end def self.field_remappings diff --git a/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb b/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb index ee5332b44..613193542 100644 --- a/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +++ b/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb @@ -11,6 +11,20 @@ def self.lookup_type class V2CoreHealthFraudRateIncreasedEventData < ::Stripe::StripeObject class Impact < ::Stripe::StripeObject + class RealizedFraudAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Fraud attack type. attr_reader :attack_type # The number of impacted requests which are detected. @@ -19,7 +33,7 @@ class Impact < ::Stripe::StripeObject attr_reader :realized_fraud_amount def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { realized_fraud_amount: RealizedFraudAmount } end def self.field_remappings diff --git a/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb b/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb index 386573b78..6e5810974 100644 --- a/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +++ b/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb @@ -11,6 +11,35 @@ def self.lookup_type class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventData < ::Stripe::StripeObject class Impact < ::Stripe::StripeObject + class ApprovedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class DeclinedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Estimated aggregated amount for the approved requests. attr_reader :approved_amount # The number of approved requests which are impacted. @@ -21,7 +50,7 @@ class Impact < ::Stripe::StripeObject attr_reader :declined_impacted_requests def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount } end def self.field_remappings diff --git a/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb b/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb index b8a8facc0..af3e3c711 100644 --- a/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +++ b/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb @@ -11,6 +11,35 @@ def self.lookup_type class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventData < ::Stripe::StripeObject class Impact < ::Stripe::StripeObject + class ApprovedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class DeclinedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Estimated aggregated amount for the approved requests. attr_reader :approved_amount # The number of approved requests which are impacted. @@ -21,7 +50,7 @@ class Impact < ::Stripe::StripeObject attr_reader :declined_impacted_requests def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount } end def self.field_remappings diff --git a/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb b/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb index b04226d54..e19fa4c38 100644 --- a/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +++ b/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb @@ -11,6 +11,35 @@ def self.lookup_type class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventData < ::Stripe::StripeObject class Impact < ::Stripe::StripeObject + class ApprovedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class DeclinedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Estimated aggregated amount for the approved requests. attr_reader :approved_amount # The number of approved requests which are impacted. @@ -21,7 +50,7 @@ class Impact < ::Stripe::StripeObject attr_reader :declined_impacted_requests def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount } end def self.field_remappings diff --git a/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb b/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb index 3eb5b275f..a542a35c5 100644 --- a/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +++ b/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb @@ -11,6 +11,35 @@ def self.lookup_type class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventData < ::Stripe::StripeObject class Impact < ::Stripe::StripeObject + class ApprovedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class DeclinedAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Estimated aggregated amount for the approved requests. attr_reader :approved_amount # The number of approved requests which are impacted. @@ -21,7 +50,7 @@ class Impact < ::Stripe::StripeObject attr_reader :declined_impacted_requests def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount } end def self.field_remappings diff --git a/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb b/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb index d816ac746..ba16d1215 100644 --- a/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +++ b/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb @@ -15,6 +15,8 @@ class Impact < ::Stripe::StripeObject attr_reader :error_code # The number of impacted requests. attr_reader :impacted_requests + # The percentage of impacted requests. + attr_reader :impacted_requests_percentage # The type of the payment method. attr_reader :payment_method_type diff --git a/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb b/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb index ada908285..ea1d807f6 100644 --- a/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +++ b/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb @@ -15,6 +15,8 @@ class Impact < ::Stripe::StripeObject attr_reader :error_code # The number of impacted requests. attr_reader :impacted_requests + # The percentage of impacted requests. + attr_reader :impacted_requests_percentage # The type of the payment method. attr_reader :payment_method_type diff --git a/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb b/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb similarity index 62% rename from lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb rename to lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb index 159a3c907..f52fdfaf2 100644 --- a/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +++ b/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb @@ -3,10 +3,10 @@ module Stripe module Events - # Occurs whenever a Sigma scheduled query run finishes. - class V1SigmaScheduledQueryRunCreatedEvent < Stripe::V2::Core::Event + # Sent after a failed attempt if there are still retries available on the OffSessionPayment. + class V2PaymentsOffSessionPaymentAttemptFailedEvent < Stripe::V2::Core::Event def self.lookup_type - "v1.sigma.scheduled_query_run.created" + "v2.payments.off_session_payment.attempt_failed" end # Retrieves the related object from the API. Makes an API request on every call. @@ -21,15 +21,15 @@ def fetch_related_object attr_reader :related_object end - # Occurs whenever a Sigma scheduled query run finishes. - class V1SigmaScheduledQueryRunCreatedEventNotification < Stripe::V2::Core::EventNotification + # Sent after a failed attempt if there are still retries available on the OffSessionPayment. + class V2PaymentsOffSessionPaymentAttemptFailedEventNotification < Stripe::V2::Core::EventNotification def self.lookup_type - "v1.sigma.scheduled_query_run.created" + "v2.payments.off_session_payment.attempt_failed" end attr_reader :related_object - # Retrieves the ScheduledQueryRun related to this EventNotification from the Stripe API. Makes an API request on every call. + # Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call. def fetch_related_object resp = @client.raw_request( :get, diff --git a/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb b/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb similarity index 60% rename from lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb rename to lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb index 43b972a8f..45d9a957e 100644 --- a/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +++ b/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb @@ -3,10 +3,11 @@ module Stripe module Events - # Occurs whenever an early fraud warning is created. - class V1RadarEarlyFraudWarningCreatedEvent < Stripe::V2::Core::Event + # Sent when our internal scheduling system kicks off an attempt, whether it's a + # retry or an initial attempt. + class V2PaymentsOffSessionPaymentAttemptStartedEvent < Stripe::V2::Core::Event def self.lookup_type - "v1.radar.early_fraud_warning.created" + "v2.payments.off_session_payment.attempt_started" end # Retrieves the related object from the API. Makes an API request on every call. @@ -21,15 +22,16 @@ def fetch_related_object attr_reader :related_object end - # Occurs whenever an early fraud warning is created. - class V1RadarEarlyFraudWarningCreatedEventNotification < Stripe::V2::Core::EventNotification + # Sent when our internal scheduling system kicks off an attempt, whether it's a + # retry or an initial attempt. + class V2PaymentsOffSessionPaymentAttemptStartedEventNotification < Stripe::V2::Core::EventNotification def self.lookup_type - "v1.radar.early_fraud_warning.created" + "v2.payments.off_session_payment.attempt_started" end attr_reader :related_object - # Retrieves the EarlyFraudWarning related to this EventNotification from the Stripe API. Makes an API request on every call. + # Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call. def fetch_related_object resp = @client.raw_request( :get, diff --git a/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb b/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb index dd37d25aa..4a51642b9 100644 --- a/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +++ b/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb @@ -4,6 +4,7 @@ module Stripe module Events # Sent after a failed authorization if there are still retries available on the OffSessionPayment. + # This event has been renamed this to attempt_failed, but we are keeping this around for backwards compatibility. class V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent < Stripe::V2::Core::Event def self.lookup_type "v2.payments.off_session_payment.authorization_attempt_failed" @@ -22,6 +23,7 @@ def fetch_related_object end # Sent after a failed authorization if there are still retries available on the OffSessionPayment. + # This event has been renamed this to attempt_failed, but we are keeping this around for backwards compatibility. class V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification < Stripe::V2::Core::EventNotification def self.lookup_type "v2.payments.off_session_payment.authorization_attempt_failed" diff --git a/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb b/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb index ed63cc718..4df22e87a 100644 --- a/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +++ b/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb @@ -5,6 +5,7 @@ module Stripe module Events # Sent when our internal scheduling system kicks off an attempt at authorization, whether it's a # retry or an initial authorization. + # This event has been renamed this to attempt_failed, but we are keeping this around for backwards compatibility. class V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent < Stripe::V2::Core::Event def self.lookup_type "v2.payments.off_session_payment.authorization_attempt_started" @@ -24,6 +25,7 @@ def fetch_related_object # Sent when our internal scheduling system kicks off an attempt at authorization, whether it's a # retry or an initial authorization. + # This event has been renamed this to attempt_failed, but we are keeping this around for backwards compatibility. class V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification < Stripe::V2::Core::EventNotification def self.lookup_type "v2.payments.off_session_payment.authorization_attempt_started" diff --git a/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb b/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb index b944848bc..94f0deecc 100644 --- a/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +++ b/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb @@ -3,7 +3,7 @@ module Stripe module Events - # Off-Session payment requires capture event definition. + # Sent when the off-session payment becomes available for capture. class V2PaymentsOffSessionPaymentRequiresCaptureEvent < Stripe::V2::Core::Event def self.lookup_type "v2.payments.off_session_payment.requires_capture" @@ -21,7 +21,7 @@ def fetch_related_object attr_reader :related_object end - # Off-Session payment requires capture event definition. + # Sent when the off-session payment becomes available for capture. class V2PaymentsOffSessionPaymentRequiresCaptureEventNotification < Stripe::V2::Core::EventNotification def self.lookup_type "v2.payments.off_session_payment.requires_capture" diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 49f8ab00b..bd86be74f 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -225,6 +225,8 @@ def self.v2_object_names_to_classes V2::Core::Account.object_name => V2::Core::Account, V2::Core::AccountLink.object_name => V2::Core::AccountLink, V2::Core::AccountPerson.object_name => V2::Core::AccountPerson, + V2::Core::AccountPersonToken.object_name => V2::Core::AccountPersonToken, + V2::Core::AccountToken.object_name => V2::Core::AccountToken, V2::Core::ClaimableSandbox.object_name => V2::Core::ClaimableSandbox, V2::Core::Event.object_name => V2::Core::Event, V2::Core::EventDestination.object_name => V2::Core::EventDestination, @@ -234,6 +236,7 @@ def self.v2_object_names_to_classes V2::FinancialAddressGeneratedMicrodeposits.object_name => V2::FinancialAddressGeneratedMicrodeposits, V2::MoneyManagement::Adjustment.object_name => V2::MoneyManagement::Adjustment, + V2::MoneyManagement::CurrencyConversion.object_name => V2::MoneyManagement::CurrencyConversion, V2::MoneyManagement::FinancialAccount.object_name => V2::MoneyManagement::FinancialAccount, V2::MoneyManagement::FinancialAddress.object_name => V2::MoneyManagement::FinancialAddress, V2::MoneyManagement::InboundTransfer.object_name => V2::MoneyManagement::InboundTransfer, diff --git a/lib/stripe/params.rb b/lib/stripe/params.rb index 09c76b91f..3d3e097e0 100644 --- a/lib/stripe/params.rb +++ b/lib/stripe/params.rb @@ -762,11 +762,15 @@ require "stripe/params/v2/core/account_link_create_params" require "stripe/params/v2/core/account_list_params" require "stripe/params/v2/core/account_retrieve_params" +require "stripe/params/v2/core/account_token_create_params" +require "stripe/params/v2/core/account_token_retrieve_params" require "stripe/params/v2/core/account_update_params" require "stripe/params/v2/core/accounts/person_create_params" require "stripe/params/v2/core/accounts/person_delete_params" require "stripe/params/v2/core/accounts/person_list_params" require "stripe/params/v2/core/accounts/person_retrieve_params" +require "stripe/params/v2/core/accounts/person_token_create_params" +require "stripe/params/v2/core/accounts/person_token_retrieve_params" require "stripe/params/v2/core/accounts/person_update_params" require "stripe/params/v2/core/claimable_sandbox_create_params" require "stripe/params/v2/core/claimable_sandbox_retrieve_params" @@ -795,6 +799,9 @@ require "stripe/params/v2/core/vault/us_bank_account_update_params" require "stripe/params/v2/money_management/adjustment_list_params" require "stripe/params/v2/money_management/adjustment_retrieve_params" +require "stripe/params/v2/money_management/currency_conversion_create_params" +require "stripe/params/v2/money_management/currency_conversion_list_params" +require "stripe/params/v2/money_management/currency_conversion_retrieve_params" require "stripe/params/v2/money_management/financial_account_close_params" require "stripe/params/v2/money_management/financial_account_create_params" require "stripe/params/v2/money_management/financial_account_list_params" diff --git a/lib/stripe/params/invoice_create_preview_params.rb b/lib/stripe/params/invoice_create_preview_params.rb index 013762ea3..2b5218e44 100644 --- a/lib/stripe/params/invoice_create_preview_params.rb +++ b/lib/stripe/params/invoice_create_preview_params.rb @@ -598,6 +598,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -605,7 +607,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -613,6 +616,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end @@ -692,6 +696,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -699,7 +705,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -707,6 +714,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item. @@ -802,6 +810,8 @@ def initialize(end_behavior: nil) attr_accessor :trial_settings # Actions to apply to the billing schedules. attr_accessor :billing_schedules_actions + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_accessor :effective_at def initialize( amendment_end: nil, @@ -814,7 +824,8 @@ def initialize( set_pause_collection: nil, set_schedule_end: nil, trial_settings: nil, - billing_schedules_actions: nil + billing_schedules_actions: nil, + effective_at: nil ) @amendment_end = amendment_end @amendment_start = amendment_start @@ -827,6 +838,7 @@ def initialize( @set_schedule_end = set_schedule_end @trial_settings = trial_settings @billing_schedules_actions = billing_schedules_actions + @effective_at = effective_at end end @@ -1282,6 +1294,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( billing_thresholds: nil, @@ -1292,7 +1306,8 @@ def initialize( price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @billing_thresholds = billing_thresholds @discounts = discounts @@ -1303,6 +1318,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end @@ -1393,6 +1409,8 @@ def initialize(end_behavior: nil) attr_accessor :trial_end # Settings related to subscription trials. attr_accessor :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_accessor :effective_at def initialize( add_invoice_items: nil, @@ -1419,7 +1437,8 @@ def initialize( trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ) @add_invoice_items = add_invoice_items @application_fee_percent = application_fee_percent @@ -1446,6 +1465,7 @@ def initialize( @trial_continuation = trial_continuation @trial_end = trial_end @trial_settings = trial_settings + @effective_at = effective_at end end @@ -1618,6 +1638,18 @@ def initialize(usage_gte: nil) end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + attr_accessor :trial_end + # The ID of the trial offer to apply to the subscription item. + attr_accessor :trial_offer + + def initialize(trial_end: nil, trial_offer: nil) + @trial_end = trial_end + @trial_offer = trial_offer + end + end + class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -1724,6 +1756,8 @@ def initialize( attr_accessor :quantity # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates. attr_accessor :tax_rates + # The trial offer to apply to this subscription item. + attr_accessor :current_trial def initialize( billing_thresholds: nil, @@ -1736,7 +1770,8 @@ def initialize( price: nil, price_data: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ) @billing_thresholds = billing_thresholds @clear_usage = clear_usage @@ -1749,6 +1784,7 @@ def initialize( @price_data = price_data @quantity = quantity @tax_rates = tax_rates + @current_trial = current_trial end end diff --git a/lib/stripe/params/quote_create_params.rb b/lib/stripe/params/quote_create_params.rb index 08e675ed8..ff9805652 100644 --- a/lib/stripe/params/quote_create_params.rb +++ b/lib/stripe/params/quote_create_params.rb @@ -208,6 +208,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -215,7 +217,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -223,6 +226,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end @@ -332,6 +336,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -339,7 +345,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -347,6 +354,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end # Details for the `add_discount` type. @@ -554,6 +562,8 @@ def initialize(end_behavior: nil) attr_accessor :starts_at # Settings related to subscription trials. attr_accessor :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_accessor :effective_at def initialize( actions: nil, @@ -565,7 +575,8 @@ def initialize( set_pause_collection: nil, set_schedule_end: nil, starts_at: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ) @actions = actions @applies_to = applies_to @@ -577,6 +588,7 @@ def initialize( @set_schedule_end = set_schedule_end @starts_at = starts_at @trial_settings = trial_settings + @effective_at = effective_at end end diff --git a/lib/stripe/params/quote_update_params.rb b/lib/stripe/params/quote_update_params.rb index 194c6e18b..1f049ad03 100644 --- a/lib/stripe/params/quote_update_params.rb +++ b/lib/stripe/params/quote_update_params.rb @@ -196,6 +196,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -203,7 +205,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -211,6 +214,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end @@ -320,6 +324,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -327,7 +333,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -335,6 +342,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end # Details for the `add_discount` type. @@ -547,6 +555,8 @@ def initialize(end_behavior: nil) attr_accessor :starts_at # Settings related to subscription trials. attr_accessor :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_accessor :effective_at def initialize( actions: nil, @@ -559,7 +569,8 @@ def initialize( set_pause_collection: nil, set_schedule_end: nil, starts_at: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ) @actions = actions @applies_to = applies_to @@ -572,6 +583,7 @@ def initialize( @set_schedule_end = set_schedule_end @starts_at = starts_at @trial_settings = trial_settings + @effective_at = effective_at end end diff --git a/lib/stripe/params/subscription_create_params.rb b/lib/stripe/params/subscription_create_params.rb index 69f67a485..642971466 100644 --- a/lib/stripe/params/subscription_create_params.rb +++ b/lib/stripe/params/subscription_create_params.rb @@ -346,6 +346,18 @@ def initialize(usage_gte: nil) end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + attr_accessor :trial_end + # The ID of the trial offer to apply to the subscription item. + attr_accessor :trial_offer + + def initialize(trial_end: nil, trial_offer: nil) + @trial_end = trial_end + @trial_offer = trial_offer + end + end + class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -460,6 +472,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Define options to configure the trial on the subscription item. attr_accessor :trial + # The trial offer to apply to this subscription item. + attr_accessor :current_trial def initialize( billing_thresholds: nil, @@ -470,7 +484,8 @@ def initialize( price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + current_trial: nil ) @billing_thresholds = billing_thresholds @discounts = discounts @@ -481,6 +496,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @current_trial = current_trial end end diff --git a/lib/stripe/params/subscription_item_create_params.rb b/lib/stripe/params/subscription_item_create_params.rb index 464adb5c8..da16e9bce 100644 --- a/lib/stripe/params/subscription_item_create_params.rb +++ b/lib/stripe/params/subscription_item_create_params.rb @@ -12,6 +12,18 @@ def initialize(usage_gte: nil) end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + attr_accessor :trial_end + # The ID of the trial offer to apply to the subscription item. + attr_accessor :trial_offer + + def initialize(trial_end: nil, trial_offer: nil) + @trial_end = trial_end + @trial_offer = trial_offer + end + end + class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -142,6 +154,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The trial offer to apply to this subscription item. + attr_accessor :current_trial def initialize( billing_thresholds: nil, @@ -157,7 +171,8 @@ def initialize( quantity: nil, subscription: nil, tax_rates: nil, - trial: nil + trial: nil, + current_trial: nil ) @billing_thresholds = billing_thresholds @discounts = discounts @@ -173,6 +188,7 @@ def initialize( @subscription = subscription @tax_rates = tax_rates @trial = trial + @current_trial = current_trial end end end diff --git a/lib/stripe/params/subscription_item_update_params.rb b/lib/stripe/params/subscription_item_update_params.rb index fa8a79fb0..0a65fa3e5 100644 --- a/lib/stripe/params/subscription_item_update_params.rb +++ b/lib/stripe/params/subscription_item_update_params.rb @@ -12,6 +12,18 @@ def initialize(usage_gte: nil) end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + attr_accessor :trial_end + # The ID of the trial offer to apply to the subscription item. + attr_accessor :trial_offer + + def initialize(trial_end: nil, trial_offer: nil) + @trial_end = trial_end + @trial_offer = trial_offer + end + end + class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -128,6 +140,8 @@ def initialize( attr_accessor :quantity # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates. attr_accessor :tax_rates + # The trial offer to apply to this subscription item. + attr_accessor :current_trial def initialize( billing_thresholds: nil, @@ -142,7 +156,8 @@ def initialize( proration_behavior: nil, proration_date: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ) @billing_thresholds = billing_thresholds @discounts = discounts @@ -157,6 +172,7 @@ def initialize( @proration_date = proration_date @quantity = quantity @tax_rates = tax_rates + @current_trial = current_trial end end end diff --git a/lib/stripe/params/subscription_schedule_amend_params.rb b/lib/stripe/params/subscription_schedule_amend_params.rb index ba9ebb9ac..c0411395c 100644 --- a/lib/stripe/params/subscription_schedule_amend_params.rb +++ b/lib/stripe/params/subscription_schedule_amend_params.rb @@ -250,6 +250,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -257,7 +259,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -265,6 +268,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end @@ -344,6 +348,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( discounts: nil, @@ -351,7 +357,8 @@ def initialize( price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @discounts = discounts @metadata = metadata @@ -359,6 +366,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item. @@ -454,6 +462,8 @@ def initialize(end_behavior: nil) attr_accessor :trial_settings # Actions to apply to the billing schedules. attr_accessor :billing_schedules_actions + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_accessor :effective_at def initialize( amendment_end: nil, @@ -466,7 +476,8 @@ def initialize( set_pause_collection: nil, set_schedule_end: nil, trial_settings: nil, - billing_schedules_actions: nil + billing_schedules_actions: nil, + effective_at: nil ) @amendment_end = amendment_end @amendment_start = amendment_start @@ -479,6 +490,7 @@ def initialize( @set_schedule_end = set_schedule_end @trial_settings = trial_settings @billing_schedules_actions = billing_schedules_actions + @effective_at = effective_at end end diff --git a/lib/stripe/params/subscription_schedule_create_params.rb b/lib/stripe/params/subscription_schedule_create_params.rb index 05faa9011..eaef54b85 100644 --- a/lib/stripe/params/subscription_schedule_create_params.rb +++ b/lib/stripe/params/subscription_schedule_create_params.rb @@ -578,6 +578,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( billing_thresholds: nil, @@ -588,7 +590,8 @@ def initialize( price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @billing_thresholds = billing_thresholds @discounts = discounts @@ -599,6 +602,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end @@ -687,6 +691,8 @@ def initialize(end_behavior: nil) attr_accessor :trial_end # Settings related to subscription trials. attr_accessor :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_accessor :effective_at def initialize( add_invoice_items: nil, @@ -712,7 +718,8 @@ def initialize( trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ) @add_invoice_items = add_invoice_items @application_fee_percent = application_fee_percent @@ -738,6 +745,7 @@ def initialize( @trial_continuation = trial_continuation @trial_end = trial_end @trial_settings = trial_settings + @effective_at = effective_at end end diff --git a/lib/stripe/params/subscription_schedule_update_params.rb b/lib/stripe/params/subscription_schedule_update_params.rb index fa892daef..55ec78de1 100644 --- a/lib/stripe/params/subscription_schedule_update_params.rb +++ b/lib/stripe/params/subscription_schedule_update_params.rb @@ -558,6 +558,8 @@ def initialize(converts_to: nil, type: nil) attr_accessor :tax_rates # Options that configure the trial on the subscription item. attr_accessor :trial + # The ID of the trial offer to apply to the configuration item. + attr_accessor :trial_offer def initialize( billing_thresholds: nil, @@ -568,7 +570,8 @@ def initialize( price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ) @billing_thresholds = billing_thresholds @discounts = discounts @@ -579,6 +582,7 @@ def initialize( @quantity = quantity @tax_rates = tax_rates @trial = trial + @trial_offer = trial_offer end end @@ -669,6 +673,8 @@ def initialize(end_behavior: nil) attr_accessor :trial_end # Settings related to subscription trials. attr_accessor :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_accessor :effective_at def initialize( add_invoice_items: nil, @@ -695,7 +701,8 @@ def initialize( trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ) @add_invoice_items = add_invoice_items @application_fee_percent = application_fee_percent @@ -722,6 +729,7 @@ def initialize( @trial_continuation = trial_continuation @trial_end = trial_end @trial_settings = trial_settings + @effective_at = effective_at end end diff --git a/lib/stripe/params/subscription_update_params.rb b/lib/stripe/params/subscription_update_params.rb index 9ac69ed0c..42a3c533f 100644 --- a/lib/stripe/params/subscription_update_params.rb +++ b/lib/stripe/params/subscription_update_params.rb @@ -317,6 +317,18 @@ def initialize(usage_gte: nil) end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + attr_accessor :trial_end + # The ID of the trial offer to apply to the subscription item. + attr_accessor :trial_offer + + def initialize(trial_end: nil, trial_offer: nil) + @trial_end = trial_end + @trial_offer = trial_offer + end + end + class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -423,6 +435,8 @@ def initialize( attr_accessor :quantity # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates. attr_accessor :tax_rates + # The trial offer to apply to this subscription item. + attr_accessor :current_trial def initialize( billing_thresholds: nil, @@ -435,7 +449,8 @@ def initialize( price: nil, price_data: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ) @billing_thresholds = billing_thresholds @clear_usage = clear_usage @@ -448,6 +463,7 @@ def initialize( @price_data = price_data @quantity = quantity @tax_rates = tax_rates + @current_trial = current_trial end end diff --git a/lib/stripe/params/v2/billing/collection_setting_create_params.rb b/lib/stripe/params/v2/billing/collection_setting_create_params.rb index 04ab5017b..14bcc006f 100644 --- a/lib/stripe/params/v2/billing/collection_setting_create_params.rb +++ b/lib/stripe/params/v2/billing/collection_setting_create_params.rb @@ -75,9 +75,9 @@ def initialize(amount: nil, amount_type: nil, description: nil) # Selected network to process the payment on. Depends on the available networks of the card. attr_accessor :network # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_accessor :request_three_d_secure def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil) diff --git a/lib/stripe/params/v2/billing/collection_setting_update_params.rb b/lib/stripe/params/v2/billing/collection_setting_update_params.rb index b86ee02b3..d2313062f 100644 --- a/lib/stripe/params/v2/billing/collection_setting_update_params.rb +++ b/lib/stripe/params/v2/billing/collection_setting_update_params.rb @@ -75,9 +75,9 @@ def initialize(amount: nil, amount_type: nil, description: nil) # Selected network to process the payment on. Depends on the available networks of the card. attr_accessor :network # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_accessor :request_three_d_secure def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil) diff --git a/lib/stripe/params/v2/billing/service_action_create_params.rb b/lib/stripe/params/v2/billing/service_action_create_params.rb index 6fd639f7b..58c0c9cf5 100644 --- a/lib/stripe/params/v2/billing/service_action_create_params.rb +++ b/lib/stripe/params/v2/billing/service_action_create_params.rb @@ -18,6 +18,18 @@ def initialize(id: nil, value: nil) @value = value end end + + class Monetary < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. attr_accessor :type # The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`. @@ -103,6 +115,18 @@ def initialize(id: nil, value: nil) @value = value end end + + class Monetary < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. attr_accessor :type # The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`. diff --git a/lib/stripe/params/v2/core/account_create_params.rb b/lib/stripe/params/v2/core/account_create_params.rb index 8eceb3c53..8c3cd4168 100644 --- a/lib/stripe/params/v2/core/account_create_params.rb +++ b/lib/stripe/params/v2/core/account_create_params.rb @@ -149,7 +149,7 @@ class AutomaticIndirectTax < ::Stripe::RequestParams attr_accessor :exempt # A recent IP address of the customer used for tax reporting and tax location inference. attr_accessor :ip_address - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. attr_accessor :location_source def initialize(exempt: nil, ip_address: nil, location_source: nil) @@ -226,7 +226,7 @@ def initialize(requested: nil) @requested = requested end end - # 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. Uses the `location_source` field. + # 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. attr_accessor :automatic_indirect_tax def initialize(automatic_indirect_tax: nil) @@ -930,6 +930,75 @@ def initialize(decline_on: nil) end end + class KonbiniPayments < ::Stripe::RequestParams + class Support < ::Stripe::RequestParams + class Hours < ::Stripe::RequestParams + # Support hours end time (JST time of day) for in `HH:MM` format. + attr_accessor :end_time + # Support hours start time (JST time of day) for in `HH:MM` format. + attr_accessor :start_time + + def initialize(end_time: nil, start_time: nil) + @end_time = end_time + @start_time = start_time + end + end + # Support email address for Konbini payments. + attr_accessor :email + # Support hours for Konbini payments. + attr_accessor :hours + # Support phone number for Konbini payments. + attr_accessor :phone + + def initialize(email: nil, hours: nil, phone: nil) + @email = email + @hours = hours + @phone = phone + end + end + # Support for Konbini payments. + attr_accessor :support + + def initialize(support: nil) + @support = support + end + end + + class ScriptStatementDescriptor < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # 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. + attr_accessor :descriptor + # 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. + attr_accessor :prefix + + def initialize(descriptor: nil, prefix: nil) + @descriptor = descriptor + @prefix = prefix + end + end + + class Kanji < ::Stripe::RequestParams + # 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. + attr_accessor :descriptor + # 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. + attr_accessor :prefix + + def initialize(descriptor: nil, prefix: nil) + @descriptor = descriptor + @prefix = prefix + end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + attr_accessor :kana + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + class StatementDescriptor < ::Stripe::RequestParams # 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. attr_accessor :descriptor @@ -1001,8 +1070,12 @@ def initialize(address: nil, email: nil, phone: nil, url: nil) attr_accessor :capabilities # Card payments settings. attr_accessor :card_payments + # Settings specific to Konbini payments on the account. + attr_accessor :konbini_payments # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide. attr_accessor :mcc + # Settings for the default text that appears on statements for language variations. + attr_accessor :script_statement_descriptor # Statement descriptor. attr_accessor :statement_descriptor # Publicly available contact information for sending support issues to. @@ -1013,7 +1086,9 @@ def initialize( branding: nil, capabilities: nil, card_payments: nil, + konbini_payments: nil, mcc: nil, + script_statement_descriptor: nil, statement_descriptor: nil, support: nil ) @@ -1021,7 +1096,9 @@ def initialize( @branding = branding @capabilities = capabilities @card_payments = card_payments + @konbini_payments = konbini_payments @mcc = mcc + @script_statement_descriptor = script_statement_descriptor @statement_descriptor = statement_descriptor @support = support end @@ -1153,6 +1230,15 @@ def initialize(bank_accounts: nil, crypto_wallets: nil) end class HoldsCurrencies < ::Stripe::RequestParams + class Eur < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class Gbp < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -1179,6 +1265,8 @@ def initialize(requested: nil) @requested = requested end end + # Can hold storage-type funds on Stripe in EUR. + attr_accessor :eur # Can hold storage-type funds on Stripe in GBP. attr_accessor :gbp # Can hold storage-type funds on Stripe in USD. @@ -1186,7 +1274,8 @@ def initialize(requested: nil) # Can hold storage-type funds on Stripe in USDC. attr_accessor :usdc - def initialize(gbp: nil, usd: nil, usdc: nil) + def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil) + @eur = eur @gbp = gbp @usd = usd @usdc = usdc @@ -2058,6 +2147,17 @@ def initialize( end class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end # A non-negative integer representing the amount in the smallest currency unit. attr_accessor :amount # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. @@ -2262,6 +2362,17 @@ def initialize(registrar: nil, type: nil, value: nil) end class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end # A non-negative integer representing the amount in the smallest currency unit. attr_accessor :amount @@ -2901,6 +3012,8 @@ def initialize( @individual = individual end end + # The account token generated by the account token api. + attr_accessor :account_token # An Account Configuration which allows the Account to take on a key persona across Stripe products. attr_accessor :configuration # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. @@ -2919,6 +3032,7 @@ def initialize( attr_accessor :metadata def initialize( + account_token: nil, configuration: nil, contact_email: nil, dashboard: nil, @@ -2928,6 +3042,7 @@ def initialize( include: nil, metadata: nil ) + @account_token = account_token @configuration = configuration @contact_email = contact_email @dashboard = dashboard diff --git a/lib/stripe/params/v2/core/account_token_create_params.rb b/lib/stripe/params/v2/core/account_token_create_params.rb new file mode 100644 index 000000000..603968fa7 --- /dev/null +++ b/lib/stripe/params/v2/core/account_token_create_params.rb @@ -0,0 +1,1259 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + class AccountTokenCreateParams < ::Stripe::RequestParams + class Identity < ::Stripe::RequestParams + class Attestations < ::Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams + # A boolean indicating if the directors information has been attested. + attr_accessor :attested + + def initialize(attested: nil) + @attested = attested + end + end + + class OwnershipDeclaration < ::Stripe::RequestParams + # A boolean indicating if the beneficial owner information has been attested. + attr_accessor :attested + + def initialize(attested: nil) + @attested = attested + end + end + + class PersonsProvided < ::Stripe::RequestParams + # Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + attr_accessor :directors + # Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + attr_accessor :executives + # Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + attr_accessor :owners + # Reason for why the company is exempt from providing ownership information. + attr_accessor :ownership_exemption_reason + + def initialize( + directors: nil, + executives: nil, + owners: nil, + ownership_exemption_reason: nil + ) + @directors = directors + @executives = executives + @owners = owners + @ownership_exemption_reason = ownership_exemption_reason + end + end + + class RepresentativeDeclaration < ::Stripe::RequestParams + # A boolean indicating if the representative is authorized to act as the representative of their legal entity. + attr_accessor :attested + + def initialize(attested: nil) + @attested = attested + end + end + + class TermsOfService < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class CardCreator < ::Stripe::RequestParams + class Commercial < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class Celtic < ::Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class ChargeCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor. + attr_accessor :bank_terms + # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor. + attr_accessor :platform + + def initialize(bank_terms: nil, platform: nil) + @bank_terms = bank_terms + @platform = platform + end + end + + class SpendCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + attr_accessor :bank_terms + # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + attr_accessor :financing_disclosures + # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + attr_accessor :platform + + def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil) + @bank_terms = bank_terms + @financing_disclosures = financing_disclosures + @platform = platform + end + end + # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor. + attr_accessor :apple_pay + # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor. + attr_accessor :charge_card + # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor. + attr_accessor :spend_card + + def initialize(apple_pay: nil, charge_card: nil, spend_card: nil) + @apple_pay = apple_pay + @charge_card = charge_card + @spend_card = spend_card + end + end + + class CrossRiverBank < ::Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class ChargeCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + attr_accessor :bank_terms + # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + attr_accessor :financing_disclosures + # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + attr_accessor :platform + + def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil) + @bank_terms = bank_terms + @financing_disclosures = financing_disclosures + @platform = platform + end + end + + class SpendCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor. + attr_accessor :bank_terms + # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor. + attr_accessor :financing_disclosures + + def initialize(bank_terms: nil, financing_disclosures: nil) + @bank_terms = bank_terms + @financing_disclosures = financing_disclosures + end + end + # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor. + attr_accessor :apple_pay + # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor. + attr_accessor :charge_card + # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor. + attr_accessor :spend_card + + def initialize(apple_pay: nil, charge_card: nil, spend_card: nil) + @apple_pay = apple_pay + @charge_card = charge_card + @spend_card = spend_card + end + end + # Terms of service acceptances for Stripe commercial card issuing. + attr_accessor :account_holder + # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor. + attr_accessor :celtic + # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor. + attr_accessor :cross_river_bank + + def initialize(account_holder: nil, celtic: nil, cross_river_bank: nil) + @account_holder = account_holder + @celtic = celtic + @cross_river_bank = cross_river_bank + end + end + # Terms of service acceptances to create cards for commercial issuing use cases. + attr_accessor :commercial + + def initialize(commercial: nil) + @commercial = commercial + end + end + + class CryptoStorer < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + + class Storer < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + # Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + attr_accessor :account + # Details on the Account's acceptance of Issuing-specific terms of service. + attr_accessor :card_creator + # Details on the Account's acceptance of Crypto-storer-specific terms of service; IP, date, and User Agent are expanded by Stripe. + attr_accessor :crypto_storer + # Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe. + attr_accessor :storer + + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil) + @account = account + @card_creator = card_creator + @crypto_storer = crypto_storer + @storer = storer + end + end + # 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. + attr_accessor :directorship_declaration + # 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. + attr_accessor :ownership_declaration + # Attestation that all Persons with a specific Relationship value have been provided. + attr_accessor :persons_provided + # 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. + attr_accessor :representative_declaration + # Attestations of accepted terms of service agreements. + attr_accessor :terms_of_service + + def initialize( + directorship_declaration: nil, + ownership_declaration: nil, + persons_provided: nil, + representative_declaration: nil, + terms_of_service: nil + ) + @directorship_declaration = directorship_declaration + @ownership_declaration = ownership_declaration + @persons_provided = persons_provided + @representative_declaration = representative_declaration + @terms_of_service = terms_of_service + end + end + + class BusinessDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + + class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + # A non-negative integer representing the amount in the smallest currency unit. + attr_accessor :amount + # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. + attr_accessor :fiscal_year_end + + def initialize(amount: nil, fiscal_year_end: nil) + @amount = amount + @fiscal_year_end = fiscal_year_end + end + end + + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class CompanyLicense < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class CompanyMinisterialDecree < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class CompanyRegistrationVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class CompanyTaxIdVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :back + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :front + + def initialize(back: nil, front: nil) + @back = back + @front = front + end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + attr_accessor :front_back + # The format of the verification document. Currently supports `front_back` only. + attr_accessor :type + + def initialize(front_back: nil, type: nil) + @front_back = front_back + @type = type + end + end + + class ProofOfAddress < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class ProofOfRegistration < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + # 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. + attr_accessor :bank_account_ownership_verification + # One or more documents that demonstrate proof of a company’s license to operate. + attr_accessor :company_license + # One or more documents showing the company’s Memorandum of Association. + attr_accessor :company_memorandum_of_association + # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment. + attr_accessor :company_ministerial_decree + # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities. + attr_accessor :company_registration_verification + # One or more documents that demonstrate proof of a company’s tax ID. + attr_accessor :company_tax_id_verification + # A document verifying the business. + attr_accessor :primary_verification + # One or more documents that demonstrate proof of address. + attr_accessor :proof_of_address + # One or more documents showing the company’s proof of registration with the national business registry. + attr_accessor :proof_of_registration + # One or more documents that demonstrate proof of ultimate beneficial ownership. + attr_accessor :proof_of_ultimate_beneficial_ownership + + def initialize( + bank_account_ownership_verification: nil, + company_license: nil, + company_memorandum_of_association: nil, + company_ministerial_decree: nil, + company_registration_verification: nil, + company_tax_id_verification: nil, + primary_verification: nil, + proof_of_address: nil, + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil + ) + @bank_account_ownership_verification = bank_account_ownership_verification + @company_license = company_license + @company_memorandum_of_association = company_memorandum_of_association + @company_ministerial_decree = company_ministerial_decree + @company_registration_verification = company_registration_verification + @company_tax_id_verification = company_tax_id_verification + @primary_verification = primary_verification + @proof_of_address = proof_of_address + @proof_of_registration = proof_of_registration + @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership + end + end + + class IdNumber < ::Stripe::RequestParams + # The registrar of the ID number (Only valid for DE ID number types). + attr_accessor :registrar + # Open Enum. The ID number type of a business entity. + attr_accessor :type + # The value of the ID number. + attr_accessor :value + + def initialize(registrar: nil, type: nil, value: nil) + @registrar = registrar + @type = type + @value = value + end + end + + class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + # A non-negative integer representing the amount in the smallest currency unit. + attr_accessor :amount + + def initialize(amount: nil) + @amount = amount + end + end + + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + # Kana Address. + attr_accessor :kana + # Kanji Address. + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # Registered name of the business. + attr_accessor :registered_name + + def initialize(registered_name: nil) + @registered_name = registered_name + end + end + + class Kanji < ::Stripe::RequestParams + # Registered name of the business. + attr_accessor :registered_name + + def initialize(registered_name: nil) + @registered_name = registered_name + end + end + # Kana name. + attr_accessor :kana + # Kanji name. + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + # The business registration address of the business entity. + attr_accessor :address + # The business gross annual revenue for its preceding fiscal year. + attr_accessor :annual_revenue + # A detailed description of the business's compliance and anti-money laundering controls and practices. + attr_accessor :compliance_screening_description + # A document verifying the business. + attr_accessor :documents + # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. + attr_accessor :estimated_worker_count + # The ID numbers of a business entity. + attr_accessor :id_numbers + # An estimate of the monthly revenue of the business. + attr_accessor :monthly_estimated_revenue + # The phone number of the Business Entity. + attr_accessor :phone + # The business legal name. + attr_accessor :registered_name + # The business registration address of the business entity in non latin script. + attr_accessor :script_addresses + # The business legal name in non latin script. + attr_accessor :script_names + # The category identifying the legal structure of the business. + attr_accessor :structure + + def initialize( + address: nil, + annual_revenue: nil, + compliance_screening_description: nil, + documents: nil, + estimated_worker_count: nil, + id_numbers: nil, + monthly_estimated_revenue: nil, + phone: nil, + registered_name: nil, + script_addresses: nil, + script_names: nil, + structure: nil + ) + @address = address + @annual_revenue = annual_revenue + @compliance_screening_description = compliance_screening_description + @documents = documents + @estimated_worker_count = estimated_worker_count + @id_numbers = id_numbers + @monthly_estimated_revenue = monthly_estimated_revenue + @phone = phone + @registered_name = registered_name + @script_addresses = script_addresses + @script_names = script_names + @structure = structure + end + end + + class Individual < ::Stripe::RequestParams + class AdditionalAddress < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # Purpose of additional address. + attr_accessor :purpose + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + purpose: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @purpose = purpose + @state = state + @town = town + end + end + + class AdditionalName < ::Stripe::RequestParams + # The person's full name. + attr_accessor :full_name + # The person's first or given name. + attr_accessor :given_name + # The purpose or type of the additional name. + attr_accessor :purpose + # The person's last or family name. + attr_accessor :surname + + def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil) + @full_name = full_name + @given_name = given_name + @purpose = purpose + @surname = surname + end + end + + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + + class DateOfBirth < ::Stripe::RequestParams + # The day of the birth. + attr_accessor :day + # The month of birth. + attr_accessor :month + # The year of birth. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class Passport < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :back + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :front + + def initialize(back: nil, front: nil) + @back = back + @front = front + end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + attr_accessor :front_back + # The format of the verification document. Currently supports `front_back` only. + attr_accessor :type + + def initialize(front_back: nil, type: nil) + @front_back = front_back + @type = type + end + end + + class SecondaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :back + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :front + + def initialize(back: nil, front: nil) + @back = back + @front = front + end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + attr_accessor :front_back + # The format of the verification document. Currently supports `front_back` only. + attr_accessor :type + + def initialize(front_back: nil, type: nil) + @front_back = front_back + @type = type + end + end + + class Visa < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + # One or more documents that demonstrate proof that this person is authorized to represent the company. + attr_accessor :company_authorization + # One or more documents showing the person’s passport page with photo and personal data. + attr_accessor :passport + # An identifying document showing the person's name, either a passport or local ID card. + attr_accessor :primary_verification + # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + attr_accessor :secondary_verification + # One or more documents showing the person’s visa required for living in the country where they are residing. + attr_accessor :visa + + def initialize( + company_authorization: nil, + passport: nil, + primary_verification: nil, + secondary_verification: nil, + visa: nil + ) + @company_authorization = company_authorization + @passport = passport + @primary_verification = primary_verification + @secondary_verification = secondary_verification + @visa = visa + end + end + + class IdNumber < ::Stripe::RequestParams + # The ID number type of an individual. + attr_accessor :type + # The value of the ID number. + attr_accessor :value + + def initialize(type: nil, value: nil) + @type = type + @value = value + end + end + + class Relationship < ::Stripe::RequestParams + # 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. + attr_accessor :director + # Whether the person has significant responsibility to control, manage, or direct the organization. + attr_accessor :executive + # Whether the person is an owner of the account’s identity. + attr_accessor :owner + # The percent owned by the person of the account's legal entity. + attr_accessor :percent_ownership + # The person's title (e.g., CEO, Support Engineer). + attr_accessor :title + + def initialize( + director: nil, + executive: nil, + owner: nil, + percent_ownership: nil, + title: nil + ) + @director = director + @executive = executive + @owner = owner + @percent_ownership = percent_ownership + @title = title + end + end + + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + # Kana Address. + attr_accessor :kana + # Kanji Address. + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # The person's first or given name. + attr_accessor :given_name + # The person's last or family name. + attr_accessor :surname + + def initialize(given_name: nil, surname: nil) + @given_name = given_name + @surname = surname + end + end + + class Kanji < ::Stripe::RequestParams + # The person's first or given name. + attr_accessor :given_name + # The person's last or family name. + attr_accessor :surname + + def initialize(given_name: nil, surname: nil) + @given_name = given_name + @surname = surname + end + end + # Persons name in kana script. + attr_accessor :kana + # Persons name in kanji script. + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + # Additional addresses associated with the individual. + attr_accessor :additional_addresses + # Additional names (e.g. aliases) associated with the individual. + attr_accessor :additional_names + # The individual's residential address. + attr_accessor :address + # The individual's date of birth. + attr_accessor :date_of_birth + # Documents that may be submitted to satisfy various informational requests. + attr_accessor :documents + # The individual's email address. + attr_accessor :email + # The individual's first name. + attr_accessor :given_name + # The identification numbers (e.g., SSN) associated with the individual. + attr_accessor :id_numbers + # The individual's gender (International regulations require either "male" or "female"). + attr_accessor :legal_gender + # 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. + attr_accessor :metadata + # The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :nationalities + # The individual's phone number. + attr_accessor :phone + # The individual's political exposure. + attr_accessor :political_exposure + # The relationship that this individual has with the account's identity. + attr_accessor :relationship + # The script addresses (e.g., non-Latin characters) associated with the individual. + attr_accessor :script_addresses + # The individuals primary name in non latin script. + attr_accessor :script_names + # The individual's last name. + attr_accessor :surname + + def initialize( + additional_addresses: nil, + additional_names: nil, + address: nil, + date_of_birth: nil, + documents: nil, + email: nil, + given_name: nil, + id_numbers: nil, + legal_gender: nil, + metadata: nil, + nationalities: nil, + phone: nil, + political_exposure: nil, + relationship: nil, + script_addresses: nil, + script_names: nil, + surname: nil + ) + @additional_addresses = additional_addresses + @additional_names = additional_names + @address = address + @date_of_birth = date_of_birth + @documents = documents + @email = email + @given_name = given_name + @id_numbers = id_numbers + @legal_gender = legal_gender + @metadata = metadata + @nationalities = nationalities + @phone = phone + @political_exposure = political_exposure + @relationship = relationship + @script_addresses = script_addresses + @script_names = script_names + @surname = surname + end + end + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. + attr_accessor :attestations + # Information about the company or business. + attr_accessor :business_details + # The entity type. + attr_accessor :entity_type + # Information about the person represented by the account. + attr_accessor :individual + + def initialize( + attestations: nil, + business_details: nil, + entity_type: nil, + individual: nil + ) + @attestations = attestations + @business_details = business_details + @entity_type = entity_type + @individual = individual + end + end + # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + attr_accessor :contact_email + # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. + attr_accessor :display_name + # Information about the company, individual, and business represented by the Account. + attr_accessor :identity + + def initialize(contact_email: nil, display_name: nil, identity: nil) + @contact_email = contact_email + @display_name = display_name + @identity = identity + end + end + end + end +end diff --git a/lib/stripe/params/v2/core/account_token_retrieve_params.rb b/lib/stripe/params/v2/core/account_token_retrieve_params.rb new file mode 100644 index 000000000..d4f91655b --- /dev/null +++ b/lib/stripe/params/v2/core/account_token_retrieve_params.rb @@ -0,0 +1,10 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + class AccountTokenRetrieveParams < ::Stripe::RequestParams; end + end + end +end diff --git a/lib/stripe/params/v2/core/account_update_params.rb b/lib/stripe/params/v2/core/account_update_params.rb index 91a8ac8a2..e03c1a333 100644 --- a/lib/stripe/params/v2/core/account_update_params.rb +++ b/lib/stripe/params/v2/core/account_update_params.rb @@ -152,7 +152,7 @@ class AutomaticIndirectTax < ::Stripe::RequestParams attr_accessor :exempt # A recent IP address of the customer used for tax reporting and tax location inference. attr_accessor :ip_address - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. attr_accessor :location_source # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'. attr_accessor :validate_location @@ -240,7 +240,7 @@ def initialize(requested: nil) @requested = requested end end - # 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. Uses the `location_source` field. + # 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. attr_accessor :automatic_indirect_tax def initialize(automatic_indirect_tax: nil) @@ -948,6 +948,75 @@ def initialize(decline_on: nil) end end + class KonbiniPayments < ::Stripe::RequestParams + class Support < ::Stripe::RequestParams + class Hours < ::Stripe::RequestParams + # Support hours end time (JST time of day) for in `HH:MM` format. + attr_accessor :end_time + # Support hours start time (JST time of day) for in `HH:MM` format. + attr_accessor :start_time + + def initialize(end_time: nil, start_time: nil) + @end_time = end_time + @start_time = start_time + end + end + # Support email address for Konbini payments. + attr_accessor :email + # Support hours for Konbini payments. + attr_accessor :hours + # Support phone number for Konbini payments. + attr_accessor :phone + + def initialize(email: nil, hours: nil, phone: nil) + @email = email + @hours = hours + @phone = phone + end + end + # Support for Konbini payments. + attr_accessor :support + + def initialize(support: nil) + @support = support + end + end + + class ScriptStatementDescriptor < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # 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. + attr_accessor :descriptor + # 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. + attr_accessor :prefix + + def initialize(descriptor: nil, prefix: nil) + @descriptor = descriptor + @prefix = prefix + end + end + + class Kanji < ::Stripe::RequestParams + # 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. + attr_accessor :descriptor + # 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. + attr_accessor :prefix + + def initialize(descriptor: nil, prefix: nil) + @descriptor = descriptor + @prefix = prefix + end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + attr_accessor :kana + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + class StatementDescriptor < ::Stripe::RequestParams # 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. attr_accessor :descriptor @@ -1021,8 +1090,12 @@ def initialize(address: nil, email: nil, phone: nil, url: nil) attr_accessor :capabilities # Card payments settings. attr_accessor :card_payments + # Settings specific to Konbini payments on the account. + attr_accessor :konbini_payments # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. attr_accessor :mcc + # Settings for the default text that appears on statements for language variations. + attr_accessor :script_statement_descriptor # Statement descriptor. attr_accessor :statement_descriptor # Publicly available contact information for sending support issues to. @@ -1034,7 +1107,9 @@ def initialize( branding: nil, capabilities: nil, card_payments: nil, + konbini_payments: nil, mcc: nil, + script_statement_descriptor: nil, statement_descriptor: nil, support: nil ) @@ -1043,7 +1118,9 @@ def initialize( @branding = branding @capabilities = capabilities @card_payments = card_payments + @konbini_payments = konbini_payments @mcc = mcc + @script_statement_descriptor = script_statement_descriptor @statement_descriptor = statement_descriptor @support = support end @@ -1139,7 +1216,7 @@ def initialize( attr_accessor :applied # Capabilities to request on the Recipient Configuration. attr_accessor :capabilities - # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.corp.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). + # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). attr_accessor :default_outbound_destination def initialize(applied: nil, capabilities: nil, default_outbound_destination: nil) @@ -1181,6 +1258,15 @@ def initialize(bank_accounts: nil, crypto_wallets: nil) end class HoldsCurrencies < ::Stripe::RequestParams + class Eur < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class Gbp < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -1207,6 +1293,8 @@ def initialize(requested: nil) @requested = requested end end + # Can hold storage-type funds on Stripe in EUR. + attr_accessor :eur # Can hold storage-type funds on Stripe in GBP. attr_accessor :gbp # Can hold storage-type funds on Stripe in USD. @@ -1214,7 +1302,8 @@ def initialize(requested: nil) # Can hold storage-type funds on Stripe in USDC. attr_accessor :usdc - def initialize(gbp: nil, usd: nil, usdc: nil) + def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil) + @eur = eur @gbp = gbp @usd = usd @usdc = usdc @@ -2090,6 +2179,17 @@ def initialize( end class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end # A non-negative integer representing the amount in the smallest currency unit. attr_accessor :amount # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. @@ -2294,6 +2394,17 @@ def initialize(registrar: nil, type: nil, value: nil) end class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end # A non-negative integer representing the amount in the smallest currency unit. attr_accessor :amount @@ -2933,6 +3044,8 @@ def initialize( @individual = individual end end + # The account token generated by the account token api. + attr_accessor :account_token # An Account Configuration which allows the Account to take on a key persona across Stripe products. attr_accessor :configuration # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. @@ -2951,6 +3064,7 @@ def initialize( attr_accessor :metadata def initialize( + account_token: nil, configuration: nil, contact_email: nil, dashboard: nil, @@ -2960,6 +3074,7 @@ def initialize( include: nil, metadata: nil ) + @account_token = account_token @configuration = configuration @contact_email = contact_email @dashboard = dashboard diff --git a/lib/stripe/params/v2/core/accounts/person_create_params.rb b/lib/stripe/params/v2/core/accounts/person_create_params.rb index 975ce698b..ff4fec33d 100644 --- a/lib/stripe/params/v2/core/accounts/person_create_params.rb +++ b/lib/stripe/params/v2/core/accounts/person_create_params.rb @@ -434,6 +434,8 @@ def initialize(kana: nil, kanji: nil) attr_accessor :metadata # The nationalities (countries) this person is associated with. attr_accessor :nationalities + # The person token generated by the person token api. + attr_accessor :person_token # The phone number for this person. attr_accessor :phone # The person's political exposure. @@ -460,6 +462,7 @@ def initialize( legal_gender: nil, metadata: nil, nationalities: nil, + person_token: nil, phone: nil, political_exposure: nil, relationship: nil, @@ -479,6 +482,7 @@ def initialize( @legal_gender = legal_gender @metadata = metadata @nationalities = nationalities + @person_token = person_token @phone = phone @political_exposure = political_exposure @relationship = relationship diff --git a/lib/stripe/params/v2/core/accounts/person_token_create_params.rb b/lib/stripe/params/v2/core/accounts/person_token_create_params.rb new file mode 100644 index 000000000..f84cdeb1c --- /dev/null +++ b/lib/stripe/params/v2/core/accounts/person_token_create_params.rb @@ -0,0 +1,487 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + module Accounts + class PersonTokenCreateParams < ::Stripe::RequestParams + class AdditionalAddress < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # Purpose of additional address. + attr_accessor :purpose + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + purpose: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @purpose = purpose + @state = state + @town = town + end + end + + class AdditionalName < ::Stripe::RequestParams + # The person's full name. + attr_accessor :full_name + # The person's first or given name. + attr_accessor :given_name + # The purpose or type of the additional name. + attr_accessor :purpose + # The person's last or family name. + attr_accessor :surname + + def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil) + @full_name = full_name + @given_name = given_name + @purpose = purpose + @surname = surname + end + end + + class AdditionalTermsOfService < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + attr_accessor :shown_and_accepted + + def initialize(shown_and_accepted: nil) + @shown_and_accepted = shown_and_accepted + end + end + # Details on the Person's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + attr_accessor :account + + def initialize(account: nil) + @account = account + end + end + + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + + class DateOfBirth < ::Stripe::RequestParams + # The day of the birth. + attr_accessor :day + # The month of birth. + attr_accessor :month + # The year of birth. + attr_accessor :year + + def initialize(day: nil, month: nil, year: nil) + @day = day + @month = month + @year = year + end + end + + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class Passport < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :back + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :front + + def initialize(back: nil, front: nil) + @back = back + @front = front + end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + attr_accessor :front_back + # The format of the verification document. Currently supports `front_back` only. + attr_accessor :type + + def initialize(front_back: nil, type: nil) + @front_back = front_back + @type = type + end + end + + class SecondaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :back + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + attr_accessor :front + + def initialize(back: nil, front: nil) + @back = back + @front = front + end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + attr_accessor :front_back + # The format of the verification document. Currently supports `front_back` only. + attr_accessor :type + + def initialize(front_back: nil, type: nil) + @front_back = front_back + @type = type + end + end + + class Visa < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + attr_accessor :files + # The format of the document. Currently supports `files` only. + attr_accessor :type + + def initialize(files: nil, type: nil) + @files = files + @type = type + end + end + # One or more documents that demonstrate proof that this person is authorized to represent the company. + attr_accessor :company_authorization + # One or more documents showing the person’s passport page with photo and personal data. + attr_accessor :passport + # An identifying document showing the person's name, either a passport or local ID card. + attr_accessor :primary_verification + # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + attr_accessor :secondary_verification + # One or more documents showing the person’s visa required for living in the country where they are residing. + attr_accessor :visa + + def initialize( + company_authorization: nil, + passport: nil, + primary_verification: nil, + secondary_verification: nil, + visa: nil + ) + @company_authorization = company_authorization + @passport = passport + @primary_verification = primary_verification + @secondary_verification = secondary_verification + @visa = visa + end + end + + class IdNumber < ::Stripe::RequestParams + # The ID number type of an individual. + attr_accessor :type + # The value of the ID number. + attr_accessor :value + + def initialize(type: nil, value: nil) + @type = type + @value = value + end + end + + class Relationship < ::Stripe::RequestParams + # Whether the individual is an authorizer of the Account’s legal entity. + attr_accessor :authorizer + # Indicates whether the person is a director of the associated legal entity. + attr_accessor :director + # Indicates whether the person is an executive of the associated legal entity. + attr_accessor :executive + # Indicates whether the person is a legal guardian of the associated legal entity. + attr_accessor :legal_guardian + # Indicates whether the person is an owner of the associated legal entity. + attr_accessor :owner + # The percentage of ownership the person has in the associated legal entity. + attr_accessor :percent_ownership + # Indicates whether the person is a representative of the associated legal entity. + attr_accessor :representative + # The title or position the person holds in the associated legal entity. + attr_accessor :title + + def initialize( + authorizer: nil, + director: nil, + executive: nil, + legal_guardian: nil, + owner: nil, + percent_ownership: nil, + representative: nil, + title: nil + ) + @authorizer = authorizer + @director = director + @executive = executive + @legal_guardian = legal_guardian + @owner = owner + @percent_ownership = percent_ownership + @representative = representative + @title = title + end + end + + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1 (e.g., street, PO Box, or company name). + attr_accessor :line1 + # Address line 2 (e.g., apartment, suite, unit, or building). + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + # Town or cho-me. + attr_accessor :town + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + @town = town + end + end + # Kana Address. + attr_accessor :kana + # Kanji Address. + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # The person's first or given name. + attr_accessor :given_name + # The person's last or family name. + attr_accessor :surname + + def initialize(given_name: nil, surname: nil) + @given_name = given_name + @surname = surname + end + end + + class Kanji < ::Stripe::RequestParams + # The person's first or given name. + attr_accessor :given_name + # The person's last or family name. + attr_accessor :surname + + def initialize(given_name: nil, surname: nil) + @given_name = given_name + @surname = surname + end + end + # Persons name in kana script. + attr_accessor :kana + # Persons name in kanji script. + attr_accessor :kanji + + def initialize(kana: nil, kanji: nil) + @kana = kana + @kanji = kanji + end + end + # Additional addresses associated with the person. + attr_accessor :additional_addresses + # Additional names (e.g. aliases) associated with the person. + attr_accessor :additional_names + # Attestations of accepted terms of service agreements. + attr_accessor :additional_terms_of_service + # The person's residential address. + attr_accessor :address + # The person's date of birth. + attr_accessor :date_of_birth + # Documents that may be submitted to satisfy various informational requests. + attr_accessor :documents + # Email. + attr_accessor :email + # The person's first name. + attr_accessor :given_name + # The identification numbers (e.g., SSN) associated with the person. + attr_accessor :id_numbers + # The person's gender (International regulations require either "male" or "female"). + attr_accessor :legal_gender + # 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. + attr_accessor :metadata + # The nationalities (countries) this person is associated with. + attr_accessor :nationalities + # The phone number for this person. + attr_accessor :phone + # The person's political exposure. + attr_accessor :political_exposure + # The relationship that this person has with the Account's business or legal entity. + attr_accessor :relationship + # The script addresses (e.g., non-Latin characters) associated with the person. + attr_accessor :script_addresses + # The script names (e.g. non-Latin characters) associated with the person. + attr_accessor :script_names + # The person's last name. + attr_accessor :surname + + def initialize( + additional_addresses: nil, + additional_names: nil, + additional_terms_of_service: nil, + address: nil, + date_of_birth: nil, + documents: nil, + email: nil, + given_name: nil, + id_numbers: nil, + legal_gender: nil, + metadata: nil, + nationalities: nil, + phone: nil, + political_exposure: nil, + relationship: nil, + script_addresses: nil, + script_names: nil, + surname: nil + ) + @additional_addresses = additional_addresses + @additional_names = additional_names + @additional_terms_of_service = additional_terms_of_service + @address = address + @date_of_birth = date_of_birth + @documents = documents + @email = email + @given_name = given_name + @id_numbers = id_numbers + @legal_gender = legal_gender + @metadata = metadata + @nationalities = nationalities + @phone = phone + @political_exposure = political_exposure + @relationship = relationship + @script_addresses = script_addresses + @script_names = script_names + @surname = surname + end + end + end + end + end +end diff --git a/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb b/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb new file mode 100644 index 000000000..4800e1887 --- /dev/null +++ b/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + module Accounts + class PersonTokenRetrieveParams < ::Stripe::RequestParams; end + end + end + end +end diff --git a/lib/stripe/params/v2/core/accounts/person_update_params.rb b/lib/stripe/params/v2/core/accounts/person_update_params.rb index ecb3fa4c4..23875d41e 100644 --- a/lib/stripe/params/v2/core/accounts/person_update_params.rb +++ b/lib/stripe/params/v2/core/accounts/person_update_params.rb @@ -434,6 +434,8 @@ def initialize(kana: nil, kanji: nil) attr_accessor :metadata # The nationalities (countries) this person is associated with. attr_accessor :nationalities + # The person token generated by the person token api. + attr_accessor :person_token # The phone number for this person. attr_accessor :phone # The person's political exposure. @@ -460,6 +462,7 @@ def initialize( legal_gender: nil, metadata: nil, nationalities: nil, + person_token: nil, phone: nil, political_exposure: nil, relationship: nil, @@ -479,6 +482,7 @@ def initialize( @legal_gender = legal_gender @metadata = metadata @nationalities = nationalities + @person_token = person_token @phone = phone @political_exposure = political_exposure @relationship = relationship diff --git a/lib/stripe/params/v2/core/event_list_params.rb b/lib/stripe/params/v2/core/event_list_params.rb index 51289b329..6bb64b82a 100644 --- a/lib/stripe/params/v2/core/event_list_params.rb +++ b/lib/stripe/params/v2/core/event_list_params.rb @@ -5,16 +5,27 @@ module Stripe module V2 module Core class EventListParams < ::Stripe::RequestParams - # Filter for events created after the specified timestamp. - attr_accessor :gt - # Filter for events created at or after the specified timestamp. - attr_accessor :gte + class Created < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + attr_accessor :gt + # Filter for events created at or after the specified timestamp. + attr_accessor :gte + # Filter for events created before the specified timestamp. + attr_accessor :lt + # Filter for events created at or before the specified timestamp. + attr_accessor :lte + + def initialize(gt: nil, gte: nil, lt: nil, lte: nil) + @gt = gt + @gte = gte + @lt = lt + @lte = lte + end + end + # Set of filters to query events within a range of `created` timestamps. + attr_accessor :created # The page size. attr_accessor :limit - # Filter for events created before the specified timestamp. - attr_accessor :lt - # Filter for events created at or before the specified timestamp. - attr_accessor :lte # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. @@ -22,20 +33,9 @@ class EventListParams < ::Stripe::RequestParams # An array of up to 20 strings containing specific event names. attr_accessor :types - def initialize( - gt: nil, - gte: nil, - limit: nil, - lt: nil, - lte: nil, - object_id_: nil, - types: nil - ) - @gt = gt - @gte = gte + def initialize(created: nil, limit: nil, object_id_: nil, types: nil) + @created = created @limit = limit - @lt = lt - @lte = lte @object_id_ = object_id_ @types = types end diff --git a/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb b/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb new file mode 100644 index 000000000..b68efeb08 --- /dev/null +++ b/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb @@ -0,0 +1,68 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionCreateParams < ::Stripe::RequestParams + class From < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + # Amount object. + attr_accessor :amount + # A lowercase alpha3 currency code like "usd". + attr_accessor :currency + + def initialize(amount: nil, currency: nil) + @amount = amount + @currency = currency + end + end + + class To < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + # Amount object. + attr_accessor :amount + # A lowercase alpha3 currency code like "usd". + attr_accessor :currency + + def initialize(amount: nil, currency: nil) + @amount = amount + @currency = currency + end + end + # The FinancialAccount id to create the CurrencyConversion on. + attr_accessor :financial_account + # From amount object indicating the from currency or optional amount. + attr_accessor :from + # To amount object indicating the to currency or optional amount. + attr_accessor :to + + def initialize(financial_account: nil, from: nil, to: nil) + @financial_account = financial_account + @from = from + @to = to + end + end + end + end +end diff --git a/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb b/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb new file mode 100644 index 000000000..8f2d8c624 --- /dev/null +++ b/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionListParams < ::Stripe::RequestParams + # The ID of the FinancialAccount to filter by. + attr_accessor :financial_account + # The page limit. + attr_accessor :limit + + def initialize(financial_account: nil, limit: nil) + @financial_account = financial_account + @limit = limit + end + end + end + end +end diff --git a/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb b/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb new file mode 100644 index 000000000..de83459c1 --- /dev/null +++ b/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb @@ -0,0 +1,10 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionRetrieveParams < ::Stripe::RequestParams; end + end + end +end diff --git a/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb b/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb index e3cf77f5b..727898e67 100644 --- a/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +++ b/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb @@ -5,6 +5,18 @@ module Stripe module V2 module MoneyManagement class InboundTransferCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + class From < ::Stripe::RequestParams # An optional currency field used to specify which currency is debited from the Payment Method. # Since many Payment Methods support only one currency, this field is optional. diff --git a/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb b/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb index a54e98f11..34eb9f04d 100644 --- a/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +++ b/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb @@ -5,6 +5,18 @@ module Stripe module V2 module MoneyManagement class OutboundPaymentCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. attr_accessor :bank_account diff --git a/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb b/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb index 964d8fccb..cec6d8f3b 100644 --- a/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +++ b/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb @@ -5,6 +5,18 @@ module Stripe module V2 module MoneyManagement class OutboundPaymentQuoteCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. attr_accessor :bank_account diff --git a/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb b/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb index b76a46add..343038691 100644 --- a/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +++ b/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb @@ -5,6 +5,18 @@ module Stripe module V2 module MoneyManagement class OutboundTransferCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end + class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. attr_accessor :bank_account diff --git a/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb b/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb index a96830cbb..f3c250b62 100644 --- a/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +++ b/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb @@ -10,25 +10,21 @@ class TransferData < ::Stripe::RequestParams # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). attr_accessor :amount - # The account (if any) that the payment is attributed to for tax reporting, and - # where funds from the payment are transferred to after payment success. - attr_accessor :destination - def initialize(amount: nil, destination: nil) + def initialize(amount: nil) @amount = amount - @destination = destination end end # The amount to capture. attr_accessor :amount_to_capture - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). attr_accessor :metadata # Text that appears on the customer’s statement as the statement descriptor for a # non-card charge. This value overrides the account’s default statement descriptor. @@ -39,7 +35,7 @@ def initialize(amount: nil, destination: nil) # [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) # to form the complete statement descriptor that appears on the customer’s statement. attr_accessor :statement_descriptor_suffix - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). attr_accessor :transfer_data def initialize( diff --git a/lib/stripe/params/v2/payments/off_session_payment_create_params.rb b/lib/stripe/params/v2/payments/off_session_payment_create_params.rb index 732c50837..0f61d85be 100644 --- a/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +++ b/lib/stripe/params/v2/payments/off_session_payment_create_params.rb @@ -5,83 +5,15 @@ module Stripe module V2 module Payments class OffSessionPaymentCreateParams < ::Stripe::RequestParams - class AmountDetails < ::Stripe::RequestParams - class LineItem < ::Stripe::RequestParams - class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. - attr_accessor :total_tax_amount - - def initialize(total_tax_amount: nil) - @total_tax_amount = total_tax_amount - end - end - # The amount an item was discounted for. Positive integer. - attr_accessor :discount_amount - # Unique identifier of the product. At most 12 characters long. - attr_accessor :product_code - # Name of the product. At most 100 characters long. - attr_accessor :product_name - # Number of items of the product. Positive integer. - attr_accessor :quantity - # Contains information about the tax on the item. - attr_accessor :tax - # Cost of the product. Non-negative integer. - attr_accessor :unit_cost - - def initialize( - discount_amount: nil, - product_code: nil, - product_name: nil, - quantity: nil, - tax: nil, - unit_cost: nil - ) - @discount_amount = discount_amount - @product_code = product_code - @product_name = product_name - @quantity = quantity - @tax = tax - @unit_cost = unit_cost - end - end - - class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. - attr_accessor :amount - # The postal code that represents the shipping source. - attr_accessor :from_postal_code - # The postal code that represents the shipping destination. - attr_accessor :to_postal_code - - def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) - @amount = amount - @from_postal_code = from_postal_code - @to_postal_code = to_postal_code - end - end - - class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. - attr_accessor :total_tax_amount - - def initialize(total_tax_amount: nil) - @total_tax_amount = total_tax_amount - end - end - # The amount the total transaction was discounted for. - attr_accessor :discount_amount - # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - attr_accessor :line_items - # Contains information about the shipping portion of the amount. - attr_accessor :shipping - # Contains information about the tax portion of the amount. - attr_accessor :tax - - def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil) - @discount_amount = discount_amount - @line_items = line_items - @shipping = shipping - @tax = tax + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency end end @@ -142,7 +74,7 @@ class TransferData < ::Stripe::RequestParams # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). attr_accessor :amount @@ -157,20 +89,16 @@ def initialize(amount: nil, destination: nil) end # The “presentment amount” to be collected from the customer. attr_accessor :amount - # Provides industry-specific information about the amount. - attr_accessor :amount_details # The frequency of the underlying payment. attr_accessor :cadence # Details about the capture configuration for the OffSessionPayment. attr_accessor :capture - # Whether the OffSessionPayment should be captured automatically or manually. - attr_accessor :capture_method # ID of the Customer to which this OffSessionPayment belongs. attr_accessor :customer - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). attr_accessor :metadata # The account (if any) for which the funds of the OffSessionPayment are intended. attr_accessor :on_behalf_of @@ -193,15 +121,13 @@ def initialize(amount: nil, destination: nil) attr_accessor :statement_descriptor_suffix # Test clock that can be used to advance the retry attempts in a sandbox. attr_accessor :test_clock - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). attr_accessor :transfer_data def initialize( amount: nil, - amount_details: nil, cadence: nil, capture: nil, - capture_method: nil, customer: nil, metadata: nil, on_behalf_of: nil, @@ -215,10 +141,8 @@ def initialize( transfer_data: nil ) @amount = amount - @amount_details = amount_details @cadence = cadence @capture = capture - @capture_method = capture_method @customer = customer @metadata = metadata @on_behalf_of = on_behalf_of diff --git a/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb b/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb index 9bf8c8213..a82243c4e 100644 --- a/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +++ b/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb @@ -5,6 +5,17 @@ module Stripe module V2 module TestHelpers class FinancialAddressCreditParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_accessor :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + + def initialize(value: nil, currency: nil) + @value = value + @currency = currency + end + end # Object containing the amount value and currency to credit. attr_accessor :amount # Open Enum. The network to use in simulating the funds flow. This will be the reflected in the resulting ReceivedCredit. diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 1e3ddf939..e947171ee 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -202,6 +202,8 @@ require "stripe/resources/v2/core/account" require "stripe/resources/v2/core/account_link" require "stripe/resources/v2/core/account_person" +require "stripe/resources/v2/core/account_person_token" +require "stripe/resources/v2/core/account_token" require "stripe/resources/v2/core/claimable_sandbox" require "stripe/resources/v2/core/event" require "stripe/resources/v2/core/event_destination" @@ -211,6 +213,7 @@ require "stripe/resources/v2/financial_address_credit_simulation" require "stripe/resources/v2/financial_address_generated_microdeposits" require "stripe/resources/v2/money_management/adjustment" +require "stripe/resources/v2/money_management/currency_conversion" require "stripe/resources/v2/money_management/financial_account" require "stripe/resources/v2/money_management/financial_address" require "stripe/resources/v2/money_management/inbound_transfer" @@ -229,194 +232,8 @@ require "stripe/resources/v2/reporting/report" require "stripe/resources/v2/reporting/report_run" require "stripe/resources/webhook_endpoint" -require "stripe/events/v1_account_updated_event" -require "stripe/events/v1_application_fee_created_event" -require "stripe/events/v1_application_fee_refunded_event" require "stripe/events/v1_billing_meter_error_report_triggered_event" require "stripe/events/v1_billing_meter_no_meter_found_event" -require "stripe/events/v1_billing_portal_configuration_created_event" -require "stripe/events/v1_billing_portal_configuration_updated_event" -require "stripe/events/v1_capability_updated_event" -require "stripe/events/v1_charge_captured_event" -require "stripe/events/v1_charge_dispute_closed_event" -require "stripe/events/v1_charge_dispute_created_event" -require "stripe/events/v1_charge_dispute_funds_reinstated_event" -require "stripe/events/v1_charge_dispute_funds_withdrawn_event" -require "stripe/events/v1_charge_dispute_updated_event" -require "stripe/events/v1_charge_expired_event" -require "stripe/events/v1_charge_failed_event" -require "stripe/events/v1_charge_pending_event" -require "stripe/events/v1_charge_refund_updated_event" -require "stripe/events/v1_charge_refunded_event" -require "stripe/events/v1_charge_succeeded_event" -require "stripe/events/v1_charge_updated_event" -require "stripe/events/v1_checkout_session_async_payment_failed_event" -require "stripe/events/v1_checkout_session_async_payment_succeeded_event" -require "stripe/events/v1_checkout_session_completed_event" -require "stripe/events/v1_checkout_session_expired_event" -require "stripe/events/v1_climate_order_canceled_event" -require "stripe/events/v1_climate_order_created_event" -require "stripe/events/v1_climate_order_delayed_event" -require "stripe/events/v1_climate_order_delivered_event" -require "stripe/events/v1_climate_order_product_substituted_event" -require "stripe/events/v1_climate_product_created_event" -require "stripe/events/v1_climate_product_pricing_updated_event" -require "stripe/events/v1_coupon_created_event" -require "stripe/events/v1_coupon_deleted_event" -require "stripe/events/v1_coupon_updated_event" -require "stripe/events/v1_credit_note_created_event" -require "stripe/events/v1_credit_note_updated_event" -require "stripe/events/v1_credit_note_voided_event" -require "stripe/events/v1_customer_created_event" -require "stripe/events/v1_customer_deleted_event" -require "stripe/events/v1_customer_subscription_created_event" -require "stripe/events/v1_customer_subscription_deleted_event" -require "stripe/events/v1_customer_subscription_paused_event" -require "stripe/events/v1_customer_subscription_pending_update_applied_event" -require "stripe/events/v1_customer_subscription_pending_update_expired_event" -require "stripe/events/v1_customer_subscription_resumed_event" -require "stripe/events/v1_customer_subscription_trial_will_end_event" -require "stripe/events/v1_customer_subscription_updated_event" -require "stripe/events/v1_customer_tax_id_created_event" -require "stripe/events/v1_customer_tax_id_deleted_event" -require "stripe/events/v1_customer_tax_id_updated_event" -require "stripe/events/v1_customer_updated_event" -require "stripe/events/v1_file_created_event" -require "stripe/events/v1_financial_connections_account_created_event" -require "stripe/events/v1_financial_connections_account_deactivated_event" -require "stripe/events/v1_financial_connections_account_disconnected_event" -require "stripe/events/v1_financial_connections_account_reactivated_event" -require "stripe/events/v1_financial_connections_account_refreshed_balance_event" -require "stripe/events/v1_financial_connections_account_refreshed_ownership_event" -require "stripe/events/v1_financial_connections_account_refreshed_transactions_event" -require "stripe/events/v1_identity_verification_session_canceled_event" -require "stripe/events/v1_identity_verification_session_created_event" -require "stripe/events/v1_identity_verification_session_processing_event" -require "stripe/events/v1_identity_verification_session_redacted_event" -require "stripe/events/v1_identity_verification_session_requires_input_event" -require "stripe/events/v1_identity_verification_session_verified_event" -require "stripe/events/v1_invoice_created_event" -require "stripe/events/v1_invoice_deleted_event" -require "stripe/events/v1_invoice_finalization_failed_event" -require "stripe/events/v1_invoice_finalized_event" -require "stripe/events/v1_invoice_marked_uncollectible_event" -require "stripe/events/v1_invoice_overdue_event" -require "stripe/events/v1_invoice_overpaid_event" -require "stripe/events/v1_invoice_paid_event" -require "stripe/events/v1_invoice_payment_action_required_event" -require "stripe/events/v1_invoice_payment_failed_event" -require "stripe/events/v1_invoice_payment_paid_event" -require "stripe/events/v1_invoice_payment_succeeded_event" -require "stripe/events/v1_invoice_sent_event" -require "stripe/events/v1_invoice_upcoming_event" -require "stripe/events/v1_invoice_updated_event" -require "stripe/events/v1_invoice_voided_event" -require "stripe/events/v1_invoice_will_be_due_event" -require "stripe/events/v1_invoiceitem_created_event" -require "stripe/events/v1_invoiceitem_deleted_event" -require "stripe/events/v1_issuing_authorization_created_event" -require "stripe/events/v1_issuing_authorization_request_event" -require "stripe/events/v1_issuing_authorization_updated_event" -require "stripe/events/v1_issuing_card_created_event" -require "stripe/events/v1_issuing_card_updated_event" -require "stripe/events/v1_issuing_cardholder_created_event" -require "stripe/events/v1_issuing_cardholder_updated_event" -require "stripe/events/v1_issuing_dispute_closed_event" -require "stripe/events/v1_issuing_dispute_created_event" -require "stripe/events/v1_issuing_dispute_funds_reinstated_event" -require "stripe/events/v1_issuing_dispute_funds_rescinded_event" -require "stripe/events/v1_issuing_dispute_submitted_event" -require "stripe/events/v1_issuing_dispute_updated_event" -require "stripe/events/v1_issuing_personalization_design_activated_event" -require "stripe/events/v1_issuing_personalization_design_deactivated_event" -require "stripe/events/v1_issuing_personalization_design_rejected_event" -require "stripe/events/v1_issuing_personalization_design_updated_event" -require "stripe/events/v1_issuing_token_created_event" -require "stripe/events/v1_issuing_token_updated_event" -require "stripe/events/v1_issuing_transaction_created_event" -require "stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event" -require "stripe/events/v1_issuing_transaction_updated_event" -require "stripe/events/v1_mandate_updated_event" -require "stripe/events/v1_payment_intent_amount_capturable_updated_event" -require "stripe/events/v1_payment_intent_canceled_event" -require "stripe/events/v1_payment_intent_created_event" -require "stripe/events/v1_payment_intent_partially_funded_event" -require "stripe/events/v1_payment_intent_payment_failed_event" -require "stripe/events/v1_payment_intent_processing_event" -require "stripe/events/v1_payment_intent_requires_action_event" -require "stripe/events/v1_payment_intent_succeeded_event" -require "stripe/events/v1_payment_link_created_event" -require "stripe/events/v1_payment_link_updated_event" -require "stripe/events/v1_payment_method_attached_event" -require "stripe/events/v1_payment_method_automatically_updated_event" -require "stripe/events/v1_payment_method_detached_event" -require "stripe/events/v1_payment_method_updated_event" -require "stripe/events/v1_payout_canceled_event" -require "stripe/events/v1_payout_created_event" -require "stripe/events/v1_payout_failed_event" -require "stripe/events/v1_payout_paid_event" -require "stripe/events/v1_payout_reconciliation_completed_event" -require "stripe/events/v1_payout_updated_event" -require "stripe/events/v1_person_created_event" -require "stripe/events/v1_person_deleted_event" -require "stripe/events/v1_person_updated_event" -require "stripe/events/v1_plan_created_event" -require "stripe/events/v1_plan_deleted_event" -require "stripe/events/v1_plan_updated_event" -require "stripe/events/v1_price_created_event" -require "stripe/events/v1_price_deleted_event" -require "stripe/events/v1_price_updated_event" -require "stripe/events/v1_product_created_event" -require "stripe/events/v1_product_deleted_event" -require "stripe/events/v1_product_updated_event" -require "stripe/events/v1_promotion_code_created_event" -require "stripe/events/v1_promotion_code_updated_event" -require "stripe/events/v1_quote_accepted_event" -require "stripe/events/v1_quote_canceled_event" -require "stripe/events/v1_quote_created_event" -require "stripe/events/v1_quote_finalized_event" -require "stripe/events/v1_radar_early_fraud_warning_created_event" -require "stripe/events/v1_radar_early_fraud_warning_updated_event" -require "stripe/events/v1_refund_created_event" -require "stripe/events/v1_refund_failed_event" -require "stripe/events/v1_refund_updated_event" -require "stripe/events/v1_review_closed_event" -require "stripe/events/v1_review_opened_event" -require "stripe/events/v1_setup_intent_canceled_event" -require "stripe/events/v1_setup_intent_created_event" -require "stripe/events/v1_setup_intent_requires_action_event" -require "stripe/events/v1_setup_intent_setup_failed_event" -require "stripe/events/v1_setup_intent_succeeded_event" -require "stripe/events/v1_sigma_scheduled_query_run_created_event" -require "stripe/events/v1_source_canceled_event" -require "stripe/events/v1_source_chargeable_event" -require "stripe/events/v1_source_failed_event" -require "stripe/events/v1_source_refund_attributes_required_event" -require "stripe/events/v1_subscription_schedule_aborted_event" -require "stripe/events/v1_subscription_schedule_canceled_event" -require "stripe/events/v1_subscription_schedule_completed_event" -require "stripe/events/v1_subscription_schedule_created_event" -require "stripe/events/v1_subscription_schedule_expiring_event" -require "stripe/events/v1_subscription_schedule_released_event" -require "stripe/events/v1_subscription_schedule_updated_event" -require "stripe/events/v1_tax_rate_created_event" -require "stripe/events/v1_tax_rate_updated_event" -require "stripe/events/v1_terminal_reader_action_failed_event" -require "stripe/events/v1_terminal_reader_action_succeeded_event" -require "stripe/events/v1_terminal_reader_action_updated_event" -require "stripe/events/v1_test_helpers_test_clock_advancing_event" -require "stripe/events/v1_test_helpers_test_clock_created_event" -require "stripe/events/v1_test_helpers_test_clock_deleted_event" -require "stripe/events/v1_test_helpers_test_clock_internal_failure_event" -require "stripe/events/v1_test_helpers_test_clock_ready_event" -require "stripe/events/v1_topup_canceled_event" -require "stripe/events/v1_topup_created_event" -require "stripe/events/v1_topup_failed_event" -require "stripe/events/v1_topup_reversed_event" -require "stripe/events/v1_topup_succeeded_event" -require "stripe/events/v1_transfer_created_event" -require "stripe/events/v1_transfer_reversed_event" -require "stripe/events/v1_transfer_updated_event" require "stripe/events/v2_billing_cadence_billed_event" require "stripe/events/v2_billing_cadence_canceled_event" require "stripe/events/v2_billing_cadence_created_event" @@ -535,6 +352,8 @@ require "stripe/events/v2_money_management_recipient_verification_updated_event" require "stripe/events/v2_money_management_transaction_created_event" require "stripe/events/v2_money_management_transaction_updated_event" +require "stripe/events/v2_payments_off_session_payment_attempt_failed_event" +require "stripe/events/v2_payments_off_session_payment_attempt_started_event" require "stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event" require "stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event" require "stripe/events/v2_payments_off_session_payment_canceled_event" diff --git a/lib/stripe/resources/delegated_checkout/requested_session.rb b/lib/stripe/resources/delegated_checkout/requested_session.rb index 7fa8bb24c..c34322062 100644 --- a/lib/stripe/resources/delegated_checkout/requested_session.rb +++ b/lib/stripe/resources/delegated_checkout/requested_session.rb @@ -151,8 +151,20 @@ class LineItemDetail < ::Stripe::StripeObject attr_reader :quantity # The SKU ID of the line item. attr_reader :sku_id - # The unit amount of the line item. + # The per-unit amount of the item before any discounts or taxes are applied. attr_reader :unit_amount + # The total discount for this line item. If no discount were applied, defaults to 0. + attr_reader :amount_discount + # The total before any discounts or taxes are applied. + attr_reader :amount_subtotal + # The total after discounts but before taxes are applied. + attr_reader :amount_subtotal_after_discount + # The total after discounts and taxes. + attr_reader :amount_total + # The per-unit amount of the item after discounts but before taxes are applied. + attr_reader :unit_amount_after_discount + # The per-unit discount amount. If no discount were applied, defaults to 0. + attr_reader :unit_discount def self.inner_class_types @inner_class_types = {} @@ -285,6 +297,8 @@ def self.field_remappings attr_reader :amount_fulfillment # The amount tax of the total details. attr_reader :amount_tax + # Total of all items after discounts but before taxes are applied. + attr_reader :amount_subtotal_after_discount # The applicable fees of the total details. attr_reader :applicable_fees diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index 2e951bf5c..bcc834fac 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -1723,7 +1723,7 @@ def self.attach(payment_method, params = {}, opts = {}) ) end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. def check_balance(params = {}, opts = {}) request_stripe_object( method: :post, @@ -1733,7 +1733,7 @@ def check_balance(params = {}, opts = {}) ) end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. def self.check_balance(payment_method, params = {}, opts = {}) request_stripe_object( method: :post, diff --git a/lib/stripe/resources/quote.rb b/lib/stripe/resources/quote.rb index 283681080..8cad9b5de 100644 --- a/lib/stripe/resources/quote.rb +++ b/lib/stripe/resources/quote.rb @@ -605,19 +605,6 @@ def self.field_remappings end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject # Unique identifier for the object. attr_reader :id @@ -630,40 +617,17 @@ def self.field_remappings @field_remappings = {} end end - - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - attr_reader :interval - # The multiplier applied to the interval. - attr_reader :interval_count - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :amendment_start # The time the billing schedule applies from. attr_reader :computed_timestamp # Lets you bill the period starting from a particular Quote line. attr_reader :line_starts_at - # Timestamp is calculated from the request time. - attr_reader :relative # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. attr_reader :timestamp # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = { line_starts_at: LineStartsAt } end def self.field_remappings @@ -672,19 +636,6 @@ def self.field_remappings end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. attr_reader :interval @@ -712,8 +663,6 @@ def self.field_remappings @field_remappings = {} end end - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :amendment_end # The timestamp the billing schedule will apply until. attr_reader :computed_timestamp # Specifies the billing period. @@ -726,11 +675,7 @@ def self.field_remappings attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = { duration: Duration, line_ends_at: LineEndsAt } end def self.field_remappings @@ -741,7 +686,7 @@ def self.field_remappings attr_reader :applies_to # Specifies the start of the billing period. attr_reader :bill_from - # Specifies the end of billing period. + # Attribute for field bill_until attr_reader :bill_until # Unique identifier for the billing schedule. attr_reader :key @@ -787,7 +732,7 @@ def self.field_remappings attr_reader :from_subscription # Set of [key-value pairs](https://stripe.com/docs/api/metadata) 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 `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values. attr_reader :metadata - # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + # Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. attr_reader :phase_effective_at # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. attr_reader :prebilling @@ -938,19 +883,6 @@ def self.field_remappings end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject # Unique identifier for the object. attr_reader :id @@ -963,40 +895,17 @@ def self.field_remappings @field_remappings = {} end end - - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - attr_reader :interval - # The multiplier applied to the interval. - attr_reader :interval_count - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :amendment_start # The time the billing schedule applies from. attr_reader :computed_timestamp # Lets you bill the period starting from a particular Quote line. attr_reader :line_starts_at - # Timestamp is calculated from the request time. - attr_reader :relative # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. attr_reader :timestamp # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = { line_starts_at: LineStartsAt } end def self.field_remappings @@ -1005,19 +914,6 @@ def self.field_remappings end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. attr_reader :interval @@ -1045,8 +941,6 @@ def self.field_remappings @field_remappings = {} end end - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :amendment_end # The timestamp the billing schedule will apply until. attr_reader :computed_timestamp # Specifies the billing period. @@ -1059,11 +953,7 @@ def self.field_remappings attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = { duration: Duration, line_ends_at: LineEndsAt } end def self.field_remappings @@ -1074,7 +964,7 @@ def self.field_remappings attr_reader :applies_to # Specifies the start of the billing period. attr_reader :bill_from - # Specifies the end of billing period. + # Attribute for field bill_until attr_reader :bill_until # Unique identifier for the billing schedule. attr_reader :key @@ -1101,7 +991,7 @@ def self.field_remappings attr_reader :description # Behavior of the subscription schedule and underlying subscription when it ends. attr_reader :end_behavior - # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + # Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. attr_reader :phase_effective_at # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted. attr_reader :proration_behavior diff --git a/lib/stripe/resources/quote_line.rb b/lib/stripe/resources/quote_line.rb index e2602aa04..6b21f9a2e 100644 --- a/lib/stripe/resources/quote_line.rb +++ b/lib/stripe/resources/quote_line.rb @@ -103,6 +103,8 @@ def self.field_remappings attr_reader :tax_rates # Options that configure the trial on the subscription item. attr_reader :trial + # The ID of the trial offer to apply to the configuration item. + attr_reader :trial_offer def self.inner_class_types @inner_class_types = { discounts: Discount, trial: Trial } @@ -252,6 +254,8 @@ def self.field_remappings attr_reader :tax_rates # Options that configure the trial on the subscription item. attr_reader :trial + # The ID of the trial offer to apply to the configuration item. + attr_reader :trial_offer def self.inner_class_types @inner_class_types = { discounts: Discount, trial: Trial } @@ -501,6 +505,8 @@ def self.field_remappings attr_reader :starts_at # Settings related to subscription trials. attr_reader :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_reader :effective_at def self.inner_class_types @inner_class_types = { diff --git a/lib/stripe/resources/quote_preview_subscription_schedule.rb b/lib/stripe/resources/quote_preview_subscription_schedule.rb index 95d43e194..174b20d40 100644 --- a/lib/stripe/resources/quote_preview_subscription_schedule.rb +++ b/lib/stripe/resources/quote_preview_subscription_schedule.rb @@ -516,6 +516,8 @@ def self.field_remappings attr_reader :tax_rates # Options that configure the trial on the subscription item. attr_reader :trial + # The ID of the trial offer to apply to the configuration item. + attr_reader :trial_offer def self.inner_class_types @inner_class_types = { @@ -628,6 +630,8 @@ def self.field_remappings attr_reader :trial_end # Settings related to any trials on the subscription during this phase. attr_reader :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_reader :effective_at def self.inner_class_types @inner_class_types = { @@ -684,65 +688,15 @@ def self.field_remappings end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - attr_reader :id - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - attr_reader :interval - # The multiplier applied to the interval. - attr_reader :interval_count - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :amendment_start # The time the billing schedule applies from. attr_reader :computed_timestamp - # Lets you bill the period starting from a particular Quote line. - attr_reader :line_starts_at - # Timestamp is calculated from the request time. - attr_reader :relative # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. attr_reader :timestamp - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @@ -751,19 +705,6 @@ def self.field_remappings end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. attr_reader :interval @@ -778,38 +719,17 @@ def self.field_remappings @field_remappings = {} end end - - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - attr_reader :id - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :amendment_end # The timestamp the billing schedule will apply until. attr_reader :computed_timestamp # Specifies the billing period. attr_reader :duration - # Lets you bill the period ending at a particular Quote line. - attr_reader :line_ends_at # If specified, the billing schedule will apply until the specified timestamp. attr_reader :timestamp # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = { duration: Duration } end def self.field_remappings diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index b9bb73080..a267adcba 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -114,65 +114,15 @@ def self.field_remappings end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - attr_reader :id - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - attr_reader :interval - # The multiplier applied to the interval. - attr_reader :interval_count - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :amendment_start # The time the billing schedule applies from. attr_reader :computed_timestamp - # Lets you bill the period starting from a particular Quote line. - attr_reader :line_starts_at - # Timestamp is calculated from the request time. - attr_reader :relative # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. attr_reader :timestamp - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @@ -181,19 +131,6 @@ def self.field_remappings end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. attr_reader :interval @@ -208,38 +145,17 @@ def self.field_remappings @field_remappings = {} end end - - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - attr_reader :id - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :amendment_end # The timestamp the billing schedule will apply until. attr_reader :computed_timestamp # Specifies the billing period. attr_reader :duration - # Lets you bill the period ending at a particular Quote line. - attr_reader :line_ends_at # If specified, the billing schedule will apply until the specified timestamp. attr_reader :timestamp # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = { duration: Duration } end def self.field_remappings diff --git a/lib/stripe/resources/subscription_item.rb b/lib/stripe/resources/subscription_item.rb index 09b71e74c..9d2ec44e3 100644 --- a/lib/stripe/resources/subscription_item.rb +++ b/lib/stripe/resources/subscription_item.rb @@ -42,6 +42,23 @@ def self.field_remappings @field_remappings = {} end end + + class CurrentTrial < ::Stripe::StripeObject + # Attribute for field end_date + attr_reader :end_date + # Attribute for field start_date + attr_reader :start_date + # Attribute for field trial_offer + attr_reader :trial_offer + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The time period the subscription item has been billed for. attr_reader :billed_until # Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period @@ -84,6 +101,8 @@ def self.field_remappings attr_reader :tax_rates # Options that configure the trial on the subscription item. attr_reader :trial + # The current trial that is applied to this subscription item. + attr_reader :current_trial # Always true for a deleted object attr_reader :deleted @@ -138,7 +157,11 @@ def self.update(item, params = {}, opts = {}) end def self.inner_class_types - @inner_class_types = { billing_thresholds: BillingThresholds, trial: Trial } + @inner_class_types = { + billing_thresholds: BillingThresholds, + trial: Trial, + current_trial: CurrentTrial, + } end def self.field_remappings diff --git a/lib/stripe/resources/subscription_schedule.rb b/lib/stripe/resources/subscription_schedule.rb index a4fa31534..7632654b8 100644 --- a/lib/stripe/resources/subscription_schedule.rb +++ b/lib/stripe/resources/subscription_schedule.rb @@ -506,6 +506,8 @@ def self.field_remappings attr_reader :tax_rates # Options that configure the trial on the subscription item. attr_reader :trial + # The ID of the trial offer to apply to the configuration item. + attr_reader :trial_offer def self.inner_class_types @inner_class_types = { @@ -618,6 +620,8 @@ def self.field_remappings attr_reader :trial_end # Settings related to any trials on the subscription during this phase. attr_reader :trial_settings + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + attr_reader :effective_at def self.inner_class_types @inner_class_types = { @@ -674,65 +678,15 @@ def self.field_remappings end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - attr_reader :id - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - attr_reader :interval - # The multiplier applied to the interval. - attr_reader :interval_count - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - attr_reader :amendment_start # The time the billing schedule applies from. attr_reader :computed_timestamp - # Lets you bill the period starting from a particular Quote line. - attr_reader :line_starts_at - # Timestamp is calculated from the request time. - attr_reader :relative # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. attr_reader :timestamp - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @@ -741,19 +695,6 @@ def self.field_remappings end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :index - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. attr_reader :interval @@ -768,38 +709,17 @@ def self.field_remappings @field_remappings = {} end end - - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - attr_reader :id - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - attr_reader :amendment_end # The timestamp the billing schedule will apply until. attr_reader :computed_timestamp # Specifies the billing period. attr_reader :duration - # Lets you bill the period ending at a particular Quote line. - attr_reader :line_ends_at # If specified, the billing schedule will apply until the specified timestamp. attr_reader :timestamp # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. attr_reader :type def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = { duration: Duration } end def self.field_remappings diff --git a/lib/stripe/resources/v2/billing/cadence.rb b/lib/stripe/resources/v2/billing/cadence.rb index 833ad0b49..c49d1ead6 100644 --- a/lib/stripe/resources/v2/billing/cadence.rb +++ b/lib/stripe/resources/v2/billing/cadence.rb @@ -445,9 +445,9 @@ def self.field_remappings # Selected network to process the payment on. Depends on the available networks of the card. attr_reader :network # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_reader :request_three_d_secure def self.inner_class_types diff --git a/lib/stripe/resources/v2/billing/collection_setting.rb b/lib/stripe/resources/v2/billing/collection_setting.rb index 6a7b57232..84c3e62fd 100644 --- a/lib/stripe/resources/v2/billing/collection_setting.rb +++ b/lib/stripe/resources/v2/billing/collection_setting.rb @@ -101,9 +101,9 @@ def self.field_remappings # Selected network to process the payment on. Depends on the available networks of the card. attr_reader :network # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_reader :request_three_d_secure def self.inner_class_types diff --git a/lib/stripe/resources/v2/billing/collection_setting_version.rb b/lib/stripe/resources/v2/billing/collection_setting_version.rb index 0b69c08c2..ec7059142 100644 --- a/lib/stripe/resources/v2/billing/collection_setting_version.rb +++ b/lib/stripe/resources/v2/billing/collection_setting_version.rb @@ -100,9 +100,9 @@ def self.field_remappings # Selected network to process the payment on. Depends on the available networks of the card. attr_reader :network # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_reader :request_three_d_secure def self.inner_class_types diff --git a/lib/stripe/resources/v2/billing/meter_event.rb b/lib/stripe/resources/v2/billing/meter_event.rb index 488993f13..970493249 100644 --- a/lib/stripe/resources/v2/billing/meter_event.rb +++ b/lib/stripe/resources/v2/billing/meter_event.rb @@ -21,7 +21,8 @@ def self.object_name attr_reader :object # The payload of the event. This must contain the fields corresponding to a meter’s # `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and - # `value_settings.event_payload_key` (default is `value`). Read more about the payload. + # `value_settings.event_payload_key` (default is `value`). Read more about + # the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).. attr_reader :payload # The time of the event. Must be within the past 35 calendar days or up to # 5 minutes in the future. Defaults to current timestamp if not specified. diff --git a/lib/stripe/resources/v2/billing/service_action.rb b/lib/stripe/resources/v2/billing/service_action.rb index d162498d2..e7bf55029 100644 --- a/lib/stripe/resources/v2/billing/service_action.rb +++ b/lib/stripe/resources/v2/billing/service_action.rb @@ -28,6 +28,21 @@ def self.field_remappings @field_remappings = {} end end + + class Monetary < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. attr_reader :type # The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`. @@ -36,7 +51,7 @@ def self.field_remappings attr_reader :monetary def self.inner_class_types - @inner_class_types = { custom_pricing_unit: CustomPricingUnit } + @inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary } end def self.field_remappings @@ -127,6 +142,21 @@ def self.field_remappings @field_remappings = {} end end + + class Monetary < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. attr_reader :type # The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`. @@ -135,7 +165,7 @@ def self.field_remappings attr_reader :monetary def self.inner_class_types - @inner_class_types = { custom_pricing_unit: CustomPricingUnit } + @inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary } end def self.field_remappings diff --git a/lib/stripe/resources/v2/core/account.rb b/lib/stripe/resources/v2/core/account.rb index 05c74d007..d1344394b 100644 --- a/lib/stripe/resources/v2/core/account.rb +++ b/lib/stripe/resources/v2/core/account.rb @@ -352,9 +352,9 @@ def self.field_remappings attr_reader :exempt # A recent IP address of the customer used for tax reporting and tax location inference. attr_reader :ip_address - # The customer’s identified tax location - uses `location_source`. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. + # The [identified](https://docs.stripe.com/tax/customer-locations#address-hierarchy-other) tax location of the customer. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. attr_reader :location - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. attr_reader :location_source def self.inner_class_types @@ -461,7 +461,7 @@ def self.field_remappings @field_remappings = {} end end - # 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. Uses the `location_source` field. + # 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. attr_reader :automatic_indirect_tax def self.inner_class_types @@ -2153,6 +2153,93 @@ def self.field_remappings end end + class KonbiniPayments < ::Stripe::StripeObject + class Support < ::Stripe::StripeObject + class Hours < ::Stripe::StripeObject + # Support hours end time (JST time of day) for in `HH:MM` format. + attr_reader :end_time + # Support hours start time (JST time of day) for in `HH:MM` format. + attr_reader :start_time + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Support email address for Konbini payments. + attr_reader :email + # Support hours for Konbini payments. + attr_reader :hours + # Support phone number for Konbini payments. + attr_reader :phone + + def self.inner_class_types + @inner_class_types = { hours: Hours } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Support for Konbini payments. + attr_reader :support + + def self.inner_class_types + @inner_class_types = { support: Support } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ScriptStatementDescriptor < ::Stripe::StripeObject + class Kana < ::Stripe::StripeObject + # 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. + attr_reader :descriptor + # 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. + attr_reader :prefix + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Kanji < ::Stripe::StripeObject + # 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. + attr_reader :descriptor + # 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. + attr_reader :prefix + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + attr_reader :kana + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + attr_reader :kanji + + def self.inner_class_types + @inner_class_types = { kana: Kana, kanji: Kanji } + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebitPayments < ::Stripe::StripeObject # Creditor ID for SEPA debit payments. attr_reader :creditor_id @@ -2233,8 +2320,12 @@ def self.field_remappings attr_reader :capabilities # Card payments settings. attr_reader :card_payments + # Settings specific to Konbini payments on the account. + attr_reader :konbini_payments # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. attr_reader :mcc + # Settings for the default text that appears on statements for language variations. + attr_reader :script_statement_descriptor # Settings used for SEPA debit payments. attr_reader :sepa_debit_payments # Statement descriptor. @@ -2248,6 +2339,8 @@ def self.inner_class_types branding: Branding, capabilities: Capabilities, card_payments: CardPayments, + konbini_payments: KonbiniPayments, + script_statement_descriptor: ScriptStatementDescriptor, sepa_debit_payments: SepaDebitPayments, statement_descriptor: StatementDescriptor, support: Support, @@ -2609,6 +2702,37 @@ def self.field_remappings end class HoldsCurrencies < ::Stripe::StripeObject + class Eur < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + attr_reader :code + # Machine-readable code explaining how to make the Capability active. + attr_reader :resolution + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + attr_reader :requested + # The status of the Capability. + attr_reader :status + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + attr_reader :status_details + + def self.inner_class_types + @inner_class_types = { status_details: StatusDetail } + end + + def self.field_remappings + @field_remappings = {} + end + end + class Gbp < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -2701,6 +2825,8 @@ def self.field_remappings @field_remappings = {} end end + # Can hold storage-type funds on Stripe in EUR. + attr_reader :eur # Can hold storage-type funds on Stripe in GBP. attr_reader :gbp # Can hold storage-type funds on Stripe in USD. @@ -2709,7 +2835,7 @@ def self.field_remappings attr_reader :usdc def self.inner_class_types - @inner_class_types = { gbp: Gbp, usd: Usd, usdc: Usdc } + @inner_class_types = { eur: Eur, gbp: Gbp, usd: Usd, usdc: Usdc } end def self.field_remappings @@ -3148,6 +3274,8 @@ class Responsibilities < ::Stripe::StripeObject attr_reader :fees_collector # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments. attr_reader :losses_collector + # A value indicating responsibility for collecting requirements on this account. + attr_reader :requirements_collector def self.inner_class_types @inner_class_types = {} @@ -3175,6 +3303,179 @@ def self.field_remappings end end + class FutureRequirements < ::Stripe::StripeObject + class Entry < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject + # Machine-readable code describing the error. + attr_reader :code + # Human-readable description of the error. + attr_reader :description + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Impact < ::Stripe::StripeObject + class RestrictsCapability < ::Stripe::StripeObject + class Deadline < ::Stripe::StripeObject + # The current status of the requirement's impact. + attr_reader :status + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The name of the Capability which will be restricted. + attr_reader :capability + # The configuration which specifies the Capability which will be restricted. + attr_reader :configuration + # Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. + attr_reader :deadline + + def self.inner_class_types + @inner_class_types = { deadline: Deadline } + end + + def self.field_remappings + @field_remappings = {} + end + end + # The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. + attr_reader :restricts_capabilities + + def self.inner_class_types + @inner_class_types = { restricts_capabilities: RestrictsCapability } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class MinimumDeadline < ::Stripe::StripeObject + # The current status of the requirement's impact. + attr_reader :status + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Reference < ::Stripe::StripeObject + # If `inquiry` is the type, the inquiry token. + attr_reader :inquiry + # If `resource` is the type, the resource token. + attr_reader :resource + # 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. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class RequestedReason < ::Stripe::StripeObject + # Machine-readable description of Stripe's reason for collecting the requirement. + attr_reader :code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the responsibility is with the integrator or with Stripe (to review info, to wait for some condition, etc.) to action the requirement. + attr_reader :awaiting_action_from + # Machine-readable string describing the requirement. + attr_reader :description + # Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. + attr_reader :errors + # A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. + attr_reader :impact + # The soonest point when the account will be impacted by not providing the requirement. + attr_reader :minimum_deadline + # A reference to the location of the requirement. + attr_reader :reference + # A list of reasons why Stripe is collecting the requirement. + attr_reader :requested_reasons + + def self.inner_class_types + @inner_class_types = { + errors: Error, + impact: Impact, + minimum_deadline: MinimumDeadline, + reference: Reference, + requested_reasons: RequestedReason, + } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Summary < ::Stripe::StripeObject + class MinimumDeadline < ::Stripe::StripeObject + # The current strictest status of all requirements on the Account. + attr_reader :status + # The soonest RFC3339 date & time UTC value a requirement can impact the Account. + attr_reader :time + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # 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`. + attr_reader :minimum_deadline + + def self.inner_class_types + @inner_class_types = { minimum_deadline: MinimumDeadline } + end + + def self.field_remappings + @field_remappings = {} + end + end + # A list of requirements for the Account. + attr_reader :entries + # The time at which the future requirements become effective. + attr_reader :minimum_transition_date + # An object containing an overview of requirements for the Account. + attr_reader :summary + + def self.inner_class_types + @inner_class_types = { entries: Entry, summary: Summary } + end + + def self.field_remappings + @field_remappings = {} + end + end + class Identity < ::Stripe::StripeObject class Attestations < ::Stripe::StripeObject class DirectorshipDeclaration < ::Stripe::StripeObject @@ -3873,13 +4174,27 @@ def self.field_remappings end class AnnualRevenue < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # A non-negative integer representing the amount in the smallest currency unit. attr_reader :amount # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. attr_reader :fiscal_year_end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { amount: Amount } end def self.field_remappings @@ -4108,11 +4423,25 @@ def self.field_remappings end class MonthlyEstimatedRevenue < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # A non-negative integer representing the amount in the smallest currency unit. attr_reader :amount def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { amount: Amount } end def self.field_remappings @@ -4825,7 +5154,8 @@ class Reference < ::Stripe::StripeObject attr_reader :inquiry # If `resource` is the type, the resource token. attr_reader :resource - # The type of the reference. An additional hash is included with a name matching the type. It contains additional information specific to the type. + # 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. attr_reader :type def self.inner_class_types @@ -4905,8 +5235,6 @@ def self.field_remappings @field_remappings = {} end end - # A value indicating responsibility for collecting requirements on this account. - attr_reader :collector # A list of requirements for the Account. attr_reader :entries # An object containing an overview of requirements for the Account. @@ -4936,6 +5264,8 @@ def self.field_remappings attr_reader :defaults # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. attr_reader :display_name + # Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when. + attr_reader :future_requirements # Unique identifier for the Account. attr_reader :id # Information about the company, individual, and business represented by the Account. @@ -4944,7 +5274,7 @@ def self.field_remappings attr_reader :metadata # String representing the object's type. Objects of the same type share the same value of the object field. attr_reader :object - # Information about the requirements for the Account, including what information needs to be collected, and by when. + # Information about the active requirements for the Account, including what information needs to be collected, and by when. attr_reader :requirements # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. attr_reader :livemode @@ -4953,6 +5283,7 @@ def self.inner_class_types @inner_class_types = { configuration: Configuration, defaults: Defaults, + future_requirements: FutureRequirements, identity: Identity, requirements: Requirements, } diff --git a/lib/stripe/resources/v2/core/account_person_token.rb b/lib/stripe/resources/v2/core/account_person_token.rb new file mode 100644 index 000000000..4d2667bae --- /dev/null +++ b/lib/stripe/resources/v2/core/account_person_token.rb @@ -0,0 +1,37 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + # Person Tokens are single-use tokens which tokenize person information, and are used for creating or updating a Person. + class AccountPersonToken < APIResource + OBJECT_NAME = "v2.core.account_person_token" + def self.object_name + "v2.core.account_person_token" + end + + # 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. + attr_reader :created + # Time at which the token will expire. + attr_reader :expires_at + # Unique identifier for the token. + attr_reader :id + # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + attr_reader :livemode + # String representing the object's type. Objects of the same type share the same value of the object field. + attr_reader :object + # Determines if the token has already been used (tokens can only be used once). + attr_reader :used + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + end + end +end diff --git a/lib/stripe/resources/v2/core/account_token.rb b/lib/stripe/resources/v2/core/account_token.rb new file mode 100644 index 000000000..be1d86880 --- /dev/null +++ b/lib/stripe/resources/v2/core/account_token.rb @@ -0,0 +1,37 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + # Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + class AccountToken < APIResource + OBJECT_NAME = "v2.core.account_token" + def self.object_name + "v2.core.account_token" + end + + # 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. + attr_reader :created + # Time at which the token will expire. + attr_reader :expires_at + # Unique identifier for the token. + attr_reader :id + # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + attr_reader :livemode + # String representing the object's type. Objects of the same type share the same value of the object field. + attr_reader :object + # Determines if the token has already been used (tokens can only be used once). + attr_reader :used + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + end + end +end diff --git a/lib/stripe/resources/v2/core/event.rb b/lib/stripe/resources/v2/core/event.rb index 3a4bde55d..a3774965b 100644 --- a/lib/stripe/resources/v2/core/event.rb +++ b/lib/stripe/resources/v2/core/event.rb @@ -55,8 +55,6 @@ def self.field_remappings attr_reader :reason # The type of the event. attr_reader :type - # For interop events, this is the snapshot event ID. - attr_reader :v1_event_id def self.inner_class_types @inner_class_types = { reason: Reason } diff --git a/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb b/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb index 02424aa29..d51937225 100644 --- a/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +++ b/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb @@ -9,6 +9,20 @@ def self.object_name "financial_address_generated_microdeposits" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The amounts of the microdeposits that were generated. attr_reader :amounts # String representing the object's type. Objects of the same type share the same value of the object field. @@ -19,7 +33,7 @@ def self.object_name attr_reader :livemode def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { amounts: Amount } end def self.field_remappings diff --git a/lib/stripe/resources/v2/money_management/adjustment.rb b/lib/stripe/resources/v2/money_management/adjustment.rb index 13e31ec37..2493dfc8c 100644 --- a/lib/stripe/resources/v2/money_management/adjustment.rb +++ b/lib/stripe/resources/v2/money_management/adjustment.rb @@ -35,6 +35,21 @@ def self.field_remappings @field_remappings = {} end end + + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # If applicable, contains information about the original flow linked to this Adjustment. attr_reader :adjusted_flow # The amount of the Adjustment. @@ -55,7 +70,7 @@ def self.field_remappings attr_reader :livemode def self.inner_class_types - @inner_class_types = { adjusted_flow: AdjustedFlow } + @inner_class_types = { adjusted_flow: AdjustedFlow, amount: Amount } end def self.field_remappings diff --git a/lib/stripe/resources/v2/money_management/currency_conversion.rb b/lib/stripe/resources/v2/money_management/currency_conversion.rb new file mode 100644 index 000000000..082f9a731 --- /dev/null +++ b/lib/stripe/resources/v2/money_management/currency_conversion.rb @@ -0,0 +1,94 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module MoneyManagement + # The CurrencyConversion object. Contains details such as the amount debited and credited and the FinancialAccount the CurrencyConversion was performed on. + class CurrencyConversion < APIResource + OBJECT_NAME = "v2.money_management.currency_conversion" + def self.object_name + "v2.money_management.currency_conversion" + end + + class From < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Amount object. + attr_reader :amount + + def self.inner_class_types + @inner_class_types = { amount: Amount } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class To < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Amount object. + attr_reader :amount + + def self.inner_class_types + @inner_class_types = { amount: Amount } + end + + def self.field_remappings + @field_remappings = {} + end + end + # The time the CurrencyConversion was created at. + attr_reader :created + # The exchange rate used when processing the CurrencyConversion. + attr_reader :exchange_rate + # The FinancialAccount the CurrencyConversion was performed on. + attr_reader :financial_account + # The from block containing what was debited. + attr_reader :from + # The id of the CurrencyConversion. + attr_reader :id + # If the CurrencyConversion was performed in livemode or not. + attr_reader :livemode + # String representing the object's type. Objects of the same type share the same value of the object field. + attr_reader :object + # The to block containing what was credited. + attr_reader :to + + def self.inner_class_types + @inner_class_types = { from: From, to: To } + end + + def self.field_remappings + @field_remappings = {} + end + end + end + end +end diff --git a/lib/stripe/resources/v2/money_management/financial_account.rb b/lib/stripe/resources/v2/money_management/financial_account.rb index f9c90ecc1..13e0475fc 100644 --- a/lib/stripe/resources/v2/money_management/financial_account.rb +++ b/lib/stripe/resources/v2/money_management/financial_account.rb @@ -12,6 +12,50 @@ def self.object_name end class Balance < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Balance that can be used for money movement. attr_reader :available # Balance of inbound funds that will later transition to the `available` balance. @@ -20,7 +64,11 @@ class Balance < ::Stripe::StripeObject attr_reader :outbound_pending def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings diff --git a/lib/stripe/resources/v2/money_management/inbound_transfer.rb b/lib/stripe/resources/v2/money_management/inbound_transfer.rb index b58d6baf8..645510e70 100644 --- a/lib/stripe/resources/v2/money_management/inbound_transfer.rb +++ b/lib/stripe/resources/v2/money_management/inbound_transfer.rb @@ -12,7 +12,37 @@ def self.object_name "v2.money_management.inbound_transfer" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class PaymentMethod < ::Stripe::StripeObject # The type of object this destination represents. For a us bank account, we expect us_bank_account. attr_reader :type @@ -33,7 +63,7 @@ def self.field_remappings attr_reader :payment_method def self.inner_class_types - @inner_class_types = { payment_method: PaymentMethod } + @inner_class_types = { debited: Debited, payment_method: PaymentMethod } end def self.field_remappings @@ -42,13 +72,27 @@ def self.field_remappings end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The amount by which the FinancialAccount balance is credited. attr_reader :credited # The FinancialAccount that funds will land in. attr_reader :financial_account def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { credited: Credited } end def self.field_remappings @@ -136,7 +180,12 @@ def self.field_remappings attr_reader :livemode def self.inner_class_types - @inner_class_types = { from: From, to: To, transfer_history: TransferHistory } + @inner_class_types = { + amount: Amount, + from: From, + to: To, + transfer_history: TransferHistory, + } end def self.field_remappings diff --git a/lib/stripe/resources/v2/money_management/outbound_payment.rb b/lib/stripe/resources/v2/money_management/outbound_payment.rb index ba691587f..63af5786a 100644 --- a/lib/stripe/resources/v2/money_management/outbound_payment.rb +++ b/lib/stripe/resources/v2/money_management/outbound_payment.rb @@ -11,6 +11,21 @@ def self.object_name "v2.money_management.outbound_payment" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. attr_reader :bank_account @@ -25,13 +40,27 @@ def self.field_remappings end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. attr_reader :debited # The FinancialAccount that funds were pulled from. attr_reader :financial_account def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { debited: Debited } end def self.field_remappings @@ -117,6 +146,20 @@ def self.field_remappings end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. attr_reader :credited # The payout method which the OutboundPayment uses to send payout. @@ -125,7 +168,7 @@ class To < ::Stripe::StripeObject attr_reader :recipient def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { credited: Credited } end def self.field_remappings @@ -200,6 +243,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + amount: Amount, delivery_options: DeliveryOptions, from: From, recipient_notification: RecipientNotification, diff --git a/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb b/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb index 8db45eb1f..46684989e 100644 --- a/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +++ b/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb @@ -11,6 +11,21 @@ def self.object_name "v2.money_management.outbound_payment_quote" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. attr_reader :bank_account @@ -25,13 +40,27 @@ def self.field_remappings end class EstimatedFee < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The fee amount for corresponding fee type. attr_reader :amount # The fee type. attr_reader :type def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { amount: Amount } end def self.field_remappings @@ -40,13 +69,27 @@ def self.field_remappings end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. attr_reader :debited # The FinancialAccount that funds were pulled from. attr_reader :financial_account def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { debited: Debited } end def self.field_remappings @@ -88,6 +131,20 @@ def self.field_remappings end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. attr_reader :credited # The payout method which the OutboundPayment uses to send payout. @@ -96,7 +153,7 @@ class To < ::Stripe::StripeObject attr_reader :recipient def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { credited: Credited } end def self.field_remappings @@ -127,6 +184,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + amount: Amount, delivery_options: DeliveryOptions, estimated_fees: EstimatedFee, from: From, diff --git a/lib/stripe/resources/v2/money_management/outbound_transfer.rb b/lib/stripe/resources/v2/money_management/outbound_transfer.rb index a54f970d4..78c8be47b 100644 --- a/lib/stripe/resources/v2/money_management/outbound_transfer.rb +++ b/lib/stripe/resources/v2/money_management/outbound_transfer.rb @@ -11,6 +11,21 @@ def self.object_name "v2.money_management.outbound_transfer" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. attr_reader :bank_account @@ -25,13 +40,27 @@ def self.field_remappings end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. attr_reader :debited # The FinancialAccount that funds were pulled from. attr_reader :financial_account def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { debited: Debited } end def self.field_remappings @@ -103,13 +132,27 @@ def self.field_remappings end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. attr_reader :credited # The payout method which the OutboundTransfer uses to send payout. attr_reader :payout_method def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { credited: Credited } end def self.field_remappings @@ -180,6 +223,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + amount: Amount, delivery_options: DeliveryOptions, from: From, status_details: StatusDetails, diff --git a/lib/stripe/resources/v2/money_management/received_credit.rb b/lib/stripe/resources/v2/money_management/received_credit.rb index 3da4eff33..e07734115 100644 --- a/lib/stripe/resources/v2/money_management/received_credit.rb +++ b/lib/stripe/resources/v2/money_management/received_credit.rb @@ -11,6 +11,36 @@ def self.object_name "v2.money_management.received_credit" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ExternalAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class StatusDetails < ::Stripe::StripeObject class Failed < ::Stripe::StripeObject # Open Enum. The `failed` status reason. @@ -214,6 +244,8 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + amount: Amount, + external_amount: ExternalAmount, status_details: StatusDetails, status_transitions: StatusTransitions, balance_transfer: BalanceTransfer, diff --git a/lib/stripe/resources/v2/money_management/received_debit.rb b/lib/stripe/resources/v2/money_management/received_debit.rb index e1c5f47cd..c50493d75 100644 --- a/lib/stripe/resources/v2/money_management/received_debit.rb +++ b/lib/stripe/resources/v2/money_management/received_debit.rb @@ -11,6 +11,36 @@ def self.object_name "v2.money_management.received_debit" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ExternalAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class StatusDetails < ::Stripe::StripeObject class Failed < ::Stripe::StripeObject # Open Enum. The reason for the failure of the ReceivedDebit. @@ -125,6 +155,8 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + amount: Amount, + external_amount: ExternalAmount, status_details: StatusDetails, status_transitions: StatusTransitions, bank_transfer: BankTransfer, diff --git a/lib/stripe/resources/v2/money_management/transaction.rb b/lib/stripe/resources/v2/money_management/transaction.rb index c001a81ff..5a29a3b93 100644 --- a/lib/stripe/resources/v2/money_management/transaction.rb +++ b/lib/stripe/resources/v2/money_management/transaction.rb @@ -11,7 +11,66 @@ def self.object_name "v2.money_management.transaction" end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class BalanceImpact < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Impact to the available balance. attr_reader :available # Impact to the inbound_pending balance. @@ -20,7 +79,11 @@ class BalanceImpact < ::Stripe::StripeObject attr_reader :outbound_pending def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings @@ -101,6 +164,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + amount: Amount, balance_impact: BalanceImpact, flow: Flow, status_transitions: StatusTransitions, diff --git a/lib/stripe/resources/v2/money_management/transaction_entry.rb b/lib/stripe/resources/v2/money_management/transaction_entry.rb index 12287c741..4719d2c0b 100644 --- a/lib/stripe/resources/v2/money_management/transaction_entry.rb +++ b/lib/stripe/resources/v2/money_management/transaction_entry.rb @@ -12,6 +12,50 @@ def self.object_name end class BalanceImpact < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Impact to the available balance. attr_reader :available # Impact to the inbound_pending balance. @@ -20,7 +64,11 @@ class BalanceImpact < ::Stripe::StripeObject attr_reader :outbound_pending def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings diff --git a/lib/stripe/resources/v2/payments/off_session_payment.rb b/lib/stripe/resources/v2/payments/off_session_payment.rb index 55346555e..f4e8dbe50 100644 --- a/lib/stripe/resources/v2/payments/off_session_payment.rb +++ b/lib/stripe/resources/v2/payments/off_session_payment.rb @@ -11,82 +11,29 @@ def self.object_name "v2.payments.off_session_payment" end - class AmountDetails < ::Stripe::StripeObject - class LineItem < ::Stripe::StripeObject - class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. - attr_reader :total_tax_amount - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end - end - # The amount an item was discounted for. Positive integer. - attr_reader :discount_amount - # Unique identifier of the product. At most 12 characters long. - attr_reader :product_code - # Name of the product. At most 100 characters long. - attr_reader :product_name - # Number of items of the product. Positive integer. - attr_reader :quantity - # Contains information about the tax on the item. - attr_reader :tax - # Cost of the product. Non-negative integer. - attr_reader :unit_cost - - def self.inner_class_types - @inner_class_types = { tax: Tax } - end - - def self.field_remappings - @field_remappings = {} - end - end + class AmountCapturable < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency - class Shipping < ::Stripe::StripeObject - # Portion of the amount that is for shipping. - attr_reader :amount - # The postal code that represents the shipping source. - attr_reader :from_postal_code - # The postal code that represents the shipping destination. - attr_reader :to_postal_code - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end + def self.inner_class_types + @inner_class_types = {} end - class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. - attr_reader :total_tax_amount - - def self.inner_class_types - @inner_class_types = {} - end - - def self.field_remappings - @field_remappings = {} - end + def self.field_remappings + @field_remappings = {} end - # The amount the total transaction was discounted for. - attr_reader :discount_amount - # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - attr_reader :line_items - # Contains information about the shipping portion of the amount. - attr_reader :shipping - # Contains information about the tax portion of the amount. - attr_reader :tax + end + + class AmountRequested < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + attr_reader :value + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency def self.inner_class_types - @inner_class_types = { line_items: LineItem, shipping: Shipping, tax: Tax } + @inner_class_types = {} end def self.field_remappings @@ -144,7 +91,7 @@ class TransferData < ::Stripe::StripeObject # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). attr_reader :amount @@ -162,16 +109,12 @@ def self.field_remappings end # The amount available to be captured. attr_reader :amount_capturable - # Provides industry-specific information about the amount. - attr_reader :amount_details # The “presentment amount” to be collected from the customer. attr_reader :amount_requested # The frequency of the underlying payment. attr_reader :cadence # Details about the capture configuration for the OffSessionPayment. attr_reader :capture - # Whether the OffSessionPayment should be captured automatically or manually. - attr_reader :capture_method # ID of the owning compartment. attr_reader :compartment_id # Creation time of the OffSessionPayment. Represented as a RFC 3339 date & time UTC @@ -189,10 +132,10 @@ def self.field_remappings attr_reader :latest_payment_attempt_record # Has the value true if the object exists in live mode or the value false if the object exists in test mode. attr_reader :livemode - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). attr_reader :metadata # String representing the object's type. Objects of the same type share the same value of the object field. attr_reader :object @@ -220,12 +163,13 @@ def self.field_remappings attr_reader :status # Test clock that can be used to advance the retry attempts in a sandbox. attr_reader :test_clock - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). attr_reader :transfer_data def self.inner_class_types @inner_class_types = { - amount_details: AmountDetails, + amount_capturable: AmountCapturable, + amount_requested: AmountRequested, capture: Capture, payments_orchestration: PaymentsOrchestration, retry_details: RetryDetails, diff --git a/lib/stripe/services.rb b/lib/stripe/services.rb index da774f63e..986c1171b 100644 --- a/lib/stripe/services.rb +++ b/lib/stripe/services.rb @@ -238,7 +238,9 @@ require "stripe/services/v2/billing_service" require "stripe/services/v2/core/account_link_service" require "stripe/services/v2/core/account_service" +require "stripe/services/v2/core/account_token_service" require "stripe/services/v2/core/accounts/person_service" +require "stripe/services/v2/core/accounts/person_token_service" require "stripe/services/v2/core/claimable_sandbox_service" require "stripe/services/v2/core/event_destination_service" require "stripe/services/v2/core/event_service" @@ -247,6 +249,7 @@ require "stripe/services/v2/core/vault_service" require "stripe/services/v2/core_service" require "stripe/services/v2/money_management/adjustment_service" +require "stripe/services/v2/money_management/currency_conversion_service" require "stripe/services/v2/money_management/financial_account_service" require "stripe/services/v2/money_management/financial_address_service" require "stripe/services/v2/money_management/inbound_transfer_service" diff --git a/lib/stripe/services/payment_method_service.rb b/lib/stripe/services/payment_method_service.rb index e4395fddb..c58d87d64 100644 --- a/lib/stripe/services/payment_method_service.rb +++ b/lib/stripe/services/payment_method_service.rb @@ -26,7 +26,7 @@ def attach(payment_method, params = {}, opts = {}) ) end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. def check_balance(payment_method, params = {}, opts = {}) request( method: :post, diff --git a/lib/stripe/services/v2/core/account_service.rb b/lib/stripe/services/v2/core/account_service.rb index a2110bbbc..97b2dd9e9 100644 --- a/lib/stripe/services/v2/core/account_service.rb +++ b/lib/stripe/services/v2/core/account_service.rb @@ -5,11 +5,12 @@ module Stripe module V2 module Core class AccountService < StripeService - attr_reader :persons + attr_reader :persons, :person_tokens def initialize(requestor) super @persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor) + @person_tokens = Stripe::V2::Core::Accounts::PersonTokenService.new(@requestor) end # 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. diff --git a/lib/stripe/services/v2/core/account_token_service.rb b/lib/stripe/services/v2/core/account_token_service.rb new file mode 100644 index 000000000..c31471f7c --- /dev/null +++ b/lib/stripe/services/v2/core/account_token_service.rb @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + class AccountTokenService < StripeService + # Creates an Account Token. + def create(params = {}, opts = {}) + request( + method: :post, + path: "/v2/core/account_tokens", + params: params, + opts: opts, + base_address: :api + ) + end + + # Retrieves an Account Token. + def retrieve(id, params = {}, opts = {}) + request( + method: :get, + path: format("/v2/core/account_tokens/%s", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + end + end + end +end diff --git a/lib/stripe/services/v2/core/accounts/person_token_service.rb b/lib/stripe/services/v2/core/accounts/person_token_service.rb new file mode 100644 index 000000000..89ab7ba49 --- /dev/null +++ b/lib/stripe/services/v2/core/accounts/person_token_service.rb @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + module Accounts + class PersonTokenService < StripeService + # Creates a Person Token associated with an Account. + def create(account_id, params = {}, opts = {}) + request( + method: :post, + path: format("/v2/core/accounts/%s/person_tokens", { account_id: CGI.escape(account_id) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Retrieves a Person Token associated with an Account. + def retrieve(account_id, id, params = {}, opts = {}) + request( + method: :get, + path: format("/v2/core/accounts/%s/person_tokens/%s", { account_id: CGI.escape(account_id), id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + end + end + end + end +end diff --git a/lib/stripe/services/v2/core_service.rb b/lib/stripe/services/v2/core_service.rb index 8ae52da9b..4ceab5230 100644 --- a/lib/stripe/services/v2/core_service.rb +++ b/lib/stripe/services/v2/core_service.rb @@ -4,12 +4,13 @@ module Stripe module V2 class CoreService < StripeService - attr_reader :accounts, :account_links, :claimable_sandboxes, :events, :event_destinations, :vault + attr_reader :accounts, :account_links, :account_tokens, :claimable_sandboxes, :events, :event_destinations, :vault def initialize(requestor) super @accounts = Stripe::V2::Core::AccountService.new(@requestor) @account_links = Stripe::V2::Core::AccountLinkService.new(@requestor) + @account_tokens = Stripe::V2::Core::AccountTokenService.new(@requestor) @claimable_sandboxes = Stripe::V2::Core::ClaimableSandboxService.new(@requestor) @events = Stripe::V2::Core::EventService.new(@requestor) @event_destinations = Stripe::V2::Core::EventDestinationService.new(@requestor) diff --git a/lib/stripe/services/v2/money_management/currency_conversion_service.rb b/lib/stripe/services/v2/money_management/currency_conversion_service.rb new file mode 100644 index 000000000..3861f9254 --- /dev/null +++ b/lib/stripe/services/v2/money_management/currency_conversion_service.rb @@ -0,0 +1,45 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionService < StripeService + # Create a CurrencyConversion. + # + # ** raises FeatureNotEnabledError + def create(params = {}, opts = {}) + request( + method: :post, + path: "/v2/money_management/currency_conversions", + params: params, + opts: opts, + base_address: :api + ) + end + + # List all CurrencyConversion on an account with the option to filter by FinancialAccount. + def list(params = {}, opts = {}) + request( + method: :get, + path: "/v2/money_management/currency_conversions", + params: params, + opts: opts, + base_address: :api + ) + end + + # Retrieve details of a CurrencyConversion by id. + def retrieve(id, params = {}, opts = {}) + request( + method: :get, + path: format("/v2/money_management/currency_conversions/%s", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + end + end + end +end diff --git a/lib/stripe/services/v2/money_management_service.rb b/lib/stripe/services/v2/money_management_service.rb index feb7a3ddd..111b91ed0 100644 --- a/lib/stripe/services/v2/money_management_service.rb +++ b/lib/stripe/services/v2/money_management_service.rb @@ -4,11 +4,13 @@ module Stripe module V2 class MoneyManagementService < StripeService - attr_reader :adjustments, :financial_accounts, :financial_addresses, :inbound_transfers, :outbound_payments, :outbound_payment_quotes, :outbound_setup_intents, :outbound_transfers, :payout_methods, :payout_methods_bank_account_spec, :received_credits, :received_debits, :recipient_verifications, :transactions, :transaction_entries + attr_reader :adjustments, :currency_conversions, :financial_accounts, :financial_addresses, :inbound_transfers, :outbound_payments, :outbound_payment_quotes, :outbound_setup_intents, :outbound_transfers, :payout_methods, :payout_methods_bank_account_spec, :received_credits, :received_debits, :recipient_verifications, :transactions, :transaction_entries def initialize(requestor) super @adjustments = Stripe::V2::MoneyManagement::AdjustmentService.new(@requestor) + @currency_conversions = Stripe::V2::MoneyManagement::CurrencyConversionService + .new(@requestor) @financial_accounts = Stripe::V2::MoneyManagement::FinancialAccountService.new(@requestor) @financial_addresses = Stripe::V2::MoneyManagement::FinancialAddressService.new(@requestor) @inbound_transfers = Stripe::V2::MoneyManagement::InboundTransferService.new(@requestor) diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 4a4a1f561..997fb08b1 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -1112,8 +1112,22 @@ end module Stripe module V2 class FinancialAddressGeneratedMicrodeposits < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The amounts of the microdeposits that were generated. - sig { returns(T::Array[::Stripe::V2::Amount]) } + sig { returns(T::Array[Amount]) } def amounts; end # String representing the object's type. Objects of the same type share the same value of the object field. sig { returns(String) } @@ -2046,6 +2060,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = {discounts: Discount, trial: Trial} end @@ -2199,6 +2216,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = {discounts: Discount, trial: Trial} end @@ -2460,6 +2480,9 @@ module Stripe # Settings related to subscription trials. sig { returns(T.nilable(TrialSettings)) } def trial_settings; end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end end end # typed: true @@ -18065,9 +18088,27 @@ module Stripe # The SKU ID of the line item. sig { returns(String) } def sku_id; end - # The unit amount of the line item. + # The per-unit amount of the item before any discounts or taxes are applied. sig { returns(Integer) } def unit_amount; end + # The total discount for this line item. If no discount were applied, defaults to 0. + sig { returns(Integer) } + def amount_discount; end + # The total before any discounts or taxes are applied. + sig { returns(Integer) } + def amount_subtotal; end + # The total after discounts but before taxes are applied. + sig { returns(Integer) } + def amount_subtotal_after_discount; end + # The total after discounts and taxes. + sig { returns(Integer) } + def amount_total; end + # The per-unit amount of the item after discounts but before taxes are applied. + sig { returns(Integer) } + def unit_amount_after_discount; end + # The per-unit discount amount. If no discount were applied, defaults to 0. + sig { returns(Integer) } + def unit_discount; end def self.inner_class_types @inner_class_types = {} end @@ -18204,6 +18245,9 @@ module Stripe # The amount tax of the total details. sig { returns(T.nilable(Integer)) } def amount_tax; end + # Total of all items after discounts but before taxes are applied. + sig { returns(T.nilable(Integer)) } + def amount_subtotal_after_discount; end # The applicable fees of the total details. sig { returns(T.nilable(T::Array[ApplicableFee])) } def applicable_fees; end @@ -18215,10 +18259,10 @@ module Stripe end end # The subtotal amount of the requested session. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def amount_subtotal; end # The total amount of the requested session. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def amount_total; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -38743,13 +38787,13 @@ module Stripe } def self.attach(payment_method, params = {}, opts = {}); end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. sig { params(params: T.any(::Stripe::PaymentMethodCheckBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodBalance) } def check_balance(params = {}, opts = {}); end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. sig { params(payment_method: String, params: T.any(::Stripe::PaymentMethodCheckBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodBalance) } @@ -42723,17 +42767,6 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class LineStartsAt < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } @@ -42745,32 +42778,12 @@ module Stripe @field_remappings = {} end end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Lets you bill the period starting from a particular Quote line. sig { returns(T.nilable(LineStartsAt)) } def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -42778,28 +42791,13 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {line_starts_at: LineStartsAt} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -42825,11 +42823,8 @@ module Stripe @field_remappings = {} end end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } @@ -42844,11 +42839,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration, line_ends_at: LineEndsAt} end def self.field_remappings @field_remappings = {} @@ -42860,7 +42851,7 @@ module Stripe # Specifies the start of the billing period. sig { returns(T.nilable(BillFrom)) } def bill_from; end - # Specifies the end of billing period. + # Attribute for field bill_until sig { returns(BillUntil) } def bill_until; end # Unique identifier for the billing schedule. @@ -42914,7 +42905,7 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) 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 `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values. sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end - # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + # Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. sig { returns(T.nilable(String)) } def phase_effective_at; end # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. @@ -43065,17 +43056,6 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class LineStartsAt < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } @@ -43087,32 +43067,12 @@ module Stripe @field_remappings = {} end end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Lets you bill the period starting from a particular Quote line. sig { returns(T.nilable(LineStartsAt)) } def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -43120,28 +43080,13 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {line_starts_at: LineStartsAt} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -43167,11 +43112,8 @@ module Stripe @field_remappings = {} end end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } @@ -43186,11 +43128,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration, line_ends_at: LineEndsAt} end def self.field_remappings @field_remappings = {} @@ -43202,7 +43140,7 @@ module Stripe # Specifies the start of the billing period. sig { returns(T.nilable(BillFrom)) } def bill_from; end - # Specifies the end of billing period. + # Attribute for field bill_until sig { returns(BillUntil) } def bill_until; end # Unique identifier for the billing schedule. @@ -43236,7 +43174,7 @@ module Stripe # Behavior of the subscription schedule and underlying subscription when it ends. sig { returns(T.nilable(String)) } def end_behavior; end - # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + # Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. sig { returns(T.nilable(String)) } def phase_effective_at; end # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted. @@ -45412,6 +45350,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = { billing_thresholds: BillingThresholds, @@ -45539,6 +45480,9 @@ module Stripe # Settings related to any trials on the subscription during this phase. sig { returns(T.nilable(TrialSettings)) } def trial_settings; end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end def self.inner_class_types @inner_class_types = { add_invoice_items: AddInvoiceItem, @@ -45592,83 +45536,23 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. - sig { returns(T.nilable(Integer)) } + sig { returns(Integer) } def computed_timestamp; end - # Lets you bill the period starting from a particular Quote line. - sig { returns(T.nilable(LineStartsAt)) } - def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -45683,29 +45567,12 @@ module Stripe @field_remappings = {} end end - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. sig { returns(Integer) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } def duration; end - # Lets you bill the period ending at a particular Quote line. - sig { returns(T.nilable(LineEndsAt)) } - def line_ends_at; end # If specified, the billing schedule will apply until the specified timestamp. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -45713,11 +45580,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration} end def self.field_remappings @field_remappings = {} @@ -50153,6 +50016,23 @@ module Stripe @field_remappings = {} end end + class CurrentTrial < ::Stripe::StripeObject + # Attribute for field end_date + sig { returns(Integer) } + def end_date; end + # Attribute for field start_date + sig { returns(Integer) } + def start_date; end + # Attribute for field trial_offer + sig { returns(String) } + def trial_offer; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The time period the subscription item has been billed for. sig { returns(T.nilable(Integer)) } def billed_until; end @@ -50210,6 +50090,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The current trial that is applied to this subscription item. + sig { returns(T.nilable(CurrentTrial)) } + def current_trial; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end @@ -50756,6 +50639,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = { billing_thresholds: BillingThresholds, @@ -50883,6 +50769,9 @@ module Stripe # Settings related to any trials on the subscription during this phase. sig { returns(T.nilable(TrialSettings)) } def trial_settings; end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end def self.inner_class_types @inner_class_types = { add_invoice_items: AddInvoiceItem, @@ -50936,83 +50825,23 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. - sig { returns(T.nilable(Integer)) } + sig { returns(Integer) } def computed_timestamp; end - # Lets you bill the period starting from a particular Quote line. - sig { returns(T.nilable(LineStartsAt)) } - def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -51027,29 +50856,12 @@ module Stripe @field_remappings = {} end end - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. sig { returns(Integer) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } def duration; end - # Lets you bill the period ending at a particular Quote line. - sig { returns(T.nilable(LineEndsAt)) } - def line_ends_at; end # If specified, the billing schedule will apply until the specified timestamp. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -51057,11 +50869,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration} end def self.field_remappings @field_remappings = {} @@ -51320,83 +51128,23 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. - sig { returns(T.nilable(Integer)) } + sig { returns(Integer) } def computed_timestamp; end - # Lets you bill the period starting from a particular Quote line. - sig { returns(T.nilable(LineStartsAt)) } - def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -51411,29 +51159,12 @@ module Stripe @field_remappings = {} end end - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. sig { returns(Integer) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } def duration; end - # Lets you bill the period ending at a particular Quote line. - sig { returns(T.nilable(LineEndsAt)) } - def line_ends_at; end # If specified, the billing schedule will apply until the specified timestamp. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -51441,11 +51172,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration} end def self.field_remappings @field_remappings = {} @@ -60292,9 +60019,9 @@ module Stripe sig { returns(T.nilable(String)) } def network; end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end def self.inner_class_types @@ -60596,9 +60323,9 @@ module Stripe sig { returns(T.nilable(String)) } def network; end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end def self.inner_class_types @@ -60861,9 +60588,9 @@ module Stripe sig { returns(T.nilable(String)) } def network; end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end def self.inner_class_types @@ -61891,7 +61618,8 @@ module Stripe def object; end # The payload of the event. This must contain the fields corresponding to a meter’s # `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and - # `value_settings.event_payload_key` (default is `value`). Read more about the payload. + # `value_settings.event_payload_key` (default is `value`). Read more about + # the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).. sig { returns(T::Hash[String, String]) } def payload; end # The time of the event. Must be within the past 35 calendar days or up to @@ -62626,6 +62354,20 @@ module Stripe @field_remappings = {} end end + class Monetary < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -62633,10 +62375,10 @@ module Stripe sig { returns(T.nilable(CustomPricingUnit)) } def custom_pricing_unit; end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Monetary)) } def monetary; end def self.inner_class_types - @inner_class_types = {custom_pricing_unit: CustomPricingUnit} + @inner_class_types = {custom_pricing_unit: CustomPricingUnit, monetary: Monetary} end def self.field_remappings @field_remappings = {} @@ -62726,6 +62468,20 @@ module Stripe @field_remappings = {} end end + class Monetary < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -62733,10 +62489,10 @@ module Stripe sig { returns(T.nilable(CustomPricingUnit)) } def custom_pricing_unit; end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Monetary)) } def monetary; end def self.inner_class_types - @inner_class_types = {custom_pricing_unit: CustomPricingUnit} + @inner_class_types = {custom_pricing_unit: CustomPricingUnit, monetary: Monetary} end def self.field_remappings @field_remappings = {} @@ -62961,6 +62717,34 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + # Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + class AccountToken < APIResource + # 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. + sig { returns(String) } + def created; end + # Time at which the token will expire. + sig { returns(String) } + def expires_at; end + # Unique identifier for the token. + sig { returns(String) } + def id; end + # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; end + # Determines if the token has already been used (tokens can only be used once). + sig { returns(T::Boolean) } + def used; end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -63309,10 +63093,10 @@ module Stripe # A recent IP address of the customer used for tax reporting and tax location inference. sig { returns(T.nilable(String)) } def ip_address; end - # The customer’s identified tax location - uses `location_source`. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. + # The [identified](https://docs.stripe.com/tax/customer-locations#address-hierarchy-other) tax location of the customer. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. sig { returns(T.nilable(Location)) } def location; end - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. sig { returns(T.nilable(String)) } def location_source; end def self.inner_class_types @@ -63419,7 +63203,7 @@ module Stripe @field_remappings = {} end end - # 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. Uses the `location_source` field. + # 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. sig { returns(T.nilable(AutomaticIndirectTax)) } def automatic_indirect_tax; end def self.inner_class_types @@ -65157,6 +64941,90 @@ module Stripe @field_remappings = {} end end + class KonbiniPayments < ::Stripe::StripeObject + class Support < ::Stripe::StripeObject + class Hours < ::Stripe::StripeObject + # Support hours end time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def end_time; end + # Support hours start time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def start_time; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Support email address for Konbini payments. + sig { returns(T.nilable(String)) } + def email; end + # Support hours for Konbini payments. + sig { returns(T.nilable(Hours)) } + def hours; end + # Support phone number for Konbini payments. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {hours: Hours} + end + def self.field_remappings + @field_remappings = {} + end + end + # Support for Konbini payments. + sig { returns(T.nilable(Support)) } + def support; end + def self.inner_class_types + @inner_class_types = {support: Support} + end + def self.field_remappings + @field_remappings = {} + end + end + class ScriptStatementDescriptor < ::Stripe::StripeObject + class Kana < ::Stripe::StripeObject + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Kanji < ::Stripe::StripeObject + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { returns(T.nilable(Kana)) } + def kana; end + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { returns(T.nilable(Kanji)) } + def kanji; end + def self.inner_class_types + @inner_class_types = {kana: Kana, kanji: Kanji} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebitPayments < ::Stripe::StripeObject # Creditor ID for SEPA debit payments. sig { returns(T.nilable(String)) } @@ -65246,9 +65114,15 @@ module Stripe # Card payments settings. sig { returns(T.nilable(CardPayments)) } def card_payments; end + # Settings specific to Konbini payments on the account. + sig { returns(T.nilable(KonbiniPayments)) } + def konbini_payments; end # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. sig { returns(T.nilable(String)) } def mcc; end + # Settings for the default text that appears on statements for language variations. + sig { returns(T.nilable(ScriptStatementDescriptor)) } + def script_statement_descriptor; end # Settings used for SEPA debit payments. sig { returns(T.nilable(SepaDebitPayments)) } def sepa_debit_payments; end @@ -65264,6 +65138,8 @@ module Stripe branding: Branding, capabilities: Capabilities, card_payments: CardPayments, + konbini_payments: KonbiniPayments, + script_statement_descriptor: ScriptStatementDescriptor, sepa_debit_payments: SepaDebitPayments, statement_descriptor: StatementDescriptor, support: Support, @@ -65625,6 +65501,37 @@ module Stripe end end class HoldsCurrencies < ::Stripe::StripeObject + class Eur < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class Gbp < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -65718,6 +65625,9 @@ module Stripe @field_remappings = {} end end + # Can hold storage-type funds on Stripe in EUR. + sig { returns(T.nilable(Eur)) } + def eur; end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(Gbp)) } def gbp; end @@ -65728,7 +65638,7 @@ module Stripe sig { returns(T.nilable(Usdc)) } def usdc; end def self.inner_class_types - @inner_class_types = {gbp: Gbp, usd: Usd, usdc: Usdc} + @inner_class_types = {eur: Eur, gbp: Gbp, usd: Usd, usdc: Usdc} end def self.field_remappings @field_remappings = {} @@ -66186,6 +66096,9 @@ module Stripe # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments. sig { returns(String) } def losses_collector; end + # A value indicating responsibility for collecting requirements on this account. + sig { returns(String) } + def requirements_collector; end def self.inner_class_types @inner_class_types = {} end @@ -66212,6 +66125,176 @@ module Stripe @field_remappings = {} end end + class FutureRequirements < ::Stripe::StripeObject + class Entry < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject + # Machine-readable code describing the error. + sig { returns(String) } + def code; end + # Human-readable description of the error. + sig { returns(String) } + def description; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Impact < ::Stripe::StripeObject + class RestrictsCapability < ::Stripe::StripeObject + class Deadline < ::Stripe::StripeObject + # The current status of the requirement's impact. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The name of the Capability which will be restricted. + sig { returns(String) } + def capability; end + # The configuration which specifies the Capability which will be restricted. + sig { returns(String) } + def configuration; end + # Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. + sig { returns(Deadline) } + def deadline; end + def self.inner_class_types + @inner_class_types = {deadline: Deadline} + end + def self.field_remappings + @field_remappings = {} + end + end + # The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. + sig { returns(T.nilable(T::Array[RestrictsCapability])) } + def restricts_capabilities; end + def self.inner_class_types + @inner_class_types = {restricts_capabilities: RestrictsCapability} + end + def self.field_remappings + @field_remappings = {} + end + end + class MinimumDeadline < ::Stripe::StripeObject + # The current status of the requirement's impact. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Reference < ::Stripe::StripeObject + # If `inquiry` is the type, the inquiry token. + sig { returns(T.nilable(String)) } + def inquiry; end + # If `resource` is the type, the resource token. + sig { returns(T.nilable(String)) } + def resource; end + # 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. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class RequestedReason < ::Stripe::StripeObject + # Machine-readable description of Stripe's reason for collecting the requirement. + sig { returns(String) } + def code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the responsibility is with the integrator or with Stripe (to review info, to wait for some condition, etc.) to action the requirement. + sig { returns(String) } + def awaiting_action_from; end + # Machine-readable string describing the requirement. + sig { returns(String) } + def description; end + # Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. + sig { returns(T::Array[Error]) } + def errors; end + # A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. + sig { returns(Impact) } + def impact; end + # The soonest point when the account will be impacted by not providing the requirement. + sig { returns(MinimumDeadline) } + def minimum_deadline; end + # A reference to the location of the requirement. + sig { returns(T.nilable(Reference)) } + def reference; end + # A list of reasons why Stripe is collecting the requirement. + sig { returns(T::Array[RequestedReason]) } + def requested_reasons; end + def self.inner_class_types + @inner_class_types = { + errors: Error, + impact: Impact, + minimum_deadline: MinimumDeadline, + reference: Reference, + requested_reasons: RequestedReason, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class Summary < ::Stripe::StripeObject + class MinimumDeadline < ::Stripe::StripeObject + # The current strictest status of all requirements on the Account. + sig { returns(String) } + def status; end + # The soonest RFC3339 date & time UTC value a requirement can impact the Account. + sig { returns(T.nilable(String)) } + def time; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # 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`. + sig { returns(T.nilable(MinimumDeadline)) } + def minimum_deadline; end + def self.inner_class_types + @inner_class_types = {minimum_deadline: MinimumDeadline} + end + def self.field_remappings + @field_remappings = {} + end + end + # A list of requirements for the Account. + sig { returns(T.nilable(T::Array[Entry])) } + def entries; end + # The time at which the future requirements become effective. + sig { returns(T.nilable(String)) } + def minimum_transition_date; end + # An object containing an overview of requirements for the Account. + sig { returns(T.nilable(Summary)) } + def summary; end + def self.inner_class_types + @inner_class_types = {entries: Entry, summary: Summary} + end + def self.field_remappings + @field_remappings = {} + end + end class Identity < ::Stripe::StripeObject class Attestations < ::Stripe::StripeObject class DirectorshipDeclaration < ::Stripe::StripeObject @@ -66943,14 +67026,28 @@ module Stripe end end class AnnualRevenue < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Amount)) } def amount; end # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. sig { returns(T.nilable(String)) } def fiscal_year_end; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {amount: Amount} end def self.field_remappings @field_remappings = {} @@ -67174,11 +67271,25 @@ module Stripe end end class MonthlyEstimatedRevenue < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Amount)) } def amount; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {amount: Amount} end def self.field_remappings @field_remappings = {} @@ -67940,7 +68051,8 @@ module Stripe # If `resource` is the type, the resource token. sig { returns(T.nilable(String)) } def resource; end - # The type of the reference. An additional hash is included with a name matching the type. It contains additional information specific to the type. + # 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. sig { returns(String) } def type; end def self.inner_class_types @@ -68020,9 +68132,6 @@ module Stripe @field_remappings = {} end end - # A value indicating responsibility for collecting requirements on this account. - sig { returns(String) } - def collector; end # A list of requirements for the Account. sig { returns(T.nilable(T::Array[Entry])) } def entries; end @@ -68060,6 +68169,9 @@ module Stripe # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. sig { returns(T.nilable(String)) } def display_name; end + # Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when. + sig { returns(T.nilable(FutureRequirements)) } + def future_requirements; end # Unique identifier for the Account. sig { returns(String) } def id; end @@ -68072,7 +68184,7 @@ module Stripe # String representing the object's type. Objects of the same type share the same value of the object field. sig { returns(String) } def object; end - # Information about the requirements for the Account, including what information needs to be collected, and by when. + # Information about the active requirements for the Account, including what information needs to be collected, and by when. sig { returns(T.nilable(Requirements)) } def requirements; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -68083,6 +68195,34 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + # Person Tokens are single-use tokens which tokenize person information, and are used for creating or updating a Person. + class AccountPersonToken < APIResource + # 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. + sig { returns(String) } + def created; end + # Time at which the token will expire. + sig { returns(String) } + def expires_at; end + # Unique identifier for the token. + sig { returns(String) } + def id; end + # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; end + # Determines if the token has already been used (tokens can only be used once). + sig { returns(T::Boolean) } + def used; end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -68848,9 +68988,6 @@ module Stripe # The type of the event. sig { returns(String) } def type; end - # For interop events, this is the snapshot event ID. - sig { returns(T.nilable(String)) } - def v1_event_id; end end end end @@ -69079,11 +69216,25 @@ module Stripe @field_remappings = {} end end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # If applicable, contains information about the original flow linked to this Adjustment. sig { returns(T.nilable(AdjustedFlow)) } def adjusted_flow; end # The amount of the Adjustment. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # 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. sig { returns(String) } @@ -69111,23 +69262,153 @@ module Stripe end end # typed: true +module Stripe + module V2 + module MoneyManagement + # The CurrencyConversion object. Contains details such as the amount debited and credited and the FinancialAccount the CurrencyConversion was performed on. + class CurrencyConversion < APIResource + class From < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Amount object. + sig { returns(Amount) } + def amount; end + def self.inner_class_types + @inner_class_types = {amount: Amount} + end + def self.field_remappings + @field_remappings = {} + end + end + class To < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Amount object. + sig { returns(Amount) } + def amount; end + def self.inner_class_types + @inner_class_types = {amount: Amount} + end + def self.field_remappings + @field_remappings = {} + end + end + # The time the CurrencyConversion was created at. + sig { returns(String) } + def created; end + # The exchange rate used when processing the CurrencyConversion. + sig { returns(String) } + def exchange_rate; end + # The FinancialAccount the CurrencyConversion was performed on. + sig { returns(String) } + def financial_account; end + # The from block containing what was debited. + sig { returns(From) } + def from; end + # The id of the CurrencyConversion. + sig { returns(String) } + def id; end + # If the CurrencyConversion was performed in livemode or not. + sig { returns(T::Boolean) } + def livemode; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; end + # The to block containing what was credited. + sig { returns(To) } + def to; end + end + end + end +end +# typed: true module Stripe module V2 module MoneyManagement # A FinancialAccount represents a balance and can be used as the source or destination for the money management (`/v2/money_management`) APIs. class FinancialAccount < APIResource class Balance < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Balance that can be used for money movement. - sig { returns(T::Hash[String, ::Stripe::V2::Amount]) } + sig { returns(T::Hash[String, Available]) } def available; end # Balance of inbound funds that will later transition to the `available` balance. - sig { returns(T::Hash[String, ::Stripe::V2::Amount]) } + sig { returns(T::Hash[String, InboundPending]) } def inbound_pending; end # Balance of funds that are being used for a pending outbound money movement. - sig { returns(T::Hash[String, ::Stripe::V2::Amount]) } + sig { returns(T::Hash[String, OutboundPending]) } def outbound_pending; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings @field_remappings = {} @@ -69380,7 +69661,35 @@ module Stripe # An InboundTransfer object, representing a money movement from a # user owned PaymentMethod to a FinancialAccount belonging to the same user. class InboundTransfer < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class PaymentMethod < ::Stripe::StripeObject # The type of object this destination represents. For a us bank account, we expect us_bank_account. sig { returns(String) } @@ -69396,27 +69705,41 @@ module Stripe end end # The amount in specified currency that was debited from the Payment Method. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The Payment Method object used to create the InboundTransfer. sig { returns(PaymentMethod) } def payment_method; end def self.inner_class_types - @inner_class_types = {payment_method: PaymentMethod} + @inner_class_types = {debited: Debited, payment_method: PaymentMethod} end def self.field_remappings @field_remappings = {} end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The amount by which the FinancialAccount balance is credited. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The FinancialAccount that funds will land in. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} @@ -69486,7 +69809,7 @@ module Stripe end end # The amount in specified currency that will land in the FinancialAccount balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Creation time of the InboundTransfer. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(String) } @@ -69525,6 +69848,20 @@ module Stripe module MoneyManagement # OutboundPaymentQuote represents a quote that provides fee and amount estimates for OutboundPayment. class OutboundPaymentQuote < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -69537,28 +69874,56 @@ module Stripe end end class EstimatedFee < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The fee amount for corresponding fee type. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # The fee type. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {amount: Amount} end def self.field_remappings @field_remappings = {} end end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The FinancialAccount that funds were pulled from. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {debited: Debited} end def self.field_remappings @field_remappings = {} @@ -69599,8 +69964,22 @@ module Stripe end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The payout method which the OutboundPayment uses to send payout. sig { returns(String) } @@ -69609,14 +69988,14 @@ module Stripe sig { returns(String) } def recipient; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} end end # The "presentment amount" for the OutboundPaymentQuote. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Time at which the OutboundPaymentQuote was created. # Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. @@ -69656,6 +70035,20 @@ module Stripe module MoneyManagement # OutboundPayment represents a single money movement from one FinancialAccount you own to a payout method someone else owns. class OutboundPayment < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -69668,14 +70061,28 @@ module Stripe end end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The FinancialAccount that funds were pulled from. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {debited: Debited} end def self.field_remappings @field_remappings = {} @@ -69754,8 +70161,22 @@ module Stripe end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The payout method which the OutboundPayment uses to send payout. sig { returns(String) } @@ -69764,7 +70185,7 @@ module Stripe sig { returns(String) } def recipient; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} @@ -69788,7 +70209,7 @@ module Stripe end end # The "presentment amount" for the OutboundPayment. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Returns true if the OutboundPayment can be canceled, and false otherwise. sig { returns(T::Boolean) } @@ -69927,6 +70348,20 @@ module Stripe module MoneyManagement # OutboundTransfer represents a single money movement from one FinancialAccount you own to a payout method you also own. class OutboundTransfer < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -69939,14 +70374,28 @@ module Stripe end end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The FinancialAccount that funds were pulled from. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {debited: Debited} end def self.field_remappings @field_remappings = {} @@ -70013,14 +70462,28 @@ module Stripe end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The payout method which the OutboundTransfer uses to send payout. sig { returns(String) } def payout_method; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} @@ -70044,7 +70507,7 @@ module Stripe end end # The "presentment amount" for the OutboundTransfer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Returns true if the OutboundTransfer can be canceled, and false otherwise. sig { returns(T::Boolean) } @@ -70323,6 +70786,34 @@ module Stripe module MoneyManagement # Use ReceivedCredits API to retrieve information on when, where, and how funds are sent into your FinancialAccount. class ReceivedCredit < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ExternalAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class StatusDetails < ::Stripe::StripeObject class Failed < ::Stripe::StripeObject # Open Enum. The `failed` status reason. @@ -70502,7 +70993,7 @@ module Stripe end end # The amount and currency of the ReceivedCredit. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Time at which the ReceivedCredit was created. # Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. @@ -70512,7 +71003,7 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # The amount and currency of the original/external credit request. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(ExternalAmount)) } def external_amount; end # Financial Account ID on which funds for ReceivedCredit were received. sig { returns(String) } @@ -70557,6 +71048,34 @@ module Stripe module MoneyManagement # ReceivedDebit resource class ReceivedDebit < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ExternalAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class StatusDetails < ::Stripe::StripeObject class Failed < ::Stripe::StripeObject # Open Enum. The reason for the failure of the ReceivedDebit. @@ -70641,7 +71160,7 @@ module Stripe end end # Amount and currency of the ReceivedDebit. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # The time at which the ReceivedDebit was created. # Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. @@ -70651,7 +71170,7 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # The amount and currency of the original/external debit request. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(ExternalAmount)) } def external_amount; end # Financial Account on which funds for ReceivedDebit were debited. sig { returns(String) } @@ -70769,17 +71288,63 @@ module Stripe # TransactionEntries represent individual money movements across different states within a Transaction. class TransactionEntry < APIResource class BalanceImpact < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Impact to the available balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Available) } def available; end # Impact to the inbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(InboundPending) } def inbound_pending; end # Impact to the outbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(OutboundPending) } def outbound_pending; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings @field_remappings = {} @@ -70871,18 +71436,78 @@ module Stripe module MoneyManagement # Use Transactions to view changes to your FinancialAccount balance over time. Every flow that moves money, such as OutboundPayments or ReceivedCredits, will have one or more Transactions that describes how the flow impacted your balance. Note that while the FinancialAccount balance will always be up to date, be aware that Transactions and TransactionEntries are created shortly after to reflect changes. class Transaction < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class BalanceImpact < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Impact to the available balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Available) } def available; end # Impact to the inbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(InboundPending) } def inbound_pending; end # Impact to the outbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(OutboundPending) } def outbound_pending; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings @field_remappings = {} @@ -70938,7 +71563,7 @@ module Stripe end end # The amount of the Transaction. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its # TransactionEntries that have `effective_at`s in the past. @@ -70985,86 +71610,29 @@ module Stripe module Payments # OffSessionPayment resource. class OffSessionPayment < APIResource - class AmountDetails < ::Stripe::StripeObject - class LineItem < ::Stripe::StripeObject - class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # The amount an item was discounted for. Positive integer. - sig { returns(T.nilable(Integer)) } - def discount_amount; end - # Unique identifier of the product. At most 12 characters long. - sig { returns(T.nilable(String)) } - def product_code; end - # Name of the product. At most 100 characters long. - sig { returns(String) } - def product_name; end - # Number of items of the product. Positive integer. - sig { returns(Integer) } - def quantity; end - # Contains information about the tax on the item. - sig { returns(T.nilable(Tax)) } - def tax; end - # Cost of the product. Non-negative integer. - sig { returns(Integer) } - def unit_cost; end - def self.inner_class_types - @inner_class_types = {tax: Tax} - end - def self.field_remappings - @field_remappings = {} - end - end - class Shipping < ::Stripe::StripeObject - # Portion of the amount that is for shipping. - sig { returns(T.nilable(Integer)) } - def amount; end - # The postal code that represents the shipping source. - sig { returns(T.nilable(String)) } - def from_postal_code; end - # The postal code that represents the shipping destination. - sig { returns(T.nilable(String)) } - def to_postal_code; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end + class AmountCapturable < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} end - class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end + def self.field_remappings + @field_remappings = {} end - # The amount the total transaction was discounted for. + end + class AmountRequested < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). sig { returns(T.nilable(Integer)) } - def discount_amount; end - # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - sig { returns(T::Array[LineItem]) } - def line_items; end - # Contains information about the shipping portion of the amount. - sig { returns(T.nilable(Shipping)) } - def shipping; end - # Contains information about the tax portion of the amount. - sig { returns(T.nilable(Tax)) } - def tax; end + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end def self.inner_class_types - @inner_class_types = {line_items: LineItem, shipping: Shipping, tax: Tax} + @inner_class_types = {} end def self.field_remappings @field_remappings = {} @@ -71117,7 +71685,7 @@ module Stripe # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } @@ -71134,13 +71702,10 @@ module Stripe end end # The amount available to be captured. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(AmountCapturable)) } def amount_capturable; end - # Provides industry-specific information about the amount. - sig { returns(T.nilable(AmountDetails)) } - def amount_details; end # The “presentment amount” to be collected from the customer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(AmountRequested) } def amount_requested; end # The frequency of the underlying payment. sig { returns(String) } @@ -71148,9 +71713,6 @@ module Stripe # Details about the capture configuration for the OffSessionPayment. sig { returns(T.nilable(Capture)) } def capture; end - # Whether the OffSessionPayment should be captured automatically or manually. - sig { returns(T.nilable(String)) } - def capture_method; end # ID of the owning compartment. sig { returns(String) } def compartment_id; end @@ -71176,10 +71738,10 @@ module Stripe # Has the value true if the object exists in live mode or the value false if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). sig { returns(T::Hash[String, String]) } def metadata; end # String representing the object's type. Objects of the same type share the same value of the object field. @@ -71218,7 +71780,7 @@ module Stripe # Test clock that can be used to advance the retry attempts in a sandbox. sig { returns(T.nilable(String)) } def test_clock; end - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). sig { returns(T.nilable(TransferData)) } def transfer_data; end end @@ -74392,7 +74954,7 @@ module Stripe } def attach(payment_method, params = {}, opts = {}); end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. sig { params(payment_method: String, params: T.any(::Stripe::PaymentMethodCheckBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodBalance) } @@ -77688,6 +78250,7 @@ module Stripe class CoreService < StripeService attr_reader :accounts attr_reader :account_links + attr_reader :account_tokens attr_reader :claimable_sandboxes attr_reader :events attr_reader :event_destinations @@ -77701,6 +78264,7 @@ module Stripe module Core class AccountService < StripeService attr_reader :persons + attr_reader :person_tokens # 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. sig { params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account) @@ -77779,6 +78343,28 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + module Accounts + class PersonTokenService < StripeService + # Creates a Person Token associated with an Account. + sig { + params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken) + } + def create(account_id, params = {}, opts = {}); end + + # Retrieves a Person Token associated with an Account. + sig { + params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken) + } + def retrieve(account_id, id, params = {}, opts = {}); end + end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -77793,6 +78379,26 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + class AccountTokenService < StripeService + # Creates an Account Token. + sig { + params(params: T.any(::Stripe::V2::Core::AccountTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken) + } + def create(params = {}, opts = {}); end + + # Retrieves an Account Token. + sig { + params(id: String, params: T.any(::Stripe::V2::Core::AccountTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -78024,6 +78630,7 @@ module Stripe module V2 class MoneyManagementService < StripeService attr_reader :adjustments + attr_reader :currency_conversions attr_reader :financial_accounts attr_reader :financial_addresses attr_reader :inbound_transfers @@ -78062,6 +78669,34 @@ module Stripe end end # typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionService < StripeService + # Create a CurrencyConversion. + # + # ** raises FeatureNotEnabledError + sig { + params(params: T.any(::Stripe::V2::MoneyManagement::CurrencyConversionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::CurrencyConversion) + } + def create(params = {}, opts = {}); end + + # List all CurrencyConversion on an account with the option to filter by FinancialAccount. + sig { + params(params: T.any(::Stripe::V2::MoneyManagement::CurrencyConversionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieve details of a CurrencyConversion by id. + sig { + params(id: String, params: T.any(::Stripe::V2::MoneyManagement::CurrencyConversionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::CurrencyConversion) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end +end +# typed: true module Stripe module V2 module MoneyManagement @@ -112760,8 +113395,13 @@ module Stripe params(_trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial)).void + params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -112769,7 +113409,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class Remove < ::Stripe::RequestParams @@ -112914,8 +113555,13 @@ module Stripe params(_trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial)).void + params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -112923,7 +113569,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item. @@ -113131,8 +113778,13 @@ module Stripe params(_billing_schedules_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction])).returns(T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction])) } def billing_schedules_actions=(_billing_schedules_actions); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(amendment_end: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentEnd), amendment_start: InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction])).void + params(amendment_end: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentEnd), amendment_start: InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction]), effective_at: T.nilable(String)).void } def initialize( amendment_end: nil, @@ -113145,7 +113797,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, trial_settings: nil, - billing_schedules_actions: nil + billing_schedules_actions: nil, + effective_at: nil ); end end class BillingMode < ::Stripe::RequestParams @@ -113880,8 +114533,13 @@ module Stripe params(_trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial), trial_offer: T.nilable(String)).void } def initialize( billing_thresholds: nil, @@ -113892,7 +114550,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class PauseCollection < ::Stripe::RequestParams @@ -114109,8 +114768,13 @@ module Stripe params(_trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(add_invoice_items: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Discount])), duration: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Discount])), duration: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings), effective_at: T.nilable(String)).void } def initialize( add_invoice_items: nil, @@ -114137,7 +114801,8 @@ module Stripe trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams @@ -114264,15 +114929,15 @@ module Stripe def proration_behavior=(_proration_behavior); end # Sets the billing schedules for the subscription schedule. sig { - returns(T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])) + returns(T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))) } def billing_schedules; end sig { - params(_billing_schedules: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])).returns(T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])) + params(_billing_schedules: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))) } def billing_schedules=(_billing_schedules); end sig { - params(amendments: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment]), billing_behavior: T.nilable(String), billing_mode: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::BillingMode), end_behavior: T.nilable(String), phases: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase]), prebilling: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Prebilling])), proration_behavior: T.nilable(String), billing_schedules: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])).void + params(amendments: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment]), billing_behavior: T.nilable(String), billing_mode: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::BillingMode), end_behavior: T.nilable(String), phases: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase]), prebilling: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Prebilling])), proration_behavior: T.nilable(String), billing_schedules: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))).void } def initialize( amendments: nil, @@ -114407,6 +115072,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -114606,8 +115285,17 @@ module Stripe params(_tax_rates: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def tax_rates=(_tax_rates); end + # The trial offer to apply to this subscription item. sig { - params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + returns(T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)) + } + def current_trial; end + sig { + params(_current_trial: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)).returns(T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)) + } + def current_trial=(_current_trial); end + sig { + params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), current_trial: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -114620,7 +115308,8 @@ module Stripe price: nil, price_data: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ); end end class Prebilling < ::Stripe::RequestParams @@ -169259,8 +169948,13 @@ module Stripe params(_trial: T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial)).returns(T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -169268,7 +169962,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class RemoveDiscount < ::Stripe::RequestParams @@ -169446,8 +170141,13 @@ module Stripe params(_trial: T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial)).returns(T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -169455,7 +170155,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details for the `add_discount` type. @@ -169798,8 +170499,13 @@ module Stripe params(_trial_settings: T.nilable(QuoteCreateParams::Line::TrialSettings)).returns(T.nilable(QuoteCreateParams::Line::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(actions: T.nilable(T::Array[QuoteCreateParams::Line::Action]), applies_to: T.nilable(QuoteCreateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteCreateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteCreateParams::Line::EndsAt), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteCreateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteCreateParams::Line::StartsAt), trial_settings: T.nilable(QuoteCreateParams::Line::TrialSettings)).void + params(actions: T.nilable(T::Array[QuoteCreateParams::Line::Action]), applies_to: T.nilable(QuoteCreateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteCreateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteCreateParams::Line::EndsAt), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteCreateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteCreateParams::Line::StartsAt), trial_settings: T.nilable(QuoteCreateParams::Line::TrialSettings), effective_at: T.nilable(String)).void } def initialize( actions: nil, @@ -169811,7 +170517,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, starts_at: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class LineItem < ::Stripe::RequestParams @@ -170313,12 +171020,10 @@ module Stripe } def billing_mode=(_billing_mode); end # Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. - sig { - returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]))) - } + sig { returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])) } def billing_schedules; end sig { - params(_billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]))) + params(_billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])).returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])) } def billing_schedules=(_billing_schedules); end # 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 Stripe surfaces and certain local payment methods UIs. @@ -170381,7 +171086,7 @@ module Stripe } def trial_period_days=(_trial_period_days); end sig { - params(bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionData::BillOnAcceptance), billing_behavior: T.nilable(String), billing_cycle_anchor: T.nilable(String), billing_mode: T.nilable(QuoteCreateParams::SubscriptionData::BillingMode), billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])), description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), end_behavior: T.nilable(String), from_subscription: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), phase_effective_at: T.nilable(String), prebilling: T.nilable(T.any(String, QuoteCreateParams::SubscriptionData::Prebilling)), proration_behavior: T.nilable(String), trial_period_days: T.nilable(T.any(String, Integer))).void + params(bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionData::BillOnAcceptance), billing_behavior: T.nilable(String), billing_cycle_anchor: T.nilable(String), billing_mode: T.nilable(QuoteCreateParams::SubscriptionData::BillingMode), billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]), description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), end_behavior: T.nilable(String), from_subscription: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), phase_effective_at: T.nilable(String), prebilling: T.nilable(T.any(String, QuoteCreateParams::SubscriptionData::Prebilling)), proration_behavior: T.nilable(String), trial_period_days: T.nilable(T.any(String, Integer))).void } def initialize( bill_on_acceptance: nil, @@ -170717,11 +171422,11 @@ module Stripe def billing_behavior=(_billing_behavior); end # Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. sig { - returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]))) + returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])) } def billing_schedules; end sig { - params(_billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]))) + params(_billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])).returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])) } def billing_schedules=(_billing_schedules); end # The customer the Subscription Data override applies to. This is only relevant when `applies_to.type=new_reference`. @@ -170756,7 +171461,7 @@ module Stripe sig { params(_proration_behavior: T.nilable(String)).returns(T.nilable(String)) } def proration_behavior=(_proration_behavior); end sig { - params(applies_to: QuoteCreateParams::SubscriptionDataOverride::AppliesTo, bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionDataOverride::BillOnAcceptance), billing_behavior: T.nilable(String), billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])), customer: T.nilable(String), description: T.nilable(String), end_behavior: T.nilable(String), phase_effective_at: T.nilable(String), proration_behavior: T.nilable(String)).void + params(applies_to: QuoteCreateParams::SubscriptionDataOverride::AppliesTo, bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionDataOverride::BillOnAcceptance), billing_behavior: T.nilable(String), billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]), customer: T.nilable(String), description: T.nilable(String), end_behavior: T.nilable(String), phase_effective_at: T.nilable(String), proration_behavior: T.nilable(String)).void } def initialize( applies_to: nil, @@ -171274,8 +171979,13 @@ module Stripe params(_trial: T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial)).returns(T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -171283,7 +171993,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class RemoveDiscount < ::Stripe::RequestParams @@ -171461,8 +172172,13 @@ module Stripe params(_trial: T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial)).returns(T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -171470,7 +172186,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details for the `add_discount` type. @@ -171823,8 +172540,13 @@ module Stripe params(_trial_settings: T.nilable(QuoteUpdateParams::Line::TrialSettings)).returns(T.nilable(QuoteUpdateParams::Line::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(actions: T.nilable(T::Array[QuoteUpdateParams::Line::Action]), applies_to: T.nilable(QuoteUpdateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteUpdateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteUpdateParams::Line::EndsAt), id: T.nilable(String), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteUpdateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteUpdateParams::Line::StartsAt), trial_settings: T.nilable(QuoteUpdateParams::Line::TrialSettings)).void + params(actions: T.nilable(T::Array[QuoteUpdateParams::Line::Action]), applies_to: T.nilable(QuoteUpdateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteUpdateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteUpdateParams::Line::EndsAt), id: T.nilable(String), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteUpdateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteUpdateParams::Line::StartsAt), trial_settings: T.nilable(QuoteUpdateParams::Line::TrialSettings), effective_at: T.nilable(String)).void } def initialize( actions: nil, @@ -171837,7 +172559,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, starts_at: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class LineItem < ::Stripe::RequestParams @@ -181636,6 +182359,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -181841,8 +182578,15 @@ module Stripe params(_tax_rates: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def tax_rates=(_tax_rates); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionItemUpdateParams::CurrentTrial)) } + def current_trial; end + sig { + params(_current_trial: T.nilable(SubscriptionItemUpdateParams::CurrentTrial)).returns(T.nilable(SubscriptionItemUpdateParams::CurrentTrial)) + } + def current_trial=(_current_trial); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemUpdateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemUpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemUpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemUpdateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemUpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemUpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), current_trial: T.nilable(SubscriptionItemUpdateParams::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -181857,7 +182601,8 @@ module Stripe proration_behavior: nil, proration_date: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ); end end end @@ -181913,6 +182658,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -182139,8 +182898,15 @@ module Stripe params(_trial: T.nilable(SubscriptionItemCreateParams::Trial)).returns(T.nilable(SubscriptionItemCreateParams::Trial)) } def trial=(_trial); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionItemCreateParams::CurrentTrial)) } + def current_trial; end + sig { + params(_current_trial: T.nilable(SubscriptionItemCreateParams::CurrentTrial)).returns(T.nilable(SubscriptionItemCreateParams::CurrentTrial)) + } + def current_trial=(_current_trial); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemCreateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemCreateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemCreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionItemCreateParams::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemCreateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemCreateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemCreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionItemCreateParams::Trial), current_trial: T.nilable(SubscriptionItemCreateParams::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -182156,7 +182922,8 @@ module Stripe quantity: nil, subscription: nil, tax_rates: nil, - trial: nil + trial: nil, + current_trial: nil ); end end end @@ -183253,8 +184020,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial)).returns(T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial), trial_offer: T.nilable(String)).void } def initialize( billing_thresholds: nil, @@ -183265,7 +184037,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class PauseCollection < ::Stripe::RequestParams @@ -183463,8 +184236,13 @@ module Stripe params(_trial_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings)).returns(T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleCreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleCreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleCreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleCreateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleCreateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), transfer_data: T.nilable(SubscriptionScheduleCreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(Integer), trial_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleCreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleCreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleCreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleCreateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleCreateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), transfer_data: T.nilable(SubscriptionScheduleCreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(Integer), trial_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings), effective_at: T.nilable(String)).void } def initialize( add_invoice_items: nil, @@ -183490,7 +184268,8 @@ module Stripe trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams @@ -184484,8 +185263,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial)).returns(T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial), trial_offer: T.nilable(String)).void } def initialize( billing_thresholds: nil, @@ -184496,7 +185280,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class PauseCollection < ::Stripe::RequestParams @@ -184705,8 +185490,13 @@ module Stripe params(_trial_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings)).returns(T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleUpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleUpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleUpdateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleUpdateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleUpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleUpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleUpdateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleUpdateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings), effective_at: T.nilable(String)).void } def initialize( add_invoice_items: nil, @@ -184733,7 +185523,8 @@ module Stripe trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams @@ -185225,8 +186016,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial)).returns(T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial)).void + params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -185234,7 +186030,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class Remove < ::Stripe::RequestParams @@ -185374,8 +186171,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial)).returns(T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial)).void + params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -185383,7 +186185,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item. @@ -185577,8 +186380,13 @@ module Stripe params(_billing_schedules_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction])).returns(T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction])) } def billing_schedules_actions=(_billing_schedules_actions); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(amendment_end: T.nilable(SubscriptionScheduleAmendParams::Amendment::AmendmentEnd), amendment_start: SubscriptionScheduleAmendParams::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(SubscriptionScheduleAmendParams::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(SubscriptionScheduleAmendParams::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction])).void + params(amendment_end: T.nilable(SubscriptionScheduleAmendParams::Amendment::AmendmentEnd), amendment_start: SubscriptionScheduleAmendParams::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(SubscriptionScheduleAmendParams::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(SubscriptionScheduleAmendParams::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction]), effective_at: T.nilable(String)).void } def initialize( amendment_end: nil, @@ -185591,7 +186399,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, trial_settings: nil, - billing_schedules_actions: nil + billing_schedules_actions: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams @@ -186321,6 +187130,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -186512,8 +187335,15 @@ module Stripe params(_tax_rates: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def tax_rates=(_tax_rates); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)) } + def current_trial; end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionUpdateParams::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[SubscriptionUpdateParams::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionUpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(_current_trial: T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)).returns(T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)) + } + def current_trial=(_current_trial); end + sig { + params(billing_thresholds: T.nilable(T.any(String, SubscriptionUpdateParams::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[SubscriptionUpdateParams::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionUpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), current_trial: T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -186526,7 +187356,8 @@ module Stripe price: nil, price_data: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ); end end class PauseCollection < ::Stripe::RequestParams @@ -187992,6 +188823,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -188191,8 +189036,15 @@ module Stripe params(_trial: T.nilable(SubscriptionCreateParams::Item::Trial)).returns(T.nilable(SubscriptionCreateParams::Item::Trial)) } def trial=(_trial); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionCreateParams::Item::CurrentTrial)) } + def current_trial; end + sig { + params(_current_trial: T.nilable(SubscriptionCreateParams::Item::CurrentTrial)).returns(T.nilable(SubscriptionCreateParams::Item::CurrentTrial)) + } + def current_trial=(_current_trial); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionCreateParams::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionCreateParams::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionCreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionCreateParams::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionCreateParams::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionCreateParams::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionCreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionCreateParams::Item::Trial), current_trial: T.nilable(SubscriptionCreateParams::Item::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -188203,7 +189055,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + current_trial: nil ); end end class PaymentSettings < ::Stripe::RequestParams @@ -213850,9 +214703,9 @@ module Stripe sig { params(_network: T.nilable(String)).returns(T.nilable(String)) } def network=(_network); end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end sig { params(_request_three_d_secure: T.nilable(String)).returns(T.nilable(String)) } @@ -214215,9 +215068,9 @@ module Stripe sig { params(_network: T.nilable(String)).returns(T.nilable(String)) } def network=(_network); end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end sig { params(_request_three_d_secure: T.nilable(String)).returns(T.nilable(String)) } @@ -217220,6 +218073,20 @@ module Stripe sig { params(id: String, value: String).void } def initialize(id: nil, value: nil); end end + class Monetary < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -217235,14 +218102,16 @@ module Stripe } def custom_pricing_unit=(_custom_pricing_unit); end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)) + } def monetary; end sig { - params(_monetary: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)).returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)) } def monetary=(_monetary); end sig { - params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::CustomPricingUnit), monetary: T.nilable(::Stripe::V2::Amount)).void + params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::CustomPricingUnit), monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)).void } def initialize(type: nil, custom_pricing_unit: nil, monetary: nil); end end @@ -217352,6 +218221,20 @@ module Stripe sig { params(id: String, value: String).void } def initialize(id: nil, value: nil); end end + class Monetary < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -217367,14 +218250,16 @@ module Stripe } def custom_pricing_unit=(_custom_pricing_unit); end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)) + } def monetary; end sig { - params(_monetary: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)).returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)) } def monetary=(_monetary); end sig { - params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::CustomPricingUnit), monetary: T.nilable(::Stripe::V2::Amount)).void + params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::CustomPricingUnit), monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)).void } def initialize(type: nil, custom_pricing_unit: nil, monetary: nil); end end @@ -217928,7 +218813,7 @@ module Stripe def ip_address; end sig { params(_ip_address: T.nilable(String)).returns(T.nilable(String)) } def ip_address=(_ip_address); end - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. sig { returns(T.nilable(String)) } def location_source; end sig { params(_location_source: T.nilable(String)).returns(T.nilable(String)) } @@ -218038,7 +218923,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - # 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. Uses the `location_source` field. + # 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. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Customer::Capabilities::AutomaticIndirectTax)) } @@ -219082,6 +219967,112 @@ module Stripe } def initialize(decline_on: nil); end end + class KonbiniPayments < ::Stripe::RequestParams + class Support < ::Stripe::RequestParams + class Hours < ::Stripe::RequestParams + # Support hours end time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def end_time; end + sig { params(_end_time: T.nilable(String)).returns(T.nilable(String)) } + def end_time=(_end_time); end + # Support hours start time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def start_time; end + sig { params(_start_time: T.nilable(String)).returns(T.nilable(String)) } + def start_time=(_start_time); end + sig { params(end_time: T.nilable(String), start_time: T.nilable(String)).void } + def initialize(end_time: nil, start_time: nil); end + end + # Support email address for Konbini payments. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # Support hours for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours; end + sig { + params(_hours: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours=(_hours); end + # Support phone number for Konbini payments. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(email: T.nilable(String), hours: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours), phone: T.nilable(String)).void + } + def initialize(email: nil, hours: nil, phone: nil); end + end + # Support for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support; end + sig { + params(_support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support=(_support); end + sig { + params(support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)).void + } + def initialize(support: nil); end + end + class ScriptStatementDescriptor < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + class Kanji < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana=(_kana); end + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana), kanji: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end class StatementDescriptor < ::Stripe::RequestParams # 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. sig { returns(T.nilable(String)) } @@ -219211,11 +220202,29 @@ module Stripe params(_card_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments)) } def card_payments=(_card_payments); end + # Settings specific to Konbini payments on the account. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments; end + sig { + params(_konbini_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments=(_konbini_payments); end # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide. sig { returns(T.nilable(String)) } def mcc; end sig { params(_mcc: T.nilable(String)).returns(T.nilable(String)) } def mcc=(_mcc); end + # Settings for the default text that appears on statements for language variations. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor; end + sig { + params(_script_statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor=(_script_statement_descriptor); end # Statement descriptor. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::StatementDescriptor)) @@ -219235,14 +220244,16 @@ module Stripe } def support=(_support); end sig { - params(bacs_debit_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments), mcc: T.nilable(String), statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Support)).void + params(bacs_debit_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments), konbini_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments), mcc: T.nilable(String), script_statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor), statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Support)).void } def initialize( bacs_debit_payments: nil, branding: nil, capabilities: nil, card_payments: nil, + konbini_payments: nil, mcc: nil, + script_statement_descriptor: nil, statement_descriptor: nil, support: nil ); end @@ -219438,6 +220449,15 @@ module Stripe def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams + class Eur < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class Gbp < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -219465,6 +220485,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + # Can hold storage-type funds on Stripe in EUR. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur; end + sig { + params(_eur: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur=(_eur); end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -219493,9 +220522,9 @@ module Stripe } def usdc=(_usdc); end sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + params(eur: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur), gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void } - def initialize(gbp: nil, usd: nil, usdc: nil); end + def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -220899,11 +221928,27 @@ module Stripe ); end end class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } def amount; end sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) } def amount=(_amount); end # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. @@ -220912,7 +221957,7 @@ module Stripe sig { params(_fiscal_year_end: T.nilable(String)).returns(T.nilable(String)) } def fiscal_year_end=(_fiscal_year_end); end sig { - params(amount: T.nilable(::Stripe::V2::Amount), fiscal_year_end: T.nilable(String)).void + params(amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount), fiscal_year_end: T.nilable(String)).void } def initialize(amount: nil, fiscal_year_end: nil); end end @@ -221205,14 +222250,32 @@ module Stripe def initialize(registrar: nil, type: nil, value: nil); end end class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) + } def amount; end sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) } def amount=(_amount); end - sig { params(amount: T.nilable(::Stripe::V2::Amount)).void } + sig { + params(amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).void + } def initialize(amount: nil); end end class ScriptAddresses < ::Stripe::RequestParams @@ -222217,6 +223280,11 @@ module Stripe individual: nil ); end end + # The account token generated by the account token api. + sig { returns(T.nilable(String)) } + def account_token; end + sig { params(_account_token: T.nilable(String)).returns(T.nilable(String)) } + def account_token=(_account_token); end # An Account Configuration which allows the Account to take on a key persona across Stripe products. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration)) } def configuration; end @@ -222266,9 +223334,10 @@ module Stripe } def metadata=(_metadata); end sig { - params(configuration: T.nilable(V2::Core::AccountCreateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountCreateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountCreateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void + params(account_token: T.nilable(String), configuration: T.nilable(V2::Core::AccountCreateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountCreateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountCreateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void } def initialize( + account_token: nil, configuration: nil, contact_email: nil, dashboard: nil, @@ -222543,7 +223612,7 @@ module Stripe def ip_address; end sig { params(_ip_address: T.nilable(String)).returns(T.nilable(String)) } def ip_address=(_ip_address); end - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. sig { returns(T.nilable(String)) } def location_source; end sig { params(_location_source: T.nilable(String)).returns(T.nilable(String)) } @@ -222668,7 +223737,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - # 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. Uses the `location_source` field. + # 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. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Customer::Capabilities::AutomaticIndirectTax)) } @@ -223718,6 +224787,112 @@ module Stripe } def initialize(decline_on: nil); end end + class KonbiniPayments < ::Stripe::RequestParams + class Support < ::Stripe::RequestParams + class Hours < ::Stripe::RequestParams + # Support hours end time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def end_time; end + sig { params(_end_time: T.nilable(String)).returns(T.nilable(String)) } + def end_time=(_end_time); end + # Support hours start time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def start_time; end + sig { params(_start_time: T.nilable(String)).returns(T.nilable(String)) } + def start_time=(_start_time); end + sig { params(end_time: T.nilable(String), start_time: T.nilable(String)).void } + def initialize(end_time: nil, start_time: nil); end + end + # Support email address for Konbini payments. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # Support hours for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours; end + sig { + params(_hours: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours=(_hours); end + # Support phone number for Konbini payments. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(email: T.nilable(String), hours: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours), phone: T.nilable(String)).void + } + def initialize(email: nil, hours: nil, phone: nil); end + end + # Support for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support; end + sig { + params(_support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support=(_support); end + sig { + params(support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)).void + } + def initialize(support: nil); end + end + class ScriptStatementDescriptor < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + class Kanji < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana=(_kana); end + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana), kanji: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end class StatementDescriptor < ::Stripe::RequestParams # 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. sig { returns(T.nilable(String)) } @@ -223852,11 +225027,29 @@ module Stripe params(_card_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments)) } def card_payments=(_card_payments); end + # Settings specific to Konbini payments on the account. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments; end + sig { + params(_konbini_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments=(_konbini_payments); end # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. sig { returns(T.nilable(String)) } def mcc; end sig { params(_mcc: T.nilable(String)).returns(T.nilable(String)) } def mcc=(_mcc); end + # Settings for the default text that appears on statements for language variations. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor; end + sig { + params(_script_statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor=(_script_statement_descriptor); end # Statement descriptor. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::StatementDescriptor)) @@ -223876,7 +225069,7 @@ module Stripe } def support=(_support); end sig { - params(applied: T.nilable(T::Boolean), bacs_debit_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments), mcc: T.nilable(String), statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Support)).void + params(applied: T.nilable(T::Boolean), bacs_debit_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments), konbini_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments), mcc: T.nilable(String), script_statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor), statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Support)).void } def initialize( applied: nil, @@ -223884,7 +225077,9 @@ module Stripe branding: nil, capabilities: nil, card_payments: nil, + konbini_payments: nil, mcc: nil, + script_statement_descriptor: nil, statement_descriptor: nil, support: nil ); end @@ -224035,7 +225230,7 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Recipient::Capabilities)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Recipient::Capabilities)) } def capabilities=(_capabilities); end - # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.corp.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). + # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). sig { returns(T.nilable(String)) } def default_outbound_destination; end sig { @@ -224092,6 +225287,15 @@ module Stripe def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams + class Eur < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class Gbp < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -224119,6 +225323,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + # Can hold storage-type funds on Stripe in EUR. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur; end + sig { + params(_eur: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur=(_eur); end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -224147,9 +225360,9 @@ module Stripe } def usdc=(_usdc); end sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + params(eur: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur), gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void } - def initialize(gbp: nil, usd: nil, usdc: nil); end + def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -225599,11 +226812,27 @@ module Stripe ); end end class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } def amount; end sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) } def amount=(_amount); end # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. @@ -225612,7 +226841,7 @@ module Stripe sig { params(_fiscal_year_end: T.nilable(String)).returns(T.nilable(String)) } def fiscal_year_end=(_fiscal_year_end); end sig { - params(amount: T.nilable(::Stripe::V2::Amount), fiscal_year_end: T.nilable(String)).void + params(amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount), fiscal_year_end: T.nilable(String)).void } def initialize(amount: nil, fiscal_year_end: nil); end end @@ -225905,655 +227134,673 @@ module Stripe def initialize(registrar: nil, type: nil, value: nil); end end class MonthlyEstimatedRevenue < ::Stripe::RequestParams - # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } - def amount; end - sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) - } - def amount=(_amount); end - sig { params(amount: T.nilable(::Stripe::V2::Amount)).void } - def initialize(amount: nil); end - end - class ScriptAddresses < ::Stripe::RequestParams - class Kana < ::Stripe::RequestParams - # City, district, suburb, town, or village. - sig { returns(T.nilable(String)) } - def city; end - sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } - def city=(_city); end - # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - sig { returns(T.nilable(String)) } - def country; end - sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } - def country=(_country); end - # Address line 1 (e.g., street, PO Box, or company name). - sig { returns(T.nilable(String)) } - def line1; end - sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_line1); end - # Address line 2 (e.g., apartment, suite, unit, or building). - sig { returns(T.nilable(String)) } - def line2; end - sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_line2); end - # ZIP or postal code. - sig { returns(T.nilable(String)) } - def postal_code; end - sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_postal_code); end - # State, county, province, or region. - sig { returns(T.nilable(String)) } - def state; end - sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } - def state=(_state); end - # Town or cho-me. - sig { returns(T.nilable(String)) } - def town; end - sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } - def town=(_town); end - sig { - params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void - } - def initialize( - city: nil, - country: nil, - line1: nil, - line2: nil, - postal_code: nil, - state: nil, - town: nil - ); end - end - class Kanji < ::Stripe::RequestParams - # City, district, suburb, town, or village. - sig { returns(T.nilable(String)) } - def city; end - sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } - def city=(_city); end - # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - sig { returns(T.nilable(String)) } - def country; end - sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } - def country=(_country); end - # Address line 1 (e.g., street, PO Box, or company name). - sig { returns(T.nilable(String)) } - def line1; end - sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_line1); end - # Address line 2 (e.g., apartment, suite, unit, or building). - sig { returns(T.nilable(String)) } - def line2; end - sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_line2); end - # ZIP or postal code. - sig { returns(T.nilable(String)) } - def postal_code; end - sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_postal_code); end - # State, county, province, or region. - sig { returns(T.nilable(String)) } - def state; end - sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } - def state=(_state); end - # Town or cho-me. - sig { returns(T.nilable(String)) } - def town; end - sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } - def town=(_town); end - sig { - params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void - } - def initialize( - city: nil, - country: nil, - line1: nil, - line2: nil, - postal_code: nil, - state: nil, - town: nil - ); end - end - # Kana Address. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) - } - def kana; end - sig { - params(_kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) - } - def kana=(_kana); end - # Kanji Address. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) - } - def kanji; end - sig { - params(_kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) - } - def kanji=(_kanji); end - sig { - params(kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).void - } - def initialize(kana: nil, kanji: nil); end - end - class ScriptNames < ::Stripe::RequestParams - class Kana < ::Stripe::RequestParams - # Registered name of the business. - sig { returns(T.nilable(String)) } - def registered_name; end - sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } - def registered_name=(_registered_name); end - sig { params(registered_name: T.nilable(String)).void } - def initialize(registered_name: nil); end - end - class Kanji < ::Stripe::RequestParams - # Registered name of the business. + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(T.nilable(String)) } - def registered_name; end - sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } - def registered_name=(_registered_name); end - sig { params(registered_name: T.nilable(String)).void } - def initialize(registered_name: nil); end - end - # Kana name. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana)) - } - def kana; end - sig { - params(_kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana)) - } - def kana=(_kana); end - # Kanji name. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)) - } - def kanji; end - sig { - params(_kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)) - } - def kanji=(_kanji); end - sig { - params(kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana), kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)).void - } - def initialize(kana: nil, kanji: nil); end - end - # The business registration address of the business entity. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address)) - } - def address; end - sig { - params(_address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address)) - } - def address=(_address); end - # The business gross annual revenue for its preceding fiscal year. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) - } - def annual_revenue; end - sig { - params(_annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) - } - def annual_revenue=(_annual_revenue); end - # A detailed description of the business's compliance and anti-money laundering controls and practices. - sig { returns(T.nilable(String)) } - def compliance_screening_description; end - sig { - params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) - } - def compliance_screening_description=(_compliance_screening_description); end - # A document verifying the business. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) - } - def documents; end - sig { - params(_documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) - } - def documents=(_documents); end - # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. - sig { returns(T.nilable(Integer)) } - def estimated_worker_count; end - sig { params(_estimated_worker_count: T.nilable(Integer)).returns(T.nilable(Integer)) } - def estimated_worker_count=(_estimated_worker_count); end - # The ID numbers of a business entity. - sig { - returns(T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber])) - } - def id_numbers; end - sig { - params(_id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber])).returns(T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber])) - } - def id_numbers=(_id_numbers); end - # An estimate of the monthly revenue of the business. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) - } - def monthly_estimated_revenue; end - sig { - params(_monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) - } - def monthly_estimated_revenue=(_monthly_estimated_revenue); end - # The phone number of the Business Entity. - sig { returns(T.nilable(String)) } - def phone; end - sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } - def phone=(_phone); end - # The business legal name. - sig { returns(T.nilable(String)) } - def registered_name; end - sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } - def registered_name=(_registered_name); end - # The business registration address of the business entity in non latin script. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses)) - } - def script_addresses; end - sig { - params(_script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses)) - } - def script_addresses=(_script_addresses); end - # The business legal name in non latin script. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames)) - } - def script_names; end - sig { - params(_script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames)) - } - def script_names=(_script_names); end - # The category identifying the legal structure of the business. - sig { returns(T.nilable(String)) } - def structure; end - sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } - def structure=(_structure); end - sig { - params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void - } - def initialize( - address: nil, - annual_revenue: nil, - compliance_screening_description: nil, - documents: nil, - estimated_worker_count: nil, - id_numbers: nil, - monthly_estimated_revenue: nil, - phone: nil, - registered_name: nil, - script_addresses: nil, - script_names: nil, - structure: nil - ); end - end - class Individual < ::Stripe::RequestParams - class AdditionalAddress < ::Stripe::RequestParams - # City, district, suburb, town, or village. - sig { returns(T.nilable(String)) } - def city; end - sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } - def city=(_city); end - # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - sig { returns(T.nilable(String)) } - def country; end - sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } - def country=(_country); end - # Address line 1 (e.g., street, PO Box, or company name). - sig { returns(T.nilable(String)) } - def line1; end - sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_line1); end - # Address line 2 (e.g., apartment, suite, unit, or building). - sig { returns(T.nilable(String)) } - def line2; end - sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_line2); end - # ZIP or postal code. - sig { returns(T.nilable(String)) } - def postal_code; end - sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_postal_code); end - # Purpose of additional address. - sig { returns(String) } - def purpose; end - sig { params(_purpose: String).returns(String) } - def purpose=(_purpose); end - # State, county, province, or region. - sig { returns(T.nilable(String)) } - def state; end - sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } - def state=(_state); end - # Town or cho-me. - sig { returns(T.nilable(String)) } - def town; end - sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } - def town=(_town); end - sig { - params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), purpose: String, state: T.nilable(String), town: T.nilable(String)).void - } - def initialize( - city: nil, - country: nil, - line1: nil, - line2: nil, - postal_code: nil, - purpose: nil, - state: nil, - town: nil - ); end - end - class AdditionalName < ::Stripe::RequestParams - # The person's full name. - sig { returns(T.nilable(String)) } - def full_name; end - sig { params(_full_name: T.nilable(String)).returns(T.nilable(String)) } - def full_name=(_full_name); end - # The person's first or given name. - sig { returns(T.nilable(String)) } - def given_name; end - sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } - def given_name=(_given_name); end - # The purpose or type of the additional name. - sig { returns(String) } - def purpose; end - sig { params(_purpose: String).returns(String) } - def purpose=(_purpose); end - # The person's last or family name. - sig { returns(T.nilable(String)) } - def surname; end - sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } - def surname=(_surname); end - sig { - params(full_name: T.nilable(String), given_name: T.nilable(String), purpose: String, surname: T.nilable(String)).void - } - def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil); end - end - class Address < ::Stripe::RequestParams - # City, district, suburb, town, or village. - sig { returns(T.nilable(String)) } - def city; end - sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } - def city=(_city); end - # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - sig { returns(T.nilable(String)) } - def country; end - sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } - def country=(_country); end - # Address line 1 (e.g., street, PO Box, or company name). - sig { returns(T.nilable(String)) } - def line1; end - sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_line1); end - # Address line 2 (e.g., apartment, suite, unit, or building). - sig { returns(T.nilable(String)) } - def line2; end - sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_line2); end - # ZIP or postal code. - sig { returns(T.nilable(String)) } - def postal_code; end - sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_postal_code); end - # State, county, province, or region. - sig { returns(T.nilable(String)) } - def state; end - sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } - def state=(_state); end - # Town or cho-me. - sig { returns(T.nilable(String)) } - def town; end - sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } - def town=(_town); end - sig { - params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void - } - def initialize( - city: nil, - country: nil, - line1: nil, - line2: nil, - postal_code: nil, - state: nil, - town: nil - ); end - end - class DateOfBirth < ::Stripe::RequestParams - # The day of the birth. - sig { returns(Integer) } - def day; end - sig { params(_day: Integer).returns(Integer) } - def day=(_day); end - # The month of birth. - sig { returns(Integer) } - def month; end - sig { params(_month: Integer).returns(Integer) } - def month=(_month); end - # The year of birth. - sig { returns(Integer) } - def year; end - sig { params(_year: Integer).returns(Integer) } - def year=(_year); end - sig { params(day: Integer, month: Integer, year: Integer).void } - def initialize(day: nil, month: nil, year: nil); end - end - class Documents < ::Stripe::RequestParams - class CompanyAuthorization < ::Stripe::RequestParams - # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - sig { returns(T::Array[String]) } - def files; end - sig { params(_files: T::Array[String]).returns(T::Array[String]) } - def files=(_files); end - # The format of the document. Currently supports `files` only. - sig { returns(String) } - def type; end - sig { params(_type: String).returns(String) } - def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end - end - class Passport < ::Stripe::RequestParams - # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - sig { returns(T::Array[String]) } - def files; end - sig { params(_files: T::Array[String]).returns(T::Array[String]) } - def files=(_files); end - # The format of the document. Currently supports `files` only. - sig { returns(String) } - def type; end - sig { params(_type: String).returns(String) } - def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end - end - class PrimaryVerification < ::Stripe::RequestParams - class FrontBack < ::Stripe::RequestParams - # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. - sig { returns(T.nilable(String)) } - def back; end - sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } - def back=(_back); end - # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. - sig { returns(T.nilable(String)) } - def front; end - sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } - def front=(_front); end - sig { params(back: T.nilable(String), front: T.nilable(String)).void } - def initialize(back: nil, front: nil); end - end - # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. - sig { - returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) - } - def front_back; end - sig { - params(_front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack).returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) - } - def front_back=(_front_back); end - # The format of the verification document. Currently supports `front_back` only. - sig { returns(String) } - def type; end - sig { params(_type: String).returns(String) } - def type=(_type); end - sig { - params(front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack, type: String).void - } - def initialize(front_back: nil, type: nil); end - end - class SecondaryVerification < ::Stripe::RequestParams - class FrontBack < ::Stripe::RequestParams - # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. - sig { returns(T.nilable(String)) } - def back; end - sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } - def back=(_back); end - # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. - sig { returns(T.nilable(String)) } - def front; end - sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } - def front=(_front); end - sig { params(back: T.nilable(String), front: T.nilable(String)).void } - def initialize(back: nil, front: nil); end - end - # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. - sig { - returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) - } - def front_back; end - sig { - params(_front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack).returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) - } - def front_back=(_front_back); end - # The format of the verification document. Currently supports `front_back` only. - sig { returns(String) } - def type; end - sig { params(_type: String).returns(String) } - def type=(_type); end - sig { - params(front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack, type: String).void - } - def initialize(front_back: nil, type: nil); end - end - class Visa < ::Stripe::RequestParams - # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - sig { returns(T::Array[String]) } - def files; end - sig { params(_files: T::Array[String]).returns(T::Array[String]) } - def files=(_files); end - # The format of the document. Currently supports `files` only. - sig { returns(String) } - def type; end - sig { params(_type: String).returns(String) } - def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end end - # One or more documents that demonstrate proof that this person is authorized to represent the company. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization)) - } - def company_authorization; end - sig { - params(_company_authorization: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization)) - } - def company_authorization=(_company_authorization); end - # One or more documents showing the person’s passport page with photo and personal data. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport)) - } - def passport; end - sig { - params(_passport: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport)) - } - def passport=(_passport); end - # An identifying document showing the person's name, either a passport or local ID card. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification)) - } - def primary_verification; end - sig { - params(_primary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification)) - } - def primary_verification=(_primary_verification); end - # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification)) - } - def secondary_verification; end - sig { - params(_secondary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification)) - } - def secondary_verification=(_secondary_verification); end - # One or more documents showing the person’s visa required for living in the country where they are residing. - sig { - returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)) - } - def visa; end + # A non-negative integer representing the amount in the smallest currency unit. sig { - params(_visa: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)) + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) } - def visa=(_visa); end + def amount; end sig { - params(company_authorization: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization), passport: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport), primary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification), secondary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification), visa: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)).void + params(_amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) } - def initialize( - company_authorization: nil, - passport: nil, - primary_verification: nil, - secondary_verification: nil, - visa: nil - ); end - end - class IdNumber < ::Stripe::RequestParams - # The ID number type of an individual. - sig { returns(String) } - def type; end - sig { params(_type: String).returns(String) } - def type=(_type); end - # The value of the ID number. - sig { returns(String) } - def value; end - sig { params(_value: String).returns(String) } - def value=(_value); end - sig { params(type: String, value: String).void } - def initialize(type: nil, value: nil); end - end - class Relationship < ::Stripe::RequestParams - # 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. - sig { returns(T.nilable(T::Boolean)) } - def director; end - sig { params(_director: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def director=(_director); end - # Whether the person has significant responsibility to control, manage, or direct the organization. - sig { returns(T.nilable(T::Boolean)) } - def executive; end - sig { params(_executive: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def executive=(_executive); end - # Whether the person is an owner of the account’s identity. - sig { returns(T.nilable(T::Boolean)) } - def owner; end - sig { params(_owner: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def owner=(_owner); end - # The percent owned by the person of the account's legal entity. - sig { returns(T.nilable(String)) } - def percent_ownership; end - sig { params(_percent_ownership: T.nilable(String)).returns(T.nilable(String)) } - def percent_ownership=(_percent_ownership); end - # The person's title (e.g., CEO, Support Engineer). - sig { returns(T.nilable(String)) } - def title; end - sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } - def title=(_title); end + def amount=(_amount); end sig { - params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(String), title: T.nilable(String)).void + params(amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).void } - def initialize( - director: nil, - executive: nil, - owner: nil, - percent_ownership: nil, - title: nil - ); end + def initialize(amount: nil); end + end + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + # Kana Address. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) + } + def kana=(_kana); end + # Kanji Address. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # Registered name of the business. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + sig { params(registered_name: T.nilable(String)).void } + def initialize(registered_name: nil); end + end + class Kanji < ::Stripe::RequestParams + # Registered name of the business. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + sig { params(registered_name: T.nilable(String)).void } + def initialize(registered_name: nil); end + end + # Kana name. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana)) + } + def kana=(_kana); end + # Kanji name. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kana), kanji: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + # The business registration address of the business entity. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address)) + } + def address=(_address); end + # The business gross annual revenue for its preceding fiscal year. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) + } + def annual_revenue; end + sig { + params(_annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) + } + def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end + # A document verifying the business. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) + } + def documents; end + sig { + params(_documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) + } + def documents=(_documents); end + # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. + sig { returns(T.nilable(Integer)) } + def estimated_worker_count; end + sig { params(_estimated_worker_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def estimated_worker_count=(_estimated_worker_count); end + # The ID numbers of a business entity. + sig { + returns(T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber])) + } + def id_numbers; end + sig { + params(_id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber])).returns(T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber])) + } + def id_numbers=(_id_numbers); end + # An estimate of the monthly revenue of the business. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) + } + def monthly_estimated_revenue; end + sig { + params(_monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) + } + def monthly_estimated_revenue=(_monthly_estimated_revenue); end + # The phone number of the Business Entity. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The business legal name. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + # The business registration address of the business entity in non latin script. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses)) + } + def script_addresses; end + sig { + params(_script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses)) + } + def script_addresses=(_script_addresses); end + # The business legal name in non latin script. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames)) + } + def script_names; end + sig { + params(_script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames)) + } + def script_names=(_script_names); end + # The category identifying the legal structure of the business. + sig { returns(T.nilable(String)) } + def structure; end + sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } + def structure=(_structure); end + sig { + params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + } + def initialize( + address: nil, + annual_revenue: nil, + compliance_screening_description: nil, + documents: nil, + estimated_worker_count: nil, + id_numbers: nil, + monthly_estimated_revenue: nil, + phone: nil, + registered_name: nil, + script_addresses: nil, + script_names: nil, + structure: nil + ); end + end + class Individual < ::Stripe::RequestParams + class AdditionalAddress < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # Purpose of additional address. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), purpose: String, state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + purpose: nil, + state: nil, + town: nil + ); end + end + class AdditionalName < ::Stripe::RequestParams + # The person's full name. + sig { returns(T.nilable(String)) } + def full_name; end + sig { params(_full_name: T.nilable(String)).returns(T.nilable(String)) } + def full_name=(_full_name); end + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The purpose or type of the additional name. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(full_name: T.nilable(String), given_name: T.nilable(String), purpose: String, surname: T.nilable(String)).void + } + def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil); end + end + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class DateOfBirth < ::Stripe::RequestParams + # The day of the birth. + sig { returns(Integer) } + def day; end + sig { params(_day: Integer).returns(Integer) } + def day=(_day); end + # The month of birth. + sig { returns(Integer) } + def month; end + sig { params(_month: Integer).returns(Integer) } + def month=(_month); end + # The year of birth. + sig { returns(Integer) } + def year; end + sig { params(_year: Integer).returns(Integer) } + def year=(_year); end + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class Passport < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack).returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class SecondaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack).returns(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class Visa < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + # One or more documents that demonstrate proof that this person is authorized to represent the company. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization)) + } + def company_authorization; end + sig { + params(_company_authorization: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization)) + } + def company_authorization=(_company_authorization); end + # One or more documents showing the person’s passport page with photo and personal data. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport)) + } + def passport; end + sig { + params(_passport: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport)) + } + def passport=(_passport); end + # An identifying document showing the person's name, either a passport or local ID card. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification)) + } + def primary_verification; end + sig { + params(_primary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification)) + } + def primary_verification=(_primary_verification); end + # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification)) + } + def secondary_verification; end + sig { + params(_secondary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification)) + } + def secondary_verification=(_secondary_verification); end + # One or more documents showing the person’s visa required for living in the country where they are residing. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)) + } + def visa; end + sig { + params(_visa: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)) + } + def visa=(_visa); end + sig { + params(company_authorization: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::CompanyAuthorization), passport: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Passport), primary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::PrimaryVerification), secondary_verification: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::SecondaryVerification), visa: T.nilable(V2::Core::AccountUpdateParams::Identity::Individual::Documents::Visa)).void + } + def initialize( + company_authorization: nil, + passport: nil, + primary_verification: nil, + secondary_verification: nil, + visa: nil + ); end + end + class IdNumber < ::Stripe::RequestParams + # The ID number type of an individual. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + # The value of the ID number. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(type: String, value: String).void } + def initialize(type: nil, value: nil); end + end + class Relationship < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(T::Boolean)) } + def director; end + sig { params(_director: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def director=(_director); end + # Whether the person has significant responsibility to control, manage, or direct the organization. + sig { returns(T.nilable(T::Boolean)) } + def executive; end + sig { params(_executive: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def executive=(_executive); end + # Whether the person is an owner of the account’s identity. + sig { returns(T.nilable(T::Boolean)) } + def owner; end + sig { params(_owner: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def owner=(_owner); end + # The percent owned by the person of the account's legal entity. + sig { returns(T.nilable(String)) } + def percent_ownership; end + sig { params(_percent_ownership: T.nilable(String)).returns(T.nilable(String)) } + def percent_ownership=(_percent_ownership); end + # The person's title (e.g., CEO, Support Engineer). + sig { returns(T.nilable(String)) } + def title; end + sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } + def title=(_title); end + sig { + params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(String), title: T.nilable(String)).void + } + def initialize( + director: nil, + executive: nil, + owner: nil, + percent_ownership: nil, + title: nil + ); end end class ScriptAddresses < ::Stripe::RequestParams class Kana < ::Stripe::RequestParams @@ -226917,6 +228164,11 @@ module Stripe individual: nil ); end end + # The account token generated by the account token api. + sig { returns(T.nilable(String)) } + def account_token; end + sig { params(_account_token: T.nilable(String)).returns(T.nilable(String)) } + def account_token=(_account_token); end # An Account Configuration which allows the Account to take on a key persona across Stripe products. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration)) } def configuration; end @@ -226966,9 +228218,10 @@ module Stripe } def metadata=(_metadata); end sig { - params(configuration: T.nilable(V2::Core::AccountUpdateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountUpdateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountUpdateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, T.nilable(String)])).void + params(account_token: T.nilable(String), configuration: T.nilable(V2::Core::AccountUpdateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountUpdateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountUpdateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, T.nilable(String)])).void } def initialize( + account_token: nil, configuration: nil, contact_email: nil, dashboard: nil, @@ -227693,6 +228946,11 @@ module Stripe params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def nationalities=(_nationalities); end + # The person token generated by the person token api. + sig { returns(T.nilable(String)) } + def person_token; end + sig { params(_person_token: T.nilable(String)).returns(T.nilable(String)) } + def person_token=(_person_token); end # The phone number for this person. sig { returns(T.nilable(String)) } def phone; end @@ -227730,7 +228988,7 @@ module Stripe sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } def surname=(_surname); end sig { - params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonCreateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonCreateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonCreateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonCreateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonCreateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptNames), surname: T.nilable(String)).void + params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonCreateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonCreateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonCreateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonCreateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), nationalities: T.nilable(T::Array[String]), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonCreateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptNames), surname: T.nilable(String)).void } def initialize( additional_addresses: nil, @@ -227745,6 +229003,7 @@ module Stripe legal_gender: nil, metadata: nil, nationalities: nil, + person_token: nil, phone: nil, political_exposure: nil, relationship: nil, @@ -228454,6 +229713,11 @@ module Stripe params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def nationalities=(_nationalities); end + # The person token generated by the person token api. + sig { returns(T.nilable(String)) } + def person_token; end + sig { params(_person_token: T.nilable(String)).returns(T.nilable(String)) } + def person_token=(_person_token); end # The phone number for this person. sig { returns(T.nilable(String)) } def phone; end @@ -228491,7 +229755,747 @@ module Stripe sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } def surname=(_surname); end sig { - params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonUpdateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonUpdateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonUpdateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonUpdateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonUpdateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptNames), surname: T.nilable(String)).void + params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonUpdateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonUpdateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonUpdateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonUpdateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonUpdateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptNames), surname: T.nilable(String)).void + } + def initialize( + additional_addresses: nil, + additional_names: nil, + additional_terms_of_service: nil, + address: nil, + date_of_birth: nil, + documents: nil, + email: nil, + given_name: nil, + id_numbers: nil, + legal_gender: nil, + metadata: nil, + nationalities: nil, + person_token: nil, + phone: nil, + political_exposure: nil, + relationship: nil, + script_addresses: nil, + script_names: nil, + surname: nil + ); end + end + end + end + end +end +# typed: true +module Stripe + module V2 + module Core + module Accounts + class PersonTokenCreateParams < ::Stripe::RequestParams + class AdditionalAddress < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # Purpose of additional address. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), purpose: String, state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + purpose: nil, + state: nil, + town: nil + ); end + end + class AdditionalName < ::Stripe::RequestParams + # The person's full name. + sig { returns(T.nilable(String)) } + def full_name; end + sig { params(_full_name: T.nilable(String)).returns(T.nilable(String)) } + def full_name=(_full_name); end + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The purpose or type of the additional name. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(full_name: T.nilable(String), given_name: T.nilable(String), purpose: String, surname: T.nilable(String)).void + } + def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil); end + end + class AdditionalTermsOfService < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Details on the Person's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)) + } + def account; end + sig { + params(_account: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)) + } + def account=(_account); end + sig { + params(account: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)).void + } + def initialize(account: nil); end + end + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class DateOfBirth < ::Stripe::RequestParams + # The day of the birth. + sig { returns(Integer) } + def day; end + sig { params(_day: Integer).returns(Integer) } + def day=(_day); end + # The month of birth. + sig { returns(Integer) } + def month; end + sig { params(_month: Integer).returns(Integer) } + def month=(_month); end + # The year of birth. + sig { returns(Integer) } + def year; end + sig { params(_year: Integer).returns(Integer) } + def year=(_year); end + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class Passport < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack).returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class SecondaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack).returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class Visa < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + # One or more documents that demonstrate proof that this person is authorized to represent the company. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization)) + } + def company_authorization; end + sig { + params(_company_authorization: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization)) + } + def company_authorization=(_company_authorization); end + # One or more documents showing the person’s passport page with photo and personal data. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport)) + } + def passport; end + sig { + params(_passport: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport)) + } + def passport=(_passport); end + # An identifying document showing the person's name, either a passport or local ID card. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification)) + } + def primary_verification; end + sig { + params(_primary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification)) + } + def primary_verification=(_primary_verification); end + # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification)) + } + def secondary_verification; end + sig { + params(_secondary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification)) + } + def secondary_verification=(_secondary_verification); end + # One or more documents showing the person’s visa required for living in the country where they are residing. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)) } + def visa; end + sig { + params(_visa: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)) + } + def visa=(_visa); end + sig { + params(company_authorization: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization), passport: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport), primary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification), secondary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification), visa: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)).void + } + def initialize( + company_authorization: nil, + passport: nil, + primary_verification: nil, + secondary_verification: nil, + visa: nil + ); end + end + class IdNumber < ::Stripe::RequestParams + # The ID number type of an individual. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + # The value of the ID number. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(type: String, value: String).void } + def initialize(type: nil, value: nil); end + end + class Relationship < ::Stripe::RequestParams + # Whether the individual is an authorizer of the Account’s legal entity. + sig { returns(T.nilable(T::Boolean)) } + def authorizer; end + sig { params(_authorizer: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def authorizer=(_authorizer); end + # Indicates whether the person is a director of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def director; end + sig { params(_director: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def director=(_director); end + # Indicates whether the person is an executive of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def executive; end + sig { params(_executive: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def executive=(_executive); end + # Indicates whether the person is a legal guardian of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def legal_guardian; end + sig { params(_legal_guardian: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def legal_guardian=(_legal_guardian); end + # Indicates whether the person is an owner of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def owner; end + sig { params(_owner: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def owner=(_owner); end + # The percentage of ownership the person has in the associated legal entity. + sig { returns(T.nilable(String)) } + def percent_ownership; end + sig { params(_percent_ownership: T.nilable(String)).returns(T.nilable(String)) } + def percent_ownership=(_percent_ownership); end + # Indicates whether the person is a representative of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def representative; end + sig { params(_representative: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def representative=(_representative); end + # The title or position the person holds in the associated legal entity. + sig { returns(T.nilable(String)) } + def title; end + sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } + def title=(_title); end + sig { + params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(String), representative: T.nilable(T::Boolean), title: T.nilable(String)).void + } + def initialize( + authorizer: nil, + director: nil, + executive: nil, + legal_guardian: nil, + owner: nil, + percent_ownership: nil, + representative: nil, + title: nil + ); end + end + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + # Kana Address. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana)) + } + def kana=(_kana); end + # Kanji Address. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + class Kanji < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + # Persons name in kana script. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana)) + } + def kana=(_kana); end + # Persons name in kanji script. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana), kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + # Additional addresses associated with the person. + sig { + returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress])) + } + def additional_addresses; end + sig { + params(_additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress])).returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress])) + } + def additional_addresses=(_additional_addresses); end + # Additional names (e.g. aliases) associated with the person. + sig { + returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName])) + } + def additional_names; end + sig { + params(_additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName])).returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName])) + } + def additional_names=(_additional_names); end + # Attestations of accepted terms of service agreements. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService)) + } + def additional_terms_of_service; end + sig { + params(_additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService)) + } + def additional_terms_of_service=(_additional_terms_of_service); end + # The person's residential address. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address)) } + def address; end + sig { + params(_address: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address)) + } + def address=(_address); end + # The person's date of birth. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth)) } + def date_of_birth; end + sig { + params(_date_of_birth: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth)) + } + def date_of_birth=(_date_of_birth); end + # Documents that may be submitted to satisfy various informational requests. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents)) } + def documents; end + sig { + params(_documents: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents)) + } + def documents=(_documents); end + # Email. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The person's first name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The identification numbers (e.g., SSN) associated with the person. + sig { + returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber])) + } + def id_numbers; end + sig { + params(_id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber])).returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber])) + } + def id_numbers=(_id_numbers); end + # The person's gender (International regulations require either "male" or "female"). + sig { returns(T.nilable(String)) } + def legal_gender; end + sig { params(_legal_gender: T.nilable(String)).returns(T.nilable(String)) } + def legal_gender=(_legal_gender); end + # 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. + sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, T.nilable(String)])).returns(T.nilable(T::Hash[String, T.nilable(String)])) + } + def metadata=(_metadata); end + # The nationalities (countries) this person is associated with. + sig { returns(T.nilable(T::Array[String])) } + def nationalities; end + sig { + params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def nationalities=(_nationalities); end + # The phone number for this person. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The person's political exposure. + sig { returns(T.nilable(String)) } + def political_exposure; end + sig { params(_political_exposure: T.nilable(String)).returns(T.nilable(String)) } + def political_exposure=(_political_exposure); end + # The relationship that this person has with the Account's business or legal entity. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship)) } + def relationship; end + sig { + params(_relationship: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship)) + } + def relationship=(_relationship); end + # The script addresses (e.g., non-Latin characters) associated with the person. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses)) } + def script_addresses; end + sig { + params(_script_addresses: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses)) + } + def script_addresses=(_script_addresses); end + # The script names (e.g. non-Latin characters) associated with the person. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames)) } + def script_names; end + sig { + params(_script_names: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames)) + } + def script_names=(_script_names); end + # The person's last name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames), surname: T.nilable(String)).void } def initialize( additional_addresses: nil, @@ -228519,6 +230523,16 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + module Accounts + class PersonTokenRetrieveParams < ::Stripe::RequestParams; end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -228665,6 +230679,2015 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + class AccountTokenCreateParams < ::Stripe::RequestParams + class Identity < ::Stripe::RequestParams + class Attestations < ::Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams + # A boolean indicating if the directors information has been attested. + sig { returns(T.nilable(T::Boolean)) } + def attested; end + sig { params(_attested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def attested=(_attested); end + sig { params(attested: T.nilable(T::Boolean)).void } + def initialize(attested: nil); end + end + class OwnershipDeclaration < ::Stripe::RequestParams + # A boolean indicating if the beneficial owner information has been attested. + sig { returns(T.nilable(T::Boolean)) } + def attested; end + sig { params(_attested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def attested=(_attested); end + sig { params(attested: T.nilable(T::Boolean)).void } + def initialize(attested: nil); end + end + class PersonsProvided < ::Stripe::RequestParams + # Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + sig { returns(T.nilable(T::Boolean)) } + def directors; end + sig { params(_directors: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def directors=(_directors); end + # Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + sig { returns(T.nilable(T::Boolean)) } + def executives; end + sig { params(_executives: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def executives=(_executives); end + # Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + sig { returns(T.nilable(T::Boolean)) } + def owners; end + sig { params(_owners: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def owners=(_owners); end + # Reason for why the company is exempt from providing ownership information. + sig { returns(T.nilable(String)) } + def ownership_exemption_reason; end + sig { + params(_ownership_exemption_reason: T.nilable(String)).returns(T.nilable(String)) + } + def ownership_exemption_reason=(_ownership_exemption_reason); end + sig { + params(directors: T.nilable(T::Boolean), executives: T.nilable(T::Boolean), owners: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(String)).void + } + def initialize( + directors: nil, + executives: nil, + owners: nil, + ownership_exemption_reason: nil + ); end + end + class RepresentativeDeclaration < ::Stripe::RequestParams + # A boolean indicating if the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(T::Boolean)) } + def attested; end + sig { params(_attested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def attested=(_attested); end + sig { params(attested: T.nilable(T::Boolean)).void } + def initialize(attested: nil); end + end + class TermsOfService < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class CardCreator < ::Stripe::RequestParams + class Commercial < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Celtic < ::Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class ChargeCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)) + } + def platform; end + sig { + params(_platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)) + } + def platform=(_platform); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms), platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)).void + } + def initialize(bank_terms: nil, platform: nil); end + end + class SpendCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures)) + } + def financing_disclosures; end + sig { + params(_financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures)) + } + def financing_disclosures=(_financing_disclosures); end + # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)) + } + def platform; end + sig { + params(_platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)) + } + def platform=(_platform); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms), financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures), platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)).void + } + def initialize( + bank_terms: nil, + financing_disclosures: nil, + platform: nil + ); end + end + # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay)) + } + def apple_pay; end + sig { + params(_apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay)) + } + def apple_pay=(_apple_pay); end + # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard)) + } + def charge_card; end + sig { + params(_charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard)) + } + def charge_card=(_charge_card); end + # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)) + } + def spend_card; end + sig { + params(_spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)) + } + def spend_card=(_spend_card); end + sig { + params(apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay), charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard), spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)).void + } + def initialize(apple_pay: nil, charge_card: nil, spend_card: nil); end + end + class CrossRiverBank < ::Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class ChargeCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures)) + } + def financing_disclosures; end + sig { + params(_financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures)) + } + def financing_disclosures=(_financing_disclosures); end + # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)) + } + def platform; end + sig { + params(_platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)) + } + def platform=(_platform); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms), financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures), platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)).void + } + def initialize( + bank_terms: nil, + financing_disclosures: nil, + platform: nil + ); end + end + class SpendCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)) + } + def financing_disclosures; end + sig { + params(_financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)) + } + def financing_disclosures=(_financing_disclosures); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms), financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)).void + } + def initialize(bank_terms: nil, financing_disclosures: nil); end + end + # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay)) + } + def apple_pay; end + sig { + params(_apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay)) + } + def apple_pay=(_apple_pay); end + # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard)) + } + def charge_card; end + sig { + params(_charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard)) + } + def charge_card=(_charge_card); end + # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)) + } + def spend_card; end + sig { + params(_spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)) + } + def spend_card=(_spend_card); end + sig { + params(apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay), charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard), spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)).void + } + def initialize(apple_pay: nil, charge_card: nil, spend_card: nil); end + end + # Terms of service acceptances for Stripe commercial card issuing. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder)) + } + def account_holder; end + sig { + params(_account_holder: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder)) + } + def account_holder=(_account_holder); end + # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic)) + } + def celtic; end + sig { + params(_celtic: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic)) + } + def celtic=(_celtic); end + # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)) + } + def cross_river_bank; end + sig { + params(_cross_river_bank: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)) + } + def cross_river_bank=(_cross_river_bank); end + sig { + params(account_holder: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder), celtic: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic), cross_river_bank: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)).void + } + def initialize(account_holder: nil, celtic: nil, cross_river_bank: nil); end + end + # Terms of service acceptances to create cards for commercial issuing use cases. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)) + } + def commercial; end + sig { + params(_commercial: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)) + } + def commercial=(_commercial); end + sig { + params(commercial: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)).void + } + def initialize(commercial: nil); end + end + class CryptoStorer < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Storer < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account)) + } + def account; end + sig { + params(_account: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account)) + } + def account=(_account); end + # Details on the Account's acceptance of Issuing-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator)) + } + def card_creator; end + sig { + params(_card_creator: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator)) + } + def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end + # Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)) + } + def storer; end + sig { + params(_storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)) + } + def storer=(_storer); end + sig { + params(account: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)).void + } + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end + end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration)) + } + def directorship_declaration; end + sig { + params(_directorship_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration)) + } + def directorship_declaration=(_directorship_declaration); end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration)) + } + def ownership_declaration; end + sig { + params(_ownership_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration)) + } + def ownership_declaration=(_ownership_declaration); end + # Attestation that all Persons with a specific Relationship value have been provided. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided)) + } + def persons_provided; end + sig { + params(_persons_provided: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided)) + } + def persons_provided=(_persons_provided); end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end + # Attestations of accepted terms of service agreements. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)) + } + def terms_of_service; end + sig { + params(_terms_of_service: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)) + } + def terms_of_service=(_terms_of_service); end + sig { + params(directorship_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided), representative_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration), terms_of_service: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)).void + } + def initialize( + directorship_declaration: nil, + ownership_declaration: nil, + persons_provided: nil, + representative_declaration: nil, + terms_of_service: nil + ); end + end + class BusinessDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # A non-negative integer representing the amount in the smallest currency unit. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } + def amount=(_amount); end + # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. + sig { returns(T.nilable(String)) } + def fiscal_year_end; end + sig { params(_fiscal_year_end: T.nilable(String)).returns(T.nilable(String)) } + def fiscal_year_end=(_fiscal_year_end); end + sig { + params(amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount), fiscal_year_end: T.nilable(String)).void + } + def initialize(amount: nil, fiscal_year_end: nil); end + end + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyLicense < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyMinisterialDecree < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyRegistrationVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyTaxIdVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack).returns(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class ProofOfAddress < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class ProofOfRegistration < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification)) + } + def bank_account_ownership_verification; end + sig { + params(_bank_account_ownership_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification)) + } + def bank_account_ownership_verification=(_bank_account_ownership_verification); end + # One or more documents that demonstrate proof of a company’s license to operate. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense)) + } + def company_license; end + sig { + params(_company_license: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense)) + } + def company_license=(_company_license); end + # One or more documents showing the company’s Memorandum of Association. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation)) + } + def company_memorandum_of_association; end + sig { + params(_company_memorandum_of_association: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation)) + } + def company_memorandum_of_association=(_company_memorandum_of_association); end + # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree)) + } + def company_ministerial_decree; end + sig { + params(_company_ministerial_decree: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree)) + } + def company_ministerial_decree=(_company_ministerial_decree); end + # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification)) + } + def company_registration_verification; end + sig { + params(_company_registration_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification)) + } + def company_registration_verification=(_company_registration_verification); end + # One or more documents that demonstrate proof of a company’s tax ID. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification)) + } + def company_tax_id_verification; end + sig { + params(_company_tax_id_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification)) + } + def company_tax_id_verification=(_company_tax_id_verification); end + # A document verifying the business. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification)) + } + def primary_verification; end + sig { + params(_primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification)) + } + def primary_verification=(_primary_verification); end + # One or more documents that demonstrate proof of address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) + } + def proof_of_address; end + sig { + params(_proof_of_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) + } + def proof_of_address=(_proof_of_address); end + # One or more documents showing the company’s proof of registration with the national business registry. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) + } + def proof_of_registration; end + sig { + params(_proof_of_registration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) + } + def proof_of_registration=(_proof_of_registration); end + # One or more documents that demonstrate proof of ultimate beneficial ownership. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)) + } + def proof_of_ultimate_beneficial_ownership; end + sig { + params(_proof_of_ultimate_beneficial_ownership: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)) + } + def proof_of_ultimate_beneficial_ownership=( + _proof_of_ultimate_beneficial_ownership + ); end + sig { + params(bank_account_ownership_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification), company_license: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense), company_memorandum_of_association: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation), company_ministerial_decree: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree), company_registration_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification), company_tax_id_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification), primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification), proof_of_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress), proof_of_registration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration), proof_of_ultimate_beneficial_ownership: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)).void + } + def initialize( + bank_account_ownership_verification: nil, + company_license: nil, + company_memorandum_of_association: nil, + company_ministerial_decree: nil, + company_registration_verification: nil, + company_tax_id_verification: nil, + primary_verification: nil, + proof_of_address: nil, + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil + ); end + end + class IdNumber < ::Stripe::RequestParams + # The registrar of the ID number (Only valid for DE ID number types). + sig { returns(T.nilable(String)) } + def registrar; end + sig { params(_registrar: T.nilable(String)).returns(T.nilable(String)) } + def registrar=(_registrar); end + # Open Enum. The ID number type of a business entity. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + # The value of the ID number. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(registrar: T.nilable(String), type: String, value: String).void } + def initialize(registrar: nil, type: nil, value: nil); end + end + class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # A non-negative integer representing the amount in the smallest currency unit. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) + } + def amount=(_amount); end + sig { + params(amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).void + } + def initialize(amount: nil); end + end + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + # Kana Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) + } + def kana=(_kana); end + # Kanji Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # Registered name of the business. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + sig { params(registered_name: T.nilable(String)).void } + def initialize(registered_name: nil); end + end + class Kanji < ::Stripe::RequestParams + # Registered name of the business. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + sig { params(registered_name: T.nilable(String)).void } + def initialize(registered_name: nil); end + end + # Kana name. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana)) + } + def kana=(_kana); end + # Kanji name. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + # The business registration address of the business entity. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address)) + } + def address=(_address); end + # The business gross annual revenue for its preceding fiscal year. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue)) + } + def annual_revenue; end + sig { + params(_annual_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue)) + } + def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end + # A document verifying the business. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents)) + } + def documents; end + sig { + params(_documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents)) + } + def documents=(_documents); end + # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. + sig { returns(T.nilable(Integer)) } + def estimated_worker_count; end + sig { params(_estimated_worker_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def estimated_worker_count=(_estimated_worker_count); end + # The ID numbers of a business entity. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber])) + } + def id_numbers; end + sig { + params(_id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber])) + } + def id_numbers=(_id_numbers); end + # An estimate of the monthly revenue of the business. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) + } + def monthly_estimated_revenue; end + sig { + params(_monthly_estimated_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) + } + def monthly_estimated_revenue=(_monthly_estimated_revenue); end + # The phone number of the Business Entity. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The business legal name. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + # The business registration address of the business entity in non latin script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses)) + } + def script_addresses; end + sig { + params(_script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses)) + } + def script_addresses=(_script_addresses); end + # The business legal name in non latin script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames)) + } + def script_names; end + sig { + params(_script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames)) + } + def script_names=(_script_names); end + # The category identifying the legal structure of the business. + sig { returns(T.nilable(String)) } + def structure; end + sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } + def structure=(_structure); end + sig { + params(address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + } + def initialize( + address: nil, + annual_revenue: nil, + compliance_screening_description: nil, + documents: nil, + estimated_worker_count: nil, + id_numbers: nil, + monthly_estimated_revenue: nil, + phone: nil, + registered_name: nil, + script_addresses: nil, + script_names: nil, + structure: nil + ); end + end + class Individual < ::Stripe::RequestParams + class AdditionalAddress < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # Purpose of additional address. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), purpose: String, state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + purpose: nil, + state: nil, + town: nil + ); end + end + class AdditionalName < ::Stripe::RequestParams + # The person's full name. + sig { returns(T.nilable(String)) } + def full_name; end + sig { params(_full_name: T.nilable(String)).returns(T.nilable(String)) } + def full_name=(_full_name); end + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The purpose or type of the additional name. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(full_name: T.nilable(String), given_name: T.nilable(String), purpose: String, surname: T.nilable(String)).void + } + def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil); end + end + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class DateOfBirth < ::Stripe::RequestParams + # The day of the birth. + sig { returns(Integer) } + def day; end + sig { params(_day: Integer).returns(Integer) } + def day=(_day); end + # The month of birth. + sig { returns(Integer) } + def month; end + sig { params(_month: Integer).returns(Integer) } + def month=(_month); end + # The year of birth. + sig { returns(Integer) } + def year; end + sig { params(_year: Integer).returns(Integer) } + def year=(_year); end + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class Passport < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack).returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class SecondaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack).returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class Visa < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + # One or more documents that demonstrate proof that this person is authorized to represent the company. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization)) + } + def company_authorization; end + sig { + params(_company_authorization: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization)) + } + def company_authorization=(_company_authorization); end + # One or more documents showing the person’s passport page with photo and personal data. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport)) + } + def passport; end + sig { + params(_passport: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport)) + } + def passport=(_passport); end + # An identifying document showing the person's name, either a passport or local ID card. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification)) + } + def primary_verification; end + sig { + params(_primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification)) + } + def primary_verification=(_primary_verification); end + # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification)) + } + def secondary_verification; end + sig { + params(_secondary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification)) + } + def secondary_verification=(_secondary_verification); end + # One or more documents showing the person’s visa required for living in the country where they are residing. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)) + } + def visa; end + sig { + params(_visa: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)) + } + def visa=(_visa); end + sig { + params(company_authorization: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization), passport: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport), primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification), secondary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification), visa: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)).void + } + def initialize( + company_authorization: nil, + passport: nil, + primary_verification: nil, + secondary_verification: nil, + visa: nil + ); end + end + class IdNumber < ::Stripe::RequestParams + # The ID number type of an individual. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + # The value of the ID number. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(type: String, value: String).void } + def initialize(type: nil, value: nil); end + end + class Relationship < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(T::Boolean)) } + def director; end + sig { params(_director: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def director=(_director); end + # Whether the person has significant responsibility to control, manage, or direct the organization. + sig { returns(T.nilable(T::Boolean)) } + def executive; end + sig { params(_executive: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def executive=(_executive); end + # Whether the person is an owner of the account’s identity. + sig { returns(T.nilable(T::Boolean)) } + def owner; end + sig { params(_owner: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def owner=(_owner); end + # The percent owned by the person of the account's legal entity. + sig { returns(T.nilable(String)) } + def percent_ownership; end + sig { params(_percent_ownership: T.nilable(String)).returns(T.nilable(String)) } + def percent_ownership=(_percent_ownership); end + # The person's title (e.g., CEO, Support Engineer). + sig { returns(T.nilable(String)) } + def title; end + sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } + def title=(_title); end + sig { + params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(String), title: T.nilable(String)).void + } + def initialize( + director: nil, + executive: nil, + owner: nil, + percent_ownership: nil, + title: nil + ); end + end + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + # Kana Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana)) + } + def kana=(_kana); end + # Kanji Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + class Kanji < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + # Persons name in kana script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana)) + } + def kana=(_kana); end + # Persons name in kanji script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + # Additional addresses associated with the individual. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress])) + } + def additional_addresses; end + sig { + params(_additional_addresses: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress])) + } + def additional_addresses=(_additional_addresses); end + # Additional names (e.g. aliases) associated with the individual. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName])) + } + def additional_names; end + sig { + params(_additional_names: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName])) + } + def additional_names=(_additional_names); end + # The individual's residential address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address)) + } + def address; end + sig { + params(_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address)) + } + def address=(_address); end + # The individual's date of birth. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth)) + } + def date_of_birth; end + sig { + params(_date_of_birth: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth)) + } + def date_of_birth=(_date_of_birth); end + # Documents that may be submitted to satisfy various informational requests. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)) + } + def documents; end + sig { + params(_documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)) + } + def documents=(_documents); end + # The individual's email address. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The individual's first name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The identification numbers (e.g., SSN) associated with the individual. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber])) + } + def id_numbers; end + sig { + params(_id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber])) + } + def id_numbers=(_id_numbers); end + # The individual's gender (International regulations require either "male" or "female"). + sig { returns(T.nilable(String)) } + def legal_gender; end + sig { params(_legal_gender: T.nilable(String)).returns(T.nilable(String)) } + def legal_gender=(_legal_gender); end + # 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. + sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, T.nilable(String)])).returns(T.nilable(T::Hash[String, T.nilable(String)])) + } + def metadata=(_metadata); end + # The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(T::Array[String])) } + def nationalities; end + sig { + params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def nationalities=(_nationalities); end + # The individual's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The individual's political exposure. + sig { returns(T.nilable(String)) } + def political_exposure; end + sig { params(_political_exposure: T.nilable(String)).returns(T.nilable(String)) } + def political_exposure=(_political_exposure); end + # The relationship that this individual has with the account's identity. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship)) + } + def relationship; end + sig { + params(_relationship: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship)) + } + def relationship=(_relationship); end + # The script addresses (e.g., non-Latin characters) associated with the individual. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses)) + } + def script_addresses; end + sig { + params(_script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses)) + } + def script_addresses=(_script_addresses); end + # The individuals primary name in non latin script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames)) + } + def script_names; end + sig { + params(_script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames)) + } + def script_names=(_script_names); end + # The individual's last name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(additional_addresses: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName]), address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address), date_of_birth: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth), documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship), script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses), script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames), surname: T.nilable(String)).void + } + def initialize( + additional_addresses: nil, + additional_names: nil, + address: nil, + date_of_birth: nil, + documents: nil, + email: nil, + given_name: nil, + id_numbers: nil, + legal_gender: nil, + metadata: nil, + nationalities: nil, + phone: nil, + political_exposure: nil, + relationship: nil, + script_addresses: nil, + script_names: nil, + surname: nil + ); end + end + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. + sig { returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations)) } + def attestations; end + sig { + params(_attestations: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations)) + } + def attestations=(_attestations); end + # Information about the company or business. + sig { returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails)) } + def business_details; end + sig { + params(_business_details: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails)) + } + def business_details=(_business_details); end + # The entity type. + sig { returns(T.nilable(String)) } + def entity_type; end + sig { params(_entity_type: T.nilable(String)).returns(T.nilable(String)) } + def entity_type=(_entity_type); end + # Information about the person represented by the account. + sig { returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)) + } + def individual=(_individual); end + sig { + params(attestations: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations), business_details: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails), entity_type: T.nilable(String), individual: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)).void + } + def initialize( + attestations: nil, + business_details: nil, + entity_type: nil, + individual: nil + ); end + end + # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + sig { returns(T.nilable(String)) } + def contact_email; end + sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } + def contact_email=(_contact_email); end + # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # Information about the company, individual, and business represented by the Account. + sig { returns(V2::Core::AccountTokenCreateParams::Identity) } + def identity; end + sig { + params(_identity: V2::Core::AccountTokenCreateParams::Identity).returns(V2::Core::AccountTokenCreateParams::Identity) + } + def identity=(_identity); end + sig { + params(contact_email: T.nilable(String), display_name: T.nilable(String), identity: V2::Core::AccountTokenCreateParams::Identity).void + } + def initialize(contact_email: nil, display_name: nil, identity: nil); end + end + end + end +end +# typed: true +module Stripe + module V2 + module Core + class AccountTokenRetrieveParams < ::Stripe::RequestParams; end + end + end +end +# typed: true module Stripe module V2 module Core @@ -228723,31 +232746,44 @@ module Stripe module V2 module Core class EventListParams < ::Stripe::RequestParams - # Filter for events created after the specified timestamp. - sig { returns(T.nilable(String)) } - def gt; end - sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } - def gt=(_gt); end - # Filter for events created at or after the specified timestamp. - sig { returns(T.nilable(String)) } - def gte; end - sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } - def gte=(_gte); end + class Created < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + sig { returns(T.nilable(String)) } + def gt; end + sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } + def gt=(_gt); end + # Filter for events created at or after the specified timestamp. + sig { returns(T.nilable(String)) } + def gte; end + sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } + def gte=(_gte); end + # Filter for events created before the specified timestamp. + sig { returns(T.nilable(String)) } + def lt; end + sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } + def lt=(_lt); end + # Filter for events created at or before the specified timestamp. + sig { returns(T.nilable(String)) } + def lte; end + sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } + def lte=(_lte); end + sig { + params(gt: T.nilable(String), gte: T.nilable(String), lt: T.nilable(String), lte: T.nilable(String)).void + } + def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end + end + # Set of filters to query events within a range of `created` timestamps. + sig { returns(T.nilable(V2::Core::EventListParams::Created)) } + def created; end + sig { + params(_created: T.nilable(V2::Core::EventListParams::Created)).returns(T.nilable(V2::Core::EventListParams::Created)) + } + def created=(_created); end # The page size. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end - # Filter for events created before the specified timestamp. - sig { returns(T.nilable(String)) } - def lt; end - sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } - def lt=(_lt); end - # Filter for events created at or before the specified timestamp. - sig { returns(T.nilable(String)) } - def lte; end - sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } - def lte=(_lte); end # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. @@ -228761,17 +232797,9 @@ module Stripe sig { params(_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def types=(_types); end sig { - params(gt: T.nilable(String), gte: T.nilable(String), limit: T.nilable(Integer), lt: T.nilable(String), lte: T.nilable(String), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void + params(created: T.nilable(V2::Core::EventListParams::Created), limit: T.nilable(Integer), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void } - def initialize( - gt: nil, - gte: nil, - limit: nil, - lt: nil, - lte: nil, - object_id_: nil, - types: nil - ); end + def initialize(created: nil, limit: nil, object_id_: nil, types: nil); end end end end @@ -229383,6 +233411,135 @@ module Stripe end end # typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionListParams < ::Stripe::RequestParams + # The ID of the FinancialAccount to filter by. + sig { returns(T.nilable(String)) } + def financial_account; end + sig { params(_financial_account: T.nilable(String)).returns(T.nilable(String)) } + def financial_account=(_financial_account); end + # The page limit. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + sig { params(financial_account: T.nilable(String), limit: T.nilable(Integer)).void } + def initialize(financial_account: nil, limit: nil); end + end + end + end +end +# typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionCreateParams < ::Stripe::RequestParams + class From < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # Amount object. + sig { + returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount)).returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount)) + } + def amount=(_amount); end + # A lowercase alpha3 currency code like "usd". + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { + params(amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount), currency: T.nilable(String)).void + } + def initialize(amount: nil, currency: nil); end + end + class To < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # Amount object. + sig { + returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount)).returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount)) + } + def amount=(_amount); end + # A lowercase alpha3 currency code like "usd". + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { + params(amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount), currency: T.nilable(String)).void + } + def initialize(amount: nil, currency: nil); end + end + # The FinancialAccount id to create the CurrencyConversion on. + sig { returns(String) } + def financial_account; end + sig { params(_financial_account: String).returns(String) } + def financial_account=(_financial_account); end + # From amount object indicating the from currency or optional amount. + sig { returns(V2::MoneyManagement::CurrencyConversionCreateParams::From) } + def from; end + sig { + params(_from: V2::MoneyManagement::CurrencyConversionCreateParams::From).returns(V2::MoneyManagement::CurrencyConversionCreateParams::From) + } + def from=(_from); end + # To amount object indicating the to currency or optional amount. + sig { returns(V2::MoneyManagement::CurrencyConversionCreateParams::To) } + def to; end + sig { + params(_to: V2::MoneyManagement::CurrencyConversionCreateParams::To).returns(V2::MoneyManagement::CurrencyConversionCreateParams::To) + } + def to=(_to); end + sig { + params(financial_account: String, from: V2::MoneyManagement::CurrencyConversionCreateParams::From, to: V2::MoneyManagement::CurrencyConversionCreateParams::To).void + } + def initialize(financial_account: nil, from: nil, to: nil); end + end + end + end +end +# typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionRetrieveParams < ::Stripe::RequestParams; end + end + end +end +# typed: true module Stripe module V2 module MoneyManagement @@ -229663,6 +233820,20 @@ module Stripe module V2 module MoneyManagement class InboundTransferCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class From < ::Stripe::RequestParams # An optional currency field used to specify which currency is debited from the Payment Method. # Since many Payment Methods support only one currency, this field is optional. @@ -229693,9 +233864,11 @@ module Stripe def initialize(currency: nil, financial_account: nil); end end # The amount, in specified currency, by which the FinancialAccount balance will increase due to the InboundTransfer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::InboundTransferCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::InboundTransferCreateParams::Amount).returns(V2::MoneyManagement::InboundTransferCreateParams::Amount) + } def amount=(_amount); end # An optional, freeform description field intended to store metadata. sig { returns(T.nilable(String)) } @@ -229717,7 +233890,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, description: T.nilable(String), from: V2::MoneyManagement::InboundTransferCreateParams::From, to: V2::MoneyManagement::InboundTransferCreateParams::To).void + params(amount: V2::MoneyManagement::InboundTransferCreateParams::Amount, description: T.nilable(String), from: V2::MoneyManagement::InboundTransferCreateParams::From, to: V2::MoneyManagement::InboundTransferCreateParams::To).void } def initialize(amount: nil, description: nil, from: nil, to: nil); end end @@ -229804,6 +233977,20 @@ module Stripe module V2 module MoneyManagement class OutboundPaymentCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -229865,9 +234052,11 @@ module Stripe def initialize(currency: nil, payout_method: nil, recipient: nil); end end # The "presentment amount" to be sent to the recipient. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::OutboundPaymentCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::OutboundPaymentCreateParams::Amount).returns(V2::MoneyManagement::OutboundPaymentCreateParams::Amount) + } def amount=(_amount); end # Delivery options to be used to send the OutboundPayment. sig { @@ -229924,7 +234113,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundPaymentCreateParams::From, metadata: T.nilable(T::Hash[String, String]), outbound_payment_quote: T.nilable(String), recipient_notification: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::RecipientNotification), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundPaymentCreateParams::To).void + params(amount: V2::MoneyManagement::OutboundPaymentCreateParams::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundPaymentCreateParams::From, metadata: T.nilable(T::Hash[String, String]), outbound_payment_quote: T.nilable(String), recipient_notification: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::RecipientNotification), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundPaymentCreateParams::To).void } def initialize( amount: nil, @@ -229962,6 +234151,20 @@ module Stripe module V2 module MoneyManagement class OutboundPaymentQuoteCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -230013,9 +234216,11 @@ module Stripe def initialize(currency: nil, payout_method: nil, recipient: nil); end end # The "presentment amount" to be sent to the recipient. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount).returns(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount) + } def amount=(_amount); end # Method to be used to send the OutboundPayment. sig { @@ -230041,7 +234246,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::DeliveryOptions), from: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::From, to: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::To).void + params(amount: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::DeliveryOptions), from: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::From, to: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::To).void } def initialize(amount: nil, delivery_options: nil, from: nil, to: nil); end end @@ -230429,6 +234634,20 @@ module Stripe module V2 module MoneyManagement class OutboundTransferCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -230473,9 +234692,11 @@ module Stripe def initialize(currency: nil, payout_method: nil); end end # The "presentment amount" for the OutboundPayment. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::OutboundTransferCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::OutboundTransferCreateParams::Amount).returns(V2::MoneyManagement::OutboundTransferCreateParams::Amount) + } def amount=(_amount); end # Delivery options to be used to send the OutboundTransfer. sig { @@ -230518,7 +234739,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundTransferCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundTransferCreateParams::From, metadata: T.nilable(T::Hash[String, String]), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundTransferCreateParams::To).void + params(amount: V2::MoneyManagement::OutboundTransferCreateParams::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundTransferCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundTransferCreateParams::From, metadata: T.nilable(T::Hash[String, String]), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundTransferCreateParams::To).void } def initialize( amount: nil, @@ -230913,129 +235134,19 @@ module Stripe module V2 module Payments class OffSessionPaymentCreateParams < ::Stripe::RequestParams - class AmountDetails < ::Stripe::RequestParams - class LineItem < ::Stripe::RequestParams - class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - sig { params(_total_tax_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def total_tax_amount=(_total_tax_amount); end - sig { params(total_tax_amount: T.nilable(Integer)).void } - def initialize(total_tax_amount: nil); end - end - # The amount an item was discounted for. Positive integer. - sig { returns(T.nilable(Integer)) } - def discount_amount; end - sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def discount_amount=(_discount_amount); end - # Unique identifier of the product. At most 12 characters long. - sig { returns(T.nilable(String)) } - def product_code; end - sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } - def product_code=(_product_code); end - # Name of the product. At most 100 characters long. - sig { returns(String) } - def product_name; end - sig { params(_product_name: String).returns(String) } - def product_name=(_product_name); end - # Number of items of the product. Positive integer. - sig { returns(Integer) } - def quantity; end - sig { params(_quantity: Integer).returns(Integer) } - def quantity=(_quantity); end - # Contains information about the tax on the item. - sig { - returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax)) - } - def tax; end - sig { - params(_tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax)) - } - def tax=(_tax); end - # Cost of the product. Non-negative integer. - sig { returns(Integer) } - def unit_cost; end - sig { params(_unit_cost: Integer).returns(Integer) } - def unit_cost=(_unit_cost); end - sig { - params(discount_amount: T.nilable(Integer), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax), unit_cost: Integer).void - } - def initialize( - discount_amount: nil, - product_code: nil, - product_name: nil, - quantity: nil, - tax: nil, - unit_cost: nil - ); end - end - class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. - sig { returns(T.nilable(Integer)) } - def amount; end - sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def amount=(_amount); end - # The postal code that represents the shipping source. - sig { returns(T.nilable(String)) } - def from_postal_code; end - sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. - sig { returns(T.nilable(String)) } - def to_postal_code; end - sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def to_postal_code=(_to_postal_code); end - sig { - params(amount: T.nilable(Integer), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void - } - def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end - end - class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - sig { params(_total_tax_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def total_tax_amount=(_total_tax_amount); end - sig { params(total_tax_amount: T.nilable(Integer)).void } - def initialize(total_tax_amount: nil); end - end - # The amount the total transaction was discounted for. + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). sig { returns(T.nilable(Integer)) } - def discount_amount; end - sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def discount_amount=(_discount_amount); end - # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - sig { - returns(T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem]) - } - def line_items; end - sig { - params(_line_items: T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem]).returns(T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem]) - } - def line_items=(_line_items); end - # Contains information about the shipping portion of the amount. - sig { - returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping)) - } - def shipping; end - sig { - params(_shipping: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping)) - } - def shipping=(_shipping); end - # Contains information about the tax portion of the amount. - sig { - returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)) - } - def tax; end - sig { - params(_tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)) - } - def tax=(_tax); end - sig { - params(discount_amount: T.nilable(Integer), line_items: T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem], shipping: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping), tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)).void - } - def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end end class Capture < ::Stripe::RequestParams # The method to use to capture the payment. @@ -231091,11 +235202,11 @@ module Stripe sig { params(_retry_policy: T.nilable(String)).returns(T.nilable(String)) } def retry_policy=(_retry_policy); end # Indicates the strategy for how you want Stripe to retry the payment. - sig { returns(String) } + sig { returns(T.nilable(String)) } def retry_strategy; end - sig { params(_retry_strategy: String).returns(String) } + sig { params(_retry_strategy: T.nilable(String)).returns(T.nilable(String)) } def retry_strategy=(_retry_strategy); end - sig { params(retry_policy: T.nilable(String), retry_strategy: String).void } + sig { params(retry_policy: T.nilable(String), retry_strategy: T.nilable(String)).void } def initialize(retry_policy: nil, retry_strategy: nil); end end class TransferData < ::Stripe::RequestParams @@ -231103,7 +235214,7 @@ module Stripe # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } @@ -231120,17 +235231,12 @@ module Stripe def initialize(amount: nil, destination: nil); end end # The “presentment amount” to be collected from the customer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::Payments::OffSessionPaymentCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } - def amount=(_amount); end - # Provides industry-specific information about the amount. - sig { returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails)) } - def amount_details; end sig { - params(_amount_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails)) + params(_amount: V2::Payments::OffSessionPaymentCreateParams::Amount).returns(V2::Payments::OffSessionPaymentCreateParams::Amount) } - def amount_details=(_amount_details); end + def amount=(_amount); end # The frequency of the underlying payment. sig { returns(String) } def cadence; end @@ -231143,20 +235249,15 @@ module Stripe params(_capture: T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture)) } def capture=(_capture); end - # Whether the OffSessionPayment should be captured automatically or manually. - sig { returns(T.nilable(String)) } - def capture_method; end - sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } - def capture_method=(_capture_method); end # ID of the Customer to which this OffSessionPayment belongs. sig { returns(String) } def customer; end sig { params(_customer: String).returns(String) } def customer=(_customer); end - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). sig { returns(T::Hash[String, String]) } def metadata; end sig { params(_metadata: T::Hash[String, String]).returns(T::Hash[String, String]) } @@ -231216,7 +235317,7 @@ module Stripe def test_clock; end sig { params(_test_clock: T.nilable(String)).returns(T.nilable(String)) } def test_clock=(_test_clock); end - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). sig { returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::TransferData)) } def transfer_data; end sig { @@ -231224,14 +235325,12 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount: ::Stripe::V2::Amount, amount_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails), cadence: String, capture: T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture), capture_method: T.nilable(String), customer: String, metadata: T::Hash[String, String], on_behalf_of: T.nilable(String), payment_method: String, payment_method_options: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentMethodOptions), payments_orchestration: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentsOrchestration), retry_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::RetryDetails), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), test_clock: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCreateParams::TransferData)).void + params(amount: V2::Payments::OffSessionPaymentCreateParams::Amount, cadence: String, capture: T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture), customer: String, metadata: T::Hash[String, String], on_behalf_of: T.nilable(String), payment_method: String, payment_method_options: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentMethodOptions), payments_orchestration: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentsOrchestration), retry_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::RetryDetails), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), test_clock: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCreateParams::TransferData)).void } def initialize( amount: nil, - amount_details: nil, cadence: nil, capture: nil, - capture_method: nil, customer: nil, metadata: nil, on_behalf_of: nil, @@ -231274,31 +235373,25 @@ module Stripe # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end - # The account (if any) that the payment is attributed to for tax reporting, and - # where funds from the payment are transferred to after payment success. - sig { returns(String) } - def destination; end - sig { params(_destination: String).returns(String) } - def destination=(_destination); end - sig { params(amount: T.nilable(Integer), destination: String).void } - def initialize(amount: nil, destination: nil); end + sig { params(amount: T.nilable(Integer)).void } + def initialize(amount: nil); end end # The amount to capture. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def amount_to_capture; end - sig { params(_amount_to_capture: Integer).returns(Integer) } + sig { params(_amount_to_capture: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_to_capture=(_amount_to_capture); end - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). sig { returns(T::Hash[String, String]) } def metadata; end sig { params(_metadata: T::Hash[String, String]).returns(T::Hash[String, String]) } @@ -231318,7 +235411,7 @@ module Stripe def statement_descriptor_suffix; end sig { params(_statement_descriptor_suffix: T.nilable(String)).returns(T.nilable(String)) } def statement_descriptor_suffix=(_statement_descriptor_suffix); end - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). sig { returns(T.nilable(V2::Payments::OffSessionPaymentCaptureParams::TransferData)) } def transfer_data; end sig { @@ -231326,7 +235419,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount_to_capture: Integer, metadata: T::Hash[String, String], statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCaptureParams::TransferData)).void + params(amount_to_capture: T.nilable(Integer), metadata: T::Hash[String, String], statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCaptureParams::TransferData)).void } def initialize( amount_to_capture: nil, @@ -231403,10 +235496,26 @@ module Stripe module V2 module TestHelpers class FinancialAddressCreditParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # Object containing the amount value and currency to credit. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::TestHelpers::FinancialAddressCreditParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::TestHelpers::FinancialAddressCreditParams::Amount).returns(V2::TestHelpers::FinancialAddressCreditParams::Amount) + } def amount=(_amount); end # Open Enum. The network to use in simulating the funds flow. This will be the reflected in the resulting ReceivedCredit. sig { returns(String) } @@ -231419,7 +235528,7 @@ module Stripe sig { params(_statement_descriptor: T.nilable(String)).returns(T.nilable(String)) } def statement_descriptor=(_statement_descriptor); end sig { - params(amount: ::Stripe::V2::Amount, network: String, statement_descriptor: T.nilable(String)).void + params(amount: V2::TestHelpers::FinancialAddressCreditParams::Amount, network: String, statement_descriptor: T.nilable(String)).void } def initialize(amount: nil, network: nil, statement_descriptor: nil); end end diff --git a/rbi/stripe/params/invoice_create_preview_params.rbi b/rbi/stripe/params/invoice_create_preview_params.rbi index 72b1c3e06..bef824cab 100644 --- a/rbi/stripe/params/invoice_create_preview_params.rbi +++ b/rbi/stripe/params/invoice_create_preview_params.rbi @@ -934,8 +934,13 @@ module Stripe params(_trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial)).void + params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Add::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -943,7 +948,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class Remove < ::Stripe::RequestParams @@ -1088,8 +1094,13 @@ module Stripe params(_trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial)).void + params(discounts: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -1097,7 +1108,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item. @@ -1305,8 +1317,13 @@ module Stripe params(_billing_schedules_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction])).returns(T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction])) } def billing_schedules_actions=(_billing_schedules_actions); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(amendment_end: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentEnd), amendment_start: InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction])).void + params(amendment_end: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentEnd), amendment_start: InvoiceCreatePreviewParams::ScheduleDetails::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment::BillingSchedulesAction]), effective_at: T.nilable(String)).void } def initialize( amendment_end: nil, @@ -1319,7 +1336,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, trial_settings: nil, - billing_schedules_actions: nil + billing_schedules_actions: nil, + effective_at: nil ); end end class BillingMode < ::Stripe::RequestParams @@ -2054,8 +2072,13 @@ module Stripe params(_trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Trial), trial_offer: T.nilable(String)).void } def initialize( billing_thresholds: nil, @@ -2066,7 +2089,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class PauseCollection < ::Stripe::RequestParams @@ -2283,8 +2307,13 @@ module Stripe params(_trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings)).returns(T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(add_invoice_items: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Discount])), duration: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Discount])), duration: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::Phase::TrialSettings), effective_at: T.nilable(String)).void } def initialize( add_invoice_items: nil, @@ -2311,7 +2340,8 @@ module Stripe trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams @@ -2438,15 +2468,15 @@ module Stripe def proration_behavior=(_proration_behavior); end # Sets the billing schedules for the subscription schedule. sig { - returns(T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])) + returns(T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))) } def billing_schedules; end sig { - params(_billing_schedules: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])).returns(T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])) + params(_billing_schedules: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))) } def billing_schedules=(_billing_schedules); end sig { - params(amendments: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment]), billing_behavior: T.nilable(String), billing_mode: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::BillingMode), end_behavior: T.nilable(String), phases: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase]), prebilling: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Prebilling])), proration_behavior: T.nilable(String), billing_schedules: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule])).void + params(amendments: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Amendment]), billing_behavior: T.nilable(String), billing_mode: T.nilable(InvoiceCreatePreviewParams::ScheduleDetails::BillingMode), end_behavior: T.nilable(String), phases: T.nilable(T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Phase]), prebilling: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::Prebilling])), proration_behavior: T.nilable(String), billing_schedules: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::ScheduleDetails::BillingSchedule]))).void } def initialize( amendments: nil, @@ -2581,6 +2611,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -2780,8 +2824,17 @@ module Stripe params(_tax_rates: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def tax_rates=(_tax_rates); end + # The trial offer to apply to this subscription item. + sig { + returns(T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)) + } + def current_trial; end + sig { + params(_current_trial: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)).returns(T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)) + } + def current_trial=(_current_trial); end sig { - params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(billing_thresholds: T.nilable(T.any(String, InvoiceCreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), current_trial: T.nilable(InvoiceCreatePreviewParams::SubscriptionDetails::Item::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -2794,7 +2847,8 @@ module Stripe price: nil, price_data: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ); end end class Prebilling < ::Stripe::RequestParams diff --git a/rbi/stripe/params/quote_create_params.rbi b/rbi/stripe/params/quote_create_params.rbi index 17a6ed48a..1a7db5f3c 100644 --- a/rbi/stripe/params/quote_create_params.rbi +++ b/rbi/stripe/params/quote_create_params.rbi @@ -321,8 +321,13 @@ module Stripe params(_trial: T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial)).returns(T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::AddItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -330,7 +335,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class RemoveDiscount < ::Stripe::RequestParams @@ -508,8 +514,13 @@ module Stripe params(_trial: T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial)).returns(T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteCreateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteCreateParams::Line::Action::SetItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -517,7 +528,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details for the `add_discount` type. @@ -860,8 +872,13 @@ module Stripe params(_trial_settings: T.nilable(QuoteCreateParams::Line::TrialSettings)).returns(T.nilable(QuoteCreateParams::Line::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(actions: T.nilable(T::Array[QuoteCreateParams::Line::Action]), applies_to: T.nilable(QuoteCreateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteCreateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteCreateParams::Line::EndsAt), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteCreateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteCreateParams::Line::StartsAt), trial_settings: T.nilable(QuoteCreateParams::Line::TrialSettings)).void + params(actions: T.nilable(T::Array[QuoteCreateParams::Line::Action]), applies_to: T.nilable(QuoteCreateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteCreateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteCreateParams::Line::EndsAt), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteCreateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteCreateParams::Line::StartsAt), trial_settings: T.nilable(QuoteCreateParams::Line::TrialSettings), effective_at: T.nilable(String)).void } def initialize( actions: nil, @@ -873,7 +890,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, starts_at: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class LineItem < ::Stripe::RequestParams @@ -1375,12 +1393,10 @@ module Stripe } def billing_mode=(_billing_mode); end # Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. - sig { - returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]))) - } + sig { returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])) } def billing_schedules; end sig { - params(_billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]))) + params(_billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])).returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])) } def billing_schedules=(_billing_schedules); end # 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 Stripe surfaces and certain local payment methods UIs. @@ -1443,7 +1459,7 @@ module Stripe } def trial_period_days=(_trial_period_days); end sig { - params(bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionData::BillOnAcceptance), billing_behavior: T.nilable(String), billing_cycle_anchor: T.nilable(String), billing_mode: T.nilable(QuoteCreateParams::SubscriptionData::BillingMode), billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule])), description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), end_behavior: T.nilable(String), from_subscription: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), phase_effective_at: T.nilable(String), prebilling: T.nilable(T.any(String, QuoteCreateParams::SubscriptionData::Prebilling)), proration_behavior: T.nilable(String), trial_period_days: T.nilable(T.any(String, Integer))).void + params(bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionData::BillOnAcceptance), billing_behavior: T.nilable(String), billing_cycle_anchor: T.nilable(String), billing_mode: T.nilable(QuoteCreateParams::SubscriptionData::BillingMode), billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionData::BillingSchedule]), description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), end_behavior: T.nilable(String), from_subscription: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), phase_effective_at: T.nilable(String), prebilling: T.nilable(T.any(String, QuoteCreateParams::SubscriptionData::Prebilling)), proration_behavior: T.nilable(String), trial_period_days: T.nilable(T.any(String, Integer))).void } def initialize( bill_on_acceptance: nil, @@ -1779,11 +1795,11 @@ module Stripe def billing_behavior=(_billing_behavior); end # Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted. sig { - returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]))) + returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])) } def billing_schedules; end sig { - params(_billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]))) + params(_billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])).returns(T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])) } def billing_schedules=(_billing_schedules); end # The customer the Subscription Data override applies to. This is only relevant when `applies_to.type=new_reference`. @@ -1818,7 +1834,7 @@ module Stripe sig { params(_proration_behavior: T.nilable(String)).returns(T.nilable(String)) } def proration_behavior=(_proration_behavior); end sig { - params(applies_to: QuoteCreateParams::SubscriptionDataOverride::AppliesTo, bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionDataOverride::BillOnAcceptance), billing_behavior: T.nilable(String), billing_schedules: T.nilable(T.any(String, T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule])), customer: T.nilable(String), description: T.nilable(String), end_behavior: T.nilable(String), phase_effective_at: T.nilable(String), proration_behavior: T.nilable(String)).void + params(applies_to: QuoteCreateParams::SubscriptionDataOverride::AppliesTo, bill_on_acceptance: T.nilable(QuoteCreateParams::SubscriptionDataOverride::BillOnAcceptance), billing_behavior: T.nilable(String), billing_schedules: T.nilable(T::Array[QuoteCreateParams::SubscriptionDataOverride::BillingSchedule]), customer: T.nilable(String), description: T.nilable(String), end_behavior: T.nilable(String), phase_effective_at: T.nilable(String), proration_behavior: T.nilable(String)).void } def initialize( applies_to: nil, diff --git a/rbi/stripe/params/quote_update_params.rbi b/rbi/stripe/params/quote_update_params.rbi index fe95895a7..eed030bc9 100644 --- a/rbi/stripe/params/quote_update_params.rbi +++ b/rbi/stripe/params/quote_update_params.rbi @@ -307,8 +307,13 @@ module Stripe params(_trial: T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial)).returns(T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::AddItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::AddItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -316,7 +321,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class RemoveDiscount < ::Stripe::RequestParams @@ -494,8 +500,13 @@ module Stripe params(_trial: T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial)).returns(T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial)).void + params(discounts: T.nilable(T::Array[QuoteUpdateParams::Line::Action::SetItem::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(QuoteUpdateParams::Line::Action::SetItem::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -503,7 +514,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details for the `add_discount` type. @@ -856,8 +868,13 @@ module Stripe params(_trial_settings: T.nilable(QuoteUpdateParams::Line::TrialSettings)).returns(T.nilable(QuoteUpdateParams::Line::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(actions: T.nilable(T::Array[QuoteUpdateParams::Line::Action]), applies_to: T.nilable(QuoteUpdateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteUpdateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteUpdateParams::Line::EndsAt), id: T.nilable(String), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteUpdateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteUpdateParams::Line::StartsAt), trial_settings: T.nilable(QuoteUpdateParams::Line::TrialSettings)).void + params(actions: T.nilable(T::Array[QuoteUpdateParams::Line::Action]), applies_to: T.nilable(QuoteUpdateParams::Line::AppliesTo), billing_cycle_anchor: T.nilable(String), cancel_subscription_schedule: T.nilable(QuoteUpdateParams::Line::CancelSubscriptionSchedule), ends_at: T.nilable(QuoteUpdateParams::Line::EndsAt), id: T.nilable(String), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(QuoteUpdateParams::Line::SetPauseCollection), set_schedule_end: T.nilable(String), starts_at: T.nilable(QuoteUpdateParams::Line::StartsAt), trial_settings: T.nilable(QuoteUpdateParams::Line::TrialSettings), effective_at: T.nilable(String)).void } def initialize( actions: nil, @@ -870,7 +887,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, starts_at: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class LineItem < ::Stripe::RequestParams diff --git a/rbi/stripe/params/subscription_create_params.rbi b/rbi/stripe/params/subscription_create_params.rbi index 7368c6e32..bc4ad1f73 100644 --- a/rbi/stripe/params/subscription_create_params.rbi +++ b/rbi/stripe/params/subscription_create_params.rbi @@ -508,6 +508,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -707,8 +721,15 @@ module Stripe params(_trial: T.nilable(SubscriptionCreateParams::Item::Trial)).returns(T.nilable(SubscriptionCreateParams::Item::Trial)) } def trial=(_trial); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionCreateParams::Item::CurrentTrial)) } + def current_trial; end + sig { + params(_current_trial: T.nilable(SubscriptionCreateParams::Item::CurrentTrial)).returns(T.nilable(SubscriptionCreateParams::Item::CurrentTrial)) + } + def current_trial=(_current_trial); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionCreateParams::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionCreateParams::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionCreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionCreateParams::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionCreateParams::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionCreateParams::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionCreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionCreateParams::Item::Trial), current_trial: T.nilable(SubscriptionCreateParams::Item::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -719,7 +740,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + current_trial: nil ); end end class PaymentSettings < ::Stripe::RequestParams diff --git a/rbi/stripe/params/subscription_item_create_params.rbi b/rbi/stripe/params/subscription_item_create_params.rbi index 1a15fecbf..bb6db5a62 100644 --- a/rbi/stripe/params/subscription_item_create_params.rbi +++ b/rbi/stripe/params/subscription_item_create_params.rbi @@ -13,6 +13,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -239,8 +253,15 @@ module Stripe params(_trial: T.nilable(SubscriptionItemCreateParams::Trial)).returns(T.nilable(SubscriptionItemCreateParams::Trial)) } def trial=(_trial); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionItemCreateParams::CurrentTrial)) } + def current_trial; end + sig { + params(_current_trial: T.nilable(SubscriptionItemCreateParams::CurrentTrial)).returns(T.nilable(SubscriptionItemCreateParams::CurrentTrial)) + } + def current_trial=(_current_trial); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemCreateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemCreateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemCreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionItemCreateParams::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemCreateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemCreateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemCreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionItemCreateParams::Trial), current_trial: T.nilable(SubscriptionItemCreateParams::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -256,7 +277,8 @@ module Stripe quantity: nil, subscription: nil, tax_rates: nil, - trial: nil + trial: nil, + current_trial: nil ); end end end \ No newline at end of file diff --git a/rbi/stripe/params/subscription_item_update_params.rbi b/rbi/stripe/params/subscription_item_update_params.rbi index 708b59cbb..7f0f28e59 100644 --- a/rbi/stripe/params/subscription_item_update_params.rbi +++ b/rbi/stripe/params/subscription_item_update_params.rbi @@ -13,6 +13,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -218,8 +232,15 @@ module Stripe params(_tax_rates: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def tax_rates=(_tax_rates); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionItemUpdateParams::CurrentTrial)) } + def current_trial; end + sig { + params(_current_trial: T.nilable(SubscriptionItemUpdateParams::CurrentTrial)).returns(T.nilable(SubscriptionItemUpdateParams::CurrentTrial)) + } + def current_trial=(_current_trial); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemUpdateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemUpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemUpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionItemUpdateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionItemUpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionItemUpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), current_trial: T.nilable(SubscriptionItemUpdateParams::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -234,7 +255,8 @@ module Stripe proration_behavior: nil, proration_date: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ); end end end \ No newline at end of file diff --git a/rbi/stripe/params/subscription_schedule_amend_params.rbi b/rbi/stripe/params/subscription_schedule_amend_params.rbi index 2492fb32f..9e41a7c55 100644 --- a/rbi/stripe/params/subscription_schedule_amend_params.rbi +++ b/rbi/stripe/params/subscription_schedule_amend_params.rbi @@ -403,8 +403,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial)).returns(T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial)).void + params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Add::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -412,7 +417,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class Remove < ::Stripe::RequestParams @@ -552,8 +558,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial)).returns(T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial)).void + params(discounts: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Discount]), metadata: T.nilable(T::Hash[String, String]), price: String, quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String]), trial: T.nilable(SubscriptionScheduleAmendParams::Amendment::ItemAction::Set::Trial), trial_offer: T.nilable(String)).void } def initialize( discounts: nil, @@ -561,7 +572,8 @@ module Stripe price: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item. @@ -755,8 +767,13 @@ module Stripe params(_billing_schedules_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction])).returns(T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction])) } def billing_schedules_actions=(_billing_schedules_actions); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(amendment_end: T.nilable(SubscriptionScheduleAmendParams::Amendment::AmendmentEnd), amendment_start: SubscriptionScheduleAmendParams::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(SubscriptionScheduleAmendParams::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(SubscriptionScheduleAmendParams::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction])).void + params(amendment_end: T.nilable(SubscriptionScheduleAmendParams::Amendment::AmendmentEnd), amendment_start: SubscriptionScheduleAmendParams::Amendment::AmendmentStart, billing_cycle_anchor: T.nilable(String), discount_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::DiscountAction]), item_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::ItemAction]), metadata_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::MetadataAction]), proration_behavior: T.nilable(String), set_pause_collection: T.nilable(SubscriptionScheduleAmendParams::Amendment::SetPauseCollection), set_schedule_end: T.nilable(String), trial_settings: T.nilable(SubscriptionScheduleAmendParams::Amendment::TrialSettings), billing_schedules_actions: T.nilable(T::Array[SubscriptionScheduleAmendParams::Amendment::BillingSchedulesAction]), effective_at: T.nilable(String)).void } def initialize( amendment_end: nil, @@ -769,7 +786,8 @@ module Stripe set_pause_collection: nil, set_schedule_end: nil, trial_settings: nil, - billing_schedules_actions: nil + billing_schedules_actions: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams diff --git a/rbi/stripe/params/subscription_schedule_create_params.rbi b/rbi/stripe/params/subscription_schedule_create_params.rbi index 1a0a4e497..0dab408c1 100644 --- a/rbi/stripe/params/subscription_schedule_create_params.rbi +++ b/rbi/stripe/params/subscription_schedule_create_params.rbi @@ -906,8 +906,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial)).returns(T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleCreateParams::Phase::Item::Trial), trial_offer: T.nilable(String)).void } def initialize( billing_thresholds: nil, @@ -918,7 +923,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class PauseCollection < ::Stripe::RequestParams @@ -1116,8 +1122,13 @@ module Stripe params(_trial_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings)).returns(T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleCreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleCreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleCreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleCreateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleCreateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), transfer_data: T.nilable(SubscriptionScheduleCreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(Integer), trial_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleCreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleCreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleCreateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleCreateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleCreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleCreateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleCreateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), transfer_data: T.nilable(SubscriptionScheduleCreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(Integer), trial_settings: T.nilable(SubscriptionScheduleCreateParams::Phase::TrialSettings), effective_at: T.nilable(String)).void } def initialize( add_invoice_items: nil, @@ -1143,7 +1154,8 @@ module Stripe trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams diff --git a/rbi/stripe/params/subscription_schedule_update_params.rbi b/rbi/stripe/params/subscription_schedule_update_params.rbi index 78285d3de..c0080342e 100644 --- a/rbi/stripe/params/subscription_schedule_update_params.rbi +++ b/rbi/stripe/params/subscription_schedule_update_params.rbi @@ -879,8 +879,13 @@ module Stripe params(_trial: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial)).returns(T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial)) } def trial=(_trial); end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end + sig { params(_trial_offer: T.nilable(String)).returns(T.nilable(String)) } + def trial_offer=(_trial_offer); end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial)).void + params(billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), trial: T.nilable(SubscriptionScheduleUpdateParams::Phase::Item::Trial), trial_offer: T.nilable(String)).void } def initialize( billing_thresholds: nil, @@ -891,7 +896,8 @@ module Stripe price_data: nil, quantity: nil, tax_rates: nil, - trial: nil + trial: nil, + trial_offer: nil ); end end class PauseCollection < ::Stripe::RequestParams @@ -1100,8 +1106,13 @@ module Stripe params(_trial_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings)).returns(T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings)) } def trial_settings=(_trial_settings); end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end + sig { params(_effective_at: T.nilable(String)).returns(T.nilable(String)) } + def effective_at=(_effective_at); end sig { - params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleUpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleUpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleUpdateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleUpdateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(SubscriptionScheduleUpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, SubscriptionScheduleUpdateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[SubscriptionScheduleUpdateParams::Phase::Discount])), duration: T.nilable(SubscriptionScheduleUpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::InvoiceSettings), items: T::Array[SubscriptionScheduleUpdateParams::Phase::Item], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pause_collection: T.nilable(SubscriptionScheduleUpdateParams::Phase::PauseCollection), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(SubscriptionScheduleUpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_continuation: T.nilable(String), trial_end: T.nilable(T.any(Integer, String)), trial_settings: T.nilable(SubscriptionScheduleUpdateParams::Phase::TrialSettings), effective_at: T.nilable(String)).void } def initialize( add_invoice_items: nil, @@ -1128,7 +1139,8 @@ module Stripe trial: nil, trial_continuation: nil, trial_end: nil, - trial_settings: nil + trial_settings: nil, + effective_at: nil ); end end class Prebilling < ::Stripe::RequestParams diff --git a/rbi/stripe/params/subscription_update_params.rbi b/rbi/stripe/params/subscription_update_params.rbi index 7862f6083..690cd6a47 100644 --- a/rbi/stripe/params/subscription_update_params.rbi +++ b/rbi/stripe/params/subscription_update_params.rbi @@ -466,6 +466,20 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end + class CurrentTrial < ::Stripe::RequestParams + # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`. + sig { returns(T.nilable(Integer)) } + def trial_end; end + sig { params(_trial_end: T.nilable(Integer)).returns(T.nilable(Integer)) } + def trial_end=(_trial_end); end + # The ID of the trial offer to apply to the subscription item. + sig { returns(String) } + def trial_offer; end + sig { params(_trial_offer: String).returns(String) } + def trial_offer=(_trial_offer); end + sig { params(trial_end: T.nilable(Integer), trial_offer: String).void } + def initialize(trial_end: nil, trial_offer: nil); end + end class Discount < ::Stripe::RequestParams class DiscountEnd < ::Stripe::RequestParams class Duration < ::Stripe::RequestParams @@ -657,8 +671,15 @@ module Stripe params(_tax_rates: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def tax_rates=(_tax_rates); end + # The trial offer to apply to this subscription item. + sig { returns(T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)) } + def current_trial; end sig { - params(billing_thresholds: T.nilable(T.any(String, SubscriptionUpdateParams::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[SubscriptionUpdateParams::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionUpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(_current_trial: T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)).returns(T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)) + } + def current_trial=(_current_trial); end + sig { + params(billing_thresholds: T.nilable(T.any(String, SubscriptionUpdateParams::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[SubscriptionUpdateParams::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(SubscriptionUpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String])), current_trial: T.nilable(SubscriptionUpdateParams::Item::CurrentTrial)).void } def initialize( billing_thresholds: nil, @@ -671,7 +692,8 @@ module Stripe price: nil, price_data: nil, quantity: nil, - tax_rates: nil + tax_rates: nil, + current_trial: nil ); end end class PauseCollection < ::Stripe::RequestParams diff --git a/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi b/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi index 437f239a8..bd8a7236f 100644 --- a/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi +++ b/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi @@ -111,9 +111,9 @@ module Stripe sig { params(_network: T.nilable(String)).returns(T.nilable(String)) } def network=(_network); end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end sig { params(_request_three_d_secure: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi b/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi index 86c5c218c..9476da504 100644 --- a/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi +++ b/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi @@ -111,9 +111,9 @@ module Stripe sig { params(_network: T.nilable(String)).returns(T.nilable(String)) } def network=(_network); end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end sig { params(_request_three_d_secure: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/v2/billing/service_action_create_params.rbi b/rbi/stripe/params/v2/billing/service_action_create_params.rbi index 0f88c63eb..02e0920b1 100644 --- a/rbi/stripe/params/v2/billing/service_action_create_params.rbi +++ b/rbi/stripe/params/v2/billing/service_action_create_params.rbi @@ -22,6 +22,20 @@ module Stripe sig { params(id: String, value: String).void } def initialize(id: nil, value: nil); end end + class Monetary < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -37,14 +51,16 @@ module Stripe } def custom_pricing_unit=(_custom_pricing_unit); end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)) + } def monetary; end sig { - params(_monetary: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)).returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)) } def monetary=(_monetary); end sig { - params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::CustomPricingUnit), monetary: T.nilable(::Stripe::V2::Amount)).void + params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::CustomPricingUnit), monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrant::Amount::Monetary)).void } def initialize(type: nil, custom_pricing_unit: nil, monetary: nil); end end @@ -154,6 +170,20 @@ module Stripe sig { params(id: String, value: String).void } def initialize(id: nil, value: nil); end end + class Monetary < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -169,14 +199,16 @@ module Stripe } def custom_pricing_unit=(_custom_pricing_unit); end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)) + } def monetary; end sig { - params(_monetary: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)).returns(T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)) } def monetary=(_monetary); end sig { - params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::CustomPricingUnit), monetary: T.nilable(::Stripe::V2::Amount)).void + params(type: String, custom_pricing_unit: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::CustomPricingUnit), monetary: T.nilable(V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary)).void } def initialize(type: nil, custom_pricing_unit: nil, monetary: nil); end end diff --git a/rbi/stripe/params/v2/core/account_create_params.rbi b/rbi/stripe/params/v2/core/account_create_params.rbi index f9177c6f0..10de005a4 100644 --- a/rbi/stripe/params/v2/core/account_create_params.rbi +++ b/rbi/stripe/params/v2/core/account_create_params.rbi @@ -241,7 +241,7 @@ module Stripe def ip_address; end sig { params(_ip_address: T.nilable(String)).returns(T.nilable(String)) } def ip_address=(_ip_address); end - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. sig { returns(T.nilable(String)) } def location_source; end sig { params(_location_source: T.nilable(String)).returns(T.nilable(String)) } @@ -351,7 +351,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - # 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. Uses the `location_source` field. + # 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. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Customer::Capabilities::AutomaticIndirectTax)) } @@ -1395,6 +1395,112 @@ module Stripe } def initialize(decline_on: nil); end end + class KonbiniPayments < ::Stripe::RequestParams + class Support < ::Stripe::RequestParams + class Hours < ::Stripe::RequestParams + # Support hours end time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def end_time; end + sig { params(_end_time: T.nilable(String)).returns(T.nilable(String)) } + def end_time=(_end_time); end + # Support hours start time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def start_time; end + sig { params(_start_time: T.nilable(String)).returns(T.nilable(String)) } + def start_time=(_start_time); end + sig { params(end_time: T.nilable(String), start_time: T.nilable(String)).void } + def initialize(end_time: nil, start_time: nil); end + end + # Support email address for Konbini payments. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # Support hours for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours; end + sig { + params(_hours: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours=(_hours); end + # Support phone number for Konbini payments. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(email: T.nilable(String), hours: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support::Hours), phone: T.nilable(String)).void + } + def initialize(email: nil, hours: nil, phone: nil); end + end + # Support for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support; end + sig { + params(_support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support=(_support); end + sig { + params(support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments::Support)).void + } + def initialize(support: nil); end + end + class ScriptStatementDescriptor < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + class Kanji < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana=(_kana); end + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana), kanji: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end class StatementDescriptor < ::Stripe::RequestParams # 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. sig { returns(T.nilable(String)) } @@ -1524,11 +1630,29 @@ module Stripe params(_card_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments)) } def card_payments=(_card_payments); end + # Settings specific to Konbini payments on the account. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments; end + sig { + params(_konbini_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments=(_konbini_payments); end # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide. sig { returns(T.nilable(String)) } def mcc; end sig { params(_mcc: T.nilable(String)).returns(T.nilable(String)) } def mcc=(_mcc); end + # Settings for the default text that appears on statements for language variations. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor; end + sig { + params(_script_statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor=(_script_statement_descriptor); end # Statement descriptor. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::StatementDescriptor)) @@ -1548,14 +1672,16 @@ module Stripe } def support=(_support); end sig { - params(bacs_debit_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments), mcc: T.nilable(String), statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Support)).void + params(bacs_debit_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::CardPayments), konbini_payments: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::KonbiniPayments), mcc: T.nilable(String), script_statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::ScriptStatementDescriptor), statement_descriptor: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountCreateParams::Configuration::Merchant::Support)).void } def initialize( bacs_debit_payments: nil, branding: nil, capabilities: nil, card_payments: nil, + konbini_payments: nil, mcc: nil, + script_statement_descriptor: nil, statement_descriptor: nil, support: nil ); end @@ -1751,6 +1877,15 @@ module Stripe def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams + class Eur < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class Gbp < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -1778,6 +1913,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + # Can hold storage-type funds on Stripe in EUR. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur; end + sig { + params(_eur: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur=(_eur); end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -1806,9 +1950,9 @@ module Stripe } def usdc=(_usdc); end sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + params(eur: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur), gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void } - def initialize(gbp: nil, usd: nil, usdc: nil); end + def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -3212,11 +3356,27 @@ module Stripe ); end end class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } def amount; end sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) } def amount=(_amount); end # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. @@ -3225,7 +3385,7 @@ module Stripe sig { params(_fiscal_year_end: T.nilable(String)).returns(T.nilable(String)) } def fiscal_year_end=(_fiscal_year_end); end sig { - params(amount: T.nilable(::Stripe::V2::Amount), fiscal_year_end: T.nilable(String)).void + params(amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount), fiscal_year_end: T.nilable(String)).void } def initialize(amount: nil, fiscal_year_end: nil); end end @@ -3518,14 +3678,32 @@ module Stripe def initialize(registrar: nil, type: nil, value: nil); end end class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) + } def amount; end sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) } def amount=(_amount); end - sig { params(amount: T.nilable(::Stripe::V2::Amount)).void } + sig { + params(amount: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).void + } def initialize(amount: nil); end end class ScriptAddresses < ::Stripe::RequestParams @@ -4530,6 +4708,11 @@ module Stripe individual: nil ); end end + # The account token generated by the account token api. + sig { returns(T.nilable(String)) } + def account_token; end + sig { params(_account_token: T.nilable(String)).returns(T.nilable(String)) } + def account_token=(_account_token); end # An Account Configuration which allows the Account to take on a key persona across Stripe products. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration)) } def configuration; end @@ -4579,9 +4762,10 @@ module Stripe } def metadata=(_metadata); end sig { - params(configuration: T.nilable(V2::Core::AccountCreateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountCreateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountCreateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void + params(account_token: T.nilable(String), configuration: T.nilable(V2::Core::AccountCreateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountCreateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountCreateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void } def initialize( + account_token: nil, configuration: nil, contact_email: nil, dashboard: nil, diff --git a/rbi/stripe/params/v2/core/account_token_create_params.rbi b/rbi/stripe/params/v2/core/account_token_create_params.rbi new file mode 100644 index 000000000..9725913f2 --- /dev/null +++ b/rbi/stripe/params/v2/core/account_token_create_params.rbi @@ -0,0 +1,2004 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + class AccountTokenCreateParams < ::Stripe::RequestParams + class Identity < ::Stripe::RequestParams + class Attestations < ::Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams + # A boolean indicating if the directors information has been attested. + sig { returns(T.nilable(T::Boolean)) } + def attested; end + sig { params(_attested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def attested=(_attested); end + sig { params(attested: T.nilable(T::Boolean)).void } + def initialize(attested: nil); end + end + class OwnershipDeclaration < ::Stripe::RequestParams + # A boolean indicating if the beneficial owner information has been attested. + sig { returns(T.nilable(T::Boolean)) } + def attested; end + sig { params(_attested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def attested=(_attested); end + sig { params(attested: T.nilable(T::Boolean)).void } + def initialize(attested: nil); end + end + class PersonsProvided < ::Stripe::RequestParams + # Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + sig { returns(T.nilable(T::Boolean)) } + def directors; end + sig { params(_directors: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def directors=(_directors); end + # Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + sig { returns(T.nilable(T::Boolean)) } + def executives; end + sig { params(_executives: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def executives=(_executives); end + # Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + sig { returns(T.nilable(T::Boolean)) } + def owners; end + sig { params(_owners: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def owners=(_owners); end + # Reason for why the company is exempt from providing ownership information. + sig { returns(T.nilable(String)) } + def ownership_exemption_reason; end + sig { + params(_ownership_exemption_reason: T.nilable(String)).returns(T.nilable(String)) + } + def ownership_exemption_reason=(_ownership_exemption_reason); end + sig { + params(directors: T.nilable(T::Boolean), executives: T.nilable(T::Boolean), owners: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(String)).void + } + def initialize( + directors: nil, + executives: nil, + owners: nil, + ownership_exemption_reason: nil + ); end + end + class RepresentativeDeclaration < ::Stripe::RequestParams + # A boolean indicating if the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(T::Boolean)) } + def attested; end + sig { params(_attested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def attested=(_attested); end + sig { params(attested: T.nilable(T::Boolean)).void } + def initialize(attested: nil); end + end + class TermsOfService < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class CardCreator < ::Stripe::RequestParams + class Commercial < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Celtic < ::Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class ChargeCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)) + } + def platform; end + sig { + params(_platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)) + } + def platform=(_platform); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::BankTerms), platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard::Platform)).void + } + def initialize(bank_terms: nil, platform: nil); end + end + class SpendCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures)) + } + def financing_disclosures; end + sig { + params(_financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures)) + } + def financing_disclosures=(_financing_disclosures); end + # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)) + } + def platform; end + sig { + params(_platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)) + } + def platform=(_platform); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::BankTerms), financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::FinancingDisclosures), platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard::Platform)).void + } + def initialize( + bank_terms: nil, + financing_disclosures: nil, + platform: nil + ); end + end + # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay)) + } + def apple_pay; end + sig { + params(_apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay)) + } + def apple_pay=(_apple_pay); end + # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard)) + } + def charge_card; end + sig { + params(_charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard)) + } + def charge_card=(_charge_card); end + # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)) + } + def spend_card; end + sig { + params(_spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)) + } + def spend_card=(_spend_card); end + sig { + params(apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ApplePay), charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::ChargeCard), spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic::SpendCard)).void + } + def initialize(apple_pay: nil, charge_card: nil, spend_card: nil); end + end + class CrossRiverBank < ::Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class ChargeCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Platform < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures)) + } + def financing_disclosures; end + sig { + params(_financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures)) + } + def financing_disclosures=(_financing_disclosures); end + # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)) + } + def platform; end + sig { + params(_platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)) + } + def platform=(_platform); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::BankTerms), financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::FinancingDisclosures), platform: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard::Platform)).void + } + def initialize( + bank_terms: nil, + financing_disclosures: nil, + platform: nil + ); end + end + class SpendCard < ::Stripe::RequestParams + class BankTerms < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class FinancingDisclosures < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms)) + } + def bank_terms; end + sig { + params(_bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms)) + } + def bank_terms=(_bank_terms); end + # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)) + } + def financing_disclosures; end + sig { + params(_financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)) + } + def financing_disclosures=(_financing_disclosures); end + sig { + params(bank_terms: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::BankTerms), financing_disclosures: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard::FinancingDisclosures)).void + } + def initialize(bank_terms: nil, financing_disclosures: nil); end + end + # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay)) + } + def apple_pay; end + sig { + params(_apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay)) + } + def apple_pay=(_apple_pay); end + # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard)) + } + def charge_card; end + sig { + params(_charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard)) + } + def charge_card=(_charge_card); end + # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)) + } + def spend_card; end + sig { + params(_spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)) + } + def spend_card=(_spend_card); end + sig { + params(apple_pay: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ApplePay), charge_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::ChargeCard), spend_card: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank::SpendCard)).void + } + def initialize(apple_pay: nil, charge_card: nil, spend_card: nil); end + end + # Terms of service acceptances for Stripe commercial card issuing. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder)) + } + def account_holder; end + sig { + params(_account_holder: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder)) + } + def account_holder=(_account_holder); end + # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic)) + } + def celtic; end + sig { + params(_celtic: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic)) + } + def celtic=(_celtic); end + # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)) + } + def cross_river_bank; end + sig { + params(_cross_river_bank: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)) + } + def cross_river_bank=(_cross_river_bank); end + sig { + params(account_holder: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::AccountHolder), celtic: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::Celtic), cross_river_bank: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial::CrossRiverBank)).void + } + def initialize(account_holder: nil, celtic: nil, cross_river_bank: nil); end + end + # Terms of service acceptances to create cards for commercial issuing use cases. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)) + } + def commercial; end + sig { + params(_commercial: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)) + } + def commercial=(_commercial); end + sig { + params(commercial: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator::Commercial)).void + } + def initialize(commercial: nil); end + end + class CryptoStorer < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + class Storer < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account)) + } + def account; end + sig { + params(_account: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account)) + } + def account=(_account); end + # Details on the Account's acceptance of Issuing-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator)) + } + def card_creator; end + sig { + params(_card_creator: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator)) + } + def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end + # Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)) + } + def storer; end + sig { + params(_storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)) + } + def storer=(_storer); end + sig { + params(account: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService::Storer)).void + } + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end + end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration)) + } + def directorship_declaration; end + sig { + params(_directorship_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration)) + } + def directorship_declaration=(_directorship_declaration); end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration)) + } + def ownership_declaration; end + sig { + params(_ownership_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration)) + } + def ownership_declaration=(_ownership_declaration); end + # Attestation that all Persons with a specific Relationship value have been provided. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided)) + } + def persons_provided; end + sig { + params(_persons_provided: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided)) + } + def persons_provided=(_persons_provided); end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end + # Attestations of accepted terms of service agreements. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)) + } + def terms_of_service; end + sig { + params(_terms_of_service: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)) + } + def terms_of_service=(_terms_of_service); end + sig { + params(directorship_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::PersonsProvided), representative_declaration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::RepresentativeDeclaration), terms_of_service: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations::TermsOfService)).void + } + def initialize( + directorship_declaration: nil, + ownership_declaration: nil, + persons_provided: nil, + representative_declaration: nil, + terms_of_service: nil + ); end + end + class BusinessDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # A non-negative integer representing the amount in the smallest currency unit. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } + def amount=(_amount); end + # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. + sig { returns(T.nilable(String)) } + def fiscal_year_end; end + sig { params(_fiscal_year_end: T.nilable(String)).returns(T.nilable(String)) } + def fiscal_year_end=(_fiscal_year_end); end + sig { + params(amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue::Amount), fiscal_year_end: T.nilable(String)).void + } + def initialize(amount: nil, fiscal_year_end: nil); end + end + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyLicense < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyMinisterialDecree < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyRegistrationVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class CompanyTaxIdVerification < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack).returns(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class ProofOfAddress < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class ProofOfRegistration < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + # 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. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification)) + } + def bank_account_ownership_verification; end + sig { + params(_bank_account_ownership_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification)) + } + def bank_account_ownership_verification=(_bank_account_ownership_verification); end + # One or more documents that demonstrate proof of a company’s license to operate. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense)) + } + def company_license; end + sig { + params(_company_license: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense)) + } + def company_license=(_company_license); end + # One or more documents showing the company’s Memorandum of Association. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation)) + } + def company_memorandum_of_association; end + sig { + params(_company_memorandum_of_association: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation)) + } + def company_memorandum_of_association=(_company_memorandum_of_association); end + # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree)) + } + def company_ministerial_decree; end + sig { + params(_company_ministerial_decree: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree)) + } + def company_ministerial_decree=(_company_ministerial_decree); end + # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification)) + } + def company_registration_verification; end + sig { + params(_company_registration_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification)) + } + def company_registration_verification=(_company_registration_verification); end + # One or more documents that demonstrate proof of a company’s tax ID. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification)) + } + def company_tax_id_verification; end + sig { + params(_company_tax_id_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification)) + } + def company_tax_id_verification=(_company_tax_id_verification); end + # A document verifying the business. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification)) + } + def primary_verification; end + sig { + params(_primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification)) + } + def primary_verification=(_primary_verification); end + # One or more documents that demonstrate proof of address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) + } + def proof_of_address; end + sig { + params(_proof_of_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) + } + def proof_of_address=(_proof_of_address); end + # One or more documents showing the company’s proof of registration with the national business registry. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) + } + def proof_of_registration; end + sig { + params(_proof_of_registration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) + } + def proof_of_registration=(_proof_of_registration); end + # One or more documents that demonstrate proof of ultimate beneficial ownership. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)) + } + def proof_of_ultimate_beneficial_ownership; end + sig { + params(_proof_of_ultimate_beneficial_ownership: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)) + } + def proof_of_ultimate_beneficial_ownership=( + _proof_of_ultimate_beneficial_ownership + ); end + sig { + params(bank_account_ownership_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::BankAccountOwnershipVerification), company_license: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyLicense), company_memorandum_of_association: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMemorandumOfAssociation), company_ministerial_decree: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyMinisterialDecree), company_registration_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyRegistrationVerification), company_tax_id_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::CompanyTaxIdVerification), primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::PrimaryVerification), proof_of_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress), proof_of_registration: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration), proof_of_ultimate_beneficial_ownership: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership)).void + } + def initialize( + bank_account_ownership_verification: nil, + company_license: nil, + company_memorandum_of_association: nil, + company_ministerial_decree: nil, + company_registration_verification: nil, + company_tax_id_verification: nil, + primary_verification: nil, + proof_of_address: nil, + proof_of_registration: nil, + proof_of_ultimate_beneficial_ownership: nil + ); end + end + class IdNumber < ::Stripe::RequestParams + # The registrar of the ID number (Only valid for DE ID number types). + sig { returns(T.nilable(String)) } + def registrar; end + sig { params(_registrar: T.nilable(String)).returns(T.nilable(String)) } + def registrar=(_registrar); end + # Open Enum. The ID number type of a business entity. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + # The value of the ID number. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(registrar: T.nilable(String), type: String, value: String).void } + def initialize(registrar: nil, type: nil, value: nil); end + end + class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # A non-negative integer representing the amount in the smallest currency unit. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) + } + def amount=(_amount); end + sig { + params(amount: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).void + } + def initialize(amount: nil); end + end + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + # Kana Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana)) + } + def kana=(_kana); end + # Kanji Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # Registered name of the business. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + sig { params(registered_name: T.nilable(String)).void } + def initialize(registered_name: nil); end + end + class Kanji < ::Stripe::RequestParams + # Registered name of the business. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + sig { params(registered_name: T.nilable(String)).void } + def initialize(registered_name: nil); end + end + # Kana name. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana)) + } + def kana=(_kana); end + # Kanji name. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + # The business registration address of the business entity. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address)) + } + def address=(_address); end + # The business gross annual revenue for its preceding fiscal year. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue)) + } + def annual_revenue; end + sig { + params(_annual_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue)) + } + def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end + # A document verifying the business. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents)) + } + def documents; end + sig { + params(_documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents)) + } + def documents=(_documents); end + # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. + sig { returns(T.nilable(Integer)) } + def estimated_worker_count; end + sig { params(_estimated_worker_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def estimated_worker_count=(_estimated_worker_count); end + # The ID numbers of a business entity. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber])) + } + def id_numbers; end + sig { + params(_id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber])) + } + def id_numbers=(_id_numbers); end + # An estimate of the monthly revenue of the business. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) + } + def monthly_estimated_revenue; end + sig { + params(_monthly_estimated_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue)) + } + def monthly_estimated_revenue=(_monthly_estimated_revenue); end + # The phone number of the Business Entity. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The business legal name. + sig { returns(T.nilable(String)) } + def registered_name; end + sig { params(_registered_name: T.nilable(String)).returns(T.nilable(String)) } + def registered_name=(_registered_name); end + # The business registration address of the business entity in non latin script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses)) + } + def script_addresses; end + sig { + params(_script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses)) + } + def script_addresses=(_script_addresses); end + # The business legal name in non latin script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames)) + } + def script_names; end + sig { + params(_script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames)) + } + def script_names=(_script_names); end + # The category identifying the legal structure of the business. + sig { returns(T.nilable(String)) } + def structure; end + sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } + def structure=(_structure); end + sig { + params(address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + } + def initialize( + address: nil, + annual_revenue: nil, + compliance_screening_description: nil, + documents: nil, + estimated_worker_count: nil, + id_numbers: nil, + monthly_estimated_revenue: nil, + phone: nil, + registered_name: nil, + script_addresses: nil, + script_names: nil, + structure: nil + ); end + end + class Individual < ::Stripe::RequestParams + class AdditionalAddress < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # Purpose of additional address. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), purpose: String, state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + purpose: nil, + state: nil, + town: nil + ); end + end + class AdditionalName < ::Stripe::RequestParams + # The person's full name. + sig { returns(T.nilable(String)) } + def full_name; end + sig { params(_full_name: T.nilable(String)).returns(T.nilable(String)) } + def full_name=(_full_name); end + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The purpose or type of the additional name. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(full_name: T.nilable(String), given_name: T.nilable(String), purpose: String, surname: T.nilable(String)).void + } + def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil); end + end + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class DateOfBirth < ::Stripe::RequestParams + # The day of the birth. + sig { returns(Integer) } + def day; end + sig { params(_day: Integer).returns(Integer) } + def day=(_day); end + # The month of birth. + sig { returns(Integer) } + def month; end + sig { params(_month: Integer).returns(Integer) } + def month=(_month); end + # The year of birth. + sig { returns(Integer) } + def year; end + sig { params(_year: Integer).returns(Integer) } + def year=(_year); end + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class Passport < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack).returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class SecondaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack).returns(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class Visa < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + # One or more documents that demonstrate proof that this person is authorized to represent the company. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization)) + } + def company_authorization; end + sig { + params(_company_authorization: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization)) + } + def company_authorization=(_company_authorization); end + # One or more documents showing the person’s passport page with photo and personal data. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport)) + } + def passport; end + sig { + params(_passport: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport)) + } + def passport=(_passport); end + # An identifying document showing the person's name, either a passport or local ID card. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification)) + } + def primary_verification; end + sig { + params(_primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification)) + } + def primary_verification=(_primary_verification); end + # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification)) + } + def secondary_verification; end + sig { + params(_secondary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification)) + } + def secondary_verification=(_secondary_verification); end + # One or more documents showing the person’s visa required for living in the country where they are residing. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)) + } + def visa; end + sig { + params(_visa: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)) + } + def visa=(_visa); end + sig { + params(company_authorization: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::CompanyAuthorization), passport: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Passport), primary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::PrimaryVerification), secondary_verification: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::SecondaryVerification), visa: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents::Visa)).void + } + def initialize( + company_authorization: nil, + passport: nil, + primary_verification: nil, + secondary_verification: nil, + visa: nil + ); end + end + class IdNumber < ::Stripe::RequestParams + # The ID number type of an individual. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + # The value of the ID number. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(type: String, value: String).void } + def initialize(type: nil, value: nil); end + end + class Relationship < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(T::Boolean)) } + def director; end + sig { params(_director: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def director=(_director); end + # Whether the person has significant responsibility to control, manage, or direct the organization. + sig { returns(T.nilable(T::Boolean)) } + def executive; end + sig { params(_executive: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def executive=(_executive); end + # Whether the person is an owner of the account’s identity. + sig { returns(T.nilable(T::Boolean)) } + def owner; end + sig { params(_owner: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def owner=(_owner); end + # The percent owned by the person of the account's legal entity. + sig { returns(T.nilable(String)) } + def percent_ownership; end + sig { params(_percent_ownership: T.nilable(String)).returns(T.nilable(String)) } + def percent_ownership=(_percent_ownership); end + # The person's title (e.g., CEO, Support Engineer). + sig { returns(T.nilable(String)) } + def title; end + sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } + def title=(_title); end + sig { + params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(String), title: T.nilable(String)).void + } + def initialize( + director: nil, + executive: nil, + owner: nil, + percent_ownership: nil, + title: nil + ); end + end + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + # Kana Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana)) + } + def kana=(_kana); end + # Kanji Address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + class Kanji < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + # Persons name in kana script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana)) + } + def kana=(_kana); end + # Persons name in kanji script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kana), kanji: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + # Additional addresses associated with the individual. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress])) + } + def additional_addresses; end + sig { + params(_additional_addresses: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress])) + } + def additional_addresses=(_additional_addresses); end + # Additional names (e.g. aliases) associated with the individual. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName])) + } + def additional_names; end + sig { + params(_additional_names: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName])) + } + def additional_names=(_additional_names); end + # The individual's residential address. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address)) + } + def address; end + sig { + params(_address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address)) + } + def address=(_address); end + # The individual's date of birth. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth)) + } + def date_of_birth; end + sig { + params(_date_of_birth: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth)) + } + def date_of_birth=(_date_of_birth); end + # Documents that may be submitted to satisfy various informational requests. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)) + } + def documents; end + sig { + params(_documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)) + } + def documents=(_documents); end + # The individual's email address. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The individual's first name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The identification numbers (e.g., SSN) associated with the individual. + sig { + returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber])) + } + def id_numbers; end + sig { + params(_id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber])).returns(T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber])) + } + def id_numbers=(_id_numbers); end + # The individual's gender (International regulations require either "male" or "female"). + sig { returns(T.nilable(String)) } + def legal_gender; end + sig { params(_legal_gender: T.nilable(String)).returns(T.nilable(String)) } + def legal_gender=(_legal_gender); end + # 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. + sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, T.nilable(String)])).returns(T.nilable(T::Hash[String, T.nilable(String)])) + } + def metadata=(_metadata); end + # The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(T::Array[String])) } + def nationalities; end + sig { + params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def nationalities=(_nationalities); end + # The individual's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The individual's political exposure. + sig { returns(T.nilable(String)) } + def political_exposure; end + sig { params(_political_exposure: T.nilable(String)).returns(T.nilable(String)) } + def political_exposure=(_political_exposure); end + # The relationship that this individual has with the account's identity. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship)) + } + def relationship; end + sig { + params(_relationship: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship)) + } + def relationship=(_relationship); end + # The script addresses (e.g., non-Latin characters) associated with the individual. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses)) + } + def script_addresses; end + sig { + params(_script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses)) + } + def script_addresses=(_script_addresses); end + # The individuals primary name in non latin script. + sig { + returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames)) + } + def script_names; end + sig { + params(_script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames)) + } + def script_names=(_script_names); end + # The individual's last name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(additional_addresses: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::AdditionalName]), address: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Address), date_of_birth: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::DateOfBirth), documents: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::AccountTokenCreateParams::Identity::Individual::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::Relationship), script_addresses: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptAddresses), script_names: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual::ScriptNames), surname: T.nilable(String)).void + } + def initialize( + additional_addresses: nil, + additional_names: nil, + address: nil, + date_of_birth: nil, + documents: nil, + email: nil, + given_name: nil, + id_numbers: nil, + legal_gender: nil, + metadata: nil, + nationalities: nil, + phone: nil, + political_exposure: nil, + relationship: nil, + script_addresses: nil, + script_names: nil, + surname: nil + ); end + end + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. + sig { returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations)) } + def attestations; end + sig { + params(_attestations: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations)) + } + def attestations=(_attestations); end + # Information about the company or business. + sig { returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails)) } + def business_details; end + sig { + params(_business_details: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails)) + } + def business_details=(_business_details); end + # The entity type. + sig { returns(T.nilable(String)) } + def entity_type; end + sig { params(_entity_type: T.nilable(String)).returns(T.nilable(String)) } + def entity_type=(_entity_type); end + # Information about the person represented by the account. + sig { returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)).returns(T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)) + } + def individual=(_individual); end + sig { + params(attestations: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Attestations), business_details: T.nilable(V2::Core::AccountTokenCreateParams::Identity::BusinessDetails), entity_type: T.nilable(String), individual: T.nilable(V2::Core::AccountTokenCreateParams::Identity::Individual)).void + } + def initialize( + attestations: nil, + business_details: nil, + entity_type: nil, + individual: nil + ); end + end + # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + sig { returns(T.nilable(String)) } + def contact_email; end + sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } + def contact_email=(_contact_email); end + # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # Information about the company, individual, and business represented by the Account. + sig { returns(V2::Core::AccountTokenCreateParams::Identity) } + def identity; end + sig { + params(_identity: V2::Core::AccountTokenCreateParams::Identity).returns(V2::Core::AccountTokenCreateParams::Identity) + } + def identity=(_identity); end + sig { + params(contact_email: T.nilable(String), display_name: T.nilable(String), identity: V2::Core::AccountTokenCreateParams::Identity).void + } + def initialize(contact_email: nil, display_name: nil, identity: nil); end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/account_token_retrieve_params.rbi b/rbi/stripe/params/v2/core/account_token_retrieve_params.rbi new file mode 100644 index 000000000..421dbf836 --- /dev/null +++ b/rbi/stripe/params/v2/core/account_token_retrieve_params.rbi @@ -0,0 +1,11 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + class AccountTokenRetrieveParams < ::Stripe::RequestParams; end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/account_update_params.rbi b/rbi/stripe/params/v2/core/account_update_params.rbi index a25aa2123..a41c28760 100644 --- a/rbi/stripe/params/v2/core/account_update_params.rbi +++ b/rbi/stripe/params/v2/core/account_update_params.rbi @@ -246,7 +246,7 @@ module Stripe def ip_address; end sig { params(_ip_address: T.nilable(String)).returns(T.nilable(String)) } def ip_address=(_ip_address); end - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. sig { returns(T.nilable(String)) } def location_source; end sig { params(_location_source: T.nilable(String)).returns(T.nilable(String)) } @@ -371,7 +371,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - # 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. Uses the `location_source` field. + # 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. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Customer::Capabilities::AutomaticIndirectTax)) } @@ -1421,6 +1421,112 @@ module Stripe } def initialize(decline_on: nil); end end + class KonbiniPayments < ::Stripe::RequestParams + class Support < ::Stripe::RequestParams + class Hours < ::Stripe::RequestParams + # Support hours end time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def end_time; end + sig { params(_end_time: T.nilable(String)).returns(T.nilable(String)) } + def end_time=(_end_time); end + # Support hours start time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def start_time; end + sig { params(_start_time: T.nilable(String)).returns(T.nilable(String)) } + def start_time=(_start_time); end + sig { params(end_time: T.nilable(String), start_time: T.nilable(String)).void } + def initialize(end_time: nil, start_time: nil); end + end + # Support email address for Konbini payments. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # Support hours for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours; end + sig { + params(_hours: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours)) + } + def hours=(_hours); end + # Support phone number for Konbini payments. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(email: T.nilable(String), hours: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support::Hours), phone: T.nilable(String)).void + } + def initialize(email: nil, hours: nil, phone: nil); end + end + # Support for Konbini payments. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support; end + sig { + params(_support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)) + } + def support=(_support); end + sig { + params(support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments::Support)).void + } + def initialize(support: nil); end + end + class ScriptStatementDescriptor < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + class Kanji < ::Stripe::RequestParams + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + sig { params(_descriptor: T.nilable(String)).returns(T.nilable(String)) } + def descriptor=(_descriptor); end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + sig { params(_prefix: T.nilable(String)).returns(T.nilable(String)) } + def prefix=(_prefix); end + sig { params(descriptor: T.nilable(String), prefix: T.nilable(String)).void } + def initialize(descriptor: nil, prefix: nil); end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana)) + } + def kana=(_kana); end + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kana), kanji: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end class StatementDescriptor < ::Stripe::RequestParams # 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. sig { returns(T.nilable(String)) } @@ -1555,11 +1661,29 @@ module Stripe params(_card_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments)) } def card_payments=(_card_payments); end + # Settings specific to Konbini payments on the account. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments; end + sig { + params(_konbini_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments)) + } + def konbini_payments=(_konbini_payments); end # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. sig { returns(T.nilable(String)) } def mcc; end sig { params(_mcc: T.nilable(String)).returns(T.nilable(String)) } def mcc=(_mcc); end + # Settings for the default text that appears on statements for language variations. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor; end + sig { + params(_script_statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor)) + } + def script_statement_descriptor=(_script_statement_descriptor); end # Statement descriptor. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::StatementDescriptor)) @@ -1579,7 +1703,7 @@ module Stripe } def support=(_support); end sig { - params(applied: T.nilable(T::Boolean), bacs_debit_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments), mcc: T.nilable(String), statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Support)).void + params(applied: T.nilable(T::Boolean), bacs_debit_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::BacsDebitPayments), branding: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Branding), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities), card_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::CardPayments), konbini_payments: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::KonbiniPayments), mcc: T.nilable(String), script_statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::ScriptStatementDescriptor), statement_descriptor: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::StatementDescriptor), support: T.nilable(V2::Core::AccountUpdateParams::Configuration::Merchant::Support)).void } def initialize( applied: nil, @@ -1587,7 +1711,9 @@ module Stripe branding: nil, capabilities: nil, card_payments: nil, + konbini_payments: nil, mcc: nil, + script_statement_descriptor: nil, statement_descriptor: nil, support: nil ); end @@ -1738,7 +1864,7 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Recipient::Capabilities)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Recipient::Capabilities)) } def capabilities=(_capabilities); end - # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.corp.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). + # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). sig { returns(T.nilable(String)) } def default_outbound_destination; end sig { @@ -1795,6 +1921,15 @@ module Stripe def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams + class Eur < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class Gbp < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -1822,6 +1957,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + # Can hold storage-type funds on Stripe in EUR. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur; end + sig { + params(_eur: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur)) + } + def eur=(_eur); end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -1850,9 +1994,9 @@ module Stripe } def usdc=(_usdc); end sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + params(eur: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Eur), gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void } - def initialize(gbp: nil, usd: nil, usdc: nil); end + def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -3302,11 +3446,27 @@ module Stripe ); end end class AnnualRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) + } def amount; end sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount)) } def amount=(_amount); end # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. @@ -3315,7 +3475,7 @@ module Stripe sig { params(_fiscal_year_end: T.nilable(String)).returns(T.nilable(String)) } def fiscal_year_end=(_fiscal_year_end); end sig { - params(amount: T.nilable(::Stripe::V2::Amount), fiscal_year_end: T.nilable(String)).void + params(amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue::Amount), fiscal_year_end: T.nilable(String)).void } def initialize(amount: nil, fiscal_year_end: nil); end end @@ -3608,14 +3768,32 @@ module Stripe def initialize(registrar: nil, type: nil, value: nil); end end class MonthlyEstimatedRevenue < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) + } def amount; end sig { - params(_amount: T.nilable(::Stripe::V2::Amount)).returns(T.nilable(::Stripe::V2::Amount)) + params(_amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)) } def amount=(_amount); end - sig { params(amount: T.nilable(::Stripe::V2::Amount)).void } + sig { + params(amount: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue::Amount)).void + } def initialize(amount: nil); end end class ScriptAddresses < ::Stripe::RequestParams @@ -4620,6 +4798,11 @@ module Stripe individual: nil ); end end + # The account token generated by the account token api. + sig { returns(T.nilable(String)) } + def account_token; end + sig { params(_account_token: T.nilable(String)).returns(T.nilable(String)) } + def account_token=(_account_token); end # An Account Configuration which allows the Account to take on a key persona across Stripe products. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration)) } def configuration; end @@ -4669,9 +4852,10 @@ module Stripe } def metadata=(_metadata); end sig { - params(configuration: T.nilable(V2::Core::AccountUpdateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountUpdateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountUpdateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, T.nilable(String)])).void + params(account_token: T.nilable(String), configuration: T.nilable(V2::Core::AccountUpdateParams::Configuration), contact_email: T.nilable(String), dashboard: T.nilable(String), defaults: T.nilable(V2::Core::AccountUpdateParams::Defaults), display_name: T.nilable(String), identity: T.nilable(V2::Core::AccountUpdateParams::Identity), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, T.nilable(String)])).void } def initialize( + account_token: nil, configuration: nil, contact_email: nil, dashboard: nil, diff --git a/rbi/stripe/params/v2/core/accounts/person_create_params.rbi b/rbi/stripe/params/v2/core/accounts/person_create_params.rbi index 2b025b188..1e9ce20de 100644 --- a/rbi/stripe/params/v2/core/accounts/person_create_params.rbi +++ b/rbi/stripe/params/v2/core/accounts/person_create_params.rbi @@ -676,6 +676,11 @@ module Stripe params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def nationalities=(_nationalities); end + # The person token generated by the person token api. + sig { returns(T.nilable(String)) } + def person_token; end + sig { params(_person_token: T.nilable(String)).returns(T.nilable(String)) } + def person_token=(_person_token); end # The phone number for this person. sig { returns(T.nilable(String)) } def phone; end @@ -713,7 +718,7 @@ module Stripe sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } def surname=(_surname); end sig { - params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonCreateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonCreateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonCreateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonCreateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonCreateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptNames), surname: T.nilable(String)).void + params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonCreateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonCreateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonCreateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonCreateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonCreateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), nationalities: T.nilable(T::Array[String]), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonCreateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonCreateParams::ScriptNames), surname: T.nilable(String)).void } def initialize( additional_addresses: nil, @@ -728,6 +733,7 @@ module Stripe legal_gender: nil, metadata: nil, nationalities: nil, + person_token: nil, phone: nil, political_exposure: nil, relationship: nil, diff --git a/rbi/stripe/params/v2/core/accounts/person_token_create_params.rbi b/rbi/stripe/params/v2/core/accounts/person_token_create_params.rbi new file mode 100644 index 000000000..888bcd2f1 --- /dev/null +++ b/rbi/stripe/params/v2/core/accounts/person_token_create_params.rbi @@ -0,0 +1,742 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + module Accounts + class PersonTokenCreateParams < ::Stripe::RequestParams + class AdditionalAddress < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # Purpose of additional address. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), purpose: String, state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + purpose: nil, + state: nil, + town: nil + ); end + end + class AdditionalName < ::Stripe::RequestParams + # The person's full name. + sig { returns(T.nilable(String)) } + def full_name; end + sig { params(_full_name: T.nilable(String)).returns(T.nilable(String)) } + def full_name=(_full_name); end + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The purpose or type of the additional name. + sig { returns(String) } + def purpose; end + sig { params(_purpose: String).returns(String) } + def purpose=(_purpose); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(full_name: T.nilable(String), given_name: T.nilable(String), purpose: String, surname: T.nilable(String)).void + } + def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil); end + end + class AdditionalTermsOfService < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + # The boolean value indicating if the terms of service have been accepted. + sig { returns(T.nilable(T::Boolean)) } + def shown_and_accepted; end + sig { + params(_shown_and_accepted: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def shown_and_accepted=(_shown_and_accepted); end + sig { params(shown_and_accepted: T.nilable(T::Boolean)).void } + def initialize(shown_and_accepted: nil); end + end + # Details on the Person's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)) + } + def account; end + sig { + params(_account: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)) + } + def account=(_account); end + sig { + params(account: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService::Account)).void + } + def initialize(account: nil); end + end + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class DateOfBirth < ::Stripe::RequestParams + # The day of the birth. + sig { returns(Integer) } + def day; end + sig { params(_day: Integer).returns(Integer) } + def day=(_day); end + # The month of birth. + sig { returns(Integer) } + def month; end + sig { params(_month: Integer).returns(Integer) } + def month=(_month); end + # The year of birth. + sig { returns(Integer) } + def year; end + sig { params(_year: Integer).returns(Integer) } + def year=(_year); end + sig { params(day: Integer, month: Integer, year: Integer).void } + def initialize(day: nil, month: nil, year: nil); end + end + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class Passport < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + class PrimaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack).returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class SecondaryVerification < ::Stripe::RequestParams + class FrontBack < ::Stripe::RequestParams + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def back; end + sig { params(_back: T.nilable(String)).returns(T.nilable(String)) } + def back=(_back); end + # A [file upload](https://docs.stripe.com/api/persons/update#create_file) 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. + sig { returns(T.nilable(String)) } + def front; end + sig { params(_front: T.nilable(String)).returns(T.nilable(String)) } + def front=(_front); end + sig { params(back: T.nilable(String), front: T.nilable(String)).void } + def initialize(back: nil, front: nil); end + end + # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + sig { + returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack) + } + def front_back; end + sig { + params(_front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack).returns(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack) + } + def front_back=(_front_back); end + # The format of the verification document. Currently supports `front_back` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(front_back: V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification::FrontBack, type: String).void + } + def initialize(front_back: nil, type: nil); end + end + class Visa < ::Stripe::RequestParams + # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + sig { returns(T::Array[String]) } + def files; end + sig { params(_files: T::Array[String]).returns(T::Array[String]) } + def files=(_files); end + # The format of the document. Currently supports `files` only. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(files: T::Array[String], type: String).void } + def initialize(files: nil, type: nil); end + end + # One or more documents that demonstrate proof that this person is authorized to represent the company. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization)) + } + def company_authorization; end + sig { + params(_company_authorization: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization)) + } + def company_authorization=(_company_authorization); end + # One or more documents showing the person’s passport page with photo and personal data. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport)) + } + def passport; end + sig { + params(_passport: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport)) + } + def passport=(_passport); end + # An identifying document showing the person's name, either a passport or local ID card. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification)) + } + def primary_verification; end + sig { + params(_primary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification)) + } + def primary_verification=(_primary_verification); end + # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification)) + } + def secondary_verification; end + sig { + params(_secondary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification)) + } + def secondary_verification=(_secondary_verification); end + # One or more documents showing the person’s visa required for living in the country where they are residing. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)) } + def visa; end + sig { + params(_visa: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)) + } + def visa=(_visa); end + sig { + params(company_authorization: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::CompanyAuthorization), passport: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Passport), primary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::PrimaryVerification), secondary_verification: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::SecondaryVerification), visa: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents::Visa)).void + } + def initialize( + company_authorization: nil, + passport: nil, + primary_verification: nil, + secondary_verification: nil, + visa: nil + ); end + end + class IdNumber < ::Stripe::RequestParams + # The ID number type of an individual. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + # The value of the ID number. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(type: String, value: String).void } + def initialize(type: nil, value: nil); end + end + class Relationship < ::Stripe::RequestParams + # Whether the individual is an authorizer of the Account’s legal entity. + sig { returns(T.nilable(T::Boolean)) } + def authorizer; end + sig { params(_authorizer: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def authorizer=(_authorizer); end + # Indicates whether the person is a director of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def director; end + sig { params(_director: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def director=(_director); end + # Indicates whether the person is an executive of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def executive; end + sig { params(_executive: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def executive=(_executive); end + # Indicates whether the person is a legal guardian of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def legal_guardian; end + sig { params(_legal_guardian: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def legal_guardian=(_legal_guardian); end + # Indicates whether the person is an owner of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def owner; end + sig { params(_owner: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def owner=(_owner); end + # The percentage of ownership the person has in the associated legal entity. + sig { returns(T.nilable(String)) } + def percent_ownership; end + sig { params(_percent_ownership: T.nilable(String)).returns(T.nilable(String)) } + def percent_ownership=(_percent_ownership); end + # Indicates whether the person is a representative of the associated legal entity. + sig { returns(T.nilable(T::Boolean)) } + def representative; end + sig { params(_representative: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def representative=(_representative); end + # The title or position the person holds in the associated legal entity. + sig { returns(T.nilable(String)) } + def title; end + sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } + def title=(_title); end + sig { + params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(String), representative: T.nilable(T::Boolean), title: T.nilable(String)).void + } + def initialize( + authorizer: nil, + director: nil, + executive: nil, + legal_guardian: nil, + owner: nil, + percent_ownership: nil, + representative: nil, + title: nil + ); end + end + class ScriptAddresses < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + class Kanji < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1 (e.g., street, PO Box, or company name). + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2 (e.g., apartment, suite, unit, or building). + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + # Town or cho-me. + sig { returns(T.nilable(String)) } + def town; end + sig { params(_town: T.nilable(String)).returns(T.nilable(String)) } + def town=(_town); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil, + town: nil + ); end + end + # Kana Address. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana)) + } + def kana=(_kana); end + # Kanji Address. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kana), kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + class ScriptNames < ::Stripe::RequestParams + class Kana < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + class Kanji < ::Stripe::RequestParams + # The person's first or given name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The person's last or family name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { params(given_name: T.nilable(String), surname: T.nilable(String)).void } + def initialize(given_name: nil, surname: nil); end + end + # Persons name in kana script. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana)) + } + def kana; end + sig { + params(_kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana)) + } + def kana=(_kana); end + # Persons name in kanji script. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)) + } + def kanji; end + sig { + params(_kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)) + } + def kanji=(_kanji); end + sig { + params(kana: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kana), kanji: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames::Kanji)).void + } + def initialize(kana: nil, kanji: nil); end + end + # Additional addresses associated with the person. + sig { + returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress])) + } + def additional_addresses; end + sig { + params(_additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress])).returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress])) + } + def additional_addresses=(_additional_addresses); end + # Additional names (e.g. aliases) associated with the person. + sig { + returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName])) + } + def additional_names; end + sig { + params(_additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName])).returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName])) + } + def additional_names=(_additional_names); end + # Attestations of accepted terms of service agreements. + sig { + returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService)) + } + def additional_terms_of_service; end + sig { + params(_additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService)) + } + def additional_terms_of_service=(_additional_terms_of_service); end + # The person's residential address. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address)) } + def address; end + sig { + params(_address: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address)) + } + def address=(_address); end + # The person's date of birth. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth)) } + def date_of_birth; end + sig { + params(_date_of_birth: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth)) + } + def date_of_birth=(_date_of_birth); end + # Documents that may be submitted to satisfy various informational requests. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents)) } + def documents; end + sig { + params(_documents: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents)) + } + def documents=(_documents); end + # Email. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The person's first name. + sig { returns(T.nilable(String)) } + def given_name; end + sig { params(_given_name: T.nilable(String)).returns(T.nilable(String)) } + def given_name=(_given_name); end + # The identification numbers (e.g., SSN) associated with the person. + sig { + returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber])) + } + def id_numbers; end + sig { + params(_id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber])).returns(T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber])) + } + def id_numbers=(_id_numbers); end + # The person's gender (International regulations require either "male" or "female"). + sig { returns(T.nilable(String)) } + def legal_gender; end + sig { params(_legal_gender: T.nilable(String)).returns(T.nilable(String)) } + def legal_gender=(_legal_gender); end + # 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. + sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, T.nilable(String)])).returns(T.nilable(T::Hash[String, T.nilable(String)])) + } + def metadata=(_metadata); end + # The nationalities (countries) this person is associated with. + sig { returns(T.nilable(T::Array[String])) } + def nationalities; end + sig { + params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def nationalities=(_nationalities); end + # The phone number for this person. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The person's political exposure. + sig { returns(T.nilable(String)) } + def political_exposure; end + sig { params(_political_exposure: T.nilable(String)).returns(T.nilable(String)) } + def political_exposure=(_political_exposure); end + # The relationship that this person has with the Account's business or legal entity. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship)) } + def relationship; end + sig { + params(_relationship: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship)) + } + def relationship=(_relationship); end + # The script addresses (e.g., non-Latin characters) associated with the person. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses)) } + def script_addresses; end + sig { + params(_script_addresses: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses)) + } + def script_addresses=(_script_addresses); end + # The script names (e.g. non-Latin characters) associated with the person. + sig { returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames)) } + def script_names; end + sig { + params(_script_names: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames)).returns(T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames)) + } + def script_names=(_script_names); end + # The person's last name. + sig { returns(T.nilable(String)) } + def surname; end + sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } + def surname=(_surname); end + sig { + params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonTokenCreateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonTokenCreateParams::ScriptNames), surname: T.nilable(String)).void + } + def initialize( + additional_addresses: nil, + additional_names: nil, + additional_terms_of_service: nil, + address: nil, + date_of_birth: nil, + documents: nil, + email: nil, + given_name: nil, + id_numbers: nil, + legal_gender: nil, + metadata: nil, + nationalities: nil, + phone: nil, + political_exposure: nil, + relationship: nil, + script_addresses: nil, + script_names: nil, + surname: nil + ); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/accounts/person_token_retrieve_params.rbi b/rbi/stripe/params/v2/core/accounts/person_token_retrieve_params.rbi new file mode 100644 index 000000000..6bad84d29 --- /dev/null +++ b/rbi/stripe/params/v2/core/accounts/person_token_retrieve_params.rbi @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + module Accounts + class PersonTokenRetrieveParams < ::Stripe::RequestParams; end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/accounts/person_update_params.rbi b/rbi/stripe/params/v2/core/accounts/person_update_params.rbi index 392594c9e..0e58904e6 100644 --- a/rbi/stripe/params/v2/core/accounts/person_update_params.rbi +++ b/rbi/stripe/params/v2/core/accounts/person_update_params.rbi @@ -678,6 +678,11 @@ module Stripe params(_nationalities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def nationalities=(_nationalities); end + # The person token generated by the person token api. + sig { returns(T.nilable(String)) } + def person_token; end + sig { params(_person_token: T.nilable(String)).returns(T.nilable(String)) } + def person_token=(_person_token); end # The phone number for this person. sig { returns(T.nilable(String)) } def phone; end @@ -715,7 +720,7 @@ module Stripe sig { params(_surname: T.nilable(String)).returns(T.nilable(String)) } def surname=(_surname); end sig { - params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonUpdateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonUpdateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonUpdateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonUpdateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonUpdateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptNames), surname: T.nilable(String)).void + params(additional_addresses: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalAddress]), additional_names: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::AdditionalName]), additional_terms_of_service: T.nilable(V2::Core::Accounts::PersonUpdateParams::AdditionalTermsOfService), address: T.nilable(V2::Core::Accounts::PersonUpdateParams::Address), date_of_birth: T.nilable(V2::Core::Accounts::PersonUpdateParams::DateOfBirth), documents: T.nilable(V2::Core::Accounts::PersonUpdateParams::Documents), email: T.nilable(String), given_name: T.nilable(String), id_numbers: T.nilable(T::Array[V2::Core::Accounts::PersonUpdateParams::IdNumber]), legal_gender: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)]), nationalities: T.nilable(T::Array[String]), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), relationship: T.nilable(V2::Core::Accounts::PersonUpdateParams::Relationship), script_addresses: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptAddresses), script_names: T.nilable(V2::Core::Accounts::PersonUpdateParams::ScriptNames), surname: T.nilable(String)).void } def initialize( additional_addresses: nil, @@ -730,6 +735,7 @@ module Stripe legal_gender: nil, metadata: nil, nationalities: nil, + person_token: nil, phone: nil, political_exposure: nil, relationship: nil, diff --git a/rbi/stripe/params/v2/core/event_list_params.rbi b/rbi/stripe/params/v2/core/event_list_params.rbi index 050cab4fa..cab1fc68a 100644 --- a/rbi/stripe/params/v2/core/event_list_params.rbi +++ b/rbi/stripe/params/v2/core/event_list_params.rbi @@ -6,31 +6,44 @@ module Stripe module V2 module Core class EventListParams < ::Stripe::RequestParams - # Filter for events created after the specified timestamp. - sig { returns(T.nilable(String)) } - def gt; end - sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } - def gt=(_gt); end - # Filter for events created at or after the specified timestamp. - sig { returns(T.nilable(String)) } - def gte; end - sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } - def gte=(_gte); end + class Created < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + sig { returns(T.nilable(String)) } + def gt; end + sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } + def gt=(_gt); end + # Filter for events created at or after the specified timestamp. + sig { returns(T.nilable(String)) } + def gte; end + sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } + def gte=(_gte); end + # Filter for events created before the specified timestamp. + sig { returns(T.nilable(String)) } + def lt; end + sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } + def lt=(_lt); end + # Filter for events created at or before the specified timestamp. + sig { returns(T.nilable(String)) } + def lte; end + sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } + def lte=(_lte); end + sig { + params(gt: T.nilable(String), gte: T.nilable(String), lt: T.nilable(String), lte: T.nilable(String)).void + } + def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end + end + # Set of filters to query events within a range of `created` timestamps. + sig { returns(T.nilable(V2::Core::EventListParams::Created)) } + def created; end + sig { + params(_created: T.nilable(V2::Core::EventListParams::Created)).returns(T.nilable(V2::Core::EventListParams::Created)) + } + def created=(_created); end # The page size. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end - # Filter for events created before the specified timestamp. - sig { returns(T.nilable(String)) } - def lt; end - sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } - def lt=(_lt); end - # Filter for events created at or before the specified timestamp. - sig { returns(T.nilable(String)) } - def lte; end - sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } - def lte=(_lte); end # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. @@ -44,17 +57,9 @@ module Stripe sig { params(_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def types=(_types); end sig { - params(gt: T.nilable(String), gte: T.nilable(String), limit: T.nilable(Integer), lt: T.nilable(String), lte: T.nilable(String), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void + params(created: T.nilable(V2::Core::EventListParams::Created), limit: T.nilable(Integer), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void } - def initialize( - gt: nil, - gte: nil, - limit: nil, - lt: nil, - lte: nil, - object_id_: nil, - types: nil - ); end + def initialize(created: nil, limit: nil, object_id_: nil, types: nil); end end end end diff --git a/rbi/stripe/params/v2/money_management/currency_conversion_create_params.rbi b/rbi/stripe/params/v2/money_management/currency_conversion_create_params.rbi new file mode 100644 index 000000000..a6a407897 --- /dev/null +++ b/rbi/stripe/params/v2/money_management/currency_conversion_create_params.rbi @@ -0,0 +1,103 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionCreateParams < ::Stripe::RequestParams + class From < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # Amount object. + sig { + returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount)).returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount)) + } + def amount=(_amount); end + # A lowercase alpha3 currency code like "usd". + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { + params(amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::From::Amount), currency: T.nilable(String)).void + } + def initialize(amount: nil, currency: nil); end + end + class To < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end + # Amount object. + sig { + returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount)) + } + def amount; end + sig { + params(_amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount)).returns(T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount)) + } + def amount=(_amount); end + # A lowercase alpha3 currency code like "usd". + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { + params(amount: T.nilable(V2::MoneyManagement::CurrencyConversionCreateParams::To::Amount), currency: T.nilable(String)).void + } + def initialize(amount: nil, currency: nil); end + end + # The FinancialAccount id to create the CurrencyConversion on. + sig { returns(String) } + def financial_account; end + sig { params(_financial_account: String).returns(String) } + def financial_account=(_financial_account); end + # From amount object indicating the from currency or optional amount. + sig { returns(V2::MoneyManagement::CurrencyConversionCreateParams::From) } + def from; end + sig { + params(_from: V2::MoneyManagement::CurrencyConversionCreateParams::From).returns(V2::MoneyManagement::CurrencyConversionCreateParams::From) + } + def from=(_from); end + # To amount object indicating the to currency or optional amount. + sig { returns(V2::MoneyManagement::CurrencyConversionCreateParams::To) } + def to; end + sig { + params(_to: V2::MoneyManagement::CurrencyConversionCreateParams::To).returns(V2::MoneyManagement::CurrencyConversionCreateParams::To) + } + def to=(_to); end + sig { + params(financial_account: String, from: V2::MoneyManagement::CurrencyConversionCreateParams::From, to: V2::MoneyManagement::CurrencyConversionCreateParams::To).void + } + def initialize(financial_account: nil, from: nil, to: nil); end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/money_management/currency_conversion_list_params.rbi b/rbi/stripe/params/v2/money_management/currency_conversion_list_params.rbi new file mode 100644 index 000000000..0f9b9237c --- /dev/null +++ b/rbi/stripe/params/v2/money_management/currency_conversion_list_params.rbi @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionListParams < ::Stripe::RequestParams + # The ID of the FinancialAccount to filter by. + sig { returns(T.nilable(String)) } + def financial_account; end + sig { params(_financial_account: T.nilable(String)).returns(T.nilable(String)) } + def financial_account=(_financial_account); end + # The page limit. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + sig { params(financial_account: T.nilable(String), limit: T.nilable(Integer)).void } + def initialize(financial_account: nil, limit: nil); end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/money_management/currency_conversion_retrieve_params.rbi b/rbi/stripe/params/v2/money_management/currency_conversion_retrieve_params.rbi new file mode 100644 index 000000000..2d8346f87 --- /dev/null +++ b/rbi/stripe/params/v2/money_management/currency_conversion_retrieve_params.rbi @@ -0,0 +1,11 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionRetrieveParams < ::Stripe::RequestParams; end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/money_management/inbound_transfer_create_params.rbi b/rbi/stripe/params/v2/money_management/inbound_transfer_create_params.rbi index 7f942afdb..80d7a3339 100644 --- a/rbi/stripe/params/v2/money_management/inbound_transfer_create_params.rbi +++ b/rbi/stripe/params/v2/money_management/inbound_transfer_create_params.rbi @@ -6,6 +6,20 @@ module Stripe module V2 module MoneyManagement class InboundTransferCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class From < ::Stripe::RequestParams # An optional currency field used to specify which currency is debited from the Payment Method. # Since many Payment Methods support only one currency, this field is optional. @@ -36,9 +50,11 @@ module Stripe def initialize(currency: nil, financial_account: nil); end end # The amount, in specified currency, by which the FinancialAccount balance will increase due to the InboundTransfer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::InboundTransferCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::InboundTransferCreateParams::Amount).returns(V2::MoneyManagement::InboundTransferCreateParams::Amount) + } def amount=(_amount); end # An optional, freeform description field intended to store metadata. sig { returns(T.nilable(String)) } @@ -60,7 +76,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, description: T.nilable(String), from: V2::MoneyManagement::InboundTransferCreateParams::From, to: V2::MoneyManagement::InboundTransferCreateParams::To).void + params(amount: V2::MoneyManagement::InboundTransferCreateParams::Amount, description: T.nilable(String), from: V2::MoneyManagement::InboundTransferCreateParams::From, to: V2::MoneyManagement::InboundTransferCreateParams::To).void } def initialize(amount: nil, description: nil, from: nil, to: nil); end end diff --git a/rbi/stripe/params/v2/money_management/outbound_payment_create_params.rbi b/rbi/stripe/params/v2/money_management/outbound_payment_create_params.rbi index 81b1896c2..f534c1b60 100644 --- a/rbi/stripe/params/v2/money_management/outbound_payment_create_params.rbi +++ b/rbi/stripe/params/v2/money_management/outbound_payment_create_params.rbi @@ -6,6 +6,20 @@ module Stripe module V2 module MoneyManagement class OutboundPaymentCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -67,9 +81,11 @@ module Stripe def initialize(currency: nil, payout_method: nil, recipient: nil); end end # The "presentment amount" to be sent to the recipient. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::OutboundPaymentCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::OutboundPaymentCreateParams::Amount).returns(V2::MoneyManagement::OutboundPaymentCreateParams::Amount) + } def amount=(_amount); end # Delivery options to be used to send the OutboundPayment. sig { @@ -126,7 +142,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundPaymentCreateParams::From, metadata: T.nilable(T::Hash[String, String]), outbound_payment_quote: T.nilable(String), recipient_notification: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::RecipientNotification), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundPaymentCreateParams::To).void + params(amount: V2::MoneyManagement::OutboundPaymentCreateParams::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundPaymentCreateParams::From, metadata: T.nilable(T::Hash[String, String]), outbound_payment_quote: T.nilable(String), recipient_notification: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::RecipientNotification), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundPaymentCreateParams::To).void } def initialize( amount: nil, diff --git a/rbi/stripe/params/v2/money_management/outbound_payment_quote_create_params.rbi b/rbi/stripe/params/v2/money_management/outbound_payment_quote_create_params.rbi index 3ab8eef16..da28e6e51 100644 --- a/rbi/stripe/params/v2/money_management/outbound_payment_quote_create_params.rbi +++ b/rbi/stripe/params/v2/money_management/outbound_payment_quote_create_params.rbi @@ -6,6 +6,20 @@ module Stripe module V2 module MoneyManagement class OutboundPaymentQuoteCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -57,9 +71,11 @@ module Stripe def initialize(currency: nil, payout_method: nil, recipient: nil); end end # The "presentment amount" to be sent to the recipient. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount).returns(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount) + } def amount=(_amount); end # Method to be used to send the OutboundPayment. sig { @@ -85,7 +101,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::DeliveryOptions), from: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::From, to: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::To).void + params(amount: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundPaymentQuoteCreateParams::DeliveryOptions), from: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::From, to: V2::MoneyManagement::OutboundPaymentQuoteCreateParams::To).void } def initialize(amount: nil, delivery_options: nil, from: nil, to: nil); end end diff --git a/rbi/stripe/params/v2/money_management/outbound_transfer_create_params.rbi b/rbi/stripe/params/v2/money_management/outbound_transfer_create_params.rbi index 51040f83b..48c7379b3 100644 --- a/rbi/stripe/params/v2/money_management/outbound_transfer_create_params.rbi +++ b/rbi/stripe/params/v2/money_management/outbound_transfer_create_params.rbi @@ -6,6 +6,20 @@ module Stripe module V2 module MoneyManagement class OutboundTransferCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end class DeliveryOptions < ::Stripe::RequestParams # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -50,9 +64,11 @@ module Stripe def initialize(currency: nil, payout_method: nil); end end # The "presentment amount" for the OutboundPayment. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::MoneyManagement::OutboundTransferCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::MoneyManagement::OutboundTransferCreateParams::Amount).returns(V2::MoneyManagement::OutboundTransferCreateParams::Amount) + } def amount=(_amount); end # Delivery options to be used to send the OutboundTransfer. sig { @@ -95,7 +111,7 @@ module Stripe } def to=(_to); end sig { - params(amount: ::Stripe::V2::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundTransferCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundTransferCreateParams::From, metadata: T.nilable(T::Hash[String, String]), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundTransferCreateParams::To).void + params(amount: V2::MoneyManagement::OutboundTransferCreateParams::Amount, delivery_options: T.nilable(V2::MoneyManagement::OutboundTransferCreateParams::DeliveryOptions), description: T.nilable(String), from: V2::MoneyManagement::OutboundTransferCreateParams::From, metadata: T.nilable(T::Hash[String, String]), recipient_verification: T.nilable(String), to: V2::MoneyManagement::OutboundTransferCreateParams::To).void } def initialize( amount: nil, diff --git a/rbi/stripe/params/v2/payments/off_session_payment_capture_params.rbi b/rbi/stripe/params/v2/payments/off_session_payment_capture_params.rbi index 37344bf29..3b78077d5 100644 --- a/rbi/stripe/params/v2/payments/off_session_payment_capture_params.rbi +++ b/rbi/stripe/params/v2/payments/off_session_payment_capture_params.rbi @@ -11,31 +11,25 @@ module Stripe # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end - # The account (if any) that the payment is attributed to for tax reporting, and - # where funds from the payment are transferred to after payment success. - sig { returns(String) } - def destination; end - sig { params(_destination: String).returns(String) } - def destination=(_destination); end - sig { params(amount: T.nilable(Integer), destination: String).void } - def initialize(amount: nil, destination: nil); end + sig { params(amount: T.nilable(Integer)).void } + def initialize(amount: nil); end end # The amount to capture. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def amount_to_capture; end - sig { params(_amount_to_capture: Integer).returns(Integer) } + sig { params(_amount_to_capture: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_to_capture=(_amount_to_capture); end - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). sig { returns(T::Hash[String, String]) } def metadata; end sig { params(_metadata: T::Hash[String, String]).returns(T::Hash[String, String]) } @@ -55,7 +49,7 @@ module Stripe def statement_descriptor_suffix; end sig { params(_statement_descriptor_suffix: T.nilable(String)).returns(T.nilable(String)) } def statement_descriptor_suffix=(_statement_descriptor_suffix); end - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). sig { returns(T.nilable(V2::Payments::OffSessionPaymentCaptureParams::TransferData)) } def transfer_data; end sig { @@ -63,7 +57,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount_to_capture: Integer, metadata: T::Hash[String, String], statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCaptureParams::TransferData)).void + params(amount_to_capture: T.nilable(Integer), metadata: T::Hash[String, String], statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCaptureParams::TransferData)).void } def initialize( amount_to_capture: nil, diff --git a/rbi/stripe/params/v2/payments/off_session_payment_create_params.rbi b/rbi/stripe/params/v2/payments/off_session_payment_create_params.rbi index e4aedac51..58e894abd 100644 --- a/rbi/stripe/params/v2/payments/off_session_payment_create_params.rbi +++ b/rbi/stripe/params/v2/payments/off_session_payment_create_params.rbi @@ -6,129 +6,19 @@ module Stripe module V2 module Payments class OffSessionPaymentCreateParams < ::Stripe::RequestParams - class AmountDetails < ::Stripe::RequestParams - class LineItem < ::Stripe::RequestParams - class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - sig { params(_total_tax_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def total_tax_amount=(_total_tax_amount); end - sig { params(total_tax_amount: T.nilable(Integer)).void } - def initialize(total_tax_amount: nil); end - end - # The amount an item was discounted for. Positive integer. - sig { returns(T.nilable(Integer)) } - def discount_amount; end - sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def discount_amount=(_discount_amount); end - # Unique identifier of the product. At most 12 characters long. - sig { returns(T.nilable(String)) } - def product_code; end - sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } - def product_code=(_product_code); end - # Name of the product. At most 100 characters long. - sig { returns(String) } - def product_name; end - sig { params(_product_name: String).returns(String) } - def product_name=(_product_name); end - # Number of items of the product. Positive integer. - sig { returns(Integer) } - def quantity; end - sig { params(_quantity: Integer).returns(Integer) } - def quantity=(_quantity); end - # Contains information about the tax on the item. - sig { - returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax)) - } - def tax; end - sig { - params(_tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax)) - } - def tax=(_tax); end - # Cost of the product. Non-negative integer. - sig { returns(Integer) } - def unit_cost; end - sig { params(_unit_cost: Integer).returns(Integer) } - def unit_cost=(_unit_cost); end - sig { - params(discount_amount: T.nilable(Integer), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem::Tax), unit_cost: Integer).void - } - def initialize( - discount_amount: nil, - product_code: nil, - product_name: nil, - quantity: nil, - tax: nil, - unit_cost: nil - ); end - end - class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. - sig { returns(T.nilable(Integer)) } - def amount; end - sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def amount=(_amount); end - # The postal code that represents the shipping source. - sig { returns(T.nilable(String)) } - def from_postal_code; end - sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. - sig { returns(T.nilable(String)) } - def to_postal_code; end - sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } - def to_postal_code=(_to_postal_code); end - sig { - params(amount: T.nilable(Integer), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void - } - def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end - end - class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - sig { params(_total_tax_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def total_tax_amount=(_total_tax_amount); end - sig { params(total_tax_amount: T.nilable(Integer)).void } - def initialize(total_tax_amount: nil); end - end - # The amount the total transaction was discounted for. + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). sig { returns(T.nilable(Integer)) } - def discount_amount; end - sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } - def discount_amount=(_discount_amount); end - # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - sig { - returns(T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem]) - } - def line_items; end - sig { - params(_line_items: T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem]).returns(T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem]) - } - def line_items=(_line_items); end - # Contains information about the shipping portion of the amount. - sig { - returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping)) - } - def shipping; end - sig { - params(_shipping: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping)) - } - def shipping=(_shipping); end - # Contains information about the tax portion of the amount. - sig { - returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)) - } - def tax; end - sig { - params(_tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)) - } - def tax=(_tax); end - sig { - params(discount_amount: T.nilable(Integer), line_items: T::Array[V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem], shipping: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping), tax: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Tax)).void - } - def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end end class Capture < ::Stripe::RequestParams # The method to use to capture the payment. @@ -184,11 +74,11 @@ module Stripe sig { params(_retry_policy: T.nilable(String)).returns(T.nilable(String)) } def retry_policy=(_retry_policy); end # Indicates the strategy for how you want Stripe to retry the payment. - sig { returns(String) } + sig { returns(T.nilable(String)) } def retry_strategy; end - sig { params(_retry_strategy: String).returns(String) } + sig { params(_retry_strategy: T.nilable(String)).returns(T.nilable(String)) } def retry_strategy=(_retry_strategy); end - sig { params(retry_policy: T.nilable(String), retry_strategy: String).void } + sig { params(retry_policy: T.nilable(String), retry_strategy: T.nilable(String)).void } def initialize(retry_policy: nil, retry_strategy: nil); end end class TransferData < ::Stripe::RequestParams @@ -196,7 +86,7 @@ module Stripe # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } @@ -213,17 +103,12 @@ module Stripe def initialize(amount: nil, destination: nil); end end # The “presentment amount” to be collected from the customer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::Payments::OffSessionPaymentCreateParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } - def amount=(_amount); end - # Provides industry-specific information about the amount. - sig { returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails)) } - def amount_details; end sig { - params(_amount_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails)) + params(_amount: V2::Payments::OffSessionPaymentCreateParams::Amount).returns(V2::Payments::OffSessionPaymentCreateParams::Amount) } - def amount_details=(_amount_details); end + def amount=(_amount); end # The frequency of the underlying payment. sig { returns(String) } def cadence; end @@ -236,20 +121,15 @@ module Stripe params(_capture: T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture)).returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture)) } def capture=(_capture); end - # Whether the OffSessionPayment should be captured automatically or manually. - sig { returns(T.nilable(String)) } - def capture_method; end - sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } - def capture_method=(_capture_method); end # ID of the Customer to which this OffSessionPayment belongs. sig { returns(String) } def customer; end sig { params(_customer: String).returns(String) } def customer=(_customer); end - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). sig { returns(T::Hash[String, String]) } def metadata; end sig { params(_metadata: T::Hash[String, String]).returns(T::Hash[String, String]) } @@ -309,7 +189,7 @@ module Stripe def test_clock; end sig { params(_test_clock: T.nilable(String)).returns(T.nilable(String)) } def test_clock=(_test_clock); end - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). sig { returns(T.nilable(V2::Payments::OffSessionPaymentCreateParams::TransferData)) } def transfer_data; end sig { @@ -317,14 +197,12 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount: ::Stripe::V2::Amount, amount_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::AmountDetails), cadence: String, capture: T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture), capture_method: T.nilable(String), customer: String, metadata: T::Hash[String, String], on_behalf_of: T.nilable(String), payment_method: String, payment_method_options: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentMethodOptions), payments_orchestration: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentsOrchestration), retry_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::RetryDetails), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), test_clock: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCreateParams::TransferData)).void + params(amount: V2::Payments::OffSessionPaymentCreateParams::Amount, cadence: String, capture: T.nilable(V2::Payments::OffSessionPaymentCreateParams::Capture), customer: String, metadata: T::Hash[String, String], on_behalf_of: T.nilable(String), payment_method: String, payment_method_options: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentMethodOptions), payments_orchestration: T.nilable(V2::Payments::OffSessionPaymentCreateParams::PaymentsOrchestration), retry_details: T.nilable(V2::Payments::OffSessionPaymentCreateParams::RetryDetails), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), test_clock: T.nilable(String), transfer_data: T.nilable(V2::Payments::OffSessionPaymentCreateParams::TransferData)).void } def initialize( amount: nil, - amount_details: nil, cadence: nil, capture: nil, - capture_method: nil, customer: nil, metadata: nil, on_behalf_of: nil, diff --git a/rbi/stripe/params/v2/test_helpers/financial_address_credit_params.rbi b/rbi/stripe/params/v2/test_helpers/financial_address_credit_params.rbi index 1a3bf694e..4338c1ca6 100644 --- a/rbi/stripe/params/v2/test_helpers/financial_address_credit_params.rbi +++ b/rbi/stripe/params/v2/test_helpers/financial_address_credit_params.rbi @@ -6,10 +6,26 @@ module Stripe module V2 module TestHelpers class FinancialAddressCreditParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + sig { params(_value: T.nilable(Integer)).returns(T.nilable(Integer)) } + def value=(_value); end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + sig { params(_currency: T.nilable(String)).returns(T.nilable(String)) } + def currency=(_currency); end + sig { params(value: T.nilable(Integer), currency: T.nilable(String)).void } + def initialize(value: nil, currency: nil); end + end # Object containing the amount value and currency to credit. - sig { returns(::Stripe::V2::Amount) } + sig { returns(V2::TestHelpers::FinancialAddressCreditParams::Amount) } def amount; end - sig { params(_amount: ::Stripe::V2::Amount).returns(::Stripe::V2::Amount) } + sig { + params(_amount: V2::TestHelpers::FinancialAddressCreditParams::Amount).returns(V2::TestHelpers::FinancialAddressCreditParams::Amount) + } def amount=(_amount); end # Open Enum. The network to use in simulating the funds flow. This will be the reflected in the resulting ReceivedCredit. sig { returns(String) } @@ -22,7 +38,7 @@ module Stripe sig { params(_statement_descriptor: T.nilable(String)).returns(T.nilable(String)) } def statement_descriptor=(_statement_descriptor); end sig { - params(amount: ::Stripe::V2::Amount, network: String, statement_descriptor: T.nilable(String)).void + params(amount: V2::TestHelpers::FinancialAddressCreditParams::Amount, network: String, statement_descriptor: T.nilable(String)).void } def initialize(amount: nil, network: nil, statement_descriptor: nil); end end diff --git a/rbi/stripe/resources/delegated_checkout/requested_session.rbi b/rbi/stripe/resources/delegated_checkout/requested_session.rbi index 007bd06f1..d42a1721e 100644 --- a/rbi/stripe/resources/delegated_checkout/requested_session.rbi +++ b/rbi/stripe/resources/delegated_checkout/requested_session.rbi @@ -157,9 +157,27 @@ module Stripe # The SKU ID of the line item. sig { returns(String) } def sku_id; end - # The unit amount of the line item. + # The per-unit amount of the item before any discounts or taxes are applied. sig { returns(Integer) } def unit_amount; end + # The total discount for this line item. If no discount were applied, defaults to 0. + sig { returns(Integer) } + def amount_discount; end + # The total before any discounts or taxes are applied. + sig { returns(Integer) } + def amount_subtotal; end + # The total after discounts but before taxes are applied. + sig { returns(Integer) } + def amount_subtotal_after_discount; end + # The total after discounts and taxes. + sig { returns(Integer) } + def amount_total; end + # The per-unit amount of the item after discounts but before taxes are applied. + sig { returns(Integer) } + def unit_amount_after_discount; end + # The per-unit discount amount. If no discount were applied, defaults to 0. + sig { returns(Integer) } + def unit_discount; end def self.inner_class_types @inner_class_types = {} end @@ -296,6 +314,9 @@ module Stripe # The amount tax of the total details. sig { returns(T.nilable(Integer)) } def amount_tax; end + # Total of all items after discounts but before taxes are applied. + sig { returns(T.nilable(Integer)) } + def amount_subtotal_after_discount; end # The applicable fees of the total details. sig { returns(T.nilable(T::Array[ApplicableFee])) } def applicable_fees; end @@ -307,10 +328,10 @@ module Stripe end end # The subtotal amount of the requested session. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def amount_subtotal; end # The total amount of the requested session. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def amount_total; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index 84b6ebe1b..d2883e47d 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -1789,13 +1789,13 @@ module Stripe } def self.attach(payment_method, params = {}, opts = {}); end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. sig { params(params: T.any(::Stripe::PaymentMethodCheckBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodBalance) } def check_balance(params = {}, opts = {}); end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. sig { params(payment_method: String, params: T.any(::Stripe::PaymentMethodCheckBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodBalance) } diff --git a/rbi/stripe/resources/quote.rbi b/rbi/stripe/resources/quote.rbi index 2f1cbaa62..61b284e8b 100644 --- a/rbi/stripe/resources/quote.rbi +++ b/rbi/stripe/resources/quote.rbi @@ -604,17 +604,6 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class LineStartsAt < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } @@ -626,32 +615,12 @@ module Stripe @field_remappings = {} end end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Lets you bill the period starting from a particular Quote line. sig { returns(T.nilable(LineStartsAt)) } def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -659,28 +628,13 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {line_starts_at: LineStartsAt} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -706,11 +660,8 @@ module Stripe @field_remappings = {} end end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } @@ -725,11 +676,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration, line_ends_at: LineEndsAt} end def self.field_remappings @field_remappings = {} @@ -741,7 +688,7 @@ module Stripe # Specifies the start of the billing period. sig { returns(T.nilable(BillFrom)) } def bill_from; end - # Specifies the end of billing period. + # Attribute for field bill_until sig { returns(BillUntil) } def bill_until; end # Unique identifier for the billing schedule. @@ -795,7 +742,7 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) 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 `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values. sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end - # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + # Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. sig { returns(T.nilable(String)) } def phase_effective_at; end # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. @@ -946,17 +893,6 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class LineStartsAt < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } @@ -968,32 +904,12 @@ module Stripe @field_remappings = {} end end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Lets you bill the period starting from a particular Quote line. sig { returns(T.nilable(LineStartsAt)) } def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -1001,28 +917,13 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {line_starts_at: LineStartsAt} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -1048,11 +949,8 @@ module Stripe @field_remappings = {} end end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. - sig { returns(Integer) } + sig { returns(T.nilable(Integer)) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } @@ -1067,11 +965,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration, line_ends_at: LineEndsAt} end def self.field_remappings @field_remappings = {} @@ -1083,7 +977,7 @@ module Stripe # Specifies the start of the billing period. sig { returns(T.nilable(BillFrom)) } def bill_from; end - # Specifies the end of billing period. + # Attribute for field bill_until sig { returns(BillUntil) } def bill_until; end # Unique identifier for the billing schedule. @@ -1117,7 +1011,7 @@ module Stripe # Behavior of the subscription schedule and underlying subscription when it ends. sig { returns(T.nilable(String)) } def end_behavior; end - # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + # Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. sig { returns(T.nilable(String)) } def phase_effective_at; end # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted. diff --git a/rbi/stripe/resources/quote_line.rbi b/rbi/stripe/resources/quote_line.rbi index 07d2140a1..594c2dded 100644 --- a/rbi/stripe/resources/quote_line.rbi +++ b/rbi/stripe/resources/quote_line.rbi @@ -107,6 +107,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = {discounts: Discount, trial: Trial} end @@ -260,6 +263,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = {discounts: Discount, trial: Trial} end @@ -521,5 +527,8 @@ module Stripe # Settings related to subscription trials. sig { returns(T.nilable(TrialSettings)) } def trial_settings; end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end end end \ No newline at end of file diff --git a/rbi/stripe/resources/quote_preview_subscription_schedule.rbi b/rbi/stripe/resources/quote_preview_subscription_schedule.rbi index 62dafff65..2e7370dbb 100644 --- a/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +++ b/rbi/stripe/resources/quote_preview_subscription_schedule.rbi @@ -527,6 +527,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = { billing_thresholds: BillingThresholds, @@ -654,6 +657,9 @@ module Stripe # Settings related to any trials on the subscription during this phase. sig { returns(T.nilable(TrialSettings)) } def trial_settings; end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end def self.inner_class_types @inner_class_types = { add_invoice_items: AddInvoiceItem, @@ -707,83 +713,23 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. - sig { returns(T.nilable(Integer)) } + sig { returns(Integer) } def computed_timestamp; end - # Lets you bill the period starting from a particular Quote line. - sig { returns(T.nilable(LineStartsAt)) } - def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -798,29 +744,12 @@ module Stripe @field_remappings = {} end end - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. sig { returns(Integer) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } def duration; end - # Lets you bill the period ending at a particular Quote line. - sig { returns(T.nilable(LineEndsAt)) } - def line_ends_at; end # If specified, the billing schedule will apply until the specified timestamp. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -828,11 +757,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration} end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/subscription.rbi b/rbi/stripe/resources/subscription.rbi index e84387922..03e7da8cb 100644 --- a/rbi/stripe/resources/subscription.rbi +++ b/rbi/stripe/resources/subscription.rbi @@ -105,83 +105,23 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. - sig { returns(T.nilable(Integer)) } + sig { returns(Integer) } def computed_timestamp; end - # Lets you bill the period starting from a particular Quote line. - sig { returns(T.nilable(LineStartsAt)) } - def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -196,29 +136,12 @@ module Stripe @field_remappings = {} end end - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. sig { returns(Integer) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } def duration; end - # Lets you bill the period ending at a particular Quote line. - sig { returns(T.nilable(LineEndsAt)) } - def line_ends_at; end # If specified, the billing schedule will apply until the specified timestamp. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -226,11 +149,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration} end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/subscription_item.rbi b/rbi/stripe/resources/subscription_item.rbi index e5d686b37..2e5f2341f 100644 --- a/rbi/stripe/resources/subscription_item.rbi +++ b/rbi/stripe/resources/subscription_item.rbi @@ -31,6 +31,23 @@ module Stripe @field_remappings = {} end end + class CurrentTrial < ::Stripe::StripeObject + # Attribute for field end_date + sig { returns(Integer) } + def end_date; end + # Attribute for field start_date + sig { returns(Integer) } + def start_date; end + # Attribute for field trial_offer + sig { returns(String) } + def trial_offer; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The time period the subscription item has been billed for. sig { returns(T.nilable(Integer)) } def billed_until; end @@ -88,6 +105,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The current trial that is applied to this subscription item. + sig { returns(T.nilable(CurrentTrial)) } + def current_trial; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end diff --git a/rbi/stripe/resources/subscription_schedule.rbi b/rbi/stripe/resources/subscription_schedule.rbi index 9253b4193..82ab0569f 100644 --- a/rbi/stripe/resources/subscription_schedule.rbi +++ b/rbi/stripe/resources/subscription_schedule.rbi @@ -513,6 +513,9 @@ module Stripe # Options that configure the trial on the subscription item. sig { returns(T.nilable(Trial)) } def trial; end + # The ID of the trial offer to apply to the configuration item. + sig { returns(T.nilable(String)) } + def trial_offer; end def self.inner_class_types @inner_class_types = { billing_thresholds: BillingThresholds, @@ -640,6 +643,9 @@ module Stripe # Settings related to any trials on the subscription during this phase. sig { returns(T.nilable(TrialSettings)) } def trial_settings; end + # Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. + sig { returns(T.nilable(String)) } + def effective_at; end def self.inner_class_types @inner_class_types = { add_invoice_items: AddInvoiceItem, @@ -693,83 +699,23 @@ module Stripe end end class BillFrom < ::Stripe::StripeObject - class AmendmentStart < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class LineStartsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - class Relative < ::Stripe::StripeObject - # Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`. - sig { returns(String) } - def interval; end - # The multiplier applied to the interval. - sig { returns(T.nilable(Integer)) } - def interval_count; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to start prebilling with. - sig { returns(T.nilable(AmendmentStart)) } - def amendment_start; end # The time the billing schedule applies from. - sig { returns(T.nilable(Integer)) } + sig { returns(Integer) } def computed_timestamp; end - # Lets you bill the period starting from a particular Quote line. - sig { returns(T.nilable(LineStartsAt)) } - def line_starts_at; end - # Timestamp is calculated from the request time. - sig { returns(T.nilable(Relative)) } - def relative; end # Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. sig { returns(T.nilable(Integer)) } def timestamp; end - # Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. + # Describes how the billing schedule determines the start date. Possible values are `timestamp`. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_start: AmendmentStart, - line_starts_at: LineStartsAt, - relative: Relative, - } + @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BillUntil < ::Stripe::StripeObject - class AmendmentEnd < ::Stripe::StripeObject - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(Integer) } - def index; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Duration < ::Stripe::StripeObject # Specifies billing duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } @@ -784,29 +730,12 @@ module Stripe @field_remappings = {} end end - class LineEndsAt < ::Stripe::StripeObject - # Unique identifier for the object. - sig { returns(String) } - def id; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # Use an index to specify the position of an amendment to end prebilling with. - sig { returns(T.nilable(AmendmentEnd)) } - def amendment_end; end # The timestamp the billing schedule will apply until. sig { returns(Integer) } def computed_timestamp; end # Specifies the billing period. sig { returns(T.nilable(Duration)) } def duration; end - # Lets you bill the period ending at a particular Quote line. - sig { returns(T.nilable(LineEndsAt)) } - def line_ends_at; end # If specified, the billing schedule will apply until the specified timestamp. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -814,11 +743,7 @@ module Stripe sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = { - amendment_end: AmendmentEnd, - duration: Duration, - line_ends_at: LineEndsAt, - } + @inner_class_types = {duration: Duration} end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/v2/billing/cadence.rbi b/rbi/stripe/resources/v2/billing/cadence.rbi index 25f03651f..0b36cd252 100644 --- a/rbi/stripe/resources/v2/billing/cadence.rbi +++ b/rbi/stripe/resources/v2/billing/cadence.rbi @@ -436,9 +436,9 @@ module Stripe sig { returns(T.nilable(String)) } def network; end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end def self.inner_class_types diff --git a/rbi/stripe/resources/v2/billing/collection_setting.rbi b/rbi/stripe/resources/v2/billing/collection_setting.rbi index 286e1ede9..b476b17bc 100644 --- a/rbi/stripe/resources/v2/billing/collection_setting.rbi +++ b/rbi/stripe/resources/v2/billing/collection_setting.rbi @@ -94,9 +94,9 @@ module Stripe sig { returns(T.nilable(String)) } def network; end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end def self.inner_class_types diff --git a/rbi/stripe/resources/v2/billing/collection_setting_version.rbi b/rbi/stripe/resources/v2/billing/collection_setting_version.rbi index 125c6f256..ab621279f 100644 --- a/rbi/stripe/resources/v2/billing/collection_setting_version.rbi +++ b/rbi/stripe/resources/v2/billing/collection_setting_version.rbi @@ -93,9 +93,9 @@ module Stripe sig { returns(T.nilable(String)) } def network; end # An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - # for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + # for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). # However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - # Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + # Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(T.nilable(String)) } def request_three_d_secure; end def self.inner_class_types diff --git a/rbi/stripe/resources/v2/billing/meter_event.rbi b/rbi/stripe/resources/v2/billing/meter_event.rbi index 5e5cd61f5..64745d229 100644 --- a/rbi/stripe/resources/v2/billing/meter_event.rbi +++ b/rbi/stripe/resources/v2/billing/meter_event.rbi @@ -21,7 +21,8 @@ module Stripe def object; end # The payload of the event. This must contain the fields corresponding to a meter’s # `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and - # `value_settings.event_payload_key` (default is `value`). Read more about the payload. + # `value_settings.event_payload_key` (default is `value`). Read more about + # the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).. sig { returns(T::Hash[String, String]) } def payload; end # The time of the event. Must be within the past 35 calendar days or up to diff --git a/rbi/stripe/resources/v2/billing/service_action.rbi b/rbi/stripe/resources/v2/billing/service_action.rbi index a2b53a0bb..2123d9d91 100644 --- a/rbi/stripe/resources/v2/billing/service_action.rbi +++ b/rbi/stripe/resources/v2/billing/service_action.rbi @@ -25,6 +25,20 @@ module Stripe @field_remappings = {} end end + class Monetary < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -32,10 +46,10 @@ module Stripe sig { returns(T.nilable(CustomPricingUnit)) } def custom_pricing_unit; end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Monetary)) } def monetary; end def self.inner_class_types - @inner_class_types = {custom_pricing_unit: CustomPricingUnit} + @inner_class_types = {custom_pricing_unit: CustomPricingUnit, monetary: Monetary} end def self.field_remappings @field_remappings = {} @@ -125,6 +139,20 @@ module Stripe @field_remappings = {} end end + class Monetary < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. sig { returns(String) } def type; end @@ -132,10 +160,10 @@ module Stripe sig { returns(T.nilable(CustomPricingUnit)) } def custom_pricing_unit; end # The monetary amount of the credit grant. Required if `type` is `monetary`. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Monetary)) } def monetary; end def self.inner_class_types - @inner_class_types = {custom_pricing_unit: CustomPricingUnit} + @inner_class_types = {custom_pricing_unit: CustomPricingUnit, monetary: Monetary} end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/v2/core/account.rbi b/rbi/stripe/resources/v2/core/account.rbi index d4db094bc..074800365 100644 --- a/rbi/stripe/resources/v2/core/account.rbi +++ b/rbi/stripe/resources/v2/core/account.rbi @@ -350,10 +350,10 @@ module Stripe # A recent IP address of the customer used for tax reporting and tax location inference. sig { returns(T.nilable(String)) } def ip_address; end - # The customer’s identified tax location - uses `location_source`. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. + # The [identified](https://docs.stripe.com/tax/customer-locations#address-hierarchy-other) tax location of the customer. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. sig { returns(T.nilable(Location)) } def location; end - # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + # The data source used to identify the customer's tax location. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. sig { returns(T.nilable(String)) } def location_source; end def self.inner_class_types @@ -460,7 +460,7 @@ module Stripe @field_remappings = {} end end - # 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. Uses the `location_source` field. + # 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. sig { returns(T.nilable(AutomaticIndirectTax)) } def automatic_indirect_tax; end def self.inner_class_types @@ -2198,6 +2198,90 @@ module Stripe @field_remappings = {} end end + class KonbiniPayments < ::Stripe::StripeObject + class Support < ::Stripe::StripeObject + class Hours < ::Stripe::StripeObject + # Support hours end time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def end_time; end + # Support hours start time (JST time of day) for in `HH:MM` format. + sig { returns(T.nilable(String)) } + def start_time; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Support email address for Konbini payments. + sig { returns(T.nilable(String)) } + def email; end + # Support hours for Konbini payments. + sig { returns(T.nilable(Hours)) } + def hours; end + # Support phone number for Konbini payments. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {hours: Hours} + end + def self.field_remappings + @field_remappings = {} + end + end + # Support for Konbini payments. + sig { returns(T.nilable(Support)) } + def support; end + def self.inner_class_types + @inner_class_types = {support: Support} + end + def self.field_remappings + @field_remappings = {} + end + end + class ScriptStatementDescriptor < ::Stripe::StripeObject + class Kana < ::Stripe::StripeObject + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Kanji < ::Stripe::StripeObject + # 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. + sig { returns(T.nilable(String)) } + def descriptor; end + # 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. + sig { returns(T.nilable(String)) } + def prefix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { returns(T.nilable(Kana)) } + def kana; end + # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + sig { returns(T.nilable(Kanji)) } + def kanji; end + def self.inner_class_types + @inner_class_types = {kana: Kana, kanji: Kanji} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebitPayments < ::Stripe::StripeObject # Creditor ID for SEPA debit payments. sig { returns(T.nilable(String)) } @@ -2287,9 +2371,15 @@ module Stripe # Card payments settings. sig { returns(T.nilable(CardPayments)) } def card_payments; end + # Settings specific to Konbini payments on the account. + sig { returns(T.nilable(KonbiniPayments)) } + def konbini_payments; end # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. sig { returns(T.nilable(String)) } def mcc; end + # Settings for the default text that appears on statements for language variations. + sig { returns(T.nilable(ScriptStatementDescriptor)) } + def script_statement_descriptor; end # Settings used for SEPA debit payments. sig { returns(T.nilable(SepaDebitPayments)) } def sepa_debit_payments; end @@ -2305,6 +2395,8 @@ module Stripe branding: Branding, capabilities: Capabilities, card_payments: CardPayments, + konbini_payments: KonbiniPayments, + script_statement_descriptor: ScriptStatementDescriptor, sepa_debit_payments: SepaDebitPayments, statement_descriptor: StatementDescriptor, support: Support, @@ -2666,6 +2758,37 @@ module Stripe end end class HoldsCurrencies < ::Stripe::StripeObject + class Eur < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class Gbp < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -2759,6 +2882,9 @@ module Stripe @field_remappings = {} end end + # Can hold storage-type funds on Stripe in EUR. + sig { returns(T.nilable(Eur)) } + def eur; end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(Gbp)) } def gbp; end @@ -2769,7 +2895,7 @@ module Stripe sig { returns(T.nilable(Usdc)) } def usdc; end def self.inner_class_types - @inner_class_types = {gbp: Gbp, usd: Usd, usdc: Usdc} + @inner_class_types = {eur: Eur, gbp: Gbp, usd: Usd, usdc: Usdc} end def self.field_remappings @field_remappings = {} @@ -3227,6 +3353,9 @@ module Stripe # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments. sig { returns(String) } def losses_collector; end + # A value indicating responsibility for collecting requirements on this account. + sig { returns(String) } + def requirements_collector; end def self.inner_class_types @inner_class_types = {} end @@ -3253,6 +3382,176 @@ module Stripe @field_remappings = {} end end + class FutureRequirements < ::Stripe::StripeObject + class Entry < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject + # Machine-readable code describing the error. + sig { returns(String) } + def code; end + # Human-readable description of the error. + sig { returns(String) } + def description; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Impact < ::Stripe::StripeObject + class RestrictsCapability < ::Stripe::StripeObject + class Deadline < ::Stripe::StripeObject + # The current status of the requirement's impact. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The name of the Capability which will be restricted. + sig { returns(String) } + def capability; end + # The configuration which specifies the Capability which will be restricted. + sig { returns(String) } + def configuration; end + # Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. + sig { returns(Deadline) } + def deadline; end + def self.inner_class_types + @inner_class_types = {deadline: Deadline} + end + def self.field_remappings + @field_remappings = {} + end + end + # The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. + sig { returns(T.nilable(T::Array[RestrictsCapability])) } + def restricts_capabilities; end + def self.inner_class_types + @inner_class_types = {restricts_capabilities: RestrictsCapability} + end + def self.field_remappings + @field_remappings = {} + end + end + class MinimumDeadline < ::Stripe::StripeObject + # The current status of the requirement's impact. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Reference < ::Stripe::StripeObject + # If `inquiry` is the type, the inquiry token. + sig { returns(T.nilable(String)) } + def inquiry; end + # If `resource` is the type, the resource token. + sig { returns(T.nilable(String)) } + def resource; end + # 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. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class RequestedReason < ::Stripe::StripeObject + # Machine-readable description of Stripe's reason for collecting the requirement. + sig { returns(String) } + def code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the responsibility is with the integrator or with Stripe (to review info, to wait for some condition, etc.) to action the requirement. + sig { returns(String) } + def awaiting_action_from; end + # Machine-readable string describing the requirement. + sig { returns(String) } + def description; end + # Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. + sig { returns(T::Array[Error]) } + def errors; end + # A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. + sig { returns(Impact) } + def impact; end + # The soonest point when the account will be impacted by not providing the requirement. + sig { returns(MinimumDeadline) } + def minimum_deadline; end + # A reference to the location of the requirement. + sig { returns(T.nilable(Reference)) } + def reference; end + # A list of reasons why Stripe is collecting the requirement. + sig { returns(T::Array[RequestedReason]) } + def requested_reasons; end + def self.inner_class_types + @inner_class_types = { + errors: Error, + impact: Impact, + minimum_deadline: MinimumDeadline, + reference: Reference, + requested_reasons: RequestedReason, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class Summary < ::Stripe::StripeObject + class MinimumDeadline < ::Stripe::StripeObject + # The current strictest status of all requirements on the Account. + sig { returns(String) } + def status; end + # The soonest RFC3339 date & time UTC value a requirement can impact the Account. + sig { returns(T.nilable(String)) } + def time; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # 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`. + sig { returns(T.nilable(MinimumDeadline)) } + def minimum_deadline; end + def self.inner_class_types + @inner_class_types = {minimum_deadline: MinimumDeadline} + end + def self.field_remappings + @field_remappings = {} + end + end + # A list of requirements for the Account. + sig { returns(T.nilable(T::Array[Entry])) } + def entries; end + # The time at which the future requirements become effective. + sig { returns(T.nilable(String)) } + def minimum_transition_date; end + # An object containing an overview of requirements for the Account. + sig { returns(T.nilable(Summary)) } + def summary; end + def self.inner_class_types + @inner_class_types = {entries: Entry, summary: Summary} + end + def self.field_remappings + @field_remappings = {} + end + end class Identity < ::Stripe::StripeObject class Attestations < ::Stripe::StripeObject class DirectorshipDeclaration < ::Stripe::StripeObject @@ -3984,14 +4283,28 @@ module Stripe end end class AnnualRevenue < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Amount)) } def amount; end # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. sig { returns(T.nilable(String)) } def fiscal_year_end; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {amount: Amount} end def self.field_remappings @field_remappings = {} @@ -4215,11 +4528,25 @@ module Stripe end end class MonthlyEstimatedRevenue < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # A non-negative integer representing the amount in the smallest currency unit. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(Amount)) } def amount; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {amount: Amount} end def self.field_remappings @field_remappings = {} @@ -4981,7 +5308,8 @@ module Stripe # If `resource` is the type, the resource token. sig { returns(T.nilable(String)) } def resource; end - # The type of the reference. An additional hash is included with a name matching the type. It contains additional information specific to the type. + # 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. sig { returns(String) } def type; end def self.inner_class_types @@ -5061,9 +5389,6 @@ module Stripe @field_remappings = {} end end - # A value indicating responsibility for collecting requirements on this account. - sig { returns(String) } - def collector; end # A list of requirements for the Account. sig { returns(T.nilable(T::Array[Entry])) } def entries; end @@ -5101,6 +5426,9 @@ module Stripe # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. sig { returns(T.nilable(String)) } def display_name; end + # Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when. + sig { returns(T.nilable(FutureRequirements)) } + def future_requirements; end # Unique identifier for the Account. sig { returns(String) } def id; end @@ -5113,7 +5441,7 @@ module Stripe # String representing the object's type. Objects of the same type share the same value of the object field. sig { returns(String) } def object; end - # Information about the requirements for the Account, including what information needs to be collected, and by when. + # Information about the active requirements for the Account, including what information needs to be collected, and by when. sig { returns(T.nilable(Requirements)) } def requirements; end # 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/rbi/stripe/resources/v2/core/account_person_token.rbi b/rbi/stripe/resources/v2/core/account_person_token.rbi new file mode 100644 index 000000000..683415511 --- /dev/null +++ b/rbi/stripe/resources/v2/core/account_person_token.rbi @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + # Person Tokens are single-use tokens which tokenize person information, and are used for creating or updating a Person. + class AccountPersonToken < APIResource + # 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. + sig { returns(String) } + def created; end + # Time at which the token will expire. + sig { returns(String) } + def expires_at; end + # Unique identifier for the token. + sig { returns(String) } + def id; end + # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; end + # Determines if the token has already been used (tokens can only be used once). + sig { returns(T::Boolean) } + def used; end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/v2/core/account_token.rbi b/rbi/stripe/resources/v2/core/account_token.rbi new file mode 100644 index 000000000..864b562be --- /dev/null +++ b/rbi/stripe/resources/v2/core/account_token.rbi @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + # Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + class AccountToken < APIResource + # 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. + sig { returns(String) } + def created; end + # Time at which the token will expire. + sig { returns(String) } + def expires_at; end + # Unique identifier for the token. + sig { returns(String) } + def id; end + # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; end + # Determines if the token has already been used (tokens can only be used once). + sig { returns(T::Boolean) } + def used; end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/v2/core/event.rbi b/rbi/stripe/resources/v2/core/event.rbi index 6414c46ad..2d2d06651 100644 --- a/rbi/stripe/resources/v2/core/event.rbi +++ b/rbi/stripe/resources/v2/core/event.rbi @@ -59,9 +59,6 @@ module Stripe # The type of the event. sig { returns(String) } def type; end - # For interop events, this is the snapshot event ID. - sig { returns(T.nilable(String)) } - def v1_event_id; end end end end diff --git a/rbi/stripe/resources/v2/financial_address_generated_microdeposits.rbi b/rbi/stripe/resources/v2/financial_address_generated_microdeposits.rbi index aa7d6e498..c2e1114e8 100644 --- a/rbi/stripe/resources/v2/financial_address_generated_microdeposits.rbi +++ b/rbi/stripe/resources/v2/financial_address_generated_microdeposits.rbi @@ -5,8 +5,22 @@ module Stripe module V2 class FinancialAddressGeneratedMicrodeposits < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The amounts of the microdeposits that were generated. - sig { returns(T::Array[::Stripe::V2::Amount]) } + sig { returns(T::Array[Amount]) } def amounts; end # String representing the object's type. Objects of the same type share the same value of the object field. sig { returns(String) } diff --git a/rbi/stripe/resources/v2/money_management/adjustment.rbi b/rbi/stripe/resources/v2/money_management/adjustment.rbi index bcc2847a2..4aa2a1b98 100644 --- a/rbi/stripe/resources/v2/money_management/adjustment.rbi +++ b/rbi/stripe/resources/v2/money_management/adjustment.rbi @@ -36,11 +36,25 @@ module Stripe @field_remappings = {} end end + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # If applicable, contains information about the original flow linked to this Adjustment. sig { returns(T.nilable(AdjustedFlow)) } def adjusted_flow; end # The amount of the Adjustment. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # 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. sig { returns(String) } diff --git a/rbi/stripe/resources/v2/money_management/currency_conversion.rbi b/rbi/stripe/resources/v2/money_management/currency_conversion.rbi new file mode 100644 index 000000000..211a9a042 --- /dev/null +++ b/rbi/stripe/resources/v2/money_management/currency_conversion.rbi @@ -0,0 +1,87 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module MoneyManagement + # The CurrencyConversion object. Contains details such as the amount debited and credited and the FinancialAccount the CurrencyConversion was performed on. + class CurrencyConversion < APIResource + class From < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Amount object. + sig { returns(Amount) } + def amount; end + def self.inner_class_types + @inner_class_types = {amount: Amount} + end + def self.field_remappings + @field_remappings = {} + end + end + class To < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Amount object. + sig { returns(Amount) } + def amount; end + def self.inner_class_types + @inner_class_types = {amount: Amount} + end + def self.field_remappings + @field_remappings = {} + end + end + # The time the CurrencyConversion was created at. + sig { returns(String) } + def created; end + # The exchange rate used when processing the CurrencyConversion. + sig { returns(String) } + def exchange_rate; end + # The FinancialAccount the CurrencyConversion was performed on. + sig { returns(String) } + def financial_account; end + # The from block containing what was debited. + sig { returns(From) } + def from; end + # The id of the CurrencyConversion. + sig { returns(String) } + def id; end + # If the CurrencyConversion was performed in livemode or not. + sig { returns(T::Boolean) } + def livemode; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; end + # The to block containing what was credited. + sig { returns(To) } + def to; end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/v2/money_management/financial_account.rbi b/rbi/stripe/resources/v2/money_management/financial_account.rbi index 199bc21fc..5e58f30ea 100644 --- a/rbi/stripe/resources/v2/money_management/financial_account.rbi +++ b/rbi/stripe/resources/v2/money_management/financial_account.rbi @@ -8,17 +8,63 @@ module Stripe # A FinancialAccount represents a balance and can be used as the source or destination for the money management (`/v2/money_management`) APIs. class FinancialAccount < APIResource class Balance < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Balance that can be used for money movement. - sig { returns(T::Hash[String, ::Stripe::V2::Amount]) } + sig { returns(T::Hash[String, Available]) } def available; end # Balance of inbound funds that will later transition to the `available` balance. - sig { returns(T::Hash[String, ::Stripe::V2::Amount]) } + sig { returns(T::Hash[String, InboundPending]) } def inbound_pending; end # Balance of funds that are being used for a pending outbound money movement. - sig { returns(T::Hash[String, ::Stripe::V2::Amount]) } + sig { returns(T::Hash[String, OutboundPending]) } def outbound_pending; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/v2/money_management/inbound_transfer.rbi b/rbi/stripe/resources/v2/money_management/inbound_transfer.rbi index 576cc9546..b443f6b93 100644 --- a/rbi/stripe/resources/v2/money_management/inbound_transfer.rbi +++ b/rbi/stripe/resources/v2/money_management/inbound_transfer.rbi @@ -8,7 +8,35 @@ module Stripe # An InboundTransfer object, representing a money movement from a # user owned PaymentMethod to a FinancialAccount belonging to the same user. class InboundTransfer < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class PaymentMethod < ::Stripe::StripeObject # The type of object this destination represents. For a us bank account, we expect us_bank_account. sig { returns(String) } @@ -24,27 +52,41 @@ module Stripe end end # The amount in specified currency that was debited from the Payment Method. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The Payment Method object used to create the InboundTransfer. sig { returns(PaymentMethod) } def payment_method; end def self.inner_class_types - @inner_class_types = {payment_method: PaymentMethod} + @inner_class_types = {debited: Debited, payment_method: PaymentMethod} end def self.field_remappings @field_remappings = {} end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The amount by which the FinancialAccount balance is credited. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The FinancialAccount that funds will land in. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} @@ -114,7 +156,7 @@ module Stripe end end # The amount in specified currency that will land in the FinancialAccount balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Creation time of the InboundTransfer. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(String) } diff --git a/rbi/stripe/resources/v2/money_management/outbound_payment.rbi b/rbi/stripe/resources/v2/money_management/outbound_payment.rbi index 79414ca6b..3fedb4175 100644 --- a/rbi/stripe/resources/v2/money_management/outbound_payment.rbi +++ b/rbi/stripe/resources/v2/money_management/outbound_payment.rbi @@ -7,6 +7,20 @@ module Stripe module MoneyManagement # OutboundPayment represents a single money movement from one FinancialAccount you own to a payout method someone else owns. class OutboundPayment < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -19,14 +33,28 @@ module Stripe end end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The FinancialAccount that funds were pulled from. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {debited: Debited} end def self.field_remappings @field_remappings = {} @@ -105,8 +133,22 @@ module Stripe end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The payout method which the OutboundPayment uses to send payout. sig { returns(String) } @@ -115,7 +157,7 @@ module Stripe sig { returns(String) } def recipient; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} @@ -139,7 +181,7 @@ module Stripe end end # The "presentment amount" for the OutboundPayment. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Returns true if the OutboundPayment can be canceled, and false otherwise. sig { returns(T::Boolean) } diff --git a/rbi/stripe/resources/v2/money_management/outbound_payment_quote.rbi b/rbi/stripe/resources/v2/money_management/outbound_payment_quote.rbi index 184d2e82a..5ee975835 100644 --- a/rbi/stripe/resources/v2/money_management/outbound_payment_quote.rbi +++ b/rbi/stripe/resources/v2/money_management/outbound_payment_quote.rbi @@ -7,6 +7,20 @@ module Stripe module MoneyManagement # OutboundPaymentQuote represents a quote that provides fee and amount estimates for OutboundPayment. class OutboundPaymentQuote < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -19,28 +33,56 @@ module Stripe end end class EstimatedFee < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The fee amount for corresponding fee type. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # The fee type. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {amount: Amount} end def self.field_remappings @field_remappings = {} end end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The FinancialAccount that funds were pulled from. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {debited: Debited} end def self.field_remappings @field_remappings = {} @@ -81,8 +123,22 @@ module Stripe end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The payout method which the OutboundPayment uses to send payout. sig { returns(String) } @@ -91,14 +147,14 @@ module Stripe sig { returns(String) } def recipient; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} end end # The "presentment amount" for the OutboundPaymentQuote. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Time at which the OutboundPaymentQuote was created. # Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. diff --git a/rbi/stripe/resources/v2/money_management/outbound_transfer.rbi b/rbi/stripe/resources/v2/money_management/outbound_transfer.rbi index 56527e8b2..d99d7d3bd 100644 --- a/rbi/stripe/resources/v2/money_management/outbound_transfer.rbi +++ b/rbi/stripe/resources/v2/money_management/outbound_transfer.rbi @@ -7,6 +7,20 @@ module Stripe module MoneyManagement # OutboundTransfer represents a single money movement from one FinancialAccount you own to a payout method you also own. class OutboundTransfer < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class DeliveryOptions < ::Stripe::StripeObject # Open Enum. Method for bank account. sig { returns(T.nilable(String)) } @@ -19,14 +33,28 @@ module Stripe end end class From < ::Stripe::StripeObject + class Debited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount debited from the sender, only set on responses. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Debited) } def debited; end # The FinancialAccount that funds were pulled from. sig { returns(String) } def financial_account; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {debited: Debited} end def self.field_remappings @field_remappings = {} @@ -93,14 +121,28 @@ module Stripe end end class To < ::Stripe::StripeObject + class Credited < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The monetary amount being credited to the destination. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Credited) } def credited; end # The payout method which the OutboundTransfer uses to send payout. sig { returns(String) } def payout_method; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {credited: Credited} end def self.field_remappings @field_remappings = {} @@ -124,7 +166,7 @@ module Stripe end end # The "presentment amount" for the OutboundTransfer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Returns true if the OutboundTransfer can be canceled, and false otherwise. sig { returns(T::Boolean) } diff --git a/rbi/stripe/resources/v2/money_management/received_credit.rbi b/rbi/stripe/resources/v2/money_management/received_credit.rbi index 5b578e2a9..ecf3da97a 100644 --- a/rbi/stripe/resources/v2/money_management/received_credit.rbi +++ b/rbi/stripe/resources/v2/money_management/received_credit.rbi @@ -7,6 +7,34 @@ module Stripe module MoneyManagement # Use ReceivedCredits API to retrieve information on when, where, and how funds are sent into your FinancialAccount. class ReceivedCredit < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ExternalAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class StatusDetails < ::Stripe::StripeObject class Failed < ::Stripe::StripeObject # Open Enum. The `failed` status reason. @@ -186,7 +214,7 @@ module Stripe end end # The amount and currency of the ReceivedCredit. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # Time at which the ReceivedCredit was created. # Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. @@ -196,7 +224,7 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # The amount and currency of the original/external credit request. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(ExternalAmount)) } def external_amount; end # Financial Account ID on which funds for ReceivedCredit were received. sig { returns(String) } diff --git a/rbi/stripe/resources/v2/money_management/received_debit.rbi b/rbi/stripe/resources/v2/money_management/received_debit.rbi index 42bc8e57f..059a48d2b 100644 --- a/rbi/stripe/resources/v2/money_management/received_debit.rbi +++ b/rbi/stripe/resources/v2/money_management/received_debit.rbi @@ -7,6 +7,34 @@ module Stripe module MoneyManagement # ReceivedDebit resource class ReceivedDebit < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ExternalAmount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class StatusDetails < ::Stripe::StripeObject class Failed < ::Stripe::StripeObject # Open Enum. The reason for the failure of the ReceivedDebit. @@ -91,7 +119,7 @@ module Stripe end end # Amount and currency of the ReceivedDebit. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # The time at which the ReceivedDebit was created. # Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. @@ -101,7 +129,7 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # The amount and currency of the original/external debit request. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(ExternalAmount)) } def external_amount; end # Financial Account on which funds for ReceivedDebit were debited. sig { returns(String) } diff --git a/rbi/stripe/resources/v2/money_management/transaction.rbi b/rbi/stripe/resources/v2/money_management/transaction.rbi index a7edb3c84..655b647aa 100644 --- a/rbi/stripe/resources/v2/money_management/transaction.rbi +++ b/rbi/stripe/resources/v2/money_management/transaction.rbi @@ -7,18 +7,78 @@ module Stripe module MoneyManagement # Use Transactions to view changes to your FinancialAccount balance over time. Every flow that moves money, such as OutboundPayments or ReceivedCredits, will have one or more Transactions that describes how the flow impacted your balance. Note that while the FinancialAccount balance will always be up to date, be aware that Transactions and TransactionEntries are created shortly after to reflect changes. class Transaction < APIResource + class Amount < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class BalanceImpact < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Impact to the available balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Available) } def available; end # Impact to the inbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(InboundPending) } def inbound_pending; end # Impact to the outbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(OutboundPending) } def outbound_pending; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings @field_remappings = {} @@ -74,7 +134,7 @@ module Stripe end end # The amount of the Transaction. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Amount) } def amount; end # The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its # TransactionEntries that have `effective_at`s in the past. diff --git a/rbi/stripe/resources/v2/money_management/transaction_entry.rbi b/rbi/stripe/resources/v2/money_management/transaction_entry.rbi index 99277f81b..d063b25da 100644 --- a/rbi/stripe/resources/v2/money_management/transaction_entry.rbi +++ b/rbi/stripe/resources/v2/money_management/transaction_entry.rbi @@ -8,17 +8,63 @@ module Stripe # TransactionEntries represent individual money movements across different states within a Transaction. class TransactionEntry < APIResource class BalanceImpact < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class OutboundPending < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Impact to the available balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(Available) } def available; end # Impact to the inbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(InboundPending) } def inbound_pending; end # Impact to the outbound_pending balance. - sig { returns(::Stripe::V2::Amount) } + sig { returns(OutboundPending) } def outbound_pending; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { + available: Available, + inbound_pending: InboundPending, + outbound_pending: OutboundPending, + } end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/v2/payments/off_session_payment.rbi b/rbi/stripe/resources/v2/payments/off_session_payment.rbi index 89617baa1..6e20c8d9d 100644 --- a/rbi/stripe/resources/v2/payments/off_session_payment.rbi +++ b/rbi/stripe/resources/v2/payments/off_session_payment.rbi @@ -7,86 +7,29 @@ module Stripe module Payments # OffSessionPayment resource. class OffSessionPayment < APIResource - class AmountDetails < ::Stripe::StripeObject - class LineItem < ::Stripe::StripeObject - class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end - # The amount an item was discounted for. Positive integer. - sig { returns(T.nilable(Integer)) } - def discount_amount; end - # Unique identifier of the product. At most 12 characters long. - sig { returns(T.nilable(String)) } - def product_code; end - # Name of the product. At most 100 characters long. - sig { returns(String) } - def product_name; end - # Number of items of the product. Positive integer. - sig { returns(Integer) } - def quantity; end - # Contains information about the tax on the item. - sig { returns(T.nilable(Tax)) } - def tax; end - # Cost of the product. Non-negative integer. - sig { returns(Integer) } - def unit_cost; end - def self.inner_class_types - @inner_class_types = {tax: Tax} - end - def self.field_remappings - @field_remappings = {} - end - end - class Shipping < ::Stripe::StripeObject - # Portion of the amount that is for shipping. - sig { returns(T.nilable(Integer)) } - def amount; end - # The postal code that represents the shipping source. - sig { returns(T.nilable(String)) } - def from_postal_code; end - # The postal code that represents the shipping destination. - sig { returns(T.nilable(String)) } - def to_postal_code; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end + class AmountCapturable < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + sig { returns(T.nilable(Integer)) } + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end + def self.inner_class_types + @inner_class_types = {} end - class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. - sig { returns(T.nilable(Integer)) } - def total_tax_amount; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end + def self.field_remappings + @field_remappings = {} end - # The amount the total transaction was discounted for. + end + class AmountRequested < ::Stripe::StripeObject + # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). sig { returns(T.nilable(Integer)) } - def discount_amount; end - # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - sig { returns(T::Array[LineItem]) } - def line_items; end - # Contains information about the shipping portion of the amount. - sig { returns(T.nilable(Shipping)) } - def shipping; end - # Contains information about the tax portion of the amount. - sig { returns(T.nilable(Tax)) } - def tax; end + def value; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(T.nilable(String)) } + def currency; end def self.inner_class_types - @inner_class_types = {line_items: LineItem, shipping: Shipping, tax: Tax} + @inner_class_types = {} end def self.field_remappings @field_remappings = {} @@ -139,7 +82,7 @@ module Stripe # 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_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), + # [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), # and must be a positive integer representing how much to transfer in the smallest # currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } @@ -156,13 +99,10 @@ module Stripe end end # The amount available to be captured. - sig { returns(T.nilable(::Stripe::V2::Amount)) } + sig { returns(T.nilable(AmountCapturable)) } def amount_capturable; end - # Provides industry-specific information about the amount. - sig { returns(T.nilable(AmountDetails)) } - def amount_details; end # The “presentment amount” to be collected from the customer. - sig { returns(::Stripe::V2::Amount) } + sig { returns(AmountRequested) } def amount_requested; end # The frequency of the underlying payment. sig { returns(String) } @@ -170,9 +110,6 @@ module Stripe # Details about the capture configuration for the OffSessionPayment. sig { returns(T.nilable(Capture)) } def capture; end - # Whether the OffSessionPayment should be captured automatically or manually. - sig { returns(T.nilable(String)) } - def capture_method; end # ID of the owning compartment. sig { returns(String) } def compartment_id; end @@ -198,10 +135,10 @@ module Stripe # Has the value true if the object exists in live mode or the value false if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end - # Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). + # [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). sig { returns(T::Hash[String, String]) } def metadata; end # String representing the object's type. Objects of the same type share the same value of the object field. @@ -240,7 +177,7 @@ module Stripe # Test clock that can be used to advance the retry attempts in a sandbox. sig { returns(T.nilable(String)) } def test_clock; end - # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). + # The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). sig { returns(T.nilable(TransferData)) } def transfer_data; end end diff --git a/rbi/stripe/services/payment_method_service.rbi b/rbi/stripe/services/payment_method_service.rbi index 61dbd8bd1..d0ddb1d5d 100644 --- a/rbi/stripe/services/payment_method_service.rbi +++ b/rbi/stripe/services/payment_method_service.rbi @@ -22,7 +22,7 @@ module Stripe } def attach(payment_method, params = {}, opts = {}); end - # Retrieves a payment method's balance. + # Retrieves a PaymentMethod's Balance. sig { params(payment_method: String, params: T.any(::Stripe::PaymentMethodCheckBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodBalance) } diff --git a/rbi/stripe/services/v2/core/account_service.rbi b/rbi/stripe/services/v2/core/account_service.rbi index 24f9aee14..31db79c96 100644 --- a/rbi/stripe/services/v2/core/account_service.rbi +++ b/rbi/stripe/services/v2/core/account_service.rbi @@ -7,6 +7,7 @@ module Stripe module Core class AccountService < StripeService attr_reader :persons + attr_reader :person_tokens # 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. sig { params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account) diff --git a/rbi/stripe/services/v2/core/account_token_service.rbi b/rbi/stripe/services/v2/core/account_token_service.rbi new file mode 100644 index 000000000..b8e484959 --- /dev/null +++ b/rbi/stripe/services/v2/core/account_token_service.rbi @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + class AccountTokenService < StripeService + # Creates an Account Token. + sig { + params(params: T.any(::Stripe::V2::Core::AccountTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken) + } + def create(params = {}, opts = {}); end + + # Retrieves an Account Token. + sig { + params(id: String, params: T.any(::Stripe::V2::Core::AccountTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/v2/core/accounts/person_token_service.rbi b/rbi/stripe/services/v2/core/accounts/person_token_service.rbi new file mode 100644 index 000000000..401dd9eef --- /dev/null +++ b/rbi/stripe/services/v2/core/accounts/person_token_service.rbi @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + module Accounts + class PersonTokenService < StripeService + # Creates a Person Token associated with an Account. + sig { + params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken) + } + def create(account_id, params = {}, opts = {}); end + + # Retrieves a Person Token associated with an Account. + sig { + params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken) + } + def retrieve(account_id, id, params = {}, opts = {}); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/v2/core_service.rbi b/rbi/stripe/services/v2/core_service.rbi index 9bea02478..877572715 100644 --- a/rbi/stripe/services/v2/core_service.rbi +++ b/rbi/stripe/services/v2/core_service.rbi @@ -7,6 +7,7 @@ module Stripe class CoreService < StripeService attr_reader :accounts attr_reader :account_links + attr_reader :account_tokens attr_reader :claimable_sandboxes attr_reader :events attr_reader :event_destinations diff --git a/rbi/stripe/services/v2/money_management/currency_conversion_service.rbi b/rbi/stripe/services/v2/money_management/currency_conversion_service.rbi new file mode 100644 index 000000000..f33408ef9 --- /dev/null +++ b/rbi/stripe/services/v2/money_management/currency_conversion_service.rbi @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module MoneyManagement + class CurrencyConversionService < StripeService + # Create a CurrencyConversion. + # + # ** raises FeatureNotEnabledError + sig { + params(params: T.any(::Stripe::V2::MoneyManagement::CurrencyConversionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::CurrencyConversion) + } + def create(params = {}, opts = {}); end + + # List all CurrencyConversion on an account with the option to filter by FinancialAccount. + sig { + params(params: T.any(::Stripe::V2::MoneyManagement::CurrencyConversionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieve details of a CurrencyConversion by id. + sig { + params(id: String, params: T.any(::Stripe::V2::MoneyManagement::CurrencyConversionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::CurrencyConversion) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/v2/money_management_service.rbi b/rbi/stripe/services/v2/money_management_service.rbi index 92d165e7c..38a371e3e 100644 --- a/rbi/stripe/services/v2/money_management_service.rbi +++ b/rbi/stripe/services/v2/money_management_service.rbi @@ -6,6 +6,7 @@ module Stripe module V2 class MoneyManagementService < StripeService attr_reader :adjustments + attr_reader :currency_conversions attr_reader :financial_accounts attr_reader :financial_addresses attr_reader :inbound_transfers diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 50ce7ea32..fb88d8cc9 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -985,7 +985,7 @@ class CodegennedExampleTest < Test::Unit::TestCase end should "Test core events get (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events/ll_123").to_return( - body: '{"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","v1_event_id":"v1_event_id"}' + body: '{"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"}' ) client = Stripe::StripeClient.new("sk_test_123") @@ -8796,6 +8796,35 @@ class CodegennedExampleTest < Test::Unit::TestCase account_person = client.v2.core.accounts.persons.update("account_id_123", "id_123") assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/accounts/account_id_123/persons/id_123" end + should "Test v2 core accounts person token post (service)" do + stub_request( + :post, + "#{Stripe::DEFAULT_API_BASE}/v2/core/accounts/account_id_123/person_tokens" + ).to_return( + body: '{"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}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + account_person_token = client.v2.core.accounts.person_tokens.create("account_id_123") + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/accounts/account_id_123/person_tokens" + end + should "Test v2 core accounts person token get (service)" do + stub_request( + :get, + "#{Stripe::DEFAULT_API_BASE}/v2/core/accounts/account_id_123/person_tokens/id_123" + ).to_return( + body: '{"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}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + account_person_token = client.v2.core.accounts.person_tokens.retrieve( + "account_id_123", + "id_123" + ) + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/accounts/account_id_123/person_tokens/id_123" + end should "Test v2 core account link post (service)" do stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/core/account_links").to_return( body: '{"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}', @@ -8829,6 +8858,295 @@ class CodegennedExampleTest < Test::Unit::TestCase }) assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/account_links" end + should "Test v2 core account token post (service)" do + stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/core/account_tokens").to_return( + body: '{"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}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + account_token = client.v2.core.account_tokens.create({ + identity: { + attestations: { + directorship_declaration: { attested: true }, + ownership_declaration: { attested: true }, + persons_provided: { + directors: true, + executives: true, + owners: true, + ownership_exemption_reason: "qualified_entity_exceeds_ownership_threshold", + }, + representative_declaration: { attested: true }, + terms_of_service: { + account: { shown_and_accepted: true }, + card_creator: { + commercial: { + account_holder: { shown_and_accepted: true }, + celtic: { + apple_pay: { shown_and_accepted: true }, + charge_card: { + bank_terms: { shown_and_accepted: true }, + platform: { shown_and_accepted: true }, + }, + spend_card: { + bank_terms: { shown_and_accepted: true }, + financing_disclosures: { shown_and_accepted: true }, + platform: { shown_and_accepted: true }, + }, + }, + cross_river_bank: { + apple_pay: { shown_and_accepted: true }, + charge_card: { + bank_terms: { shown_and_accepted: true }, + financing_disclosures: { shown_and_accepted: true }, + platform: { shown_and_accepted: true }, + }, + spend_card: { + bank_terms: { shown_and_accepted: true }, + financing_disclosures: { shown_and_accepted: true }, + }, + }, + }, + }, + crypto_storer: { shown_and_accepted: true }, + storer: { shown_and_accepted: true }, + }, + }, + business_details: { + address: { + city: "city", + country: "country", + line1: "line1", + line2: "line2", + postal_code: "postal_code", + state: "state", + town: "town", + }, + annual_revenue: { + amount: { + value: 111_972_721, + currency: "usd", + }, + fiscal_year_end: "fiscal_year_end", + }, + compliance_screening_description: "compliance_screening_description", + documents: { + bank_account_ownership_verification: { + files: ["files"], + type: "files", + }, + company_license: { + files: ["files"], + type: "files", + }, + company_memorandum_of_association: { + files: ["files"], + type: "files", + }, + company_ministerial_decree: { + files: ["files"], + type: "files", + }, + company_registration_verification: { + files: ["files"], + type: "files", + }, + company_tax_id_verification: { + files: ["files"], + type: "files", + }, + primary_verification: { + front_back: { + back: "back", + front: "front", + }, + type: "front_back", + }, + proof_of_address: { + files: ["files"], + type: "files", + }, + proof_of_registration: { + files: ["files"], + type: "files", + }, + proof_of_ultimate_beneficial_ownership: { + files: ["files"], + type: "files", + }, + }, + estimated_worker_count: 884_794_319, + id_numbers: [ + { + registrar: "registrar", + type: "th_prn", + value: "value", + }, + ], + monthly_estimated_revenue: { + amount: { + value: 111_972_721, + currency: "usd", + }, + }, + phone: "phone", + registered_name: "registered_name", + script_addresses: { + kana: { + city: "city", + country: "country", + line1: "line1", + line2: "line2", + postal_code: "postal_code", + state: "state", + town: "town", + }, + kanji: { + city: "city", + country: "country", + line1: "line1", + line2: "line2", + postal_code: "postal_code", + state: "state", + town: "town", + }, + }, + script_names: { + kana: { registered_name: "registered_name" }, + kanji: { registered_name: "registered_name" }, + }, + structure: "public_listed_corporation", + }, + entity_type: "individual", + individual: { + additional_addresses: [ + { + city: "city", + country: "country", + line1: "line1", + line2: "line2", + postal_code: "postal_code", + purpose: "registered", + state: "state", + town: "town", + }, + ], + additional_names: [ + { + full_name: "full_name", + given_name: "given_name", + purpose: "alias", + surname: "surname", + }, + ], + address: { + city: "city", + country: "country", + line1: "line1", + line2: "line2", + postal_code: "postal_code", + state: "state", + town: "town", + }, + date_of_birth: { + day: 99_228, + month: 104_080_000, + year: 3_704_893, + }, + documents: { + company_authorization: { + files: ["files"], + type: "files", + }, + passport: { + files: ["files"], + type: "files", + }, + primary_verification: { + front_back: { + back: "back", + front: "front", + }, + type: "front_back", + }, + secondary_verification: { + front_back: { + back: "back", + front: "front", + }, + type: "front_back", + }, + visa: { + files: ["files"], + type: "files", + }, + }, + email: "email", + given_name: "given_name", + id_numbers: [ + { + type: "th_lc", + value: "value", + }, + ], + legal_gender: "male", + metadata: { key: "metadata" }, + nationalities: ["nationalities"], + phone: "phone", + political_exposure: "none", + relationship: { + director: true, + executive: true, + owner: true, + percent_ownership: "percent_ownership", + title: "title", + }, + script_addresses: { + kana: { + city: "city", + country: "country", + line1: "line1", + line2: "line2", + postal_code: "postal_code", + state: "state", + town: "town", + }, + kanji: { + city: "city", + country: "country", + line1: "line1", + line2: "line2", + postal_code: "postal_code", + state: "state", + town: "town", + }, + }, + script_names: { + kana: { + given_name: "given_name", + surname: "surname", + }, + kanji: { + given_name: "given_name", + surname: "surname", + }, + }, + surname: "surname", + }, + }, + }) + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/account_tokens" + end + should "Test v2 core account token get (service)" do + stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/account_tokens/id_123").to_return( + body: '{"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}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + account_token = client.v2.core.account_tokens.retrieve("id_123") + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/account_tokens/id_123" + end should "Test v2 core claimable sandbox post (service)" do stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/core/claimable_sandboxes").to_return( body: '{"created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.core.claimable_sandbox","prefill":{"country":"country","email":"email","name":"name"},"sandbox_details":{"account":"account"},"status":"claimed","livemode":true}', @@ -9140,7 +9458,7 @@ class CodegennedExampleTest < Test::Unit::TestCase end should "Test v2 money management adjustment get (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/adjustments").to_return( - body: '{"data":[{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.adjustment","livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount":{},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.adjustment","livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9153,7 +9471,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/adjustments/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.adjustment","livemode":true}', + body: '{"amount":{},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.adjustment","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9161,12 +9479,67 @@ class CodegennedExampleTest < Test::Unit::TestCase adjustment = client.v2.money_management.adjustments.retrieve("id_123") assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/adjustments/id_123" end + should "Test v2 money management currency conversion get (service)" do + stub_request( + :get, + "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions" + ).to_return( + body: '{"data":[{"created":"1970-01-12T21:42:34.472Z","exchange_rate":"exchange_rate","financial_account":"financial_account","from":{"amount":{}},"id":"obj_123","livemode":true,"object":"v2.money_management.currency_conversion","to":{"amount":{}}}],"next_page_url":null,"previous_page_url":null}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + currency_conversions = client.v2.money_management.currency_conversions.list + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions" + end + should "Test v2 money management currency conversion post (service)" do + stub_request( + :post, + "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions" + ).to_return( + body: '{"created":"1970-01-12T21:42:34.472Z","exchange_rate":"exchange_rate","financial_account":"financial_account","from":{"amount":{}},"id":"obj_123","livemode":true,"object":"v2.money_management.currency_conversion","to":{"amount":{}}}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + currency_conversion = client.v2.money_management.currency_conversions.create({ + financial_account: "financial_account", + from: { + amount: { + value: 111_972_721, + currency: "usd", + }, + currency: "usd", + }, + to: { + amount: { + value: 111_972_721, + currency: "usd", + }, + currency: "usd", + }, + }) + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions" + end + should "Test v2 money management currency conversion get 2 (service)" do + stub_request( + :get, + "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions/id_123" + ).to_return( + body: '{"created":"1970-01-12T21:42:34.472Z","exchange_rate":"exchange_rate","financial_account":"financial_account","from":{"amount":{}},"id":"obj_123","livemode":true,"object":"v2.money_management.currency_conversion","to":{"amount":{}}}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + currency_conversion = client.v2.money_management.currency_conversions.retrieve("id_123") + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions/id_123" + end should "Test v2 money management financial account get (service)" do stub_request( :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts" ).to_return( - body: '{"data":[{"balance":{"available":{"key":{"currency":"USD","value":35}},"inbound_pending":{"key":{"currency":"USD","value":11}},"outbound_pending":{"key":{"currency":"USD","value":60}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"balance":{"available":{"key":{}},"inbound_pending":{"key":{}},"outbound_pending":{"key":{}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9179,7 +9552,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts" ).to_return( - body: '{"balance":{"available":{"key":{"currency":"USD","value":35}},"inbound_pending":{"key":{"currency":"USD","value":11}},"outbound_pending":{"key":{"currency":"USD","value":60}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', + body: '{"balance":{"available":{"key":{}},"inbound_pending":{"key":{}},"outbound_pending":{"key":{}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9192,7 +9565,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts/id_123" ).to_return( - body: '{"balance":{"available":{"key":{"currency":"USD","value":35}},"inbound_pending":{"key":{"currency":"USD","value":11}},"outbound_pending":{"key":{"currency":"USD","value":60}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', + body: '{"balance":{"available":{"key":{}},"inbound_pending":{"key":{}},"outbound_pending":{"key":{}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9205,7 +9578,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts/id_123" ).to_return( - body: '{"balance":{"available":{"key":{"currency":"USD","value":35}},"inbound_pending":{"key":{"currency":"USD","value":11}},"outbound_pending":{"key":{"currency":"USD","value":60}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', + body: '{"balance":{"available":{"key":{}},"inbound_pending":{"key":{}},"outbound_pending":{"key":{}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9218,7 +9591,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts/id_123/close" ).to_return( - body: '{"balance":{"available":{"key":{"currency":"USD","value":35}},"inbound_pending":{"key":{"currency":"USD","value":11}},"outbound_pending":{"key":{"currency":"USD","value":60}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', + body: '{"balance":{"available":{"key":{}},"inbound_pending":{"key":{}},"outbound_pending":{"key":{}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9273,7 +9646,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/inbound_transfers" ).to_return( - body: '{"data":[{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","description":"description","from":{"debited":{"currency":"USD","value":55},"payment_method":{"type":"type"}},"id":"obj_123","object":"v2.money_management.inbound_transfer","to":{"credited":{"currency":"USD","value":68},"financial_account":"financial_account"},"transfer_history":[{"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","level":"canonical","type":"bank_debit_failed"}],"livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount":{},"created":"1970-01-12T21:42:34.472Z","description":"description","from":{"debited":{},"payment_method":{"type":"type"}},"id":"obj_123","object":"v2.money_management.inbound_transfer","to":{"credited":{},"financial_account":"financial_account"},"transfer_history":[{"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","level":"canonical","type":"bank_debit_failed"}],"livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9286,15 +9659,15 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/inbound_transfers" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","description":"description","from":{"debited":{"currency":"USD","value":55},"payment_method":{"type":"type"}},"id":"obj_123","object":"v2.money_management.inbound_transfer","to":{"credited":{"currency":"USD","value":68},"financial_account":"financial_account"},"transfer_history":[{"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","level":"canonical","type":"bank_debit_failed"}],"livemode":true}', + body: '{"amount":{},"created":"1970-01-12T21:42:34.472Z","description":"description","from":{"debited":{},"payment_method":{"type":"type"}},"id":"obj_123","object":"v2.money_management.inbound_transfer","to":{"credited":{},"financial_account":"financial_account"},"transfer_history":[{"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","level":"canonical","type":"bank_debit_failed"}],"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") inbound_transfer = client.v2.money_management.inbound_transfers.create({ amount: { - currency: "USD", - value: 96, + value: 111_972_721, + currency: "usd", }, from: { currency: "usd", @@ -9312,7 +9685,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/inbound_transfers/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","description":"description","from":{"debited":{"currency":"USD","value":55},"payment_method":{"type":"type"}},"id":"obj_123","object":"v2.money_management.inbound_transfer","to":{"credited":{"currency":"USD","value":68},"financial_account":"financial_account"},"transfer_history":[{"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","level":"canonical","type":"bank_debit_failed"}],"livemode":true}', + body: '{"amount":{},"created":"1970-01-12T21:42:34.472Z","description":"description","from":{"debited":{},"payment_method":{"type":"type"}},"id":"obj_123","object":"v2.money_management.inbound_transfer","to":{"credited":{},"financial_account":"financial_account"},"transfer_history":[{"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","level":"canonical","type":"bank_debit_failed"}],"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9325,7 +9698,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_payments" ).to_return( - body: '{"data":[{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9338,15 +9711,15 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_payments" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}', + body: '{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") outbound_payment = client.v2.money_management.outbound_payments.create({ amount: { - currency: "USD", - value: 96, + value: 111_972_721, + currency: "usd", }, from: { currency: "usd", @@ -9365,7 +9738,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_payments/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}', + body: '{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9378,7 +9751,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_payments/id_123/cancel" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}', + body: '{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_payment","recipient_notification":{"setting":"configured"},"statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method","recipient":"recipient"},"trace_id":{"status":"pending"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9391,15 +9764,15 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_payment_quotes" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","estimated_fees":[{"amount":{"currency":"USD","value":96},"type":"cross_border_payout_fee"}],"from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"fx_quote":{"lock_duration":"five_minutes","lock_status":"active","rates":{"key":{"exchange_rate":"exchange_rate"}},"to_currency":"usd"},"id":"obj_123","object":"v2.money_management.outbound_payment_quote","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method","recipient":"recipient"},"livemode":true}', + body: '{"amount":{},"created":"1970-01-12T21:42:34.472Z","estimated_fees":[{"amount":{},"type":"cross_border_payout_fee"}],"from":{"debited":{},"financial_account":"financial_account"},"fx_quote":{"lock_duration":"five_minutes","lock_status":"active","rates":{"key":{"exchange_rate":"exchange_rate"}},"to_currency":"usd"},"id":"obj_123","object":"v2.money_management.outbound_payment_quote","to":{"credited":{},"payout_method":"payout_method","recipient":"recipient"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") outbound_payment_quote = client.v2.money_management.outbound_payment_quotes.create({ amount: { - currency: "USD", - value: 96, + value: 111_972_721, + currency: "usd", }, from: { currency: "usd", @@ -9418,7 +9791,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_payment_quotes/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","estimated_fees":[{"amount":{"currency":"USD","value":96},"type":"cross_border_payout_fee"}],"from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"fx_quote":{"lock_duration":"five_minutes","lock_status":"active","rates":{"key":{"exchange_rate":"exchange_rate"}},"to_currency":"usd"},"id":"obj_123","object":"v2.money_management.outbound_payment_quote","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method","recipient":"recipient"},"livemode":true}', + body: '{"amount":{},"created":"1970-01-12T21:42:34.472Z","estimated_fees":[{"amount":{},"type":"cross_border_payout_fee"}],"from":{"debited":{},"financial_account":"financial_account"},"fx_quote":{"lock_duration":"five_minutes","lock_status":"active","rates":{"key":{"exchange_rate":"exchange_rate"}},"to_currency":"usd"},"id":"obj_123","object":"v2.money_management.outbound_payment_quote","to":{"credited":{},"payout_method":"payout_method","recipient":"recipient"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9496,7 +9869,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_transfers" ).to_return( - body: '{"data":[{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9509,15 +9882,15 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_transfers" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}', + body: '{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") outbound_transfer = client.v2.money_management.outbound_transfers.create({ amount: { - currency: "USD", - value: 96, + value: 111_972_721, + currency: "usd", }, from: { currency: "usd", @@ -9535,7 +9908,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_transfers/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}', + body: '{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9548,7 +9921,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/outbound_transfers/id_123/cancel" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{"currency":"USD","value":55},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{"currency":"USD","value":68},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}', + body: '{"amount":{},"cancelable":true,"created":"1970-01-12T21:42:34.472Z","from":{"debited":{},"financial_account":"financial_account"},"id":"obj_123","object":"v2.money_management.outbound_transfer","statement_descriptor":"statement_descriptor","status":"canceled","to":{"credited":{},"payout_method":"payout_method"},"trace_id":{"status":"pending"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9626,7 +9999,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/received_credits" ).to_return( - body: '{"data":[{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_credit","status":"returned","type":"balance_transfer","livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount":{},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_credit","status":"returned","type":"balance_transfer","livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9639,7 +10012,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/received_credits/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_credit","status":"returned","type":"balance_transfer","livemode":true}', + body: '{"amount":{},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_credit","status":"returned","type":"balance_transfer","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9652,7 +10025,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/received_debits" ).to_return( - body: '{"data":[{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_debit","status":"canceled","type":"bank_transfer","livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount":{},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_debit","status":"canceled","type":"bank_transfer","livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9665,7 +10038,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/received_debits/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_debit","status":"canceled","type":"bank_transfer","livemode":true}', + body: '{"amount":{},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.received_debit","status":"canceled","type":"bank_transfer","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9716,7 +10089,7 @@ class CodegennedExampleTest < Test::Unit::TestCase end should "Test v2 money management transaction get (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/transactions").to_return( - body: '{"data":[{"amount":{"currency":"USD","value":96},"balance_impact":{"available":{"currency":"USD","value":35},"inbound_pending":{"currency":"USD","value":11},"outbound_pending":{"currency":"USD","value":60}},"category":"received_debit","created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","flow":{"type":"fee_transaction"},"id":"obj_123","object":"v2.money_management.transaction","status":"pending","status_transitions":{},"livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount":{},"balance_impact":{"available":{},"inbound_pending":{},"outbound_pending":{}},"category":"received_debit","created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","flow":{"type":"fee_transaction"},"id":"obj_123","object":"v2.money_management.transaction","status":"pending","status_transitions":{},"livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9729,7 +10102,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/transactions/id_123" ).to_return( - body: '{"amount":{"currency":"USD","value":96},"balance_impact":{"available":{"currency":"USD","value":35},"inbound_pending":{"currency":"USD","value":11},"outbound_pending":{"currency":"USD","value":60}},"category":"received_debit","created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","flow":{"type":"fee_transaction"},"id":"obj_123","object":"v2.money_management.transaction","status":"pending","status_transitions":{},"livemode":true}', + body: '{"amount":{},"balance_impact":{"available":{},"inbound_pending":{},"outbound_pending":{}},"category":"received_debit","created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","flow":{"type":"fee_transaction"},"id":"obj_123","object":"v2.money_management.transaction","status":"pending","status_transitions":{},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9742,7 +10115,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/transaction_entries" ).to_return( - body: '{"data":[{"balance_impact":{"available":{"currency":"USD","value":35},"inbound_pending":{"currency":"USD","value":11},"outbound_pending":{"currency":"USD","value":60}},"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","object":"v2.money_management.transaction_entry","transaction":"transaction","transaction_details":{"category":"received_debit","financial_account":"financial_account","flow":{"type":"fee_transaction"}},"livemode":true}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"balance_impact":{"available":{},"inbound_pending":{},"outbound_pending":{}},"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","object":"v2.money_management.transaction_entry","transaction":"transaction","transaction_details":{"category":"received_debit","financial_account":"financial_account","flow":{"type":"fee_transaction"}},"livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9755,7 +10128,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/transaction_entries/id_123" ).to_return( - body: '{"balance_impact":{"available":{"currency":"USD","value":35},"inbound_pending":{"currency":"USD","value":11},"outbound_pending":{"currency":"USD","value":60}},"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","object":"v2.money_management.transaction_entry","transaction":"transaction","transaction_details":{"category":"received_debit","financial_account":"financial_account","flow":{"type":"fee_transaction"}},"livemode":true}', + body: '{"balance_impact":{"available":{},"inbound_pending":{},"outbound_pending":{}},"created":"1970-01-12T21:42:34.472Z","effective_at":"1970-01-03T20:38:28.043Z","id":"obj_123","object":"v2.money_management.transaction_entry","transaction":"transaction","transaction_details":{"category":"received_debit","financial_account":"financial_account","flow":{"type":"fee_transaction"}},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9765,7 +10138,7 @@ class CodegennedExampleTest < Test::Unit::TestCase end should "Test v2 payments off session payment get (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/payments/off_session_payments").to_return( - body: '{"data":[{"amount_requested":{"currency":"USD","value":47},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}],"next_page_url":null,"previous_page_url":null}', + body: '{"data":[{"amount_requested":{},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9775,15 +10148,15 @@ class CodegennedExampleTest < Test::Unit::TestCase end should "Test v2 payments off session payment post (service)" do stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/payments/off_session_payments").to_return( - body: '{"amount_requested":{"currency":"USD","value":47},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', + body: '{"amount_requested":{},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") off_session_payment = client.v2.payments.off_session_payments.create({ amount: { - currency: "USD", - value: 96, + value: 111_972_721, + currency: "usd", }, cadence: "unscheduled", customer: "customer", @@ -9797,7 +10170,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :get, "#{Stripe::DEFAULT_API_BASE}/v2/payments/off_session_payments/id_123" ).to_return( - body: '{"amount_requested":{"currency":"USD","value":47},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', + body: '{"amount_requested":{},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9810,7 +10183,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/payments/off_session_payments/id_123/cancel" ).to_return( - body: '{"amount_requested":{"currency":"USD","value":47},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', + body: '{"amount_requested":{},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9823,17 +10196,14 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/payments/off_session_payments/id_123/capture" ).to_return( - body: '{"amount_requested":{"currency":"USD","value":47},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', + body: '{"amount_requested":{},"cadence":"unscheduled","compartment_id":"compartment_id","created":"1970-01-12T21:42:34.472Z","customer":"customer","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"object":"v2.payments.off_session_payment","payment_method":"payment_method","payments_orchestration":{"enabled":true},"retry_details":{"attempts":542738246,"retry_strategy":"scheduled"},"status":"pending"}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") off_session_payment = client.v2.payments.off_session_payments.capture( "id_123", - { - amount_to_capture: 1_374_310_455, - metadata: { key: "metadata" }, - } + { metadata: { key: "metadata" } } ) assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/payments/off_session_payments/id_123/capture" end @@ -9894,8 +10264,8 @@ class CodegennedExampleTest < Test::Unit::TestCase "id_123", { amount: { - currency: "USD", - value: 96, + value: 111_972_721, + currency: "usd", }, network: "ach", } @@ -9907,7 +10277,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/test_helpers/financial_addresses/id_123/generate_microdeposits" ).to_return( - body: '{"amounts":[{"currency":"USD","value":1}],"object":"financial_address_generated_microdeposits","status":"accepted","livemode":true}', + body: '{"amounts":[{}],"object":"financial_address_generated_microdeposits","status":"accepted","livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9990,7 +10360,7 @@ class CodegennedExampleTest < Test::Unit::TestCase should "Test feature not enabled error (service)" do stub_request( :post, - "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts" + "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions" ).to_return( body: '{"error":{"type":"feature_not_enabled","code":"outbound_flow_from_closed_financial_account_unsupported"}}', status: 400 @@ -9998,9 +10368,13 @@ class CodegennedExampleTest < Test::Unit::TestCase client = Stripe::StripeClient.new("sk_test_123") assert_raises Stripe::FeatureNotEnabledError do - financial_account = client.v2.money_management.financial_accounts.create({ type: "storage" }) + currency_conversion = client.v2.money_management.currency_conversions.create({ + financial_account: "financial_account", + from: {}, + to: {}, + }) end - assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts" + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/currency_conversions" end should "Test financial account not open error (service)" do stub_request( @@ -10032,10 +10406,7 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_raises Stripe::InsufficientFundsError do outbound_payment = client.v2.money_management.outbound_payments.create({ - amount: { - currency: "USD", - value: 96, - }, + amount: {}, from: { currency: "usd", financial_account: "financial_account", @@ -10142,10 +10513,7 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_raises Stripe::RecipientNotNotifiableError do outbound_payment = client.v2.money_management.outbound_payments.create({ - amount: { - currency: "USD", - value: 96, - }, + amount: {}, from: { currency: "usd", financial_account: "financial_account",