stripe 18.3.0 → 18.4.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 +37 -1
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +66 -0
- data/lib/stripe/event_types.rb +512 -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_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_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_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 +95 -0
- data/lib/stripe/params/account_create_params.rb +381 -1
- 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 +343 -0
- 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 +224 -4
- data/lib/stripe/params/checkout/session_update_params.rb +156 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +47 -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/authorization_retrieve_params.rb +15 -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 +46 -1
- data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +25 -0
- data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +22 -0
- data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +13 -0
- data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +16 -0
- 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 +48 -1
- 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 +1357 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- 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 +48 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- 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_create_params.rb +2061 -0
- data/lib/stripe/params/order_list_params.rb +25 -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 +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3124 -126
- data/lib/stripe/params/payment_intent_create_params.rb +3141 -130
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3187 -162
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- 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/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -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 +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -0
- data/lib/stripe/params/quote_create_params.rb +1217 -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 +1225 -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 +41 -0
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -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_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +374 -5
- data/lib/stripe/params/subscription_item_create_params.rb +114 -2
- data/lib/stripe/params/subscription_item_update_params.rb +97 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_pause_params.rb +33 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +335 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +335 -5
- data/lib/stripe/params/subscription_update_params.rb +357 -4
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
- 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/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_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_revoke_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 -28
- data/lib/stripe/params/v2/core/account_token_create_params.rb +251 -25
- data/lib/stripe/params/v2/core/account_update_params.rb +938 -28
- 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 +134 -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 +282 -0
- data/lib/stripe/resources/account.rb +227 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +135 -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 +60 -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 +509 -0
- data/lib/stripe/resources/discount.rb +20 -1
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +103 -1
- data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +143 -0
- 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 +188 -1
- data/lib/stripe/resources/invoice_item.rb +108 -2
- data/lib/stripe/resources/invoice_line_item.rb +147 -1
- 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 +42 -0
- data/lib/stripe/resources/mandate.rb +43 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +181 -1
- data/lib/stripe/resources/payment_intent.rb +1625 -9
- 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/plan.rb +2 -0
- data/lib/stripe/resources/price.rb +22 -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 +103 -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 +1200 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +145 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -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 +269 -0
- data/lib/stripe/resources/subscription_item.rb +43 -1
- data/lib/stripe/resources/subscription_schedule.rb +290 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- 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 -80
- 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 +347 -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 +223 -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/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +50 -0
- 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/invoice_service.rb +11 -0
- 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_service.rb +49 -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/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- 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 +22 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -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 +14 -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/account_link_service.rb +2 -0
- data/lib/stripe/services/v2/core/account_service.rb +10 -0
- data/lib/stripe/services/v2/core/account_token_service.rb +4 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +10 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +4 -0
- 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 +104 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +16 -4
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +147289 -62508
- metadata +612 -3
|
@@ -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
|
|
@@ -128,158 +137,1805 @@ module Stripe
|
|
|
128
137
|
@unit_cost = unit_cost
|
|
129
138
|
@unit_of_measure = unit_of_measure
|
|
130
139
|
end
|
|
131
|
-
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
|
+
# Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
|
|
172
|
+
#
|
|
173
|
+
# Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
|
|
174
|
+
#
|
|
175
|
+
# For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks.
|
|
176
|
+
attr_accessor :enforce_arithmetic_validation
|
|
177
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
178
|
+
attr_accessor :line_items
|
|
179
|
+
# Contains information about the shipping portion of the amount.
|
|
180
|
+
attr_accessor :shipping
|
|
181
|
+
# Contains information about the tax portion of the amount.
|
|
182
|
+
attr_accessor :tax
|
|
183
|
+
|
|
184
|
+
def initialize(
|
|
185
|
+
discount_amount: nil,
|
|
186
|
+
enforce_arithmetic_validation: nil,
|
|
187
|
+
line_items: nil,
|
|
188
|
+
shipping: nil,
|
|
189
|
+
tax: nil
|
|
190
|
+
)
|
|
191
|
+
@discount_amount = discount_amount
|
|
192
|
+
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
193
|
+
@line_items = line_items
|
|
194
|
+
@shipping = shipping
|
|
195
|
+
@tax = tax
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class AutomaticPaymentMethods < ::Stripe::RequestParams
|
|
200
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
201
|
+
#
|
|
202
|
+
# 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.
|
|
203
|
+
attr_accessor :allow_redirects
|
|
204
|
+
# Whether this feature is enabled.
|
|
205
|
+
attr_accessor :enabled
|
|
206
|
+
|
|
207
|
+
def initialize(allow_redirects: nil, enabled: nil)
|
|
208
|
+
@allow_redirects = allow_redirects
|
|
209
|
+
@enabled = enabled
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
class Hooks < ::Stripe::RequestParams
|
|
214
|
+
class Inputs < ::Stripe::RequestParams
|
|
215
|
+
class Tax < ::Stripe::RequestParams
|
|
216
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
217
|
+
attr_accessor :calculation
|
|
218
|
+
|
|
219
|
+
def initialize(calculation: nil)
|
|
220
|
+
@calculation = calculation
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
# Tax arguments for automations
|
|
224
|
+
attr_accessor :tax
|
|
225
|
+
|
|
226
|
+
def initialize(tax: nil)
|
|
227
|
+
@tax = tax
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
# Arguments passed in automations
|
|
231
|
+
attr_accessor :inputs
|
|
232
|
+
|
|
233
|
+
def initialize(inputs: nil)
|
|
234
|
+
@inputs = inputs
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
class MandateData < ::Stripe::RequestParams
|
|
239
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
240
|
+
class Offline < ::Stripe::RequestParams; end
|
|
241
|
+
|
|
242
|
+
class Online < ::Stripe::RequestParams
|
|
243
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
244
|
+
attr_accessor :ip_address
|
|
245
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
246
|
+
attr_accessor :user_agent
|
|
247
|
+
|
|
248
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
249
|
+
@ip_address = ip_address
|
|
250
|
+
@user_agent = user_agent
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
# The time at which the customer accepted the Mandate.
|
|
254
|
+
attr_accessor :accepted_at
|
|
255
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
256
|
+
attr_accessor :offline
|
|
257
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
258
|
+
attr_accessor :online
|
|
259
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
260
|
+
attr_accessor :type
|
|
261
|
+
|
|
262
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
263
|
+
@accepted_at = accepted_at
|
|
264
|
+
@offline = offline
|
|
265
|
+
@online = online
|
|
266
|
+
@type = type
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
270
|
+
attr_accessor :customer_acceptance
|
|
271
|
+
|
|
272
|
+
def initialize(customer_acceptance: nil)
|
|
273
|
+
@customer_acceptance = customer_acceptance
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
278
|
+
class Benefit < ::Stripe::RequestParams
|
|
279
|
+
class FrMealVoucher < ::Stripe::RequestParams
|
|
280
|
+
# The 14-digit SIRET of the meal voucher acceptor.
|
|
281
|
+
attr_accessor :siret
|
|
282
|
+
|
|
283
|
+
def initialize(siret: nil)
|
|
284
|
+
@siret = siret
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
# French meal voucher benefit details for this PaymentIntent.
|
|
288
|
+
attr_accessor :fr_meal_voucher
|
|
289
|
+
|
|
290
|
+
def initialize(fr_meal_voucher: nil)
|
|
291
|
+
@fr_meal_voucher = fr_meal_voucher
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class CarRental < ::Stripe::RequestParams
|
|
296
|
+
class Affiliate < ::Stripe::RequestParams
|
|
297
|
+
# The name of the affiliate that originated the purchase.
|
|
298
|
+
attr_accessor :name
|
|
299
|
+
|
|
300
|
+
def initialize(name: nil)
|
|
301
|
+
@name = name
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
class Delivery < ::Stripe::RequestParams
|
|
306
|
+
class Recipient < ::Stripe::RequestParams
|
|
307
|
+
# The email of the recipient the ticket is delivered to.
|
|
308
|
+
attr_accessor :email
|
|
309
|
+
# The name of the recipient the ticket is delivered to.
|
|
310
|
+
attr_accessor :name
|
|
311
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
312
|
+
attr_accessor :phone
|
|
313
|
+
|
|
314
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
315
|
+
@email = email
|
|
316
|
+
@name = name
|
|
317
|
+
@phone = phone
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
# The delivery method for the payment
|
|
321
|
+
attr_accessor :mode
|
|
322
|
+
# Details of the recipient.
|
|
323
|
+
attr_accessor :recipient
|
|
324
|
+
|
|
325
|
+
def initialize(mode: nil, recipient: nil)
|
|
326
|
+
@mode = mode
|
|
327
|
+
@recipient = recipient
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
class Distance < ::Stripe::RequestParams
|
|
332
|
+
# Distance traveled.
|
|
333
|
+
attr_accessor :amount
|
|
334
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
335
|
+
attr_accessor :unit
|
|
336
|
+
|
|
337
|
+
def initialize(amount: nil, unit: nil)
|
|
338
|
+
@amount = amount
|
|
339
|
+
@unit = unit
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
class Driver < ::Stripe::RequestParams
|
|
344
|
+
# Driver's identification number.
|
|
345
|
+
attr_accessor :driver_identification_number
|
|
346
|
+
# Driver's tax number.
|
|
347
|
+
attr_accessor :driver_tax_number
|
|
348
|
+
# Full name of the person or entity on the car reservation.
|
|
349
|
+
attr_accessor :name
|
|
350
|
+
|
|
351
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
352
|
+
@driver_identification_number = driver_identification_number
|
|
353
|
+
@driver_tax_number = driver_tax_number
|
|
354
|
+
@name = name
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
359
|
+
# City, district, suburb, town, or village.
|
|
360
|
+
attr_accessor :city
|
|
361
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
362
|
+
attr_accessor :country
|
|
363
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
364
|
+
attr_accessor :line1
|
|
365
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
366
|
+
attr_accessor :line2
|
|
367
|
+
# ZIP or postal code.
|
|
368
|
+
attr_accessor :postal_code
|
|
369
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
370
|
+
attr_accessor :state
|
|
371
|
+
|
|
372
|
+
def initialize(
|
|
373
|
+
city: nil,
|
|
374
|
+
country: nil,
|
|
375
|
+
line1: nil,
|
|
376
|
+
line2: nil,
|
|
377
|
+
postal_code: nil,
|
|
378
|
+
state: nil
|
|
379
|
+
)
|
|
380
|
+
@city = city
|
|
381
|
+
@country = country
|
|
382
|
+
@line1 = line1
|
|
383
|
+
@line2 = line2
|
|
384
|
+
@postal_code = postal_code
|
|
385
|
+
@state = state
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
390
|
+
# City, district, suburb, town, or village.
|
|
391
|
+
attr_accessor :city
|
|
392
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
393
|
+
attr_accessor :country
|
|
394
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
395
|
+
attr_accessor :line1
|
|
396
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
397
|
+
attr_accessor :line2
|
|
398
|
+
# ZIP or postal code.
|
|
399
|
+
attr_accessor :postal_code
|
|
400
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
401
|
+
attr_accessor :state
|
|
402
|
+
|
|
403
|
+
def initialize(
|
|
404
|
+
city: nil,
|
|
405
|
+
country: nil,
|
|
406
|
+
line1: nil,
|
|
407
|
+
line2: nil,
|
|
408
|
+
postal_code: nil,
|
|
409
|
+
state: nil
|
|
410
|
+
)
|
|
411
|
+
@city = city
|
|
412
|
+
@country = country
|
|
413
|
+
@line1 = line1
|
|
414
|
+
@line2 = line2
|
|
415
|
+
@postal_code = postal_code
|
|
416
|
+
@state = state
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
# Affiliate details for this purchase.
|
|
420
|
+
attr_accessor :affiliate
|
|
421
|
+
# The booking number associated with the car rental.
|
|
422
|
+
attr_accessor :booking_number
|
|
423
|
+
# Class code of the car.
|
|
424
|
+
attr_accessor :car_class_code
|
|
425
|
+
# Make of the car.
|
|
426
|
+
attr_accessor :car_make
|
|
427
|
+
# Model of the car.
|
|
428
|
+
attr_accessor :car_model
|
|
429
|
+
# The name of the rental car company.
|
|
430
|
+
attr_accessor :company
|
|
431
|
+
# The customer service phone number of the car rental company.
|
|
432
|
+
attr_accessor :customer_service_phone_number
|
|
433
|
+
# Number of days the car is being rented.
|
|
434
|
+
attr_accessor :days_rented
|
|
435
|
+
# Delivery details for this purchase.
|
|
436
|
+
attr_accessor :delivery
|
|
437
|
+
# The details of the distance traveled during the rental period.
|
|
438
|
+
attr_accessor :distance
|
|
439
|
+
# The details of the passengers in the travel reservation
|
|
440
|
+
attr_accessor :drivers
|
|
441
|
+
# List of additional charges being billed.
|
|
442
|
+
attr_accessor :extra_charges
|
|
443
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
444
|
+
attr_accessor :no_show
|
|
445
|
+
# Car pick-up address.
|
|
446
|
+
attr_accessor :pickup_address
|
|
447
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
448
|
+
attr_accessor :pickup_at
|
|
449
|
+
# Name of the pickup location.
|
|
450
|
+
attr_accessor :pickup_location_name
|
|
451
|
+
# Rental rate.
|
|
452
|
+
attr_accessor :rate_amount
|
|
453
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
454
|
+
attr_accessor :rate_interval
|
|
455
|
+
# The name of the person or entity renting the car.
|
|
456
|
+
attr_accessor :renter_name
|
|
457
|
+
# Car return address.
|
|
458
|
+
attr_accessor :return_address
|
|
459
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
460
|
+
attr_accessor :return_at
|
|
461
|
+
# Name of the return location.
|
|
462
|
+
attr_accessor :return_location_name
|
|
463
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
464
|
+
attr_accessor :tax_exempt
|
|
465
|
+
# The vehicle identification number.
|
|
466
|
+
attr_accessor :vehicle_identification_number
|
|
467
|
+
|
|
468
|
+
def initialize(
|
|
469
|
+
affiliate: nil,
|
|
470
|
+
booking_number: nil,
|
|
471
|
+
car_class_code: nil,
|
|
472
|
+
car_make: nil,
|
|
473
|
+
car_model: nil,
|
|
474
|
+
company: nil,
|
|
475
|
+
customer_service_phone_number: nil,
|
|
476
|
+
days_rented: nil,
|
|
477
|
+
delivery: nil,
|
|
478
|
+
distance: nil,
|
|
479
|
+
drivers: nil,
|
|
480
|
+
extra_charges: nil,
|
|
481
|
+
no_show: nil,
|
|
482
|
+
pickup_address: nil,
|
|
483
|
+
pickup_at: nil,
|
|
484
|
+
pickup_location_name: nil,
|
|
485
|
+
rate_amount: nil,
|
|
486
|
+
rate_interval: nil,
|
|
487
|
+
renter_name: nil,
|
|
488
|
+
return_address: nil,
|
|
489
|
+
return_at: nil,
|
|
490
|
+
return_location_name: nil,
|
|
491
|
+
tax_exempt: nil,
|
|
492
|
+
vehicle_identification_number: nil
|
|
493
|
+
)
|
|
494
|
+
@affiliate = affiliate
|
|
495
|
+
@booking_number = booking_number
|
|
496
|
+
@car_class_code = car_class_code
|
|
497
|
+
@car_make = car_make
|
|
498
|
+
@car_model = car_model
|
|
499
|
+
@company = company
|
|
500
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
501
|
+
@days_rented = days_rented
|
|
502
|
+
@delivery = delivery
|
|
503
|
+
@distance = distance
|
|
504
|
+
@drivers = drivers
|
|
505
|
+
@extra_charges = extra_charges
|
|
506
|
+
@no_show = no_show
|
|
507
|
+
@pickup_address = pickup_address
|
|
508
|
+
@pickup_at = pickup_at
|
|
509
|
+
@pickup_location_name = pickup_location_name
|
|
510
|
+
@rate_amount = rate_amount
|
|
511
|
+
@rate_interval = rate_interval
|
|
512
|
+
@renter_name = renter_name
|
|
513
|
+
@return_address = return_address
|
|
514
|
+
@return_at = return_at
|
|
515
|
+
@return_location_name = return_location_name
|
|
516
|
+
@tax_exempt = tax_exempt
|
|
517
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
518
|
+
end
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
522
|
+
class Affiliate < ::Stripe::RequestParams
|
|
523
|
+
# Affiliate partner code.
|
|
524
|
+
attr_accessor :code
|
|
525
|
+
# Name of affiliate partner.
|
|
526
|
+
attr_accessor :name
|
|
527
|
+
|
|
528
|
+
def initialize(code: nil, name: nil)
|
|
529
|
+
@code = code
|
|
530
|
+
@name = name
|
|
531
|
+
end
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
class Distance < ::Stripe::RequestParams
|
|
535
|
+
# Distance traveled.
|
|
536
|
+
attr_accessor :amount
|
|
537
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
538
|
+
attr_accessor :unit
|
|
539
|
+
|
|
540
|
+
def initialize(amount: nil, unit: nil)
|
|
541
|
+
@amount = amount
|
|
542
|
+
@unit = unit
|
|
543
|
+
end
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
class Driver < ::Stripe::RequestParams
|
|
547
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
548
|
+
# Day of birth (1-31).
|
|
549
|
+
attr_accessor :day
|
|
550
|
+
# Month of birth (1-12).
|
|
551
|
+
attr_accessor :month
|
|
552
|
+
# Year of birth (must be greater than 1900).
|
|
553
|
+
attr_accessor :year
|
|
554
|
+
|
|
555
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
556
|
+
@day = day
|
|
557
|
+
@month = month
|
|
558
|
+
@year = year
|
|
559
|
+
end
|
|
560
|
+
end
|
|
561
|
+
# Driver's date of birth.
|
|
562
|
+
attr_accessor :date_of_birth
|
|
563
|
+
# Driver's identification number.
|
|
564
|
+
attr_accessor :driver_identification_number
|
|
565
|
+
# Driver's tax number.
|
|
566
|
+
attr_accessor :driver_tax_number
|
|
567
|
+
# Driver's full name.
|
|
568
|
+
attr_accessor :name
|
|
569
|
+
|
|
570
|
+
def initialize(
|
|
571
|
+
date_of_birth: nil,
|
|
572
|
+
driver_identification_number: nil,
|
|
573
|
+
driver_tax_number: nil,
|
|
574
|
+
name: nil
|
|
575
|
+
)
|
|
576
|
+
@date_of_birth = date_of_birth
|
|
577
|
+
@driver_identification_number = driver_identification_number
|
|
578
|
+
@driver_tax_number = driver_tax_number
|
|
579
|
+
@name = name
|
|
580
|
+
end
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
class DropOff < ::Stripe::RequestParams
|
|
584
|
+
class Address < ::Stripe::RequestParams
|
|
585
|
+
# City, district, suburb, town, or village.
|
|
586
|
+
attr_accessor :city
|
|
587
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
588
|
+
attr_accessor :country
|
|
589
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
590
|
+
attr_accessor :line1
|
|
591
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
592
|
+
attr_accessor :line2
|
|
593
|
+
# ZIP or postal code.
|
|
594
|
+
attr_accessor :postal_code
|
|
595
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
596
|
+
attr_accessor :state
|
|
597
|
+
|
|
598
|
+
def initialize(
|
|
599
|
+
city: nil,
|
|
600
|
+
country: nil,
|
|
601
|
+
line1: nil,
|
|
602
|
+
line2: nil,
|
|
603
|
+
postal_code: nil,
|
|
604
|
+
state: nil
|
|
605
|
+
)
|
|
606
|
+
@city = city
|
|
607
|
+
@country = country
|
|
608
|
+
@line1 = line1
|
|
609
|
+
@line2 = line2
|
|
610
|
+
@postal_code = postal_code
|
|
611
|
+
@state = state
|
|
612
|
+
end
|
|
613
|
+
end
|
|
614
|
+
# Address of the rental location.
|
|
615
|
+
attr_accessor :address
|
|
616
|
+
# Location name.
|
|
617
|
+
attr_accessor :location_name
|
|
618
|
+
# Timestamp for the location.
|
|
619
|
+
attr_accessor :time
|
|
620
|
+
|
|
621
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
622
|
+
@address = address
|
|
623
|
+
@location_name = location_name
|
|
624
|
+
@time = time
|
|
625
|
+
end
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
class Insurance < ::Stripe::RequestParams
|
|
629
|
+
# Amount of the insurance coverage in cents.
|
|
630
|
+
attr_accessor :amount
|
|
631
|
+
# Currency of the insurance amount.
|
|
632
|
+
attr_accessor :currency
|
|
633
|
+
# Name of the insurance company.
|
|
634
|
+
attr_accessor :insurance_company_name
|
|
635
|
+
# Type of insurance coverage.
|
|
636
|
+
attr_accessor :insurance_type
|
|
637
|
+
|
|
638
|
+
def initialize(
|
|
639
|
+
amount: nil,
|
|
640
|
+
currency: nil,
|
|
641
|
+
insurance_company_name: nil,
|
|
642
|
+
insurance_type: nil
|
|
643
|
+
)
|
|
644
|
+
@amount = amount
|
|
645
|
+
@currency = currency
|
|
646
|
+
@insurance_company_name = insurance_company_name
|
|
647
|
+
@insurance_type = insurance_type
|
|
648
|
+
end
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
class Pickup < ::Stripe::RequestParams
|
|
652
|
+
class Address < ::Stripe::RequestParams
|
|
653
|
+
# City, district, suburb, town, or village.
|
|
654
|
+
attr_accessor :city
|
|
655
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
656
|
+
attr_accessor :country
|
|
657
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
658
|
+
attr_accessor :line1
|
|
659
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
660
|
+
attr_accessor :line2
|
|
661
|
+
# ZIP or postal code.
|
|
662
|
+
attr_accessor :postal_code
|
|
663
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
664
|
+
attr_accessor :state
|
|
665
|
+
|
|
666
|
+
def initialize(
|
|
667
|
+
city: nil,
|
|
668
|
+
country: nil,
|
|
669
|
+
line1: nil,
|
|
670
|
+
line2: nil,
|
|
671
|
+
postal_code: nil,
|
|
672
|
+
state: nil
|
|
673
|
+
)
|
|
674
|
+
@city = city
|
|
675
|
+
@country = country
|
|
676
|
+
@line1 = line1
|
|
677
|
+
@line2 = line2
|
|
678
|
+
@postal_code = postal_code
|
|
679
|
+
@state = state
|
|
680
|
+
end
|
|
681
|
+
end
|
|
682
|
+
# Address of the rental location.
|
|
683
|
+
attr_accessor :address
|
|
684
|
+
# Location name.
|
|
685
|
+
attr_accessor :location_name
|
|
686
|
+
# Timestamp for the location.
|
|
687
|
+
attr_accessor :time
|
|
688
|
+
|
|
689
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
690
|
+
@address = address
|
|
691
|
+
@location_name = location_name
|
|
692
|
+
@time = time
|
|
693
|
+
end
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
class Total < ::Stripe::RequestParams
|
|
697
|
+
class Discounts < ::Stripe::RequestParams
|
|
698
|
+
# Corporate client discount code.
|
|
699
|
+
attr_accessor :corporate_client_code
|
|
700
|
+
# Coupon code applied to the rental.
|
|
701
|
+
attr_accessor :coupon
|
|
702
|
+
# Maximum number of free miles or kilometers included.
|
|
703
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
704
|
+
|
|
705
|
+
def initialize(
|
|
706
|
+
corporate_client_code: nil,
|
|
707
|
+
coupon: nil,
|
|
708
|
+
maximum_free_miles_or_kilometers: nil
|
|
709
|
+
)
|
|
710
|
+
@corporate_client_code = corporate_client_code
|
|
711
|
+
@coupon = coupon
|
|
712
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
717
|
+
# Amount of the extra charge in cents.
|
|
718
|
+
attr_accessor :amount
|
|
719
|
+
# Type of extra charge.
|
|
720
|
+
attr_accessor :type
|
|
721
|
+
|
|
722
|
+
def initialize(amount: nil, type: nil)
|
|
723
|
+
@amount = amount
|
|
724
|
+
@type = type
|
|
725
|
+
end
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
class Tax < ::Stripe::RequestParams
|
|
729
|
+
class Tax < ::Stripe::RequestParams
|
|
730
|
+
# Tax amount.
|
|
731
|
+
attr_accessor :amount
|
|
732
|
+
# Tax rate applied.
|
|
733
|
+
attr_accessor :rate
|
|
734
|
+
# Type of tax applied.
|
|
735
|
+
attr_accessor :type
|
|
736
|
+
|
|
737
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
738
|
+
@amount = amount
|
|
739
|
+
@rate = rate
|
|
740
|
+
@type = type
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
# Indicates if the transaction is tax exempt.
|
|
744
|
+
attr_accessor :tax_exempt_indicator
|
|
745
|
+
# Array of tax details.
|
|
746
|
+
attr_accessor :taxes
|
|
747
|
+
|
|
748
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
749
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
750
|
+
@taxes = taxes
|
|
751
|
+
end
|
|
752
|
+
end
|
|
753
|
+
# Total amount in cents.
|
|
754
|
+
attr_accessor :amount
|
|
755
|
+
# Currency of the amount.
|
|
756
|
+
attr_accessor :currency
|
|
757
|
+
# Discount details for the rental.
|
|
758
|
+
attr_accessor :discounts
|
|
759
|
+
# Additional charges for the rental.
|
|
760
|
+
attr_accessor :extra_charges
|
|
761
|
+
# Rate per unit for the rental.
|
|
762
|
+
attr_accessor :rate_per_unit
|
|
763
|
+
# Unit of measurement for the rate.
|
|
764
|
+
attr_accessor :rate_unit
|
|
765
|
+
# Tax breakdown for the rental.
|
|
766
|
+
attr_accessor :tax
|
|
767
|
+
|
|
768
|
+
def initialize(
|
|
769
|
+
amount: nil,
|
|
770
|
+
currency: nil,
|
|
771
|
+
discounts: nil,
|
|
772
|
+
extra_charges: nil,
|
|
773
|
+
rate_per_unit: nil,
|
|
774
|
+
rate_unit: nil,
|
|
775
|
+
tax: nil
|
|
776
|
+
)
|
|
777
|
+
@amount = amount
|
|
778
|
+
@currency = currency
|
|
779
|
+
@discounts = discounts
|
|
780
|
+
@extra_charges = extra_charges
|
|
781
|
+
@rate_per_unit = rate_per_unit
|
|
782
|
+
@rate_unit = rate_unit
|
|
783
|
+
@tax = tax
|
|
784
|
+
end
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
class Vehicle < ::Stripe::RequestParams
|
|
788
|
+
# Make of the rental vehicle.
|
|
789
|
+
attr_accessor :make
|
|
790
|
+
# Model of the rental vehicle.
|
|
791
|
+
attr_accessor :model
|
|
792
|
+
# Odometer reading at the time of rental.
|
|
793
|
+
attr_accessor :odometer
|
|
794
|
+
# Type of the rental vehicle.
|
|
795
|
+
attr_accessor :type
|
|
796
|
+
# Class of the rental vehicle.
|
|
797
|
+
attr_accessor :vehicle_class
|
|
798
|
+
# Vehicle identification number (VIN).
|
|
799
|
+
attr_accessor :vehicle_identification_number
|
|
800
|
+
|
|
801
|
+
def initialize(
|
|
802
|
+
make: nil,
|
|
803
|
+
model: nil,
|
|
804
|
+
odometer: nil,
|
|
805
|
+
type: nil,
|
|
806
|
+
vehicle_class: nil,
|
|
807
|
+
vehicle_identification_number: nil
|
|
808
|
+
)
|
|
809
|
+
@make = make
|
|
810
|
+
@model = model
|
|
811
|
+
@odometer = odometer
|
|
812
|
+
@type = type
|
|
813
|
+
@vehicle_class = vehicle_class
|
|
814
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
815
|
+
end
|
|
816
|
+
end
|
|
817
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
818
|
+
attr_accessor :affiliate
|
|
819
|
+
# Booking confirmation number for the car rental.
|
|
820
|
+
attr_accessor :booking_number
|
|
821
|
+
# Name of the car rental company.
|
|
822
|
+
attr_accessor :carrier_name
|
|
823
|
+
# Customer service phone number for the car rental company.
|
|
824
|
+
attr_accessor :customer_service_phone_number
|
|
825
|
+
# Number of days the car is being rented.
|
|
826
|
+
attr_accessor :days_rented
|
|
827
|
+
# Distance details for the rental.
|
|
828
|
+
attr_accessor :distance
|
|
829
|
+
# List of drivers for the rental.
|
|
830
|
+
attr_accessor :drivers
|
|
831
|
+
# Drop-off location details.
|
|
832
|
+
attr_accessor :drop_off
|
|
833
|
+
# Insurance details for the rental.
|
|
834
|
+
attr_accessor :insurances
|
|
835
|
+
# Indicates if the customer was a no-show.
|
|
836
|
+
attr_accessor :no_show_indicator
|
|
837
|
+
# Pickup location details.
|
|
838
|
+
attr_accessor :pickup
|
|
839
|
+
# Name of the person renting the vehicle.
|
|
840
|
+
attr_accessor :renter_name
|
|
841
|
+
# Total cost breakdown for the rental.
|
|
842
|
+
attr_accessor :total
|
|
843
|
+
# Vehicle details for the rental.
|
|
844
|
+
attr_accessor :vehicle
|
|
845
|
+
|
|
846
|
+
def initialize(
|
|
847
|
+
affiliate: nil,
|
|
848
|
+
booking_number: nil,
|
|
849
|
+
carrier_name: nil,
|
|
850
|
+
customer_service_phone_number: nil,
|
|
851
|
+
days_rented: nil,
|
|
852
|
+
distance: nil,
|
|
853
|
+
drivers: nil,
|
|
854
|
+
drop_off: nil,
|
|
855
|
+
insurances: nil,
|
|
856
|
+
no_show_indicator: nil,
|
|
857
|
+
pickup: nil,
|
|
858
|
+
renter_name: nil,
|
|
859
|
+
total: nil,
|
|
860
|
+
vehicle: nil
|
|
861
|
+
)
|
|
862
|
+
@affiliate = affiliate
|
|
863
|
+
@booking_number = booking_number
|
|
864
|
+
@carrier_name = carrier_name
|
|
865
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
866
|
+
@days_rented = days_rented
|
|
867
|
+
@distance = distance
|
|
868
|
+
@drivers = drivers
|
|
869
|
+
@drop_off = drop_off
|
|
870
|
+
@insurances = insurances
|
|
871
|
+
@no_show_indicator = no_show_indicator
|
|
872
|
+
@pickup = pickup
|
|
873
|
+
@renter_name = renter_name
|
|
874
|
+
@total = total
|
|
875
|
+
@vehicle = vehicle
|
|
876
|
+
end
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
class EventDetails < ::Stripe::RequestParams
|
|
880
|
+
class Address < ::Stripe::RequestParams
|
|
881
|
+
# City, district, suburb, town, or village.
|
|
882
|
+
attr_accessor :city
|
|
883
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
884
|
+
attr_accessor :country
|
|
885
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
886
|
+
attr_accessor :line1
|
|
887
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
888
|
+
attr_accessor :line2
|
|
889
|
+
# ZIP or postal code.
|
|
890
|
+
attr_accessor :postal_code
|
|
891
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
892
|
+
attr_accessor :state
|
|
893
|
+
|
|
894
|
+
def initialize(
|
|
895
|
+
city: nil,
|
|
896
|
+
country: nil,
|
|
897
|
+
line1: nil,
|
|
898
|
+
line2: nil,
|
|
899
|
+
postal_code: nil,
|
|
900
|
+
state: nil
|
|
901
|
+
)
|
|
902
|
+
@city = city
|
|
903
|
+
@country = country
|
|
904
|
+
@line1 = line1
|
|
905
|
+
@line2 = line2
|
|
906
|
+
@postal_code = postal_code
|
|
907
|
+
@state = state
|
|
908
|
+
end
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
class Affiliate < ::Stripe::RequestParams
|
|
912
|
+
# The name of the affiliate that originated the purchase.
|
|
913
|
+
attr_accessor :name
|
|
914
|
+
|
|
915
|
+
def initialize(name: nil)
|
|
916
|
+
@name = name
|
|
917
|
+
end
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
class Delivery < ::Stripe::RequestParams
|
|
921
|
+
class Recipient < ::Stripe::RequestParams
|
|
922
|
+
# The email of the recipient the ticket is delivered to.
|
|
923
|
+
attr_accessor :email
|
|
924
|
+
# The name of the recipient the ticket is delivered to.
|
|
925
|
+
attr_accessor :name
|
|
926
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
927
|
+
attr_accessor :phone
|
|
928
|
+
|
|
929
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
930
|
+
@email = email
|
|
931
|
+
@name = name
|
|
932
|
+
@phone = phone
|
|
933
|
+
end
|
|
934
|
+
end
|
|
935
|
+
# The delivery method for the payment
|
|
936
|
+
attr_accessor :mode
|
|
937
|
+
# Details of the recipient.
|
|
938
|
+
attr_accessor :recipient
|
|
939
|
+
|
|
940
|
+
def initialize(mode: nil, recipient: nil)
|
|
941
|
+
@mode = mode
|
|
942
|
+
@recipient = recipient
|
|
943
|
+
end
|
|
944
|
+
end
|
|
945
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
946
|
+
attr_accessor :access_controlled_venue
|
|
947
|
+
# The event location's address.
|
|
948
|
+
attr_accessor :address
|
|
949
|
+
# Affiliate details for this purchase.
|
|
950
|
+
attr_accessor :affiliate
|
|
951
|
+
# The name of the company
|
|
952
|
+
attr_accessor :company
|
|
953
|
+
# Delivery details for this purchase.
|
|
954
|
+
attr_accessor :delivery
|
|
955
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
956
|
+
attr_accessor :ends_at
|
|
957
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
958
|
+
attr_accessor :genre
|
|
959
|
+
# The name of the event.
|
|
960
|
+
attr_accessor :name
|
|
961
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
962
|
+
attr_accessor :starts_at
|
|
963
|
+
|
|
964
|
+
def initialize(
|
|
965
|
+
access_controlled_venue: nil,
|
|
966
|
+
address: nil,
|
|
967
|
+
affiliate: nil,
|
|
968
|
+
company: nil,
|
|
969
|
+
delivery: nil,
|
|
970
|
+
ends_at: nil,
|
|
971
|
+
genre: nil,
|
|
972
|
+
name: nil,
|
|
973
|
+
starts_at: nil
|
|
974
|
+
)
|
|
975
|
+
@access_controlled_venue = access_controlled_venue
|
|
976
|
+
@address = address
|
|
977
|
+
@affiliate = affiliate
|
|
978
|
+
@company = company
|
|
979
|
+
@delivery = delivery
|
|
980
|
+
@ends_at = ends_at
|
|
981
|
+
@genre = genre
|
|
982
|
+
@name = name
|
|
983
|
+
@starts_at = starts_at
|
|
984
|
+
end
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
class Flight < ::Stripe::RequestParams
|
|
988
|
+
class Affiliate < ::Stripe::RequestParams
|
|
989
|
+
# The name of the affiliate that originated the purchase.
|
|
990
|
+
attr_accessor :name
|
|
991
|
+
|
|
992
|
+
def initialize(name: nil)
|
|
993
|
+
@name = name
|
|
994
|
+
end
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
class Delivery < ::Stripe::RequestParams
|
|
998
|
+
class Recipient < ::Stripe::RequestParams
|
|
999
|
+
# The email of the recipient the ticket is delivered to.
|
|
1000
|
+
attr_accessor :email
|
|
1001
|
+
# The name of the recipient the ticket is delivered to.
|
|
1002
|
+
attr_accessor :name
|
|
1003
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1004
|
+
attr_accessor :phone
|
|
1005
|
+
|
|
1006
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1007
|
+
@email = email
|
|
1008
|
+
@name = name
|
|
1009
|
+
@phone = phone
|
|
1010
|
+
end
|
|
1011
|
+
end
|
|
1012
|
+
# The delivery method for the payment
|
|
1013
|
+
attr_accessor :mode
|
|
1014
|
+
# Details of the recipient.
|
|
1015
|
+
attr_accessor :recipient
|
|
1016
|
+
|
|
1017
|
+
def initialize(mode: nil, recipient: nil)
|
|
1018
|
+
@mode = mode
|
|
1019
|
+
@recipient = recipient
|
|
1020
|
+
end
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
class Passenger < ::Stripe::RequestParams
|
|
1024
|
+
# Full name of the person or entity on the flight reservation.
|
|
1025
|
+
attr_accessor :name
|
|
1026
|
+
|
|
1027
|
+
def initialize(name: nil)
|
|
1028
|
+
@name = name
|
|
1029
|
+
end
|
|
1030
|
+
end
|
|
1031
|
+
|
|
1032
|
+
class Segment < ::Stripe::RequestParams
|
|
1033
|
+
# The flight segment amount.
|
|
1034
|
+
attr_accessor :amount
|
|
1035
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1036
|
+
attr_accessor :arrival_airport
|
|
1037
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1038
|
+
attr_accessor :arrives_at
|
|
1039
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1040
|
+
attr_accessor :carrier
|
|
1041
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1042
|
+
attr_accessor :departs_at
|
|
1043
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1044
|
+
attr_accessor :departure_airport
|
|
1045
|
+
# The flight number associated with the segment
|
|
1046
|
+
attr_accessor :flight_number
|
|
1047
|
+
# The fare class for the segment.
|
|
1048
|
+
attr_accessor :service_class
|
|
1049
|
+
|
|
1050
|
+
def initialize(
|
|
1051
|
+
amount: nil,
|
|
1052
|
+
arrival_airport: nil,
|
|
1053
|
+
arrives_at: nil,
|
|
1054
|
+
carrier: nil,
|
|
1055
|
+
departs_at: nil,
|
|
1056
|
+
departure_airport: nil,
|
|
1057
|
+
flight_number: nil,
|
|
1058
|
+
service_class: nil
|
|
1059
|
+
)
|
|
1060
|
+
@amount = amount
|
|
1061
|
+
@arrival_airport = arrival_airport
|
|
1062
|
+
@arrives_at = arrives_at
|
|
1063
|
+
@carrier = carrier
|
|
1064
|
+
@departs_at = departs_at
|
|
1065
|
+
@departure_airport = departure_airport
|
|
1066
|
+
@flight_number = flight_number
|
|
1067
|
+
@service_class = service_class
|
|
1068
|
+
end
|
|
1069
|
+
end
|
|
1070
|
+
# Affiliate details for this purchase.
|
|
1071
|
+
attr_accessor :affiliate
|
|
1072
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1073
|
+
attr_accessor :agency_number
|
|
1074
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1075
|
+
attr_accessor :carrier
|
|
1076
|
+
# Delivery details for this purchase.
|
|
1077
|
+
attr_accessor :delivery
|
|
1078
|
+
# The name of the person or entity on the reservation.
|
|
1079
|
+
attr_accessor :passenger_name
|
|
1080
|
+
# The details of the passengers in the travel reservation.
|
|
1081
|
+
attr_accessor :passengers
|
|
1082
|
+
# The individual flight segments associated with the trip.
|
|
1083
|
+
attr_accessor :segments
|
|
1084
|
+
# The ticket number associated with the travel reservation.
|
|
1085
|
+
attr_accessor :ticket_number
|
|
1086
|
+
|
|
1087
|
+
def initialize(
|
|
1088
|
+
affiliate: nil,
|
|
1089
|
+
agency_number: nil,
|
|
1090
|
+
carrier: nil,
|
|
1091
|
+
delivery: nil,
|
|
1092
|
+
passenger_name: nil,
|
|
1093
|
+
passengers: nil,
|
|
1094
|
+
segments: nil,
|
|
1095
|
+
ticket_number: nil
|
|
1096
|
+
)
|
|
1097
|
+
@affiliate = affiliate
|
|
1098
|
+
@agency_number = agency_number
|
|
1099
|
+
@carrier = carrier
|
|
1100
|
+
@delivery = delivery
|
|
1101
|
+
@passenger_name = passenger_name
|
|
1102
|
+
@passengers = passengers
|
|
1103
|
+
@segments = segments
|
|
1104
|
+
@ticket_number = ticket_number
|
|
1105
|
+
end
|
|
1106
|
+
end
|
|
1107
|
+
|
|
1108
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1109
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1110
|
+
# Affiliate partner code.
|
|
1111
|
+
attr_accessor :code
|
|
1112
|
+
# Name of affiliate partner.
|
|
1113
|
+
attr_accessor :name
|
|
1114
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1115
|
+
attr_accessor :travel_authorization_code
|
|
1116
|
+
|
|
1117
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1118
|
+
@code = code
|
|
1119
|
+
@name = name
|
|
1120
|
+
@travel_authorization_code = travel_authorization_code
|
|
1121
|
+
end
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
class Insurance < ::Stripe::RequestParams
|
|
1125
|
+
# Insurance cost.
|
|
1126
|
+
attr_accessor :amount
|
|
1127
|
+
# Insurance currency.
|
|
1128
|
+
attr_accessor :currency
|
|
1129
|
+
# Insurance company name.
|
|
1130
|
+
attr_accessor :insurance_company_name
|
|
1131
|
+
# Type of insurance.
|
|
1132
|
+
attr_accessor :insurance_type
|
|
1133
|
+
|
|
1134
|
+
def initialize(
|
|
1135
|
+
amount: nil,
|
|
1136
|
+
currency: nil,
|
|
1137
|
+
insurance_company_name: nil,
|
|
1138
|
+
insurance_type: nil
|
|
1139
|
+
)
|
|
1140
|
+
@amount = amount
|
|
1141
|
+
@currency = currency
|
|
1142
|
+
@insurance_company_name = insurance_company_name
|
|
1143
|
+
@insurance_type = insurance_type
|
|
1144
|
+
end
|
|
1145
|
+
end
|
|
1146
|
+
|
|
1147
|
+
class Passenger < ::Stripe::RequestParams
|
|
1148
|
+
# Passenger's full name.
|
|
1149
|
+
attr_accessor :name
|
|
1150
|
+
|
|
1151
|
+
def initialize(name: nil)
|
|
1152
|
+
@name = name
|
|
1153
|
+
end
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
class Segment < ::Stripe::RequestParams
|
|
1157
|
+
class Arrival < ::Stripe::RequestParams
|
|
1158
|
+
# Arrival airport IATA code.
|
|
1159
|
+
attr_accessor :airport
|
|
1160
|
+
# Arrival date/time.
|
|
1161
|
+
attr_accessor :arrives_at
|
|
1162
|
+
# Arrival city.
|
|
1163
|
+
attr_accessor :city
|
|
1164
|
+
# Arrival country.
|
|
1165
|
+
attr_accessor :country
|
|
1166
|
+
|
|
1167
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1168
|
+
@airport = airport
|
|
1169
|
+
@arrives_at = arrives_at
|
|
1170
|
+
@city = city
|
|
1171
|
+
@country = country
|
|
1172
|
+
end
|
|
1173
|
+
end
|
|
1174
|
+
|
|
1175
|
+
class Departure < ::Stripe::RequestParams
|
|
1176
|
+
# Departure airport IATA code.
|
|
1177
|
+
attr_accessor :airport
|
|
1178
|
+
# Departure city.
|
|
1179
|
+
attr_accessor :city
|
|
1180
|
+
# Departure country.
|
|
1181
|
+
attr_accessor :country
|
|
1182
|
+
# Departure date/time.
|
|
1183
|
+
attr_accessor :departs_at
|
|
1184
|
+
|
|
1185
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1186
|
+
@airport = airport
|
|
1187
|
+
@city = city
|
|
1188
|
+
@country = country
|
|
1189
|
+
@departs_at = departs_at
|
|
1190
|
+
end
|
|
1191
|
+
end
|
|
1192
|
+
# Segment fare amount.
|
|
1193
|
+
attr_accessor :amount
|
|
1194
|
+
# Arrival details.
|
|
1195
|
+
attr_accessor :arrival
|
|
1196
|
+
# Airline carrier code.
|
|
1197
|
+
attr_accessor :carrier_code
|
|
1198
|
+
# Carrier name.
|
|
1199
|
+
attr_accessor :carrier_name
|
|
1200
|
+
# Segment currency.
|
|
1201
|
+
attr_accessor :currency
|
|
1202
|
+
# Departure details.
|
|
1203
|
+
attr_accessor :departure
|
|
1204
|
+
# Exchange ticket number.
|
|
1205
|
+
attr_accessor :exchange_ticket_number
|
|
1206
|
+
# Fare basis code.
|
|
1207
|
+
attr_accessor :fare_basis_code
|
|
1208
|
+
# Additional fees.
|
|
1209
|
+
attr_accessor :fees
|
|
1210
|
+
# Flight number.
|
|
1211
|
+
attr_accessor :flight_number
|
|
1212
|
+
# Stopover indicator.
|
|
1213
|
+
attr_accessor :is_stop_over_indicator
|
|
1214
|
+
# Refundable ticket indicator.
|
|
1215
|
+
attr_accessor :refundable
|
|
1216
|
+
# Class of service.
|
|
1217
|
+
attr_accessor :service_class
|
|
1218
|
+
# Tax amount for segment.
|
|
1219
|
+
attr_accessor :tax_amount
|
|
1220
|
+
# Ticket number.
|
|
1221
|
+
attr_accessor :ticket_number
|
|
1222
|
+
|
|
1223
|
+
def initialize(
|
|
1224
|
+
amount: nil,
|
|
1225
|
+
arrival: nil,
|
|
1226
|
+
carrier_code: nil,
|
|
1227
|
+
carrier_name: nil,
|
|
1228
|
+
currency: nil,
|
|
1229
|
+
departure: nil,
|
|
1230
|
+
exchange_ticket_number: nil,
|
|
1231
|
+
fare_basis_code: nil,
|
|
1232
|
+
fees: nil,
|
|
1233
|
+
flight_number: nil,
|
|
1234
|
+
is_stop_over_indicator: nil,
|
|
1235
|
+
refundable: nil,
|
|
1236
|
+
service_class: nil,
|
|
1237
|
+
tax_amount: nil,
|
|
1238
|
+
ticket_number: nil
|
|
1239
|
+
)
|
|
1240
|
+
@amount = amount
|
|
1241
|
+
@arrival = arrival
|
|
1242
|
+
@carrier_code = carrier_code
|
|
1243
|
+
@carrier_name = carrier_name
|
|
1244
|
+
@currency = currency
|
|
1245
|
+
@departure = departure
|
|
1246
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1247
|
+
@fare_basis_code = fare_basis_code
|
|
1248
|
+
@fees = fees
|
|
1249
|
+
@flight_number = flight_number
|
|
1250
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1251
|
+
@refundable = refundable
|
|
1252
|
+
@service_class = service_class
|
|
1253
|
+
@tax_amount = tax_amount
|
|
1254
|
+
@ticket_number = ticket_number
|
|
1255
|
+
end
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
class Total < ::Stripe::RequestParams
|
|
1259
|
+
class Discounts < ::Stripe::RequestParams
|
|
1260
|
+
# Corporate client discount code.
|
|
1261
|
+
attr_accessor :corporate_client_code
|
|
1262
|
+
|
|
1263
|
+
def initialize(corporate_client_code: nil)
|
|
1264
|
+
@corporate_client_code = corporate_client_code
|
|
1265
|
+
end
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1269
|
+
# Amount of additional charges.
|
|
1270
|
+
attr_accessor :amount
|
|
1271
|
+
# Type of additional charges.
|
|
1272
|
+
attr_accessor :type
|
|
1273
|
+
|
|
1274
|
+
def initialize(amount: nil, type: nil)
|
|
1275
|
+
@amount = amount
|
|
1276
|
+
@type = type
|
|
1277
|
+
end
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
class Tax < ::Stripe::RequestParams
|
|
1281
|
+
class Tax < ::Stripe::RequestParams
|
|
1282
|
+
# Tax amount.
|
|
1283
|
+
attr_accessor :amount
|
|
1284
|
+
# Tax rate.
|
|
1285
|
+
attr_accessor :rate
|
|
1286
|
+
# Type of tax.
|
|
1287
|
+
attr_accessor :type
|
|
1288
|
+
|
|
1289
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1290
|
+
@amount = amount
|
|
1291
|
+
@rate = rate
|
|
1292
|
+
@type = type
|
|
1293
|
+
end
|
|
1294
|
+
end
|
|
1295
|
+
# Array of tax details.
|
|
1296
|
+
attr_accessor :taxes
|
|
1297
|
+
|
|
1298
|
+
def initialize(taxes: nil)
|
|
1299
|
+
@taxes = taxes
|
|
1300
|
+
end
|
|
1301
|
+
end
|
|
1302
|
+
# Total flight amount.
|
|
1303
|
+
attr_accessor :amount
|
|
1304
|
+
# Reason for credit.
|
|
1305
|
+
attr_accessor :credit_reason
|
|
1306
|
+
# Total currency.
|
|
1307
|
+
attr_accessor :currency
|
|
1308
|
+
# Discount details.
|
|
1309
|
+
attr_accessor :discounts
|
|
1310
|
+
# Additional charges.
|
|
1311
|
+
attr_accessor :extra_charges
|
|
1312
|
+
# Tax breakdown.
|
|
1313
|
+
attr_accessor :tax
|
|
1314
|
+
|
|
1315
|
+
def initialize(
|
|
1316
|
+
amount: nil,
|
|
1317
|
+
credit_reason: nil,
|
|
1318
|
+
currency: nil,
|
|
1319
|
+
discounts: nil,
|
|
1320
|
+
extra_charges: nil,
|
|
1321
|
+
tax: nil
|
|
1322
|
+
)
|
|
1323
|
+
@amount = amount
|
|
1324
|
+
@credit_reason = credit_reason
|
|
1325
|
+
@currency = currency
|
|
1326
|
+
@discounts = discounts
|
|
1327
|
+
@extra_charges = extra_charges
|
|
1328
|
+
@tax = tax
|
|
1329
|
+
end
|
|
1330
|
+
end
|
|
1331
|
+
# Affiliate details if applicable.
|
|
1332
|
+
attr_accessor :affiliate
|
|
1333
|
+
# Reservation reference.
|
|
1334
|
+
attr_accessor :booking_number
|
|
1335
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1336
|
+
attr_accessor :computerized_reservation_system
|
|
1337
|
+
# Ticket restrictions.
|
|
1338
|
+
attr_accessor :endorsements_and_restrictions
|
|
1339
|
+
# List of insurances.
|
|
1340
|
+
attr_accessor :insurances
|
|
1341
|
+
# List of passengers.
|
|
1342
|
+
attr_accessor :passengers
|
|
1343
|
+
# List of flight segments.
|
|
1344
|
+
attr_accessor :segments
|
|
1345
|
+
# Electronic ticket indicator.
|
|
1346
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1347
|
+
# Total cost breakdown.
|
|
1348
|
+
attr_accessor :total
|
|
1349
|
+
# Type of flight transaction.
|
|
1350
|
+
attr_accessor :transaction_type
|
|
1351
|
+
|
|
1352
|
+
def initialize(
|
|
1353
|
+
affiliate: nil,
|
|
1354
|
+
booking_number: nil,
|
|
1355
|
+
computerized_reservation_system: nil,
|
|
1356
|
+
endorsements_and_restrictions: nil,
|
|
1357
|
+
insurances: nil,
|
|
1358
|
+
passengers: nil,
|
|
1359
|
+
segments: nil,
|
|
1360
|
+
ticket_electronically_issued_indicator: nil,
|
|
1361
|
+
total: nil,
|
|
1362
|
+
transaction_type: nil
|
|
1363
|
+
)
|
|
1364
|
+
@affiliate = affiliate
|
|
1365
|
+
@booking_number = booking_number
|
|
1366
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1367
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1368
|
+
@insurances = insurances
|
|
1369
|
+
@passengers = passengers
|
|
1370
|
+
@segments = segments
|
|
1371
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1372
|
+
@total = total
|
|
1373
|
+
@transaction_type = transaction_type
|
|
1374
|
+
end
|
|
1375
|
+
end
|
|
1376
|
+
|
|
1377
|
+
class Lodging < ::Stripe::RequestParams
|
|
1378
|
+
class Address < ::Stripe::RequestParams
|
|
1379
|
+
# City, district, suburb, town, or village.
|
|
1380
|
+
attr_accessor :city
|
|
1381
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1382
|
+
attr_accessor :country
|
|
1383
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1384
|
+
attr_accessor :line1
|
|
1385
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1386
|
+
attr_accessor :line2
|
|
1387
|
+
# ZIP or postal code.
|
|
1388
|
+
attr_accessor :postal_code
|
|
1389
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1390
|
+
attr_accessor :state
|
|
1391
|
+
|
|
1392
|
+
def initialize(
|
|
1393
|
+
city: nil,
|
|
1394
|
+
country: nil,
|
|
1395
|
+
line1: nil,
|
|
1396
|
+
line2: nil,
|
|
1397
|
+
postal_code: nil,
|
|
1398
|
+
state: nil
|
|
1399
|
+
)
|
|
1400
|
+
@city = city
|
|
1401
|
+
@country = country
|
|
1402
|
+
@line1 = line1
|
|
1403
|
+
@line2 = line2
|
|
1404
|
+
@postal_code = postal_code
|
|
1405
|
+
@state = state
|
|
1406
|
+
end
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1410
|
+
# The name of the affiliate that originated the purchase.
|
|
1411
|
+
attr_accessor :name
|
|
1412
|
+
|
|
1413
|
+
def initialize(name: nil)
|
|
1414
|
+
@name = name
|
|
1415
|
+
end
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
class Delivery < ::Stripe::RequestParams
|
|
1419
|
+
class Recipient < ::Stripe::RequestParams
|
|
1420
|
+
# The email of the recipient the ticket is delivered to.
|
|
1421
|
+
attr_accessor :email
|
|
1422
|
+
# The name of the recipient the ticket is delivered to.
|
|
1423
|
+
attr_accessor :name
|
|
1424
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1425
|
+
attr_accessor :phone
|
|
1426
|
+
|
|
1427
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1428
|
+
@email = email
|
|
1429
|
+
@name = name
|
|
1430
|
+
@phone = phone
|
|
1431
|
+
end
|
|
1432
|
+
end
|
|
1433
|
+
# The delivery method for the payment
|
|
1434
|
+
attr_accessor :mode
|
|
1435
|
+
# Details of the recipient.
|
|
1436
|
+
attr_accessor :recipient
|
|
1437
|
+
|
|
1438
|
+
def initialize(mode: nil, recipient: nil)
|
|
1439
|
+
@mode = mode
|
|
1440
|
+
@recipient = recipient
|
|
1441
|
+
end
|
|
1442
|
+
end
|
|
1443
|
+
|
|
1444
|
+
class Passenger < ::Stripe::RequestParams
|
|
1445
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1446
|
+
attr_accessor :name
|
|
1447
|
+
|
|
1448
|
+
def initialize(name: nil)
|
|
1449
|
+
@name = name
|
|
1450
|
+
end
|
|
1451
|
+
end
|
|
1452
|
+
# The lodging location's address.
|
|
1453
|
+
attr_accessor :address
|
|
1454
|
+
# The number of adults on the booking
|
|
1455
|
+
attr_accessor :adults
|
|
1456
|
+
# Affiliate details for this purchase.
|
|
1457
|
+
attr_accessor :affiliate
|
|
1458
|
+
# The booking number associated with the lodging reservation.
|
|
1459
|
+
attr_accessor :booking_number
|
|
1460
|
+
# The lodging category
|
|
1461
|
+
attr_accessor :category
|
|
1462
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1463
|
+
attr_accessor :checkin_at
|
|
1464
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1465
|
+
attr_accessor :checkout_at
|
|
1466
|
+
# The customer service phone number of the lodging company.
|
|
1467
|
+
attr_accessor :customer_service_phone_number
|
|
1468
|
+
# The daily lodging room rate.
|
|
1469
|
+
attr_accessor :daily_room_rate_amount
|
|
1470
|
+
# Delivery details for this purchase.
|
|
1471
|
+
attr_accessor :delivery
|
|
1472
|
+
# List of additional charges being billed.
|
|
1473
|
+
attr_accessor :extra_charges
|
|
1474
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1475
|
+
attr_accessor :fire_safety_act_compliance
|
|
1476
|
+
# The name of the lodging location.
|
|
1477
|
+
attr_accessor :name
|
|
1478
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1479
|
+
attr_accessor :no_show
|
|
1480
|
+
# The number of rooms on the booking
|
|
1481
|
+
attr_accessor :number_of_rooms
|
|
1482
|
+
# The details of the passengers in the travel reservation
|
|
1483
|
+
attr_accessor :passengers
|
|
1484
|
+
# The phone number of the lodging location.
|
|
1485
|
+
attr_accessor :property_phone_number
|
|
1486
|
+
# The room class for this purchase.
|
|
1487
|
+
attr_accessor :room_class
|
|
1488
|
+
# The number of room nights
|
|
1489
|
+
attr_accessor :room_nights
|
|
1490
|
+
# The total tax amount associating with the room reservation.
|
|
1491
|
+
attr_accessor :total_room_tax_amount
|
|
1492
|
+
# The total tax amount
|
|
1493
|
+
attr_accessor :total_tax_amount
|
|
1494
|
+
|
|
1495
|
+
def initialize(
|
|
1496
|
+
address: nil,
|
|
1497
|
+
adults: nil,
|
|
1498
|
+
affiliate: nil,
|
|
1499
|
+
booking_number: nil,
|
|
1500
|
+
category: nil,
|
|
1501
|
+
checkin_at: nil,
|
|
1502
|
+
checkout_at: nil,
|
|
1503
|
+
customer_service_phone_number: nil,
|
|
1504
|
+
daily_room_rate_amount: nil,
|
|
1505
|
+
delivery: nil,
|
|
1506
|
+
extra_charges: nil,
|
|
1507
|
+
fire_safety_act_compliance: nil,
|
|
1508
|
+
name: nil,
|
|
1509
|
+
no_show: nil,
|
|
1510
|
+
number_of_rooms: nil,
|
|
1511
|
+
passengers: nil,
|
|
1512
|
+
property_phone_number: nil,
|
|
1513
|
+
room_class: nil,
|
|
1514
|
+
room_nights: nil,
|
|
1515
|
+
total_room_tax_amount: nil,
|
|
1516
|
+
total_tax_amount: nil
|
|
1517
|
+
)
|
|
1518
|
+
@address = address
|
|
1519
|
+
@adults = adults
|
|
1520
|
+
@affiliate = affiliate
|
|
1521
|
+
@booking_number = booking_number
|
|
1522
|
+
@category = category
|
|
1523
|
+
@checkin_at = checkin_at
|
|
1524
|
+
@checkout_at = checkout_at
|
|
1525
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1526
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1527
|
+
@delivery = delivery
|
|
1528
|
+
@extra_charges = extra_charges
|
|
1529
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1530
|
+
@name = name
|
|
1531
|
+
@no_show = no_show
|
|
1532
|
+
@number_of_rooms = number_of_rooms
|
|
1533
|
+
@passengers = passengers
|
|
1534
|
+
@property_phone_number = property_phone_number
|
|
1535
|
+
@room_class = room_class
|
|
1536
|
+
@room_nights = room_nights
|
|
1537
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1538
|
+
@total_tax_amount = total_tax_amount
|
|
1539
|
+
end
|
|
1540
|
+
end
|
|
1541
|
+
|
|
1542
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1543
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1544
|
+
# Type of accommodation.
|
|
1545
|
+
attr_accessor :accommodation_type
|
|
1546
|
+
# Bed type.
|
|
1547
|
+
attr_accessor :bed_type
|
|
1548
|
+
# Daily accommodation rate in cents.
|
|
1549
|
+
attr_accessor :daily_rate_amount
|
|
1550
|
+
# Number of nights.
|
|
1551
|
+
attr_accessor :nights
|
|
1552
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1553
|
+
attr_accessor :number_of_rooms
|
|
1554
|
+
# Rate type.
|
|
1555
|
+
attr_accessor :rate_type
|
|
1556
|
+
# Whether smoking is allowed.
|
|
1557
|
+
attr_accessor :smoking_indicator
|
|
1558
|
+
|
|
1559
|
+
def initialize(
|
|
1560
|
+
accommodation_type: nil,
|
|
1561
|
+
bed_type: nil,
|
|
1562
|
+
daily_rate_amount: nil,
|
|
1563
|
+
nights: nil,
|
|
1564
|
+
number_of_rooms: nil,
|
|
1565
|
+
rate_type: nil,
|
|
1566
|
+
smoking_indicator: nil
|
|
1567
|
+
)
|
|
1568
|
+
@accommodation_type = accommodation_type
|
|
1569
|
+
@bed_type = bed_type
|
|
1570
|
+
@daily_rate_amount = daily_rate_amount
|
|
1571
|
+
@nights = nights
|
|
1572
|
+
@number_of_rooms = number_of_rooms
|
|
1573
|
+
@rate_type = rate_type
|
|
1574
|
+
@smoking_indicator = smoking_indicator
|
|
1575
|
+
end
|
|
1576
|
+
end
|
|
132
1577
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
# 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.
|
|
139
|
-
attr_accessor :to_postal_code
|
|
1578
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1579
|
+
# Affiliate partner code.
|
|
1580
|
+
attr_accessor :code
|
|
1581
|
+
# Affiliate partner name.
|
|
1582
|
+
attr_accessor :name
|
|
140
1583
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
1584
|
+
def initialize(code: nil, name: nil)
|
|
1585
|
+
@code = code
|
|
1586
|
+
@name = name
|
|
1587
|
+
end
|
|
145
1588
|
end
|
|
146
|
-
end
|
|
147
1589
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
152
|
-
attr_accessor :total_tax_amount
|
|
1590
|
+
class Guest < ::Stripe::RequestParams
|
|
1591
|
+
# Guest's full name.
|
|
1592
|
+
attr_accessor :name
|
|
153
1593
|
|
|
154
|
-
|
|
155
|
-
|
|
1594
|
+
def initialize(name: nil)
|
|
1595
|
+
@name = name
|
|
1596
|
+
end
|
|
156
1597
|
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
|
-
# Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
|
|
163
|
-
#
|
|
164
|
-
# Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
|
|
165
|
-
#
|
|
166
|
-
# For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks.
|
|
167
|
-
attr_accessor :enforce_arithmetic_validation
|
|
168
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
169
|
-
attr_accessor :line_items
|
|
170
|
-
# Contains information about the shipping portion of the amount.
|
|
171
|
-
attr_accessor :shipping
|
|
172
|
-
# Contains information about the tax portion of the amount.
|
|
173
|
-
attr_accessor :tax
|
|
174
1598
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
1599
|
+
class Host < ::Stripe::RequestParams
|
|
1600
|
+
class Address < ::Stripe::RequestParams
|
|
1601
|
+
# City, district, suburb, town, or village.
|
|
1602
|
+
attr_accessor :city
|
|
1603
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1604
|
+
attr_accessor :country
|
|
1605
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1606
|
+
attr_accessor :line1
|
|
1607
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1608
|
+
attr_accessor :line2
|
|
1609
|
+
# ZIP or postal code.
|
|
1610
|
+
attr_accessor :postal_code
|
|
1611
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1612
|
+
attr_accessor :state
|
|
189
1613
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
1614
|
+
def initialize(
|
|
1615
|
+
city: nil,
|
|
1616
|
+
country: nil,
|
|
1617
|
+
line1: nil,
|
|
1618
|
+
line2: nil,
|
|
1619
|
+
postal_code: nil,
|
|
1620
|
+
state: nil
|
|
1621
|
+
)
|
|
1622
|
+
@city = city
|
|
1623
|
+
@country = country
|
|
1624
|
+
@line1 = line1
|
|
1625
|
+
@line2 = line2
|
|
1626
|
+
@postal_code = postal_code
|
|
1627
|
+
@state = state
|
|
1628
|
+
end
|
|
1629
|
+
end
|
|
1630
|
+
# Address of the host.
|
|
1631
|
+
attr_accessor :address
|
|
1632
|
+
# Host's country of domicile.
|
|
1633
|
+
attr_accessor :country_of_domicile
|
|
1634
|
+
# Reference number for the host.
|
|
1635
|
+
attr_accessor :host_reference
|
|
1636
|
+
# Type of host.
|
|
1637
|
+
attr_accessor :host_type
|
|
1638
|
+
# Name of the lodging property or host.
|
|
1639
|
+
attr_accessor :name
|
|
1640
|
+
# Total number of reservations for the host.
|
|
1641
|
+
attr_accessor :number_of_reservations
|
|
1642
|
+
# Property phone number.
|
|
1643
|
+
attr_accessor :property_phone_number
|
|
1644
|
+
# Host's registration date.
|
|
1645
|
+
attr_accessor :registered_at
|
|
197
1646
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
1647
|
+
def initialize(
|
|
1648
|
+
address: nil,
|
|
1649
|
+
country_of_domicile: nil,
|
|
1650
|
+
host_reference: nil,
|
|
1651
|
+
host_type: nil,
|
|
1652
|
+
name: nil,
|
|
1653
|
+
number_of_reservations: nil,
|
|
1654
|
+
property_phone_number: nil,
|
|
1655
|
+
registered_at: nil
|
|
1656
|
+
)
|
|
1657
|
+
@address = address
|
|
1658
|
+
@country_of_domicile = country_of_domicile
|
|
1659
|
+
@host_reference = host_reference
|
|
1660
|
+
@host_type = host_type
|
|
1661
|
+
@name = name
|
|
1662
|
+
@number_of_reservations = number_of_reservations
|
|
1663
|
+
@property_phone_number = property_phone_number
|
|
1664
|
+
@registered_at = registered_at
|
|
1665
|
+
end
|
|
1666
|
+
end
|
|
203
1667
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
#
|
|
208
|
-
attr_accessor :
|
|
1668
|
+
class Insurance < ::Stripe::RequestParams
|
|
1669
|
+
# Price of the insurance coverage in cents.
|
|
1670
|
+
attr_accessor :amount
|
|
1671
|
+
# Currency of the insurance amount.
|
|
1672
|
+
attr_accessor :currency
|
|
1673
|
+
# Name of the insurance company.
|
|
1674
|
+
attr_accessor :insurance_company_name
|
|
1675
|
+
# Type of insurance coverage.
|
|
1676
|
+
attr_accessor :insurance_type
|
|
209
1677
|
|
|
210
|
-
def initialize(
|
|
211
|
-
|
|
1678
|
+
def initialize(
|
|
1679
|
+
amount: nil,
|
|
1680
|
+
currency: nil,
|
|
1681
|
+
insurance_company_name: nil,
|
|
1682
|
+
insurance_type: nil
|
|
1683
|
+
)
|
|
1684
|
+
@amount = amount
|
|
1685
|
+
@currency = currency
|
|
1686
|
+
@insurance_company_name = insurance_company_name
|
|
1687
|
+
@insurance_type = insurance_type
|
|
212
1688
|
end
|
|
213
1689
|
end
|
|
214
|
-
# Tax arguments for automations
|
|
215
|
-
attr_accessor :tax
|
|
216
1690
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
1691
|
+
class Total < ::Stripe::RequestParams
|
|
1692
|
+
class Discounts < ::Stripe::RequestParams
|
|
1693
|
+
# Corporate client discount code.
|
|
1694
|
+
attr_accessor :corporate_client_code
|
|
1695
|
+
# Coupon code.
|
|
1696
|
+
attr_accessor :coupon
|
|
223
1697
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1698
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1699
|
+
@corporate_client_code = corporate_client_code
|
|
1700
|
+
@coupon = coupon
|
|
1701
|
+
end
|
|
1702
|
+
end
|
|
228
1703
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
1704
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1705
|
+
# Amount of the extra charge in cents.
|
|
1706
|
+
attr_accessor :amount
|
|
1707
|
+
# Type of extra charge.
|
|
1708
|
+
attr_accessor :type
|
|
232
1709
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
1710
|
+
def initialize(amount: nil, type: nil)
|
|
1711
|
+
@amount = amount
|
|
1712
|
+
@type = type
|
|
1713
|
+
end
|
|
1714
|
+
end
|
|
238
1715
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
1716
|
+
class Tax < ::Stripe::RequestParams
|
|
1717
|
+
class Tax < ::Stripe::RequestParams
|
|
1718
|
+
# Tax amount in cents.
|
|
1719
|
+
attr_accessor :amount
|
|
1720
|
+
# Tax rate.
|
|
1721
|
+
attr_accessor :rate
|
|
1722
|
+
# Type of tax applied.
|
|
1723
|
+
attr_accessor :type
|
|
1724
|
+
|
|
1725
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1726
|
+
@amount = amount
|
|
1727
|
+
@rate = rate
|
|
1728
|
+
@type = type
|
|
1729
|
+
end
|
|
1730
|
+
end
|
|
1731
|
+
# Indicates whether the transaction is tax exempt.
|
|
1732
|
+
attr_accessor :tax_exempt_indicator
|
|
1733
|
+
# Tax details.
|
|
1734
|
+
attr_accessor :taxes
|
|
1735
|
+
|
|
1736
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1737
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1738
|
+
@taxes = taxes
|
|
1739
|
+
end
|
|
1740
|
+
end
|
|
1741
|
+
# Total price of the lodging reservation in cents.
|
|
1742
|
+
attr_accessor :amount
|
|
1743
|
+
# Cash advances in cents.
|
|
1744
|
+
attr_accessor :cash_advances
|
|
1745
|
+
# Currency of the total amount.
|
|
1746
|
+
attr_accessor :currency
|
|
1747
|
+
# Discount details for the lodging.
|
|
1748
|
+
attr_accessor :discounts
|
|
1749
|
+
# Additional charges for the lodging.
|
|
1750
|
+
attr_accessor :extra_charges
|
|
1751
|
+
# Prepaid amount in cents.
|
|
1752
|
+
attr_accessor :prepaid_amount
|
|
1753
|
+
# Tax breakdown for the lodging reservation.
|
|
1754
|
+
attr_accessor :tax
|
|
1755
|
+
|
|
1756
|
+
def initialize(
|
|
1757
|
+
amount: nil,
|
|
1758
|
+
cash_advances: nil,
|
|
1759
|
+
currency: nil,
|
|
1760
|
+
discounts: nil,
|
|
1761
|
+
extra_charges: nil,
|
|
1762
|
+
prepaid_amount: nil,
|
|
1763
|
+
tax: nil
|
|
1764
|
+
)
|
|
1765
|
+
@amount = amount
|
|
1766
|
+
@cash_advances = cash_advances
|
|
1767
|
+
@currency = currency
|
|
1768
|
+
@discounts = discounts
|
|
1769
|
+
@extra_charges = extra_charges
|
|
1770
|
+
@prepaid_amount = prepaid_amount
|
|
1771
|
+
@tax = tax
|
|
242
1772
|
end
|
|
243
1773
|
end
|
|
244
|
-
#
|
|
245
|
-
attr_accessor :
|
|
246
|
-
#
|
|
247
|
-
attr_accessor :
|
|
248
|
-
#
|
|
249
|
-
attr_accessor :
|
|
250
|
-
#
|
|
251
|
-
attr_accessor :
|
|
1774
|
+
# Accommodation details for the lodging.
|
|
1775
|
+
attr_accessor :accommodation
|
|
1776
|
+
# Affiliate details if applicable.
|
|
1777
|
+
attr_accessor :affiliate
|
|
1778
|
+
# Booking confirmation number for the lodging.
|
|
1779
|
+
attr_accessor :booking_number
|
|
1780
|
+
# Check-in date.
|
|
1781
|
+
attr_accessor :checkin_at
|
|
1782
|
+
# Check-out date.
|
|
1783
|
+
attr_accessor :checkout_at
|
|
1784
|
+
# Customer service phone number for the lodging company.
|
|
1785
|
+
attr_accessor :customer_service_phone_number
|
|
1786
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1787
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1788
|
+
# List of guests for the lodging.
|
|
1789
|
+
attr_accessor :guests
|
|
1790
|
+
# Host details for the lodging.
|
|
1791
|
+
attr_accessor :host
|
|
1792
|
+
# List of insurances for the lodging.
|
|
1793
|
+
attr_accessor :insurances
|
|
1794
|
+
# Whether the renter is a no-show.
|
|
1795
|
+
attr_accessor :no_show_indicator
|
|
1796
|
+
# Renter ID number for the lodging.
|
|
1797
|
+
attr_accessor :renter_id_number
|
|
1798
|
+
# Renter name for the lodging.
|
|
1799
|
+
attr_accessor :renter_name
|
|
1800
|
+
# Total details for the lodging.
|
|
1801
|
+
attr_accessor :total
|
|
252
1802
|
|
|
253
|
-
def initialize(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
1803
|
+
def initialize(
|
|
1804
|
+
accommodation: nil,
|
|
1805
|
+
affiliate: nil,
|
|
1806
|
+
booking_number: nil,
|
|
1807
|
+
checkin_at: nil,
|
|
1808
|
+
checkout_at: nil,
|
|
1809
|
+
customer_service_phone_number: nil,
|
|
1810
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1811
|
+
guests: nil,
|
|
1812
|
+
host: nil,
|
|
1813
|
+
insurances: nil,
|
|
1814
|
+
no_show_indicator: nil,
|
|
1815
|
+
renter_id_number: nil,
|
|
1816
|
+
renter_name: nil,
|
|
1817
|
+
total: nil
|
|
1818
|
+
)
|
|
1819
|
+
@accommodation = accommodation
|
|
1820
|
+
@affiliate = affiliate
|
|
1821
|
+
@booking_number = booking_number
|
|
1822
|
+
@checkin_at = checkin_at
|
|
1823
|
+
@checkout_at = checkout_at
|
|
1824
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1825
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1826
|
+
@guests = guests
|
|
1827
|
+
@host = host
|
|
1828
|
+
@insurances = insurances
|
|
1829
|
+
@no_show_indicator = no_show_indicator
|
|
1830
|
+
@renter_id_number = renter_id_number
|
|
1831
|
+
@renter_name = renter_name
|
|
1832
|
+
@total = total
|
|
258
1833
|
end
|
|
259
1834
|
end
|
|
260
|
-
# This hash contains details about the customer acceptance of the Mandate.
|
|
261
|
-
attr_accessor :customer_acceptance
|
|
262
1835
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
1836
|
+
class Subscription < ::Stripe::RequestParams
|
|
1837
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1838
|
+
# The name of the affiliate that originated the purchase.
|
|
1839
|
+
attr_accessor :name
|
|
267
1840
|
|
|
268
|
-
|
|
1841
|
+
def initialize(name: nil)
|
|
1842
|
+
@name = name
|
|
1843
|
+
end
|
|
1844
|
+
end
|
|
1845
|
+
|
|
1846
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1847
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1848
|
+
attr_accessor :count
|
|
1849
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1850
|
+
attr_accessor :interval
|
|
1851
|
+
|
|
1852
|
+
def initialize(count: nil, interval: nil)
|
|
1853
|
+
@count = count
|
|
1854
|
+
@interval = interval
|
|
1855
|
+
end
|
|
1856
|
+
end
|
|
1857
|
+
# Affiliate details for this purchase.
|
|
1858
|
+
attr_accessor :affiliate
|
|
1859
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1860
|
+
attr_accessor :auto_renewal
|
|
1861
|
+
# Subscription billing details for this purchase.
|
|
1862
|
+
attr_accessor :billing_interval
|
|
1863
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1864
|
+
attr_accessor :ends_at
|
|
1865
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1866
|
+
attr_accessor :name
|
|
1867
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1868
|
+
attr_accessor :starts_at
|
|
1869
|
+
|
|
1870
|
+
def initialize(
|
|
1871
|
+
affiliate: nil,
|
|
1872
|
+
auto_renewal: nil,
|
|
1873
|
+
billing_interval: nil,
|
|
1874
|
+
ends_at: nil,
|
|
1875
|
+
name: nil,
|
|
1876
|
+
starts_at: nil
|
|
1877
|
+
)
|
|
1878
|
+
@affiliate = affiliate
|
|
1879
|
+
@auto_renewal = auto_renewal
|
|
1880
|
+
@billing_interval = billing_interval
|
|
1881
|
+
@ends_at = ends_at
|
|
1882
|
+
@name = name
|
|
1883
|
+
@starts_at = starts_at
|
|
1884
|
+
end
|
|
1885
|
+
end
|
|
1886
|
+
# Benefit details for this PaymentIntent
|
|
1887
|
+
attr_accessor :benefit
|
|
1888
|
+
# Car rental details for this PaymentIntent.
|
|
1889
|
+
attr_accessor :car_rental
|
|
1890
|
+
# Car rental data for this PaymentIntent.
|
|
1891
|
+
attr_accessor :car_rental_data
|
|
269
1892
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
270
1893
|
#
|
|
271
1894
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
272
1895
|
attr_accessor :customer_reference
|
|
1896
|
+
# Event details for this PaymentIntent
|
|
1897
|
+
attr_accessor :event_details
|
|
1898
|
+
# Flight reservation details for this PaymentIntent
|
|
1899
|
+
attr_accessor :flight
|
|
1900
|
+
# Flight data for this PaymentIntent.
|
|
1901
|
+
attr_accessor :flight_data
|
|
1902
|
+
# Lodging reservation details for this PaymentIntent
|
|
1903
|
+
attr_accessor :lodging
|
|
1904
|
+
# Lodging data for this PaymentIntent.
|
|
1905
|
+
attr_accessor :lodging_data
|
|
273
1906
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
274
1907
|
#
|
|
275
1908
|
# 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`.
|
|
276
1909
|
#
|
|
277
1910
|
# 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.
|
|
278
1911
|
attr_accessor :order_reference
|
|
1912
|
+
# Subscription details for this PaymentIntent
|
|
1913
|
+
attr_accessor :subscription
|
|
279
1914
|
|
|
280
|
-
def initialize(
|
|
1915
|
+
def initialize(
|
|
1916
|
+
benefit: nil,
|
|
1917
|
+
car_rental: nil,
|
|
1918
|
+
car_rental_data: nil,
|
|
1919
|
+
customer_reference: nil,
|
|
1920
|
+
event_details: nil,
|
|
1921
|
+
flight: nil,
|
|
1922
|
+
flight_data: nil,
|
|
1923
|
+
lodging: nil,
|
|
1924
|
+
lodging_data: nil,
|
|
1925
|
+
order_reference: nil,
|
|
1926
|
+
subscription: nil
|
|
1927
|
+
)
|
|
1928
|
+
@benefit = benefit
|
|
1929
|
+
@car_rental = car_rental
|
|
1930
|
+
@car_rental_data = car_rental_data
|
|
281
1931
|
@customer_reference = customer_reference
|
|
1932
|
+
@event_details = event_details
|
|
1933
|
+
@flight = flight
|
|
1934
|
+
@flight_data = flight_data
|
|
1935
|
+
@lodging = lodging
|
|
1936
|
+
@lodging_data = lodging_data
|
|
282
1937
|
@order_reference = order_reference
|
|
1938
|
+
@subscription = subscription
|
|
283
1939
|
end
|
|
284
1940
|
end
|
|
285
1941
|
|
|
@@ -420,8 +2076,18 @@ module Stripe
|
|
|
420
2076
|
end
|
|
421
2077
|
|
|
422
2078
|
class Giropay < ::Stripe::RequestParams; end
|
|
2079
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
423
2080
|
class Grabpay < ::Stripe::RequestParams; end
|
|
424
2081
|
|
|
2082
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2083
|
+
# Bank where the account is held.
|
|
2084
|
+
attr_accessor :bank
|
|
2085
|
+
|
|
2086
|
+
def initialize(bank: nil)
|
|
2087
|
+
@bank = bank
|
|
2088
|
+
end
|
|
2089
|
+
end
|
|
2090
|
+
|
|
425
2091
|
class Ideal < ::Stripe::RequestParams
|
|
426
2092
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
427
2093
|
attr_accessor :bank
|
|
@@ -519,6 +2185,7 @@ module Stripe
|
|
|
519
2185
|
class Payco < ::Stripe::RequestParams; end
|
|
520
2186
|
class Paynow < ::Stripe::RequestParams; end
|
|
521
2187
|
class Paypal < ::Stripe::RequestParams; end
|
|
2188
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
522
2189
|
|
|
523
2190
|
class Payto < ::Stripe::RequestParams
|
|
524
2191
|
# The account number for the bank account.
|
|
@@ -537,6 +2204,7 @@ module Stripe
|
|
|
537
2204
|
|
|
538
2205
|
class Pix < ::Stripe::RequestParams; end
|
|
539
2206
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2207
|
+
class Qris < ::Stripe::RequestParams; end
|
|
540
2208
|
|
|
541
2209
|
class RadarOptions < ::Stripe::RequestParams
|
|
542
2210
|
# 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.
|
|
@@ -547,6 +2215,29 @@ module Stripe
|
|
|
547
2215
|
end
|
|
548
2216
|
end
|
|
549
2217
|
|
|
2218
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2219
|
+
class Dob < ::Stripe::RequestParams
|
|
2220
|
+
# The day of birth, between 1 and 31.
|
|
2221
|
+
attr_accessor :day
|
|
2222
|
+
# The month of birth, between 1 and 12.
|
|
2223
|
+
attr_accessor :month
|
|
2224
|
+
# The four-digit year of birth.
|
|
2225
|
+
attr_accessor :year
|
|
2226
|
+
|
|
2227
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2228
|
+
@day = day
|
|
2229
|
+
@month = month
|
|
2230
|
+
@year = year
|
|
2231
|
+
end
|
|
2232
|
+
end
|
|
2233
|
+
# Customer's date of birth
|
|
2234
|
+
attr_accessor :dob
|
|
2235
|
+
|
|
2236
|
+
def initialize(dob: nil)
|
|
2237
|
+
@dob = dob
|
|
2238
|
+
end
|
|
2239
|
+
end
|
|
2240
|
+
|
|
550
2241
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
551
2242
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
552
2243
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -560,6 +2251,8 @@ module Stripe
|
|
|
560
2251
|
end
|
|
561
2252
|
end
|
|
562
2253
|
|
|
2254
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2255
|
+
|
|
563
2256
|
class Sofort < ::Stripe::RequestParams
|
|
564
2257
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
565
2258
|
attr_accessor :country
|
|
@@ -569,6 +2262,18 @@ module Stripe
|
|
|
569
2262
|
end
|
|
570
2263
|
end
|
|
571
2264
|
|
|
2265
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2266
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2267
|
+
attr_accessor :account
|
|
2268
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
2269
|
+
attr_accessor :source_type
|
|
2270
|
+
|
|
2271
|
+
def initialize(account: nil, source_type: nil)
|
|
2272
|
+
@account = account
|
|
2273
|
+
@source_type = source_type
|
|
2274
|
+
end
|
|
2275
|
+
end
|
|
2276
|
+
|
|
572
2277
|
class Swish < ::Stripe::RequestParams; end
|
|
573
2278
|
class Twint < ::Stripe::RequestParams; end
|
|
574
2279
|
|
|
@@ -641,8 +2346,12 @@ module Stripe
|
|
|
641
2346
|
attr_accessor :fpx
|
|
642
2347
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
643
2348
|
attr_accessor :giropay
|
|
2349
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2350
|
+
attr_accessor :gopay
|
|
644
2351
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
645
2352
|
attr_accessor :grabpay
|
|
2353
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2354
|
+
attr_accessor :id_bank_transfer
|
|
646
2355
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
647
2356
|
attr_accessor :ideal
|
|
648
2357
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -681,14 +2390,20 @@ module Stripe
|
|
|
681
2390
|
attr_accessor :paynow
|
|
682
2391
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
683
2392
|
attr_accessor :paypal
|
|
2393
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2394
|
+
attr_accessor :paypay
|
|
684
2395
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
685
2396
|
attr_accessor :payto
|
|
686
2397
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
687
2398
|
attr_accessor :pix
|
|
688
2399
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
689
2400
|
attr_accessor :promptpay
|
|
2401
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2402
|
+
attr_accessor :qris
|
|
690
2403
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
691
2404
|
attr_accessor :radar_options
|
|
2405
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2406
|
+
attr_accessor :rechnung
|
|
692
2407
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
693
2408
|
attr_accessor :revolut_pay
|
|
694
2409
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -697,8 +2412,12 @@ module Stripe
|
|
|
697
2412
|
attr_accessor :satispay
|
|
698
2413
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
699
2414
|
attr_accessor :sepa_debit
|
|
2415
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2416
|
+
attr_accessor :shopeepay
|
|
700
2417
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
701
2418
|
attr_accessor :sofort
|
|
2419
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2420
|
+
attr_accessor :stripe_balance
|
|
702
2421
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
703
2422
|
attr_accessor :swish
|
|
704
2423
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -733,7 +2452,9 @@ module Stripe
|
|
|
733
2452
|
eps: nil,
|
|
734
2453
|
fpx: nil,
|
|
735
2454
|
giropay: nil,
|
|
2455
|
+
gopay: nil,
|
|
736
2456
|
grabpay: nil,
|
|
2457
|
+
id_bank_transfer: nil,
|
|
737
2458
|
ideal: nil,
|
|
738
2459
|
interac_present: nil,
|
|
739
2460
|
kakao_pay: nil,
|
|
@@ -753,15 +2474,20 @@ module Stripe
|
|
|
753
2474
|
payco: nil,
|
|
754
2475
|
paynow: nil,
|
|
755
2476
|
paypal: nil,
|
|
2477
|
+
paypay: nil,
|
|
756
2478
|
payto: nil,
|
|
757
2479
|
pix: nil,
|
|
758
2480
|
promptpay: nil,
|
|
2481
|
+
qris: nil,
|
|
759
2482
|
radar_options: nil,
|
|
2483
|
+
rechnung: nil,
|
|
760
2484
|
revolut_pay: nil,
|
|
761
2485
|
samsung_pay: nil,
|
|
762
2486
|
satispay: nil,
|
|
763
2487
|
sepa_debit: nil,
|
|
2488
|
+
shopeepay: nil,
|
|
764
2489
|
sofort: nil,
|
|
2490
|
+
stripe_balance: nil,
|
|
765
2491
|
swish: nil,
|
|
766
2492
|
twint: nil,
|
|
767
2493
|
type: nil,
|
|
@@ -789,7 +2515,9 @@ module Stripe
|
|
|
789
2515
|
@eps = eps
|
|
790
2516
|
@fpx = fpx
|
|
791
2517
|
@giropay = giropay
|
|
2518
|
+
@gopay = gopay
|
|
792
2519
|
@grabpay = grabpay
|
|
2520
|
+
@id_bank_transfer = id_bank_transfer
|
|
793
2521
|
@ideal = ideal
|
|
794
2522
|
@interac_present = interac_present
|
|
795
2523
|
@kakao_pay = kakao_pay
|
|
@@ -809,15 +2537,20 @@ module Stripe
|
|
|
809
2537
|
@payco = payco
|
|
810
2538
|
@paynow = paynow
|
|
811
2539
|
@paypal = paypal
|
|
2540
|
+
@paypay = paypay
|
|
812
2541
|
@payto = payto
|
|
813
2542
|
@pix = pix
|
|
814
2543
|
@promptpay = promptpay
|
|
2544
|
+
@qris = qris
|
|
815
2545
|
@radar_options = radar_options
|
|
2546
|
+
@rechnung = rechnung
|
|
816
2547
|
@revolut_pay = revolut_pay
|
|
817
2548
|
@samsung_pay = samsung_pay
|
|
818
2549
|
@satispay = satispay
|
|
819
2550
|
@sepa_debit = sepa_debit
|
|
2551
|
+
@shopeepay = shopeepay
|
|
820
2552
|
@sofort = sofort
|
|
2553
|
+
@stripe_balance = stripe_balance
|
|
821
2554
|
@swish = swish
|
|
822
2555
|
@twint = twint
|
|
823
2556
|
@type = type
|
|
@@ -1188,6 +2921,48 @@ module Stripe
|
|
|
1188
2921
|
end
|
|
1189
2922
|
end
|
|
1190
2923
|
|
|
2924
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
2925
|
+
class Address < ::Stripe::RequestParams
|
|
2926
|
+
# City, district, suburb, town, or village.
|
|
2927
|
+
attr_accessor :city
|
|
2928
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2929
|
+
attr_accessor :country
|
|
2930
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2931
|
+
attr_accessor :line1
|
|
2932
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2933
|
+
attr_accessor :line2
|
|
2934
|
+
# ZIP or postal code.
|
|
2935
|
+
attr_accessor :postal_code
|
|
2936
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2937
|
+
attr_accessor :state
|
|
2938
|
+
|
|
2939
|
+
def initialize(
|
|
2940
|
+
city: nil,
|
|
2941
|
+
country: nil,
|
|
2942
|
+
line1: nil,
|
|
2943
|
+
line2: nil,
|
|
2944
|
+
postal_code: nil,
|
|
2945
|
+
state: nil
|
|
2946
|
+
)
|
|
2947
|
+
@city = city
|
|
2948
|
+
@country = country
|
|
2949
|
+
@line1 = line1
|
|
2950
|
+
@line2 = line2
|
|
2951
|
+
@postal_code = postal_code
|
|
2952
|
+
@state = state
|
|
2953
|
+
end
|
|
2954
|
+
end
|
|
2955
|
+
# Please pass in an address that is within your Stripe user account country
|
|
2956
|
+
attr_accessor :address
|
|
2957
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
2958
|
+
attr_accessor :phone
|
|
2959
|
+
|
|
2960
|
+
def initialize(address: nil, phone: nil)
|
|
2961
|
+
@address = address
|
|
2962
|
+
@phone = phone
|
|
2963
|
+
end
|
|
2964
|
+
end
|
|
2965
|
+
|
|
1191
2966
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1192
2967
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1193
2968
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1282,6 +3057,8 @@ module Stripe
|
|
|
1282
3057
|
attr_accessor :moto
|
|
1283
3058
|
# 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.
|
|
1284
3059
|
attr_accessor :network
|
|
3060
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3061
|
+
attr_accessor :request_decremental_authorization
|
|
1285
3062
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1286
3063
|
attr_accessor :request_extended_authorization
|
|
1287
3064
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1290,6 +3067,8 @@ module Stripe
|
|
|
1290
3067
|
attr_accessor :request_multicapture
|
|
1291
3068
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1292
3069
|
attr_accessor :request_overcapture
|
|
3070
|
+
# Request partial authorization on this PaymentIntent.
|
|
3071
|
+
attr_accessor :request_partial_authorization
|
|
1293
3072
|
# 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.
|
|
1294
3073
|
attr_accessor :request_three_d_secure
|
|
1295
3074
|
# 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).
|
|
@@ -1308,6 +3087,8 @@ module Stripe
|
|
|
1308
3087
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1309
3088
|
# 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.
|
|
1310
3089
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3090
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3091
|
+
attr_accessor :statement_details
|
|
1311
3092
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1312
3093
|
# the authentication details to use for this payment.
|
|
1313
3094
|
attr_accessor :three_d_secure
|
|
@@ -1319,15 +3100,18 @@ module Stripe
|
|
|
1319
3100
|
mandate_options: nil,
|
|
1320
3101
|
moto: nil,
|
|
1321
3102
|
network: nil,
|
|
3103
|
+
request_decremental_authorization: nil,
|
|
1322
3104
|
request_extended_authorization: nil,
|
|
1323
3105
|
request_incremental_authorization: nil,
|
|
1324
3106
|
request_multicapture: nil,
|
|
1325
3107
|
request_overcapture: nil,
|
|
3108
|
+
request_partial_authorization: nil,
|
|
1326
3109
|
request_three_d_secure: nil,
|
|
1327
3110
|
require_cvc_recollection: nil,
|
|
1328
3111
|
setup_future_usage: nil,
|
|
1329
3112
|
statement_descriptor_suffix_kana: nil,
|
|
1330
3113
|
statement_descriptor_suffix_kanji: nil,
|
|
3114
|
+
statement_details: nil,
|
|
1331
3115
|
three_d_secure: nil
|
|
1332
3116
|
)
|
|
1333
3117
|
@capture_method = capture_method
|
|
@@ -1336,15 +3120,18 @@ module Stripe
|
|
|
1336
3120
|
@mandate_options = mandate_options
|
|
1337
3121
|
@moto = moto
|
|
1338
3122
|
@network = network
|
|
3123
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1339
3124
|
@request_extended_authorization = request_extended_authorization
|
|
1340
3125
|
@request_incremental_authorization = request_incremental_authorization
|
|
1341
3126
|
@request_multicapture = request_multicapture
|
|
1342
3127
|
@request_overcapture = request_overcapture
|
|
3128
|
+
@request_partial_authorization = request_partial_authorization
|
|
1343
3129
|
@request_three_d_secure = request_three_d_secure
|
|
1344
3130
|
@require_cvc_recollection = require_cvc_recollection
|
|
1345
3131
|
@setup_future_usage = setup_future_usage
|
|
1346
3132
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1347
3133
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3134
|
+
@statement_details = statement_details
|
|
1348
3135
|
@three_d_secure = three_d_secure
|
|
1349
3136
|
end
|
|
1350
3137
|
end
|
|
@@ -1450,10 +3237,46 @@ module Stripe
|
|
|
1450
3237
|
@type = type
|
|
1451
3238
|
end
|
|
1452
3239
|
end
|
|
1453
|
-
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
1454
|
-
attr_accessor :bank_transfer
|
|
1455
|
-
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
|
1456
|
-
attr_accessor :funding_type
|
|
3240
|
+
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
3241
|
+
attr_accessor :bank_transfer
|
|
3242
|
+
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
|
3243
|
+
attr_accessor :funding_type
|
|
3244
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3245
|
+
#
|
|
3246
|
+
# 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.
|
|
3247
|
+
#
|
|
3248
|
+
# 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.
|
|
3249
|
+
#
|
|
3250
|
+
# 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).
|
|
3251
|
+
#
|
|
3252
|
+
# 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`.
|
|
3253
|
+
attr_accessor :setup_future_usage
|
|
3254
|
+
|
|
3255
|
+
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
3256
|
+
@bank_transfer = bank_transfer
|
|
3257
|
+
@funding_type = funding_type
|
|
3258
|
+
@setup_future_usage = setup_future_usage
|
|
3259
|
+
end
|
|
3260
|
+
end
|
|
3261
|
+
|
|
3262
|
+
class Eps < ::Stripe::RequestParams
|
|
3263
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3264
|
+
#
|
|
3265
|
+
# 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.
|
|
3266
|
+
#
|
|
3267
|
+
# 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.
|
|
3268
|
+
#
|
|
3269
|
+
# 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).
|
|
3270
|
+
#
|
|
3271
|
+
# 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`.
|
|
3272
|
+
attr_accessor :setup_future_usage
|
|
3273
|
+
|
|
3274
|
+
def initialize(setup_future_usage: nil)
|
|
3275
|
+
@setup_future_usage = setup_future_usage
|
|
3276
|
+
end
|
|
3277
|
+
end
|
|
3278
|
+
|
|
3279
|
+
class Fpx < ::Stripe::RequestParams
|
|
1457
3280
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1458
3281
|
#
|
|
1459
3282
|
# 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.
|
|
@@ -1465,14 +3288,12 @@ module Stripe
|
|
|
1465
3288
|
# 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`.
|
|
1466
3289
|
attr_accessor :setup_future_usage
|
|
1467
3290
|
|
|
1468
|
-
def initialize(
|
|
1469
|
-
@bank_transfer = bank_transfer
|
|
1470
|
-
@funding_type = funding_type
|
|
3291
|
+
def initialize(setup_future_usage: nil)
|
|
1471
3292
|
@setup_future_usage = setup_future_usage
|
|
1472
3293
|
end
|
|
1473
3294
|
end
|
|
1474
3295
|
|
|
1475
|
-
class
|
|
3296
|
+
class Giropay < ::Stripe::RequestParams
|
|
1476
3297
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1477
3298
|
#
|
|
1478
3299
|
# 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.
|
|
@@ -1489,7 +3310,7 @@ module Stripe
|
|
|
1489
3310
|
end
|
|
1490
3311
|
end
|
|
1491
3312
|
|
|
1492
|
-
class
|
|
3313
|
+
class Gopay < ::Stripe::RequestParams
|
|
1493
3314
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1494
3315
|
#
|
|
1495
3316
|
# 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.
|
|
@@ -1506,7 +3327,7 @@ module Stripe
|
|
|
1506
3327
|
end
|
|
1507
3328
|
end
|
|
1508
3329
|
|
|
1509
|
-
class
|
|
3330
|
+
class Grabpay < ::Stripe::RequestParams
|
|
1510
3331
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1511
3332
|
#
|
|
1512
3333
|
# 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.
|
|
@@ -1523,7 +3344,11 @@ module Stripe
|
|
|
1523
3344
|
end
|
|
1524
3345
|
end
|
|
1525
3346
|
|
|
1526
|
-
class
|
|
3347
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3348
|
+
# 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.
|
|
3349
|
+
attr_accessor :expires_after
|
|
3350
|
+
# 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.
|
|
3351
|
+
attr_accessor :expires_at
|
|
1527
3352
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1528
3353
|
#
|
|
1529
3354
|
# 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.
|
|
@@ -1535,7 +3360,9 @@ module Stripe
|
|
|
1535
3360
|
# 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`.
|
|
1536
3361
|
attr_accessor :setup_future_usage
|
|
1537
3362
|
|
|
1538
|
-
def initialize(setup_future_usage: nil)
|
|
3363
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3364
|
+
@expires_after = expires_after
|
|
3365
|
+
@expires_at = expires_at
|
|
1539
3366
|
@setup_future_usage = setup_future_usage
|
|
1540
3367
|
end
|
|
1541
3368
|
end
|
|
@@ -1646,6 +3473,939 @@ module Stripe
|
|
|
1646
3473
|
@reference = reference
|
|
1647
3474
|
end
|
|
1648
3475
|
end
|
|
3476
|
+
|
|
3477
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3478
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
3479
|
+
class Arrival < ::Stripe::RequestParams
|
|
3480
|
+
class Address < ::Stripe::RequestParams
|
|
3481
|
+
# The city or town.
|
|
3482
|
+
attr_accessor :city
|
|
3483
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3484
|
+
attr_accessor :country
|
|
3485
|
+
# The postal code formatted according to country.
|
|
3486
|
+
attr_accessor :postal_code
|
|
3487
|
+
# The state, county, province, or region formatted according to country.
|
|
3488
|
+
attr_accessor :region
|
|
3489
|
+
# Line 1 of the street address.
|
|
3490
|
+
attr_accessor :street_address
|
|
3491
|
+
# Line 2 of the street address.
|
|
3492
|
+
attr_accessor :street_address2
|
|
3493
|
+
|
|
3494
|
+
def initialize(
|
|
3495
|
+
city: nil,
|
|
3496
|
+
country: nil,
|
|
3497
|
+
postal_code: nil,
|
|
3498
|
+
region: nil,
|
|
3499
|
+
street_address: nil,
|
|
3500
|
+
street_address2: nil
|
|
3501
|
+
)
|
|
3502
|
+
@city = city
|
|
3503
|
+
@country = country
|
|
3504
|
+
@postal_code = postal_code
|
|
3505
|
+
@region = region
|
|
3506
|
+
@street_address = street_address
|
|
3507
|
+
@street_address2 = street_address2
|
|
3508
|
+
end
|
|
3509
|
+
end
|
|
3510
|
+
# Address of the arrival location.
|
|
3511
|
+
attr_accessor :address
|
|
3512
|
+
# Identifier name or reference for the arrival location.
|
|
3513
|
+
attr_accessor :arrival_location
|
|
3514
|
+
|
|
3515
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3516
|
+
@address = address
|
|
3517
|
+
@arrival_location = arrival_location
|
|
3518
|
+
end
|
|
3519
|
+
end
|
|
3520
|
+
|
|
3521
|
+
class Departure < ::Stripe::RequestParams
|
|
3522
|
+
class Address < ::Stripe::RequestParams
|
|
3523
|
+
# The city or town.
|
|
3524
|
+
attr_accessor :city
|
|
3525
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3526
|
+
attr_accessor :country
|
|
3527
|
+
# The postal code formatted according to country.
|
|
3528
|
+
attr_accessor :postal_code
|
|
3529
|
+
# The state, county, province, or region formatted according to country.
|
|
3530
|
+
attr_accessor :region
|
|
3531
|
+
# Line 1 of the street address.
|
|
3532
|
+
attr_accessor :street_address
|
|
3533
|
+
# Line 2 of the street address.
|
|
3534
|
+
attr_accessor :street_address2
|
|
3535
|
+
|
|
3536
|
+
def initialize(
|
|
3537
|
+
city: nil,
|
|
3538
|
+
country: nil,
|
|
3539
|
+
postal_code: nil,
|
|
3540
|
+
region: nil,
|
|
3541
|
+
street_address: nil,
|
|
3542
|
+
street_address2: nil
|
|
3543
|
+
)
|
|
3544
|
+
@city = city
|
|
3545
|
+
@country = country
|
|
3546
|
+
@postal_code = postal_code
|
|
3547
|
+
@region = region
|
|
3548
|
+
@street_address = street_address
|
|
3549
|
+
@street_address2 = street_address2
|
|
3550
|
+
end
|
|
3551
|
+
end
|
|
3552
|
+
# Address of the departure location.
|
|
3553
|
+
attr_accessor :address
|
|
3554
|
+
# Timestamp of departure.
|
|
3555
|
+
attr_accessor :departs_at
|
|
3556
|
+
# Identifier name or reference for the origin location.
|
|
3557
|
+
attr_accessor :departure_location
|
|
3558
|
+
|
|
3559
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3560
|
+
@address = address
|
|
3561
|
+
@departs_at = departs_at
|
|
3562
|
+
@departure_location = departure_location
|
|
3563
|
+
end
|
|
3564
|
+
end
|
|
3565
|
+
|
|
3566
|
+
class Insurance < ::Stripe::RequestParams
|
|
3567
|
+
# Insurance currency.
|
|
3568
|
+
attr_accessor :currency
|
|
3569
|
+
# Name of the company providing the insurance.
|
|
3570
|
+
attr_accessor :insurance_company_name
|
|
3571
|
+
# Type of insurance.
|
|
3572
|
+
attr_accessor :insurance_type
|
|
3573
|
+
# Price of insurance in cents.
|
|
3574
|
+
attr_accessor :price
|
|
3575
|
+
|
|
3576
|
+
def initialize(
|
|
3577
|
+
currency: nil,
|
|
3578
|
+
insurance_company_name: nil,
|
|
3579
|
+
insurance_type: nil,
|
|
3580
|
+
price: nil
|
|
3581
|
+
)
|
|
3582
|
+
@currency = currency
|
|
3583
|
+
@insurance_company_name = insurance_company_name
|
|
3584
|
+
@insurance_type = insurance_type
|
|
3585
|
+
@price = price
|
|
3586
|
+
end
|
|
3587
|
+
end
|
|
3588
|
+
|
|
3589
|
+
class Passenger < ::Stripe::RequestParams
|
|
3590
|
+
# The family name of the person.
|
|
3591
|
+
attr_accessor :family_name
|
|
3592
|
+
# The given name of the person.
|
|
3593
|
+
attr_accessor :given_name
|
|
3594
|
+
|
|
3595
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3596
|
+
@family_name = family_name
|
|
3597
|
+
@given_name = given_name
|
|
3598
|
+
end
|
|
3599
|
+
end
|
|
3600
|
+
# Name of associated or partner company for the service.
|
|
3601
|
+
attr_accessor :affiliate_name
|
|
3602
|
+
# Arrival details.
|
|
3603
|
+
attr_accessor :arrival
|
|
3604
|
+
# Name of transportation company.
|
|
3605
|
+
attr_accessor :carrier_name
|
|
3606
|
+
# Currency.
|
|
3607
|
+
attr_accessor :currency
|
|
3608
|
+
# Departure details.
|
|
3609
|
+
attr_accessor :departure
|
|
3610
|
+
# List of insurances for this reservation.
|
|
3611
|
+
attr_accessor :insurances
|
|
3612
|
+
# List of passengers that this reservation applies to.
|
|
3613
|
+
attr_accessor :passengers
|
|
3614
|
+
# Price in cents.
|
|
3615
|
+
attr_accessor :price
|
|
3616
|
+
# Ticket class.
|
|
3617
|
+
attr_accessor :ticket_class
|
|
3618
|
+
|
|
3619
|
+
def initialize(
|
|
3620
|
+
affiliate_name: nil,
|
|
3621
|
+
arrival: nil,
|
|
3622
|
+
carrier_name: nil,
|
|
3623
|
+
currency: nil,
|
|
3624
|
+
departure: nil,
|
|
3625
|
+
insurances: nil,
|
|
3626
|
+
passengers: nil,
|
|
3627
|
+
price: nil,
|
|
3628
|
+
ticket_class: nil
|
|
3629
|
+
)
|
|
3630
|
+
@affiliate_name = affiliate_name
|
|
3631
|
+
@arrival = arrival
|
|
3632
|
+
@carrier_name = carrier_name
|
|
3633
|
+
@currency = currency
|
|
3634
|
+
@departure = departure
|
|
3635
|
+
@insurances = insurances
|
|
3636
|
+
@passengers = passengers
|
|
3637
|
+
@price = price
|
|
3638
|
+
@ticket_class = ticket_class
|
|
3639
|
+
end
|
|
3640
|
+
end
|
|
3641
|
+
|
|
3642
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
3643
|
+
class Address < ::Stripe::RequestParams
|
|
3644
|
+
# The city or town.
|
|
3645
|
+
attr_accessor :city
|
|
3646
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3647
|
+
attr_accessor :country
|
|
3648
|
+
# The postal code formatted according to country.
|
|
3649
|
+
attr_accessor :postal_code
|
|
3650
|
+
# The state, county, province, or region formatted according to country.
|
|
3651
|
+
attr_accessor :region
|
|
3652
|
+
# Line 1 of the street address.
|
|
3653
|
+
attr_accessor :street_address
|
|
3654
|
+
# Line 2 of the street address.
|
|
3655
|
+
attr_accessor :street_address2
|
|
3656
|
+
|
|
3657
|
+
def initialize(
|
|
3658
|
+
city: nil,
|
|
3659
|
+
country: nil,
|
|
3660
|
+
postal_code: nil,
|
|
3661
|
+
region: nil,
|
|
3662
|
+
street_address: nil,
|
|
3663
|
+
street_address2: nil
|
|
3664
|
+
)
|
|
3665
|
+
@city = city
|
|
3666
|
+
@country = country
|
|
3667
|
+
@postal_code = postal_code
|
|
3668
|
+
@region = region
|
|
3669
|
+
@street_address = street_address
|
|
3670
|
+
@street_address2 = street_address2
|
|
3671
|
+
end
|
|
3672
|
+
end
|
|
3673
|
+
|
|
3674
|
+
class Insurance < ::Stripe::RequestParams
|
|
3675
|
+
# Insurance currency.
|
|
3676
|
+
attr_accessor :currency
|
|
3677
|
+
# Name of the company providing the insurance.
|
|
3678
|
+
attr_accessor :insurance_company_name
|
|
3679
|
+
# Type of insurance.
|
|
3680
|
+
attr_accessor :insurance_type
|
|
3681
|
+
# Price of insurance in cents.
|
|
3682
|
+
attr_accessor :price
|
|
3683
|
+
|
|
3684
|
+
def initialize(
|
|
3685
|
+
currency: nil,
|
|
3686
|
+
insurance_company_name: nil,
|
|
3687
|
+
insurance_type: nil,
|
|
3688
|
+
price: nil
|
|
3689
|
+
)
|
|
3690
|
+
@currency = currency
|
|
3691
|
+
@insurance_company_name = insurance_company_name
|
|
3692
|
+
@insurance_type = insurance_type
|
|
3693
|
+
@price = price
|
|
3694
|
+
end
|
|
3695
|
+
end
|
|
3696
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3697
|
+
attr_accessor :access_controlled_venue
|
|
3698
|
+
# Address of the event.
|
|
3699
|
+
attr_accessor :address
|
|
3700
|
+
# Name of associated or partner company for the service.
|
|
3701
|
+
attr_accessor :affiliate_name
|
|
3702
|
+
# End timestamp of the event.
|
|
3703
|
+
attr_accessor :ends_at
|
|
3704
|
+
# Company selling the ticket.
|
|
3705
|
+
attr_accessor :event_company_name
|
|
3706
|
+
# Name of the event.
|
|
3707
|
+
attr_accessor :event_name
|
|
3708
|
+
# Type of the event.
|
|
3709
|
+
attr_accessor :event_type
|
|
3710
|
+
# List of insurances for this event.
|
|
3711
|
+
attr_accessor :insurances
|
|
3712
|
+
# Start timestamp of the event.
|
|
3713
|
+
attr_accessor :starts_at
|
|
3714
|
+
# Name of the venue where the event takes place.
|
|
3715
|
+
attr_accessor :venue_name
|
|
3716
|
+
|
|
3717
|
+
def initialize(
|
|
3718
|
+
access_controlled_venue: nil,
|
|
3719
|
+
address: nil,
|
|
3720
|
+
affiliate_name: nil,
|
|
3721
|
+
ends_at: nil,
|
|
3722
|
+
event_company_name: nil,
|
|
3723
|
+
event_name: nil,
|
|
3724
|
+
event_type: nil,
|
|
3725
|
+
insurances: nil,
|
|
3726
|
+
starts_at: nil,
|
|
3727
|
+
venue_name: nil
|
|
3728
|
+
)
|
|
3729
|
+
@access_controlled_venue = access_controlled_venue
|
|
3730
|
+
@address = address
|
|
3731
|
+
@affiliate_name = affiliate_name
|
|
3732
|
+
@ends_at = ends_at
|
|
3733
|
+
@event_company_name = event_company_name
|
|
3734
|
+
@event_name = event_name
|
|
3735
|
+
@event_type = event_type
|
|
3736
|
+
@insurances = insurances
|
|
3737
|
+
@starts_at = starts_at
|
|
3738
|
+
@venue_name = venue_name
|
|
3739
|
+
end
|
|
3740
|
+
end
|
|
3741
|
+
|
|
3742
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3743
|
+
class Arrival < ::Stripe::RequestParams
|
|
3744
|
+
class Address < ::Stripe::RequestParams
|
|
3745
|
+
# The city or town.
|
|
3746
|
+
attr_accessor :city
|
|
3747
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3748
|
+
attr_accessor :country
|
|
3749
|
+
# The postal code formatted according to country.
|
|
3750
|
+
attr_accessor :postal_code
|
|
3751
|
+
# The state, county, province, or region formatted according to country.
|
|
3752
|
+
attr_accessor :region
|
|
3753
|
+
# Line 1 of the street address.
|
|
3754
|
+
attr_accessor :street_address
|
|
3755
|
+
# Line 2 of the street address.
|
|
3756
|
+
attr_accessor :street_address2
|
|
3757
|
+
|
|
3758
|
+
def initialize(
|
|
3759
|
+
city: nil,
|
|
3760
|
+
country: nil,
|
|
3761
|
+
postal_code: nil,
|
|
3762
|
+
region: nil,
|
|
3763
|
+
street_address: nil,
|
|
3764
|
+
street_address2: nil
|
|
3765
|
+
)
|
|
3766
|
+
@city = city
|
|
3767
|
+
@country = country
|
|
3768
|
+
@postal_code = postal_code
|
|
3769
|
+
@region = region
|
|
3770
|
+
@street_address = street_address
|
|
3771
|
+
@street_address2 = street_address2
|
|
3772
|
+
end
|
|
3773
|
+
end
|
|
3774
|
+
# Address of the arrival location.
|
|
3775
|
+
attr_accessor :address
|
|
3776
|
+
# Identifier name or reference for the arrival location.
|
|
3777
|
+
attr_accessor :arrival_location
|
|
3778
|
+
|
|
3779
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3780
|
+
@address = address
|
|
3781
|
+
@arrival_location = arrival_location
|
|
3782
|
+
end
|
|
3783
|
+
end
|
|
3784
|
+
|
|
3785
|
+
class Departure < ::Stripe::RequestParams
|
|
3786
|
+
class Address < ::Stripe::RequestParams
|
|
3787
|
+
# The city or town.
|
|
3788
|
+
attr_accessor :city
|
|
3789
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3790
|
+
attr_accessor :country
|
|
3791
|
+
# The postal code formatted according to country.
|
|
3792
|
+
attr_accessor :postal_code
|
|
3793
|
+
# The state, county, province, or region formatted according to country.
|
|
3794
|
+
attr_accessor :region
|
|
3795
|
+
# Line 1 of the street address.
|
|
3796
|
+
attr_accessor :street_address
|
|
3797
|
+
# Line 2 of the street address.
|
|
3798
|
+
attr_accessor :street_address2
|
|
3799
|
+
|
|
3800
|
+
def initialize(
|
|
3801
|
+
city: nil,
|
|
3802
|
+
country: nil,
|
|
3803
|
+
postal_code: nil,
|
|
3804
|
+
region: nil,
|
|
3805
|
+
street_address: nil,
|
|
3806
|
+
street_address2: nil
|
|
3807
|
+
)
|
|
3808
|
+
@city = city
|
|
3809
|
+
@country = country
|
|
3810
|
+
@postal_code = postal_code
|
|
3811
|
+
@region = region
|
|
3812
|
+
@street_address = street_address
|
|
3813
|
+
@street_address2 = street_address2
|
|
3814
|
+
end
|
|
3815
|
+
end
|
|
3816
|
+
# Address of the departure location.
|
|
3817
|
+
attr_accessor :address
|
|
3818
|
+
# Timestamp of departure.
|
|
3819
|
+
attr_accessor :departs_at
|
|
3820
|
+
# Identifier name or reference for the origin location.
|
|
3821
|
+
attr_accessor :departure_location
|
|
3822
|
+
|
|
3823
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3824
|
+
@address = address
|
|
3825
|
+
@departs_at = departs_at
|
|
3826
|
+
@departure_location = departure_location
|
|
3827
|
+
end
|
|
3828
|
+
end
|
|
3829
|
+
|
|
3830
|
+
class Insurance < ::Stripe::RequestParams
|
|
3831
|
+
# Insurance currency.
|
|
3832
|
+
attr_accessor :currency
|
|
3833
|
+
# Name of the company providing the insurance.
|
|
3834
|
+
attr_accessor :insurance_company_name
|
|
3835
|
+
# Type of insurance.
|
|
3836
|
+
attr_accessor :insurance_type
|
|
3837
|
+
# Price of insurance in cents.
|
|
3838
|
+
attr_accessor :price
|
|
3839
|
+
|
|
3840
|
+
def initialize(
|
|
3841
|
+
currency: nil,
|
|
3842
|
+
insurance_company_name: nil,
|
|
3843
|
+
insurance_type: nil,
|
|
3844
|
+
price: nil
|
|
3845
|
+
)
|
|
3846
|
+
@currency = currency
|
|
3847
|
+
@insurance_company_name = insurance_company_name
|
|
3848
|
+
@insurance_type = insurance_type
|
|
3849
|
+
@price = price
|
|
3850
|
+
end
|
|
3851
|
+
end
|
|
3852
|
+
|
|
3853
|
+
class Passenger < ::Stripe::RequestParams
|
|
3854
|
+
# The family name of the person.
|
|
3855
|
+
attr_accessor :family_name
|
|
3856
|
+
# The given name of the person.
|
|
3857
|
+
attr_accessor :given_name
|
|
3858
|
+
|
|
3859
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3860
|
+
@family_name = family_name
|
|
3861
|
+
@given_name = given_name
|
|
3862
|
+
end
|
|
3863
|
+
end
|
|
3864
|
+
# Name of associated or partner company for the service.
|
|
3865
|
+
attr_accessor :affiliate_name
|
|
3866
|
+
# Arrival details.
|
|
3867
|
+
attr_accessor :arrival
|
|
3868
|
+
# Name of transportation company.
|
|
3869
|
+
attr_accessor :carrier_name
|
|
3870
|
+
# Currency.
|
|
3871
|
+
attr_accessor :currency
|
|
3872
|
+
# Departure details.
|
|
3873
|
+
attr_accessor :departure
|
|
3874
|
+
# List of insurances for this reservation.
|
|
3875
|
+
attr_accessor :insurances
|
|
3876
|
+
# List of passengers that this reservation applies to.
|
|
3877
|
+
attr_accessor :passengers
|
|
3878
|
+
# Price in cents.
|
|
3879
|
+
attr_accessor :price
|
|
3880
|
+
# Ticket class.
|
|
3881
|
+
attr_accessor :ticket_class
|
|
3882
|
+
|
|
3883
|
+
def initialize(
|
|
3884
|
+
affiliate_name: nil,
|
|
3885
|
+
arrival: nil,
|
|
3886
|
+
carrier_name: nil,
|
|
3887
|
+
currency: nil,
|
|
3888
|
+
departure: nil,
|
|
3889
|
+
insurances: nil,
|
|
3890
|
+
passengers: nil,
|
|
3891
|
+
price: nil,
|
|
3892
|
+
ticket_class: nil
|
|
3893
|
+
)
|
|
3894
|
+
@affiliate_name = affiliate_name
|
|
3895
|
+
@arrival = arrival
|
|
3896
|
+
@carrier_name = carrier_name
|
|
3897
|
+
@currency = currency
|
|
3898
|
+
@departure = departure
|
|
3899
|
+
@insurances = insurances
|
|
3900
|
+
@passengers = passengers
|
|
3901
|
+
@price = price
|
|
3902
|
+
@ticket_class = ticket_class
|
|
3903
|
+
end
|
|
3904
|
+
end
|
|
3905
|
+
|
|
3906
|
+
class Insurance < ::Stripe::RequestParams
|
|
3907
|
+
# Insurance currency.
|
|
3908
|
+
attr_accessor :currency
|
|
3909
|
+
# Name of the company providing the insurance.
|
|
3910
|
+
attr_accessor :insurance_company_name
|
|
3911
|
+
# Type of insurance
|
|
3912
|
+
attr_accessor :insurance_type
|
|
3913
|
+
# Price of insurance in cents.
|
|
3914
|
+
attr_accessor :price
|
|
3915
|
+
|
|
3916
|
+
def initialize(
|
|
3917
|
+
currency: nil,
|
|
3918
|
+
insurance_company_name: nil,
|
|
3919
|
+
insurance_type: nil,
|
|
3920
|
+
price: nil
|
|
3921
|
+
)
|
|
3922
|
+
@currency = currency
|
|
3923
|
+
@insurance_company_name = insurance_company_name
|
|
3924
|
+
@insurance_type = insurance_type
|
|
3925
|
+
@price = price
|
|
3926
|
+
end
|
|
3927
|
+
end
|
|
3928
|
+
|
|
3929
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3930
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3931
|
+
# The city or town.
|
|
3932
|
+
attr_accessor :city
|
|
3933
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3934
|
+
attr_accessor :country
|
|
3935
|
+
# The postal code formatted according to country.
|
|
3936
|
+
attr_accessor :postal_code
|
|
3937
|
+
# The state, county, province, or region formatted according to country.
|
|
3938
|
+
attr_accessor :region
|
|
3939
|
+
# Line 1 of the street address.
|
|
3940
|
+
attr_accessor :street_address
|
|
3941
|
+
# Line 2 of the street address.
|
|
3942
|
+
attr_accessor :street_address2
|
|
3943
|
+
|
|
3944
|
+
def initialize(
|
|
3945
|
+
city: nil,
|
|
3946
|
+
country: nil,
|
|
3947
|
+
postal_code: nil,
|
|
3948
|
+
region: nil,
|
|
3949
|
+
street_address: nil,
|
|
3950
|
+
street_address2: nil
|
|
3951
|
+
)
|
|
3952
|
+
@city = city
|
|
3953
|
+
@country = country
|
|
3954
|
+
@postal_code = postal_code
|
|
3955
|
+
@region = region
|
|
3956
|
+
@street_address = street_address
|
|
3957
|
+
@street_address2 = street_address2
|
|
3958
|
+
end
|
|
3959
|
+
end
|
|
3960
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3961
|
+
attr_accessor :line_item_references
|
|
3962
|
+
# The address of the selling or delivering merchant.
|
|
3963
|
+
attr_accessor :marketplace_seller_address
|
|
3964
|
+
# The name of the marketplace seller.
|
|
3965
|
+
attr_accessor :marketplace_seller_name
|
|
3966
|
+
# The unique identifier for the marketplace seller.
|
|
3967
|
+
attr_accessor :marketplace_seller_reference
|
|
3968
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
3969
|
+
attr_accessor :number_of_transactions
|
|
3970
|
+
# The category of the product.
|
|
3971
|
+
attr_accessor :product_category
|
|
3972
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
3973
|
+
attr_accessor :seller_last_login_at
|
|
3974
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
3975
|
+
attr_accessor :seller_rating
|
|
3976
|
+
# The date when the seller's account with the marketplace was created.
|
|
3977
|
+
attr_accessor :seller_registered_at
|
|
3978
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
3979
|
+
attr_accessor :seller_updated_at
|
|
3980
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
3981
|
+
attr_accessor :shipping_references
|
|
3982
|
+
# 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.
|
|
3983
|
+
attr_accessor :volume_of_transactions
|
|
3984
|
+
|
|
3985
|
+
def initialize(
|
|
3986
|
+
line_item_references: nil,
|
|
3987
|
+
marketplace_seller_address: nil,
|
|
3988
|
+
marketplace_seller_name: nil,
|
|
3989
|
+
marketplace_seller_reference: nil,
|
|
3990
|
+
number_of_transactions: nil,
|
|
3991
|
+
product_category: nil,
|
|
3992
|
+
seller_last_login_at: nil,
|
|
3993
|
+
seller_rating: nil,
|
|
3994
|
+
seller_registered_at: nil,
|
|
3995
|
+
seller_updated_at: nil,
|
|
3996
|
+
shipping_references: nil,
|
|
3997
|
+
volume_of_transactions: nil
|
|
3998
|
+
)
|
|
3999
|
+
@line_item_references = line_item_references
|
|
4000
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
4001
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
4002
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
4003
|
+
@number_of_transactions = number_of_transactions
|
|
4004
|
+
@product_category = product_category
|
|
4005
|
+
@seller_last_login_at = seller_last_login_at
|
|
4006
|
+
@seller_rating = seller_rating
|
|
4007
|
+
@seller_registered_at = seller_registered_at
|
|
4008
|
+
@seller_updated_at = seller_updated_at
|
|
4009
|
+
@shipping_references = shipping_references
|
|
4010
|
+
@volume_of_transactions = volume_of_transactions
|
|
4011
|
+
end
|
|
4012
|
+
end
|
|
4013
|
+
|
|
4014
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4015
|
+
class Arrival < ::Stripe::RequestParams
|
|
4016
|
+
class Address < ::Stripe::RequestParams
|
|
4017
|
+
# The city or town.
|
|
4018
|
+
attr_accessor :city
|
|
4019
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4020
|
+
attr_accessor :country
|
|
4021
|
+
# The postal code formatted according to country.
|
|
4022
|
+
attr_accessor :postal_code
|
|
4023
|
+
# The state, county, province, or region formatted according to country.
|
|
4024
|
+
attr_accessor :region
|
|
4025
|
+
# Line 1 of the street address.
|
|
4026
|
+
attr_accessor :street_address
|
|
4027
|
+
# Line 2 of the street address.
|
|
4028
|
+
attr_accessor :street_address2
|
|
4029
|
+
|
|
4030
|
+
def initialize(
|
|
4031
|
+
city: nil,
|
|
4032
|
+
country: nil,
|
|
4033
|
+
postal_code: nil,
|
|
4034
|
+
region: nil,
|
|
4035
|
+
street_address: nil,
|
|
4036
|
+
street_address2: nil
|
|
4037
|
+
)
|
|
4038
|
+
@city = city
|
|
4039
|
+
@country = country
|
|
4040
|
+
@postal_code = postal_code
|
|
4041
|
+
@region = region
|
|
4042
|
+
@street_address = street_address
|
|
4043
|
+
@street_address2 = street_address2
|
|
4044
|
+
end
|
|
4045
|
+
end
|
|
4046
|
+
# Address of the arrival location.
|
|
4047
|
+
attr_accessor :address
|
|
4048
|
+
# Identifier name or reference for the arrival location.
|
|
4049
|
+
attr_accessor :arrival_location
|
|
4050
|
+
|
|
4051
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4052
|
+
@address = address
|
|
4053
|
+
@arrival_location = arrival_location
|
|
4054
|
+
end
|
|
4055
|
+
end
|
|
4056
|
+
|
|
4057
|
+
class Departure < ::Stripe::RequestParams
|
|
4058
|
+
class Address < ::Stripe::RequestParams
|
|
4059
|
+
# The city or town.
|
|
4060
|
+
attr_accessor :city
|
|
4061
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4062
|
+
attr_accessor :country
|
|
4063
|
+
# The postal code formatted according to country.
|
|
4064
|
+
attr_accessor :postal_code
|
|
4065
|
+
# The state, county, province, or region formatted according to country.
|
|
4066
|
+
attr_accessor :region
|
|
4067
|
+
# Line 1 of the street address.
|
|
4068
|
+
attr_accessor :street_address
|
|
4069
|
+
# Line 2 of the street address.
|
|
4070
|
+
attr_accessor :street_address2
|
|
4071
|
+
|
|
4072
|
+
def initialize(
|
|
4073
|
+
city: nil,
|
|
4074
|
+
country: nil,
|
|
4075
|
+
postal_code: nil,
|
|
4076
|
+
region: nil,
|
|
4077
|
+
street_address: nil,
|
|
4078
|
+
street_address2: nil
|
|
4079
|
+
)
|
|
4080
|
+
@city = city
|
|
4081
|
+
@country = country
|
|
4082
|
+
@postal_code = postal_code
|
|
4083
|
+
@region = region
|
|
4084
|
+
@street_address = street_address
|
|
4085
|
+
@street_address2 = street_address2
|
|
4086
|
+
end
|
|
4087
|
+
end
|
|
4088
|
+
# Address of the departure location.
|
|
4089
|
+
attr_accessor :address
|
|
4090
|
+
# Timestamp of departure.
|
|
4091
|
+
attr_accessor :departs_at
|
|
4092
|
+
# Identifier name or reference for the origin location.
|
|
4093
|
+
attr_accessor :departure_location
|
|
4094
|
+
|
|
4095
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4096
|
+
@address = address
|
|
4097
|
+
@departs_at = departs_at
|
|
4098
|
+
@departure_location = departure_location
|
|
4099
|
+
end
|
|
4100
|
+
end
|
|
4101
|
+
|
|
4102
|
+
class Insurance < ::Stripe::RequestParams
|
|
4103
|
+
# Insurance currency.
|
|
4104
|
+
attr_accessor :currency
|
|
4105
|
+
# Name of the company providing the insurance.
|
|
4106
|
+
attr_accessor :insurance_company_name
|
|
4107
|
+
# Type of insurance.
|
|
4108
|
+
attr_accessor :insurance_type
|
|
4109
|
+
# Price of insurance in cents.
|
|
4110
|
+
attr_accessor :price
|
|
4111
|
+
|
|
4112
|
+
def initialize(
|
|
4113
|
+
currency: nil,
|
|
4114
|
+
insurance_company_name: nil,
|
|
4115
|
+
insurance_type: nil,
|
|
4116
|
+
price: nil
|
|
4117
|
+
)
|
|
4118
|
+
@currency = currency
|
|
4119
|
+
@insurance_company_name = insurance_company_name
|
|
4120
|
+
@insurance_type = insurance_type
|
|
4121
|
+
@price = price
|
|
4122
|
+
end
|
|
4123
|
+
end
|
|
4124
|
+
|
|
4125
|
+
class Passenger < ::Stripe::RequestParams
|
|
4126
|
+
# The family name of the person.
|
|
4127
|
+
attr_accessor :family_name
|
|
4128
|
+
# The given name of the person.
|
|
4129
|
+
attr_accessor :given_name
|
|
4130
|
+
|
|
4131
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4132
|
+
@family_name = family_name
|
|
4133
|
+
@given_name = given_name
|
|
4134
|
+
end
|
|
4135
|
+
end
|
|
4136
|
+
# Name of associated or partner company for the service.
|
|
4137
|
+
attr_accessor :affiliate_name
|
|
4138
|
+
# Arrival details.
|
|
4139
|
+
attr_accessor :arrival
|
|
4140
|
+
# Name of transportation company.
|
|
4141
|
+
attr_accessor :carrier_name
|
|
4142
|
+
# Currency.
|
|
4143
|
+
attr_accessor :currency
|
|
4144
|
+
# Departure details.
|
|
4145
|
+
attr_accessor :departure
|
|
4146
|
+
# List of insurances for this reservation.
|
|
4147
|
+
attr_accessor :insurances
|
|
4148
|
+
# List of passengers that this reservation applies to.
|
|
4149
|
+
attr_accessor :passengers
|
|
4150
|
+
# Price in cents.
|
|
4151
|
+
attr_accessor :price
|
|
4152
|
+
# Ticket class.
|
|
4153
|
+
attr_accessor :ticket_class
|
|
4154
|
+
|
|
4155
|
+
def initialize(
|
|
4156
|
+
affiliate_name: nil,
|
|
4157
|
+
arrival: nil,
|
|
4158
|
+
carrier_name: nil,
|
|
4159
|
+
currency: nil,
|
|
4160
|
+
departure: nil,
|
|
4161
|
+
insurances: nil,
|
|
4162
|
+
passengers: nil,
|
|
4163
|
+
price: nil,
|
|
4164
|
+
ticket_class: nil
|
|
4165
|
+
)
|
|
4166
|
+
@affiliate_name = affiliate_name
|
|
4167
|
+
@arrival = arrival
|
|
4168
|
+
@carrier_name = carrier_name
|
|
4169
|
+
@currency = currency
|
|
4170
|
+
@departure = departure
|
|
4171
|
+
@insurances = insurances
|
|
4172
|
+
@passengers = passengers
|
|
4173
|
+
@price = price
|
|
4174
|
+
@ticket_class = ticket_class
|
|
4175
|
+
end
|
|
4176
|
+
end
|
|
4177
|
+
|
|
4178
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4179
|
+
class Arrival < ::Stripe::RequestParams
|
|
4180
|
+
class Address < ::Stripe::RequestParams
|
|
4181
|
+
# The city or town.
|
|
4182
|
+
attr_accessor :city
|
|
4183
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4184
|
+
attr_accessor :country
|
|
4185
|
+
# The postal code formatted according to country.
|
|
4186
|
+
attr_accessor :postal_code
|
|
4187
|
+
# The state, county, province, or region formatted according to country.
|
|
4188
|
+
attr_accessor :region
|
|
4189
|
+
# Line 1 of the street address.
|
|
4190
|
+
attr_accessor :street_address
|
|
4191
|
+
# Line 2 of the street address.
|
|
4192
|
+
attr_accessor :street_address2
|
|
4193
|
+
|
|
4194
|
+
def initialize(
|
|
4195
|
+
city: nil,
|
|
4196
|
+
country: nil,
|
|
4197
|
+
postal_code: nil,
|
|
4198
|
+
region: nil,
|
|
4199
|
+
street_address: nil,
|
|
4200
|
+
street_address2: nil
|
|
4201
|
+
)
|
|
4202
|
+
@city = city
|
|
4203
|
+
@country = country
|
|
4204
|
+
@postal_code = postal_code
|
|
4205
|
+
@region = region
|
|
4206
|
+
@street_address = street_address
|
|
4207
|
+
@street_address2 = street_address2
|
|
4208
|
+
end
|
|
4209
|
+
end
|
|
4210
|
+
# Address of the arrival location.
|
|
4211
|
+
attr_accessor :address
|
|
4212
|
+
# Identifier name or reference for the arrival location.
|
|
4213
|
+
attr_accessor :arrival_location
|
|
4214
|
+
|
|
4215
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4216
|
+
@address = address
|
|
4217
|
+
@arrival_location = arrival_location
|
|
4218
|
+
end
|
|
4219
|
+
end
|
|
4220
|
+
|
|
4221
|
+
class Departure < ::Stripe::RequestParams
|
|
4222
|
+
class Address < ::Stripe::RequestParams
|
|
4223
|
+
# The city or town.
|
|
4224
|
+
attr_accessor :city
|
|
4225
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4226
|
+
attr_accessor :country
|
|
4227
|
+
# The postal code formatted according to country.
|
|
4228
|
+
attr_accessor :postal_code
|
|
4229
|
+
# The state, county, province, or region formatted according to country.
|
|
4230
|
+
attr_accessor :region
|
|
4231
|
+
# Line 1 of the street address.
|
|
4232
|
+
attr_accessor :street_address
|
|
4233
|
+
# Line 2 of the street address.
|
|
4234
|
+
attr_accessor :street_address2
|
|
4235
|
+
|
|
4236
|
+
def initialize(
|
|
4237
|
+
city: nil,
|
|
4238
|
+
country: nil,
|
|
4239
|
+
postal_code: nil,
|
|
4240
|
+
region: nil,
|
|
4241
|
+
street_address: nil,
|
|
4242
|
+
street_address2: nil
|
|
4243
|
+
)
|
|
4244
|
+
@city = city
|
|
4245
|
+
@country = country
|
|
4246
|
+
@postal_code = postal_code
|
|
4247
|
+
@region = region
|
|
4248
|
+
@street_address = street_address
|
|
4249
|
+
@street_address2 = street_address2
|
|
4250
|
+
end
|
|
4251
|
+
end
|
|
4252
|
+
# Address of the departure location.
|
|
4253
|
+
attr_accessor :address
|
|
4254
|
+
# Timestamp of departure.
|
|
4255
|
+
attr_accessor :departs_at
|
|
4256
|
+
# Identifier name or reference for the origin location.
|
|
4257
|
+
attr_accessor :departure_location
|
|
4258
|
+
|
|
4259
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4260
|
+
@address = address
|
|
4261
|
+
@departs_at = departs_at
|
|
4262
|
+
@departure_location = departure_location
|
|
4263
|
+
end
|
|
4264
|
+
end
|
|
4265
|
+
|
|
4266
|
+
class Insurance < ::Stripe::RequestParams
|
|
4267
|
+
# Insurance currency.
|
|
4268
|
+
attr_accessor :currency
|
|
4269
|
+
# Name of the company providing the insurance.
|
|
4270
|
+
attr_accessor :insurance_company_name
|
|
4271
|
+
# Type of insurance.
|
|
4272
|
+
attr_accessor :insurance_type
|
|
4273
|
+
# Price of insurance in cents.
|
|
4274
|
+
attr_accessor :price
|
|
4275
|
+
|
|
4276
|
+
def initialize(
|
|
4277
|
+
currency: nil,
|
|
4278
|
+
insurance_company_name: nil,
|
|
4279
|
+
insurance_type: nil,
|
|
4280
|
+
price: nil
|
|
4281
|
+
)
|
|
4282
|
+
@currency = currency
|
|
4283
|
+
@insurance_company_name = insurance_company_name
|
|
4284
|
+
@insurance_type = insurance_type
|
|
4285
|
+
@price = price
|
|
4286
|
+
end
|
|
4287
|
+
end
|
|
4288
|
+
|
|
4289
|
+
class Passenger < ::Stripe::RequestParams
|
|
4290
|
+
# The family name of the person.
|
|
4291
|
+
attr_accessor :family_name
|
|
4292
|
+
# The given name of the person.
|
|
4293
|
+
attr_accessor :given_name
|
|
4294
|
+
|
|
4295
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4296
|
+
@family_name = family_name
|
|
4297
|
+
@given_name = given_name
|
|
4298
|
+
end
|
|
4299
|
+
end
|
|
4300
|
+
# Name of associated or partner company for the service.
|
|
4301
|
+
attr_accessor :affiliate_name
|
|
4302
|
+
# Arrival details.
|
|
4303
|
+
attr_accessor :arrival
|
|
4304
|
+
# Name of transportation company.
|
|
4305
|
+
attr_accessor :carrier_name
|
|
4306
|
+
# Currency.
|
|
4307
|
+
attr_accessor :currency
|
|
4308
|
+
# Departure details.
|
|
4309
|
+
attr_accessor :departure
|
|
4310
|
+
# List of insurances for this reservation.
|
|
4311
|
+
attr_accessor :insurances
|
|
4312
|
+
# List of passengers that this reservation applies to.
|
|
4313
|
+
attr_accessor :passengers
|
|
4314
|
+
# Price in cents.
|
|
4315
|
+
attr_accessor :price
|
|
4316
|
+
# Ticket class.
|
|
4317
|
+
attr_accessor :ticket_class
|
|
4318
|
+
|
|
4319
|
+
def initialize(
|
|
4320
|
+
affiliate_name: nil,
|
|
4321
|
+
arrival: nil,
|
|
4322
|
+
carrier_name: nil,
|
|
4323
|
+
currency: nil,
|
|
4324
|
+
departure: nil,
|
|
4325
|
+
insurances: nil,
|
|
4326
|
+
passengers: nil,
|
|
4327
|
+
price: nil,
|
|
4328
|
+
ticket_class: nil
|
|
4329
|
+
)
|
|
4330
|
+
@affiliate_name = affiliate_name
|
|
4331
|
+
@arrival = arrival
|
|
4332
|
+
@carrier_name = carrier_name
|
|
4333
|
+
@currency = currency
|
|
4334
|
+
@departure = departure
|
|
4335
|
+
@insurances = insurances
|
|
4336
|
+
@passengers = passengers
|
|
4337
|
+
@price = price
|
|
4338
|
+
@ticket_class = ticket_class
|
|
4339
|
+
end
|
|
4340
|
+
end
|
|
4341
|
+
|
|
4342
|
+
class Voucher < ::Stripe::RequestParams
|
|
4343
|
+
# Name of associated or partner company for this voucher.
|
|
4344
|
+
attr_accessor :affiliate_name
|
|
4345
|
+
# The voucher validity end time.
|
|
4346
|
+
attr_accessor :ends_at
|
|
4347
|
+
# The voucher validity start time.
|
|
4348
|
+
attr_accessor :starts_at
|
|
4349
|
+
# The issuer or provider of this voucher.
|
|
4350
|
+
attr_accessor :voucher_company
|
|
4351
|
+
# The name or reference to identify the voucher.
|
|
4352
|
+
attr_accessor :voucher_name
|
|
4353
|
+
# The type of this voucher.
|
|
4354
|
+
attr_accessor :voucher_type
|
|
4355
|
+
|
|
4356
|
+
def initialize(
|
|
4357
|
+
affiliate_name: nil,
|
|
4358
|
+
ends_at: nil,
|
|
4359
|
+
starts_at: nil,
|
|
4360
|
+
voucher_company: nil,
|
|
4361
|
+
voucher_name: nil,
|
|
4362
|
+
voucher_type: nil
|
|
4363
|
+
)
|
|
4364
|
+
@affiliate_name = affiliate_name
|
|
4365
|
+
@ends_at = ends_at
|
|
4366
|
+
@starts_at = starts_at
|
|
4367
|
+
@voucher_company = voucher_company
|
|
4368
|
+
@voucher_name = voucher_name
|
|
4369
|
+
@voucher_type = voucher_type
|
|
4370
|
+
end
|
|
4371
|
+
end
|
|
4372
|
+
# Supplementary bus reservation details.
|
|
4373
|
+
attr_accessor :bus_reservation_details
|
|
4374
|
+
# Supplementary event reservation details.
|
|
4375
|
+
attr_accessor :event_reservation_details
|
|
4376
|
+
# Supplementary ferry reservation details.
|
|
4377
|
+
attr_accessor :ferry_reservation_details
|
|
4378
|
+
# Supplementary insurance details.
|
|
4379
|
+
attr_accessor :insurances
|
|
4380
|
+
# Supplementary marketplace seller details.
|
|
4381
|
+
attr_accessor :marketplace_sellers
|
|
4382
|
+
# Supplementary round trip reservation details.
|
|
4383
|
+
attr_accessor :round_trip_reservation_details
|
|
4384
|
+
# Supplementary train reservation details.
|
|
4385
|
+
attr_accessor :train_reservation_details
|
|
4386
|
+
# Voucher details, such as a gift card or discount code.
|
|
4387
|
+
attr_accessor :vouchers
|
|
4388
|
+
|
|
4389
|
+
def initialize(
|
|
4390
|
+
bus_reservation_details: nil,
|
|
4391
|
+
event_reservation_details: nil,
|
|
4392
|
+
ferry_reservation_details: nil,
|
|
4393
|
+
insurances: nil,
|
|
4394
|
+
marketplace_sellers: nil,
|
|
4395
|
+
round_trip_reservation_details: nil,
|
|
4396
|
+
train_reservation_details: nil,
|
|
4397
|
+
vouchers: nil
|
|
4398
|
+
)
|
|
4399
|
+
@bus_reservation_details = bus_reservation_details
|
|
4400
|
+
@event_reservation_details = event_reservation_details
|
|
4401
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
4402
|
+
@insurances = insurances
|
|
4403
|
+
@marketplace_sellers = marketplace_sellers
|
|
4404
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
4405
|
+
@train_reservation_details = train_reservation_details
|
|
4406
|
+
@vouchers = vouchers
|
|
4407
|
+
end
|
|
4408
|
+
end
|
|
1649
4409
|
# Controls when the funds are captured from the customer's account.
|
|
1650
4410
|
#
|
|
1651
4411
|
# 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.
|
|
@@ -1668,19 +4428,23 @@ module Stripe
|
|
|
1668
4428
|
attr_accessor :setup_future_usage
|
|
1669
4429
|
# Subscription details if setting up or charging a subscription.
|
|
1670
4430
|
attr_accessor :subscriptions
|
|
4431
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4432
|
+
attr_accessor :supplementary_purchase_data
|
|
1671
4433
|
|
|
1672
4434
|
def initialize(
|
|
1673
4435
|
capture_method: nil,
|
|
1674
4436
|
on_demand: nil,
|
|
1675
4437
|
preferred_locale: nil,
|
|
1676
4438
|
setup_future_usage: nil,
|
|
1677
|
-
subscriptions: nil
|
|
4439
|
+
subscriptions: nil,
|
|
4440
|
+
supplementary_purchase_data: nil
|
|
1678
4441
|
)
|
|
1679
4442
|
@capture_method = capture_method
|
|
1680
4443
|
@on_demand = on_demand
|
|
1681
4444
|
@preferred_locale = preferred_locale
|
|
1682
4445
|
@setup_future_usage = setup_future_usage
|
|
1683
4446
|
@subscriptions = subscriptions
|
|
4447
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1684
4448
|
end
|
|
1685
4449
|
end
|
|
1686
4450
|
|
|
@@ -1941,12 +4705,65 @@ module Stripe
|
|
|
1941
4705
|
end
|
|
1942
4706
|
|
|
1943
4707
|
class Paypal < ::Stripe::RequestParams
|
|
4708
|
+
class LineItem < ::Stripe::RequestParams
|
|
4709
|
+
class Tax < ::Stripe::RequestParams
|
|
4710
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4711
|
+
attr_accessor :amount
|
|
4712
|
+
# The tax behavior for the line item.
|
|
4713
|
+
attr_accessor :behavior
|
|
4714
|
+
|
|
4715
|
+
def initialize(amount: nil, behavior: nil)
|
|
4716
|
+
@amount = amount
|
|
4717
|
+
@behavior = behavior
|
|
4718
|
+
end
|
|
4719
|
+
end
|
|
4720
|
+
# Type of the line item.
|
|
4721
|
+
attr_accessor :category
|
|
4722
|
+
# Description of the line item.
|
|
4723
|
+
attr_accessor :description
|
|
4724
|
+
# Descriptive name of the line item.
|
|
4725
|
+
attr_accessor :name
|
|
4726
|
+
# Quantity of the line item. Must be a positive number.
|
|
4727
|
+
attr_accessor :quantity
|
|
4728
|
+
# Client facing stock keeping unit, article number or similar.
|
|
4729
|
+
attr_accessor :sku
|
|
4730
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
4731
|
+
attr_accessor :sold_by
|
|
4732
|
+
# The tax information for the line item.
|
|
4733
|
+
attr_accessor :tax
|
|
4734
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4735
|
+
attr_accessor :unit_amount
|
|
4736
|
+
|
|
4737
|
+
def initialize(
|
|
4738
|
+
category: nil,
|
|
4739
|
+
description: nil,
|
|
4740
|
+
name: nil,
|
|
4741
|
+
quantity: nil,
|
|
4742
|
+
sku: nil,
|
|
4743
|
+
sold_by: nil,
|
|
4744
|
+
tax: nil,
|
|
4745
|
+
unit_amount: nil
|
|
4746
|
+
)
|
|
4747
|
+
@category = category
|
|
4748
|
+
@description = description
|
|
4749
|
+
@name = name
|
|
4750
|
+
@quantity = quantity
|
|
4751
|
+
@sku = sku
|
|
4752
|
+
@sold_by = sold_by
|
|
4753
|
+
@tax = tax
|
|
4754
|
+
@unit_amount = unit_amount
|
|
4755
|
+
end
|
|
4756
|
+
end
|
|
1944
4757
|
# Controls when the funds will be captured from the customer's account.
|
|
1945
4758
|
attr_accessor :capture_method
|
|
4759
|
+
# The line items purchased by the customer.
|
|
4760
|
+
attr_accessor :line_items
|
|
1946
4761
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1947
4762
|
attr_accessor :preferred_locale
|
|
1948
4763
|
# 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.
|
|
1949
4764
|
attr_accessor :reference
|
|
4765
|
+
# 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.
|
|
4766
|
+
attr_accessor :reference_id
|
|
1950
4767
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1951
4768
|
attr_accessor :risk_correlation_id
|
|
1952
4769
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1959,19 +4776,40 @@ module Stripe
|
|
|
1959
4776
|
#
|
|
1960
4777
|
# 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`.
|
|
1961
4778
|
attr_accessor :setup_future_usage
|
|
4779
|
+
# 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.
|
|
4780
|
+
attr_accessor :subsellers
|
|
1962
4781
|
|
|
1963
4782
|
def initialize(
|
|
1964
4783
|
capture_method: nil,
|
|
4784
|
+
line_items: nil,
|
|
1965
4785
|
preferred_locale: nil,
|
|
1966
4786
|
reference: nil,
|
|
4787
|
+
reference_id: nil,
|
|
1967
4788
|
risk_correlation_id: nil,
|
|
1968
|
-
setup_future_usage: nil
|
|
4789
|
+
setup_future_usage: nil,
|
|
4790
|
+
subsellers: nil
|
|
1969
4791
|
)
|
|
1970
4792
|
@capture_method = capture_method
|
|
4793
|
+
@line_items = line_items
|
|
1971
4794
|
@preferred_locale = preferred_locale
|
|
1972
4795
|
@reference = reference
|
|
4796
|
+
@reference_id = reference_id
|
|
1973
4797
|
@risk_correlation_id = risk_correlation_id
|
|
1974
4798
|
@setup_future_usage = setup_future_usage
|
|
4799
|
+
@subsellers = subsellers
|
|
4800
|
+
end
|
|
4801
|
+
end
|
|
4802
|
+
|
|
4803
|
+
class Paypay < ::Stripe::RequestParams
|
|
4804
|
+
# Controls when the funds are captured from the customer's account.
|
|
4805
|
+
#
|
|
4806
|
+
# 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.
|
|
4807
|
+
#
|
|
4808
|
+
# 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.
|
|
4809
|
+
attr_accessor :capture_method
|
|
4810
|
+
|
|
4811
|
+
def initialize(capture_method: nil)
|
|
4812
|
+
@capture_method = capture_method
|
|
1975
4813
|
end
|
|
1976
4814
|
end
|
|
1977
4815
|
|
|
@@ -2026,12 +4864,52 @@ module Stripe
|
|
|
2026
4864
|
end
|
|
2027
4865
|
|
|
2028
4866
|
class Pix < ::Stripe::RequestParams
|
|
4867
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
4868
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
4869
|
+
attr_accessor :amount
|
|
4870
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
4871
|
+
attr_accessor :amount_includes_iof
|
|
4872
|
+
# Type of amount. Defaults to `maximum`.
|
|
4873
|
+
attr_accessor :amount_type
|
|
4874
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
4875
|
+
attr_accessor :currency
|
|
4876
|
+
# 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.
|
|
4877
|
+
attr_accessor :end_date
|
|
4878
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
4879
|
+
attr_accessor :payment_schedule
|
|
4880
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
4881
|
+
attr_accessor :reference
|
|
4882
|
+
# 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.
|
|
4883
|
+
attr_accessor :start_date
|
|
4884
|
+
|
|
4885
|
+
def initialize(
|
|
4886
|
+
amount: nil,
|
|
4887
|
+
amount_includes_iof: nil,
|
|
4888
|
+
amount_type: nil,
|
|
4889
|
+
currency: nil,
|
|
4890
|
+
end_date: nil,
|
|
4891
|
+
payment_schedule: nil,
|
|
4892
|
+
reference: nil,
|
|
4893
|
+
start_date: nil
|
|
4894
|
+
)
|
|
4895
|
+
@amount = amount
|
|
4896
|
+
@amount_includes_iof = amount_includes_iof
|
|
4897
|
+
@amount_type = amount_type
|
|
4898
|
+
@currency = currency
|
|
4899
|
+
@end_date = end_date
|
|
4900
|
+
@payment_schedule = payment_schedule
|
|
4901
|
+
@reference = reference
|
|
4902
|
+
@start_date = start_date
|
|
4903
|
+
end
|
|
4904
|
+
end
|
|
2029
4905
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
2030
4906
|
attr_accessor :amount_includes_iof
|
|
2031
4907
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
2032
4908
|
attr_accessor :expires_after_seconds
|
|
2033
4909
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
|
2034
4910
|
attr_accessor :expires_at
|
|
4911
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
4912
|
+
attr_accessor :mandate_options
|
|
2035
4913
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2036
4914
|
#
|
|
2037
4915
|
# 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.
|
|
@@ -2047,11 +4925,13 @@ module Stripe
|
|
|
2047
4925
|
amount_includes_iof: nil,
|
|
2048
4926
|
expires_after_seconds: nil,
|
|
2049
4927
|
expires_at: nil,
|
|
4928
|
+
mandate_options: nil,
|
|
2050
4929
|
setup_future_usage: nil
|
|
2051
4930
|
)
|
|
2052
4931
|
@amount_includes_iof = amount_includes_iof
|
|
2053
4932
|
@expires_after_seconds = expires_after_seconds
|
|
2054
4933
|
@expires_at = expires_at
|
|
4934
|
+
@mandate_options = mandate_options
|
|
2055
4935
|
@setup_future_usage = setup_future_usage
|
|
2056
4936
|
end
|
|
2057
4937
|
end
|
|
@@ -2073,6 +4953,25 @@ module Stripe
|
|
|
2073
4953
|
end
|
|
2074
4954
|
end
|
|
2075
4955
|
|
|
4956
|
+
class Qris < ::Stripe::RequestParams
|
|
4957
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4958
|
+
#
|
|
4959
|
+
# 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.
|
|
4960
|
+
#
|
|
4961
|
+
# 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.
|
|
4962
|
+
#
|
|
4963
|
+
# 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).
|
|
4964
|
+
#
|
|
4965
|
+
# 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`.
|
|
4966
|
+
attr_accessor :setup_future_usage
|
|
4967
|
+
|
|
4968
|
+
def initialize(setup_future_usage: nil)
|
|
4969
|
+
@setup_future_usage = setup_future_usage
|
|
4970
|
+
end
|
|
4971
|
+
end
|
|
4972
|
+
|
|
4973
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
4974
|
+
|
|
2076
4975
|
class RevolutPay < ::Stripe::RequestParams
|
|
2077
4976
|
# Controls when the funds are captured from the customer's account.
|
|
2078
4977
|
#
|
|
@@ -2152,6 +5051,23 @@ module Stripe
|
|
|
2152
5051
|
end
|
|
2153
5052
|
end
|
|
2154
5053
|
|
|
5054
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5055
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5056
|
+
#
|
|
5057
|
+
# 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.
|
|
5058
|
+
#
|
|
5059
|
+
# 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.
|
|
5060
|
+
#
|
|
5061
|
+
# 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).
|
|
5062
|
+
#
|
|
5063
|
+
# 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`.
|
|
5064
|
+
attr_accessor :setup_future_usage
|
|
5065
|
+
|
|
5066
|
+
def initialize(setup_future_usage: nil)
|
|
5067
|
+
@setup_future_usage = setup_future_usage
|
|
5068
|
+
end
|
|
5069
|
+
end
|
|
5070
|
+
|
|
2155
5071
|
class Sofort < ::Stripe::RequestParams
|
|
2156
5072
|
# Language shown to the payer on redirect.
|
|
2157
5073
|
attr_accessor :preferred_language
|
|
@@ -2172,6 +5088,23 @@ module Stripe
|
|
|
2172
5088
|
end
|
|
2173
5089
|
end
|
|
2174
5090
|
|
|
5091
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5092
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5093
|
+
#
|
|
5094
|
+
# 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.
|
|
5095
|
+
#
|
|
5096
|
+
# 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.
|
|
5097
|
+
#
|
|
5098
|
+
# 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).
|
|
5099
|
+
#
|
|
5100
|
+
# 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`.
|
|
5101
|
+
attr_accessor :setup_future_usage
|
|
5102
|
+
|
|
5103
|
+
def initialize(setup_future_usage: nil)
|
|
5104
|
+
@setup_future_usage = setup_future_usage
|
|
5105
|
+
end
|
|
5106
|
+
end
|
|
5107
|
+
|
|
2175
5108
|
class Swish < ::Stripe::RequestParams
|
|
2176
5109
|
# A reference for this payment to be displayed in the Swish app.
|
|
2177
5110
|
attr_accessor :reference
|
|
@@ -2214,13 +5147,27 @@ module Stripe
|
|
|
2214
5147
|
class Filters < ::Stripe::RequestParams
|
|
2215
5148
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2216
5149
|
attr_accessor :account_subcategories
|
|
5150
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5151
|
+
attr_accessor :institution
|
|
2217
5152
|
|
|
2218
|
-
def initialize(account_subcategories: nil)
|
|
5153
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2219
5154
|
@account_subcategories = account_subcategories
|
|
5155
|
+
@institution = institution
|
|
5156
|
+
end
|
|
5157
|
+
end
|
|
5158
|
+
|
|
5159
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5160
|
+
# Settings for configuring manual entry of account details.
|
|
5161
|
+
attr_accessor :mode
|
|
5162
|
+
|
|
5163
|
+
def initialize(mode: nil)
|
|
5164
|
+
@mode = mode
|
|
2220
5165
|
end
|
|
2221
5166
|
end
|
|
2222
5167
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2223
5168
|
attr_accessor :filters
|
|
5169
|
+
# Customize manual entry behavior
|
|
5170
|
+
attr_accessor :manual_entry
|
|
2224
5171
|
# 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`.
|
|
2225
5172
|
attr_accessor :permissions
|
|
2226
5173
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2228,8 +5175,15 @@ module Stripe
|
|
|
2228
5175
|
# 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.
|
|
2229
5176
|
attr_accessor :return_url
|
|
2230
5177
|
|
|
2231
|
-
def initialize(
|
|
5178
|
+
def initialize(
|
|
5179
|
+
filters: nil,
|
|
5180
|
+
manual_entry: nil,
|
|
5181
|
+
permissions: nil,
|
|
5182
|
+
prefetch: nil,
|
|
5183
|
+
return_url: nil
|
|
5184
|
+
)
|
|
2232
5185
|
@filters = filters
|
|
5186
|
+
@manual_entry = manual_entry
|
|
2233
5187
|
@permissions = permissions
|
|
2234
5188
|
@prefetch = prefetch
|
|
2235
5189
|
@return_url = return_url
|
|
@@ -2374,8 +5328,12 @@ module Stripe
|
|
|
2374
5328
|
attr_accessor :fpx
|
|
2375
5329
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2376
5330
|
attr_accessor :giropay
|
|
5331
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5332
|
+
attr_accessor :gopay
|
|
2377
5333
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2378
5334
|
attr_accessor :grabpay
|
|
5335
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5336
|
+
attr_accessor :id_bank_transfer
|
|
2379
5337
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2380
5338
|
attr_accessor :ideal
|
|
2381
5339
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2412,12 +5370,18 @@ module Stripe
|
|
|
2412
5370
|
attr_accessor :paynow
|
|
2413
5371
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2414
5372
|
attr_accessor :paypal
|
|
5373
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5374
|
+
attr_accessor :paypay
|
|
2415
5375
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2416
5376
|
attr_accessor :payto
|
|
2417
5377
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2418
5378
|
attr_accessor :pix
|
|
2419
5379
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2420
5380
|
attr_accessor :promptpay
|
|
5381
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5382
|
+
attr_accessor :qris
|
|
5383
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5384
|
+
attr_accessor :rechnung
|
|
2421
5385
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2422
5386
|
attr_accessor :revolut_pay
|
|
2423
5387
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2426,8 +5390,12 @@ module Stripe
|
|
|
2426
5390
|
attr_accessor :satispay
|
|
2427
5391
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2428
5392
|
attr_accessor :sepa_debit
|
|
5393
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5394
|
+
attr_accessor :shopeepay
|
|
2429
5395
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2430
5396
|
attr_accessor :sofort
|
|
5397
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5398
|
+
attr_accessor :stripe_balance
|
|
2431
5399
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2432
5400
|
attr_accessor :swish
|
|
2433
5401
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2460,7 +5428,9 @@ module Stripe
|
|
|
2460
5428
|
eps: nil,
|
|
2461
5429
|
fpx: nil,
|
|
2462
5430
|
giropay: nil,
|
|
5431
|
+
gopay: nil,
|
|
2463
5432
|
grabpay: nil,
|
|
5433
|
+
id_bank_transfer: nil,
|
|
2464
5434
|
ideal: nil,
|
|
2465
5435
|
interac_present: nil,
|
|
2466
5436
|
kakao_pay: nil,
|
|
@@ -2479,14 +5449,19 @@ module Stripe
|
|
|
2479
5449
|
payco: nil,
|
|
2480
5450
|
paynow: nil,
|
|
2481
5451
|
paypal: nil,
|
|
5452
|
+
paypay: nil,
|
|
2482
5453
|
payto: nil,
|
|
2483
5454
|
pix: nil,
|
|
2484
5455
|
promptpay: nil,
|
|
5456
|
+
qris: nil,
|
|
5457
|
+
rechnung: nil,
|
|
2485
5458
|
revolut_pay: nil,
|
|
2486
5459
|
samsung_pay: nil,
|
|
2487
5460
|
satispay: nil,
|
|
2488
5461
|
sepa_debit: nil,
|
|
5462
|
+
shopeepay: nil,
|
|
2489
5463
|
sofort: nil,
|
|
5464
|
+
stripe_balance: nil,
|
|
2490
5465
|
swish: nil,
|
|
2491
5466
|
twint: nil,
|
|
2492
5467
|
us_bank_account: nil,
|
|
@@ -2513,7 +5488,9 @@ module Stripe
|
|
|
2513
5488
|
@eps = eps
|
|
2514
5489
|
@fpx = fpx
|
|
2515
5490
|
@giropay = giropay
|
|
5491
|
+
@gopay = gopay
|
|
2516
5492
|
@grabpay = grabpay
|
|
5493
|
+
@id_bank_transfer = id_bank_transfer
|
|
2517
5494
|
@ideal = ideal
|
|
2518
5495
|
@interac_present = interac_present
|
|
2519
5496
|
@kakao_pay = kakao_pay
|
|
@@ -2532,14 +5509,19 @@ module Stripe
|
|
|
2532
5509
|
@payco = payco
|
|
2533
5510
|
@paynow = paynow
|
|
2534
5511
|
@paypal = paypal
|
|
5512
|
+
@paypay = paypay
|
|
2535
5513
|
@payto = payto
|
|
2536
5514
|
@pix = pix
|
|
2537
5515
|
@promptpay = promptpay
|
|
5516
|
+
@qris = qris
|
|
5517
|
+
@rechnung = rechnung
|
|
2538
5518
|
@revolut_pay = revolut_pay
|
|
2539
5519
|
@samsung_pay = samsung_pay
|
|
2540
5520
|
@satispay = satispay
|
|
2541
5521
|
@sepa_debit = sepa_debit
|
|
5522
|
+
@shopeepay = shopeepay
|
|
2542
5523
|
@sofort = sofort
|
|
5524
|
+
@stripe_balance = stripe_balance
|
|
2543
5525
|
@swish = swish
|
|
2544
5526
|
@twint = twint
|
|
2545
5527
|
@us_bank_account = us_bank_account
|
|
@@ -2548,6 +5530,15 @@ module Stripe
|
|
|
2548
5530
|
end
|
|
2549
5531
|
end
|
|
2550
5532
|
|
|
5533
|
+
class PaymentsOrchestration < ::Stripe::RequestParams
|
|
5534
|
+
# Whether this feature is enabled.
|
|
5535
|
+
attr_accessor :enabled
|
|
5536
|
+
|
|
5537
|
+
def initialize(enabled: nil)
|
|
5538
|
+
@enabled = enabled
|
|
5539
|
+
end
|
|
5540
|
+
end
|
|
5541
|
+
|
|
2551
5542
|
class RadarOptions < ::Stripe::RequestParams
|
|
2552
5543
|
# 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.
|
|
2553
5544
|
attr_accessor :session
|
|
@@ -2628,6 +5619,8 @@ module Stripe
|
|
|
2628
5619
|
@destination = destination
|
|
2629
5620
|
end
|
|
2630
5621
|
end
|
|
5622
|
+
# Allocated Funds configuration for this PaymentIntent.
|
|
5623
|
+
attr_accessor :allocated_funds
|
|
2631
5624
|
# 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).
|
|
2632
5625
|
attr_accessor :amount
|
|
2633
5626
|
# Provides industry-specific information about the amount.
|
|
@@ -2668,6 +5661,8 @@ module Stripe
|
|
|
2668
5661
|
attr_accessor :excluded_payment_method_types
|
|
2669
5662
|
# Specifies which fields in the response should be expanded.
|
|
2670
5663
|
attr_accessor :expand
|
|
5664
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5665
|
+
attr_accessor :fx_quote
|
|
2671
5666
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2672
5667
|
attr_accessor :hooks
|
|
2673
5668
|
# 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).
|
|
@@ -2698,12 +5693,16 @@ module Stripe
|
|
|
2698
5693
|
attr_accessor :payment_method_options
|
|
2699
5694
|
# 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).
|
|
2700
5695
|
attr_accessor :payment_method_types
|
|
5696
|
+
# When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
|
|
5697
|
+
attr_accessor :payments_orchestration
|
|
2701
5698
|
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
2702
5699
|
attr_accessor :radar_options
|
|
2703
5700
|
# 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).
|
|
2704
5701
|
attr_accessor :receipt_email
|
|
2705
5702
|
# 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).
|
|
2706
5703
|
attr_accessor :return_url
|
|
5704
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
5705
|
+
attr_accessor :secret_key_confirmation
|
|
2707
5706
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2708
5707
|
#
|
|
2709
5708
|
# 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.
|
|
@@ -2712,6 +5711,8 @@ module Stripe
|
|
|
2712
5711
|
#
|
|
2713
5712
|
# 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).
|
|
2714
5713
|
attr_accessor :setup_future_usage
|
|
5714
|
+
# ID of the SharedPaymentToken used to confirm this PaymentIntent.
|
|
5715
|
+
attr_accessor :shared_payment_granted_token
|
|
2715
5716
|
# Shipping information for this PaymentIntent.
|
|
2716
5717
|
attr_accessor :shipping
|
|
2717
5718
|
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
|
@@ -2729,6 +5730,7 @@ module Stripe
|
|
|
2729
5730
|
attr_accessor :use_stripe_sdk
|
|
2730
5731
|
|
|
2731
5732
|
def initialize(
|
|
5733
|
+
allocated_funds: nil,
|
|
2732
5734
|
amount: nil,
|
|
2733
5735
|
amount_details: nil,
|
|
2734
5736
|
application_fee_amount: nil,
|
|
@@ -2744,6 +5746,7 @@ module Stripe
|
|
|
2744
5746
|
error_on_requires_action: nil,
|
|
2745
5747
|
excluded_payment_method_types: nil,
|
|
2746
5748
|
expand: nil,
|
|
5749
|
+
fx_quote: nil,
|
|
2747
5750
|
hooks: nil,
|
|
2748
5751
|
mandate: nil,
|
|
2749
5752
|
mandate_data: nil,
|
|
@@ -2756,10 +5759,13 @@ module Stripe
|
|
|
2756
5759
|
payment_method_data: nil,
|
|
2757
5760
|
payment_method_options: nil,
|
|
2758
5761
|
payment_method_types: nil,
|
|
5762
|
+
payments_orchestration: nil,
|
|
2759
5763
|
radar_options: nil,
|
|
2760
5764
|
receipt_email: nil,
|
|
2761
5765
|
return_url: nil,
|
|
5766
|
+
secret_key_confirmation: nil,
|
|
2762
5767
|
setup_future_usage: nil,
|
|
5768
|
+
shared_payment_granted_token: nil,
|
|
2763
5769
|
shipping: nil,
|
|
2764
5770
|
statement_descriptor: nil,
|
|
2765
5771
|
statement_descriptor_suffix: nil,
|
|
@@ -2767,6 +5773,7 @@ module Stripe
|
|
|
2767
5773
|
transfer_group: nil,
|
|
2768
5774
|
use_stripe_sdk: nil
|
|
2769
5775
|
)
|
|
5776
|
+
@allocated_funds = allocated_funds
|
|
2770
5777
|
@amount = amount
|
|
2771
5778
|
@amount_details = amount_details
|
|
2772
5779
|
@application_fee_amount = application_fee_amount
|
|
@@ -2782,6 +5789,7 @@ module Stripe
|
|
|
2782
5789
|
@error_on_requires_action = error_on_requires_action
|
|
2783
5790
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2784
5791
|
@expand = expand
|
|
5792
|
+
@fx_quote = fx_quote
|
|
2785
5793
|
@hooks = hooks
|
|
2786
5794
|
@mandate = mandate
|
|
2787
5795
|
@mandate_data = mandate_data
|
|
@@ -2794,10 +5802,13 @@ module Stripe
|
|
|
2794
5802
|
@payment_method_data = payment_method_data
|
|
2795
5803
|
@payment_method_options = payment_method_options
|
|
2796
5804
|
@payment_method_types = payment_method_types
|
|
5805
|
+
@payments_orchestration = payments_orchestration
|
|
2797
5806
|
@radar_options = radar_options
|
|
2798
5807
|
@receipt_email = receipt_email
|
|
2799
5808
|
@return_url = return_url
|
|
5809
|
+
@secret_key_confirmation = secret_key_confirmation
|
|
2800
5810
|
@setup_future_usage = setup_future_usage
|
|
5811
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
2801
5812
|
@shipping = shipping
|
|
2802
5813
|
@statement_descriptor = statement_descriptor
|
|
2803
5814
|
@statement_descriptor_suffix = statement_descriptor_suffix
|