stripe 20.2.0.pre.beta.1 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/request.rb +2 -0
- data/lib/stripe/api_requestor.rb +1 -4
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +0 -6
- data/lib/stripe/event_types.rb +0 -193
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -53
- data/lib/stripe/params/account_create_params.rb +1 -299
- data/lib/stripe/params/account_session_create_params.rb +0 -191
- data/lib/stripe/params/account_update_params.rb +0 -261
- data/lib/stripe/params/balance_settings_update_params.rb +1 -9
- data/lib/stripe/params/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 +3 -87
- data/lib/stripe/params/checkout/session_update_params.rb +1 -161
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -38
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -64
- data/lib/stripe/params/invoice_create_preview_params.rb +9 -772
- data/lib/stripe/params/invoice_item_create_params.rb +1 -33
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_update_params.rb +2 -64
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/cardholder_update_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +109 -3062
- data/lib/stripe/params/payment_intent_create_params.rb +122 -3075
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +76 -3060
- data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
- data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
- data/lib/stripe/params/payment_method_create_params.rb +0 -88
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/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 +3 -122
- data/lib/stripe/params/setup_intent_create_params.rb +3 -122
- data/lib/stripe/params/setup_intent_update_params.rb +3 -122
- data/lib/stripe/params/subscription_create_params.rb +6 -133
- data/lib/stripe/params/subscription_item_create_params.rb +3 -50
- data/lib/stripe/params/subscription_item_update_params.rb +2 -33
- data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
- data/lib/stripe/params/subscription_update_params.rb +5 -116
- data/lib/stripe/params/tax/registration_create_params.rb +1 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -19
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/v2/core/account_create_params.rb +5 -392
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -29
- data/lib/stripe/params/v2/core/account_update_params.rb +4 -376
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -40
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -22
- data/lib/stripe/params.rb +0 -364
- data/lib/stripe/request_options.rb +18 -0
- data/lib/stripe/resources/account.rb +1 -176
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +0 -4
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +1 -227
- data/lib/stripe/resources/checkout/session.rb +3 -91
- data/lib/stripe/resources/confirmation_token.rb +0 -131
- 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 +0 -18
- 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 +0 -92
- data/lib/stripe/resources/invoice.rb +1 -106
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/authorization.rb +0 -16
- data/lib/stripe/resources/issuing/card.rb +0 -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 +0 -18
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +0 -12
- data/lib/stripe/resources/payment_attempt_record.rb +1 -177
- data/lib/stripe/resources/payment_intent.rb +24 -1602
- data/lib/stripe/resources/payment_method.rb +0 -151
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +1 -177
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/reserve/hold.rb +0 -7
- data/lib/stripe/resources/reserve/plan.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +0 -35
- data/lib/stripe/resources/setup_intent.rb +1 -38
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +0 -73
- data/lib/stripe/resources/subscription_item.rb +1 -22
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/tax/registration.rb +1 -16
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/token.rb +1 -15
- data/lib/stripe/resources/transfer.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/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/core/account.rb +2 -802
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +1 -91
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +1 -26
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -4
- data/lib/stripe/resources/v2/money_management/financial_account.rb +1 -50
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -63
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +1 -31
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -50
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -2
- data/lib/stripe/resources.rb +2 -341
- data/lib/stripe/services/account_service.rb +0 -15
- 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/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -11
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -45
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers_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/money_management/financial_account_service.rb +0 -27
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +0 -13
- data/lib/stripe/services/v2/money_management_service.rb +1 -5
- data/lib/stripe/services/v2_services.rb +1 -7
- data/lib/stripe/services.rb +0 -181
- data/lib/stripe/stripe_client.rb +1 -4
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_event_notification_handler.rb +0 -216
- data/lib/stripe/stripe_object.rb +60 -1
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -2
- data/rbi/stripe.rbi +33552 -100276
- metadata +6 -332
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
- data/lib/stripe/events/v2_core_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_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_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_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_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +0 -44
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/payment_plan_create_params.rb +0 -128
- data/lib/stripe/params/payment_plan_list_params.rb +0 -25
- data/lib/stripe/params/payment_plan_retrieve_params.rb +0 -13
- data/lib/stripe/params/payment_plan_update_params.rb +0 -105
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +0 -231
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/plan_list_params.rb +0 -37
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -71
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_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/approval_request_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +0 -47
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +0 -17
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -53
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/data/query_run_create_params.rb +0 -50
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_list_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/data/report_run_create_params.rb +0 -48
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/data/schema_list_params.rb +0 -26
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -30
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -35
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -113
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -112
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +0 -200
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +0 -192
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +0 -35
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -144
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -149
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/payment_plan.rb +0 -213
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1241
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -968
- data/lib/stripe/resources/radar/billing_evaluation.rb +0 -281
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -681
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -310
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
- data/lib/stripe/resources/v2/billing/profile.rb +0 -47
- data/lib/stripe/resources/v2/core/approval_request.rb +0 -395
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -536
- data/lib/stripe/resources/v2/data/query_run.rb +0 -255
- data/lib/stripe/resources/v2/data/report.rb +0 -104
- data/lib/stripe/resources/v2/data/report_run.rb +0 -246
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/data/schema.rb +0 -121
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -368
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +0 -33
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -255
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -260
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -137
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/resources/v2/signals/account_activity.rb +0 -252
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +0 -249
- data/lib/stripe/resources/v2/signals/account_signal.rb +0 -184
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/payment_plan_service.rb +0 -50
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/radar/billing_evaluation_service.rb +0 -19
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -30
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/approval_request_service.rb +0 -58
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/data/query_run_service.rb +0 -34
- data/lib/stripe/services/v2/data/report_run_service.rb +0 -36
- data/lib/stripe/services/v2/data/report_service.rb +0 -34
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/data/schema_service.rb +0 -32
- data/lib/stripe/services/v2/data_service.rb +0 -19
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
- data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
- data/lib/stripe/services/v2/extend_service.rb +0 -16
- data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -32
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -35
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -61
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
- data/lib/stripe/services/v2/network_service.rb +0 -15
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
- data/lib/stripe/services/v2/signals/account_activity_service.rb +0 -43
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +0 -32
- data/lib/stripe/services/v2/signals/account_signal_service.rb +0 -32
- data/lib/stripe/services/v2/signals_service.rb +0 -17
|
@@ -74,21 +74,6 @@ module Stripe
|
|
|
74
74
|
request(method: :get, path: "/v1/account", params: params, opts: opts, base_address: :api)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# Serializes an Account update request into a batch job JSONL line.
|
|
78
|
-
def serialize_batch_update(account, params = {}, opts = {})
|
|
79
|
-
request_id = SecureRandom.uuid
|
|
80
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
81
|
-
|
|
82
|
-
request_body = {
|
|
83
|
-
id: request_id,
|
|
84
|
-
params: params,
|
|
85
|
-
stripe_version: stripe_version,
|
|
86
|
-
}
|
|
87
|
-
request_body[:path_params] = { account: account }
|
|
88
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
89
|
-
JSON.generate(request_body)
|
|
90
|
-
end
|
|
91
|
-
|
|
92
77
|
# With Connect, you can unreject accounts that you have previously rejected.
|
|
93
78
|
#
|
|
94
79
|
# Only accounts that were rejected by your platform can be unrejected. This API cannot be used to unreject accounts that were rejected by Stripe.
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class BillingService < StripeService
|
|
6
|
-
attr_reader :alerts, :
|
|
6
|
+
attr_reader :alerts, :credit_balance_summary, :credit_balance_transactions, :credit_grants, :feedback_options, :meters, :meter_events, :meter_event_adjustments
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@alerts = Stripe::Billing::AlertService.new(@requestor)
|
|
11
|
-
@analytics = Stripe::Billing::AnalyticsService.new(@requestor)
|
|
12
11
|
@credit_balance_summary = Stripe::Billing::CreditBalanceSummaryService.new(@requestor)
|
|
13
12
|
@credit_balance_transactions = Stripe::Billing::CreditBalanceTransactionService
|
|
14
13
|
.new(@requestor)
|
|
@@ -37,20 +37,6 @@ module Stripe
|
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
# Serializes a Coupon create request into a batch job JSONL line.
|
|
41
|
-
def serialize_batch_create(params = {}, opts = {})
|
|
42
|
-
request_id = SecureRandom.uuid
|
|
43
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
44
|
-
|
|
45
|
-
request_body = {
|
|
46
|
-
id: request_id,
|
|
47
|
-
params: params,
|
|
48
|
-
stripe_version: stripe_version,
|
|
49
|
-
}
|
|
50
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
51
|
-
JSON.generate(request_body)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
40
|
# Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.
|
|
55
41
|
def update(coupon, params = {}, opts = {})
|
|
56
42
|
request(
|
|
@@ -73,21 +73,6 @@ module Stripe
|
|
|
73
73
|
)
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
# Serializes a Customer update request into a batch job JSONL line.
|
|
77
|
-
def serialize_batch_update(customer, params = {}, opts = {})
|
|
78
|
-
request_id = SecureRandom.uuid
|
|
79
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
80
|
-
|
|
81
|
-
request_body = {
|
|
82
|
-
id: request_id,
|
|
83
|
-
params: params,
|
|
84
|
-
stripe_version: stripe_version,
|
|
85
|
-
}
|
|
86
|
-
request_body[:path_params] = { customer: customer }
|
|
87
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
88
|
-
JSON.generate(request_body)
|
|
89
|
-
end
|
|
90
|
-
|
|
91
76
|
# Updates the specified customer by setting the values of the parameters passed. Any parameters not provided are left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (such as a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled is retried. This retry doesn't count as an automatic retry, and doesn't affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer doesn't trigger this behavior.
|
|
92
77
|
#
|
|
93
78
|
# This request accepts mostly the same arguments as the customer creation call.
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module FinancialConnections
|
|
6
6
|
class AccountService < StripeService
|
|
7
|
-
attr_reader :
|
|
7
|
+
attr_reader :owners
|
|
8
8
|
|
|
9
9
|
def initialize(requestor)
|
|
10
10
|
super
|
|
11
|
-
@inferred_balances = Stripe::FinancialConnections::AccountInferredBalanceService
|
|
12
|
-
.new(@requestor)
|
|
13
11
|
@owners = Stripe::FinancialConnections::AccountOwnerService.new(@requestor)
|
|
14
12
|
end
|
|
15
13
|
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class FinancialConnectionsService < StripeService
|
|
6
|
-
attr_reader :accounts, :
|
|
6
|
+
attr_reader :accounts, :sessions, :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@accounts = Stripe::FinancialConnections::AccountService.new(@requestor)
|
|
11
|
-
@authorizations = Stripe::FinancialConnections::AuthorizationService.new(@requestor)
|
|
12
|
-
@institutions = Stripe::FinancialConnections::InstitutionService.new(@requestor)
|
|
13
11
|
@sessions = Stripe::FinancialConnections::SessionService.new(@requestor)
|
|
14
12
|
@transactions = Stripe::FinancialConnections::TransactionService.new(@requestor)
|
|
15
13
|
end
|
|
@@ -80,17 +80,6 @@ module Stripe
|
|
|
80
80
|
)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
# Detaches a payment from the invoice, removing it from the list of payments
|
|
84
|
-
def detach_payment(invoice, params = {}, opts = {})
|
|
85
|
-
request(
|
|
86
|
-
method: :post,
|
|
87
|
-
path: format("/v1/invoices/%<invoice>s/detach_payment", { invoice: CGI.escape(invoice) }),
|
|
88
|
-
params: params,
|
|
89
|
-
opts: opts,
|
|
90
|
-
base_address: :api
|
|
91
|
-
)
|
|
92
|
-
end
|
|
93
|
-
|
|
94
83
|
# Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
|
|
95
84
|
def finalize_invoice(invoice, params = {}, opts = {})
|
|
96
85
|
request(
|
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class IssuingService < StripeService
|
|
6
|
-
attr_reader :authorizations, :cards, :cardholders, :
|
|
6
|
+
attr_reader :authorizations, :cards, :cardholders, :disputes, :personalization_designs, :physical_bundles, :tokens, :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@authorizations = Stripe::Issuing::AuthorizationService.new(@requestor)
|
|
11
11
|
@cards = Stripe::Issuing::CardService.new(@requestor)
|
|
12
12
|
@cardholders = Stripe::Issuing::CardholderService.new(@requestor)
|
|
13
|
-
@credit_underwriting_records = Stripe::Issuing::CreditUnderwritingRecordService
|
|
14
|
-
.new(@requestor)
|
|
15
13
|
@disputes = Stripe::Issuing::DisputeService.new(@requestor)
|
|
16
|
-
@dispute_settlement_details = Stripe::Issuing::DisputeSettlementDetailService.new(@requestor)
|
|
17
|
-
@fraud_liability_debits = Stripe::Issuing::FraudLiabilityDebitService.new(@requestor)
|
|
18
14
|
@personalization_designs = Stripe::Issuing::PersonalizationDesignService.new(@requestor)
|
|
19
15
|
@physical_bundles = Stripe::Issuing::PhysicalBundleService.new(@requestor)
|
|
20
16
|
@tokens = Stripe::Issuing::TokenService.new(@requestor)
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class MandateService < StripeService
|
|
6
|
-
# Retrieves a list of Mandates for a given PaymentMethod.
|
|
7
|
-
def list(params = {}, opts = {})
|
|
8
|
-
request(method: :get, path: "/v1/mandates", params: params, opts: opts, base_address: :api)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
6
|
# Retrieves a Mandate object.
|
|
12
7
|
def retrieve(mandate, params = {}, opts = {})
|
|
13
8
|
request(
|
|
@@ -111,32 +111,6 @@ module Stripe
|
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
# Perform a decremental authorization on an eligible
|
|
115
|
-
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
116
|
-
# PaymentIntent's status must be requires_capture and
|
|
117
|
-
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
118
|
-
# must be available.
|
|
119
|
-
#
|
|
120
|
-
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
121
|
-
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
122
|
-
#
|
|
123
|
-
# After decrement, the PaymentIntent object
|
|
124
|
-
# returns with the updated
|
|
125
|
-
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
126
|
-
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
127
|
-
#
|
|
128
|
-
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
129
|
-
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
130
|
-
def decrement_authorization(intent, params = {}, opts = {})
|
|
131
|
-
request(
|
|
132
|
-
method: :post,
|
|
133
|
-
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
|
|
134
|
-
params: params,
|
|
135
|
-
opts: opts,
|
|
136
|
-
base_address: :api
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
|
|
140
114
|
# Perform an incremental authorization on an eligible
|
|
141
115
|
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
142
116
|
# PaymentIntent's status must be requires_capture and
|
|
@@ -213,17 +187,6 @@ module Stripe
|
|
|
213
187
|
)
|
|
214
188
|
end
|
|
215
189
|
|
|
216
|
-
# Trigger an external action on a PaymentIntent.
|
|
217
|
-
def trigger_action(intent, params = {}, opts = {})
|
|
218
|
-
request(
|
|
219
|
-
method: :post,
|
|
220
|
-
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
|
221
|
-
params: params,
|
|
222
|
-
opts: opts,
|
|
223
|
-
base_address: :api
|
|
224
|
-
)
|
|
225
|
-
end
|
|
226
|
-
|
|
227
190
|
# Updates properties on a PaymentIntent object without confirming.
|
|
228
191
|
#
|
|
229
192
|
# Depending on which properties you update, you might need to confirm the
|
|
@@ -36,35 +36,6 @@ module Stripe
|
|
|
36
36
|
)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
# Serializes a PromotionCode create request into a batch job JSONL line.
|
|
40
|
-
def serialize_batch_create(params = {}, opts = {})
|
|
41
|
-
request_id = SecureRandom.uuid
|
|
42
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
43
|
-
|
|
44
|
-
request_body = {
|
|
45
|
-
id: request_id,
|
|
46
|
-
params: params,
|
|
47
|
-
stripe_version: stripe_version,
|
|
48
|
-
}
|
|
49
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
50
|
-
JSON.generate(request_body)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# Serializes a PromotionCode update request into a batch job JSONL line.
|
|
54
|
-
def serialize_batch_update(promotion_code, params = {}, opts = {})
|
|
55
|
-
request_id = SecureRandom.uuid
|
|
56
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
57
|
-
|
|
58
|
-
request_body = {
|
|
59
|
-
id: request_id,
|
|
60
|
-
params: params,
|
|
61
|
-
stripe_version: stripe_version,
|
|
62
|
-
}
|
|
63
|
-
request_body[:path_params] = { promotion_code: promotion_code }
|
|
64
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
65
|
-
JSON.generate(request_body)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
39
|
# Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.
|
|
69
40
|
def update(promotion_code, params = {}, opts = {})
|
|
70
41
|
request(
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class QuoteService < StripeService
|
|
6
|
-
attr_reader :computed_upfront_line_items, :
|
|
6
|
+
attr_reader :computed_upfront_line_items, :line_items
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@computed_upfront_line_items = Stripe::QuoteComputedUpfrontLineItemsService.new(@requestor)
|
|
11
|
-
@lines = Stripe::QuoteLineService.new(@requestor)
|
|
12
11
|
@line_items = Stripe::QuoteLineItemService.new(@requestor)
|
|
13
|
-
@preview_invoices = Stripe::QuotePreviewInvoiceService.new(@requestor)
|
|
14
|
-
@preview_subscription_schedules = Stripe::QuotePreviewSubscriptionScheduleService
|
|
15
|
-
.new(@requestor)
|
|
16
12
|
end
|
|
17
13
|
|
|
18
14
|
# Accepts the specified quote.
|
|
@@ -60,39 +56,6 @@ module Stripe
|
|
|
60
56
|
request(method: :get, path: "/v1/quotes", params: params, opts: opts, base_address: :api)
|
|
61
57
|
end
|
|
62
58
|
|
|
63
|
-
# Preview the invoice line items that would be generated by accepting the quote.
|
|
64
|
-
def list_preview_invoice_lines(quote, preview_invoice, params = {}, opts = {})
|
|
65
|
-
request(
|
|
66
|
-
method: :get,
|
|
67
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
|
68
|
-
params: params,
|
|
69
|
-
opts: opts,
|
|
70
|
-
base_address: :api
|
|
71
|
-
)
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
# Converts a stale quote to draft.
|
|
75
|
-
def mark_draft(quote, params = {}, opts = {})
|
|
76
|
-
request(
|
|
77
|
-
method: :post,
|
|
78
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
|
79
|
-
params: params,
|
|
80
|
-
opts: opts,
|
|
81
|
-
base_address: :api
|
|
82
|
-
)
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# Converts a draft or open quote to stale.
|
|
86
|
-
def mark_stale(quote, params = {}, opts = {})
|
|
87
|
-
request(
|
|
88
|
-
method: :post,
|
|
89
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
|
|
90
|
-
params: params,
|
|
91
|
-
opts: opts,
|
|
92
|
-
base_address: :api
|
|
93
|
-
)
|
|
94
|
-
end
|
|
95
|
-
|
|
96
59
|
# Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
|
|
97
60
|
def pdf(quote, params = {}, opts = {}, &read_body_chunk_block)
|
|
98
61
|
opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
|
|
@@ -106,17 +69,6 @@ module Stripe
|
|
|
106
69
|
)
|
|
107
70
|
end
|
|
108
71
|
|
|
109
|
-
# Recompute the upcoming invoice estimate for the quote.
|
|
110
|
-
def reestimate(quote, params = {}, opts = {})
|
|
111
|
-
request(
|
|
112
|
-
method: :post,
|
|
113
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
|
114
|
-
params: params,
|
|
115
|
-
opts: opts,
|
|
116
|
-
base_address: :api
|
|
117
|
-
)
|
|
118
|
-
end
|
|
119
|
-
|
|
120
72
|
# Retrieves the quote with the given ID.
|
|
121
73
|
def retrieve(quote, params = {}, opts = {})
|
|
122
74
|
request(
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class RadarService < StripeService
|
|
6
|
-
attr_reader :
|
|
6
|
+
attr_reader :early_fraud_warnings, :payment_evaluations, :value_lists, :value_list_items
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
|
-
@billing_evaluations = Stripe::Radar::BillingEvaluationService.new(@requestor)
|
|
11
10
|
@early_fraud_warnings = Stripe::Radar::EarlyFraudWarningService.new(@requestor)
|
|
12
11
|
@payment_evaluations = Stripe::Radar::PaymentEvaluationService.new(@requestor)
|
|
13
12
|
@value_lists = Stripe::Radar::ValueListService.new(@requestor)
|
|
@@ -3,17 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class SubscriptionScheduleService < StripeService
|
|
6
|
-
# Amends an existing subscription schedule.
|
|
7
|
-
def amend(schedule, params = {}, opts = {})
|
|
8
|
-
request(
|
|
9
|
-
method: :post,
|
|
10
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
|
11
|
-
params: params,
|
|
12
|
-
opts: opts,
|
|
13
|
-
base_address: :api
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
6
|
# Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
|
|
18
7
|
def cancel(schedule, params = {}, opts = {})
|
|
19
8
|
request(
|
|
@@ -117,51 +117,6 @@ module Stripe
|
|
|
117
117
|
)
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
# Serializes a Subscription cancel request into a batch job JSONL line.
|
|
121
|
-
def serialize_batch_cancel(subscription_exposed_id, params = {}, opts = {})
|
|
122
|
-
request_id = SecureRandom.uuid
|
|
123
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
124
|
-
|
|
125
|
-
request_body = {
|
|
126
|
-
id: request_id,
|
|
127
|
-
params: params,
|
|
128
|
-
stripe_version: stripe_version,
|
|
129
|
-
}
|
|
130
|
-
request_body[:path_params] = { subscription_exposed_id: subscription_exposed_id }
|
|
131
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
132
|
-
JSON.generate(request_body)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# Serializes a Subscription migrate request into a batch job JSONL line.
|
|
136
|
-
def serialize_batch_migrate(subscription, params = {}, opts = {})
|
|
137
|
-
request_id = SecureRandom.uuid
|
|
138
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
139
|
-
|
|
140
|
-
request_body = {
|
|
141
|
-
id: request_id,
|
|
142
|
-
params: params,
|
|
143
|
-
stripe_version: stripe_version,
|
|
144
|
-
}
|
|
145
|
-
request_body[:path_params] = { subscription: subscription }
|
|
146
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
147
|
-
JSON.generate(request_body)
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# Serializes a Subscription update request into a batch job JSONL line.
|
|
151
|
-
def serialize_batch_update(subscription_exposed_id, params = {}, opts = {})
|
|
152
|
-
request_id = SecureRandom.uuid
|
|
153
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
154
|
-
|
|
155
|
-
request_body = {
|
|
156
|
-
id: request_id,
|
|
157
|
-
params: params,
|
|
158
|
-
stripe_version: stripe_version,
|
|
159
|
-
}
|
|
160
|
-
request_body[:path_params] = { subscription_exposed_id: subscription_exposed_id }
|
|
161
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
162
|
-
JSON.generate(request_body)
|
|
163
|
-
end
|
|
164
|
-
|
|
165
120
|
# Updates an existing subscription to match the specified parameters.
|
|
166
121
|
# When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
|
|
167
122
|
# To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class TaxService < StripeService
|
|
6
|
-
attr_reader :associations, :calculations, :
|
|
6
|
+
attr_reader :associations, :calculations, :locations, :registrations, :settings, :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@associations = Stripe::Tax::AssociationService.new(@requestor)
|
|
11
11
|
@calculations = Stripe::Tax::CalculationService.new(@requestor)
|
|
12
|
-
@forms = Stripe::Tax::FormService.new(@requestor)
|
|
13
12
|
@locations = Stripe::Tax::LocationService.new(@requestor)
|
|
14
13
|
@registrations = Stripe::Tax::RegistrationService.new(@requestor)
|
|
15
14
|
@settings = Stripe::Tax::SettingsService.new(@requestor)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class TerminalService < StripeService
|
|
6
|
-
attr_reader :configurations, :connection_tokens, :locations, :onboarding_links, :readers
|
|
6
|
+
attr_reader :configurations, :connection_tokens, :locations, :onboarding_links, :readers
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
@@ -12,7 +12,6 @@ module Stripe
|
|
|
12
12
|
@locations = Stripe::Terminal::LocationService.new(@requestor)
|
|
13
13
|
@onboarding_links = Stripe::Terminal::OnboardingLinkService.new(@requestor)
|
|
14
14
|
@readers = Stripe::Terminal::ReaderService.new(@requestor)
|
|
15
|
-
@reader_collected_data = Stripe::Terminal::ReaderCollectedDataService.new(@requestor)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
18
17
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class TestHelpersService < StripeService
|
|
6
|
-
attr_reader :confirmation_tokens, :customers, :issuing, :refunds, :
|
|
6
|
+
attr_reader :confirmation_tokens, :customers, :issuing, :refunds, :terminal, :test_clocks, :treasury
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
@@ -11,7 +11,6 @@ module Stripe
|
|
|
11
11
|
@customers = Stripe::TestHelpers::CustomerService.new(@requestor)
|
|
12
12
|
@issuing = Stripe::TestHelpers::IssuingService.new(@requestor)
|
|
13
13
|
@refunds = Stripe::TestHelpers::RefundService.new(@requestor)
|
|
14
|
-
@shared_payment = Stripe::TestHelpers::SharedPaymentService.new(@requestor)
|
|
15
14
|
@terminal = Stripe::TestHelpers::TerminalService.new(@requestor)
|
|
16
15
|
@test_clocks = Stripe::TestHelpers::TestClockService.new(@requestor)
|
|
17
16
|
@treasury = Stripe::TestHelpers::TreasuryService.new(@requestor)
|
|
@@ -4,7 +4,7 @@ module Stripe
|
|
|
4
4
|
class V1Services < StripeService
|
|
5
5
|
# v1 accessors: The beginning of the section generated from our OpenAPI spec
|
|
6
6
|
attr_reader :accounts
|
|
7
|
-
attr_reader :account_links, :
|
|
7
|
+
attr_reader :account_links, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :charges, :checkout, :climate, :confirmation_tokens, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :files, :file_links, :financial_connections, :forwarding, :identity, :invoices, :invoice_items, :invoice_payments, :invoice_rendering_templates, :issuing, :mandates, :payment_attempt_records, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payment_records, :payouts, :plans, :prices, :products, :product_catalog, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :setup_attempts, :setup_intents, :shipping_rates, :sigma, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :test_helpers, :three_d_secure, :tokens, :topups, :transfers, :treasury, :webhook_endpoints
|
|
8
8
|
# v1 accessors: The end of the section generated from our OpenAPI spec
|
|
9
9
|
|
|
10
10
|
# OAuthService is manually maintained, as it has special behaviors
|
|
@@ -15,7 +15,6 @@ module Stripe
|
|
|
15
15
|
# v1 services: The beginning of the section generated from our OpenAPI spec
|
|
16
16
|
@accounts = Stripe::AccountService.new(@requestor)
|
|
17
17
|
@account_links = Stripe::AccountLinkService.new(@requestor)
|
|
18
|
-
@account_notices = Stripe::AccountNoticeService.new(@requestor)
|
|
19
18
|
@account_sessions = Stripe::AccountSessionService.new(@requestor)
|
|
20
19
|
@apple_pay_domains = Stripe::ApplePayDomainService.new(@requestor)
|
|
21
20
|
@application_fees = Stripe::ApplicationFeeService.new(@requestor)
|
|
@@ -25,7 +24,6 @@ module Stripe
|
|
|
25
24
|
@balance_transactions = Stripe::BalanceTransactionService.new(@requestor)
|
|
26
25
|
@billing = Stripe::BillingService.new(@requestor)
|
|
27
26
|
@billing_portal = Stripe::BillingPortalService.new(@requestor)
|
|
28
|
-
@capital = Stripe::CapitalService.new(@requestor)
|
|
29
27
|
@charges = Stripe::ChargeService.new(@requestor)
|
|
30
28
|
@checkout = Stripe::CheckoutService.new(@requestor)
|
|
31
29
|
@climate = Stripe::ClimateService.new(@requestor)
|
|
@@ -40,12 +38,10 @@ module Stripe
|
|
|
40
38
|
@ephemeral_keys = Stripe::EphemeralKeyService.new(@requestor)
|
|
41
39
|
@events = Stripe::EventService.new(@requestor)
|
|
42
40
|
@exchange_rates = Stripe::ExchangeRateService.new(@requestor)
|
|
43
|
-
@external_accounts = Stripe::ExternalAccountService.new(@requestor)
|
|
44
41
|
@files = Stripe::FileService.new(@requestor)
|
|
45
42
|
@file_links = Stripe::FileLinkService.new(@requestor)
|
|
46
43
|
@financial_connections = Stripe::FinancialConnectionsService.new(@requestor)
|
|
47
44
|
@forwarding = Stripe::ForwardingService.new(@requestor)
|
|
48
|
-
@fx_quotes = Stripe::FxQuoteService.new(@requestor)
|
|
49
45
|
@identity = Stripe::IdentityService.new(@requestor)
|
|
50
46
|
@invoices = Stripe::InvoiceService.new(@requestor)
|
|
51
47
|
@invoice_items = Stripe::InvoiceItemService.new(@requestor)
|
|
@@ -53,20 +49,16 @@ module Stripe
|
|
|
53
49
|
@invoice_rendering_templates = Stripe::InvoiceRenderingTemplateService.new(@requestor)
|
|
54
50
|
@issuing = Stripe::IssuingService.new(@requestor)
|
|
55
51
|
@mandates = Stripe::MandateService.new(@requestor)
|
|
56
|
-
@margins = Stripe::MarginService.new(@requestor)
|
|
57
|
-
@orders = Stripe::OrderService.new(@requestor)
|
|
58
52
|
@payment_attempt_records = Stripe::PaymentAttemptRecordService.new(@requestor)
|
|
59
53
|
@payment_intents = Stripe::PaymentIntentService.new(@requestor)
|
|
60
54
|
@payment_links = Stripe::PaymentLinkService.new(@requestor)
|
|
61
55
|
@payment_methods = Stripe::PaymentMethodService.new(@requestor)
|
|
62
56
|
@payment_method_configurations = Stripe::PaymentMethodConfigurationService.new(@requestor)
|
|
63
57
|
@payment_method_domains = Stripe::PaymentMethodDomainService.new(@requestor)
|
|
64
|
-
@payment_plans = Stripe::PaymentPlanService.new(@requestor)
|
|
65
58
|
@payment_records = Stripe::PaymentRecordService.new(@requestor)
|
|
66
59
|
@payouts = Stripe::PayoutService.new(@requestor)
|
|
67
60
|
@plans = Stripe::PlanService.new(@requestor)
|
|
68
61
|
@prices = Stripe::PriceService.new(@requestor)
|
|
69
|
-
@privacy = Stripe::PrivacyService.new(@requestor)
|
|
70
62
|
@products = Stripe::ProductService.new(@requestor)
|
|
71
63
|
@product_catalog = Stripe::ProductCatalogService.new(@requestor)
|
|
72
64
|
@promotion_codes = Stripe::PromotionCodeService.new(@requestor)
|
|
@@ -74,11 +66,9 @@ module Stripe
|
|
|
74
66
|
@radar = Stripe::RadarService.new(@requestor)
|
|
75
67
|
@refunds = Stripe::RefundService.new(@requestor)
|
|
76
68
|
@reporting = Stripe::ReportingService.new(@requestor)
|
|
77
|
-
@reserve = Stripe::ReserveService.new(@requestor)
|
|
78
69
|
@reviews = Stripe::ReviewService.new(@requestor)
|
|
79
70
|
@setup_attempts = Stripe::SetupAttemptService.new(@requestor)
|
|
80
71
|
@setup_intents = Stripe::SetupIntentService.new(@requestor)
|
|
81
|
-
@shared_payment = Stripe::SharedPaymentService.new(@requestor)
|
|
82
72
|
@shipping_rates = Stripe::ShippingRateService.new(@requestor)
|
|
83
73
|
@sigma = Stripe::SigmaService.new(@requestor)
|
|
84
74
|
@sources = Stripe::SourceService.new(@requestor)
|
|
@@ -4,18 +4,14 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
class BillingService < StripeService
|
|
7
|
-
attr_reader :
|
|
7
|
+
attr_reader :meter_events, :meter_event_adjustments, :meter_event_session, :meter_event_stream
|
|
8
8
|
|
|
9
9
|
def initialize(requestor)
|
|
10
10
|
super
|
|
11
|
-
@bill_settings = Stripe::V2::Billing::BillSettingService.new(@requestor)
|
|
12
|
-
@cadences = Stripe::V2::Billing::CadenceService.new(@requestor)
|
|
13
|
-
@collection_settings = Stripe::V2::Billing::CollectionSettingService.new(@requestor)
|
|
14
11
|
@meter_events = Stripe::V2::Billing::MeterEventService.new(@requestor)
|
|
15
12
|
@meter_event_adjustments = Stripe::V2::Billing::MeterEventAdjustmentService.new(@requestor)
|
|
16
13
|
@meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
|
|
17
14
|
@meter_event_stream = Stripe::V2::Billing::MeterEventStreamService.new(@requestor)
|
|
18
|
-
@profiles = Stripe::V2::Billing::ProfileService.new(@requestor)
|
|
19
15
|
end
|
|
20
16
|
end
|
|
21
17
|
end
|
|
@@ -4,15 +4,13 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
class CoreService < StripeService
|
|
7
|
-
attr_reader :accounts, :account_links, :account_tokens, :
|
|
7
|
+
attr_reader :accounts, :account_links, :account_tokens, :events, :event_destinations, :vault
|
|
8
8
|
|
|
9
9
|
def initialize(requestor)
|
|
10
10
|
super
|
|
11
11
|
@accounts = Stripe::V2::Core::AccountService.new(@requestor)
|
|
12
12
|
@account_links = Stripe::V2::Core::AccountLinkService.new(@requestor)
|
|
13
13
|
@account_tokens = Stripe::V2::Core::AccountTokenService.new(@requestor)
|
|
14
|
-
@approval_requests = Stripe::V2::Core::ApprovalRequestService.new(@requestor)
|
|
15
|
-
@batch_jobs = Stripe::V2::Core::BatchJobService.new(@requestor)
|
|
16
14
|
@events = Stripe::V2::Core::EventService.new(@requestor)
|
|
17
15
|
@event_destinations = Stripe::V2::Core::EventDestinationService.new(@requestor)
|
|
18
16
|
@vault = Stripe::V2::Core::VaultService.new(@requestor)
|
|
@@ -5,33 +5,6 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module MoneyManagement
|
|
7
7
|
class FinancialAccountService < StripeService
|
|
8
|
-
# Closes a FinancialAccount. You must provide forwarding settings if it has a non-zero balance.
|
|
9
|
-
#
|
|
10
|
-
# ** raises NonZeroBalanceError
|
|
11
|
-
def close(id, params = {}, opts = {})
|
|
12
|
-
request(
|
|
13
|
-
method: :post,
|
|
14
|
-
path: format("/v2/money_management/financial_accounts/%<id>s/close", { id: CGI.escape(id) }),
|
|
15
|
-
params: params,
|
|
16
|
-
opts: opts,
|
|
17
|
-
base_address: :api
|
|
18
|
-
)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# Creates a new FinancialAccount.
|
|
22
|
-
#
|
|
23
|
-
# ** raises AlreadyExistsError
|
|
24
|
-
# ** raises FeatureNotEnabledError
|
|
25
|
-
def create(params = {}, opts = {})
|
|
26
|
-
request(
|
|
27
|
-
method: :post,
|
|
28
|
-
path: "/v2/money_management/financial_accounts",
|
|
29
|
-
params: params,
|
|
30
|
-
opts: opts,
|
|
31
|
-
base_address: :api
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
8
|
# Returns a list of FinancialAccounts in your account that match the provided filters.
|
|
36
9
|
def list(params = {}, opts = {})
|
|
37
10
|
request(
|
|
@@ -22,21 +22,6 @@ module Stripe
|
|
|
22
22
|
)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
# Disable a `PayoutMethod`. Disabling temporarily prevents the Payout Method from being used for outbound
|
|
26
|
-
# payments or transfers while keeping it in normal list results. To re-enable it, complete setup again by
|
|
27
|
-
# [creating an Outbound Setup Intent](https://docs.stripe.com/api/v2/money-management/outbound-setup-intents/create).
|
|
28
|
-
#
|
|
29
|
-
# ** raises CannotProceedError
|
|
30
|
-
def disable(id, params = {}, opts = {})
|
|
31
|
-
request(
|
|
32
|
-
method: :post,
|
|
33
|
-
path: format("/v2/money_management/payout_methods/%<id>s/disable", { id: CGI.escape(id) }),
|
|
34
|
-
params: params,
|
|
35
|
-
opts: opts,
|
|
36
|
-
base_address: :api
|
|
37
|
-
)
|
|
38
|
-
end
|
|
39
|
-
|
|
40
25
|
# List objects that adhere to the PayoutMethod interface.
|
|
41
26
|
def list(params = {}, opts = {})
|
|
42
27
|
request(
|
|
@@ -18,19 +18,6 @@ module Stripe
|
|
|
18
18
|
base_address: :api
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
|
-
|
|
22
|
-
# Generates microdeposits for a FinancialAddress in a Sandbox environment.
|
|
23
|
-
#
|
|
24
|
-
# ** raises FeatureNotEnabledError
|
|
25
|
-
def generate_microdeposits(id, params = {}, opts = {})
|
|
26
|
-
request(
|
|
27
|
-
method: :post,
|
|
28
|
-
path: format("/v2/money_management/test_helpers/financial_addresses/%<id>s/generate_microdeposits", { id: CGI.escape(id) }),
|
|
29
|
-
params: params,
|
|
30
|
-
opts: opts,
|
|
31
|
-
base_address: :api
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
21
|
end
|
|
35
22
|
end
|
|
36
23
|
end
|