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
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module DelegatedCheckout
|
|
6
|
-
# A requested session is a session that has been requested by a customer.
|
|
7
|
-
class RequestedSession < APIResource
|
|
8
|
-
extend Stripe::APIOperations::Create
|
|
9
|
-
include Stripe::APIOperations::Save
|
|
10
|
-
|
|
11
|
-
OBJECT_NAME = "delegated_checkout.requested_session"
|
|
12
|
-
def self.object_name
|
|
13
|
-
"delegated_checkout.requested_session"
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
class FulfillmentDetails < ::Stripe::StripeObject
|
|
17
|
-
class Address < ::Stripe::StripeObject
|
|
18
|
-
# City, district, suburb, town, or village.
|
|
19
|
-
attr_reader :city
|
|
20
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
21
|
-
attr_reader :country
|
|
22
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
23
|
-
attr_reader :line1
|
|
24
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
25
|
-
attr_reader :line2
|
|
26
|
-
# ZIP or postal code.
|
|
27
|
-
attr_reader :postal_code
|
|
28
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
29
|
-
attr_reader :state
|
|
30
|
-
|
|
31
|
-
def self.inner_class_types
|
|
32
|
-
@inner_class_types = {}
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def self.field_remappings
|
|
36
|
-
@field_remappings = {}
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
class FulfillmentOption < ::Stripe::StripeObject
|
|
41
|
-
class Shipping < ::Stripe::StripeObject
|
|
42
|
-
class ShippingOption < ::Stripe::StripeObject
|
|
43
|
-
# The description of the shipping option.
|
|
44
|
-
attr_reader :description
|
|
45
|
-
# The display name of the shipping option.
|
|
46
|
-
attr_reader :display_name
|
|
47
|
-
# The earliest delivery time of the shipping option.
|
|
48
|
-
attr_reader :earliest_delivery_time
|
|
49
|
-
# The key of the shipping option.
|
|
50
|
-
attr_reader :key
|
|
51
|
-
# The latest delivery time of the shipping option.
|
|
52
|
-
attr_reader :latest_delivery_time
|
|
53
|
-
# The shipping amount of the shipping option.
|
|
54
|
-
attr_reader :shipping_amount
|
|
55
|
-
|
|
56
|
-
def self.inner_class_types
|
|
57
|
-
@inner_class_types = {}
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def self.field_remappings
|
|
61
|
-
@field_remappings = {}
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
# The shipping options.
|
|
65
|
-
attr_reader :shipping_options
|
|
66
|
-
|
|
67
|
-
def self.inner_class_types
|
|
68
|
-
@inner_class_types = { shipping_options: ShippingOption }
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def self.field_remappings
|
|
72
|
-
@field_remappings = {}
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
# The shipping option.
|
|
76
|
-
attr_reader :shipping
|
|
77
|
-
# The type of the fulfillment option.
|
|
78
|
-
attr_reader :type
|
|
79
|
-
|
|
80
|
-
def self.inner_class_types
|
|
81
|
-
@inner_class_types = { shipping: Shipping }
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def self.field_remappings
|
|
85
|
-
@field_remappings = {}
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
class SelectedFulfillmentOption < ::Stripe::StripeObject
|
|
90
|
-
class Shipping < ::Stripe::StripeObject
|
|
91
|
-
# The shipping option.
|
|
92
|
-
attr_reader :shipping_option
|
|
93
|
-
|
|
94
|
-
def self.inner_class_types
|
|
95
|
-
@inner_class_types = {}
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
def self.field_remappings
|
|
99
|
-
@field_remappings = {}
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
# The shipping option.
|
|
103
|
-
attr_reader :shipping
|
|
104
|
-
# The type of the selected fulfillment option.
|
|
105
|
-
attr_reader :type
|
|
106
|
-
|
|
107
|
-
def self.inner_class_types
|
|
108
|
-
@inner_class_types = { shipping: Shipping }
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
def self.field_remappings
|
|
112
|
-
@field_remappings = {}
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
# The fulfillment address.
|
|
116
|
-
attr_reader :address
|
|
117
|
-
# The email address for the fulfillment details.
|
|
118
|
-
attr_reader :email
|
|
119
|
-
# The fulfillment options.
|
|
120
|
-
attr_reader :fulfillment_options
|
|
121
|
-
# The name for the fulfillment details.
|
|
122
|
-
attr_reader :name
|
|
123
|
-
# The phone number for the fulfillment details.
|
|
124
|
-
attr_reader :phone
|
|
125
|
-
# The fulfillment option.
|
|
126
|
-
attr_reader :selected_fulfillment_option
|
|
127
|
-
|
|
128
|
-
def self.inner_class_types
|
|
129
|
-
@inner_class_types = {
|
|
130
|
-
address: Address,
|
|
131
|
-
fulfillment_options: FulfillmentOption,
|
|
132
|
-
selected_fulfillment_option: SelectedFulfillmentOption,
|
|
133
|
-
}
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
def self.field_remappings
|
|
137
|
-
@field_remappings = {}
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
class LineItemDetail < ::Stripe::StripeObject
|
|
142
|
-
class ProductDetails < ::Stripe::StripeObject
|
|
143
|
-
class CustomAttribute < ::Stripe::StripeObject
|
|
144
|
-
# The display name of the custom attribute.
|
|
145
|
-
attr_reader :display_name
|
|
146
|
-
# The value of the custom attribute.
|
|
147
|
-
attr_reader :value
|
|
148
|
-
|
|
149
|
-
def self.inner_class_types
|
|
150
|
-
@inner_class_types = {}
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
def self.field_remappings
|
|
154
|
-
@field_remappings = {}
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
class Disclosure < ::Stripe::StripeObject
|
|
159
|
-
# The content of the disclosure.
|
|
160
|
-
attr_reader :content
|
|
161
|
-
# The content type of the disclosure.
|
|
162
|
-
attr_reader :content_type
|
|
163
|
-
# The type of disclosure.
|
|
164
|
-
attr_reader :type
|
|
165
|
-
|
|
166
|
-
def self.inner_class_types
|
|
167
|
-
@inner_class_types = {}
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
def self.field_remappings
|
|
171
|
-
@field_remappings = {}
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
# Custom attributes for the product.
|
|
175
|
-
attr_reader :custom_attributes
|
|
176
|
-
# The description of the product.
|
|
177
|
-
attr_reader :description
|
|
178
|
-
# Disclosures for the product.
|
|
179
|
-
attr_reader :disclosures
|
|
180
|
-
# The images of the product.
|
|
181
|
-
attr_reader :images
|
|
182
|
-
# The title of the product.
|
|
183
|
-
attr_reader :title
|
|
184
|
-
|
|
185
|
-
def self.inner_class_types
|
|
186
|
-
@inner_class_types = { custom_attributes: CustomAttribute, disclosures: Disclosure }
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
def self.field_remappings
|
|
190
|
-
@field_remappings = {}
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
# The total discount for this line item. If no discount were applied, defaults to 0.
|
|
194
|
-
attr_reader :amount_discount
|
|
195
|
-
# The total before any discounts or taxes are applied.
|
|
196
|
-
attr_reader :amount_subtotal
|
|
197
|
-
# The key of the line item.
|
|
198
|
-
attr_reader :key
|
|
199
|
-
# Attribute for field product_details
|
|
200
|
-
attr_reader :product_details
|
|
201
|
-
# The quantity of the line item.
|
|
202
|
-
attr_reader :quantity
|
|
203
|
-
# The SKU ID of the line item.
|
|
204
|
-
attr_reader :sku_id
|
|
205
|
-
# The per-unit amount of the item before any discounts or taxes are applied.
|
|
206
|
-
attr_reader :unit_amount
|
|
207
|
-
|
|
208
|
-
def self.inner_class_types
|
|
209
|
-
@inner_class_types = { product_details: ProductDetails }
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
def self.field_remappings
|
|
213
|
-
@field_remappings = {}
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
class OrderDetails < ::Stripe::StripeObject
|
|
218
|
-
# The seller's order identifier.
|
|
219
|
-
attr_reader :order_id
|
|
220
|
-
# The URL to the order status.
|
|
221
|
-
attr_reader :order_status_url
|
|
222
|
-
|
|
223
|
-
def self.inner_class_types
|
|
224
|
-
@inner_class_types = {}
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
def self.field_remappings
|
|
228
|
-
@field_remappings = {}
|
|
229
|
-
end
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
class PaymentMethodPreview < ::Stripe::StripeObject
|
|
233
|
-
class BillingDetails < ::Stripe::StripeObject
|
|
234
|
-
class Address < ::Stripe::StripeObject
|
|
235
|
-
# City, district, suburb, town, or village.
|
|
236
|
-
attr_reader :city
|
|
237
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
238
|
-
attr_reader :country
|
|
239
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
240
|
-
attr_reader :line1
|
|
241
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
242
|
-
attr_reader :line2
|
|
243
|
-
# ZIP or postal code.
|
|
244
|
-
attr_reader :postal_code
|
|
245
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
246
|
-
attr_reader :state
|
|
247
|
-
|
|
248
|
-
def self.inner_class_types
|
|
249
|
-
@inner_class_types = {}
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
def self.field_remappings
|
|
253
|
-
@field_remappings = {}
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
# The billing address.
|
|
257
|
-
attr_reader :address
|
|
258
|
-
# The email address for the billing details.
|
|
259
|
-
attr_reader :email
|
|
260
|
-
# The name for the billing details.
|
|
261
|
-
attr_reader :name
|
|
262
|
-
# The phone number for the billing details.
|
|
263
|
-
attr_reader :phone
|
|
264
|
-
|
|
265
|
-
def self.inner_class_types
|
|
266
|
-
@inner_class_types = { address: Address }
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
def self.field_remappings
|
|
270
|
-
@field_remappings = {}
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
class Card < ::Stripe::StripeObject
|
|
275
|
-
# The expiry month of the card.
|
|
276
|
-
attr_reader :exp_month
|
|
277
|
-
# The expiry year of the card.
|
|
278
|
-
attr_reader :exp_year
|
|
279
|
-
# The last 4 digits of the card number.
|
|
280
|
-
attr_reader :last4
|
|
281
|
-
|
|
282
|
-
def self.inner_class_types
|
|
283
|
-
@inner_class_types = {}
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def self.field_remappings
|
|
287
|
-
@field_remappings = {}
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
# The billing details of the payment method.
|
|
291
|
-
attr_reader :billing_details
|
|
292
|
-
# The card details of the payment method.
|
|
293
|
-
attr_reader :card
|
|
294
|
-
# The type of the payment method.
|
|
295
|
-
attr_reader :type
|
|
296
|
-
|
|
297
|
-
def self.inner_class_types
|
|
298
|
-
@inner_class_types = { billing_details: BillingDetails, card: Card }
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
def self.field_remappings
|
|
302
|
-
@field_remappings = {}
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
class RiskDetails < ::Stripe::StripeObject
|
|
307
|
-
class ClientDeviceMetadataDetails < ::Stripe::StripeObject
|
|
308
|
-
# The radar session for the client device.
|
|
309
|
-
attr_reader :radar_session
|
|
310
|
-
# The referrer of the client device.
|
|
311
|
-
attr_reader :referrer
|
|
312
|
-
# The remote IP address of the client device.
|
|
313
|
-
attr_reader :remote_ip
|
|
314
|
-
# The time spent on the page by the client device.
|
|
315
|
-
attr_reader :time_on_page_ms
|
|
316
|
-
# The user agent of the client device.
|
|
317
|
-
attr_reader :user_agent
|
|
318
|
-
|
|
319
|
-
def self.inner_class_types
|
|
320
|
-
@inner_class_types = {}
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
def self.field_remappings
|
|
324
|
-
@field_remappings = {}
|
|
325
|
-
end
|
|
326
|
-
end
|
|
327
|
-
# The risk metadata for the client device.
|
|
328
|
-
attr_reader :client_device_metadata_details
|
|
329
|
-
|
|
330
|
-
def self.inner_class_types
|
|
331
|
-
@inner_class_types = { client_device_metadata_details: ClientDeviceMetadataDetails }
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
def self.field_remappings
|
|
335
|
-
@field_remappings = {}
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
class SellerDetails < ::Stripe::StripeObject
|
|
340
|
-
def self.inner_class_types
|
|
341
|
-
@inner_class_types = {}
|
|
342
|
-
end
|
|
343
|
-
|
|
344
|
-
def self.field_remappings
|
|
345
|
-
@field_remappings = {}
|
|
346
|
-
end
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
class TotalDetails < ::Stripe::StripeObject
|
|
350
|
-
class ApplicableFee < ::Stripe::StripeObject
|
|
351
|
-
# The amount of the applicable fee.
|
|
352
|
-
attr_reader :amount
|
|
353
|
-
# The description of the applicable fee.
|
|
354
|
-
attr_reader :description
|
|
355
|
-
# The display name of the applicable fee.
|
|
356
|
-
attr_reader :display_name
|
|
357
|
-
|
|
358
|
-
def self.inner_class_types
|
|
359
|
-
@inner_class_types = {}
|
|
360
|
-
end
|
|
361
|
-
|
|
362
|
-
def self.field_remappings
|
|
363
|
-
@field_remappings = {}
|
|
364
|
-
end
|
|
365
|
-
end
|
|
366
|
-
# The amount of order-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
367
|
-
attr_reader :amount_cart_discount
|
|
368
|
-
# The amount fulfillment of the total details.
|
|
369
|
-
attr_reader :amount_fulfillment
|
|
370
|
-
# The amount of item-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
371
|
-
attr_reader :amount_items_discount
|
|
372
|
-
# The amount tax of the total details.
|
|
373
|
-
attr_reader :amount_tax
|
|
374
|
-
# The applicable fees of the total details.
|
|
375
|
-
attr_reader :applicable_fees
|
|
376
|
-
|
|
377
|
-
def self.inner_class_types
|
|
378
|
-
@inner_class_types = { applicable_fees: ApplicableFee }
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
def self.field_remappings
|
|
382
|
-
@field_remappings = {}
|
|
383
|
-
end
|
|
384
|
-
end
|
|
385
|
-
# The subtotal amount of the requested session.
|
|
386
|
-
attr_reader :amount_subtotal
|
|
387
|
-
# The total amount of the requested session.
|
|
388
|
-
attr_reader :amount_total
|
|
389
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
390
|
-
attr_reader :created_at
|
|
391
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
392
|
-
attr_reader :currency
|
|
393
|
-
# The customer for this requested session.
|
|
394
|
-
attr_reader :customer
|
|
395
|
-
# Time at which the requested session expires. Measured in seconds since the Unix epoch.
|
|
396
|
-
attr_reader :expires_at
|
|
397
|
-
# The details of the fulfillment.
|
|
398
|
-
attr_reader :fulfillment_details
|
|
399
|
-
# Unique identifier for the object.
|
|
400
|
-
attr_reader :id
|
|
401
|
-
# The line items to be purchased.
|
|
402
|
-
attr_reader :line_item_details
|
|
403
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
404
|
-
attr_reader :livemode
|
|
405
|
-
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
406
|
-
attr_reader :metadata
|
|
407
|
-
# String representing the object's type. Objects of the same type share the same value.
|
|
408
|
-
attr_reader :object
|
|
409
|
-
# The details of the order.
|
|
410
|
-
attr_reader :order_details
|
|
411
|
-
# The payment method used for the requested session.
|
|
412
|
-
attr_reader :payment_method
|
|
413
|
-
# The preview of the payment method to be created when the requested session is confirmed.
|
|
414
|
-
attr_reader :payment_method_preview
|
|
415
|
-
# The risk details of the requested session.
|
|
416
|
-
attr_reader :risk_details
|
|
417
|
-
# Attribute for field seller_details
|
|
418
|
-
attr_reader :seller_details
|
|
419
|
-
# Whether or not the payment method should be saved for future use.
|
|
420
|
-
attr_reader :setup_future_usage
|
|
421
|
-
# The metadata shared with the seller.
|
|
422
|
-
attr_reader :shared_metadata
|
|
423
|
-
# The SPT used for payment.
|
|
424
|
-
attr_reader :shared_payment_issued_token
|
|
425
|
-
# The status of the requested session.
|
|
426
|
-
attr_reader :status
|
|
427
|
-
# Attribute for field total_details
|
|
428
|
-
attr_reader :total_details
|
|
429
|
-
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
430
|
-
attr_reader :updated_at
|
|
431
|
-
|
|
432
|
-
# Confirms a requested session
|
|
433
|
-
def confirm(params = {}, opts = {})
|
|
434
|
-
request_stripe_object(
|
|
435
|
-
method: :post,
|
|
436
|
-
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(self["id"]) }),
|
|
437
|
-
params: params,
|
|
438
|
-
opts: opts
|
|
439
|
-
)
|
|
440
|
-
end
|
|
441
|
-
|
|
442
|
-
# Confirms a requested session
|
|
443
|
-
def self.confirm(requested_session, params = {}, opts = {})
|
|
444
|
-
request_stripe_object(
|
|
445
|
-
method: :post,
|
|
446
|
-
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(requested_session) }),
|
|
447
|
-
params: params,
|
|
448
|
-
opts: opts
|
|
449
|
-
)
|
|
450
|
-
end
|
|
451
|
-
|
|
452
|
-
# Creates a requested session
|
|
453
|
-
def self.create(params = {}, opts = {})
|
|
454
|
-
request_stripe_object(
|
|
455
|
-
method: :post,
|
|
456
|
-
path: "/v1/delegated_checkout/requested_sessions",
|
|
457
|
-
params: params,
|
|
458
|
-
opts: opts
|
|
459
|
-
)
|
|
460
|
-
end
|
|
461
|
-
|
|
462
|
-
# Expires a requested session
|
|
463
|
-
def expire(params = {}, opts = {})
|
|
464
|
-
request_stripe_object(
|
|
465
|
-
method: :post,
|
|
466
|
-
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(self["id"]) }),
|
|
467
|
-
params: params,
|
|
468
|
-
opts: opts
|
|
469
|
-
)
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
# Expires a requested session
|
|
473
|
-
def self.expire(requested_session, params = {}, opts = {})
|
|
474
|
-
request_stripe_object(
|
|
475
|
-
method: :post,
|
|
476
|
-
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(requested_session) }),
|
|
477
|
-
params: params,
|
|
478
|
-
opts: opts
|
|
479
|
-
)
|
|
480
|
-
end
|
|
481
|
-
|
|
482
|
-
# Updates a requested session
|
|
483
|
-
def self.update(requested_session, params = {}, opts = {})
|
|
484
|
-
request_stripe_object(
|
|
485
|
-
method: :post,
|
|
486
|
-
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
|
|
487
|
-
params: params,
|
|
488
|
-
opts: opts
|
|
489
|
-
)
|
|
490
|
-
end
|
|
491
|
-
|
|
492
|
-
def self.inner_class_types
|
|
493
|
-
@inner_class_types = {
|
|
494
|
-
fulfillment_details: FulfillmentDetails,
|
|
495
|
-
line_item_details: LineItemDetail,
|
|
496
|
-
order_details: OrderDetails,
|
|
497
|
-
payment_method_preview: PaymentMethodPreview,
|
|
498
|
-
risk_details: RiskDetails,
|
|
499
|
-
seller_details: SellerDetails,
|
|
500
|
-
total_details: TotalDetails,
|
|
501
|
-
}
|
|
502
|
-
end
|
|
503
|
-
|
|
504
|
-
def self.field_remappings
|
|
505
|
-
@field_remappings = {}
|
|
506
|
-
end
|
|
507
|
-
end
|
|
508
|
-
end
|
|
509
|
-
end
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
# The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related information
|
|
6
|
-
# for a single restaurant (SIRET number) in the context of the French Meal Vouchers program.
|
|
7
|
-
class FrMealVouchersOnboarding < APIResource
|
|
8
|
-
extend Stripe::APIOperations::Create
|
|
9
|
-
extend Stripe::APIOperations::List
|
|
10
|
-
include Stripe::APIOperations::Save
|
|
11
|
-
|
|
12
|
-
OBJECT_NAME = "fr_meal_vouchers_onboarding"
|
|
13
|
-
def self.object_name
|
|
14
|
-
"fr_meal_vouchers_onboarding"
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
class Providers < ::Stripe::StripeObject
|
|
18
|
-
class Conecs < ::Stripe::StripeObject
|
|
19
|
-
class Issuers < ::Stripe::StripeObject
|
|
20
|
-
# Issuers are available to this restaurant via Conecs, will be blank if the onboarding to Conecs is not complete or unsuccessful
|
|
21
|
-
attr_reader :available
|
|
22
|
-
|
|
23
|
-
def self.inner_class_types
|
|
24
|
-
@inner_class_types = {}
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def self.field_remappings
|
|
28
|
-
@field_remappings = {}
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
class Requirements < ::Stripe::StripeObject
|
|
33
|
-
class Error < ::Stripe::StripeObject
|
|
34
|
-
# The code for the type of error.
|
|
35
|
-
attr_reader :code
|
|
36
|
-
# An informative message that provides additional details about the error.
|
|
37
|
-
attr_reader :message
|
|
38
|
-
# The specific onboarding requirement field (in the requirements hash) that needs to be resolved.
|
|
39
|
-
attr_reader :requirement
|
|
40
|
-
|
|
41
|
-
def self.inner_class_types
|
|
42
|
-
@inner_class_types = {}
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
def self.field_remappings
|
|
46
|
-
@field_remappings = {}
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
# Information any errors that are preventing the onboarding to Conecs from being completed.
|
|
50
|
-
attr_reader :errors
|
|
51
|
-
# Fields that need to be provided to complete the onboarding to Conecs.
|
|
52
|
-
attr_reader :past_due
|
|
53
|
-
|
|
54
|
-
def self.inner_class_types
|
|
55
|
-
@inner_class_types = { errors: Error }
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def self.field_remappings
|
|
59
|
-
@field_remappings = {}
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
# This represents information which issuers are available to this restaurant via Conecs
|
|
63
|
-
attr_reader :issuers
|
|
64
|
-
# This represents information about outstanding requirements for this restaurant to onboard to Conecs
|
|
65
|
-
attr_reader :requirements
|
|
66
|
-
# Status of the restaurant's onboarding to Conecs
|
|
67
|
-
attr_reader :status
|
|
68
|
-
|
|
69
|
-
def self.inner_class_types
|
|
70
|
-
@inner_class_types = { issuers: Issuers, requirements: Requirements }
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def self.field_remappings
|
|
74
|
-
@field_remappings = {}
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
# This represents the onboarding state of the restaurant on Conecs.
|
|
78
|
-
attr_reader :conecs
|
|
79
|
-
|
|
80
|
-
def self.inner_class_types
|
|
81
|
-
@inner_class_types = { conecs: Conecs }
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def self.field_remappings
|
|
85
|
-
@field_remappings = {}
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
# Unique identifier for the object.
|
|
89
|
-
attr_reader :id
|
|
90
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
91
|
-
attr_reader :livemode
|
|
92
|
-
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
93
|
-
attr_reader :metadata
|
|
94
|
-
# Name of the restaurant.
|
|
95
|
-
attr_reader :name
|
|
96
|
-
# String representing the object's type. Objects of the same type share the same value.
|
|
97
|
-
attr_reader :object
|
|
98
|
-
# Postal code of the restaurant.
|
|
99
|
-
attr_reader :postal_code
|
|
100
|
-
# This represents the onboarding state of the restaurant on different providers.
|
|
101
|
-
attr_reader :providers
|
|
102
|
-
# SIRET number associated with the restaurant.
|
|
103
|
-
attr_reader :siret
|
|
104
|
-
|
|
105
|
-
# Creates a French Meal Vouchers Onboarding object that represents a restaurant's onboarding status and starts the onboarding process.
|
|
106
|
-
def self.create(params = {}, opts = {})
|
|
107
|
-
request_stripe_object(
|
|
108
|
-
method: :post,
|
|
109
|
-
path: "/v1/fr_meal_vouchers_onboardings",
|
|
110
|
-
params: params,
|
|
111
|
-
opts: opts
|
|
112
|
-
)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
# Lists French Meal Vouchers Onboarding objects
|
|
116
|
-
def self.list(params = {}, opts = {})
|
|
117
|
-
request_stripe_object(
|
|
118
|
-
method: :get,
|
|
119
|
-
path: "/v1/fr_meal_vouchers_onboardings",
|
|
120
|
-
params: params,
|
|
121
|
-
opts: opts
|
|
122
|
-
)
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# Updates the details of a restaurant's French Meal Vouchers Onboarding object
|
|
126
|
-
def self.update(id, params = {}, opts = {})
|
|
127
|
-
request_stripe_object(
|
|
128
|
-
method: :post,
|
|
129
|
-
path: format("/v1/fr_meal_vouchers_onboardings/%<id>s", { id: CGI.escape(id) }),
|
|
130
|
-
params: params,
|
|
131
|
-
opts: opts
|
|
132
|
-
)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
def self.inner_class_types
|
|
136
|
-
@inner_class_types = { providers: Providers }
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
def self.field_remappings
|
|
140
|
-
@field_remappings = {}
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
end
|