stripe 13.6.0.pre.beta.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +699 -1457
- data/OPENAPI_VERSION +1 -1
- data/README.md +29 -0
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/object_types.rb +0 -26
- data/lib/stripe/resources/account.rb +83 -614
- data/lib/stripe/resources/account_session.rb +1 -247
- data/lib/stripe/resources/apple_pay_domain.rb +0 -9
- data/lib/stripe/resources/application_fee.rb +1 -10
- data/lib/stripe/resources/balance.rb +0 -9
- data/lib/stripe/resources/balance_transaction.rb +2 -11
- data/lib/stripe/resources/bank_account.rb +1 -1
- data/lib/stripe/resources/billing/alert.rb +0 -9
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -48
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -9
- data/lib/stripe/resources/billing/credit_grant.rb +4 -13
- data/lib/stripe/resources/billing/meter.rb +1 -10
- data/lib/stripe/resources/billing_portal/configuration.rb +0 -9
- data/lib/stripe/resources/card.rb +2 -4
- data/lib/stripe/resources/charge.rb +35 -1457
- data/lib/stripe/resources/checkout/session.rb +100 -293
- data/lib/stripe/resources/climate/order.rb +0 -9
- data/lib/stripe/resources/climate/product.rb +0 -9
- data/lib/stripe/resources/climate/supplier.rb +0 -9
- data/lib/stripe/resources/confirmation_token.rb +74 -156
- data/lib/stripe/resources/country_spec.rb +0 -9
- data/lib/stripe/resources/coupon.rb +0 -9
- data/lib/stripe/resources/credit_note.rb +14 -35
- data/lib/stripe/resources/credit_note_line_item.rb +14 -12
- data/lib/stripe/resources/customer.rb +12 -28
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -1
- data/lib/stripe/resources/dispute.rb +0 -9
- data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -9
- data/lib/stripe/resources/entitlements/feature.rb +0 -9
- data/lib/stripe/resources/event.rb +0 -40
- data/lib/stripe/resources/exchange_rate.rb +0 -9
- data/lib/stripe/resources/file.rb +0 -9
- data/lib/stripe/resources/file_link.rb +0 -9
- data/lib/stripe/resources/financial_connections/account.rb +0 -23
- data/lib/stripe/resources/financial_connections/session.rb +1 -65
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -9
- data/lib/stripe/resources/forwarding/request.rb +0 -9
- data/lib/stripe/resources/identity/verification_report.rb +0 -9
- data/lib/stripe/resources/identity/verification_session.rb +0 -9
- data/lib/stripe/resources/invoice.rb +225 -5120
- data/lib/stripe/resources/invoice_item.rb +65 -110
- data/lib/stripe/resources/invoice_line_item.rb +106 -89
- data/lib/stripe/resources/invoice_payment.rb +53 -4
- data/lib/stripe/resources/invoice_rendering_template.rb +0 -12
- data/lib/stripe/resources/issuing/authorization.rb +0 -9
- data/lib/stripe/resources/issuing/card.rb +0 -9
- data/lib/stripe/resources/issuing/cardholder.rb +1 -11
- data/lib/stripe/resources/issuing/dispute.rb +0 -9
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -9
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -9
- data/lib/stripe/resources/issuing/token.rb +0 -9
- data/lib/stripe/resources/issuing/transaction.rb +0 -15
- data/lib/stripe/resources/line_item.rb +0 -28
- data/lib/stripe/resources/mandate.rb +6 -33
- data/lib/stripe/resources/payment_intent.rb +642 -4975
- data/lib/stripe/resources/payment_link.rb +84 -15
- data/lib/stripe/resources/payment_method.rb +74 -187
- data/lib/stripe/resources/payment_method_configuration.rb +87 -214
- data/lib/stripe/resources/payment_method_domain.rb +9 -18
- data/lib/stripe/resources/payout.rb +0 -9
- data/lib/stripe/resources/person.rb +9 -9
- data/lib/stripe/resources/plan.rb +0 -15
- data/lib/stripe/resources/price.rb +2 -47
- data/lib/stripe/resources/product.rb +0 -68
- data/lib/stripe/resources/promotion_code.rb +0 -9
- data/lib/stripe/resources/quote.rb +8 -2037
- data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -9
- data/lib/stripe/resources/radar/value_list.rb +0 -9
- data/lib/stripe/resources/radar/value_list_item.rb +0 -9
- data/lib/stripe/resources/refund.rb +13 -18
- data/lib/stripe/resources/reporting/report_run.rb +0 -9
- data/lib/stripe/resources/reporting/report_type.rb +0 -9
- data/lib/stripe/resources/review.rb +2 -11
- data/lib/stripe/resources/setup_attempt.rb +11 -16
- data/lib/stripe/resources/setup_intent.rb +158 -540
- data/lib/stripe/resources/shipping_rate.rb +0 -9
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -9
- data/lib/stripe/resources/source.rb +0 -41
- data/lib/stripe/resources/subscription.rb +14 -385
- data/lib/stripe/resources/subscription_item.rb +9 -134
- data/lib/stripe/resources/subscription_schedule.rb +14 -1135
- data/lib/stripe/resources/tax/calculation.rb +0 -9
- data/lib/stripe/resources/tax/registration.rb +1 -10
- data/lib/stripe/resources/tax/settings.rb +0 -9
- data/lib/stripe/resources/tax/transaction.rb +0 -9
- data/lib/stripe/resources/tax_code.rb +0 -9
- data/lib/stripe/resources/tax_id.rb +0 -9
- data/lib/stripe/resources/tax_rate.rb +0 -9
- data/lib/stripe/resources/terminal/configuration.rb +214 -14
- data/lib/stripe/resources/terminal/location.rb +0 -9
- data/lib/stripe/resources/terminal/reader.rb +0 -408
- data/lib/stripe/resources/test_helpers/test_clock.rb +0 -9
- data/lib/stripe/resources/token.rb +1 -10
- data/lib/stripe/resources/topup.rb +0 -9
- data/lib/stripe/resources/transfer.rb +0 -9
- data/lib/stripe/resources/treasury/credit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/debit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/financial_account.rb +4 -32
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -46
- data/lib/stripe/resources/treasury/received_credit.rb +1 -47
- data/lib/stripe/resources/treasury/received_debit.rb +1 -49
- data/lib/stripe/resources/treasury/transaction.rb +0 -9
- data/lib/stripe/resources/treasury/transaction_entry.rb +0 -9
- data/lib/stripe/resources/v2/event.rb +1 -0
- data/lib/stripe/resources/v2/event_destination.rb +1 -0
- data/lib/stripe/resources/webhook_endpoint.rb +0 -9
- data/lib/stripe/resources.rb +0 -25
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +68 -509
- data/lib/stripe/services/account_session_service.rb +1 -217
- data/lib/stripe/services/balance_transaction_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -2
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +1 -1335
- data/lib/stripe/services/checkout/session_service.rb +60 -168
- data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -4
- data/lib/stripe/services/credit_note_service.rb +0 -8
- data/lib/stripe/services/customer_service.rb +0 -16
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections/session_service.rb +1 -30
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_item_service.rb +34 -88
- data/lib/stripe/services/invoice_line_item_service.rb +25 -41
- data/lib/stripe/services/invoice_payment_service.rb +33 -5
- data/lib/stripe/services/invoice_service.rb +210 -3147
- data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
- data/lib/stripe/services/issuing/transaction_service.rb +0 -4
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +568 -4513
- data/lib/stripe/services/payment_link_service.rb +59 -6
- data/lib/stripe/services/payment_method_configuration_service.rb +62 -146
- data/lib/stripe/services/payment_method_domain_service.rb +6 -6
- data/lib/stripe/services/payment_method_service.rb +49 -119
- data/lib/stripe/services/plan_service.rb +0 -4
- data/lib/stripe/services/price_service.rb +2 -25
- data/lib/stripe/services/product_service.rb +0 -38
- data/lib/stripe/services/quote_service.rb +9 -1716
- data/lib/stripe/services/setup_intent_service.rb +158 -492
- data/lib/stripe/services/subscription_item_service.rb +5 -111
- data/lib/stripe/services/subscription_schedule_service.rb +14 -1005
- data/lib/stripe/services/subscription_service.rb +13 -323
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +170 -4
- data/lib/stripe/services/terminal/reader_service.rb +0 -177
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +49 -87
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -43
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +3 -17
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -8
- data/lib/stripe/services/v2/core/event_destination_service.rb +1 -4
- data/lib/stripe/services/v2/core/event_service.rb +1 -4
- data/lib/stripe/services.rb +0 -27
- data/lib/stripe/stripe_client.rb +1 -0
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- data/rbi/stripe/resources/account.rbi +1131 -1479
- data/rbi/stripe/resources/account_link.rbi +9 -9
- data/rbi/stripe/resources/account_session.rbi +118 -367
- data/rbi/stripe/resources/apple_pay_domain.rbi +8 -15
- data/rbi/stripe/resources/application_fee.rbi +15 -20
- data/rbi/stripe/resources/apps/secret.rbi +20 -20
- data/rbi/stripe/resources/balance.rbi +0 -7
- data/rbi/stripe/resources/balance_transaction.rbi +19 -24
- data/rbi/stripe/resources/bank_account.rbi +1 -1
- data/rbi/stripe/resources/billing/alert.rbi +23 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -53
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +6 -13
- data/rbi/stripe/resources/billing/credit_grant.rbi +30 -37
- data/rbi/stripe/resources/billing/meter.rbi +19 -26
- data/rbi/stripe/resources/billing/meter_event.rbi +4 -4
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +5 -5
- data/rbi/stripe/resources/billing_portal/configuration.rbi +86 -81
- data/rbi/stripe/resources/billing_portal/session.rbi +31 -27
- data/rbi/stripe/resources/card.rbi +2 -5
- data/rbi/stripe/resources/charge.rbi +136 -1576
- data/rbi/stripe/resources/checkout/session.rbi +631 -748
- data/rbi/stripe/resources/climate/order.rbi +20 -25
- data/rbi/stripe/resources/climate/product.rbi +5 -12
- data/rbi/stripe/resources/climate/supplier.rbi +5 -12
- data/rbi/stripe/resources/confirmation_token.rbi +274 -268
- data/rbi/stripe/resources/country_spec.rbi +5 -12
- data/rbi/stripe/resources/coupon.rbi +34 -39
- data/rbi/stripe/resources/credit_note.rbi +134 -146
- data/rbi/stripe/resources/credit_note_line_item.rbi +20 -18
- data/rbi/stripe/resources/customer.rbi +172 -164
- data/rbi/stripe/resources/customer_balance_transaction.rbi +4 -1
- data/rbi/stripe/resources/customer_session.rbi +19 -15
- data/rbi/stripe/resources/dispute.rbi +92 -95
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +5 -12
- data/rbi/stripe/resources/entitlements/feature.rbi +15 -22
- data/rbi/stripe/resources/ephemeral_key.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +16 -60
- data/rbi/stripe/resources/exchange_rate.rbi +5 -12
- data/rbi/stripe/resources/file.rbi +20 -25
- data/rbi/stripe/resources/file_link.rbi +23 -28
- data/rbi/stripe/resources/financial_connections/account.rbi +25 -44
- data/rbi/stripe/resources/financial_connections/session.rbi +12 -75
- data/rbi/stripe/resources/financial_connections/transaction.rbi +16 -19
- data/rbi/stripe/resources/forwarding/request.rbi +21 -24
- data/rbi/stripe/resources/identity/verification_report.rbi +18 -21
- data/rbi/stripe/resources/identity/verification_session.rbi +60 -61
- data/rbi/stripe/resources/invoice.rbi +723 -5918
- data/rbi/stripe/resources/invoice_item.rbi +138 -177
- data/rbi/stripe/resources/invoice_line_item.rbi +199 -264
- data/rbi/stripe/resources/invoice_payment.rbi +51 -7
- data/rbi/stripe/resources/invoice_rendering_template.rbi +10 -20
- data/rbi/stripe/resources/issuing/authorization.rbi +216 -199
- data/rbi/stripe/resources/issuing/card.rbi +104 -101
- data/rbi/stripe/resources/issuing/cardholder.rbi +120 -108
- data/rbi/stripe/resources/issuing/dispute.rbi +164 -151
- data/rbi/stripe/resources/issuing/personalization_design.rbi +61 -56
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +7 -14
- data/rbi/stripe/resources/issuing/token.rbi +16 -21
- data/rbi/stripe/resources/issuing/transaction.rbi +180 -176
- data/rbi/stripe/resources/line_item.rbi +0 -36
- data/rbi/stripe/resources/mandate.rbi +8 -40
- data/rbi/stripe/resources/payment_intent.rbi +2252 -6482
- data/rbi/stripe/resources/payment_link.rbi +346 -211
- data/rbi/stripe/resources/payment_method.rbi +226 -330
- data/rbi/stripe/resources/payment_method_configuration.rbi +602 -685
- data/rbi/stripe/resources/payment_method_domain.rbi +26 -31
- data/rbi/stripe/resources/payout.rbi +43 -42
- data/rbi/stripe/resources/person.rbi +9 -9
- data/rbi/stripe/resources/plan.rbi +51 -63
- data/rbi/stripe/resources/price.rbi +114 -151
- data/rbi/stripe/resources/product.rbi +90 -152
- data/rbi/stripe/resources/promotion_code.rbi +42 -47
- data/rbi/stripe/resources/quote.rbi +168 -2231
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +17 -20
- data/rbi/stripe/resources/radar/value_list.rbi +24 -29
- data/rbi/stripe/resources/radar/value_list_item.rbi +18 -21
- data/rbi/stripe/resources/refund.rbi +52 -51
- data/rbi/stripe/resources/reporting/report_run.rbi +27 -30
- data/rbi/stripe/resources/reporting/report_type.rbi +2 -9
- data/rbi/stripe/resources/review.rbi +17 -22
- data/rbi/stripe/resources/setup_attempt.rbi +25 -32
- data/rbi/stripe/resources/setup_intent.rbi +900 -1102
- data/rbi/stripe/resources/shipping_rate.rbi +41 -46
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +5 -12
- data/rbi/stripe/resources/source.rbi +132 -179
- data/rbi/stripe/resources/subscription.rbi +363 -707
- data/rbi/stripe/resources/subscription_item.rbi +69 -177
- data/rbi/stripe/resources/subscription_schedule.rbi +289 -1447
- data/rbi/stripe/resources/tax/calculation.rbi +43 -48
- data/rbi/stripe/resources/tax/registration.rbi +217 -170
- data/rbi/stripe/resources/tax/settings.rbi +14 -21
- data/rbi/stripe/resources/tax/transaction.rbi +20 -25
- data/rbi/stripe/resources/tax_code.rbi +5 -12
- data/rbi/stripe/resources/tax_id.rbi +15 -22
- data/rbi/stripe/resources/tax_rate.rbi +34 -39
- data/rbi/stripe/resources/terminal/configuration.rbi +457 -212
- data/rbi/stripe/resources/terminal/connection_token.rbi +3 -3
- data/rbi/stripe/resources/terminal/location.rbi +28 -35
- data/rbi/stripe/resources/terminal/reader.rbi +71 -441
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +12 -17
- data/rbi/stripe/resources/token.rbi +288 -263
- data/rbi/stripe/resources/topup.rbi +35 -38
- data/rbi/stripe/resources/transfer.rbi +27 -32
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +10 -17
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +11 -18
- data/rbi/stripe/resources/treasury/financial_account.rbi +125 -130
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -3
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +22 -29
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +82 -79
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +44 -86
- data/rbi/stripe/resources/treasury/received_credit.rbi +18 -64
- data/rbi/stripe/resources/treasury/received_debit.rbi +17 -66
- data/rbi/stripe/resources/treasury/transaction.rbi +27 -28
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +25 -26
- data/rbi/stripe/resources/v2/amount.rbi +1 -1
- data/rbi/stripe/resources/v2/event.rbi +1 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +1 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +18 -25
- data/rbi/stripe/services/account_capability_service.rbi +7 -7
- data/rbi/stripe/services/account_external_account_service.rbi +52 -52
- data/rbi/stripe/services/account_link_service.rbi +9 -9
- data/rbi/stripe/services/account_login_link_service.rbi +2 -2
- data/rbi/stripe/services/account_person_service.rbi +221 -201
- data/rbi/stripe/services/account_service.rbi +1221 -1345
- data/rbi/stripe/services/account_session_service.rbi +115 -346
- data/rbi/stripe/services/apple_pay_domain_service.rbi +10 -10
- data/rbi/stripe/services/application_fee_refund_service.rbi +16 -14
- data/rbi/stripe/services/application_fee_service.rbi +18 -14
- data/rbi/stripe/services/apps/secret_service.rbi +20 -20
- data/rbi/stripe/services/balance_service.rbi +2 -2
- data/rbi/stripe/services/balance_transaction_service.rbi +22 -18
- data/rbi/stripe/services/billing/alert_service.rbi +23 -23
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +10 -10
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +8 -8
- data/rbi/stripe/services/billing/credit_grant_service.rbi +32 -30
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +7 -5
- data/rbi/stripe/services/billing/meter_event_service.rbi +4 -4
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +6 -6
- data/rbi/stripe/services/billing/meter_service.rbi +21 -21
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +90 -76
- data/rbi/stripe/services/billing_portal/session_service.rbi +29 -27
- data/rbi/stripe/services/charge_service.rbi +96 -1464
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +5 -5
- data/rbi/stripe/services/checkout/session_service.rbi +555 -591
- data/rbi/stripe/services/climate/order_service.rbi +22 -20
- data/rbi/stripe/services/climate/product_service.rbi +7 -7
- data/rbi/stripe/services/climate/supplier_service.rbi +7 -7
- data/rbi/stripe/services/confirmation_token_service.rbi +2 -2
- data/rbi/stripe/services/country_spec_service.rbi +7 -7
- data/rbi/stripe/services/coupon_service.rbi +40 -34
- data/rbi/stripe/services/credit_note_line_item_service.rbi +5 -5
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +35 -35
- data/rbi/stripe/services/credit_note_service.rbi +81 -85
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +15 -15
- data/rbi/stripe/services/customer_cash_balance_service.rbi +7 -7
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +7 -7
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +5 -5
- data/rbi/stripe/services/customer_payment_method_service.rbi +9 -9
- data/rbi/stripe/services/customer_payment_source_service.rbi +48 -44
- data/rbi/stripe/services/customer_service.rbi +143 -139
- data/rbi/stripe/services/customer_session_service.rbi +21 -15
- data/rbi/stripe/services/customer_tax_id_service.rbi +9 -9
- data/rbi/stripe/services/dispute_service.rbi +92 -90
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +7 -7
- data/rbi/stripe/services/entitlements/feature_service.rbi +17 -17
- data/rbi/stripe/services/ephemeral_key_service.rbi +8 -8
- data/rbi/stripe/services/event_service.rbi +18 -16
- data/rbi/stripe/services/exchange_rate_service.rbi +7 -7
- data/rbi/stripe/services/file_link_service.rbi +25 -23
- data/rbi/stripe/services/file_service.rbi +22 -20
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +5 -5
- data/rbi/stripe/services/financial_connections/account_service.rbi +22 -21
- data/rbi/stripe/services/financial_connections/session_service.rbi +16 -39
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +16 -14
- data/rbi/stripe/services/financial_connections_service.rbi +0 -1
- data/rbi/stripe/services/forwarding/request_service.rbi +21 -19
- data/rbi/stripe/services/identity/verification_report_service.rbi +18 -16
- data/rbi/stripe/services/identity/verification_session_service.rbi +62 -56
- data/rbi/stripe/services/invoice_item_service.rbi +99 -155
- data/rbi/stripe/services/invoice_line_item_service.rbi +71 -82
- data/rbi/stripe/services/invoice_payment_service.rbi +39 -12
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +13 -13
- data/rbi/stripe/services/invoice_service.rbi +679 -3799
- data/rbi/stripe/services/issuing/authorization_service.rbi +32 -26
- data/rbi/stripe/services/issuing/card_service.rbi +102 -86
- data/rbi/stripe/services/issuing/cardholder_service.rbi +122 -103
- data/rbi/stripe/services/issuing/dispute_service.rbi +152 -146
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +52 -42
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +9 -9
- data/rbi/stripe/services/issuing/token_service.rbi +20 -16
- data/rbi/stripe/services/issuing/transaction_service.rbi +25 -23
- data/rbi/stripe/services/issuing_service.rbi +0 -3
- data/rbi/stripe/services/mandate_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +2312 -6081
- data/rbi/stripe/services/payment_link_line_item_service.rbi +5 -5
- data/rbi/stripe/services/payment_link_service.rbi +303 -201
- data/rbi/stripe/services/payment_method_configuration_service.rbi +616 -620
- data/rbi/stripe/services/payment_method_domain_service.rbi +25 -23
- data/rbi/stripe/services/payment_method_service.rbi +192 -249
- data/rbi/stripe/services/payout_service.rbi +45 -37
- data/rbi/stripe/services/plan_service.rbi +53 -55
- data/rbi/stripe/services/price_service.rbi +124 -129
- data/rbi/stripe/services/product_feature_service.rbi +9 -9
- data/rbi/stripe/services/product_service.rbi +94 -122
- data/rbi/stripe/services/promotion_code_service.rbi +46 -42
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +5 -5
- data/rbi/stripe/services/quote_line_item_service.rbi +5 -5
- data/rbi/stripe/services/quote_service.rbi +159 -1863
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +17 -15
- data/rbi/stripe/services/radar/value_list_item_service.rbi +20 -16
- data/rbi/stripe/services/radar/value_list_service.rbi +28 -24
- data/rbi/stripe/services/refund_service.rbi +37 -33
- data/rbi/stripe/services/reporting/report_run_service.rbi +29 -25
- data/rbi/stripe/services/reporting/report_type_service.rbi +4 -4
- data/rbi/stripe/services/review_service.rbi +17 -15
- data/rbi/stripe/services/setup_attempt_service.rbi +13 -11
- data/rbi/stripe/services/setup_intent_service.rbi +1028 -1062
- data/rbi/stripe/services/shipping_rate_service.rbi +47 -41
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +7 -7
- data/rbi/stripe/services/source_service.rbi +149 -133
- data/rbi/stripe/services/source_transaction_service.rbi +5 -5
- data/rbi/stripe/services/subscription_item_service.rbi +61 -159
- data/rbi/stripe/services/subscription_schedule_service.rbi +289 -1305
- data/rbi/stripe/services/subscription_service.rbi +366 -640
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/calculation_service.rbi +40 -38
- data/rbi/stripe/services/tax/registration_service.rbi +337 -165
- data/rbi/stripe/services/tax/settings_service.rbi +16 -16
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/transaction_service.rbi +19 -15
- data/rbi/stripe/services/tax_code_service.rbi +7 -7
- data/rbi/stripe/services/tax_id_service.rbi +17 -17
- data/rbi/stripe/services/tax_rate_service.rbi +36 -34
- data/rbi/stripe/services/tax_service.rbi +0 -2
- data/rbi/stripe/services/terminal/configuration_service.rbi +464 -204
- data/rbi/stripe/services/terminal/connection_token_service.rbi +3 -3
- data/rbi/stripe/services/terminal/location_service.rbi +30 -30
- data/rbi/stripe/services/terminal/reader_service.rbi +57 -226
- data/rbi/stripe/services/terminal_service.rbi +0 -1
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +157 -198
- data/rbi/stripe/services/test_helpers/customer_service.rbi +3 -3
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +180 -168
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +10 -10
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +11 -9
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +151 -145
- data/rbi/stripe/services/test_helpers/refund_service.rbi +2 -2
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +10 -39
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +14 -12
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +9 -9
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +11 -38
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +11 -38
- data/rbi/stripe/services/token_service.rbi +292 -258
- data/rbi/stripe/services/topup_service.rbi +37 -33
- data/rbi/stripe/services/transfer_reversal_service.rbi +18 -16
- data/rbi/stripe/services/transfer_service.rbi +29 -27
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +12 -12
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +13 -13
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +23 -26
- data/rbi/stripe/services/treasury/financial_account_service.rbi +92 -96
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +15 -15
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +60 -56
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +24 -49
- data/rbi/stripe/services/treasury/received_credit_service.rbi +11 -9
- data/rbi/stripe/services/treasury/received_debit_service.rbi +8 -8
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +25 -21
- data/rbi/stripe/services/treasury/transaction_service.rbi +31 -23
- data/rbi/stripe/services/v1_services.rbi +1 -7
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +3 -3
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +3 -3
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +21 -24
- data/rbi/stripe/services/v2/core/event_service.rbi +3 -6
- data/rbi/stripe/services/webhook_endpoint_service.rbi +20 -20
- metadata +4 -109
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -132
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- data/lib/stripe/resources/capital/financing_offer.rb +0 -188
- data/lib/stripe/resources/capital/financing_summary.rb +0 -64
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -123
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -99
- data/lib/stripe/resources/gift_cards/card.rb +0 -217
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -281
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -611
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -84
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -95
- data/lib/stripe/resources/issuing/settlement.rb +0 -49
- data/lib/stripe/resources/margin.rb +0 -124
- data/lib/stripe/resources/order.rb +0 -2868
- data/lib/stripe/resources/payment_attempt_record.rb +0 -184
- data/lib/stripe/resources/payment_record.rb +0 -715
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -652
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -362
- data/lib/stripe/resources/tax/association.rb +0 -89
- data/lib/stripe/resources/tax/form.rb +0 -220
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -40
- data/lib/stripe/resources/usage_record.rb +0 -30
- data/lib/stripe/resources/usage_record_summary.rb +0 -33
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -37
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -57
- data/lib/stripe/services/gift_cards/card_service.rb +0 -170
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -1881
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_line_item_service.rb +0 -35
- data/lib/stripe/services/order_service.rb +0 -2268
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
- data/lib/stripe/services/payment_record_service.rb +0 -542
- data/lib/stripe/services/quote_line_service.rb +0 -35
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -35
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -41
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -37
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/rbi/stripe/resources/account_notice.rbi +0 -139
- data/rbi/stripe/resources/billing/meter_error_report.rbi +0 -71
- data/rbi/stripe/resources/capital/financing_offer.rbi +0 -190
- data/rbi/stripe/resources/capital/financing_summary.rbi +0 -74
- data/rbi/stripe/resources/capital/financing_transaction.rbi +0 -130
- data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +0 -27
- data/rbi/stripe/resources/financial_connections/institution.rbi +0 -99
- data/rbi/stripe/resources/gift_cards/card.rbi +0 -206
- data/rbi/stripe/resources/gift_cards/transaction.rbi +0 -257
- data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +0 -622
- data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +0 -83
- data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +0 -90
- data/rbi/stripe/resources/issuing/settlement.rbi +0 -62
- data/rbi/stripe/resources/margin.rbi +0 -127
- data/rbi/stripe/resources/order.rbi +0 -3036
- data/rbi/stripe/resources/payment_attempt_record.rbi +0 -215
- data/rbi/stripe/resources/payment_record.rbi +0 -722
- data/rbi/stripe/resources/quote_line.rbi +0 -350
- data/rbi/stripe/resources/quote_preview_invoice.rbi +0 -850
- data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +0 -474
- data/rbi/stripe/resources/tax/association.rbi +0 -94
- data/rbi/stripe/resources/tax/form.rbi +0 -224
- data/rbi/stripe/resources/terminal/reader_collected_data.rbi +0 -41
- data/rbi/stripe/resources/usage_record.rbi +0 -32
- data/rbi/stripe/resources/usage_record_summary.rbi +0 -38
- data/rbi/stripe/services/account_notice_service.rbi +0 -90
- data/rbi/stripe/services/capital/financing_offer_service.rbi +0 -95
- data/rbi/stripe/services/capital/financing_summary_service.rbi +0 -22
- data/rbi/stripe/services/capital/financing_transaction_service.rbi +0 -68
- data/rbi/stripe/services/capital_service.rbi +0 -11
- data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +0 -33
- data/rbi/stripe/services/financial_connections/institution_service.rbi +0 -46
- data/rbi/stripe/services/gift_cards/card_service.rbi +0 -142
- data/rbi/stripe/services/gift_cards/transaction_service.rbi +0 -174
- data/rbi/stripe/services/gift_cards_service.rbi +0 -10
- data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +0 -2023
- data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +0 -498
- data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +0 -55
- data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +0 -73
- data/rbi/stripe/services/margin_service.rbi +0 -104
- data/rbi/stripe/services/order_line_item_service.rbi +0 -31
- data/rbi/stripe/services/order_service.rbi +0 -2320
- data/rbi/stripe/services/payment_attempt_record_service.rbi +0 -36
- data/rbi/stripe/services/payment_record_service.rbi +0 -521
- data/rbi/stripe/services/quote_line_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_invoice_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +0 -31
- data/rbi/stripe/services/subscription_item_usage_record_service.rbi +0 -37
- data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +0 -33
- data/rbi/stripe/services/tax/association_service.rbi +0 -25
- data/rbi/stripe/services/tax/form_service.rbi +0 -85
- data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +0 -22
@@ -82,32 +82,11 @@ module Stripe
|
|
82
82
|
end
|
83
83
|
# Attribute for field address
|
84
84
|
attr_reader :address
|
85
|
-
#
|
86
|
-
attr_reader :carrier
|
87
|
-
# Recipient name.
|
85
|
+
# Customer name.
|
88
86
|
attr_reader :name
|
89
|
-
# Recipient phone (including extension).
|
90
|
-
attr_reader :phone
|
91
|
-
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
92
|
-
attr_reader :tracking_number
|
93
87
|
end
|
94
|
-
|
95
|
-
class TaxId < Stripe::StripeObject
|
96
|
-
# 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`, or `unknown`
|
97
|
-
attr_reader :type
|
98
|
-
# The value of the tax ID.
|
99
|
-
attr_reader :value
|
100
|
-
end
|
101
|
-
# Customer’s business name for this Checkout Session
|
102
|
-
attr_reader :business_name
|
103
|
-
# Customer’s email for this Checkout Session
|
104
|
-
attr_reader :email
|
105
|
-
# Customer’s phone number for this Checkout Session
|
106
|
-
attr_reader :phone
|
107
88
|
# Shipping information for this Checkout Session.
|
108
89
|
attr_reader :shipping_details
|
109
|
-
# Customer’s tax ids for this Checkout Session.
|
110
|
-
attr_reader :tax_ids
|
111
90
|
end
|
112
91
|
|
113
92
|
class Consent < Stripe::StripeObject
|
@@ -321,6 +300,23 @@ module Stripe
|
|
321
300
|
attr_reader :invoice_data
|
322
301
|
end
|
323
302
|
|
303
|
+
class OptionalItem < Stripe::StripeObject
|
304
|
+
class AdjustableQuantity < Stripe::StripeObject
|
305
|
+
# Set to true if the quantity can be adjusted to any non-negative integer.
|
306
|
+
attr_reader :enabled
|
307
|
+
# The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
|
308
|
+
attr_reader :maximum
|
309
|
+
# 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.
|
310
|
+
attr_reader :minimum
|
311
|
+
end
|
312
|
+
# Attribute for field adjustable_quantity
|
313
|
+
attr_reader :adjustable_quantity
|
314
|
+
# Attribute for field price
|
315
|
+
attr_reader :price
|
316
|
+
# Attribute for field quantity
|
317
|
+
attr_reader :quantity
|
318
|
+
end
|
319
|
+
|
324
320
|
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
325
321
|
# ID of the payment method configuration used.
|
326
322
|
attr_reader :id
|
@@ -473,8 +469,6 @@ module Stripe
|
|
473
469
|
# Attribute for field installments
|
474
470
|
attr_reader :installments
|
475
471
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
476
|
-
attr_reader :request_decremental_authorization
|
477
|
-
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
478
472
|
attr_reader :request_extended_authorization
|
479
473
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
480
474
|
attr_reader :request_incremental_authorization
|
@@ -738,37 +732,6 @@ module Stripe
|
|
738
732
|
#
|
739
733
|
# 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).
|
740
734
|
attr_reader :setup_future_usage
|
741
|
-
# 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.
|
742
|
-
attr_reader :subsellers
|
743
|
-
end
|
744
|
-
|
745
|
-
class Payto < Stripe::StripeObject
|
746
|
-
class MandateOptions < Stripe::StripeObject
|
747
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
748
|
-
attr_reader :amount
|
749
|
-
# 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.
|
750
|
-
attr_reader :amount_type
|
751
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
752
|
-
attr_reader :end_date
|
753
|
-
# The periodicity at which payments will be collected.
|
754
|
-
attr_reader :payment_schedule
|
755
|
-
# 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.
|
756
|
-
attr_reader :payments_per_period
|
757
|
-
# The purpose for which payments are made. Defaults to retail.
|
758
|
-
attr_reader :purpose
|
759
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
760
|
-
attr_reader :start_date
|
761
|
-
end
|
762
|
-
# Attribute for field mandate_options
|
763
|
-
attr_reader :mandate_options
|
764
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
765
|
-
#
|
766
|
-
# 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.
|
767
|
-
#
|
768
|
-
# 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.
|
769
|
-
#
|
770
|
-
# 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).
|
771
|
-
attr_reader :setup_future_usage
|
772
735
|
end
|
773
736
|
|
774
737
|
class Pix < Stripe::StripeObject
|
@@ -832,18 +795,9 @@ module Stripe
|
|
832
795
|
class Filters < Stripe::StripeObject
|
833
796
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
834
797
|
attr_reader :account_subcategories
|
835
|
-
# The institution to use to filter for possible accounts to link.
|
836
|
-
attr_reader :institution
|
837
|
-
end
|
838
|
-
|
839
|
-
class ManualEntry < Stripe::StripeObject
|
840
|
-
# Settings for configuring manual entry of account details.
|
841
|
-
attr_reader :mode
|
842
798
|
end
|
843
799
|
# Attribute for field filters
|
844
800
|
attr_reader :filters
|
845
|
-
# Attribute for field manual_entry
|
846
|
-
attr_reader :manual_entry
|
847
801
|
# The list of permissions to request. The `payment_method` permission must be included.
|
848
802
|
attr_reader :permissions
|
849
803
|
# Data features requested to be retrieved upon account creation.
|
@@ -926,8 +880,6 @@ module Stripe
|
|
926
880
|
attr_reader :paynow
|
927
881
|
# Attribute for field paypal
|
928
882
|
attr_reader :paypal
|
929
|
-
# Attribute for field payto
|
930
|
-
attr_reader :payto
|
931
883
|
# Attribute for field pix
|
932
884
|
attr_reader :pix
|
933
885
|
# Attribute for field revolut_pay
|
@@ -945,22 +897,12 @@ module Stripe
|
|
945
897
|
end
|
946
898
|
|
947
899
|
class Permissions < Stripe::StripeObject
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
attr_reader :line_items
|
955
|
-
# Determines which entity is allowed to update the shipping details.
|
956
|
-
#
|
957
|
-
# 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.
|
958
|
-
#
|
959
|
-
# 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.
|
960
|
-
attr_reader :shipping_details
|
961
|
-
end
|
962
|
-
# Permissions for updating the Checkout Session.
|
963
|
-
attr_reader :update
|
900
|
+
# Determines which entity is allowed to update the shipping details.
|
901
|
+
#
|
902
|
+
# 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.
|
903
|
+
#
|
904
|
+
# 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.
|
905
|
+
attr_reader :update_shipping_details
|
964
906
|
end
|
965
907
|
|
966
908
|
class PhoneNumberCollection < Stripe::StripeObject
|
@@ -968,6 +910,13 @@ module Stripe
|
|
968
910
|
attr_reader :enabled
|
969
911
|
end
|
970
912
|
|
913
|
+
class PresentmentDetails < Stripe::StripeObject
|
914
|
+
# Amount intended to be collected by this payment, denominated in presentment_currency.
|
915
|
+
attr_reader :presentment_amount
|
916
|
+
# Currency presented to the customer during payment.
|
917
|
+
attr_reader :presentment_currency
|
918
|
+
end
|
919
|
+
|
971
920
|
class SavedPaymentMethodOptions < Stripe::StripeObject
|
972
921
|
# Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
|
973
922
|
attr_reader :allow_redisplay_filters
|
@@ -1008,33 +957,6 @@ module Stripe
|
|
1008
957
|
attr_reader :taxes
|
1009
958
|
end
|
1010
959
|
|
1011
|
-
class ShippingDetails < Stripe::StripeObject
|
1012
|
-
class Address < Stripe::StripeObject
|
1013
|
-
# City, district, suburb, town, or village.
|
1014
|
-
attr_reader :city
|
1015
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1016
|
-
attr_reader :country
|
1017
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1018
|
-
attr_reader :line1
|
1019
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1020
|
-
attr_reader :line2
|
1021
|
-
# ZIP or postal code.
|
1022
|
-
attr_reader :postal_code
|
1023
|
-
# State, county, province, or region.
|
1024
|
-
attr_reader :state
|
1025
|
-
end
|
1026
|
-
# Attribute for field address
|
1027
|
-
attr_reader :address
|
1028
|
-
# The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
1029
|
-
attr_reader :carrier
|
1030
|
-
# Recipient name.
|
1031
|
-
attr_reader :name
|
1032
|
-
# Recipient phone (including extension).
|
1033
|
-
attr_reader :phone
|
1034
|
-
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
1035
|
-
attr_reader :tracking_number
|
1036
|
-
end
|
1037
|
-
|
1038
960
|
class ShippingOption < Stripe::StripeObject
|
1039
961
|
# A non-negative integer in cents representing how much to charge.
|
1040
962
|
attr_reader :shipping_amount
|
@@ -1568,9 +1490,9 @@ module Stripe
|
|
1568
1490
|
end
|
1569
1491
|
# 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).
|
1570
1492
|
attr_accessor :currency
|
1571
|
-
# The ID of the
|
1493
|
+
# 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.
|
1572
1494
|
attr_accessor :product
|
1573
|
-
# Data used to generate a new
|
1495
|
+
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
1574
1496
|
attr_accessor :product_data
|
1575
1497
|
# The recurring components of a price such as `interval` and `interval_count`.
|
1576
1498
|
attr_accessor :recurring
|
@@ -1603,8 +1525,6 @@ module Stripe
|
|
1603
1525
|
attr_accessor :adjustable_quantity
|
1604
1526
|
# 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.
|
1605
1527
|
attr_accessor :dynamic_tax_rates
|
1606
|
-
# 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`.
|
1607
|
-
attr_accessor :metadata
|
1608
1528
|
# 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.
|
1609
1529
|
attr_accessor :price
|
1610
1530
|
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
@@ -1617,7 +1537,6 @@ module Stripe
|
|
1617
1537
|
def initialize(
|
1618
1538
|
adjustable_quantity: nil,
|
1619
1539
|
dynamic_tax_rates: nil,
|
1620
|
-
metadata: nil,
|
1621
1540
|
price: nil,
|
1622
1541
|
price_data: nil,
|
1623
1542
|
quantity: nil,
|
@@ -1625,7 +1544,6 @@ module Stripe
|
|
1625
1544
|
)
|
1626
1545
|
@adjustable_quantity = adjustable_quantity
|
1627
1546
|
@dynamic_tax_rates = dynamic_tax_rates
|
1628
|
-
@metadata = metadata
|
1629
1547
|
@price = price
|
1630
1548
|
@price_data = price_data
|
1631
1549
|
@quantity = quantity
|
@@ -1633,6 +1551,35 @@ module Stripe
|
|
1633
1551
|
end
|
1634
1552
|
end
|
1635
1553
|
|
1554
|
+
class OptionalItem < Stripe::RequestParams
|
1555
|
+
class AdjustableQuantity < Stripe::RequestParams
|
1556
|
+
# Set to true if the quantity can be adjusted to any non-negative integer.
|
1557
|
+
attr_accessor :enabled
|
1558
|
+
# The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
|
1559
|
+
attr_accessor :maximum
|
1560
|
+
# 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.
|
1561
|
+
attr_accessor :minimum
|
1562
|
+
|
1563
|
+
def initialize(enabled: nil, maximum: nil, minimum: nil)
|
1564
|
+
@enabled = enabled
|
1565
|
+
@maximum = maximum
|
1566
|
+
@minimum = minimum
|
1567
|
+
end
|
1568
|
+
end
|
1569
|
+
# When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
|
1570
|
+
attr_accessor :adjustable_quantity
|
1571
|
+
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
|
1572
|
+
attr_accessor :price
|
1573
|
+
# The initial quantity of the line item created when a customer chooses to add this optional item to their order.
|
1574
|
+
attr_accessor :quantity
|
1575
|
+
|
1576
|
+
def initialize(adjustable_quantity: nil, price: nil, quantity: nil)
|
1577
|
+
@adjustable_quantity = adjustable_quantity
|
1578
|
+
@price = price
|
1579
|
+
@quantity = quantity
|
1580
|
+
end
|
1581
|
+
end
|
1582
|
+
|
1636
1583
|
class PaymentIntentData < Stripe::RequestParams
|
1637
1584
|
class Shipping < Stripe::RequestParams
|
1638
1585
|
class Address < Stripe::RequestParams
|
@@ -1699,7 +1646,7 @@ module Stripe
|
|
1699
1646
|
@destination = destination
|
1700
1647
|
end
|
1701
1648
|
end
|
1702
|
-
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total
|
1649
|
+
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
1703
1650
|
attr_accessor :application_fee_amount
|
1704
1651
|
# Controls when the funds will be captured from the customer's account.
|
1705
1652
|
attr_accessor :capture_method
|
@@ -2010,8 +1957,6 @@ module Stripe
|
|
2010
1957
|
# Installment options for card payments
|
2011
1958
|
attr_accessor :installments
|
2012
1959
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
2013
|
-
attr_accessor :request_decremental_authorization
|
2014
|
-
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
2015
1960
|
attr_accessor :request_extended_authorization
|
2016
1961
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
2017
1962
|
attr_accessor :request_incremental_authorization
|
@@ -2038,7 +1983,6 @@ module Stripe
|
|
2038
1983
|
|
2039
1984
|
def initialize(
|
2040
1985
|
installments: nil,
|
2041
|
-
request_decremental_authorization: nil,
|
2042
1986
|
request_extended_authorization: nil,
|
2043
1987
|
request_incremental_authorization: nil,
|
2044
1988
|
request_multicapture: nil,
|
@@ -2050,7 +1994,6 @@ module Stripe
|
|
2050
1994
|
statement_descriptor_suffix_kanji: nil
|
2051
1995
|
)
|
2052
1996
|
@installments = installments
|
2053
|
-
@request_decremental_authorization = request_decremental_authorization
|
2054
1997
|
@request_extended_authorization = request_extended_authorization
|
2055
1998
|
@request_incremental_authorization = request_incremental_authorization
|
2056
1999
|
@request_multicapture = request_multicapture
|
@@ -2400,8 +2343,6 @@ module Stripe
|
|
2400
2343
|
attr_accessor :preferred_locale
|
2401
2344
|
# 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.
|
2402
2345
|
attr_accessor :reference
|
2403
|
-
# 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.
|
2404
|
-
attr_accessor :reference_id
|
2405
2346
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
2406
2347
|
attr_accessor :risk_correlation_id
|
2407
2348
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -2414,77 +2355,19 @@ module Stripe
|
|
2414
2355
|
#
|
2415
2356
|
# 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`.
|
2416
2357
|
attr_accessor :setup_future_usage
|
2417
|
-
# 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.
|
2418
|
-
attr_accessor :subsellers
|
2419
2358
|
|
2420
2359
|
def initialize(
|
2421
2360
|
capture_method: nil,
|
2422
2361
|
preferred_locale: nil,
|
2423
2362
|
reference: nil,
|
2424
|
-
reference_id: nil,
|
2425
2363
|
risk_correlation_id: nil,
|
2426
|
-
setup_future_usage: nil
|
2427
|
-
subsellers: nil
|
2364
|
+
setup_future_usage: nil
|
2428
2365
|
)
|
2429
2366
|
@capture_method = capture_method
|
2430
2367
|
@preferred_locale = preferred_locale
|
2431
2368
|
@reference = reference
|
2432
|
-
@reference_id = reference_id
|
2433
2369
|
@risk_correlation_id = risk_correlation_id
|
2434
2370
|
@setup_future_usage = setup_future_usage
|
2435
|
-
@subsellers = subsellers
|
2436
|
-
end
|
2437
|
-
end
|
2438
|
-
|
2439
|
-
class Payto < Stripe::RequestParams
|
2440
|
-
class MandateOptions < Stripe::RequestParams
|
2441
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2442
|
-
attr_accessor :amount
|
2443
|
-
# 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.
|
2444
|
-
attr_accessor :amount_type
|
2445
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2446
|
-
attr_accessor :end_date
|
2447
|
-
# The periodicity at which payments will be collected.
|
2448
|
-
attr_accessor :payment_schedule
|
2449
|
-
# 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.
|
2450
|
-
attr_accessor :payments_per_period
|
2451
|
-
# The purpose for which payments are made. Defaults to retail.
|
2452
|
-
attr_accessor :purpose
|
2453
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
2454
|
-
attr_accessor :start_date
|
2455
|
-
|
2456
|
-
def initialize(
|
2457
|
-
amount: nil,
|
2458
|
-
amount_type: nil,
|
2459
|
-
end_date: nil,
|
2460
|
-
payment_schedule: nil,
|
2461
|
-
payments_per_period: nil,
|
2462
|
-
purpose: nil,
|
2463
|
-
start_date: nil
|
2464
|
-
)
|
2465
|
-
@amount = amount
|
2466
|
-
@amount_type = amount_type
|
2467
|
-
@end_date = end_date
|
2468
|
-
@payment_schedule = payment_schedule
|
2469
|
-
@payments_per_period = payments_per_period
|
2470
|
-
@purpose = purpose
|
2471
|
-
@start_date = start_date
|
2472
|
-
end
|
2473
|
-
end
|
2474
|
-
# Additional fields for Mandate creation
|
2475
|
-
attr_accessor :mandate_options
|
2476
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2477
|
-
#
|
2478
|
-
# 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.
|
2479
|
-
#
|
2480
|
-
# 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.
|
2481
|
-
#
|
2482
|
-
# 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).
|
2483
|
-
attr_accessor :setup_future_usage
|
2484
|
-
|
2485
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
2486
|
-
@mandate_options = mandate_options
|
2487
|
-
@setup_future_usage = setup_future_usage
|
2488
2371
|
end
|
2489
2372
|
end
|
2490
2373
|
|
@@ -2696,8 +2579,6 @@ module Stripe
|
|
2696
2579
|
attr_accessor :paynow
|
2697
2580
|
# contains details about the PayPal payment method options.
|
2698
2581
|
attr_accessor :paypal
|
2699
|
-
# contains details about the PayTo payment method options.
|
2700
|
-
attr_accessor :payto
|
2701
2582
|
# contains details about the Pix payment method options.
|
2702
2583
|
attr_accessor :pix
|
2703
2584
|
# contains details about the RevolutPay payment method options.
|
@@ -2747,7 +2628,6 @@ module Stripe
|
|
2747
2628
|
payco: nil,
|
2748
2629
|
paynow: nil,
|
2749
2630
|
paypal: nil,
|
2750
|
-
payto: nil,
|
2751
2631
|
pix: nil,
|
2752
2632
|
revolut_pay: nil,
|
2753
2633
|
samsung_pay: nil,
|
@@ -2788,7 +2668,6 @@ module Stripe
|
|
2788
2668
|
@payco = payco
|
2789
2669
|
@paynow = paynow
|
2790
2670
|
@paypal = paypal
|
2791
|
-
@payto = payto
|
2792
2671
|
@pix = pix
|
2793
2672
|
@revolut_pay = revolut_pay
|
2794
2673
|
@samsung_pay = samsung_pay
|
@@ -2801,30 +2680,15 @@ module Stripe
|
|
2801
2680
|
end
|
2802
2681
|
|
2803
2682
|
class Permissions < Stripe::RequestParams
|
2804
|
-
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2808
|
-
|
2809
|
-
|
2810
|
-
attr_accessor :line_items
|
2811
|
-
# Determines which entity is allowed to update the shipping details.
|
2812
|
-
#
|
2813
|
-
# 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.
|
2814
|
-
#
|
2815
|
-
# 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.
|
2816
|
-
attr_accessor :shipping_details
|
2817
|
-
|
2818
|
-
def initialize(line_items: nil, shipping_details: nil)
|
2819
|
-
@line_items = line_items
|
2820
|
-
@shipping_details = shipping_details
|
2821
|
-
end
|
2822
|
-
end
|
2823
|
-
# Permissions for updating the Checkout Session.
|
2824
|
-
attr_accessor :update
|
2683
|
+
# Determines which entity is allowed to update the shipping details.
|
2684
|
+
#
|
2685
|
+
# 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.
|
2686
|
+
#
|
2687
|
+
# 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.
|
2688
|
+
attr_accessor :update_shipping_details
|
2825
2689
|
|
2826
|
-
def initialize(
|
2827
|
-
@
|
2690
|
+
def initialize(update_shipping_details: nil)
|
2691
|
+
@update_shipping_details = update_shipping_details
|
2828
2692
|
end
|
2829
2693
|
end
|
2830
2694
|
|
@@ -3177,6 +3041,14 @@ module Stripe
|
|
3177
3041
|
attr_accessor :metadata
|
3178
3042
|
# The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
|
3179
3043
|
attr_accessor :mode
|
3044
|
+
# A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
|
3045
|
+
#
|
3046
|
+
# There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
|
3047
|
+
#
|
3048
|
+
# For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
|
3049
|
+
#
|
3050
|
+
# For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
|
3051
|
+
attr_accessor :optional_items
|
3180
3052
|
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
|
3181
3053
|
attr_accessor :payment_intent_data
|
3182
3054
|
# Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
|
@@ -3227,9 +3099,10 @@ module Stripe
|
|
3227
3099
|
attr_accessor :shipping_address_collection
|
3228
3100
|
# The shipping rate options to apply to this Session. Up to a maximum of 5.
|
3229
3101
|
attr_accessor :shipping_options
|
3230
|
-
# Describes the type of transaction being performed by Checkout in order
|
3231
|
-
# relevant text on the page, such as the submit button.
|
3232
|
-
# specified on Checkout Sessions in
|
3102
|
+
# Describes the type of transaction being performed by Checkout in order
|
3103
|
+
# to customize relevant text on the page, such as the submit button.
|
3104
|
+
# `submit_type` can only be specified on Checkout Sessions in
|
3105
|
+
# `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
|
3233
3106
|
attr_accessor :submit_type
|
3234
3107
|
# A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
|
3235
3108
|
attr_accessor :subscription_data
|
@@ -3268,6 +3141,7 @@ module Stripe
|
|
3268
3141
|
locale: nil,
|
3269
3142
|
metadata: nil,
|
3270
3143
|
mode: nil,
|
3144
|
+
optional_items: nil,
|
3271
3145
|
payment_intent_data: nil,
|
3272
3146
|
payment_method_collection: nil,
|
3273
3147
|
payment_method_configuration: nil,
|
@@ -3311,6 +3185,7 @@ module Stripe
|
|
3311
3185
|
@locale = locale
|
3312
3186
|
@metadata = metadata
|
3313
3187
|
@mode = mode
|
3188
|
+
@optional_items = optional_items
|
3314
3189
|
@payment_intent_data = payment_intent_data
|
3315
3190
|
@payment_method_collection = payment_method_collection
|
3316
3191
|
@payment_method_configuration = payment_method_configuration
|
@@ -3333,15 +3208,6 @@ module Stripe
|
|
3333
3208
|
end
|
3334
3209
|
end
|
3335
3210
|
|
3336
|
-
class RetrieveParams < Stripe::RequestParams
|
3337
|
-
# Specifies which fields in the response should be expanded.
|
3338
|
-
attr_accessor :expand
|
3339
|
-
|
3340
|
-
def initialize(expand: nil)
|
3341
|
-
@expand = expand
|
3342
|
-
end
|
3343
|
-
end
|
3344
|
-
|
3345
3211
|
class UpdateParams < Stripe::RequestParams
|
3346
3212
|
class CollectedInformation < Stripe::RequestParams
|
3347
3213
|
class ShippingDetails < Stripe::RequestParams
|
@@ -3393,51 +3259,6 @@ module Stripe
|
|
3393
3259
|
end
|
3394
3260
|
end
|
3395
3261
|
|
3396
|
-
class LineItem < Stripe::RequestParams
|
3397
|
-
class AdjustableQuantity < Stripe::RequestParams
|
3398
|
-
# Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
3399
|
-
attr_accessor :enabled
|
3400
|
-
# 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.
|
3401
|
-
attr_accessor :maximum
|
3402
|
-
# The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
3403
|
-
attr_accessor :minimum
|
3404
|
-
|
3405
|
-
def initialize(enabled: nil, maximum: nil, minimum: nil)
|
3406
|
-
@enabled = enabled
|
3407
|
-
@maximum = maximum
|
3408
|
-
@minimum = minimum
|
3409
|
-
end
|
3410
|
-
end
|
3411
|
-
# When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
|
3412
|
-
attr_accessor :adjustable_quantity
|
3413
|
-
# ID of an existing line item.
|
3414
|
-
attr_accessor :id
|
3415
|
-
# 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`.
|
3416
|
-
attr_accessor :metadata
|
3417
|
-
# The ID of the [Price](https://stripe.com/docs/api/prices).
|
3418
|
-
attr_accessor :price
|
3419
|
-
# The quantity of the line item being purchased.
|
3420
|
-
attr_accessor :quantity
|
3421
|
-
# The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
3422
|
-
attr_accessor :tax_rates
|
3423
|
-
|
3424
|
-
def initialize(
|
3425
|
-
adjustable_quantity: nil,
|
3426
|
-
id: nil,
|
3427
|
-
metadata: nil,
|
3428
|
-
price: nil,
|
3429
|
-
quantity: nil,
|
3430
|
-
tax_rates: nil
|
3431
|
-
)
|
3432
|
-
@adjustable_quantity = adjustable_quantity
|
3433
|
-
@id = id
|
3434
|
-
@metadata = metadata
|
3435
|
-
@price = price
|
3436
|
-
@quantity = quantity
|
3437
|
-
@tax_rates = tax_rates
|
3438
|
-
end
|
3439
|
-
end
|
3440
|
-
|
3441
3262
|
class ShippingOption < Stripe::RequestParams
|
3442
3263
|
class ShippingRateData < Stripe::RequestParams
|
3443
3264
|
class DeliveryEstimate < Stripe::RequestParams
|
@@ -3547,20 +3368,6 @@ module Stripe
|
|
3547
3368
|
attr_accessor :collected_information
|
3548
3369
|
# Specifies which fields in the response should be expanded.
|
3549
3370
|
attr_accessor :expand
|
3550
|
-
# A list of items the customer is purchasing.
|
3551
|
-
#
|
3552
|
-
# When updating line items, you must retransmit the entire array of line items.
|
3553
|
-
#
|
3554
|
-
# To retain an existing line item, specify its `id`.
|
3555
|
-
#
|
3556
|
-
# To update an existing line item, specify its `id` along with the new values of the fields to update.
|
3557
|
-
#
|
3558
|
-
# To add a new line item, specify a `price` and `quantity`. We don't currently support recurring prices.
|
3559
|
-
#
|
3560
|
-
# To remove an existing line item, omit the line item's ID from the retransmitted array.
|
3561
|
-
#
|
3562
|
-
# To reorder a line item, specify it at the desired position in the retransmitted array.
|
3563
|
-
attr_accessor :line_items
|
3564
3371
|
# 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`.
|
3565
3372
|
attr_accessor :metadata
|
3566
3373
|
# The shipping rate options to apply to this Session. Up to a maximum of 5.
|
@@ -3569,13 +3376,11 @@ module Stripe
|
|
3569
3376
|
def initialize(
|
3570
3377
|
collected_information: nil,
|
3571
3378
|
expand: nil,
|
3572
|
-
line_items: nil,
|
3573
3379
|
metadata: nil,
|
3574
3380
|
shipping_options: nil
|
3575
3381
|
)
|
3576
3382
|
@collected_information = collected_information
|
3577
3383
|
@expand = expand
|
3578
|
-
@line_items = line_items
|
3579
3384
|
@metadata = metadata
|
3580
3385
|
@shipping_options = shipping_options
|
3581
3386
|
end
|
@@ -3627,7 +3432,7 @@ module Stripe
|
|
3627
3432
|
# customer ID, a cart ID, or similar, and can be used to reconcile the
|
3628
3433
|
# Session with your internal systems.
|
3629
3434
|
attr_reader :client_reference_id
|
3630
|
-
# The client secret of
|
3435
|
+
# The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded`. Client secret to be used when initializing Stripe.js embedded checkout.
|
3631
3436
|
attr_reader :client_secret
|
3632
3437
|
# Information about the customer collected within the Checkout Session.
|
3633
3438
|
attr_reader :collected_information
|
@@ -3639,7 +3444,7 @@ module Stripe
|
|
3639
3444
|
attr_reader :created
|
3640
3445
|
# 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).
|
3641
3446
|
attr_reader :currency
|
3642
|
-
# Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions
|
3447
|
+
# Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions created before 2025-03-31.
|
3643
3448
|
attr_reader :currency_conversion
|
3644
3449
|
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
|
3645
3450
|
attr_reader :custom_fields
|
@@ -3683,6 +3488,8 @@ module Stripe
|
|
3683
3488
|
attr_reader :mode
|
3684
3489
|
# String representing the object's type. Objects of the same type share the same value.
|
3685
3490
|
attr_reader :object
|
3491
|
+
# The optional items presented to the customer at checkout.
|
3492
|
+
attr_reader :optional_items
|
3686
3493
|
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
3687
3494
|
attr_reader :payment_intent
|
3688
3495
|
# The ID of the Payment Link that created this Session.
|
@@ -3705,11 +3512,13 @@ module Stripe
|
|
3705
3512
|
attr_reader :permissions
|
3706
3513
|
# Attribute for field phone_number_collection
|
3707
3514
|
attr_reader :phone_number_collection
|
3515
|
+
# Attribute for field presentment_details
|
3516
|
+
attr_reader :presentment_details
|
3708
3517
|
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
3709
3518
|
attr_reader :recovered_from
|
3710
3519
|
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
3711
3520
|
attr_reader :redirect_on_completion
|
3712
|
-
# Applies to Checkout Sessions with `ui_mode: embedded
|
3521
|
+
# Applies to Checkout Sessions with `ui_mode: embedded`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
3713
3522
|
attr_reader :return_url
|
3714
3523
|
# Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
|
3715
3524
|
attr_reader :saved_payment_method_options
|
@@ -3719,8 +3528,6 @@ module Stripe
|
|
3719
3528
|
attr_reader :shipping_address_collection
|
3720
3529
|
# The details of the customer cost of shipping, including the customer chosen ShippingRate.
|
3721
3530
|
attr_reader :shipping_cost
|
3722
|
-
# Shipping information for this Checkout Session.
|
3723
|
-
attr_reader :shipping_details
|
3724
3531
|
# The shipping rate options applied to this Session.
|
3725
3532
|
attr_reader :shipping_options
|
3726
3533
|
# The status of the Checkout Session, one of `open`, `complete`, or `expired`.
|
@@ -3740,11 +3547,11 @@ module Stripe
|
|
3740
3547
|
attr_reader :total_details
|
3741
3548
|
# The UI mode of the Session. Defaults to `hosted`.
|
3742
3549
|
attr_reader :ui_mode
|
3743
|
-
# The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
|
3550
|
+
# The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
|
3744
3551
|
# This value is only present when the session is active.
|
3745
3552
|
attr_reader :url
|
3746
3553
|
|
3747
|
-
# Creates a Session object.
|
3554
|
+
# Creates a Checkout Session object.
|
3748
3555
|
def self.create(params = {}, opts = {})
|
3749
3556
|
request_stripe_object(
|
3750
3557
|
method: :post,
|
@@ -3754,9 +3561,9 @@ module Stripe
|
|
3754
3561
|
)
|
3755
3562
|
end
|
3756
3563
|
|
3757
|
-
# A Session can be expired when it is in one of these statuses: open
|
3564
|
+
# A Checkout Session can be expired when it is in one of these statuses: open
|
3758
3565
|
#
|
3759
|
-
# After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
|
3566
|
+
# After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
|
3760
3567
|
def expire(params = {}, opts = {})
|
3761
3568
|
request_stripe_object(
|
3762
3569
|
method: :post,
|
@@ -3766,9 +3573,9 @@ module Stripe
|
|
3766
3573
|
)
|
3767
3574
|
end
|
3768
3575
|
|
3769
|
-
# A Session can be expired when it is in one of these statuses: open
|
3576
|
+
# A Checkout Session can be expired when it is in one of these statuses: open
|
3770
3577
|
#
|
3771
|
-
# After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
|
3578
|
+
# After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
|
3772
3579
|
def self.expire(session, params = {}, opts = {})
|
3773
3580
|
request_stripe_object(
|
3774
3581
|
method: :post,
|
@@ -3808,7 +3615,7 @@ module Stripe
|
|
3808
3615
|
)
|
3809
3616
|
end
|
3810
3617
|
|
3811
|
-
# Updates a Session object.
|
3618
|
+
# Updates a Checkout Session object.
|
3812
3619
|
def self.update(session, params = {}, opts = {})
|
3813
3620
|
request_stripe_object(
|
3814
3621
|
method: :post,
|