stripe 19.4.0.pre.beta.1 → 19.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +2 -63
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/error_object.rb +43 -19
- data/lib/stripe/errors.rb +0 -87
- data/lib/stripe/event_types.rb +0 -236
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -60
- data/lib/stripe/params/account_create_params.rb +73 -398
- data/lib/stripe/params/account_person_create_params.rb +6 -0
- data/lib/stripe/params/account_person_update_params.rb +6 -0
- data/lib/stripe/params/account_reject_params.rb +4 -1
- data/lib/stripe/params/account_session_create_params.rb +21 -230
- data/lib/stripe/params/{quote_mark_draft_params.rb → account_unreject_params.rb} +1 -1
- data/lib/stripe/params/account_update_params.rb +81 -332
- data/lib/stripe/params/billing/alert_create_params.rb +1 -1
- 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 +24 -133
- data/lib/stripe/params/checkout/session_update_params.rb +1 -176
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -78
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_create_params.rb +1 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/customer_tax_id_create_params.rb +1 -1
- data/lib/stripe/params/dispute_update_params.rb +1 -10
- data/lib/stripe/params/financial_connections/session_create_params.rb +9 -38
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -48
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -70
- data/lib/stripe/params/invoice_create_preview_params.rb +16 -844
- data/lib/stripe/params/invoice_item_create_params.rb +1 -33
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -48
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -48
- data/lib/stripe/params/invoice_update_params.rb +2 -70
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +4 -0
- data/lib/stripe/params/issuing/card_update_params.rb +4 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +137 -3047
- data/lib/stripe/params/payment_intent_create_params.rb +152 -3062
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +105 -3049
- data/lib/stripe/params/payment_link_create_params.rb +0 -15
- data/lib/stripe/params/payment_link_update_params.rb +58 -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 -74
- data/lib/stripe/params/{account_notice_list_params.rb → payment_record_list_params.rb} +15 -5
- data/lib/stripe/params/plan_create_params.rb +0 -15
- data/lib/stripe/params/price_create_params.rb +0 -15
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/product_create_params.rb +0 -16
- data/lib/stripe/params/product_update_params.rb +0 -16
- data/lib/stripe/params/promotion_code_create_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +31 -810
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +32 -818
- data/lib/stripe/params/setup_intent_confirm_params.rb +7 -108
- data/lib/stripe/params/setup_intent_create_params.rb +7 -108
- data/lib/stripe/params/setup_intent_update_params.rb +7 -108
- data/lib/stripe/params/subscription_create_params.rb +6 -170
- data/lib/stripe/params/subscription_item_create_params.rb +2 -62
- data/lib/stripe/params/subscription_item_update_params.rb +1 -45
- data/lib/stripe/params/subscription_resume_params.rb +0 -4
- data/lib/stripe/params/subscription_schedule_create_params.rb +65 -171
- data/lib/stripe/params/subscription_schedule_list_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +66 -172
- data/lib/stripe/params/subscription_update_params.rb +6 -154
- data/lib/stripe/params/tax/calculation_create_params.rb +2 -6
- data/lib/stripe/params/tax/registration_create_params.rb +12 -90
- data/lib/stripe/params/tax_id_create_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/test_helpers/confirmation_token_create_params.rb +0 -78
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +1 -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/token_create_params.rb +78 -0
- 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/outbound_payment_create_params.rb +0 -4
- 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/billing/meter_event_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
- data/lib/stripe/params/v2/core/account_create_params.rb +48 -403
- data/lib/stripe/params/v2/core/account_token_create_params.rb +44 -13
- data/lib/stripe/params/v2/core/account_update_params.rb +48 -396
- data/lib/stripe/params.rb +4 -426
- data/lib/stripe/resources/account.rb +87 -265
- data/lib/stripe/resources/account_session.rb +8 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/billing_portal/configuration.rb +1 -1
- data/lib/stripe/resources/capability.rb +2 -2
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +4 -230
- data/lib/stripe/resources/checkout/session.rb +20 -92
- data/lib/stripe/resources/confirmation_token.rb +1 -132
- data/lib/stripe/resources/coupon.rb +1 -26
- 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 +4 -24
- data/lib/stripe/resources/event.rb +1 -64
- 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 +25 -91
- data/lib/stripe/resources/invoice.rb +2 -118
- 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 +2 -16
- 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 +1 -19
- 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 +3 -179
- data/lib/stripe/resources/payment_intent.rb +23 -1574
- data/lib/stripe/resources/payment_method.rb +3 -154
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +10 -179
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +0 -18
- data/lib/stripe/resources/quote.rb +23 -569
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +6 -18
- data/lib/stripe/resources/reserve/hold.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +0 -35
- data/lib/stripe/resources/setup_intent.rb +3 -38
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +0 -167
- data/lib/stripe/resources/subscription_item.rb +1 -41
- data/lib/stripe/resources/subscription_schedule.rb +49 -200
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +10 -106
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/tax_id.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/token.rb +1 -15
- data/lib/stripe/resources/topup.rb +31 -1
- 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/outbound_payment.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
- data/lib/stripe/resources/treasury/received_credit.rb +0 -30
- data/lib/stripe/resources/treasury/received_debit.rb +0 -32
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +100 -949
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
- data/lib/stripe/resources.rb +0 -425
- data/lib/stripe/services/account_person_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +14 -14
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/dispute_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/payment_method_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +11 -0
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- 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 -56
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal_service.rb +1 -2
- 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_service.rb +1 -3
- data/lib/stripe/services/v2_services.rb +1 -8
- data/lib/stripe/services.rb +0 -209
- data/lib/stripe/stripe_client.rb +1 -8
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/telemetry_id.rb +65 -0
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +2 -54
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -3
- data/rbi/stripe/stripe_client.rbi +0 -13
- data/rbi/stripe.rbi +46727 -112851
- metadata +7 -380
- 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_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_batch_job_validation_failed_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_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_failed_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_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_under_review_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_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_payout_method_created_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 -63
- data/lib/stripe/events/v2_money_management_transaction_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/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/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/product_catalog/trial_offer_create_params.rb +0 -63
- 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_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/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- 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 -67
- 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_pause_params.rb +0 -50
- 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/tax/location_create_params.rb +0 -54
- data/lib/stripe/params/tax/location_list_params.rb +0 -27
- data/lib/stripe/params/tax/location_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_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 -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/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/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 -58
- 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 -37
- 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/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/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/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 -102
- 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 -92
- 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 -88
- 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/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/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 -144
- data/lib/stripe/resources/capital/financing_summary.rb +0 -84
- 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 -927
- 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/product_catalog/trial_offer.rb +0 -106
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1183
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -736
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1801
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/tax/location.rb +0 -72
- 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/batch_job.rb +0 -486
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- 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/financial_address_credit_simulation.rb +0 -29
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
- 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 -160
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -234
- 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 -211
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -232
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- 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/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/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/product_catalog/trial_offer_service.rb +0 -19
- data/lib/stripe/services/product_catalog_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/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -19
- 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/tax/location_service.rb +0 -45
- 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/batch_job_service.rb +0 -43
- 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 -102
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- 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_service.rb +0 -15
- 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/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 -75
- 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 -66
- 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/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/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
- data/lib/stripe/stripe_event_notification_handler.rb +0 -594
|
@@ -5,44 +5,16 @@ module Stripe
|
|
|
5
5
|
class SubscriptionUpdateParams < ::Stripe::RequestParams
|
|
6
6
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
7
7
|
class Discount < ::Stripe::RequestParams
|
|
8
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
9
|
-
class Duration < ::Stripe::RequestParams
|
|
10
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
11
|
-
attr_accessor :interval
|
|
12
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
13
|
-
attr_accessor :interval_count
|
|
14
|
-
|
|
15
|
-
def initialize(interval: nil, interval_count: nil)
|
|
16
|
-
@interval = interval
|
|
17
|
-
@interval_count = interval_count
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
# Time span for the redeemed discount.
|
|
21
|
-
attr_accessor :duration
|
|
22
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
23
|
-
attr_accessor :timestamp
|
|
24
|
-
# The type of calculation made to determine when the discount ends.
|
|
25
|
-
attr_accessor :type
|
|
26
|
-
|
|
27
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
28
|
-
@duration = duration
|
|
29
|
-
@timestamp = timestamp
|
|
30
|
-
@type = type
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
8
|
# ID of the coupon to create a new discount for.
|
|
34
9
|
attr_accessor :coupon
|
|
35
10
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
36
11
|
attr_accessor :discount
|
|
37
|
-
# Details to determine how long the discount should be applied for.
|
|
38
|
-
attr_accessor :discount_end
|
|
39
12
|
# ID of the promotion code to create a new discount for.
|
|
40
13
|
attr_accessor :promotion_code
|
|
41
14
|
|
|
42
|
-
def initialize(coupon: nil, discount: nil,
|
|
15
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
43
16
|
@coupon = coupon
|
|
44
17
|
@discount = discount
|
|
45
|
-
@discount_end = discount_end
|
|
46
18
|
@promotion_code = promotion_code
|
|
47
19
|
end
|
|
48
20
|
end
|
|
@@ -256,44 +228,16 @@ module Stripe
|
|
|
256
228
|
end
|
|
257
229
|
|
|
258
230
|
class Discount < ::Stripe::RequestParams
|
|
259
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
260
|
-
class Duration < ::Stripe::RequestParams
|
|
261
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
262
|
-
attr_accessor :interval
|
|
263
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
264
|
-
attr_accessor :interval_count
|
|
265
|
-
|
|
266
|
-
def initialize(interval: nil, interval_count: nil)
|
|
267
|
-
@interval = interval
|
|
268
|
-
@interval_count = interval_count
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
# Time span for the redeemed discount.
|
|
272
|
-
attr_accessor :duration
|
|
273
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
274
|
-
attr_accessor :timestamp
|
|
275
|
-
# The type of calculation made to determine when the discount ends.
|
|
276
|
-
attr_accessor :type
|
|
277
|
-
|
|
278
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
279
|
-
@duration = duration
|
|
280
|
-
@timestamp = timestamp
|
|
281
|
-
@type = type
|
|
282
|
-
end
|
|
283
|
-
end
|
|
284
231
|
# ID of the coupon to create a new discount for.
|
|
285
232
|
attr_accessor :coupon
|
|
286
233
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
287
234
|
attr_accessor :discount
|
|
288
|
-
# Details to determine how long the discount should be applied for.
|
|
289
|
-
attr_accessor :discount_end
|
|
290
235
|
# ID of the promotion code to create a new discount for.
|
|
291
236
|
attr_accessor :promotion_code
|
|
292
237
|
|
|
293
|
-
def initialize(coupon: nil, discount: nil,
|
|
238
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
294
239
|
@coupon = coupon
|
|
295
240
|
@discount = discount
|
|
296
|
-
@discount_end = discount_end
|
|
297
241
|
@promotion_code = promotion_code
|
|
298
242
|
end
|
|
299
243
|
end
|
|
@@ -358,57 +302,17 @@ module Stripe
|
|
|
358
302
|
end
|
|
359
303
|
end
|
|
360
304
|
|
|
361
|
-
class CurrentTrial < ::Stripe::RequestParams
|
|
362
|
-
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
363
|
-
attr_accessor :trial_end
|
|
364
|
-
# The ID of the trial offer to apply to the subscription item.
|
|
365
|
-
attr_accessor :trial_offer
|
|
366
|
-
|
|
367
|
-
def initialize(trial_end: nil, trial_offer: nil)
|
|
368
|
-
@trial_end = trial_end
|
|
369
|
-
@trial_offer = trial_offer
|
|
370
|
-
end
|
|
371
|
-
end
|
|
372
|
-
|
|
373
305
|
class Discount < ::Stripe::RequestParams
|
|
374
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
375
|
-
class Duration < ::Stripe::RequestParams
|
|
376
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
377
|
-
attr_accessor :interval
|
|
378
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
379
|
-
attr_accessor :interval_count
|
|
380
|
-
|
|
381
|
-
def initialize(interval: nil, interval_count: nil)
|
|
382
|
-
@interval = interval
|
|
383
|
-
@interval_count = interval_count
|
|
384
|
-
end
|
|
385
|
-
end
|
|
386
|
-
# Time span for the redeemed discount.
|
|
387
|
-
attr_accessor :duration
|
|
388
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
389
|
-
attr_accessor :timestamp
|
|
390
|
-
# The type of calculation made to determine when the discount ends.
|
|
391
|
-
attr_accessor :type
|
|
392
|
-
|
|
393
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
394
|
-
@duration = duration
|
|
395
|
-
@timestamp = timestamp
|
|
396
|
-
@type = type
|
|
397
|
-
end
|
|
398
|
-
end
|
|
399
306
|
# ID of the coupon to create a new discount for.
|
|
400
307
|
attr_accessor :coupon
|
|
401
308
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
402
309
|
attr_accessor :discount
|
|
403
|
-
# Details to determine how long the discount should be applied for.
|
|
404
|
-
attr_accessor :discount_end
|
|
405
310
|
# ID of the promotion code to create a new discount for.
|
|
406
311
|
attr_accessor :promotion_code
|
|
407
312
|
|
|
408
|
-
def initialize(coupon: nil, discount: nil,
|
|
313
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
409
314
|
@coupon = coupon
|
|
410
315
|
@discount = discount
|
|
411
|
-
@discount_end = discount_end
|
|
412
316
|
@promotion_code = promotion_code
|
|
413
317
|
end
|
|
414
318
|
end
|
|
@@ -462,8 +366,6 @@ module Stripe
|
|
|
462
366
|
attr_accessor :billing_thresholds
|
|
463
367
|
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
464
368
|
attr_accessor :clear_usage
|
|
465
|
-
# The trial offer to apply to this subscription item.
|
|
466
|
-
attr_accessor :current_trial
|
|
467
369
|
# A flag that, if set to `true`, will delete the specified item.
|
|
468
370
|
attr_accessor :deleted
|
|
469
371
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -486,7 +388,6 @@ module Stripe
|
|
|
486
388
|
def initialize(
|
|
487
389
|
billing_thresholds: nil,
|
|
488
390
|
clear_usage: nil,
|
|
489
|
-
current_trial: nil,
|
|
490
391
|
deleted: nil,
|
|
491
392
|
discounts: nil,
|
|
492
393
|
id: nil,
|
|
@@ -499,7 +400,6 @@ module Stripe
|
|
|
499
400
|
)
|
|
500
401
|
@billing_thresholds = billing_thresholds
|
|
501
402
|
@clear_usage = clear_usage
|
|
502
|
-
@current_trial = current_trial
|
|
503
403
|
@deleted = deleted
|
|
504
404
|
@discounts = discounts
|
|
505
405
|
@id = id
|
|
@@ -561,23 +461,6 @@ module Stripe
|
|
|
561
461
|
end
|
|
562
462
|
end
|
|
563
463
|
|
|
564
|
-
class Blik < ::Stripe::RequestParams
|
|
565
|
-
class MandateOptions < ::Stripe::RequestParams
|
|
566
|
-
# Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
567
|
-
attr_accessor :expires_after
|
|
568
|
-
|
|
569
|
-
def initialize(expires_after: nil)
|
|
570
|
-
@expires_after = expires_after
|
|
571
|
-
end
|
|
572
|
-
end
|
|
573
|
-
# Configuration options for setting up a mandate
|
|
574
|
-
attr_accessor :mandate_options
|
|
575
|
-
|
|
576
|
-
def initialize(mandate_options: nil)
|
|
577
|
-
@mandate_options = mandate_options
|
|
578
|
-
end
|
|
579
|
-
end
|
|
580
|
-
|
|
581
464
|
class Card < ::Stripe::RequestParams
|
|
582
465
|
class MandateOptions < ::Stripe::RequestParams
|
|
583
466
|
# Amount to be charged for future payments, specified in the presentment currency.
|
|
@@ -638,7 +521,6 @@ module Stripe
|
|
|
638
521
|
end
|
|
639
522
|
end
|
|
640
523
|
|
|
641
|
-
class IdBankTransfer < ::Stripe::RequestParams; end
|
|
642
524
|
class Konbini < ::Stripe::RequestParams; end
|
|
643
525
|
|
|
644
526
|
class Payto < ::Stripe::RequestParams
|
|
@@ -728,12 +610,9 @@ module Stripe
|
|
|
728
610
|
class Filters < ::Stripe::RequestParams
|
|
729
611
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
730
612
|
attr_accessor :account_subcategories
|
|
731
|
-
# ID of the institution to use to filter for selectable accounts.
|
|
732
|
-
attr_accessor :institution
|
|
733
613
|
|
|
734
|
-
def initialize(account_subcategories: nil
|
|
614
|
+
def initialize(account_subcategories: nil)
|
|
735
615
|
@account_subcategories = account_subcategories
|
|
736
|
-
@institution = institution
|
|
737
616
|
end
|
|
738
617
|
end
|
|
739
618
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
@@ -763,14 +642,10 @@ module Stripe
|
|
|
763
642
|
attr_accessor :acss_debit
|
|
764
643
|
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
|
|
765
644
|
attr_accessor :bancontact
|
|
766
|
-
# This sub-hash contains details about the Blik payment method options to pass to the invoice’s PaymentIntent.
|
|
767
|
-
attr_accessor :blik
|
|
768
645
|
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
|
|
769
646
|
attr_accessor :card
|
|
770
647
|
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
771
648
|
attr_accessor :customer_balance
|
|
772
|
-
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
773
|
-
attr_accessor :id_bank_transfer
|
|
774
649
|
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
|
775
650
|
attr_accessor :konbini
|
|
776
651
|
# This sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
|
|
@@ -787,10 +662,8 @@ module Stripe
|
|
|
787
662
|
def initialize(
|
|
788
663
|
acss_debit: nil,
|
|
789
664
|
bancontact: nil,
|
|
790
|
-
blik: nil,
|
|
791
665
|
card: nil,
|
|
792
666
|
customer_balance: nil,
|
|
793
|
-
id_bank_transfer: nil,
|
|
794
667
|
konbini: nil,
|
|
795
668
|
payto: nil,
|
|
796
669
|
pix: nil,
|
|
@@ -800,10 +673,8 @@ module Stripe
|
|
|
800
673
|
)
|
|
801
674
|
@acss_debit = acss_debit
|
|
802
675
|
@bancontact = bancontact
|
|
803
|
-
@blik = blik
|
|
804
676
|
@card = card
|
|
805
677
|
@customer_balance = customer_balance
|
|
806
|
-
@id_bank_transfer = id_bank_transfer
|
|
807
678
|
@konbini = konbini
|
|
808
679
|
@payto = payto
|
|
809
680
|
@pix = pix
|
|
@@ -842,18 +713,6 @@ module Stripe
|
|
|
842
713
|
end
|
|
843
714
|
end
|
|
844
715
|
|
|
845
|
-
class Prebilling < ::Stripe::RequestParams
|
|
846
|
-
# This is used to determine the number of billing cycles to prebill.
|
|
847
|
-
attr_accessor :iterations
|
|
848
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
849
|
-
attr_accessor :update_behavior
|
|
850
|
-
|
|
851
|
-
def initialize(iterations: nil, update_behavior: nil)
|
|
852
|
-
@iterations = iterations
|
|
853
|
-
@update_behavior = update_behavior
|
|
854
|
-
end
|
|
855
|
-
end
|
|
856
|
-
|
|
857
716
|
class TransferData < ::Stripe::RequestParams
|
|
858
717
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
859
718
|
attr_accessor :amount_percent
|
|
@@ -868,13 +727,10 @@ module Stripe
|
|
|
868
727
|
|
|
869
728
|
class TrialSettings < ::Stripe::RequestParams
|
|
870
729
|
class EndBehavior < ::Stripe::RequestParams
|
|
871
|
-
# Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
872
|
-
attr_accessor :billing_cycle_anchor
|
|
873
730
|
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
874
731
|
attr_accessor :missing_payment_method
|
|
875
732
|
|
|
876
|
-
def initialize(
|
|
877
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
|
733
|
+
def initialize(missing_payment_method: nil)
|
|
878
734
|
@missing_payment_method = missing_payment_method
|
|
879
735
|
end
|
|
880
736
|
end
|
|
@@ -899,7 +755,7 @@ module Stripe
|
|
|
899
755
|
attr_accessor :billing_thresholds
|
|
900
756
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
|
901
757
|
attr_accessor :cancel_at
|
|
902
|
-
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`).
|
|
758
|
+
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`).
|
|
903
759
|
attr_accessor :cancel_at_period_end
|
|
904
760
|
# Details about why this subscription was cancelled
|
|
905
761
|
attr_accessor :cancellation_details
|
|
@@ -937,8 +793,6 @@ module Stripe
|
|
|
937
793
|
attr_accessor :payment_settings
|
|
938
794
|
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](/api/invoices/create) for the given subscription at the specified interval.
|
|
939
795
|
attr_accessor :pending_invoice_item_interval
|
|
940
|
-
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
941
|
-
attr_accessor :prebilling
|
|
942
796
|
# Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
943
797
|
attr_accessor :proration_behavior
|
|
944
798
|
# If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
|
|
@@ -979,7 +833,6 @@ module Stripe
|
|
|
979
833
|
payment_behavior: nil,
|
|
980
834
|
payment_settings: nil,
|
|
981
835
|
pending_invoice_item_interval: nil,
|
|
982
|
-
prebilling: nil,
|
|
983
836
|
proration_behavior: nil,
|
|
984
837
|
proration_date: nil,
|
|
985
838
|
transfer_data: nil,
|
|
@@ -1013,7 +866,6 @@ module Stripe
|
|
|
1013
866
|
@payment_behavior = payment_behavior
|
|
1014
867
|
@payment_settings = payment_settings
|
|
1015
868
|
@pending_invoice_item_interval = pending_invoice_item_interval
|
|
1016
|
-
@prebilling = prebilling
|
|
1017
869
|
@proration_behavior = proration_behavior
|
|
1018
870
|
@proration_date = proration_date
|
|
1019
871
|
@transfer_data = transfer_data
|
|
@@ -37,7 +37,7 @@ module Stripe
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
class TaxId < ::Stripe::RequestParams
|
|
40
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
40
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
41
41
|
attr_accessor :type
|
|
42
42
|
# Value of the tax ID.
|
|
43
43
|
attr_accessor :value
|
|
@@ -79,8 +79,6 @@ module Stripe
|
|
|
79
79
|
attr_accessor :amount
|
|
80
80
|
# 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.
|
|
81
81
|
attr_accessor :metadata
|
|
82
|
-
# A tax location ID. Depending on the [tax code](/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
83
|
-
attr_accessor :performance_location
|
|
84
82
|
# If provided, the product's `tax_code` will be used as the line item's `tax_code`.
|
|
85
83
|
attr_accessor :product
|
|
86
84
|
# The number of units of the item being purchased. Used to calculate the per-unit price from the total `amount` for the line. For example, if `amount=100` and `quantity=4`, the calculated unit price is 25.
|
|
@@ -95,7 +93,6 @@ module Stripe
|
|
|
95
93
|
def initialize(
|
|
96
94
|
amount: nil,
|
|
97
95
|
metadata: nil,
|
|
98
|
-
performance_location: nil,
|
|
99
96
|
product: nil,
|
|
100
97
|
quantity: nil,
|
|
101
98
|
reference: nil,
|
|
@@ -104,7 +101,6 @@ module Stripe
|
|
|
104
101
|
)
|
|
105
102
|
@amount = amount
|
|
106
103
|
@metadata = metadata
|
|
107
|
-
@performance_location = performance_location
|
|
108
104
|
@product = product
|
|
109
105
|
@quantity = quantity
|
|
110
106
|
@reference = reference
|
|
@@ -183,7 +179,7 @@ module Stripe
|
|
|
183
179
|
attr_accessor :ship_from_details
|
|
184
180
|
# Shipping cost details to be used for the calculation.
|
|
185
181
|
attr_accessor :shipping_cost
|
|
186
|
-
#
|
|
182
|
+
# The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window.
|
|
187
183
|
attr_accessor :tax_date
|
|
188
184
|
|
|
189
185
|
def initialize(
|
|
@@ -1457,51 +1457,6 @@ module Stripe
|
|
|
1457
1457
|
end
|
|
1458
1458
|
|
|
1459
1459
|
class Us < ::Stripe::RequestParams
|
|
1460
|
-
class AdmissionsTax < ::Stripe::RequestParams
|
|
1461
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=admissions_tax#registration-types).
|
|
1462
|
-
attr_accessor :jurisdiction
|
|
1463
|
-
|
|
1464
|
-
def initialize(jurisdiction: nil)
|
|
1465
|
-
@jurisdiction = jurisdiction
|
|
1466
|
-
end
|
|
1467
|
-
end
|
|
1468
|
-
|
|
1469
|
-
class AttendanceTax < ::Stripe::RequestParams
|
|
1470
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=attendance_tax#registration-types).
|
|
1471
|
-
attr_accessor :jurisdiction
|
|
1472
|
-
|
|
1473
|
-
def initialize(jurisdiction: nil)
|
|
1474
|
-
@jurisdiction = jurisdiction
|
|
1475
|
-
end
|
|
1476
|
-
end
|
|
1477
|
-
|
|
1478
|
-
class EntertainmentTax < ::Stripe::RequestParams
|
|
1479
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=entertainment_tax#registration-types).
|
|
1480
|
-
attr_accessor :jurisdiction
|
|
1481
|
-
|
|
1482
|
-
def initialize(jurisdiction: nil)
|
|
1483
|
-
@jurisdiction = jurisdiction
|
|
1484
|
-
end
|
|
1485
|
-
end
|
|
1486
|
-
|
|
1487
|
-
class GrossReceiptsTax < ::Stripe::RequestParams
|
|
1488
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=gross_receipts_tax#registration-types).
|
|
1489
|
-
attr_accessor :jurisdiction
|
|
1490
|
-
|
|
1491
|
-
def initialize(jurisdiction: nil)
|
|
1492
|
-
@jurisdiction = jurisdiction
|
|
1493
|
-
end
|
|
1494
|
-
end
|
|
1495
|
-
|
|
1496
|
-
class HospitalityTax < ::Stripe::RequestParams
|
|
1497
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=hospitality_tax#registration-types).
|
|
1498
|
-
attr_accessor :jurisdiction
|
|
1499
|
-
|
|
1500
|
-
def initialize(jurisdiction: nil)
|
|
1501
|
-
@jurisdiction = jurisdiction
|
|
1502
|
-
end
|
|
1503
|
-
end
|
|
1504
|
-
|
|
1505
1460
|
class LocalAmusementTax < ::Stripe::RequestParams
|
|
1506
1461
|
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=amusement_tax#registration-types).
|
|
1507
1462
|
attr_accessor :jurisdiction
|
|
@@ -1520,8 +1475,8 @@ module Stripe
|
|
|
1520
1475
|
end
|
|
1521
1476
|
end
|
|
1522
1477
|
|
|
1523
|
-
class
|
|
1524
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=
|
|
1478
|
+
class MassTransitParkingTax < ::Stripe::RequestParams
|
|
1479
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=mass_transit_parking_tax#registration-types).
|
|
1525
1480
|
attr_accessor :jurisdiction
|
|
1526
1481
|
|
|
1527
1482
|
def initialize(jurisdiction: nil)
|
|
@@ -1529,8 +1484,8 @@ module Stripe
|
|
|
1529
1484
|
end
|
|
1530
1485
|
end
|
|
1531
1486
|
|
|
1532
|
-
class
|
|
1533
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=
|
|
1487
|
+
class ParkingTax < ::Stripe::RequestParams
|
|
1488
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=parking_tax#registration-types).
|
|
1534
1489
|
attr_accessor :jurisdiction
|
|
1535
1490
|
|
|
1536
1491
|
def initialize(jurisdiction: nil)
|
|
@@ -1557,69 +1512,36 @@ module Stripe
|
|
|
1557
1512
|
@elections = elections
|
|
1558
1513
|
end
|
|
1559
1514
|
end
|
|
1560
|
-
|
|
1561
|
-
class TourismTax < ::Stripe::RequestParams
|
|
1562
|
-
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=tourism_tax#registration-types).
|
|
1563
|
-
attr_accessor :jurisdiction
|
|
1564
|
-
|
|
1565
|
-
def initialize(jurisdiction: nil)
|
|
1566
|
-
@jurisdiction = jurisdiction
|
|
1567
|
-
end
|
|
1568
|
-
end
|
|
1569
|
-
# Options for the admission tax registration.
|
|
1570
|
-
attr_accessor :admissions_tax
|
|
1571
|
-
# Options for the attendance tax registration.
|
|
1572
|
-
attr_accessor :attendance_tax
|
|
1573
|
-
# Options for the entertainment tax registration.
|
|
1574
|
-
attr_accessor :entertainment_tax
|
|
1575
|
-
# Options for the gross receipts tax registration.
|
|
1576
|
-
attr_accessor :gross_receipts_tax
|
|
1577
|
-
# Options for the hospitality tax registration.
|
|
1578
|
-
attr_accessor :hospitality_tax
|
|
1579
1515
|
# Options for the local amusement tax registration.
|
|
1580
1516
|
attr_accessor :local_amusement_tax
|
|
1581
1517
|
# Options for the local lease tax registration.
|
|
1582
1518
|
attr_accessor :local_lease_tax
|
|
1583
|
-
# Options for the
|
|
1584
|
-
attr_accessor :
|
|
1585
|
-
# Options for the
|
|
1586
|
-
attr_accessor :
|
|
1519
|
+
# Options for the mass transit parking tax registration.
|
|
1520
|
+
attr_accessor :mass_transit_parking_tax
|
|
1521
|
+
# Options for the parking tax registration.
|
|
1522
|
+
attr_accessor :parking_tax
|
|
1587
1523
|
# Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1588
1524
|
attr_accessor :state
|
|
1589
1525
|
# Options for the state sales tax registration.
|
|
1590
1526
|
attr_accessor :state_sales_tax
|
|
1591
|
-
# Options for the tourism tax registration.
|
|
1592
|
-
attr_accessor :tourism_tax
|
|
1593
1527
|
# Type of registration to be created in the US.
|
|
1594
1528
|
attr_accessor :type
|
|
1595
1529
|
|
|
1596
1530
|
def initialize(
|
|
1597
|
-
admissions_tax: nil,
|
|
1598
|
-
attendance_tax: nil,
|
|
1599
|
-
entertainment_tax: nil,
|
|
1600
|
-
gross_receipts_tax: nil,
|
|
1601
|
-
hospitality_tax: nil,
|
|
1602
1531
|
local_amusement_tax: nil,
|
|
1603
1532
|
local_lease_tax: nil,
|
|
1604
|
-
|
|
1605
|
-
|
|
1533
|
+
mass_transit_parking_tax: nil,
|
|
1534
|
+
parking_tax: nil,
|
|
1606
1535
|
state: nil,
|
|
1607
1536
|
state_sales_tax: nil,
|
|
1608
|
-
tourism_tax: nil,
|
|
1609
1537
|
type: nil
|
|
1610
1538
|
)
|
|
1611
|
-
@admissions_tax = admissions_tax
|
|
1612
|
-
@attendance_tax = attendance_tax
|
|
1613
|
-
@entertainment_tax = entertainment_tax
|
|
1614
|
-
@gross_receipts_tax = gross_receipts_tax
|
|
1615
|
-
@hospitality_tax = hospitality_tax
|
|
1616
1539
|
@local_amusement_tax = local_amusement_tax
|
|
1617
1540
|
@local_lease_tax = local_lease_tax
|
|
1618
|
-
@
|
|
1619
|
-
@
|
|
1541
|
+
@mass_transit_parking_tax = mass_transit_parking_tax
|
|
1542
|
+
@parking_tax = parking_tax
|
|
1620
1543
|
@state = state
|
|
1621
1544
|
@state_sales_tax = state_sales_tax
|
|
1622
|
-
@tourism_tax = tourism_tax
|
|
1623
1545
|
@type = type
|
|
1624
1546
|
end
|
|
1625
1547
|
end
|
|
@@ -24,7 +24,7 @@ module Stripe
|
|
|
24
24
|
attr_accessor :expand
|
|
25
25
|
# The account or customer the tax ID belongs to. Defaults to `owner[type]=self`.
|
|
26
26
|
attr_accessor :owner
|
|
27
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
27
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
28
28
|
attr_accessor :type
|
|
29
29
|
# Value of the tax ID.
|
|
30
30
|
attr_accessor :value
|
|
@@ -40,15 +40,6 @@ module Stripe
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class ReaderSecurity < ::Stripe::RequestParams
|
|
44
|
-
# Passcode used to access a reader's admin menu.
|
|
45
|
-
attr_accessor :admin_menu_passcode
|
|
46
|
-
|
|
47
|
-
def initialize(admin_menu_passcode: nil)
|
|
48
|
-
@admin_menu_passcode = admin_menu_passcode
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
43
|
class RebootWindow < ::Stripe::RequestParams
|
|
53
44
|
# Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
54
45
|
attr_accessor :end_hour
|
|
@@ -619,8 +610,6 @@ module Stripe
|
|
|
619
610
|
attr_accessor :name
|
|
620
611
|
# Configurations for collecting transactions offline.
|
|
621
612
|
attr_accessor :offline
|
|
622
|
-
# Configurations for reader security settings.
|
|
623
|
-
attr_accessor :reader_security
|
|
624
613
|
# Reboot time settings for readers. that support customized reboot time configuration.
|
|
625
614
|
attr_accessor :reboot_window
|
|
626
615
|
# An object containing device type specific settings for Stripe S700 readers.
|
|
@@ -649,7 +638,6 @@ module Stripe
|
|
|
649
638
|
expand: nil,
|
|
650
639
|
name: nil,
|
|
651
640
|
offline: nil,
|
|
652
|
-
reader_security: nil,
|
|
653
641
|
reboot_window: nil,
|
|
654
642
|
stripe_s700: nil,
|
|
655
643
|
stripe_s710: nil,
|
|
@@ -667,7 +655,6 @@ module Stripe
|
|
|
667
655
|
@expand = expand
|
|
668
656
|
@name = name
|
|
669
657
|
@offline = offline
|
|
670
|
-
@reader_security = reader_security
|
|
671
658
|
@reboot_window = reboot_window
|
|
672
659
|
@stripe_s700 = stripe_s700
|
|
673
660
|
@stripe_s710 = stripe_s710
|
|
@@ -40,15 +40,6 @@ module Stripe
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class ReaderSecurity < ::Stripe::RequestParams
|
|
44
|
-
# Passcode used to access a reader's admin menu.
|
|
45
|
-
attr_accessor :admin_menu_passcode
|
|
46
|
-
|
|
47
|
-
def initialize(admin_menu_passcode: nil)
|
|
48
|
-
@admin_menu_passcode = admin_menu_passcode
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
43
|
class RebootWindow < ::Stripe::RequestParams
|
|
53
44
|
# Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
54
45
|
attr_accessor :end_hour
|
|
@@ -619,8 +610,6 @@ module Stripe
|
|
|
619
610
|
attr_accessor :name
|
|
620
611
|
# Configurations for collecting transactions offline.
|
|
621
612
|
attr_accessor :offline
|
|
622
|
-
# Configurations for reader security settings.
|
|
623
|
-
attr_accessor :reader_security
|
|
624
613
|
# Reboot time settings for readers. that support customized reboot time configuration.
|
|
625
614
|
attr_accessor :reboot_window
|
|
626
615
|
# An object containing device type specific settings for Stripe S700 readers.
|
|
@@ -649,7 +638,6 @@ module Stripe
|
|
|
649
638
|
expand: nil,
|
|
650
639
|
name: nil,
|
|
651
640
|
offline: nil,
|
|
652
|
-
reader_security: nil,
|
|
653
641
|
reboot_window: nil,
|
|
654
642
|
stripe_s700: nil,
|
|
655
643
|
stripe_s710: nil,
|
|
@@ -667,7 +655,6 @@ module Stripe
|
|
|
667
655
|
@expand = expand
|
|
668
656
|
@name = name
|
|
669
657
|
@offline = offline
|
|
670
|
-
@reader_security = reader_security
|
|
671
658
|
@reboot_window = reboot_window
|
|
672
659
|
@stripe_s700 = stripe_s700
|
|
673
660
|
@stripe_s710 = stripe_s710
|