stripe 19.3.0.pre.beta.1 → 19.3.1
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 +9 -37
- 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 -228
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -61
- data/lib/stripe/params/account_create_params.rb +2 -375
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +1 -337
- data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_create_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 +50 -128
- data/lib/stripe/params/checkout/session_update_params.rb +1 -176
- data/lib/stripe/params/confirmation_token_create_params.rb +1 -79
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/credit_note_create_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/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/dispute_update_params.rb +18 -11
- data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
- data/lib/stripe/params/invoice_add_lines_params.rb +2 -49
- 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 +10 -791
- 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 +2 -49
- data/lib/stripe/params/invoice_update_lines_params.rb +2 -49
- data/lib/stripe/params/invoice_update_params.rb +2 -70
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- 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 +116 -3016
- data/lib/stripe/params/payment_intent_create_params.rb +128 -3028
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +86 -3017
- data/lib/stripe/params/payment_link_create_params.rb +1 -16
- 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 +1 -75
- 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/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/setup_intent_confirm_params.rb +4 -109
- data/lib/stripe/params/setup_intent_create_params.rb +4 -109
- data/lib/stripe/params/setup_intent_update_params.rb +4 -109
- data/lib/stripe/params/subscription_create_params.rb +34 -171
- 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 +5 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
- data/lib/stripe/params/subscription_update_params.rb +34 -155
- data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
- data/lib/stripe/params/tax/registration_create_params.rb +0 -104
- 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 +1 -79
- 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/topup_create_params.rb +24 -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/core/account_create_params.rb +18 -282
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -13
- data/lib/stripe/params/v2/core/account_update_params.rb +25 -282
- data/lib/stripe/params.rb +0 -426
- data/lib/stripe/resources/account.rb +1 -259
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_transaction.rb +3 -3
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/charge.rb +7 -211
- data/lib/stripe/resources/checkout/session.rb +53 -75
- data/lib/stripe/resources/confirmation_token.rb +9 -131
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/dispute.rb +32 -22
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +8 -33
- data/lib/stripe/resources/financial_connections/session.rb +1 -125
- data/lib/stripe/resources/invoice.rb +1 -117
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/transaction.rb +0 -2
- 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 +47 -1568
- data/lib/stripe/resources/payment_method.rb +9 -135
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +3 -179
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +0 -18
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/reserve/hold.rb +18 -8
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +16 -35
- data/lib/stripe/resources/setup_intent.rb +1 -22
- data/lib/stripe/resources/source.rb +0 -38
- data/lib/stripe/resources/subscription.rb +23 -169
- data/lib/stripe/resources/subscription_item.rb +1 -41
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +0 -128
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- 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/commerce/product_catalog_import.rb +2 -0
- data/lib/stripe/resources/v2/core/account.rb +155 -717
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
- data/lib/stripe/resources.rb +0 -417
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/balance_transaction_service.rb +2 -2
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/credit_note_service.rb +2 -0
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -11
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +1 -57
- 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 +52694 -118800
- metadata +8 -382
- 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_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_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_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_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/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_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/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 -58
- 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 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
- 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 -1792
- 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 -488
- 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 -219
- 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 -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 -230
- 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 -101
- 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 -582
data/lib/stripe/services.rb
CHANGED
|
@@ -6,7 +6,6 @@ module Stripe
|
|
|
6
6
|
autoload :AccountExternalAccountService, "stripe/services/account_external_account_service"
|
|
7
7
|
autoload :AccountLinkService, "stripe/services/account_link_service"
|
|
8
8
|
autoload :AccountLoginLinkService, "stripe/services/account_login_link_service"
|
|
9
|
-
autoload :AccountNoticeService, "stripe/services/account_notice_service"
|
|
10
9
|
autoload :AccountPersonService, "stripe/services/account_person_service"
|
|
11
10
|
autoload :AccountService, "stripe/services/account_service"
|
|
12
11
|
autoload :AccountSessionService, "stripe/services/account_session_service"
|
|
@@ -19,7 +18,6 @@ module Stripe
|
|
|
19
18
|
autoload :BalanceTransactionService, "stripe/services/balance_transaction_service"
|
|
20
19
|
autoload :BillingPortalService, "stripe/services/billing_portal_service"
|
|
21
20
|
autoload :BillingService, "stripe/services/billing_service"
|
|
22
|
-
autoload :CapitalService, "stripe/services/capital_service"
|
|
23
21
|
autoload :ChargeService, "stripe/services/charge_service"
|
|
24
22
|
autoload :CheckoutService, "stripe/services/checkout_service"
|
|
25
23
|
autoload :ClimateService, "stripe/services/climate_service"
|
|
@@ -43,12 +41,10 @@ module Stripe
|
|
|
43
41
|
autoload :EphemeralKeyService, "stripe/services/ephemeral_key_service"
|
|
44
42
|
autoload :EventService, "stripe/services/event_service"
|
|
45
43
|
autoload :ExchangeRateService, "stripe/services/exchange_rate_service"
|
|
46
|
-
autoload :ExternalAccountService, "stripe/services/external_account_service"
|
|
47
44
|
autoload :FileLinkService, "stripe/services/file_link_service"
|
|
48
45
|
autoload :FileService, "stripe/services/file_service"
|
|
49
46
|
autoload :FinancialConnectionsService, "stripe/services/financial_connections_service"
|
|
50
47
|
autoload :ForwardingService, "stripe/services/forwarding_service"
|
|
51
|
-
autoload :FxQuoteService, "stripe/services/fx_quote_service"
|
|
52
48
|
autoload :IdentityService, "stripe/services/identity_service"
|
|
53
49
|
autoload :InvoiceItemService, "stripe/services/invoice_item_service"
|
|
54
50
|
autoload :InvoiceLineItemService, "stripe/services/invoice_line_item_service"
|
|
@@ -57,8 +53,6 @@ module Stripe
|
|
|
57
53
|
autoload :InvoiceService, "stripe/services/invoice_service"
|
|
58
54
|
autoload :IssuingService, "stripe/services/issuing_service"
|
|
59
55
|
autoload :MandateService, "stripe/services/mandate_service"
|
|
60
|
-
autoload :MarginService, "stripe/services/margin_service"
|
|
61
|
-
autoload :OrderService, "stripe/services/order_service"
|
|
62
56
|
autoload :PaymentAttemptRecordService, "stripe/services/payment_attempt_record_service"
|
|
63
57
|
autoload :PaymentIntentAmountDetailsLineItemService, "stripe/services/payment_intent_amount_details_line_item_service"
|
|
64
58
|
autoload :PaymentIntentService, "stripe/services/payment_intent_service"
|
|
@@ -71,25 +65,18 @@ module Stripe
|
|
|
71
65
|
autoload :PayoutService, "stripe/services/payout_service"
|
|
72
66
|
autoload :PlanService, "stripe/services/plan_service"
|
|
73
67
|
autoload :PriceService, "stripe/services/price_service"
|
|
74
|
-
autoload :PrivacyService, "stripe/services/privacy_service"
|
|
75
|
-
autoload :ProductCatalogService, "stripe/services/product_catalog_service"
|
|
76
68
|
autoload :ProductFeatureService, "stripe/services/product_feature_service"
|
|
77
69
|
autoload :ProductService, "stripe/services/product_service"
|
|
78
70
|
autoload :PromotionCodeService, "stripe/services/promotion_code_service"
|
|
79
71
|
autoload :QuoteComputedUpfrontLineItemsService, "stripe/services/quote_computed_upfront_line_items_service"
|
|
80
72
|
autoload :QuoteLineItemService, "stripe/services/quote_line_item_service"
|
|
81
|
-
autoload :QuoteLineService, "stripe/services/quote_line_service"
|
|
82
|
-
autoload :QuotePreviewInvoiceService, "stripe/services/quote_preview_invoice_service"
|
|
83
|
-
autoload :QuotePreviewSubscriptionScheduleService, "stripe/services/quote_preview_subscription_schedule_service"
|
|
84
73
|
autoload :QuoteService, "stripe/services/quote_service"
|
|
85
74
|
autoload :RadarService, "stripe/services/radar_service"
|
|
86
75
|
autoload :RefundService, "stripe/services/refund_service"
|
|
87
76
|
autoload :ReportingService, "stripe/services/reporting_service"
|
|
88
|
-
autoload :ReserveService, "stripe/services/reserve_service"
|
|
89
77
|
autoload :ReviewService, "stripe/services/review_service"
|
|
90
78
|
autoload :SetupAttemptService, "stripe/services/setup_attempt_service"
|
|
91
79
|
autoload :SetupIntentService, "stripe/services/setup_intent_service"
|
|
92
|
-
autoload :SharedPaymentService, "stripe/services/shared_payment_service"
|
|
93
80
|
autoload :ShippingRateService, "stripe/services/shipping_rate_service"
|
|
94
81
|
autoload :SigmaService, "stripe/services/sigma_service"
|
|
95
82
|
autoload :SourceService, "stripe/services/source_service"
|
|
@@ -118,7 +105,6 @@ module Stripe
|
|
|
118
105
|
|
|
119
106
|
module Billing
|
|
120
107
|
autoload :AlertService, "stripe/services/billing/alert_service"
|
|
121
|
-
autoload :AnalyticsService, "stripe/services/billing/analytics_service"
|
|
122
108
|
autoload :CreditBalanceSummaryService, "stripe/services/billing/credit_balance_summary_service"
|
|
123
109
|
autoload :CreditBalanceTransactionService, "stripe/services/billing/credit_balance_transaction_service"
|
|
124
110
|
autoload :CreditGrantService, "stripe/services/billing/credit_grant_service"
|
|
@@ -126,10 +112,6 @@ module Stripe
|
|
|
126
112
|
autoload :MeterEventService, "stripe/services/billing/meter_event_service"
|
|
127
113
|
autoload :MeterEventSummaryService, "stripe/services/billing/meter_event_summary_service"
|
|
128
114
|
autoload :MeterService, "stripe/services/billing/meter_service"
|
|
129
|
-
|
|
130
|
-
module Analytics
|
|
131
|
-
autoload :MeterUsageService, "stripe/services/billing/analytics/meter_usage_service"
|
|
132
|
-
end
|
|
133
115
|
end
|
|
134
116
|
|
|
135
117
|
module BillingPortal
|
|
@@ -137,12 +119,6 @@ module Stripe
|
|
|
137
119
|
autoload :SessionService, "stripe/services/billing_portal/session_service"
|
|
138
120
|
end
|
|
139
121
|
|
|
140
|
-
module Capital
|
|
141
|
-
autoload :FinancingOfferService, "stripe/services/capital/financing_offer_service"
|
|
142
|
-
autoload :FinancingSummaryService, "stripe/services/capital/financing_summary_service"
|
|
143
|
-
autoload :FinancingTransactionService, "stripe/services/capital/financing_transaction_service"
|
|
144
|
-
end
|
|
145
|
-
|
|
146
122
|
module Checkout
|
|
147
123
|
autoload :SessionLineItemService, "stripe/services/checkout/session_line_item_service"
|
|
148
124
|
autoload :SessionService, "stripe/services/checkout/session_service"
|
|
@@ -160,11 +136,8 @@ module Stripe
|
|
|
160
136
|
end
|
|
161
137
|
|
|
162
138
|
module FinancialConnections
|
|
163
|
-
autoload :AccountInferredBalanceService, "stripe/services/financial_connections/account_inferred_balance_service"
|
|
164
139
|
autoload :AccountOwnerService, "stripe/services/financial_connections/account_owner_service"
|
|
165
140
|
autoload :AccountService, "stripe/services/financial_connections/account_service"
|
|
166
|
-
autoload :AuthorizationService, "stripe/services/financial_connections/authorization_service"
|
|
167
|
-
autoload :InstitutionService, "stripe/services/financial_connections/institution_service"
|
|
168
141
|
autoload :SessionService, "stripe/services/financial_connections/session_service"
|
|
169
142
|
autoload :TransactionService, "stripe/services/financial_connections/transaction_service"
|
|
170
143
|
end
|
|
@@ -182,25 +155,13 @@ module Stripe
|
|
|
182
155
|
autoload :AuthorizationService, "stripe/services/issuing/authorization_service"
|
|
183
156
|
autoload :CardholderService, "stripe/services/issuing/cardholder_service"
|
|
184
157
|
autoload :CardService, "stripe/services/issuing/card_service"
|
|
185
|
-
autoload :CreditUnderwritingRecordService, "stripe/services/issuing/credit_underwriting_record_service"
|
|
186
158
|
autoload :DisputeService, "stripe/services/issuing/dispute_service"
|
|
187
|
-
autoload :DisputeSettlementDetailService, "stripe/services/issuing/dispute_settlement_detail_service"
|
|
188
|
-
autoload :FraudLiabilityDebitService, "stripe/services/issuing/fraud_liability_debit_service"
|
|
189
159
|
autoload :PersonalizationDesignService, "stripe/services/issuing/personalization_design_service"
|
|
190
160
|
autoload :PhysicalBundleService, "stripe/services/issuing/physical_bundle_service"
|
|
191
161
|
autoload :TokenService, "stripe/services/issuing/token_service"
|
|
192
162
|
autoload :TransactionService, "stripe/services/issuing/transaction_service"
|
|
193
163
|
end
|
|
194
164
|
|
|
195
|
-
module Privacy
|
|
196
|
-
autoload :RedactionJobService, "stripe/services/privacy/redaction_job_service"
|
|
197
|
-
autoload :RedactionJobValidationErrorService, "stripe/services/privacy/redaction_job_validation_error_service"
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
module ProductCatalog
|
|
201
|
-
autoload :TrialOfferService, "stripe/services/product_catalog/trial_offer_service"
|
|
202
|
-
end
|
|
203
|
-
|
|
204
165
|
module Radar
|
|
205
166
|
autoload :EarlyFraudWarningService, "stripe/services/radar/early_fraud_warning_service"
|
|
206
167
|
autoload :PaymentEvaluationService, "stripe/services/radar/payment_evaluation_service"
|
|
@@ -213,17 +174,6 @@ module Stripe
|
|
|
213
174
|
autoload :ReportTypeService, "stripe/services/reporting/report_type_service"
|
|
214
175
|
end
|
|
215
176
|
|
|
216
|
-
module Reserve
|
|
217
|
-
autoload :HoldService, "stripe/services/reserve/hold_service"
|
|
218
|
-
autoload :PlanService, "stripe/services/reserve/plan_service"
|
|
219
|
-
autoload :ReleaseService, "stripe/services/reserve/release_service"
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
module SharedPayment
|
|
223
|
-
autoload :GrantedTokenService, "stripe/services/shared_payment/granted_token_service"
|
|
224
|
-
autoload :IssuedTokenService, "stripe/services/shared_payment/issued_token_service"
|
|
225
|
-
end
|
|
226
|
-
|
|
227
177
|
module Sigma
|
|
228
178
|
autoload :ScheduledQueryRunService, "stripe/services/sigma/scheduled_query_run_service"
|
|
229
179
|
end
|
|
@@ -232,8 +182,6 @@ module Stripe
|
|
|
232
182
|
autoload :AssociationService, "stripe/services/tax/association_service"
|
|
233
183
|
autoload :CalculationLineItemService, "stripe/services/tax/calculation_line_item_service"
|
|
234
184
|
autoload :CalculationService, "stripe/services/tax/calculation_service"
|
|
235
|
-
autoload :FormService, "stripe/services/tax/form_service"
|
|
236
|
-
autoload :LocationService, "stripe/services/tax/location_service"
|
|
237
185
|
autoload :RegistrationService, "stripe/services/tax/registration_service"
|
|
238
186
|
autoload :SettingsService, "stripe/services/tax/settings_service"
|
|
239
187
|
autoload :TransactionLineItemService, "stripe/services/tax/transaction_line_item_service"
|
|
@@ -245,7 +193,6 @@ module Stripe
|
|
|
245
193
|
autoload :ConnectionTokenService, "stripe/services/terminal/connection_token_service"
|
|
246
194
|
autoload :LocationService, "stripe/services/terminal/location_service"
|
|
247
195
|
autoload :OnboardingLinkService, "stripe/services/terminal/onboarding_link_service"
|
|
248
|
-
autoload :ReaderCollectedDataService, "stripe/services/terminal/reader_collected_data_service"
|
|
249
196
|
autoload :ReaderService, "stripe/services/terminal/reader_service"
|
|
250
197
|
end
|
|
251
198
|
|
|
@@ -254,7 +201,6 @@ module Stripe
|
|
|
254
201
|
autoload :CustomerService, "stripe/services/test_helpers/customer_service"
|
|
255
202
|
autoload :IssuingService, "stripe/services/test_helpers/issuing_service"
|
|
256
203
|
autoload :RefundService, "stripe/services/test_helpers/refund_service"
|
|
257
|
-
autoload :SharedPaymentService, "stripe/services/test_helpers/shared_payment_service"
|
|
258
204
|
autoload :TerminalService, "stripe/services/test_helpers/terminal_service"
|
|
259
205
|
autoload :TestClockService, "stripe/services/test_helpers/test_clock_service"
|
|
260
206
|
autoload :TreasuryService, "stripe/services/test_helpers/treasury_service"
|
|
@@ -266,10 +212,6 @@ module Stripe
|
|
|
266
212
|
autoload :TransactionService, "stripe/services/test_helpers/issuing/transaction_service"
|
|
267
213
|
end
|
|
268
214
|
|
|
269
|
-
module SharedPayment
|
|
270
|
-
autoload :GrantedTokenService, "stripe/services/test_helpers/shared_payment/granted_token_service"
|
|
271
|
-
end
|
|
272
|
-
|
|
273
215
|
module Terminal
|
|
274
216
|
autoload :ReaderService, "stripe/services/test_helpers/terminal/reader_service"
|
|
275
217
|
end
|
|
@@ -301,31 +243,12 @@ module Stripe
|
|
|
301
243
|
autoload :BillingService, "stripe/services/v2/billing_service"
|
|
302
244
|
autoload :CommerceService, "stripe/services/v2/commerce_service"
|
|
303
245
|
autoload :CoreService, "stripe/services/v2/core_service"
|
|
304
|
-
autoload :DataService, "stripe/services/v2/data_service"
|
|
305
|
-
autoload :ExtendService, "stripe/services/v2/extend_service"
|
|
306
|
-
autoload :IamService, "stripe/services/v2/iam_service"
|
|
307
|
-
autoload :MoneyManagementService, "stripe/services/v2/money_management_service"
|
|
308
|
-
autoload :NetworkService, "stripe/services/v2/network_service"
|
|
309
|
-
autoload :OrchestratedCommerceService, "stripe/services/v2/orchestrated_commerce_service"
|
|
310
|
-
autoload :TestHelperService, "stripe/services/v2/test_helper_service"
|
|
311
246
|
|
|
312
247
|
module Billing
|
|
313
|
-
autoload :BillSettingService, "stripe/services/v2/billing/bill_setting_service"
|
|
314
|
-
autoload :CadenceService, "stripe/services/v2/billing/cadence_service"
|
|
315
|
-
autoload :CollectionSettingService, "stripe/services/v2/billing/collection_setting_service"
|
|
316
248
|
autoload :MeterEventAdjustmentService, "stripe/services/v2/billing/meter_event_adjustment_service"
|
|
317
249
|
autoload :MeterEventService, "stripe/services/v2/billing/meter_event_service"
|
|
318
250
|
autoload :MeterEventSessionService, "stripe/services/v2/billing/meter_event_session_service"
|
|
319
251
|
autoload :MeterEventStreamService, "stripe/services/v2/billing/meter_event_stream_service"
|
|
320
|
-
autoload :ProfileService, "stripe/services/v2/billing/profile_service"
|
|
321
|
-
|
|
322
|
-
module BillSettings
|
|
323
|
-
autoload :VersionService, "stripe/services/v2/billing/bill_settings/version_service"
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
module CollectionSettings
|
|
327
|
-
autoload :VersionService, "stripe/services/v2/billing/collection_settings/version_service"
|
|
328
|
-
end
|
|
329
252
|
end
|
|
330
253
|
|
|
331
254
|
module Commerce
|
|
@@ -340,79 +263,23 @@ module Stripe
|
|
|
340
263
|
autoload :AccountLinkService, "stripe/services/v2/core/account_link_service"
|
|
341
264
|
autoload :AccountService, "stripe/services/v2/core/account_service"
|
|
342
265
|
autoload :AccountTokenService, "stripe/services/v2/core/account_token_service"
|
|
343
|
-
autoload :BatchJobService, "stripe/services/v2/core/batch_job_service"
|
|
344
266
|
autoload :EventDestinationService, "stripe/services/v2/core/event_destination_service"
|
|
345
267
|
autoload :EventService, "stripe/services/v2/core/event_service"
|
|
346
|
-
autoload :VaultService, "stripe/services/v2/core/vault_service"
|
|
347
268
|
|
|
348
269
|
module Accounts
|
|
349
270
|
autoload :PersonService, "stripe/services/v2/core/accounts/person_service"
|
|
350
271
|
autoload :PersonTokenService, "stripe/services/v2/core/accounts/person_token_service"
|
|
351
272
|
end
|
|
352
|
-
|
|
353
|
-
module Vault
|
|
354
|
-
autoload :GbBankAccountService, "stripe/services/v2/core/vault/gb_bank_account_service"
|
|
355
|
-
autoload :UsBankAccountService, "stripe/services/v2/core/vault/us_bank_account_service"
|
|
356
|
-
end
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
module Data
|
|
360
|
-
autoload :ReportingService, "stripe/services/v2/data/reporting_service"
|
|
361
|
-
|
|
362
|
-
module Reporting
|
|
363
|
-
autoload :QueryRunService, "stripe/services/v2/data/reporting/query_run_service"
|
|
364
|
-
end
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
module Extend
|
|
368
|
-
autoload :WorkflowRunService, "stripe/services/v2/extend/workflow_run_service"
|
|
369
|
-
autoload :WorkflowService, "stripe/services/v2/extend/workflow_service"
|
|
370
|
-
end
|
|
371
|
-
|
|
372
|
-
module Iam
|
|
373
|
-
autoload :ActivityLogService, "stripe/services/v2/iam/activity_log_service"
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
module MoneyManagement
|
|
377
|
-
autoload :AdjustmentService, "stripe/services/v2/money_management/adjustment_service"
|
|
378
|
-
autoload :FinancialAccountService, "stripe/services/v2/money_management/financial_account_service"
|
|
379
|
-
autoload :FinancialAddressService, "stripe/services/v2/money_management/financial_address_service"
|
|
380
|
-
autoload :InboundTransferService, "stripe/services/v2/money_management/inbound_transfer_service"
|
|
381
|
-
autoload :OutboundPaymentQuoteService, "stripe/services/v2/money_management/outbound_payment_quote_service"
|
|
382
|
-
autoload :OutboundPaymentService, "stripe/services/v2/money_management/outbound_payment_service"
|
|
383
|
-
autoload :OutboundSetupIntentService, "stripe/services/v2/money_management/outbound_setup_intent_service"
|
|
384
|
-
autoload :OutboundTransferService, "stripe/services/v2/money_management/outbound_transfer_service"
|
|
385
|
-
autoload :PayoutMethodsBankAccountSpecService,
|
|
386
|
-
"stripe/services/v2/money_management/payout_methods_bank_account_spec_service"
|
|
387
|
-
autoload :PayoutMethodService, "stripe/services/v2/money_management/payout_method_service"
|
|
388
|
-
autoload :ReceivedCreditService, "stripe/services/v2/money_management/received_credit_service"
|
|
389
|
-
autoload :ReceivedDebitService, "stripe/services/v2/money_management/received_debit_service"
|
|
390
|
-
autoload :TransactionEntryService, "stripe/services/v2/money_management/transaction_entry_service"
|
|
391
|
-
autoload :TransactionService, "stripe/services/v2/money_management/transaction_service"
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
module Network
|
|
395
|
-
autoload :BusinessProfileService, "stripe/services/v2/network/business_profile_service"
|
|
396
|
-
end
|
|
397
|
-
|
|
398
|
-
module OrchestratedCommerce
|
|
399
|
-
autoload :AgreementService, "stripe/services/v2/orchestrated_commerce/agreement_service"
|
|
400
|
-
end
|
|
401
|
-
|
|
402
|
-
module TestHelpers
|
|
403
|
-
autoload :FinancialAddressService, "stripe/services/v2/test_helpers/financial_address_service"
|
|
404
273
|
end
|
|
405
274
|
end
|
|
406
275
|
end
|
|
407
276
|
|
|
408
277
|
module Stripe
|
|
409
|
-
# rubocop:disable Metrics/CollectionLiteralLength
|
|
410
278
|
SERVICE_FILES = %w[
|
|
411
279
|
stripe/services/account_capability_service
|
|
412
280
|
stripe/services/account_external_account_service
|
|
413
281
|
stripe/services/account_link_service
|
|
414
282
|
stripe/services/account_login_link_service
|
|
415
|
-
stripe/services/account_notice_service
|
|
416
283
|
stripe/services/account_person_service
|
|
417
284
|
stripe/services/account_service
|
|
418
285
|
stripe/services/account_session_service
|
|
@@ -425,8 +292,6 @@ module Stripe
|
|
|
425
292
|
stripe/services/balance_settings_service
|
|
426
293
|
stripe/services/balance_transaction_service
|
|
427
294
|
stripe/services/billing/alert_service
|
|
428
|
-
stripe/services/billing/analytics/meter_usage_service
|
|
429
|
-
stripe/services/billing/analytics_service
|
|
430
295
|
stripe/services/billing/credit_balance_summary_service
|
|
431
296
|
stripe/services/billing/credit_balance_transaction_service
|
|
432
297
|
stripe/services/billing/credit_grant_service
|
|
@@ -438,10 +303,6 @@ module Stripe
|
|
|
438
303
|
stripe/services/billing_portal/session_service
|
|
439
304
|
stripe/services/billing_portal_service
|
|
440
305
|
stripe/services/billing_service
|
|
441
|
-
stripe/services/capital/financing_offer_service
|
|
442
|
-
stripe/services/capital/financing_summary_service
|
|
443
|
-
stripe/services/capital/financing_transaction_service
|
|
444
|
-
stripe/services/capital_service
|
|
445
306
|
stripe/services/charge_service
|
|
446
307
|
stripe/services/checkout/session_line_item_service
|
|
447
308
|
stripe/services/checkout/session_service
|
|
@@ -472,20 +333,15 @@ module Stripe
|
|
|
472
333
|
stripe/services/ephemeral_key_service
|
|
473
334
|
stripe/services/event_service
|
|
474
335
|
stripe/services/exchange_rate_service
|
|
475
|
-
stripe/services/external_account_service
|
|
476
336
|
stripe/services/file_link_service
|
|
477
337
|
stripe/services/file_service
|
|
478
|
-
stripe/services/financial_connections/account_inferred_balance_service
|
|
479
338
|
stripe/services/financial_connections/account_owner_service
|
|
480
339
|
stripe/services/financial_connections/account_service
|
|
481
|
-
stripe/services/financial_connections/authorization_service
|
|
482
|
-
stripe/services/financial_connections/institution_service
|
|
483
340
|
stripe/services/financial_connections/session_service
|
|
484
341
|
stripe/services/financial_connections/transaction_service
|
|
485
342
|
stripe/services/financial_connections_service
|
|
486
343
|
stripe/services/forwarding/request_service
|
|
487
344
|
stripe/services/forwarding_service
|
|
488
|
-
stripe/services/fx_quote_service
|
|
489
345
|
stripe/services/identity/verification_report_service
|
|
490
346
|
stripe/services/identity/verification_session_service
|
|
491
347
|
stripe/services/identity_service
|
|
@@ -497,18 +353,13 @@ module Stripe
|
|
|
497
353
|
stripe/services/issuing/authorization_service
|
|
498
354
|
stripe/services/issuing/card_service
|
|
499
355
|
stripe/services/issuing/cardholder_service
|
|
500
|
-
stripe/services/issuing/credit_underwriting_record_service
|
|
501
356
|
stripe/services/issuing/dispute_service
|
|
502
|
-
stripe/services/issuing/dispute_settlement_detail_service
|
|
503
|
-
stripe/services/issuing/fraud_liability_debit_service
|
|
504
357
|
stripe/services/issuing/personalization_design_service
|
|
505
358
|
stripe/services/issuing/physical_bundle_service
|
|
506
359
|
stripe/services/issuing/token_service
|
|
507
360
|
stripe/services/issuing/transaction_service
|
|
508
361
|
stripe/services/issuing_service
|
|
509
362
|
stripe/services/mandate_service
|
|
510
|
-
stripe/services/margin_service
|
|
511
|
-
stripe/services/order_service
|
|
512
363
|
stripe/services/payment_attempt_record_service
|
|
513
364
|
stripe/services/payment_intent_amount_details_line_item_service
|
|
514
365
|
stripe/services/payment_intent_service
|
|
@@ -521,19 +372,11 @@ module Stripe
|
|
|
521
372
|
stripe/services/payout_service
|
|
522
373
|
stripe/services/plan_service
|
|
523
374
|
stripe/services/price_service
|
|
524
|
-
stripe/services/privacy/redaction_job_service
|
|
525
|
-
stripe/services/privacy/redaction_job_validation_error_service
|
|
526
|
-
stripe/services/privacy_service
|
|
527
|
-
stripe/services/product_catalog/trial_offer_service
|
|
528
|
-
stripe/services/product_catalog_service
|
|
529
375
|
stripe/services/product_feature_service
|
|
530
376
|
stripe/services/product_service
|
|
531
377
|
stripe/services/promotion_code_service
|
|
532
378
|
stripe/services/quote_computed_upfront_line_items_service
|
|
533
379
|
stripe/services/quote_line_item_service
|
|
534
|
-
stripe/services/quote_line_service
|
|
535
|
-
stripe/services/quote_preview_invoice_service
|
|
536
|
-
stripe/services/quote_preview_subscription_schedule_service
|
|
537
380
|
stripe/services/quote_service
|
|
538
381
|
stripe/services/radar/early_fraud_warning_service
|
|
539
382
|
stripe/services/radar/payment_evaluation_service
|
|
@@ -544,16 +387,9 @@ module Stripe
|
|
|
544
387
|
stripe/services/reporting/report_run_service
|
|
545
388
|
stripe/services/reporting/report_type_service
|
|
546
389
|
stripe/services/reporting_service
|
|
547
|
-
stripe/services/reserve/hold_service
|
|
548
|
-
stripe/services/reserve/plan_service
|
|
549
|
-
stripe/services/reserve/release_service
|
|
550
|
-
stripe/services/reserve_service
|
|
551
390
|
stripe/services/review_service
|
|
552
391
|
stripe/services/setup_attempt_service
|
|
553
392
|
stripe/services/setup_intent_service
|
|
554
|
-
stripe/services/shared_payment/granted_token_service
|
|
555
|
-
stripe/services/shared_payment/issued_token_service
|
|
556
|
-
stripe/services/shared_payment_service
|
|
557
393
|
stripe/services/shipping_rate_service
|
|
558
394
|
stripe/services/sigma/scheduled_query_run_service
|
|
559
395
|
stripe/services/sigma_service
|
|
@@ -565,8 +401,6 @@ module Stripe
|
|
|
565
401
|
stripe/services/tax/association_service
|
|
566
402
|
stripe/services/tax/calculation_line_item_service
|
|
567
403
|
stripe/services/tax/calculation_service
|
|
568
|
-
stripe/services/tax/form_service
|
|
569
|
-
stripe/services/tax/location_service
|
|
570
404
|
stripe/services/tax/registration_service
|
|
571
405
|
stripe/services/tax/settings_service
|
|
572
406
|
stripe/services/tax/transaction_line_item_service
|
|
@@ -579,7 +413,6 @@ module Stripe
|
|
|
579
413
|
stripe/services/terminal/connection_token_service
|
|
580
414
|
stripe/services/terminal/location_service
|
|
581
415
|
stripe/services/terminal/onboarding_link_service
|
|
582
|
-
stripe/services/terminal/reader_collected_data_service
|
|
583
416
|
stripe/services/terminal/reader_service
|
|
584
417
|
stripe/services/terminal_service
|
|
585
418
|
stripe/services/test_helpers/confirmation_token_service
|
|
@@ -590,8 +423,6 @@ module Stripe
|
|
|
590
423
|
stripe/services/test_helpers/issuing/transaction_service
|
|
591
424
|
stripe/services/test_helpers/issuing_service
|
|
592
425
|
stripe/services/test_helpers/refund_service
|
|
593
|
-
stripe/services/test_helpers/shared_payment/granted_token_service
|
|
594
|
-
stripe/services/test_helpers/shared_payment_service
|
|
595
426
|
stripe/services/test_helpers/terminal/reader_service
|
|
596
427
|
stripe/services/test_helpers/terminal_service
|
|
597
428
|
stripe/services/test_helpers/test_clock_service
|
|
@@ -619,16 +450,10 @@ module Stripe
|
|
|
619
450
|
stripe/services/treasury/transaction_service
|
|
620
451
|
stripe/services/treasury_service
|
|
621
452
|
stripe/services/v1_services
|
|
622
|
-
stripe/services/v2/billing/bill_setting_service
|
|
623
|
-
stripe/services/v2/billing/bill_settings/version_service
|
|
624
|
-
stripe/services/v2/billing/cadence_service
|
|
625
|
-
stripe/services/v2/billing/collection_setting_service
|
|
626
|
-
stripe/services/v2/billing/collection_settings/version_service
|
|
627
453
|
stripe/services/v2/billing/meter_event_adjustment_service
|
|
628
454
|
stripe/services/v2/billing/meter_event_service
|
|
629
455
|
stripe/services/v2/billing/meter_event_session_service
|
|
630
456
|
stripe/services/v2/billing/meter_event_stream_service
|
|
631
|
-
stripe/services/v2/billing/profile_service
|
|
632
457
|
stripe/services/v2/billing_service
|
|
633
458
|
stripe/services/v2/commerce/product_catalog/import_service
|
|
634
459
|
stripe/services/v2/commerce/product_catalog_service
|
|
@@ -638,44 +463,10 @@ module Stripe
|
|
|
638
463
|
stripe/services/v2/core/account_token_service
|
|
639
464
|
stripe/services/v2/core/accounts/person_service
|
|
640
465
|
stripe/services/v2/core/accounts/person_token_service
|
|
641
|
-
stripe/services/v2/core/batch_job_service
|
|
642
466
|
stripe/services/v2/core/event_destination_service
|
|
643
467
|
stripe/services/v2/core/event_service
|
|
644
|
-
stripe/services/v2/core/vault/gb_bank_account_service
|
|
645
|
-
stripe/services/v2/core/vault/us_bank_account_service
|
|
646
|
-
stripe/services/v2/core/vault_service
|
|
647
468
|
stripe/services/v2/core_service
|
|
648
|
-
stripe/services/v2/data/reporting/query_run_service
|
|
649
|
-
stripe/services/v2/data/reporting_service
|
|
650
|
-
stripe/services/v2/data_service
|
|
651
|
-
stripe/services/v2/extend/workflow_run_service
|
|
652
|
-
stripe/services/v2/extend/workflow_service
|
|
653
|
-
stripe/services/v2/extend_service
|
|
654
|
-
stripe/services/v2/iam/activity_log_service
|
|
655
|
-
stripe/services/v2/iam_service
|
|
656
|
-
stripe/services/v2/money_management/adjustment_service
|
|
657
|
-
stripe/services/v2/money_management/financial_account_service
|
|
658
|
-
stripe/services/v2/money_management/financial_address_service
|
|
659
|
-
stripe/services/v2/money_management/inbound_transfer_service
|
|
660
|
-
stripe/services/v2/money_management/outbound_payment_quote_service
|
|
661
|
-
stripe/services/v2/money_management/outbound_payment_service
|
|
662
|
-
stripe/services/v2/money_management/outbound_setup_intent_service
|
|
663
|
-
stripe/services/v2/money_management/outbound_transfer_service
|
|
664
|
-
stripe/services/v2/money_management/payout_method_service
|
|
665
|
-
stripe/services/v2/money_management/payout_methods_bank_account_spec_service
|
|
666
|
-
stripe/services/v2/money_management/received_credit_service
|
|
667
|
-
stripe/services/v2/money_management/received_debit_service
|
|
668
|
-
stripe/services/v2/money_management/transaction_entry_service
|
|
669
|
-
stripe/services/v2/money_management/transaction_service
|
|
670
|
-
stripe/services/v2/money_management_service
|
|
671
|
-
stripe/services/v2/network/business_profile_service
|
|
672
|
-
stripe/services/v2/network_service
|
|
673
|
-
stripe/services/v2/orchestrated_commerce/agreement_service
|
|
674
|
-
stripe/services/v2/orchestrated_commerce_service
|
|
675
|
-
stripe/services/v2/test_helper_service
|
|
676
|
-
stripe/services/v2/test_helpers/financial_address_service
|
|
677
469
|
stripe/services/v2_services
|
|
678
470
|
stripe/services/webhook_endpoint_service
|
|
679
471
|
].freeze
|
|
680
|
-
# rubocop:enable Metrics/CollectionLiteralLength
|
|
681
472
|
end
|
data/lib/stripe/stripe_client.rb
CHANGED
|
@@ -8,11 +8,8 @@ module Stripe
|
|
|
8
8
|
# attr_readers: The beginning of the section generated from our OpenAPI spec
|
|
9
9
|
attr_reader :v1
|
|
10
10
|
attr_reader :v2
|
|
11
|
-
# attr_readers: The end of the section generated from our OpenAPI spec
|
|
12
11
|
|
|
13
|
-
#
|
|
14
|
-
# with future non-major changes.
|
|
15
|
-
attr_reader :requestor
|
|
12
|
+
# attr_readers: The end of the section generated from our OpenAPI spec
|
|
16
13
|
|
|
17
14
|
# For internal use only. Does not provide a stable API and may be broken
|
|
18
15
|
# with future non-major changes.
|
|
@@ -96,9 +93,5 @@ module Stripe
|
|
|
96
93
|
data = JSON.parse(data) if data.is_a?(String)
|
|
97
94
|
Util.convert_to_stripe_object(data, {}, api_mode: api_mode, requestor: @requestor)
|
|
98
95
|
end
|
|
99
|
-
|
|
100
|
-
def notification_handler(webhook_secret, &fallback_callback)
|
|
101
|
-
::Stripe::StripeEventNotificationHandler.new(self, webhook_secret, &fallback_callback)
|
|
102
|
-
end
|
|
103
96
|
end
|
|
104
97
|
end
|
|
@@ -25,8 +25,7 @@ module Stripe
|
|
|
25
25
|
# If `.logger` is set, the value of `.log_level` is ignored. The decision on
|
|
26
26
|
# what levels to print is entirely deferred to the logger.
|
|
27
27
|
class StripeConfiguration
|
|
28
|
-
attr_accessor :api_key, :api_version, :
|
|
29
|
-
:stripe_account, :stripe_context
|
|
28
|
+
attr_accessor :api_key, :api_version, :client_id, :enable_telemetry, :logger, :stripe_account, :stripe_context
|
|
30
29
|
|
|
31
30
|
attr_reader :api_base, :uploads_base, :connect_base, :meter_events_base, :base_addresses, :ca_bundle_path,
|
|
32
31
|
:log_level, :initial_network_retry_delay, :max_network_retries, :max_network_retry_delay,
|
|
@@ -67,7 +66,6 @@ module Stripe
|
|
|
67
66
|
|
|
68
67
|
def initialize
|
|
69
68
|
@api_version = ApiVersion::CURRENT
|
|
70
|
-
|
|
71
69
|
@ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
|
|
72
70
|
@enable_telemetry = true
|
|
73
71
|
@verify_ssl_certs = true
|
data/lib/stripe/stripe_object.rb
CHANGED
|
@@ -369,7 +369,7 @@ module Stripe
|
|
|
369
369
|
end
|
|
370
370
|
end
|
|
371
371
|
|
|
372
|
-
protected def add_accessors(keys, values)
|
|
372
|
+
protected def add_accessors(keys, values) # rubocop:todo Metrics/PerceivedComplexity
|
|
373
373
|
# not available in the #instance_eval below
|
|
374
374
|
protected_fields = self.class.protected_fields
|
|
375
375
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
module TelemetryId
|
|
5
|
+
@cached_id = nil
|
|
6
|
+
@loaded = false
|
|
7
|
+
|
|
8
|
+
def self.config_dir
|
|
9
|
+
if Gem.win_platform?
|
|
10
|
+
appdata = ENV.fetch("APPDATA", nil)
|
|
11
|
+
return nil unless appdata && !appdata.empty?
|
|
12
|
+
|
|
13
|
+
::File.join(appdata, "Stripe")
|
|
14
|
+
else
|
|
15
|
+
xdg = ENV.fetch("XDG_CONFIG_HOME", nil)
|
|
16
|
+
if xdg && !xdg.empty?
|
|
17
|
+
::File.join(xdg, "stripe")
|
|
18
|
+
else
|
|
19
|
+
::File.expand_path("~/.config/stripe")
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
rescue ArgumentError
|
|
23
|
+
nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.get
|
|
27
|
+
return @cached_id if @loaded
|
|
28
|
+
|
|
29
|
+
dir = config_dir
|
|
30
|
+
return nil unless dir
|
|
31
|
+
|
|
32
|
+
file_path = ::File.join(dir, "telemetry_id")
|
|
33
|
+
|
|
34
|
+
begin
|
|
35
|
+
content = ::File.read(file_path).strip
|
|
36
|
+
unless content.empty?
|
|
37
|
+
@cached_id = content
|
|
38
|
+
return @cached_id
|
|
39
|
+
end
|
|
40
|
+
rescue SystemCallError
|
|
41
|
+
# File doesn't exist or can't be read
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
new_id = SecureRandom.hex(16)
|
|
45
|
+
|
|
46
|
+
begin
|
|
47
|
+
::FileUtils.mkdir_p(dir)
|
|
48
|
+
::File.write(file_path, new_id)
|
|
49
|
+
rescue SystemCallError
|
|
50
|
+
return nil
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
@cached_id = new_id
|
|
54
|
+
@cached_id
|
|
55
|
+
ensure
|
|
56
|
+
@loaded = true
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# For testing only
|
|
60
|
+
def self.reset!
|
|
61
|
+
@cached_id = nil
|
|
62
|
+
@loaded = false
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
data/lib/stripe/util.rb
CHANGED
|
@@ -314,13 +314,7 @@ module Stripe
|
|
|
314
314
|
when String
|
|
315
315
|
{ api_key: opts }
|
|
316
316
|
when Hash
|
|
317
|
-
|
|
318
|
-
# no need to check the api_key per request.
|
|
319
|
-
if !(opts.key?(:client) &&
|
|
320
|
-
opts.fetch(:client).config.authenticator) &&
|
|
321
|
-
opts.key?(:api_key)
|
|
322
|
-
check_api_key!(opts.fetch(:api_key))
|
|
323
|
-
end
|
|
317
|
+
check_api_key!(opts.fetch(:api_key)) if opts.key?(:api_key)
|
|
324
318
|
# Explicitly use dup here instead of clone to avoid preserving freeze
|
|
325
319
|
# state on input params.
|
|
326
320
|
opts.dup
|
data/lib/stripe/version.rb
CHANGED