stripe 18.1.0.pre.alpha.4 → 18.1.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 -304
- data/lib/stripe/object_types.rb +0 -34
- 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_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 -80
- data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
- data/lib/stripe/params/invoice_create_preview_params.rb +7 -126
- data/lib/stripe/params/invoice_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_confirm_params.rb +0 -34
- data/lib/stripe/params/payment_intent_create_params.rb +1 -48
- data/lib/stripe/params/payment_intent_update_params.rb +0 -34
- data/lib/stripe/params/quote_create_params.rb +3 -223
- data/lib/stripe/params/quote_update_params.rb +3 -223
- 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 +1 -17
- data/lib/stripe/params/subscription_item_create_params.rb +1 -17
- data/lib/stripe/params/subscription_item_update_params.rb +1 -17
- data/lib/stripe/params/subscription_schedule_amend_params.rb +3 -42
- data/lib/stripe/params/subscription_schedule_create_params.rb +4 -72
- data/lib/stripe/params/subscription_schedule_update_params.rb +4 -72
- data/lib/stripe/params/subscription_update_params.rb +1 -17
- 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 +8 -725
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -259
- data/lib/stripe/params/v2/core/account_update_params.rb +8 -711
- 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/money_management/financial_address_create_params.rb +1 -12
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -12
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -16
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -12
- 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 -16
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -11
- data/lib/stripe/params.rb +0 -101
- data/lib/stripe/resources/account_session.rb +0 -27
- 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/discount.rb +0 -2
- data/lib/stripe/resources/identity/verification_report.rb +0 -4
- data/lib/stripe/resources/invoice.rb +0 -16
- data/lib/stripe/resources/invoice_item.rb +2 -106
- data/lib/stripe/resources/invoice_line_item.rb +1 -107
- data/lib/stripe/resources/payment_intent.rb +0 -60
- data/lib/stripe/resources/payment_method.rb +0 -38
- data/lib/stripe/resources/person.rb +0 -36
- 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 -16
- 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 -20
- data/lib/stripe/resources/subscription_item.rb +1 -24
- data/lib/stripe/resources/subscription_schedule.rb +0 -94
- data/lib/stripe/resources/transfer.rb +0 -4
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -46
- data/lib/stripe/resources/v2/core/account.rb +6 -1095
- data/lib/stripe/resources/v2/core/event.rb +1 -50
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +1 -15
- data/lib/stripe/resources/v2/money_management/adjustment.rb +1 -16
- data/lib/stripe/resources/v2/money_management/financial_account.rb +1 -49
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +3 -52
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +2 -48
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +3 -61
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +2 -48
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -29
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -50
- data/lib/stripe/resources/v2/money_management/received_debit.rb +1 -73
- data/lib/stripe/resources/v2/money_management/transaction.rb +1 -65
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +1 -49
- data/lib/stripe/resources.rb +0 -114
- 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/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -4
- 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 -3
- data/lib/stripe/services.rb +0 -37
- data/lib/stripe/stripe_object.rb +1 -22
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +734 -18555
- metadata +2 -254
- 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 -68
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -68
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -66
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -66
- 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 -64
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -64
- 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_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 -55
- 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/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 -60
- 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 -18
- 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/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 -355
- 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/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/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/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 -426
- 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 -101
- data/lib/stripe/resources/radar/account_evaluation.rb +0 -116
- 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 -395
- 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/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/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
- 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/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/test_helpers/capital/financing_offer_service.rb +0 -32
- data/lib/stripe/services/test_helpers/capital_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/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 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
- 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/test_helpers/money_management_service.rb +0 -21
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Billing
|
|
7
|
-
module PricingPlans
|
|
8
|
-
class ComponentService < StripeService
|
|
9
|
-
# Create a Pricing Plan Component object.
|
|
10
|
-
def create(pricing_plan_id, params = {}, opts = {})
|
|
11
|
-
request(
|
|
12
|
-
method: :post,
|
|
13
|
-
path: format("/v2/billing/pricing_plans/%<pricing_plan_id>s/components", { pricing_plan_id: CGI.escape(pricing_plan_id) }),
|
|
14
|
-
params: params,
|
|
15
|
-
opts: opts,
|
|
16
|
-
base_address: :api
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Remove a Pricing Plan Component from the latest version of a Pricing Plan.
|
|
21
|
-
def delete(pricing_plan_id, id, params = {}, opts = {})
|
|
22
|
-
request(
|
|
23
|
-
method: :delete,
|
|
24
|
-
path: format("/v2/billing/pricing_plans/%<pricing_plan_id>s/components/%<id>s", { pricing_plan_id: CGI.escape(pricing_plan_id), id: CGI.escape(id) }),
|
|
25
|
-
params: params,
|
|
26
|
-
opts: opts,
|
|
27
|
-
base_address: :api
|
|
28
|
-
)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# List all Pricing Plan Component objects for a Pricing Plan.
|
|
32
|
-
def list(pricing_plan_id, params = {}, opts = {})
|
|
33
|
-
request(
|
|
34
|
-
method: :get,
|
|
35
|
-
path: format("/v2/billing/pricing_plans/%<pricing_plan_id>s/components", { pricing_plan_id: CGI.escape(pricing_plan_id) }),
|
|
36
|
-
params: params,
|
|
37
|
-
opts: opts,
|
|
38
|
-
base_address: :api
|
|
39
|
-
)
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Retrieve a Pricing Plan Component object.
|
|
43
|
-
def retrieve(pricing_plan_id, id, params = {}, opts = {})
|
|
44
|
-
request(
|
|
45
|
-
method: :get,
|
|
46
|
-
path: format("/v2/billing/pricing_plans/%<pricing_plan_id>s/components/%<id>s", { pricing_plan_id: CGI.escape(pricing_plan_id), id: CGI.escape(id) }),
|
|
47
|
-
params: params,
|
|
48
|
-
opts: opts,
|
|
49
|
-
base_address: :api
|
|
50
|
-
)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# Update a Pricing Plan Component object.
|
|
54
|
-
def update(pricing_plan_id, id, params = {}, opts = {})
|
|
55
|
-
request(
|
|
56
|
-
method: :post,
|
|
57
|
-
path: format("/v2/billing/pricing_plans/%<pricing_plan_id>s/components/%<id>s", { pricing_plan_id: CGI.escape(pricing_plan_id), id: CGI.escape(id) }),
|
|
58
|
-
params: params,
|
|
59
|
-
opts: opts,
|
|
60
|
-
base_address: :api
|
|
61
|
-
)
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Billing
|
|
7
|
-
module PricingPlans
|
|
8
|
-
class VersionService < StripeService
|
|
9
|
-
# List all Pricing Plan Versions of a Pricing Plan.
|
|
10
|
-
def list(pricing_plan_id, params = {}, opts = {})
|
|
11
|
-
request(
|
|
12
|
-
method: :get,
|
|
13
|
-
path: format("/v2/billing/pricing_plans/%<pricing_plan_id>s/versions", { pricing_plan_id: CGI.escape(pricing_plan_id) }),
|
|
14
|
-
params: params,
|
|
15
|
-
opts: opts,
|
|
16
|
-
base_address: :api
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Retrieve a specific Pricing Plan Version of a Pricing Plan.
|
|
21
|
-
def retrieve(pricing_plan_id, id, params = {}, opts = {})
|
|
22
|
-
request(
|
|
23
|
-
method: :get,
|
|
24
|
-
path: format("/v2/billing/pricing_plans/%<pricing_plan_id>s/versions/%<id>s", { pricing_plan_id: CGI.escape(pricing_plan_id), id: CGI.escape(id) }),
|
|
25
|
-
params: params,
|
|
26
|
-
opts: opts,
|
|
27
|
-
base_address: :api
|
|
28
|
-
)
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Billing
|
|
7
|
-
class RateCardService < StripeService
|
|
8
|
-
attr_reader :rates, :versions
|
|
9
|
-
|
|
10
|
-
def initialize(requestor)
|
|
11
|
-
super
|
|
12
|
-
@rates = Stripe::V2::Billing::RateCards::RateService.new(@requestor)
|
|
13
|
-
@versions = Stripe::V2::Billing::RateCards::VersionService.new(@requestor)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
# Create a Rate Card object.
|
|
17
|
-
def create(params = {}, opts = {})
|
|
18
|
-
request(
|
|
19
|
-
method: :post,
|
|
20
|
-
path: "/v2/billing/rate_cards",
|
|
21
|
-
params: params,
|
|
22
|
-
opts: opts,
|
|
23
|
-
base_address: :api
|
|
24
|
-
)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# List all Rate Card objects.
|
|
28
|
-
def list(params = {}, opts = {})
|
|
29
|
-
request(
|
|
30
|
-
method: :get,
|
|
31
|
-
path: "/v2/billing/rate_cards",
|
|
32
|
-
params: params,
|
|
33
|
-
opts: opts,
|
|
34
|
-
base_address: :api
|
|
35
|
-
)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# Retrieve the latest version of a Rate Card object.
|
|
39
|
-
def retrieve(id, params = {}, opts = {})
|
|
40
|
-
request(
|
|
41
|
-
method: :get,
|
|
42
|
-
path: format("/v2/billing/rate_cards/%<id>s", { id: CGI.escape(id) }),
|
|
43
|
-
params: params,
|
|
44
|
-
opts: opts,
|
|
45
|
-
base_address: :api
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
# Update a Rate Card object.
|
|
50
|
-
def update(id, params = {}, opts = {})
|
|
51
|
-
request(
|
|
52
|
-
method: :post,
|
|
53
|
-
path: format("/v2/billing/rate_cards/%<id>s", { id: CGI.escape(id) }),
|
|
54
|
-
params: params,
|
|
55
|
-
opts: opts,
|
|
56
|
-
base_address: :api
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Billing
|
|
7
|
-
class RateCardSubscriptionService < StripeService
|
|
8
|
-
# Cancel an existing, active Rate Card Subscription.
|
|
9
|
-
def cancel(id, params = {}, opts = {})
|
|
10
|
-
request(
|
|
11
|
-
method: :post,
|
|
12
|
-
path: format("/v2/billing/rate_card_subscriptions/%<id>s/cancel", { id: CGI.escape(id) }),
|
|
13
|
-
params: params,
|
|
14
|
-
opts: opts,
|
|
15
|
-
base_address: :api
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# Create a Rate Card Subscription to bill a Rate Card on a specified Billing Cadence.
|
|
20
|
-
def create(params = {}, opts = {})
|
|
21
|
-
request(
|
|
22
|
-
method: :post,
|
|
23
|
-
path: "/v2/billing/rate_card_subscriptions",
|
|
24
|
-
params: params,
|
|
25
|
-
opts: opts,
|
|
26
|
-
base_address: :api
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# List all Rate Card Subscription objects.
|
|
31
|
-
def list(params = {}, opts = {})
|
|
32
|
-
request(
|
|
33
|
-
method: :get,
|
|
34
|
-
path: "/v2/billing/rate_card_subscriptions",
|
|
35
|
-
params: params,
|
|
36
|
-
opts: opts,
|
|
37
|
-
base_address: :api
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Retrieve a Rate Card Subscription by ID.
|
|
42
|
-
def retrieve(id, params = {}, opts = {})
|
|
43
|
-
request(
|
|
44
|
-
method: :get,
|
|
45
|
-
path: format("/v2/billing/rate_card_subscriptions/%<id>s", { id: CGI.escape(id) }),
|
|
46
|
-
params: params,
|
|
47
|
-
opts: opts,
|
|
48
|
-
base_address: :api
|
|
49
|
-
)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Update fields on an existing, active Rate Card Subscription.
|
|
53
|
-
def update(id, params = {}, opts = {})
|
|
54
|
-
request(
|
|
55
|
-
method: :post,
|
|
56
|
-
path: format("/v2/billing/rate_card_subscriptions/%<id>s", { id: CGI.escape(id) }),
|
|
57
|
-
params: params,
|
|
58
|
-
opts: opts,
|
|
59
|
-
base_address: :api
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Billing
|
|
7
|
-
module RateCards
|
|
8
|
-
class RateService < StripeService
|
|
9
|
-
# Set the Rate for a Metered Item on the latest version of a Rate Card object. This will create a new Rate Card version
|
|
10
|
-
# if the Metered Item already has a rate on the Rate Card.
|
|
11
|
-
def create(rate_card_id, params = {}, opts = {})
|
|
12
|
-
request(
|
|
13
|
-
method: :post,
|
|
14
|
-
path: format("/v2/billing/rate_cards/%<rate_card_id>s/rates", { rate_card_id: CGI.escape(rate_card_id) }),
|
|
15
|
-
params: params,
|
|
16
|
-
opts: opts,
|
|
17
|
-
base_address: :api
|
|
18
|
-
)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# Remove an existing Rate from a Rate Card. This will create a new Rate Card Version without that Rate.
|
|
22
|
-
def delete(rate_card_id, id, params = {}, opts = {})
|
|
23
|
-
request(
|
|
24
|
-
method: :delete,
|
|
25
|
-
path: format("/v2/billing/rate_cards/%<rate_card_id>s/rates/%<id>s", { rate_card_id: CGI.escape(rate_card_id), id: CGI.escape(id) }),
|
|
26
|
-
params: params,
|
|
27
|
-
opts: opts,
|
|
28
|
-
base_address: :api
|
|
29
|
-
)
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# List all Rates associated with a Rate Card for a specific version (defaults to latest). Rates remain active for all subsequent versions until a new rate is created for the same Metered Item.
|
|
33
|
-
def list(rate_card_id, params = {}, opts = {})
|
|
34
|
-
request(
|
|
35
|
-
method: :get,
|
|
36
|
-
path: format("/v2/billing/rate_cards/%<rate_card_id>s/rates", { rate_card_id: CGI.escape(rate_card_id) }),
|
|
37
|
-
params: params,
|
|
38
|
-
opts: opts,
|
|
39
|
-
base_address: :api
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# Retrieve a Rate object.
|
|
44
|
-
def retrieve(rate_card_id, id, params = {}, opts = {})
|
|
45
|
-
request(
|
|
46
|
-
method: :get,
|
|
47
|
-
path: format("/v2/billing/rate_cards/%<rate_card_id>s/rates/%<id>s", { rate_card_id: CGI.escape(rate_card_id), id: CGI.escape(id) }),
|
|
48
|
-
params: params,
|
|
49
|
-
opts: opts,
|
|
50
|
-
base_address: :api
|
|
51
|
-
)
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Billing
|
|
7
|
-
module RateCards
|
|
8
|
-
class VersionService < StripeService
|
|
9
|
-
# List the versions of a Rate Card object. Results are sorted in reverse chronological order (most recent first).
|
|
10
|
-
def list(rate_card_id, params = {}, opts = {})
|
|
11
|
-
request(
|
|
12
|
-
method: :get,
|
|
13
|
-
path: format("/v2/billing/rate_cards/%<rate_card_id>s/versions", { rate_card_id: CGI.escape(rate_card_id) }),
|
|
14
|
-
params: params,
|
|
15
|
-
opts: opts,
|
|
16
|
-
base_address: :api
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Retrieve a specific version of a Rate Card object.
|
|
21
|
-
def retrieve(rate_card_id, id, params = {}, opts = {})
|
|
22
|
-
request(
|
|
23
|
-
method: :get,
|
|
24
|
-
path: format("/v2/billing/rate_cards/%<rate_card_id>s/versions/%<id>s", { rate_card_id: CGI.escape(rate_card_id), id: CGI.escape(id) }),
|
|
25
|
-
params: params,
|
|
26
|
-
opts: opts,
|
|
27
|
-
base_address: :api
|
|
28
|
-
)
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Billing
|
|
7
|
-
class ServiceActionService < StripeService
|
|
8
|
-
# Create a Service Action object.
|
|
9
|
-
def create(params = {}, opts = {})
|
|
10
|
-
request(
|
|
11
|
-
method: :post,
|
|
12
|
-
path: "/v2/billing/service_actions",
|
|
13
|
-
params: params,
|
|
14
|
-
opts: opts,
|
|
15
|
-
base_address: :api
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# Retrieve a Service Action object.
|
|
20
|
-
def retrieve(id, params = {}, opts = {})
|
|
21
|
-
request(
|
|
22
|
-
method: :get,
|
|
23
|
-
path: format("/v2/billing/service_actions/%<id>s", { id: CGI.escape(id) }),
|
|
24
|
-
params: params,
|
|
25
|
-
opts: opts,
|
|
26
|
-
base_address: :api
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# Update a ServiceAction object.
|
|
31
|
-
def update(id, params = {}, opts = {})
|
|
32
|
-
request(
|
|
33
|
-
method: :post,
|
|
34
|
-
path: format("/v2/billing/service_actions/%<id>s", { id: CGI.escape(id) }),
|
|
35
|
-
params: params,
|
|
36
|
-
opts: opts,
|
|
37
|
-
base_address: :api
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Core
|
|
7
|
-
class ClaimableSandboxService < StripeService
|
|
8
|
-
# Create an anonymous, claimable sandbox. This sandbox can be prefilled with data. The response will include
|
|
9
|
-
# a claim URL that allow a user to claim the account.
|
|
10
|
-
def create(params = {}, opts = {})
|
|
11
|
-
request(
|
|
12
|
-
method: :post,
|
|
13
|
-
path: "/v2/core/claimable_sandboxes",
|
|
14
|
-
params: params,
|
|
15
|
-
opts: opts,
|
|
16
|
-
base_address: :api
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Retrieves the details of a claimable sandbox that was previously been created.
|
|
21
|
-
# Supply the unique claimable sandbox ID that was returned from your creation request,
|
|
22
|
-
# and Stripe will return the corresponding sandbox information.
|
|
23
|
-
def retrieve(id, params = {}, opts = {})
|
|
24
|
-
request(
|
|
25
|
-
method: :get,
|
|
26
|
-
path: format("/v2/core/claimable_sandboxes/%<id>s", { id: CGI.escape(id) }),
|
|
27
|
-
params: params,
|
|
28
|
-
opts: opts,
|
|
29
|
-
base_address: :api
|
|
30
|
-
)
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module MoneyManagement
|
|
7
|
-
class CurrencyConversionService < StripeService
|
|
8
|
-
# Create a CurrencyConversion.
|
|
9
|
-
#
|
|
10
|
-
# ** raises FeatureNotEnabledError
|
|
11
|
-
def create(params = {}, opts = {})
|
|
12
|
-
request(
|
|
13
|
-
method: :post,
|
|
14
|
-
path: "/v2/money_management/currency_conversions",
|
|
15
|
-
params: params,
|
|
16
|
-
opts: opts,
|
|
17
|
-
base_address: :api
|
|
18
|
-
)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# List all CurrencyConversion on an account with the option to filter by FinancialAccount.
|
|
22
|
-
def list(params = {}, opts = {})
|
|
23
|
-
request(
|
|
24
|
-
method: :get,
|
|
25
|
-
path: "/v2/money_management/currency_conversions",
|
|
26
|
-
params: params,
|
|
27
|
-
opts: opts,
|
|
28
|
-
base_address: :api
|
|
29
|
-
)
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Retrieve details of a CurrencyConversion by id.
|
|
33
|
-
def retrieve(id, params = {}, opts = {})
|
|
34
|
-
request(
|
|
35
|
-
method: :get,
|
|
36
|
-
path: format("/v2/money_management/currency_conversions/%<id>s", { id: CGI.escape(id) }),
|
|
37
|
-
params: params,
|
|
38
|
-
opts: opts,
|
|
39
|
-
base_address: :api
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module MoneyManagement
|
|
7
|
-
class RecipientVerificationService < StripeService
|
|
8
|
-
# Acknowledges an existing RecipientVerification. Only RecipientVerification awaiting acknowledgement can be acknowledged.
|
|
9
|
-
def acknowledge(id, params = {}, opts = {})
|
|
10
|
-
request(
|
|
11
|
-
method: :post,
|
|
12
|
-
path: format("/v2/money_management/recipient_verifications/%<id>s/acknowledge", { id: CGI.escape(id) }),
|
|
13
|
-
params: params,
|
|
14
|
-
opts: opts,
|
|
15
|
-
base_address: :api
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# Creates a RecipientVerification to verify the recipient you intend to send funds to.
|
|
20
|
-
def create(params = {}, opts = {})
|
|
21
|
-
request(
|
|
22
|
-
method: :post,
|
|
23
|
-
path: "/v2/money_management/recipient_verifications",
|
|
24
|
-
params: params,
|
|
25
|
-
opts: opts,
|
|
26
|
-
base_address: :api
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# Retrieves the details of an existing RecipientVerification by passing the unique RecipientVerification ID.
|
|
31
|
-
def retrieve(id, params = {}, opts = {})
|
|
32
|
-
request(
|
|
33
|
-
method: :get,
|
|
34
|
-
path: format("/v2/money_management/recipient_verifications/%<id>s", { id: CGI.escape(id) }),
|
|
35
|
-
params: params,
|
|
36
|
-
opts: opts,
|
|
37
|
-
base_address: :api
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
class PaymentService < StripeService
|
|
7
|
-
attr_reader :off_session_payments
|
|
8
|
-
|
|
9
|
-
def initialize(requestor)
|
|
10
|
-
super
|
|
11
|
-
@off_session_payments = Stripe::V2::Payments::OffSessionPaymentService.new(@requestor)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Payments
|
|
7
|
-
class OffSessionPaymentService < StripeService
|
|
8
|
-
# Cancel an OffSessionPayment that has previously been created.
|
|
9
|
-
def cancel(id, params = {}, opts = {})
|
|
10
|
-
request(
|
|
11
|
-
method: :post,
|
|
12
|
-
path: format("/v2/payments/off_session_payments/%<id>s/cancel", { id: CGI.escape(id) }),
|
|
13
|
-
params: params,
|
|
14
|
-
opts: opts,
|
|
15
|
-
base_address: :api
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# Captures an OffSessionPayment that has previously been created.
|
|
20
|
-
def capture(id, params = {}, opts = {})
|
|
21
|
-
request(
|
|
22
|
-
method: :post,
|
|
23
|
-
path: format("/v2/payments/off_session_payments/%<id>s/capture", { id: CGI.escape(id) }),
|
|
24
|
-
params: params,
|
|
25
|
-
opts: opts,
|
|
26
|
-
base_address: :api
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# Creates an OffSessionPayment object.
|
|
31
|
-
def create(params = {}, opts = {})
|
|
32
|
-
request(
|
|
33
|
-
method: :post,
|
|
34
|
-
path: "/v2/payments/off_session_payments",
|
|
35
|
-
params: params,
|
|
36
|
-
opts: opts,
|
|
37
|
-
base_address: :api
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Returns a list of OffSessionPayments matching a filter.
|
|
42
|
-
def list(params = {}, opts = {})
|
|
43
|
-
request(
|
|
44
|
-
method: :get,
|
|
45
|
-
path: "/v2/payments/off_session_payments",
|
|
46
|
-
params: params,
|
|
47
|
-
opts: opts,
|
|
48
|
-
base_address: :api
|
|
49
|
-
)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Retrieves the details of an OffSessionPayment that has previously been created.
|
|
53
|
-
def retrieve(id, params = {}, opts = {})
|
|
54
|
-
request(
|
|
55
|
-
method: :get,
|
|
56
|
-
path: format("/v2/payments/off_session_payments/%<id>s", { id: CGI.escape(id) }),
|
|
57
|
-
params: params,
|
|
58
|
-
opts: opts,
|
|
59
|
-
base_address: :api
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Reporting
|
|
7
|
-
class ReportRunService < StripeService
|
|
8
|
-
# Initiates the generation of a `ReportRun` based on the specified report template
|
|
9
|
-
# and user-provided parameters. It's the starting point for obtaining report data,
|
|
10
|
-
# and returns a `ReportRun` object which can be used to track the progress and retrieve
|
|
11
|
-
# the results of the report.
|
|
12
|
-
#
|
|
13
|
-
# ** raises RateLimitError
|
|
14
|
-
def create(params = {}, opts = {})
|
|
15
|
-
request(
|
|
16
|
-
method: :post,
|
|
17
|
-
path: "/v2/reporting/report_runs",
|
|
18
|
-
params: params,
|
|
19
|
-
opts: opts,
|
|
20
|
-
base_address: :api
|
|
21
|
-
)
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
# Fetches the current state and details of a previously created `ReportRun`. If the `ReportRun`
|
|
25
|
-
# has succeeded, the endpoint will provide details for how to retrieve the results.
|
|
26
|
-
def retrieve(id, params = {}, opts = {})
|
|
27
|
-
request(
|
|
28
|
-
method: :get,
|
|
29
|
-
path: format("/v2/reporting/report_runs/%<id>s", { id: CGI.escape(id) }),
|
|
30
|
-
params: params,
|
|
31
|
-
opts: opts,
|
|
32
|
-
base_address: :api
|
|
33
|
-
)
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Reporting
|
|
7
|
-
class ReportService < StripeService
|
|
8
|
-
# Retrieves metadata about a specific `Report` template, including its name, description,
|
|
9
|
-
# and the parameters it accepts. It's useful for understanding the capabilities and
|
|
10
|
-
# requirements of a particular `Report` before requesting a `ReportRun`.
|
|
11
|
-
def retrieve(id, params = {}, opts = {})
|
|
12
|
-
request(
|
|
13
|
-
method: :get,
|
|
14
|
-
path: format("/v2/reporting/reports/%<id>s", { id: CGI.escape(id) }),
|
|
15
|
-
params: params,
|
|
16
|
-
opts: opts,
|
|
17
|
-
base_address: :api
|
|
18
|
-
)
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
class ReportingService < StripeService
|
|
7
|
-
attr_reader :reports, :report_runs
|
|
8
|
-
|
|
9
|
-
def initialize(requestor)
|
|
10
|
-
super
|
|
11
|
-
@reports = Stripe::V2::Reporting::ReportService.new(@requestor)
|
|
12
|
-
@report_runs = Stripe::V2::Reporting::ReportRunService.new(@requestor)
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module TestHelpers
|
|
7
|
-
class MoneyManagementService < StripeService
|
|
8
|
-
# Creates a RecipientVerification with a specified match result for testing purposes in a Sandbox environment.
|
|
9
|
-
def recipient_verifications(params = {}, opts = {})
|
|
10
|
-
request(
|
|
11
|
-
method: :post,
|
|
12
|
-
path: "/v2/test_helpers/money_management/recipient_verifications",
|
|
13
|
-
params: params,
|
|
14
|
-
opts: opts,
|
|
15
|
-
base_address: :api
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|