stripe 20.2.0.pre.beta.1 → 21.1.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/lib/stripe/api_operations/request.rb +18 -7
- data/lib/stripe/api_operations/save.rb +4 -4
- data/lib/stripe/api_requestor.rb +55 -38
- data/lib/stripe/api_resource.rb +1 -2
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/connection_manager.rb +3 -0
- data/lib/stripe/errors.rb +0 -6
- data/lib/stripe/event_types.rb +20 -193
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- data/lib/stripe/events/{v2_data_reporting_query_run_failed_event.rb → v2_core_claimable_sandbox_claimed_event.rb} +7 -7
- data/lib/stripe/events/{v2_money_management_outbound_transfer_created_event.rb → v2_core_claimable_sandbox_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_approval_request_rejected_event.rb → v2_core_claimable_sandbox_expired_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_batch_job_validation_failed_event.rb → v2_core_claimable_sandbox_expiring_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_approval_request_approved_event.rb → v2_core_claimable_sandbox_updated_event.rb} +7 -7
- data/lib/stripe/object_types.rb +1 -53
- data/lib/stripe/params/account_create_params.rb +1 -299
- data/lib/stripe/params/account_session_create_params.rb +0 -191
- data/lib/stripe/params/account_update_params.rb +0 -261
- data/lib/stripe/params/balance_settings_update_params.rb +1 -9
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +11 -88
- data/lib/stripe/params/checkout/session_update_params.rb +1 -161
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/coupon_create_params.rb +2 -18
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/financial_connections/session_create_params.rb +2 -39
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -64
- data/lib/stripe/params/invoice_create_preview_params.rb +9 -772
- data/lib/stripe/params/invoice_item_create_params.rb +2 -34
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_update_params.rb +2 -64
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/cardholder_update_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -981
- data/lib/stripe/params/payment_intent_confirm_params.rb +147 -2438
- data/lib/stripe/params/payment_intent_create_params.rb +148 -2439
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +149 -2471
- data/lib/stripe/params/payment_link_update_params.rb +4 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
- data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
- data/lib/stripe/params/payment_method_create_params.rb +0 -88
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/product_create_params.rb +4 -1
- data/lib/stripe/params/product_update_params.rb +4 -1
- data/lib/stripe/params/quote_create_params.rb +4 -810
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +5 -818
- data/lib/stripe/params/reporting/report_run_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -122
- data/lib/stripe/params/setup_intent_create_params.rb +3 -122
- data/lib/stripe/params/setup_intent_update_params.rb +3 -122
- data/lib/stripe/params/subscription_create_params.rb +6 -133
- data/lib/stripe/params/subscription_item_create_params.rb +3 -50
- data/lib/stripe/params/subscription_item_update_params.rb +2 -33
- data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
- data/lib/stripe/params/subscription_update_params.rb +5 -116
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -19
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/v2/core/account_create_params.rb +143 -396
- data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -29
- data/lib/stripe/params/v2/core/account_update_params.rb +142 -380
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
- data/lib/stripe/params/v2/{billing/cadence_retrieve_params.rb → core/claimable_sandbox_retrieve_params.rb} +3 -3
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -40
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -22
- data/lib/stripe/params.rb +7 -364
- data/lib/stripe/request_options.rb +37 -2
- data/lib/stripe/resources/account.rb +1 -176
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/apps/install.rb +2 -2
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +0 -4
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +275 -232
- data/lib/stripe/resources/checkout/session.rb +7 -91
- data/lib/stripe/resources/confirmation_token.rb +2 -133
- data/lib/stripe/resources/coupon.rb +7 -29
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer.rb +0 -16
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/dispute.rb +1 -19
- data/lib/stripe/resources/event.rb +3 -66
- data/lib/stripe/resources/financial_connections/account.rb +1 -45
- data/lib/stripe/resources/financial_connections/authorization.rb +1 -24
- data/lib/stripe/resources/financial_connections/session.rb +0 -92
- data/lib/stripe/resources/invoice.rb +1 -106
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/authorization.rb +0 -16
- data/lib/stripe/resources/issuing/card.rb +1 -17
- data/lib/stripe/resources/issuing/cardholder.rb +0 -16
- data/lib/stripe/resources/issuing/dispute.rb +1 -16
- data/lib/stripe/resources/issuing/transaction.rb +0 -18
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +0 -12
- data/lib/stripe/resources/payment_attempt_record.rb +5 -178
- data/lib/stripe/resources/payment_intent.rb +17 -1022
- data/lib/stripe/resources/payment_method.rb +2 -153
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +5 -178
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +2 -0
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +38 -18
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +1 -8
- data/lib/stripe/resources/reserve/plan.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +2 -37
- data/lib/stripe/resources/setup_intent.rb +2 -39
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +0 -73
- data/lib/stripe/resources/subscription_item.rb +1 -22
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/token.rb +1 -15
- data/lib/stripe/resources/transfer.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
- data/lib/stripe/resources/treasury/outbound_payment.rb +37 -11
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -32
- data/lib/stripe/resources/treasury/received_credit.rb +1 -31
- data/lib/stripe/resources/treasury/received_debit.rb +1 -33
- data/lib/stripe/resources/v2/core/account.rb +293 -850
- data/lib/stripe/resources/v2/core/account_link.rb +18 -1
- data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
- data/lib/stripe/resources/v2/core/account_token.rb +3 -1
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +19 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +32 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +1 -91
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +1 -26
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -4
- data/lib/stripe/resources/v2/money_management/financial_account.rb +1 -50
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -63
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +1 -31
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -50
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -2
- data/lib/stripe/resources.rb +19 -341
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/apps/install_service.rb +2 -2
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/event_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -11
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -45
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -11
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +2 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -27
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +0 -13
- data/lib/stripe/services/v2/money_management_service.rb +1 -5
- data/lib/stripe/services/v2_services.rb +1 -7
- data/lib/stripe/services.rb +2 -181
- data/lib/stripe/stripe_client.rb +7 -4
- data/lib/stripe/stripe_configuration.rb +10 -5
- data/lib/stripe/stripe_event_notification_handler.rb +16 -206
- data/lib/stripe/stripe_object.rb +82 -10
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -2
- data/rbi/stripe.rbi +63009 -123066
- metadata +16 -332
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +0 -44
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/payment_plan_create_params.rb +0 -128
- data/lib/stripe/params/payment_plan_list_params.rb +0 -25
- data/lib/stripe/params/payment_plan_retrieve_params.rb +0 -13
- data/lib/stripe/params/payment_plan_update_params.rb +0 -105
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +0 -231
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/plan_list_params.rb +0 -37
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -71
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +0 -47
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +0 -17
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -53
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/data/query_run_create_params.rb +0 -50
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_list_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/data/report_run_create_params.rb +0 -48
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/data/schema_list_params.rb +0 -26
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -30
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -35
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -113
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -112
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +0 -200
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +0 -192
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +0 -35
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -144
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -149
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/payment_plan.rb +0 -213
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1241
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -968
- data/lib/stripe/resources/radar/billing_evaluation.rb +0 -281
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -681
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -310
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
- data/lib/stripe/resources/v2/billing/profile.rb +0 -47
- data/lib/stripe/resources/v2/core/approval_request.rb +0 -395
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -536
- data/lib/stripe/resources/v2/data/query_run.rb +0 -255
- data/lib/stripe/resources/v2/data/report.rb +0 -104
- data/lib/stripe/resources/v2/data/report_run.rb +0 -246
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/data/schema.rb +0 -121
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -368
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +0 -33
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -255
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -260
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -137
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/resources/v2/signals/account_activity.rb +0 -252
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +0 -249
- data/lib/stripe/resources/v2/signals/account_signal.rb +0 -184
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/payment_plan_service.rb +0 -50
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/radar/billing_evaluation_service.rb +0 -19
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -30
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/approval_request_service.rb +0 -58
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/data/query_run_service.rb +0 -34
- data/lib/stripe/services/v2/data/report_run_service.rb +0 -36
- data/lib/stripe/services/v2/data/report_service.rb +0 -34
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/data/schema_service.rb +0 -32
- data/lib/stripe/services/v2/data_service.rb +0 -19
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
- data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
- data/lib/stripe/services/v2/extend_service.rb +0 -16
- data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -32
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -35
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -61
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
- data/lib/stripe/services/v2/network_service.rb +0 -15
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
- data/lib/stripe/services/v2/signals/account_activity_service.rb +0 -43
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +0 -32
- data/lib/stripe/services/v2/signals/account_signal_service.rb +0 -32
- data/lib/stripe/services/v2/signals_service.rb +0 -17
|
@@ -88,6 +88,8 @@ module Stripe
|
|
|
88
88
|
@field_remappings = {}
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
|
+
# Controls how much address information Checkout collects when automatic tax is enabled.
|
|
92
|
+
attr_reader :address_collection_precision
|
|
91
93
|
# Indicates whether automatic tax is enabled for the session
|
|
92
94
|
attr_reader :enabled
|
|
93
95
|
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
|
@@ -201,36 +203,15 @@ module Stripe
|
|
|
201
203
|
@field_remappings = {}
|
|
202
204
|
end
|
|
203
205
|
end
|
|
204
|
-
|
|
205
|
-
class TaxId < ::Stripe::StripeObject
|
|
206
|
-
# 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`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `au_acn`, `nz_bn`, `pt_nif`, `cz_dic`, `fr_siret`, `fr_siren`, `fr_spi`, `sm_coe`, `tt_vat`, `tt_bir`, `mu_vat`, `mz_nuit`, `au_wpn`, `md_cf`, `is_kt`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, `gh_tin`, `bw_vat`, `ci_vat`, or `unknown`
|
|
207
|
-
attr_reader :type
|
|
208
|
-
# The value of the tax ID.
|
|
209
|
-
attr_reader :value
|
|
210
|
-
|
|
211
|
-
def self.inner_class_types
|
|
212
|
-
@inner_class_types = {}
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
def self.field_remappings
|
|
216
|
-
@field_remappings = {}
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
206
|
# Customer’s business name for this Checkout Session
|
|
220
207
|
attr_reader :business_name
|
|
221
|
-
# Customer’s email for this Checkout Session
|
|
222
|
-
attr_reader :email
|
|
223
208
|
# Customer’s individual name for this Checkout Session
|
|
224
209
|
attr_reader :individual_name
|
|
225
|
-
# Customer’s phone number for this Checkout Session
|
|
226
|
-
attr_reader :phone
|
|
227
210
|
# Shipping information for this Checkout Session.
|
|
228
211
|
attr_reader :shipping_details
|
|
229
|
-
# Customer’s tax id for this Checkout Session.
|
|
230
|
-
attr_reader :tax_id
|
|
231
212
|
|
|
232
213
|
def self.inner_class_types
|
|
233
|
-
@inner_class_types = { shipping_details: ShippingDetails
|
|
214
|
+
@inner_class_types = { shipping_details: ShippingDetails }
|
|
234
215
|
end
|
|
235
216
|
|
|
236
217
|
def self.field_remappings
|
|
@@ -1050,8 +1031,6 @@ module Stripe
|
|
|
1050
1031
|
# Attribute for field installments
|
|
1051
1032
|
attr_reader :installments
|
|
1052
1033
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1053
|
-
attr_reader :request_decremental_authorization
|
|
1054
|
-
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1055
1034
|
attr_reader :request_extended_authorization
|
|
1056
1035
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
|
1057
1036
|
attr_reader :request_incremental_authorization
|
|
@@ -1515,8 +1494,6 @@ module Stripe
|
|
|
1515
1494
|
#
|
|
1516
1495
|
# 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).
|
|
1517
1496
|
attr_reader :setup_future_usage
|
|
1518
|
-
# 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.
|
|
1519
|
-
attr_reader :subsellers
|
|
1520
1497
|
|
|
1521
1498
|
def self.inner_class_types
|
|
1522
1499
|
@inner_class_types = {}
|
|
@@ -1855,21 +1832,6 @@ module Stripe
|
|
|
1855
1832
|
class Filters < ::Stripe::StripeObject
|
|
1856
1833
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1857
1834
|
attr_reader :account_subcategories
|
|
1858
|
-
# The institution to use to filter for possible accounts to link.
|
|
1859
|
-
attr_reader :institution
|
|
1860
|
-
|
|
1861
|
-
def self.inner_class_types
|
|
1862
|
-
@inner_class_types = {}
|
|
1863
|
-
end
|
|
1864
|
-
|
|
1865
|
-
def self.field_remappings
|
|
1866
|
-
@field_remappings = {}
|
|
1867
|
-
end
|
|
1868
|
-
end
|
|
1869
|
-
|
|
1870
|
-
class ManualEntry < ::Stripe::StripeObject
|
|
1871
|
-
# Settings for configuring manual entry of account details.
|
|
1872
|
-
attr_reader :mode
|
|
1873
1835
|
|
|
1874
1836
|
def self.inner_class_types
|
|
1875
1837
|
@inner_class_types = {}
|
|
@@ -1881,8 +1843,6 @@ module Stripe
|
|
|
1881
1843
|
end
|
|
1882
1844
|
# Attribute for field filters
|
|
1883
1845
|
attr_reader :filters
|
|
1884
|
-
# Attribute for field manual_entry
|
|
1885
|
-
attr_reader :manual_entry
|
|
1886
1846
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
1887
1847
|
attr_reader :permissions
|
|
1888
1848
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -1891,7 +1851,7 @@ module Stripe
|
|
|
1891
1851
|
attr_reader :return_url
|
|
1892
1852
|
|
|
1893
1853
|
def self.inner_class_types
|
|
1894
|
-
@inner_class_types = { filters: Filters
|
|
1854
|
+
@inner_class_types = { filters: Filters }
|
|
1895
1855
|
end
|
|
1896
1856
|
|
|
1897
1857
|
def self.field_remappings
|
|
@@ -2097,36 +2057,6 @@ module Stripe
|
|
|
2097
2057
|
end
|
|
2098
2058
|
|
|
2099
2059
|
class Permissions < ::Stripe::StripeObject
|
|
2100
|
-
class Update < ::Stripe::StripeObject
|
|
2101
|
-
# Determines which entity is allowed to update the line items.
|
|
2102
|
-
#
|
|
2103
|
-
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2104
|
-
#
|
|
2105
|
-
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2106
|
-
attr_reader :line_items
|
|
2107
|
-
# Determines which entity is allowed to update the shipping details.
|
|
2108
|
-
#
|
|
2109
|
-
# 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.
|
|
2110
|
-
#
|
|
2111
|
-
# This parameter is only supported when `ui_mode=elements`.
|
|
2112
|
-
attr_reader :shipping_details
|
|
2113
|
-
|
|
2114
|
-
def self.inner_class_types
|
|
2115
|
-
@inner_class_types = {}
|
|
2116
|
-
end
|
|
2117
|
-
|
|
2118
|
-
def self.field_remappings
|
|
2119
|
-
@field_remappings = {}
|
|
2120
|
-
end
|
|
2121
|
-
end
|
|
2122
|
-
# Permissions for updating the Checkout Session.
|
|
2123
|
-
attr_reader :update
|
|
2124
|
-
# Determines which entity is allowed to update the line items.
|
|
2125
|
-
#
|
|
2126
|
-
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2127
|
-
#
|
|
2128
|
-
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2129
|
-
attr_reader :update_line_items
|
|
2130
2060
|
# Determines which entity is allowed to update the shipping details.
|
|
2131
2061
|
#
|
|
2132
2062
|
# 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.
|
|
@@ -2135,7 +2065,7 @@ module Stripe
|
|
|
2135
2065
|
attr_reader :update_shipping_details
|
|
2136
2066
|
|
|
2137
2067
|
def self.inner_class_types
|
|
2138
|
-
@inner_class_types = {
|
|
2068
|
+
@inner_class_types = {}
|
|
2139
2069
|
end
|
|
2140
2070
|
|
|
2141
2071
|
def self.field_remappings
|
|
@@ -2171,19 +2101,6 @@ module Stripe
|
|
|
2171
2101
|
end
|
|
2172
2102
|
end
|
|
2173
2103
|
|
|
2174
|
-
class Redaction < ::Stripe::StripeObject
|
|
2175
|
-
# Indicates whether this object and its related objects have been redacted or not.
|
|
2176
|
-
attr_reader :status
|
|
2177
|
-
|
|
2178
|
-
def self.inner_class_types
|
|
2179
|
-
@inner_class_types = {}
|
|
2180
|
-
end
|
|
2181
|
-
|
|
2182
|
-
def self.field_remappings
|
|
2183
|
-
@field_remappings = {}
|
|
2184
|
-
end
|
|
2185
|
-
end
|
|
2186
|
-
|
|
2187
2104
|
class SavedPaymentMethodOptions < ::Stripe::StripeObject
|
|
2188
2105
|
# 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.
|
|
2189
2106
|
attr_reader :allow_redisplay_filters
|
|
@@ -2502,8 +2419,6 @@ module Stripe
|
|
|
2502
2419
|
attr_reader :presentment_details
|
|
2503
2420
|
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
|
2504
2421
|
attr_reader :recovered_from
|
|
2505
|
-
# The redaction status of the Checkout Session. If the Session is not redacted, this field is null.
|
|
2506
|
-
attr_reader :redaction
|
|
2507
2422
|
# This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
|
2508
2423
|
attr_reader :redirect_on_completion
|
|
2509
2424
|
# Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
@@ -2542,6 +2457,8 @@ module Stripe
|
|
|
2542
2457
|
attr_reader :wallet_options
|
|
2543
2458
|
|
|
2544
2459
|
# Creates a Checkout Session object.
|
|
2460
|
+
#
|
|
2461
|
+
# Validate requests on your server and protect your application's Session-creation endpoint with access controls and limits on repeated creation. See [Protect your Session-creation endpoint](https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=checkout#protect-session-creation).
|
|
2545
2462
|
def self.create(params = {}, opts = {})
|
|
2546
2463
|
request_stripe_object(
|
|
2547
2464
|
method: :post,
|
|
@@ -2640,7 +2557,6 @@ module Stripe
|
|
|
2640
2557
|
permissions: Permissions,
|
|
2641
2558
|
phone_number_collection: PhoneNumberCollection,
|
|
2642
2559
|
presentment_details: PresentmentDetails,
|
|
2643
|
-
redaction: Redaction,
|
|
2644
2560
|
saved_payment_method_options: SavedPaymentMethodOptions,
|
|
2645
2561
|
shipping_address_collection: ShippingAddressCollection,
|
|
2646
2562
|
shipping_cost: ShippingCost,
|
|
@@ -114,8 +114,6 @@ module Stripe
|
|
|
114
114
|
|
|
115
115
|
class PaymentMethodPreview < ::Stripe::StripeObject
|
|
116
116
|
class AcssDebit < ::Stripe::StripeObject
|
|
117
|
-
# Account number of the bank account.
|
|
118
|
-
attr_reader :account_number
|
|
119
117
|
# Name of the bank associated with the bank account.
|
|
120
118
|
attr_reader :bank_name
|
|
121
119
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
@@ -324,9 +322,9 @@ module Stripe
|
|
|
324
322
|
|
|
325
323
|
class Card < ::Stripe::StripeObject
|
|
326
324
|
class Checks < ::Stripe::StripeObject
|
|
327
|
-
# If
|
|
325
|
+
# If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
328
326
|
attr_reader :address_line1_check
|
|
329
|
-
# If
|
|
327
|
+
# If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
330
328
|
attr_reader :address_postal_code_check
|
|
331
329
|
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
332
330
|
attr_reader :cvc_check
|
|
@@ -954,16 +952,6 @@ module Stripe
|
|
|
954
952
|
end
|
|
955
953
|
end
|
|
956
954
|
|
|
957
|
-
class Gopay < ::Stripe::StripeObject
|
|
958
|
-
def self.inner_class_types
|
|
959
|
-
@inner_class_types = {}
|
|
960
|
-
end
|
|
961
|
-
|
|
962
|
-
def self.field_remappings
|
|
963
|
-
@field_remappings = {}
|
|
964
|
-
end
|
|
965
|
-
end
|
|
966
|
-
|
|
967
955
|
class Grabpay < ::Stripe::StripeObject
|
|
968
956
|
def self.inner_class_types
|
|
969
957
|
@inner_class_types = {}
|
|
@@ -974,25 +962,6 @@ module Stripe
|
|
|
974
962
|
end
|
|
975
963
|
end
|
|
976
964
|
|
|
977
|
-
class IdBankTransfer < ::Stripe::StripeObject
|
|
978
|
-
# Attribute for field bank
|
|
979
|
-
attr_reader :bank
|
|
980
|
-
# Attribute for field bank_code
|
|
981
|
-
attr_reader :bank_code
|
|
982
|
-
# Attribute for field bank_name
|
|
983
|
-
attr_reader :bank_name
|
|
984
|
-
# Attribute for field display_name
|
|
985
|
-
attr_reader :display_name
|
|
986
|
-
|
|
987
|
-
def self.inner_class_types
|
|
988
|
-
@inner_class_types = {}
|
|
989
|
-
end
|
|
990
|
-
|
|
991
|
-
def self.field_remappings
|
|
992
|
-
@field_remappings = {}
|
|
993
|
-
end
|
|
994
|
-
end
|
|
995
|
-
|
|
996
965
|
class Ideal < ::Stripe::StripeObject
|
|
997
966
|
# The customer's bank, if provided. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
998
967
|
attr_reader :bank
|
|
@@ -1266,16 +1235,11 @@ module Stripe
|
|
|
1266
1235
|
class Paypal < ::Stripe::StripeObject
|
|
1267
1236
|
# 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.
|
|
1268
1237
|
attr_reader :country
|
|
1269
|
-
# Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1270
|
-
attr_reader :fingerprint
|
|
1271
1238
|
# Owner's email. Values are provided by PayPal directly
|
|
1272
1239
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1273
1240
|
attr_reader :payer_email
|
|
1274
1241
|
# PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1275
1242
|
attr_reader :payer_id
|
|
1276
|
-
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
1277
|
-
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1278
|
-
attr_reader :verified_email
|
|
1279
1243
|
|
|
1280
1244
|
def self.inner_class_types
|
|
1281
1245
|
@inner_class_types = {}
|
|
@@ -1336,45 +1300,6 @@ module Stripe
|
|
|
1336
1300
|
end
|
|
1337
1301
|
end
|
|
1338
1302
|
|
|
1339
|
-
class Qris < ::Stripe::StripeObject
|
|
1340
|
-
def self.inner_class_types
|
|
1341
|
-
@inner_class_types = {}
|
|
1342
|
-
end
|
|
1343
|
-
|
|
1344
|
-
def self.field_remappings
|
|
1345
|
-
@field_remappings = {}
|
|
1346
|
-
end
|
|
1347
|
-
end
|
|
1348
|
-
|
|
1349
|
-
class Rechnung < ::Stripe::StripeObject
|
|
1350
|
-
class Dob < ::Stripe::StripeObject
|
|
1351
|
-
# The day of birth, between 1 and 31.
|
|
1352
|
-
attr_reader :day
|
|
1353
|
-
# The month of birth, between 1 and 12.
|
|
1354
|
-
attr_reader :month
|
|
1355
|
-
# The four-digit year of birth.
|
|
1356
|
-
attr_reader :year
|
|
1357
|
-
|
|
1358
|
-
def self.inner_class_types
|
|
1359
|
-
@inner_class_types = {}
|
|
1360
|
-
end
|
|
1361
|
-
|
|
1362
|
-
def self.field_remappings
|
|
1363
|
-
@field_remappings = {}
|
|
1364
|
-
end
|
|
1365
|
-
end
|
|
1366
|
-
# Attribute for field dob
|
|
1367
|
-
attr_reader :dob
|
|
1368
|
-
|
|
1369
|
-
def self.inner_class_types
|
|
1370
|
-
@inner_class_types = { dob: Dob }
|
|
1371
|
-
end
|
|
1372
|
-
|
|
1373
|
-
def self.field_remappings
|
|
1374
|
-
@field_remappings = {}
|
|
1375
|
-
end
|
|
1376
|
-
end
|
|
1377
|
-
|
|
1378
1303
|
class RevolutPay < ::Stripe::StripeObject
|
|
1379
1304
|
def self.inner_class_types
|
|
1380
1305
|
@inner_class_types = {}
|
|
@@ -1462,16 +1387,6 @@ module Stripe
|
|
|
1462
1387
|
end
|
|
1463
1388
|
end
|
|
1464
1389
|
|
|
1465
|
-
class Shopeepay < ::Stripe::StripeObject
|
|
1466
|
-
def self.inner_class_types
|
|
1467
|
-
@inner_class_types = {}
|
|
1468
|
-
end
|
|
1469
|
-
|
|
1470
|
-
def self.field_remappings
|
|
1471
|
-
@field_remappings = {}
|
|
1472
|
-
end
|
|
1473
|
-
end
|
|
1474
|
-
|
|
1475
1390
|
class Sofort < ::Stripe::StripeObject
|
|
1476
1391
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
1477
1392
|
attr_reader :country
|
|
@@ -1485,19 +1400,6 @@ module Stripe
|
|
|
1485
1400
|
end
|
|
1486
1401
|
end
|
|
1487
1402
|
|
|
1488
|
-
class StripeBalance < ::Stripe::StripeObject
|
|
1489
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
|
1490
|
-
attr_reader :account
|
|
1491
|
-
|
|
1492
|
-
def self.inner_class_types
|
|
1493
|
-
@inner_class_types = {}
|
|
1494
|
-
end
|
|
1495
|
-
|
|
1496
|
-
def self.field_remappings
|
|
1497
|
-
@field_remappings = {}
|
|
1498
|
-
end
|
|
1499
|
-
end
|
|
1500
|
-
|
|
1501
1403
|
class Sunbit < ::Stripe::StripeObject
|
|
1502
1404
|
def self.inner_class_types
|
|
1503
1405
|
@inner_class_types = {}
|
|
@@ -1585,8 +1487,6 @@ module Stripe
|
|
|
1585
1487
|
end
|
|
1586
1488
|
# Account holder type: individual or company.
|
|
1587
1489
|
attr_reader :account_holder_type
|
|
1588
|
-
# Account number of the bank account.
|
|
1589
|
-
attr_reader :account_number
|
|
1590
1490
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
1591
1491
|
attr_reader :account_type
|
|
1592
1492
|
# The name of the bank.
|
|
@@ -1623,16 +1523,6 @@ module Stripe
|
|
|
1623
1523
|
end
|
|
1624
1524
|
end
|
|
1625
1525
|
|
|
1626
|
-
class Wero < ::Stripe::StripeObject
|
|
1627
|
-
def self.inner_class_types
|
|
1628
|
-
@inner_class_types = {}
|
|
1629
|
-
end
|
|
1630
|
-
|
|
1631
|
-
def self.field_remappings
|
|
1632
|
-
@field_remappings = {}
|
|
1633
|
-
end
|
|
1634
|
-
end
|
|
1635
|
-
|
|
1636
1526
|
class Zip < ::Stripe::StripeObject
|
|
1637
1527
|
def self.inner_class_types
|
|
1638
1528
|
@inner_class_types = {}
|
|
@@ -1692,12 +1582,8 @@ module Stripe
|
|
|
1692
1582
|
attr_reader :fpx
|
|
1693
1583
|
# Attribute for field giropay
|
|
1694
1584
|
attr_reader :giropay
|
|
1695
|
-
# Attribute for field gopay
|
|
1696
|
-
attr_reader :gopay
|
|
1697
1585
|
# Attribute for field grabpay
|
|
1698
1586
|
attr_reader :grabpay
|
|
1699
|
-
# Attribute for field id_bank_transfer
|
|
1700
|
-
attr_reader :id_bank_transfer
|
|
1701
1587
|
# Attribute for field ideal
|
|
1702
1588
|
attr_reader :ideal
|
|
1703
1589
|
# Attribute for field interac_present
|
|
@@ -1742,10 +1628,6 @@ module Stripe
|
|
|
1742
1628
|
attr_reader :pix
|
|
1743
1629
|
# Attribute for field promptpay
|
|
1744
1630
|
attr_reader :promptpay
|
|
1745
|
-
# Attribute for field qris
|
|
1746
|
-
attr_reader :qris
|
|
1747
|
-
# Attribute for field rechnung
|
|
1748
|
-
attr_reader :rechnung
|
|
1749
1631
|
# Attribute for field revolut_pay
|
|
1750
1632
|
attr_reader :revolut_pay
|
|
1751
1633
|
# Attribute for field samsung_pay
|
|
@@ -1758,12 +1640,8 @@ module Stripe
|
|
|
1758
1640
|
attr_reader :sepa_debit
|
|
1759
1641
|
# Attribute for field sequra
|
|
1760
1642
|
attr_reader :sequra
|
|
1761
|
-
# Attribute for field shopeepay
|
|
1762
|
-
attr_reader :shopeepay
|
|
1763
1643
|
# Attribute for field sofort
|
|
1764
1644
|
attr_reader :sofort
|
|
1765
|
-
# Attribute for field stripe_balance
|
|
1766
|
-
attr_reader :stripe_balance
|
|
1767
1645
|
# Attribute for field sunbit
|
|
1768
1646
|
attr_reader :sunbit
|
|
1769
1647
|
# Attribute for field swish
|
|
@@ -1778,8 +1656,6 @@ module Stripe
|
|
|
1778
1656
|
attr_reader :us_bank_account
|
|
1779
1657
|
# Attribute for field wechat_pay
|
|
1780
1658
|
attr_reader :wechat_pay
|
|
1781
|
-
# Attribute for field wero
|
|
1782
|
-
attr_reader :wero
|
|
1783
1659
|
# Attribute for field zip
|
|
1784
1660
|
attr_reader :zip
|
|
1785
1661
|
|
|
@@ -1807,9 +1683,7 @@ module Stripe
|
|
|
1807
1683
|
eps: Eps,
|
|
1808
1684
|
fpx: Fpx,
|
|
1809
1685
|
giropay: Giropay,
|
|
1810
|
-
gopay: Gopay,
|
|
1811
1686
|
grabpay: Grabpay,
|
|
1812
|
-
id_bank_transfer: IdBankTransfer,
|
|
1813
1687
|
ideal: Ideal,
|
|
1814
1688
|
interac_present: InteracPresent,
|
|
1815
1689
|
kakao_pay: KakaoPay,
|
|
@@ -1832,24 +1706,19 @@ module Stripe
|
|
|
1832
1706
|
payto: Payto,
|
|
1833
1707
|
pix: Pix,
|
|
1834
1708
|
promptpay: Promptpay,
|
|
1835
|
-
qris: Qris,
|
|
1836
|
-
rechnung: Rechnung,
|
|
1837
1709
|
revolut_pay: RevolutPay,
|
|
1838
1710
|
samsung_pay: SamsungPay,
|
|
1839
1711
|
satispay: Satispay,
|
|
1840
1712
|
scalapay: Scalapay,
|
|
1841
1713
|
sepa_debit: SepaDebit,
|
|
1842
1714
|
sequra: Sequra,
|
|
1843
|
-
shopeepay: Shopeepay,
|
|
1844
1715
|
sofort: Sofort,
|
|
1845
|
-
stripe_balance: StripeBalance,
|
|
1846
1716
|
sunbit: Sunbit,
|
|
1847
1717
|
swish: Swish,
|
|
1848
1718
|
twint: Twint,
|
|
1849
1719
|
upi: Upi,
|
|
1850
1720
|
us_bank_account: UsBankAccount,
|
|
1851
1721
|
wechat_pay: WechatPay,
|
|
1852
|
-
wero: Wero,
|
|
1853
1722
|
zip: Zip,
|
|
1854
1723
|
}
|
|
1855
1724
|
end
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# A coupon
|
|
6
|
-
#
|
|
7
|
-
#
|
|
5
|
+
# A coupon defines a fixed or custom discount. Fixed discounts take a percentage or amount off, while
|
|
6
|
+
# [custom coupons](https://docs.stripe.com/billing/subscriptions/script-coupons) use scripts to calculate discounts dynamically for subscriptions and invoices.
|
|
7
|
+
# You can apply coupons to customers' [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices),
|
|
8
|
+
# [Checkout Sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and other supported billing objects.
|
|
9
|
+
# The optional [applies_to.products](https://docs.stripe.com/api/coupons/object#coupon_object-applies_to-products) property limits which product line items are eligible for the discount, independently of where you apply the coupon.
|
|
10
|
+
# Coupons don't work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents).
|
|
8
11
|
class Coupon < APIResource
|
|
9
12
|
extend Stripe::APIOperations::Create
|
|
10
13
|
include Stripe::APIOperations::Delete
|
|
@@ -41,23 +44,6 @@ module Stripe
|
|
|
41
44
|
@field_remappings = {}
|
|
42
45
|
end
|
|
43
46
|
end
|
|
44
|
-
|
|
45
|
-
class Script < ::Stripe::StripeObject
|
|
46
|
-
# The configuration values of the script. The keys and values are specific to the script implementation.
|
|
47
|
-
attr_reader :configuration
|
|
48
|
-
# The name of the script used to calculate the discount.
|
|
49
|
-
attr_reader :display_name
|
|
50
|
-
# The script implementation ID for this coupon.
|
|
51
|
-
attr_reader :id
|
|
52
|
-
|
|
53
|
-
def self.inner_class_types
|
|
54
|
-
@inner_class_types = {}
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
def self.field_remappings
|
|
58
|
-
@field_remappings = {}
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
47
|
# Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
|
|
62
48
|
attr_reader :amount_off
|
|
63
49
|
# Attribute for field applies_to
|
|
@@ -90,12 +76,8 @@ module Stripe
|
|
|
90
76
|
attr_reader :percent_off
|
|
91
77
|
# Date after which the coupon can no longer be redeemed.
|
|
92
78
|
attr_reader :redeem_by
|
|
93
|
-
# Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
|
|
94
|
-
attr_reader :script
|
|
95
79
|
# Number of times this coupon has been applied to a customer.
|
|
96
80
|
attr_reader :times_redeemed
|
|
97
|
-
# The type of coupon logic used to calculate the discount.
|
|
98
|
-
attr_reader :type
|
|
99
81
|
# Taking account of the above properties, whether this coupon can still be applied to a customer.
|
|
100
82
|
attr_reader :valid
|
|
101
83
|
|
|
@@ -142,11 +124,7 @@ module Stripe
|
|
|
142
124
|
end
|
|
143
125
|
|
|
144
126
|
def self.inner_class_types
|
|
145
|
-
@inner_class_types = {
|
|
146
|
-
applies_to: AppliesTo,
|
|
147
|
-
currency_options: CurrencyOptions,
|
|
148
|
-
script: Script,
|
|
149
|
-
}
|
|
127
|
+
@inner_class_types = { applies_to: AppliesTo, currency_options: CurrencyOptions }
|
|
150
128
|
end
|
|
151
129
|
|
|
152
130
|
def self.field_remappings
|
|
@@ -43,21 +43,6 @@ module Stripe
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
class TaxCalculationReference < ::Stripe::StripeObject
|
|
47
|
-
# The calculation identifier for tax calculation response.
|
|
48
|
-
attr_reader :calculation_id
|
|
49
|
-
# The calculation identifier for tax calculation response line item.
|
|
50
|
-
attr_reader :calculation_item_id
|
|
51
|
-
|
|
52
|
-
def self.inner_class_types
|
|
53
|
-
@inner_class_types = {}
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def self.field_remappings
|
|
57
|
-
@field_remappings = {}
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
46
|
class Tax < ::Stripe::StripeObject
|
|
62
47
|
class TaxRateDetails < ::Stripe::StripeObject
|
|
63
48
|
# ID of the tax rate
|
|
@@ -114,8 +99,6 @@ module Stripe
|
|
|
114
99
|
attr_reader :pretax_credit_amounts
|
|
115
100
|
# The number of units of product being credited.
|
|
116
101
|
attr_reader :quantity
|
|
117
|
-
# The tax calculation identifiers of the line item.
|
|
118
|
-
attr_reader :tax_calculation_reference
|
|
119
102
|
# The tax rates which apply to the line item.
|
|
120
103
|
attr_reader :tax_rates
|
|
121
104
|
# The tax information of the line item.
|
|
@@ -131,7 +114,6 @@ module Stripe
|
|
|
131
114
|
@inner_class_types = {
|
|
132
115
|
discount_amounts: DiscountAmount,
|
|
133
116
|
pretax_credit_amounts: PretaxCreditAmount,
|
|
134
|
-
tax_calculation_reference: TaxCalculationReference,
|
|
135
117
|
taxes: Tax,
|
|
136
118
|
}
|
|
137
119
|
end
|
|
@@ -93,19 +93,6 @@ module Stripe
|
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
class Redaction < ::Stripe::StripeObject
|
|
97
|
-
# Indicates whether this object and its related objects have been redacted or not.
|
|
98
|
-
attr_reader :status
|
|
99
|
-
|
|
100
|
-
def self.inner_class_types
|
|
101
|
-
@inner_class_types = {}
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
def self.field_remappings
|
|
105
|
-
@field_remappings = {}
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
|
|
109
96
|
class Shipping < ::Stripe::StripeObject
|
|
110
97
|
class Address < ::Stripe::StripeObject
|
|
111
98
|
# City, district, suburb, town, or village.
|
|
@@ -239,8 +226,6 @@ module Stripe
|
|
|
239
226
|
attr_reader :phone
|
|
240
227
|
# The customer's preferred locales (languages), ordered by preference.
|
|
241
228
|
attr_reader :preferred_locales
|
|
242
|
-
# Redaction status of this customer. If not null, this customer is associated to a redaction job.
|
|
243
|
-
attr_reader :redaction
|
|
244
229
|
# Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
|
|
245
230
|
attr_reader :shipping
|
|
246
231
|
# The customer's payment sources, if any.
|
|
@@ -453,7 +438,6 @@ module Stripe
|
|
|
453
438
|
@inner_class_types = {
|
|
454
439
|
address: Address,
|
|
455
440
|
invoice_settings: InvoiceSettings,
|
|
456
|
-
redaction: Redaction,
|
|
457
441
|
shipping: Shipping,
|
|
458
442
|
tax: Tax,
|
|
459
443
|
}
|
|
@@ -189,39 +189,6 @@ module Stripe
|
|
|
189
189
|
@field_remappings = {}
|
|
190
190
|
end
|
|
191
191
|
end
|
|
192
|
-
|
|
193
|
-
class TaxIdElement < ::Stripe::StripeObject
|
|
194
|
-
class Features < ::Stripe::StripeObject
|
|
195
|
-
# Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
196
|
-
#
|
|
197
|
-
# When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
198
|
-
attr_reader :tax_id_redisplay
|
|
199
|
-
# Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
200
|
-
#
|
|
201
|
-
# When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
202
|
-
attr_reader :tax_id_save
|
|
203
|
-
|
|
204
|
-
def self.inner_class_types
|
|
205
|
-
@inner_class_types = {}
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
def self.field_remappings
|
|
209
|
-
@field_remappings = {}
|
|
210
|
-
end
|
|
211
|
-
end
|
|
212
|
-
# Whether the Tax ID Element is enabled.
|
|
213
|
-
attr_reader :enabled
|
|
214
|
-
# This hash defines whether the Tax ID Element supports certain features.
|
|
215
|
-
attr_reader :features
|
|
216
|
-
|
|
217
|
-
def self.inner_class_types
|
|
218
|
-
@inner_class_types = { features: Features }
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
def self.field_remappings
|
|
222
|
-
@field_remappings = {}
|
|
223
|
-
end
|
|
224
|
-
end
|
|
225
192
|
# This hash contains whether the active entitlements is enabled.
|
|
226
193
|
attr_reader :active_entitlements
|
|
227
194
|
# This hash contains whether the buy button is enabled.
|
|
@@ -236,8 +203,6 @@ module Stripe
|
|
|
236
203
|
attr_reader :payment_element
|
|
237
204
|
# This hash contains whether the pricing table is enabled.
|
|
238
205
|
attr_reader :pricing_table
|
|
239
|
-
# This hash contains whether the Tax ID Element is enabled and the features it supports.
|
|
240
|
-
attr_reader :tax_id_element
|
|
241
206
|
|
|
242
207
|
def self.inner_class_types
|
|
243
208
|
@inner_class_types = {
|
|
@@ -248,7 +213,6 @@ module Stripe
|
|
|
248
213
|
mobile_payment_element: MobilePaymentElement,
|
|
249
214
|
payment_element: PaymentElement,
|
|
250
215
|
pricing_table: PricingTable,
|
|
251
|
-
tax_id_element: TaxIdElement,
|
|
252
216
|
}
|
|
253
217
|
end
|
|
254
218
|
|