stripe 18.1.0 → 18.2.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +36 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +66 -0
- data/lib/stripe/event_types.rb +569 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +89 -0
- data/lib/stripe/params/account_create_params.rb +338 -3
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_person_create_params.rb +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +243 -1
- data/lib/stripe/params/account_update_params.rb +300 -2
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +222 -5
- data/lib/stripe/params/checkout/session_update_params.rb +154 -2
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +46 -2
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +941 -9
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +46 -2
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +46 -2
- data/lib/stripe/params/invoice_update_params.rb +107 -2
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/issuing/program_list_params.rb +24 -0
- data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1628 -2
- data/lib/stripe/params/payment_intent_confirm_params.rb +3143 -145
- data/lib/stripe/params/payment_intent_create_params.rb +3135 -124
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +22 -1
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3186 -161
- data/lib/stripe/params/payment_link_create_params.rb +13 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +77 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
- data/lib/stripe/params/product_create_params.rb +14 -1
- data/lib/stripe/params/product_update_params.rb +14 -1
- data/lib/stripe/params/quote_create_params.rb +1021 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +1029 -4
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
- data/lib/stripe/params/setup_intent_create_params.rb +187 -3
- data/lib/stripe/params/setup_intent_update_params.rb +188 -4
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +270 -5
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +609 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +231 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +231 -5
- data/lib/stripe/params/subscription_update_params.rb +253 -4
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/token_create_params.rb +64 -0
- data/lib/stripe/params/transfer_create_params.rb +8 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +959 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
- data/lib/stripe/params/v2/core/account_update_params.rb +938 -5
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +117 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +82 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +93 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +271 -0
- data/lib/stripe/resources/account.rb +182 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +108 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +105 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +58 -2
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +183 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +20 -1
- data/lib/stripe/resources/charge.rb +233 -1
- data/lib/stripe/resources/checkout/session.rb +196 -4
- data/lib/stripe/resources/confirmation_token.rb +151 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +479 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/invoice.rb +166 -1
- data/lib/stripe/resources/invoice_item.rb +108 -2
- data/lib/stripe/resources/invoice_line_item.rb +147 -3
- data/lib/stripe/resources/issuing/card.rb +4 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +66 -1
- data/lib/stripe/resources/mandate.rb +43 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +181 -1
- data/lib/stripe/resources/payment_intent.rb +800 -5
- data/lib/stripe/resources/payment_method.rb +173 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +181 -1
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
- data/lib/stripe/resources/quote.rb +806 -2
- data/lib/stripe/resources/quote_line.rb +527 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1198 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +128 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +249 -0
- data/lib/stripe/resources/subscription_item.rb +43 -1
- data/lib/stripe/resources/subscription_schedule.rb +290 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +1688 -58
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +50 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +134 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +103 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +223 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +265 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +204 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +242 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +157 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +280 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +208 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources.rb +233 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +6 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_method_service.rb +11 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +12 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +35 -0
- data/lib/stripe/services/v2/payment_service.rb +17 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +16 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +98 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +129099 -49595
- metadata +606 -4
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentIntentCreateParams < ::Stripe::RequestParams
|
|
6
|
+
class AllocatedFunds < ::Stripe::RequestParams
|
|
7
|
+
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
|
8
|
+
attr_accessor :enabled
|
|
9
|
+
|
|
10
|
+
def initialize(enabled: nil)
|
|
11
|
+
@enabled = enabled
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
6
15
|
class AmountDetails < ::Stripe::RequestParams
|
|
7
16
|
class LineItem < ::Stripe::RequestParams
|
|
8
17
|
class PaymentMethodOptions < ::Stripe::RequestParams
|
|
@@ -119,154 +128,1801 @@ module Stripe
|
|
|
119
128
|
unit_cost: nil,
|
|
120
129
|
unit_of_measure: nil
|
|
121
130
|
)
|
|
122
|
-
@discount_amount = discount_amount
|
|
123
|
-
@payment_method_options = payment_method_options
|
|
124
|
-
@product_code = product_code
|
|
125
|
-
@product_name = product_name
|
|
126
|
-
@quantity = quantity
|
|
127
|
-
@tax = tax
|
|
128
|
-
@unit_cost = unit_cost
|
|
129
|
-
@unit_of_measure = unit_of_measure
|
|
131
|
+
@discount_amount = discount_amount
|
|
132
|
+
@payment_method_options = payment_method_options
|
|
133
|
+
@product_code = product_code
|
|
134
|
+
@product_name = product_name
|
|
135
|
+
@quantity = quantity
|
|
136
|
+
@tax = tax
|
|
137
|
+
@unit_cost = unit_cost
|
|
138
|
+
@unit_of_measure = unit_of_measure
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
class Shipping < ::Stripe::RequestParams
|
|
143
|
+
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
|
|
144
|
+
attr_accessor :amount
|
|
145
|
+
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
146
|
+
attr_accessor :from_postal_code
|
|
147
|
+
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
148
|
+
attr_accessor :to_postal_code
|
|
149
|
+
|
|
150
|
+
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
|
151
|
+
@amount = amount
|
|
152
|
+
@from_postal_code = from_postal_code
|
|
153
|
+
@to_postal_code = to_postal_code
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class Tax < ::Stripe::RequestParams
|
|
158
|
+
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
159
|
+
#
|
|
160
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
161
|
+
attr_accessor :total_tax_amount
|
|
162
|
+
|
|
163
|
+
def initialize(total_tax_amount: nil)
|
|
164
|
+
@total_tax_amount = total_tax_amount
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
168
|
+
#
|
|
169
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
170
|
+
attr_accessor :discount_amount
|
|
171
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
|
172
|
+
attr_accessor :line_items
|
|
173
|
+
# Contains information about the shipping portion of the amount.
|
|
174
|
+
attr_accessor :shipping
|
|
175
|
+
# Contains information about the tax portion of the amount.
|
|
176
|
+
attr_accessor :tax
|
|
177
|
+
|
|
178
|
+
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
|
|
179
|
+
@discount_amount = discount_amount
|
|
180
|
+
@line_items = line_items
|
|
181
|
+
@shipping = shipping
|
|
182
|
+
@tax = tax
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
class AutomaticPaymentMethods < ::Stripe::RequestParams
|
|
187
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
188
|
+
#
|
|
189
|
+
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
|
190
|
+
attr_accessor :allow_redirects
|
|
191
|
+
# Whether this feature is enabled.
|
|
192
|
+
attr_accessor :enabled
|
|
193
|
+
|
|
194
|
+
def initialize(allow_redirects: nil, enabled: nil)
|
|
195
|
+
@allow_redirects = allow_redirects
|
|
196
|
+
@enabled = enabled
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
class Hooks < ::Stripe::RequestParams
|
|
201
|
+
class Inputs < ::Stripe::RequestParams
|
|
202
|
+
class Tax < ::Stripe::RequestParams
|
|
203
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
204
|
+
attr_accessor :calculation
|
|
205
|
+
|
|
206
|
+
def initialize(calculation: nil)
|
|
207
|
+
@calculation = calculation
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
# Tax arguments for automations
|
|
211
|
+
attr_accessor :tax
|
|
212
|
+
|
|
213
|
+
def initialize(tax: nil)
|
|
214
|
+
@tax = tax
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
# Arguments passed in automations
|
|
218
|
+
attr_accessor :inputs
|
|
219
|
+
|
|
220
|
+
def initialize(inputs: nil)
|
|
221
|
+
@inputs = inputs
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
class MandateData < ::Stripe::RequestParams
|
|
226
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
227
|
+
class Offline < ::Stripe::RequestParams; end
|
|
228
|
+
|
|
229
|
+
class Online < ::Stripe::RequestParams
|
|
230
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
231
|
+
attr_accessor :ip_address
|
|
232
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
233
|
+
attr_accessor :user_agent
|
|
234
|
+
|
|
235
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
236
|
+
@ip_address = ip_address
|
|
237
|
+
@user_agent = user_agent
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
# The time at which the customer accepted the Mandate.
|
|
241
|
+
attr_accessor :accepted_at
|
|
242
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
243
|
+
attr_accessor :offline
|
|
244
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
245
|
+
attr_accessor :online
|
|
246
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
247
|
+
attr_accessor :type
|
|
248
|
+
|
|
249
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
250
|
+
@accepted_at = accepted_at
|
|
251
|
+
@offline = offline
|
|
252
|
+
@online = online
|
|
253
|
+
@type = type
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
257
|
+
attr_accessor :customer_acceptance
|
|
258
|
+
|
|
259
|
+
def initialize(customer_acceptance: nil)
|
|
260
|
+
@customer_acceptance = customer_acceptance
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
265
|
+
class Benefit < ::Stripe::RequestParams
|
|
266
|
+
class FrMealVoucher < ::Stripe::RequestParams
|
|
267
|
+
# The 14-digit SIRET of the meal voucher acceptor.
|
|
268
|
+
attr_accessor :siret
|
|
269
|
+
|
|
270
|
+
def initialize(siret: nil)
|
|
271
|
+
@siret = siret
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
# French meal voucher benefit details for this PaymentIntent.
|
|
275
|
+
attr_accessor :fr_meal_voucher
|
|
276
|
+
|
|
277
|
+
def initialize(fr_meal_voucher: nil)
|
|
278
|
+
@fr_meal_voucher = fr_meal_voucher
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
class CarRental < ::Stripe::RequestParams
|
|
283
|
+
class Affiliate < ::Stripe::RequestParams
|
|
284
|
+
# The name of the affiliate that originated the purchase.
|
|
285
|
+
attr_accessor :name
|
|
286
|
+
|
|
287
|
+
def initialize(name: nil)
|
|
288
|
+
@name = name
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
class Delivery < ::Stripe::RequestParams
|
|
293
|
+
class Recipient < ::Stripe::RequestParams
|
|
294
|
+
# The email of the recipient the ticket is delivered to.
|
|
295
|
+
attr_accessor :email
|
|
296
|
+
# The name of the recipient the ticket is delivered to.
|
|
297
|
+
attr_accessor :name
|
|
298
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
299
|
+
attr_accessor :phone
|
|
300
|
+
|
|
301
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
302
|
+
@email = email
|
|
303
|
+
@name = name
|
|
304
|
+
@phone = phone
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
# The delivery method for the payment
|
|
308
|
+
attr_accessor :mode
|
|
309
|
+
# Details of the recipient.
|
|
310
|
+
attr_accessor :recipient
|
|
311
|
+
|
|
312
|
+
def initialize(mode: nil, recipient: nil)
|
|
313
|
+
@mode = mode
|
|
314
|
+
@recipient = recipient
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
class Distance < ::Stripe::RequestParams
|
|
319
|
+
# Distance traveled.
|
|
320
|
+
attr_accessor :amount
|
|
321
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
322
|
+
attr_accessor :unit
|
|
323
|
+
|
|
324
|
+
def initialize(amount: nil, unit: nil)
|
|
325
|
+
@amount = amount
|
|
326
|
+
@unit = unit
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
class Driver < ::Stripe::RequestParams
|
|
331
|
+
# Driver's identification number.
|
|
332
|
+
attr_accessor :driver_identification_number
|
|
333
|
+
# Driver's tax number.
|
|
334
|
+
attr_accessor :driver_tax_number
|
|
335
|
+
# Full name of the person or entity on the car reservation.
|
|
336
|
+
attr_accessor :name
|
|
337
|
+
|
|
338
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
339
|
+
@driver_identification_number = driver_identification_number
|
|
340
|
+
@driver_tax_number = driver_tax_number
|
|
341
|
+
@name = name
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
346
|
+
# City, district, suburb, town, or village.
|
|
347
|
+
attr_accessor :city
|
|
348
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
349
|
+
attr_accessor :country
|
|
350
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
351
|
+
attr_accessor :line1
|
|
352
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
353
|
+
attr_accessor :line2
|
|
354
|
+
# ZIP or postal code.
|
|
355
|
+
attr_accessor :postal_code
|
|
356
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
357
|
+
attr_accessor :state
|
|
358
|
+
|
|
359
|
+
def initialize(
|
|
360
|
+
city: nil,
|
|
361
|
+
country: nil,
|
|
362
|
+
line1: nil,
|
|
363
|
+
line2: nil,
|
|
364
|
+
postal_code: nil,
|
|
365
|
+
state: nil
|
|
366
|
+
)
|
|
367
|
+
@city = city
|
|
368
|
+
@country = country
|
|
369
|
+
@line1 = line1
|
|
370
|
+
@line2 = line2
|
|
371
|
+
@postal_code = postal_code
|
|
372
|
+
@state = state
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
377
|
+
# City, district, suburb, town, or village.
|
|
378
|
+
attr_accessor :city
|
|
379
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
380
|
+
attr_accessor :country
|
|
381
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
382
|
+
attr_accessor :line1
|
|
383
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
384
|
+
attr_accessor :line2
|
|
385
|
+
# ZIP or postal code.
|
|
386
|
+
attr_accessor :postal_code
|
|
387
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
388
|
+
attr_accessor :state
|
|
389
|
+
|
|
390
|
+
def initialize(
|
|
391
|
+
city: nil,
|
|
392
|
+
country: nil,
|
|
393
|
+
line1: nil,
|
|
394
|
+
line2: nil,
|
|
395
|
+
postal_code: nil,
|
|
396
|
+
state: nil
|
|
397
|
+
)
|
|
398
|
+
@city = city
|
|
399
|
+
@country = country
|
|
400
|
+
@line1 = line1
|
|
401
|
+
@line2 = line2
|
|
402
|
+
@postal_code = postal_code
|
|
403
|
+
@state = state
|
|
404
|
+
end
|
|
405
|
+
end
|
|
406
|
+
# Affiliate details for this purchase.
|
|
407
|
+
attr_accessor :affiliate
|
|
408
|
+
# The booking number associated with the car rental.
|
|
409
|
+
attr_accessor :booking_number
|
|
410
|
+
# Class code of the car.
|
|
411
|
+
attr_accessor :car_class_code
|
|
412
|
+
# Make of the car.
|
|
413
|
+
attr_accessor :car_make
|
|
414
|
+
# Model of the car.
|
|
415
|
+
attr_accessor :car_model
|
|
416
|
+
# The name of the rental car company.
|
|
417
|
+
attr_accessor :company
|
|
418
|
+
# The customer service phone number of the car rental company.
|
|
419
|
+
attr_accessor :customer_service_phone_number
|
|
420
|
+
# Number of days the car is being rented.
|
|
421
|
+
attr_accessor :days_rented
|
|
422
|
+
# Delivery details for this purchase.
|
|
423
|
+
attr_accessor :delivery
|
|
424
|
+
# The details of the distance traveled during the rental period.
|
|
425
|
+
attr_accessor :distance
|
|
426
|
+
# The details of the passengers in the travel reservation
|
|
427
|
+
attr_accessor :drivers
|
|
428
|
+
# List of additional charges being billed.
|
|
429
|
+
attr_accessor :extra_charges
|
|
430
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
431
|
+
attr_accessor :no_show
|
|
432
|
+
# Car pick-up address.
|
|
433
|
+
attr_accessor :pickup_address
|
|
434
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
435
|
+
attr_accessor :pickup_at
|
|
436
|
+
# Name of the pickup location.
|
|
437
|
+
attr_accessor :pickup_location_name
|
|
438
|
+
# Rental rate.
|
|
439
|
+
attr_accessor :rate_amount
|
|
440
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
441
|
+
attr_accessor :rate_interval
|
|
442
|
+
# The name of the person or entity renting the car.
|
|
443
|
+
attr_accessor :renter_name
|
|
444
|
+
# Car return address.
|
|
445
|
+
attr_accessor :return_address
|
|
446
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
447
|
+
attr_accessor :return_at
|
|
448
|
+
# Name of the return location.
|
|
449
|
+
attr_accessor :return_location_name
|
|
450
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
451
|
+
attr_accessor :tax_exempt
|
|
452
|
+
# The vehicle identification number.
|
|
453
|
+
attr_accessor :vehicle_identification_number
|
|
454
|
+
|
|
455
|
+
def initialize(
|
|
456
|
+
affiliate: nil,
|
|
457
|
+
booking_number: nil,
|
|
458
|
+
car_class_code: nil,
|
|
459
|
+
car_make: nil,
|
|
460
|
+
car_model: nil,
|
|
461
|
+
company: nil,
|
|
462
|
+
customer_service_phone_number: nil,
|
|
463
|
+
days_rented: nil,
|
|
464
|
+
delivery: nil,
|
|
465
|
+
distance: nil,
|
|
466
|
+
drivers: nil,
|
|
467
|
+
extra_charges: nil,
|
|
468
|
+
no_show: nil,
|
|
469
|
+
pickup_address: nil,
|
|
470
|
+
pickup_at: nil,
|
|
471
|
+
pickup_location_name: nil,
|
|
472
|
+
rate_amount: nil,
|
|
473
|
+
rate_interval: nil,
|
|
474
|
+
renter_name: nil,
|
|
475
|
+
return_address: nil,
|
|
476
|
+
return_at: nil,
|
|
477
|
+
return_location_name: nil,
|
|
478
|
+
tax_exempt: nil,
|
|
479
|
+
vehicle_identification_number: nil
|
|
480
|
+
)
|
|
481
|
+
@affiliate = affiliate
|
|
482
|
+
@booking_number = booking_number
|
|
483
|
+
@car_class_code = car_class_code
|
|
484
|
+
@car_make = car_make
|
|
485
|
+
@car_model = car_model
|
|
486
|
+
@company = company
|
|
487
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
488
|
+
@days_rented = days_rented
|
|
489
|
+
@delivery = delivery
|
|
490
|
+
@distance = distance
|
|
491
|
+
@drivers = drivers
|
|
492
|
+
@extra_charges = extra_charges
|
|
493
|
+
@no_show = no_show
|
|
494
|
+
@pickup_address = pickup_address
|
|
495
|
+
@pickup_at = pickup_at
|
|
496
|
+
@pickup_location_name = pickup_location_name
|
|
497
|
+
@rate_amount = rate_amount
|
|
498
|
+
@rate_interval = rate_interval
|
|
499
|
+
@renter_name = renter_name
|
|
500
|
+
@return_address = return_address
|
|
501
|
+
@return_at = return_at
|
|
502
|
+
@return_location_name = return_location_name
|
|
503
|
+
@tax_exempt = tax_exempt
|
|
504
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
509
|
+
class Affiliate < ::Stripe::RequestParams
|
|
510
|
+
# Affiliate partner code.
|
|
511
|
+
attr_accessor :code
|
|
512
|
+
# Name of affiliate partner.
|
|
513
|
+
attr_accessor :name
|
|
514
|
+
|
|
515
|
+
def initialize(code: nil, name: nil)
|
|
516
|
+
@code = code
|
|
517
|
+
@name = name
|
|
518
|
+
end
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
class Distance < ::Stripe::RequestParams
|
|
522
|
+
# Distance traveled.
|
|
523
|
+
attr_accessor :amount
|
|
524
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
525
|
+
attr_accessor :unit
|
|
526
|
+
|
|
527
|
+
def initialize(amount: nil, unit: nil)
|
|
528
|
+
@amount = amount
|
|
529
|
+
@unit = unit
|
|
530
|
+
end
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
class Driver < ::Stripe::RequestParams
|
|
534
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
535
|
+
# Day of birth (1-31).
|
|
536
|
+
attr_accessor :day
|
|
537
|
+
# Month of birth (1-12).
|
|
538
|
+
attr_accessor :month
|
|
539
|
+
# Year of birth (must be greater than 1900).
|
|
540
|
+
attr_accessor :year
|
|
541
|
+
|
|
542
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
543
|
+
@day = day
|
|
544
|
+
@month = month
|
|
545
|
+
@year = year
|
|
546
|
+
end
|
|
547
|
+
end
|
|
548
|
+
# Driver's date of birth.
|
|
549
|
+
attr_accessor :date_of_birth
|
|
550
|
+
# Driver's identification number.
|
|
551
|
+
attr_accessor :driver_identification_number
|
|
552
|
+
# Driver's tax number.
|
|
553
|
+
attr_accessor :driver_tax_number
|
|
554
|
+
# Driver's full name.
|
|
555
|
+
attr_accessor :name
|
|
556
|
+
|
|
557
|
+
def initialize(
|
|
558
|
+
date_of_birth: nil,
|
|
559
|
+
driver_identification_number: nil,
|
|
560
|
+
driver_tax_number: nil,
|
|
561
|
+
name: nil
|
|
562
|
+
)
|
|
563
|
+
@date_of_birth = date_of_birth
|
|
564
|
+
@driver_identification_number = driver_identification_number
|
|
565
|
+
@driver_tax_number = driver_tax_number
|
|
566
|
+
@name = name
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
class DropOff < ::Stripe::RequestParams
|
|
571
|
+
class Address < ::Stripe::RequestParams
|
|
572
|
+
# City, district, suburb, town, or village.
|
|
573
|
+
attr_accessor :city
|
|
574
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
575
|
+
attr_accessor :country
|
|
576
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
577
|
+
attr_accessor :line1
|
|
578
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
579
|
+
attr_accessor :line2
|
|
580
|
+
# ZIP or postal code.
|
|
581
|
+
attr_accessor :postal_code
|
|
582
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
583
|
+
attr_accessor :state
|
|
584
|
+
|
|
585
|
+
def initialize(
|
|
586
|
+
city: nil,
|
|
587
|
+
country: nil,
|
|
588
|
+
line1: nil,
|
|
589
|
+
line2: nil,
|
|
590
|
+
postal_code: nil,
|
|
591
|
+
state: nil
|
|
592
|
+
)
|
|
593
|
+
@city = city
|
|
594
|
+
@country = country
|
|
595
|
+
@line1 = line1
|
|
596
|
+
@line2 = line2
|
|
597
|
+
@postal_code = postal_code
|
|
598
|
+
@state = state
|
|
599
|
+
end
|
|
600
|
+
end
|
|
601
|
+
# Address of the rental location.
|
|
602
|
+
attr_accessor :address
|
|
603
|
+
# Location name.
|
|
604
|
+
attr_accessor :location_name
|
|
605
|
+
# Timestamp for the location.
|
|
606
|
+
attr_accessor :time
|
|
607
|
+
|
|
608
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
609
|
+
@address = address
|
|
610
|
+
@location_name = location_name
|
|
611
|
+
@time = time
|
|
612
|
+
end
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
class Insurance < ::Stripe::RequestParams
|
|
616
|
+
# Amount of the insurance coverage in cents.
|
|
617
|
+
attr_accessor :amount
|
|
618
|
+
# Currency of the insurance amount.
|
|
619
|
+
attr_accessor :currency
|
|
620
|
+
# Name of the insurance company.
|
|
621
|
+
attr_accessor :insurance_company_name
|
|
622
|
+
# Type of insurance coverage.
|
|
623
|
+
attr_accessor :insurance_type
|
|
624
|
+
|
|
625
|
+
def initialize(
|
|
626
|
+
amount: nil,
|
|
627
|
+
currency: nil,
|
|
628
|
+
insurance_company_name: nil,
|
|
629
|
+
insurance_type: nil
|
|
630
|
+
)
|
|
631
|
+
@amount = amount
|
|
632
|
+
@currency = currency
|
|
633
|
+
@insurance_company_name = insurance_company_name
|
|
634
|
+
@insurance_type = insurance_type
|
|
635
|
+
end
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
class Pickup < ::Stripe::RequestParams
|
|
639
|
+
class Address < ::Stripe::RequestParams
|
|
640
|
+
# City, district, suburb, town, or village.
|
|
641
|
+
attr_accessor :city
|
|
642
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
643
|
+
attr_accessor :country
|
|
644
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
645
|
+
attr_accessor :line1
|
|
646
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
647
|
+
attr_accessor :line2
|
|
648
|
+
# ZIP or postal code.
|
|
649
|
+
attr_accessor :postal_code
|
|
650
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
651
|
+
attr_accessor :state
|
|
652
|
+
|
|
653
|
+
def initialize(
|
|
654
|
+
city: nil,
|
|
655
|
+
country: nil,
|
|
656
|
+
line1: nil,
|
|
657
|
+
line2: nil,
|
|
658
|
+
postal_code: nil,
|
|
659
|
+
state: nil
|
|
660
|
+
)
|
|
661
|
+
@city = city
|
|
662
|
+
@country = country
|
|
663
|
+
@line1 = line1
|
|
664
|
+
@line2 = line2
|
|
665
|
+
@postal_code = postal_code
|
|
666
|
+
@state = state
|
|
667
|
+
end
|
|
668
|
+
end
|
|
669
|
+
# Address of the rental location.
|
|
670
|
+
attr_accessor :address
|
|
671
|
+
# Location name.
|
|
672
|
+
attr_accessor :location_name
|
|
673
|
+
# Timestamp for the location.
|
|
674
|
+
attr_accessor :time
|
|
675
|
+
|
|
676
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
677
|
+
@address = address
|
|
678
|
+
@location_name = location_name
|
|
679
|
+
@time = time
|
|
680
|
+
end
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
class Total < ::Stripe::RequestParams
|
|
684
|
+
class Discounts < ::Stripe::RequestParams
|
|
685
|
+
# Corporate client discount code.
|
|
686
|
+
attr_accessor :corporate_client_code
|
|
687
|
+
# Coupon code applied to the rental.
|
|
688
|
+
attr_accessor :coupon
|
|
689
|
+
# Maximum number of free miles or kilometers included.
|
|
690
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
691
|
+
|
|
692
|
+
def initialize(
|
|
693
|
+
corporate_client_code: nil,
|
|
694
|
+
coupon: nil,
|
|
695
|
+
maximum_free_miles_or_kilometers: nil
|
|
696
|
+
)
|
|
697
|
+
@corporate_client_code = corporate_client_code
|
|
698
|
+
@coupon = coupon
|
|
699
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
700
|
+
end
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
704
|
+
# Amount of the extra charge in cents.
|
|
705
|
+
attr_accessor :amount
|
|
706
|
+
# Type of extra charge.
|
|
707
|
+
attr_accessor :type
|
|
708
|
+
|
|
709
|
+
def initialize(amount: nil, type: nil)
|
|
710
|
+
@amount = amount
|
|
711
|
+
@type = type
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
class Tax < ::Stripe::RequestParams
|
|
716
|
+
class Tax < ::Stripe::RequestParams
|
|
717
|
+
# Tax amount.
|
|
718
|
+
attr_accessor :amount
|
|
719
|
+
# Tax rate applied.
|
|
720
|
+
attr_accessor :rate
|
|
721
|
+
# Type of tax applied.
|
|
722
|
+
attr_accessor :type
|
|
723
|
+
|
|
724
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
725
|
+
@amount = amount
|
|
726
|
+
@rate = rate
|
|
727
|
+
@type = type
|
|
728
|
+
end
|
|
729
|
+
end
|
|
730
|
+
# Indicates if the transaction is tax exempt.
|
|
731
|
+
attr_accessor :tax_exempt_indicator
|
|
732
|
+
# Array of tax details.
|
|
733
|
+
attr_accessor :taxes
|
|
734
|
+
|
|
735
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
736
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
737
|
+
@taxes = taxes
|
|
738
|
+
end
|
|
739
|
+
end
|
|
740
|
+
# Total amount in cents.
|
|
741
|
+
attr_accessor :amount
|
|
742
|
+
# Currency of the amount.
|
|
743
|
+
attr_accessor :currency
|
|
744
|
+
# Discount details for the rental.
|
|
745
|
+
attr_accessor :discounts
|
|
746
|
+
# Additional charges for the rental.
|
|
747
|
+
attr_accessor :extra_charges
|
|
748
|
+
# Rate per unit for the rental.
|
|
749
|
+
attr_accessor :rate_per_unit
|
|
750
|
+
# Unit of measurement for the rate.
|
|
751
|
+
attr_accessor :rate_unit
|
|
752
|
+
# Tax breakdown for the rental.
|
|
753
|
+
attr_accessor :tax
|
|
754
|
+
|
|
755
|
+
def initialize(
|
|
756
|
+
amount: nil,
|
|
757
|
+
currency: nil,
|
|
758
|
+
discounts: nil,
|
|
759
|
+
extra_charges: nil,
|
|
760
|
+
rate_per_unit: nil,
|
|
761
|
+
rate_unit: nil,
|
|
762
|
+
tax: nil
|
|
763
|
+
)
|
|
764
|
+
@amount = amount
|
|
765
|
+
@currency = currency
|
|
766
|
+
@discounts = discounts
|
|
767
|
+
@extra_charges = extra_charges
|
|
768
|
+
@rate_per_unit = rate_per_unit
|
|
769
|
+
@rate_unit = rate_unit
|
|
770
|
+
@tax = tax
|
|
771
|
+
end
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
class Vehicle < ::Stripe::RequestParams
|
|
775
|
+
# Make of the rental vehicle.
|
|
776
|
+
attr_accessor :make
|
|
777
|
+
# Model of the rental vehicle.
|
|
778
|
+
attr_accessor :model
|
|
779
|
+
# Odometer reading at the time of rental.
|
|
780
|
+
attr_accessor :odometer
|
|
781
|
+
# Type of the rental vehicle.
|
|
782
|
+
attr_accessor :type
|
|
783
|
+
# Class of the rental vehicle.
|
|
784
|
+
attr_accessor :vehicle_class
|
|
785
|
+
# Vehicle identification number (VIN).
|
|
786
|
+
attr_accessor :vehicle_identification_number
|
|
787
|
+
|
|
788
|
+
def initialize(
|
|
789
|
+
make: nil,
|
|
790
|
+
model: nil,
|
|
791
|
+
odometer: nil,
|
|
792
|
+
type: nil,
|
|
793
|
+
vehicle_class: nil,
|
|
794
|
+
vehicle_identification_number: nil
|
|
795
|
+
)
|
|
796
|
+
@make = make
|
|
797
|
+
@model = model
|
|
798
|
+
@odometer = odometer
|
|
799
|
+
@type = type
|
|
800
|
+
@vehicle_class = vehicle_class
|
|
801
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
802
|
+
end
|
|
803
|
+
end
|
|
804
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
805
|
+
attr_accessor :affiliate
|
|
806
|
+
# Booking confirmation number for the car rental.
|
|
807
|
+
attr_accessor :booking_number
|
|
808
|
+
# Name of the car rental company.
|
|
809
|
+
attr_accessor :carrier_name
|
|
810
|
+
# Customer service phone number for the car rental company.
|
|
811
|
+
attr_accessor :customer_service_phone_number
|
|
812
|
+
# Number of days the car is being rented.
|
|
813
|
+
attr_accessor :days_rented
|
|
814
|
+
# Distance details for the rental.
|
|
815
|
+
attr_accessor :distance
|
|
816
|
+
# List of drivers for the rental.
|
|
817
|
+
attr_accessor :drivers
|
|
818
|
+
# Drop-off location details.
|
|
819
|
+
attr_accessor :drop_off
|
|
820
|
+
# Insurance details for the rental.
|
|
821
|
+
attr_accessor :insurances
|
|
822
|
+
# Indicates if the customer was a no-show.
|
|
823
|
+
attr_accessor :no_show_indicator
|
|
824
|
+
# Pickup location details.
|
|
825
|
+
attr_accessor :pickup
|
|
826
|
+
# Name of the person renting the vehicle.
|
|
827
|
+
attr_accessor :renter_name
|
|
828
|
+
# Total cost breakdown for the rental.
|
|
829
|
+
attr_accessor :total
|
|
830
|
+
# Vehicle details for the rental.
|
|
831
|
+
attr_accessor :vehicle
|
|
832
|
+
|
|
833
|
+
def initialize(
|
|
834
|
+
affiliate: nil,
|
|
835
|
+
booking_number: nil,
|
|
836
|
+
carrier_name: nil,
|
|
837
|
+
customer_service_phone_number: nil,
|
|
838
|
+
days_rented: nil,
|
|
839
|
+
distance: nil,
|
|
840
|
+
drivers: nil,
|
|
841
|
+
drop_off: nil,
|
|
842
|
+
insurances: nil,
|
|
843
|
+
no_show_indicator: nil,
|
|
844
|
+
pickup: nil,
|
|
845
|
+
renter_name: nil,
|
|
846
|
+
total: nil,
|
|
847
|
+
vehicle: nil
|
|
848
|
+
)
|
|
849
|
+
@affiliate = affiliate
|
|
850
|
+
@booking_number = booking_number
|
|
851
|
+
@carrier_name = carrier_name
|
|
852
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
853
|
+
@days_rented = days_rented
|
|
854
|
+
@distance = distance
|
|
855
|
+
@drivers = drivers
|
|
856
|
+
@drop_off = drop_off
|
|
857
|
+
@insurances = insurances
|
|
858
|
+
@no_show_indicator = no_show_indicator
|
|
859
|
+
@pickup = pickup
|
|
860
|
+
@renter_name = renter_name
|
|
861
|
+
@total = total
|
|
862
|
+
@vehicle = vehicle
|
|
863
|
+
end
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
class EventDetails < ::Stripe::RequestParams
|
|
867
|
+
class Address < ::Stripe::RequestParams
|
|
868
|
+
# City, district, suburb, town, or village.
|
|
869
|
+
attr_accessor :city
|
|
870
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
871
|
+
attr_accessor :country
|
|
872
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
873
|
+
attr_accessor :line1
|
|
874
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
875
|
+
attr_accessor :line2
|
|
876
|
+
# ZIP or postal code.
|
|
877
|
+
attr_accessor :postal_code
|
|
878
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
879
|
+
attr_accessor :state
|
|
880
|
+
|
|
881
|
+
def initialize(
|
|
882
|
+
city: nil,
|
|
883
|
+
country: nil,
|
|
884
|
+
line1: nil,
|
|
885
|
+
line2: nil,
|
|
886
|
+
postal_code: nil,
|
|
887
|
+
state: nil
|
|
888
|
+
)
|
|
889
|
+
@city = city
|
|
890
|
+
@country = country
|
|
891
|
+
@line1 = line1
|
|
892
|
+
@line2 = line2
|
|
893
|
+
@postal_code = postal_code
|
|
894
|
+
@state = state
|
|
895
|
+
end
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
class Affiliate < ::Stripe::RequestParams
|
|
899
|
+
# The name of the affiliate that originated the purchase.
|
|
900
|
+
attr_accessor :name
|
|
901
|
+
|
|
902
|
+
def initialize(name: nil)
|
|
903
|
+
@name = name
|
|
904
|
+
end
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
class Delivery < ::Stripe::RequestParams
|
|
908
|
+
class Recipient < ::Stripe::RequestParams
|
|
909
|
+
# The email of the recipient the ticket is delivered to.
|
|
910
|
+
attr_accessor :email
|
|
911
|
+
# The name of the recipient the ticket is delivered to.
|
|
912
|
+
attr_accessor :name
|
|
913
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
914
|
+
attr_accessor :phone
|
|
915
|
+
|
|
916
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
917
|
+
@email = email
|
|
918
|
+
@name = name
|
|
919
|
+
@phone = phone
|
|
920
|
+
end
|
|
921
|
+
end
|
|
922
|
+
# The delivery method for the payment
|
|
923
|
+
attr_accessor :mode
|
|
924
|
+
# Details of the recipient.
|
|
925
|
+
attr_accessor :recipient
|
|
926
|
+
|
|
927
|
+
def initialize(mode: nil, recipient: nil)
|
|
928
|
+
@mode = mode
|
|
929
|
+
@recipient = recipient
|
|
930
|
+
end
|
|
931
|
+
end
|
|
932
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
933
|
+
attr_accessor :access_controlled_venue
|
|
934
|
+
# The event location's address.
|
|
935
|
+
attr_accessor :address
|
|
936
|
+
# Affiliate details for this purchase.
|
|
937
|
+
attr_accessor :affiliate
|
|
938
|
+
# The name of the company
|
|
939
|
+
attr_accessor :company
|
|
940
|
+
# Delivery details for this purchase.
|
|
941
|
+
attr_accessor :delivery
|
|
942
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
943
|
+
attr_accessor :ends_at
|
|
944
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
945
|
+
attr_accessor :genre
|
|
946
|
+
# The name of the event.
|
|
947
|
+
attr_accessor :name
|
|
948
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
949
|
+
attr_accessor :starts_at
|
|
950
|
+
|
|
951
|
+
def initialize(
|
|
952
|
+
access_controlled_venue: nil,
|
|
953
|
+
address: nil,
|
|
954
|
+
affiliate: nil,
|
|
955
|
+
company: nil,
|
|
956
|
+
delivery: nil,
|
|
957
|
+
ends_at: nil,
|
|
958
|
+
genre: nil,
|
|
959
|
+
name: nil,
|
|
960
|
+
starts_at: nil
|
|
961
|
+
)
|
|
962
|
+
@access_controlled_venue = access_controlled_venue
|
|
963
|
+
@address = address
|
|
964
|
+
@affiliate = affiliate
|
|
965
|
+
@company = company
|
|
966
|
+
@delivery = delivery
|
|
967
|
+
@ends_at = ends_at
|
|
968
|
+
@genre = genre
|
|
969
|
+
@name = name
|
|
970
|
+
@starts_at = starts_at
|
|
971
|
+
end
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
class Flight < ::Stripe::RequestParams
|
|
975
|
+
class Affiliate < ::Stripe::RequestParams
|
|
976
|
+
# The name of the affiliate that originated the purchase.
|
|
977
|
+
attr_accessor :name
|
|
978
|
+
|
|
979
|
+
def initialize(name: nil)
|
|
980
|
+
@name = name
|
|
981
|
+
end
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
class Delivery < ::Stripe::RequestParams
|
|
985
|
+
class Recipient < ::Stripe::RequestParams
|
|
986
|
+
# The email of the recipient the ticket is delivered to.
|
|
987
|
+
attr_accessor :email
|
|
988
|
+
# The name of the recipient the ticket is delivered to.
|
|
989
|
+
attr_accessor :name
|
|
990
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
991
|
+
attr_accessor :phone
|
|
992
|
+
|
|
993
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
994
|
+
@email = email
|
|
995
|
+
@name = name
|
|
996
|
+
@phone = phone
|
|
997
|
+
end
|
|
998
|
+
end
|
|
999
|
+
# The delivery method for the payment
|
|
1000
|
+
attr_accessor :mode
|
|
1001
|
+
# Details of the recipient.
|
|
1002
|
+
attr_accessor :recipient
|
|
1003
|
+
|
|
1004
|
+
def initialize(mode: nil, recipient: nil)
|
|
1005
|
+
@mode = mode
|
|
1006
|
+
@recipient = recipient
|
|
1007
|
+
end
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
class Passenger < ::Stripe::RequestParams
|
|
1011
|
+
# Full name of the person or entity on the flight reservation.
|
|
1012
|
+
attr_accessor :name
|
|
1013
|
+
|
|
1014
|
+
def initialize(name: nil)
|
|
1015
|
+
@name = name
|
|
1016
|
+
end
|
|
1017
|
+
end
|
|
1018
|
+
|
|
1019
|
+
class Segment < ::Stripe::RequestParams
|
|
1020
|
+
# The flight segment amount.
|
|
1021
|
+
attr_accessor :amount
|
|
1022
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1023
|
+
attr_accessor :arrival_airport
|
|
1024
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1025
|
+
attr_accessor :arrives_at
|
|
1026
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1027
|
+
attr_accessor :carrier
|
|
1028
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1029
|
+
attr_accessor :departs_at
|
|
1030
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1031
|
+
attr_accessor :departure_airport
|
|
1032
|
+
# The flight number associated with the segment
|
|
1033
|
+
attr_accessor :flight_number
|
|
1034
|
+
# The fare class for the segment.
|
|
1035
|
+
attr_accessor :service_class
|
|
1036
|
+
|
|
1037
|
+
def initialize(
|
|
1038
|
+
amount: nil,
|
|
1039
|
+
arrival_airport: nil,
|
|
1040
|
+
arrives_at: nil,
|
|
1041
|
+
carrier: nil,
|
|
1042
|
+
departs_at: nil,
|
|
1043
|
+
departure_airport: nil,
|
|
1044
|
+
flight_number: nil,
|
|
1045
|
+
service_class: nil
|
|
1046
|
+
)
|
|
1047
|
+
@amount = amount
|
|
1048
|
+
@arrival_airport = arrival_airport
|
|
1049
|
+
@arrives_at = arrives_at
|
|
1050
|
+
@carrier = carrier
|
|
1051
|
+
@departs_at = departs_at
|
|
1052
|
+
@departure_airport = departure_airport
|
|
1053
|
+
@flight_number = flight_number
|
|
1054
|
+
@service_class = service_class
|
|
1055
|
+
end
|
|
1056
|
+
end
|
|
1057
|
+
# Affiliate details for this purchase.
|
|
1058
|
+
attr_accessor :affiliate
|
|
1059
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1060
|
+
attr_accessor :agency_number
|
|
1061
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1062
|
+
attr_accessor :carrier
|
|
1063
|
+
# Delivery details for this purchase.
|
|
1064
|
+
attr_accessor :delivery
|
|
1065
|
+
# The name of the person or entity on the reservation.
|
|
1066
|
+
attr_accessor :passenger_name
|
|
1067
|
+
# The details of the passengers in the travel reservation.
|
|
1068
|
+
attr_accessor :passengers
|
|
1069
|
+
# The individual flight segments associated with the trip.
|
|
1070
|
+
attr_accessor :segments
|
|
1071
|
+
# The ticket number associated with the travel reservation.
|
|
1072
|
+
attr_accessor :ticket_number
|
|
1073
|
+
|
|
1074
|
+
def initialize(
|
|
1075
|
+
affiliate: nil,
|
|
1076
|
+
agency_number: nil,
|
|
1077
|
+
carrier: nil,
|
|
1078
|
+
delivery: nil,
|
|
1079
|
+
passenger_name: nil,
|
|
1080
|
+
passengers: nil,
|
|
1081
|
+
segments: nil,
|
|
1082
|
+
ticket_number: nil
|
|
1083
|
+
)
|
|
1084
|
+
@affiliate = affiliate
|
|
1085
|
+
@agency_number = agency_number
|
|
1086
|
+
@carrier = carrier
|
|
1087
|
+
@delivery = delivery
|
|
1088
|
+
@passenger_name = passenger_name
|
|
1089
|
+
@passengers = passengers
|
|
1090
|
+
@segments = segments
|
|
1091
|
+
@ticket_number = ticket_number
|
|
1092
|
+
end
|
|
1093
|
+
end
|
|
1094
|
+
|
|
1095
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1096
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1097
|
+
# Affiliate partner code.
|
|
1098
|
+
attr_accessor :code
|
|
1099
|
+
# Name of affiliate partner.
|
|
1100
|
+
attr_accessor :name
|
|
1101
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1102
|
+
attr_accessor :travel_authorization_code
|
|
1103
|
+
|
|
1104
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1105
|
+
@code = code
|
|
1106
|
+
@name = name
|
|
1107
|
+
@travel_authorization_code = travel_authorization_code
|
|
1108
|
+
end
|
|
1109
|
+
end
|
|
1110
|
+
|
|
1111
|
+
class Insurance < ::Stripe::RequestParams
|
|
1112
|
+
# Insurance cost.
|
|
1113
|
+
attr_accessor :amount
|
|
1114
|
+
# Insurance currency.
|
|
1115
|
+
attr_accessor :currency
|
|
1116
|
+
# Insurance company name.
|
|
1117
|
+
attr_accessor :insurance_company_name
|
|
1118
|
+
# Type of insurance.
|
|
1119
|
+
attr_accessor :insurance_type
|
|
1120
|
+
|
|
1121
|
+
def initialize(
|
|
1122
|
+
amount: nil,
|
|
1123
|
+
currency: nil,
|
|
1124
|
+
insurance_company_name: nil,
|
|
1125
|
+
insurance_type: nil
|
|
1126
|
+
)
|
|
1127
|
+
@amount = amount
|
|
1128
|
+
@currency = currency
|
|
1129
|
+
@insurance_company_name = insurance_company_name
|
|
1130
|
+
@insurance_type = insurance_type
|
|
1131
|
+
end
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1134
|
+
class Passenger < ::Stripe::RequestParams
|
|
1135
|
+
# Passenger's full name.
|
|
1136
|
+
attr_accessor :name
|
|
1137
|
+
|
|
1138
|
+
def initialize(name: nil)
|
|
1139
|
+
@name = name
|
|
1140
|
+
end
|
|
1141
|
+
end
|
|
1142
|
+
|
|
1143
|
+
class Segment < ::Stripe::RequestParams
|
|
1144
|
+
class Arrival < ::Stripe::RequestParams
|
|
1145
|
+
# Arrival airport IATA code.
|
|
1146
|
+
attr_accessor :airport
|
|
1147
|
+
# Arrival date/time.
|
|
1148
|
+
attr_accessor :arrives_at
|
|
1149
|
+
# Arrival city.
|
|
1150
|
+
attr_accessor :city
|
|
1151
|
+
# Arrival country.
|
|
1152
|
+
attr_accessor :country
|
|
1153
|
+
|
|
1154
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1155
|
+
@airport = airport
|
|
1156
|
+
@arrives_at = arrives_at
|
|
1157
|
+
@city = city
|
|
1158
|
+
@country = country
|
|
1159
|
+
end
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
class Departure < ::Stripe::RequestParams
|
|
1163
|
+
# Departure airport IATA code.
|
|
1164
|
+
attr_accessor :airport
|
|
1165
|
+
# Departure city.
|
|
1166
|
+
attr_accessor :city
|
|
1167
|
+
# Departure country.
|
|
1168
|
+
attr_accessor :country
|
|
1169
|
+
# Departure date/time.
|
|
1170
|
+
attr_accessor :departs_at
|
|
1171
|
+
|
|
1172
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1173
|
+
@airport = airport
|
|
1174
|
+
@city = city
|
|
1175
|
+
@country = country
|
|
1176
|
+
@departs_at = departs_at
|
|
1177
|
+
end
|
|
1178
|
+
end
|
|
1179
|
+
# Segment fare amount.
|
|
1180
|
+
attr_accessor :amount
|
|
1181
|
+
# Arrival details.
|
|
1182
|
+
attr_accessor :arrival
|
|
1183
|
+
# Airline carrier code.
|
|
1184
|
+
attr_accessor :carrier_code
|
|
1185
|
+
# Carrier name.
|
|
1186
|
+
attr_accessor :carrier_name
|
|
1187
|
+
# Segment currency.
|
|
1188
|
+
attr_accessor :currency
|
|
1189
|
+
# Departure details.
|
|
1190
|
+
attr_accessor :departure
|
|
1191
|
+
# Exchange ticket number.
|
|
1192
|
+
attr_accessor :exchange_ticket_number
|
|
1193
|
+
# Fare basis code.
|
|
1194
|
+
attr_accessor :fare_basis_code
|
|
1195
|
+
# Additional fees.
|
|
1196
|
+
attr_accessor :fees
|
|
1197
|
+
# Flight number.
|
|
1198
|
+
attr_accessor :flight_number
|
|
1199
|
+
# Stopover indicator.
|
|
1200
|
+
attr_accessor :is_stop_over_indicator
|
|
1201
|
+
# Refundable ticket indicator.
|
|
1202
|
+
attr_accessor :refundable
|
|
1203
|
+
# Class of service.
|
|
1204
|
+
attr_accessor :service_class
|
|
1205
|
+
# Tax amount for segment.
|
|
1206
|
+
attr_accessor :tax_amount
|
|
1207
|
+
# Ticket number.
|
|
1208
|
+
attr_accessor :ticket_number
|
|
1209
|
+
|
|
1210
|
+
def initialize(
|
|
1211
|
+
amount: nil,
|
|
1212
|
+
arrival: nil,
|
|
1213
|
+
carrier_code: nil,
|
|
1214
|
+
carrier_name: nil,
|
|
1215
|
+
currency: nil,
|
|
1216
|
+
departure: nil,
|
|
1217
|
+
exchange_ticket_number: nil,
|
|
1218
|
+
fare_basis_code: nil,
|
|
1219
|
+
fees: nil,
|
|
1220
|
+
flight_number: nil,
|
|
1221
|
+
is_stop_over_indicator: nil,
|
|
1222
|
+
refundable: nil,
|
|
1223
|
+
service_class: nil,
|
|
1224
|
+
tax_amount: nil,
|
|
1225
|
+
ticket_number: nil
|
|
1226
|
+
)
|
|
1227
|
+
@amount = amount
|
|
1228
|
+
@arrival = arrival
|
|
1229
|
+
@carrier_code = carrier_code
|
|
1230
|
+
@carrier_name = carrier_name
|
|
1231
|
+
@currency = currency
|
|
1232
|
+
@departure = departure
|
|
1233
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1234
|
+
@fare_basis_code = fare_basis_code
|
|
1235
|
+
@fees = fees
|
|
1236
|
+
@flight_number = flight_number
|
|
1237
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1238
|
+
@refundable = refundable
|
|
1239
|
+
@service_class = service_class
|
|
1240
|
+
@tax_amount = tax_amount
|
|
1241
|
+
@ticket_number = ticket_number
|
|
1242
|
+
end
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
class Total < ::Stripe::RequestParams
|
|
1246
|
+
class Discounts < ::Stripe::RequestParams
|
|
1247
|
+
# Corporate client discount code.
|
|
1248
|
+
attr_accessor :corporate_client_code
|
|
1249
|
+
|
|
1250
|
+
def initialize(corporate_client_code: nil)
|
|
1251
|
+
@corporate_client_code = corporate_client_code
|
|
1252
|
+
end
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1256
|
+
# Amount of additional charges.
|
|
1257
|
+
attr_accessor :amount
|
|
1258
|
+
# Type of additional charges.
|
|
1259
|
+
attr_accessor :type
|
|
1260
|
+
|
|
1261
|
+
def initialize(amount: nil, type: nil)
|
|
1262
|
+
@amount = amount
|
|
1263
|
+
@type = type
|
|
1264
|
+
end
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1267
|
+
class Tax < ::Stripe::RequestParams
|
|
1268
|
+
class Tax < ::Stripe::RequestParams
|
|
1269
|
+
# Tax amount.
|
|
1270
|
+
attr_accessor :amount
|
|
1271
|
+
# Tax rate.
|
|
1272
|
+
attr_accessor :rate
|
|
1273
|
+
# Type of tax.
|
|
1274
|
+
attr_accessor :type
|
|
1275
|
+
|
|
1276
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1277
|
+
@amount = amount
|
|
1278
|
+
@rate = rate
|
|
1279
|
+
@type = type
|
|
1280
|
+
end
|
|
1281
|
+
end
|
|
1282
|
+
# Array of tax details.
|
|
1283
|
+
attr_accessor :taxes
|
|
1284
|
+
|
|
1285
|
+
def initialize(taxes: nil)
|
|
1286
|
+
@taxes = taxes
|
|
1287
|
+
end
|
|
1288
|
+
end
|
|
1289
|
+
# Total flight amount.
|
|
1290
|
+
attr_accessor :amount
|
|
1291
|
+
# Reason for credit.
|
|
1292
|
+
attr_accessor :credit_reason
|
|
1293
|
+
# Total currency.
|
|
1294
|
+
attr_accessor :currency
|
|
1295
|
+
# Discount details.
|
|
1296
|
+
attr_accessor :discounts
|
|
1297
|
+
# Additional charges.
|
|
1298
|
+
attr_accessor :extra_charges
|
|
1299
|
+
# Tax breakdown.
|
|
1300
|
+
attr_accessor :tax
|
|
1301
|
+
|
|
1302
|
+
def initialize(
|
|
1303
|
+
amount: nil,
|
|
1304
|
+
credit_reason: nil,
|
|
1305
|
+
currency: nil,
|
|
1306
|
+
discounts: nil,
|
|
1307
|
+
extra_charges: nil,
|
|
1308
|
+
tax: nil
|
|
1309
|
+
)
|
|
1310
|
+
@amount = amount
|
|
1311
|
+
@credit_reason = credit_reason
|
|
1312
|
+
@currency = currency
|
|
1313
|
+
@discounts = discounts
|
|
1314
|
+
@extra_charges = extra_charges
|
|
1315
|
+
@tax = tax
|
|
1316
|
+
end
|
|
1317
|
+
end
|
|
1318
|
+
# Affiliate details if applicable.
|
|
1319
|
+
attr_accessor :affiliate
|
|
1320
|
+
# Reservation reference.
|
|
1321
|
+
attr_accessor :booking_number
|
|
1322
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1323
|
+
attr_accessor :computerized_reservation_system
|
|
1324
|
+
# Ticket restrictions.
|
|
1325
|
+
attr_accessor :endorsements_and_restrictions
|
|
1326
|
+
# List of insurances.
|
|
1327
|
+
attr_accessor :insurances
|
|
1328
|
+
# List of passengers.
|
|
1329
|
+
attr_accessor :passengers
|
|
1330
|
+
# List of flight segments.
|
|
1331
|
+
attr_accessor :segments
|
|
1332
|
+
# Electronic ticket indicator.
|
|
1333
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1334
|
+
# Total cost breakdown.
|
|
1335
|
+
attr_accessor :total
|
|
1336
|
+
# Type of flight transaction.
|
|
1337
|
+
attr_accessor :transaction_type
|
|
1338
|
+
|
|
1339
|
+
def initialize(
|
|
1340
|
+
affiliate: nil,
|
|
1341
|
+
booking_number: nil,
|
|
1342
|
+
computerized_reservation_system: nil,
|
|
1343
|
+
endorsements_and_restrictions: nil,
|
|
1344
|
+
insurances: nil,
|
|
1345
|
+
passengers: nil,
|
|
1346
|
+
segments: nil,
|
|
1347
|
+
ticket_electronically_issued_indicator: nil,
|
|
1348
|
+
total: nil,
|
|
1349
|
+
transaction_type: nil
|
|
1350
|
+
)
|
|
1351
|
+
@affiliate = affiliate
|
|
1352
|
+
@booking_number = booking_number
|
|
1353
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1354
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1355
|
+
@insurances = insurances
|
|
1356
|
+
@passengers = passengers
|
|
1357
|
+
@segments = segments
|
|
1358
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1359
|
+
@total = total
|
|
1360
|
+
@transaction_type = transaction_type
|
|
1361
|
+
end
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
class Lodging < ::Stripe::RequestParams
|
|
1365
|
+
class Address < ::Stripe::RequestParams
|
|
1366
|
+
# City, district, suburb, town, or village.
|
|
1367
|
+
attr_accessor :city
|
|
1368
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1369
|
+
attr_accessor :country
|
|
1370
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1371
|
+
attr_accessor :line1
|
|
1372
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1373
|
+
attr_accessor :line2
|
|
1374
|
+
# ZIP or postal code.
|
|
1375
|
+
attr_accessor :postal_code
|
|
1376
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1377
|
+
attr_accessor :state
|
|
1378
|
+
|
|
1379
|
+
def initialize(
|
|
1380
|
+
city: nil,
|
|
1381
|
+
country: nil,
|
|
1382
|
+
line1: nil,
|
|
1383
|
+
line2: nil,
|
|
1384
|
+
postal_code: nil,
|
|
1385
|
+
state: nil
|
|
1386
|
+
)
|
|
1387
|
+
@city = city
|
|
1388
|
+
@country = country
|
|
1389
|
+
@line1 = line1
|
|
1390
|
+
@line2 = line2
|
|
1391
|
+
@postal_code = postal_code
|
|
1392
|
+
@state = state
|
|
1393
|
+
end
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1396
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1397
|
+
# The name of the affiliate that originated the purchase.
|
|
1398
|
+
attr_accessor :name
|
|
1399
|
+
|
|
1400
|
+
def initialize(name: nil)
|
|
1401
|
+
@name = name
|
|
1402
|
+
end
|
|
1403
|
+
end
|
|
1404
|
+
|
|
1405
|
+
class Delivery < ::Stripe::RequestParams
|
|
1406
|
+
class Recipient < ::Stripe::RequestParams
|
|
1407
|
+
# The email of the recipient the ticket is delivered to.
|
|
1408
|
+
attr_accessor :email
|
|
1409
|
+
# The name of the recipient the ticket is delivered to.
|
|
1410
|
+
attr_accessor :name
|
|
1411
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1412
|
+
attr_accessor :phone
|
|
1413
|
+
|
|
1414
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1415
|
+
@email = email
|
|
1416
|
+
@name = name
|
|
1417
|
+
@phone = phone
|
|
1418
|
+
end
|
|
1419
|
+
end
|
|
1420
|
+
# The delivery method for the payment
|
|
1421
|
+
attr_accessor :mode
|
|
1422
|
+
# Details of the recipient.
|
|
1423
|
+
attr_accessor :recipient
|
|
1424
|
+
|
|
1425
|
+
def initialize(mode: nil, recipient: nil)
|
|
1426
|
+
@mode = mode
|
|
1427
|
+
@recipient = recipient
|
|
1428
|
+
end
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
class Passenger < ::Stripe::RequestParams
|
|
1432
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1433
|
+
attr_accessor :name
|
|
1434
|
+
|
|
1435
|
+
def initialize(name: nil)
|
|
1436
|
+
@name = name
|
|
1437
|
+
end
|
|
1438
|
+
end
|
|
1439
|
+
# The lodging location's address.
|
|
1440
|
+
attr_accessor :address
|
|
1441
|
+
# The number of adults on the booking
|
|
1442
|
+
attr_accessor :adults
|
|
1443
|
+
# Affiliate details for this purchase.
|
|
1444
|
+
attr_accessor :affiliate
|
|
1445
|
+
# The booking number associated with the lodging reservation.
|
|
1446
|
+
attr_accessor :booking_number
|
|
1447
|
+
# The lodging category
|
|
1448
|
+
attr_accessor :category
|
|
1449
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1450
|
+
attr_accessor :checkin_at
|
|
1451
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1452
|
+
attr_accessor :checkout_at
|
|
1453
|
+
# The customer service phone number of the lodging company.
|
|
1454
|
+
attr_accessor :customer_service_phone_number
|
|
1455
|
+
# The daily lodging room rate.
|
|
1456
|
+
attr_accessor :daily_room_rate_amount
|
|
1457
|
+
# Delivery details for this purchase.
|
|
1458
|
+
attr_accessor :delivery
|
|
1459
|
+
# List of additional charges being billed.
|
|
1460
|
+
attr_accessor :extra_charges
|
|
1461
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1462
|
+
attr_accessor :fire_safety_act_compliance
|
|
1463
|
+
# The name of the lodging location.
|
|
1464
|
+
attr_accessor :name
|
|
1465
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1466
|
+
attr_accessor :no_show
|
|
1467
|
+
# The number of rooms on the booking
|
|
1468
|
+
attr_accessor :number_of_rooms
|
|
1469
|
+
# The details of the passengers in the travel reservation
|
|
1470
|
+
attr_accessor :passengers
|
|
1471
|
+
# The phone number of the lodging location.
|
|
1472
|
+
attr_accessor :property_phone_number
|
|
1473
|
+
# The room class for this purchase.
|
|
1474
|
+
attr_accessor :room_class
|
|
1475
|
+
# The number of room nights
|
|
1476
|
+
attr_accessor :room_nights
|
|
1477
|
+
# The total tax amount associating with the room reservation.
|
|
1478
|
+
attr_accessor :total_room_tax_amount
|
|
1479
|
+
# The total tax amount
|
|
1480
|
+
attr_accessor :total_tax_amount
|
|
1481
|
+
|
|
1482
|
+
def initialize(
|
|
1483
|
+
address: nil,
|
|
1484
|
+
adults: nil,
|
|
1485
|
+
affiliate: nil,
|
|
1486
|
+
booking_number: nil,
|
|
1487
|
+
category: nil,
|
|
1488
|
+
checkin_at: nil,
|
|
1489
|
+
checkout_at: nil,
|
|
1490
|
+
customer_service_phone_number: nil,
|
|
1491
|
+
daily_room_rate_amount: nil,
|
|
1492
|
+
delivery: nil,
|
|
1493
|
+
extra_charges: nil,
|
|
1494
|
+
fire_safety_act_compliance: nil,
|
|
1495
|
+
name: nil,
|
|
1496
|
+
no_show: nil,
|
|
1497
|
+
number_of_rooms: nil,
|
|
1498
|
+
passengers: nil,
|
|
1499
|
+
property_phone_number: nil,
|
|
1500
|
+
room_class: nil,
|
|
1501
|
+
room_nights: nil,
|
|
1502
|
+
total_room_tax_amount: nil,
|
|
1503
|
+
total_tax_amount: nil
|
|
1504
|
+
)
|
|
1505
|
+
@address = address
|
|
1506
|
+
@adults = adults
|
|
1507
|
+
@affiliate = affiliate
|
|
1508
|
+
@booking_number = booking_number
|
|
1509
|
+
@category = category
|
|
1510
|
+
@checkin_at = checkin_at
|
|
1511
|
+
@checkout_at = checkout_at
|
|
1512
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1513
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1514
|
+
@delivery = delivery
|
|
1515
|
+
@extra_charges = extra_charges
|
|
1516
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1517
|
+
@name = name
|
|
1518
|
+
@no_show = no_show
|
|
1519
|
+
@number_of_rooms = number_of_rooms
|
|
1520
|
+
@passengers = passengers
|
|
1521
|
+
@property_phone_number = property_phone_number
|
|
1522
|
+
@room_class = room_class
|
|
1523
|
+
@room_nights = room_nights
|
|
1524
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1525
|
+
@total_tax_amount = total_tax_amount
|
|
130
1526
|
end
|
|
131
1527
|
end
|
|
132
1528
|
|
|
133
|
-
class
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
1529
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1530
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1531
|
+
# Type of accommodation.
|
|
1532
|
+
attr_accessor :accommodation_type
|
|
1533
|
+
# Bed type.
|
|
1534
|
+
attr_accessor :bed_type
|
|
1535
|
+
# Daily accommodation rate in cents.
|
|
1536
|
+
attr_accessor :daily_rate_amount
|
|
1537
|
+
# Number of nights.
|
|
1538
|
+
attr_accessor :nights
|
|
1539
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1540
|
+
attr_accessor :number_of_rooms
|
|
1541
|
+
# Rate type.
|
|
1542
|
+
attr_accessor :rate_type
|
|
1543
|
+
# Whether smoking is allowed.
|
|
1544
|
+
attr_accessor :smoking_indicator
|
|
140
1545
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
1546
|
+
def initialize(
|
|
1547
|
+
accommodation_type: nil,
|
|
1548
|
+
bed_type: nil,
|
|
1549
|
+
daily_rate_amount: nil,
|
|
1550
|
+
nights: nil,
|
|
1551
|
+
number_of_rooms: nil,
|
|
1552
|
+
rate_type: nil,
|
|
1553
|
+
smoking_indicator: nil
|
|
1554
|
+
)
|
|
1555
|
+
@accommodation_type = accommodation_type
|
|
1556
|
+
@bed_type = bed_type
|
|
1557
|
+
@daily_rate_amount = daily_rate_amount
|
|
1558
|
+
@nights = nights
|
|
1559
|
+
@number_of_rooms = number_of_rooms
|
|
1560
|
+
@rate_type = rate_type
|
|
1561
|
+
@smoking_indicator = smoking_indicator
|
|
1562
|
+
end
|
|
145
1563
|
end
|
|
146
|
-
end
|
|
147
1564
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
1565
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1566
|
+
# Affiliate partner code.
|
|
1567
|
+
attr_accessor :code
|
|
1568
|
+
# Affiliate partner name.
|
|
1569
|
+
attr_accessor :name
|
|
153
1570
|
|
|
154
|
-
|
|
155
|
-
|
|
1571
|
+
def initialize(code: nil, name: nil)
|
|
1572
|
+
@code = code
|
|
1573
|
+
@name = name
|
|
1574
|
+
end
|
|
156
1575
|
end
|
|
157
|
-
end
|
|
158
|
-
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
159
|
-
#
|
|
160
|
-
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
161
|
-
attr_accessor :discount_amount
|
|
162
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
163
|
-
attr_accessor :line_items
|
|
164
|
-
# Contains information about the shipping portion of the amount.
|
|
165
|
-
attr_accessor :shipping
|
|
166
|
-
# Contains information about the tax portion of the amount.
|
|
167
|
-
attr_accessor :tax
|
|
168
1576
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
@shipping = shipping
|
|
173
|
-
@tax = tax
|
|
174
|
-
end
|
|
175
|
-
end
|
|
1577
|
+
class Guest < ::Stripe::RequestParams
|
|
1578
|
+
# Guest's full name.
|
|
1579
|
+
attr_accessor :name
|
|
176
1580
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
attr_accessor :allow_redirects
|
|
182
|
-
# Whether this feature is enabled.
|
|
183
|
-
attr_accessor :enabled
|
|
1581
|
+
def initialize(name: nil)
|
|
1582
|
+
@name = name
|
|
1583
|
+
end
|
|
1584
|
+
end
|
|
184
1585
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
1586
|
+
class Host < ::Stripe::RequestParams
|
|
1587
|
+
class Address < ::Stripe::RequestParams
|
|
1588
|
+
# City, district, suburb, town, or village.
|
|
1589
|
+
attr_accessor :city
|
|
1590
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1591
|
+
attr_accessor :country
|
|
1592
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1593
|
+
attr_accessor :line1
|
|
1594
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1595
|
+
attr_accessor :line2
|
|
1596
|
+
# ZIP or postal code.
|
|
1597
|
+
attr_accessor :postal_code
|
|
1598
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1599
|
+
attr_accessor :state
|
|
190
1600
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
1601
|
+
def initialize(
|
|
1602
|
+
city: nil,
|
|
1603
|
+
country: nil,
|
|
1604
|
+
line1: nil,
|
|
1605
|
+
line2: nil,
|
|
1606
|
+
postal_code: nil,
|
|
1607
|
+
state: nil
|
|
1608
|
+
)
|
|
1609
|
+
@city = city
|
|
1610
|
+
@country = country
|
|
1611
|
+
@line1 = line1
|
|
1612
|
+
@line2 = line2
|
|
1613
|
+
@postal_code = postal_code
|
|
1614
|
+
@state = state
|
|
1615
|
+
end
|
|
1616
|
+
end
|
|
1617
|
+
# Address of the host.
|
|
1618
|
+
attr_accessor :address
|
|
1619
|
+
# Host's country of domicile.
|
|
1620
|
+
attr_accessor :country_of_domicile
|
|
1621
|
+
# Reference number for the host.
|
|
1622
|
+
attr_accessor :host_reference
|
|
1623
|
+
# Type of host.
|
|
1624
|
+
attr_accessor :host_type
|
|
1625
|
+
# Name of the lodging property or host.
|
|
1626
|
+
attr_accessor :name
|
|
1627
|
+
# Total number of reservations for the host.
|
|
1628
|
+
attr_accessor :number_of_reservations
|
|
1629
|
+
# Property phone number.
|
|
1630
|
+
attr_accessor :property_phone_number
|
|
1631
|
+
# Host's registration date.
|
|
1632
|
+
attr_accessor :registered_at
|
|
196
1633
|
|
|
197
|
-
def initialize(
|
|
198
|
-
|
|
1634
|
+
def initialize(
|
|
1635
|
+
address: nil,
|
|
1636
|
+
country_of_domicile: nil,
|
|
1637
|
+
host_reference: nil,
|
|
1638
|
+
host_type: nil,
|
|
1639
|
+
name: nil,
|
|
1640
|
+
number_of_reservations: nil,
|
|
1641
|
+
property_phone_number: nil,
|
|
1642
|
+
registered_at: nil
|
|
1643
|
+
)
|
|
1644
|
+
@address = address
|
|
1645
|
+
@country_of_domicile = country_of_domicile
|
|
1646
|
+
@host_reference = host_reference
|
|
1647
|
+
@host_type = host_type
|
|
1648
|
+
@name = name
|
|
1649
|
+
@number_of_reservations = number_of_reservations
|
|
1650
|
+
@property_phone_number = property_phone_number
|
|
1651
|
+
@registered_at = registered_at
|
|
199
1652
|
end
|
|
200
1653
|
end
|
|
201
|
-
# Tax arguments for automations
|
|
202
|
-
attr_accessor :tax
|
|
203
1654
|
|
|
204
|
-
|
|
205
|
-
|
|
1655
|
+
class Insurance < ::Stripe::RequestParams
|
|
1656
|
+
# Price of the insurance coverage in cents.
|
|
1657
|
+
attr_accessor :amount
|
|
1658
|
+
# Currency of the insurance amount.
|
|
1659
|
+
attr_accessor :currency
|
|
1660
|
+
# Name of the insurance company.
|
|
1661
|
+
attr_accessor :insurance_company_name
|
|
1662
|
+
# Type of insurance coverage.
|
|
1663
|
+
attr_accessor :insurance_type
|
|
1664
|
+
|
|
1665
|
+
def initialize(
|
|
1666
|
+
amount: nil,
|
|
1667
|
+
currency: nil,
|
|
1668
|
+
insurance_company_name: nil,
|
|
1669
|
+
insurance_type: nil
|
|
1670
|
+
)
|
|
1671
|
+
@amount = amount
|
|
1672
|
+
@currency = currency
|
|
1673
|
+
@insurance_company_name = insurance_company_name
|
|
1674
|
+
@insurance_type = insurance_type
|
|
1675
|
+
end
|
|
206
1676
|
end
|
|
207
|
-
end
|
|
208
|
-
# Arguments passed in automations
|
|
209
|
-
attr_accessor :inputs
|
|
210
1677
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
1678
|
+
class Total < ::Stripe::RequestParams
|
|
1679
|
+
class Discounts < ::Stripe::RequestParams
|
|
1680
|
+
# Corporate client discount code.
|
|
1681
|
+
attr_accessor :corporate_client_code
|
|
1682
|
+
# Coupon code.
|
|
1683
|
+
attr_accessor :coupon
|
|
215
1684
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
1685
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1686
|
+
@corporate_client_code = corporate_client_code
|
|
1687
|
+
@coupon = coupon
|
|
1688
|
+
end
|
|
1689
|
+
end
|
|
219
1690
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
1691
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1692
|
+
# Amount of the extra charge in cents.
|
|
1693
|
+
attr_accessor :amount
|
|
1694
|
+
# Type of extra charge.
|
|
1695
|
+
attr_accessor :type
|
|
225
1696
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
1697
|
+
def initialize(amount: nil, type: nil)
|
|
1698
|
+
@amount = amount
|
|
1699
|
+
@type = type
|
|
1700
|
+
end
|
|
1701
|
+
end
|
|
1702
|
+
|
|
1703
|
+
class Tax < ::Stripe::RequestParams
|
|
1704
|
+
class Tax < ::Stripe::RequestParams
|
|
1705
|
+
# Tax amount in cents.
|
|
1706
|
+
attr_accessor :amount
|
|
1707
|
+
# Tax rate.
|
|
1708
|
+
attr_accessor :rate
|
|
1709
|
+
# Type of tax applied.
|
|
1710
|
+
attr_accessor :type
|
|
1711
|
+
|
|
1712
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1713
|
+
@amount = amount
|
|
1714
|
+
@rate = rate
|
|
1715
|
+
@type = type
|
|
1716
|
+
end
|
|
1717
|
+
end
|
|
1718
|
+
# Indicates whether the transaction is tax exempt.
|
|
1719
|
+
attr_accessor :tax_exempt_indicator
|
|
1720
|
+
# Tax details.
|
|
1721
|
+
attr_accessor :taxes
|
|
1722
|
+
|
|
1723
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1724
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1725
|
+
@taxes = taxes
|
|
1726
|
+
end
|
|
1727
|
+
end
|
|
1728
|
+
# Total price of the lodging reservation in cents.
|
|
1729
|
+
attr_accessor :amount
|
|
1730
|
+
# Cash advances in cents.
|
|
1731
|
+
attr_accessor :cash_advances
|
|
1732
|
+
# Currency of the total amount.
|
|
1733
|
+
attr_accessor :currency
|
|
1734
|
+
# Discount details for the lodging.
|
|
1735
|
+
attr_accessor :discounts
|
|
1736
|
+
# Additional charges for the lodging.
|
|
1737
|
+
attr_accessor :extra_charges
|
|
1738
|
+
# Prepaid amount in cents.
|
|
1739
|
+
attr_accessor :prepaid_amount
|
|
1740
|
+
# Tax breakdown for the lodging reservation.
|
|
1741
|
+
attr_accessor :tax
|
|
1742
|
+
|
|
1743
|
+
def initialize(
|
|
1744
|
+
amount: nil,
|
|
1745
|
+
cash_advances: nil,
|
|
1746
|
+
currency: nil,
|
|
1747
|
+
discounts: nil,
|
|
1748
|
+
extra_charges: nil,
|
|
1749
|
+
prepaid_amount: nil,
|
|
1750
|
+
tax: nil
|
|
1751
|
+
)
|
|
1752
|
+
@amount = amount
|
|
1753
|
+
@cash_advances = cash_advances
|
|
1754
|
+
@currency = currency
|
|
1755
|
+
@discounts = discounts
|
|
1756
|
+
@extra_charges = extra_charges
|
|
1757
|
+
@prepaid_amount = prepaid_amount
|
|
1758
|
+
@tax = tax
|
|
229
1759
|
end
|
|
230
1760
|
end
|
|
231
|
-
#
|
|
232
|
-
attr_accessor :
|
|
233
|
-
#
|
|
234
|
-
attr_accessor :
|
|
235
|
-
#
|
|
236
|
-
attr_accessor :
|
|
237
|
-
#
|
|
238
|
-
attr_accessor :
|
|
1761
|
+
# Accommodation details for the lodging.
|
|
1762
|
+
attr_accessor :accommodation
|
|
1763
|
+
# Affiliate details if applicable.
|
|
1764
|
+
attr_accessor :affiliate
|
|
1765
|
+
# Booking confirmation number for the lodging.
|
|
1766
|
+
attr_accessor :booking_number
|
|
1767
|
+
# Check-in date.
|
|
1768
|
+
attr_accessor :checkin_at
|
|
1769
|
+
# Check-out date.
|
|
1770
|
+
attr_accessor :checkout_at
|
|
1771
|
+
# Customer service phone number for the lodging company.
|
|
1772
|
+
attr_accessor :customer_service_phone_number
|
|
1773
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1774
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1775
|
+
# List of guests for the lodging.
|
|
1776
|
+
attr_accessor :guests
|
|
1777
|
+
# Host details for the lodging.
|
|
1778
|
+
attr_accessor :host
|
|
1779
|
+
# List of insurances for the lodging.
|
|
1780
|
+
attr_accessor :insurances
|
|
1781
|
+
# Whether the renter is a no-show.
|
|
1782
|
+
attr_accessor :no_show_indicator
|
|
1783
|
+
# Renter ID number for the lodging.
|
|
1784
|
+
attr_accessor :renter_id_number
|
|
1785
|
+
# Renter name for the lodging.
|
|
1786
|
+
attr_accessor :renter_name
|
|
1787
|
+
# Total details for the lodging.
|
|
1788
|
+
attr_accessor :total
|
|
239
1789
|
|
|
240
|
-
def initialize(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
1790
|
+
def initialize(
|
|
1791
|
+
accommodation: nil,
|
|
1792
|
+
affiliate: nil,
|
|
1793
|
+
booking_number: nil,
|
|
1794
|
+
checkin_at: nil,
|
|
1795
|
+
checkout_at: nil,
|
|
1796
|
+
customer_service_phone_number: nil,
|
|
1797
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1798
|
+
guests: nil,
|
|
1799
|
+
host: nil,
|
|
1800
|
+
insurances: nil,
|
|
1801
|
+
no_show_indicator: nil,
|
|
1802
|
+
renter_id_number: nil,
|
|
1803
|
+
renter_name: nil,
|
|
1804
|
+
total: nil
|
|
1805
|
+
)
|
|
1806
|
+
@accommodation = accommodation
|
|
1807
|
+
@affiliate = affiliate
|
|
1808
|
+
@booking_number = booking_number
|
|
1809
|
+
@checkin_at = checkin_at
|
|
1810
|
+
@checkout_at = checkout_at
|
|
1811
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1812
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1813
|
+
@guests = guests
|
|
1814
|
+
@host = host
|
|
1815
|
+
@insurances = insurances
|
|
1816
|
+
@no_show_indicator = no_show_indicator
|
|
1817
|
+
@renter_id_number = renter_id_number
|
|
1818
|
+
@renter_name = renter_name
|
|
1819
|
+
@total = total
|
|
245
1820
|
end
|
|
246
1821
|
end
|
|
247
|
-
# This hash contains details about the customer acceptance of the Mandate.
|
|
248
|
-
attr_accessor :customer_acceptance
|
|
249
1822
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
1823
|
+
class Subscription < ::Stripe::RequestParams
|
|
1824
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1825
|
+
# The name of the affiliate that originated the purchase.
|
|
1826
|
+
attr_accessor :name
|
|
254
1827
|
|
|
255
|
-
|
|
1828
|
+
def initialize(name: nil)
|
|
1829
|
+
@name = name
|
|
1830
|
+
end
|
|
1831
|
+
end
|
|
1832
|
+
|
|
1833
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1834
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1835
|
+
attr_accessor :count
|
|
1836
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1837
|
+
attr_accessor :interval
|
|
1838
|
+
|
|
1839
|
+
def initialize(count: nil, interval: nil)
|
|
1840
|
+
@count = count
|
|
1841
|
+
@interval = interval
|
|
1842
|
+
end
|
|
1843
|
+
end
|
|
1844
|
+
# Affiliate details for this purchase.
|
|
1845
|
+
attr_accessor :affiliate
|
|
1846
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1847
|
+
attr_accessor :auto_renewal
|
|
1848
|
+
# Subscription billing details for this purchase.
|
|
1849
|
+
attr_accessor :billing_interval
|
|
1850
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1851
|
+
attr_accessor :ends_at
|
|
1852
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1853
|
+
attr_accessor :name
|
|
1854
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1855
|
+
attr_accessor :starts_at
|
|
1856
|
+
|
|
1857
|
+
def initialize(
|
|
1858
|
+
affiliate: nil,
|
|
1859
|
+
auto_renewal: nil,
|
|
1860
|
+
billing_interval: nil,
|
|
1861
|
+
ends_at: nil,
|
|
1862
|
+
name: nil,
|
|
1863
|
+
starts_at: nil
|
|
1864
|
+
)
|
|
1865
|
+
@affiliate = affiliate
|
|
1866
|
+
@auto_renewal = auto_renewal
|
|
1867
|
+
@billing_interval = billing_interval
|
|
1868
|
+
@ends_at = ends_at
|
|
1869
|
+
@name = name
|
|
1870
|
+
@starts_at = starts_at
|
|
1871
|
+
end
|
|
1872
|
+
end
|
|
1873
|
+
# Benefit details for this PaymentIntent
|
|
1874
|
+
attr_accessor :benefit
|
|
1875
|
+
# Car rental details for this PaymentIntent.
|
|
1876
|
+
attr_accessor :car_rental
|
|
1877
|
+
# Car rental data for this PaymentIntent.
|
|
1878
|
+
attr_accessor :car_rental_data
|
|
256
1879
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
257
1880
|
#
|
|
258
1881
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
259
1882
|
attr_accessor :customer_reference
|
|
1883
|
+
# Event details for this PaymentIntent
|
|
1884
|
+
attr_accessor :event_details
|
|
1885
|
+
# Flight reservation details for this PaymentIntent
|
|
1886
|
+
attr_accessor :flight
|
|
1887
|
+
# Flight data for this PaymentIntent.
|
|
1888
|
+
attr_accessor :flight_data
|
|
1889
|
+
# Lodging reservation details for this PaymentIntent
|
|
1890
|
+
attr_accessor :lodging
|
|
1891
|
+
# Lodging data for this PaymentIntent.
|
|
1892
|
+
attr_accessor :lodging_data
|
|
260
1893
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
261
1894
|
#
|
|
262
1895
|
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
263
1896
|
#
|
|
264
1897
|
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
265
1898
|
attr_accessor :order_reference
|
|
1899
|
+
# Subscription details for this PaymentIntent
|
|
1900
|
+
attr_accessor :subscription
|
|
266
1901
|
|
|
267
|
-
def initialize(
|
|
1902
|
+
def initialize(
|
|
1903
|
+
benefit: nil,
|
|
1904
|
+
car_rental: nil,
|
|
1905
|
+
car_rental_data: nil,
|
|
1906
|
+
customer_reference: nil,
|
|
1907
|
+
event_details: nil,
|
|
1908
|
+
flight: nil,
|
|
1909
|
+
flight_data: nil,
|
|
1910
|
+
lodging: nil,
|
|
1911
|
+
lodging_data: nil,
|
|
1912
|
+
order_reference: nil,
|
|
1913
|
+
subscription: nil
|
|
1914
|
+
)
|
|
1915
|
+
@benefit = benefit
|
|
1916
|
+
@car_rental = car_rental
|
|
1917
|
+
@car_rental_data = car_rental_data
|
|
268
1918
|
@customer_reference = customer_reference
|
|
1919
|
+
@event_details = event_details
|
|
1920
|
+
@flight = flight
|
|
1921
|
+
@flight_data = flight_data
|
|
1922
|
+
@lodging = lodging
|
|
1923
|
+
@lodging_data = lodging_data
|
|
269
1924
|
@order_reference = order_reference
|
|
1925
|
+
@subscription = subscription
|
|
270
1926
|
end
|
|
271
1927
|
end
|
|
272
1928
|
|
|
@@ -407,8 +2063,18 @@ module Stripe
|
|
|
407
2063
|
end
|
|
408
2064
|
|
|
409
2065
|
class Giropay < ::Stripe::RequestParams; end
|
|
2066
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
410
2067
|
class Grabpay < ::Stripe::RequestParams; end
|
|
411
2068
|
|
|
2069
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2070
|
+
# Bank where the account is held.
|
|
2071
|
+
attr_accessor :bank
|
|
2072
|
+
|
|
2073
|
+
def initialize(bank: nil)
|
|
2074
|
+
@bank = bank
|
|
2075
|
+
end
|
|
2076
|
+
end
|
|
2077
|
+
|
|
412
2078
|
class Ideal < ::Stripe::RequestParams
|
|
413
2079
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
414
2080
|
attr_accessor :bank
|
|
@@ -506,6 +2172,7 @@ module Stripe
|
|
|
506
2172
|
class Payco < ::Stripe::RequestParams; end
|
|
507
2173
|
class Paynow < ::Stripe::RequestParams; end
|
|
508
2174
|
class Paypal < ::Stripe::RequestParams; end
|
|
2175
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
509
2176
|
|
|
510
2177
|
class Payto < ::Stripe::RequestParams
|
|
511
2178
|
# The account number for the bank account.
|
|
@@ -524,6 +2191,7 @@ module Stripe
|
|
|
524
2191
|
|
|
525
2192
|
class Pix < ::Stripe::RequestParams; end
|
|
526
2193
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2194
|
+
class Qris < ::Stripe::RequestParams; end
|
|
527
2195
|
|
|
528
2196
|
class RadarOptions < ::Stripe::RequestParams
|
|
529
2197
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -534,6 +2202,29 @@ module Stripe
|
|
|
534
2202
|
end
|
|
535
2203
|
end
|
|
536
2204
|
|
|
2205
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2206
|
+
class Dob < ::Stripe::RequestParams
|
|
2207
|
+
# The day of birth, between 1 and 31.
|
|
2208
|
+
attr_accessor :day
|
|
2209
|
+
# The month of birth, between 1 and 12.
|
|
2210
|
+
attr_accessor :month
|
|
2211
|
+
# The four-digit year of birth.
|
|
2212
|
+
attr_accessor :year
|
|
2213
|
+
|
|
2214
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2215
|
+
@day = day
|
|
2216
|
+
@month = month
|
|
2217
|
+
@year = year
|
|
2218
|
+
end
|
|
2219
|
+
end
|
|
2220
|
+
# Customer's date of birth
|
|
2221
|
+
attr_accessor :dob
|
|
2222
|
+
|
|
2223
|
+
def initialize(dob: nil)
|
|
2224
|
+
@dob = dob
|
|
2225
|
+
end
|
|
2226
|
+
end
|
|
2227
|
+
|
|
537
2228
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
538
2229
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
539
2230
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -547,6 +2238,8 @@ module Stripe
|
|
|
547
2238
|
end
|
|
548
2239
|
end
|
|
549
2240
|
|
|
2241
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2242
|
+
|
|
550
2243
|
class Sofort < ::Stripe::RequestParams
|
|
551
2244
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
552
2245
|
attr_accessor :country
|
|
@@ -556,6 +2249,18 @@ module Stripe
|
|
|
556
2249
|
end
|
|
557
2250
|
end
|
|
558
2251
|
|
|
2252
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2253
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2254
|
+
attr_accessor :account
|
|
2255
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
2256
|
+
attr_accessor :source_type
|
|
2257
|
+
|
|
2258
|
+
def initialize(account: nil, source_type: nil)
|
|
2259
|
+
@account = account
|
|
2260
|
+
@source_type = source_type
|
|
2261
|
+
end
|
|
2262
|
+
end
|
|
2263
|
+
|
|
559
2264
|
class Swish < ::Stripe::RequestParams; end
|
|
560
2265
|
class Twint < ::Stripe::RequestParams; end
|
|
561
2266
|
|
|
@@ -628,8 +2333,12 @@ module Stripe
|
|
|
628
2333
|
attr_accessor :fpx
|
|
629
2334
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
630
2335
|
attr_accessor :giropay
|
|
2336
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2337
|
+
attr_accessor :gopay
|
|
631
2338
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
632
2339
|
attr_accessor :grabpay
|
|
2340
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2341
|
+
attr_accessor :id_bank_transfer
|
|
633
2342
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
634
2343
|
attr_accessor :ideal
|
|
635
2344
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -668,14 +2377,20 @@ module Stripe
|
|
|
668
2377
|
attr_accessor :paynow
|
|
669
2378
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
670
2379
|
attr_accessor :paypal
|
|
2380
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2381
|
+
attr_accessor :paypay
|
|
671
2382
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
672
2383
|
attr_accessor :payto
|
|
673
2384
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
674
2385
|
attr_accessor :pix
|
|
675
2386
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
676
2387
|
attr_accessor :promptpay
|
|
2388
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2389
|
+
attr_accessor :qris
|
|
677
2390
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
678
2391
|
attr_accessor :radar_options
|
|
2392
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2393
|
+
attr_accessor :rechnung
|
|
679
2394
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
680
2395
|
attr_accessor :revolut_pay
|
|
681
2396
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -684,8 +2399,12 @@ module Stripe
|
|
|
684
2399
|
attr_accessor :satispay
|
|
685
2400
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
686
2401
|
attr_accessor :sepa_debit
|
|
2402
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2403
|
+
attr_accessor :shopeepay
|
|
687
2404
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
688
2405
|
attr_accessor :sofort
|
|
2406
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2407
|
+
attr_accessor :stripe_balance
|
|
689
2408
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
690
2409
|
attr_accessor :swish
|
|
691
2410
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -720,7 +2439,9 @@ module Stripe
|
|
|
720
2439
|
eps: nil,
|
|
721
2440
|
fpx: nil,
|
|
722
2441
|
giropay: nil,
|
|
2442
|
+
gopay: nil,
|
|
723
2443
|
grabpay: nil,
|
|
2444
|
+
id_bank_transfer: nil,
|
|
724
2445
|
ideal: nil,
|
|
725
2446
|
interac_present: nil,
|
|
726
2447
|
kakao_pay: nil,
|
|
@@ -740,15 +2461,20 @@ module Stripe
|
|
|
740
2461
|
payco: nil,
|
|
741
2462
|
paynow: nil,
|
|
742
2463
|
paypal: nil,
|
|
2464
|
+
paypay: nil,
|
|
743
2465
|
payto: nil,
|
|
744
2466
|
pix: nil,
|
|
745
2467
|
promptpay: nil,
|
|
2468
|
+
qris: nil,
|
|
746
2469
|
radar_options: nil,
|
|
2470
|
+
rechnung: nil,
|
|
747
2471
|
revolut_pay: nil,
|
|
748
2472
|
samsung_pay: nil,
|
|
749
2473
|
satispay: nil,
|
|
750
2474
|
sepa_debit: nil,
|
|
2475
|
+
shopeepay: nil,
|
|
751
2476
|
sofort: nil,
|
|
2477
|
+
stripe_balance: nil,
|
|
752
2478
|
swish: nil,
|
|
753
2479
|
twint: nil,
|
|
754
2480
|
type: nil,
|
|
@@ -776,7 +2502,9 @@ module Stripe
|
|
|
776
2502
|
@eps = eps
|
|
777
2503
|
@fpx = fpx
|
|
778
2504
|
@giropay = giropay
|
|
2505
|
+
@gopay = gopay
|
|
779
2506
|
@grabpay = grabpay
|
|
2507
|
+
@id_bank_transfer = id_bank_transfer
|
|
780
2508
|
@ideal = ideal
|
|
781
2509
|
@interac_present = interac_present
|
|
782
2510
|
@kakao_pay = kakao_pay
|
|
@@ -796,15 +2524,20 @@ module Stripe
|
|
|
796
2524
|
@payco = payco
|
|
797
2525
|
@paynow = paynow
|
|
798
2526
|
@paypal = paypal
|
|
2527
|
+
@paypay = paypay
|
|
799
2528
|
@payto = payto
|
|
800
2529
|
@pix = pix
|
|
801
2530
|
@promptpay = promptpay
|
|
2531
|
+
@qris = qris
|
|
802
2532
|
@radar_options = radar_options
|
|
2533
|
+
@rechnung = rechnung
|
|
803
2534
|
@revolut_pay = revolut_pay
|
|
804
2535
|
@samsung_pay = samsung_pay
|
|
805
2536
|
@satispay = satispay
|
|
806
2537
|
@sepa_debit = sepa_debit
|
|
2538
|
+
@shopeepay = shopeepay
|
|
807
2539
|
@sofort = sofort
|
|
2540
|
+
@stripe_balance = stripe_balance
|
|
808
2541
|
@swish = swish
|
|
809
2542
|
@twint = twint
|
|
810
2543
|
@type = type
|
|
@@ -1175,6 +2908,48 @@ module Stripe
|
|
|
1175
2908
|
end
|
|
1176
2909
|
end
|
|
1177
2910
|
|
|
2911
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
2912
|
+
class Address < ::Stripe::RequestParams
|
|
2913
|
+
# City, district, suburb, town, or village.
|
|
2914
|
+
attr_accessor :city
|
|
2915
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2916
|
+
attr_accessor :country
|
|
2917
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2918
|
+
attr_accessor :line1
|
|
2919
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2920
|
+
attr_accessor :line2
|
|
2921
|
+
# ZIP or postal code.
|
|
2922
|
+
attr_accessor :postal_code
|
|
2923
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2924
|
+
attr_accessor :state
|
|
2925
|
+
|
|
2926
|
+
def initialize(
|
|
2927
|
+
city: nil,
|
|
2928
|
+
country: nil,
|
|
2929
|
+
line1: nil,
|
|
2930
|
+
line2: nil,
|
|
2931
|
+
postal_code: nil,
|
|
2932
|
+
state: nil
|
|
2933
|
+
)
|
|
2934
|
+
@city = city
|
|
2935
|
+
@country = country
|
|
2936
|
+
@line1 = line1
|
|
2937
|
+
@line2 = line2
|
|
2938
|
+
@postal_code = postal_code
|
|
2939
|
+
@state = state
|
|
2940
|
+
end
|
|
2941
|
+
end
|
|
2942
|
+
# Please pass in an address that is within your Stripe user account country
|
|
2943
|
+
attr_accessor :address
|
|
2944
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
2945
|
+
attr_accessor :phone
|
|
2946
|
+
|
|
2947
|
+
def initialize(address: nil, phone: nil)
|
|
2948
|
+
@address = address
|
|
2949
|
+
@phone = phone
|
|
2950
|
+
end
|
|
2951
|
+
end
|
|
2952
|
+
|
|
1178
2953
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1179
2954
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1180
2955
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1269,6 +3044,8 @@ module Stripe
|
|
|
1269
3044
|
attr_accessor :moto
|
|
1270
3045
|
# Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
|
|
1271
3046
|
attr_accessor :network
|
|
3047
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3048
|
+
attr_accessor :request_decremental_authorization
|
|
1272
3049
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1273
3050
|
attr_accessor :request_extended_authorization
|
|
1274
3051
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1277,6 +3054,8 @@ module Stripe
|
|
|
1277
3054
|
attr_accessor :request_multicapture
|
|
1278
3055
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1279
3056
|
attr_accessor :request_overcapture
|
|
3057
|
+
# Request partial authorization on this PaymentIntent.
|
|
3058
|
+
attr_accessor :request_partial_authorization
|
|
1280
3059
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1281
3060
|
attr_accessor :request_three_d_secure
|
|
1282
3061
|
# When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
|
|
@@ -1295,6 +3074,8 @@ module Stripe
|
|
|
1295
3074
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1296
3075
|
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
|
1297
3076
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3077
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3078
|
+
attr_accessor :statement_details
|
|
1298
3079
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1299
3080
|
# the authentication details to use for this payment.
|
|
1300
3081
|
attr_accessor :three_d_secure
|
|
@@ -1306,15 +3087,18 @@ module Stripe
|
|
|
1306
3087
|
mandate_options: nil,
|
|
1307
3088
|
moto: nil,
|
|
1308
3089
|
network: nil,
|
|
3090
|
+
request_decremental_authorization: nil,
|
|
1309
3091
|
request_extended_authorization: nil,
|
|
1310
3092
|
request_incremental_authorization: nil,
|
|
1311
3093
|
request_multicapture: nil,
|
|
1312
3094
|
request_overcapture: nil,
|
|
3095
|
+
request_partial_authorization: nil,
|
|
1313
3096
|
request_three_d_secure: nil,
|
|
1314
3097
|
require_cvc_recollection: nil,
|
|
1315
3098
|
setup_future_usage: nil,
|
|
1316
3099
|
statement_descriptor_suffix_kana: nil,
|
|
1317
3100
|
statement_descriptor_suffix_kanji: nil,
|
|
3101
|
+
statement_details: nil,
|
|
1318
3102
|
three_d_secure: nil
|
|
1319
3103
|
)
|
|
1320
3104
|
@capture_method = capture_method
|
|
@@ -1323,15 +3107,18 @@ module Stripe
|
|
|
1323
3107
|
@mandate_options = mandate_options
|
|
1324
3108
|
@moto = moto
|
|
1325
3109
|
@network = network
|
|
3110
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1326
3111
|
@request_extended_authorization = request_extended_authorization
|
|
1327
3112
|
@request_incremental_authorization = request_incremental_authorization
|
|
1328
3113
|
@request_multicapture = request_multicapture
|
|
1329
3114
|
@request_overcapture = request_overcapture
|
|
3115
|
+
@request_partial_authorization = request_partial_authorization
|
|
1330
3116
|
@request_three_d_secure = request_three_d_secure
|
|
1331
3117
|
@require_cvc_recollection = require_cvc_recollection
|
|
1332
3118
|
@setup_future_usage = setup_future_usage
|
|
1333
3119
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1334
3120
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3121
|
+
@statement_details = statement_details
|
|
1335
3122
|
@three_d_secure = three_d_secure
|
|
1336
3123
|
end
|
|
1337
3124
|
end
|
|
@@ -1437,10 +3224,46 @@ module Stripe
|
|
|
1437
3224
|
@type = type
|
|
1438
3225
|
end
|
|
1439
3226
|
end
|
|
1440
|
-
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
1441
|
-
attr_accessor :bank_transfer
|
|
1442
|
-
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
|
1443
|
-
attr_accessor :funding_type
|
|
3227
|
+
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
3228
|
+
attr_accessor :bank_transfer
|
|
3229
|
+
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
|
3230
|
+
attr_accessor :funding_type
|
|
3231
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3232
|
+
#
|
|
3233
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3234
|
+
#
|
|
3235
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3236
|
+
#
|
|
3237
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
3238
|
+
#
|
|
3239
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
3240
|
+
attr_accessor :setup_future_usage
|
|
3241
|
+
|
|
3242
|
+
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
3243
|
+
@bank_transfer = bank_transfer
|
|
3244
|
+
@funding_type = funding_type
|
|
3245
|
+
@setup_future_usage = setup_future_usage
|
|
3246
|
+
end
|
|
3247
|
+
end
|
|
3248
|
+
|
|
3249
|
+
class Eps < ::Stripe::RequestParams
|
|
3250
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3251
|
+
#
|
|
3252
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3253
|
+
#
|
|
3254
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3255
|
+
#
|
|
3256
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
3257
|
+
#
|
|
3258
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
3259
|
+
attr_accessor :setup_future_usage
|
|
3260
|
+
|
|
3261
|
+
def initialize(setup_future_usage: nil)
|
|
3262
|
+
@setup_future_usage = setup_future_usage
|
|
3263
|
+
end
|
|
3264
|
+
end
|
|
3265
|
+
|
|
3266
|
+
class Fpx < ::Stripe::RequestParams
|
|
1444
3267
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1445
3268
|
#
|
|
1446
3269
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1452,14 +3275,12 @@ module Stripe
|
|
|
1452
3275
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1453
3276
|
attr_accessor :setup_future_usage
|
|
1454
3277
|
|
|
1455
|
-
def initialize(
|
|
1456
|
-
@bank_transfer = bank_transfer
|
|
1457
|
-
@funding_type = funding_type
|
|
3278
|
+
def initialize(setup_future_usage: nil)
|
|
1458
3279
|
@setup_future_usage = setup_future_usage
|
|
1459
3280
|
end
|
|
1460
3281
|
end
|
|
1461
3282
|
|
|
1462
|
-
class
|
|
3283
|
+
class Giropay < ::Stripe::RequestParams
|
|
1463
3284
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1464
3285
|
#
|
|
1465
3286
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1476,7 +3297,7 @@ module Stripe
|
|
|
1476
3297
|
end
|
|
1477
3298
|
end
|
|
1478
3299
|
|
|
1479
|
-
class
|
|
3300
|
+
class Gopay < ::Stripe::RequestParams
|
|
1480
3301
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1481
3302
|
#
|
|
1482
3303
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1493,7 +3314,7 @@ module Stripe
|
|
|
1493
3314
|
end
|
|
1494
3315
|
end
|
|
1495
3316
|
|
|
1496
|
-
class
|
|
3317
|
+
class Grabpay < ::Stripe::RequestParams
|
|
1497
3318
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1498
3319
|
#
|
|
1499
3320
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1510,7 +3331,11 @@ module Stripe
|
|
|
1510
3331
|
end
|
|
1511
3332
|
end
|
|
1512
3333
|
|
|
1513
|
-
class
|
|
3334
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3335
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
|
|
3336
|
+
attr_accessor :expires_after
|
|
3337
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
|
|
3338
|
+
attr_accessor :expires_at
|
|
1514
3339
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1515
3340
|
#
|
|
1516
3341
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1522,7 +3347,9 @@ module Stripe
|
|
|
1522
3347
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1523
3348
|
attr_accessor :setup_future_usage
|
|
1524
3349
|
|
|
1525
|
-
def initialize(setup_future_usage: nil)
|
|
3350
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3351
|
+
@expires_after = expires_after
|
|
3352
|
+
@expires_at = expires_at
|
|
1526
3353
|
@setup_future_usage = setup_future_usage
|
|
1527
3354
|
end
|
|
1528
3355
|
end
|
|
@@ -1633,6 +3460,939 @@ module Stripe
|
|
|
1633
3460
|
@reference = reference
|
|
1634
3461
|
end
|
|
1635
3462
|
end
|
|
3463
|
+
|
|
3464
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3465
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
3466
|
+
class Arrival < ::Stripe::RequestParams
|
|
3467
|
+
class Address < ::Stripe::RequestParams
|
|
3468
|
+
# The city or town.
|
|
3469
|
+
attr_accessor :city
|
|
3470
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3471
|
+
attr_accessor :country
|
|
3472
|
+
# The postal code formatted according to country.
|
|
3473
|
+
attr_accessor :postal_code
|
|
3474
|
+
# The state, county, province, or region formatted according to country.
|
|
3475
|
+
attr_accessor :region
|
|
3476
|
+
# Line 1 of the street address.
|
|
3477
|
+
attr_accessor :street_address
|
|
3478
|
+
# Line 2 of the street address.
|
|
3479
|
+
attr_accessor :street_address2
|
|
3480
|
+
|
|
3481
|
+
def initialize(
|
|
3482
|
+
city: nil,
|
|
3483
|
+
country: nil,
|
|
3484
|
+
postal_code: nil,
|
|
3485
|
+
region: nil,
|
|
3486
|
+
street_address: nil,
|
|
3487
|
+
street_address2: nil
|
|
3488
|
+
)
|
|
3489
|
+
@city = city
|
|
3490
|
+
@country = country
|
|
3491
|
+
@postal_code = postal_code
|
|
3492
|
+
@region = region
|
|
3493
|
+
@street_address = street_address
|
|
3494
|
+
@street_address2 = street_address2
|
|
3495
|
+
end
|
|
3496
|
+
end
|
|
3497
|
+
# Address of the arrival location.
|
|
3498
|
+
attr_accessor :address
|
|
3499
|
+
# Identifier name or reference for the arrival location.
|
|
3500
|
+
attr_accessor :arrival_location
|
|
3501
|
+
|
|
3502
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3503
|
+
@address = address
|
|
3504
|
+
@arrival_location = arrival_location
|
|
3505
|
+
end
|
|
3506
|
+
end
|
|
3507
|
+
|
|
3508
|
+
class Departure < ::Stripe::RequestParams
|
|
3509
|
+
class Address < ::Stripe::RequestParams
|
|
3510
|
+
# The city or town.
|
|
3511
|
+
attr_accessor :city
|
|
3512
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3513
|
+
attr_accessor :country
|
|
3514
|
+
# The postal code formatted according to country.
|
|
3515
|
+
attr_accessor :postal_code
|
|
3516
|
+
# The state, county, province, or region formatted according to country.
|
|
3517
|
+
attr_accessor :region
|
|
3518
|
+
# Line 1 of the street address.
|
|
3519
|
+
attr_accessor :street_address
|
|
3520
|
+
# Line 2 of the street address.
|
|
3521
|
+
attr_accessor :street_address2
|
|
3522
|
+
|
|
3523
|
+
def initialize(
|
|
3524
|
+
city: nil,
|
|
3525
|
+
country: nil,
|
|
3526
|
+
postal_code: nil,
|
|
3527
|
+
region: nil,
|
|
3528
|
+
street_address: nil,
|
|
3529
|
+
street_address2: nil
|
|
3530
|
+
)
|
|
3531
|
+
@city = city
|
|
3532
|
+
@country = country
|
|
3533
|
+
@postal_code = postal_code
|
|
3534
|
+
@region = region
|
|
3535
|
+
@street_address = street_address
|
|
3536
|
+
@street_address2 = street_address2
|
|
3537
|
+
end
|
|
3538
|
+
end
|
|
3539
|
+
# Address of the departure location.
|
|
3540
|
+
attr_accessor :address
|
|
3541
|
+
# Timestamp of departure.
|
|
3542
|
+
attr_accessor :departs_at
|
|
3543
|
+
# Identifier name or reference for the origin location.
|
|
3544
|
+
attr_accessor :departure_location
|
|
3545
|
+
|
|
3546
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3547
|
+
@address = address
|
|
3548
|
+
@departs_at = departs_at
|
|
3549
|
+
@departure_location = departure_location
|
|
3550
|
+
end
|
|
3551
|
+
end
|
|
3552
|
+
|
|
3553
|
+
class Insurance < ::Stripe::RequestParams
|
|
3554
|
+
# Insurance currency.
|
|
3555
|
+
attr_accessor :currency
|
|
3556
|
+
# Name of the company providing the insurance.
|
|
3557
|
+
attr_accessor :insurance_company_name
|
|
3558
|
+
# Type of insurance.
|
|
3559
|
+
attr_accessor :insurance_type
|
|
3560
|
+
# Price of insurance in cents.
|
|
3561
|
+
attr_accessor :price
|
|
3562
|
+
|
|
3563
|
+
def initialize(
|
|
3564
|
+
currency: nil,
|
|
3565
|
+
insurance_company_name: nil,
|
|
3566
|
+
insurance_type: nil,
|
|
3567
|
+
price: nil
|
|
3568
|
+
)
|
|
3569
|
+
@currency = currency
|
|
3570
|
+
@insurance_company_name = insurance_company_name
|
|
3571
|
+
@insurance_type = insurance_type
|
|
3572
|
+
@price = price
|
|
3573
|
+
end
|
|
3574
|
+
end
|
|
3575
|
+
|
|
3576
|
+
class Passenger < ::Stripe::RequestParams
|
|
3577
|
+
# The family name of the person.
|
|
3578
|
+
attr_accessor :family_name
|
|
3579
|
+
# The given name of the person.
|
|
3580
|
+
attr_accessor :given_name
|
|
3581
|
+
|
|
3582
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3583
|
+
@family_name = family_name
|
|
3584
|
+
@given_name = given_name
|
|
3585
|
+
end
|
|
3586
|
+
end
|
|
3587
|
+
# Name of associated or partner company for the service.
|
|
3588
|
+
attr_accessor :affiliate_name
|
|
3589
|
+
# Arrival details.
|
|
3590
|
+
attr_accessor :arrival
|
|
3591
|
+
# Name of transportation company.
|
|
3592
|
+
attr_accessor :carrier_name
|
|
3593
|
+
# Currency.
|
|
3594
|
+
attr_accessor :currency
|
|
3595
|
+
# Departure details.
|
|
3596
|
+
attr_accessor :departure
|
|
3597
|
+
# List of insurances for this reservation.
|
|
3598
|
+
attr_accessor :insurances
|
|
3599
|
+
# List of passengers that this reservation applies to.
|
|
3600
|
+
attr_accessor :passengers
|
|
3601
|
+
# Price in cents.
|
|
3602
|
+
attr_accessor :price
|
|
3603
|
+
# Ticket class.
|
|
3604
|
+
attr_accessor :ticket_class
|
|
3605
|
+
|
|
3606
|
+
def initialize(
|
|
3607
|
+
affiliate_name: nil,
|
|
3608
|
+
arrival: nil,
|
|
3609
|
+
carrier_name: nil,
|
|
3610
|
+
currency: nil,
|
|
3611
|
+
departure: nil,
|
|
3612
|
+
insurances: nil,
|
|
3613
|
+
passengers: nil,
|
|
3614
|
+
price: nil,
|
|
3615
|
+
ticket_class: nil
|
|
3616
|
+
)
|
|
3617
|
+
@affiliate_name = affiliate_name
|
|
3618
|
+
@arrival = arrival
|
|
3619
|
+
@carrier_name = carrier_name
|
|
3620
|
+
@currency = currency
|
|
3621
|
+
@departure = departure
|
|
3622
|
+
@insurances = insurances
|
|
3623
|
+
@passengers = passengers
|
|
3624
|
+
@price = price
|
|
3625
|
+
@ticket_class = ticket_class
|
|
3626
|
+
end
|
|
3627
|
+
end
|
|
3628
|
+
|
|
3629
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
3630
|
+
class Address < ::Stripe::RequestParams
|
|
3631
|
+
# The city or town.
|
|
3632
|
+
attr_accessor :city
|
|
3633
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3634
|
+
attr_accessor :country
|
|
3635
|
+
# The postal code formatted according to country.
|
|
3636
|
+
attr_accessor :postal_code
|
|
3637
|
+
# The state, county, province, or region formatted according to country.
|
|
3638
|
+
attr_accessor :region
|
|
3639
|
+
# Line 1 of the street address.
|
|
3640
|
+
attr_accessor :street_address
|
|
3641
|
+
# Line 2 of the street address.
|
|
3642
|
+
attr_accessor :street_address2
|
|
3643
|
+
|
|
3644
|
+
def initialize(
|
|
3645
|
+
city: nil,
|
|
3646
|
+
country: nil,
|
|
3647
|
+
postal_code: nil,
|
|
3648
|
+
region: nil,
|
|
3649
|
+
street_address: nil,
|
|
3650
|
+
street_address2: nil
|
|
3651
|
+
)
|
|
3652
|
+
@city = city
|
|
3653
|
+
@country = country
|
|
3654
|
+
@postal_code = postal_code
|
|
3655
|
+
@region = region
|
|
3656
|
+
@street_address = street_address
|
|
3657
|
+
@street_address2 = street_address2
|
|
3658
|
+
end
|
|
3659
|
+
end
|
|
3660
|
+
|
|
3661
|
+
class Insurance < ::Stripe::RequestParams
|
|
3662
|
+
# Insurance currency.
|
|
3663
|
+
attr_accessor :currency
|
|
3664
|
+
# Name of the company providing the insurance.
|
|
3665
|
+
attr_accessor :insurance_company_name
|
|
3666
|
+
# Type of insurance.
|
|
3667
|
+
attr_accessor :insurance_type
|
|
3668
|
+
# Price of insurance in cents.
|
|
3669
|
+
attr_accessor :price
|
|
3670
|
+
|
|
3671
|
+
def initialize(
|
|
3672
|
+
currency: nil,
|
|
3673
|
+
insurance_company_name: nil,
|
|
3674
|
+
insurance_type: nil,
|
|
3675
|
+
price: nil
|
|
3676
|
+
)
|
|
3677
|
+
@currency = currency
|
|
3678
|
+
@insurance_company_name = insurance_company_name
|
|
3679
|
+
@insurance_type = insurance_type
|
|
3680
|
+
@price = price
|
|
3681
|
+
end
|
|
3682
|
+
end
|
|
3683
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3684
|
+
attr_accessor :access_controlled_venue
|
|
3685
|
+
# Address of the event.
|
|
3686
|
+
attr_accessor :address
|
|
3687
|
+
# Name of associated or partner company for the service.
|
|
3688
|
+
attr_accessor :affiliate_name
|
|
3689
|
+
# End timestamp of the event.
|
|
3690
|
+
attr_accessor :ends_at
|
|
3691
|
+
# Company selling the ticket.
|
|
3692
|
+
attr_accessor :event_company_name
|
|
3693
|
+
# Name of the event.
|
|
3694
|
+
attr_accessor :event_name
|
|
3695
|
+
# Type of the event.
|
|
3696
|
+
attr_accessor :event_type
|
|
3697
|
+
# List of insurances for this event.
|
|
3698
|
+
attr_accessor :insurances
|
|
3699
|
+
# Start timestamp of the event.
|
|
3700
|
+
attr_accessor :starts_at
|
|
3701
|
+
# Name of the venue where the event takes place.
|
|
3702
|
+
attr_accessor :venue_name
|
|
3703
|
+
|
|
3704
|
+
def initialize(
|
|
3705
|
+
access_controlled_venue: nil,
|
|
3706
|
+
address: nil,
|
|
3707
|
+
affiliate_name: nil,
|
|
3708
|
+
ends_at: nil,
|
|
3709
|
+
event_company_name: nil,
|
|
3710
|
+
event_name: nil,
|
|
3711
|
+
event_type: nil,
|
|
3712
|
+
insurances: nil,
|
|
3713
|
+
starts_at: nil,
|
|
3714
|
+
venue_name: nil
|
|
3715
|
+
)
|
|
3716
|
+
@access_controlled_venue = access_controlled_venue
|
|
3717
|
+
@address = address
|
|
3718
|
+
@affiliate_name = affiliate_name
|
|
3719
|
+
@ends_at = ends_at
|
|
3720
|
+
@event_company_name = event_company_name
|
|
3721
|
+
@event_name = event_name
|
|
3722
|
+
@event_type = event_type
|
|
3723
|
+
@insurances = insurances
|
|
3724
|
+
@starts_at = starts_at
|
|
3725
|
+
@venue_name = venue_name
|
|
3726
|
+
end
|
|
3727
|
+
end
|
|
3728
|
+
|
|
3729
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3730
|
+
class Arrival < ::Stripe::RequestParams
|
|
3731
|
+
class Address < ::Stripe::RequestParams
|
|
3732
|
+
# The city or town.
|
|
3733
|
+
attr_accessor :city
|
|
3734
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3735
|
+
attr_accessor :country
|
|
3736
|
+
# The postal code formatted according to country.
|
|
3737
|
+
attr_accessor :postal_code
|
|
3738
|
+
# The state, county, province, or region formatted according to country.
|
|
3739
|
+
attr_accessor :region
|
|
3740
|
+
# Line 1 of the street address.
|
|
3741
|
+
attr_accessor :street_address
|
|
3742
|
+
# Line 2 of the street address.
|
|
3743
|
+
attr_accessor :street_address2
|
|
3744
|
+
|
|
3745
|
+
def initialize(
|
|
3746
|
+
city: nil,
|
|
3747
|
+
country: nil,
|
|
3748
|
+
postal_code: nil,
|
|
3749
|
+
region: nil,
|
|
3750
|
+
street_address: nil,
|
|
3751
|
+
street_address2: nil
|
|
3752
|
+
)
|
|
3753
|
+
@city = city
|
|
3754
|
+
@country = country
|
|
3755
|
+
@postal_code = postal_code
|
|
3756
|
+
@region = region
|
|
3757
|
+
@street_address = street_address
|
|
3758
|
+
@street_address2 = street_address2
|
|
3759
|
+
end
|
|
3760
|
+
end
|
|
3761
|
+
# Address of the arrival location.
|
|
3762
|
+
attr_accessor :address
|
|
3763
|
+
# Identifier name or reference for the arrival location.
|
|
3764
|
+
attr_accessor :arrival_location
|
|
3765
|
+
|
|
3766
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3767
|
+
@address = address
|
|
3768
|
+
@arrival_location = arrival_location
|
|
3769
|
+
end
|
|
3770
|
+
end
|
|
3771
|
+
|
|
3772
|
+
class Departure < ::Stripe::RequestParams
|
|
3773
|
+
class Address < ::Stripe::RequestParams
|
|
3774
|
+
# The city or town.
|
|
3775
|
+
attr_accessor :city
|
|
3776
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3777
|
+
attr_accessor :country
|
|
3778
|
+
# The postal code formatted according to country.
|
|
3779
|
+
attr_accessor :postal_code
|
|
3780
|
+
# The state, county, province, or region formatted according to country.
|
|
3781
|
+
attr_accessor :region
|
|
3782
|
+
# Line 1 of the street address.
|
|
3783
|
+
attr_accessor :street_address
|
|
3784
|
+
# Line 2 of the street address.
|
|
3785
|
+
attr_accessor :street_address2
|
|
3786
|
+
|
|
3787
|
+
def initialize(
|
|
3788
|
+
city: nil,
|
|
3789
|
+
country: nil,
|
|
3790
|
+
postal_code: nil,
|
|
3791
|
+
region: nil,
|
|
3792
|
+
street_address: nil,
|
|
3793
|
+
street_address2: nil
|
|
3794
|
+
)
|
|
3795
|
+
@city = city
|
|
3796
|
+
@country = country
|
|
3797
|
+
@postal_code = postal_code
|
|
3798
|
+
@region = region
|
|
3799
|
+
@street_address = street_address
|
|
3800
|
+
@street_address2 = street_address2
|
|
3801
|
+
end
|
|
3802
|
+
end
|
|
3803
|
+
# Address of the departure location.
|
|
3804
|
+
attr_accessor :address
|
|
3805
|
+
# Timestamp of departure.
|
|
3806
|
+
attr_accessor :departs_at
|
|
3807
|
+
# Identifier name or reference for the origin location.
|
|
3808
|
+
attr_accessor :departure_location
|
|
3809
|
+
|
|
3810
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3811
|
+
@address = address
|
|
3812
|
+
@departs_at = departs_at
|
|
3813
|
+
@departure_location = departure_location
|
|
3814
|
+
end
|
|
3815
|
+
end
|
|
3816
|
+
|
|
3817
|
+
class Insurance < ::Stripe::RequestParams
|
|
3818
|
+
# Insurance currency.
|
|
3819
|
+
attr_accessor :currency
|
|
3820
|
+
# Name of the company providing the insurance.
|
|
3821
|
+
attr_accessor :insurance_company_name
|
|
3822
|
+
# Type of insurance.
|
|
3823
|
+
attr_accessor :insurance_type
|
|
3824
|
+
# Price of insurance in cents.
|
|
3825
|
+
attr_accessor :price
|
|
3826
|
+
|
|
3827
|
+
def initialize(
|
|
3828
|
+
currency: nil,
|
|
3829
|
+
insurance_company_name: nil,
|
|
3830
|
+
insurance_type: nil,
|
|
3831
|
+
price: nil
|
|
3832
|
+
)
|
|
3833
|
+
@currency = currency
|
|
3834
|
+
@insurance_company_name = insurance_company_name
|
|
3835
|
+
@insurance_type = insurance_type
|
|
3836
|
+
@price = price
|
|
3837
|
+
end
|
|
3838
|
+
end
|
|
3839
|
+
|
|
3840
|
+
class Passenger < ::Stripe::RequestParams
|
|
3841
|
+
# The family name of the person.
|
|
3842
|
+
attr_accessor :family_name
|
|
3843
|
+
# The given name of the person.
|
|
3844
|
+
attr_accessor :given_name
|
|
3845
|
+
|
|
3846
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3847
|
+
@family_name = family_name
|
|
3848
|
+
@given_name = given_name
|
|
3849
|
+
end
|
|
3850
|
+
end
|
|
3851
|
+
# Name of associated or partner company for the service.
|
|
3852
|
+
attr_accessor :affiliate_name
|
|
3853
|
+
# Arrival details.
|
|
3854
|
+
attr_accessor :arrival
|
|
3855
|
+
# Name of transportation company.
|
|
3856
|
+
attr_accessor :carrier_name
|
|
3857
|
+
# Currency.
|
|
3858
|
+
attr_accessor :currency
|
|
3859
|
+
# Departure details.
|
|
3860
|
+
attr_accessor :departure
|
|
3861
|
+
# List of insurances for this reservation.
|
|
3862
|
+
attr_accessor :insurances
|
|
3863
|
+
# List of passengers that this reservation applies to.
|
|
3864
|
+
attr_accessor :passengers
|
|
3865
|
+
# Price in cents.
|
|
3866
|
+
attr_accessor :price
|
|
3867
|
+
# Ticket class.
|
|
3868
|
+
attr_accessor :ticket_class
|
|
3869
|
+
|
|
3870
|
+
def initialize(
|
|
3871
|
+
affiliate_name: nil,
|
|
3872
|
+
arrival: nil,
|
|
3873
|
+
carrier_name: nil,
|
|
3874
|
+
currency: nil,
|
|
3875
|
+
departure: nil,
|
|
3876
|
+
insurances: nil,
|
|
3877
|
+
passengers: nil,
|
|
3878
|
+
price: nil,
|
|
3879
|
+
ticket_class: nil
|
|
3880
|
+
)
|
|
3881
|
+
@affiliate_name = affiliate_name
|
|
3882
|
+
@arrival = arrival
|
|
3883
|
+
@carrier_name = carrier_name
|
|
3884
|
+
@currency = currency
|
|
3885
|
+
@departure = departure
|
|
3886
|
+
@insurances = insurances
|
|
3887
|
+
@passengers = passengers
|
|
3888
|
+
@price = price
|
|
3889
|
+
@ticket_class = ticket_class
|
|
3890
|
+
end
|
|
3891
|
+
end
|
|
3892
|
+
|
|
3893
|
+
class Insurance < ::Stripe::RequestParams
|
|
3894
|
+
# Insurance currency.
|
|
3895
|
+
attr_accessor :currency
|
|
3896
|
+
# Name of the company providing the insurance.
|
|
3897
|
+
attr_accessor :insurance_company_name
|
|
3898
|
+
# Type of insurance
|
|
3899
|
+
attr_accessor :insurance_type
|
|
3900
|
+
# Price of insurance in cents.
|
|
3901
|
+
attr_accessor :price
|
|
3902
|
+
|
|
3903
|
+
def initialize(
|
|
3904
|
+
currency: nil,
|
|
3905
|
+
insurance_company_name: nil,
|
|
3906
|
+
insurance_type: nil,
|
|
3907
|
+
price: nil
|
|
3908
|
+
)
|
|
3909
|
+
@currency = currency
|
|
3910
|
+
@insurance_company_name = insurance_company_name
|
|
3911
|
+
@insurance_type = insurance_type
|
|
3912
|
+
@price = price
|
|
3913
|
+
end
|
|
3914
|
+
end
|
|
3915
|
+
|
|
3916
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3917
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3918
|
+
# The city or town.
|
|
3919
|
+
attr_accessor :city
|
|
3920
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3921
|
+
attr_accessor :country
|
|
3922
|
+
# The postal code formatted according to country.
|
|
3923
|
+
attr_accessor :postal_code
|
|
3924
|
+
# The state, county, province, or region formatted according to country.
|
|
3925
|
+
attr_accessor :region
|
|
3926
|
+
# Line 1 of the street address.
|
|
3927
|
+
attr_accessor :street_address
|
|
3928
|
+
# Line 2 of the street address.
|
|
3929
|
+
attr_accessor :street_address2
|
|
3930
|
+
|
|
3931
|
+
def initialize(
|
|
3932
|
+
city: nil,
|
|
3933
|
+
country: nil,
|
|
3934
|
+
postal_code: nil,
|
|
3935
|
+
region: nil,
|
|
3936
|
+
street_address: nil,
|
|
3937
|
+
street_address2: nil
|
|
3938
|
+
)
|
|
3939
|
+
@city = city
|
|
3940
|
+
@country = country
|
|
3941
|
+
@postal_code = postal_code
|
|
3942
|
+
@region = region
|
|
3943
|
+
@street_address = street_address
|
|
3944
|
+
@street_address2 = street_address2
|
|
3945
|
+
end
|
|
3946
|
+
end
|
|
3947
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3948
|
+
attr_accessor :line_item_references
|
|
3949
|
+
# The address of the selling or delivering merchant.
|
|
3950
|
+
attr_accessor :marketplace_seller_address
|
|
3951
|
+
# The name of the marketplace seller.
|
|
3952
|
+
attr_accessor :marketplace_seller_name
|
|
3953
|
+
# The unique identifier for the marketplace seller.
|
|
3954
|
+
attr_accessor :marketplace_seller_reference
|
|
3955
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
3956
|
+
attr_accessor :number_of_transactions
|
|
3957
|
+
# The category of the product.
|
|
3958
|
+
attr_accessor :product_category
|
|
3959
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
3960
|
+
attr_accessor :seller_last_login_at
|
|
3961
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
3962
|
+
attr_accessor :seller_rating
|
|
3963
|
+
# The date when the seller's account with the marketplace was created.
|
|
3964
|
+
attr_accessor :seller_registered_at
|
|
3965
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
3966
|
+
attr_accessor :seller_updated_at
|
|
3967
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
3968
|
+
attr_accessor :shipping_references
|
|
3969
|
+
# The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
|
|
3970
|
+
attr_accessor :volume_of_transactions
|
|
3971
|
+
|
|
3972
|
+
def initialize(
|
|
3973
|
+
line_item_references: nil,
|
|
3974
|
+
marketplace_seller_address: nil,
|
|
3975
|
+
marketplace_seller_name: nil,
|
|
3976
|
+
marketplace_seller_reference: nil,
|
|
3977
|
+
number_of_transactions: nil,
|
|
3978
|
+
product_category: nil,
|
|
3979
|
+
seller_last_login_at: nil,
|
|
3980
|
+
seller_rating: nil,
|
|
3981
|
+
seller_registered_at: nil,
|
|
3982
|
+
seller_updated_at: nil,
|
|
3983
|
+
shipping_references: nil,
|
|
3984
|
+
volume_of_transactions: nil
|
|
3985
|
+
)
|
|
3986
|
+
@line_item_references = line_item_references
|
|
3987
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
3988
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
3989
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
3990
|
+
@number_of_transactions = number_of_transactions
|
|
3991
|
+
@product_category = product_category
|
|
3992
|
+
@seller_last_login_at = seller_last_login_at
|
|
3993
|
+
@seller_rating = seller_rating
|
|
3994
|
+
@seller_registered_at = seller_registered_at
|
|
3995
|
+
@seller_updated_at = seller_updated_at
|
|
3996
|
+
@shipping_references = shipping_references
|
|
3997
|
+
@volume_of_transactions = volume_of_transactions
|
|
3998
|
+
end
|
|
3999
|
+
end
|
|
4000
|
+
|
|
4001
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4002
|
+
class Arrival < ::Stripe::RequestParams
|
|
4003
|
+
class Address < ::Stripe::RequestParams
|
|
4004
|
+
# The city or town.
|
|
4005
|
+
attr_accessor :city
|
|
4006
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4007
|
+
attr_accessor :country
|
|
4008
|
+
# The postal code formatted according to country.
|
|
4009
|
+
attr_accessor :postal_code
|
|
4010
|
+
# The state, county, province, or region formatted according to country.
|
|
4011
|
+
attr_accessor :region
|
|
4012
|
+
# Line 1 of the street address.
|
|
4013
|
+
attr_accessor :street_address
|
|
4014
|
+
# Line 2 of the street address.
|
|
4015
|
+
attr_accessor :street_address2
|
|
4016
|
+
|
|
4017
|
+
def initialize(
|
|
4018
|
+
city: nil,
|
|
4019
|
+
country: nil,
|
|
4020
|
+
postal_code: nil,
|
|
4021
|
+
region: nil,
|
|
4022
|
+
street_address: nil,
|
|
4023
|
+
street_address2: nil
|
|
4024
|
+
)
|
|
4025
|
+
@city = city
|
|
4026
|
+
@country = country
|
|
4027
|
+
@postal_code = postal_code
|
|
4028
|
+
@region = region
|
|
4029
|
+
@street_address = street_address
|
|
4030
|
+
@street_address2 = street_address2
|
|
4031
|
+
end
|
|
4032
|
+
end
|
|
4033
|
+
# Address of the arrival location.
|
|
4034
|
+
attr_accessor :address
|
|
4035
|
+
# Identifier name or reference for the arrival location.
|
|
4036
|
+
attr_accessor :arrival_location
|
|
4037
|
+
|
|
4038
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4039
|
+
@address = address
|
|
4040
|
+
@arrival_location = arrival_location
|
|
4041
|
+
end
|
|
4042
|
+
end
|
|
4043
|
+
|
|
4044
|
+
class Departure < ::Stripe::RequestParams
|
|
4045
|
+
class Address < ::Stripe::RequestParams
|
|
4046
|
+
# The city or town.
|
|
4047
|
+
attr_accessor :city
|
|
4048
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4049
|
+
attr_accessor :country
|
|
4050
|
+
# The postal code formatted according to country.
|
|
4051
|
+
attr_accessor :postal_code
|
|
4052
|
+
# The state, county, province, or region formatted according to country.
|
|
4053
|
+
attr_accessor :region
|
|
4054
|
+
# Line 1 of the street address.
|
|
4055
|
+
attr_accessor :street_address
|
|
4056
|
+
# Line 2 of the street address.
|
|
4057
|
+
attr_accessor :street_address2
|
|
4058
|
+
|
|
4059
|
+
def initialize(
|
|
4060
|
+
city: nil,
|
|
4061
|
+
country: nil,
|
|
4062
|
+
postal_code: nil,
|
|
4063
|
+
region: nil,
|
|
4064
|
+
street_address: nil,
|
|
4065
|
+
street_address2: nil
|
|
4066
|
+
)
|
|
4067
|
+
@city = city
|
|
4068
|
+
@country = country
|
|
4069
|
+
@postal_code = postal_code
|
|
4070
|
+
@region = region
|
|
4071
|
+
@street_address = street_address
|
|
4072
|
+
@street_address2 = street_address2
|
|
4073
|
+
end
|
|
4074
|
+
end
|
|
4075
|
+
# Address of the departure location.
|
|
4076
|
+
attr_accessor :address
|
|
4077
|
+
# Timestamp of departure.
|
|
4078
|
+
attr_accessor :departs_at
|
|
4079
|
+
# Identifier name or reference for the origin location.
|
|
4080
|
+
attr_accessor :departure_location
|
|
4081
|
+
|
|
4082
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4083
|
+
@address = address
|
|
4084
|
+
@departs_at = departs_at
|
|
4085
|
+
@departure_location = departure_location
|
|
4086
|
+
end
|
|
4087
|
+
end
|
|
4088
|
+
|
|
4089
|
+
class Insurance < ::Stripe::RequestParams
|
|
4090
|
+
# Insurance currency.
|
|
4091
|
+
attr_accessor :currency
|
|
4092
|
+
# Name of the company providing the insurance.
|
|
4093
|
+
attr_accessor :insurance_company_name
|
|
4094
|
+
# Type of insurance.
|
|
4095
|
+
attr_accessor :insurance_type
|
|
4096
|
+
# Price of insurance in cents.
|
|
4097
|
+
attr_accessor :price
|
|
4098
|
+
|
|
4099
|
+
def initialize(
|
|
4100
|
+
currency: nil,
|
|
4101
|
+
insurance_company_name: nil,
|
|
4102
|
+
insurance_type: nil,
|
|
4103
|
+
price: nil
|
|
4104
|
+
)
|
|
4105
|
+
@currency = currency
|
|
4106
|
+
@insurance_company_name = insurance_company_name
|
|
4107
|
+
@insurance_type = insurance_type
|
|
4108
|
+
@price = price
|
|
4109
|
+
end
|
|
4110
|
+
end
|
|
4111
|
+
|
|
4112
|
+
class Passenger < ::Stripe::RequestParams
|
|
4113
|
+
# The family name of the person.
|
|
4114
|
+
attr_accessor :family_name
|
|
4115
|
+
# The given name of the person.
|
|
4116
|
+
attr_accessor :given_name
|
|
4117
|
+
|
|
4118
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4119
|
+
@family_name = family_name
|
|
4120
|
+
@given_name = given_name
|
|
4121
|
+
end
|
|
4122
|
+
end
|
|
4123
|
+
# Name of associated or partner company for the service.
|
|
4124
|
+
attr_accessor :affiliate_name
|
|
4125
|
+
# Arrival details.
|
|
4126
|
+
attr_accessor :arrival
|
|
4127
|
+
# Name of transportation company.
|
|
4128
|
+
attr_accessor :carrier_name
|
|
4129
|
+
# Currency.
|
|
4130
|
+
attr_accessor :currency
|
|
4131
|
+
# Departure details.
|
|
4132
|
+
attr_accessor :departure
|
|
4133
|
+
# List of insurances for this reservation.
|
|
4134
|
+
attr_accessor :insurances
|
|
4135
|
+
# List of passengers that this reservation applies to.
|
|
4136
|
+
attr_accessor :passengers
|
|
4137
|
+
# Price in cents.
|
|
4138
|
+
attr_accessor :price
|
|
4139
|
+
# Ticket class.
|
|
4140
|
+
attr_accessor :ticket_class
|
|
4141
|
+
|
|
4142
|
+
def initialize(
|
|
4143
|
+
affiliate_name: nil,
|
|
4144
|
+
arrival: nil,
|
|
4145
|
+
carrier_name: nil,
|
|
4146
|
+
currency: nil,
|
|
4147
|
+
departure: nil,
|
|
4148
|
+
insurances: nil,
|
|
4149
|
+
passengers: nil,
|
|
4150
|
+
price: nil,
|
|
4151
|
+
ticket_class: nil
|
|
4152
|
+
)
|
|
4153
|
+
@affiliate_name = affiliate_name
|
|
4154
|
+
@arrival = arrival
|
|
4155
|
+
@carrier_name = carrier_name
|
|
4156
|
+
@currency = currency
|
|
4157
|
+
@departure = departure
|
|
4158
|
+
@insurances = insurances
|
|
4159
|
+
@passengers = passengers
|
|
4160
|
+
@price = price
|
|
4161
|
+
@ticket_class = ticket_class
|
|
4162
|
+
end
|
|
4163
|
+
end
|
|
4164
|
+
|
|
4165
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4166
|
+
class Arrival < ::Stripe::RequestParams
|
|
4167
|
+
class Address < ::Stripe::RequestParams
|
|
4168
|
+
# The city or town.
|
|
4169
|
+
attr_accessor :city
|
|
4170
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4171
|
+
attr_accessor :country
|
|
4172
|
+
# The postal code formatted according to country.
|
|
4173
|
+
attr_accessor :postal_code
|
|
4174
|
+
# The state, county, province, or region formatted according to country.
|
|
4175
|
+
attr_accessor :region
|
|
4176
|
+
# Line 1 of the street address.
|
|
4177
|
+
attr_accessor :street_address
|
|
4178
|
+
# Line 2 of the street address.
|
|
4179
|
+
attr_accessor :street_address2
|
|
4180
|
+
|
|
4181
|
+
def initialize(
|
|
4182
|
+
city: nil,
|
|
4183
|
+
country: nil,
|
|
4184
|
+
postal_code: nil,
|
|
4185
|
+
region: nil,
|
|
4186
|
+
street_address: nil,
|
|
4187
|
+
street_address2: nil
|
|
4188
|
+
)
|
|
4189
|
+
@city = city
|
|
4190
|
+
@country = country
|
|
4191
|
+
@postal_code = postal_code
|
|
4192
|
+
@region = region
|
|
4193
|
+
@street_address = street_address
|
|
4194
|
+
@street_address2 = street_address2
|
|
4195
|
+
end
|
|
4196
|
+
end
|
|
4197
|
+
# Address of the arrival location.
|
|
4198
|
+
attr_accessor :address
|
|
4199
|
+
# Identifier name or reference for the arrival location.
|
|
4200
|
+
attr_accessor :arrival_location
|
|
4201
|
+
|
|
4202
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4203
|
+
@address = address
|
|
4204
|
+
@arrival_location = arrival_location
|
|
4205
|
+
end
|
|
4206
|
+
end
|
|
4207
|
+
|
|
4208
|
+
class Departure < ::Stripe::RequestParams
|
|
4209
|
+
class Address < ::Stripe::RequestParams
|
|
4210
|
+
# The city or town.
|
|
4211
|
+
attr_accessor :city
|
|
4212
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4213
|
+
attr_accessor :country
|
|
4214
|
+
# The postal code formatted according to country.
|
|
4215
|
+
attr_accessor :postal_code
|
|
4216
|
+
# The state, county, province, or region formatted according to country.
|
|
4217
|
+
attr_accessor :region
|
|
4218
|
+
# Line 1 of the street address.
|
|
4219
|
+
attr_accessor :street_address
|
|
4220
|
+
# Line 2 of the street address.
|
|
4221
|
+
attr_accessor :street_address2
|
|
4222
|
+
|
|
4223
|
+
def initialize(
|
|
4224
|
+
city: nil,
|
|
4225
|
+
country: nil,
|
|
4226
|
+
postal_code: nil,
|
|
4227
|
+
region: nil,
|
|
4228
|
+
street_address: nil,
|
|
4229
|
+
street_address2: nil
|
|
4230
|
+
)
|
|
4231
|
+
@city = city
|
|
4232
|
+
@country = country
|
|
4233
|
+
@postal_code = postal_code
|
|
4234
|
+
@region = region
|
|
4235
|
+
@street_address = street_address
|
|
4236
|
+
@street_address2 = street_address2
|
|
4237
|
+
end
|
|
4238
|
+
end
|
|
4239
|
+
# Address of the departure location.
|
|
4240
|
+
attr_accessor :address
|
|
4241
|
+
# Timestamp of departure.
|
|
4242
|
+
attr_accessor :departs_at
|
|
4243
|
+
# Identifier name or reference for the origin location.
|
|
4244
|
+
attr_accessor :departure_location
|
|
4245
|
+
|
|
4246
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4247
|
+
@address = address
|
|
4248
|
+
@departs_at = departs_at
|
|
4249
|
+
@departure_location = departure_location
|
|
4250
|
+
end
|
|
4251
|
+
end
|
|
4252
|
+
|
|
4253
|
+
class Insurance < ::Stripe::RequestParams
|
|
4254
|
+
# Insurance currency.
|
|
4255
|
+
attr_accessor :currency
|
|
4256
|
+
# Name of the company providing the insurance.
|
|
4257
|
+
attr_accessor :insurance_company_name
|
|
4258
|
+
# Type of insurance.
|
|
4259
|
+
attr_accessor :insurance_type
|
|
4260
|
+
# Price of insurance in cents.
|
|
4261
|
+
attr_accessor :price
|
|
4262
|
+
|
|
4263
|
+
def initialize(
|
|
4264
|
+
currency: nil,
|
|
4265
|
+
insurance_company_name: nil,
|
|
4266
|
+
insurance_type: nil,
|
|
4267
|
+
price: nil
|
|
4268
|
+
)
|
|
4269
|
+
@currency = currency
|
|
4270
|
+
@insurance_company_name = insurance_company_name
|
|
4271
|
+
@insurance_type = insurance_type
|
|
4272
|
+
@price = price
|
|
4273
|
+
end
|
|
4274
|
+
end
|
|
4275
|
+
|
|
4276
|
+
class Passenger < ::Stripe::RequestParams
|
|
4277
|
+
# The family name of the person.
|
|
4278
|
+
attr_accessor :family_name
|
|
4279
|
+
# The given name of the person.
|
|
4280
|
+
attr_accessor :given_name
|
|
4281
|
+
|
|
4282
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4283
|
+
@family_name = family_name
|
|
4284
|
+
@given_name = given_name
|
|
4285
|
+
end
|
|
4286
|
+
end
|
|
4287
|
+
# Name of associated or partner company for the service.
|
|
4288
|
+
attr_accessor :affiliate_name
|
|
4289
|
+
# Arrival details.
|
|
4290
|
+
attr_accessor :arrival
|
|
4291
|
+
# Name of transportation company.
|
|
4292
|
+
attr_accessor :carrier_name
|
|
4293
|
+
# Currency.
|
|
4294
|
+
attr_accessor :currency
|
|
4295
|
+
# Departure details.
|
|
4296
|
+
attr_accessor :departure
|
|
4297
|
+
# List of insurances for this reservation.
|
|
4298
|
+
attr_accessor :insurances
|
|
4299
|
+
# List of passengers that this reservation applies to.
|
|
4300
|
+
attr_accessor :passengers
|
|
4301
|
+
# Price in cents.
|
|
4302
|
+
attr_accessor :price
|
|
4303
|
+
# Ticket class.
|
|
4304
|
+
attr_accessor :ticket_class
|
|
4305
|
+
|
|
4306
|
+
def initialize(
|
|
4307
|
+
affiliate_name: nil,
|
|
4308
|
+
arrival: nil,
|
|
4309
|
+
carrier_name: nil,
|
|
4310
|
+
currency: nil,
|
|
4311
|
+
departure: nil,
|
|
4312
|
+
insurances: nil,
|
|
4313
|
+
passengers: nil,
|
|
4314
|
+
price: nil,
|
|
4315
|
+
ticket_class: nil
|
|
4316
|
+
)
|
|
4317
|
+
@affiliate_name = affiliate_name
|
|
4318
|
+
@arrival = arrival
|
|
4319
|
+
@carrier_name = carrier_name
|
|
4320
|
+
@currency = currency
|
|
4321
|
+
@departure = departure
|
|
4322
|
+
@insurances = insurances
|
|
4323
|
+
@passengers = passengers
|
|
4324
|
+
@price = price
|
|
4325
|
+
@ticket_class = ticket_class
|
|
4326
|
+
end
|
|
4327
|
+
end
|
|
4328
|
+
|
|
4329
|
+
class Voucher < ::Stripe::RequestParams
|
|
4330
|
+
# Name of associated or partner company for this voucher.
|
|
4331
|
+
attr_accessor :affiliate_name
|
|
4332
|
+
# The voucher validity end time.
|
|
4333
|
+
attr_accessor :ends_at
|
|
4334
|
+
# The voucher validity start time.
|
|
4335
|
+
attr_accessor :starts_at
|
|
4336
|
+
# The issuer or provider of this voucher.
|
|
4337
|
+
attr_accessor :voucher_company
|
|
4338
|
+
# The name or reference to identify the voucher.
|
|
4339
|
+
attr_accessor :voucher_name
|
|
4340
|
+
# The type of this voucher.
|
|
4341
|
+
attr_accessor :voucher_type
|
|
4342
|
+
|
|
4343
|
+
def initialize(
|
|
4344
|
+
affiliate_name: nil,
|
|
4345
|
+
ends_at: nil,
|
|
4346
|
+
starts_at: nil,
|
|
4347
|
+
voucher_company: nil,
|
|
4348
|
+
voucher_name: nil,
|
|
4349
|
+
voucher_type: nil
|
|
4350
|
+
)
|
|
4351
|
+
@affiliate_name = affiliate_name
|
|
4352
|
+
@ends_at = ends_at
|
|
4353
|
+
@starts_at = starts_at
|
|
4354
|
+
@voucher_company = voucher_company
|
|
4355
|
+
@voucher_name = voucher_name
|
|
4356
|
+
@voucher_type = voucher_type
|
|
4357
|
+
end
|
|
4358
|
+
end
|
|
4359
|
+
# Supplementary bus reservation details.
|
|
4360
|
+
attr_accessor :bus_reservation_details
|
|
4361
|
+
# Supplementary event reservation details.
|
|
4362
|
+
attr_accessor :event_reservation_details
|
|
4363
|
+
# Supplementary ferry reservation details.
|
|
4364
|
+
attr_accessor :ferry_reservation_details
|
|
4365
|
+
# Supplementary insurance details.
|
|
4366
|
+
attr_accessor :insurances
|
|
4367
|
+
# Supplementary marketplace seller details.
|
|
4368
|
+
attr_accessor :marketplace_sellers
|
|
4369
|
+
# Supplementary round trip reservation details.
|
|
4370
|
+
attr_accessor :round_trip_reservation_details
|
|
4371
|
+
# Supplementary train reservation details.
|
|
4372
|
+
attr_accessor :train_reservation_details
|
|
4373
|
+
# Voucher details, such as a gift card or discount code.
|
|
4374
|
+
attr_accessor :vouchers
|
|
4375
|
+
|
|
4376
|
+
def initialize(
|
|
4377
|
+
bus_reservation_details: nil,
|
|
4378
|
+
event_reservation_details: nil,
|
|
4379
|
+
ferry_reservation_details: nil,
|
|
4380
|
+
insurances: nil,
|
|
4381
|
+
marketplace_sellers: nil,
|
|
4382
|
+
round_trip_reservation_details: nil,
|
|
4383
|
+
train_reservation_details: nil,
|
|
4384
|
+
vouchers: nil
|
|
4385
|
+
)
|
|
4386
|
+
@bus_reservation_details = bus_reservation_details
|
|
4387
|
+
@event_reservation_details = event_reservation_details
|
|
4388
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
4389
|
+
@insurances = insurances
|
|
4390
|
+
@marketplace_sellers = marketplace_sellers
|
|
4391
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
4392
|
+
@train_reservation_details = train_reservation_details
|
|
4393
|
+
@vouchers = vouchers
|
|
4394
|
+
end
|
|
4395
|
+
end
|
|
1636
4396
|
# Controls when the funds are captured from the customer's account.
|
|
1637
4397
|
#
|
|
1638
4398
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1655,19 +4415,23 @@ module Stripe
|
|
|
1655
4415
|
attr_accessor :setup_future_usage
|
|
1656
4416
|
# Subscription details if setting up or charging a subscription.
|
|
1657
4417
|
attr_accessor :subscriptions
|
|
4418
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4419
|
+
attr_accessor :supplementary_purchase_data
|
|
1658
4420
|
|
|
1659
4421
|
def initialize(
|
|
1660
4422
|
capture_method: nil,
|
|
1661
4423
|
on_demand: nil,
|
|
1662
4424
|
preferred_locale: nil,
|
|
1663
4425
|
setup_future_usage: nil,
|
|
1664
|
-
subscriptions: nil
|
|
4426
|
+
subscriptions: nil,
|
|
4427
|
+
supplementary_purchase_data: nil
|
|
1665
4428
|
)
|
|
1666
4429
|
@capture_method = capture_method
|
|
1667
4430
|
@on_demand = on_demand
|
|
1668
4431
|
@preferred_locale = preferred_locale
|
|
1669
4432
|
@setup_future_usage = setup_future_usage
|
|
1670
4433
|
@subscriptions = subscriptions
|
|
4434
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1671
4435
|
end
|
|
1672
4436
|
end
|
|
1673
4437
|
|
|
@@ -1928,12 +4692,65 @@ module Stripe
|
|
|
1928
4692
|
end
|
|
1929
4693
|
|
|
1930
4694
|
class Paypal < ::Stripe::RequestParams
|
|
4695
|
+
class LineItem < ::Stripe::RequestParams
|
|
4696
|
+
class Tax < ::Stripe::RequestParams
|
|
4697
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4698
|
+
attr_accessor :amount
|
|
4699
|
+
# The tax behavior for the line item.
|
|
4700
|
+
attr_accessor :behavior
|
|
4701
|
+
|
|
4702
|
+
def initialize(amount: nil, behavior: nil)
|
|
4703
|
+
@amount = amount
|
|
4704
|
+
@behavior = behavior
|
|
4705
|
+
end
|
|
4706
|
+
end
|
|
4707
|
+
# Type of the line item.
|
|
4708
|
+
attr_accessor :category
|
|
4709
|
+
# Description of the line item.
|
|
4710
|
+
attr_accessor :description
|
|
4711
|
+
# Descriptive name of the line item.
|
|
4712
|
+
attr_accessor :name
|
|
4713
|
+
# Quantity of the line item. Must be a positive number.
|
|
4714
|
+
attr_accessor :quantity
|
|
4715
|
+
# Client facing stock keeping unit, article number or similar.
|
|
4716
|
+
attr_accessor :sku
|
|
4717
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
4718
|
+
attr_accessor :sold_by
|
|
4719
|
+
# The tax information for the line item.
|
|
4720
|
+
attr_accessor :tax
|
|
4721
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4722
|
+
attr_accessor :unit_amount
|
|
4723
|
+
|
|
4724
|
+
def initialize(
|
|
4725
|
+
category: nil,
|
|
4726
|
+
description: nil,
|
|
4727
|
+
name: nil,
|
|
4728
|
+
quantity: nil,
|
|
4729
|
+
sku: nil,
|
|
4730
|
+
sold_by: nil,
|
|
4731
|
+
tax: nil,
|
|
4732
|
+
unit_amount: nil
|
|
4733
|
+
)
|
|
4734
|
+
@category = category
|
|
4735
|
+
@description = description
|
|
4736
|
+
@name = name
|
|
4737
|
+
@quantity = quantity
|
|
4738
|
+
@sku = sku
|
|
4739
|
+
@sold_by = sold_by
|
|
4740
|
+
@tax = tax
|
|
4741
|
+
@unit_amount = unit_amount
|
|
4742
|
+
end
|
|
4743
|
+
end
|
|
1931
4744
|
# Controls when the funds will be captured from the customer's account.
|
|
1932
4745
|
attr_accessor :capture_method
|
|
4746
|
+
# The line items purchased by the customer.
|
|
4747
|
+
attr_accessor :line_items
|
|
1933
4748
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1934
4749
|
attr_accessor :preferred_locale
|
|
1935
4750
|
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
1936
4751
|
attr_accessor :reference
|
|
4752
|
+
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
4753
|
+
attr_accessor :reference_id
|
|
1937
4754
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1938
4755
|
attr_accessor :risk_correlation_id
|
|
1939
4756
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1946,19 +4763,40 @@ module Stripe
|
|
|
1946
4763
|
#
|
|
1947
4764
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1948
4765
|
attr_accessor :setup_future_usage
|
|
4766
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
4767
|
+
attr_accessor :subsellers
|
|
1949
4768
|
|
|
1950
4769
|
def initialize(
|
|
1951
4770
|
capture_method: nil,
|
|
4771
|
+
line_items: nil,
|
|
1952
4772
|
preferred_locale: nil,
|
|
1953
4773
|
reference: nil,
|
|
4774
|
+
reference_id: nil,
|
|
1954
4775
|
risk_correlation_id: nil,
|
|
1955
|
-
setup_future_usage: nil
|
|
4776
|
+
setup_future_usage: nil,
|
|
4777
|
+
subsellers: nil
|
|
1956
4778
|
)
|
|
1957
4779
|
@capture_method = capture_method
|
|
4780
|
+
@line_items = line_items
|
|
1958
4781
|
@preferred_locale = preferred_locale
|
|
1959
4782
|
@reference = reference
|
|
4783
|
+
@reference_id = reference_id
|
|
1960
4784
|
@risk_correlation_id = risk_correlation_id
|
|
1961
4785
|
@setup_future_usage = setup_future_usage
|
|
4786
|
+
@subsellers = subsellers
|
|
4787
|
+
end
|
|
4788
|
+
end
|
|
4789
|
+
|
|
4790
|
+
class Paypay < ::Stripe::RequestParams
|
|
4791
|
+
# Controls when the funds are captured from the customer's account.
|
|
4792
|
+
#
|
|
4793
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
4794
|
+
#
|
|
4795
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
4796
|
+
attr_accessor :capture_method
|
|
4797
|
+
|
|
4798
|
+
def initialize(capture_method: nil)
|
|
4799
|
+
@capture_method = capture_method
|
|
1962
4800
|
end
|
|
1963
4801
|
end
|
|
1964
4802
|
|
|
@@ -2013,12 +4851,52 @@ module Stripe
|
|
|
2013
4851
|
end
|
|
2014
4852
|
|
|
2015
4853
|
class Pix < ::Stripe::RequestParams
|
|
4854
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
4855
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
4856
|
+
attr_accessor :amount
|
|
4857
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
4858
|
+
attr_accessor :amount_includes_iof
|
|
4859
|
+
# Type of amount. Defaults to `maximum`.
|
|
4860
|
+
attr_accessor :amount_type
|
|
4861
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
4862
|
+
attr_accessor :currency
|
|
4863
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
4864
|
+
attr_accessor :end_date
|
|
4865
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
4866
|
+
attr_accessor :payment_schedule
|
|
4867
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
4868
|
+
attr_accessor :reference
|
|
4869
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
|
4870
|
+
attr_accessor :start_date
|
|
4871
|
+
|
|
4872
|
+
def initialize(
|
|
4873
|
+
amount: nil,
|
|
4874
|
+
amount_includes_iof: nil,
|
|
4875
|
+
amount_type: nil,
|
|
4876
|
+
currency: nil,
|
|
4877
|
+
end_date: nil,
|
|
4878
|
+
payment_schedule: nil,
|
|
4879
|
+
reference: nil,
|
|
4880
|
+
start_date: nil
|
|
4881
|
+
)
|
|
4882
|
+
@amount = amount
|
|
4883
|
+
@amount_includes_iof = amount_includes_iof
|
|
4884
|
+
@amount_type = amount_type
|
|
4885
|
+
@currency = currency
|
|
4886
|
+
@end_date = end_date
|
|
4887
|
+
@payment_schedule = payment_schedule
|
|
4888
|
+
@reference = reference
|
|
4889
|
+
@start_date = start_date
|
|
4890
|
+
end
|
|
4891
|
+
end
|
|
2016
4892
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
2017
4893
|
attr_accessor :amount_includes_iof
|
|
2018
4894
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
2019
4895
|
attr_accessor :expires_after_seconds
|
|
2020
4896
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
|
2021
4897
|
attr_accessor :expires_at
|
|
4898
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
4899
|
+
attr_accessor :mandate_options
|
|
2022
4900
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2023
4901
|
#
|
|
2024
4902
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -2034,11 +4912,13 @@ module Stripe
|
|
|
2034
4912
|
amount_includes_iof: nil,
|
|
2035
4913
|
expires_after_seconds: nil,
|
|
2036
4914
|
expires_at: nil,
|
|
4915
|
+
mandate_options: nil,
|
|
2037
4916
|
setup_future_usage: nil
|
|
2038
4917
|
)
|
|
2039
4918
|
@amount_includes_iof = amount_includes_iof
|
|
2040
4919
|
@expires_after_seconds = expires_after_seconds
|
|
2041
4920
|
@expires_at = expires_at
|
|
4921
|
+
@mandate_options = mandate_options
|
|
2042
4922
|
@setup_future_usage = setup_future_usage
|
|
2043
4923
|
end
|
|
2044
4924
|
end
|
|
@@ -2060,6 +4940,25 @@ module Stripe
|
|
|
2060
4940
|
end
|
|
2061
4941
|
end
|
|
2062
4942
|
|
|
4943
|
+
class Qris < ::Stripe::RequestParams
|
|
4944
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4945
|
+
#
|
|
4946
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
4947
|
+
#
|
|
4948
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
4949
|
+
#
|
|
4950
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
4951
|
+
#
|
|
4952
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
4953
|
+
attr_accessor :setup_future_usage
|
|
4954
|
+
|
|
4955
|
+
def initialize(setup_future_usage: nil)
|
|
4956
|
+
@setup_future_usage = setup_future_usage
|
|
4957
|
+
end
|
|
4958
|
+
end
|
|
4959
|
+
|
|
4960
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
4961
|
+
|
|
2063
4962
|
class RevolutPay < ::Stripe::RequestParams
|
|
2064
4963
|
# Controls when the funds are captured from the customer's account.
|
|
2065
4964
|
#
|
|
@@ -2139,6 +5038,23 @@ module Stripe
|
|
|
2139
5038
|
end
|
|
2140
5039
|
end
|
|
2141
5040
|
|
|
5041
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5042
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5043
|
+
#
|
|
5044
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
5045
|
+
#
|
|
5046
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
5047
|
+
#
|
|
5048
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
5049
|
+
#
|
|
5050
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
5051
|
+
attr_accessor :setup_future_usage
|
|
5052
|
+
|
|
5053
|
+
def initialize(setup_future_usage: nil)
|
|
5054
|
+
@setup_future_usage = setup_future_usage
|
|
5055
|
+
end
|
|
5056
|
+
end
|
|
5057
|
+
|
|
2142
5058
|
class Sofort < ::Stripe::RequestParams
|
|
2143
5059
|
# Language shown to the payer on redirect.
|
|
2144
5060
|
attr_accessor :preferred_language
|
|
@@ -2159,6 +5075,23 @@ module Stripe
|
|
|
2159
5075
|
end
|
|
2160
5076
|
end
|
|
2161
5077
|
|
|
5078
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5079
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5080
|
+
#
|
|
5081
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
5082
|
+
#
|
|
5083
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
5084
|
+
#
|
|
5085
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
5086
|
+
#
|
|
5087
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
5088
|
+
attr_accessor :setup_future_usage
|
|
5089
|
+
|
|
5090
|
+
def initialize(setup_future_usage: nil)
|
|
5091
|
+
@setup_future_usage = setup_future_usage
|
|
5092
|
+
end
|
|
5093
|
+
end
|
|
5094
|
+
|
|
2162
5095
|
class Swish < ::Stripe::RequestParams
|
|
2163
5096
|
# A reference for this payment to be displayed in the Swish app.
|
|
2164
5097
|
attr_accessor :reference
|
|
@@ -2201,13 +5134,27 @@ module Stripe
|
|
|
2201
5134
|
class Filters < ::Stripe::RequestParams
|
|
2202
5135
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2203
5136
|
attr_accessor :account_subcategories
|
|
5137
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5138
|
+
attr_accessor :institution
|
|
2204
5139
|
|
|
2205
|
-
def initialize(account_subcategories: nil)
|
|
5140
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2206
5141
|
@account_subcategories = account_subcategories
|
|
5142
|
+
@institution = institution
|
|
5143
|
+
end
|
|
5144
|
+
end
|
|
5145
|
+
|
|
5146
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5147
|
+
# Settings for configuring manual entry of account details.
|
|
5148
|
+
attr_accessor :mode
|
|
5149
|
+
|
|
5150
|
+
def initialize(mode: nil)
|
|
5151
|
+
@mode = mode
|
|
2207
5152
|
end
|
|
2208
5153
|
end
|
|
2209
5154
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2210
5155
|
attr_accessor :filters
|
|
5156
|
+
# Customize manual entry behavior
|
|
5157
|
+
attr_accessor :manual_entry
|
|
2211
5158
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
2212
5159
|
attr_accessor :permissions
|
|
2213
5160
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2215,8 +5162,15 @@ module Stripe
|
|
|
2215
5162
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
2216
5163
|
attr_accessor :return_url
|
|
2217
5164
|
|
|
2218
|
-
def initialize(
|
|
5165
|
+
def initialize(
|
|
5166
|
+
filters: nil,
|
|
5167
|
+
manual_entry: nil,
|
|
5168
|
+
permissions: nil,
|
|
5169
|
+
prefetch: nil,
|
|
5170
|
+
return_url: nil
|
|
5171
|
+
)
|
|
2219
5172
|
@filters = filters
|
|
5173
|
+
@manual_entry = manual_entry
|
|
2220
5174
|
@permissions = permissions
|
|
2221
5175
|
@prefetch = prefetch
|
|
2222
5176
|
@return_url = return_url
|
|
@@ -2361,8 +5315,12 @@ module Stripe
|
|
|
2361
5315
|
attr_accessor :fpx
|
|
2362
5316
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2363
5317
|
attr_accessor :giropay
|
|
5318
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5319
|
+
attr_accessor :gopay
|
|
2364
5320
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2365
5321
|
attr_accessor :grabpay
|
|
5322
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5323
|
+
attr_accessor :id_bank_transfer
|
|
2366
5324
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2367
5325
|
attr_accessor :ideal
|
|
2368
5326
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2399,12 +5357,18 @@ module Stripe
|
|
|
2399
5357
|
attr_accessor :paynow
|
|
2400
5358
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2401
5359
|
attr_accessor :paypal
|
|
5360
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5361
|
+
attr_accessor :paypay
|
|
2402
5362
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2403
5363
|
attr_accessor :payto
|
|
2404
5364
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2405
5365
|
attr_accessor :pix
|
|
2406
5366
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2407
5367
|
attr_accessor :promptpay
|
|
5368
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5369
|
+
attr_accessor :qris
|
|
5370
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5371
|
+
attr_accessor :rechnung
|
|
2408
5372
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2409
5373
|
attr_accessor :revolut_pay
|
|
2410
5374
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2413,8 +5377,12 @@ module Stripe
|
|
|
2413
5377
|
attr_accessor :satispay
|
|
2414
5378
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2415
5379
|
attr_accessor :sepa_debit
|
|
5380
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5381
|
+
attr_accessor :shopeepay
|
|
2416
5382
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2417
5383
|
attr_accessor :sofort
|
|
5384
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5385
|
+
attr_accessor :stripe_balance
|
|
2418
5386
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2419
5387
|
attr_accessor :swish
|
|
2420
5388
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2447,7 +5415,9 @@ module Stripe
|
|
|
2447
5415
|
eps: nil,
|
|
2448
5416
|
fpx: nil,
|
|
2449
5417
|
giropay: nil,
|
|
5418
|
+
gopay: nil,
|
|
2450
5419
|
grabpay: nil,
|
|
5420
|
+
id_bank_transfer: nil,
|
|
2451
5421
|
ideal: nil,
|
|
2452
5422
|
interac_present: nil,
|
|
2453
5423
|
kakao_pay: nil,
|
|
@@ -2466,14 +5436,19 @@ module Stripe
|
|
|
2466
5436
|
payco: nil,
|
|
2467
5437
|
paynow: nil,
|
|
2468
5438
|
paypal: nil,
|
|
5439
|
+
paypay: nil,
|
|
2469
5440
|
payto: nil,
|
|
2470
5441
|
pix: nil,
|
|
2471
5442
|
promptpay: nil,
|
|
5443
|
+
qris: nil,
|
|
5444
|
+
rechnung: nil,
|
|
2472
5445
|
revolut_pay: nil,
|
|
2473
5446
|
samsung_pay: nil,
|
|
2474
5447
|
satispay: nil,
|
|
2475
5448
|
sepa_debit: nil,
|
|
5449
|
+
shopeepay: nil,
|
|
2476
5450
|
sofort: nil,
|
|
5451
|
+
stripe_balance: nil,
|
|
2477
5452
|
swish: nil,
|
|
2478
5453
|
twint: nil,
|
|
2479
5454
|
us_bank_account: nil,
|
|
@@ -2500,7 +5475,9 @@ module Stripe
|
|
|
2500
5475
|
@eps = eps
|
|
2501
5476
|
@fpx = fpx
|
|
2502
5477
|
@giropay = giropay
|
|
5478
|
+
@gopay = gopay
|
|
2503
5479
|
@grabpay = grabpay
|
|
5480
|
+
@id_bank_transfer = id_bank_transfer
|
|
2504
5481
|
@ideal = ideal
|
|
2505
5482
|
@interac_present = interac_present
|
|
2506
5483
|
@kakao_pay = kakao_pay
|
|
@@ -2519,14 +5496,19 @@ module Stripe
|
|
|
2519
5496
|
@payco = payco
|
|
2520
5497
|
@paynow = paynow
|
|
2521
5498
|
@paypal = paypal
|
|
5499
|
+
@paypay = paypay
|
|
2522
5500
|
@payto = payto
|
|
2523
5501
|
@pix = pix
|
|
2524
5502
|
@promptpay = promptpay
|
|
5503
|
+
@qris = qris
|
|
5504
|
+
@rechnung = rechnung
|
|
2525
5505
|
@revolut_pay = revolut_pay
|
|
2526
5506
|
@samsung_pay = samsung_pay
|
|
2527
5507
|
@satispay = satispay
|
|
2528
5508
|
@sepa_debit = sepa_debit
|
|
5509
|
+
@shopeepay = shopeepay
|
|
2529
5510
|
@sofort = sofort
|
|
5511
|
+
@stripe_balance = stripe_balance
|
|
2530
5512
|
@swish = swish
|
|
2531
5513
|
@twint = twint
|
|
2532
5514
|
@us_bank_account = us_bank_account
|
|
@@ -2535,6 +5517,15 @@ module Stripe
|
|
|
2535
5517
|
end
|
|
2536
5518
|
end
|
|
2537
5519
|
|
|
5520
|
+
class PaymentsOrchestration < ::Stripe::RequestParams
|
|
5521
|
+
# Whether this feature is enabled.
|
|
5522
|
+
attr_accessor :enabled
|
|
5523
|
+
|
|
5524
|
+
def initialize(enabled: nil)
|
|
5525
|
+
@enabled = enabled
|
|
5526
|
+
end
|
|
5527
|
+
end
|
|
5528
|
+
|
|
2538
5529
|
class RadarOptions < ::Stripe::RequestParams
|
|
2539
5530
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
2540
5531
|
attr_accessor :session
|
|
@@ -2615,6 +5606,8 @@ module Stripe
|
|
|
2615
5606
|
@destination = destination
|
|
2616
5607
|
end
|
|
2617
5608
|
end
|
|
5609
|
+
# Allocated Funds configuration for this PaymentIntent.
|
|
5610
|
+
attr_accessor :allocated_funds
|
|
2618
5611
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
2619
5612
|
attr_accessor :amount
|
|
2620
5613
|
# Provides industry-specific information about the amount.
|
|
@@ -2655,6 +5648,8 @@ module Stripe
|
|
|
2655
5648
|
attr_accessor :excluded_payment_method_types
|
|
2656
5649
|
# Specifies which fields in the response should be expanded.
|
|
2657
5650
|
attr_accessor :expand
|
|
5651
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5652
|
+
attr_accessor :fx_quote
|
|
2658
5653
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2659
5654
|
attr_accessor :hooks
|
|
2660
5655
|
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
@@ -2685,12 +5680,16 @@ module Stripe
|
|
|
2685
5680
|
attr_accessor :payment_method_options
|
|
2686
5681
|
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
2687
5682
|
attr_accessor :payment_method_types
|
|
5683
|
+
# When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
|
|
5684
|
+
attr_accessor :payments_orchestration
|
|
2688
5685
|
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
2689
5686
|
attr_accessor :radar_options
|
|
2690
5687
|
# Email address to send the receipt to. If you specify `receipt_email` for a payment in live mode, you send a receipt regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
2691
5688
|
attr_accessor :receipt_email
|
|
2692
5689
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
2693
5690
|
attr_accessor :return_url
|
|
5691
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
5692
|
+
attr_accessor :secret_key_confirmation
|
|
2694
5693
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2695
5694
|
#
|
|
2696
5695
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -2714,8 +5713,11 @@ module Stripe
|
|
|
2714
5713
|
attr_accessor :transfer_group
|
|
2715
5714
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
|
2716
5715
|
attr_accessor :use_stripe_sdk
|
|
5716
|
+
# ID of the SharedPaymentToken used to confirm this PaymentIntent.
|
|
5717
|
+
attr_accessor :shared_payment_granted_token
|
|
2717
5718
|
|
|
2718
5719
|
def initialize(
|
|
5720
|
+
allocated_funds: nil,
|
|
2719
5721
|
amount: nil,
|
|
2720
5722
|
amount_details: nil,
|
|
2721
5723
|
application_fee_amount: nil,
|
|
@@ -2731,6 +5733,7 @@ module Stripe
|
|
|
2731
5733
|
error_on_requires_action: nil,
|
|
2732
5734
|
excluded_payment_method_types: nil,
|
|
2733
5735
|
expand: nil,
|
|
5736
|
+
fx_quote: nil,
|
|
2734
5737
|
hooks: nil,
|
|
2735
5738
|
mandate: nil,
|
|
2736
5739
|
mandate_data: nil,
|
|
@@ -2743,17 +5746,21 @@ module Stripe
|
|
|
2743
5746
|
payment_method_data: nil,
|
|
2744
5747
|
payment_method_options: nil,
|
|
2745
5748
|
payment_method_types: nil,
|
|
5749
|
+
payments_orchestration: nil,
|
|
2746
5750
|
radar_options: nil,
|
|
2747
5751
|
receipt_email: nil,
|
|
2748
5752
|
return_url: nil,
|
|
5753
|
+
secret_key_confirmation: nil,
|
|
2749
5754
|
setup_future_usage: nil,
|
|
2750
5755
|
shipping: nil,
|
|
2751
5756
|
statement_descriptor: nil,
|
|
2752
5757
|
statement_descriptor_suffix: nil,
|
|
2753
5758
|
transfer_data: nil,
|
|
2754
5759
|
transfer_group: nil,
|
|
2755
|
-
use_stripe_sdk: nil
|
|
5760
|
+
use_stripe_sdk: nil,
|
|
5761
|
+
shared_payment_granted_token: nil
|
|
2756
5762
|
)
|
|
5763
|
+
@allocated_funds = allocated_funds
|
|
2757
5764
|
@amount = amount
|
|
2758
5765
|
@amount_details = amount_details
|
|
2759
5766
|
@application_fee_amount = application_fee_amount
|
|
@@ -2769,6 +5776,7 @@ module Stripe
|
|
|
2769
5776
|
@error_on_requires_action = error_on_requires_action
|
|
2770
5777
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2771
5778
|
@expand = expand
|
|
5779
|
+
@fx_quote = fx_quote
|
|
2772
5780
|
@hooks = hooks
|
|
2773
5781
|
@mandate = mandate
|
|
2774
5782
|
@mandate_data = mandate_data
|
|
@@ -2781,9 +5789,11 @@ module Stripe
|
|
|
2781
5789
|
@payment_method_data = payment_method_data
|
|
2782
5790
|
@payment_method_options = payment_method_options
|
|
2783
5791
|
@payment_method_types = payment_method_types
|
|
5792
|
+
@payments_orchestration = payments_orchestration
|
|
2784
5793
|
@radar_options = radar_options
|
|
2785
5794
|
@receipt_email = receipt_email
|
|
2786
5795
|
@return_url = return_url
|
|
5796
|
+
@secret_key_confirmation = secret_key_confirmation
|
|
2787
5797
|
@setup_future_usage = setup_future_usage
|
|
2788
5798
|
@shipping = shipping
|
|
2789
5799
|
@statement_descriptor = statement_descriptor
|
|
@@ -2791,6 +5801,7 @@ module Stripe
|
|
|
2791
5801
|
@transfer_data = transfer_data
|
|
2792
5802
|
@transfer_group = transfer_group
|
|
2793
5803
|
@use_stripe_sdk = use_stripe_sdk
|
|
5804
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
2794
5805
|
end
|
|
2795
5806
|
end
|
|
2796
5807
|
end
|