stripe 18.1.0.pre.beta.1 → 18.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/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +0 -34
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -63
- data/lib/stripe/event_types.rb +0 -209
- data/lib/stripe/object_types.rb +0 -49
- data/lib/stripe/params/account_create_params.rb +48 -329
- data/lib/stripe/params/account_external_account_create_params.rb +2 -2
- data/lib/stripe/params/account_external_account_update_params.rb +2 -2
- data/lib/stripe/params/account_person_create_params.rb +10 -10
- data/lib/stripe/params/account_person_update_params.rb +10 -10
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +47 -291
- data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +2 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
- data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
- data/lib/stripe/params/charge_capture_params.rb +2 -1650
- data/lib/stripe/params/charge_create_params.rb +12 -12
- data/lib/stripe/params/charge_search_params.rb +1 -1
- data/lib/stripe/params/charge_update_params.rb +3 -1651
- data/lib/stripe/params/checkout/session_create_params.rb +41 -167
- data/lib/stripe/params/checkout/session_update_params.rb +12 -152
- data/lib/stripe/params/climate/order_create_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +6 -83
- data/lib/stripe/params/coupon_create_params.rb +2 -18
- data/lib/stripe/params/coupon_update_params.rb +1 -1
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
- data/lib/stripe/params/customer_create_params.rb +5 -5
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
- data/lib/stripe/params/customer_search_params.rb +1 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/customer_update_params.rb +7 -7
- data/lib/stripe/params/dispute_update_params.rb +4 -13
- data/lib/stripe/params/file_create_params.rb +3 -3
- data/lib/stripe/params/file_link_create_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/session_create_params.rb +4 -33
- data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
- data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
- data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
- data/lib/stripe/params/invoice_add_lines_params.rb +9 -41
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +29 -110
- data/lib/stripe/params/invoice_create_preview_params.rb +42 -855
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +9 -41
- data/lib/stripe/params/invoice_item_list_params.rb +2 -2
- data/lib/stripe/params/invoice_item_update_params.rb +7 -39
- data/lib/stripe/params/invoice_line_item_update_params.rb +8 -40
- data/lib/stripe/params/invoice_list_params.rb +2 -2
- data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +9 -41
- data/lib/stripe/params/invoice_update_params.rb +26 -107
- data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +7 -7
- data/lib/stripe/params/issuing/card_update_params.rb +6 -6
- data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -12
- data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
- data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +13 -1639
- data/lib/stripe/params/payment_intent_confirm_params.rb +52 -3012
- data/lib/stripe/params/payment_intent_create_params.rb +68 -3028
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +11 -32
- data/lib/stripe/params/payment_intent_list_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +57 -3048
- data/lib/stripe/params/payment_link_create_params.rb +19 -19
- data/lib/stripe/params/payment_link_update_params.rb +9 -9
- data/lib/stripe/params/payment_method_attach_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +38 -143
- data/lib/stripe/params/payment_method_configuration_update_params.rb +38 -143
- data/lib/stripe/params/payment_method_create_params.rb +4 -81
- data/lib/stripe/params/payment_method_update_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
- data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +1 -1
- data/lib/stripe/params/payout_update_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +4 -4
- data/lib/stripe/params/plan_update_params.rb +2 -2
- data/lib/stripe/params/price_create_params.rb +6 -6
- data/lib/stripe/params/price_search_params.rb +1 -1
- data/lib/stripe/params/price_update_params.rb +3 -22
- data/lib/stripe/params/product_create_params.rb +7 -7
- data/lib/stripe/params/product_feature_create_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +1 -1
- data/lib/stripe/params/product_update_params.rb +4 -4
- data/lib/stripe/params/promotion_code_create_params.rb +3 -3
- data/lib/stripe/params/promotion_code_list_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +7 -805
- data/lib/stripe/params/quote_list_params.rb +2 -6
- data/lib/stripe/params/quote_update_params.rb +8 -813
- data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +2 -2
- data/lib/stripe/params/refund_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
- data/lib/stripe/params/setup_intent_confirm_params.rb +9 -164
- data/lib/stripe/params/setup_intent_create_params.rb +15 -170
- data/lib/stripe/params/setup_intent_update_params.rb +11 -166
- data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +3 -3
- data/lib/stripe/params/source_update_params.rb +3 -3
- data/lib/stripe/params/subscription_create_params.rb +39 -264
- data/lib/stripe/params/subscription_item_create_params.rb +12 -56
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +11 -39
- data/lib/stripe/params/subscription_list_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +2 -2
- data/lib/stripe/params/subscription_schedule_create_params.rb +20 -178
- data/lib/stripe/params/subscription_schedule_update_params.rb +20 -178
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +36 -245
- data/lib/stripe/params/tax/association_find_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
- data/lib/stripe/params/tax/settings_update_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
- data/lib/stripe/params/tax_id_create_params.rb +2 -2
- data/lib/stripe/params/tax_id_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_create_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
- data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
- data/lib/stripe/params/terminal/location_create_params.rb +2 -2
- data/lib/stripe/params/terminal/location_update_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
- data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -83
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +2 -26
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +2 -26
- data/lib/stripe/params/token_create_params.rb +22 -22
- data/lib/stripe/params/topup_create_params.rb +2 -2
- data/lib/stripe/params/topup_update_params.rb +1 -1
- data/lib/stripe/params/transfer_create_params.rb +3 -7
- data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
- data/lib/stripe/params/transfer_update_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_create_params.rb +2 -9
- 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 +2 -9
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -27
- data/lib/stripe/params/treasury/received_credit_create_params.rb +2 -26
- data/lib/stripe/params/treasury/received_debit_create_params.rb +2 -26
- data/lib/stripe/params/v2/core/account_create_params.rb +46 -271
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +31 -21
- data/lib/stripe/params/v2/core/account_update_params.rb +50 -268
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
- data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
- data/lib/stripe/params.rb +0 -146
- data/lib/stripe/resources/account.rb +27 -208
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_session.rb +2 -83
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +1 -1
- data/lib/stripe/resources/balance.rb +2 -2
- data/lib/stripe/resources/balance_settings.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +1 -1
- data/lib/stripe/resources/billing/credit_grant.rb +2 -2
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
- data/lib/stripe/resources/billing_portal/session.rb +6 -6
- data/lib/stripe/resources/capability.rb +16 -16
- data/lib/stripe/resources/card.rb +2 -4
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +46 -248
- data/lib/stripe/resources/checkout/session.rb +23 -123
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +11 -144
- data/lib/stripe/resources/coupon.rb +4 -29
- data/lib/stripe/resources/credit_note.rb +5 -5
- data/lib/stripe/resources/credit_note_line_item.rb +1 -19
- data/lib/stripe/resources/customer.rb +8 -8
- data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/discount.rb +3 -3
- data/lib/stripe/resources/dispute.rb +5 -27
- data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
- data/lib/stripe/resources/event.rb +2 -65
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +3 -28
- data/lib/stripe/resources/financial_connections/session.rb +3 -67
- data/lib/stripe/resources/forwarding/request.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +14 -14
- data/lib/stripe/resources/identity/verification_report.rb +9 -9
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +49 -166
- data/lib/stripe/resources/invoice_item.rb +6 -8
- data/lib/stripe/resources/invoice_line_item.rb +6 -44
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +20 -20
- data/lib/stripe/resources/issuing/card.rb +12 -12
- data/lib/stripe/resources/issuing/cardholder.rb +14 -14
- data/lib/stripe/resources/issuing/dispute.rb +7 -7
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +12 -14
- data/lib/stripe/resources/line_item.rb +4 -69
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/mandate.rb +0 -43
- data/lib/stripe/resources/payment_attempt_record.rb +79 -201
- data/lib/stripe/resources/payment_intent.rb +59 -751
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
- data/lib/stripe/resources/payment_link.rb +7 -7
- data/lib/stripe/resources/payment_method.rb +13 -148
- data/lib/stripe/resources/payment_method_configuration.rb +4 -174
- data/lib/stripe/resources/payment_method_domain.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +81 -201
- data/lib/stripe/resources/payout.rb +7 -7
- data/lib/stripe/resources/person.rb +23 -23
- data/lib/stripe/resources/plan.rb +5 -5
- data/lib/stripe/resources/price.rb +6 -26
- data/lib/stripe/resources/product.rb +9 -9
- data/lib/stripe/resources/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +14 -581
- data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -1
- data/lib/stripe/resources/refund.rb +3 -21
- data/lib/stripe/resources/reporting/report_run.rb +3 -3
- data/lib/stripe/resources/reporting/report_type.rb +3 -3
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +17 -65
- data/lib/stripe/resources/setup_intent.rb +20 -107
- data/lib/stripe/resources/shipping_rate.rb +3 -3
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
- data/lib/stripe/resources/source.rb +8 -46
- data/lib/stripe/resources/source_mandate_notification.rb +3 -3
- data/lib/stripe/resources/subscription.rb +23 -221
- data/lib/stripe/resources/subscription_item.rb +8 -27
- data/lib/stripe/resources/subscription_schedule.rb +11 -204
- data/lib/stripe/resources/tax/association.rb +3 -3
- data/lib/stripe/resources/tax/calculation.rb +12 -12
- data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
- data/lib/stripe/resources/tax/registration.rb +3 -3
- data/lib/stripe/resources/tax/settings.rb +2 -2
- data/lib/stripe/resources/tax/transaction.rb +9 -9
- data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
- data/lib/stripe/resources/tax_id.rb +4 -4
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +3 -3
- data/lib/stripe/resources/terminal/reader.rb +10 -18
- data/lib/stripe/resources/token.rb +4 -4
- data/lib/stripe/resources/topup.rb +3 -3
- data/lib/stripe/resources/transfer.rb +5 -7
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/financial_account.rb +1 -3
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
- data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -35
- data/lib/stripe/resources/treasury/received_credit.rb +10 -40
- data/lib/stripe/resources/treasury/received_debit.rb +7 -39
- data/lib/stripe/resources/treasury/transaction.rb +11 -11
- data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
- data/lib/stripe/resources/v2/core/account.rb +133 -789
- data/lib/stripe/resources/v2/core/account_link.rb +11 -11
- data/lib/stripe/resources/v2/core/account_person.rb +10 -10
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +0 -100
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- 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/payment_method_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -11
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -8
- 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_service.rb +0 -4
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +0 -51
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +31 -2
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe.rbi +17422 -76304
- metadata +4 -301
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_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_created_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_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_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_money_management_transaction_created_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_transaction_updated_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/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/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_cancel_params.rb +0 -13
- data/lib/stripe/params/order_create_params.rb +0 -2061
- data/lib/stripe/params/order_line_item_list_params.rb +0 -22
- data/lib/stripe/params/order_list_line_items_params.rb +0 -22
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_reopen_params.rb +0 -13
- 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 -2065
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- 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/subscription_attach_cadence_params.rb +0 -16
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
- 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/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_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
- 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 -229
- 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/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -98
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -85
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
- 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 -77
- 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_archive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_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/transaction_entry_list_params.rb +0 -43
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_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 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -79
- 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 -147
- 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 -987
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -521
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
- 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 -90
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -81
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- 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/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_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- 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/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- 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 -61
- 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/vault/gb_bank_account_service.rb +0 -85
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# A coupon contains information about a percent-off or amount-off discount you
|
|
6
|
-
# might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com
|
|
7
|
-
# [checkout sessions](https://stripe.com/
|
|
6
|
+
# might want to apply to a customer. Coupons may be applied to [subscriptions](https://api.stripe.com#subscriptions), [invoices](https://api.stripe.com#invoices),
|
|
7
|
+
# [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://api.stripe.com#quotes), and more. Coupons do not work with conventional one-off [charges](https://api.stripe.com#create_charge) or [payment intents](https://docs.stripe.com/api/payment_intents).
|
|
8
8
|
class Coupon < APIResource
|
|
9
9
|
extend Stripe::APIOperations::Create
|
|
10
10
|
include Stripe::APIOperations::Delete
|
|
@@ -41,23 +41,6 @@ module Stripe
|
|
|
41
41
|
@field_remappings = {}
|
|
42
42
|
end
|
|
43
43
|
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
44
|
# Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
|
|
62
45
|
attr_reader :amount_off
|
|
63
46
|
# Attribute for field applies_to
|
|
@@ -78,7 +61,7 @@ module Stripe
|
|
|
78
61
|
attr_reader :livemode
|
|
79
62
|
# Maximum number of times this coupon can be redeemed, in total, across all customers, before it is no longer valid.
|
|
80
63
|
attr_reader :max_redemptions
|
|
81
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
64
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
82
65
|
attr_reader :metadata
|
|
83
66
|
# Name of the coupon displayed to customers on for instance invoices or receipts.
|
|
84
67
|
attr_reader :name
|
|
@@ -88,12 +71,8 @@ module Stripe
|
|
|
88
71
|
attr_reader :percent_off
|
|
89
72
|
# Date after which the coupon can no longer be redeemed.
|
|
90
73
|
attr_reader :redeem_by
|
|
91
|
-
# Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
|
|
92
|
-
attr_reader :script
|
|
93
74
|
# Number of times this coupon has been applied to a customer.
|
|
94
75
|
attr_reader :times_redeemed
|
|
95
|
-
# One of `amount_off`, `percent_off`, or `script`. Describes the type of coupon logic used to calculate the discount.
|
|
96
|
-
attr_reader :type
|
|
97
76
|
# Taking account of the above properties, whether this coupon can still be applied to a customer.
|
|
98
77
|
attr_reader :valid
|
|
99
78
|
# Always true for a deleted object
|
|
@@ -142,11 +121,7 @@ module Stripe
|
|
|
142
121
|
end
|
|
143
122
|
|
|
144
123
|
def self.inner_class_types
|
|
145
|
-
@inner_class_types = {
|
|
146
|
-
applies_to: AppliesTo,
|
|
147
|
-
currency_options: CurrencyOptions,
|
|
148
|
-
script: Script,
|
|
149
|
-
}
|
|
124
|
+
@inner_class_types = { applies_to: AppliesTo, currency_options: CurrencyOptions }
|
|
150
125
|
end
|
|
151
126
|
|
|
152
127
|
def self.field_remappings
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# Issue a credit note to adjust an invoice's amount after the invoice is finalized.
|
|
6
6
|
#
|
|
7
|
-
# Related guide: [Credit notes](https://stripe.com/
|
|
7
|
+
# Related guide: [Credit notes](https://docs.stripe.com/billing/invoices/credit-notes)
|
|
8
8
|
class CreditNote < APIResource
|
|
9
9
|
extend Stripe::APIOperations::Create
|
|
10
10
|
extend Stripe::APIOperations::List
|
|
@@ -125,7 +125,7 @@ module Stripe
|
|
|
125
125
|
|
|
126
126
|
class TotalTax < ::Stripe::StripeObject
|
|
127
127
|
class TaxRateDetails < ::Stripe::StripeObject
|
|
128
|
-
#
|
|
128
|
+
# ID of the tax rate
|
|
129
129
|
attr_reader :tax_rate
|
|
130
130
|
|
|
131
131
|
def self.inner_class_types
|
|
@@ -167,7 +167,7 @@ module Stripe
|
|
|
167
167
|
attr_reader :currency
|
|
168
168
|
# ID of the customer.
|
|
169
169
|
attr_reader :customer
|
|
170
|
-
# ID of the account.
|
|
170
|
+
# ID of the account representing the customer.
|
|
171
171
|
attr_reader :customer_account
|
|
172
172
|
# Customer balance transaction related to this credit note.
|
|
173
173
|
attr_reader :customer_balance_transaction
|
|
@@ -187,7 +187,7 @@ module Stripe
|
|
|
187
187
|
attr_reader :livemode
|
|
188
188
|
# Customer-facing text that appears on the credit note PDF.
|
|
189
189
|
attr_reader :memo
|
|
190
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
190
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
191
191
|
attr_reader :metadata
|
|
192
192
|
# A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
|
|
193
193
|
attr_reader :number
|
|
@@ -209,7 +209,7 @@ module Stripe
|
|
|
209
209
|
attr_reader :refunds
|
|
210
210
|
# The details of the cost of shipping, including the ShippingRate applied to the invoice.
|
|
211
211
|
attr_reader :shipping_cost
|
|
212
|
-
# Status of this credit note, one of `issued` or `void`. Learn more about [voiding credit notes](https://stripe.com/
|
|
212
|
+
# Status of this credit note, one of `issued` or `void`. Learn more about [voiding credit notes](https://docs.stripe.com/billing/invoices/credit-notes#voiding).
|
|
213
213
|
attr_reader :status
|
|
214
214
|
# The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding exclusive tax and invoice level discounts.
|
|
215
215
|
attr_reader :subtotal
|
|
@@ -43,24 +43,9 @@ 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
|
|
64
49
|
attr_reader :tax_rate
|
|
65
50
|
|
|
66
51
|
def self.inner_class_types
|
|
@@ -112,8 +97,6 @@ module Stripe
|
|
|
112
97
|
attr_reader :pretax_credit_amounts
|
|
113
98
|
# The number of units of product being credited.
|
|
114
99
|
attr_reader :quantity
|
|
115
|
-
# The tax calculation identifiers of the line item.
|
|
116
|
-
attr_reader :tax_calculation_reference
|
|
117
100
|
# The tax rates which apply to the line item.
|
|
118
101
|
attr_reader :tax_rates
|
|
119
102
|
# The tax information of the line item.
|
|
@@ -129,7 +112,6 @@ module Stripe
|
|
|
129
112
|
@inner_class_types = {
|
|
130
113
|
discount_amounts: DiscountAmount,
|
|
131
114
|
pretax_credit_amounts: PretaxCreditAmount,
|
|
132
|
-
tax_calculation_reference: TaxCalculationReference,
|
|
133
115
|
taxes: Tax,
|
|
134
116
|
}
|
|
135
117
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# This object represents a customer of your business. Use it to [create recurring charges](https://stripe.com/
|
|
5
|
+
# This object represents a customer of your business. Use it to [create recurring charges](https://docs.stripe.com/invoicing/customer), [save payment](https://docs.stripe.com/payments/save-during-payment) and contact information,
|
|
6
6
|
# and track payments that belong to the same customer.
|
|
7
7
|
class Customer < APIResource
|
|
8
8
|
extend Stripe::APIOperations::Create
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
attr_reader :line2
|
|
34
34
|
# ZIP or postal code.
|
|
35
35
|
attr_reader :postal_code
|
|
36
|
-
# State, county, province, or region.
|
|
36
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
37
37
|
attr_reader :state
|
|
38
38
|
|
|
39
39
|
def self.inner_class_types
|
|
@@ -105,7 +105,7 @@ module Stripe
|
|
|
105
105
|
attr_reader :line2
|
|
106
106
|
# ZIP or postal code.
|
|
107
107
|
attr_reader :postal_code
|
|
108
|
-
# State, county, province, or region.
|
|
108
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
109
109
|
attr_reader :state
|
|
110
110
|
|
|
111
111
|
def self.inner_class_types
|
|
@@ -172,7 +172,7 @@ module Stripe
|
|
|
172
172
|
end
|
|
173
173
|
# The customer's address.
|
|
174
174
|
attr_reader :address
|
|
175
|
-
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/
|
|
175
|
+
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance).
|
|
176
176
|
attr_reader :balance
|
|
177
177
|
# The customer's business name.
|
|
178
178
|
attr_reader :business_name
|
|
@@ -182,15 +182,15 @@ module Stripe
|
|
|
182
182
|
attr_reader :created
|
|
183
183
|
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) the customer can be charged in for recurring billing purposes.
|
|
184
184
|
attr_reader :currency
|
|
185
|
-
#
|
|
185
|
+
# The ID of an Account representing a customer. You can use this ID with any v1 API that accepts a customer_account parameter.
|
|
186
186
|
attr_reader :customer_account
|
|
187
187
|
# ID of the default payment source for the customer.
|
|
188
188
|
#
|
|
189
|
-
# If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/
|
|
189
|
+
# If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead.
|
|
190
190
|
attr_reader :default_source
|
|
191
191
|
# Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`.
|
|
192
192
|
#
|
|
193
|
-
# If an invoice becomes uncollectible by [dunning](https://stripe.com/
|
|
193
|
+
# If an invoice becomes uncollectible by [dunning](https://docs.stripe.com/billing/automatic-collection), `delinquent` doesn't reset to `false`.
|
|
194
194
|
#
|
|
195
195
|
# If you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`.
|
|
196
196
|
attr_reader :delinquent
|
|
@@ -212,7 +212,7 @@ module Stripe
|
|
|
212
212
|
attr_reader :invoice_settings
|
|
213
213
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
214
214
|
attr_reader :livemode
|
|
215
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
215
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
216
216
|
attr_reader :metadata
|
|
217
217
|
# The customer's full name or business name.
|
|
218
218
|
attr_reader :name
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# Each customer has a [Balance](https://stripe.com/
|
|
5
|
+
# Each customer has a [Balance](https://docs.stripe.com/api/customers/object#customer_object-balance) value,
|
|
6
6
|
# which denotes a debit or credit that's automatically applied to their next invoice upon finalization.
|
|
7
|
-
# You may modify the value directly by using the [update customer API](https://stripe.com/
|
|
7
|
+
# You may modify the value directly by using the [update customer API](https://docs.stripe.com/api/customers/update),
|
|
8
8
|
# or by creating a Customer Balance Transaction, which increments or decrements the customer's `balance` by the specified `amount`.
|
|
9
9
|
#
|
|
10
|
-
# Related guide: [Customer balance](https://stripe.com/
|
|
10
|
+
# Related guide: [Customer balance](https://docs.stripe.com/billing/customer/balance)
|
|
11
11
|
class CustomerBalanceTransaction < APIResource
|
|
12
12
|
include Stripe::APIOperations::Save
|
|
13
13
|
|
|
@@ -28,7 +28,7 @@ module Stripe
|
|
|
28
28
|
attr_reader :currency
|
|
29
29
|
# The ID of the customer the transaction belongs to.
|
|
30
30
|
attr_reader :customer
|
|
31
|
-
#
|
|
31
|
+
# The ID of an Account representing a customer that the transaction belongs to.
|
|
32
32
|
attr_reader :customer_account
|
|
33
33
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
34
34
|
attr_reader :description
|
|
@@ -40,11 +40,11 @@ module Stripe
|
|
|
40
40
|
attr_reader :invoice
|
|
41
41
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
42
42
|
attr_reader :livemode
|
|
43
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
43
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
44
44
|
attr_reader :metadata
|
|
45
45
|
# String representing the object's type. Objects of the same type share the same value.
|
|
46
46
|
attr_reader :object
|
|
47
|
-
# Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, `unapplied_from_invoice`, `checkout_session_subscription_payment`, or `checkout_session_subscription_payment_canceled`. See the [Customer Balance page](https://stripe.com/
|
|
47
|
+
# Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, `unapplied_from_invoice`, `checkout_session_subscription_payment`, or `checkout_session_subscription_payment_canceled`. See the [Customer Balance page](https://docs.stripe.com/billing/customer/balance#types) to learn more about transaction types.
|
|
48
48
|
attr_reader :type
|
|
49
49
|
|
|
50
50
|
def resource_url
|
|
@@ -13,9 +13,9 @@ module Stripe
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
class AdjustedForOverdraft < ::Stripe::StripeObject
|
|
16
|
-
# The [Balance Transaction](https://stripe.com/
|
|
16
|
+
# The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance.
|
|
17
17
|
attr_reader :balance_transaction
|
|
18
|
-
# The [Cash Balance Transaction](https://stripe.com/
|
|
18
|
+
# The [Cash Balance Transaction](https://docs.stripe.com/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.
|
|
19
19
|
attr_reader :linked_transaction
|
|
20
20
|
|
|
21
21
|
def self.inner_class_types
|
|
@@ -28,7 +28,7 @@ module Stripe
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
class AppliedToPayment < ::Stripe::StripeObject
|
|
31
|
-
# The [Payment Intent](https://stripe.com/
|
|
31
|
+
# The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were applied to.
|
|
32
32
|
attr_reader :payment_intent
|
|
33
33
|
|
|
34
34
|
def self.inner_class_types
|
|
@@ -146,7 +146,7 @@ module Stripe
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
class RefundedFromPayment < ::Stripe::StripeObject
|
|
149
|
-
# The [Refund](https://stripe.com/
|
|
149
|
+
# The [Refund](https://docs.stripe.com/api/refunds/object) that moved these funds into the customer's cash balance.
|
|
150
150
|
attr_reader :refund
|
|
151
151
|
|
|
152
152
|
def self.inner_class_types
|
|
@@ -159,7 +159,7 @@ module Stripe
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
class TransferredToBalance < ::Stripe::StripeObject
|
|
162
|
-
# The [Balance Transaction](https://stripe.com/
|
|
162
|
+
# The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance.
|
|
163
163
|
attr_reader :balance_transaction
|
|
164
164
|
|
|
165
165
|
def self.inner_class_types
|
|
@@ -172,7 +172,7 @@ module Stripe
|
|
|
172
172
|
end
|
|
173
173
|
|
|
174
174
|
class UnappliedFromPayment < ::Stripe::StripeObject
|
|
175
|
-
# The [Payment Intent](https://stripe.com/
|
|
175
|
+
# The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were unapplied from.
|
|
176
176
|
attr_reader :payment_intent
|
|
177
177
|
|
|
178
178
|
def self.inner_class_types
|
|
@@ -193,9 +193,9 @@ module Stripe
|
|
|
193
193
|
attr_reader :currency
|
|
194
194
|
# The customer whose available cash balance changed as a result of this transaction.
|
|
195
195
|
attr_reader :customer
|
|
196
|
-
#
|
|
196
|
+
# The ID of an Account representing a customer whose available cash balance changed as a result of this transaction.
|
|
197
197
|
attr_reader :customer_account
|
|
198
|
-
# The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/
|
|
198
|
+
# The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
199
199
|
attr_reader :ending_balance
|
|
200
200
|
# Attribute for field funded
|
|
201
201
|
attr_reader :funded
|
|
@@ -203,7 +203,7 @@ module Stripe
|
|
|
203
203
|
attr_reader :id
|
|
204
204
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
205
205
|
attr_reader :livemode
|
|
206
|
-
# The amount by which the cash balance changed, represented in the [smallest currency unit](https://stripe.com/
|
|
206
|
+
# The amount by which the cash balance changed, represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.
|
|
207
207
|
attr_reader :net_amount
|
|
208
208
|
# String representing the object's type. Objects of the same type share the same value.
|
|
209
209
|
attr_reader :object
|
|
@@ -211,7 +211,7 @@ module Stripe
|
|
|
211
211
|
attr_reader :refunded_from_payment
|
|
212
212
|
# Attribute for field transferred_to_balance
|
|
213
213
|
attr_reader :transferred_to_balance
|
|
214
|
-
# The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://stripe.com/
|
|
214
|
+
# The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://docs.stripe.com/payments/customer-balance#types) to learn more about these types.
|
|
215
215
|
attr_reader :type
|
|
216
216
|
# Attribute for field unapplied_from_payment
|
|
217
217
|
attr_reader :unapplied_from_payment
|
|
@@ -163,39 +163,6 @@ module Stripe
|
|
|
163
163
|
@field_remappings = {}
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
|
-
|
|
167
|
-
class TaxIdElement < ::Stripe::StripeObject
|
|
168
|
-
class Features < ::Stripe::StripeObject
|
|
169
|
-
# Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
170
|
-
#
|
|
171
|
-
# 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.
|
|
172
|
-
attr_reader :tax_id_redisplay
|
|
173
|
-
# Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
174
|
-
#
|
|
175
|
-
# 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.
|
|
176
|
-
attr_reader :tax_id_save
|
|
177
|
-
|
|
178
|
-
def self.inner_class_types
|
|
179
|
-
@inner_class_types = {}
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def self.field_remappings
|
|
183
|
-
@field_remappings = {}
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
# Whether the Tax ID Element is enabled.
|
|
187
|
-
attr_reader :enabled
|
|
188
|
-
# This hash defines whether the Tax ID Element supports certain features.
|
|
189
|
-
attr_reader :features
|
|
190
|
-
|
|
191
|
-
def self.inner_class_types
|
|
192
|
-
@inner_class_types = { features: Features }
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
def self.field_remappings
|
|
196
|
-
@field_remappings = {}
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
166
|
# This hash contains whether the buy button is enabled.
|
|
200
167
|
attr_reader :buy_button
|
|
201
168
|
# This hash contains whether the customer sheet is enabled and the features it supports.
|
|
@@ -206,8 +173,6 @@ module Stripe
|
|
|
206
173
|
attr_reader :payment_element
|
|
207
174
|
# This hash contains whether the pricing table is enabled.
|
|
208
175
|
attr_reader :pricing_table
|
|
209
|
-
# This hash contains whether the Tax ID Element is enabled and the features it supports.
|
|
210
|
-
attr_reader :tax_id_element
|
|
211
176
|
|
|
212
177
|
def self.inner_class_types
|
|
213
178
|
@inner_class_types = {
|
|
@@ -216,7 +181,6 @@ module Stripe
|
|
|
216
181
|
mobile_payment_element: MobilePaymentElement,
|
|
217
182
|
payment_element: PaymentElement,
|
|
218
183
|
pricing_table: PricingTable,
|
|
219
|
-
tax_id_element: TaxIdElement,
|
|
220
184
|
}
|
|
221
185
|
end
|
|
222
186
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# A discount represents the actual application of a [coupon](https://stripe.com
|
|
5
|
+
# A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
6
6
|
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
7
7
|
#
|
|
8
|
-
# Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
8
|
+
# Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
9
9
|
class Discount < StripeObject
|
|
10
10
|
OBJECT_NAME = "discount"
|
|
11
11
|
def self.object_name
|
|
@@ -30,7 +30,7 @@ module Stripe
|
|
|
30
30
|
attr_reader :checkout_session
|
|
31
31
|
# The ID of the customer associated with this discount.
|
|
32
32
|
attr_reader :customer
|
|
33
|
-
# The ID of the account associated with this discount.
|
|
33
|
+
# The ID of the account representing the customer associated with this discount.
|
|
34
34
|
attr_reader :customer_account
|
|
35
35
|
# If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null.
|
|
36
36
|
attr_reader :end
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
# When this happens, you have the opportunity to respond to the dispute with
|
|
7
7
|
# evidence that shows that the charge is legitimate.
|
|
8
8
|
#
|
|
9
|
-
# Related guide: [Disputes and fraud](https://stripe.com/
|
|
9
|
+
# Related guide: [Disputes and fraud](https://docs.stripe.com/disputes)
|
|
10
10
|
class Dispute < APIResource
|
|
11
11
|
extend Stripe::APIOperations::List
|
|
12
12
|
include Stripe::APIOperations::Save
|
|
@@ -31,7 +31,7 @@ module Stripe
|
|
|
31
31
|
attr_reader :line2
|
|
32
32
|
# ZIP or postal code.
|
|
33
33
|
attr_reader :postal_code
|
|
34
|
-
# State, county, province, or region.
|
|
34
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
35
35
|
attr_reader :state
|
|
36
36
|
|
|
37
37
|
def self.inner_class_types
|
|
@@ -80,7 +80,7 @@ module Stripe
|
|
|
80
80
|
attr_reader :line2
|
|
81
81
|
# ZIP or postal code.
|
|
82
82
|
attr_reader :postal_code
|
|
83
|
-
# State, county, province, or region.
|
|
83
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
84
84
|
attr_reader :state
|
|
85
85
|
|
|
86
86
|
def self.inner_class_types
|
|
@@ -282,8 +282,6 @@ module Stripe
|
|
|
282
282
|
attr_reader :past_due
|
|
283
283
|
# The number of times evidence has been submitted. Typically, you may only submit evidence once.
|
|
284
284
|
attr_reader :submission_count
|
|
285
|
-
# Whether the dispute was submitted manually, with Smart Disputes, or not submitted.
|
|
286
|
-
attr_reader :submission_method
|
|
287
285
|
|
|
288
286
|
def self.inner_class_types
|
|
289
287
|
@inner_class_types = { enhanced_eligibility: EnhancedEligibility }
|
|
@@ -373,21 +371,6 @@ module Stripe
|
|
|
373
371
|
@field_remappings = {}
|
|
374
372
|
end
|
|
375
373
|
end
|
|
376
|
-
|
|
377
|
-
class SmartDisputes < ::Stripe::StripeObject
|
|
378
|
-
# Evidence that could be provided to improve the SmartDisputes packet
|
|
379
|
-
attr_reader :recommended_evidence
|
|
380
|
-
# Smart Disputes auto representment packet availability status.
|
|
381
|
-
attr_reader :status
|
|
382
|
-
|
|
383
|
-
def self.inner_class_types
|
|
384
|
-
@inner_class_types = {}
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
def self.field_remappings
|
|
388
|
-
@field_remappings = {}
|
|
389
|
-
end
|
|
390
|
-
end
|
|
391
374
|
# Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).
|
|
392
375
|
attr_reader :amount
|
|
393
376
|
# List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
|
|
@@ -406,13 +389,11 @@ module Stripe
|
|
|
406
389
|
attr_reader :evidence_details
|
|
407
390
|
# Unique identifier for the object.
|
|
408
391
|
attr_reader :id
|
|
409
|
-
# Intended submission method for the dispute.
|
|
410
|
-
attr_reader :intended_submission_method
|
|
411
392
|
# If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.
|
|
412
393
|
attr_reader :is_charge_refundable
|
|
413
394
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
414
395
|
attr_reader :livemode
|
|
415
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
396
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
416
397
|
attr_reader :metadata
|
|
417
398
|
# Network-dependent reason code for the dispute.
|
|
418
399
|
attr_reader :network_reason_code
|
|
@@ -422,10 +403,8 @@ module Stripe
|
|
|
422
403
|
attr_reader :payment_intent
|
|
423
404
|
# Attribute for field payment_method_details
|
|
424
405
|
attr_reader :payment_method_details
|
|
425
|
-
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/
|
|
406
|
+
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://docs.stripe.com/disputes/categories).
|
|
426
407
|
attr_reader :reason
|
|
427
|
-
# Attribute for field smart_disputes
|
|
428
|
-
attr_reader :smart_disputes
|
|
429
408
|
# The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, `lost`, or `prevented`.
|
|
430
409
|
attr_reader :status
|
|
431
410
|
|
|
@@ -475,7 +454,6 @@ module Stripe
|
|
|
475
454
|
evidence: Evidence,
|
|
476
455
|
evidence_details: EvidenceDetails,
|
|
477
456
|
payment_method_details: PaymentMethodDetails,
|
|
478
|
-
smart_disputes: SmartDisputes,
|
|
479
457
|
}
|
|
480
458
|
end
|
|
481
459
|
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
"entitlements.active_entitlement"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
# The [Feature](https://stripe.com/
|
|
15
|
+
# The [Feature](https://docs.stripe.com/api/entitlements/feature) that the customer is entitled to.
|
|
16
16
|
attr_reader :feature
|
|
17
17
|
# Unique identifier for the object.
|
|
18
18
|
attr_reader :id
|
|
@@ -29,7 +29,7 @@ module Stripe
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
class Data < ::Stripe::StripeObject
|
|
32
|
-
# Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://stripe.com
|
|
32
|
+
# Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://api.stripe.com#invoice_object) as the value of the object key.
|
|
33
33
|
attr_reader :object
|
|
34
34
|
# Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
|
|
35
35
|
attr_reader :previous_attributes
|
|
@@ -43,67 +43,6 @@ module Stripe
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
class Reason < ::Stripe::StripeObject
|
|
47
|
-
class AutomationAction < ::Stripe::StripeObject
|
|
48
|
-
class StripeSendWebhookCustomEvent < ::Stripe::StripeObject
|
|
49
|
-
# Set of key-value pairs attached to the action when creating an Automation.
|
|
50
|
-
attr_reader :custom_data
|
|
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
|
-
# Attribute for field stripe_send_webhook_custom_event
|
|
61
|
-
attr_reader :stripe_send_webhook_custom_event
|
|
62
|
-
# The trigger name of the automation that triggered this action.
|
|
63
|
-
# Please visit [Revenue and retention automations](https://docs.stripe.com/billing/automations#choose-a-trigger) for all possible trigger names.
|
|
64
|
-
attr_reader :trigger
|
|
65
|
-
# The type of the `automation_action`.
|
|
66
|
-
attr_reader :type
|
|
67
|
-
|
|
68
|
-
def self.inner_class_types
|
|
69
|
-
@inner_class_types = { stripe_send_webhook_custom_event: StripeSendWebhookCustomEvent }
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
def self.field_remappings
|
|
73
|
-
@field_remappings = {}
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
class Request < ::Stripe::StripeObject
|
|
78
|
-
# ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
|
|
79
|
-
attr_reader :id
|
|
80
|
-
# The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
|
|
81
|
-
attr_reader :idempotency_key
|
|
82
|
-
|
|
83
|
-
def self.inner_class_types
|
|
84
|
-
@inner_class_types = {}
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
def self.field_remappings
|
|
88
|
-
@field_remappings = {}
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
# Attribute for field automation_action
|
|
92
|
-
attr_reader :automation_action
|
|
93
|
-
# Attribute for field request
|
|
94
|
-
attr_reader :request
|
|
95
|
-
# The type of the reason for the event.
|
|
96
|
-
attr_reader :type
|
|
97
|
-
|
|
98
|
-
def self.inner_class_types
|
|
99
|
-
@inner_class_types = { automation_action: AutomationAction, request: Request }
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
def self.field_remappings
|
|
103
|
-
@field_remappings = {}
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
|
|
107
46
|
class Request < ::Stripe::StripeObject
|
|
108
47
|
# ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
|
|
109
48
|
attr_reader :id
|
|
@@ -136,8 +75,6 @@ module Stripe
|
|
|
136
75
|
attr_reader :object
|
|
137
76
|
# Number of webhooks that haven't been successfully delivered (for example, to return a 20x response) to the URLs you specify.
|
|
138
77
|
attr_reader :pending_webhooks
|
|
139
|
-
# Information about the action that causes the event. Only present when the event is triggered by an API request or an [Automation](https://docs.stripe.com/billing/automations) action.
|
|
140
|
-
attr_reader :reason
|
|
141
78
|
# Information on the API request that triggers the event.
|
|
142
79
|
attr_reader :request
|
|
143
80
|
# Description of the event (for example, `invoice.created` or `charge.refunded`).
|
|
@@ -149,7 +86,7 @@ module Stripe
|
|
|
149
86
|
end
|
|
150
87
|
|
|
151
88
|
def self.inner_class_types
|
|
152
|
-
@inner_class_types = { data: Data,
|
|
89
|
+
@inner_class_types = { data: Data, request: Request }
|
|
153
90
|
end
|
|
154
91
|
|
|
155
92
|
def self.field_remappings
|
|
@@ -10,13 +10,13 @@ module Stripe
|
|
|
10
10
|
# rate (for example, to dynamically price an item for a user with a default
|
|
11
11
|
# payment in a foreign currency).
|
|
12
12
|
#
|
|
13
|
-
# Please refer to our [Exchange Rates API](https://stripe.com/
|
|
13
|
+
# Please refer to our [Exchange Rates API](https://docs.stripe.com/fx-rates) guide for more details.
|
|
14
14
|
#
|
|
15
15
|
# *[Note: this integration path is supported but no longer recommended]* Additionally,
|
|
16
16
|
# you can guarantee that a charge is made with an exchange rate that you expect is
|
|
17
17
|
# current. To do so, you must pass in the exchange_rate to charges endpoints. If the
|
|
18
18
|
# value is no longer up to date, the charge won't go through. Please refer to our
|
|
19
|
-
# [Using with charges](https://stripe.com/
|
|
19
|
+
# [Using with charges](https://docs.stripe.com/exchange-rates) guide for more details.
|
|
20
20
|
#
|
|
21
21
|
# -----
|
|
22
22
|
#
|