stripe 18.4.0.pre.alpha.1 → 18.4.0.pre.beta.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/event_types.rb +0 -356
- data/lib/stripe/object_types.rb +0 -42
- data/lib/stripe/params/account_create_params.rb +0 -32
- data/lib/stripe/params/account_person_create_params.rb +0 -32
- data/lib/stripe/params/account_person_update_params.rb +0 -32
- data/lib/stripe/params/account_session_create_params.rb +0 -17
- data/lib/stripe/params/account_update_params.rb +0 -32
- data/lib/stripe/params/billing/alert_create_params.rb +1 -121
- data/lib/stripe/params/billing/alert_list_params.rb +0 -4
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +1 -5
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -13
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -29
- data/lib/stripe/params/billing/meter_create_params.rb +0 -4
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
- data/lib/stripe/params/checkout/session_create_params.rb +1 -95
- data/lib/stripe/params/checkout/session_update_params.rb +0 -15
- data/lib/stripe/params/coupon_create_params.rb +1 -31
- data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
- data/lib/stripe/params/invoice_add_lines_params.rb +0 -15
- data/lib/stripe/params/invoice_create_preview_params.rb +13 -552
- data/lib/stripe/params/invoice_line_item_update_params.rb +0 -15
- data/lib/stripe/params/invoice_list_params.rb +0 -4
- data/lib/stripe/params/invoice_update_lines_params.rb +0 -15
- data/lib/stripe/params/issuing/card_list_params.rb +1 -34
- data/lib/stripe/params/payment_intent_confirm_params.rb +0 -38
- data/lib/stripe/params/payment_intent_create_params.rb +0 -51
- data/lib/stripe/params/payment_intent_update_params.rb +0 -34
- data/lib/stripe/params/payment_link_create_params.rb +0 -15
- data/lib/stripe/params/plan_create_params.rb +0 -15
- data/lib/stripe/params/price_create_params.rb +0 -15
- data/lib/stripe/params/product_create_params.rb +0 -16
- data/lib/stripe/params/product_update_params.rb +0 -16
- data/lib/stripe/params/quote_create_params.rb +8 -424
- data/lib/stripe/params/quote_update_params.rb +8 -424
- data/lib/stripe/params/setup_intent_confirm_params.rb +0 -29
- data/lib/stripe/params/setup_intent_create_params.rb +0 -29
- data/lib/stripe/params/setup_intent_update_params.rb +1 -30
- data/lib/stripe/params/subscription_create_params.rb +2 -126
- data/lib/stripe/params/subscription_item_create_params.rb +1 -69
- data/lib/stripe/params/subscription_item_update_params.rb +1 -69
- data/lib/stripe/params/subscription_list_params.rb +0 -4
- data/lib/stripe/params/subscription_schedule_amend_params.rb +8 -243
- data/lib/stripe/params/subscription_schedule_create_params.rb +3 -175
- data/lib/stripe/params/subscription_schedule_update_params.rb +3 -175
- data/lib/stripe/params/subscription_update_params.rb +2 -126
- data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
- data/lib/stripe/params/token_create_params.rb +0 -64
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +1 -8
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -4
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +1 -4
- data/lib/stripe/params/v2/core/account_create_params.rb +32 -716
- data/lib/stripe/params/v2/core/account_token_create_params.rb +24 -238
- data/lib/stripe/params/v2/core/account_update_params.rb +32 -702
- data/lib/stripe/params/v2/core/event_list_params.rb +1 -4
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -8
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -4
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +1 -12
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +1 -25
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +1 -4
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -19
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -4
- data/lib/stripe/params.rb +0 -134
- data/lib/stripe/resources/account_session.rb +0 -54
- data/lib/stripe/resources/application_fee.rb +0 -2
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/billing/alert.rb +1 -105
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -84
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
- data/lib/stripe/resources/billing/credit_grant.rb +2 -58
- data/lib/stripe/resources/billing/meter.rb +0 -2
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
- data/lib/stripe/resources/capital/financing_offer.rb +0 -41
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +0 -18
- data/lib/stripe/resources/checkout/session.rb +0 -92
- data/lib/stripe/resources/confirmation_token.rb +0 -18
- data/lib/stripe/resources/coupon.rb +0 -34
- data/lib/stripe/resources/discount.rb +1 -20
- data/lib/stripe/resources/identity/verification_report.rb +0 -4
- data/lib/stripe/resources/invoice.rb +0 -34
- data/lib/stripe/resources/invoice_item.rb +2 -106
- data/lib/stripe/resources/invoice_line_item.rb +1 -107
- data/lib/stripe/resources/issuing/card.rb +0 -4
- data/lib/stripe/resources/payment_intent.rb +0 -62
- data/lib/stripe/resources/payment_method.rb +0 -38
- data/lib/stripe/resources/person.rb +0 -36
- data/lib/stripe/resources/plan.rb +0 -2
- data/lib/stripe/resources/price.rb +0 -2
- data/lib/stripe/resources/quote.rb +1 -238
- data/lib/stripe/resources/quote_line.rb +0 -6
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -34
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -94
- data/lib/stripe/resources/setup_intent.rb +0 -40
- data/lib/stripe/resources/subscription.rb +1 -62
- data/lib/stripe/resources/subscription_item.rb +1 -24
- data/lib/stripe/resources/subscription_schedule.rb +0 -94
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +0 -128
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/transfer.rb +0 -4
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -46
- data/lib/stripe/resources/v2/billing/profile.rb +1 -0
- data/lib/stripe/resources/v2/core/account.rb +27 -1073
- data/lib/stripe/resources/v2/core/event.rb +1 -50
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -35
- data/lib/stripe/resources/v2/money_management/financial_address.rb +29 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -87
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/payout_method.rb +3 -24
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -34
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -56
- data/lib/stripe/resources.rb +0 -134
- data/lib/stripe/services/identity_service.rb +1 -2
- data/lib/stripe/services/issuing_service.rb +1 -2
- data/lib/stripe/services/payment_method_service.rb +0 -11
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/subscription_service.rb +0 -22
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -3
- data/lib/stripe/services/v1_services.rb +1 -6
- data/lib/stripe/services/v2/billing_service.rb +1 -14
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2/money_management_service.rb +1 -5
- data/lib/stripe/services/v2/test_helper_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -5
- data/lib/stripe/services.rb +0 -49
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_event_notification_handler.rb +431 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +1 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +751 -23957
- metadata +2 -318
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -86
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -86
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -84
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -84
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -78
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -91
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -82
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -82
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +0 -58
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +0 -60
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +0 -38
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +0 -20
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -48
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +0 -65
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +0 -38
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +0 -61
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +0 -61
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +0 -61
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -44
- data/lib/stripe/params/balance_transfer_create_params.rb +0 -66
- data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +0 -37
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -138
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
- data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +0 -25
- data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +0 -22
- data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +0 -13
- data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +0 -16
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +0 -29
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_create_params.rb +0 -21
- data/lib/stripe/params/issuing/program_list_params.rb +0 -24
- data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_update_params.rb +0 -21
- data/lib/stripe/params/payment_method_check_balance_params.rb +0 -13
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +0 -81
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +0 -15
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +0 -41
- 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/subscription_attach_cadence_params.rb +0 -16
- data/lib/stripe/params/subscription_pause_params.rb +0 -33
- data/lib/stripe/params/tax/location_create_params.rb +0 -54
- data/lib/stripe/params/tax/location_list_params.rb +0 -27
- data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +0 -39
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
- 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/custom_pricing_unit_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -425
- data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +0 -49
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -278
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +0 -51
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +0 -10
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +0 -20
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +0 -46
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +0 -68
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -57
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -161
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +0 -46
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +0 -31
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +0 -12
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +0 -39
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +0 -94
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +0 -10
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +0 -17
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +0 -94
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
- data/lib/stripe/resources/balance_transfer.rb +0 -139
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -509
- data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +0 -143
- data/lib/stripe/resources/identity/blocklist_entry.rb +0 -116
- data/lib/stripe/resources/issuing/program.rb +0 -69
- data/lib/stripe/resources/payment_method_balance.rb +0 -68
- data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
- data/lib/stripe/resources/radar/account_evaluation.rb +0 -145
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -126
- data/lib/stripe/resources/tax/location.rb +0 -72
- data/lib/stripe/resources/transit_balance.rb +0 -45
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -483
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -274
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
- data/lib/stripe/resources/v2/iam/api_key.rb +0 -129
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +0 -94
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -186
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +0 -92
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +0 -78
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
- data/lib/stripe/resources/v2/tax/manual_rule.rb +0 -115
- data/lib/stripe/services/balance_transfer_service.rb +0 -17
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +0 -63
- data/lib/stripe/services/delegated_checkout_service.rb +0 -13
- data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +0 -50
- data/lib/stripe/services/identity/blocklist_entry_service.rb +0 -71
- data/lib/stripe/services/issuing/program_service.rb +0 -52
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
- data/lib/stripe/services/product_catalog_service.rb +0 -13
- data/lib/stripe/services/radar/account_evaluation_service.rb +0 -41
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment_service.rb +0 -13
- data/lib/stripe/services/tax/location_service.rb +0 -45
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +0 -32
- data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
- 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/custom_pricing_unit_service.rb +0 -54
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
- data/lib/stripe/services/v2/iam/api_key_service.rb +0 -76
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +0 -43
- data/lib/stripe/services/v2/payment_service.rb +0 -17
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +0 -72
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +0 -45
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -38
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +0 -65
- data/lib/stripe/services/v2/tax_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
data/lib/stripe/services.rb
CHANGED
|
@@ -17,7 +17,6 @@ require "stripe/services/apps_service"
|
|
|
17
17
|
require "stripe/services/balance_service"
|
|
18
18
|
require "stripe/services/balance_settings_service"
|
|
19
19
|
require "stripe/services/balance_transaction_service"
|
|
20
|
-
require "stripe/services/balance_transfer_service"
|
|
21
20
|
require "stripe/services/billing/alert_service"
|
|
22
21
|
require "stripe/services/billing/analytics/meter_usage_service"
|
|
23
22
|
require "stripe/services/billing/analytics_service"
|
|
@@ -59,8 +58,6 @@ require "stripe/services/customer_payment_source_service"
|
|
|
59
58
|
require "stripe/services/customer_service"
|
|
60
59
|
require "stripe/services/customer_session_service"
|
|
61
60
|
require "stripe/services/customer_tax_id_service"
|
|
62
|
-
require "stripe/services/delegated_checkout/requested_session_service"
|
|
63
|
-
require "stripe/services/delegated_checkout_service"
|
|
64
61
|
require "stripe/services/dispute_service"
|
|
65
62
|
require "stripe/services/entitlements/active_entitlement_service"
|
|
66
63
|
require "stripe/services/entitlements/feature_service"
|
|
@@ -81,9 +78,7 @@ require "stripe/services/financial_connections/transaction_service"
|
|
|
81
78
|
require "stripe/services/financial_connections_service"
|
|
82
79
|
require "stripe/services/forwarding/request_service"
|
|
83
80
|
require "stripe/services/forwarding_service"
|
|
84
|
-
require "stripe/services/fr_meal_vouchers_onboarding_service"
|
|
85
81
|
require "stripe/services/fx_quote_service"
|
|
86
|
-
require "stripe/services/identity/blocklist_entry_service"
|
|
87
82
|
require "stripe/services/identity/verification_report_service"
|
|
88
83
|
require "stripe/services/identity/verification_session_service"
|
|
89
84
|
require "stripe/services/identity_service"
|
|
@@ -101,7 +96,6 @@ require "stripe/services/issuing/dispute_settlement_detail_service"
|
|
|
101
96
|
require "stripe/services/issuing/fraud_liability_debit_service"
|
|
102
97
|
require "stripe/services/issuing/personalization_design_service"
|
|
103
98
|
require "stripe/services/issuing/physical_bundle_service"
|
|
104
|
-
require "stripe/services/issuing/program_service"
|
|
105
99
|
require "stripe/services/issuing/token_service"
|
|
106
100
|
require "stripe/services/issuing/transaction_service"
|
|
107
101
|
require "stripe/services/issuing_service"
|
|
@@ -123,8 +117,6 @@ require "stripe/services/price_service"
|
|
|
123
117
|
require "stripe/services/privacy/redaction_job_service"
|
|
124
118
|
require "stripe/services/privacy/redaction_job_validation_error_service"
|
|
125
119
|
require "stripe/services/privacy_service"
|
|
126
|
-
require "stripe/services/product_catalog/trial_offer_service"
|
|
127
|
-
require "stripe/services/product_catalog_service"
|
|
128
120
|
require "stripe/services/product_feature_service"
|
|
129
121
|
require "stripe/services/product_service"
|
|
130
122
|
require "stripe/services/promotion_code_service"
|
|
@@ -134,7 +126,6 @@ require "stripe/services/quote_line_service"
|
|
|
134
126
|
require "stripe/services/quote_preview_invoice_service"
|
|
135
127
|
require "stripe/services/quote_preview_subscription_schedule_service"
|
|
136
128
|
require "stripe/services/quote_service"
|
|
137
|
-
require "stripe/services/radar/account_evaluation_service"
|
|
138
129
|
require "stripe/services/radar/early_fraud_warning_service"
|
|
139
130
|
require "stripe/services/radar/payment_evaluation_service"
|
|
140
131
|
require "stripe/services/radar/value_list_item_service"
|
|
@@ -151,8 +142,6 @@ require "stripe/services/reserve_service"
|
|
|
151
142
|
require "stripe/services/review_service"
|
|
152
143
|
require "stripe/services/setup_attempt_service"
|
|
153
144
|
require "stripe/services/setup_intent_service"
|
|
154
|
-
require "stripe/services/shared_payment/granted_token_service"
|
|
155
|
-
require "stripe/services/shared_payment_service"
|
|
156
145
|
require "stripe/services/shipping_rate_service"
|
|
157
146
|
require "stripe/services/sigma/scheduled_query_run_service"
|
|
158
147
|
require "stripe/services/sigma_service"
|
|
@@ -165,7 +154,6 @@ require "stripe/services/tax/association_service"
|
|
|
165
154
|
require "stripe/services/tax/calculation_line_item_service"
|
|
166
155
|
require "stripe/services/tax/calculation_service"
|
|
167
156
|
require "stripe/services/tax/form_service"
|
|
168
|
-
require "stripe/services/tax/location_service"
|
|
169
157
|
require "stripe/services/tax/registration_service"
|
|
170
158
|
require "stripe/services/tax/settings_service"
|
|
171
159
|
require "stripe/services/tax/transaction_line_item_service"
|
|
@@ -181,8 +169,6 @@ require "stripe/services/terminal/onboarding_link_service"
|
|
|
181
169
|
require "stripe/services/terminal/reader_collected_data_service"
|
|
182
170
|
require "stripe/services/terminal/reader_service"
|
|
183
171
|
require "stripe/services/terminal_service"
|
|
184
|
-
require "stripe/services/test_helpers/capital/financing_offer_service"
|
|
185
|
-
require "stripe/services/test_helpers/capital_service"
|
|
186
172
|
require "stripe/services/test_helpers/confirmation_token_service"
|
|
187
173
|
require "stripe/services/test_helpers/customer_service"
|
|
188
174
|
require "stripe/services/test_helpers/issuing/authorization_service"
|
|
@@ -191,8 +177,6 @@ require "stripe/services/test_helpers/issuing/personalization_design_service"
|
|
|
191
177
|
require "stripe/services/test_helpers/issuing/transaction_service"
|
|
192
178
|
require "stripe/services/test_helpers/issuing_service"
|
|
193
179
|
require "stripe/services/test_helpers/refund_service"
|
|
194
|
-
require "stripe/services/test_helpers/shared_payment/granted_token_service"
|
|
195
|
-
require "stripe/services/test_helpers/shared_payment_service"
|
|
196
180
|
require "stripe/services/test_helpers/terminal/reader_service"
|
|
197
181
|
require "stripe/services/test_helpers/terminal_service"
|
|
198
182
|
require "stripe/services/test_helpers/test_clock_service"
|
|
@@ -225,46 +209,24 @@ require "stripe/services/v2/billing/bill_settings/version_service"
|
|
|
225
209
|
require "stripe/services/v2/billing/cadence_service"
|
|
226
210
|
require "stripe/services/v2/billing/collection_setting_service"
|
|
227
211
|
require "stripe/services/v2/billing/collection_settings/version_service"
|
|
228
|
-
require "stripe/services/v2/billing/custom_pricing_unit_service"
|
|
229
|
-
require "stripe/services/v2/billing/intent_service"
|
|
230
|
-
require "stripe/services/v2/billing/intents/action_service"
|
|
231
|
-
require "stripe/services/v2/billing/license_fee_service"
|
|
232
|
-
require "stripe/services/v2/billing/license_fee_subscription_service"
|
|
233
|
-
require "stripe/services/v2/billing/license_fees/version_service"
|
|
234
|
-
require "stripe/services/v2/billing/licensed_item_service"
|
|
235
212
|
require "stripe/services/v2/billing/meter_event_adjustment_service"
|
|
236
213
|
require "stripe/services/v2/billing/meter_event_service"
|
|
237
214
|
require "stripe/services/v2/billing/meter_event_session_service"
|
|
238
215
|
require "stripe/services/v2/billing/meter_event_stream_service"
|
|
239
|
-
require "stripe/services/v2/billing/metered_item_service"
|
|
240
|
-
require "stripe/services/v2/billing/pricing_plan_service"
|
|
241
|
-
require "stripe/services/v2/billing/pricing_plan_subscription_service"
|
|
242
|
-
require "stripe/services/v2/billing/pricing_plan_subscriptions/component_service"
|
|
243
|
-
require "stripe/services/v2/billing/pricing_plans/component_service"
|
|
244
|
-
require "stripe/services/v2/billing/pricing_plans/version_service"
|
|
245
216
|
require "stripe/services/v2/billing/profile_service"
|
|
246
|
-
require "stripe/services/v2/billing/rate_card_service"
|
|
247
|
-
require "stripe/services/v2/billing/rate_card_subscription_service"
|
|
248
|
-
require "stripe/services/v2/billing/rate_cards/rate_service"
|
|
249
|
-
require "stripe/services/v2/billing/rate_cards/version_service"
|
|
250
|
-
require "stripe/services/v2/billing/service_action_service"
|
|
251
217
|
require "stripe/services/v2/billing_service"
|
|
252
218
|
require "stripe/services/v2/core/account_link_service"
|
|
253
219
|
require "stripe/services/v2/core/account_service"
|
|
254
220
|
require "stripe/services/v2/core/account_token_service"
|
|
255
221
|
require "stripe/services/v2/core/accounts/person_service"
|
|
256
222
|
require "stripe/services/v2/core/accounts/person_token_service"
|
|
257
|
-
require "stripe/services/v2/core/claimable_sandbox_service"
|
|
258
223
|
require "stripe/services/v2/core/event_destination_service"
|
|
259
224
|
require "stripe/services/v2/core/event_service"
|
|
260
225
|
require "stripe/services/v2/core/vault/gb_bank_account_service"
|
|
261
226
|
require "stripe/services/v2/core/vault/us_bank_account_service"
|
|
262
227
|
require "stripe/services/v2/core/vault_service"
|
|
263
228
|
require "stripe/services/v2/core_service"
|
|
264
|
-
require "stripe/services/v2/iam/api_key_service"
|
|
265
|
-
require "stripe/services/v2/iam_service"
|
|
266
229
|
require "stripe/services/v2/money_management/adjustment_service"
|
|
267
|
-
require "stripe/services/v2/money_management/currency_conversion_service"
|
|
268
230
|
require "stripe/services/v2/money_management/financial_account_service"
|
|
269
231
|
require "stripe/services/v2/money_management/financial_address_service"
|
|
270
232
|
require "stripe/services/v2/money_management/inbound_transfer_service"
|
|
@@ -276,21 +238,10 @@ require "stripe/services/v2/money_management/payout_method_service"
|
|
|
276
238
|
require "stripe/services/v2/money_management/payout_methods_bank_account_spec_service"
|
|
277
239
|
require "stripe/services/v2/money_management/received_credit_service"
|
|
278
240
|
require "stripe/services/v2/money_management/received_debit_service"
|
|
279
|
-
require "stripe/services/v2/money_management/recipient_verification_service"
|
|
280
241
|
require "stripe/services/v2/money_management/transaction_entry_service"
|
|
281
242
|
require "stripe/services/v2/money_management/transaction_service"
|
|
282
243
|
require "stripe/services/v2/money_management_service"
|
|
283
|
-
require "stripe/services/v2/payment_service"
|
|
284
|
-
require "stripe/services/v2/payments/off_session_payment_service"
|
|
285
|
-
require "stripe/services/v2/payments/settlement_allocation_intent_service"
|
|
286
|
-
require "stripe/services/v2/payments/settlement_allocation_intents/split_service"
|
|
287
|
-
require "stripe/services/v2/reporting/report_run_service"
|
|
288
|
-
require "stripe/services/v2/reporting/report_service"
|
|
289
|
-
require "stripe/services/v2/reporting_service"
|
|
290
|
-
require "stripe/services/v2/tax/manual_rule_service"
|
|
291
|
-
require "stripe/services/v2/tax_service"
|
|
292
244
|
require "stripe/services/v2/test_helper_service"
|
|
293
245
|
require "stripe/services/v2/test_helpers/financial_address_service"
|
|
294
|
-
require "stripe/services/v2/test_helpers/money_management_service"
|
|
295
246
|
require "stripe/services/v2_services"
|
|
296
247
|
require "stripe/services/webhook_endpoint_service"
|
data/lib/stripe/stripe_client.rb
CHANGED
|
@@ -8,9 +8,12 @@ module Stripe
|
|
|
8
8
|
# attr_readers: The beginning of the section generated from our OpenAPI spec
|
|
9
9
|
attr_reader :v1
|
|
10
10
|
attr_reader :v2
|
|
11
|
-
|
|
12
11
|
# attr_readers: The end of the section generated from our OpenAPI spec
|
|
13
12
|
|
|
13
|
+
# For internal use only. Does not provide a stable API and may be broken
|
|
14
|
+
# with future non-major changes.
|
|
15
|
+
attr_reader :requestor
|
|
16
|
+
|
|
14
17
|
# For internal use only. Does not provide a stable API and may be broken
|
|
15
18
|
# with future non-major changes.
|
|
16
19
|
CLIENT_OPTIONS = Set.new(%i[api_key stripe_account stripe_context api_version api_base uploads_base connect_base meter_events_base client_id])
|
|
@@ -87,5 +90,9 @@ module Stripe
|
|
|
87
90
|
data = JSON.parse(data) if data.is_a?(String)
|
|
88
91
|
Util.convert_to_stripe_object(data, {}, api_mode: api_mode, requestor: @requestor)
|
|
89
92
|
end
|
|
93
|
+
|
|
94
|
+
def notification_handler(webhook_secret, &fallback_callback)
|
|
95
|
+
::Stripe::StripeEventNotificationHandler.new(self, webhook_secret, &fallback_callback)
|
|
96
|
+
end
|
|
90
97
|
end
|
|
91
98
|
end
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
class UnhandledNotificationDetails
|
|
5
|
+
attr_reader :is_known_event_type
|
|
6
|
+
|
|
7
|
+
def initialize(is_known_event_type)
|
|
8
|
+
@is_known_event_type = is_known_event_type
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class StripeEventNotificationHandler
|
|
13
|
+
def initialize(client, webhook_secret, &fallback_callback)
|
|
14
|
+
raise ArgumentError, "You must pass a block to act as a fallback" if fallback_callback.nil?
|
|
15
|
+
|
|
16
|
+
@client = client
|
|
17
|
+
@webhook_secret = webhook_secret
|
|
18
|
+
@fallback_callback = fallback_callback
|
|
19
|
+
|
|
20
|
+
@registered_handlers = {}
|
|
21
|
+
@has_handled_events = false
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def handle(webhook_body, sig_header)
|
|
25
|
+
# we're ok with this not being a thread-safe write since registering
|
|
26
|
+
# handlers should happen synchronously on startup before any multi-threaded reads happen
|
|
27
|
+
@has_handled_events = true
|
|
28
|
+
|
|
29
|
+
notif = @client.parse_event_notification(
|
|
30
|
+
webhook_body,
|
|
31
|
+
sig_header,
|
|
32
|
+
@webhook_secret
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
# Create a new client with the event's context to ensure thread-safety
|
|
36
|
+
event_client = new_client_with_context(notif.context)
|
|
37
|
+
|
|
38
|
+
handler = @registered_handlers[notif.type]
|
|
39
|
+
if handler
|
|
40
|
+
handler.call(notif, event_client)
|
|
41
|
+
else
|
|
42
|
+
@fallback_callback.call(notif, event_client,
|
|
43
|
+
UnhandledNotificationDetails.new(!notif.is_a?(Stripe::Events::UnknownEventNotification)))
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def registered_event_types
|
|
48
|
+
@registered_handlers.keys.sort
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
private def register(event_type, &handler)
|
|
52
|
+
raise "Cannot register new event handlers after handling events" if @has_handled_events
|
|
53
|
+
if @registered_handlers.key?(event_type)
|
|
54
|
+
raise ArgumentError, "Handler already registered for event type: #{event_type}"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
@registered_handlers[event_type] = handler
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
private def new_client_with_context(context)
|
|
61
|
+
config = @client.requestor.config
|
|
62
|
+
StripeClient.new(
|
|
63
|
+
config.api_key,
|
|
64
|
+
stripe_account: config.stripe_account,
|
|
65
|
+
stripe_context: context,
|
|
66
|
+
stripe_version: config.api_version,
|
|
67
|
+
api_base: config.api_base,
|
|
68
|
+
uploads_base: config.uploads_base,
|
|
69
|
+
connect_base: config.connect_base,
|
|
70
|
+
meter_events_base: config.meter_events_base,
|
|
71
|
+
client_id: config.client_id
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# event-handler-methods: The beginning of the section generated from our OpenAPI spec
|
|
76
|
+
def on_v1_billing_meter_error_report_triggered(&handler)
|
|
77
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
78
|
+
|
|
79
|
+
register("v1.billing.meter.error_report_triggered", &handler)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def on_v1_billing_meter_no_meter_found(&handler)
|
|
83
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
84
|
+
|
|
85
|
+
register("v1.billing.meter.no_meter_found", &handler)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def on_v2_core_account_closed(&handler)
|
|
89
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
90
|
+
|
|
91
|
+
register("v2.core.account.closed", &handler)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def on_v2_core_account_created(&handler)
|
|
95
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
96
|
+
|
|
97
|
+
register("v2.core.account.created", &handler)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
def on_v2_core_account_updated(&handler)
|
|
101
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
102
|
+
|
|
103
|
+
register("v2.core.account.updated", &handler)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def on_v2_core_account_including_configuration_customer_capability_status_updated(&handler)
|
|
107
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
108
|
+
|
|
109
|
+
register("v2.core.account[configuration.customer].capability_status_updated", &handler)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
def on_v2_core_account_including_configuration_customer_updated(&handler)
|
|
113
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
114
|
+
|
|
115
|
+
register("v2.core.account[configuration.customer].updated", &handler)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def on_v2_core_account_including_configuration_merchant_capability_status_updated(&handler)
|
|
119
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
120
|
+
|
|
121
|
+
register("v2.core.account[configuration.merchant].capability_status_updated", &handler)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
def on_v2_core_account_including_configuration_merchant_updated(&handler)
|
|
125
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
126
|
+
|
|
127
|
+
register("v2.core.account[configuration.merchant].updated", &handler)
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def on_v2_core_account_including_configuration_recipient_capability_status_updated(&handler)
|
|
131
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
132
|
+
|
|
133
|
+
register("v2.core.account[configuration.recipient].capability_status_updated", &handler)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def on_v2_core_account_including_configuration_recipient_updated(&handler)
|
|
137
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
138
|
+
|
|
139
|
+
register("v2.core.account[configuration.recipient].updated", &handler)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
def on_v2_core_account_including_configuration_storer_capability_status_updated(&handler)
|
|
143
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
144
|
+
|
|
145
|
+
register("v2.core.account[configuration.storer].capability_status_updated", &handler)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
def on_v2_core_account_including_configuration_storer_updated(&handler)
|
|
149
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
150
|
+
|
|
151
|
+
register("v2.core.account[configuration.storer].updated", &handler)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
def on_v2_core_account_including_defaults_updated(&handler)
|
|
155
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
156
|
+
|
|
157
|
+
register("v2.core.account[defaults].updated", &handler)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
def on_v2_core_account_including_future_requirements_updated(&handler)
|
|
161
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
162
|
+
|
|
163
|
+
register("v2.core.account[future_requirements].updated", &handler)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def on_v2_core_account_including_identity_updated(&handler)
|
|
167
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
168
|
+
|
|
169
|
+
register("v2.core.account[identity].updated", &handler)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def on_v2_core_account_including_requirements_updated(&handler)
|
|
173
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
174
|
+
|
|
175
|
+
register("v2.core.account[requirements].updated", &handler)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
def on_v2_core_account_link_returned(&handler)
|
|
179
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
180
|
+
|
|
181
|
+
register("v2.core.account_link.returned", &handler)
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def on_v2_core_account_person_created(&handler)
|
|
185
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
186
|
+
|
|
187
|
+
register("v2.core.account_person.created", &handler)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
def on_v2_core_account_person_deleted(&handler)
|
|
191
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
192
|
+
|
|
193
|
+
register("v2.core.account_person.deleted", &handler)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
def on_v2_core_account_person_updated(&handler)
|
|
197
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
198
|
+
|
|
199
|
+
register("v2.core.account_person.updated", &handler)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
def on_v2_core_event_destination_ping(&handler)
|
|
203
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
204
|
+
|
|
205
|
+
register("v2.core.event_destination.ping", &handler)
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
def on_v2_core_health_event_generation_failure_resolved(&handler)
|
|
209
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
210
|
+
|
|
211
|
+
register("v2.core.health.event_generation_failure.resolved", &handler)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
def on_v2_money_management_adjustment_created(&handler)
|
|
215
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
216
|
+
|
|
217
|
+
register("v2.money_management.adjustment.created", &handler)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
def on_v2_money_management_financial_account_created(&handler)
|
|
221
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
222
|
+
|
|
223
|
+
register("v2.money_management.financial_account.created", &handler)
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
def on_v2_money_management_financial_account_updated(&handler)
|
|
227
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
228
|
+
|
|
229
|
+
register("v2.money_management.financial_account.updated", &handler)
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
def on_v2_money_management_financial_address_activated(&handler)
|
|
233
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
234
|
+
|
|
235
|
+
register("v2.money_management.financial_address.activated", &handler)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
def on_v2_money_management_financial_address_failed(&handler)
|
|
239
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
240
|
+
|
|
241
|
+
register("v2.money_management.financial_address.failed", &handler)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def on_v2_money_management_inbound_transfer_available(&handler)
|
|
245
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
246
|
+
|
|
247
|
+
register("v2.money_management.inbound_transfer.available", &handler)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
def on_v2_money_management_inbound_transfer_bank_debit_failed(&handler)
|
|
251
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
252
|
+
|
|
253
|
+
register("v2.money_management.inbound_transfer.bank_debit_failed", &handler)
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
def on_v2_money_management_inbound_transfer_bank_debit_processing(&handler)
|
|
257
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
258
|
+
|
|
259
|
+
register("v2.money_management.inbound_transfer.bank_debit_processing", &handler)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
def on_v2_money_management_inbound_transfer_bank_debit_queued(&handler)
|
|
263
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
264
|
+
|
|
265
|
+
register("v2.money_management.inbound_transfer.bank_debit_queued", &handler)
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
def on_v2_money_management_inbound_transfer_bank_debit_returned(&handler)
|
|
269
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
270
|
+
|
|
271
|
+
register("v2.money_management.inbound_transfer.bank_debit_returned", &handler)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
def on_v2_money_management_inbound_transfer_bank_debit_succeeded(&handler)
|
|
275
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
276
|
+
|
|
277
|
+
register("v2.money_management.inbound_transfer.bank_debit_succeeded", &handler)
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
def on_v2_money_management_outbound_payment_canceled(&handler)
|
|
281
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
282
|
+
|
|
283
|
+
register("v2.money_management.outbound_payment.canceled", &handler)
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
def on_v2_money_management_outbound_payment_created(&handler)
|
|
287
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
288
|
+
|
|
289
|
+
register("v2.money_management.outbound_payment.created", &handler)
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
def on_v2_money_management_outbound_payment_failed(&handler)
|
|
293
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
294
|
+
|
|
295
|
+
register("v2.money_management.outbound_payment.failed", &handler)
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
def on_v2_money_management_outbound_payment_posted(&handler)
|
|
299
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
300
|
+
|
|
301
|
+
register("v2.money_management.outbound_payment.posted", &handler)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def on_v2_money_management_outbound_payment_returned(&handler)
|
|
305
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
306
|
+
|
|
307
|
+
register("v2.money_management.outbound_payment.returned", &handler)
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
def on_v2_money_management_outbound_payment_updated(&handler)
|
|
311
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
312
|
+
|
|
313
|
+
register("v2.money_management.outbound_payment.updated", &handler)
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
def on_v2_money_management_outbound_transfer_canceled(&handler)
|
|
317
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
318
|
+
|
|
319
|
+
register("v2.money_management.outbound_transfer.canceled", &handler)
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
def on_v2_money_management_outbound_transfer_created(&handler)
|
|
323
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
324
|
+
|
|
325
|
+
register("v2.money_management.outbound_transfer.created", &handler)
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
def on_v2_money_management_outbound_transfer_failed(&handler)
|
|
329
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
330
|
+
|
|
331
|
+
register("v2.money_management.outbound_transfer.failed", &handler)
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
def on_v2_money_management_outbound_transfer_posted(&handler)
|
|
335
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
336
|
+
|
|
337
|
+
register("v2.money_management.outbound_transfer.posted", &handler)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
def on_v2_money_management_outbound_transfer_returned(&handler)
|
|
341
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
342
|
+
|
|
343
|
+
register("v2.money_management.outbound_transfer.returned", &handler)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
def on_v2_money_management_outbound_transfer_updated(&handler)
|
|
347
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
348
|
+
|
|
349
|
+
register("v2.money_management.outbound_transfer.updated", &handler)
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
def on_v2_money_management_payout_method_created(&handler)
|
|
353
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
354
|
+
|
|
355
|
+
register("v2.money_management.payout_method.created", &handler)
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
def on_v2_money_management_payout_method_updated(&handler)
|
|
359
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
360
|
+
|
|
361
|
+
register("v2.money_management.payout_method.updated", &handler)
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
def on_v2_money_management_received_credit_available(&handler)
|
|
365
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
366
|
+
|
|
367
|
+
register("v2.money_management.received_credit.available", &handler)
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
def on_v2_money_management_received_credit_failed(&handler)
|
|
371
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
372
|
+
|
|
373
|
+
register("v2.money_management.received_credit.failed", &handler)
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
def on_v2_money_management_received_credit_returned(&handler)
|
|
377
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
378
|
+
|
|
379
|
+
register("v2.money_management.received_credit.returned", &handler)
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
def on_v2_money_management_received_credit_succeeded(&handler)
|
|
383
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
384
|
+
|
|
385
|
+
register("v2.money_management.received_credit.succeeded", &handler)
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
def on_v2_money_management_received_debit_canceled(&handler)
|
|
389
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
390
|
+
|
|
391
|
+
register("v2.money_management.received_debit.canceled", &handler)
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
def on_v2_money_management_received_debit_failed(&handler)
|
|
395
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
396
|
+
|
|
397
|
+
register("v2.money_management.received_debit.failed", &handler)
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
def on_v2_money_management_received_debit_pending(&handler)
|
|
401
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
402
|
+
|
|
403
|
+
register("v2.money_management.received_debit.pending", &handler)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
def on_v2_money_management_received_debit_succeeded(&handler)
|
|
407
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
408
|
+
|
|
409
|
+
register("v2.money_management.received_debit.succeeded", &handler)
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
def on_v2_money_management_received_debit_updated(&handler)
|
|
413
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
414
|
+
|
|
415
|
+
register("v2.money_management.received_debit.updated", &handler)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
def on_v2_money_management_transaction_created(&handler)
|
|
419
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
420
|
+
|
|
421
|
+
register("v2.money_management.transaction.created", &handler)
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
def on_v2_money_management_transaction_updated(&handler)
|
|
425
|
+
raise ArgumentError, "Block required to register event handler" if handler.nil?
|
|
426
|
+
|
|
427
|
+
register("v2.money_management.transaction.updated", &handler)
|
|
428
|
+
end
|
|
429
|
+
# event-handler-methods: The end of the section generated from our OpenAPI spec
|
|
430
|
+
end
|
|
431
|
+
end
|
data/lib/stripe/version.rb
CHANGED
data/lib/stripe.rb
CHANGED
|
@@ -51,6 +51,7 @@ require "stripe/api_resource"
|
|
|
51
51
|
require "stripe/api_resource_test_helpers"
|
|
52
52
|
require "stripe/singleton_api_resource"
|
|
53
53
|
require "stripe/webhook"
|
|
54
|
+
require "stripe/stripe_event_notification_handler"
|
|
54
55
|
require "stripe/stripe_configuration"
|
|
55
56
|
require "stripe/resources/v2/amount"
|
|
56
57
|
require "stripe/resources/v2/deleted_object"
|
|
@@ -13,5 +13,18 @@ module Stripe
|
|
|
13
13
|
.returns(::Stripe::V2::Core::EventNotification)
|
|
14
14
|
end
|
|
15
15
|
def parse_event_notification(payload, sig_header, secret, tolerance:); end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
webhook_secret: String,
|
|
20
|
+
blk: T.proc.params(
|
|
21
|
+
event_notification: ::Stripe::V2::Core::EventNotification,
|
|
22
|
+
client: ::Stripe::StripeClient,
|
|
23
|
+
details: ::Stripe::UnhandledNotificationDetails
|
|
24
|
+
).void
|
|
25
|
+
)
|
|
26
|
+
.returns(::Stripe::StripeEventNotificationHandler)
|
|
27
|
+
end
|
|
28
|
+
def notification_handler(webhook_secret, &blk); end
|
|
16
29
|
end
|
|
17
30
|
end
|