stripe 15.2.0.pre.beta.1 → 15.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +718 -1556
- data/CONTRIBUTING.md +25 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +10 -7
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -28
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +0 -54
- data/lib/stripe/event_types.rb +0 -89
- data/lib/stripe/object_types.rb +0 -52
- data/lib/stripe/resources/account.rb +32 -657
- data/lib/stripe/resources/account_session.rb +59 -253
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -4
- data/lib/stripe/resources/billing/credit_grant.rb +0 -10
- data/lib/stripe/resources/billing_portal/session.rb +1 -7
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/cash_balance.rb +0 -2
- data/lib/stripe/resources/charge.rb +13 -1475
- data/lib/stripe/resources/checkout/session.rb +21 -333
- data/lib/stripe/resources/confirmation_token.rb +33 -263
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +2 -32
- data/lib/stripe/resources/credit_note.rb +10 -17
- data/lib/stripe/resources/credit_note_line_item.rb +0 -9
- data/lib/stripe/resources/customer.rb +2 -6
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_session.rb +4 -9
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +1 -32
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +1 -20
- data/lib/stripe/resources/financial_connections/session.rb +2 -62
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +17 -21
- data/lib/stripe/resources/invoice.rb +79 -1106
- data/lib/stripe/resources/invoice_item.rb +4 -81
- data/lib/stripe/resources/invoice_line_item.rb +2 -56
- data/lib/stripe/resources/invoice_payment.rb +62 -4
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/cardholder.rb +1 -2
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/issuing/transaction.rb +0 -6
- data/lib/stripe/resources/line_item.rb +0 -37
- data/lib/stripe/resources/mandate.rb +0 -24
- data/lib/stripe/resources/payment_intent.rb +1912 -6840
- data/lib/stripe/resources/payment_method.rb +47 -301
- data/lib/stripe/resources/payment_method_configuration.rb +112 -112
- data/lib/stripe/resources/payment_method_domain.rb +2 -2
- data/lib/stripe/resources/payout.rb +4 -10
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -31
- data/lib/stripe/resources/product.rb +1 -61
- data/lib/stripe/resources/promotion_code.rb +0 -10
- data/lib/stripe/resources/quote.rb +6 -2046
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +6 -10
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +0 -21
- data/lib/stripe/resources/setup_intent.rb +120 -877
- data/lib/stripe/resources/source.rb +1 -30
- data/lib/stripe/resources/subscription.rb +97 -326
- data/lib/stripe/resources/subscription_item.rb +32 -80
- data/lib/stripe/resources/subscription_schedule.rb +127 -1015
- data/lib/stripe/resources/tax/calculation.rb +4 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +3 -14
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +1 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +8 -142
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +2 -2
- data/lib/stripe/resources/transfer.rb +1 -7
- data/lib/stripe/resources/treasury/financial_account.rb +3 -22
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -37
- data/lib/stripe/resources/treasury/received_credit.rb +1 -38
- data/lib/stripe/resources/treasury/received_debit.rb +1 -40
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +0 -99
- data/lib/stripe/services/account_external_account_service.rb +2 -3
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +1 -2
- data/lib/stripe/services/account_service.rb +23 -559
- data/lib/stripe/services/account_session_service.rb +29 -229
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -4
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -4
- data/lib/stripe/services/billing/credit_grant_service.rb +0 -8
- data/lib/stripe/services/billing_portal/session_service.rb +0 -4
- data/lib/stripe/services/charge_service.rb +4 -1354
- data/lib/stripe/services/checkout/session_service.rb +13 -250
- data/lib/stripe/services/coupon_service.rb +2 -19
- data/lib/stripe/services/credit_note_service.rb +7 -12
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +3 -5
- data/lib/stripe/services/customer_session_service.rb +1 -4
- data/lib/stripe/services/customer_tax_id_service.rb +1 -2
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +2 -7
- data/lib/stripe/services/financial_connections/session_service.rb +2 -34
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/identity/verification_session_service.rb +5 -13
- data/lib/stripe/services/invoice_item_service.rb +3 -76
- data/lib/stripe/services/invoice_line_item_service.rb +1 -33
- data/lib/stripe/services/invoice_payment_service.rb +83 -0
- data/lib/stripe/services/invoice_service.rb +74 -1049
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing/transaction_service.rb +0 -4
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +439 -4928
- data/lib/stripe/services/payment_method_configuration_service.rb +82 -82
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +44 -226
- data/lib/stripe/services/payout_service.rb +2 -6
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -21
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +2 -41
- data/lib/stripe/services/promotion_code_service.rb +1 -9
- data/lib/stripe/services/quote_service.rb +7 -1730
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/setup_intent_service.rb +119 -836
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +27 -73
- data/lib/stripe/services/subscription_schedule_service.rb +101 -916
- data/lib/stripe/services/subscription_service.rb +85 -282
- data/lib/stripe/services/tax/calculation_service.rb +4 -0
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +3 -10
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +5 -81
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -190
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +1 -5
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +2 -16
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -12
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +2 -4
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/services.rb +1 -54
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/account.rbi +4926 -0
- data/rbi/stripe/resources/account_link.rbi +74 -0
- data/rbi/stripe/resources/account_session.rbi +1013 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
- data/rbi/stripe/resources/application.rbi +20 -0
- data/rbi/stripe/resources/application_fee.rbi +118 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
- data/rbi/stripe/resources/apps/secret.rbi +195 -0
- data/rbi/stripe/resources/balance.rbi +235 -0
- data/rbi/stripe/resources/balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/bank_account.rbi +127 -0
- data/rbi/stripe/resources/billing/alert.rbi +201 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
- data/rbi/stripe/resources/billing/meter.rbi +226 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
- data/rbi/stripe/resources/capability.rbi +125 -0
- data/rbi/stripe/resources/card.rbi +125 -0
- data/rbi/stripe/resources/cash_balance.rbi +32 -0
- data/rbi/stripe/resources/charge.rbi +2069 -0
- data/rbi/stripe/resources/checkout/session.rbi +4004 -0
- data/rbi/stripe/resources/climate/order.rbi +245 -0
- data/rbi/stripe/resources/climate/product.rbi +75 -0
- data/rbi/stripe/resources/climate/supplier.rbi +72 -0
- data/rbi/stripe/resources/confirmation_token.rbi +1807 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
- data/rbi/stripe/resources/country_spec.rbi +85 -0
- data/rbi/stripe/resources/coupon.rbi +250 -0
- data/rbi/stripe/resources/credit_note.rbi +752 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
- data/rbi/stripe/resources/customer.rbi +1005 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
- data/rbi/stripe/resources/customer_session.rbi +200 -0
- data/rbi/stripe/resources/discount.rbi +53 -0
- data/rbi/stripe/resources/dispute.rbi +761 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
- data/rbi/stripe/resources/event.rbi +149 -0
- data/rbi/stripe/resources/exchange_rate.rbi +66 -0
- data/rbi/stripe/resources/file.rbi +143 -0
- data/rbi/stripe/resources/file_link.rbi +141 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
- data/rbi/stripe/resources/forwarding/request.rbi +216 -0
- data/rbi/stripe/resources/funding_instructions.rbi +437 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +526 -0
- data/rbi/stripe/resources/invoice.rbi +3812 -0
- data/rbi/stripe/resources/invoice_item.rbi +473 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
- data/rbi/stripe/resources/invoice_payment.rbi +121 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
- data/rbi/stripe/resources/issuing/card.rbi +741 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
- data/rbi/stripe/resources/issuing/token.rbi +226 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
- data/rbi/stripe/resources/line_item.rbi +72 -0
- data/rbi/stripe/resources/login_link.rbi +19 -0
- data/rbi/stripe/resources/mandate.rbi +187 -0
- data/rbi/stripe/resources/payment_intent.rbi +9647 -0
- data/rbi/stripe/resources/payment_link.rbi +1801 -0
- data/rbi/stripe/resources/payment_method.rbi +1761 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
- data/rbi/stripe/resources/payout.rbi +300 -0
- data/rbi/stripe/resources/person.rbi +401 -0
- data/rbi/stripe/resources/plan.rbi +371 -0
- data/rbi/stripe/resources/price.rbi +694 -0
- data/rbi/stripe/resources/product.rbi +555 -0
- data/rbi/stripe/resources/product_feature.rbi +26 -0
- data/rbi/stripe/resources/promotion_code.rbi +261 -0
- data/rbi/stripe/resources/quote.rbi +1126 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
- data/rbi/stripe/resources/radar/value_list.rbi +168 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
- data/rbi/stripe/resources/refund.rbi +523 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
- data/rbi/stripe/resources/reversal.rbi +51 -0
- data/rbi/stripe/resources/review.rbi +154 -0
- data/rbi/stripe/resources/setup_attempt.rbi +477 -0
- data/rbi/stripe/resources/setup_intent.rbi +3655 -0
- data/rbi/stripe/resources/shipping_rate.rbi +305 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
- data/rbi/stripe/resources/source.rbi +1496 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
- data/rbi/stripe/resources/source_transaction.rbi +127 -0
- data/rbi/stripe/resources/subscription.rbi +2027 -0
- data/rbi/stripe/resources/subscription_item.rbi +404 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +1623 -0
- data/rbi/stripe/resources/tax/calculation.rbi +478 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
- data/rbi/stripe/resources/tax/registration.rbi +2713 -0
- data/rbi/stripe/resources/tax/settings.rbi +141 -0
- data/rbi/stripe/resources/tax/transaction.rbi +351 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
- data/rbi/stripe/resources/tax_code.rbi +44 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
- data/rbi/stripe/resources/tax_id.rbi +165 -0
- data/rbi/stripe/resources/tax_rate.rbi +239 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1386 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
- data/rbi/stripe/resources/terminal/location.rbi +222 -0
- data/rbi/stripe/resources/terminal/reader.rbi +847 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
- data/rbi/stripe/resources/token.rbi +1283 -0
- data/rbi/stripe/resources/topup.rbi +222 -0
- data/rbi/stripe/resources/transfer.rbi +199 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
- data/rbi/stripe/resources/v2/event.rbi +48 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
- data/rbi/stripe/services/account_capability_service.rbi +51 -0
- data/{lib/stripe/services/external_account_service.rb → rbi/stripe/services/account_external_account_service.rbi} +124 -138
- data/rbi/stripe/services/account_link_service.rbi +58 -0
- data/rbi/stripe/services/account_login_link_service.rbi +22 -0
- data/rbi/stripe/services/account_person_service.rbi +1011 -0
- data/rbi/stripe/services/account_service.rbi +4213 -0
- data/rbi/stripe/services/account_session_service.rbi +646 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
- data/rbi/stripe/services/application_fee_service.rbi +78 -0
- data/rbi/stripe/services/apps/secret_service.rbi +151 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +21 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
- data/rbi/stripe/services/billing/alert_service.rbi +152 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
- data/rbi/stripe/services/billing/meter_service.rbi +163 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/charge_service.rbi +448 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2614 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +142 -0
- data/rbi/stripe/services/climate/product_service.rbi +46 -0
- data/{lib/stripe/services/financial_connections/institution_service.rb → rbi/stripe/services/climate/supplier_service.rbi} +25 -36
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
- data/rbi/stripe/services/country_spec_service.rbi +44 -0
- data/rbi/stripe/services/coupon_service.rbi +194 -0
- data/{lib/stripe/services/quote_preview_invoice_service.rb → rbi/stripe/services/credit_note_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
- data/rbi/stripe/services/credit_note_service.rbi +415 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
- data/rbi/stripe/services/customer_service.rbi +647 -0
- data/rbi/stripe/services/customer_session_service.rbi +116 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
- data/rbi/stripe/services/dispute_service.rbi +424 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
- data/rbi/stripe/services/event_service.rbi +83 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
- data/rbi/stripe/services/file_link_service.rbi +124 -0
- data/rbi/stripe/services/file_service.rbi +116 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
- data/rbi/stripe/services/financial_connections_service.rbi +11 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +366 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
- data/rbi/stripe/services/invoice_service.rbi +2981 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
- data/rbi/stripe/services/issuing/card_service.rbi +495 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
- data/rbi/stripe/services/issuing/token_service.rbi +99 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
- data/rbi/stripe/services/issuing_service.rbi +16 -0
- data/rbi/stripe/services/mandate_service.rbi +20 -0
- data/rbi/stripe/services/payment_intent_service.rbi +7659 -0
- data/{lib/stripe/services/payment_intent_amount_details_line_item_service.rb → rbi/stripe/services/payment_link_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/payment_link_service.rbi +1352 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
- data/rbi/stripe/services/payment_method_service.rbi +776 -0
- data/rbi/stripe/services/payout_service.rbi +205 -0
- data/rbi/stripe/services/plan_service.rbi +282 -0
- data/rbi/stripe/services/price_service.rbi +546 -0
- data/rbi/stripe/services/product_feature_service.rbi +67 -0
- data/rbi/stripe/services/product_service.rbi +477 -0
- data/rbi/stripe/services/promotion_code_service.rbi +214 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
- data/{lib/stripe/services/order_line_item_service.rb → rbi/stripe/services/quote_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/quote_service.rbi +686 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +185 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +84 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
- data/rbi/stripe/services/setup_intent_service.rbi +3391 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +663 -0
- data/{lib/stripe/services/quote_line_service.rb → rbi/stripe/services/source_transaction_service.rbi} +16 -20
- data/rbi/stripe/services/subscription_item_service.rbi +350 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +1290 -0
- data/rbi/stripe/services/subscription_service.rbi +1648 -0
- data/{lib/stripe/services/financial_connections/account_inferred_balance_service.rb → rbi/stripe/services/tax/calculation_line_item_service.rbi} +17 -21
- data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
- data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
- data/rbi/stripe/services/tax/settings_service.rbi +93 -0
- data/{lib/stripe/services/privacy/redaction_job_validation_error_service.rb → rbi/stripe/services/tax/transaction_line_item_service.rbi} +17 -21
- data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
- data/rbi/stripe/services/tax_code_service.rbi +44 -0
- data/rbi/stripe/services/tax_id_service.rbi +110 -0
- data/rbi/stripe/services/tax_rate_service.rbi +185 -0
- data/rbi/stripe/services/tax_service.rbi +12 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
- data/rbi/stripe/services/terminal/location_service.rbi +182 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +455 -0
- data/rbi/stripe/services/terminal_service.rbi +12 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +739 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
- data/rbi/stripe/services/test_helpers_service.rbi +15 -0
- data/rbi/stripe/services/token_service.rbi +1257 -0
- data/rbi/stripe/services/topup_service.rbi +176 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
- data/rbi/stripe/services/transfer_service.rbi +152 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +77 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
- data/rbi/stripe/services/v2/core_service.rbi +12 -0
- data/rbi/stripe/services/v2_services.rbi +10 -0
- data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
- data/stripe.gemspec +1 -4
- metadata +326 -158
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_link_completed_event.rb +0 -13
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
- data/lib/stripe/resources/account_notice.rb +0 -123
- data/lib/stripe/resources/balance_settings.rb +0 -105
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- data/lib/stripe/resources/capital/financing_offer.rb +0 -179
- data/lib/stripe/resources/capital/financing_summary.rb +0 -55
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -90
- data/lib/stripe/resources/fx_quote.rb +0 -184
- data/lib/stripe/resources/gift_cards/card.rb +0 -208
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
- data/lib/stripe/resources/issuing/settlement.rb +0 -53
- data/lib/stripe/resources/margin.rb +0 -115
- data/lib/stripe/resources/order.rb +0 -2859
- data/lib/stripe/resources/payment_attempt_record.rb +0 -1078
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -65
- data/lib/stripe/resources/payment_record.rb +0 -1607
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -275
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -25
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -663
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -339
- data/lib/stripe/resources/tax/association.rb +0 -89
- data/lib/stripe/resources/tax/form.rb +0 -211
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
- data/lib/stripe/resources/v2/core/account.rb +0 -1746
- data/lib/stripe/resources/v2/core/account_link.rb +0 -56
- data/lib/stripe/resources/v2/core/person.rb +0 -276
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -58
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -75
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -108
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -78
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -68
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/balance_settings_service.rb +0 -96
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/fx_quote_service.rb +0 -123
- data/lib/stripe/services/gift_cards/card_service.rb +0 -170
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_service.rb +0 -2268
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
- data/lib/stripe/services/payment_record_service.rb +0 -542
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -231
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/lib/stripe/services/v2/core/account_link_service.rb +0 -76
- data/lib/stripe/services/v2/core/account_service.rb +0 -4138
- data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1048
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -135
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -109
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -75
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -44
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -81
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -126
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -96
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -202
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -237
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -174
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -95
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -71
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -44
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -74
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -50
- data/rbi/stripe.rbi +0 -191867
@@ -44,44 +44,16 @@ module Stripe
|
|
44
44
|
class UpdateParams < Stripe::RequestParams
|
45
45
|
class AddInvoiceItem < Stripe::RequestParams
|
46
46
|
class Discount < Stripe::RequestParams
|
47
|
-
class DiscountEnd < Stripe::RequestParams
|
48
|
-
class Duration < Stripe::RequestParams
|
49
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
50
|
-
attr_accessor :interval
|
51
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
52
|
-
attr_accessor :interval_count
|
53
|
-
|
54
|
-
def initialize(interval: nil, interval_count: nil)
|
55
|
-
@interval = interval
|
56
|
-
@interval_count = interval_count
|
57
|
-
end
|
58
|
-
end
|
59
|
-
# Time span for the redeemed discount.
|
60
|
-
attr_accessor :duration
|
61
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
62
|
-
attr_accessor :timestamp
|
63
|
-
# The type of calculation made to determine when the discount ends.
|
64
|
-
attr_accessor :type
|
65
|
-
|
66
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
67
|
-
@duration = duration
|
68
|
-
@timestamp = timestamp
|
69
|
-
@type = type
|
70
|
-
end
|
71
|
-
end
|
72
47
|
# ID of the coupon to create a new discount for.
|
73
48
|
attr_accessor :coupon
|
74
49
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
75
50
|
attr_accessor :discount
|
76
|
-
# Details to determine how long the discount should be applied for.
|
77
|
-
attr_accessor :discount_end
|
78
51
|
# ID of the promotion code to create a new discount for.
|
79
52
|
attr_accessor :promotion_code
|
80
53
|
|
81
|
-
def initialize(coupon: nil, discount: nil,
|
54
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
82
55
|
@coupon = coupon
|
83
56
|
@discount = discount
|
84
|
-
@discount_end = discount_end
|
85
57
|
@promotion_code = promotion_code
|
86
58
|
end
|
87
59
|
end
|
@@ -155,6 +127,18 @@ module Stripe
|
|
155
127
|
end
|
156
128
|
end
|
157
129
|
|
130
|
+
class BillingThresholds < Stripe::RequestParams
|
131
|
+
# Monetary threshold that triggers the subscription to advance to a new billing period
|
132
|
+
attr_accessor :amount_gte
|
133
|
+
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
134
|
+
attr_accessor :reset_billing_cycle_anchor
|
135
|
+
|
136
|
+
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
137
|
+
@amount_gte = amount_gte
|
138
|
+
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
158
142
|
class CancellationDetails < Stripe::RequestParams
|
159
143
|
# Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
|
160
144
|
attr_accessor :comment
|
@@ -168,44 +152,16 @@ module Stripe
|
|
168
152
|
end
|
169
153
|
|
170
154
|
class Discount < Stripe::RequestParams
|
171
|
-
class DiscountEnd < Stripe::RequestParams
|
172
|
-
class Duration < Stripe::RequestParams
|
173
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
174
|
-
attr_accessor :interval
|
175
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
176
|
-
attr_accessor :interval_count
|
177
|
-
|
178
|
-
def initialize(interval: nil, interval_count: nil)
|
179
|
-
@interval = interval
|
180
|
-
@interval_count = interval_count
|
181
|
-
end
|
182
|
-
end
|
183
|
-
# Time span for the redeemed discount.
|
184
|
-
attr_accessor :duration
|
185
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
186
|
-
attr_accessor :timestamp
|
187
|
-
# The type of calculation made to determine when the discount ends.
|
188
|
-
attr_accessor :type
|
189
|
-
|
190
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
191
|
-
@duration = duration
|
192
|
-
@timestamp = timestamp
|
193
|
-
@type = type
|
194
|
-
end
|
195
|
-
end
|
196
155
|
# ID of the coupon to create a new discount for.
|
197
156
|
attr_accessor :coupon
|
198
157
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
199
158
|
attr_accessor :discount
|
200
|
-
# Details to determine how long the discount should be applied for.
|
201
|
-
attr_accessor :discount_end
|
202
159
|
# ID of the promotion code to create a new discount for.
|
203
160
|
attr_accessor :promotion_code
|
204
161
|
|
205
|
-
def initialize(coupon: nil, discount: nil,
|
162
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
206
163
|
@coupon = coupon
|
207
164
|
@discount = discount
|
208
|
-
@discount_end = discount_end
|
209
165
|
@promotion_code = promotion_code
|
210
166
|
end
|
211
167
|
end
|
@@ -234,45 +190,26 @@ module Stripe
|
|
234
190
|
end
|
235
191
|
|
236
192
|
class Item < Stripe::RequestParams
|
237
|
-
class
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
attr_accessor :interval_count
|
244
|
-
|
245
|
-
def initialize(interval: nil, interval_count: nil)
|
246
|
-
@interval = interval
|
247
|
-
@interval_count = interval_count
|
248
|
-
end
|
249
|
-
end
|
250
|
-
# Time span for the redeemed discount.
|
251
|
-
attr_accessor :duration
|
252
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
253
|
-
attr_accessor :timestamp
|
254
|
-
# The type of calculation made to determine when the discount ends.
|
255
|
-
attr_accessor :type
|
256
|
-
|
257
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
258
|
-
@duration = duration
|
259
|
-
@timestamp = timestamp
|
260
|
-
@type = type
|
261
|
-
end
|
193
|
+
class BillingThresholds < Stripe::RequestParams
|
194
|
+
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
195
|
+
attr_accessor :usage_gte
|
196
|
+
|
197
|
+
def initialize(usage_gte: nil)
|
198
|
+
@usage_gte = usage_gte
|
262
199
|
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class Discount < Stripe::RequestParams
|
263
203
|
# ID of the coupon to create a new discount for.
|
264
204
|
attr_accessor :coupon
|
265
205
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
266
206
|
attr_accessor :discount
|
267
|
-
# Details to determine how long the discount should be applied for.
|
268
|
-
attr_accessor :discount_end
|
269
207
|
# ID of the promotion code to create a new discount for.
|
270
208
|
attr_accessor :promotion_code
|
271
209
|
|
272
|
-
def initialize(coupon: nil, discount: nil,
|
210
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
273
211
|
@coupon = coupon
|
274
212
|
@discount = discount
|
275
|
-
@discount_end = discount_end
|
276
213
|
@promotion_code = promotion_code
|
277
214
|
end
|
278
215
|
end
|
@@ -318,6 +255,8 @@ module Stripe
|
|
318
255
|
@unit_amount_decimal = unit_amount_decimal
|
319
256
|
end
|
320
257
|
end
|
258
|
+
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
259
|
+
attr_accessor :billing_thresholds
|
321
260
|
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
322
261
|
attr_accessor :clear_usage
|
323
262
|
# A flag that, if set to `true`, will delete the specified item.
|
@@ -340,6 +279,7 @@ module Stripe
|
|
340
279
|
attr_accessor :tax_rates
|
341
280
|
|
342
281
|
def initialize(
|
282
|
+
billing_thresholds: nil,
|
343
283
|
clear_usage: nil,
|
344
284
|
deleted: nil,
|
345
285
|
discounts: nil,
|
@@ -351,6 +291,7 @@ module Stripe
|
|
351
291
|
quantity: nil,
|
352
292
|
tax_rates: nil
|
353
293
|
)
|
294
|
+
@billing_thresholds = billing_thresholds
|
354
295
|
@clear_usage = clear_usage
|
355
296
|
@deleted = deleted
|
356
297
|
@discounts = discounts
|
@@ -467,26 +408,17 @@ module Stripe
|
|
467
408
|
end
|
468
409
|
end
|
469
410
|
|
470
|
-
class
|
471
|
-
end
|
472
|
-
|
473
|
-
class Konbini < Stripe::RequestParams
|
474
|
-
end
|
475
|
-
|
476
|
-
class SepaDebit < Stripe::RequestParams
|
477
|
-
end
|
411
|
+
class Konbini < Stripe::RequestParams; end
|
412
|
+
class SepaDebit < Stripe::RequestParams; end
|
478
413
|
|
479
414
|
class UsBankAccount < Stripe::RequestParams
|
480
415
|
class FinancialConnections < Stripe::RequestParams
|
481
416
|
class Filters < Stripe::RequestParams
|
482
417
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
483
418
|
attr_accessor :account_subcategories
|
484
|
-
# ID of the institution to use to filter for selectable accounts.
|
485
|
-
attr_accessor :institution
|
486
419
|
|
487
|
-
def initialize(account_subcategories: nil
|
420
|
+
def initialize(account_subcategories: nil)
|
488
421
|
@account_subcategories = account_subcategories
|
489
|
-
@institution = institution
|
490
422
|
end
|
491
423
|
end
|
492
424
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
@@ -520,8 +452,6 @@ module Stripe
|
|
520
452
|
attr_accessor :card
|
521
453
|
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
522
454
|
attr_accessor :customer_balance
|
523
|
-
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
524
|
-
attr_accessor :id_bank_transfer
|
525
455
|
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
526
456
|
attr_accessor :konbini
|
527
457
|
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
|
@@ -534,7 +464,6 @@ module Stripe
|
|
534
464
|
bancontact: nil,
|
535
465
|
card: nil,
|
536
466
|
customer_balance: nil,
|
537
|
-
id_bank_transfer: nil,
|
538
467
|
konbini: nil,
|
539
468
|
sepa_debit: nil,
|
540
469
|
us_bank_account: nil
|
@@ -543,7 +472,6 @@ module Stripe
|
|
543
472
|
@bancontact = bancontact
|
544
473
|
@card = card
|
545
474
|
@customer_balance = customer_balance
|
546
|
-
@id_bank_transfer = id_bank_transfer
|
547
475
|
@konbini = konbini
|
548
476
|
@sepa_debit = sepa_debit
|
549
477
|
@us_bank_account = us_bank_account
|
@@ -579,18 +507,6 @@ module Stripe
|
|
579
507
|
end
|
580
508
|
end
|
581
509
|
|
582
|
-
class Prebilling < Stripe::RequestParams
|
583
|
-
# This is used to determine the number of billing cycles to prebill.
|
584
|
-
attr_accessor :iterations
|
585
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
586
|
-
attr_accessor :update_behavior
|
587
|
-
|
588
|
-
def initialize(iterations: nil, update_behavior: nil)
|
589
|
-
@iterations = iterations
|
590
|
-
@update_behavior = update_behavior
|
591
|
-
end
|
592
|
-
end
|
593
|
-
|
594
510
|
class TransferData < Stripe::RequestParams
|
595
511
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
596
512
|
attr_accessor :amount_percent
|
@@ -627,9 +543,11 @@ module Stripe
|
|
627
543
|
attr_accessor :automatic_tax
|
628
544
|
# Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
629
545
|
attr_accessor :billing_cycle_anchor
|
546
|
+
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
547
|
+
attr_accessor :billing_thresholds
|
630
548
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
631
549
|
attr_accessor :cancel_at
|
632
|
-
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
550
|
+
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`. This param will be removed in a future API version. Please use `cancel_at` instead.
|
633
551
|
attr_accessor :cancel_at_period_end
|
634
552
|
# Details about why this subscription was cancelled
|
635
553
|
attr_accessor :cancellation_details
|
@@ -673,15 +591,13 @@ module Stripe
|
|
673
591
|
attr_accessor :payment_settings
|
674
592
|
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
|
675
593
|
attr_accessor :pending_invoice_item_interval
|
676
|
-
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
677
|
-
attr_accessor :prebilling
|
678
594
|
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
679
595
|
attr_accessor :proration_behavior
|
680
|
-
# If set,
|
596
|
+
# If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
|
681
597
|
attr_accessor :proration_date
|
682
598
|
# If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges. This will be unset if you POST an empty value.
|
683
599
|
attr_accessor :transfer_data
|
684
|
-
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.
|
600
|
+
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, `trial_end` will override the default trial period of the plan the customer is being subscribed to. The `billing_cycle_anchor` will be updated to the `trial_end` value. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.
|
685
601
|
attr_accessor :trial_end
|
686
602
|
# Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
687
603
|
attr_accessor :trial_from_plan
|
@@ -693,6 +609,7 @@ module Stripe
|
|
693
609
|
application_fee_percent: nil,
|
694
610
|
automatic_tax: nil,
|
695
611
|
billing_cycle_anchor: nil,
|
612
|
+
billing_thresholds: nil,
|
696
613
|
cancel_at: nil,
|
697
614
|
cancel_at_period_end: nil,
|
698
615
|
cancellation_details: nil,
|
@@ -713,7 +630,6 @@ module Stripe
|
|
713
630
|
payment_behavior: nil,
|
714
631
|
payment_settings: nil,
|
715
632
|
pending_invoice_item_interval: nil,
|
716
|
-
prebilling: nil,
|
717
633
|
proration_behavior: nil,
|
718
634
|
proration_date: nil,
|
719
635
|
transfer_data: nil,
|
@@ -725,6 +641,7 @@ module Stripe
|
|
725
641
|
@application_fee_percent = application_fee_percent
|
726
642
|
@automatic_tax = automatic_tax
|
727
643
|
@billing_cycle_anchor = billing_cycle_anchor
|
644
|
+
@billing_thresholds = billing_thresholds
|
728
645
|
@cancel_at = cancel_at
|
729
646
|
@cancel_at_period_end = cancel_at_period_end
|
730
647
|
@cancellation_details = cancellation_details
|
@@ -745,7 +662,6 @@ module Stripe
|
|
745
662
|
@payment_behavior = payment_behavior
|
746
663
|
@payment_settings = payment_settings
|
747
664
|
@pending_invoice_item_interval = pending_invoice_item_interval
|
748
|
-
@prebilling = prebilling
|
749
665
|
@proration_behavior = proration_behavior
|
750
666
|
@proration_date = proration_date
|
751
667
|
@transfer_data = transfer_data
|
@@ -755,8 +671,7 @@ module Stripe
|
|
755
671
|
end
|
756
672
|
end
|
757
673
|
|
758
|
-
class DeleteDiscountParams < Stripe::RequestParams
|
759
|
-
end
|
674
|
+
class DeleteDiscountParams < Stripe::RequestParams; end
|
760
675
|
|
761
676
|
class ListParams < Stripe::RequestParams
|
762
677
|
class AutomaticTax < Stripe::RequestParams
|
@@ -833,8 +748,6 @@ module Stripe
|
|
833
748
|
attr_accessor :current_period_start
|
834
749
|
# The ID of the customer whose subscriptions will be retrieved.
|
835
750
|
attr_accessor :customer
|
836
|
-
# The ID of the account whose subscriptions will be retrieved.
|
837
|
-
attr_accessor :customer_account
|
838
751
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
839
752
|
attr_accessor :ending_before
|
840
753
|
# Specifies which fields in the response should be expanded.
|
@@ -859,7 +772,6 @@ module Stripe
|
|
859
772
|
current_period_end: nil,
|
860
773
|
current_period_start: nil,
|
861
774
|
customer: nil,
|
862
|
-
customer_account: nil,
|
863
775
|
ending_before: nil,
|
864
776
|
expand: nil,
|
865
777
|
limit: nil,
|
@@ -875,7 +787,6 @@ module Stripe
|
|
875
787
|
@current_period_end = current_period_end
|
876
788
|
@current_period_start = current_period_start
|
877
789
|
@customer = customer
|
878
|
-
@customer_account = customer_account
|
879
790
|
@ending_before = ending_before
|
880
791
|
@expand = expand
|
881
792
|
@limit = limit
|
@@ -890,44 +801,16 @@ module Stripe
|
|
890
801
|
class CreateParams < Stripe::RequestParams
|
891
802
|
class AddInvoiceItem < Stripe::RequestParams
|
892
803
|
class Discount < Stripe::RequestParams
|
893
|
-
class DiscountEnd < Stripe::RequestParams
|
894
|
-
class Duration < Stripe::RequestParams
|
895
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
896
|
-
attr_accessor :interval
|
897
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
898
|
-
attr_accessor :interval_count
|
899
|
-
|
900
|
-
def initialize(interval: nil, interval_count: nil)
|
901
|
-
@interval = interval
|
902
|
-
@interval_count = interval_count
|
903
|
-
end
|
904
|
-
end
|
905
|
-
# Time span for the redeemed discount.
|
906
|
-
attr_accessor :duration
|
907
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
908
|
-
attr_accessor :timestamp
|
909
|
-
# The type of calculation made to determine when the discount ends.
|
910
|
-
attr_accessor :type
|
911
|
-
|
912
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
913
|
-
@duration = duration
|
914
|
-
@timestamp = timestamp
|
915
|
-
@type = type
|
916
|
-
end
|
917
|
-
end
|
918
804
|
# ID of the coupon to create a new discount for.
|
919
805
|
attr_accessor :coupon
|
920
806
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
921
807
|
attr_accessor :discount
|
922
|
-
# Details to determine how long the discount should be applied for.
|
923
|
-
attr_accessor :discount_end
|
924
808
|
# ID of the promotion code to create a new discount for.
|
925
809
|
attr_accessor :promotion_code
|
926
810
|
|
927
|
-
def initialize(coupon: nil, discount: nil,
|
811
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
928
812
|
@coupon = coupon
|
929
813
|
@discount = discount
|
930
|
-
@discount_end = discount_end
|
931
814
|
@promotion_code = promotion_code
|
932
815
|
end
|
933
816
|
end
|
@@ -1022,45 +905,29 @@ module Stripe
|
|
1022
905
|
end
|
1023
906
|
end
|
1024
907
|
|
1025
|
-
class
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
1031
|
-
attr_accessor :interval_count
|
1032
|
-
|
1033
|
-
def initialize(interval: nil, interval_count: nil)
|
1034
|
-
@interval = interval
|
1035
|
-
@interval_count = interval_count
|
1036
|
-
end
|
1037
|
-
end
|
1038
|
-
# Time span for the redeemed discount.
|
1039
|
-
attr_accessor :duration
|
1040
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
1041
|
-
attr_accessor :timestamp
|
1042
|
-
# The type of calculation made to determine when the discount ends.
|
1043
|
-
attr_accessor :type
|
908
|
+
class BillingThresholds < Stripe::RequestParams
|
909
|
+
# Monetary threshold that triggers the subscription to advance to a new billing period
|
910
|
+
attr_accessor :amount_gte
|
911
|
+
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
912
|
+
attr_accessor :reset_billing_cycle_anchor
|
1044
913
|
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
@type = type
|
1049
|
-
end
|
914
|
+
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
915
|
+
@amount_gte = amount_gte
|
916
|
+
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
1050
917
|
end
|
918
|
+
end
|
919
|
+
|
920
|
+
class Discount < Stripe::RequestParams
|
1051
921
|
# ID of the coupon to create a new discount for.
|
1052
922
|
attr_accessor :coupon
|
1053
923
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1054
924
|
attr_accessor :discount
|
1055
|
-
# Details to determine how long the discount should be applied for.
|
1056
|
-
attr_accessor :discount_end
|
1057
925
|
# ID of the promotion code to create a new discount for.
|
1058
926
|
attr_accessor :promotion_code
|
1059
927
|
|
1060
|
-
def initialize(coupon: nil, discount: nil,
|
928
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
1061
929
|
@coupon = coupon
|
1062
930
|
@discount = discount
|
1063
|
-
@discount_end = discount_end
|
1064
931
|
@promotion_code = promotion_code
|
1065
932
|
end
|
1066
933
|
end
|
@@ -1089,45 +956,26 @@ module Stripe
|
|
1089
956
|
end
|
1090
957
|
|
1091
958
|
class Item < Stripe::RequestParams
|
1092
|
-
class
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
attr_accessor :interval_count
|
1099
|
-
|
1100
|
-
def initialize(interval: nil, interval_count: nil)
|
1101
|
-
@interval = interval
|
1102
|
-
@interval_count = interval_count
|
1103
|
-
end
|
1104
|
-
end
|
1105
|
-
# Time span for the redeemed discount.
|
1106
|
-
attr_accessor :duration
|
1107
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
1108
|
-
attr_accessor :timestamp
|
1109
|
-
# The type of calculation made to determine when the discount ends.
|
1110
|
-
attr_accessor :type
|
1111
|
-
|
1112
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
1113
|
-
@duration = duration
|
1114
|
-
@timestamp = timestamp
|
1115
|
-
@type = type
|
1116
|
-
end
|
959
|
+
class BillingThresholds < Stripe::RequestParams
|
960
|
+
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
961
|
+
attr_accessor :usage_gte
|
962
|
+
|
963
|
+
def initialize(usage_gte: nil)
|
964
|
+
@usage_gte = usage_gte
|
1117
965
|
end
|
966
|
+
end
|
967
|
+
|
968
|
+
class Discount < Stripe::RequestParams
|
1118
969
|
# ID of the coupon to create a new discount for.
|
1119
970
|
attr_accessor :coupon
|
1120
971
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1121
972
|
attr_accessor :discount
|
1122
|
-
# Details to determine how long the discount should be applied for.
|
1123
|
-
attr_accessor :discount_end
|
1124
973
|
# ID of the promotion code to create a new discount for.
|
1125
974
|
attr_accessor :promotion_code
|
1126
975
|
|
1127
|
-
def initialize(coupon: nil, discount: nil,
|
976
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
1128
977
|
@coupon = coupon
|
1129
978
|
@discount = discount
|
1130
|
-
@discount_end = discount_end
|
1131
979
|
@promotion_code = promotion_code
|
1132
980
|
end
|
1133
981
|
end
|
@@ -1173,18 +1021,8 @@ module Stripe
|
|
1173
1021
|
@unit_amount_decimal = unit_amount_decimal
|
1174
1022
|
end
|
1175
1023
|
end
|
1176
|
-
|
1177
|
-
|
1178
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
1179
|
-
attr_accessor :converts_to
|
1180
|
-
# Determines the type of trial for this item.
|
1181
|
-
attr_accessor :type
|
1182
|
-
|
1183
|
-
def initialize(converts_to: nil, type: nil)
|
1184
|
-
@converts_to = converts_to
|
1185
|
-
@type = type
|
1186
|
-
end
|
1187
|
-
end
|
1024
|
+
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
1025
|
+
attr_accessor :billing_thresholds
|
1188
1026
|
# The coupons to redeem into discounts for the subscription item.
|
1189
1027
|
attr_accessor :discounts
|
1190
1028
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
@@ -1199,19 +1037,18 @@ module Stripe
|
|
1199
1037
|
attr_accessor :quantity
|
1200
1038
|
# 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.
|
1201
1039
|
attr_accessor :tax_rates
|
1202
|
-
# Define options to configure the trial on the subscription item.
|
1203
|
-
attr_accessor :trial
|
1204
1040
|
|
1205
1041
|
def initialize(
|
1042
|
+
billing_thresholds: nil,
|
1206
1043
|
discounts: nil,
|
1207
1044
|
metadata: nil,
|
1208
1045
|
plan: nil,
|
1209
1046
|
price: nil,
|
1210
1047
|
price_data: nil,
|
1211
1048
|
quantity: nil,
|
1212
|
-
tax_rates: nil
|
1213
|
-
trial: nil
|
1049
|
+
tax_rates: nil
|
1214
1050
|
)
|
1051
|
+
@billing_thresholds = billing_thresholds
|
1215
1052
|
@discounts = discounts
|
1216
1053
|
@metadata = metadata
|
1217
1054
|
@plan = plan
|
@@ -1219,7 +1056,6 @@ module Stripe
|
|
1219
1056
|
@price_data = price_data
|
1220
1057
|
@quantity = quantity
|
1221
1058
|
@tax_rates = tax_rates
|
1222
|
-
@trial = trial
|
1223
1059
|
end
|
1224
1060
|
end
|
1225
1061
|
|
@@ -1314,26 +1150,17 @@ module Stripe
|
|
1314
1150
|
end
|
1315
1151
|
end
|
1316
1152
|
|
1317
|
-
class
|
1318
|
-
end
|
1319
|
-
|
1320
|
-
class Konbini < Stripe::RequestParams
|
1321
|
-
end
|
1322
|
-
|
1323
|
-
class SepaDebit < Stripe::RequestParams
|
1324
|
-
end
|
1153
|
+
class Konbini < Stripe::RequestParams; end
|
1154
|
+
class SepaDebit < Stripe::RequestParams; end
|
1325
1155
|
|
1326
1156
|
class UsBankAccount < Stripe::RequestParams
|
1327
1157
|
class FinancialConnections < Stripe::RequestParams
|
1328
1158
|
class Filters < Stripe::RequestParams
|
1329
1159
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1330
1160
|
attr_accessor :account_subcategories
|
1331
|
-
# ID of the institution to use to filter for selectable accounts.
|
1332
|
-
attr_accessor :institution
|
1333
1161
|
|
1334
|
-
def initialize(account_subcategories: nil
|
1162
|
+
def initialize(account_subcategories: nil)
|
1335
1163
|
@account_subcategories = account_subcategories
|
1336
|
-
@institution = institution
|
1337
1164
|
end
|
1338
1165
|
end
|
1339
1166
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
@@ -1367,8 +1194,6 @@ module Stripe
|
|
1367
1194
|
attr_accessor :card
|
1368
1195
|
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
1369
1196
|
attr_accessor :customer_balance
|
1370
|
-
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
1371
|
-
attr_accessor :id_bank_transfer
|
1372
1197
|
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
1373
1198
|
attr_accessor :konbini
|
1374
1199
|
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
|
@@ -1381,7 +1206,6 @@ module Stripe
|
|
1381
1206
|
bancontact: nil,
|
1382
1207
|
card: nil,
|
1383
1208
|
customer_balance: nil,
|
1384
|
-
id_bank_transfer: nil,
|
1385
1209
|
konbini: nil,
|
1386
1210
|
sepa_debit: nil,
|
1387
1211
|
us_bank_account: nil
|
@@ -1390,7 +1214,6 @@ module Stripe
|
|
1390
1214
|
@bancontact = bancontact
|
1391
1215
|
@card = card
|
1392
1216
|
@customer_balance = customer_balance
|
1393
|
-
@id_bank_transfer = id_bank_transfer
|
1394
1217
|
@konbini = konbini
|
1395
1218
|
@sepa_debit = sepa_debit
|
1396
1219
|
@us_bank_account = us_bank_account
|
@@ -1426,18 +1249,6 @@ module Stripe
|
|
1426
1249
|
end
|
1427
1250
|
end
|
1428
1251
|
|
1429
|
-
class Prebilling < Stripe::RequestParams
|
1430
|
-
# This is used to determine the number of billing cycles to prebill.
|
1431
|
-
attr_accessor :iterations
|
1432
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
1433
|
-
attr_accessor :update_behavior
|
1434
|
-
|
1435
|
-
def initialize(iterations: nil, update_behavior: nil)
|
1436
|
-
@iterations = iterations
|
1437
|
-
@update_behavior = update_behavior
|
1438
|
-
end
|
1439
|
-
end
|
1440
|
-
|
1441
1252
|
class TransferData < Stripe::RequestParams
|
1442
1253
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
1443
1254
|
attr_accessor :amount_percent
|
@@ -1478,11 +1289,11 @@ module Stripe
|
|
1478
1289
|
attr_accessor :billing_cycle_anchor
|
1479
1290
|
# Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.
|
1480
1291
|
attr_accessor :billing_cycle_anchor_config
|
1481
|
-
#
|
1482
|
-
attr_accessor :
|
1292
|
+
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
1293
|
+
attr_accessor :billing_thresholds
|
1483
1294
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
1484
1295
|
attr_accessor :cancel_at
|
1485
|
-
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
1296
|
+
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`. This param will be removed in a future API version. Please use `cancel_at` instead.
|
1486
1297
|
attr_accessor :cancel_at_period_end
|
1487
1298
|
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
|
1488
1299
|
attr_accessor :collection_method
|
@@ -1490,8 +1301,6 @@ module Stripe
|
|
1490
1301
|
attr_accessor :currency
|
1491
1302
|
# The identifier of the customer to subscribe.
|
1492
1303
|
attr_accessor :customer
|
1493
|
-
# The identifier of the account to subscribe.
|
1494
|
-
attr_accessor :customer_account
|
1495
1304
|
# Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
|
1496
1305
|
attr_accessor :days_until_due
|
1497
1306
|
# ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
|
@@ -1532,8 +1341,6 @@ module Stripe
|
|
1532
1341
|
attr_accessor :payment_settings
|
1533
1342
|
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
|
1534
1343
|
attr_accessor :pending_invoice_item_interval
|
1535
|
-
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
1536
|
-
attr_accessor :prebilling
|
1537
1344
|
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
1538
1345
|
attr_accessor :proration_behavior
|
1539
1346
|
# If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
|
@@ -1554,13 +1361,12 @@ module Stripe
|
|
1554
1361
|
backdate_start_date: nil,
|
1555
1362
|
billing_cycle_anchor: nil,
|
1556
1363
|
billing_cycle_anchor_config: nil,
|
1557
|
-
|
1364
|
+
billing_thresholds: nil,
|
1558
1365
|
cancel_at: nil,
|
1559
1366
|
cancel_at_period_end: nil,
|
1560
1367
|
collection_method: nil,
|
1561
1368
|
currency: nil,
|
1562
1369
|
customer: nil,
|
1563
|
-
customer_account: nil,
|
1564
1370
|
days_until_due: nil,
|
1565
1371
|
default_payment_method: nil,
|
1566
1372
|
default_source: nil,
|
@@ -1576,7 +1382,6 @@ module Stripe
|
|
1576
1382
|
payment_behavior: nil,
|
1577
1383
|
payment_settings: nil,
|
1578
1384
|
pending_invoice_item_interval: nil,
|
1579
|
-
prebilling: nil,
|
1580
1385
|
proration_behavior: nil,
|
1581
1386
|
transfer_data: nil,
|
1582
1387
|
trial_end: nil,
|
@@ -1590,13 +1395,12 @@ module Stripe
|
|
1590
1395
|
@backdate_start_date = backdate_start_date
|
1591
1396
|
@billing_cycle_anchor = billing_cycle_anchor
|
1592
1397
|
@billing_cycle_anchor_config = billing_cycle_anchor_config
|
1593
|
-
@
|
1398
|
+
@billing_thresholds = billing_thresholds
|
1594
1399
|
@cancel_at = cancel_at
|
1595
1400
|
@cancel_at_period_end = cancel_at_period_end
|
1596
1401
|
@collection_method = collection_method
|
1597
1402
|
@currency = currency
|
1598
1403
|
@customer = customer
|
1599
|
-
@customer_account = customer_account
|
1600
1404
|
@days_until_due = days_until_due
|
1601
1405
|
@default_payment_method = default_payment_method
|
1602
1406
|
@default_source = default_source
|
@@ -1612,7 +1416,6 @@ module Stripe
|
|
1612
1416
|
@payment_behavior = payment_behavior
|
1613
1417
|
@payment_settings = payment_settings
|
1614
1418
|
@pending_invoice_item_interval = pending_invoice_item_interval
|
1615
|
-
@prebilling = prebilling
|
1616
1419
|
@proration_behavior = proration_behavior
|
1617
1420
|
@transfer_data = transfer_data
|
1618
1421
|
@trial_end = trial_end
|
@@ -1645,9 +1448,9 @@ module Stripe
|
|
1645
1448
|
attr_accessor :billing_cycle_anchor
|
1646
1449
|
# Specifies which fields in the response should be expanded.
|
1647
1450
|
attr_accessor :expand
|
1648
|
-
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
|
1451
|
+
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor` being `unchanged`. When the `billing_cycle_anchor` is set to `now` (default value), no prorations are generated. If no value is passed, the default is `create_prorations`.
|
1649
1452
|
attr_accessor :proration_behavior
|
1650
|
-
# If set,
|
1453
|
+
# If set, prorations will be calculated as though the subscription was resumed at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint.
|
1651
1454
|
attr_accessor :proration_date
|
1652
1455
|
|
1653
1456
|
def initialize(
|
@@ -1663,9 +1466,9 @@ module Stripe
|
|
1663
1466
|
end
|
1664
1467
|
end
|
1665
1468
|
|
1666
|
-
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://stripe.com/metadata).
|
1469
|
+
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
|
1667
1470
|
#
|
1668
|
-
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://stripe.com/
|
1471
|
+
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
|
1669
1472
|
#
|
1670
1473
|
# By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
|
1671
1474
|
def cancel(subscription_exposed_id, params = {}, opts = {})
|
@@ -1683,7 +1486,7 @@ module Stripe
|
|
1683
1486
|
# When you create a subscription with collection_method=charge_automatically, the first invoice is finalized as part of the request.
|
1684
1487
|
# The payment_behavior parameter determines the exact behavior of the initial payment.
|
1685
1488
|
#
|
1686
|
-
# To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead.
|
1489
|
+
# To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://docs.stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead.
|
1687
1490
|
# Schedules provide the flexibility to model more complex billing configurations that change over time.
|
1688
1491
|
def create(params = {}, opts = {})
|
1689
1492
|
request(
|
@@ -1739,7 +1542,7 @@ module Stripe
|
|
1739
1542
|
)
|
1740
1543
|
end
|
1741
1544
|
|
1742
|
-
# Search for subscriptions you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
1545
|
+
# Search for subscriptions you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
1743
1546
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
1744
1547
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
1745
1548
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -1755,7 +1558,7 @@ module Stripe
|
|
1755
1558
|
|
1756
1559
|
# Updates an existing subscription to match the specified parameters.
|
1757
1560
|
# When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
|
1758
|
-
# To preview how the proration is calculated, use the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint.
|
1561
|
+
# To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
|
1759
1562
|
#
|
1760
1563
|
# By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
|
1761
1564
|
#
|
@@ -1767,13 +1570,13 @@ module Stripe
|
|
1767
1570
|
# A trial starts or ends.
|
1768
1571
|
#
|
1769
1572
|
#
|
1770
|
-
# In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).
|
1573
|
+
# In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://docs.stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).
|
1771
1574
|
#
|
1772
|
-
# If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create).
|
1575
|
+
# If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://docs.stripe.com/docs/api/invoices/create).
|
1773
1576
|
#
|
1774
1577
|
# If you don't want to prorate, set the proration_behavior option to none. With this option, the customer is billed 100 on May 1 and 200 on June 1. Similarly, if you set proration_behavior to none when switching between different billing intervals (for example, from monthly to yearly), we don't generate any credits for the old subscription's unused time. We still reset the billing date and bill immediately for the new subscription.
|
1775
1578
|
#
|
1776
|
-
# Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating <a href="/docs/billing/subscriptions/usage-based">usage-based billing](https://stripe.com/docs/rate-limits) instead.
|
1579
|
+
# Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating <a href="/docs/billing/subscriptions/usage-based">usage-based billing](https://docs.stripe.com/docs/rate-limits) instead.
|
1777
1580
|
def update(subscription_exposed_id, params = {}, opts = {})
|
1778
1581
|
request(
|
1779
1582
|
method: :post,
|