stripe 15.4.0.pre.beta.2 → 15.4.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/API_VERSION +1 -1
- data/CHANGELOG.md +686 -1602
- data/OPENAPI_VERSION +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -32
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -60
- data/lib/stripe/event_types.rb +0 -102
- data/lib/stripe/object_types.rb +0 -50
- data/lib/stripe/resources/account.rb +6 -658
- data/lib/stripe/resources/account_link.rb +3 -1
- data/lib/stripe/resources/account_session.rb +52 -256
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -4
- data/lib/stripe/resources/billing/credit_grant.rb +1 -11
- data/lib/stripe/resources/billing_portal/configuration.rb +46 -2
- data/lib/stripe/resources/billing_portal/session.rb +0 -6
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/cash_balance.rb +0 -2
- data/lib/stripe/resources/charge.rb +7 -1543
- data/lib/stripe/resources/checkout/session.rb +24 -320
- data/lib/stripe/resources/confirmation_token.rb +3 -173
- data/lib/stripe/resources/coupon.rb +1 -30
- data/lib/stripe/resources/credit_note.rb +0 -6
- data/lib/stripe/resources/credit_note_line_item.rb +0 -9
- data/lib/stripe/resources/customer.rb +1 -3
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_session.rb +1 -6
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/dispute.rb +1 -3
- data/lib/stripe/resources/event.rb +14 -57
- data/lib/stripe/resources/financial_connections/account.rb +1 -22
- data/lib/stripe/resources/financial_connections/session.rb +2 -62
- data/lib/stripe/resources/identity/verification_session.rb +0 -10
- data/lib/stripe/resources/invoice.rb +40 -1071
- data/lib/stripe/resources/invoice_item.rb +3 -79
- data/lib/stripe/resources/invoice_line_item.rb +1 -55
- data/lib/stripe/resources/invoice_payment.rb +53 -2
- data/lib/stripe/resources/issuing/cardholder.rb +1 -2
- data/lib/stripe/resources/issuing/transaction.rb +0 -6
- data/lib/stripe/resources/line_item.rb +0 -37
- data/lib/stripe/resources/mandate.rb +0 -24
- data/lib/stripe/resources/payment_intent.rb +297 -5243
- data/lib/stripe/resources/payment_link.rb +83 -5
- data/lib/stripe/resources/payment_method.rb +5 -196
- data/lib/stripe/resources/payment_method_configuration.rb +0 -295
- data/lib/stripe/resources/payout.rb +0 -6
- data/lib/stripe/resources/price.rb +0 -30
- data/lib/stripe/resources/promotion_code.rb +0 -10
- data/lib/stripe/resources/quote.rb +8 -2039
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/refund.rb +1 -10
- data/lib/stripe/resources/review.rb +2 -2
- data/lib/stripe/resources/setup_attempt.rb +1 -22
- data/lib/stripe/resources/setup_intent.rb +9 -578
- data/lib/stripe/resources/source.rb +0 -29
- data/lib/stripe/resources/subscription.rb +11 -290
- data/lib/stripe/resources/subscription_item.rb +5 -86
- data/lib/stripe/resources/subscription_schedule.rb +45 -1010
- data/lib/stripe/resources/tax/registration.rb +408 -30
- data/lib/stripe/resources/tax_id.rb +2 -12
- data/lib/stripe/resources/terminal/configuration.rb +196 -0
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/transfer.rb +0 -6
- data/lib/stripe/resources/treasury/financial_account.rb +3 -22
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -37
- data/lib/stripe/resources/treasury/received_credit.rb +1 -38
- data/lib/stripe/resources/treasury/received_debit.rb +1 -40
- data/lib/stripe/resources.rb +0 -106
- data/lib/stripe/services/account_link_service.rb +3 -1
- data/lib/stripe/services/account_service.rb +4 -565
- data/lib/stripe/services/account_session_service.rb +35 -226
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -4
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -4
- data/lib/stripe/services/billing/credit_grant_service.rb +1 -9
- data/lib/stripe/services/billing_portal/configuration_service.rb +36 -2
- data/lib/stripe/services/billing_portal/session_service.rb +0 -4
- data/lib/stripe/services/charge_service.rb +0 -1418
- data/lib/stripe/services/checkout/session_service.rb +16 -241
- data/lib/stripe/services/coupon_service.rb +1 -17
- data/lib/stripe/services/credit_note_service.rb +0 -4
- data/lib/stripe/services/customer_session_service.rb +1 -4
- data/lib/stripe/services/financial_connections/account_service.rb +2 -7
- data/lib/stripe/services/financial_connections/session_service.rb +2 -34
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/identity/verification_session_service.rb +0 -8
- data/lib/stripe/services/invoice_item_service.rb +3 -75
- data/lib/stripe/services/invoice_line_item_service.rb +1 -33
- data/lib/stripe/services/invoice_payment_service.rb +83 -0
- data/lib/stripe/services/invoice_service.rb +40 -1022
- 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 +399 -4882
- data/lib/stripe/services/payment_link_service.rb +81 -5
- data/lib/stripe/services/payment_method_configuration_service.rb +0 -210
- data/lib/stripe/services/payment_method_service.rb +2 -121
- data/lib/stripe/services/payout_service.rb +0 -4
- data/lib/stripe/services/price_service.rb +0 -19
- data/lib/stripe/services/promotion_code_service.rb +0 -8
- data/lib/stripe/services/quote_service.rb +9 -1724
- data/lib/stripe/services/radar/value_list_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +9 -538
- data/lib/stripe/services/subscription_item_service.rb +5 -77
- data/lib/stripe/services/subscription_schedule_service.rb +45 -914
- data/lib/stripe/services/subscription_service.rb +11 -251
- data/lib/stripe/services/tax/registration_service.rb +360 -30
- data/lib/stripe/services/tax_id_service.rb +2 -8
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +152 -0
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +0 -97
- 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/transfer_service.rb +0 -4
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +2 -16
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -11
- data/lib/stripe/services/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +1 -4
- data/lib/stripe/services.rb +1 -53
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/account.rbi +4995 -0
- data/rbi/stripe/resources/account_link.rbi +76 -0
- data/rbi/stripe/resources/account_session.rbi +1074 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
- data/rbi/stripe/resources/application.rbi +20 -0
- data/rbi/stripe/resources/application_fee.rbi +118 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
- data/rbi/stripe/resources/apps/secret.rbi +195 -0
- data/rbi/stripe/resources/balance.rbi +235 -0
- data/rbi/stripe/resources/balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/bank_account.rbi +127 -0
- data/rbi/stripe/resources/billing/alert.rbi +201 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
- data/rbi/stripe/resources/billing/meter.rbi +226 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +703 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
- data/rbi/stripe/resources/capability.rbi +125 -0
- data/rbi/stripe/resources/card.rbi +125 -0
- data/rbi/stripe/resources/cash_balance.rbi +32 -0
- data/rbi/stripe/resources/charge.rbi +2089 -0
- data/rbi/stripe/resources/checkout/session.rbi +4095 -0
- data/rbi/stripe/resources/climate/order.rbi +245 -0
- data/rbi/stripe/resources/climate/product.rbi +75 -0
- data/rbi/stripe/resources/climate/supplier.rbi +72 -0
- data/rbi/stripe/resources/confirmation_token.rbi +1818 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
- data/rbi/stripe/resources/country_spec.rbi +85 -0
- data/rbi/stripe/resources/coupon.rbi +250 -0
- data/rbi/stripe/resources/credit_note.rbi +752 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
- data/rbi/stripe/resources/customer.rbi +1005 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
- data/rbi/stripe/resources/customer_session.rbi +200 -0
- data/rbi/stripe/resources/discount.rbi +53 -0
- data/rbi/stripe/resources/dispute.rbi +761 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
- data/rbi/stripe/resources/event.rbi +137 -0
- data/rbi/stripe/resources/exchange_rate.rbi +66 -0
- data/rbi/stripe/resources/file.rbi +143 -0
- data/rbi/stripe/resources/file_link.rbi +141 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
- data/rbi/stripe/resources/forwarding/request.rbi +216 -0
- data/rbi/stripe/resources/funding_instructions.rbi +437 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +564 -0
- data/rbi/stripe/resources/invoice.rbi +3858 -0
- data/rbi/stripe/resources/invoice_item.rbi +470 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
- data/rbi/stripe/resources/invoice_payment.rbi +121 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
- data/rbi/stripe/resources/issuing/card.rbi +741 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
- data/rbi/stripe/resources/issuing/token.rbi +226 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
- data/rbi/stripe/resources/line_item.rbi +72 -0
- data/rbi/stripe/resources/login_link.rbi +19 -0
- data/rbi/stripe/resources/mandate.rbi +191 -0
- data/rbi/stripe/resources/payment_intent.rbi +9997 -0
- data/rbi/stripe/resources/payment_link.rbi +1893 -0
- data/rbi/stripe/resources/payment_method.rbi +1770 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
- data/rbi/stripe/resources/payout.rbi +300 -0
- data/rbi/stripe/resources/person.rbi +401 -0
- data/rbi/stripe/resources/plan.rbi +371 -0
- data/rbi/stripe/resources/price.rbi +694 -0
- data/rbi/stripe/resources/product.rbi +555 -0
- data/rbi/stripe/resources/product_feature.rbi +26 -0
- data/rbi/stripe/resources/promotion_code.rbi +261 -0
- data/rbi/stripe/resources/quote.rbi +1145 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
- data/rbi/stripe/resources/radar/value_list.rbi +168 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
- data/rbi/stripe/resources/refund.rbi +523 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
- data/rbi/stripe/resources/reversal.rbi +51 -0
- data/rbi/stripe/resources/review.rbi +154 -0
- data/rbi/stripe/resources/setup_attempt.rbi +477 -0
- data/rbi/stripe/resources/setup_intent.rbi +3978 -0
- data/rbi/stripe/resources/shipping_rate.rbi +305 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
- data/rbi/stripe/resources/source.rbi +1496 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
- data/rbi/stripe/resources/source_transaction.rbi +127 -0
- data/rbi/stripe/resources/subscription.rbi +2080 -0
- data/rbi/stripe/resources/subscription_item.rbi +404 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +1673 -0
- data/rbi/stripe/resources/tax/calculation.rbi +478 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
- data/rbi/stripe/resources/tax/registration.rbi +3216 -0
- data/rbi/stripe/resources/tax/settings.rbi +141 -0
- data/rbi/stripe/resources/tax/transaction.rbi +351 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
- data/rbi/stripe/resources/tax_code.rbi +44 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
- data/rbi/stripe/resources/tax_id.rbi +165 -0
- data/rbi/stripe/resources/tax_rate.rbi +239 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1595 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
- data/rbi/stripe/resources/terminal/location.rbi +222 -0
- data/rbi/stripe/resources/terminal/reader.rbi +994 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
- data/rbi/stripe/resources/token.rbi +1283 -0
- data/rbi/stripe/resources/topup.rbi +222 -0
- data/rbi/stripe/resources/transfer.rbi +199 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +869 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
- data/rbi/stripe/resources/v2/event.rbi +48 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
- data/rbi/stripe/services/account_capability_service.rbi +51 -0
- data/{lib/stripe/services/external_account_service.rb → rbi/stripe/services/account_external_account_service.rbi} +122 -135
- data/rbi/stripe/services/account_link_service.rbi +60 -0
- data/rbi/stripe/services/account_login_link_service.rbi +22 -0
- data/rbi/stripe/services/account_person_service.rbi +1011 -0
- data/rbi/stripe/services/account_service.rbi +4281 -0
- data/rbi/stripe/services/account_session_service.rbi +685 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
- data/rbi/stripe/services/application_fee_service.rbi +78 -0
- data/rbi/stripe/services/apps/secret_service.rbi +151 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +21 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
- data/rbi/stripe/services/billing/alert_service.rbi +152 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
- data/rbi/stripe/services/billing/meter_service.rbi +163 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +555 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/charge_service.rbi +448 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2690 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +142 -0
- data/rbi/stripe/services/climate/product_service.rbi +46 -0
- data/{lib/stripe/services/financial_connections/institution_service.rb → rbi/stripe/services/climate/supplier_service.rbi} +25 -36
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
- data/rbi/stripe/services/country_spec_service.rbi +44 -0
- data/rbi/stripe/services/coupon_service.rbi +194 -0
- data/{lib/stripe/services/quote_preview_invoice_service.rb → rbi/stripe/services/credit_note_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
- data/rbi/stripe/services/credit_note_service.rbi +415 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
- data/rbi/stripe/services/customer_service.rbi +647 -0
- data/rbi/stripe/services/customer_session_service.rbi +116 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
- data/rbi/stripe/services/dispute_service.rbi +424 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
- data/rbi/stripe/services/event_service.rbi +83 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
- data/rbi/stripe/services/file_link_service.rbi +124 -0
- data/rbi/stripe/services/file_service.rbi +116 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
- data/rbi/stripe/services/financial_connections_service.rbi +11 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +339 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +366 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
- data/rbi/stripe/services/invoice_service.rbi +3027 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
- data/rbi/stripe/services/issuing/card_service.rbi +495 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
- data/rbi/stripe/services/issuing/token_service.rbi +99 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
- data/rbi/stripe/services/issuing_service.rbi +16 -0
- data/rbi/stripe/services/mandate_service.rbi +20 -0
- data/rbi/stripe/services/payment_intent_service.rbi +7994 -0
- data/{lib/stripe/services/payment_intent_amount_details_line_item_service.rb → rbi/stripe/services/payment_link_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/payment_link_service.rbi +1441 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
- data/rbi/stripe/services/payment_method_service.rbi +781 -0
- data/rbi/stripe/services/payout_service.rbi +205 -0
- data/rbi/stripe/services/plan_service.rbi +282 -0
- data/rbi/stripe/services/price_service.rbi +546 -0
- data/rbi/stripe/services/product_feature_service.rbi +67 -0
- data/rbi/stripe/services/product_service.rbi +477 -0
- data/rbi/stripe/services/promotion_code_service.rbi +214 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
- data/{lib/stripe/services/order_line_item_service.rb → rbi/stripe/services/quote_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/quote_service.rbi +699 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +185 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +84 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
- data/rbi/stripe/services/setup_intent_service.rbi +3709 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +663 -0
- data/{lib/stripe/services/quote_line_service.rb → rbi/stripe/services/source_transaction_service.rbi} +16 -20
- data/rbi/stripe/services/subscription_item_service.rbi +350 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +1333 -0
- data/rbi/stripe/services/subscription_service.rbi +1684 -0
- data/{lib/stripe/services/financial_connections/account_inferred_balance_service.rb → rbi/stripe/services/tax/calculation_line_item_service.rbi} +17 -21
- data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
- data/rbi/stripe/services/tax/registration_service.rbi +2278 -0
- data/rbi/stripe/services/tax/settings_service.rbi +93 -0
- data/{lib/stripe/services/privacy/redaction_job_validation_error_service.rb → rbi/stripe/services/tax/transaction_line_item_service.rbi} +17 -21
- data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
- data/rbi/stripe/services/tax_code_service.rbi +44 -0
- data/rbi/stripe/services/tax_id_service.rbi +110 -0
- data/rbi/stripe/services/tax_rate_service.rbi +185 -0
- data/rbi/stripe/services/tax_service.rbi +12 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +1286 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
- data/rbi/stripe/services/terminal/location_service.rbi +182 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +540 -0
- data/rbi/stripe/services/terminal_service.rbi +12 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
- data/rbi/stripe/services/test_helpers_service.rbi +15 -0
- data/rbi/stripe/services/token_service.rbi +1257 -0
- data/rbi/stripe/services/topup_service.rbi +176 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
- data/rbi/stripe/services/transfer_service.rbi +152 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +566 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +77 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
- data/rbi/stripe/services/v2/core_service.rbi +12 -0
- data/rbi/stripe/services/v2_services.rbi +10 -0
- data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
- data/stripe.gemspec +1 -4
- metadata +325 -164
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_link_completed_event.rb +0 -13
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
- data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -21
- data/lib/stripe/resources/account_notice.rb +0 -123
- data/lib/stripe/resources/balance_settings.rb +0 -105
- data/lib/stripe/resources/capital/financing_offer.rb +0 -179
- data/lib/stripe/resources/capital/financing_summary.rb +0 -55
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -92
- data/lib/stripe/resources/fx_quote.rb +0 -184
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
- data/lib/stripe/resources/issuing/settlement.rb +0 -53
- data/lib/stripe/resources/margin.rb +0 -115
- data/lib/stripe/resources/order.rb +0 -2958
- data/lib/stripe/resources/payment_attempt_record.rb +0 -1099
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -72
- data/lib/stripe/resources/payment_record.rb +0 -1628
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -298
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -33
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -663
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -371
- data/lib/stripe/resources/tax/association.rb +0 -66
- data/lib/stripe/resources/tax/form.rb +0 -211
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
- data/lib/stripe/resources/v2/core/account.rb +0 -1919
- data/lib/stripe/resources/v2/core/account_link.rb +0 -56
- data/lib/stripe/resources/v2/core/person.rb +0 -276
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -77
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -75
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -122
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -84
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -78
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -68
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -72
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/balance_settings_service.rb +0 -96
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/fx_quote_service.rb +0 -123
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_service.rb +0 -2388
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
- data/lib/stripe/services/payment_record_service.rb +0 -542
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -240
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/lib/stripe/services/v2/core/account_link_service.rb +0 -76
- data/lib/stripe/services/v2/core/account_service.rb +0 -4486
- data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1045
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -130
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -107
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -74
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -116
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -82
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -125
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -95
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -199
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -235
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -172
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -90
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -43
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -69
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -73
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/payment_service.rb +0 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -137
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -49
- data/rbi/stripe.rbi +0 -194513
@@ -166,6 +166,8 @@ module Stripe
|
|
166
166
|
class RenderingOptions < Stripe::StripeObject
|
167
167
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
168
168
|
attr_reader :amount_tax_display
|
169
|
+
# ID of the invoice rendering template to be used for the generated invoice.
|
170
|
+
attr_reader :template
|
169
171
|
end
|
170
172
|
# The account tax IDs associated with the invoice.
|
171
173
|
attr_reader :account_tax_ids
|
@@ -588,9 +590,12 @@ module Stripe
|
|
588
590
|
class RenderingOptions < Stripe::RequestParams
|
589
591
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
|
590
592
|
attr_accessor :amount_tax_display
|
593
|
+
# ID of the invoice rendering template to use for this invoice.
|
594
|
+
attr_accessor :template
|
591
595
|
|
592
|
-
def initialize(amount_tax_display: nil)
|
596
|
+
def initialize(amount_tax_display: nil, template: nil)
|
593
597
|
@amount_tax_display = amount_tax_display
|
598
|
+
@template = template
|
594
599
|
end
|
595
600
|
end
|
596
601
|
# The account tax IDs associated with the invoice.
|
@@ -641,7 +646,7 @@ module Stripe
|
|
641
646
|
class AdjustableQuantity < Stripe::RequestParams
|
642
647
|
# Set to true if the quantity can be adjusted to any non-negative Integer.
|
643
648
|
attr_accessor :enabled
|
644
|
-
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to
|
649
|
+
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
|
645
650
|
attr_accessor :maximum
|
646
651
|
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
|
647
652
|
attr_accessor :minimum
|
@@ -652,16 +657,86 @@ module Stripe
|
|
652
657
|
@minimum = minimum
|
653
658
|
end
|
654
659
|
end
|
660
|
+
|
661
|
+
class PriceData < Stripe::RequestParams
|
662
|
+
class ProductData < Stripe::RequestParams
|
663
|
+
# 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.
|
664
|
+
attr_accessor :description
|
665
|
+
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
666
|
+
attr_accessor :images
|
667
|
+
# 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`.
|
668
|
+
attr_accessor :metadata
|
669
|
+
# The product's name, meant to be displayable to the customer.
|
670
|
+
attr_accessor :name
|
671
|
+
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
672
|
+
attr_accessor :tax_code
|
673
|
+
|
674
|
+
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
675
|
+
@description = description
|
676
|
+
@images = images
|
677
|
+
@metadata = metadata
|
678
|
+
@name = name
|
679
|
+
@tax_code = tax_code
|
680
|
+
end
|
681
|
+
end
|
682
|
+
|
683
|
+
class Recurring < Stripe::RequestParams
|
684
|
+
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
685
|
+
attr_accessor :interval
|
686
|
+
# 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).
|
687
|
+
attr_accessor :interval_count
|
688
|
+
|
689
|
+
def initialize(interval: nil, interval_count: nil)
|
690
|
+
@interval = interval
|
691
|
+
@interval_count = interval_count
|
692
|
+
end
|
693
|
+
end
|
694
|
+
# 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).
|
695
|
+
attr_accessor :currency
|
696
|
+
# 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.
|
697
|
+
attr_accessor :product
|
698
|
+
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
699
|
+
attr_accessor :product_data
|
700
|
+
# The recurring components of a price such as `interval` and `interval_count`.
|
701
|
+
attr_accessor :recurring
|
702
|
+
# 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.
|
703
|
+
attr_accessor :tax_behavior
|
704
|
+
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
705
|
+
attr_accessor :unit_amount
|
706
|
+
# 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.
|
707
|
+
attr_accessor :unit_amount_decimal
|
708
|
+
|
709
|
+
def initialize(
|
710
|
+
currency: nil,
|
711
|
+
product: nil,
|
712
|
+
product_data: nil,
|
713
|
+
recurring: nil,
|
714
|
+
tax_behavior: nil,
|
715
|
+
unit_amount: nil,
|
716
|
+
unit_amount_decimal: nil
|
717
|
+
)
|
718
|
+
@currency = currency
|
719
|
+
@product = product
|
720
|
+
@product_data = product_data
|
721
|
+
@recurring = recurring
|
722
|
+
@tax_behavior = tax_behavior
|
723
|
+
@unit_amount = unit_amount
|
724
|
+
@unit_amount_decimal = unit_amount_decimal
|
725
|
+
end
|
726
|
+
end
|
655
727
|
# When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.
|
656
728
|
attr_accessor :adjustable_quantity
|
657
729
|
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
|
658
730
|
attr_accessor :price
|
731
|
+
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
732
|
+
attr_accessor :price_data
|
659
733
|
# The quantity of the line item being purchased.
|
660
734
|
attr_accessor :quantity
|
661
735
|
|
662
|
-
def initialize(adjustable_quantity: nil, price: nil, quantity: nil)
|
736
|
+
def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil)
|
663
737
|
@adjustable_quantity = adjustable_quantity
|
664
738
|
@price = price
|
739
|
+
@price_data = price_data
|
665
740
|
@quantity = quantity
|
666
741
|
end
|
667
742
|
end
|
@@ -1250,9 +1325,12 @@ module Stripe
|
|
1250
1325
|
class RenderingOptions < Stripe::RequestParams
|
1251
1326
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
|
1252
1327
|
attr_accessor :amount_tax_display
|
1328
|
+
# ID of the invoice rendering template to use for this invoice.
|
1329
|
+
attr_accessor :template
|
1253
1330
|
|
1254
|
-
def initialize(amount_tax_display: nil)
|
1331
|
+
def initialize(amount_tax_display: nil, template: nil)
|
1255
1332
|
@amount_tax_display = amount_tax_display
|
1333
|
+
@template = template
|
1256
1334
|
end
|
1257
1335
|
end
|
1258
1336
|
# The account tax IDs associated with the invoice.
|
@@ -1303,7 +1381,7 @@ module Stripe
|
|
1303
1381
|
class AdjustableQuantity < Stripe::RequestParams
|
1304
1382
|
# Set to true if the quantity can be adjusted to any non-negative Integer.
|
1305
1383
|
attr_accessor :enabled
|
1306
|
-
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to
|
1384
|
+
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
|
1307
1385
|
attr_accessor :maximum
|
1308
1386
|
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
|
1309
1387
|
attr_accessor :minimum
|
@@ -18,8 +18,6 @@ module Stripe
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class AcssDebit < Stripe::StripeObject
|
21
|
-
# Account number of the bank account.
|
22
|
-
attr_reader :account_number
|
23
21
|
# Name of the bank associated with the bank account.
|
24
22
|
attr_reader :bank_name
|
25
23
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
@@ -140,7 +138,7 @@ module Stripe
|
|
140
138
|
end
|
141
139
|
# The authorized amount
|
142
140
|
attr_reader :amount_authorized
|
143
|
-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa
|
141
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
144
142
|
attr_reader :brand
|
145
143
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
146
144
|
attr_reader :brand_product
|
@@ -322,7 +320,7 @@ module Stripe
|
|
322
320
|
# Attribute for field visa_checkout
|
323
321
|
attr_reader :visa_checkout
|
324
322
|
end
|
325
|
-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa
|
323
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
326
324
|
attr_reader :brand
|
327
325
|
# Checks on Card address and CVC if provided.
|
328
326
|
attr_reader :checks
|
@@ -379,7 +377,7 @@ module Stripe
|
|
379
377
|
# The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
380
378
|
attr_reader :type
|
381
379
|
end
|
382
|
-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa
|
380
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
383
381
|
attr_reader :brand
|
384
382
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
385
383
|
attr_reader :brand_product
|
@@ -440,20 +438,8 @@ module Stripe
|
|
440
438
|
end
|
441
439
|
|
442
440
|
class Giropay < Stripe::StripeObject; end
|
443
|
-
class Gopay < Stripe::StripeObject; end
|
444
441
|
class Grabpay < Stripe::StripeObject; end
|
445
442
|
|
446
|
-
class IdBankTransfer < Stripe::StripeObject
|
447
|
-
# Attribute for field bank
|
448
|
-
attr_reader :bank
|
449
|
-
# Attribute for field bank_code
|
450
|
-
attr_reader :bank_code
|
451
|
-
# Attribute for field bank_name
|
452
|
-
attr_reader :bank_name
|
453
|
-
# Attribute for field display_name
|
454
|
-
attr_reader :display_name
|
455
|
-
end
|
456
|
-
|
457
443
|
class Ideal < Stripe::StripeObject
|
458
444
|
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
459
445
|
attr_reader :bank
|
@@ -531,7 +517,6 @@ module Stripe
|
|
531
517
|
attr_reader :persistent_token
|
532
518
|
end
|
533
519
|
|
534
|
-
class MbWay < Stripe::StripeObject; end
|
535
520
|
class Mobilepay < Stripe::StripeObject; end
|
536
521
|
class Multibanco < Stripe::StripeObject; end
|
537
522
|
|
@@ -571,49 +556,21 @@ module Stripe
|
|
571
556
|
class Paypal < Stripe::StripeObject
|
572
557
|
# Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
573
558
|
attr_reader :country
|
574
|
-
# Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
575
|
-
attr_reader :fingerprint
|
576
559
|
# Owner's email. Values are provided by PayPal directly
|
577
560
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
578
561
|
attr_reader :payer_email
|
579
562
|
# PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
580
563
|
attr_reader :payer_id
|
581
|
-
# Owner's verified email. Values are verified or provided by PayPal directly
|
582
|
-
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
583
|
-
attr_reader :verified_email
|
584
|
-
end
|
585
|
-
|
586
|
-
class Payto < Stripe::StripeObject
|
587
|
-
# Bank-State-Branch number of the bank account.
|
588
|
-
attr_reader :bsb_number
|
589
|
-
# Last four digits of the bank account number.
|
590
|
-
attr_reader :last4
|
591
|
-
# The PayID alias for the bank account.
|
592
|
-
attr_reader :pay_id
|
593
564
|
end
|
594
565
|
|
595
566
|
class Pix < Stripe::StripeObject; end
|
596
567
|
class Promptpay < Stripe::StripeObject; end
|
597
|
-
class Qris < Stripe::StripeObject; end
|
598
568
|
|
599
569
|
class RadarOptions < Stripe::StripeObject
|
600
570
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
601
571
|
attr_reader :session
|
602
572
|
end
|
603
573
|
|
604
|
-
class Rechnung < Stripe::StripeObject
|
605
|
-
class Dob < Stripe::StripeObject
|
606
|
-
# The day of birth, between 1 and 31.
|
607
|
-
attr_reader :day
|
608
|
-
# The month of birth, between 1 and 12.
|
609
|
-
attr_reader :month
|
610
|
-
# The four-digit year of birth.
|
611
|
-
attr_reader :year
|
612
|
-
end
|
613
|
-
# Attribute for field dob
|
614
|
-
attr_reader :dob
|
615
|
-
end
|
616
|
-
|
617
574
|
class RevolutPay < Stripe::StripeObject; end
|
618
575
|
class SamsungPay < Stripe::StripeObject; end
|
619
576
|
class Satispay < Stripe::StripeObject; end
|
@@ -639,20 +596,11 @@ module Stripe
|
|
639
596
|
attr_reader :last4
|
640
597
|
end
|
641
598
|
|
642
|
-
class Shopeepay < Stripe::StripeObject; end
|
643
|
-
|
644
599
|
class Sofort < Stripe::StripeObject
|
645
600
|
# Two-letter ISO code representing the country the bank account is located in.
|
646
601
|
attr_reader :country
|
647
602
|
end
|
648
603
|
|
649
|
-
class StripeBalance < Stripe::StripeObject
|
650
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
651
|
-
attr_reader :account
|
652
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
653
|
-
attr_reader :source_type
|
654
|
-
end
|
655
|
-
|
656
604
|
class Swish < Stripe::StripeObject; end
|
657
605
|
class Twint < Stripe::StripeObject; end
|
658
606
|
|
@@ -676,8 +624,6 @@ module Stripe
|
|
676
624
|
end
|
677
625
|
# Account holder type: individual or company.
|
678
626
|
attr_reader :account_holder_type
|
679
|
-
# Account number of the bank account.
|
680
|
-
attr_reader :account_number
|
681
627
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
682
628
|
attr_reader :account_type
|
683
629
|
# The name of the bank.
|
@@ -906,18 +852,8 @@ module Stripe
|
|
906
852
|
end
|
907
853
|
|
908
854
|
class Giropay < Stripe::RequestParams; end
|
909
|
-
class Gopay < Stripe::RequestParams; end
|
910
855
|
class Grabpay < Stripe::RequestParams; end
|
911
856
|
|
912
|
-
class IdBankTransfer < Stripe::RequestParams
|
913
|
-
# Bank where the account is held.
|
914
|
-
attr_accessor :bank
|
915
|
-
|
916
|
-
def initialize(bank: nil)
|
917
|
-
@bank = bank
|
918
|
-
end
|
919
|
-
end
|
920
|
-
|
921
857
|
class Ideal < Stripe::RequestParams
|
922
858
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
923
859
|
attr_accessor :bank
|
@@ -956,7 +892,6 @@ module Stripe
|
|
956
892
|
class Konbini < Stripe::RequestParams; end
|
957
893
|
class KrCard < Stripe::RequestParams; end
|
958
894
|
class Link < Stripe::RequestParams; end
|
959
|
-
class MbWay < Stripe::RequestParams; end
|
960
895
|
class Mobilepay < Stripe::RequestParams; end
|
961
896
|
class Multibanco < Stripe::RequestParams; end
|
962
897
|
|
@@ -1015,25 +950,8 @@ module Stripe
|
|
1015
950
|
class Payco < Stripe::RequestParams; end
|
1016
951
|
class Paynow < Stripe::RequestParams; end
|
1017
952
|
class Paypal < Stripe::RequestParams; end
|
1018
|
-
|
1019
|
-
class Payto < Stripe::RequestParams
|
1020
|
-
# The account number for the bank account.
|
1021
|
-
attr_accessor :account_number
|
1022
|
-
# Bank-State-Branch number of the bank account.
|
1023
|
-
attr_accessor :bsb_number
|
1024
|
-
# The PayID alias for the bank account.
|
1025
|
-
attr_accessor :pay_id
|
1026
|
-
|
1027
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
1028
|
-
@account_number = account_number
|
1029
|
-
@bsb_number = bsb_number
|
1030
|
-
@pay_id = pay_id
|
1031
|
-
end
|
1032
|
-
end
|
1033
|
-
|
1034
953
|
class Pix < Stripe::RequestParams; end
|
1035
954
|
class Promptpay < Stripe::RequestParams; end
|
1036
|
-
class Qris < Stripe::RequestParams; end
|
1037
955
|
|
1038
956
|
class RadarOptions < Stripe::RequestParams
|
1039
957
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
@@ -1044,29 +962,6 @@ module Stripe
|
|
1044
962
|
end
|
1045
963
|
end
|
1046
964
|
|
1047
|
-
class Rechnung < Stripe::RequestParams
|
1048
|
-
class Dob < Stripe::RequestParams
|
1049
|
-
# The day of birth, between 1 and 31.
|
1050
|
-
attr_accessor :day
|
1051
|
-
# The month of birth, between 1 and 12.
|
1052
|
-
attr_accessor :month
|
1053
|
-
# The four-digit year of birth.
|
1054
|
-
attr_accessor :year
|
1055
|
-
|
1056
|
-
def initialize(day: nil, month: nil, year: nil)
|
1057
|
-
@day = day
|
1058
|
-
@month = month
|
1059
|
-
@year = year
|
1060
|
-
end
|
1061
|
-
end
|
1062
|
-
# Customer's date of birth
|
1063
|
-
attr_accessor :dob
|
1064
|
-
|
1065
|
-
def initialize(dob: nil)
|
1066
|
-
@dob = dob
|
1067
|
-
end
|
1068
|
-
end
|
1069
|
-
|
1070
965
|
class RevolutPay < Stripe::RequestParams; end
|
1071
966
|
class SamsungPay < Stripe::RequestParams; end
|
1072
967
|
class Satispay < Stripe::RequestParams; end
|
@@ -1080,8 +975,6 @@ module Stripe
|
|
1080
975
|
end
|
1081
976
|
end
|
1082
977
|
|
1083
|
-
class Shopeepay < Stripe::RequestParams; end
|
1084
|
-
|
1085
978
|
class Sofort < Stripe::RequestParams
|
1086
979
|
# Two-letter ISO code representing the country the bank account is located in.
|
1087
980
|
attr_accessor :country
|
@@ -1091,18 +984,6 @@ module Stripe
|
|
1091
984
|
end
|
1092
985
|
end
|
1093
986
|
|
1094
|
-
class StripeBalance < Stripe::RequestParams
|
1095
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
1096
|
-
attr_accessor :account
|
1097
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
1098
|
-
attr_accessor :source_type
|
1099
|
-
|
1100
|
-
def initialize(account: nil, source_type: nil)
|
1101
|
-
@account = account
|
1102
|
-
@source_type = source_type
|
1103
|
-
end
|
1104
|
-
end
|
1105
|
-
|
1106
987
|
class Swish < Stripe::RequestParams; end
|
1107
988
|
class Twint < Stripe::RequestParams; end
|
1108
989
|
|
@@ -1181,12 +1062,8 @@ module Stripe
|
|
1181
1062
|
attr_accessor :fpx
|
1182
1063
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
1183
1064
|
attr_accessor :giropay
|
1184
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
1185
|
-
attr_accessor :gopay
|
1186
1065
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
1187
1066
|
attr_accessor :grabpay
|
1188
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
1189
|
-
attr_accessor :id_bank_transfer
|
1190
1067
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
1191
1068
|
attr_accessor :ideal
|
1192
1069
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -1201,8 +1078,6 @@ module Stripe
|
|
1201
1078
|
attr_accessor :kr_card
|
1202
1079
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
1203
1080
|
attr_accessor :link
|
1204
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
1205
|
-
attr_accessor :mb_way
|
1206
1081
|
# 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`.
|
1207
1082
|
attr_accessor :metadata
|
1208
1083
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -1227,18 +1102,12 @@ module Stripe
|
|
1227
1102
|
attr_accessor :paynow
|
1228
1103
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
1229
1104
|
attr_accessor :paypal
|
1230
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1231
|
-
attr_accessor :payto
|
1232
1105
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
1233
1106
|
attr_accessor :pix
|
1234
1107
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
1235
1108
|
attr_accessor :promptpay
|
1236
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
1237
|
-
attr_accessor :qris
|
1238
1109
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1239
1110
|
attr_accessor :radar_options
|
1240
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
1241
|
-
attr_accessor :rechnung
|
1242
1111
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1243
1112
|
attr_accessor :revolut_pay
|
1244
1113
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -1247,12 +1116,8 @@ module Stripe
|
|
1247
1116
|
attr_accessor :satispay
|
1248
1117
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1249
1118
|
attr_accessor :sepa_debit
|
1250
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
1251
|
-
attr_accessor :shopeepay
|
1252
1119
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
1253
1120
|
attr_accessor :sofort
|
1254
|
-
# This hash contains details about the Stripe balance payment method.
|
1255
|
-
attr_accessor :stripe_balance
|
1256
1121
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
1257
1122
|
attr_accessor :swish
|
1258
1123
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -1290,9 +1155,7 @@ module Stripe
|
|
1290
1155
|
expand: nil,
|
1291
1156
|
fpx: nil,
|
1292
1157
|
giropay: nil,
|
1293
|
-
gopay: nil,
|
1294
1158
|
grabpay: nil,
|
1295
|
-
id_bank_transfer: nil,
|
1296
1159
|
ideal: nil,
|
1297
1160
|
interac_present: nil,
|
1298
1161
|
kakao_pay: nil,
|
@@ -1300,7 +1163,6 @@ module Stripe
|
|
1300
1163
|
konbini: nil,
|
1301
1164
|
kr_card: nil,
|
1302
1165
|
link: nil,
|
1303
|
-
mb_way: nil,
|
1304
1166
|
metadata: nil,
|
1305
1167
|
mobilepay: nil,
|
1306
1168
|
multibanco: nil,
|
@@ -1313,19 +1175,14 @@ module Stripe
|
|
1313
1175
|
payment_method: nil,
|
1314
1176
|
paynow: nil,
|
1315
1177
|
paypal: nil,
|
1316
|
-
payto: nil,
|
1317
1178
|
pix: nil,
|
1318
1179
|
promptpay: nil,
|
1319
|
-
qris: nil,
|
1320
1180
|
radar_options: nil,
|
1321
|
-
rechnung: nil,
|
1322
1181
|
revolut_pay: nil,
|
1323
1182
|
samsung_pay: nil,
|
1324
1183
|
satispay: nil,
|
1325
1184
|
sepa_debit: nil,
|
1326
|
-
shopeepay: nil,
|
1327
1185
|
sofort: nil,
|
1328
|
-
stripe_balance: nil,
|
1329
1186
|
swish: nil,
|
1330
1187
|
twint: nil,
|
1331
1188
|
type: nil,
|
@@ -1356,9 +1213,7 @@ module Stripe
|
|
1356
1213
|
@expand = expand
|
1357
1214
|
@fpx = fpx
|
1358
1215
|
@giropay = giropay
|
1359
|
-
@gopay = gopay
|
1360
1216
|
@grabpay = grabpay
|
1361
|
-
@id_bank_transfer = id_bank_transfer
|
1362
1217
|
@ideal = ideal
|
1363
1218
|
@interac_present = interac_present
|
1364
1219
|
@kakao_pay = kakao_pay
|
@@ -1366,7 +1221,6 @@ module Stripe
|
|
1366
1221
|
@konbini = konbini
|
1367
1222
|
@kr_card = kr_card
|
1368
1223
|
@link = link
|
1369
|
-
@mb_way = mb_way
|
1370
1224
|
@metadata = metadata
|
1371
1225
|
@mobilepay = mobilepay
|
1372
1226
|
@multibanco = multibanco
|
@@ -1379,19 +1233,14 @@ module Stripe
|
|
1379
1233
|
@payment_method = payment_method
|
1380
1234
|
@paynow = paynow
|
1381
1235
|
@paypal = paypal
|
1382
|
-
@payto = payto
|
1383
1236
|
@pix = pix
|
1384
1237
|
@promptpay = promptpay
|
1385
|
-
@qris = qris
|
1386
1238
|
@radar_options = radar_options
|
1387
|
-
@rechnung = rechnung
|
1388
1239
|
@revolut_pay = revolut_pay
|
1389
1240
|
@samsung_pay = samsung_pay
|
1390
1241
|
@satispay = satispay
|
1391
1242
|
@sepa_debit = sepa_debit
|
1392
|
-
@shopeepay = shopeepay
|
1393
1243
|
@sofort = sofort
|
1394
|
-
@stripe_balance = stripe_balance
|
1395
1244
|
@swish = swish
|
1396
1245
|
@twint = twint
|
1397
1246
|
@type = type
|
@@ -1479,21 +1328,6 @@ module Stripe
|
|
1479
1328
|
class Link < Stripe::RequestParams; end
|
1480
1329
|
class PayByBank < Stripe::RequestParams; end
|
1481
1330
|
|
1482
|
-
class Payto < Stripe::RequestParams
|
1483
|
-
# The account number for the bank account.
|
1484
|
-
attr_accessor :account_number
|
1485
|
-
# Bank-State-Branch number of the bank account.
|
1486
|
-
attr_accessor :bsb_number
|
1487
|
-
# The PayID alias for the bank account.
|
1488
|
-
attr_accessor :pay_id
|
1489
|
-
|
1490
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
1491
|
-
@account_number = account_number
|
1492
|
-
@bsb_number = bsb_number
|
1493
|
-
@pay_id = pay_id
|
1494
|
-
end
|
1495
|
-
end
|
1496
|
-
|
1497
1331
|
class UsBankAccount < Stripe::RequestParams
|
1498
1332
|
# Bank account holder type.
|
1499
1333
|
attr_accessor :account_holder_type
|
@@ -1519,8 +1353,6 @@ module Stripe
|
|
1519
1353
|
attr_accessor :metadata
|
1520
1354
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
1521
1355
|
attr_accessor :pay_by_bank
|
1522
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1523
|
-
attr_accessor :payto
|
1524
1356
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
1525
1357
|
attr_accessor :us_bank_account
|
1526
1358
|
|
@@ -1532,7 +1364,6 @@ module Stripe
|
|
1532
1364
|
link: nil,
|
1533
1365
|
metadata: nil,
|
1534
1366
|
pay_by_bank: nil,
|
1535
|
-
payto: nil,
|
1536
1367
|
us_bank_account: nil
|
1537
1368
|
)
|
1538
1369
|
@allow_redisplay = allow_redisplay
|
@@ -1542,7 +1373,6 @@ module Stripe
|
|
1542
1373
|
@link = link
|
1543
1374
|
@metadata = metadata
|
1544
1375
|
@pay_by_bank = pay_by_bank
|
1545
|
-
@payto = payto
|
1546
1376
|
@us_bank_account = us_bank_account
|
1547
1377
|
end
|
1548
1378
|
end
|
@@ -1550,14 +1380,11 @@ module Stripe
|
|
1550
1380
|
class AttachParams < Stripe::RequestParams
|
1551
1381
|
# The ID of the customer to which to attach the PaymentMethod.
|
1552
1382
|
attr_accessor :customer
|
1553
|
-
# The ID of the account to which to attach the PaymentMethod.
|
1554
|
-
attr_accessor :customer_account
|
1555
1383
|
# Specifies which fields in the response should be expanded.
|
1556
1384
|
attr_accessor :expand
|
1557
1385
|
|
1558
|
-
def initialize(customer: nil,
|
1386
|
+
def initialize(customer: nil, expand: nil)
|
1559
1387
|
@customer = customer
|
1560
|
-
@customer_account = customer_account
|
1561
1388
|
@expand = expand
|
1562
1389
|
end
|
1563
1390
|
end
|
@@ -1610,8 +1437,6 @@ module Stripe
|
|
1610
1437
|
attr_reader :crypto
|
1611
1438
|
# The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
|
1612
1439
|
attr_reader :customer
|
1613
|
-
# Attribute for field customer_account
|
1614
|
-
attr_reader :customer_account
|
1615
1440
|
# Attribute for field customer_balance
|
1616
1441
|
attr_reader :customer_balance
|
1617
1442
|
# Attribute for field eps
|
@@ -1620,14 +1445,10 @@ module Stripe
|
|
1620
1445
|
attr_reader :fpx
|
1621
1446
|
# Attribute for field giropay
|
1622
1447
|
attr_reader :giropay
|
1623
|
-
# Attribute for field gopay
|
1624
|
-
attr_reader :gopay
|
1625
1448
|
# Attribute for field grabpay
|
1626
1449
|
attr_reader :grabpay
|
1627
1450
|
# Unique identifier for the object.
|
1628
1451
|
attr_reader :id
|
1629
|
-
# Attribute for field id_bank_transfer
|
1630
|
-
attr_reader :id_bank_transfer
|
1631
1452
|
# Attribute for field ideal
|
1632
1453
|
attr_reader :ideal
|
1633
1454
|
# Attribute for field interac_present
|
@@ -1644,8 +1465,6 @@ module Stripe
|
|
1644
1465
|
attr_reader :link
|
1645
1466
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
1646
1467
|
attr_reader :livemode
|
1647
|
-
# Attribute for field mb_way
|
1648
|
-
attr_reader :mb_way
|
1649
1468
|
# 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.
|
1650
1469
|
attr_reader :metadata
|
1651
1470
|
# Attribute for field mobilepay
|
@@ -1670,18 +1489,12 @@ module Stripe
|
|
1670
1489
|
attr_reader :paynow
|
1671
1490
|
# Attribute for field paypal
|
1672
1491
|
attr_reader :paypal
|
1673
|
-
# Attribute for field payto
|
1674
|
-
attr_reader :payto
|
1675
1492
|
# Attribute for field pix
|
1676
1493
|
attr_reader :pix
|
1677
1494
|
# Attribute for field promptpay
|
1678
1495
|
attr_reader :promptpay
|
1679
|
-
# Attribute for field qris
|
1680
|
-
attr_reader :qris
|
1681
1496
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1682
1497
|
attr_reader :radar_options
|
1683
|
-
# Attribute for field rechnung
|
1684
|
-
attr_reader :rechnung
|
1685
1498
|
# Attribute for field revolut_pay
|
1686
1499
|
attr_reader :revolut_pay
|
1687
1500
|
# Attribute for field samsung_pay
|
@@ -1690,12 +1503,8 @@ module Stripe
|
|
1690
1503
|
attr_reader :satispay
|
1691
1504
|
# Attribute for field sepa_debit
|
1692
1505
|
attr_reader :sepa_debit
|
1693
|
-
# Attribute for field shopeepay
|
1694
|
-
attr_reader :shopeepay
|
1695
1506
|
# Attribute for field sofort
|
1696
1507
|
attr_reader :sofort
|
1697
|
-
# Attribute for field stripe_balance
|
1698
|
-
attr_reader :stripe_balance
|
1699
1508
|
# Attribute for field swish
|
1700
1509
|
attr_reader :swish
|
1701
1510
|
# Attribute for field twint
|
@@ -1785,7 +1594,7 @@ module Stripe
|
|
1785
1594
|
request_stripe_object(method: :get, path: "/v1/payment_methods", params: params, opts: opts)
|
1786
1595
|
end
|
1787
1596
|
|
1788
|
-
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
|
1597
|
+
# Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
|
1789
1598
|
def self.update(payment_method, params = {}, opts = {})
|
1790
1599
|
request_stripe_object(
|
1791
1600
|
method: :post,
|