stripe 13.4.1 → 17.0.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_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_operations/request.rb +1 -0
- data/lib/stripe/api_operations/save.rb +2 -1
- data/lib/stripe/api_operations/singleton_save.rb +2 -1
- data/lib/stripe/api_requestor.rb +12 -4
- data/lib/stripe/api_resource.rb +13 -3
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/event_types.rb +20 -5
- data/lib/stripe/events/unknown_event_notification.rb +19 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/object_types.rb +11 -4
- data/lib/stripe/params/account_capability_list_params.rb +13 -0
- data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_capability_update_params.rb +18 -0
- data/lib/stripe/params/account_create_params.rb +2083 -0
- data/lib/stripe/params/account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_create_params.rb +134 -0
- data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_list_params.rb +25 -0
- data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_external_account_update_params.rb +91 -0
- data/lib/stripe/params/account_link_create_params.rb +52 -0
- data/lib/stripe/params/account_list_params.rb +42 -0
- data/lib/stripe/params/account_login_link_create_params.rb +13 -0
- data/lib/stripe/params/account_person_create_params.rb +435 -0
- data/lib/stripe/params/account_person_delete_params.rb +6 -0
- data/lib/stripe/params/account_person_list_params.rb +61 -0
- data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_person_update_params.rb +435 -0
- data/lib/stripe/params/account_persons_params.rb +61 -0
- data/lib/stripe/params/account_reject_params.rb +16 -0
- data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
- data/lib/stripe/params/account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_session_create_params.rb +598 -0
- data/lib/stripe/params/account_update_params.rb +2030 -0
- data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
- data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_list_params.rb +52 -0
- data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
- data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
- data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
- data/lib/stripe/params/apps/secret_create_params.rb +38 -0
- data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
- data/lib/stripe/params/apps/secret_find_params.rb +32 -0
- data/lib/stripe/params/apps/secret_list_params.rb +38 -0
- data/lib/stripe/params/balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_update_params.rb +67 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
- data/lib/stripe/params/billing/alert_create_params.rb +52 -0
- data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_list_params.rb +37 -0
- data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
- data/lib/stripe/params/billing/meter_create_params.rb +70 -0
- data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
- data/lib/stripe/params/billing/meter_list_params.rb +27 -0
- data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/meter_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
- data/lib/stripe/params/charge_capture_params.rb +57 -0
- data/lib/stripe/params/charge_create_params.rb +172 -0
- data/lib/stripe/params/charge_list_params.rb +60 -0
- data/lib/stripe/params/charge_retrieve_params.rb +13 -0
- data/lib/stripe/params/charge_search_params.rb +22 -0
- data/lib/stripe/params/charge_update_params.rb +102 -0
- data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
- data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
- data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_params.rb +83 -0
- data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/checkout/session_update_params.rb +179 -0
- data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
- data/lib/stripe/params/climate/order_create_params.rb +49 -0
- data/lib/stripe/params/climate/order_list_params.rb +24 -0
- data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/order_update_params.rb +29 -0
- data/lib/stripe/params/climate/product_list_params.rb +24 -0
- data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
- data/lib/stripe/params/country_spec_list_params.rb +22 -0
- data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_create_params.rb +80 -0
- data/lib/stripe/params/coupon_delete_params.rb +6 -0
- data/lib/stripe/params/coupon_list_params.rb +42 -0
- data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_update_params.rb +30 -0
- data/lib/stripe/params/credit_note_create_params.rb +144 -0
- data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
- data/lib/stripe/params/credit_note_list_params.rb +56 -0
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_params.rb +144 -0
- data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
- data/lib/stripe/params/credit_note_update_params.rb +19 -0
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
- data/lib/stripe/params/customer_create_params.rb +259 -0
- data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
- data/lib/stripe/params/customer_delete_params.rb +6 -0
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
- data/lib/stripe/params/customer_list_params.rb +56 -0
- data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
- data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
- data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
- data/lib/stripe/params/customer_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
- data/lib/stripe/params/customer_search_params.rb +22 -0
- data/lib/stripe/params/customer_session_create_params.rb +100 -0
- data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
- data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_update_params.rb +243 -0
- data/lib/stripe/params/dispute_close_params.rb +13 -0
- data/lib/stripe/params/dispute_list_params.rb +56 -0
- data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
- data/lib/stripe/params/dispute_update_params.rb +308 -0
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
- data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
- data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
- data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
- data/lib/stripe/params/event_list_params.rb +60 -0
- data/lib/stripe/params/event_retrieve_params.rb +13 -0
- data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_create_params.rb +36 -0
- data/lib/stripe/params/file_link_create_params.rb +22 -0
- data/lib/stripe/params/file_link_list_params.rb +56 -0
- data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_link_update_params.rb +19 -0
- data/lib/stripe/params/file_list_params.rb +52 -0
- data/lib/stripe/params/file_retrieve_params.rb +13 -0
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
- data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_create_params.rb +589 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
- data/lib/stripe/params/invoice_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +145 -0
- data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_item_list_params.rb +60 -0
- data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_item_update_params.rb +129 -0
- data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
- data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
- data/lib/stripe/params/invoice_list_params.rb +86 -0
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
- data/lib/stripe/params/invoice_pay_params.rb +41 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
- data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_search_params.rb +22 -0
- data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_update_params.rb +557 -0
- data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
- data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
- data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
- data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
- data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
- data/lib/stripe/params/issuing/card_create_params.rb +213 -0
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_list_params.rb +78 -0
- data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_update_params.rb +181 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
- data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
- data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
- data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
- data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
- data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_list_params.rb +58 -0
- data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_update_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
- data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
- data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
- data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
- data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
- data/lib/stripe/params/payment_intent_list_params.rb +52 -0
- data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_intent_search_params.rb +22 -0
- data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/payment_link_create_params.rb +776 -0
- data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_params.rb +25 -0
- data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_link_update_params.rb +564 -0
- data/lib/stripe/params/payment_method_attach_params.rb +16 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
- data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
- data/lib/stripe/params/payment_method_create_params.rb +583 -0
- data/lib/stripe/params/payment_method_detach_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
- data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
- data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
- data/lib/stripe/params/payment_method_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_update_params.rb +120 -0
- data/lib/stripe/params/payout_cancel_params.rb +13 -0
- data/lib/stripe/params/payout_create_params.rb +51 -0
- data/lib/stripe/params/payout_list_params.rb +78 -0
- data/lib/stripe/params/payout_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_reverse_params.rb +16 -0
- data/lib/stripe/params/payout_update_params.rb +16 -0
- data/lib/stripe/params/plan_create_params.rb +158 -0
- data/lib/stripe/params/plan_delete_params.rb +6 -0
- data/lib/stripe/params/plan_list_params.rb +56 -0
- data/lib/stripe/params/plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/plan_update_params.rb +35 -0
- data/lib/stripe/params/price_create_params.rb +278 -0
- data/lib/stripe/params/price_list_params.rb +87 -0
- data/lib/stripe/params/price_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_search_params.rb +22 -0
- data/lib/stripe/params/price_update_params.rb +113 -0
- data/lib/stripe/params/product_create_params.rb +243 -0
- data/lib/stripe/params/product_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_create_params.rb +16 -0
- data/lib/stripe/params/product_feature_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_list_params.rb +22 -0
- data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_list_params.rb +68 -0
- data/lib/stripe/params/product_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_search_params.rb +22 -0
- data/lib/stripe/params/product_update_params.rb +96 -0
- data/lib/stripe/params/promotion_code_create_params.rb +91 -0
- data/lib/stripe/params/promotion_code_list_params.rb +64 -0
- data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/promotion_code_update_params.rb +38 -0
- data/lib/stripe/params/quote_accept_params.rb +13 -0
- data/lib/stripe/params/quote_cancel_params.rb +13 -0
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
- data/lib/stripe/params/quote_create_params.rb +301 -0
- data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
- data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +39 -0
- data/lib/stripe/params/quote_pdf_params.rb +13 -0
- data/lib/stripe/params/quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +263 -0
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
- data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
- data/lib/stripe/params/refund_cancel_params.rb +13 -0
- data/lib/stripe/params/refund_create_params.rb +59 -0
- data/lib/stripe/params/refund_expire_params.rb +13 -0
- data/lib/stripe/params/refund_list_params.rb +56 -0
- data/lib/stripe/params/refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/refund_update_params.rb +16 -0
- data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
- data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
- data/lib/stripe/params/review_approve_params.rb +13 -0
- data/lib/stripe/params/review_list_params.rb +42 -0
- data/lib/stripe/params/review_retrieve_params.rb +13 -0
- data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
- data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
- data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
- data/lib/stripe/params/setup_intent_list_params.rb +62 -0
- data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
- data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/source_create_params.rb +317 -0
- data/lib/stripe/params/source_detach_params.rb +13 -0
- data/lib/stripe/params/source_retrieve_params.rb +16 -0
- data/lib/stripe/params/source_transaction_list_params.rb +22 -0
- data/lib/stripe/params/source_update_params.rb +259 -0
- data/lib/stripe/params/source_verify_params.rb +16 -0
- data/lib/stripe/params/subscription_cancel_params.rb +33 -0
- data/lib/stripe/params/subscription_create_params.rb +704 -0
- data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
- data/lib/stripe/params/subscription_item_create_params.rb +134 -0
- data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
- data/lib/stripe/params/subscription_item_list_params.rb +31 -0
- data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_item_update_params.rb +134 -0
- data/lib/stripe/params/subscription_list_params.rb +129 -0
- data/lib/stripe/params/subscription_migrate_params.rb +35 -0
- data/lib/stripe/params/subscription_resume_params.rb +27 -0
- data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
- data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
- data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
- data/lib/stripe/params/subscription_search_params.rb +22 -0
- data/lib/stripe/params/subscription_update_params.rb +683 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
- data/lib/stripe/params/tax/registration_list_params.rb +27 -0
- data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_update_params.rb +21 -0
- data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/settings_update_params.rb +71 -0
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_code_list_params.rb +22 -0
- data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_id_create_params.rb +36 -0
- data/lib/stripe/params/tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/tax_id_list_params.rb +39 -0
- data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_create_params.rb +55 -0
- data/lib/stripe/params/tax_rate_list_params.rb +56 -0
- data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_update_params.rb +47 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
- data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
- data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
- data/lib/stripe/params/terminal/location_create_params.rb +153 -0
- data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/location_list_params.rb +24 -0
- data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/location_update_params.rb +153 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
- data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
- data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
- data/lib/stripe/params/token_create_params.rb +1191 -0
- data/lib/stripe/params/token_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_cancel_params.rb +13 -0
- data/lib/stripe/params/topup_create_params.rb +43 -0
- data/lib/stripe/params/topup_list_params.rb +74 -0
- data/lib/stripe/params/topup_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_update_params.rb +19 -0
- data/lib/stripe/params/transfer_create_params.rb +47 -0
- data/lib/stripe/params/transfer_list_params.rb +56 -0
- data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
- data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
- data/lib/stripe/params/transfer_update_params.rb +19 -0
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
- data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
- data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
- data/lib/stripe/params.rb +588 -0
- data/lib/stripe/request_options.rb +16 -6
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/resources/account.rb +1007 -20
- data/lib/stripe/resources/account_link.rb +17 -0
- data/lib/stripe/resources/account_session.rb +658 -0
- data/lib/stripe/resources/apple_pay_domain.rb +21 -0
- data/lib/stripe/resources/application.rb +28 -0
- data/lib/stripe/resources/application_fee.rb +55 -0
- data/lib/stripe/resources/application_fee_refund.rb +25 -0
- data/lib/stripe/resources/apps/secret.rb +41 -0
- data/lib/stripe/resources/balance.rb +325 -7
- data/lib/stripe/resources/balance_settings.rb +92 -0
- data/lib/stripe/resources/balance_transaction.rb +61 -0
- data/lib/stripe/resources/bank_account.rb +126 -4
- data/lib/stripe/resources/billing/alert.rb +55 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +88 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +151 -0
- data/lib/stripe/resources/billing/credit_grant.rb +108 -0
- data/lib/stripe/resources/billing/meter.rb +93 -0
- data/lib/stripe/resources/billing/meter_event.rb +23 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +33 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +25 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +254 -0
- data/lib/stripe/resources/billing_portal/session.rb +200 -1
- data/lib/stripe/resources/capability.rb +140 -0
- data/lib/stripe/resources/card.rb +93 -0
- data/lib/stripe/resources/cash_balance.rb +33 -0
- data/lib/stripe/resources/charge.rb +2221 -7
- data/lib/stripe/resources/checkout/session.rb +2206 -6
- data/lib/stripe/resources/climate/order.rb +106 -0
- data/lib/stripe/resources/climate/product.rb +45 -0
- data/lib/stripe/resources/climate/supplier.rb +43 -0
- data/lib/stripe/resources/confirmation_token.rb +1679 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
- data/lib/stripe/resources/country_spec.rb +69 -1
- data/lib/stripe/resources/coupon.rb +70 -0
- data/lib/stripe/resources/credit_note.rb +213 -9
- data/lib/stripe/resources/credit_note_line_item.rb +111 -0
- data/lib/stripe/resources/customer.rb +228 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +37 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +217 -0
- data/lib/stripe/resources/customer_session.rb +118 -3
- data/lib/stripe/resources/discount.rb +49 -0
- data/lib/stripe/resources/dispute.rb +405 -1
- data/lib/stripe/resources/entitlements/active_entitlement.rb +19 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
- data/lib/stripe/resources/entitlements/feature.rb +23 -0
- data/lib/stripe/resources/ephemeral_key.rb +21 -0
- data/lib/stripe/resources/event.rb +74 -26
- data/lib/stripe/resources/exchange_rate.rb +25 -0
- data/lib/stripe/resources/file.rb +32 -1
- data/lib/stripe/resources/file_link.rb +27 -0
- data/lib/stripe/resources/financial_connections/account.rb +193 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +17 -0
- data/lib/stripe/resources/financial_connections/session.rb +60 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +47 -0
- data/lib/stripe/resources/forwarding/request.rb +111 -0
- data/lib/stripe/resources/funding_instructions.rb +502 -1
- data/lib/stripe/resources/identity/verification_report.rb +372 -0
- data/lib/stripe/resources/identity/verification_session.rb +290 -11
- data/lib/stripe/resources/invoice.rb +997 -34
- data/lib/stripe/resources/invoice_item.rb +160 -4
- data/lib/stripe/resources/invoice_line_item.rb +278 -1
- data/lib/stripe/resources/invoice_payment.rb +90 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +25 -0
- data/lib/stripe/resources/issuing/authorization.rb +449 -8
- data/lib/stripe/resources/issuing/card.rb +264 -0
- data/lib/stripe/resources/issuing/cardholder.rb +242 -0
- data/lib/stripe/resources/issuing/dispute.rb +257 -3
- data/lib/stripe/resources/issuing/personalization_design.rb +87 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +39 -0
- data/lib/stripe/resources/issuing/token.rb +163 -0
- data/lib/stripe/resources/issuing/transaction.rb +363 -0
- data/lib/stripe/resources/line_item.rb +71 -0
- data/lib/stripe/resources/login_link.rb +17 -1
- data/lib/stripe/resources/mandate.rb +358 -0
- data/lib/stripe/resources/payment_intent.rb +2775 -23
- data/lib/stripe/resources/payment_link.rb +686 -0
- data/lib/stripe/resources/payment_method.rb +1536 -12
- data/lib/stripe/resources/payment_method_configuration.rb +1759 -0
- data/lib/stripe/resources/payment_method_domain.rb +209 -8
- data/lib/stripe/resources/payout.rb +81 -4
- data/lib/stripe/resources/person.rb +469 -2
- data/lib/stripe/resources/plan.rb +87 -1
- data/lib/stripe/resources/price.rb +192 -2
- data/lib/stripe/resources/product.rb +83 -0
- data/lib/stripe/resources/product_feature.rb +20 -0
- data/lib/stripe/resources/promotion_code.rb +86 -3
- data/lib/stripe/resources/quote.rb +510 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +25 -0
- data/lib/stripe/resources/radar/value_list.rb +31 -0
- data/lib/stripe/resources/radar/value_list_item.rb +25 -0
- data/lib/stripe/resources/refund.rb +614 -0
- data/lib/stripe/resources/reporting/report_run.rb +60 -0
- data/lib/stripe/resources/reporting/report_type.rb +27 -0
- data/lib/stripe/resources/reserve_transaction.rb +30 -0
- data/lib/stripe/resources/reversal.rb +30 -1
- data/lib/stripe/resources/review.rb +77 -1
- data/lib/stripe/resources/setup_attempt.rb +589 -0
- data/lib/stripe/resources/setup_intent.rb +574 -3
- data/lib/stripe/resources/shipping_rate.rb +107 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +43 -0
- data/lib/stripe/resources/source.rb +885 -2
- data/lib/stripe/resources/source_mandate_notification.rb +98 -0
- data/lib/stripe/resources/source_transaction.rb +139 -0
- data/lib/stripe/resources/subscription.rb +606 -9
- data/lib/stripe/resources/subscription_item.rb +60 -5
- data/lib/stripe/resources/subscription_schedule.rb +526 -0
- data/lib/stripe/resources/tax/calculation.rb +273 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +90 -0
- data/lib/stripe/resources/tax/registration.rb +2189 -0
- data/lib/stripe/resources/tax/settings.rb +114 -0
- data/lib/stripe/resources/tax/transaction.rb +231 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +47 -0
- data/lib/stripe/resources/tax_code.rb +17 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
- data/lib/stripe/resources/tax_id.rb +66 -0
- data/lib/stripe/resources/tax_rate.rb +63 -2
- data/lib/stripe/resources/terminal/configuration.rb +634 -0
- data/lib/stripe/resources/terminal/connection_token.rb +15 -0
- data/lib/stripe/resources/terminal/location.rb +112 -1
- data/lib/stripe/resources/terminal/reader.rb +605 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +53 -0
- data/lib/stripe/resources/token.rb +39 -2
- data/lib/stripe/resources/topup.rb +41 -0
- data/lib/stripe/resources/transfer.rb +44 -1
- data/lib/stripe/resources/treasury/credit_reversal.rb +49 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +64 -0
- data/lib/stripe/resources/treasury/financial_account.rb +145 -1
- data/lib/stripe/resources/treasury/financial_account_features.rb +381 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +178 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +256 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +236 -0
- data/lib/stripe/resources/treasury/received_credit.rb +214 -0
- data/lib/stripe/resources/treasury/received_debit.rb +177 -0
- data/lib/stripe/resources/treasury/transaction.rb +117 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +94 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +26 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +37 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +22 -0
- data/lib/stripe/resources/v2/core/event.rb +67 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
- data/lib/stripe/resources/v2/deleted_object.rb +21 -0
- data/lib/stripe/resources/webhook_endpoint.rb +35 -0
- data/lib/stripe/resources.rb +13 -4
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +12 -12
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/balance_settings_service.rb +30 -0
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +8 -6
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +8 -9
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +6 -6
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/exchange_rate_service.rb +4 -0
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_service.rb +34 -30
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +20 -15
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_domain_service.rb +4 -4
- data/lib/stripe/services/payment_method_service.rb +9 -9
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +1 -1
- data/lib/stripe/services/price_service.rb +3 -3
- data/lib/stripe/services/product_service.rb +2 -2
- data/lib/stripe/services/promotion_code_service.rb +2 -2
- data/lib/stripe/services/quote_service.rb +3 -3
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +3 -3
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +0 -8
- data/lib/stripe/services/subscription_service.rb +19 -8
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/location_service.rb +1 -1
- data/lib/stripe/services/terminal/reader_service.rb +33 -0
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +2 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +7 -5
- data/lib/stripe/services/v2/billing_service.rb +4 -4
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services.rb +2 -3
- data/lib/stripe/stripe_client.rb +10 -6
- data/lib/stripe/stripe_configuration.rb +1 -6
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +57 -12
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/util.rb +34 -12
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/lib/stripe.rb +6 -1
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +17 -0
- data/rbi/stripe.rbi +132984 -0
- metadata +612 -28
- data/CHANGELOG.md +0 -1589
- data/CODE_OF_CONDUCT.md +0 -77
- data/CONTRIBUTORS +0 -3
- data/Gemfile +0 -37
- data/History.txt +0 -1
- data/LICENSE +0 -21
- data/Makefile +0 -22
- data/OPENAPI_VERSION +0 -1
- data/README.md +0 -422
- data/Rakefile +0 -34
- data/VERSION +0 -1
- data/examples/README.md +0 -16
- data/examples/example_template.rb +0 -36
- data/examples/meter_event_stream.rb +0 -57
- data/examples/thinevent_webhook_handler.rb +0 -39
- data/justfile +0 -43
- data/lib/stripe/resources/usage_record.rb +0 -17
- data/lib/stripe/resources/usage_record_summary.rb +0 -12
- data/lib/stripe/resources/v2/event.rb +0 -13
- data/lib/stripe/resources/v2/event_destination.rb +0 -13
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
- data/lib/stripe/thin_event.rb +0 -37
- data/stripe.gemspec +0 -44
|
@@ -10,6 +10,32 @@ module Stripe
|
|
|
10
10
|
def self.object_name
|
|
11
11
|
"v2.billing.meter_event"
|
|
12
12
|
end
|
|
13
|
+
|
|
14
|
+
# The creation time of this meter event.
|
|
15
|
+
attr_reader :created
|
|
16
|
+
# The name of the meter event. Corresponds with the `event_name` field on a meter.
|
|
17
|
+
attr_reader :event_name
|
|
18
|
+
# A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period.
|
|
19
|
+
attr_reader :identifier
|
|
20
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
21
|
+
attr_reader :object
|
|
22
|
+
# The payload of the event. This must contain the fields corresponding to a meter’s
|
|
23
|
+
# `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and
|
|
24
|
+
# `value_settings.event_payload_key` (default is `value`). Read more about the payload.
|
|
25
|
+
attr_reader :payload
|
|
26
|
+
# The time of the event. Must be within the past 35 calendar days or up to
|
|
27
|
+
# 5 minutes in the future. Defaults to current timestamp if not specified.
|
|
28
|
+
attr_reader :timestamp
|
|
29
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
30
|
+
attr_reader :livemode
|
|
31
|
+
|
|
32
|
+
def self.inner_class_types
|
|
33
|
+
@inner_class_types = {}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.field_remappings
|
|
37
|
+
@field_remappings = {}
|
|
38
|
+
end
|
|
13
39
|
end
|
|
14
40
|
end
|
|
15
41
|
end
|
|
@@ -9,6 +9,43 @@ module Stripe
|
|
|
9
9
|
def self.object_name
|
|
10
10
|
"v2.billing.meter_event_adjustment"
|
|
11
11
|
end
|
|
12
|
+
|
|
13
|
+
class Cancel < Stripe::StripeObject
|
|
14
|
+
# Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
|
|
15
|
+
attr_reader :identifier
|
|
16
|
+
|
|
17
|
+
def self.inner_class_types
|
|
18
|
+
@inner_class_types = {}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self.field_remappings
|
|
22
|
+
@field_remappings = {}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
# Specifies which event to cancel.
|
|
26
|
+
attr_reader :cancel
|
|
27
|
+
# The time the adjustment was created.
|
|
28
|
+
attr_reader :created
|
|
29
|
+
# The name of the meter event. Corresponds with the `event_name` field on a meter.
|
|
30
|
+
attr_reader :event_name
|
|
31
|
+
# The unique id of this meter event adjustment.
|
|
32
|
+
attr_reader :id
|
|
33
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
34
|
+
attr_reader :object
|
|
35
|
+
# Open Enum. The meter event adjustment’s status.
|
|
36
|
+
attr_reader :status
|
|
37
|
+
# Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
|
38
|
+
attr_reader :type
|
|
39
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
40
|
+
attr_reader :livemode
|
|
41
|
+
|
|
42
|
+
def self.inner_class_types
|
|
43
|
+
@inner_class_types = { cancel: Cancel }
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.field_remappings
|
|
47
|
+
@field_remappings = {}
|
|
48
|
+
end
|
|
12
49
|
end
|
|
13
50
|
end
|
|
14
51
|
end
|
|
@@ -9,6 +9,28 @@ module Stripe
|
|
|
9
9
|
def self.object_name
|
|
10
10
|
"v2.billing.meter_event_session"
|
|
11
11
|
end
|
|
12
|
+
|
|
13
|
+
# The authentication token for this session. Use this token when calling the
|
|
14
|
+
# high-throughput meter event API.
|
|
15
|
+
attr_reader :authentication_token
|
|
16
|
+
# The creation time of this session.
|
|
17
|
+
attr_reader :created
|
|
18
|
+
# The time at which this session will expire.
|
|
19
|
+
attr_reader :expires_at
|
|
20
|
+
# The unique id of this auth session.
|
|
21
|
+
attr_reader :id
|
|
22
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
23
|
+
attr_reader :object
|
|
24
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
25
|
+
attr_reader :livemode
|
|
26
|
+
|
|
27
|
+
def self.inner_class_types
|
|
28
|
+
@inner_class_types = {}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def self.field_remappings
|
|
32
|
+
@field_remappings = {}
|
|
33
|
+
end
|
|
12
34
|
end
|
|
13
35
|
end
|
|
14
36
|
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
# Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload.
|
|
8
|
+
class Event < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.core.event"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.core.event"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Reason < Stripe::StripeObject
|
|
15
|
+
class Request < Stripe::StripeObject
|
|
16
|
+
# ID of the API request that caused the event.
|
|
17
|
+
attr_reader :id
|
|
18
|
+
# The idempotency key transmitted during the request.
|
|
19
|
+
attr_reader :idempotency_key
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# Event reason type.
|
|
30
|
+
attr_reader :type
|
|
31
|
+
# Information on the API request that instigated the event.
|
|
32
|
+
attr_reader :request
|
|
33
|
+
|
|
34
|
+
def self.inner_class_types
|
|
35
|
+
@inner_class_types = { request: Request }
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def self.field_remappings
|
|
39
|
+
@field_remappings = {}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
# Authentication context needed to fetch the event or related object.
|
|
43
|
+
attr_reader :context
|
|
44
|
+
# Time at which the object was created.
|
|
45
|
+
attr_reader :created
|
|
46
|
+
# Unique identifier for the event.
|
|
47
|
+
attr_reader :id
|
|
48
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
49
|
+
attr_reader :object
|
|
50
|
+
# Reason for the event.
|
|
51
|
+
attr_reader :reason
|
|
52
|
+
# The type of the event.
|
|
53
|
+
attr_reader :type
|
|
54
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
55
|
+
attr_reader :livemode
|
|
56
|
+
|
|
57
|
+
def self.inner_class_types
|
|
58
|
+
@inner_class_types = { reason: Reason }
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def self.field_remappings
|
|
62
|
+
@field_remappings = {}
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
# Set up an event destination to receive events from Stripe across multiple destination types, including [webhook endpoints](https://docs.stripe.com/webhooks) and [Amazon EventBridge](https://docs.stripe.com/event-destinations/eventbridge). Event destinations support receiving [thin events](https://docs.stripe.com/api/v2/events) and [snapshot events](https://docs.stripe.com/api/events).
|
|
8
|
+
class EventDestination < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.core.event_destination"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.core.event_destination"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class StatusDetails < Stripe::StripeObject
|
|
15
|
+
class Disabled < Stripe::StripeObject
|
|
16
|
+
# Reason event destination has been disabled.
|
|
17
|
+
attr_reader :reason
|
|
18
|
+
|
|
19
|
+
def self.inner_class_types
|
|
20
|
+
@inner_class_types = {}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.field_remappings
|
|
24
|
+
@field_remappings = {}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
# Details about why the event destination has been disabled.
|
|
28
|
+
attr_reader :disabled
|
|
29
|
+
|
|
30
|
+
def self.inner_class_types
|
|
31
|
+
@inner_class_types = { disabled: Disabled }
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.field_remappings
|
|
35
|
+
@field_remappings = {}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
class AmazonEventbridge < Stripe::StripeObject
|
|
40
|
+
# The AWS account ID.
|
|
41
|
+
attr_reader :aws_account_id
|
|
42
|
+
# The ARN of the AWS event source.
|
|
43
|
+
attr_reader :aws_event_source_arn
|
|
44
|
+
# The state of the AWS event source.
|
|
45
|
+
attr_reader :aws_event_source_status
|
|
46
|
+
|
|
47
|
+
def self.inner_class_types
|
|
48
|
+
@inner_class_types = {}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def self.field_remappings
|
|
52
|
+
@field_remappings = {}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
class WebhookEndpoint < Stripe::StripeObject
|
|
57
|
+
# The signing secret of the webhook endpoint, only includable on creation.
|
|
58
|
+
attr_reader :signing_secret
|
|
59
|
+
# The URL of the webhook endpoint, includable.
|
|
60
|
+
attr_reader :url
|
|
61
|
+
|
|
62
|
+
def self.inner_class_types
|
|
63
|
+
@inner_class_types = {}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def self.field_remappings
|
|
67
|
+
@field_remappings = {}
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
# Time at which the object was created.
|
|
71
|
+
attr_reader :created
|
|
72
|
+
# An optional description of what the event destination is used for.
|
|
73
|
+
attr_reader :description
|
|
74
|
+
# The list of events to enable for this endpoint.
|
|
75
|
+
attr_reader :enabled_events
|
|
76
|
+
# Payload type of events being subscribed to.
|
|
77
|
+
attr_reader :event_payload
|
|
78
|
+
# Where events should be routed from.
|
|
79
|
+
attr_reader :events_from
|
|
80
|
+
# Unique identifier for the object.
|
|
81
|
+
attr_reader :id
|
|
82
|
+
# Metadata.
|
|
83
|
+
attr_reader :metadata
|
|
84
|
+
# Event destination name.
|
|
85
|
+
attr_reader :name
|
|
86
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
87
|
+
attr_reader :object
|
|
88
|
+
# If using the snapshot event payload, the API version events are rendered as.
|
|
89
|
+
attr_reader :snapshot_api_version
|
|
90
|
+
# Status. It can be set to either enabled or disabled.
|
|
91
|
+
attr_reader :status
|
|
92
|
+
# Additional information about event destination status.
|
|
93
|
+
attr_reader :status_details
|
|
94
|
+
# Event destination type.
|
|
95
|
+
attr_reader :type
|
|
96
|
+
# Time at which the object was last updated.
|
|
97
|
+
attr_reader :updated
|
|
98
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
99
|
+
attr_reader :livemode
|
|
100
|
+
# Amazon EventBridge configuration.
|
|
101
|
+
attr_reader :amazon_eventbridge
|
|
102
|
+
# Webhook endpoint configuration.
|
|
103
|
+
attr_reader :webhook_endpoint
|
|
104
|
+
|
|
105
|
+
def self.inner_class_types
|
|
106
|
+
@inner_class_types = {
|
|
107
|
+
status_details: StatusDetails,
|
|
108
|
+
amazon_eventbridge: AmazonEventbridge,
|
|
109
|
+
webhook_endpoint: WebhookEndpoint,
|
|
110
|
+
}
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def self.field_remappings
|
|
114
|
+
@field_remappings = {}
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
module V2
|
|
5
|
+
module Core
|
|
6
|
+
class EventReasonRequest
|
|
7
|
+
attr_reader :id, :idempotency_key
|
|
8
|
+
|
|
9
|
+
def initialize(event_reason_request_payload = {})
|
|
10
|
+
@id = event_reason_request_payload[:id]
|
|
11
|
+
@idempotency_key = event_reason_request_payload[:idempotency_key]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class EventReason
|
|
16
|
+
attr_reader :type, :request
|
|
17
|
+
|
|
18
|
+
def initialize(event_reason_payload = {})
|
|
19
|
+
@type = event_reason_payload[:type]
|
|
20
|
+
@request = EventReasonRequest.new(event_reason_payload[:request])
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
class RelatedObject
|
|
25
|
+
attr_reader :id, :type, :url
|
|
26
|
+
|
|
27
|
+
def initialize(related_object)
|
|
28
|
+
@id = related_object[:id]
|
|
29
|
+
@type = related_object[:type]
|
|
30
|
+
@url = related_object[:url]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
class EventNotification
|
|
35
|
+
attr_reader :id, :type, :created, :context, :livemode, :reason
|
|
36
|
+
|
|
37
|
+
def initialize(event_payload, client)
|
|
38
|
+
@id = event_payload[:id]
|
|
39
|
+
@type = event_payload[:type]
|
|
40
|
+
@created = event_payload[:created]
|
|
41
|
+
@livemode = event_payload[:livemode]
|
|
42
|
+
@reason = EventReason.new(event_payload[:reason]) if event_payload[:reason]
|
|
43
|
+
if event_payload[:context] && !event_payload[:context].empty?
|
|
44
|
+
@context = StripeContext.parse(event_payload[:context])
|
|
45
|
+
end
|
|
46
|
+
# private unless a child declares an attr_reader
|
|
47
|
+
@related_object = RelatedObject.new(event_payload[:related_object]) if event_payload[:related_object]
|
|
48
|
+
|
|
49
|
+
# internal use
|
|
50
|
+
@client = client
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Retrieves the Event that generated this EventNotification.
|
|
54
|
+
def fetch_event
|
|
55
|
+
resp = @client.raw_request(:get, "/v2/core/events/#{id}", opts: { stripe_context: context },
|
|
56
|
+
usage: ["fetch_event"])
|
|
57
|
+
@client.deserialize(resp.http_body, api_mode: :v2)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
class DeletedObject < APIResource
|
|
7
|
+
# String representing the type of the object that has been deleted. Objects of the same type share the same value of the object field.
|
|
8
|
+
attr_reader :object
|
|
9
|
+
# The ID of the object that's being deleted.
|
|
10
|
+
attr_reader :id
|
|
11
|
+
|
|
12
|
+
def self.inner_class_types
|
|
13
|
+
@inner_class_types = {}
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.field_remappings
|
|
17
|
+
@field_remappings = {}
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -20,6 +20,33 @@ module Stripe
|
|
|
20
20
|
"webhook_endpoint"
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
# The API version events are rendered as for this webhook endpoint.
|
|
24
|
+
attr_reader :api_version
|
|
25
|
+
# The ID of the associated Connect application.
|
|
26
|
+
attr_reader :application
|
|
27
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
28
|
+
attr_reader :created
|
|
29
|
+
# An optional description of what the webhook is used for.
|
|
30
|
+
attr_reader :description
|
|
31
|
+
# The list of events to enable for this endpoint. `['*']` indicates that all events are enabled, except those that require explicit selection.
|
|
32
|
+
attr_reader :enabled_events
|
|
33
|
+
# Unique identifier for the object.
|
|
34
|
+
attr_reader :id
|
|
35
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
36
|
+
attr_reader :livemode
|
|
37
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
38
|
+
attr_reader :metadata
|
|
39
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
40
|
+
attr_reader :object
|
|
41
|
+
# The endpoint's secret, used to generate [webhook signatures](https://docs.stripe.com/webhooks/signatures). Only returned at creation.
|
|
42
|
+
attr_reader :secret
|
|
43
|
+
# The status of the webhook. It can be `enabled` or `disabled`.
|
|
44
|
+
attr_reader :status
|
|
45
|
+
# The URL of the webhook endpoint.
|
|
46
|
+
attr_reader :url
|
|
47
|
+
# Always true for a deleted object
|
|
48
|
+
attr_reader :deleted
|
|
49
|
+
|
|
23
50
|
# A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard.
|
|
24
51
|
def self.create(params = {}, opts = {})
|
|
25
52
|
request_stripe_object(
|
|
@@ -64,5 +91,13 @@ module Stripe
|
|
|
64
91
|
opts: opts
|
|
65
92
|
)
|
|
66
93
|
end
|
|
94
|
+
|
|
95
|
+
def self.inner_class_types
|
|
96
|
+
@inner_class_types = {}
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def self.field_remappings
|
|
100
|
+
@field_remappings = {}
|
|
101
|
+
end
|
|
67
102
|
end
|
|
68
103
|
end
|
data/lib/stripe/resources.rb
CHANGED
|
@@ -5,13 +5,16 @@ require "stripe/resources/account"
|
|
|
5
5
|
require "stripe/resources/account_link"
|
|
6
6
|
require "stripe/resources/account_session"
|
|
7
7
|
require "stripe/resources/apple_pay_domain"
|
|
8
|
+
require "stripe/resources/application"
|
|
8
9
|
require "stripe/resources/application_fee"
|
|
9
10
|
require "stripe/resources/application_fee_refund"
|
|
10
11
|
require "stripe/resources/apps/secret"
|
|
11
12
|
require "stripe/resources/balance"
|
|
13
|
+
require "stripe/resources/balance_settings"
|
|
12
14
|
require "stripe/resources/balance_transaction"
|
|
13
15
|
require "stripe/resources/bank_account"
|
|
14
16
|
require "stripe/resources/billing/alert"
|
|
17
|
+
require "stripe/resources/billing/alert_triggered"
|
|
15
18
|
require "stripe/resources/billing/credit_balance_summary"
|
|
16
19
|
require "stripe/resources/billing/credit_balance_transaction"
|
|
17
20
|
require "stripe/resources/billing/credit_grant"
|
|
@@ -30,6 +33,7 @@ require "stripe/resources/climate/order"
|
|
|
30
33
|
require "stripe/resources/climate/product"
|
|
31
34
|
require "stripe/resources/climate/supplier"
|
|
32
35
|
require "stripe/resources/confirmation_token"
|
|
36
|
+
require "stripe/resources/connect_collection_transfer"
|
|
33
37
|
require "stripe/resources/country_spec"
|
|
34
38
|
require "stripe/resources/coupon"
|
|
35
39
|
require "stripe/resources/credit_note"
|
|
@@ -41,6 +45,7 @@ require "stripe/resources/customer_session"
|
|
|
41
45
|
require "stripe/resources/discount"
|
|
42
46
|
require "stripe/resources/dispute"
|
|
43
47
|
require "stripe/resources/entitlements/active_entitlement"
|
|
48
|
+
require "stripe/resources/entitlements/active_entitlement_summary"
|
|
44
49
|
require "stripe/resources/entitlements/feature"
|
|
45
50
|
require "stripe/resources/ephemeral_key"
|
|
46
51
|
require "stripe/resources/event"
|
|
@@ -59,6 +64,7 @@ require "stripe/resources/identity/verification_session"
|
|
|
59
64
|
require "stripe/resources/invoice"
|
|
60
65
|
require "stripe/resources/invoice_item"
|
|
61
66
|
require "stripe/resources/invoice_line_item"
|
|
67
|
+
require "stripe/resources/invoice_payment"
|
|
62
68
|
require "stripe/resources/invoice_rendering_template"
|
|
63
69
|
require "stripe/resources/issuing/authorization"
|
|
64
70
|
require "stripe/resources/issuing/card"
|
|
@@ -90,6 +96,7 @@ require "stripe/resources/radar/value_list_item"
|
|
|
90
96
|
require "stripe/resources/refund"
|
|
91
97
|
require "stripe/resources/reporting/report_run"
|
|
92
98
|
require "stripe/resources/reporting/report_type"
|
|
99
|
+
require "stripe/resources/reserve_transaction"
|
|
93
100
|
require "stripe/resources/reversal"
|
|
94
101
|
require "stripe/resources/review"
|
|
95
102
|
require "stripe/resources/setup_attempt"
|
|
@@ -97,6 +104,7 @@ require "stripe/resources/setup_intent"
|
|
|
97
104
|
require "stripe/resources/shipping_rate"
|
|
98
105
|
require "stripe/resources/sigma/scheduled_query_run"
|
|
99
106
|
require "stripe/resources/source"
|
|
107
|
+
require "stripe/resources/source_mandate_notification"
|
|
100
108
|
require "stripe/resources/source_transaction"
|
|
101
109
|
require "stripe/resources/subscription"
|
|
102
110
|
require "stripe/resources/subscription_item"
|
|
@@ -108,6 +116,7 @@ require "stripe/resources/tax/settings"
|
|
|
108
116
|
require "stripe/resources/tax/transaction"
|
|
109
117
|
require "stripe/resources/tax/transaction_line_item"
|
|
110
118
|
require "stripe/resources/tax_code"
|
|
119
|
+
require "stripe/resources/tax_deducted_at_source"
|
|
111
120
|
require "stripe/resources/tax_id"
|
|
112
121
|
require "stripe/resources/tax_rate"
|
|
113
122
|
require "stripe/resources/terminal/configuration"
|
|
@@ -129,13 +138,13 @@ require "stripe/resources/treasury/received_credit"
|
|
|
129
138
|
require "stripe/resources/treasury/received_debit"
|
|
130
139
|
require "stripe/resources/treasury/transaction"
|
|
131
140
|
require "stripe/resources/treasury/transaction_entry"
|
|
132
|
-
require "stripe/resources/usage_record"
|
|
133
|
-
require "stripe/resources/usage_record_summary"
|
|
134
141
|
require "stripe/resources/v2/billing/meter_event"
|
|
135
142
|
require "stripe/resources/v2/billing/meter_event_adjustment"
|
|
136
143
|
require "stripe/resources/v2/billing/meter_event_session"
|
|
137
|
-
require "stripe/resources/v2/event"
|
|
138
|
-
require "stripe/resources/v2/event_destination"
|
|
144
|
+
require "stripe/resources/v2/core/event"
|
|
145
|
+
require "stripe/resources/v2/core/event_destination"
|
|
146
|
+
require "stripe/resources/v2/deleted_object"
|
|
139
147
|
require "stripe/resources/webhook_endpoint"
|
|
140
148
|
require "stripe/events/v1_billing_meter_error_report_triggered_event"
|
|
141
149
|
require "stripe/events/v1_billing_meter_no_meter_found_event"
|
|
150
|
+
require "stripe/events/v2_core_event_destination_ping_event"
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
# a connected account and optionally sets it as the default for its currency. Other bank account
|
|
52
52
|
# details are not editable by design.
|
|
53
53
|
#
|
|
54
|
-
# You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).
|
|
54
|
+
# You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).
|
|
55
55
|
#
|
|
56
56
|
# You can re-enable a disabled bank account by performing an update call without providing any
|
|
57
57
|
# arguments or changes.
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class AccountLoginLinkService < StripeService
|
|
6
6
|
# Creates a login link for a connected account to access the Express Dashboard.
|
|
7
7
|
#
|
|
8
|
-
# You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
|
|
8
|
+
# You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform.
|
|
9
9
|
def create(account, params = {}, opts = {})
|
|
10
10
|
request(
|
|
11
11
|
method: :post,
|
|
@@ -6,28 +6,28 @@ module Stripe
|
|
|
6
6
|
attr_reader :capabilities, :external_accounts, :login_links, :persons
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
|
-
super
|
|
9
|
+
super
|
|
10
10
|
@capabilities = Stripe::AccountCapabilityService.new(@requestor)
|
|
11
11
|
@external_accounts = Stripe::AccountExternalAccountService.new(@requestor)
|
|
12
12
|
@login_links = Stripe::AccountLoginLinkService.new(@requestor)
|
|
13
13
|
@persons = Stripe::AccountPersonService.new(@requestor)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
# With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
|
|
16
|
+
# With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
|
|
17
17
|
# To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
|
18
18
|
#
|
|
19
|
-
# If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
|
|
19
|
+
# If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
|
|
20
20
|
# creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
|
|
21
21
|
# You can prefill any information on the account.
|
|
22
22
|
def create(params = {}, opts = {})
|
|
23
23
|
request(method: :post, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
# With [Connect](https://stripe.com/connect), you can delete accounts you manage.
|
|
26
|
+
# With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
|
|
27
27
|
#
|
|
28
28
|
# Test-mode accounts can be deleted at any time.
|
|
29
29
|
#
|
|
30
|
-
# Live-mode accounts
|
|
30
|
+
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
|
31
31
|
#
|
|
32
32
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
|
33
33
|
def delete(account, params = {}, opts = {})
|
|
@@ -40,12 +40,12 @@ module Stripe
|
|
|
40
40
|
)
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
# Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
|
|
43
|
+
# Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
|
|
44
44
|
def list(params = {}, opts = {})
|
|
45
45
|
request(method: :get, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
# With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
|
48
|
+
# With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
|
49
49
|
#
|
|
50
50
|
# Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
|
|
51
51
|
def reject(account, params = {}, opts = {})
|
|
@@ -74,19 +74,19 @@ module Stripe
|
|
|
74
74
|
request(method: :get, path: "/v1/account", params: params, opts: opts, base_address: :api)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
|
77
|
+
# Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
|
78
78
|
# left unchanged.
|
|
79
79
|
#
|
|
80
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
80
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
81
81
|
# is application, which includes Custom accounts, you can update any information on the account.
|
|
82
82
|
#
|
|
83
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
83
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
84
84
|
# is stripe, which includes Standard and Express accounts, you can update all information until you create
|
|
85
|
-
# an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
|
|
85
|
+
# an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
|
|
86
86
|
# after which some properties can no longer be updated.
|
|
87
87
|
#
|
|
88
88
|
# To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
|
|
89
|
-
# [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
|
89
|
+
# [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
|
90
90
|
def update(account, params = {}, opts = {})
|
|
91
91
|
request(
|
|
92
92
|
method: :post,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class BalanceService < StripeService
|
|
6
6
|
# Retrieves the current account balance, based on the authentication that was used to make the request.
|
|
7
|
-
# For a sample request, see [Accounting for negative balances](https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
|
|
7
|
+
# For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
|
|
8
8
|
def retrieve(params = {}, opts = {})
|
|
9
9
|
request(method: :get, path: "/v1/balance", params: params, opts: opts, base_address: :api)
|
|
10
10
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class BalanceSettingsService < StripeService
|
|
6
|
+
# Retrieves balance settings for a given connected account.
|
|
7
|
+
# Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
|
8
|
+
def retrieve(params = {}, opts = {})
|
|
9
|
+
request(
|
|
10
|
+
method: :get,
|
|
11
|
+
path: "/v1/balance_settings",
|
|
12
|
+
params: params,
|
|
13
|
+
opts: opts,
|
|
14
|
+
base_address: :api
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Updates balance settings for a given connected account.
|
|
19
|
+
# Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
|
20
|
+
def update(params = {}, opts = {})
|
|
21
|
+
request(
|
|
22
|
+
method: :post,
|
|
23
|
+
path: "/v1/balance_settings",
|
|
24
|
+
params: params,
|
|
25
|
+
opts: opts,
|
|
26
|
+
base_address: :api
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|