stripe 13.3.0 → 13.4.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1410 -650
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +1 -0
- data/lib/stripe/api_requestor.rb +1 -0
- data/lib/stripe/object_types.rb +32 -0
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/request_signing_authenticator.rb +79 -0
- data/lib/stripe/resources/account.rb +5793 -0
- data/lib/stripe/resources/account_link.rb +64 -0
- data/lib/stripe/resources/account_notice.rb +154 -0
- data/lib/stripe/resources/account_session.rb +1002 -0
- data/lib/stripe/resources/apple_pay_domain.rb +73 -0
- data/lib/stripe/resources/application.rb +23 -0
- data/lib/stripe/resources/application_fee.rb +120 -0
- data/lib/stripe/resources/application_fee_refund.rb +24 -0
- data/lib/stripe/resources/apps/secret.rb +166 -0
- data/lib/stripe/resources/balance.rb +162 -0
- data/lib/stripe/resources/balance_transaction.rb +141 -0
- data/lib/stripe/resources/bank_account.rb +113 -2
- data/lib/stripe/resources/billing/alert.rb +166 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +31 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +89 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +140 -0
- data/lib/stripe/resources/billing/credit_grant.rb +235 -0
- data/lib/stripe/resources/billing/meter.rb +203 -0
- data/lib/stripe/resources/billing/meter_error_report.rb +70 -0
- data/lib/stripe/resources/billing/meter_event.rb +45 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +51 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +21 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +639 -0
- data/lib/stripe/resources/billing_portal/session.rb +313 -0
- data/lib/stripe/resources/capability.rb +111 -0
- data/lib/stripe/resources/capital/financing_offer.rb +221 -0
- data/lib/stripe/resources/capital/financing_summary.rb +77 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +147 -0
- data/lib/stripe/resources/card.rb +111 -0
- data/lib/stripe/resources/cash_balance.rb +22 -0
- data/lib/stripe/resources/charge.rb +3687 -0
- data/lib/stripe/resources/checkout/session.rb +4162 -0
- data/lib/stripe/resources/climate/order.rb +216 -0
- data/lib/stripe/resources/climate/product.rb +69 -0
- data/lib/stripe/resources/climate/supplier.rb +67 -0
- data/lib/stripe/resources/confirmation_token.rb +1855 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +29 -0
- data/lib/stripe/resources/country_spec.rb +76 -0
- data/lib/stripe/resources/coupon.rb +237 -0
- data/lib/stripe/resources/credit_note.rb +798 -0
- data/lib/stripe/resources/credit_note_line_item.rb +89 -0
- data/lib/stripe/resources/customer.rb +995 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +39 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +136 -0
- data/lib/stripe/resources/customer_session.rb +183 -0
- data/lib/stripe/resources/discount.rb +41 -0
- data/lib/stripe/resources/dispute.rb +767 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +54 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +26 -0
- data/lib/stripe/resources/entitlements/feature.rb +107 -0
- data/lib/stripe/resources/ephemeral_key.rb +26 -0
- data/lib/stripe/resources/event.rb +157 -0
- data/lib/stripe/resources/exchange_rate.rb +38 -0
- data/lib/stripe/resources/file.rb +134 -0
- data/lib/stripe/resources/file_link.rb +134 -0
- data/lib/stripe/resources/financial_connections/account.rb +307 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +30 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +24 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +12 -0
- data/lib/stripe/resources/financial_connections/institution.rb +112 -0
- data/lib/stripe/resources/financial_connections/session.rb +187 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +122 -0
- data/lib/stripe/resources/forwarding/request.rb +196 -0
- data/lib/stripe/resources/funding_instructions.rb +415 -0
- data/lib/stripe/resources/gift_cards/card.rb +245 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +313 -0
- data/lib/stripe/resources/identity/verification_report.rb +335 -0
- data/lib/stripe/resources/identity/verification_session.rb +430 -0
- data/lib/stripe/resources/invoice.rb +9348 -0
- data/lib/stripe/resources/invoice_item.rb +536 -0
- data/lib/stripe/resources/invoice_line_item.rb +409 -0
- data/lib/stripe/resources/invoice_payment.rb +72 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +79 -0
- data/lib/stripe/resources/issuing/authorization.rb +1316 -2
- data/lib/stripe/resources/issuing/card.rb +794 -0
- data/lib/stripe/resources/issuing/cardholder.rb +768 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +693 -0
- data/lib/stripe/resources/issuing/dispute.rb +941 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +109 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +333 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +76 -0
- data/lib/stripe/resources/issuing/settlement.rb +65 -0
- data/lib/stripe/resources/issuing/token.rb +221 -0
- data/lib/stripe/resources/issuing/transaction.rb +1098 -0
- data/lib/stripe/resources/line_item.rb +98 -0
- data/lib/stripe/resources/login_link.rb +9 -0
- data/lib/stripe/resources/mandate.rb +214 -0
- data/lib/stripe/resources/margin.rb +143 -0
- data/lib/stripe/resources/order.rb +3238 -0
- data/lib/stripe/resources/payment_attempt_record.rb +226 -0
- data/lib/stripe/resources/payment_intent.rb +14630 -0
- data/lib/stripe/resources/payment_link.rb +1761 -0
- data/lib/stripe/resources/payment_method.rb +1981 -0
- data/lib/stripe/resources/payment_method_configuration.rb +3137 -0
- data/lib/stripe/resources/payment_method_domain.rb +176 -0
- data/lib/stripe/resources/payment_record.rb +824 -0
- data/lib/stripe/resources/payout.rb +267 -0
- data/lib/stripe/resources/person.rb +353 -0
- data/lib/stripe/resources/plan.rb +386 -0
- data/lib/stripe/resources/price.rb +782 -0
- data/lib/stripe/resources/product.rb +636 -0
- data/lib/stripe/resources/product_feature.rb +16 -0
- data/lib/stripe/resources/promotion_code.rb +261 -0
- data/lib/stripe/resources/quote.rb +3404 -0
- data/lib/stripe/resources/quote_line.rb +340 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +833 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +463 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +93 -0
- data/lib/stripe/resources/radar/value_list.rb +151 -0
- data/lib/stripe/resources/radar/value_list_item.rb +113 -0
- data/lib/stripe/resources/refund.rb +489 -0
- data/lib/stripe/resources/reporting/report_run.rb +182 -0
- data/lib/stripe/resources/reporting/report_type.rb +44 -0
- data/lib/stripe/resources/reserve_transaction.rb +26 -0
- data/lib/stripe/resources/reversal.rb +30 -0
- data/lib/stripe/resources/review.rb +135 -0
- data/lib/stripe/resources/setup_attempt.rb +474 -0
- data/lib/stripe/resources/setup_intent.rb +4371 -0
- data/lib/stripe/resources/shipping_rate.rb +303 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +67 -0
- data/lib/stripe/resources/source.rb +1571 -0
- data/lib/stripe/resources/source_mandate_notification.rb +79 -0
- data/lib/stripe/resources/source_transaction.rb +114 -0
- data/lib/stripe/resources/subscription.rb +2395 -0
- data/lib/stripe/resources/subscription_item.rb +502 -0
- data/lib/stripe/resources/subscription_schedule.rb +2790 -0
- data/lib/stripe/resources/tax/association.rb +100 -0
- data/lib/stripe/resources/tax/calculation.rb +474 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +76 -0
- data/lib/stripe/resources/tax/form.rb +253 -0
- data/lib/stripe/resources/tax/registration.rb +2174 -0
- data/lib/stripe/resources/tax/settings.rb +146 -0
- data/lib/stripe/resources/tax/transaction.rb +332 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +43 -0
- data/lib/stripe/resources/tax_code.rb +41 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +26 -0
- data/lib/stripe/resources/tax_id.rb +147 -0
- data/lib/stripe/resources/tax_rate.rb +245 -0
- data/lib/stripe/resources/terminal/configuration.rb +1175 -0
- data/lib/stripe/resources/terminal/connection_token.rb +21 -0
- data/lib/stripe/resources/terminal/location.rb +208 -0
- data/lib/stripe/resources/terminal/reader.rb +911 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +45 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +101 -0
- data/lib/stripe/resources/token.rb +1337 -0
- data/lib/stripe/resources/topup.rb +210 -0
- data/lib/stripe/resources/transfer.rb +188 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +113 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +126 -0
- data/lib/stripe/resources/treasury/financial_account.rb +766 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +237 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +285 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +587 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +428 -0
- data/lib/stripe/resources/treasury/received_credit.rb +335 -0
- data/lib/stripe/resources/treasury/received_debit.rb +298 -0
- data/lib/stripe/resources/treasury/transaction.rb +215 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +193 -0
- data/lib/stripe/resources/usage_record.rb +18 -0
- data/lib/stripe/resources/usage_record_summary.rb +28 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +24 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +28 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +19 -0
- data/lib/stripe/resources/v2/event.rb +35 -0
- data/lib/stripe/resources/v2/event_destination.rb +78 -0
- data/lib/stripe/resources/webhook_endpoint.rb +148 -0
- data/lib/stripe/resources.rb +31 -0
- data/lib/stripe/services/account_capability_service.rb +33 -0
- data/lib/stripe/services/account_external_account_service.rb +293 -0
- data/lib/stripe/services/account_link_service.rb +53 -0
- data/lib/stripe/services/account_login_link_service.rb +9 -0
- data/lib/stripe/services/account_notice_service.rb +110 -0
- data/lib/stripe/services/account_person_service.rb +1014 -0
- data/lib/stripe/services/account_service.rb +4862 -0
- data/lib/stripe/services/account_session_service.rb +740 -0
- data/lib/stripe/services/apple_pay_domain_service.rb +56 -0
- data/lib/stripe/services/application_fee_refund_service.rb +60 -0
- data/lib/stripe/services/application_fee_service.rb +65 -0
- data/lib/stripe/services/apps/secret_service.rb +132 -0
- data/lib/stripe/services/balance_service.rb +9 -0
- data/lib/stripe/services/balance_transaction_service.rb +80 -0
- data/lib/stripe/services/billing/alert_service.rb +125 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +41 -0
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +45 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +167 -0
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +29 -0
- data/lib/stripe/services/billing/meter_event_service.rb +25 -0
- data/lib/stripe/services/billing/meter_event_summary_service.rb +46 -0
- data/lib/stripe/services/billing/meter_service.rb +142 -0
- data/lib/stripe/services/billing_portal/configuration_service.rb +492 -0
- data/lib/stripe/services/billing_portal/session_service.rb +192 -0
- data/lib/stripe/services/capital/financing_offer_service.rb +121 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +86 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/charge_service.rb +2010 -0
- data/lib/stripe/services/checkout/session_line_item_service.rb +21 -0
- data/lib/stripe/services/checkout/session_service.rb +2736 -0
- data/lib/stripe/services/climate/order_service.rb +113 -0
- data/lib/stripe/services/climate/product_service.rb +30 -0
- data/lib/stripe/services/climate/supplier_service.rb +30 -0
- data/lib/stripe/services/confirmation_token_service.rb +9 -0
- data/lib/stripe/services/country_spec_service.rb +30 -0
- data/lib/stripe/services/coupon_service.rb +174 -0
- data/lib/stripe/services/credit_note_line_item_service.rb +21 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +184 -0
- data/lib/stripe/services/credit_note_service.rb +434 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +72 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +30 -0
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +30 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +47 -0
- data/lib/stripe/services/customer_payment_method_service.rb +45 -0
- data/lib/stripe/services/customer_payment_source_service.rb +208 -0
- data/lib/stripe/services/customer_service.rb +684 -0
- data/lib/stripe/services/customer_session_service.rb +106 -0
- data/lib/stripe/services/customer_tax_id_service.rb +50 -0
- data/lib/stripe/services/dispute_service.rb +439 -0
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +40 -0
- data/lib/stripe/services/entitlements/feature_service.rb +87 -0
- data/lib/stripe/services/ephemeral_key_service.rb +40 -0
- data/lib/stripe/services/event_service.rb +75 -0
- data/lib/stripe/services/exchange_rate_service.rb +30 -0
- data/lib/stripe/services/file_link_service.rb +108 -0
- data/lib/stripe/services/file_service.rb +102 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +40 -0
- data/lib/stripe/services/financial_connections/account_owner_service.rb +31 -0
- data/lib/stripe/services/financial_connections/account_service.rb +108 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +60 -0
- data/lib/stripe/services/financial_connections/session_service.rb +108 -0
- data/lib/stripe/services/financial_connections/transaction_service.rb +79 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/forwarding/request_service.rb +120 -0
- data/lib/stripe/services/gift_cards/card_service.rb +183 -0
- data/lib/stripe/services/gift_cards/transaction_service.rb +225 -0
- data/lib/stripe/services/gift_cards_service.rb +14 -0
- data/lib/stripe/services/identity/verification_report_service.rb +75 -0
- data/lib/stripe/services/identity/verification_session_service.rb +261 -0
- data/lib/stripe/services/invoice_item_service.rb +454 -0
- data/lib/stripe/services/invoice_line_item_service.rb +277 -0
- data/lib/stripe/services/invoice_payment_service.rb +58 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +56 -0
- data/lib/stripe/services/invoice_service.rb +6375 -1
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +2142 -0
- data/lib/stripe/services/issuing/authorization_service.rb +118 -0
- data/lib/stripe/services/issuing/card_service.rb +525 -0
- data/lib/stripe/services/issuing/cardholder_service.rb +599 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +560 -0
- data/lib/stripe/services/issuing/dispute_service.rb +731 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +70 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +90 -0
- data/lib/stripe/services/issuing/personalization_design_service.rb +222 -0
- data/lib/stripe/services/issuing/physical_bundle_service.rb +45 -0
- data/lib/stripe/services/issuing/token_service.rb +83 -0
- data/lib/stripe/services/issuing/transaction_service.rb +93 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +9 -0
- data/lib/stripe/services/margin_service.rb +130 -0
- data/lib/stripe/services/order_line_item_service.rb +38 -0
- data/lib/stripe/services/order_service.rb +2518 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +50 -0
- data/lib/stripe/services/payment_intent_service.rb +12203 -0
- data/lib/stripe/services/payment_link_line_item_service.rb +21 -0
- data/lib/stripe/services/payment_link_service.rb +1343 -0
- data/lib/stripe/services/payment_method_configuration_service.rb +2148 -0
- data/lib/stripe/services/payment_method_domain_service.rb +84 -0
- data/lib/stripe/services/payment_method_service.rb +977 -0
- data/lib/stripe/services/payment_record_service.rb +610 -0
- data/lib/stripe/services/payout_service.rb +182 -0
- data/lib/stripe/services/plan_service.rb +296 -0
- data/lib/stripe/services/price_service.rb +603 -0
- data/lib/stripe/services/product_feature_service.rb +46 -0
- data/lib/stripe/services/product_service.rb +533 -0
- data/lib/stripe/services/promotion_code_service.rb +203 -0
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +21 -0
- data/lib/stripe/services/quote_line_item_service.rb +21 -0
- data/lib/stripe/services/quote_line_service.rb +38 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +38 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +38 -0
- data/lib/stripe/services/quote_service.rb +2628 -1
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +70 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +90 -0
- data/lib/stripe/services/radar/value_list_service.rb +119 -0
- data/lib/stripe/services/refund_service.rb +158 -0
- data/lib/stripe/services/reporting/report_run_service.rb +122 -0
- data/lib/stripe/services/reporting/report_type_service.rb +18 -0
- data/lib/stripe/services/review_service.rb +63 -0
- data/lib/stripe/services/setup_attempt_service.rb +59 -0
- data/lib/stripe/services/setup_intent_service.rb +3923 -0
- data/lib/stripe/services/shipping_rate_service.rb +227 -0
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
- data/lib/stripe/services/source_service.rb +693 -0
- data/lib/stripe/services/source_transaction_service.rb +21 -0
- data/lib/stripe/services/subscription_item_service.rb +439 -0
- data/lib/stripe/services/subscription_item_usage_record_service.rb +21 -0
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +21 -0
- data/lib/stripe/services/subscription_schedule_service.rb +2343 -0
- data/lib/stripe/services/subscription_service.rb +1967 -0
- data/lib/stripe/services/tax/association_service.rb +32 -0
- data/lib/stripe/services/tax/calculation_line_item_service.rb +21 -0
- data/lib/stripe/services/tax/calculation_service.rb +235 -0
- data/lib/stripe/services/tax/form_service.rb +107 -0
- data/lib/stripe/services/tax/registration_service.rb +1398 -0
- data/lib/stripe/services/tax/settings_service.rb +82 -0
- data/lib/stripe/services/tax/transaction_line_item_service.rb +21 -0
- data/lib/stripe/services/tax/transaction_service.rb +128 -0
- data/lib/stripe/services/tax_code_service.rb +30 -0
- data/lib/stripe/services/tax_id_service.rb +90 -0
- data/lib/stripe/services/tax_rate_service.rb +182 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/configuration_service.rb +901 -0
- data/lib/stripe/services/terminal/connection_token_service.rb +13 -0
- data/lib/stripe/services/terminal/location_service.rb +165 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
- data/lib/stripe/services/terminal/reader_service.rb +496 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +762 -0
- data/lib/stripe/services/test_helpers/customer_service.rb +21 -0
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +844 -0
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +723 -0
- data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +48 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +39 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +93 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +93 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +95 -0
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +95 -0
- data/lib/stripe/services/token_service.rb +1301 -0
- data/lib/stripe/services/topup_service.rb +163 -0
- data/lib/stripe/services/transfer_reversal_service.rb +74 -0
- data/lib/stripe/services/transfer_service.rb +138 -0
- data/lib/stripe/services/treasury/credit_reversal_service.rb +67 -0
- data/lib/stripe/services/treasury/debit_reversal_service.rb +72 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +179 -0
- data/lib/stripe/services/treasury/financial_account_service.rb +481 -0
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +100 -0
- data/lib/stripe/services/treasury/outbound_payment_service.rb +296 -0
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +147 -0
- data/lib/stripe/services/treasury/received_credit_service.rb +58 -0
- data/lib/stripe/services/treasury/received_debit_service.rb +45 -0
- data/lib/stripe/services/treasury/transaction_entry_service.rb +101 -0
- data/lib/stripe/services/treasury/transaction_service.rb +109 -0
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +25 -0
- data/lib/stripe/services/v2/billing/meter_event_service.rb +28 -0
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +36 -0
- data/lib/stripe/services/v2/core/event_destination_service.rb +164 -0
- data/lib/stripe/services/v2/core/event_service.rb +20 -0
- data/lib/stripe/services/webhook_endpoint_service.rb +110 -0
- data/lib/stripe/services.rb +25 -0
- data/lib/stripe/stripe_client.rb +2 -2
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +8 -3
- data/lib/stripe/util.rb +8 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +46 -0
- data/rbi/stripe/resources/account.rbi +6072 -0
- data/rbi/stripe/resources/account_link.rbi +87 -0
- data/rbi/stripe/resources/account_notice.rbi +166 -0
- data/rbi/stripe/resources/account_session.rbi +1173 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +111 -0
- data/rbi/stripe/resources/application.rbi +23 -0
- data/rbi/stripe/resources/application_fee.rbi +151 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +44 -0
- data/rbi/stripe/resources/apps/secret.rbi +229 -0
- data/rbi/stripe/resources/balance.rbi +220 -0
- data/rbi/stripe/resources/balance_transaction.rbi +182 -0
- data/rbi/stripe/resources/bank_account.rbi +156 -0
- data/rbi/stripe/resources/billing/alert.rbi +237 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +33 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +118 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +181 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +312 -0
- data/rbi/stripe/resources/billing/meter.rbi +268 -0
- data/rbi/stripe/resources/billing/meter_error_report.rbi +82 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +76 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +75 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +39 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +746 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +396 -0
- data/rbi/stripe/resources/capability.rbi +152 -0
- data/rbi/stripe/resources/capital/financing_offer.rbi +228 -0
- data/rbi/stripe/resources/capital/financing_summary.rbi +89 -0
- data/rbi/stripe/resources/capital/financing_transaction.rbi +157 -0
- data/rbi/stripe/resources/card.rbi +159 -0
- data/rbi/stripe/resources/cash_balance.rbi +37 -0
- data/rbi/stripe/resources/charge.rbi +4216 -0
- data/rbi/stripe/resources/checkout/session.rbi +4627 -0
- data/rbi/stripe/resources/climate/order.rbi +298 -0
- data/rbi/stripe/resources/climate/product.rbi +98 -0
- data/rbi/stripe/resources/climate/supplier.rbi +95 -0
- data/rbi/stripe/resources/confirmation_token.rbi +2137 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +31 -0
- data/rbi/stripe/resources/country_spec.rbi +108 -0
- data/rbi/stripe/resources/coupon.rbi +305 -0
- data/rbi/stripe/resources/credit_note.rbi +918 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +123 -0
- data/rbi/stripe/resources/customer.rbi +1188 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +65 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +178 -0
- data/rbi/stripe/resources/customer_session.rbi +227 -0
- data/rbi/stripe/resources/discount.rbi +65 -0
- data/rbi/stripe/resources/dispute.rbi +926 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +76 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +26 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +146 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +51 -0
- data/rbi/stripe/resources/event.rbi +221 -0
- data/rbi/stripe/resources/exchange_rate.rbi +81 -0
- data/rbi/stripe/resources/file.rbi +177 -0
- data/rbi/stripe/resources/file_link.rbi +174 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +414 -0
- data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +30 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +42 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +26 -0
- data/rbi/stripe/resources/financial_connections/institution.rbi +115 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +221 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +153 -0
- data/rbi/stripe/resources/forwarding/request.rbi +257 -0
- data/rbi/stripe/resources/funding_instructions.rbi +544 -0
- data/rbi/stripe/resources/gift_cards/card.rbi +242 -0
- data/rbi/stripe/resources/gift_cards/transaction.rbi +298 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +427 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +601 -0
- data/rbi/stripe/resources/invoice.rbi +10584 -0
- data/rbi/stripe/resources/invoice_item.rbi +621 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +486 -0
- data/rbi/stripe/resources/invoice_payment.rbi +86 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +131 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1511 -0
- data/rbi/stripe/resources/issuing/card.rbi +891 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +870 -0
- data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +731 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +1077 -0
- data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +100 -0
- data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +108 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +395 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +102 -0
- data/rbi/stripe/resources/issuing/settlement.rbi +78 -0
- data/rbi/stripe/resources/issuing/token.rbi +282 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1262 -0
- data/rbi/stripe/resources/line_item.rbi +131 -0
- data/rbi/stripe/resources/login_link.rbi +20 -0
- data/rbi/stripe/resources/mandate.rbi +266 -0
- data/rbi/stripe/resources/margin.rbi +151 -0
- data/rbi/stripe/resources/order.rbi +3505 -0
- data/rbi/stripe/resources/payment_attempt_record.rbi +260 -0
- data/rbi/stripe/resources/payment_intent.rbi +16064 -0
- data/rbi/stripe/resources/payment_link.rbi +1943 -0
- data/rbi/stripe/resources/payment_method.rbi +2287 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3657 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +246 -0
- data/rbi/stripe/resources/payment_record.rbi +856 -0
- data/rbi/stripe/resources/payout.rbi +357 -0
- data/rbi/stripe/resources/person.rbi +461 -0
- data/rbi/stripe/resources/plan.rbi +463 -0
- data/rbi/stripe/resources/price.rbi +884 -0
- data/rbi/stripe/resources/product.rbi +735 -0
- data/rbi/stripe/resources/product_feature.rbi +30 -0
- data/rbi/stripe/resources/promotion_code.rbi +316 -0
- data/rbi/stripe/resources/quote.rbi +3779 -0
- data/rbi/stripe/resources/quote_line.rbi +416 -0
- data/rbi/stripe/resources/quote_preview_invoice.rbi +1030 -0
- data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +575 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +121 -0
- data/rbi/stripe/resources/radar/value_list.rbi +207 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +157 -0
- data/rbi/stripe/resources/refund.rbi +615 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +232 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +75 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +27 -0
- data/rbi/stripe/resources/reversal.rbi +60 -0
- data/rbi/stripe/resources/review.rbi +191 -0
- data/rbi/stripe/resources/setup_attempt.rbi +587 -0
- data/rbi/stripe/resources/setup_intent.rbi +4726 -0
- data/rbi/stripe/resources/shipping_rate.rbi +367 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +98 -0
- data/rbi/stripe/resources/source.rbi +1899 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +90 -0
- data/rbi/stripe/resources/source_transaction.rbi +156 -0
- data/rbi/stripe/resources/subscription.rbi +2739 -0
- data/rbi/stripe/resources/subscription_item.rbi +566 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +3157 -0
- data/rbi/stripe/resources/tax/association.rbi +107 -0
- data/rbi/stripe/resources/tax/calculation.rbi +577 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +108 -0
- data/rbi/stripe/resources/tax/form.rbi +262 -0
- data/rbi/stripe/resources/tax/registration.rbi +2354 -0
- data/rbi/stripe/resources/tax/settings.rbi +174 -0
- data/rbi/stripe/resources/tax/transaction.rbi +428 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +66 -0
- data/rbi/stripe/resources/tax_code.rbi +60 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +27 -0
- data/rbi/stripe/resources/tax_id.rbi +206 -0
- data/rbi/stripe/resources/tax_rate.rbi +295 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1302 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +42 -0
- data/rbi/stripe/resources/terminal/location.rbi +271 -0
- data/rbi/stripe/resources/terminal/reader.rbi +1110 -0
- data/rbi/stripe/resources/terminal/reader_collected_data.rbi +48 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +159 -0
- data/rbi/stripe/resources/token.rbi +1405 -0
- data/rbi/stripe/resources/topup.rbi +269 -0
- data/rbi/stripe/resources/transfer.rbi +245 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +151 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +165 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +924 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +309 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +361 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +702 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +529 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +408 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +367 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +261 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +234 -0
- data/rbi/stripe/resources/usage_record.rbi +37 -0
- data/rbi/stripe/resources/usage_record_summary.rbi +45 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +43 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +48 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +36 -0
- data/rbi/stripe/resources/v2/event.rbi +55 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +109 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +208 -0
- data/rbi/stripe/services/account_capability_service.rbi +55 -0
- data/rbi/stripe/services/account_external_account_service.rbi +358 -0
- data/rbi/stripe/services/account_link_service.rbi +67 -0
- data/rbi/stripe/services/account_login_link_service.rbi +23 -0
- data/rbi/stripe/services/account_notice_service.rbi +103 -0
- data/rbi/stripe/services/account_person_service.rbi +1077 -0
- data/rbi/stripe/services/account_service.rbi +4948 -0
- data/rbi/stripe/services/account_session_service.rbi +873 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +86 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +101 -0
- data/rbi/stripe/services/application_fee_service.rbi +85 -0
- data/rbi/stripe/services/apps/secret_service.rbi +175 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +22 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +103 -0
- data/rbi/stripe/services/billing/alert_service.rbi +172 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +61 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +66 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +217 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +45 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +47 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +62 -0
- data/rbi/stripe/services/billing/meter_service.rbi +184 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +573 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +233 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/capital/financing_offer_service.rbi +108 -0
- data/rbi/stripe/services/capital/financing_summary_service.rbi +23 -0
- data/rbi/stripe/services/capital/financing_transaction_service.rbi +77 -0
- data/rbi/stripe/services/capital_service.rbi +11 -0
- data/rbi/stripe/services/charge_service.rbi +2162 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +37 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2975 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +158 -0
- data/rbi/stripe/services/climate/product_service.rbi +51 -0
- data/rbi/stripe/services/climate/supplier_service.rbi +51 -0
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +21 -0
- data/rbi/stripe/services/country_spec_service.rbi +49 -0
- data/rbi/stripe/services/coupon_service.rbi +220 -0
- data/rbi/stripe/services/credit_note_line_item_service.rbi +35 -0
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +200 -0
- data/rbi/stripe/services/credit_note_service.rbi +496 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +105 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +49 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +49 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +67 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +64 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +265 -0
- data/rbi/stripe/services/customer_service.rbi +763 -0
- data/rbi/stripe/services/customer_session_service.rbi +126 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +80 -0
- data/rbi/stripe/services/dispute_service.rbi +500 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +61 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +122 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +59 -0
- data/rbi/stripe/services/event_service.rbi +94 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +49 -0
- data/rbi/stripe/services/file_link_service.rbi +141 -0
- data/rbi/stripe/services/file_service.rbi +132 -0
- data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +37 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +47 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +148 -0
- data/rbi/stripe/services/financial_connections/institution_service.rbi +51 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +128 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +103 -0
- data/rbi/stripe/services/financial_connections_service.rbi +12 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +152 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/gift_cards/card_service.rbi +162 -0
- data/rbi/stripe/services/gift_cards/transaction_service.rbi +198 -0
- data/rbi/stripe/services/gift_cards_service.rbi +10 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +98 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +360 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +505 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +320 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +49 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +91 -0
- data/rbi/stripe/services/invoice_service.rbi +7138 -0
- data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +2397 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +160 -0
- data/rbi/stripe/services/issuing/card_service.rbi +568 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +668 -0
- data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +580 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +824 -0
- data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +61 -0
- data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +83 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +271 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +66 -0
- data/rbi/stripe/services/issuing/token_service.rbi +109 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +119 -0
- data/rbi/stripe/services/issuing_service.rbi +19 -0
- data/rbi/stripe/services/mandate_service.rbi +21 -0
- data/rbi/stripe/services/margin_service.rbi +119 -0
- data/rbi/stripe/services/order_line_item_service.rbi +35 -0
- data/rbi/stripe/services/order_service.rbi +2669 -0
- data/rbi/stripe/services/payment_attempt_record_service.rbi +39 -0
- data/rbi/stripe/services/payment_intent_service.rbi +13193 -0
- data/rbi/stripe/services/payment_link_line_item_service.rbi +35 -0
- data/rbi/stripe/services/payment_link_service.rbi +1447 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2465 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +123 -0
- data/rbi/stripe/services/payment_method_service.rbi +1032 -0
- data/rbi/stripe/services/payment_record_service.rbi +613 -0
- data/rbi/stripe/services/payout_service.rbi +228 -0
- data/rbi/stripe/services/plan_service.rbi +337 -0
- data/rbi/stripe/services/price_service.rbi +657 -0
- data/rbi/stripe/services/product_feature_service.rbi +76 -0
- data/rbi/stripe/services/product_service.rbi +596 -0
- data/rbi/stripe/services/promotion_code_service.rbi +244 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +35 -0
- data/rbi/stripe/services/quote_line_item_service.rbi +35 -0
- data/rbi/stripe/services/quote_line_service.rbi +35 -0
- data/rbi/stripe/services/quote_preview_invoice_service.rbi +35 -0
- data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +35 -0
- data/rbi/stripe/services/quote_service.rbi +2830 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +95 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +122 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +160 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +208 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +152 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +37 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +93 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +73 -0
- data/rbi/stripe/services/setup_intent_service.rbi +4204 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +274 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +51 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +766 -0
- data/rbi/stripe/services/source_transaction_service.rbi +35 -0
- data/rbi/stripe/services/subscription_item_service.rbi +496 -0
- data/rbi/stripe/services/subscription_item_usage_record_service.rbi +41 -0
- data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +37 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +2613 -0
- data/rbi/stripe/services/subscription_service.rbi +2207 -0
- data/rbi/stripe/services/tax/association_service.rbi +27 -0
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +37 -0
- data/rbi/stripe/services/tax/calculation_service.rbi +267 -0
- data/rbi/stripe/services/tax/form_service.rbi +96 -0
- data/rbi/stripe/services/tax/registration_service.rbi +1495 -0
- data/rbi/stripe/services/tax/settings_service.rbi +106 -0
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +37 -0
- data/rbi/stripe/services/tax/transaction_service.rbi +164 -0
- data/rbi/stripe/services/tax_code_service.rbi +49 -0
- data/rbi/stripe/services/tax_id_service.rbi +128 -0
- data/rbi/stripe/services/tax_rate_service.rbi +215 -0
- data/rbi/stripe/services/tax_service.rbi +14 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +976 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +27 -0
- data/rbi/stripe/services/terminal/location_service.rbi +211 -0
- data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +23 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +591 -0
- data/rbi/stripe/services/terminal_service.rbi +13 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +892 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +37 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +974 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +81 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +73 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +825 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +23 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +100 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +137 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +137 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +130 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +130 -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 +1357 -0
- data/rbi/stripe/services/topup_service.rbi +200 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +111 -0
- data/rbi/stripe/services/transfer_service.rbi +174 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +95 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +100 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +226 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +577 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +133 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +350 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +189 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +79 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +66 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +125 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +133 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +83 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +43 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +46 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +60 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +228 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +42 -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 +149 -0
- metadata +435 -4
@@ -0,0 +1,575 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
module Stripe
|
6
|
+
class QuotePreviewSubscriptionSchedule < APIResource
|
7
|
+
class AppliesTo < Stripe::StripeObject
|
8
|
+
# A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
|
9
|
+
sig { returns(T.nilable(String)) }
|
10
|
+
attr_reader :new_reference
|
11
|
+
|
12
|
+
# The ID of the schedule the line applies to.
|
13
|
+
sig { returns(T.nilable(String)) }
|
14
|
+
attr_reader :subscription_schedule
|
15
|
+
|
16
|
+
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
17
|
+
sig { returns(String) }
|
18
|
+
attr_reader :type
|
19
|
+
end
|
20
|
+
class CurrentPhase < Stripe::StripeObject
|
21
|
+
# The end of this phase of the subscription schedule.
|
22
|
+
sig { returns(Integer) }
|
23
|
+
attr_reader :end_date
|
24
|
+
|
25
|
+
# The start of this phase of the subscription schedule.
|
26
|
+
sig { returns(Integer) }
|
27
|
+
attr_reader :start_date
|
28
|
+
end
|
29
|
+
class DefaultSettings < Stripe::StripeObject
|
30
|
+
class AutomaticTax < Stripe::StripeObject
|
31
|
+
class Liability < Stripe::StripeObject
|
32
|
+
# The connected account being referenced when `type` is `account`.
|
33
|
+
sig { returns(T.any(String, Stripe::Account)) }
|
34
|
+
attr_reader :account
|
35
|
+
|
36
|
+
# Type of the account referenced.
|
37
|
+
sig { returns(String) }
|
38
|
+
attr_reader :type
|
39
|
+
end
|
40
|
+
# If Stripe disabled automatic tax, this enum describes why.
|
41
|
+
sig { returns(T.nilable(String)) }
|
42
|
+
attr_reader :disabled_reason
|
43
|
+
|
44
|
+
# Whether Stripe automatically computes tax on invoices created during this phase.
|
45
|
+
sig { returns(T::Boolean) }
|
46
|
+
attr_reader :enabled
|
47
|
+
|
48
|
+
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
49
|
+
sig { returns(T.nilable(Liability)) }
|
50
|
+
attr_reader :liability
|
51
|
+
end
|
52
|
+
class BillingThresholds < Stripe::StripeObject
|
53
|
+
# Monetary threshold that triggers the subscription to create an invoice
|
54
|
+
sig { returns(T.nilable(Integer)) }
|
55
|
+
attr_reader :amount_gte
|
56
|
+
|
57
|
+
# 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. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
|
58
|
+
sig { returns(T.nilable(T::Boolean)) }
|
59
|
+
attr_reader :reset_billing_cycle_anchor
|
60
|
+
end
|
61
|
+
class InvoiceSettings < Stripe::StripeObject
|
62
|
+
class Issuer < Stripe::StripeObject
|
63
|
+
# The connected account being referenced when `type` is `account`.
|
64
|
+
sig { returns(T.any(String, Stripe::Account)) }
|
65
|
+
attr_reader :account
|
66
|
+
|
67
|
+
# Type of the account referenced.
|
68
|
+
sig { returns(String) }
|
69
|
+
attr_reader :type
|
70
|
+
end
|
71
|
+
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
72
|
+
sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) }
|
73
|
+
attr_reader :account_tax_ids
|
74
|
+
|
75
|
+
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
76
|
+
sig { returns(T.nilable(Integer)) }
|
77
|
+
attr_reader :days_until_due
|
78
|
+
|
79
|
+
# Attribute for field issuer
|
80
|
+
sig { returns(Issuer) }
|
81
|
+
attr_reader :issuer
|
82
|
+
end
|
83
|
+
class TransferData < Stripe::StripeObject
|
84
|
+
# 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.
|
85
|
+
sig { returns(T.nilable(Float)) }
|
86
|
+
attr_reader :amount_percent
|
87
|
+
|
88
|
+
# The account where funds from the payment will be transferred to upon payment success.
|
89
|
+
sig { returns(T.any(String, Stripe::Account)) }
|
90
|
+
attr_reader :destination
|
91
|
+
end
|
92
|
+
# 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 application owner's Stripe account during this phase of the schedule.
|
93
|
+
sig { returns(T.nilable(Float)) }
|
94
|
+
attr_reader :application_fee_percent
|
95
|
+
|
96
|
+
# Attribute for field automatic_tax
|
97
|
+
sig { returns(AutomaticTax) }
|
98
|
+
attr_reader :automatic_tax
|
99
|
+
|
100
|
+
# Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
101
|
+
sig { returns(String) }
|
102
|
+
attr_reader :billing_cycle_anchor
|
103
|
+
|
104
|
+
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
105
|
+
sig { returns(T.nilable(BillingThresholds)) }
|
106
|
+
attr_reader :billing_thresholds
|
107
|
+
|
108
|
+
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing 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`.
|
109
|
+
sig { returns(T.nilable(String)) }
|
110
|
+
attr_reader :collection_method
|
111
|
+
|
112
|
+
# ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
113
|
+
sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) }
|
114
|
+
attr_reader :default_payment_method
|
115
|
+
|
116
|
+
# Subscription 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.
|
117
|
+
sig { returns(T.nilable(String)) }
|
118
|
+
attr_reader :description
|
119
|
+
|
120
|
+
# Attribute for field invoice_settings
|
121
|
+
sig { returns(InvoiceSettings) }
|
122
|
+
attr_reader :invoice_settings
|
123
|
+
|
124
|
+
# The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
|
125
|
+
sig { returns(T.nilable(T.any(String, Stripe::Account))) }
|
126
|
+
attr_reader :on_behalf_of
|
127
|
+
|
128
|
+
# The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
129
|
+
sig { returns(T.nilable(TransferData)) }
|
130
|
+
attr_reader :transfer_data
|
131
|
+
end
|
132
|
+
class LastPriceMigrationError < Stripe::StripeObject
|
133
|
+
class FailedTransition < Stripe::StripeObject
|
134
|
+
# The original price to be migrated.
|
135
|
+
sig { returns(String) }
|
136
|
+
attr_reader :source_price
|
137
|
+
|
138
|
+
# The intended resulting price of the migration.
|
139
|
+
sig { returns(String) }
|
140
|
+
attr_reader :target_price
|
141
|
+
end
|
142
|
+
# The time at which the price migration encountered an error.
|
143
|
+
sig { returns(Integer) }
|
144
|
+
attr_reader :errored_at
|
145
|
+
|
146
|
+
# The involved price pairs in each failed transition.
|
147
|
+
sig { returns(T::Array[FailedTransition]) }
|
148
|
+
attr_reader :failed_transitions
|
149
|
+
|
150
|
+
# The type of error encountered by the price migration.
|
151
|
+
sig { returns(String) }
|
152
|
+
attr_reader :type
|
153
|
+
end
|
154
|
+
class Phase < Stripe::StripeObject
|
155
|
+
class AddInvoiceItem < Stripe::StripeObject
|
156
|
+
class Discount < Stripe::StripeObject
|
157
|
+
class DiscountEnd < Stripe::StripeObject
|
158
|
+
# The discount end timestamp.
|
159
|
+
sig { returns(T.nilable(Integer)) }
|
160
|
+
attr_reader :timestamp
|
161
|
+
|
162
|
+
# The discount end type.
|
163
|
+
sig { returns(String) }
|
164
|
+
attr_reader :type
|
165
|
+
end
|
166
|
+
# ID of the coupon to create a new discount for.
|
167
|
+
sig { returns(T.nilable(T.any(String, Stripe::Coupon))) }
|
168
|
+
attr_reader :coupon
|
169
|
+
|
170
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
171
|
+
sig { returns(T.nilable(T.any(String, Stripe::Discount))) }
|
172
|
+
attr_reader :discount
|
173
|
+
|
174
|
+
# Details to determine how long the discount should be applied for.
|
175
|
+
sig { returns(T.nilable(DiscountEnd)) }
|
176
|
+
attr_reader :discount_end
|
177
|
+
|
178
|
+
# ID of the promotion code to create a new discount for.
|
179
|
+
sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) }
|
180
|
+
attr_reader :promotion_code
|
181
|
+
end
|
182
|
+
# The stackable discounts that will be applied to the item.
|
183
|
+
sig { returns(T::Array[Discount]) }
|
184
|
+
attr_reader :discounts
|
185
|
+
|
186
|
+
# ID of the price used to generate the invoice item.
|
187
|
+
sig { returns(T.any(String, Stripe::Price)) }
|
188
|
+
attr_reader :price
|
189
|
+
|
190
|
+
# The quantity of the invoice item.
|
191
|
+
sig { returns(T.nilable(Integer)) }
|
192
|
+
attr_reader :quantity
|
193
|
+
|
194
|
+
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
195
|
+
sig { returns(T.nilable(T::Array[Stripe::TaxRate])) }
|
196
|
+
attr_reader :tax_rates
|
197
|
+
end
|
198
|
+
class AutomaticTax < Stripe::StripeObject
|
199
|
+
class Liability < Stripe::StripeObject
|
200
|
+
# The connected account being referenced when `type` is `account`.
|
201
|
+
sig { returns(T.any(String, Stripe::Account)) }
|
202
|
+
attr_reader :account
|
203
|
+
|
204
|
+
# Type of the account referenced.
|
205
|
+
sig { returns(String) }
|
206
|
+
attr_reader :type
|
207
|
+
end
|
208
|
+
# If Stripe disabled automatic tax, this enum describes why.
|
209
|
+
sig { returns(T.nilable(String)) }
|
210
|
+
attr_reader :disabled_reason
|
211
|
+
|
212
|
+
# Whether Stripe automatically computes tax on invoices created during this phase.
|
213
|
+
sig { returns(T::Boolean) }
|
214
|
+
attr_reader :enabled
|
215
|
+
|
216
|
+
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
217
|
+
sig { returns(T.nilable(Liability)) }
|
218
|
+
attr_reader :liability
|
219
|
+
end
|
220
|
+
class BillingThresholds < Stripe::StripeObject
|
221
|
+
# Monetary threshold that triggers the subscription to create an invoice
|
222
|
+
sig { returns(T.nilable(Integer)) }
|
223
|
+
attr_reader :amount_gte
|
224
|
+
|
225
|
+
# 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. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
|
226
|
+
sig { returns(T.nilable(T::Boolean)) }
|
227
|
+
attr_reader :reset_billing_cycle_anchor
|
228
|
+
end
|
229
|
+
class Discount < Stripe::StripeObject
|
230
|
+
class DiscountEnd < Stripe::StripeObject
|
231
|
+
# The discount end timestamp.
|
232
|
+
sig { returns(T.nilable(Integer)) }
|
233
|
+
attr_reader :timestamp
|
234
|
+
|
235
|
+
# The discount end type.
|
236
|
+
sig { returns(String) }
|
237
|
+
attr_reader :type
|
238
|
+
end
|
239
|
+
# ID of the coupon to create a new discount for.
|
240
|
+
sig { returns(T.nilable(T.any(String, Stripe::Coupon))) }
|
241
|
+
attr_reader :coupon
|
242
|
+
|
243
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
244
|
+
sig { returns(T.nilable(T.any(String, Stripe::Discount))) }
|
245
|
+
attr_reader :discount
|
246
|
+
|
247
|
+
# Details to determine how long the discount should be applied for.
|
248
|
+
sig { returns(T.nilable(DiscountEnd)) }
|
249
|
+
attr_reader :discount_end
|
250
|
+
|
251
|
+
# ID of the promotion code to create a new discount for.
|
252
|
+
sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) }
|
253
|
+
attr_reader :promotion_code
|
254
|
+
end
|
255
|
+
class InvoiceSettings < Stripe::StripeObject
|
256
|
+
class Issuer < Stripe::StripeObject
|
257
|
+
# The connected account being referenced when `type` is `account`.
|
258
|
+
sig { returns(T.any(String, Stripe::Account)) }
|
259
|
+
attr_reader :account
|
260
|
+
|
261
|
+
# Type of the account referenced.
|
262
|
+
sig { returns(String) }
|
263
|
+
attr_reader :type
|
264
|
+
end
|
265
|
+
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
266
|
+
sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) }
|
267
|
+
attr_reader :account_tax_ids
|
268
|
+
|
269
|
+
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
270
|
+
sig { returns(T.nilable(Integer)) }
|
271
|
+
attr_reader :days_until_due
|
272
|
+
|
273
|
+
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
274
|
+
sig { returns(T.nilable(Issuer)) }
|
275
|
+
attr_reader :issuer
|
276
|
+
end
|
277
|
+
class Item < Stripe::StripeObject
|
278
|
+
class BillingThresholds < Stripe::StripeObject
|
279
|
+
# Usage threshold that triggers the subscription to create an invoice
|
280
|
+
sig { returns(T.nilable(Integer)) }
|
281
|
+
attr_reader :usage_gte
|
282
|
+
end
|
283
|
+
class Discount < Stripe::StripeObject
|
284
|
+
class DiscountEnd < Stripe::StripeObject
|
285
|
+
# The discount end timestamp.
|
286
|
+
sig { returns(T.nilable(Integer)) }
|
287
|
+
attr_reader :timestamp
|
288
|
+
|
289
|
+
# The discount end type.
|
290
|
+
sig { returns(String) }
|
291
|
+
attr_reader :type
|
292
|
+
end
|
293
|
+
# ID of the coupon to create a new discount for.
|
294
|
+
sig { returns(T.nilable(T.any(String, Stripe::Coupon))) }
|
295
|
+
attr_reader :coupon
|
296
|
+
|
297
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
298
|
+
sig { returns(T.nilable(T.any(String, Stripe::Discount))) }
|
299
|
+
attr_reader :discount
|
300
|
+
|
301
|
+
# Details to determine how long the discount should be applied for.
|
302
|
+
sig { returns(T.nilable(DiscountEnd)) }
|
303
|
+
attr_reader :discount_end
|
304
|
+
|
305
|
+
# ID of the promotion code to create a new discount for.
|
306
|
+
sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) }
|
307
|
+
attr_reader :promotion_code
|
308
|
+
end
|
309
|
+
class Trial < Stripe::StripeObject
|
310
|
+
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
311
|
+
sig { returns(T.nilable(T::Array[String])) }
|
312
|
+
attr_reader :converts_to
|
313
|
+
|
314
|
+
# Determines the type of trial for this item.
|
315
|
+
sig { returns(String) }
|
316
|
+
attr_reader :type
|
317
|
+
end
|
318
|
+
# Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
|
319
|
+
sig { returns(T.nilable(BillingThresholds)) }
|
320
|
+
attr_reader :billing_thresholds
|
321
|
+
|
322
|
+
# The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
323
|
+
sig { returns(T::Array[Discount]) }
|
324
|
+
attr_reader :discounts
|
325
|
+
|
326
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
|
327
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
328
|
+
attr_reader :metadata
|
329
|
+
|
330
|
+
# ID of the plan to which the customer should be subscribed.
|
331
|
+
sig { returns(T.any(String, Stripe::Plan)) }
|
332
|
+
attr_reader :plan
|
333
|
+
|
334
|
+
# ID of the price to which the customer should be subscribed.
|
335
|
+
sig { returns(T.any(String, Stripe::Price)) }
|
336
|
+
attr_reader :price
|
337
|
+
|
338
|
+
# Quantity of the plan to which the customer should be subscribed.
|
339
|
+
sig { returns(Integer) }
|
340
|
+
attr_reader :quantity
|
341
|
+
|
342
|
+
# The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
|
343
|
+
sig { returns(T.nilable(T::Array[Stripe::TaxRate])) }
|
344
|
+
attr_reader :tax_rates
|
345
|
+
|
346
|
+
# Options that configure the trial on the subscription item.
|
347
|
+
sig { returns(T.nilable(Trial)) }
|
348
|
+
attr_reader :trial
|
349
|
+
end
|
350
|
+
class PauseCollection < Stripe::StripeObject
|
351
|
+
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
352
|
+
sig { returns(String) }
|
353
|
+
attr_reader :behavior
|
354
|
+
end
|
355
|
+
class TransferData < Stripe::StripeObject
|
356
|
+
# 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.
|
357
|
+
sig { returns(T.nilable(Float)) }
|
358
|
+
attr_reader :amount_percent
|
359
|
+
|
360
|
+
# The account where funds from the payment will be transferred to upon payment success.
|
361
|
+
sig { returns(T.any(String, Stripe::Account)) }
|
362
|
+
attr_reader :destination
|
363
|
+
end
|
364
|
+
class TrialSettings < Stripe::StripeObject
|
365
|
+
class EndBehavior < Stripe::StripeObject
|
366
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
367
|
+
sig { returns(T.nilable(String)) }
|
368
|
+
attr_reader :prorate_up_front
|
369
|
+
end
|
370
|
+
# Defines how the subscription should behave when a trial ends.
|
371
|
+
sig { returns(T.nilable(EndBehavior)) }
|
372
|
+
attr_reader :end_behavior
|
373
|
+
end
|
374
|
+
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
375
|
+
sig { returns(T::Array[AddInvoiceItem]) }
|
376
|
+
attr_reader :add_invoice_items
|
377
|
+
|
378
|
+
# 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 application owner's Stripe account during this phase of the schedule.
|
379
|
+
sig { returns(T.nilable(Float)) }
|
380
|
+
attr_reader :application_fee_percent
|
381
|
+
|
382
|
+
# Attribute for field automatic_tax
|
383
|
+
sig { returns(AutomaticTax) }
|
384
|
+
attr_reader :automatic_tax
|
385
|
+
|
386
|
+
# Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
387
|
+
sig { returns(T.nilable(String)) }
|
388
|
+
attr_reader :billing_cycle_anchor
|
389
|
+
|
390
|
+
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
391
|
+
sig { returns(T.nilable(BillingThresholds)) }
|
392
|
+
attr_reader :billing_thresholds
|
393
|
+
|
394
|
+
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing 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`.
|
395
|
+
sig { returns(T.nilable(String)) }
|
396
|
+
attr_reader :collection_method
|
397
|
+
|
398
|
+
# ID of the coupon to use during this phase of the subscription schedule.
|
399
|
+
sig { returns(T.nilable(T.any(String, Stripe::Coupon))) }
|
400
|
+
attr_reader :coupon
|
401
|
+
|
402
|
+
# 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).
|
403
|
+
sig { returns(String) }
|
404
|
+
attr_reader :currency
|
405
|
+
|
406
|
+
# ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
407
|
+
sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) }
|
408
|
+
attr_reader :default_payment_method
|
409
|
+
|
410
|
+
# The default tax rates to apply to the subscription during this phase of the subscription schedule.
|
411
|
+
sig { returns(T.nilable(T::Array[Stripe::TaxRate])) }
|
412
|
+
attr_reader :default_tax_rates
|
413
|
+
|
414
|
+
# Subscription 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.
|
415
|
+
sig { returns(T.nilable(String)) }
|
416
|
+
attr_reader :description
|
417
|
+
|
418
|
+
# The stackable discounts that will be applied to the subscription on this phase. Subscription item discounts are applied before subscription discounts.
|
419
|
+
sig { returns(T::Array[Discount]) }
|
420
|
+
attr_reader :discounts
|
421
|
+
|
422
|
+
# The end of this phase of the subscription schedule.
|
423
|
+
sig { returns(Integer) }
|
424
|
+
attr_reader :end_date
|
425
|
+
|
426
|
+
# The invoice settings applicable during this phase.
|
427
|
+
sig { returns(T.nilable(InvoiceSettings)) }
|
428
|
+
attr_reader :invoice_settings
|
429
|
+
|
430
|
+
# Subscription items to configure the subscription to during this phase of the subscription schedule.
|
431
|
+
sig { returns(T::Array[Item]) }
|
432
|
+
attr_reader :items
|
433
|
+
|
434
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered. Updating the underlying subscription's `metadata` directly will not affect the current phase's `metadata`.
|
435
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
436
|
+
attr_reader :metadata
|
437
|
+
|
438
|
+
# The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
|
439
|
+
sig { returns(T.nilable(T.any(String, Stripe::Account))) }
|
440
|
+
attr_reader :on_behalf_of
|
441
|
+
|
442
|
+
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
443
|
+
sig { returns(T.nilable(PauseCollection)) }
|
444
|
+
attr_reader :pause_collection
|
445
|
+
|
446
|
+
# If the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`.
|
447
|
+
sig { returns(String) }
|
448
|
+
attr_reader :proration_behavior
|
449
|
+
|
450
|
+
# The start of this phase of the subscription schedule.
|
451
|
+
sig { returns(Integer) }
|
452
|
+
attr_reader :start_date
|
453
|
+
|
454
|
+
# The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
455
|
+
sig { returns(T.nilable(TransferData)) }
|
456
|
+
attr_reader :transfer_data
|
457
|
+
|
458
|
+
# Specify behavior of the trial when crossing schedule phase boundaries
|
459
|
+
sig { returns(T.nilable(String)) }
|
460
|
+
attr_reader :trial_continuation
|
461
|
+
|
462
|
+
# When the trial ends within the phase.
|
463
|
+
sig { returns(T.nilable(Integer)) }
|
464
|
+
attr_reader :trial_end
|
465
|
+
|
466
|
+
# Settings related to any trials on the subscription during this phase.
|
467
|
+
sig { returns(T.nilable(TrialSettings)) }
|
468
|
+
attr_reader :trial_settings
|
469
|
+
end
|
470
|
+
class Prebilling < Stripe::StripeObject
|
471
|
+
# ID of the prebilling invoice.
|
472
|
+
sig { returns(T.any(String, Stripe::Invoice)) }
|
473
|
+
attr_reader :invoice
|
474
|
+
|
475
|
+
# The end of the last period for which the invoice pre-bills.
|
476
|
+
sig { returns(Integer) }
|
477
|
+
attr_reader :period_end
|
478
|
+
|
479
|
+
# The start of the first period for which the invoice pre-bills.
|
480
|
+
sig { returns(Integer) }
|
481
|
+
attr_reader :period_start
|
482
|
+
|
483
|
+
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
484
|
+
sig { returns(String) }
|
485
|
+
attr_reader :update_behavior
|
486
|
+
end
|
487
|
+
# ID of the Connect Application that created the schedule.
|
488
|
+
sig { returns(T.nilable(T.any(String, Stripe::Application))) }
|
489
|
+
attr_reader :application
|
490
|
+
|
491
|
+
# Attribute for field applies_to
|
492
|
+
sig { returns(AppliesTo) }
|
493
|
+
attr_reader :applies_to
|
494
|
+
|
495
|
+
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
496
|
+
sig { returns(String) }
|
497
|
+
attr_reader :billing_behavior
|
498
|
+
|
499
|
+
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
500
|
+
sig { returns(T.nilable(Integer)) }
|
501
|
+
attr_reader :canceled_at
|
502
|
+
|
503
|
+
# Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
|
504
|
+
sig { returns(T.nilable(Integer)) }
|
505
|
+
attr_reader :completed_at
|
506
|
+
|
507
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
508
|
+
sig { returns(Integer) }
|
509
|
+
attr_reader :created
|
510
|
+
|
511
|
+
# Object representing the start and end dates for the current phase of the subscription schedule, if it is `active`.
|
512
|
+
sig { returns(T.nilable(CurrentPhase)) }
|
513
|
+
attr_reader :current_phase
|
514
|
+
|
515
|
+
# ID of the customer who owns the subscription schedule.
|
516
|
+
sig { returns(T.any(String, Stripe::Customer)) }
|
517
|
+
attr_reader :customer
|
518
|
+
|
519
|
+
# Attribute for field default_settings
|
520
|
+
sig { returns(DefaultSettings) }
|
521
|
+
attr_reader :default_settings
|
522
|
+
|
523
|
+
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
524
|
+
sig { returns(String) }
|
525
|
+
attr_reader :end_behavior
|
526
|
+
|
527
|
+
# Unique identifier for the object.
|
528
|
+
sig { returns(String) }
|
529
|
+
attr_reader :id
|
530
|
+
|
531
|
+
# Details of the most recent price migration that failed for the subscription schedule.
|
532
|
+
sig { returns(T.nilable(LastPriceMigrationError)) }
|
533
|
+
attr_reader :last_price_migration_error
|
534
|
+
|
535
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
536
|
+
sig { returns(T::Boolean) }
|
537
|
+
attr_reader :livemode
|
538
|
+
|
539
|
+
# 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.
|
540
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
541
|
+
attr_reader :metadata
|
542
|
+
|
543
|
+
# String representing the object's type. Objects of the same type share the same value.
|
544
|
+
sig { returns(String) }
|
545
|
+
attr_reader :object
|
546
|
+
|
547
|
+
# Configuration for the subscription schedule's phases.
|
548
|
+
sig { returns(T::Array[Phase]) }
|
549
|
+
attr_reader :phases
|
550
|
+
|
551
|
+
# Time period and invoice for a Subscription billed in advance.
|
552
|
+
sig { returns(T.nilable(Prebilling)) }
|
553
|
+
attr_reader :prebilling
|
554
|
+
|
555
|
+
# Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
556
|
+
sig { returns(T.nilable(Integer)) }
|
557
|
+
attr_reader :released_at
|
558
|
+
|
559
|
+
# ID of the subscription once managed by the subscription schedule (if it is released).
|
560
|
+
sig { returns(T.nilable(String)) }
|
561
|
+
attr_reader :released_subscription
|
562
|
+
|
563
|
+
# The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our [behavior guide](https://stripe.com/docs/billing/subscriptions/subscription-schedules).
|
564
|
+
sig { returns(String) }
|
565
|
+
attr_reader :status
|
566
|
+
|
567
|
+
# ID of the subscription managed by the subscription schedule.
|
568
|
+
sig { returns(T.nilable(T.any(String, Stripe::Subscription))) }
|
569
|
+
attr_reader :subscription
|
570
|
+
|
571
|
+
# ID of the test clock this subscription schedule belongs to.
|
572
|
+
sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) }
|
573
|
+
attr_reader :test_clock
|
574
|
+
end
|
575
|
+
end
|