stripe 15.5.0 → 15.6.0.pre.alpha.2
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/API_VERSION +1 -1
- data/CHANGELOG.md +1723 -642
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +185 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +13 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +22 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +80 -0
- data/lib/stripe/resources/account.rb +1137 -42
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_notice.rb +147 -0
- data/lib/stripe/resources/account_session.rb +688 -8
- data/lib/stripe/resources/apple_pay_domain.rb +8 -0
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +16 -0
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +16 -0
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +152 -0
- data/lib/stripe/resources/balance_transaction.rb +16 -0
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +203 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +14 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +132 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +161 -0
- data/lib/stripe/resources/billing/credit_grant.rb +143 -2
- data/lib/stripe/resources/billing/meter.rb +45 -0
- data/lib/stripe/resources/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage.rb +31 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +36 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
- data/lib/stripe/resources/billing_portal/session.rb +107 -0
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/capital/financing_offer.rb +203 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +138 -0
- data/lib/stripe/resources/card.rb +18 -0
- data/lib/stripe/resources/cash_balance.rb +18 -0
- data/lib/stripe/resources/charge.rb +2587 -15
- data/lib/stripe/resources/checkout/session.rb +1583 -15
- data/lib/stripe/resources/climate/order.rb +32 -0
- data/lib/stripe/resources/climate/product.rb +16 -0
- data/lib/stripe/resources/climate/supplier.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +1126 -34
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +32 -0
- data/lib/stripe/resources/coupon.rb +66 -1
- data/lib/stripe/resources/credit_note.rb +76 -0
- data/lib/stripe/resources/credit_note_line_item.rb +62 -0
- data/lib/stripe/resources/customer.rb +79 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +10 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +110 -0
- data/lib/stripe/resources/customer_session.rb +58 -1
- data/lib/stripe/resources/discount.rb +10 -0
- data/lib/stripe/resources/dispute.rb +177 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -0
- data/lib/stripe/resources/ephemeral_key.rb +8 -0
- data/lib/stripe/resources/event.rb +87 -0
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +8 -0
- data/lib/stripe/resources/file_link.rb +8 -0
- data/lib/stripe/resources/financial_connections/account.rb +101 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/institution.rb +145 -0
- data/lib/stripe/resources/financial_connections/session.rb +124 -2
- data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +193 -0
- data/lib/stripe/resources/fx_quote.rb +234 -0
- data/lib/stripe/resources/identity/verification_report.rb +166 -1
- data/lib/stripe/resources/identity/verification_session.rb +136 -1
- data/lib/stripe/resources/invoice.rb +1591 -18
- data/lib/stripe/resources/invoice_item.rb +214 -2
- data/lib/stripe/resources/invoice_line_item.rb +293 -1
- data/lib/stripe/resources/invoice_payment.rb +30 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
- data/lib/stripe/resources/issuing/authorization.rb +177 -0
- data/lib/stripe/resources/issuing/card.rb +96 -8
- data/lib/stripe/resources/issuing/cardholder.rb +112 -1
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +684 -0
- data/lib/stripe/resources/issuing/dispute.rb +97 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +94 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/token.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +157 -0
- data/lib/stripe/resources/line_item.rb +91 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +331 -12
- data/lib/stripe/resources/margin.rb +123 -0
- data/lib/stripe/resources/order.rb +3306 -0
- data/lib/stripe/resources/payment_attempt_record.rb +2056 -0
- data/lib/stripe/resources/payment_intent.rb +11019 -3714
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
- data/lib/stripe/resources/payment_link.rb +337 -0
- data/lib/stripe/resources/payment_method.rb +1074 -35
- data/lib/stripe/resources/payment_method_configuration.rb +1260 -4
- data/lib/stripe/resources/payment_method_domain.rb +111 -0
- data/lib/stripe/resources/payment_record.rb +2602 -0
- data/lib/stripe/resources/payout.rb +16 -0
- data/lib/stripe/resources/person.rb +180 -0
- data/lib/stripe/resources/plan.rb +24 -0
- data/lib/stripe/resources/price.rb +109 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +314 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product.rb +27 -0
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +34 -0
- data/lib/stripe/resources/quote.rb +2512 -49
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1134 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +718 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
- data/lib/stripe/resources/radar/value_list.rb +8 -0
- data/lib/stripe/resources/radar/value_list_item.rb +8 -0
- data/lib/stripe/resources/refund.rb +389 -19
- data/lib/stripe/resources/reporting/report_run.rb +16 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -0
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +352 -17
- data/lib/stripe/resources/setup_intent.rb +1065 -12
- data/lib/stripe/resources/shipping_rate.rb +48 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
- data/lib/stripe/resources/source.rb +303 -0
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +720 -11
- data/lib/stripe/resources/subscription_item.rb +108 -3
- data/lib/stripe/resources/subscription_schedule.rb +1321 -10
- data/lib/stripe/resources/tax/association.rb +98 -0
- data/lib/stripe/resources/tax/calculation.rb +109 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/form.rb +318 -0
- data/lib/stripe/resources/tax/registration.rb +1232 -0
- data/lib/stripe/resources/tax/settings.rb +61 -1
- data/lib/stripe/resources/tax/transaction.rb +93 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +36 -2
- data/lib/stripe/resources/tax_rate.rb +16 -0
- data/lib/stripe/resources/terminal/configuration.rb +332 -0
- data/lib/stripe/resources/terminal/connection_token.rb +8 -0
- data/lib/stripe/resources/terminal/location.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +108 -0
- data/lib/stripe/resources/terminal/reader.rb +249 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
- data/lib/stripe/resources/token.rb +8 -0
- data/lib/stripe/resources/topup.rb +8 -0
- data/lib/stripe/resources/transfer.rb +14 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
- data/lib/stripe/resources/treasury/financial_account.rb +83 -3
- data/lib/stripe/resources/treasury/financial_account_features.rb +194 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +151 -0
- data/lib/stripe/resources/treasury/received_credit.rb +135 -1
- data/lib/stripe/resources/treasury/received_debit.rb +129 -1
- data/lib/stripe/resources/treasury/transaction.rb +36 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +323 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +296 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +284 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +103 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +90 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +107 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +90 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +232 -0
- data/lib/stripe/resources/v2/core/account.rb +3838 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +81 -0
- data/lib/stripe/resources/v2/core/person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
- data/lib/stripe/resources/v2/event.rb +26 -0
- data/lib/stripe/resources/v2/event_destination.rb +44 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +100 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +199 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +113 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +158 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -0
- data/lib/stripe/resources.rb +194 -0
- data/lib/stripe/services/account_notice_service.rb +101 -0
- data/lib/stripe/services/account_service.rb +562 -1
- data/lib/stripe/services/account_session_service.rb +226 -1
- data/lib/stripe/services/balance_settings_service.rb +99 -0
- data/lib/stripe/services/billing/alert_service.rb +75 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +17 -2
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +37 -2
- data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
- data/lib/stripe/services/billing_portal/session_service.rb +4 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/charge_service.rb +1418 -0
- data/lib/stripe/services/checkout/session_service.rb +472 -5
- data/lib/stripe/services/coupon_service.rb +17 -1
- data/lib/stripe/services/credit_note_service.rb +4 -0
- data/lib/stripe/services/customer_session_service.rb +4 -1
- data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
- data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
- data/lib/stripe/services/financial_connections/account_service.rb +7 -2
- data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
- data/lib/stripe/services/financial_connections/session_service.rb +34 -2
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +123 -0
- data/lib/stripe/services/identity/verification_session_service.rb +8 -0
- data/lib/stripe/services/invoice_item_service.rb +74 -2
- data/lib/stripe/services/invoice_line_item_service.rb +33 -1
- data/lib/stripe/services/invoice_payment_service.rb +4 -1
- data/lib/stripe/services/invoice_service.rb +1078 -16
- data/lib/stripe/services/issuing/card_service.rb +0 -8
- data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
- data/lib/stripe/services/issuing/transaction_service.rb +4 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/margin_service.rb +119 -0
- data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
- data/lib/stripe/services/order_service.rb +2388 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +52 -0
- data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
- data/lib/stripe/services/payment_intent_service.rb +7630 -2215
- data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
- data/lib/stripe/services/payment_method_service.rb +120 -1
- data/lib/stripe/services/payment_record_service.rb +562 -0
- data/lib/stripe/services/price_service.rb +19 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
- data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +8 -0
- data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
- data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
- data/lib/stripe/services/quote_service.rb +1723 -8
- data/lib/stripe/services/setup_intent_service.rb +691 -9
- data/lib/stripe/services/subscription_item_service.rb +75 -3
- data/lib/stripe/services/subscription_schedule_service.rb +911 -10
- data/lib/stripe/services/subscription_service.rb +336 -9
- data/lib/stripe/services/tax/association_service.rb +31 -0
- data/lib/stripe/services/tax/form_service.rb +100 -0
- data/lib/stripe/services/tax_id_service.rb +8 -2
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/configuration_service.rb +26 -0
- data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
- data/lib/stripe/services/transfer_service.rb +4 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
- data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +114 -0
- data/lib/stripe/services/v2/core/account_service.rb +4536 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +5 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +119 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +152 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +53 -0
- data/lib/stripe/services/v2_services.rb +6 -1
- data/lib/stripe/services.rb +84 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +26 -2
- data/lib/stripe/util.rb +16 -6
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +280174 -0
- data/stripe.gemspec +4 -1
- metadata +283 -324
- data/rbi/stripe/resources/account.rbi +0 -4991
- data/rbi/stripe/resources/account_link.rbi +0 -76
- data/rbi/stripe/resources/account_session.rbi +0 -1173
- data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
- data/rbi/stripe/resources/application.rbi +0 -20
- data/rbi/stripe/resources/application_fee.rbi +0 -118
- data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
- data/rbi/stripe/resources/apps/secret.rbi +0 -195
- data/rbi/stripe/resources/balance.rbi +0 -230
- data/rbi/stripe/resources/balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/bank_account.rbi +0 -127
- data/rbi/stripe/resources/billing/alert.rbi +0 -201
- data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
- data/rbi/stripe/resources/billing/meter.rbi +0 -226
- data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
- data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -712
- data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
- data/rbi/stripe/resources/capability.rbi +0 -125
- data/rbi/stripe/resources/card.rbi +0 -125
- data/rbi/stripe/resources/cash_balance.rbi +0 -32
- data/rbi/stripe/resources/charge.rbi +0 -2136
- data/rbi/stripe/resources/checkout/session.rbi +0 -4105
- data/rbi/stripe/resources/climate/order.rbi +0 -245
- data/rbi/stripe/resources/climate/product.rbi +0 -75
- data/rbi/stripe/resources/climate/supplier.rbi +0 -72
- data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
- data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
- data/rbi/stripe/resources/country_spec.rbi +0 -85
- data/rbi/stripe/resources/coupon.rbi +0 -250
- data/rbi/stripe/resources/credit_note.rbi +0 -752
- data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
- data/rbi/stripe/resources/customer.rbi +0 -993
- data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
- data/rbi/stripe/resources/customer_session.rbi +0 -200
- data/rbi/stripe/resources/discount.rbi +0 -53
- data/rbi/stripe/resources/dispute.rbi +0 -761
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
- data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
- data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
- data/rbi/stripe/resources/event.rbi +0 -137
- data/rbi/stripe/resources/exchange_rate.rbi +0 -66
- data/rbi/stripe/resources/file.rbi +0 -143
- data/rbi/stripe/resources/file_link.rbi +0 -141
- data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
- data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
- data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
- data/rbi/stripe/resources/forwarding/request.rbi +0 -216
- data/rbi/stripe/resources/funding_instructions.rbi +0 -437
- data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
- data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
- data/rbi/stripe/resources/invoice.rbi +0 -3894
- data/rbi/stripe/resources/invoice_item.rbi +0 -470
- data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
- data/rbi/stripe/resources/invoice_payment.rbi +0 -121
- data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
- data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
- data/rbi/stripe/resources/issuing/card.rbi +0 -749
- data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
- data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
- data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
- data/rbi/stripe/resources/issuing/token.rbi +0 -226
- data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
- data/rbi/stripe/resources/line_item.rbi +0 -72
- data/rbi/stripe/resources/login_link.rbi +0 -19
- data/rbi/stripe/resources/mandate.rbi +0 -191
- data/rbi/stripe/resources/payment_intent.rbi +0 -10011
- data/rbi/stripe/resources/payment_link.rbi +0 -1891
- data/rbi/stripe/resources/payment_method.rbi +0 -1770
- data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
- data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
- data/rbi/stripe/resources/payout.rbi +0 -307
- data/rbi/stripe/resources/person.rbi +0 -401
- data/rbi/stripe/resources/plan.rbi +0 -371
- data/rbi/stripe/resources/price.rbi +0 -694
- data/rbi/stripe/resources/product.rbi +0 -553
- data/rbi/stripe/resources/product_feature.rbi +0 -26
- data/rbi/stripe/resources/promotion_code.rbi +0 -264
- data/rbi/stripe/resources/quote.rbi +0 -1137
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
- data/rbi/stripe/resources/radar/value_list.rbi +0 -168
- data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
- data/rbi/stripe/resources/refund.rbi +0 -523
- data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
- data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
- data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
- data/rbi/stripe/resources/reversal.rbi +0 -51
- data/rbi/stripe/resources/review.rbi +0 -154
- data/rbi/stripe/resources/setup_attempt.rbi +0 -477
- data/rbi/stripe/resources/setup_intent.rbi +0 -3974
- data/rbi/stripe/resources/shipping_rate.rbi +0 -305
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
- data/rbi/stripe/resources/source.rbi +0 -1496
- data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
- data/rbi/stripe/resources/source_transaction.rbi +0 -127
- data/rbi/stripe/resources/subscription.rbi +0 -2154
- data/rbi/stripe/resources/subscription_item.rbi +0 -404
- data/rbi/stripe/resources/subscription_schedule.rbi +0 -1795
- data/rbi/stripe/resources/tax/calculation.rbi +0 -478
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
- data/rbi/stripe/resources/tax/registration.rbi +0 -3216
- data/rbi/stripe/resources/tax/settings.rbi +0 -141
- data/rbi/stripe/resources/tax/transaction.rbi +0 -351
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
- data/rbi/stripe/resources/tax_code.rbi +0 -44
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
- data/rbi/stripe/resources/tax_id.rbi +0 -165
- data/rbi/stripe/resources/tax_rate.rbi +0 -239
- data/rbi/stripe/resources/terminal/configuration.rbi +0 -1647
- data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
- data/rbi/stripe/resources/terminal/location.rbi +0 -222
- data/rbi/stripe/resources/terminal/reader.rbi +0 -1016
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
- data/rbi/stripe/resources/token.rbi +0 -1281
- data/rbi/stripe/resources/topup.rbi +0 -222
- data/rbi/stripe/resources/transfer.rbi +0 -199
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
- data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
- data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
- data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
- data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
- data/rbi/stripe/resources/v2/amount.rbi +0 -14
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
- data/rbi/stripe/resources/v2/event.rbi +0 -48
- data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
- data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
- data/rbi/stripe/services/account_capability_service.rbi +0 -51
- data/rbi/stripe/services/account_link_service.rbi +0 -60
- data/rbi/stripe/services/account_login_link_service.rbi +0 -22
- data/rbi/stripe/services/account_person_service.rbi +0 -1007
- data/rbi/stripe/services/account_service.rbi +0 -4281
- data/rbi/stripe/services/account_session_service.rbi +0 -748
- data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
- data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
- data/rbi/stripe/services/application_fee_service.rbi +0 -78
- data/rbi/stripe/services/apps/secret_service.rbi +0 -151
- data/rbi/stripe/services/apps_service.rbi +0 -9
- data/rbi/stripe/services/balance_service.rbi +0 -21
- data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
- data/rbi/stripe/services/billing/alert_service.rbi +0 -152
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
- data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
- data/rbi/stripe/services/billing/meter_service.rbi +0 -163
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -561
- data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
- data/rbi/stripe/services/billing_portal_service.rbi +0 -10
- data/rbi/stripe/services/billing_service.rbi +0 -15
- data/rbi/stripe/services/charge_service.rbi +0 -448
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
- data/rbi/stripe/services/checkout/session_service.rbi +0 -2697
- data/rbi/stripe/services/checkout_service.rbi +0 -9
- data/rbi/stripe/services/climate/order_service.rbi +0 -142
- data/rbi/stripe/services/climate/product_service.rbi +0 -46
- data/rbi/stripe/services/climate_service.rbi +0 -11
- data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
- data/rbi/stripe/services/country_spec_service.rbi +0 -44
- data/rbi/stripe/services/coupon_service.rbi +0 -194
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
- data/rbi/stripe/services/credit_note_service.rbi +0 -415
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
- data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
- data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
- data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
- data/rbi/stripe/services/customer_service.rbi +0 -635
- data/rbi/stripe/services/customer_session_service.rbi +0 -116
- data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
- data/rbi/stripe/services/dispute_service.rbi +0 -424
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
- data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
- data/rbi/stripe/services/entitlements_service.rbi +0 -10
- data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
- data/rbi/stripe/services/event_service.rbi +0 -83
- data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
- data/rbi/stripe/services/file_link_service.rbi +0 -124
- data/rbi/stripe/services/file_service.rbi +0 -116
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
- data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
- data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
- data/rbi/stripe/services/financial_connections_service.rbi +0 -11
- data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
- data/rbi/stripe/services/forwarding_service.rbi +0 -9
- data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
- data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
- data/rbi/stripe/services/identity_service.rbi +0 -10
- data/rbi/stripe/services/invoice_item_service.rbi +0 -366
- data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
- data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
- data/rbi/stripe/services/invoice_service.rbi +0 -3073
- data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
- data/rbi/stripe/services/issuing/card_service.rbi +0 -503
- data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
- data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
- data/rbi/stripe/services/issuing/token_service.rbi +0 -99
- data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
- data/rbi/stripe/services/issuing_service.rbi +0 -16
- data/rbi/stripe/services/mandate_service.rbi +0 -20
- data/rbi/stripe/services/payment_intent_service.rbi +0 -8010
- data/rbi/stripe/services/payment_link_service.rbi +0 -1441
- data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
- data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
- data/rbi/stripe/services/payment_method_service.rbi +0 -781
- data/rbi/stripe/services/payout_service.rbi +0 -209
- data/rbi/stripe/services/plan_service.rbi +0 -282
- data/rbi/stripe/services/price_service.rbi +0 -546
- data/rbi/stripe/services/product_feature_service.rbi +0 -67
- data/rbi/stripe/services/product_service.rbi +0 -477
- data/rbi/stripe/services/promotion_code_service.rbi +0 -214
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
- data/rbi/stripe/services/quote_service.rbi +0 -695
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
- data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
- data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
- data/rbi/stripe/services/radar_service.rbi +0 -11
- data/rbi/stripe/services/refund_service.rbi +0 -185
- data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
- data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
- data/rbi/stripe/services/reporting_service.rbi +0 -10
- data/rbi/stripe/services/review_service.rbi +0 -84
- data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
- data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
- data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
- data/rbi/stripe/services/sigma_service.rbi +0 -9
- data/rbi/stripe/services/source_service.rbi +0 -663
- data/rbi/stripe/services/subscription_item_service.rbi +0 -350
- data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1425
- data/rbi/stripe/services/subscription_service.rbi +0 -1768
- data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
- data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
- data/rbi/stripe/services/tax/settings_service.rbi +0 -93
- data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
- data/rbi/stripe/services/tax_code_service.rbi +0 -44
- data/rbi/stripe/services/tax_id_service.rbi +0 -110
- data/rbi/stripe/services/tax_rate_service.rbi +0 -185
- data/rbi/stripe/services/tax_service.rbi +0 -12
- data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1328
- data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
- data/rbi/stripe/services/terminal/location_service.rbi +0 -182
- data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
- data/rbi/stripe/services/terminal_service.rbi +0 -12
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
- data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
- data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -117
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
- data/rbi/stripe/services/test_helpers_service.rbi +0 -15
- data/rbi/stripe/services/token_service.rbi +0 -1255
- data/rbi/stripe/services/topup_service.rbi +0 -176
- data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
- data/rbi/stripe/services/transfer_service.rbi +0 -152
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
- data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
- data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
- data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
- data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
- data/rbi/stripe/services/treasury_service.rbi +0 -18
- data/rbi/stripe/services/v1_services.rbi +0 -77
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
- data/rbi/stripe/services/v2/billing_service.rbi +0 -14
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
- data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
- data/rbi/stripe/services/v2/core_service.rbi +0 -12
- data/rbi/stripe/services/v2_services.rbi +0 -10
- data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -30,6 +30,14 @@ module Stripe
|
|
30
30
|
class AdaptivePricing < Stripe::StripeObject
|
31
31
|
# If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions).
|
32
32
|
attr_reader :enabled
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
33
41
|
end
|
34
42
|
|
35
43
|
class AfterExpiration < Stripe::StripeObject
|
@@ -44,9 +52,25 @@ module Stripe
|
|
44
52
|
attr_reader :expires_at
|
45
53
|
# URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session
|
46
54
|
attr_reader :url
|
55
|
+
|
56
|
+
def self.inner_class_types
|
57
|
+
@inner_class_types = {}
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.field_remappings
|
61
|
+
@field_remappings = {}
|
62
|
+
end
|
47
63
|
end
|
48
64
|
# When set, configuration used to recover the Checkout Session on expiry.
|
49
65
|
attr_reader :recovery
|
66
|
+
|
67
|
+
def self.inner_class_types
|
68
|
+
@inner_class_types = { recovery: Recovery }
|
69
|
+
end
|
70
|
+
|
71
|
+
def self.field_remappings
|
72
|
+
@field_remappings = {}
|
73
|
+
end
|
50
74
|
end
|
51
75
|
|
52
76
|
class AutomaticTax < Stripe::StripeObject
|
@@ -55,6 +79,14 @@ module Stripe
|
|
55
79
|
attr_reader :account
|
56
80
|
# Type of the account referenced.
|
57
81
|
attr_reader :type
|
82
|
+
|
83
|
+
def self.inner_class_types
|
84
|
+
@inner_class_types = {}
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.field_remappings
|
88
|
+
@field_remappings = {}
|
89
|
+
end
|
58
90
|
end
|
59
91
|
# Indicates whether automatic tax is enabled for the session
|
60
92
|
attr_reader :enabled
|
@@ -64,6 +96,14 @@ module Stripe
|
|
64
96
|
attr_reader :provider
|
65
97
|
# The status of the most recent automated tax calculation for this session.
|
66
98
|
attr_reader :status
|
99
|
+
|
100
|
+
def self.inner_class_types
|
101
|
+
@inner_class_types = { liability: Liability }
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.field_remappings
|
105
|
+
@field_remappings = {}
|
106
|
+
end
|
67
107
|
end
|
68
108
|
|
69
109
|
class CollectedInformation < Stripe::StripeObject
|
@@ -81,14 +121,61 @@ module Stripe
|
|
81
121
|
attr_reader :postal_code
|
82
122
|
# State, county, province, or region.
|
83
123
|
attr_reader :state
|
124
|
+
|
125
|
+
def self.inner_class_types
|
126
|
+
@inner_class_types = {}
|
127
|
+
end
|
128
|
+
|
129
|
+
def self.field_remappings
|
130
|
+
@field_remappings = {}
|
131
|
+
end
|
84
132
|
end
|
85
133
|
# Attribute for field address
|
86
134
|
attr_reader :address
|
87
135
|
# Customer name.
|
88
136
|
attr_reader :name
|
137
|
+
|
138
|
+
def self.inner_class_types
|
139
|
+
@inner_class_types = { address: Address }
|
140
|
+
end
|
141
|
+
|
142
|
+
def self.field_remappings
|
143
|
+
@field_remappings = {}
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class TaxId < Stripe::StripeObject
|
148
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
149
|
+
attr_reader :type
|
150
|
+
# The value of the tax ID.
|
151
|
+
attr_reader :value
|
152
|
+
|
153
|
+
def self.inner_class_types
|
154
|
+
@inner_class_types = {}
|
155
|
+
end
|
156
|
+
|
157
|
+
def self.field_remappings
|
158
|
+
@field_remappings = {}
|
159
|
+
end
|
89
160
|
end
|
161
|
+
# Customer’s business name for this Checkout Session
|
162
|
+
attr_reader :business_name
|
163
|
+
# Customer’s email for this Checkout Session
|
164
|
+
attr_reader :email
|
165
|
+
# Customer’s phone number for this Checkout Session
|
166
|
+
attr_reader :phone
|
90
167
|
# Shipping information for this Checkout Session.
|
91
168
|
attr_reader :shipping_details
|
169
|
+
# Customer’s tax ids for this Checkout Session.
|
170
|
+
attr_reader :tax_ids
|
171
|
+
|
172
|
+
def self.inner_class_types
|
173
|
+
@inner_class_types = { shipping_details: ShippingDetails, tax_ids: TaxId }
|
174
|
+
end
|
175
|
+
|
176
|
+
def self.field_remappings
|
177
|
+
@field_remappings = {}
|
178
|
+
end
|
92
179
|
end
|
93
180
|
|
94
181
|
class Consent < Stripe::StripeObject
|
@@ -97,6 +184,14 @@ module Stripe
|
|
97
184
|
attr_reader :promotions
|
98
185
|
# If `accepted`, the customer in this Checkout Session has agreed to the merchant's terms of service.
|
99
186
|
attr_reader :terms_of_service
|
187
|
+
|
188
|
+
def self.inner_class_types
|
189
|
+
@inner_class_types = {}
|
190
|
+
end
|
191
|
+
|
192
|
+
def self.field_remappings
|
193
|
+
@field_remappings = {}
|
194
|
+
end
|
100
195
|
end
|
101
196
|
|
102
197
|
class ConsentCollection < Stripe::StripeObject
|
@@ -105,6 +200,14 @@ module Stripe
|
|
105
200
|
#
|
106
201
|
# When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
|
107
202
|
attr_reader :position
|
203
|
+
|
204
|
+
def self.inner_class_types
|
205
|
+
@inner_class_types = {}
|
206
|
+
end
|
207
|
+
|
208
|
+
def self.field_remappings
|
209
|
+
@field_remappings = {}
|
210
|
+
end
|
108
211
|
end
|
109
212
|
# If set to `hidden`, it will hide legal text related to the reuse of a payment method.
|
110
213
|
attr_reader :payment_method_reuse_agreement
|
@@ -114,6 +217,14 @@ module Stripe
|
|
114
217
|
attr_reader :promotions
|
115
218
|
# If set to `required`, it requires customers to accept the terms of service before being able to pay.
|
116
219
|
attr_reader :terms_of_service
|
220
|
+
|
221
|
+
def self.inner_class_types
|
222
|
+
@inner_class_types = { payment_method_reuse_agreement: PaymentMethodReuseAgreement }
|
223
|
+
end
|
224
|
+
|
225
|
+
def self.field_remappings
|
226
|
+
@field_remappings = {}
|
227
|
+
end
|
117
228
|
end
|
118
229
|
|
119
230
|
class CurrencyConversion < Stripe::StripeObject
|
@@ -125,6 +236,14 @@ module Stripe
|
|
125
236
|
attr_reader :fx_rate
|
126
237
|
# Creation currency of the CheckoutSession before localization
|
127
238
|
attr_reader :source_currency
|
239
|
+
|
240
|
+
def self.inner_class_types
|
241
|
+
@inner_class_types = {}
|
242
|
+
end
|
243
|
+
|
244
|
+
def self.field_remappings
|
245
|
+
@field_remappings = {}
|
246
|
+
end
|
128
247
|
end
|
129
248
|
|
130
249
|
class CustomField < Stripe::StripeObject
|
@@ -134,6 +253,14 @@ module Stripe
|
|
134
253
|
attr_reader :label
|
135
254
|
# The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
|
136
255
|
attr_reader :value
|
256
|
+
|
257
|
+
def self.inner_class_types
|
258
|
+
@inner_class_types = {}
|
259
|
+
end
|
260
|
+
|
261
|
+
def self.field_remappings
|
262
|
+
@field_remappings = {}
|
263
|
+
end
|
137
264
|
end
|
138
265
|
# The value that will pre-fill on the payment page.
|
139
266
|
attr_reader :default_value
|
@@ -141,6 +268,14 @@ module Stripe
|
|
141
268
|
attr_reader :options
|
142
269
|
# The option selected by the customer. This will be the `value` for the option.
|
143
270
|
attr_reader :value
|
271
|
+
|
272
|
+
def self.inner_class_types
|
273
|
+
@inner_class_types = { options: Option }
|
274
|
+
end
|
275
|
+
|
276
|
+
def self.field_remappings
|
277
|
+
@field_remappings = {}
|
278
|
+
end
|
144
279
|
end
|
145
280
|
|
146
281
|
class Label < Stripe::StripeObject
|
@@ -148,6 +283,14 @@ module Stripe
|
|
148
283
|
attr_reader :custom
|
149
284
|
# The type of the label.
|
150
285
|
attr_reader :type
|
286
|
+
|
287
|
+
def self.inner_class_types
|
288
|
+
@inner_class_types = {}
|
289
|
+
end
|
290
|
+
|
291
|
+
def self.field_remappings
|
292
|
+
@field_remappings = {}
|
293
|
+
end
|
151
294
|
end
|
152
295
|
|
153
296
|
class Numeric < Stripe::StripeObject
|
@@ -159,6 +302,14 @@ module Stripe
|
|
159
302
|
attr_reader :minimum_length
|
160
303
|
# The value entered by the customer, containing only digits.
|
161
304
|
attr_reader :value
|
305
|
+
|
306
|
+
def self.inner_class_types
|
307
|
+
@inner_class_types = {}
|
308
|
+
end
|
309
|
+
|
310
|
+
def self.field_remappings
|
311
|
+
@field_remappings = {}
|
312
|
+
end
|
162
313
|
end
|
163
314
|
|
164
315
|
class Text < Stripe::StripeObject
|
@@ -170,6 +321,14 @@ module Stripe
|
|
170
321
|
attr_reader :minimum_length
|
171
322
|
# The value entered by the customer.
|
172
323
|
attr_reader :value
|
324
|
+
|
325
|
+
def self.inner_class_types
|
326
|
+
@inner_class_types = {}
|
327
|
+
end
|
328
|
+
|
329
|
+
def self.field_remappings
|
330
|
+
@field_remappings = {}
|
331
|
+
end
|
173
332
|
end
|
174
333
|
# Attribute for field dropdown
|
175
334
|
attr_reader :dropdown
|
@@ -185,27 +344,67 @@ module Stripe
|
|
185
344
|
attr_reader :text
|
186
345
|
# The type of the field.
|
187
346
|
attr_reader :type
|
347
|
+
|
348
|
+
def self.inner_class_types
|
349
|
+
@inner_class_types = { dropdown: Dropdown, label: Label, numeric: Numeric, text: Text }
|
350
|
+
end
|
351
|
+
|
352
|
+
def self.field_remappings
|
353
|
+
@field_remappings = {}
|
354
|
+
end
|
188
355
|
end
|
189
356
|
|
190
357
|
class CustomText < Stripe::StripeObject
|
191
358
|
class AfterSubmit < Stripe::StripeObject
|
192
359
|
# Text may be up to 1200 characters in length.
|
193
360
|
attr_reader :message
|
361
|
+
|
362
|
+
def self.inner_class_types
|
363
|
+
@inner_class_types = {}
|
364
|
+
end
|
365
|
+
|
366
|
+
def self.field_remappings
|
367
|
+
@field_remappings = {}
|
368
|
+
end
|
194
369
|
end
|
195
370
|
|
196
371
|
class ShippingAddress < Stripe::StripeObject
|
197
372
|
# Text may be up to 1200 characters in length.
|
198
373
|
attr_reader :message
|
374
|
+
|
375
|
+
def self.inner_class_types
|
376
|
+
@inner_class_types = {}
|
377
|
+
end
|
378
|
+
|
379
|
+
def self.field_remappings
|
380
|
+
@field_remappings = {}
|
381
|
+
end
|
199
382
|
end
|
200
383
|
|
201
384
|
class Submit < Stripe::StripeObject
|
202
385
|
# Text may be up to 1200 characters in length.
|
203
386
|
attr_reader :message
|
387
|
+
|
388
|
+
def self.inner_class_types
|
389
|
+
@inner_class_types = {}
|
390
|
+
end
|
391
|
+
|
392
|
+
def self.field_remappings
|
393
|
+
@field_remappings = {}
|
394
|
+
end
|
204
395
|
end
|
205
396
|
|
206
397
|
class TermsOfServiceAcceptance < Stripe::StripeObject
|
207
398
|
# Text may be up to 1200 characters in length.
|
208
399
|
attr_reader :message
|
400
|
+
|
401
|
+
def self.inner_class_types
|
402
|
+
@inner_class_types = {}
|
403
|
+
end
|
404
|
+
|
405
|
+
def self.field_remappings
|
406
|
+
@field_remappings = {}
|
407
|
+
end
|
209
408
|
end
|
210
409
|
# Custom text that should be displayed after the payment confirmation button.
|
211
410
|
attr_reader :after_submit
|
@@ -215,6 +414,19 @@ module Stripe
|
|
215
414
|
attr_reader :submit
|
216
415
|
# Custom text that should be displayed in place of the default terms of service agreement text.
|
217
416
|
attr_reader :terms_of_service_acceptance
|
417
|
+
|
418
|
+
def self.inner_class_types
|
419
|
+
@inner_class_types = {
|
420
|
+
after_submit: AfterSubmit,
|
421
|
+
shipping_address: ShippingAddress,
|
422
|
+
submit: Submit,
|
423
|
+
terms_of_service_acceptance: TermsOfServiceAcceptance,
|
424
|
+
}
|
425
|
+
end
|
426
|
+
|
427
|
+
def self.field_remappings
|
428
|
+
@field_remappings = {}
|
429
|
+
end
|
218
430
|
end
|
219
431
|
|
220
432
|
class CustomerDetails < Stripe::StripeObject
|
@@ -231,6 +443,14 @@ module Stripe
|
|
231
443
|
attr_reader :postal_code
|
232
444
|
# State, county, province, or region.
|
233
445
|
attr_reader :state
|
446
|
+
|
447
|
+
def self.inner_class_types
|
448
|
+
@inner_class_types = {}
|
449
|
+
end
|
450
|
+
|
451
|
+
def self.field_remappings
|
452
|
+
@field_remappings = {}
|
453
|
+
end
|
234
454
|
end
|
235
455
|
|
236
456
|
class TaxId < Stripe::StripeObject
|
@@ -238,6 +458,14 @@ module Stripe
|
|
238
458
|
attr_reader :type
|
239
459
|
# The value of the tax ID.
|
240
460
|
attr_reader :value
|
461
|
+
|
462
|
+
def self.inner_class_types
|
463
|
+
@inner_class_types = {}
|
464
|
+
end
|
465
|
+
|
466
|
+
def self.field_remappings
|
467
|
+
@field_remappings = {}
|
468
|
+
end
|
241
469
|
end
|
242
470
|
# The customer's address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.
|
243
471
|
attr_reader :address
|
@@ -252,6 +480,14 @@ module Stripe
|
|
252
480
|
attr_reader :tax_exempt
|
253
481
|
# The customer’s tax IDs after a completed Checkout Session.
|
254
482
|
attr_reader :tax_ids
|
483
|
+
|
484
|
+
def self.inner_class_types
|
485
|
+
@inner_class_types = { address: Address, tax_ids: TaxId }
|
486
|
+
end
|
487
|
+
|
488
|
+
def self.field_remappings
|
489
|
+
@field_remappings = {}
|
490
|
+
end
|
255
491
|
end
|
256
492
|
|
257
493
|
class Discount < Stripe::StripeObject
|
@@ -259,6 +495,14 @@ module Stripe
|
|
259
495
|
attr_reader :coupon
|
260
496
|
# Promotion code attached to the Checkout Session.
|
261
497
|
attr_reader :promotion_code
|
498
|
+
|
499
|
+
def self.inner_class_types
|
500
|
+
@inner_class_types = {}
|
501
|
+
end
|
502
|
+
|
503
|
+
def self.field_remappings
|
504
|
+
@field_remappings = {}
|
505
|
+
end
|
262
506
|
end
|
263
507
|
|
264
508
|
class InvoiceCreation < Stripe::StripeObject
|
@@ -268,6 +512,14 @@ module Stripe
|
|
268
512
|
attr_reader :name
|
269
513
|
# The value of the custom field.
|
270
514
|
attr_reader :value
|
515
|
+
|
516
|
+
def self.inner_class_types
|
517
|
+
@inner_class_types = {}
|
518
|
+
end
|
519
|
+
|
520
|
+
def self.field_remappings
|
521
|
+
@field_remappings = {}
|
522
|
+
end
|
271
523
|
end
|
272
524
|
|
273
525
|
class Issuer < Stripe::StripeObject
|
@@ -275,6 +527,14 @@ module Stripe
|
|
275
527
|
attr_reader :account
|
276
528
|
# Type of the account referenced.
|
277
529
|
attr_reader :type
|
530
|
+
|
531
|
+
def self.inner_class_types
|
532
|
+
@inner_class_types = {}
|
533
|
+
end
|
534
|
+
|
535
|
+
def self.field_remappings
|
536
|
+
@field_remappings = {}
|
537
|
+
end
|
278
538
|
end
|
279
539
|
|
280
540
|
class RenderingOptions < Stripe::StripeObject
|
@@ -282,6 +542,14 @@ module Stripe
|
|
282
542
|
attr_reader :amount_tax_display
|
283
543
|
# ID of the invoice rendering template to be used for the generated invoice.
|
284
544
|
attr_reader :template
|
545
|
+
|
546
|
+
def self.inner_class_types
|
547
|
+
@inner_class_types = {}
|
548
|
+
end
|
549
|
+
|
550
|
+
def self.field_remappings
|
551
|
+
@field_remappings = {}
|
552
|
+
end
|
285
553
|
end
|
286
554
|
# The account tax IDs associated with the invoice.
|
287
555
|
attr_reader :account_tax_ids
|
@@ -297,11 +565,31 @@ module Stripe
|
|
297
565
|
attr_reader :metadata
|
298
566
|
# Options for invoice PDF rendering.
|
299
567
|
attr_reader :rendering_options
|
568
|
+
|
569
|
+
def self.inner_class_types
|
570
|
+
@inner_class_types = {
|
571
|
+
custom_fields: CustomField,
|
572
|
+
issuer: Issuer,
|
573
|
+
rendering_options: RenderingOptions,
|
574
|
+
}
|
575
|
+
end
|
576
|
+
|
577
|
+
def self.field_remappings
|
578
|
+
@field_remappings = {}
|
579
|
+
end
|
300
580
|
end
|
301
581
|
# Indicates whether invoice creation is enabled for the Checkout Session.
|
302
582
|
attr_reader :enabled
|
303
583
|
# Attribute for field invoice_data
|
304
584
|
attr_reader :invoice_data
|
585
|
+
|
586
|
+
def self.inner_class_types
|
587
|
+
@inner_class_types = { invoice_data: InvoiceData }
|
588
|
+
end
|
589
|
+
|
590
|
+
def self.field_remappings
|
591
|
+
@field_remappings = {}
|
592
|
+
end
|
305
593
|
end
|
306
594
|
|
307
595
|
class OptionalItem < Stripe::StripeObject
|
@@ -312,6 +600,14 @@ module Stripe
|
|
312
600
|
attr_reader :maximum
|
313
601
|
# The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
|
314
602
|
attr_reader :minimum
|
603
|
+
|
604
|
+
def self.inner_class_types
|
605
|
+
@inner_class_types = {}
|
606
|
+
end
|
607
|
+
|
608
|
+
def self.field_remappings
|
609
|
+
@field_remappings = {}
|
610
|
+
end
|
315
611
|
end
|
316
612
|
# Attribute for field adjustable_quantity
|
317
613
|
attr_reader :adjustable_quantity
|
@@ -319,6 +615,14 @@ module Stripe
|
|
319
615
|
attr_reader :price
|
320
616
|
# Attribute for field quantity
|
321
617
|
attr_reader :quantity
|
618
|
+
|
619
|
+
def self.inner_class_types
|
620
|
+
@inner_class_types = { adjustable_quantity: AdjustableQuantity }
|
621
|
+
end
|
622
|
+
|
623
|
+
def self.field_remappings
|
624
|
+
@field_remappings = {}
|
625
|
+
end
|
322
626
|
end
|
323
627
|
|
324
628
|
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
@@ -326,6 +630,14 @@ module Stripe
|
|
326
630
|
attr_reader :id
|
327
631
|
# ID of the parent payment method configuration used.
|
328
632
|
attr_reader :parent
|
633
|
+
|
634
|
+
def self.inner_class_types
|
635
|
+
@inner_class_types = {}
|
636
|
+
end
|
637
|
+
|
638
|
+
def self.field_remappings
|
639
|
+
@field_remappings = {}
|
640
|
+
end
|
329
641
|
end
|
330
642
|
|
331
643
|
class PaymentMethodOptions < Stripe::StripeObject
|
@@ -341,6 +653,14 @@ module Stripe
|
|
341
653
|
attr_reader :payment_schedule
|
342
654
|
# Transaction type of the mandate.
|
343
655
|
attr_reader :transaction_type
|
656
|
+
|
657
|
+
def self.inner_class_types
|
658
|
+
@inner_class_types = {}
|
659
|
+
end
|
660
|
+
|
661
|
+
def self.field_remappings
|
662
|
+
@field_remappings = {}
|
663
|
+
end
|
344
664
|
end
|
345
665
|
# Currency supported by the bank account. Returned when the Session is in `setup` mode.
|
346
666
|
attr_reader :currency
|
@@ -358,6 +678,14 @@ module Stripe
|
|
358
678
|
attr_reader :target_date
|
359
679
|
# Bank account verification method.
|
360
680
|
attr_reader :verification_method
|
681
|
+
|
682
|
+
def self.inner_class_types
|
683
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
684
|
+
end
|
685
|
+
|
686
|
+
def self.field_remappings
|
687
|
+
@field_remappings = {}
|
688
|
+
end
|
361
689
|
end
|
362
690
|
|
363
691
|
class Affirm < Stripe::StripeObject
|
@@ -369,6 +697,14 @@ module Stripe
|
|
369
697
|
#
|
370
698
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
371
699
|
attr_reader :setup_future_usage
|
700
|
+
|
701
|
+
def self.inner_class_types
|
702
|
+
@inner_class_types = {}
|
703
|
+
end
|
704
|
+
|
705
|
+
def self.field_remappings
|
706
|
+
@field_remappings = {}
|
707
|
+
end
|
372
708
|
end
|
373
709
|
|
374
710
|
class AfterpayClearpay < Stripe::StripeObject
|
@@ -380,6 +716,14 @@ module Stripe
|
|
380
716
|
#
|
381
717
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
382
718
|
attr_reader :setup_future_usage
|
719
|
+
|
720
|
+
def self.inner_class_types
|
721
|
+
@inner_class_types = {}
|
722
|
+
end
|
723
|
+
|
724
|
+
def self.field_remappings
|
725
|
+
@field_remappings = {}
|
726
|
+
end
|
383
727
|
end
|
384
728
|
|
385
729
|
class Alipay < Stripe::StripeObject
|
@@ -391,6 +735,14 @@ module Stripe
|
|
391
735
|
#
|
392
736
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
393
737
|
attr_reader :setup_future_usage
|
738
|
+
|
739
|
+
def self.inner_class_types
|
740
|
+
@inner_class_types = {}
|
741
|
+
end
|
742
|
+
|
743
|
+
def self.field_remappings
|
744
|
+
@field_remappings = {}
|
745
|
+
end
|
394
746
|
end
|
395
747
|
|
396
748
|
class AmazonPay < Stripe::StripeObject
|
@@ -402,6 +754,14 @@ module Stripe
|
|
402
754
|
#
|
403
755
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
404
756
|
attr_reader :setup_future_usage
|
757
|
+
|
758
|
+
def self.inner_class_types
|
759
|
+
@inner_class_types = {}
|
760
|
+
end
|
761
|
+
|
762
|
+
def self.field_remappings
|
763
|
+
@field_remappings = {}
|
764
|
+
end
|
405
765
|
end
|
406
766
|
|
407
767
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -415,12 +775,28 @@ module Stripe
|
|
415
775
|
attr_reader :setup_future_usage
|
416
776
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
417
777
|
attr_reader :target_date
|
778
|
+
|
779
|
+
def self.inner_class_types
|
780
|
+
@inner_class_types = {}
|
781
|
+
end
|
782
|
+
|
783
|
+
def self.field_remappings
|
784
|
+
@field_remappings = {}
|
785
|
+
end
|
418
786
|
end
|
419
787
|
|
420
788
|
class BacsDebit < Stripe::StripeObject
|
421
789
|
class MandateOptions < Stripe::StripeObject
|
422
790
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
423
791
|
attr_reader :reference_prefix
|
792
|
+
|
793
|
+
def self.inner_class_types
|
794
|
+
@inner_class_types = {}
|
795
|
+
end
|
796
|
+
|
797
|
+
def self.field_remappings
|
798
|
+
@field_remappings = {}
|
799
|
+
end
|
424
800
|
end
|
425
801
|
# Attribute for field mandate_options
|
426
802
|
attr_reader :mandate_options
|
@@ -434,6 +810,14 @@ module Stripe
|
|
434
810
|
attr_reader :setup_future_usage
|
435
811
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
436
812
|
attr_reader :target_date
|
813
|
+
|
814
|
+
def self.inner_class_types
|
815
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
816
|
+
end
|
817
|
+
|
818
|
+
def self.field_remappings
|
819
|
+
@field_remappings = {}
|
820
|
+
end
|
437
821
|
end
|
438
822
|
|
439
823
|
class Bancontact < Stripe::StripeObject
|
@@ -445,6 +829,14 @@ module Stripe
|
|
445
829
|
#
|
446
830
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
447
831
|
attr_reader :setup_future_usage
|
832
|
+
|
833
|
+
def self.inner_class_types
|
834
|
+
@inner_class_types = {}
|
835
|
+
end
|
836
|
+
|
837
|
+
def self.field_remappings
|
838
|
+
@field_remappings = {}
|
839
|
+
end
|
448
840
|
end
|
449
841
|
|
450
842
|
class Boleto < Stripe::StripeObject
|
@@ -458,21 +850,47 @@ module Stripe
|
|
458
850
|
#
|
459
851
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
460
852
|
attr_reader :setup_future_usage
|
853
|
+
|
854
|
+
def self.inner_class_types
|
855
|
+
@inner_class_types = {}
|
856
|
+
end
|
857
|
+
|
858
|
+
def self.field_remappings
|
859
|
+
@field_remappings = {}
|
860
|
+
end
|
461
861
|
end
|
462
862
|
|
463
863
|
class Card < Stripe::StripeObject
|
464
864
|
class Installments < Stripe::StripeObject
|
465
865
|
# Indicates if installments are enabled
|
466
866
|
attr_reader :enabled
|
867
|
+
|
868
|
+
def self.inner_class_types
|
869
|
+
@inner_class_types = {}
|
870
|
+
end
|
871
|
+
|
872
|
+
def self.field_remappings
|
873
|
+
@field_remappings = {}
|
874
|
+
end
|
467
875
|
end
|
468
876
|
|
469
877
|
class Restrictions < Stripe::StripeObject
|
470
878
|
# Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
|
471
879
|
attr_reader :brands_blocked
|
880
|
+
|
881
|
+
def self.inner_class_types
|
882
|
+
@inner_class_types = {}
|
883
|
+
end
|
884
|
+
|
885
|
+
def self.field_remappings
|
886
|
+
@field_remappings = {}
|
887
|
+
end
|
472
888
|
end
|
473
889
|
# Attribute for field installments
|
474
890
|
attr_reader :installments
|
475
891
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
892
|
+
attr_reader :request_decremental_authorization
|
893
|
+
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
476
894
|
attr_reader :request_extended_authorization
|
477
895
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
478
896
|
attr_reader :request_incremental_authorization
|
@@ -496,6 +914,14 @@ module Stripe
|
|
496
914
|
attr_reader :statement_descriptor_suffix_kana
|
497
915
|
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
498
916
|
attr_reader :statement_descriptor_suffix_kanji
|
917
|
+
|
918
|
+
def self.inner_class_types
|
919
|
+
@inner_class_types = { installments: Installments, restrictions: Restrictions }
|
920
|
+
end
|
921
|
+
|
922
|
+
def self.field_remappings
|
923
|
+
@field_remappings = {}
|
924
|
+
end
|
499
925
|
end
|
500
926
|
|
501
927
|
class Cashapp < Stripe::StripeObject
|
@@ -507,6 +933,14 @@ module Stripe
|
|
507
933
|
#
|
508
934
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
509
935
|
attr_reader :setup_future_usage
|
936
|
+
|
937
|
+
def self.inner_class_types
|
938
|
+
@inner_class_types = {}
|
939
|
+
end
|
940
|
+
|
941
|
+
def self.field_remappings
|
942
|
+
@field_remappings = {}
|
943
|
+
end
|
510
944
|
end
|
511
945
|
|
512
946
|
class CustomerBalance < Stripe::StripeObject
|
@@ -514,6 +948,14 @@ module Stripe
|
|
514
948
|
class EuBankTransfer < Stripe::StripeObject
|
515
949
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
516
950
|
attr_reader :country
|
951
|
+
|
952
|
+
def self.inner_class_types
|
953
|
+
@inner_class_types = {}
|
954
|
+
end
|
955
|
+
|
956
|
+
def self.field_remappings
|
957
|
+
@field_remappings = {}
|
958
|
+
end
|
517
959
|
end
|
518
960
|
# Attribute for field eu_bank_transfer
|
519
961
|
attr_reader :eu_bank_transfer
|
@@ -523,6 +965,14 @@ module Stripe
|
|
523
965
|
attr_reader :requested_address_types
|
524
966
|
# The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
525
967
|
attr_reader :type
|
968
|
+
|
969
|
+
def self.inner_class_types
|
970
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
971
|
+
end
|
972
|
+
|
973
|
+
def self.field_remappings
|
974
|
+
@field_remappings = {}
|
975
|
+
end
|
526
976
|
end
|
527
977
|
# Attribute for field bank_transfer
|
528
978
|
attr_reader :bank_transfer
|
@@ -536,6 +986,14 @@ module Stripe
|
|
536
986
|
#
|
537
987
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
538
988
|
attr_reader :setup_future_usage
|
989
|
+
|
990
|
+
def self.inner_class_types
|
991
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
992
|
+
end
|
993
|
+
|
994
|
+
def self.field_remappings
|
995
|
+
@field_remappings = {}
|
996
|
+
end
|
539
997
|
end
|
540
998
|
|
541
999
|
class Eps < Stripe::StripeObject
|
@@ -547,6 +1005,14 @@ module Stripe
|
|
547
1005
|
#
|
548
1006
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
549
1007
|
attr_reader :setup_future_usage
|
1008
|
+
|
1009
|
+
def self.inner_class_types
|
1010
|
+
@inner_class_types = {}
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
def self.field_remappings
|
1014
|
+
@field_remappings = {}
|
1015
|
+
end
|
550
1016
|
end
|
551
1017
|
|
552
1018
|
class Fpx < Stripe::StripeObject
|
@@ -558,6 +1024,14 @@ module Stripe
|
|
558
1024
|
#
|
559
1025
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
560
1026
|
attr_reader :setup_future_usage
|
1027
|
+
|
1028
|
+
def self.inner_class_types
|
1029
|
+
@inner_class_types = {}
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
def self.field_remappings
|
1033
|
+
@field_remappings = {}
|
1034
|
+
end
|
561
1035
|
end
|
562
1036
|
|
563
1037
|
class Giropay < Stripe::StripeObject
|
@@ -569,6 +1043,14 @@ module Stripe
|
|
569
1043
|
#
|
570
1044
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
571
1045
|
attr_reader :setup_future_usage
|
1046
|
+
|
1047
|
+
def self.inner_class_types
|
1048
|
+
@inner_class_types = {}
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
def self.field_remappings
|
1052
|
+
@field_remappings = {}
|
1053
|
+
end
|
572
1054
|
end
|
573
1055
|
|
574
1056
|
class Grabpay < Stripe::StripeObject
|
@@ -580,6 +1062,14 @@ module Stripe
|
|
580
1062
|
#
|
581
1063
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
582
1064
|
attr_reader :setup_future_usage
|
1065
|
+
|
1066
|
+
def self.inner_class_types
|
1067
|
+
@inner_class_types = {}
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
def self.field_remappings
|
1071
|
+
@field_remappings = {}
|
1072
|
+
end
|
583
1073
|
end
|
584
1074
|
|
585
1075
|
class Ideal < Stripe::StripeObject
|
@@ -591,6 +1081,14 @@ module Stripe
|
|
591
1081
|
#
|
592
1082
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
593
1083
|
attr_reader :setup_future_usage
|
1084
|
+
|
1085
|
+
def self.inner_class_types
|
1086
|
+
@inner_class_types = {}
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
def self.field_remappings
|
1090
|
+
@field_remappings = {}
|
1091
|
+
end
|
594
1092
|
end
|
595
1093
|
|
596
1094
|
class KakaoPay < Stripe::StripeObject
|
@@ -604,6 +1102,14 @@ module Stripe
|
|
604
1102
|
#
|
605
1103
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
606
1104
|
attr_reader :setup_future_usage
|
1105
|
+
|
1106
|
+
def self.inner_class_types
|
1107
|
+
@inner_class_types = {}
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
def self.field_remappings
|
1111
|
+
@field_remappings = {}
|
1112
|
+
end
|
607
1113
|
end
|
608
1114
|
|
609
1115
|
class Klarna < Stripe::StripeObject
|
@@ -615,6 +1121,14 @@ module Stripe
|
|
615
1121
|
#
|
616
1122
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
617
1123
|
attr_reader :setup_future_usage
|
1124
|
+
|
1125
|
+
def self.inner_class_types
|
1126
|
+
@inner_class_types = {}
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
def self.field_remappings
|
1130
|
+
@field_remappings = {}
|
1131
|
+
end
|
618
1132
|
end
|
619
1133
|
|
620
1134
|
class Konbini < Stripe::StripeObject
|
@@ -628,7 +1142,15 @@ module Stripe
|
|
628
1142
|
#
|
629
1143
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
630
1144
|
attr_reader :setup_future_usage
|
631
|
-
|
1145
|
+
|
1146
|
+
def self.inner_class_types
|
1147
|
+
@inner_class_types = {}
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
def self.field_remappings
|
1151
|
+
@field_remappings = {}
|
1152
|
+
end
|
1153
|
+
end
|
632
1154
|
|
633
1155
|
class KrCard < Stripe::StripeObject
|
634
1156
|
# Controls when the funds will be captured from the customer's account.
|
@@ -641,6 +1163,14 @@ module Stripe
|
|
641
1163
|
#
|
642
1164
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
643
1165
|
attr_reader :setup_future_usage
|
1166
|
+
|
1167
|
+
def self.inner_class_types
|
1168
|
+
@inner_class_types = {}
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
def self.field_remappings
|
1172
|
+
@field_remappings = {}
|
1173
|
+
end
|
644
1174
|
end
|
645
1175
|
|
646
1176
|
class Link < Stripe::StripeObject
|
@@ -652,6 +1182,14 @@ module Stripe
|
|
652
1182
|
#
|
653
1183
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
654
1184
|
attr_reader :setup_future_usage
|
1185
|
+
|
1186
|
+
def self.inner_class_types
|
1187
|
+
@inner_class_types = {}
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
def self.field_remappings
|
1191
|
+
@field_remappings = {}
|
1192
|
+
end
|
655
1193
|
end
|
656
1194
|
|
657
1195
|
class Mobilepay < Stripe::StripeObject
|
@@ -663,6 +1201,14 @@ module Stripe
|
|
663
1201
|
#
|
664
1202
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
665
1203
|
attr_reader :setup_future_usage
|
1204
|
+
|
1205
|
+
def self.inner_class_types
|
1206
|
+
@inner_class_types = {}
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
def self.field_remappings
|
1210
|
+
@field_remappings = {}
|
1211
|
+
end
|
666
1212
|
end
|
667
1213
|
|
668
1214
|
class Multibanco < Stripe::StripeObject
|
@@ -674,6 +1220,14 @@ module Stripe
|
|
674
1220
|
#
|
675
1221
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
676
1222
|
attr_reader :setup_future_usage
|
1223
|
+
|
1224
|
+
def self.inner_class_types
|
1225
|
+
@inner_class_types = {}
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
def self.field_remappings
|
1229
|
+
@field_remappings = {}
|
1230
|
+
end
|
677
1231
|
end
|
678
1232
|
|
679
1233
|
class NaverPay < Stripe::StripeObject
|
@@ -687,6 +1241,14 @@ module Stripe
|
|
687
1241
|
#
|
688
1242
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
689
1243
|
attr_reader :setup_future_usage
|
1244
|
+
|
1245
|
+
def self.inner_class_types
|
1246
|
+
@inner_class_types = {}
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
def self.field_remappings
|
1250
|
+
@field_remappings = {}
|
1251
|
+
end
|
690
1252
|
end
|
691
1253
|
|
692
1254
|
class Oxxo < Stripe::StripeObject
|
@@ -700,6 +1262,14 @@ module Stripe
|
|
700
1262
|
#
|
701
1263
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
702
1264
|
attr_reader :setup_future_usage
|
1265
|
+
|
1266
|
+
def self.inner_class_types
|
1267
|
+
@inner_class_types = {}
|
1268
|
+
end
|
1269
|
+
|
1270
|
+
def self.field_remappings
|
1271
|
+
@field_remappings = {}
|
1272
|
+
end
|
703
1273
|
end
|
704
1274
|
|
705
1275
|
class P24 < Stripe::StripeObject
|
@@ -711,11 +1281,27 @@ module Stripe
|
|
711
1281
|
#
|
712
1282
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
713
1283
|
attr_reader :setup_future_usage
|
1284
|
+
|
1285
|
+
def self.inner_class_types
|
1286
|
+
@inner_class_types = {}
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
def self.field_remappings
|
1290
|
+
@field_remappings = {}
|
1291
|
+
end
|
714
1292
|
end
|
715
1293
|
|
716
1294
|
class Payco < Stripe::StripeObject
|
717
1295
|
# Controls when the funds will be captured from the customer's account.
|
718
1296
|
attr_reader :capture_method
|
1297
|
+
|
1298
|
+
def self.inner_class_types
|
1299
|
+
@inner_class_types = {}
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
def self.field_remappings
|
1303
|
+
@field_remappings = {}
|
1304
|
+
end
|
719
1305
|
end
|
720
1306
|
|
721
1307
|
class Paynow < Stripe::StripeObject
|
@@ -727,6 +1313,14 @@ module Stripe
|
|
727
1313
|
#
|
728
1314
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
729
1315
|
attr_reader :setup_future_usage
|
1316
|
+
|
1317
|
+
def self.inner_class_types
|
1318
|
+
@inner_class_types = {}
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
def self.field_remappings
|
1322
|
+
@field_remappings = {}
|
1323
|
+
end
|
730
1324
|
end
|
731
1325
|
|
732
1326
|
class Paypal < Stripe::StripeObject
|
@@ -744,13 +1338,96 @@ module Stripe
|
|
744
1338
|
#
|
745
1339
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
746
1340
|
attr_reader :setup_future_usage
|
1341
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
1342
|
+
attr_reader :subsellers
|
1343
|
+
|
1344
|
+
def self.inner_class_types
|
1345
|
+
@inner_class_types = {}
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
def self.field_remappings
|
1349
|
+
@field_remappings = {}
|
1350
|
+
end
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
class Payto < Stripe::StripeObject
|
1354
|
+
class MandateOptions < Stripe::StripeObject
|
1355
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
1356
|
+
attr_reader :amount
|
1357
|
+
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
1358
|
+
attr_reader :amount_type
|
1359
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
1360
|
+
attr_reader :end_date
|
1361
|
+
# The periodicity at which payments will be collected.
|
1362
|
+
attr_reader :payment_schedule
|
1363
|
+
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
1364
|
+
attr_reader :payments_per_period
|
1365
|
+
# The purpose for which payments are made. Defaults to retail.
|
1366
|
+
attr_reader :purpose
|
1367
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
1368
|
+
attr_reader :start_date
|
1369
|
+
|
1370
|
+
def self.inner_class_types
|
1371
|
+
@inner_class_types = {}
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
def self.field_remappings
|
1375
|
+
@field_remappings = {}
|
1376
|
+
end
|
1377
|
+
end
|
1378
|
+
# Attribute for field mandate_options
|
1379
|
+
attr_reader :mandate_options
|
1380
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1381
|
+
#
|
1382
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
1383
|
+
#
|
1384
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
1385
|
+
#
|
1386
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
1387
|
+
attr_reader :setup_future_usage
|
1388
|
+
|
1389
|
+
def self.inner_class_types
|
1390
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
def self.field_remappings
|
1394
|
+
@field_remappings = {}
|
1395
|
+
end
|
747
1396
|
end
|
748
1397
|
|
749
1398
|
class Pix < Stripe::StripeObject
|
1399
|
+
class MandateOptions < Stripe::StripeObject
|
1400
|
+
# Amount to be charged for future payments.
|
1401
|
+
attr_reader :amount
|
1402
|
+
# Determines if the amount includes the IOF tax.
|
1403
|
+
attr_reader :amount_includes_iof
|
1404
|
+
# Type of amount.
|
1405
|
+
attr_reader :amount_type
|
1406
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
1407
|
+
attr_reader :currency
|
1408
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
1409
|
+
attr_reader :end_date
|
1410
|
+
# Schedule at which the future payments will be charged.
|
1411
|
+
attr_reader :payment_schedule
|
1412
|
+
# Subscription name displayed to buyers in their bank app.
|
1413
|
+
attr_reader :reference
|
1414
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
1415
|
+
attr_reader :start_date
|
1416
|
+
|
1417
|
+
def self.inner_class_types
|
1418
|
+
@inner_class_types = {}
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
def self.field_remappings
|
1422
|
+
@field_remappings = {}
|
1423
|
+
end
|
1424
|
+
end
|
750
1425
|
# Determines if the amount includes the IOF tax.
|
751
1426
|
attr_reader :amount_includes_iof
|
752
1427
|
# The number of seconds after which Pix payment will expire.
|
753
1428
|
attr_reader :expires_after_seconds
|
1429
|
+
# Attribute for field mandate_options
|
1430
|
+
attr_reader :mandate_options
|
754
1431
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
755
1432
|
#
|
756
1433
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
@@ -759,6 +1436,14 @@ module Stripe
|
|
759
1436
|
#
|
760
1437
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
761
1438
|
attr_reader :setup_future_usage
|
1439
|
+
|
1440
|
+
def self.inner_class_types
|
1441
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
def self.field_remappings
|
1445
|
+
@field_remappings = {}
|
1446
|
+
end
|
762
1447
|
end
|
763
1448
|
|
764
1449
|
class RevolutPay < Stripe::StripeObject
|
@@ -770,17 +1455,41 @@ module Stripe
|
|
770
1455
|
#
|
771
1456
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
772
1457
|
attr_reader :setup_future_usage
|
1458
|
+
|
1459
|
+
def self.inner_class_types
|
1460
|
+
@inner_class_types = {}
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
def self.field_remappings
|
1464
|
+
@field_remappings = {}
|
1465
|
+
end
|
773
1466
|
end
|
774
1467
|
|
775
1468
|
class SamsungPay < Stripe::StripeObject
|
776
1469
|
# Controls when the funds will be captured from the customer's account.
|
777
1470
|
attr_reader :capture_method
|
1471
|
+
|
1472
|
+
def self.inner_class_types
|
1473
|
+
@inner_class_types = {}
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
def self.field_remappings
|
1477
|
+
@field_remappings = {}
|
1478
|
+
end
|
778
1479
|
end
|
779
1480
|
|
780
1481
|
class SepaDebit < Stripe::StripeObject
|
781
1482
|
class MandateOptions < Stripe::StripeObject
|
782
1483
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
783
1484
|
attr_reader :reference_prefix
|
1485
|
+
|
1486
|
+
def self.inner_class_types
|
1487
|
+
@inner_class_types = {}
|
1488
|
+
end
|
1489
|
+
|
1490
|
+
def self.field_remappings
|
1491
|
+
@field_remappings = {}
|
1492
|
+
end
|
784
1493
|
end
|
785
1494
|
# Attribute for field mandate_options
|
786
1495
|
attr_reader :mandate_options
|
@@ -794,6 +1503,14 @@ module Stripe
|
|
794
1503
|
attr_reader :setup_future_usage
|
795
1504
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
796
1505
|
attr_reader :target_date
|
1506
|
+
|
1507
|
+
def self.inner_class_types
|
1508
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
def self.field_remappings
|
1512
|
+
@field_remappings = {}
|
1513
|
+
end
|
797
1514
|
end
|
798
1515
|
|
799
1516
|
class Sofort < Stripe::StripeObject
|
@@ -805,11 +1522,27 @@ module Stripe
|
|
805
1522
|
#
|
806
1523
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
807
1524
|
attr_reader :setup_future_usage
|
1525
|
+
|
1526
|
+
def self.inner_class_types
|
1527
|
+
@inner_class_types = {}
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
def self.field_remappings
|
1531
|
+
@field_remappings = {}
|
1532
|
+
end
|
808
1533
|
end
|
809
1534
|
|
810
1535
|
class Swish < Stripe::StripeObject
|
811
1536
|
# The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
|
812
1537
|
attr_reader :reference
|
1538
|
+
|
1539
|
+
def self.inner_class_types
|
1540
|
+
@inner_class_types = {}
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
def self.field_remappings
|
1544
|
+
@field_remappings = {}
|
1545
|
+
end
|
813
1546
|
end
|
814
1547
|
|
815
1548
|
class UsBankAccount < Stripe::StripeObject
|
@@ -817,15 +1550,48 @@ module Stripe
|
|
817
1550
|
class Filters < Stripe::StripeObject
|
818
1551
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
819
1552
|
attr_reader :account_subcategories
|
1553
|
+
# The institution to use to filter for possible accounts to link.
|
1554
|
+
attr_reader :institution
|
1555
|
+
|
1556
|
+
def self.inner_class_types
|
1557
|
+
@inner_class_types = {}
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
def self.field_remappings
|
1561
|
+
@field_remappings = {}
|
1562
|
+
end
|
1563
|
+
end
|
1564
|
+
|
1565
|
+
class ManualEntry < Stripe::StripeObject
|
1566
|
+
# Settings for configuring manual entry of account details.
|
1567
|
+
attr_reader :mode
|
1568
|
+
|
1569
|
+
def self.inner_class_types
|
1570
|
+
@inner_class_types = {}
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
def self.field_remappings
|
1574
|
+
@field_remappings = {}
|
1575
|
+
end
|
820
1576
|
end
|
821
1577
|
# Attribute for field filters
|
822
1578
|
attr_reader :filters
|
1579
|
+
# Attribute for field manual_entry
|
1580
|
+
attr_reader :manual_entry
|
823
1581
|
# The list of permissions to request. The `payment_method` permission must be included.
|
824
1582
|
attr_reader :permissions
|
825
1583
|
# Data features requested to be retrieved upon account creation.
|
826
1584
|
attr_reader :prefetch
|
827
1585
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
828
1586
|
attr_reader :return_url
|
1587
|
+
|
1588
|
+
def self.inner_class_types
|
1589
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
def self.field_remappings
|
1593
|
+
@field_remappings = {}
|
1594
|
+
end
|
829
1595
|
end
|
830
1596
|
# Attribute for field financial_connections
|
831
1597
|
attr_reader :financial_connections
|
@@ -841,6 +1607,14 @@ module Stripe
|
|
841
1607
|
attr_reader :target_date
|
842
1608
|
# Bank account verification method.
|
843
1609
|
attr_reader :verification_method
|
1610
|
+
|
1611
|
+
def self.inner_class_types
|
1612
|
+
@inner_class_types = { financial_connections: FinancialConnections }
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
def self.field_remappings
|
1616
|
+
@field_remappings = {}
|
1617
|
+
end
|
844
1618
|
end
|
845
1619
|
# Attribute for field acss_debit
|
846
1620
|
attr_reader :acss_debit
|
@@ -902,6 +1676,8 @@ module Stripe
|
|
902
1676
|
attr_reader :paynow
|
903
1677
|
# Attribute for field paypal
|
904
1678
|
attr_reader :paypal
|
1679
|
+
# Attribute for field payto
|
1680
|
+
attr_reader :payto
|
905
1681
|
# Attribute for field pix
|
906
1682
|
attr_reader :pix
|
907
1683
|
# Attribute for field revolut_pay
|
@@ -916,20 +1692,113 @@ module Stripe
|
|
916
1692
|
attr_reader :swish
|
917
1693
|
# Attribute for field us_bank_account
|
918
1694
|
attr_reader :us_bank_account
|
1695
|
+
|
1696
|
+
def self.inner_class_types
|
1697
|
+
@inner_class_types = {
|
1698
|
+
acss_debit: AcssDebit,
|
1699
|
+
affirm: Affirm,
|
1700
|
+
afterpay_clearpay: AfterpayClearpay,
|
1701
|
+
alipay: Alipay,
|
1702
|
+
amazon_pay: AmazonPay,
|
1703
|
+
au_becs_debit: AuBecsDebit,
|
1704
|
+
bacs_debit: BacsDebit,
|
1705
|
+
bancontact: Bancontact,
|
1706
|
+
boleto: Boleto,
|
1707
|
+
card: Card,
|
1708
|
+
cashapp: Cashapp,
|
1709
|
+
customer_balance: CustomerBalance,
|
1710
|
+
eps: Eps,
|
1711
|
+
fpx: Fpx,
|
1712
|
+
giropay: Giropay,
|
1713
|
+
grabpay: Grabpay,
|
1714
|
+
ideal: Ideal,
|
1715
|
+
kakao_pay: KakaoPay,
|
1716
|
+
klarna: Klarna,
|
1717
|
+
konbini: Konbini,
|
1718
|
+
kr_card: KrCard,
|
1719
|
+
link: Link,
|
1720
|
+
mobilepay: Mobilepay,
|
1721
|
+
multibanco: Multibanco,
|
1722
|
+
naver_pay: NaverPay,
|
1723
|
+
oxxo: Oxxo,
|
1724
|
+
p24: P24,
|
1725
|
+
payco: Payco,
|
1726
|
+
paynow: Paynow,
|
1727
|
+
paypal: Paypal,
|
1728
|
+
payto: Payto,
|
1729
|
+
pix: Pix,
|
1730
|
+
revolut_pay: RevolutPay,
|
1731
|
+
samsung_pay: SamsungPay,
|
1732
|
+
sepa_debit: SepaDebit,
|
1733
|
+
sofort: Sofort,
|
1734
|
+
swish: Swish,
|
1735
|
+
us_bank_account: UsBankAccount,
|
1736
|
+
}
|
1737
|
+
end
|
1738
|
+
|
1739
|
+
def self.field_remappings
|
1740
|
+
@field_remappings = {}
|
1741
|
+
end
|
919
1742
|
end
|
920
1743
|
|
921
1744
|
class Permissions < Stripe::StripeObject
|
1745
|
+
class Update < Stripe::StripeObject
|
1746
|
+
# Determines which entity is allowed to update the line items.
|
1747
|
+
#
|
1748
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
1749
|
+
#
|
1750
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
1751
|
+
attr_reader :line_items
|
1752
|
+
# Determines which entity is allowed to update the shipping details.
|
1753
|
+
#
|
1754
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
1755
|
+
#
|
1756
|
+
# When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
1757
|
+
attr_reader :shipping_details
|
1758
|
+
|
1759
|
+
def self.inner_class_types
|
1760
|
+
@inner_class_types = {}
|
1761
|
+
end
|
1762
|
+
|
1763
|
+
def self.field_remappings
|
1764
|
+
@field_remappings = {}
|
1765
|
+
end
|
1766
|
+
end
|
1767
|
+
# Permissions for updating the Checkout Session.
|
1768
|
+
attr_reader :update
|
1769
|
+
# Determines which entity is allowed to update the line items.
|
1770
|
+
#
|
1771
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
1772
|
+
#
|
1773
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
1774
|
+
attr_reader :update_line_items
|
922
1775
|
# Determines which entity is allowed to update the shipping details.
|
923
1776
|
#
|
924
1777
|
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
925
1778
|
#
|
926
1779
|
# When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
927
1780
|
attr_reader :update_shipping_details
|
1781
|
+
|
1782
|
+
def self.inner_class_types
|
1783
|
+
@inner_class_types = { update: Update }
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
def self.field_remappings
|
1787
|
+
@field_remappings = {}
|
1788
|
+
end
|
928
1789
|
end
|
929
1790
|
|
930
1791
|
class PhoneNumberCollection < Stripe::StripeObject
|
931
1792
|
# Indicates whether phone number collection is enabled for the session
|
932
1793
|
attr_reader :enabled
|
1794
|
+
|
1795
|
+
def self.inner_class_types
|
1796
|
+
@inner_class_types = {}
|
1797
|
+
end
|
1798
|
+
|
1799
|
+
def self.field_remappings
|
1800
|
+
@field_remappings = {}
|
1801
|
+
end
|
933
1802
|
end
|
934
1803
|
|
935
1804
|
class PresentmentDetails < Stripe::StripeObject
|
@@ -937,6 +1806,14 @@ module Stripe
|
|
937
1806
|
attr_reader :presentment_amount
|
938
1807
|
# Currency presented to the customer during payment.
|
939
1808
|
attr_reader :presentment_currency
|
1809
|
+
|
1810
|
+
def self.inner_class_types
|
1811
|
+
@inner_class_types = {}
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
def self.field_remappings
|
1815
|
+
@field_remappings = {}
|
1816
|
+
end
|
940
1817
|
end
|
941
1818
|
|
942
1819
|
class SavedPaymentMethodOptions < Stripe::StripeObject
|
@@ -946,12 +1823,28 @@ module Stripe
|
|
946
1823
|
attr_reader :payment_method_remove
|
947
1824
|
# Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
|
948
1825
|
attr_reader :payment_method_save
|
1826
|
+
|
1827
|
+
def self.inner_class_types
|
1828
|
+
@inner_class_types = {}
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
def self.field_remappings
|
1832
|
+
@field_remappings = {}
|
1833
|
+
end
|
949
1834
|
end
|
950
1835
|
|
951
1836
|
class ShippingAddressCollection < Stripe::StripeObject
|
952
1837
|
# An array of two-letter ISO country codes representing which countries Checkout should provide as options for
|
953
1838
|
# shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`.
|
954
1839
|
attr_reader :allowed_countries
|
1840
|
+
|
1841
|
+
def self.inner_class_types
|
1842
|
+
@inner_class_types = {}
|
1843
|
+
end
|
1844
|
+
|
1845
|
+
def self.field_remappings
|
1846
|
+
@field_remappings = {}
|
1847
|
+
end
|
955
1848
|
end
|
956
1849
|
|
957
1850
|
class ShippingCost < Stripe::StripeObject
|
@@ -966,6 +1859,14 @@ module Stripe
|
|
966
1859
|
attr_reader :taxability_reason
|
967
1860
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
968
1861
|
attr_reader :taxable_amount
|
1862
|
+
|
1863
|
+
def self.inner_class_types
|
1864
|
+
@inner_class_types = {}
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
def self.field_remappings
|
1868
|
+
@field_remappings = {}
|
1869
|
+
end
|
969
1870
|
end
|
970
1871
|
# Total shipping cost before any discounts or taxes are applied.
|
971
1872
|
attr_reader :amount_subtotal
|
@@ -977,6 +1878,14 @@ module Stripe
|
|
977
1878
|
attr_reader :shipping_rate
|
978
1879
|
# The taxes applied to the shipping rate.
|
979
1880
|
attr_reader :taxes
|
1881
|
+
|
1882
|
+
def self.inner_class_types
|
1883
|
+
@inner_class_types = { taxes: Tax }
|
1884
|
+
end
|
1885
|
+
|
1886
|
+
def self.field_remappings
|
1887
|
+
@field_remappings = {}
|
1888
|
+
end
|
980
1889
|
end
|
981
1890
|
|
982
1891
|
class ShippingOption < Stripe::StripeObject
|
@@ -984,6 +1893,14 @@ module Stripe
|
|
984
1893
|
attr_reader :shipping_amount
|
985
1894
|
# The shipping rate.
|
986
1895
|
attr_reader :shipping_rate
|
1896
|
+
|
1897
|
+
def self.inner_class_types
|
1898
|
+
@inner_class_types = {}
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
def self.field_remappings
|
1902
|
+
@field_remappings = {}
|
1903
|
+
end
|
987
1904
|
end
|
988
1905
|
|
989
1906
|
class TaxIdCollection < Stripe::StripeObject
|
@@ -991,6 +1908,14 @@ module Stripe
|
|
991
1908
|
attr_reader :enabled
|
992
1909
|
# Indicates whether a tax ID is required on the payment page
|
993
1910
|
attr_reader :required
|
1911
|
+
|
1912
|
+
def self.inner_class_types
|
1913
|
+
@inner_class_types = {}
|
1914
|
+
end
|
1915
|
+
|
1916
|
+
def self.field_remappings
|
1917
|
+
@field_remappings = {}
|
1918
|
+
end
|
994
1919
|
end
|
995
1920
|
|
996
1921
|
class TotalDetails < Stripe::StripeObject
|
@@ -1003,6 +1928,14 @@ module Stripe
|
|
1003
1928
|
#
|
1004
1929
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
1005
1930
|
attr_reader :discount
|
1931
|
+
|
1932
|
+
def self.inner_class_types
|
1933
|
+
@inner_class_types = {}
|
1934
|
+
end
|
1935
|
+
|
1936
|
+
def self.field_remappings
|
1937
|
+
@field_remappings = {}
|
1938
|
+
end
|
1006
1939
|
end
|
1007
1940
|
|
1008
1941
|
class Tax < Stripe::StripeObject
|
@@ -1016,11 +1949,27 @@ module Stripe
|
|
1016
1949
|
attr_reader :taxability_reason
|
1017
1950
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
1018
1951
|
attr_reader :taxable_amount
|
1952
|
+
|
1953
|
+
def self.inner_class_types
|
1954
|
+
@inner_class_types = {}
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
def self.field_remappings
|
1958
|
+
@field_remappings = {}
|
1959
|
+
end
|
1019
1960
|
end
|
1020
1961
|
# The aggregated discounts.
|
1021
1962
|
attr_reader :discounts
|
1022
1963
|
# The aggregated tax amounts by rate.
|
1023
1964
|
attr_reader :taxes
|
1965
|
+
|
1966
|
+
def self.inner_class_types
|
1967
|
+
@inner_class_types = { discounts: Discount, taxes: Tax }
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
def self.field_remappings
|
1971
|
+
@field_remappings = {}
|
1972
|
+
end
|
1024
1973
|
end
|
1025
1974
|
# This is the sum of all the discounts.
|
1026
1975
|
attr_reader :amount_discount
|
@@ -1030,15 +1979,128 @@ module Stripe
|
|
1030
1979
|
attr_reader :amount_tax
|
1031
1980
|
# Attribute for field breakdown
|
1032
1981
|
attr_reader :breakdown
|
1982
|
+
|
1983
|
+
def self.inner_class_types
|
1984
|
+
@inner_class_types = { breakdown: Breakdown }
|
1985
|
+
end
|
1986
|
+
|
1987
|
+
def self.field_remappings
|
1988
|
+
@field_remappings = {}
|
1989
|
+
end
|
1033
1990
|
end
|
1034
1991
|
|
1035
1992
|
class WalletOptions < Stripe::StripeObject
|
1036
1993
|
class Link < Stripe::StripeObject
|
1037
1994
|
# Describes whether Checkout should display Link. Defaults to `auto`.
|
1038
1995
|
attr_reader :display
|
1996
|
+
|
1997
|
+
def self.inner_class_types
|
1998
|
+
@inner_class_types = {}
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
def self.field_remappings
|
2002
|
+
@field_remappings = {}
|
2003
|
+
end
|
1039
2004
|
end
|
1040
2005
|
# Attribute for field link
|
1041
2006
|
attr_reader :link
|
2007
|
+
|
2008
|
+
def self.inner_class_types
|
2009
|
+
@inner_class_types = { link: Link }
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
def self.field_remappings
|
2013
|
+
@field_remappings = {}
|
2014
|
+
end
|
2015
|
+
end
|
2016
|
+
|
2017
|
+
class CheckoutItem < Stripe::StripeObject
|
2018
|
+
class PricingPlanSubscriptionItem < Stripe::StripeObject
|
2019
|
+
class ComponentConfigurations < Stripe::StripeObject
|
2020
|
+
class LicenseFeeComponent < Stripe::StripeObject
|
2021
|
+
# Attribute for field quantity
|
2022
|
+
attr_reader :quantity
|
2023
|
+
|
2024
|
+
def self.inner_class_types
|
2025
|
+
@inner_class_types = {}
|
2026
|
+
end
|
2027
|
+
|
2028
|
+
def self.field_remappings
|
2029
|
+
@field_remappings = {}
|
2030
|
+
end
|
2031
|
+
end
|
2032
|
+
# Attribute for field type
|
2033
|
+
attr_reader :type
|
2034
|
+
# Attribute for field license_fee_component
|
2035
|
+
attr_reader :license_fee_component
|
2036
|
+
|
2037
|
+
def self.inner_class_types
|
2038
|
+
@inner_class_types = { license_fee_component: LicenseFeeComponent }
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
def self.field_remappings
|
2042
|
+
@field_remappings = {}
|
2043
|
+
end
|
2044
|
+
end
|
2045
|
+
# Attribute for field pricing_plan
|
2046
|
+
attr_reader :pricing_plan
|
2047
|
+
# Attribute for field pricing_plan_version
|
2048
|
+
attr_reader :pricing_plan_version
|
2049
|
+
# Attribute for field metadata
|
2050
|
+
attr_reader :metadata
|
2051
|
+
# Attribute for field component_configurations
|
2052
|
+
attr_reader :component_configurations
|
2053
|
+
# Attribute for field pricing_plan_subscription
|
2054
|
+
attr_reader :pricing_plan_subscription
|
2055
|
+
# Attribute for field billing_cadence
|
2056
|
+
attr_reader :billing_cadence
|
2057
|
+
|
2058
|
+
def self.inner_class_types
|
2059
|
+
@inner_class_types = { component_configurations: ComponentConfigurations }
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
def self.field_remappings
|
2063
|
+
@field_remappings = {}
|
2064
|
+
end
|
2065
|
+
end
|
2066
|
+
|
2067
|
+
class RateCardSubscriptionItem < Stripe::StripeObject
|
2068
|
+
# Attribute for field rate_card
|
2069
|
+
attr_reader :rate_card
|
2070
|
+
# Attribute for field metadata
|
2071
|
+
attr_reader :metadata
|
2072
|
+
# Attribute for field rate_card_version
|
2073
|
+
attr_reader :rate_card_version
|
2074
|
+
# Attribute for field billing_cadence
|
2075
|
+
attr_reader :billing_cadence
|
2076
|
+
# Attribute for field rate_card_subscription
|
2077
|
+
attr_reader :rate_card_subscription
|
2078
|
+
|
2079
|
+
def self.inner_class_types
|
2080
|
+
@inner_class_types = {}
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
def self.field_remappings
|
2084
|
+
@field_remappings = {}
|
2085
|
+
end
|
2086
|
+
end
|
2087
|
+
# Attribute for field type
|
2088
|
+
attr_reader :type
|
2089
|
+
# Attribute for field rate_card_subscription_item
|
2090
|
+
attr_reader :rate_card_subscription_item
|
2091
|
+
# Attribute for field pricing_plan_subscription_item
|
2092
|
+
attr_reader :pricing_plan_subscription_item
|
2093
|
+
|
2094
|
+
def self.inner_class_types
|
2095
|
+
@inner_class_types = {
|
2096
|
+
rate_card_subscription_item: RateCardSubscriptionItem,
|
2097
|
+
pricing_plan_subscription_item: PricingPlanSubscriptionItem,
|
2098
|
+
}
|
2099
|
+
end
|
2100
|
+
|
2101
|
+
def self.field_remappings
|
2102
|
+
@field_remappings = {}
|
2103
|
+
end
|
1042
2104
|
end
|
1043
2105
|
|
1044
2106
|
class ListParams < Stripe::RequestParams
|
@@ -1072,6 +2134,8 @@ module Stripe
|
|
1072
2134
|
attr_accessor :created
|
1073
2135
|
# Only return the Checkout Sessions for the Customer specified.
|
1074
2136
|
attr_accessor :customer
|
2137
|
+
# Only return the Checkout Sessions for the Account specified.
|
2138
|
+
attr_accessor :customer_account
|
1075
2139
|
# Only return the Checkout Sessions for the Customer details specified.
|
1076
2140
|
attr_accessor :customer_details
|
1077
2141
|
# 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.
|
@@ -1094,6 +2158,7 @@ module Stripe
|
|
1094
2158
|
def initialize(
|
1095
2159
|
created: nil,
|
1096
2160
|
customer: nil,
|
2161
|
+
customer_account: nil,
|
1097
2162
|
customer_details: nil,
|
1098
2163
|
ending_before: nil,
|
1099
2164
|
expand: nil,
|
@@ -1106,6 +2171,7 @@ module Stripe
|
|
1106
2171
|
)
|
1107
2172
|
@created = created
|
1108
2173
|
@customer = customer
|
2174
|
+
@customer_account = customer_account
|
1109
2175
|
@customer_details = customer_details
|
1110
2176
|
@ending_before = ending_before
|
1111
2177
|
@expand = expand
|
@@ -1162,16 +2228,91 @@ module Stripe
|
|
1162
2228
|
@type = type
|
1163
2229
|
end
|
1164
2230
|
end
|
1165
|
-
# Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
|
1166
|
-
#
|
1167
|
-
# Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
|
1168
|
-
attr_accessor :enabled
|
1169
|
-
# 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.
|
1170
|
-
attr_accessor :liability
|
2231
|
+
# Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
|
2232
|
+
#
|
2233
|
+
# Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
|
2234
|
+
attr_accessor :enabled
|
2235
|
+
# 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.
|
2236
|
+
attr_accessor :liability
|
2237
|
+
|
2238
|
+
def initialize(enabled: nil, liability: nil)
|
2239
|
+
@enabled = enabled
|
2240
|
+
@liability = liability
|
2241
|
+
end
|
2242
|
+
end
|
2243
|
+
|
2244
|
+
class CheckoutItem < Stripe::RequestParams
|
2245
|
+
class PricingPlanSubscriptionItem < Stripe::RequestParams
|
2246
|
+
class ComponentConfigurations < Stripe::RequestParams
|
2247
|
+
class LicenseFeeComponent < Stripe::RequestParams
|
2248
|
+
# Attribute for param field quantity
|
2249
|
+
attr_accessor :quantity
|
2250
|
+
|
2251
|
+
def initialize(quantity: nil)
|
2252
|
+
@quantity = quantity
|
2253
|
+
end
|
2254
|
+
end
|
2255
|
+
# Attribute for param field type
|
2256
|
+
attr_accessor :type
|
2257
|
+
# Attribute for param field license_fee_component
|
2258
|
+
attr_accessor :license_fee_component
|
2259
|
+
|
2260
|
+
def initialize(type: nil, license_fee_component: nil)
|
2261
|
+
@type = type
|
2262
|
+
@license_fee_component = license_fee_component
|
2263
|
+
end
|
2264
|
+
end
|
2265
|
+
# Attribute for param field pricing_plan
|
2266
|
+
attr_accessor :pricing_plan
|
2267
|
+
# Attribute for param field pricing_plan_version
|
2268
|
+
attr_accessor :pricing_plan_version
|
2269
|
+
# Attribute for param field metadata
|
2270
|
+
attr_accessor :metadata
|
2271
|
+
# Attribute for param field component_configurations
|
2272
|
+
attr_accessor :component_configurations
|
2273
|
+
|
2274
|
+
def initialize(
|
2275
|
+
pricing_plan: nil,
|
2276
|
+
pricing_plan_version: nil,
|
2277
|
+
metadata: nil,
|
2278
|
+
component_configurations: nil
|
2279
|
+
)
|
2280
|
+
@pricing_plan = pricing_plan
|
2281
|
+
@pricing_plan_version = pricing_plan_version
|
2282
|
+
@metadata = metadata
|
2283
|
+
@component_configurations = component_configurations
|
2284
|
+
end
|
2285
|
+
end
|
2286
|
+
|
2287
|
+
class RateCardSubscriptionItem < Stripe::RequestParams
|
2288
|
+
# Attribute for param field rate_card
|
2289
|
+
attr_accessor :rate_card
|
2290
|
+
# Attribute for param field metadata
|
2291
|
+
attr_accessor :metadata
|
2292
|
+
# Attribute for param field rate_card_version
|
2293
|
+
attr_accessor :rate_card_version
|
2294
|
+
|
2295
|
+
def initialize(rate_card: nil, metadata: nil, rate_card_version: nil)
|
2296
|
+
@rate_card = rate_card
|
2297
|
+
@metadata = metadata
|
2298
|
+
@rate_card_version = rate_card_version
|
2299
|
+
end
|
2300
|
+
end
|
2301
|
+
# Attribute for param field type
|
2302
|
+
attr_accessor :type
|
2303
|
+
# Attribute for param field rate_card_subscription_item
|
2304
|
+
attr_accessor :rate_card_subscription_item
|
2305
|
+
# Attribute for param field pricing_plan_subscription_item
|
2306
|
+
attr_accessor :pricing_plan_subscription_item
|
1171
2307
|
|
1172
|
-
def initialize(
|
1173
|
-
|
1174
|
-
|
2308
|
+
def initialize(
|
2309
|
+
type: nil,
|
2310
|
+
rate_card_subscription_item: nil,
|
2311
|
+
pricing_plan_subscription_item: nil
|
2312
|
+
)
|
2313
|
+
@type = type
|
2314
|
+
@rate_card_subscription_item = rate_card_subscription_item
|
2315
|
+
@pricing_plan_subscription_item = pricing_plan_subscription_item
|
1175
2316
|
end
|
1176
2317
|
end
|
1177
2318
|
|
@@ -1381,13 +2522,46 @@ module Stripe
|
|
1381
2522
|
end
|
1382
2523
|
|
1383
2524
|
class Discount < Stripe::RequestParams
|
2525
|
+
class CouponData < Stripe::RequestParams
|
2526
|
+
# A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
|
2527
|
+
attr_accessor :amount_off
|
2528
|
+
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
|
2529
|
+
attr_accessor :currency
|
2530
|
+
# Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
|
2531
|
+
attr_accessor :duration
|
2532
|
+
# 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`.
|
2533
|
+
attr_accessor :metadata
|
2534
|
+
# Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
|
2535
|
+
attr_accessor :name
|
2536
|
+
# A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
|
2537
|
+
attr_accessor :percent_off
|
2538
|
+
|
2539
|
+
def initialize(
|
2540
|
+
amount_off: nil,
|
2541
|
+
currency: nil,
|
2542
|
+
duration: nil,
|
2543
|
+
metadata: nil,
|
2544
|
+
name: nil,
|
2545
|
+
percent_off: nil
|
2546
|
+
)
|
2547
|
+
@amount_off = amount_off
|
2548
|
+
@currency = currency
|
2549
|
+
@duration = duration
|
2550
|
+
@metadata = metadata
|
2551
|
+
@name = name
|
2552
|
+
@percent_off = percent_off
|
2553
|
+
end
|
2554
|
+
end
|
1384
2555
|
# The ID of the coupon to apply to this Session.
|
1385
2556
|
attr_accessor :coupon
|
2557
|
+
# Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
|
2558
|
+
attr_accessor :coupon_data
|
1386
2559
|
# The ID of a promotion code to apply to this Session.
|
1387
2560
|
attr_accessor :promotion_code
|
1388
2561
|
|
1389
|
-
def initialize(coupon: nil, promotion_code: nil)
|
2562
|
+
def initialize(coupon: nil, coupon_data: nil, promotion_code: nil)
|
1390
2563
|
@coupon = coupon
|
2564
|
+
@coupon_data = coupon_data
|
1391
2565
|
@promotion_code = promotion_code
|
1392
2566
|
end
|
1393
2567
|
end
|
@@ -1559,6 +2733,8 @@ module Stripe
|
|
1559
2733
|
attr_accessor :adjustable_quantity
|
1560
2734
|
# The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
|
1561
2735
|
attr_accessor :dynamic_tax_rates
|
2736
|
+
# 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`.
|
2737
|
+
attr_accessor :metadata
|
1562
2738
|
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
1563
2739
|
attr_accessor :price
|
1564
2740
|
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
@@ -1571,6 +2747,7 @@ module Stripe
|
|
1571
2747
|
def initialize(
|
1572
2748
|
adjustable_quantity: nil,
|
1573
2749
|
dynamic_tax_rates: nil,
|
2750
|
+
metadata: nil,
|
1574
2751
|
price: nil,
|
1575
2752
|
price_data: nil,
|
1576
2753
|
quantity: nil,
|
@@ -1578,6 +2755,7 @@ module Stripe
|
|
1578
2755
|
)
|
1579
2756
|
@adjustable_quantity = adjustable_quantity
|
1580
2757
|
@dynamic_tax_rates = dynamic_tax_rates
|
2758
|
+
@metadata = metadata
|
1581
2759
|
@price = price
|
1582
2760
|
@price_data = price_data
|
1583
2761
|
@quantity = quantity
|
@@ -1991,6 +3169,8 @@ module Stripe
|
|
1991
3169
|
# Installment options for card payments
|
1992
3170
|
attr_accessor :installments
|
1993
3171
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
3172
|
+
attr_accessor :request_decremental_authorization
|
3173
|
+
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
1994
3174
|
attr_accessor :request_extended_authorization
|
1995
3175
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
1996
3176
|
attr_accessor :request_incremental_authorization
|
@@ -2017,6 +3197,7 @@ module Stripe
|
|
2017
3197
|
|
2018
3198
|
def initialize(
|
2019
3199
|
installments: nil,
|
3200
|
+
request_decremental_authorization: nil,
|
2020
3201
|
request_extended_authorization: nil,
|
2021
3202
|
request_incremental_authorization: nil,
|
2022
3203
|
request_multicapture: nil,
|
@@ -2028,6 +3209,7 @@ module Stripe
|
|
2028
3209
|
statement_descriptor_suffix_kanji: nil
|
2029
3210
|
)
|
2030
3211
|
@installments = installments
|
3212
|
+
@request_decremental_authorization = request_decremental_authorization
|
2031
3213
|
@request_extended_authorization = request_extended_authorization
|
2032
3214
|
@request_incremental_authorization = request_incremental_authorization
|
2033
3215
|
@request_multicapture = request_multicapture
|
@@ -2416,6 +3598,8 @@ module Stripe
|
|
2416
3598
|
attr_accessor :preferred_locale
|
2417
3599
|
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
2418
3600
|
attr_accessor :reference
|
3601
|
+
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
3602
|
+
attr_accessor :reference_id
|
2419
3603
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
2420
3604
|
attr_accessor :risk_correlation_id
|
2421
3605
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -2428,27 +3612,125 @@ module Stripe
|
|
2428
3612
|
#
|
2429
3613
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
2430
3614
|
attr_accessor :setup_future_usage
|
3615
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
3616
|
+
attr_accessor :subsellers
|
2431
3617
|
|
2432
3618
|
def initialize(
|
2433
3619
|
capture_method: nil,
|
2434
3620
|
preferred_locale: nil,
|
2435
3621
|
reference: nil,
|
3622
|
+
reference_id: nil,
|
2436
3623
|
risk_correlation_id: nil,
|
2437
|
-
setup_future_usage: nil
|
3624
|
+
setup_future_usage: nil,
|
3625
|
+
subsellers: nil
|
2438
3626
|
)
|
2439
3627
|
@capture_method = capture_method
|
2440
3628
|
@preferred_locale = preferred_locale
|
2441
3629
|
@reference = reference
|
3630
|
+
@reference_id = reference_id
|
2442
3631
|
@risk_correlation_id = risk_correlation_id
|
2443
3632
|
@setup_future_usage = setup_future_usage
|
3633
|
+
@subsellers = subsellers
|
3634
|
+
end
|
3635
|
+
end
|
3636
|
+
|
3637
|
+
class Payto < Stripe::RequestParams
|
3638
|
+
class MandateOptions < Stripe::RequestParams
|
3639
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
3640
|
+
attr_accessor :amount
|
3641
|
+
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
3642
|
+
attr_accessor :amount_type
|
3643
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
3644
|
+
attr_accessor :end_date
|
3645
|
+
# The periodicity at which payments will be collected.
|
3646
|
+
attr_accessor :payment_schedule
|
3647
|
+
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
3648
|
+
attr_accessor :payments_per_period
|
3649
|
+
# The purpose for which payments are made. Defaults to retail.
|
3650
|
+
attr_accessor :purpose
|
3651
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
3652
|
+
attr_accessor :start_date
|
3653
|
+
|
3654
|
+
def initialize(
|
3655
|
+
amount: nil,
|
3656
|
+
amount_type: nil,
|
3657
|
+
end_date: nil,
|
3658
|
+
payment_schedule: nil,
|
3659
|
+
payments_per_period: nil,
|
3660
|
+
purpose: nil,
|
3661
|
+
start_date: nil
|
3662
|
+
)
|
3663
|
+
@amount = amount
|
3664
|
+
@amount_type = amount_type
|
3665
|
+
@end_date = end_date
|
3666
|
+
@payment_schedule = payment_schedule
|
3667
|
+
@payments_per_period = payments_per_period
|
3668
|
+
@purpose = purpose
|
3669
|
+
@start_date = start_date
|
3670
|
+
end
|
3671
|
+
end
|
3672
|
+
# Additional fields for Mandate creation
|
3673
|
+
attr_accessor :mandate_options
|
3674
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
3675
|
+
#
|
3676
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
3677
|
+
#
|
3678
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
3679
|
+
#
|
3680
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
3681
|
+
attr_accessor :setup_future_usage
|
3682
|
+
|
3683
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
3684
|
+
@mandate_options = mandate_options
|
3685
|
+
@setup_future_usage = setup_future_usage
|
2444
3686
|
end
|
2445
3687
|
end
|
2446
3688
|
|
2447
3689
|
class Pix < Stripe::RequestParams
|
3690
|
+
class MandateOptions < Stripe::RequestParams
|
3691
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
3692
|
+
attr_accessor :amount
|
3693
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
3694
|
+
attr_accessor :amount_includes_iof
|
3695
|
+
# Type of amount. Defaults to `maximum`.
|
3696
|
+
attr_accessor :amount_type
|
3697
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
3698
|
+
attr_accessor :currency
|
3699
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
3700
|
+
attr_accessor :end_date
|
3701
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
3702
|
+
attr_accessor :payment_schedule
|
3703
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
3704
|
+
attr_accessor :reference
|
3705
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
3706
|
+
attr_accessor :start_date
|
3707
|
+
|
3708
|
+
def initialize(
|
3709
|
+
amount: nil,
|
3710
|
+
amount_includes_iof: nil,
|
3711
|
+
amount_type: nil,
|
3712
|
+
currency: nil,
|
3713
|
+
end_date: nil,
|
3714
|
+
payment_schedule: nil,
|
3715
|
+
reference: nil,
|
3716
|
+
start_date: nil
|
3717
|
+
)
|
3718
|
+
@amount = amount
|
3719
|
+
@amount_includes_iof = amount_includes_iof
|
3720
|
+
@amount_type = amount_type
|
3721
|
+
@currency = currency
|
3722
|
+
@end_date = end_date
|
3723
|
+
@payment_schedule = payment_schedule
|
3724
|
+
@reference = reference
|
3725
|
+
@start_date = start_date
|
3726
|
+
end
|
3727
|
+
end
|
2448
3728
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
2449
3729
|
attr_accessor :amount_includes_iof
|
2450
3730
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
2451
3731
|
attr_accessor :expires_after_seconds
|
3732
|
+
# Additional fields for mandate creation.
|
3733
|
+
attr_accessor :mandate_options
|
2452
3734
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2453
3735
|
#
|
2454
3736
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
@@ -2461,10 +3743,12 @@ module Stripe
|
|
2461
3743
|
def initialize(
|
2462
3744
|
amount_includes_iof: nil,
|
2463
3745
|
expires_after_seconds: nil,
|
3746
|
+
mandate_options: nil,
|
2464
3747
|
setup_future_usage: nil
|
2465
3748
|
)
|
2466
3749
|
@amount_includes_iof = amount_includes_iof
|
2467
3750
|
@expires_after_seconds = expires_after_seconds
|
3751
|
+
@mandate_options = mandate_options
|
2468
3752
|
@setup_future_usage = setup_future_usage
|
2469
3753
|
end
|
2470
3754
|
end
|
@@ -2668,6 +3952,8 @@ module Stripe
|
|
2668
3952
|
attr_accessor :paynow
|
2669
3953
|
# contains details about the PayPal payment method options.
|
2670
3954
|
attr_accessor :paypal
|
3955
|
+
# contains details about the PayTo payment method options.
|
3956
|
+
attr_accessor :payto
|
2671
3957
|
# contains details about the Pix payment method options.
|
2672
3958
|
attr_accessor :pix
|
2673
3959
|
# contains details about the RevolutPay payment method options.
|
@@ -2717,6 +4003,7 @@ module Stripe
|
|
2717
4003
|
payco: nil,
|
2718
4004
|
paynow: nil,
|
2719
4005
|
paypal: nil,
|
4006
|
+
payto: nil,
|
2720
4007
|
pix: nil,
|
2721
4008
|
revolut_pay: nil,
|
2722
4009
|
samsung_pay: nil,
|
@@ -2757,6 +4044,7 @@ module Stripe
|
|
2757
4044
|
@payco = payco
|
2758
4045
|
@paynow = paynow
|
2759
4046
|
@paypal = paypal
|
4047
|
+
@payto = payto
|
2760
4048
|
@pix = pix
|
2761
4049
|
@revolut_pay = revolut_pay
|
2762
4050
|
@samsung_pay = samsung_pay
|
@@ -2769,6 +4057,37 @@ module Stripe
|
|
2769
4057
|
end
|
2770
4058
|
|
2771
4059
|
class Permissions < Stripe::RequestParams
|
4060
|
+
class Update < Stripe::RequestParams
|
4061
|
+
# Determines which entity is allowed to update the line items.
|
4062
|
+
#
|
4063
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
4064
|
+
#
|
4065
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
4066
|
+
attr_accessor :line_items
|
4067
|
+
# Determines which entity is allowed to update the shipping details.
|
4068
|
+
#
|
4069
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
4070
|
+
#
|
4071
|
+
# When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
4072
|
+
attr_accessor :shipping_details
|
4073
|
+
|
4074
|
+
def initialize(line_items: nil, shipping_details: nil)
|
4075
|
+
@line_items = line_items
|
4076
|
+
@shipping_details = shipping_details
|
4077
|
+
end
|
4078
|
+
end
|
4079
|
+
# Permissions for updating the Checkout Session.
|
4080
|
+
attr_accessor :update
|
4081
|
+
# Determines which entity is allowed to update the discounts (coupons or promotion codes) that apply to this session.
|
4082
|
+
#
|
4083
|
+
# Default is `client_only`. Stripe Checkout client will automatically handle discount updates. If set to `server_only`, only your server is allowed to update discounts.
|
4084
|
+
attr_accessor :update_discounts
|
4085
|
+
# Determines which entity is allowed to update the line items.
|
4086
|
+
#
|
4087
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
4088
|
+
#
|
4089
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
4090
|
+
attr_accessor :update_line_items
|
2772
4091
|
# Determines which entity is allowed to update the shipping details.
|
2773
4092
|
#
|
2774
4093
|
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
@@ -2776,7 +4095,15 @@ module Stripe
|
|
2776
4095
|
# When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
2777
4096
|
attr_accessor :update_shipping_details
|
2778
4097
|
|
2779
|
-
def initialize(
|
4098
|
+
def initialize(
|
4099
|
+
update: nil,
|
4100
|
+
update_discounts: nil,
|
4101
|
+
update_line_items: nil,
|
4102
|
+
update_shipping_details: nil
|
4103
|
+
)
|
4104
|
+
@update = update
|
4105
|
+
@update_discounts = update_discounts
|
4106
|
+
@update_line_items = update_line_items
|
2780
4107
|
@update_shipping_details = update_shipping_details
|
2781
4108
|
end
|
2782
4109
|
end
|
@@ -3126,6 +4453,8 @@ module Stripe
|
|
3126
4453
|
#
|
3127
4454
|
# You can set [`payment_intent_data.setup_future_usage`](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
|
3128
4455
|
attr_accessor :customer
|
4456
|
+
# ID of an existing Account, if one exists. Has the same behavior as `customer`.
|
4457
|
+
attr_accessor :customer_account
|
3129
4458
|
# Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
|
3130
4459
|
#
|
3131
4460
|
# When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout
|
@@ -3243,6 +4572,8 @@ module Stripe
|
|
3243
4572
|
attr_accessor :ui_mode
|
3244
4573
|
# Wallet-specific configuration.
|
3245
4574
|
attr_accessor :wallet_options
|
4575
|
+
# Attribute for param field checkout_items
|
4576
|
+
attr_accessor :checkout_items
|
3246
4577
|
|
3247
4578
|
def initialize(
|
3248
4579
|
adaptive_pricing: nil,
|
@@ -3257,6 +4588,7 @@ module Stripe
|
|
3257
4588
|
custom_fields: nil,
|
3258
4589
|
custom_text: nil,
|
3259
4590
|
customer: nil,
|
4591
|
+
customer_account: nil,
|
3260
4592
|
customer_creation: nil,
|
3261
4593
|
customer_email: nil,
|
3262
4594
|
customer_update: nil,
|
@@ -3289,7 +4621,8 @@ module Stripe
|
|
3289
4621
|
success_url: nil,
|
3290
4622
|
tax_id_collection: nil,
|
3291
4623
|
ui_mode: nil,
|
3292
|
-
wallet_options: nil
|
4624
|
+
wallet_options: nil,
|
4625
|
+
checkout_items: nil
|
3293
4626
|
)
|
3294
4627
|
@adaptive_pricing = adaptive_pricing
|
3295
4628
|
@after_expiration = after_expiration
|
@@ -3303,6 +4636,7 @@ module Stripe
|
|
3303
4636
|
@custom_fields = custom_fields
|
3304
4637
|
@custom_text = custom_text
|
3305
4638
|
@customer = customer
|
4639
|
+
@customer_account = customer_account
|
3306
4640
|
@customer_creation = customer_creation
|
3307
4641
|
@customer_email = customer_email
|
3308
4642
|
@customer_update = customer_update
|
@@ -3336,6 +4670,7 @@ module Stripe
|
|
3336
4670
|
@tax_id_collection = tax_id_collection
|
3337
4671
|
@ui_mode = ui_mode
|
3338
4672
|
@wallet_options = wallet_options
|
4673
|
+
@checkout_items = checkout_items
|
3339
4674
|
end
|
3340
4675
|
end
|
3341
4676
|
|
@@ -3390,6 +4725,164 @@ module Stripe
|
|
3390
4725
|
end
|
3391
4726
|
end
|
3392
4727
|
|
4728
|
+
class Discount < Stripe::RequestParams
|
4729
|
+
class CouponData < Stripe::RequestParams
|
4730
|
+
# A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
|
4731
|
+
attr_accessor :amount_off
|
4732
|
+
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
|
4733
|
+
attr_accessor :currency
|
4734
|
+
# Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
|
4735
|
+
attr_accessor :duration
|
4736
|
+
# 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`.
|
4737
|
+
attr_accessor :metadata
|
4738
|
+
# Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
|
4739
|
+
attr_accessor :name
|
4740
|
+
# A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
|
4741
|
+
attr_accessor :percent_off
|
4742
|
+
|
4743
|
+
def initialize(
|
4744
|
+
amount_off: nil,
|
4745
|
+
currency: nil,
|
4746
|
+
duration: nil,
|
4747
|
+
metadata: nil,
|
4748
|
+
name: nil,
|
4749
|
+
percent_off: nil
|
4750
|
+
)
|
4751
|
+
@amount_off = amount_off
|
4752
|
+
@currency = currency
|
4753
|
+
@duration = duration
|
4754
|
+
@metadata = metadata
|
4755
|
+
@name = name
|
4756
|
+
@percent_off = percent_off
|
4757
|
+
end
|
4758
|
+
end
|
4759
|
+
# The ID of the [Coupon](https://stripe.com/docs/api/coupons) to apply to this Session. One of `coupon` or `coupon_data` is required when updating discounts.
|
4760
|
+
attr_accessor :coupon
|
4761
|
+
# Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
|
4762
|
+
attr_accessor :coupon_data
|
4763
|
+
|
4764
|
+
def initialize(coupon: nil, coupon_data: nil)
|
4765
|
+
@coupon = coupon
|
4766
|
+
@coupon_data = coupon_data
|
4767
|
+
end
|
4768
|
+
end
|
4769
|
+
|
4770
|
+
class LineItem < Stripe::RequestParams
|
4771
|
+
class AdjustableQuantity < Stripe::RequestParams
|
4772
|
+
# Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
4773
|
+
attr_accessor :enabled
|
4774
|
+
# The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
|
4775
|
+
attr_accessor :maximum
|
4776
|
+
# The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
4777
|
+
attr_accessor :minimum
|
4778
|
+
|
4779
|
+
def initialize(enabled: nil, maximum: nil, minimum: nil)
|
4780
|
+
@enabled = enabled
|
4781
|
+
@maximum = maximum
|
4782
|
+
@minimum = minimum
|
4783
|
+
end
|
4784
|
+
end
|
4785
|
+
|
4786
|
+
class PriceData < Stripe::RequestParams
|
4787
|
+
class ProductData < Stripe::RequestParams
|
4788
|
+
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
4789
|
+
attr_accessor :description
|
4790
|
+
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
4791
|
+
attr_accessor :images
|
4792
|
+
# 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`.
|
4793
|
+
attr_accessor :metadata
|
4794
|
+
# The product's name, meant to be displayable to the customer.
|
4795
|
+
attr_accessor :name
|
4796
|
+
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
4797
|
+
attr_accessor :tax_code
|
4798
|
+
|
4799
|
+
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
4800
|
+
@description = description
|
4801
|
+
@images = images
|
4802
|
+
@metadata = metadata
|
4803
|
+
@name = name
|
4804
|
+
@tax_code = tax_code
|
4805
|
+
end
|
4806
|
+
end
|
4807
|
+
|
4808
|
+
class Recurring < Stripe::RequestParams
|
4809
|
+
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
4810
|
+
attr_accessor :interval
|
4811
|
+
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
4812
|
+
attr_accessor :interval_count
|
4813
|
+
|
4814
|
+
def initialize(interval: nil, interval_count: nil)
|
4815
|
+
@interval = interval
|
4816
|
+
@interval_count = interval_count
|
4817
|
+
end
|
4818
|
+
end
|
4819
|
+
# 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).
|
4820
|
+
attr_accessor :currency
|
4821
|
+
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
|
4822
|
+
attr_accessor :product
|
4823
|
+
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
4824
|
+
attr_accessor :product_data
|
4825
|
+
# The recurring components of a price such as `interval` and `interval_count`.
|
4826
|
+
attr_accessor :recurring
|
4827
|
+
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
4828
|
+
attr_accessor :tax_behavior
|
4829
|
+
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
4830
|
+
attr_accessor :unit_amount
|
4831
|
+
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
4832
|
+
attr_accessor :unit_amount_decimal
|
4833
|
+
|
4834
|
+
def initialize(
|
4835
|
+
currency: nil,
|
4836
|
+
product: nil,
|
4837
|
+
product_data: nil,
|
4838
|
+
recurring: nil,
|
4839
|
+
tax_behavior: nil,
|
4840
|
+
unit_amount: nil,
|
4841
|
+
unit_amount_decimal: nil
|
4842
|
+
)
|
4843
|
+
@currency = currency
|
4844
|
+
@product = product
|
4845
|
+
@product_data = product_data
|
4846
|
+
@recurring = recurring
|
4847
|
+
@tax_behavior = tax_behavior
|
4848
|
+
@unit_amount = unit_amount
|
4849
|
+
@unit_amount_decimal = unit_amount_decimal
|
4850
|
+
end
|
4851
|
+
end
|
4852
|
+
# When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
|
4853
|
+
attr_accessor :adjustable_quantity
|
4854
|
+
# ID of an existing line item.
|
4855
|
+
attr_accessor :id
|
4856
|
+
# 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`.
|
4857
|
+
attr_accessor :metadata
|
4858
|
+
# The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
|
4859
|
+
attr_accessor :price
|
4860
|
+
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
|
4861
|
+
attr_accessor :price_data
|
4862
|
+
# The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
|
4863
|
+
attr_accessor :quantity
|
4864
|
+
# The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
4865
|
+
attr_accessor :tax_rates
|
4866
|
+
|
4867
|
+
def initialize(
|
4868
|
+
adjustable_quantity: nil,
|
4869
|
+
id: nil,
|
4870
|
+
metadata: nil,
|
4871
|
+
price: nil,
|
4872
|
+
price_data: nil,
|
4873
|
+
quantity: nil,
|
4874
|
+
tax_rates: nil
|
4875
|
+
)
|
4876
|
+
@adjustable_quantity = adjustable_quantity
|
4877
|
+
@id = id
|
4878
|
+
@metadata = metadata
|
4879
|
+
@price = price
|
4880
|
+
@price_data = price_data
|
4881
|
+
@quantity = quantity
|
4882
|
+
@tax_rates = tax_rates
|
4883
|
+
end
|
4884
|
+
end
|
4885
|
+
|
3393
4886
|
class ShippingOption < Stripe::RequestParams
|
3394
4887
|
class ShippingRateData < Stripe::RequestParams
|
3395
4888
|
class DeliveryEstimate < Stripe::RequestParams
|
@@ -3495,25 +4988,61 @@ module Stripe
|
|
3495
4988
|
@shipping_rate_data = shipping_rate_data
|
3496
4989
|
end
|
3497
4990
|
end
|
4991
|
+
|
4992
|
+
class SubscriptionData < Stripe::RequestParams
|
4993
|
+
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
|
4994
|
+
attr_accessor :trial_end
|
4995
|
+
# Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
|
4996
|
+
attr_accessor :trial_period_days
|
4997
|
+
|
4998
|
+
def initialize(trial_end: nil, trial_period_days: nil)
|
4999
|
+
@trial_end = trial_end
|
5000
|
+
@trial_period_days = trial_period_days
|
5001
|
+
end
|
5002
|
+
end
|
3498
5003
|
# Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
|
3499
5004
|
attr_accessor :collected_information
|
5005
|
+
# List of coupons and promotion codes attached to the Checkout Session.
|
5006
|
+
attr_accessor :discounts
|
3500
5007
|
# Specifies which fields in the response should be expanded.
|
3501
5008
|
attr_accessor :expand
|
5009
|
+
# A list of items the customer is purchasing.
|
5010
|
+
#
|
5011
|
+
# When updating line items, you must retransmit the entire array of line items.
|
5012
|
+
#
|
5013
|
+
# To retain an existing line item, specify its `id`.
|
5014
|
+
#
|
5015
|
+
# To update an existing line item, specify its `id` along with the new values of the fields to update.
|
5016
|
+
#
|
5017
|
+
# To add a new line item, specify one of `price` or `price_data` and `quantity`.
|
5018
|
+
#
|
5019
|
+
# To remove an existing line item, omit the line item's ID from the retransmitted array.
|
5020
|
+
#
|
5021
|
+
# To reorder a line item, specify it at the desired position in the retransmitted array.
|
5022
|
+
attr_accessor :line_items
|
3502
5023
|
# 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`.
|
3503
5024
|
attr_accessor :metadata
|
3504
5025
|
# The shipping rate options to apply to this Session. Up to a maximum of 5.
|
3505
5026
|
attr_accessor :shipping_options
|
5027
|
+
# A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
|
5028
|
+
attr_accessor :subscription_data
|
3506
5029
|
|
3507
5030
|
def initialize(
|
3508
5031
|
collected_information: nil,
|
5032
|
+
discounts: nil,
|
3509
5033
|
expand: nil,
|
5034
|
+
line_items: nil,
|
3510
5035
|
metadata: nil,
|
3511
|
-
shipping_options: nil
|
5036
|
+
shipping_options: nil,
|
5037
|
+
subscription_data: nil
|
3512
5038
|
)
|
3513
5039
|
@collected_information = collected_information
|
5040
|
+
@discounts = discounts
|
3514
5041
|
@expand = expand
|
5042
|
+
@line_items = line_items
|
3515
5043
|
@metadata = metadata
|
3516
5044
|
@shipping_options = shipping_options
|
5045
|
+
@subscription_data = subscription_data
|
3517
5046
|
end
|
3518
5047
|
end
|
3519
5048
|
|
@@ -3588,6 +5117,8 @@ module Stripe
|
|
3588
5117
|
# during the payment flow unless an existing customer was provided when
|
3589
5118
|
# the Session was created.
|
3590
5119
|
attr_reader :customer
|
5120
|
+
# The ID of the account for this Session.
|
5121
|
+
attr_reader :customer_account
|
3591
5122
|
# Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
|
3592
5123
|
attr_reader :customer_creation
|
3593
5124
|
# The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode.
|
@@ -3686,6 +5217,8 @@ module Stripe
|
|
3686
5217
|
attr_reader :url
|
3687
5218
|
# Wallet-specific configuration for this Checkout Session.
|
3688
5219
|
attr_reader :wallet_options
|
5220
|
+
# Attribute for field checkout_items
|
5221
|
+
attr_reader :checkout_items
|
3689
5222
|
|
3690
5223
|
# Creates a Checkout Session object.
|
3691
5224
|
def self.create(params = {}, opts = {})
|
@@ -3762,6 +5295,41 @@ module Stripe
|
|
3762
5295
|
opts: opts
|
3763
5296
|
)
|
3764
5297
|
end
|
5298
|
+
|
5299
|
+
def self.inner_class_types
|
5300
|
+
@inner_class_types = {
|
5301
|
+
adaptive_pricing: AdaptivePricing,
|
5302
|
+
after_expiration: AfterExpiration,
|
5303
|
+
automatic_tax: AutomaticTax,
|
5304
|
+
collected_information: CollectedInformation,
|
5305
|
+
consent: Consent,
|
5306
|
+
consent_collection: ConsentCollection,
|
5307
|
+
currency_conversion: CurrencyConversion,
|
5308
|
+
custom_fields: CustomField,
|
5309
|
+
custom_text: CustomText,
|
5310
|
+
customer_details: CustomerDetails,
|
5311
|
+
discounts: Discount,
|
5312
|
+
invoice_creation: InvoiceCreation,
|
5313
|
+
optional_items: OptionalItem,
|
5314
|
+
payment_method_configuration_details: PaymentMethodConfigurationDetails,
|
5315
|
+
payment_method_options: PaymentMethodOptions,
|
5316
|
+
permissions: Permissions,
|
5317
|
+
phone_number_collection: PhoneNumberCollection,
|
5318
|
+
presentment_details: PresentmentDetails,
|
5319
|
+
saved_payment_method_options: SavedPaymentMethodOptions,
|
5320
|
+
shipping_address_collection: ShippingAddressCollection,
|
5321
|
+
shipping_cost: ShippingCost,
|
5322
|
+
shipping_options: ShippingOption,
|
5323
|
+
tax_id_collection: TaxIdCollection,
|
5324
|
+
total_details: TotalDetails,
|
5325
|
+
wallet_options: WalletOptions,
|
5326
|
+
checkout_items: CheckoutItem,
|
5327
|
+
}
|
5328
|
+
end
|
5329
|
+
|
5330
|
+
def self.field_remappings
|
5331
|
+
@field_remappings = {}
|
5332
|
+
end
|
3765
5333
|
end
|
3766
5334
|
end
|
3767
5335
|
end
|