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 PaymentIntentConfirmParams < ::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
|
|
@@ -110,162 +119,1809 @@ module Stripe
|
|
|
110
119
|
attr_accessor :unit_of_measure
|
|
111
120
|
|
|
112
121
|
def initialize(
|
|
113
|
-
discount_amount: nil,
|
|
114
|
-
payment_method_options: nil,
|
|
115
|
-
product_code: nil,
|
|
116
|
-
product_name: nil,
|
|
117
|
-
quantity: nil,
|
|
118
|
-
tax: nil,
|
|
119
|
-
unit_cost: nil,
|
|
120
|
-
unit_of_measure: nil
|
|
122
|
+
discount_amount: nil,
|
|
123
|
+
payment_method_options: nil,
|
|
124
|
+
product_code: nil,
|
|
125
|
+
product_name: nil,
|
|
126
|
+
quantity: nil,
|
|
127
|
+
tax: nil,
|
|
128
|
+
unit_cost: nil,
|
|
129
|
+
unit_of_measure: nil
|
|
130
|
+
)
|
|
131
|
+
@discount_amount = discount_amount
|
|
132
|
+
@payment_method_options = payment_method_options
|
|
133
|
+
@product_code = product_code
|
|
134
|
+
@product_name = product_name
|
|
135
|
+
@quantity = quantity
|
|
136
|
+
@tax = tax
|
|
137
|
+
@unit_cost = unit_cost
|
|
138
|
+
@unit_of_measure = unit_of_measure
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
class Shipping < ::Stripe::RequestParams
|
|
143
|
+
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
|
|
144
|
+
attr_accessor :amount
|
|
145
|
+
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
146
|
+
attr_accessor :from_postal_code
|
|
147
|
+
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
148
|
+
attr_accessor :to_postal_code
|
|
149
|
+
|
|
150
|
+
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
|
151
|
+
@amount = amount
|
|
152
|
+
@from_postal_code = from_postal_code
|
|
153
|
+
@to_postal_code = to_postal_code
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class Tax < ::Stripe::RequestParams
|
|
158
|
+
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
159
|
+
#
|
|
160
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
161
|
+
attr_accessor :total_tax_amount
|
|
162
|
+
|
|
163
|
+
def initialize(total_tax_amount: nil)
|
|
164
|
+
@total_tax_amount = total_tax_amount
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
168
|
+
#
|
|
169
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
170
|
+
attr_accessor :discount_amount
|
|
171
|
+
# 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 Hooks < ::Stripe::RequestParams
|
|
200
|
+
class Inputs < ::Stripe::RequestParams
|
|
201
|
+
class Tax < ::Stripe::RequestParams
|
|
202
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
203
|
+
attr_accessor :calculation
|
|
204
|
+
|
|
205
|
+
def initialize(calculation: nil)
|
|
206
|
+
@calculation = calculation
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
# Tax arguments for automations
|
|
210
|
+
attr_accessor :tax
|
|
211
|
+
|
|
212
|
+
def initialize(tax: nil)
|
|
213
|
+
@tax = tax
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
# Arguments passed in automations
|
|
217
|
+
attr_accessor :inputs
|
|
218
|
+
|
|
219
|
+
def initialize(inputs: nil)
|
|
220
|
+
@inputs = inputs
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
class MandateData < ::Stripe::RequestParams
|
|
225
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
226
|
+
class Offline < ::Stripe::RequestParams; end
|
|
227
|
+
|
|
228
|
+
class Online < ::Stripe::RequestParams
|
|
229
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
230
|
+
attr_accessor :ip_address
|
|
231
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
232
|
+
attr_accessor :user_agent
|
|
233
|
+
|
|
234
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
235
|
+
@ip_address = ip_address
|
|
236
|
+
@user_agent = user_agent
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
# The time at which the customer accepted the Mandate.
|
|
240
|
+
attr_accessor :accepted_at
|
|
241
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
242
|
+
attr_accessor :offline
|
|
243
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
244
|
+
attr_accessor :online
|
|
245
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
246
|
+
attr_accessor :type
|
|
247
|
+
|
|
248
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
249
|
+
@accepted_at = accepted_at
|
|
250
|
+
@offline = offline
|
|
251
|
+
@online = online
|
|
252
|
+
@type = type
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
256
|
+
attr_accessor :customer_acceptance
|
|
257
|
+
|
|
258
|
+
def initialize(customer_acceptance: nil)
|
|
259
|
+
@customer_acceptance = customer_acceptance
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
264
|
+
class Benefit < ::Stripe::RequestParams
|
|
265
|
+
class FrMealVoucher < ::Stripe::RequestParams
|
|
266
|
+
# The 14-digit SIRET of the meal voucher acceptor.
|
|
267
|
+
attr_accessor :siret
|
|
268
|
+
|
|
269
|
+
def initialize(siret: nil)
|
|
270
|
+
@siret = siret
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
# French meal voucher benefit details for this PaymentIntent.
|
|
274
|
+
attr_accessor :fr_meal_voucher
|
|
275
|
+
|
|
276
|
+
def initialize(fr_meal_voucher: nil)
|
|
277
|
+
@fr_meal_voucher = fr_meal_voucher
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
class CarRental < ::Stripe::RequestParams
|
|
282
|
+
class Affiliate < ::Stripe::RequestParams
|
|
283
|
+
# The name of the affiliate that originated the purchase.
|
|
284
|
+
attr_accessor :name
|
|
285
|
+
|
|
286
|
+
def initialize(name: nil)
|
|
287
|
+
@name = name
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
class Delivery < ::Stripe::RequestParams
|
|
292
|
+
class Recipient < ::Stripe::RequestParams
|
|
293
|
+
# The email of the recipient the ticket is delivered to.
|
|
294
|
+
attr_accessor :email
|
|
295
|
+
# The name of the recipient the ticket is delivered to.
|
|
296
|
+
attr_accessor :name
|
|
297
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
298
|
+
attr_accessor :phone
|
|
299
|
+
|
|
300
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
301
|
+
@email = email
|
|
302
|
+
@name = name
|
|
303
|
+
@phone = phone
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
# The delivery method for the payment
|
|
307
|
+
attr_accessor :mode
|
|
308
|
+
# Details of the recipient.
|
|
309
|
+
attr_accessor :recipient
|
|
310
|
+
|
|
311
|
+
def initialize(mode: nil, recipient: nil)
|
|
312
|
+
@mode = mode
|
|
313
|
+
@recipient = recipient
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
class Distance < ::Stripe::RequestParams
|
|
318
|
+
# Distance traveled.
|
|
319
|
+
attr_accessor :amount
|
|
320
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
321
|
+
attr_accessor :unit
|
|
322
|
+
|
|
323
|
+
def initialize(amount: nil, unit: nil)
|
|
324
|
+
@amount = amount
|
|
325
|
+
@unit = unit
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
class Driver < ::Stripe::RequestParams
|
|
330
|
+
# Driver's identification number.
|
|
331
|
+
attr_accessor :driver_identification_number
|
|
332
|
+
# Driver's tax number.
|
|
333
|
+
attr_accessor :driver_tax_number
|
|
334
|
+
# Full name of the person or entity on the car reservation.
|
|
335
|
+
attr_accessor :name
|
|
336
|
+
|
|
337
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
338
|
+
@driver_identification_number = driver_identification_number
|
|
339
|
+
@driver_tax_number = driver_tax_number
|
|
340
|
+
@name = name
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
345
|
+
# City, district, suburb, town, or village.
|
|
346
|
+
attr_accessor :city
|
|
347
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
348
|
+
attr_accessor :country
|
|
349
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
350
|
+
attr_accessor :line1
|
|
351
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
352
|
+
attr_accessor :line2
|
|
353
|
+
# ZIP or postal code.
|
|
354
|
+
attr_accessor :postal_code
|
|
355
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
356
|
+
attr_accessor :state
|
|
357
|
+
|
|
358
|
+
def initialize(
|
|
359
|
+
city: nil,
|
|
360
|
+
country: nil,
|
|
361
|
+
line1: nil,
|
|
362
|
+
line2: nil,
|
|
363
|
+
postal_code: nil,
|
|
364
|
+
state: nil
|
|
365
|
+
)
|
|
366
|
+
@city = city
|
|
367
|
+
@country = country
|
|
368
|
+
@line1 = line1
|
|
369
|
+
@line2 = line2
|
|
370
|
+
@postal_code = postal_code
|
|
371
|
+
@state = state
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
376
|
+
# City, district, suburb, town, or village.
|
|
377
|
+
attr_accessor :city
|
|
378
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
379
|
+
attr_accessor :country
|
|
380
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
381
|
+
attr_accessor :line1
|
|
382
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
383
|
+
attr_accessor :line2
|
|
384
|
+
# ZIP or postal code.
|
|
385
|
+
attr_accessor :postal_code
|
|
386
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
387
|
+
attr_accessor :state
|
|
388
|
+
|
|
389
|
+
def initialize(
|
|
390
|
+
city: nil,
|
|
391
|
+
country: nil,
|
|
392
|
+
line1: nil,
|
|
393
|
+
line2: nil,
|
|
394
|
+
postal_code: nil,
|
|
395
|
+
state: nil
|
|
396
|
+
)
|
|
397
|
+
@city = city
|
|
398
|
+
@country = country
|
|
399
|
+
@line1 = line1
|
|
400
|
+
@line2 = line2
|
|
401
|
+
@postal_code = postal_code
|
|
402
|
+
@state = state
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
# Affiliate details for this purchase.
|
|
406
|
+
attr_accessor :affiliate
|
|
407
|
+
# The booking number associated with the car rental.
|
|
408
|
+
attr_accessor :booking_number
|
|
409
|
+
# Class code of the car.
|
|
410
|
+
attr_accessor :car_class_code
|
|
411
|
+
# Make of the car.
|
|
412
|
+
attr_accessor :car_make
|
|
413
|
+
# Model of the car.
|
|
414
|
+
attr_accessor :car_model
|
|
415
|
+
# The name of the rental car company.
|
|
416
|
+
attr_accessor :company
|
|
417
|
+
# The customer service phone number of the car rental company.
|
|
418
|
+
attr_accessor :customer_service_phone_number
|
|
419
|
+
# Number of days the car is being rented.
|
|
420
|
+
attr_accessor :days_rented
|
|
421
|
+
# Delivery details for this purchase.
|
|
422
|
+
attr_accessor :delivery
|
|
423
|
+
# The details of the distance traveled during the rental period.
|
|
424
|
+
attr_accessor :distance
|
|
425
|
+
# The details of the passengers in the travel reservation
|
|
426
|
+
attr_accessor :drivers
|
|
427
|
+
# List of additional charges being billed.
|
|
428
|
+
attr_accessor :extra_charges
|
|
429
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
430
|
+
attr_accessor :no_show
|
|
431
|
+
# Car pick-up address.
|
|
432
|
+
attr_accessor :pickup_address
|
|
433
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
434
|
+
attr_accessor :pickup_at
|
|
435
|
+
# Name of the pickup location.
|
|
436
|
+
attr_accessor :pickup_location_name
|
|
437
|
+
# Rental rate.
|
|
438
|
+
attr_accessor :rate_amount
|
|
439
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
440
|
+
attr_accessor :rate_interval
|
|
441
|
+
# The name of the person or entity renting the car.
|
|
442
|
+
attr_accessor :renter_name
|
|
443
|
+
# Car return address.
|
|
444
|
+
attr_accessor :return_address
|
|
445
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
446
|
+
attr_accessor :return_at
|
|
447
|
+
# Name of the return location.
|
|
448
|
+
attr_accessor :return_location_name
|
|
449
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
450
|
+
attr_accessor :tax_exempt
|
|
451
|
+
# The vehicle identification number.
|
|
452
|
+
attr_accessor :vehicle_identification_number
|
|
453
|
+
|
|
454
|
+
def initialize(
|
|
455
|
+
affiliate: nil,
|
|
456
|
+
booking_number: nil,
|
|
457
|
+
car_class_code: nil,
|
|
458
|
+
car_make: nil,
|
|
459
|
+
car_model: nil,
|
|
460
|
+
company: nil,
|
|
461
|
+
customer_service_phone_number: nil,
|
|
462
|
+
days_rented: nil,
|
|
463
|
+
delivery: nil,
|
|
464
|
+
distance: nil,
|
|
465
|
+
drivers: nil,
|
|
466
|
+
extra_charges: nil,
|
|
467
|
+
no_show: nil,
|
|
468
|
+
pickup_address: nil,
|
|
469
|
+
pickup_at: nil,
|
|
470
|
+
pickup_location_name: nil,
|
|
471
|
+
rate_amount: nil,
|
|
472
|
+
rate_interval: nil,
|
|
473
|
+
renter_name: nil,
|
|
474
|
+
return_address: nil,
|
|
475
|
+
return_at: nil,
|
|
476
|
+
return_location_name: nil,
|
|
477
|
+
tax_exempt: nil,
|
|
478
|
+
vehicle_identification_number: nil
|
|
479
|
+
)
|
|
480
|
+
@affiliate = affiliate
|
|
481
|
+
@booking_number = booking_number
|
|
482
|
+
@car_class_code = car_class_code
|
|
483
|
+
@car_make = car_make
|
|
484
|
+
@car_model = car_model
|
|
485
|
+
@company = company
|
|
486
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
487
|
+
@days_rented = days_rented
|
|
488
|
+
@delivery = delivery
|
|
489
|
+
@distance = distance
|
|
490
|
+
@drivers = drivers
|
|
491
|
+
@extra_charges = extra_charges
|
|
492
|
+
@no_show = no_show
|
|
493
|
+
@pickup_address = pickup_address
|
|
494
|
+
@pickup_at = pickup_at
|
|
495
|
+
@pickup_location_name = pickup_location_name
|
|
496
|
+
@rate_amount = rate_amount
|
|
497
|
+
@rate_interval = rate_interval
|
|
498
|
+
@renter_name = renter_name
|
|
499
|
+
@return_address = return_address
|
|
500
|
+
@return_at = return_at
|
|
501
|
+
@return_location_name = return_location_name
|
|
502
|
+
@tax_exempt = tax_exempt
|
|
503
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
508
|
+
class Affiliate < ::Stripe::RequestParams
|
|
509
|
+
# Affiliate partner code.
|
|
510
|
+
attr_accessor :code
|
|
511
|
+
# Name of affiliate partner.
|
|
512
|
+
attr_accessor :name
|
|
513
|
+
|
|
514
|
+
def initialize(code: nil, name: nil)
|
|
515
|
+
@code = code
|
|
516
|
+
@name = name
|
|
517
|
+
end
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
class Distance < ::Stripe::RequestParams
|
|
521
|
+
# Distance traveled.
|
|
522
|
+
attr_accessor :amount
|
|
523
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
524
|
+
attr_accessor :unit
|
|
525
|
+
|
|
526
|
+
def initialize(amount: nil, unit: nil)
|
|
527
|
+
@amount = amount
|
|
528
|
+
@unit = unit
|
|
529
|
+
end
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
class Driver < ::Stripe::RequestParams
|
|
533
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
534
|
+
# Day of birth (1-31).
|
|
535
|
+
attr_accessor :day
|
|
536
|
+
# Month of birth (1-12).
|
|
537
|
+
attr_accessor :month
|
|
538
|
+
# Year of birth (must be greater than 1900).
|
|
539
|
+
attr_accessor :year
|
|
540
|
+
|
|
541
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
542
|
+
@day = day
|
|
543
|
+
@month = month
|
|
544
|
+
@year = year
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
# Driver's date of birth.
|
|
548
|
+
attr_accessor :date_of_birth
|
|
549
|
+
# Driver's identification number.
|
|
550
|
+
attr_accessor :driver_identification_number
|
|
551
|
+
# Driver's tax number.
|
|
552
|
+
attr_accessor :driver_tax_number
|
|
553
|
+
# Driver's full name.
|
|
554
|
+
attr_accessor :name
|
|
555
|
+
|
|
556
|
+
def initialize(
|
|
557
|
+
date_of_birth: nil,
|
|
558
|
+
driver_identification_number: nil,
|
|
559
|
+
driver_tax_number: nil,
|
|
560
|
+
name: nil
|
|
561
|
+
)
|
|
562
|
+
@date_of_birth = date_of_birth
|
|
563
|
+
@driver_identification_number = driver_identification_number
|
|
564
|
+
@driver_tax_number = driver_tax_number
|
|
565
|
+
@name = name
|
|
566
|
+
end
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
class DropOff < ::Stripe::RequestParams
|
|
570
|
+
class Address < ::Stripe::RequestParams
|
|
571
|
+
# City, district, suburb, town, or village.
|
|
572
|
+
attr_accessor :city
|
|
573
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
574
|
+
attr_accessor :country
|
|
575
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
576
|
+
attr_accessor :line1
|
|
577
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
578
|
+
attr_accessor :line2
|
|
579
|
+
# ZIP or postal code.
|
|
580
|
+
attr_accessor :postal_code
|
|
581
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
582
|
+
attr_accessor :state
|
|
583
|
+
|
|
584
|
+
def initialize(
|
|
585
|
+
city: nil,
|
|
586
|
+
country: nil,
|
|
587
|
+
line1: nil,
|
|
588
|
+
line2: nil,
|
|
589
|
+
postal_code: nil,
|
|
590
|
+
state: nil
|
|
591
|
+
)
|
|
592
|
+
@city = city
|
|
593
|
+
@country = country
|
|
594
|
+
@line1 = line1
|
|
595
|
+
@line2 = line2
|
|
596
|
+
@postal_code = postal_code
|
|
597
|
+
@state = state
|
|
598
|
+
end
|
|
599
|
+
end
|
|
600
|
+
# Address of the rental location.
|
|
601
|
+
attr_accessor :address
|
|
602
|
+
# Location name.
|
|
603
|
+
attr_accessor :location_name
|
|
604
|
+
# Timestamp for the location.
|
|
605
|
+
attr_accessor :time
|
|
606
|
+
|
|
607
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
608
|
+
@address = address
|
|
609
|
+
@location_name = location_name
|
|
610
|
+
@time = time
|
|
611
|
+
end
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
class Insurance < ::Stripe::RequestParams
|
|
615
|
+
# Amount of the insurance coverage in cents.
|
|
616
|
+
attr_accessor :amount
|
|
617
|
+
# Currency of the insurance amount.
|
|
618
|
+
attr_accessor :currency
|
|
619
|
+
# Name of the insurance company.
|
|
620
|
+
attr_accessor :insurance_company_name
|
|
621
|
+
# Type of insurance coverage.
|
|
622
|
+
attr_accessor :insurance_type
|
|
623
|
+
|
|
624
|
+
def initialize(
|
|
625
|
+
amount: nil,
|
|
626
|
+
currency: nil,
|
|
627
|
+
insurance_company_name: nil,
|
|
628
|
+
insurance_type: nil
|
|
629
|
+
)
|
|
630
|
+
@amount = amount
|
|
631
|
+
@currency = currency
|
|
632
|
+
@insurance_company_name = insurance_company_name
|
|
633
|
+
@insurance_type = insurance_type
|
|
634
|
+
end
|
|
635
|
+
end
|
|
636
|
+
|
|
637
|
+
class Pickup < ::Stripe::RequestParams
|
|
638
|
+
class Address < ::Stripe::RequestParams
|
|
639
|
+
# City, district, suburb, town, or village.
|
|
640
|
+
attr_accessor :city
|
|
641
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
642
|
+
attr_accessor :country
|
|
643
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
644
|
+
attr_accessor :line1
|
|
645
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
646
|
+
attr_accessor :line2
|
|
647
|
+
# ZIP or postal code.
|
|
648
|
+
attr_accessor :postal_code
|
|
649
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
650
|
+
attr_accessor :state
|
|
651
|
+
|
|
652
|
+
def initialize(
|
|
653
|
+
city: nil,
|
|
654
|
+
country: nil,
|
|
655
|
+
line1: nil,
|
|
656
|
+
line2: nil,
|
|
657
|
+
postal_code: nil,
|
|
658
|
+
state: nil
|
|
659
|
+
)
|
|
660
|
+
@city = city
|
|
661
|
+
@country = country
|
|
662
|
+
@line1 = line1
|
|
663
|
+
@line2 = line2
|
|
664
|
+
@postal_code = postal_code
|
|
665
|
+
@state = state
|
|
666
|
+
end
|
|
667
|
+
end
|
|
668
|
+
# Address of the rental location.
|
|
669
|
+
attr_accessor :address
|
|
670
|
+
# Location name.
|
|
671
|
+
attr_accessor :location_name
|
|
672
|
+
# Timestamp for the location.
|
|
673
|
+
attr_accessor :time
|
|
674
|
+
|
|
675
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
676
|
+
@address = address
|
|
677
|
+
@location_name = location_name
|
|
678
|
+
@time = time
|
|
679
|
+
end
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
class Total < ::Stripe::RequestParams
|
|
683
|
+
class Discounts < ::Stripe::RequestParams
|
|
684
|
+
# Corporate client discount code.
|
|
685
|
+
attr_accessor :corporate_client_code
|
|
686
|
+
# Coupon code applied to the rental.
|
|
687
|
+
attr_accessor :coupon
|
|
688
|
+
# Maximum number of free miles or kilometers included.
|
|
689
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
690
|
+
|
|
691
|
+
def initialize(
|
|
692
|
+
corporate_client_code: nil,
|
|
693
|
+
coupon: nil,
|
|
694
|
+
maximum_free_miles_or_kilometers: nil
|
|
695
|
+
)
|
|
696
|
+
@corporate_client_code = corporate_client_code
|
|
697
|
+
@coupon = coupon
|
|
698
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
699
|
+
end
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
703
|
+
# Amount of the extra charge in cents.
|
|
704
|
+
attr_accessor :amount
|
|
705
|
+
# Type of extra charge.
|
|
706
|
+
attr_accessor :type
|
|
707
|
+
|
|
708
|
+
def initialize(amount: nil, type: nil)
|
|
709
|
+
@amount = amount
|
|
710
|
+
@type = type
|
|
711
|
+
end
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
class Tax < ::Stripe::RequestParams
|
|
715
|
+
class Tax < ::Stripe::RequestParams
|
|
716
|
+
# Tax amount.
|
|
717
|
+
attr_accessor :amount
|
|
718
|
+
# Tax rate applied.
|
|
719
|
+
attr_accessor :rate
|
|
720
|
+
# Type of tax applied.
|
|
721
|
+
attr_accessor :type
|
|
722
|
+
|
|
723
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
724
|
+
@amount = amount
|
|
725
|
+
@rate = rate
|
|
726
|
+
@type = type
|
|
727
|
+
end
|
|
728
|
+
end
|
|
729
|
+
# Indicates if the transaction is tax exempt.
|
|
730
|
+
attr_accessor :tax_exempt_indicator
|
|
731
|
+
# Array of tax details.
|
|
732
|
+
attr_accessor :taxes
|
|
733
|
+
|
|
734
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
735
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
736
|
+
@taxes = taxes
|
|
737
|
+
end
|
|
738
|
+
end
|
|
739
|
+
# Total amount in cents.
|
|
740
|
+
attr_accessor :amount
|
|
741
|
+
# Currency of the amount.
|
|
742
|
+
attr_accessor :currency
|
|
743
|
+
# Discount details for the rental.
|
|
744
|
+
attr_accessor :discounts
|
|
745
|
+
# Additional charges for the rental.
|
|
746
|
+
attr_accessor :extra_charges
|
|
747
|
+
# Rate per unit for the rental.
|
|
748
|
+
attr_accessor :rate_per_unit
|
|
749
|
+
# Unit of measurement for the rate.
|
|
750
|
+
attr_accessor :rate_unit
|
|
751
|
+
# Tax breakdown for the rental.
|
|
752
|
+
attr_accessor :tax
|
|
753
|
+
|
|
754
|
+
def initialize(
|
|
755
|
+
amount: nil,
|
|
756
|
+
currency: nil,
|
|
757
|
+
discounts: nil,
|
|
758
|
+
extra_charges: nil,
|
|
759
|
+
rate_per_unit: nil,
|
|
760
|
+
rate_unit: nil,
|
|
761
|
+
tax: nil
|
|
762
|
+
)
|
|
763
|
+
@amount = amount
|
|
764
|
+
@currency = currency
|
|
765
|
+
@discounts = discounts
|
|
766
|
+
@extra_charges = extra_charges
|
|
767
|
+
@rate_per_unit = rate_per_unit
|
|
768
|
+
@rate_unit = rate_unit
|
|
769
|
+
@tax = tax
|
|
770
|
+
end
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
class Vehicle < ::Stripe::RequestParams
|
|
774
|
+
# Make of the rental vehicle.
|
|
775
|
+
attr_accessor :make
|
|
776
|
+
# Model of the rental vehicle.
|
|
777
|
+
attr_accessor :model
|
|
778
|
+
# Odometer reading at the time of rental.
|
|
779
|
+
attr_accessor :odometer
|
|
780
|
+
# Type of the rental vehicle.
|
|
781
|
+
attr_accessor :type
|
|
782
|
+
# Class of the rental vehicle.
|
|
783
|
+
attr_accessor :vehicle_class
|
|
784
|
+
# Vehicle identification number (VIN).
|
|
785
|
+
attr_accessor :vehicle_identification_number
|
|
786
|
+
|
|
787
|
+
def initialize(
|
|
788
|
+
make: nil,
|
|
789
|
+
model: nil,
|
|
790
|
+
odometer: nil,
|
|
791
|
+
type: nil,
|
|
792
|
+
vehicle_class: nil,
|
|
793
|
+
vehicle_identification_number: nil
|
|
794
|
+
)
|
|
795
|
+
@make = make
|
|
796
|
+
@model = model
|
|
797
|
+
@odometer = odometer
|
|
798
|
+
@type = type
|
|
799
|
+
@vehicle_class = vehicle_class
|
|
800
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
801
|
+
end
|
|
802
|
+
end
|
|
803
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
804
|
+
attr_accessor :affiliate
|
|
805
|
+
# Booking confirmation number for the car rental.
|
|
806
|
+
attr_accessor :booking_number
|
|
807
|
+
# Name of the car rental company.
|
|
808
|
+
attr_accessor :carrier_name
|
|
809
|
+
# Customer service phone number for the car rental company.
|
|
810
|
+
attr_accessor :customer_service_phone_number
|
|
811
|
+
# Number of days the car is being rented.
|
|
812
|
+
attr_accessor :days_rented
|
|
813
|
+
# Distance details for the rental.
|
|
814
|
+
attr_accessor :distance
|
|
815
|
+
# List of drivers for the rental.
|
|
816
|
+
attr_accessor :drivers
|
|
817
|
+
# Drop-off location details.
|
|
818
|
+
attr_accessor :drop_off
|
|
819
|
+
# Insurance details for the rental.
|
|
820
|
+
attr_accessor :insurances
|
|
821
|
+
# Indicates if the customer was a no-show.
|
|
822
|
+
attr_accessor :no_show_indicator
|
|
823
|
+
# Pickup location details.
|
|
824
|
+
attr_accessor :pickup
|
|
825
|
+
# Name of the person renting the vehicle.
|
|
826
|
+
attr_accessor :renter_name
|
|
827
|
+
# Total cost breakdown for the rental.
|
|
828
|
+
attr_accessor :total
|
|
829
|
+
# Vehicle details for the rental.
|
|
830
|
+
attr_accessor :vehicle
|
|
831
|
+
|
|
832
|
+
def initialize(
|
|
833
|
+
affiliate: nil,
|
|
834
|
+
booking_number: nil,
|
|
835
|
+
carrier_name: nil,
|
|
836
|
+
customer_service_phone_number: nil,
|
|
837
|
+
days_rented: nil,
|
|
838
|
+
distance: nil,
|
|
839
|
+
drivers: nil,
|
|
840
|
+
drop_off: nil,
|
|
841
|
+
insurances: nil,
|
|
842
|
+
no_show_indicator: nil,
|
|
843
|
+
pickup: nil,
|
|
844
|
+
renter_name: nil,
|
|
845
|
+
total: nil,
|
|
846
|
+
vehicle: nil
|
|
847
|
+
)
|
|
848
|
+
@affiliate = affiliate
|
|
849
|
+
@booking_number = booking_number
|
|
850
|
+
@carrier_name = carrier_name
|
|
851
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
852
|
+
@days_rented = days_rented
|
|
853
|
+
@distance = distance
|
|
854
|
+
@drivers = drivers
|
|
855
|
+
@drop_off = drop_off
|
|
856
|
+
@insurances = insurances
|
|
857
|
+
@no_show_indicator = no_show_indicator
|
|
858
|
+
@pickup = pickup
|
|
859
|
+
@renter_name = renter_name
|
|
860
|
+
@total = total
|
|
861
|
+
@vehicle = vehicle
|
|
862
|
+
end
|
|
863
|
+
end
|
|
864
|
+
|
|
865
|
+
class EventDetails < ::Stripe::RequestParams
|
|
866
|
+
class Address < ::Stripe::RequestParams
|
|
867
|
+
# City, district, suburb, town, or village.
|
|
868
|
+
attr_accessor :city
|
|
869
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
870
|
+
attr_accessor :country
|
|
871
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
872
|
+
attr_accessor :line1
|
|
873
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
874
|
+
attr_accessor :line2
|
|
875
|
+
# ZIP or postal code.
|
|
876
|
+
attr_accessor :postal_code
|
|
877
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
878
|
+
attr_accessor :state
|
|
879
|
+
|
|
880
|
+
def initialize(
|
|
881
|
+
city: nil,
|
|
882
|
+
country: nil,
|
|
883
|
+
line1: nil,
|
|
884
|
+
line2: nil,
|
|
885
|
+
postal_code: nil,
|
|
886
|
+
state: nil
|
|
887
|
+
)
|
|
888
|
+
@city = city
|
|
889
|
+
@country = country
|
|
890
|
+
@line1 = line1
|
|
891
|
+
@line2 = line2
|
|
892
|
+
@postal_code = postal_code
|
|
893
|
+
@state = state
|
|
894
|
+
end
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
class Affiliate < ::Stripe::RequestParams
|
|
898
|
+
# The name of the affiliate that originated the purchase.
|
|
899
|
+
attr_accessor :name
|
|
900
|
+
|
|
901
|
+
def initialize(name: nil)
|
|
902
|
+
@name = name
|
|
903
|
+
end
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
class Delivery < ::Stripe::RequestParams
|
|
907
|
+
class Recipient < ::Stripe::RequestParams
|
|
908
|
+
# The email of the recipient the ticket is delivered to.
|
|
909
|
+
attr_accessor :email
|
|
910
|
+
# The name of the recipient the ticket is delivered to.
|
|
911
|
+
attr_accessor :name
|
|
912
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
913
|
+
attr_accessor :phone
|
|
914
|
+
|
|
915
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
916
|
+
@email = email
|
|
917
|
+
@name = name
|
|
918
|
+
@phone = phone
|
|
919
|
+
end
|
|
920
|
+
end
|
|
921
|
+
# The delivery method for the payment
|
|
922
|
+
attr_accessor :mode
|
|
923
|
+
# Details of the recipient.
|
|
924
|
+
attr_accessor :recipient
|
|
925
|
+
|
|
926
|
+
def initialize(mode: nil, recipient: nil)
|
|
927
|
+
@mode = mode
|
|
928
|
+
@recipient = recipient
|
|
929
|
+
end
|
|
930
|
+
end
|
|
931
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
932
|
+
attr_accessor :access_controlled_venue
|
|
933
|
+
# The event location's address.
|
|
934
|
+
attr_accessor :address
|
|
935
|
+
# Affiliate details for this purchase.
|
|
936
|
+
attr_accessor :affiliate
|
|
937
|
+
# The name of the company
|
|
938
|
+
attr_accessor :company
|
|
939
|
+
# Delivery details for this purchase.
|
|
940
|
+
attr_accessor :delivery
|
|
941
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
942
|
+
attr_accessor :ends_at
|
|
943
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
944
|
+
attr_accessor :genre
|
|
945
|
+
# The name of the event.
|
|
946
|
+
attr_accessor :name
|
|
947
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
948
|
+
attr_accessor :starts_at
|
|
949
|
+
|
|
950
|
+
def initialize(
|
|
951
|
+
access_controlled_venue: nil,
|
|
952
|
+
address: nil,
|
|
953
|
+
affiliate: nil,
|
|
954
|
+
company: nil,
|
|
955
|
+
delivery: nil,
|
|
956
|
+
ends_at: nil,
|
|
957
|
+
genre: nil,
|
|
958
|
+
name: nil,
|
|
959
|
+
starts_at: nil
|
|
960
|
+
)
|
|
961
|
+
@access_controlled_venue = access_controlled_venue
|
|
962
|
+
@address = address
|
|
963
|
+
@affiliate = affiliate
|
|
964
|
+
@company = company
|
|
965
|
+
@delivery = delivery
|
|
966
|
+
@ends_at = ends_at
|
|
967
|
+
@genre = genre
|
|
968
|
+
@name = name
|
|
969
|
+
@starts_at = starts_at
|
|
970
|
+
end
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
class Flight < ::Stripe::RequestParams
|
|
974
|
+
class Affiliate < ::Stripe::RequestParams
|
|
975
|
+
# The name of the affiliate that originated the purchase.
|
|
976
|
+
attr_accessor :name
|
|
977
|
+
|
|
978
|
+
def initialize(name: nil)
|
|
979
|
+
@name = name
|
|
980
|
+
end
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
class Delivery < ::Stripe::RequestParams
|
|
984
|
+
class Recipient < ::Stripe::RequestParams
|
|
985
|
+
# The email of the recipient the ticket is delivered to.
|
|
986
|
+
attr_accessor :email
|
|
987
|
+
# The name of the recipient the ticket is delivered to.
|
|
988
|
+
attr_accessor :name
|
|
989
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
990
|
+
attr_accessor :phone
|
|
991
|
+
|
|
992
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
993
|
+
@email = email
|
|
994
|
+
@name = name
|
|
995
|
+
@phone = phone
|
|
996
|
+
end
|
|
997
|
+
end
|
|
998
|
+
# The delivery method for the payment
|
|
999
|
+
attr_accessor :mode
|
|
1000
|
+
# Details of the recipient.
|
|
1001
|
+
attr_accessor :recipient
|
|
1002
|
+
|
|
1003
|
+
def initialize(mode: nil, recipient: nil)
|
|
1004
|
+
@mode = mode
|
|
1005
|
+
@recipient = recipient
|
|
1006
|
+
end
|
|
1007
|
+
end
|
|
1008
|
+
|
|
1009
|
+
class Passenger < ::Stripe::RequestParams
|
|
1010
|
+
# Full name of the person or entity on the flight reservation.
|
|
1011
|
+
attr_accessor :name
|
|
1012
|
+
|
|
1013
|
+
def initialize(name: nil)
|
|
1014
|
+
@name = name
|
|
1015
|
+
end
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
class Segment < ::Stripe::RequestParams
|
|
1019
|
+
# The flight segment amount.
|
|
1020
|
+
attr_accessor :amount
|
|
1021
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1022
|
+
attr_accessor :arrival_airport
|
|
1023
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1024
|
+
attr_accessor :arrives_at
|
|
1025
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1026
|
+
attr_accessor :carrier
|
|
1027
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1028
|
+
attr_accessor :departs_at
|
|
1029
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1030
|
+
attr_accessor :departure_airport
|
|
1031
|
+
# The flight number associated with the segment
|
|
1032
|
+
attr_accessor :flight_number
|
|
1033
|
+
# The fare class for the segment.
|
|
1034
|
+
attr_accessor :service_class
|
|
1035
|
+
|
|
1036
|
+
def initialize(
|
|
1037
|
+
amount: nil,
|
|
1038
|
+
arrival_airport: nil,
|
|
1039
|
+
arrives_at: nil,
|
|
1040
|
+
carrier: nil,
|
|
1041
|
+
departs_at: nil,
|
|
1042
|
+
departure_airport: nil,
|
|
1043
|
+
flight_number: nil,
|
|
1044
|
+
service_class: nil
|
|
1045
|
+
)
|
|
1046
|
+
@amount = amount
|
|
1047
|
+
@arrival_airport = arrival_airport
|
|
1048
|
+
@arrives_at = arrives_at
|
|
1049
|
+
@carrier = carrier
|
|
1050
|
+
@departs_at = departs_at
|
|
1051
|
+
@departure_airport = departure_airport
|
|
1052
|
+
@flight_number = flight_number
|
|
1053
|
+
@service_class = service_class
|
|
1054
|
+
end
|
|
1055
|
+
end
|
|
1056
|
+
# Affiliate details for this purchase.
|
|
1057
|
+
attr_accessor :affiliate
|
|
1058
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1059
|
+
attr_accessor :agency_number
|
|
1060
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1061
|
+
attr_accessor :carrier
|
|
1062
|
+
# Delivery details for this purchase.
|
|
1063
|
+
attr_accessor :delivery
|
|
1064
|
+
# The name of the person or entity on the reservation.
|
|
1065
|
+
attr_accessor :passenger_name
|
|
1066
|
+
# The details of the passengers in the travel reservation.
|
|
1067
|
+
attr_accessor :passengers
|
|
1068
|
+
# The individual flight segments associated with the trip.
|
|
1069
|
+
attr_accessor :segments
|
|
1070
|
+
# The ticket number associated with the travel reservation.
|
|
1071
|
+
attr_accessor :ticket_number
|
|
1072
|
+
|
|
1073
|
+
def initialize(
|
|
1074
|
+
affiliate: nil,
|
|
1075
|
+
agency_number: nil,
|
|
1076
|
+
carrier: nil,
|
|
1077
|
+
delivery: nil,
|
|
1078
|
+
passenger_name: nil,
|
|
1079
|
+
passengers: nil,
|
|
1080
|
+
segments: nil,
|
|
1081
|
+
ticket_number: nil
|
|
1082
|
+
)
|
|
1083
|
+
@affiliate = affiliate
|
|
1084
|
+
@agency_number = agency_number
|
|
1085
|
+
@carrier = carrier
|
|
1086
|
+
@delivery = delivery
|
|
1087
|
+
@passenger_name = passenger_name
|
|
1088
|
+
@passengers = passengers
|
|
1089
|
+
@segments = segments
|
|
1090
|
+
@ticket_number = ticket_number
|
|
1091
|
+
end
|
|
1092
|
+
end
|
|
1093
|
+
|
|
1094
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1095
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1096
|
+
# Affiliate partner code.
|
|
1097
|
+
attr_accessor :code
|
|
1098
|
+
# Name of affiliate partner.
|
|
1099
|
+
attr_accessor :name
|
|
1100
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1101
|
+
attr_accessor :travel_authorization_code
|
|
1102
|
+
|
|
1103
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1104
|
+
@code = code
|
|
1105
|
+
@name = name
|
|
1106
|
+
@travel_authorization_code = travel_authorization_code
|
|
1107
|
+
end
|
|
1108
|
+
end
|
|
1109
|
+
|
|
1110
|
+
class Insurance < ::Stripe::RequestParams
|
|
1111
|
+
# Insurance cost.
|
|
1112
|
+
attr_accessor :amount
|
|
1113
|
+
# Insurance currency.
|
|
1114
|
+
attr_accessor :currency
|
|
1115
|
+
# Insurance company name.
|
|
1116
|
+
attr_accessor :insurance_company_name
|
|
1117
|
+
# Type of insurance.
|
|
1118
|
+
attr_accessor :insurance_type
|
|
1119
|
+
|
|
1120
|
+
def initialize(
|
|
1121
|
+
amount: nil,
|
|
1122
|
+
currency: nil,
|
|
1123
|
+
insurance_company_name: nil,
|
|
1124
|
+
insurance_type: nil
|
|
1125
|
+
)
|
|
1126
|
+
@amount = amount
|
|
1127
|
+
@currency = currency
|
|
1128
|
+
@insurance_company_name = insurance_company_name
|
|
1129
|
+
@insurance_type = insurance_type
|
|
1130
|
+
end
|
|
1131
|
+
end
|
|
1132
|
+
|
|
1133
|
+
class Passenger < ::Stripe::RequestParams
|
|
1134
|
+
# Passenger's full name.
|
|
1135
|
+
attr_accessor :name
|
|
1136
|
+
|
|
1137
|
+
def initialize(name: nil)
|
|
1138
|
+
@name = name
|
|
1139
|
+
end
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
class Segment < ::Stripe::RequestParams
|
|
1143
|
+
class Arrival < ::Stripe::RequestParams
|
|
1144
|
+
# Arrival airport IATA code.
|
|
1145
|
+
attr_accessor :airport
|
|
1146
|
+
# Arrival date/time.
|
|
1147
|
+
attr_accessor :arrives_at
|
|
1148
|
+
# Arrival city.
|
|
1149
|
+
attr_accessor :city
|
|
1150
|
+
# Arrival country.
|
|
1151
|
+
attr_accessor :country
|
|
1152
|
+
|
|
1153
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1154
|
+
@airport = airport
|
|
1155
|
+
@arrives_at = arrives_at
|
|
1156
|
+
@city = city
|
|
1157
|
+
@country = country
|
|
1158
|
+
end
|
|
1159
|
+
end
|
|
1160
|
+
|
|
1161
|
+
class Departure < ::Stripe::RequestParams
|
|
1162
|
+
# Departure airport IATA code.
|
|
1163
|
+
attr_accessor :airport
|
|
1164
|
+
# Departure city.
|
|
1165
|
+
attr_accessor :city
|
|
1166
|
+
# Departure country.
|
|
1167
|
+
attr_accessor :country
|
|
1168
|
+
# Departure date/time.
|
|
1169
|
+
attr_accessor :departs_at
|
|
1170
|
+
|
|
1171
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1172
|
+
@airport = airport
|
|
1173
|
+
@city = city
|
|
1174
|
+
@country = country
|
|
1175
|
+
@departs_at = departs_at
|
|
1176
|
+
end
|
|
1177
|
+
end
|
|
1178
|
+
# Segment fare amount.
|
|
1179
|
+
attr_accessor :amount
|
|
1180
|
+
# Arrival details.
|
|
1181
|
+
attr_accessor :arrival
|
|
1182
|
+
# Airline carrier code.
|
|
1183
|
+
attr_accessor :carrier_code
|
|
1184
|
+
# Carrier name.
|
|
1185
|
+
attr_accessor :carrier_name
|
|
1186
|
+
# Segment currency.
|
|
1187
|
+
attr_accessor :currency
|
|
1188
|
+
# Departure details.
|
|
1189
|
+
attr_accessor :departure
|
|
1190
|
+
# Exchange ticket number.
|
|
1191
|
+
attr_accessor :exchange_ticket_number
|
|
1192
|
+
# Fare basis code.
|
|
1193
|
+
attr_accessor :fare_basis_code
|
|
1194
|
+
# Additional fees.
|
|
1195
|
+
attr_accessor :fees
|
|
1196
|
+
# Flight number.
|
|
1197
|
+
attr_accessor :flight_number
|
|
1198
|
+
# Stopover indicator.
|
|
1199
|
+
attr_accessor :is_stop_over_indicator
|
|
1200
|
+
# Refundable ticket indicator.
|
|
1201
|
+
attr_accessor :refundable
|
|
1202
|
+
# Class of service.
|
|
1203
|
+
attr_accessor :service_class
|
|
1204
|
+
# Tax amount for segment.
|
|
1205
|
+
attr_accessor :tax_amount
|
|
1206
|
+
# Ticket number.
|
|
1207
|
+
attr_accessor :ticket_number
|
|
1208
|
+
|
|
1209
|
+
def initialize(
|
|
1210
|
+
amount: nil,
|
|
1211
|
+
arrival: nil,
|
|
1212
|
+
carrier_code: nil,
|
|
1213
|
+
carrier_name: nil,
|
|
1214
|
+
currency: nil,
|
|
1215
|
+
departure: nil,
|
|
1216
|
+
exchange_ticket_number: nil,
|
|
1217
|
+
fare_basis_code: nil,
|
|
1218
|
+
fees: nil,
|
|
1219
|
+
flight_number: nil,
|
|
1220
|
+
is_stop_over_indicator: nil,
|
|
1221
|
+
refundable: nil,
|
|
1222
|
+
service_class: nil,
|
|
1223
|
+
tax_amount: nil,
|
|
1224
|
+
ticket_number: nil
|
|
1225
|
+
)
|
|
1226
|
+
@amount = amount
|
|
1227
|
+
@arrival = arrival
|
|
1228
|
+
@carrier_code = carrier_code
|
|
1229
|
+
@carrier_name = carrier_name
|
|
1230
|
+
@currency = currency
|
|
1231
|
+
@departure = departure
|
|
1232
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1233
|
+
@fare_basis_code = fare_basis_code
|
|
1234
|
+
@fees = fees
|
|
1235
|
+
@flight_number = flight_number
|
|
1236
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1237
|
+
@refundable = refundable
|
|
1238
|
+
@service_class = service_class
|
|
1239
|
+
@tax_amount = tax_amount
|
|
1240
|
+
@ticket_number = ticket_number
|
|
1241
|
+
end
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1244
|
+
class Total < ::Stripe::RequestParams
|
|
1245
|
+
class Discounts < ::Stripe::RequestParams
|
|
1246
|
+
# Corporate client discount code.
|
|
1247
|
+
attr_accessor :corporate_client_code
|
|
1248
|
+
|
|
1249
|
+
def initialize(corporate_client_code: nil)
|
|
1250
|
+
@corporate_client_code = corporate_client_code
|
|
1251
|
+
end
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1255
|
+
# Amount of additional charges.
|
|
1256
|
+
attr_accessor :amount
|
|
1257
|
+
# Type of additional charges.
|
|
1258
|
+
attr_accessor :type
|
|
1259
|
+
|
|
1260
|
+
def initialize(amount: nil, type: nil)
|
|
1261
|
+
@amount = amount
|
|
1262
|
+
@type = type
|
|
1263
|
+
end
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
class Tax < ::Stripe::RequestParams
|
|
1267
|
+
class Tax < ::Stripe::RequestParams
|
|
1268
|
+
# Tax amount.
|
|
1269
|
+
attr_accessor :amount
|
|
1270
|
+
# Tax rate.
|
|
1271
|
+
attr_accessor :rate
|
|
1272
|
+
# Type of tax.
|
|
1273
|
+
attr_accessor :type
|
|
1274
|
+
|
|
1275
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1276
|
+
@amount = amount
|
|
1277
|
+
@rate = rate
|
|
1278
|
+
@type = type
|
|
1279
|
+
end
|
|
1280
|
+
end
|
|
1281
|
+
# Array of tax details.
|
|
1282
|
+
attr_accessor :taxes
|
|
1283
|
+
|
|
1284
|
+
def initialize(taxes: nil)
|
|
1285
|
+
@taxes = taxes
|
|
1286
|
+
end
|
|
1287
|
+
end
|
|
1288
|
+
# Total flight amount.
|
|
1289
|
+
attr_accessor :amount
|
|
1290
|
+
# Reason for credit.
|
|
1291
|
+
attr_accessor :credit_reason
|
|
1292
|
+
# Total currency.
|
|
1293
|
+
attr_accessor :currency
|
|
1294
|
+
# Discount details.
|
|
1295
|
+
attr_accessor :discounts
|
|
1296
|
+
# Additional charges.
|
|
1297
|
+
attr_accessor :extra_charges
|
|
1298
|
+
# Tax breakdown.
|
|
1299
|
+
attr_accessor :tax
|
|
1300
|
+
|
|
1301
|
+
def initialize(
|
|
1302
|
+
amount: nil,
|
|
1303
|
+
credit_reason: nil,
|
|
1304
|
+
currency: nil,
|
|
1305
|
+
discounts: nil,
|
|
1306
|
+
extra_charges: nil,
|
|
1307
|
+
tax: nil
|
|
1308
|
+
)
|
|
1309
|
+
@amount = amount
|
|
1310
|
+
@credit_reason = credit_reason
|
|
1311
|
+
@currency = currency
|
|
1312
|
+
@discounts = discounts
|
|
1313
|
+
@extra_charges = extra_charges
|
|
1314
|
+
@tax = tax
|
|
1315
|
+
end
|
|
1316
|
+
end
|
|
1317
|
+
# Affiliate details if applicable.
|
|
1318
|
+
attr_accessor :affiliate
|
|
1319
|
+
# Reservation reference.
|
|
1320
|
+
attr_accessor :booking_number
|
|
1321
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1322
|
+
attr_accessor :computerized_reservation_system
|
|
1323
|
+
# Ticket restrictions.
|
|
1324
|
+
attr_accessor :endorsements_and_restrictions
|
|
1325
|
+
# List of insurances.
|
|
1326
|
+
attr_accessor :insurances
|
|
1327
|
+
# List of passengers.
|
|
1328
|
+
attr_accessor :passengers
|
|
1329
|
+
# List of flight segments.
|
|
1330
|
+
attr_accessor :segments
|
|
1331
|
+
# Electronic ticket indicator.
|
|
1332
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1333
|
+
# Total cost breakdown.
|
|
1334
|
+
attr_accessor :total
|
|
1335
|
+
# Type of flight transaction.
|
|
1336
|
+
attr_accessor :transaction_type
|
|
1337
|
+
|
|
1338
|
+
def initialize(
|
|
1339
|
+
affiliate: nil,
|
|
1340
|
+
booking_number: nil,
|
|
1341
|
+
computerized_reservation_system: nil,
|
|
1342
|
+
endorsements_and_restrictions: nil,
|
|
1343
|
+
insurances: nil,
|
|
1344
|
+
passengers: nil,
|
|
1345
|
+
segments: nil,
|
|
1346
|
+
ticket_electronically_issued_indicator: nil,
|
|
1347
|
+
total: nil,
|
|
1348
|
+
transaction_type: nil
|
|
1349
|
+
)
|
|
1350
|
+
@affiliate = affiliate
|
|
1351
|
+
@booking_number = booking_number
|
|
1352
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1353
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1354
|
+
@insurances = insurances
|
|
1355
|
+
@passengers = passengers
|
|
1356
|
+
@segments = segments
|
|
1357
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1358
|
+
@total = total
|
|
1359
|
+
@transaction_type = transaction_type
|
|
1360
|
+
end
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
class Lodging < ::Stripe::RequestParams
|
|
1364
|
+
class Address < ::Stripe::RequestParams
|
|
1365
|
+
# City, district, suburb, town, or village.
|
|
1366
|
+
attr_accessor :city
|
|
1367
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1368
|
+
attr_accessor :country
|
|
1369
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1370
|
+
attr_accessor :line1
|
|
1371
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1372
|
+
attr_accessor :line2
|
|
1373
|
+
# ZIP or postal code.
|
|
1374
|
+
attr_accessor :postal_code
|
|
1375
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1376
|
+
attr_accessor :state
|
|
1377
|
+
|
|
1378
|
+
def initialize(
|
|
1379
|
+
city: nil,
|
|
1380
|
+
country: nil,
|
|
1381
|
+
line1: nil,
|
|
1382
|
+
line2: nil,
|
|
1383
|
+
postal_code: nil,
|
|
1384
|
+
state: nil
|
|
1385
|
+
)
|
|
1386
|
+
@city = city
|
|
1387
|
+
@country = country
|
|
1388
|
+
@line1 = line1
|
|
1389
|
+
@line2 = line2
|
|
1390
|
+
@postal_code = postal_code
|
|
1391
|
+
@state = state
|
|
1392
|
+
end
|
|
1393
|
+
end
|
|
1394
|
+
|
|
1395
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1396
|
+
# The name of the affiliate that originated the purchase.
|
|
1397
|
+
attr_accessor :name
|
|
1398
|
+
|
|
1399
|
+
def initialize(name: nil)
|
|
1400
|
+
@name = name
|
|
1401
|
+
end
|
|
1402
|
+
end
|
|
1403
|
+
|
|
1404
|
+
class Delivery < ::Stripe::RequestParams
|
|
1405
|
+
class Recipient < ::Stripe::RequestParams
|
|
1406
|
+
# The email of the recipient the ticket is delivered to.
|
|
1407
|
+
attr_accessor :email
|
|
1408
|
+
# The name of the recipient the ticket is delivered to.
|
|
1409
|
+
attr_accessor :name
|
|
1410
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1411
|
+
attr_accessor :phone
|
|
1412
|
+
|
|
1413
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1414
|
+
@email = email
|
|
1415
|
+
@name = name
|
|
1416
|
+
@phone = phone
|
|
1417
|
+
end
|
|
1418
|
+
end
|
|
1419
|
+
# The delivery method for the payment
|
|
1420
|
+
attr_accessor :mode
|
|
1421
|
+
# Details of the recipient.
|
|
1422
|
+
attr_accessor :recipient
|
|
1423
|
+
|
|
1424
|
+
def initialize(mode: nil, recipient: nil)
|
|
1425
|
+
@mode = mode
|
|
1426
|
+
@recipient = recipient
|
|
1427
|
+
end
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
class Passenger < ::Stripe::RequestParams
|
|
1431
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1432
|
+
attr_accessor :name
|
|
1433
|
+
|
|
1434
|
+
def initialize(name: nil)
|
|
1435
|
+
@name = name
|
|
1436
|
+
end
|
|
1437
|
+
end
|
|
1438
|
+
# The lodging location's address.
|
|
1439
|
+
attr_accessor :address
|
|
1440
|
+
# The number of adults on the booking
|
|
1441
|
+
attr_accessor :adults
|
|
1442
|
+
# Affiliate details for this purchase.
|
|
1443
|
+
attr_accessor :affiliate
|
|
1444
|
+
# The booking number associated with the lodging reservation.
|
|
1445
|
+
attr_accessor :booking_number
|
|
1446
|
+
# The lodging category
|
|
1447
|
+
attr_accessor :category
|
|
1448
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1449
|
+
attr_accessor :checkin_at
|
|
1450
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1451
|
+
attr_accessor :checkout_at
|
|
1452
|
+
# The customer service phone number of the lodging company.
|
|
1453
|
+
attr_accessor :customer_service_phone_number
|
|
1454
|
+
# The daily lodging room rate.
|
|
1455
|
+
attr_accessor :daily_room_rate_amount
|
|
1456
|
+
# Delivery details for this purchase.
|
|
1457
|
+
attr_accessor :delivery
|
|
1458
|
+
# List of additional charges being billed.
|
|
1459
|
+
attr_accessor :extra_charges
|
|
1460
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1461
|
+
attr_accessor :fire_safety_act_compliance
|
|
1462
|
+
# The name of the lodging location.
|
|
1463
|
+
attr_accessor :name
|
|
1464
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1465
|
+
attr_accessor :no_show
|
|
1466
|
+
# The number of rooms on the booking
|
|
1467
|
+
attr_accessor :number_of_rooms
|
|
1468
|
+
# The details of the passengers in the travel reservation
|
|
1469
|
+
attr_accessor :passengers
|
|
1470
|
+
# The phone number of the lodging location.
|
|
1471
|
+
attr_accessor :property_phone_number
|
|
1472
|
+
# The room class for this purchase.
|
|
1473
|
+
attr_accessor :room_class
|
|
1474
|
+
# The number of room nights
|
|
1475
|
+
attr_accessor :room_nights
|
|
1476
|
+
# The total tax amount associating with the room reservation.
|
|
1477
|
+
attr_accessor :total_room_tax_amount
|
|
1478
|
+
# The total tax amount
|
|
1479
|
+
attr_accessor :total_tax_amount
|
|
1480
|
+
|
|
1481
|
+
def initialize(
|
|
1482
|
+
address: nil,
|
|
1483
|
+
adults: nil,
|
|
1484
|
+
affiliate: nil,
|
|
1485
|
+
booking_number: nil,
|
|
1486
|
+
category: nil,
|
|
1487
|
+
checkin_at: nil,
|
|
1488
|
+
checkout_at: nil,
|
|
1489
|
+
customer_service_phone_number: nil,
|
|
1490
|
+
daily_room_rate_amount: nil,
|
|
1491
|
+
delivery: nil,
|
|
1492
|
+
extra_charges: nil,
|
|
1493
|
+
fire_safety_act_compliance: nil,
|
|
1494
|
+
name: nil,
|
|
1495
|
+
no_show: nil,
|
|
1496
|
+
number_of_rooms: nil,
|
|
1497
|
+
passengers: nil,
|
|
1498
|
+
property_phone_number: nil,
|
|
1499
|
+
room_class: nil,
|
|
1500
|
+
room_nights: nil,
|
|
1501
|
+
total_room_tax_amount: nil,
|
|
1502
|
+
total_tax_amount: nil
|
|
121
1503
|
)
|
|
122
|
-
@
|
|
123
|
-
@
|
|
124
|
-
@
|
|
125
|
-
@
|
|
126
|
-
@
|
|
127
|
-
@
|
|
128
|
-
@
|
|
129
|
-
@
|
|
1504
|
+
@address = address
|
|
1505
|
+
@adults = adults
|
|
1506
|
+
@affiliate = affiliate
|
|
1507
|
+
@booking_number = booking_number
|
|
1508
|
+
@category = category
|
|
1509
|
+
@checkin_at = checkin_at
|
|
1510
|
+
@checkout_at = checkout_at
|
|
1511
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1512
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1513
|
+
@delivery = delivery
|
|
1514
|
+
@extra_charges = extra_charges
|
|
1515
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1516
|
+
@name = name
|
|
1517
|
+
@no_show = no_show
|
|
1518
|
+
@number_of_rooms = number_of_rooms
|
|
1519
|
+
@passengers = passengers
|
|
1520
|
+
@property_phone_number = property_phone_number
|
|
1521
|
+
@room_class = room_class
|
|
1522
|
+
@room_nights = room_nights
|
|
1523
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1524
|
+
@total_tax_amount = total_tax_amount
|
|
130
1525
|
end
|
|
131
1526
|
end
|
|
132
1527
|
|
|
133
|
-
class
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
1528
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1529
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1530
|
+
# Type of accommodation.
|
|
1531
|
+
attr_accessor :accommodation_type
|
|
1532
|
+
# Bed type.
|
|
1533
|
+
attr_accessor :bed_type
|
|
1534
|
+
# Daily accommodation rate in cents.
|
|
1535
|
+
attr_accessor :daily_rate_amount
|
|
1536
|
+
# Number of nights.
|
|
1537
|
+
attr_accessor :nights
|
|
1538
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1539
|
+
attr_accessor :number_of_rooms
|
|
1540
|
+
# Rate type.
|
|
1541
|
+
attr_accessor :rate_type
|
|
1542
|
+
# Whether smoking is allowed.
|
|
1543
|
+
attr_accessor :smoking_indicator
|
|
140
1544
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
1545
|
+
def initialize(
|
|
1546
|
+
accommodation_type: nil,
|
|
1547
|
+
bed_type: nil,
|
|
1548
|
+
daily_rate_amount: nil,
|
|
1549
|
+
nights: nil,
|
|
1550
|
+
number_of_rooms: nil,
|
|
1551
|
+
rate_type: nil,
|
|
1552
|
+
smoking_indicator: nil
|
|
1553
|
+
)
|
|
1554
|
+
@accommodation_type = accommodation_type
|
|
1555
|
+
@bed_type = bed_type
|
|
1556
|
+
@daily_rate_amount = daily_rate_amount
|
|
1557
|
+
@nights = nights
|
|
1558
|
+
@number_of_rooms = number_of_rooms
|
|
1559
|
+
@rate_type = rate_type
|
|
1560
|
+
@smoking_indicator = smoking_indicator
|
|
1561
|
+
end
|
|
145
1562
|
end
|
|
146
|
-
end
|
|
147
1563
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
1564
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1565
|
+
# Affiliate partner code.
|
|
1566
|
+
attr_accessor :code
|
|
1567
|
+
# Affiliate partner name.
|
|
1568
|
+
attr_accessor :name
|
|
153
1569
|
|
|
154
|
-
|
|
155
|
-
|
|
1570
|
+
def initialize(code: nil, name: nil)
|
|
1571
|
+
@code = code
|
|
1572
|
+
@name = name
|
|
1573
|
+
end
|
|
156
1574
|
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
1575
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
line_items: nil,
|
|
179
|
-
shipping: nil,
|
|
180
|
-
tax: nil
|
|
181
|
-
)
|
|
182
|
-
@discount_amount = discount_amount
|
|
183
|
-
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
184
|
-
@line_items = line_items
|
|
185
|
-
@shipping = shipping
|
|
186
|
-
@tax = tax
|
|
187
|
-
end
|
|
188
|
-
end
|
|
1576
|
+
class Guest < ::Stripe::RequestParams
|
|
1577
|
+
# Guest's full name.
|
|
1578
|
+
attr_accessor :name
|
|
189
1579
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
attr_accessor :calculation
|
|
1580
|
+
def initialize(name: nil)
|
|
1581
|
+
@name = name
|
|
1582
|
+
end
|
|
1583
|
+
end
|
|
195
1584
|
|
|
196
|
-
|
|
197
|
-
|
|
1585
|
+
class Host < ::Stripe::RequestParams
|
|
1586
|
+
class Address < ::Stripe::RequestParams
|
|
1587
|
+
# City, district, suburb, town, or village.
|
|
1588
|
+
attr_accessor :city
|
|
1589
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1590
|
+
attr_accessor :country
|
|
1591
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1592
|
+
attr_accessor :line1
|
|
1593
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1594
|
+
attr_accessor :line2
|
|
1595
|
+
# ZIP or postal code.
|
|
1596
|
+
attr_accessor :postal_code
|
|
1597
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1598
|
+
attr_accessor :state
|
|
1599
|
+
|
|
1600
|
+
def initialize(
|
|
1601
|
+
city: nil,
|
|
1602
|
+
country: nil,
|
|
1603
|
+
line1: nil,
|
|
1604
|
+
line2: nil,
|
|
1605
|
+
postal_code: nil,
|
|
1606
|
+
state: nil
|
|
1607
|
+
)
|
|
1608
|
+
@city = city
|
|
1609
|
+
@country = country
|
|
1610
|
+
@line1 = line1
|
|
1611
|
+
@line2 = line2
|
|
1612
|
+
@postal_code = postal_code
|
|
1613
|
+
@state = state
|
|
1614
|
+
end
|
|
1615
|
+
end
|
|
1616
|
+
# Address of the host.
|
|
1617
|
+
attr_accessor :address
|
|
1618
|
+
# Host's country of domicile.
|
|
1619
|
+
attr_accessor :country_of_domicile
|
|
1620
|
+
# Reference number for the host.
|
|
1621
|
+
attr_accessor :host_reference
|
|
1622
|
+
# Type of host.
|
|
1623
|
+
attr_accessor :host_type
|
|
1624
|
+
# Name of the lodging property or host.
|
|
1625
|
+
attr_accessor :name
|
|
1626
|
+
# Total number of reservations for the host.
|
|
1627
|
+
attr_accessor :number_of_reservations
|
|
1628
|
+
# Property phone number.
|
|
1629
|
+
attr_accessor :property_phone_number
|
|
1630
|
+
# Host's registration date.
|
|
1631
|
+
attr_accessor :registered_at
|
|
1632
|
+
|
|
1633
|
+
def initialize(
|
|
1634
|
+
address: nil,
|
|
1635
|
+
country_of_domicile: nil,
|
|
1636
|
+
host_reference: nil,
|
|
1637
|
+
host_type: nil,
|
|
1638
|
+
name: nil,
|
|
1639
|
+
number_of_reservations: nil,
|
|
1640
|
+
property_phone_number: nil,
|
|
1641
|
+
registered_at: nil
|
|
1642
|
+
)
|
|
1643
|
+
@address = address
|
|
1644
|
+
@country_of_domicile = country_of_domicile
|
|
1645
|
+
@host_reference = host_reference
|
|
1646
|
+
@host_type = host_type
|
|
1647
|
+
@name = name
|
|
1648
|
+
@number_of_reservations = number_of_reservations
|
|
1649
|
+
@property_phone_number = property_phone_number
|
|
1650
|
+
@registered_at = registered_at
|
|
198
1651
|
end
|
|
199
1652
|
end
|
|
200
|
-
# Tax arguments for automations
|
|
201
|
-
attr_accessor :tax
|
|
202
1653
|
|
|
203
|
-
|
|
204
|
-
|
|
1654
|
+
class Insurance < ::Stripe::RequestParams
|
|
1655
|
+
# Price of the insurance coverage in cents.
|
|
1656
|
+
attr_accessor :amount
|
|
1657
|
+
# Currency of the insurance amount.
|
|
1658
|
+
attr_accessor :currency
|
|
1659
|
+
# Name of the insurance company.
|
|
1660
|
+
attr_accessor :insurance_company_name
|
|
1661
|
+
# Type of insurance coverage.
|
|
1662
|
+
attr_accessor :insurance_type
|
|
1663
|
+
|
|
1664
|
+
def initialize(
|
|
1665
|
+
amount: nil,
|
|
1666
|
+
currency: nil,
|
|
1667
|
+
insurance_company_name: nil,
|
|
1668
|
+
insurance_type: nil
|
|
1669
|
+
)
|
|
1670
|
+
@amount = amount
|
|
1671
|
+
@currency = currency
|
|
1672
|
+
@insurance_company_name = insurance_company_name
|
|
1673
|
+
@insurance_type = insurance_type
|
|
1674
|
+
end
|
|
205
1675
|
end
|
|
206
|
-
end
|
|
207
|
-
# Arguments passed in automations
|
|
208
|
-
attr_accessor :inputs
|
|
209
1676
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
1677
|
+
class Total < ::Stripe::RequestParams
|
|
1678
|
+
class Discounts < ::Stripe::RequestParams
|
|
1679
|
+
# Corporate client discount code.
|
|
1680
|
+
attr_accessor :corporate_client_code
|
|
1681
|
+
# Coupon code.
|
|
1682
|
+
attr_accessor :coupon
|
|
214
1683
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
1684
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1685
|
+
@corporate_client_code = corporate_client_code
|
|
1686
|
+
@coupon = coupon
|
|
1687
|
+
end
|
|
1688
|
+
end
|
|
218
1689
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
1690
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1691
|
+
# Amount of the extra charge in cents.
|
|
1692
|
+
attr_accessor :amount
|
|
1693
|
+
# Type of extra charge.
|
|
1694
|
+
attr_accessor :type
|
|
224
1695
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1696
|
+
def initialize(amount: nil, type: nil)
|
|
1697
|
+
@amount = amount
|
|
1698
|
+
@type = type
|
|
1699
|
+
end
|
|
1700
|
+
end
|
|
1701
|
+
|
|
1702
|
+
class Tax < ::Stripe::RequestParams
|
|
1703
|
+
class Tax < ::Stripe::RequestParams
|
|
1704
|
+
# Tax amount in cents.
|
|
1705
|
+
attr_accessor :amount
|
|
1706
|
+
# Tax rate.
|
|
1707
|
+
attr_accessor :rate
|
|
1708
|
+
# Type of tax applied.
|
|
1709
|
+
attr_accessor :type
|
|
1710
|
+
|
|
1711
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1712
|
+
@amount = amount
|
|
1713
|
+
@rate = rate
|
|
1714
|
+
@type = type
|
|
1715
|
+
end
|
|
1716
|
+
end
|
|
1717
|
+
# Indicates whether the transaction is tax exempt.
|
|
1718
|
+
attr_accessor :tax_exempt_indicator
|
|
1719
|
+
# Tax details.
|
|
1720
|
+
attr_accessor :taxes
|
|
1721
|
+
|
|
1722
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1723
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1724
|
+
@taxes = taxes
|
|
1725
|
+
end
|
|
1726
|
+
end
|
|
1727
|
+
# Total price of the lodging reservation in cents.
|
|
1728
|
+
attr_accessor :amount
|
|
1729
|
+
# Cash advances in cents.
|
|
1730
|
+
attr_accessor :cash_advances
|
|
1731
|
+
# Currency of the total amount.
|
|
1732
|
+
attr_accessor :currency
|
|
1733
|
+
# Discount details for the lodging.
|
|
1734
|
+
attr_accessor :discounts
|
|
1735
|
+
# Additional charges for the lodging.
|
|
1736
|
+
attr_accessor :extra_charges
|
|
1737
|
+
# Prepaid amount in cents.
|
|
1738
|
+
attr_accessor :prepaid_amount
|
|
1739
|
+
# Tax breakdown for the lodging reservation.
|
|
1740
|
+
attr_accessor :tax
|
|
1741
|
+
|
|
1742
|
+
def initialize(
|
|
1743
|
+
amount: nil,
|
|
1744
|
+
cash_advances: nil,
|
|
1745
|
+
currency: nil,
|
|
1746
|
+
discounts: nil,
|
|
1747
|
+
extra_charges: nil,
|
|
1748
|
+
prepaid_amount: nil,
|
|
1749
|
+
tax: nil
|
|
1750
|
+
)
|
|
1751
|
+
@amount = amount
|
|
1752
|
+
@cash_advances = cash_advances
|
|
1753
|
+
@currency = currency
|
|
1754
|
+
@discounts = discounts
|
|
1755
|
+
@extra_charges = extra_charges
|
|
1756
|
+
@prepaid_amount = prepaid_amount
|
|
1757
|
+
@tax = tax
|
|
228
1758
|
end
|
|
229
1759
|
end
|
|
230
|
-
#
|
|
231
|
-
attr_accessor :
|
|
232
|
-
#
|
|
233
|
-
attr_accessor :
|
|
234
|
-
#
|
|
235
|
-
attr_accessor :
|
|
236
|
-
#
|
|
237
|
-
attr_accessor :
|
|
1760
|
+
# Accommodation details for the lodging.
|
|
1761
|
+
attr_accessor :accommodation
|
|
1762
|
+
# Affiliate details if applicable.
|
|
1763
|
+
attr_accessor :affiliate
|
|
1764
|
+
# Booking confirmation number for the lodging.
|
|
1765
|
+
attr_accessor :booking_number
|
|
1766
|
+
# Check-in date.
|
|
1767
|
+
attr_accessor :checkin_at
|
|
1768
|
+
# Check-out date.
|
|
1769
|
+
attr_accessor :checkout_at
|
|
1770
|
+
# Customer service phone number for the lodging company.
|
|
1771
|
+
attr_accessor :customer_service_phone_number
|
|
1772
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1773
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1774
|
+
# List of guests for the lodging.
|
|
1775
|
+
attr_accessor :guests
|
|
1776
|
+
# Host details for the lodging.
|
|
1777
|
+
attr_accessor :host
|
|
1778
|
+
# List of insurances for the lodging.
|
|
1779
|
+
attr_accessor :insurances
|
|
1780
|
+
# Whether the renter is a no-show.
|
|
1781
|
+
attr_accessor :no_show_indicator
|
|
1782
|
+
# Renter ID number for the lodging.
|
|
1783
|
+
attr_accessor :renter_id_number
|
|
1784
|
+
# Renter name for the lodging.
|
|
1785
|
+
attr_accessor :renter_name
|
|
1786
|
+
# Total details for the lodging.
|
|
1787
|
+
attr_accessor :total
|
|
238
1788
|
|
|
239
|
-
def initialize(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
1789
|
+
def initialize(
|
|
1790
|
+
accommodation: nil,
|
|
1791
|
+
affiliate: nil,
|
|
1792
|
+
booking_number: nil,
|
|
1793
|
+
checkin_at: nil,
|
|
1794
|
+
checkout_at: nil,
|
|
1795
|
+
customer_service_phone_number: nil,
|
|
1796
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1797
|
+
guests: nil,
|
|
1798
|
+
host: nil,
|
|
1799
|
+
insurances: nil,
|
|
1800
|
+
no_show_indicator: nil,
|
|
1801
|
+
renter_id_number: nil,
|
|
1802
|
+
renter_name: nil,
|
|
1803
|
+
total: nil
|
|
1804
|
+
)
|
|
1805
|
+
@accommodation = accommodation
|
|
1806
|
+
@affiliate = affiliate
|
|
1807
|
+
@booking_number = booking_number
|
|
1808
|
+
@checkin_at = checkin_at
|
|
1809
|
+
@checkout_at = checkout_at
|
|
1810
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1811
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1812
|
+
@guests = guests
|
|
1813
|
+
@host = host
|
|
1814
|
+
@insurances = insurances
|
|
1815
|
+
@no_show_indicator = no_show_indicator
|
|
1816
|
+
@renter_id_number = renter_id_number
|
|
1817
|
+
@renter_name = renter_name
|
|
1818
|
+
@total = total
|
|
244
1819
|
end
|
|
245
1820
|
end
|
|
246
|
-
# This hash contains details about the customer acceptance of the Mandate.
|
|
247
|
-
attr_accessor :customer_acceptance
|
|
248
1821
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
1822
|
+
class Subscription < ::Stripe::RequestParams
|
|
1823
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1824
|
+
# The name of the affiliate that originated the purchase.
|
|
1825
|
+
attr_accessor :name
|
|
253
1826
|
|
|
254
|
-
|
|
1827
|
+
def initialize(name: nil)
|
|
1828
|
+
@name = name
|
|
1829
|
+
end
|
|
1830
|
+
end
|
|
1831
|
+
|
|
1832
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1833
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1834
|
+
attr_accessor :count
|
|
1835
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1836
|
+
attr_accessor :interval
|
|
1837
|
+
|
|
1838
|
+
def initialize(count: nil, interval: nil)
|
|
1839
|
+
@count = count
|
|
1840
|
+
@interval = interval
|
|
1841
|
+
end
|
|
1842
|
+
end
|
|
1843
|
+
# Affiliate details for this purchase.
|
|
1844
|
+
attr_accessor :affiliate
|
|
1845
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1846
|
+
attr_accessor :auto_renewal
|
|
1847
|
+
# Subscription billing details for this purchase.
|
|
1848
|
+
attr_accessor :billing_interval
|
|
1849
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1850
|
+
attr_accessor :ends_at
|
|
1851
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1852
|
+
attr_accessor :name
|
|
1853
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1854
|
+
attr_accessor :starts_at
|
|
1855
|
+
|
|
1856
|
+
def initialize(
|
|
1857
|
+
affiliate: nil,
|
|
1858
|
+
auto_renewal: nil,
|
|
1859
|
+
billing_interval: nil,
|
|
1860
|
+
ends_at: nil,
|
|
1861
|
+
name: nil,
|
|
1862
|
+
starts_at: nil
|
|
1863
|
+
)
|
|
1864
|
+
@affiliate = affiliate
|
|
1865
|
+
@auto_renewal = auto_renewal
|
|
1866
|
+
@billing_interval = billing_interval
|
|
1867
|
+
@ends_at = ends_at
|
|
1868
|
+
@name = name
|
|
1869
|
+
@starts_at = starts_at
|
|
1870
|
+
end
|
|
1871
|
+
end
|
|
1872
|
+
# Benefit details for this PaymentIntent
|
|
1873
|
+
attr_accessor :benefit
|
|
1874
|
+
# Car rental details for this PaymentIntent.
|
|
1875
|
+
attr_accessor :car_rental
|
|
1876
|
+
# Car rental data for this PaymentIntent.
|
|
1877
|
+
attr_accessor :car_rental_data
|
|
255
1878
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
256
1879
|
#
|
|
257
1880
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
258
1881
|
attr_accessor :customer_reference
|
|
1882
|
+
# Event details for this PaymentIntent
|
|
1883
|
+
attr_accessor :event_details
|
|
1884
|
+
# Flight reservation details for this PaymentIntent
|
|
1885
|
+
attr_accessor :flight
|
|
1886
|
+
# Flight data for this PaymentIntent.
|
|
1887
|
+
attr_accessor :flight_data
|
|
1888
|
+
# Lodging reservation details for this PaymentIntent
|
|
1889
|
+
attr_accessor :lodging
|
|
1890
|
+
# Lodging data for this PaymentIntent.
|
|
1891
|
+
attr_accessor :lodging_data
|
|
259
1892
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
260
1893
|
#
|
|
261
1894
|
# 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`.
|
|
262
1895
|
#
|
|
263
1896
|
# 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.
|
|
264
1897
|
attr_accessor :order_reference
|
|
1898
|
+
# Subscription details for this PaymentIntent
|
|
1899
|
+
attr_accessor :subscription
|
|
265
1900
|
|
|
266
|
-
def initialize(
|
|
1901
|
+
def initialize(
|
|
1902
|
+
benefit: nil,
|
|
1903
|
+
car_rental: nil,
|
|
1904
|
+
car_rental_data: nil,
|
|
1905
|
+
customer_reference: nil,
|
|
1906
|
+
event_details: nil,
|
|
1907
|
+
flight: nil,
|
|
1908
|
+
flight_data: nil,
|
|
1909
|
+
lodging: nil,
|
|
1910
|
+
lodging_data: nil,
|
|
1911
|
+
order_reference: nil,
|
|
1912
|
+
subscription: nil
|
|
1913
|
+
)
|
|
1914
|
+
@benefit = benefit
|
|
1915
|
+
@car_rental = car_rental
|
|
1916
|
+
@car_rental_data = car_rental_data
|
|
267
1917
|
@customer_reference = customer_reference
|
|
1918
|
+
@event_details = event_details
|
|
1919
|
+
@flight = flight
|
|
1920
|
+
@flight_data = flight_data
|
|
1921
|
+
@lodging = lodging
|
|
1922
|
+
@lodging_data = lodging_data
|
|
268
1923
|
@order_reference = order_reference
|
|
1924
|
+
@subscription = subscription
|
|
269
1925
|
end
|
|
270
1926
|
end
|
|
271
1927
|
|
|
@@ -406,8 +2062,18 @@ module Stripe
|
|
|
406
2062
|
end
|
|
407
2063
|
|
|
408
2064
|
class Giropay < ::Stripe::RequestParams; end
|
|
2065
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
409
2066
|
class Grabpay < ::Stripe::RequestParams; end
|
|
410
2067
|
|
|
2068
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2069
|
+
# Bank where the account is held.
|
|
2070
|
+
attr_accessor :bank
|
|
2071
|
+
|
|
2072
|
+
def initialize(bank: nil)
|
|
2073
|
+
@bank = bank
|
|
2074
|
+
end
|
|
2075
|
+
end
|
|
2076
|
+
|
|
411
2077
|
class Ideal < ::Stripe::RequestParams
|
|
412
2078
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
413
2079
|
attr_accessor :bank
|
|
@@ -505,6 +2171,7 @@ module Stripe
|
|
|
505
2171
|
class Payco < ::Stripe::RequestParams; end
|
|
506
2172
|
class Paynow < ::Stripe::RequestParams; end
|
|
507
2173
|
class Paypal < ::Stripe::RequestParams; end
|
|
2174
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
508
2175
|
|
|
509
2176
|
class Payto < ::Stripe::RequestParams
|
|
510
2177
|
# The account number for the bank account.
|
|
@@ -523,6 +2190,7 @@ module Stripe
|
|
|
523
2190
|
|
|
524
2191
|
class Pix < ::Stripe::RequestParams; end
|
|
525
2192
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2193
|
+
class Qris < ::Stripe::RequestParams; end
|
|
526
2194
|
|
|
527
2195
|
class RadarOptions < ::Stripe::RequestParams
|
|
528
2196
|
# 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.
|
|
@@ -533,6 +2201,29 @@ module Stripe
|
|
|
533
2201
|
end
|
|
534
2202
|
end
|
|
535
2203
|
|
|
2204
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2205
|
+
class Dob < ::Stripe::RequestParams
|
|
2206
|
+
# The day of birth, between 1 and 31.
|
|
2207
|
+
attr_accessor :day
|
|
2208
|
+
# The month of birth, between 1 and 12.
|
|
2209
|
+
attr_accessor :month
|
|
2210
|
+
# The four-digit year of birth.
|
|
2211
|
+
attr_accessor :year
|
|
2212
|
+
|
|
2213
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2214
|
+
@day = day
|
|
2215
|
+
@month = month
|
|
2216
|
+
@year = year
|
|
2217
|
+
end
|
|
2218
|
+
end
|
|
2219
|
+
# Customer's date of birth
|
|
2220
|
+
attr_accessor :dob
|
|
2221
|
+
|
|
2222
|
+
def initialize(dob: nil)
|
|
2223
|
+
@dob = dob
|
|
2224
|
+
end
|
|
2225
|
+
end
|
|
2226
|
+
|
|
536
2227
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
537
2228
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
538
2229
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -546,6 +2237,8 @@ module Stripe
|
|
|
546
2237
|
end
|
|
547
2238
|
end
|
|
548
2239
|
|
|
2240
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2241
|
+
|
|
549
2242
|
class Sofort < ::Stripe::RequestParams
|
|
550
2243
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
551
2244
|
attr_accessor :country
|
|
@@ -555,6 +2248,18 @@ module Stripe
|
|
|
555
2248
|
end
|
|
556
2249
|
end
|
|
557
2250
|
|
|
2251
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2252
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2253
|
+
attr_accessor :account
|
|
2254
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
2255
|
+
attr_accessor :source_type
|
|
2256
|
+
|
|
2257
|
+
def initialize(account: nil, source_type: nil)
|
|
2258
|
+
@account = account
|
|
2259
|
+
@source_type = source_type
|
|
2260
|
+
end
|
|
2261
|
+
end
|
|
2262
|
+
|
|
558
2263
|
class Swish < ::Stripe::RequestParams; end
|
|
559
2264
|
class Twint < ::Stripe::RequestParams; end
|
|
560
2265
|
|
|
@@ -627,8 +2332,12 @@ module Stripe
|
|
|
627
2332
|
attr_accessor :fpx
|
|
628
2333
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
629
2334
|
attr_accessor :giropay
|
|
2335
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2336
|
+
attr_accessor :gopay
|
|
630
2337
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
631
2338
|
attr_accessor :grabpay
|
|
2339
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2340
|
+
attr_accessor :id_bank_transfer
|
|
632
2341
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
633
2342
|
attr_accessor :ideal
|
|
634
2343
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -667,14 +2376,20 @@ module Stripe
|
|
|
667
2376
|
attr_accessor :paynow
|
|
668
2377
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
669
2378
|
attr_accessor :paypal
|
|
2379
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2380
|
+
attr_accessor :paypay
|
|
670
2381
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
671
2382
|
attr_accessor :payto
|
|
672
2383
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
673
2384
|
attr_accessor :pix
|
|
674
2385
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
675
2386
|
attr_accessor :promptpay
|
|
2387
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2388
|
+
attr_accessor :qris
|
|
676
2389
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
677
2390
|
attr_accessor :radar_options
|
|
2391
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2392
|
+
attr_accessor :rechnung
|
|
678
2393
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
679
2394
|
attr_accessor :revolut_pay
|
|
680
2395
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -683,8 +2398,12 @@ module Stripe
|
|
|
683
2398
|
attr_accessor :satispay
|
|
684
2399
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
685
2400
|
attr_accessor :sepa_debit
|
|
2401
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2402
|
+
attr_accessor :shopeepay
|
|
686
2403
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
687
2404
|
attr_accessor :sofort
|
|
2405
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2406
|
+
attr_accessor :stripe_balance
|
|
688
2407
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
689
2408
|
attr_accessor :swish
|
|
690
2409
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -719,7 +2438,9 @@ module Stripe
|
|
|
719
2438
|
eps: nil,
|
|
720
2439
|
fpx: nil,
|
|
721
2440
|
giropay: nil,
|
|
2441
|
+
gopay: nil,
|
|
722
2442
|
grabpay: nil,
|
|
2443
|
+
id_bank_transfer: nil,
|
|
723
2444
|
ideal: nil,
|
|
724
2445
|
interac_present: nil,
|
|
725
2446
|
kakao_pay: nil,
|
|
@@ -739,15 +2460,20 @@ module Stripe
|
|
|
739
2460
|
payco: nil,
|
|
740
2461
|
paynow: nil,
|
|
741
2462
|
paypal: nil,
|
|
2463
|
+
paypay: nil,
|
|
742
2464
|
payto: nil,
|
|
743
2465
|
pix: nil,
|
|
744
2466
|
promptpay: nil,
|
|
2467
|
+
qris: nil,
|
|
745
2468
|
radar_options: nil,
|
|
2469
|
+
rechnung: nil,
|
|
746
2470
|
revolut_pay: nil,
|
|
747
2471
|
samsung_pay: nil,
|
|
748
2472
|
satispay: nil,
|
|
749
2473
|
sepa_debit: nil,
|
|
2474
|
+
shopeepay: nil,
|
|
750
2475
|
sofort: nil,
|
|
2476
|
+
stripe_balance: nil,
|
|
751
2477
|
swish: nil,
|
|
752
2478
|
twint: nil,
|
|
753
2479
|
type: nil,
|
|
@@ -775,7 +2501,9 @@ module Stripe
|
|
|
775
2501
|
@eps = eps
|
|
776
2502
|
@fpx = fpx
|
|
777
2503
|
@giropay = giropay
|
|
2504
|
+
@gopay = gopay
|
|
778
2505
|
@grabpay = grabpay
|
|
2506
|
+
@id_bank_transfer = id_bank_transfer
|
|
779
2507
|
@ideal = ideal
|
|
780
2508
|
@interac_present = interac_present
|
|
781
2509
|
@kakao_pay = kakao_pay
|
|
@@ -795,15 +2523,20 @@ module Stripe
|
|
|
795
2523
|
@payco = payco
|
|
796
2524
|
@paynow = paynow
|
|
797
2525
|
@paypal = paypal
|
|
2526
|
+
@paypay = paypay
|
|
798
2527
|
@payto = payto
|
|
799
2528
|
@pix = pix
|
|
800
2529
|
@promptpay = promptpay
|
|
2530
|
+
@qris = qris
|
|
801
2531
|
@radar_options = radar_options
|
|
2532
|
+
@rechnung = rechnung
|
|
802
2533
|
@revolut_pay = revolut_pay
|
|
803
2534
|
@samsung_pay = samsung_pay
|
|
804
2535
|
@satispay = satispay
|
|
805
2536
|
@sepa_debit = sepa_debit
|
|
2537
|
+
@shopeepay = shopeepay
|
|
806
2538
|
@sofort = sofort
|
|
2539
|
+
@stripe_balance = stripe_balance
|
|
807
2540
|
@swish = swish
|
|
808
2541
|
@twint = twint
|
|
809
2542
|
@type = type
|
|
@@ -1174,6 +2907,48 @@ module Stripe
|
|
|
1174
2907
|
end
|
|
1175
2908
|
end
|
|
1176
2909
|
|
|
2910
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
2911
|
+
class Address < ::Stripe::RequestParams
|
|
2912
|
+
# City, district, suburb, town, or village.
|
|
2913
|
+
attr_accessor :city
|
|
2914
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2915
|
+
attr_accessor :country
|
|
2916
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2917
|
+
attr_accessor :line1
|
|
2918
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2919
|
+
attr_accessor :line2
|
|
2920
|
+
# ZIP or postal code.
|
|
2921
|
+
attr_accessor :postal_code
|
|
2922
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2923
|
+
attr_accessor :state
|
|
2924
|
+
|
|
2925
|
+
def initialize(
|
|
2926
|
+
city: nil,
|
|
2927
|
+
country: nil,
|
|
2928
|
+
line1: nil,
|
|
2929
|
+
line2: nil,
|
|
2930
|
+
postal_code: nil,
|
|
2931
|
+
state: nil
|
|
2932
|
+
)
|
|
2933
|
+
@city = city
|
|
2934
|
+
@country = country
|
|
2935
|
+
@line1 = line1
|
|
2936
|
+
@line2 = line2
|
|
2937
|
+
@postal_code = postal_code
|
|
2938
|
+
@state = state
|
|
2939
|
+
end
|
|
2940
|
+
end
|
|
2941
|
+
# Please pass in an address that is within your Stripe user account country
|
|
2942
|
+
attr_accessor :address
|
|
2943
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
2944
|
+
attr_accessor :phone
|
|
2945
|
+
|
|
2946
|
+
def initialize(address: nil, phone: nil)
|
|
2947
|
+
@address = address
|
|
2948
|
+
@phone = phone
|
|
2949
|
+
end
|
|
2950
|
+
end
|
|
2951
|
+
|
|
1177
2952
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1178
2953
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1179
2954
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1268,6 +3043,8 @@ module Stripe
|
|
|
1268
3043
|
attr_accessor :moto
|
|
1269
3044
|
# 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.
|
|
1270
3045
|
attr_accessor :network
|
|
3046
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3047
|
+
attr_accessor :request_decremental_authorization
|
|
1271
3048
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1272
3049
|
attr_accessor :request_extended_authorization
|
|
1273
3050
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1276,6 +3053,8 @@ module Stripe
|
|
|
1276
3053
|
attr_accessor :request_multicapture
|
|
1277
3054
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1278
3055
|
attr_accessor :request_overcapture
|
|
3056
|
+
# Request partial authorization on this PaymentIntent.
|
|
3057
|
+
attr_accessor :request_partial_authorization
|
|
1279
3058
|
# 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.
|
|
1280
3059
|
attr_accessor :request_three_d_secure
|
|
1281
3060
|
# 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).
|
|
@@ -1294,6 +3073,8 @@ module Stripe
|
|
|
1294
3073
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1295
3074
|
# 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.
|
|
1296
3075
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3076
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3077
|
+
attr_accessor :statement_details
|
|
1297
3078
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1298
3079
|
# the authentication details to use for this payment.
|
|
1299
3080
|
attr_accessor :three_d_secure
|
|
@@ -1305,15 +3086,18 @@ module Stripe
|
|
|
1305
3086
|
mandate_options: nil,
|
|
1306
3087
|
moto: nil,
|
|
1307
3088
|
network: nil,
|
|
3089
|
+
request_decremental_authorization: nil,
|
|
1308
3090
|
request_extended_authorization: nil,
|
|
1309
3091
|
request_incremental_authorization: nil,
|
|
1310
3092
|
request_multicapture: nil,
|
|
1311
3093
|
request_overcapture: nil,
|
|
3094
|
+
request_partial_authorization: nil,
|
|
1312
3095
|
request_three_d_secure: nil,
|
|
1313
3096
|
require_cvc_recollection: nil,
|
|
1314
3097
|
setup_future_usage: nil,
|
|
1315
3098
|
statement_descriptor_suffix_kana: nil,
|
|
1316
3099
|
statement_descriptor_suffix_kanji: nil,
|
|
3100
|
+
statement_details: nil,
|
|
1317
3101
|
three_d_secure: nil
|
|
1318
3102
|
)
|
|
1319
3103
|
@capture_method = capture_method
|
|
@@ -1322,15 +3106,18 @@ module Stripe
|
|
|
1322
3106
|
@mandate_options = mandate_options
|
|
1323
3107
|
@moto = moto
|
|
1324
3108
|
@network = network
|
|
3109
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1325
3110
|
@request_extended_authorization = request_extended_authorization
|
|
1326
3111
|
@request_incremental_authorization = request_incremental_authorization
|
|
1327
3112
|
@request_multicapture = request_multicapture
|
|
1328
3113
|
@request_overcapture = request_overcapture
|
|
3114
|
+
@request_partial_authorization = request_partial_authorization
|
|
1329
3115
|
@request_three_d_secure = request_three_d_secure
|
|
1330
3116
|
@require_cvc_recollection = require_cvc_recollection
|
|
1331
3117
|
@setup_future_usage = setup_future_usage
|
|
1332
3118
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1333
3119
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3120
|
+
@statement_details = statement_details
|
|
1334
3121
|
@three_d_secure = three_d_secure
|
|
1335
3122
|
end
|
|
1336
3123
|
end
|
|
@@ -1451,14 +3238,31 @@ module Stripe
|
|
|
1451
3238
|
# 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`.
|
|
1452
3239
|
attr_accessor :setup_future_usage
|
|
1453
3240
|
|
|
1454
|
-
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
1455
|
-
@bank_transfer = bank_transfer
|
|
1456
|
-
@funding_type = funding_type
|
|
3241
|
+
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
3242
|
+
@bank_transfer = bank_transfer
|
|
3243
|
+
@funding_type = funding_type
|
|
3244
|
+
@setup_future_usage = setup_future_usage
|
|
3245
|
+
end
|
|
3246
|
+
end
|
|
3247
|
+
|
|
3248
|
+
class Eps < ::Stripe::RequestParams
|
|
3249
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3250
|
+
#
|
|
3251
|
+
# 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.
|
|
3252
|
+
#
|
|
3253
|
+
# 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.
|
|
3254
|
+
#
|
|
3255
|
+
# 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).
|
|
3256
|
+
#
|
|
3257
|
+
# 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`.
|
|
3258
|
+
attr_accessor :setup_future_usage
|
|
3259
|
+
|
|
3260
|
+
def initialize(setup_future_usage: nil)
|
|
1457
3261
|
@setup_future_usage = setup_future_usage
|
|
1458
3262
|
end
|
|
1459
3263
|
end
|
|
1460
3264
|
|
|
1461
|
-
class
|
|
3265
|
+
class Fpx < ::Stripe::RequestParams
|
|
1462
3266
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1463
3267
|
#
|
|
1464
3268
|
# 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.
|
|
@@ -1475,7 +3279,7 @@ module Stripe
|
|
|
1475
3279
|
end
|
|
1476
3280
|
end
|
|
1477
3281
|
|
|
1478
|
-
class
|
|
3282
|
+
class Giropay < ::Stripe::RequestParams
|
|
1479
3283
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1480
3284
|
#
|
|
1481
3285
|
# 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.
|
|
@@ -1492,7 +3296,7 @@ module Stripe
|
|
|
1492
3296
|
end
|
|
1493
3297
|
end
|
|
1494
3298
|
|
|
1495
|
-
class
|
|
3299
|
+
class Gopay < ::Stripe::RequestParams
|
|
1496
3300
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1497
3301
|
#
|
|
1498
3302
|
# 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.
|
|
@@ -1526,6 +3330,29 @@ module Stripe
|
|
|
1526
3330
|
end
|
|
1527
3331
|
end
|
|
1528
3332
|
|
|
3333
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3334
|
+
# 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.
|
|
3335
|
+
attr_accessor :expires_after
|
|
3336
|
+
# 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.
|
|
3337
|
+
attr_accessor :expires_at
|
|
3338
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3339
|
+
#
|
|
3340
|
+
# 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.
|
|
3341
|
+
#
|
|
3342
|
+
# 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.
|
|
3343
|
+
#
|
|
3344
|
+
# 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).
|
|
3345
|
+
#
|
|
3346
|
+
# 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`.
|
|
3347
|
+
attr_accessor :setup_future_usage
|
|
3348
|
+
|
|
3349
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3350
|
+
@expires_after = expires_after
|
|
3351
|
+
@expires_at = expires_at
|
|
3352
|
+
@setup_future_usage = setup_future_usage
|
|
3353
|
+
end
|
|
3354
|
+
end
|
|
3355
|
+
|
|
1529
3356
|
class Ideal < ::Stripe::RequestParams
|
|
1530
3357
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1531
3358
|
#
|
|
@@ -1632,6 +3459,939 @@ module Stripe
|
|
|
1632
3459
|
@reference = reference
|
|
1633
3460
|
end
|
|
1634
3461
|
end
|
|
3462
|
+
|
|
3463
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3464
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
3465
|
+
class Arrival < ::Stripe::RequestParams
|
|
3466
|
+
class Address < ::Stripe::RequestParams
|
|
3467
|
+
# The city or town.
|
|
3468
|
+
attr_accessor :city
|
|
3469
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3470
|
+
attr_accessor :country
|
|
3471
|
+
# The postal code formatted according to country.
|
|
3472
|
+
attr_accessor :postal_code
|
|
3473
|
+
# The state, county, province, or region formatted according to country.
|
|
3474
|
+
attr_accessor :region
|
|
3475
|
+
# Line 1 of the street address.
|
|
3476
|
+
attr_accessor :street_address
|
|
3477
|
+
# Line 2 of the street address.
|
|
3478
|
+
attr_accessor :street_address2
|
|
3479
|
+
|
|
3480
|
+
def initialize(
|
|
3481
|
+
city: nil,
|
|
3482
|
+
country: nil,
|
|
3483
|
+
postal_code: nil,
|
|
3484
|
+
region: nil,
|
|
3485
|
+
street_address: nil,
|
|
3486
|
+
street_address2: nil
|
|
3487
|
+
)
|
|
3488
|
+
@city = city
|
|
3489
|
+
@country = country
|
|
3490
|
+
@postal_code = postal_code
|
|
3491
|
+
@region = region
|
|
3492
|
+
@street_address = street_address
|
|
3493
|
+
@street_address2 = street_address2
|
|
3494
|
+
end
|
|
3495
|
+
end
|
|
3496
|
+
# Address of the arrival location.
|
|
3497
|
+
attr_accessor :address
|
|
3498
|
+
# Identifier name or reference for the arrival location.
|
|
3499
|
+
attr_accessor :arrival_location
|
|
3500
|
+
|
|
3501
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3502
|
+
@address = address
|
|
3503
|
+
@arrival_location = arrival_location
|
|
3504
|
+
end
|
|
3505
|
+
end
|
|
3506
|
+
|
|
3507
|
+
class Departure < ::Stripe::RequestParams
|
|
3508
|
+
class Address < ::Stripe::RequestParams
|
|
3509
|
+
# The city or town.
|
|
3510
|
+
attr_accessor :city
|
|
3511
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3512
|
+
attr_accessor :country
|
|
3513
|
+
# The postal code formatted according to country.
|
|
3514
|
+
attr_accessor :postal_code
|
|
3515
|
+
# The state, county, province, or region formatted according to country.
|
|
3516
|
+
attr_accessor :region
|
|
3517
|
+
# Line 1 of the street address.
|
|
3518
|
+
attr_accessor :street_address
|
|
3519
|
+
# Line 2 of the street address.
|
|
3520
|
+
attr_accessor :street_address2
|
|
3521
|
+
|
|
3522
|
+
def initialize(
|
|
3523
|
+
city: nil,
|
|
3524
|
+
country: nil,
|
|
3525
|
+
postal_code: nil,
|
|
3526
|
+
region: nil,
|
|
3527
|
+
street_address: nil,
|
|
3528
|
+
street_address2: nil
|
|
3529
|
+
)
|
|
3530
|
+
@city = city
|
|
3531
|
+
@country = country
|
|
3532
|
+
@postal_code = postal_code
|
|
3533
|
+
@region = region
|
|
3534
|
+
@street_address = street_address
|
|
3535
|
+
@street_address2 = street_address2
|
|
3536
|
+
end
|
|
3537
|
+
end
|
|
3538
|
+
# Address of the departure location.
|
|
3539
|
+
attr_accessor :address
|
|
3540
|
+
# Timestamp of departure.
|
|
3541
|
+
attr_accessor :departs_at
|
|
3542
|
+
# Identifier name or reference for the origin location.
|
|
3543
|
+
attr_accessor :departure_location
|
|
3544
|
+
|
|
3545
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3546
|
+
@address = address
|
|
3547
|
+
@departs_at = departs_at
|
|
3548
|
+
@departure_location = departure_location
|
|
3549
|
+
end
|
|
3550
|
+
end
|
|
3551
|
+
|
|
3552
|
+
class Insurance < ::Stripe::RequestParams
|
|
3553
|
+
# Insurance currency.
|
|
3554
|
+
attr_accessor :currency
|
|
3555
|
+
# Name of the company providing the insurance.
|
|
3556
|
+
attr_accessor :insurance_company_name
|
|
3557
|
+
# Type of insurance.
|
|
3558
|
+
attr_accessor :insurance_type
|
|
3559
|
+
# Price of insurance in cents.
|
|
3560
|
+
attr_accessor :price
|
|
3561
|
+
|
|
3562
|
+
def initialize(
|
|
3563
|
+
currency: nil,
|
|
3564
|
+
insurance_company_name: nil,
|
|
3565
|
+
insurance_type: nil,
|
|
3566
|
+
price: nil
|
|
3567
|
+
)
|
|
3568
|
+
@currency = currency
|
|
3569
|
+
@insurance_company_name = insurance_company_name
|
|
3570
|
+
@insurance_type = insurance_type
|
|
3571
|
+
@price = price
|
|
3572
|
+
end
|
|
3573
|
+
end
|
|
3574
|
+
|
|
3575
|
+
class Passenger < ::Stripe::RequestParams
|
|
3576
|
+
# The family name of the person.
|
|
3577
|
+
attr_accessor :family_name
|
|
3578
|
+
# The given name of the person.
|
|
3579
|
+
attr_accessor :given_name
|
|
3580
|
+
|
|
3581
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3582
|
+
@family_name = family_name
|
|
3583
|
+
@given_name = given_name
|
|
3584
|
+
end
|
|
3585
|
+
end
|
|
3586
|
+
# Name of associated or partner company for the service.
|
|
3587
|
+
attr_accessor :affiliate_name
|
|
3588
|
+
# Arrival details.
|
|
3589
|
+
attr_accessor :arrival
|
|
3590
|
+
# Name of transportation company.
|
|
3591
|
+
attr_accessor :carrier_name
|
|
3592
|
+
# Currency.
|
|
3593
|
+
attr_accessor :currency
|
|
3594
|
+
# Departure details.
|
|
3595
|
+
attr_accessor :departure
|
|
3596
|
+
# List of insurances for this reservation.
|
|
3597
|
+
attr_accessor :insurances
|
|
3598
|
+
# List of passengers that this reservation applies to.
|
|
3599
|
+
attr_accessor :passengers
|
|
3600
|
+
# Price in cents.
|
|
3601
|
+
attr_accessor :price
|
|
3602
|
+
# Ticket class.
|
|
3603
|
+
attr_accessor :ticket_class
|
|
3604
|
+
|
|
3605
|
+
def initialize(
|
|
3606
|
+
affiliate_name: nil,
|
|
3607
|
+
arrival: nil,
|
|
3608
|
+
carrier_name: nil,
|
|
3609
|
+
currency: nil,
|
|
3610
|
+
departure: nil,
|
|
3611
|
+
insurances: nil,
|
|
3612
|
+
passengers: nil,
|
|
3613
|
+
price: nil,
|
|
3614
|
+
ticket_class: nil
|
|
3615
|
+
)
|
|
3616
|
+
@affiliate_name = affiliate_name
|
|
3617
|
+
@arrival = arrival
|
|
3618
|
+
@carrier_name = carrier_name
|
|
3619
|
+
@currency = currency
|
|
3620
|
+
@departure = departure
|
|
3621
|
+
@insurances = insurances
|
|
3622
|
+
@passengers = passengers
|
|
3623
|
+
@price = price
|
|
3624
|
+
@ticket_class = ticket_class
|
|
3625
|
+
end
|
|
3626
|
+
end
|
|
3627
|
+
|
|
3628
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
3629
|
+
class Address < ::Stripe::RequestParams
|
|
3630
|
+
# The city or town.
|
|
3631
|
+
attr_accessor :city
|
|
3632
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3633
|
+
attr_accessor :country
|
|
3634
|
+
# The postal code formatted according to country.
|
|
3635
|
+
attr_accessor :postal_code
|
|
3636
|
+
# The state, county, province, or region formatted according to country.
|
|
3637
|
+
attr_accessor :region
|
|
3638
|
+
# Line 1 of the street address.
|
|
3639
|
+
attr_accessor :street_address
|
|
3640
|
+
# Line 2 of the street address.
|
|
3641
|
+
attr_accessor :street_address2
|
|
3642
|
+
|
|
3643
|
+
def initialize(
|
|
3644
|
+
city: nil,
|
|
3645
|
+
country: nil,
|
|
3646
|
+
postal_code: nil,
|
|
3647
|
+
region: nil,
|
|
3648
|
+
street_address: nil,
|
|
3649
|
+
street_address2: nil
|
|
3650
|
+
)
|
|
3651
|
+
@city = city
|
|
3652
|
+
@country = country
|
|
3653
|
+
@postal_code = postal_code
|
|
3654
|
+
@region = region
|
|
3655
|
+
@street_address = street_address
|
|
3656
|
+
@street_address2 = street_address2
|
|
3657
|
+
end
|
|
3658
|
+
end
|
|
3659
|
+
|
|
3660
|
+
class Insurance < ::Stripe::RequestParams
|
|
3661
|
+
# Insurance currency.
|
|
3662
|
+
attr_accessor :currency
|
|
3663
|
+
# Name of the company providing the insurance.
|
|
3664
|
+
attr_accessor :insurance_company_name
|
|
3665
|
+
# Type of insurance.
|
|
3666
|
+
attr_accessor :insurance_type
|
|
3667
|
+
# Price of insurance in cents.
|
|
3668
|
+
attr_accessor :price
|
|
3669
|
+
|
|
3670
|
+
def initialize(
|
|
3671
|
+
currency: nil,
|
|
3672
|
+
insurance_company_name: nil,
|
|
3673
|
+
insurance_type: nil,
|
|
3674
|
+
price: nil
|
|
3675
|
+
)
|
|
3676
|
+
@currency = currency
|
|
3677
|
+
@insurance_company_name = insurance_company_name
|
|
3678
|
+
@insurance_type = insurance_type
|
|
3679
|
+
@price = price
|
|
3680
|
+
end
|
|
3681
|
+
end
|
|
3682
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3683
|
+
attr_accessor :access_controlled_venue
|
|
3684
|
+
# Address of the event.
|
|
3685
|
+
attr_accessor :address
|
|
3686
|
+
# Name of associated or partner company for the service.
|
|
3687
|
+
attr_accessor :affiliate_name
|
|
3688
|
+
# End timestamp of the event.
|
|
3689
|
+
attr_accessor :ends_at
|
|
3690
|
+
# Company selling the ticket.
|
|
3691
|
+
attr_accessor :event_company_name
|
|
3692
|
+
# Name of the event.
|
|
3693
|
+
attr_accessor :event_name
|
|
3694
|
+
# Type of the event.
|
|
3695
|
+
attr_accessor :event_type
|
|
3696
|
+
# List of insurances for this event.
|
|
3697
|
+
attr_accessor :insurances
|
|
3698
|
+
# Start timestamp of the event.
|
|
3699
|
+
attr_accessor :starts_at
|
|
3700
|
+
# Name of the venue where the event takes place.
|
|
3701
|
+
attr_accessor :venue_name
|
|
3702
|
+
|
|
3703
|
+
def initialize(
|
|
3704
|
+
access_controlled_venue: nil,
|
|
3705
|
+
address: nil,
|
|
3706
|
+
affiliate_name: nil,
|
|
3707
|
+
ends_at: nil,
|
|
3708
|
+
event_company_name: nil,
|
|
3709
|
+
event_name: nil,
|
|
3710
|
+
event_type: nil,
|
|
3711
|
+
insurances: nil,
|
|
3712
|
+
starts_at: nil,
|
|
3713
|
+
venue_name: nil
|
|
3714
|
+
)
|
|
3715
|
+
@access_controlled_venue = access_controlled_venue
|
|
3716
|
+
@address = address
|
|
3717
|
+
@affiliate_name = affiliate_name
|
|
3718
|
+
@ends_at = ends_at
|
|
3719
|
+
@event_company_name = event_company_name
|
|
3720
|
+
@event_name = event_name
|
|
3721
|
+
@event_type = event_type
|
|
3722
|
+
@insurances = insurances
|
|
3723
|
+
@starts_at = starts_at
|
|
3724
|
+
@venue_name = venue_name
|
|
3725
|
+
end
|
|
3726
|
+
end
|
|
3727
|
+
|
|
3728
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3729
|
+
class Arrival < ::Stripe::RequestParams
|
|
3730
|
+
class Address < ::Stripe::RequestParams
|
|
3731
|
+
# The city or town.
|
|
3732
|
+
attr_accessor :city
|
|
3733
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3734
|
+
attr_accessor :country
|
|
3735
|
+
# The postal code formatted according to country.
|
|
3736
|
+
attr_accessor :postal_code
|
|
3737
|
+
# The state, county, province, or region formatted according to country.
|
|
3738
|
+
attr_accessor :region
|
|
3739
|
+
# Line 1 of the street address.
|
|
3740
|
+
attr_accessor :street_address
|
|
3741
|
+
# Line 2 of the street address.
|
|
3742
|
+
attr_accessor :street_address2
|
|
3743
|
+
|
|
3744
|
+
def initialize(
|
|
3745
|
+
city: nil,
|
|
3746
|
+
country: nil,
|
|
3747
|
+
postal_code: nil,
|
|
3748
|
+
region: nil,
|
|
3749
|
+
street_address: nil,
|
|
3750
|
+
street_address2: nil
|
|
3751
|
+
)
|
|
3752
|
+
@city = city
|
|
3753
|
+
@country = country
|
|
3754
|
+
@postal_code = postal_code
|
|
3755
|
+
@region = region
|
|
3756
|
+
@street_address = street_address
|
|
3757
|
+
@street_address2 = street_address2
|
|
3758
|
+
end
|
|
3759
|
+
end
|
|
3760
|
+
# Address of the arrival location.
|
|
3761
|
+
attr_accessor :address
|
|
3762
|
+
# Identifier name or reference for the arrival location.
|
|
3763
|
+
attr_accessor :arrival_location
|
|
3764
|
+
|
|
3765
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3766
|
+
@address = address
|
|
3767
|
+
@arrival_location = arrival_location
|
|
3768
|
+
end
|
|
3769
|
+
end
|
|
3770
|
+
|
|
3771
|
+
class Departure < ::Stripe::RequestParams
|
|
3772
|
+
class Address < ::Stripe::RequestParams
|
|
3773
|
+
# The city or town.
|
|
3774
|
+
attr_accessor :city
|
|
3775
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3776
|
+
attr_accessor :country
|
|
3777
|
+
# The postal code formatted according to country.
|
|
3778
|
+
attr_accessor :postal_code
|
|
3779
|
+
# The state, county, province, or region formatted according to country.
|
|
3780
|
+
attr_accessor :region
|
|
3781
|
+
# Line 1 of the street address.
|
|
3782
|
+
attr_accessor :street_address
|
|
3783
|
+
# Line 2 of the street address.
|
|
3784
|
+
attr_accessor :street_address2
|
|
3785
|
+
|
|
3786
|
+
def initialize(
|
|
3787
|
+
city: nil,
|
|
3788
|
+
country: nil,
|
|
3789
|
+
postal_code: nil,
|
|
3790
|
+
region: nil,
|
|
3791
|
+
street_address: nil,
|
|
3792
|
+
street_address2: nil
|
|
3793
|
+
)
|
|
3794
|
+
@city = city
|
|
3795
|
+
@country = country
|
|
3796
|
+
@postal_code = postal_code
|
|
3797
|
+
@region = region
|
|
3798
|
+
@street_address = street_address
|
|
3799
|
+
@street_address2 = street_address2
|
|
3800
|
+
end
|
|
3801
|
+
end
|
|
3802
|
+
# Address of the departure location.
|
|
3803
|
+
attr_accessor :address
|
|
3804
|
+
# Timestamp of departure.
|
|
3805
|
+
attr_accessor :departs_at
|
|
3806
|
+
# Identifier name or reference for the origin location.
|
|
3807
|
+
attr_accessor :departure_location
|
|
3808
|
+
|
|
3809
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3810
|
+
@address = address
|
|
3811
|
+
@departs_at = departs_at
|
|
3812
|
+
@departure_location = departure_location
|
|
3813
|
+
end
|
|
3814
|
+
end
|
|
3815
|
+
|
|
3816
|
+
class Insurance < ::Stripe::RequestParams
|
|
3817
|
+
# Insurance currency.
|
|
3818
|
+
attr_accessor :currency
|
|
3819
|
+
# Name of the company providing the insurance.
|
|
3820
|
+
attr_accessor :insurance_company_name
|
|
3821
|
+
# Type of insurance.
|
|
3822
|
+
attr_accessor :insurance_type
|
|
3823
|
+
# Price of insurance in cents.
|
|
3824
|
+
attr_accessor :price
|
|
3825
|
+
|
|
3826
|
+
def initialize(
|
|
3827
|
+
currency: nil,
|
|
3828
|
+
insurance_company_name: nil,
|
|
3829
|
+
insurance_type: nil,
|
|
3830
|
+
price: nil
|
|
3831
|
+
)
|
|
3832
|
+
@currency = currency
|
|
3833
|
+
@insurance_company_name = insurance_company_name
|
|
3834
|
+
@insurance_type = insurance_type
|
|
3835
|
+
@price = price
|
|
3836
|
+
end
|
|
3837
|
+
end
|
|
3838
|
+
|
|
3839
|
+
class Passenger < ::Stripe::RequestParams
|
|
3840
|
+
# The family name of the person.
|
|
3841
|
+
attr_accessor :family_name
|
|
3842
|
+
# The given name of the person.
|
|
3843
|
+
attr_accessor :given_name
|
|
3844
|
+
|
|
3845
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3846
|
+
@family_name = family_name
|
|
3847
|
+
@given_name = given_name
|
|
3848
|
+
end
|
|
3849
|
+
end
|
|
3850
|
+
# Name of associated or partner company for the service.
|
|
3851
|
+
attr_accessor :affiliate_name
|
|
3852
|
+
# Arrival details.
|
|
3853
|
+
attr_accessor :arrival
|
|
3854
|
+
# Name of transportation company.
|
|
3855
|
+
attr_accessor :carrier_name
|
|
3856
|
+
# Currency.
|
|
3857
|
+
attr_accessor :currency
|
|
3858
|
+
# Departure details.
|
|
3859
|
+
attr_accessor :departure
|
|
3860
|
+
# List of insurances for this reservation.
|
|
3861
|
+
attr_accessor :insurances
|
|
3862
|
+
# List of passengers that this reservation applies to.
|
|
3863
|
+
attr_accessor :passengers
|
|
3864
|
+
# Price in cents.
|
|
3865
|
+
attr_accessor :price
|
|
3866
|
+
# Ticket class.
|
|
3867
|
+
attr_accessor :ticket_class
|
|
3868
|
+
|
|
3869
|
+
def initialize(
|
|
3870
|
+
affiliate_name: nil,
|
|
3871
|
+
arrival: nil,
|
|
3872
|
+
carrier_name: nil,
|
|
3873
|
+
currency: nil,
|
|
3874
|
+
departure: nil,
|
|
3875
|
+
insurances: nil,
|
|
3876
|
+
passengers: nil,
|
|
3877
|
+
price: nil,
|
|
3878
|
+
ticket_class: nil
|
|
3879
|
+
)
|
|
3880
|
+
@affiliate_name = affiliate_name
|
|
3881
|
+
@arrival = arrival
|
|
3882
|
+
@carrier_name = carrier_name
|
|
3883
|
+
@currency = currency
|
|
3884
|
+
@departure = departure
|
|
3885
|
+
@insurances = insurances
|
|
3886
|
+
@passengers = passengers
|
|
3887
|
+
@price = price
|
|
3888
|
+
@ticket_class = ticket_class
|
|
3889
|
+
end
|
|
3890
|
+
end
|
|
3891
|
+
|
|
3892
|
+
class Insurance < ::Stripe::RequestParams
|
|
3893
|
+
# Insurance currency.
|
|
3894
|
+
attr_accessor :currency
|
|
3895
|
+
# Name of the company providing the insurance.
|
|
3896
|
+
attr_accessor :insurance_company_name
|
|
3897
|
+
# Type of insurance
|
|
3898
|
+
attr_accessor :insurance_type
|
|
3899
|
+
# Price of insurance in cents.
|
|
3900
|
+
attr_accessor :price
|
|
3901
|
+
|
|
3902
|
+
def initialize(
|
|
3903
|
+
currency: nil,
|
|
3904
|
+
insurance_company_name: nil,
|
|
3905
|
+
insurance_type: nil,
|
|
3906
|
+
price: nil
|
|
3907
|
+
)
|
|
3908
|
+
@currency = currency
|
|
3909
|
+
@insurance_company_name = insurance_company_name
|
|
3910
|
+
@insurance_type = insurance_type
|
|
3911
|
+
@price = price
|
|
3912
|
+
end
|
|
3913
|
+
end
|
|
3914
|
+
|
|
3915
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3916
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3917
|
+
# The city or town.
|
|
3918
|
+
attr_accessor :city
|
|
3919
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3920
|
+
attr_accessor :country
|
|
3921
|
+
# The postal code formatted according to country.
|
|
3922
|
+
attr_accessor :postal_code
|
|
3923
|
+
# The state, county, province, or region formatted according to country.
|
|
3924
|
+
attr_accessor :region
|
|
3925
|
+
# Line 1 of the street address.
|
|
3926
|
+
attr_accessor :street_address
|
|
3927
|
+
# Line 2 of the street address.
|
|
3928
|
+
attr_accessor :street_address2
|
|
3929
|
+
|
|
3930
|
+
def initialize(
|
|
3931
|
+
city: nil,
|
|
3932
|
+
country: nil,
|
|
3933
|
+
postal_code: nil,
|
|
3934
|
+
region: nil,
|
|
3935
|
+
street_address: nil,
|
|
3936
|
+
street_address2: nil
|
|
3937
|
+
)
|
|
3938
|
+
@city = city
|
|
3939
|
+
@country = country
|
|
3940
|
+
@postal_code = postal_code
|
|
3941
|
+
@region = region
|
|
3942
|
+
@street_address = street_address
|
|
3943
|
+
@street_address2 = street_address2
|
|
3944
|
+
end
|
|
3945
|
+
end
|
|
3946
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3947
|
+
attr_accessor :line_item_references
|
|
3948
|
+
# The address of the selling or delivering merchant.
|
|
3949
|
+
attr_accessor :marketplace_seller_address
|
|
3950
|
+
# The name of the marketplace seller.
|
|
3951
|
+
attr_accessor :marketplace_seller_name
|
|
3952
|
+
# The unique identifier for the marketplace seller.
|
|
3953
|
+
attr_accessor :marketplace_seller_reference
|
|
3954
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
3955
|
+
attr_accessor :number_of_transactions
|
|
3956
|
+
# The category of the product.
|
|
3957
|
+
attr_accessor :product_category
|
|
3958
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
3959
|
+
attr_accessor :seller_last_login_at
|
|
3960
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
3961
|
+
attr_accessor :seller_rating
|
|
3962
|
+
# The date when the seller's account with the marketplace was created.
|
|
3963
|
+
attr_accessor :seller_registered_at
|
|
3964
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
3965
|
+
attr_accessor :seller_updated_at
|
|
3966
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
3967
|
+
attr_accessor :shipping_references
|
|
3968
|
+
# 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.
|
|
3969
|
+
attr_accessor :volume_of_transactions
|
|
3970
|
+
|
|
3971
|
+
def initialize(
|
|
3972
|
+
line_item_references: nil,
|
|
3973
|
+
marketplace_seller_address: nil,
|
|
3974
|
+
marketplace_seller_name: nil,
|
|
3975
|
+
marketplace_seller_reference: nil,
|
|
3976
|
+
number_of_transactions: nil,
|
|
3977
|
+
product_category: nil,
|
|
3978
|
+
seller_last_login_at: nil,
|
|
3979
|
+
seller_rating: nil,
|
|
3980
|
+
seller_registered_at: nil,
|
|
3981
|
+
seller_updated_at: nil,
|
|
3982
|
+
shipping_references: nil,
|
|
3983
|
+
volume_of_transactions: nil
|
|
3984
|
+
)
|
|
3985
|
+
@line_item_references = line_item_references
|
|
3986
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
3987
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
3988
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
3989
|
+
@number_of_transactions = number_of_transactions
|
|
3990
|
+
@product_category = product_category
|
|
3991
|
+
@seller_last_login_at = seller_last_login_at
|
|
3992
|
+
@seller_rating = seller_rating
|
|
3993
|
+
@seller_registered_at = seller_registered_at
|
|
3994
|
+
@seller_updated_at = seller_updated_at
|
|
3995
|
+
@shipping_references = shipping_references
|
|
3996
|
+
@volume_of_transactions = volume_of_transactions
|
|
3997
|
+
end
|
|
3998
|
+
end
|
|
3999
|
+
|
|
4000
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4001
|
+
class Arrival < ::Stripe::RequestParams
|
|
4002
|
+
class Address < ::Stripe::RequestParams
|
|
4003
|
+
# The city or town.
|
|
4004
|
+
attr_accessor :city
|
|
4005
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4006
|
+
attr_accessor :country
|
|
4007
|
+
# The postal code formatted according to country.
|
|
4008
|
+
attr_accessor :postal_code
|
|
4009
|
+
# The state, county, province, or region formatted according to country.
|
|
4010
|
+
attr_accessor :region
|
|
4011
|
+
# Line 1 of the street address.
|
|
4012
|
+
attr_accessor :street_address
|
|
4013
|
+
# Line 2 of the street address.
|
|
4014
|
+
attr_accessor :street_address2
|
|
4015
|
+
|
|
4016
|
+
def initialize(
|
|
4017
|
+
city: nil,
|
|
4018
|
+
country: nil,
|
|
4019
|
+
postal_code: nil,
|
|
4020
|
+
region: nil,
|
|
4021
|
+
street_address: nil,
|
|
4022
|
+
street_address2: nil
|
|
4023
|
+
)
|
|
4024
|
+
@city = city
|
|
4025
|
+
@country = country
|
|
4026
|
+
@postal_code = postal_code
|
|
4027
|
+
@region = region
|
|
4028
|
+
@street_address = street_address
|
|
4029
|
+
@street_address2 = street_address2
|
|
4030
|
+
end
|
|
4031
|
+
end
|
|
4032
|
+
# Address of the arrival location.
|
|
4033
|
+
attr_accessor :address
|
|
4034
|
+
# Identifier name or reference for the arrival location.
|
|
4035
|
+
attr_accessor :arrival_location
|
|
4036
|
+
|
|
4037
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4038
|
+
@address = address
|
|
4039
|
+
@arrival_location = arrival_location
|
|
4040
|
+
end
|
|
4041
|
+
end
|
|
4042
|
+
|
|
4043
|
+
class Departure < ::Stripe::RequestParams
|
|
4044
|
+
class Address < ::Stripe::RequestParams
|
|
4045
|
+
# The city or town.
|
|
4046
|
+
attr_accessor :city
|
|
4047
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4048
|
+
attr_accessor :country
|
|
4049
|
+
# The postal code formatted according to country.
|
|
4050
|
+
attr_accessor :postal_code
|
|
4051
|
+
# The state, county, province, or region formatted according to country.
|
|
4052
|
+
attr_accessor :region
|
|
4053
|
+
# Line 1 of the street address.
|
|
4054
|
+
attr_accessor :street_address
|
|
4055
|
+
# Line 2 of the street address.
|
|
4056
|
+
attr_accessor :street_address2
|
|
4057
|
+
|
|
4058
|
+
def initialize(
|
|
4059
|
+
city: nil,
|
|
4060
|
+
country: nil,
|
|
4061
|
+
postal_code: nil,
|
|
4062
|
+
region: nil,
|
|
4063
|
+
street_address: nil,
|
|
4064
|
+
street_address2: nil
|
|
4065
|
+
)
|
|
4066
|
+
@city = city
|
|
4067
|
+
@country = country
|
|
4068
|
+
@postal_code = postal_code
|
|
4069
|
+
@region = region
|
|
4070
|
+
@street_address = street_address
|
|
4071
|
+
@street_address2 = street_address2
|
|
4072
|
+
end
|
|
4073
|
+
end
|
|
4074
|
+
# Address of the departure location.
|
|
4075
|
+
attr_accessor :address
|
|
4076
|
+
# Timestamp of departure.
|
|
4077
|
+
attr_accessor :departs_at
|
|
4078
|
+
# Identifier name or reference for the origin location.
|
|
4079
|
+
attr_accessor :departure_location
|
|
4080
|
+
|
|
4081
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4082
|
+
@address = address
|
|
4083
|
+
@departs_at = departs_at
|
|
4084
|
+
@departure_location = departure_location
|
|
4085
|
+
end
|
|
4086
|
+
end
|
|
4087
|
+
|
|
4088
|
+
class Insurance < ::Stripe::RequestParams
|
|
4089
|
+
# Insurance currency.
|
|
4090
|
+
attr_accessor :currency
|
|
4091
|
+
# Name of the company providing the insurance.
|
|
4092
|
+
attr_accessor :insurance_company_name
|
|
4093
|
+
# Type of insurance.
|
|
4094
|
+
attr_accessor :insurance_type
|
|
4095
|
+
# Price of insurance in cents.
|
|
4096
|
+
attr_accessor :price
|
|
4097
|
+
|
|
4098
|
+
def initialize(
|
|
4099
|
+
currency: nil,
|
|
4100
|
+
insurance_company_name: nil,
|
|
4101
|
+
insurance_type: nil,
|
|
4102
|
+
price: nil
|
|
4103
|
+
)
|
|
4104
|
+
@currency = currency
|
|
4105
|
+
@insurance_company_name = insurance_company_name
|
|
4106
|
+
@insurance_type = insurance_type
|
|
4107
|
+
@price = price
|
|
4108
|
+
end
|
|
4109
|
+
end
|
|
4110
|
+
|
|
4111
|
+
class Passenger < ::Stripe::RequestParams
|
|
4112
|
+
# The family name of the person.
|
|
4113
|
+
attr_accessor :family_name
|
|
4114
|
+
# The given name of the person.
|
|
4115
|
+
attr_accessor :given_name
|
|
4116
|
+
|
|
4117
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4118
|
+
@family_name = family_name
|
|
4119
|
+
@given_name = given_name
|
|
4120
|
+
end
|
|
4121
|
+
end
|
|
4122
|
+
# Name of associated or partner company for the service.
|
|
4123
|
+
attr_accessor :affiliate_name
|
|
4124
|
+
# Arrival details.
|
|
4125
|
+
attr_accessor :arrival
|
|
4126
|
+
# Name of transportation company.
|
|
4127
|
+
attr_accessor :carrier_name
|
|
4128
|
+
# Currency.
|
|
4129
|
+
attr_accessor :currency
|
|
4130
|
+
# Departure details.
|
|
4131
|
+
attr_accessor :departure
|
|
4132
|
+
# List of insurances for this reservation.
|
|
4133
|
+
attr_accessor :insurances
|
|
4134
|
+
# List of passengers that this reservation applies to.
|
|
4135
|
+
attr_accessor :passengers
|
|
4136
|
+
# Price in cents.
|
|
4137
|
+
attr_accessor :price
|
|
4138
|
+
# Ticket class.
|
|
4139
|
+
attr_accessor :ticket_class
|
|
4140
|
+
|
|
4141
|
+
def initialize(
|
|
4142
|
+
affiliate_name: nil,
|
|
4143
|
+
arrival: nil,
|
|
4144
|
+
carrier_name: nil,
|
|
4145
|
+
currency: nil,
|
|
4146
|
+
departure: nil,
|
|
4147
|
+
insurances: nil,
|
|
4148
|
+
passengers: nil,
|
|
4149
|
+
price: nil,
|
|
4150
|
+
ticket_class: nil
|
|
4151
|
+
)
|
|
4152
|
+
@affiliate_name = affiliate_name
|
|
4153
|
+
@arrival = arrival
|
|
4154
|
+
@carrier_name = carrier_name
|
|
4155
|
+
@currency = currency
|
|
4156
|
+
@departure = departure
|
|
4157
|
+
@insurances = insurances
|
|
4158
|
+
@passengers = passengers
|
|
4159
|
+
@price = price
|
|
4160
|
+
@ticket_class = ticket_class
|
|
4161
|
+
end
|
|
4162
|
+
end
|
|
4163
|
+
|
|
4164
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4165
|
+
class Arrival < ::Stripe::RequestParams
|
|
4166
|
+
class Address < ::Stripe::RequestParams
|
|
4167
|
+
# The city or town.
|
|
4168
|
+
attr_accessor :city
|
|
4169
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4170
|
+
attr_accessor :country
|
|
4171
|
+
# The postal code formatted according to country.
|
|
4172
|
+
attr_accessor :postal_code
|
|
4173
|
+
# The state, county, province, or region formatted according to country.
|
|
4174
|
+
attr_accessor :region
|
|
4175
|
+
# Line 1 of the street address.
|
|
4176
|
+
attr_accessor :street_address
|
|
4177
|
+
# Line 2 of the street address.
|
|
4178
|
+
attr_accessor :street_address2
|
|
4179
|
+
|
|
4180
|
+
def initialize(
|
|
4181
|
+
city: nil,
|
|
4182
|
+
country: nil,
|
|
4183
|
+
postal_code: nil,
|
|
4184
|
+
region: nil,
|
|
4185
|
+
street_address: nil,
|
|
4186
|
+
street_address2: nil
|
|
4187
|
+
)
|
|
4188
|
+
@city = city
|
|
4189
|
+
@country = country
|
|
4190
|
+
@postal_code = postal_code
|
|
4191
|
+
@region = region
|
|
4192
|
+
@street_address = street_address
|
|
4193
|
+
@street_address2 = street_address2
|
|
4194
|
+
end
|
|
4195
|
+
end
|
|
4196
|
+
# Address of the arrival location.
|
|
4197
|
+
attr_accessor :address
|
|
4198
|
+
# Identifier name or reference for the arrival location.
|
|
4199
|
+
attr_accessor :arrival_location
|
|
4200
|
+
|
|
4201
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4202
|
+
@address = address
|
|
4203
|
+
@arrival_location = arrival_location
|
|
4204
|
+
end
|
|
4205
|
+
end
|
|
4206
|
+
|
|
4207
|
+
class Departure < ::Stripe::RequestParams
|
|
4208
|
+
class Address < ::Stripe::RequestParams
|
|
4209
|
+
# The city or town.
|
|
4210
|
+
attr_accessor :city
|
|
4211
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4212
|
+
attr_accessor :country
|
|
4213
|
+
# The postal code formatted according to country.
|
|
4214
|
+
attr_accessor :postal_code
|
|
4215
|
+
# The state, county, province, or region formatted according to country.
|
|
4216
|
+
attr_accessor :region
|
|
4217
|
+
# Line 1 of the street address.
|
|
4218
|
+
attr_accessor :street_address
|
|
4219
|
+
# Line 2 of the street address.
|
|
4220
|
+
attr_accessor :street_address2
|
|
4221
|
+
|
|
4222
|
+
def initialize(
|
|
4223
|
+
city: nil,
|
|
4224
|
+
country: nil,
|
|
4225
|
+
postal_code: nil,
|
|
4226
|
+
region: nil,
|
|
4227
|
+
street_address: nil,
|
|
4228
|
+
street_address2: nil
|
|
4229
|
+
)
|
|
4230
|
+
@city = city
|
|
4231
|
+
@country = country
|
|
4232
|
+
@postal_code = postal_code
|
|
4233
|
+
@region = region
|
|
4234
|
+
@street_address = street_address
|
|
4235
|
+
@street_address2 = street_address2
|
|
4236
|
+
end
|
|
4237
|
+
end
|
|
4238
|
+
# Address of the departure location.
|
|
4239
|
+
attr_accessor :address
|
|
4240
|
+
# Timestamp of departure.
|
|
4241
|
+
attr_accessor :departs_at
|
|
4242
|
+
# Identifier name or reference for the origin location.
|
|
4243
|
+
attr_accessor :departure_location
|
|
4244
|
+
|
|
4245
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4246
|
+
@address = address
|
|
4247
|
+
@departs_at = departs_at
|
|
4248
|
+
@departure_location = departure_location
|
|
4249
|
+
end
|
|
4250
|
+
end
|
|
4251
|
+
|
|
4252
|
+
class Insurance < ::Stripe::RequestParams
|
|
4253
|
+
# Insurance currency.
|
|
4254
|
+
attr_accessor :currency
|
|
4255
|
+
# Name of the company providing the insurance.
|
|
4256
|
+
attr_accessor :insurance_company_name
|
|
4257
|
+
# Type of insurance.
|
|
4258
|
+
attr_accessor :insurance_type
|
|
4259
|
+
# Price of insurance in cents.
|
|
4260
|
+
attr_accessor :price
|
|
4261
|
+
|
|
4262
|
+
def initialize(
|
|
4263
|
+
currency: nil,
|
|
4264
|
+
insurance_company_name: nil,
|
|
4265
|
+
insurance_type: nil,
|
|
4266
|
+
price: nil
|
|
4267
|
+
)
|
|
4268
|
+
@currency = currency
|
|
4269
|
+
@insurance_company_name = insurance_company_name
|
|
4270
|
+
@insurance_type = insurance_type
|
|
4271
|
+
@price = price
|
|
4272
|
+
end
|
|
4273
|
+
end
|
|
4274
|
+
|
|
4275
|
+
class Passenger < ::Stripe::RequestParams
|
|
4276
|
+
# The family name of the person.
|
|
4277
|
+
attr_accessor :family_name
|
|
4278
|
+
# The given name of the person.
|
|
4279
|
+
attr_accessor :given_name
|
|
4280
|
+
|
|
4281
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4282
|
+
@family_name = family_name
|
|
4283
|
+
@given_name = given_name
|
|
4284
|
+
end
|
|
4285
|
+
end
|
|
4286
|
+
# Name of associated or partner company for the service.
|
|
4287
|
+
attr_accessor :affiliate_name
|
|
4288
|
+
# Arrival details.
|
|
4289
|
+
attr_accessor :arrival
|
|
4290
|
+
# Name of transportation company.
|
|
4291
|
+
attr_accessor :carrier_name
|
|
4292
|
+
# Currency.
|
|
4293
|
+
attr_accessor :currency
|
|
4294
|
+
# Departure details.
|
|
4295
|
+
attr_accessor :departure
|
|
4296
|
+
# List of insurances for this reservation.
|
|
4297
|
+
attr_accessor :insurances
|
|
4298
|
+
# List of passengers that this reservation applies to.
|
|
4299
|
+
attr_accessor :passengers
|
|
4300
|
+
# Price in cents.
|
|
4301
|
+
attr_accessor :price
|
|
4302
|
+
# Ticket class.
|
|
4303
|
+
attr_accessor :ticket_class
|
|
4304
|
+
|
|
4305
|
+
def initialize(
|
|
4306
|
+
affiliate_name: nil,
|
|
4307
|
+
arrival: nil,
|
|
4308
|
+
carrier_name: nil,
|
|
4309
|
+
currency: nil,
|
|
4310
|
+
departure: nil,
|
|
4311
|
+
insurances: nil,
|
|
4312
|
+
passengers: nil,
|
|
4313
|
+
price: nil,
|
|
4314
|
+
ticket_class: nil
|
|
4315
|
+
)
|
|
4316
|
+
@affiliate_name = affiliate_name
|
|
4317
|
+
@arrival = arrival
|
|
4318
|
+
@carrier_name = carrier_name
|
|
4319
|
+
@currency = currency
|
|
4320
|
+
@departure = departure
|
|
4321
|
+
@insurances = insurances
|
|
4322
|
+
@passengers = passengers
|
|
4323
|
+
@price = price
|
|
4324
|
+
@ticket_class = ticket_class
|
|
4325
|
+
end
|
|
4326
|
+
end
|
|
4327
|
+
|
|
4328
|
+
class Voucher < ::Stripe::RequestParams
|
|
4329
|
+
# Name of associated or partner company for this voucher.
|
|
4330
|
+
attr_accessor :affiliate_name
|
|
4331
|
+
# The voucher validity end time.
|
|
4332
|
+
attr_accessor :ends_at
|
|
4333
|
+
# The voucher validity start time.
|
|
4334
|
+
attr_accessor :starts_at
|
|
4335
|
+
# The issuer or provider of this voucher.
|
|
4336
|
+
attr_accessor :voucher_company
|
|
4337
|
+
# The name or reference to identify the voucher.
|
|
4338
|
+
attr_accessor :voucher_name
|
|
4339
|
+
# The type of this voucher.
|
|
4340
|
+
attr_accessor :voucher_type
|
|
4341
|
+
|
|
4342
|
+
def initialize(
|
|
4343
|
+
affiliate_name: nil,
|
|
4344
|
+
ends_at: nil,
|
|
4345
|
+
starts_at: nil,
|
|
4346
|
+
voucher_company: nil,
|
|
4347
|
+
voucher_name: nil,
|
|
4348
|
+
voucher_type: nil
|
|
4349
|
+
)
|
|
4350
|
+
@affiliate_name = affiliate_name
|
|
4351
|
+
@ends_at = ends_at
|
|
4352
|
+
@starts_at = starts_at
|
|
4353
|
+
@voucher_company = voucher_company
|
|
4354
|
+
@voucher_name = voucher_name
|
|
4355
|
+
@voucher_type = voucher_type
|
|
4356
|
+
end
|
|
4357
|
+
end
|
|
4358
|
+
# Supplementary bus reservation details.
|
|
4359
|
+
attr_accessor :bus_reservation_details
|
|
4360
|
+
# Supplementary event reservation details.
|
|
4361
|
+
attr_accessor :event_reservation_details
|
|
4362
|
+
# Supplementary ferry reservation details.
|
|
4363
|
+
attr_accessor :ferry_reservation_details
|
|
4364
|
+
# Supplementary insurance details.
|
|
4365
|
+
attr_accessor :insurances
|
|
4366
|
+
# Supplementary marketplace seller details.
|
|
4367
|
+
attr_accessor :marketplace_sellers
|
|
4368
|
+
# Supplementary round trip reservation details.
|
|
4369
|
+
attr_accessor :round_trip_reservation_details
|
|
4370
|
+
# Supplementary train reservation details.
|
|
4371
|
+
attr_accessor :train_reservation_details
|
|
4372
|
+
# Voucher details, such as a gift card or discount code.
|
|
4373
|
+
attr_accessor :vouchers
|
|
4374
|
+
|
|
4375
|
+
def initialize(
|
|
4376
|
+
bus_reservation_details: nil,
|
|
4377
|
+
event_reservation_details: nil,
|
|
4378
|
+
ferry_reservation_details: nil,
|
|
4379
|
+
insurances: nil,
|
|
4380
|
+
marketplace_sellers: nil,
|
|
4381
|
+
round_trip_reservation_details: nil,
|
|
4382
|
+
train_reservation_details: nil,
|
|
4383
|
+
vouchers: nil
|
|
4384
|
+
)
|
|
4385
|
+
@bus_reservation_details = bus_reservation_details
|
|
4386
|
+
@event_reservation_details = event_reservation_details
|
|
4387
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
4388
|
+
@insurances = insurances
|
|
4389
|
+
@marketplace_sellers = marketplace_sellers
|
|
4390
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
4391
|
+
@train_reservation_details = train_reservation_details
|
|
4392
|
+
@vouchers = vouchers
|
|
4393
|
+
end
|
|
4394
|
+
end
|
|
1635
4395
|
# Controls when the funds are captured from the customer's account.
|
|
1636
4396
|
#
|
|
1637
4397
|
# 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.
|
|
@@ -1654,19 +4414,23 @@ module Stripe
|
|
|
1654
4414
|
attr_accessor :setup_future_usage
|
|
1655
4415
|
# Subscription details if setting up or charging a subscription.
|
|
1656
4416
|
attr_accessor :subscriptions
|
|
4417
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4418
|
+
attr_accessor :supplementary_purchase_data
|
|
1657
4419
|
|
|
1658
4420
|
def initialize(
|
|
1659
4421
|
capture_method: nil,
|
|
1660
4422
|
on_demand: nil,
|
|
1661
4423
|
preferred_locale: nil,
|
|
1662
4424
|
setup_future_usage: nil,
|
|
1663
|
-
subscriptions: nil
|
|
4425
|
+
subscriptions: nil,
|
|
4426
|
+
supplementary_purchase_data: nil
|
|
1664
4427
|
)
|
|
1665
4428
|
@capture_method = capture_method
|
|
1666
4429
|
@on_demand = on_demand
|
|
1667
4430
|
@preferred_locale = preferred_locale
|
|
1668
4431
|
@setup_future_usage = setup_future_usage
|
|
1669
4432
|
@subscriptions = subscriptions
|
|
4433
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1670
4434
|
end
|
|
1671
4435
|
end
|
|
1672
4436
|
|
|
@@ -1927,12 +4691,65 @@ module Stripe
|
|
|
1927
4691
|
end
|
|
1928
4692
|
|
|
1929
4693
|
class Paypal < ::Stripe::RequestParams
|
|
4694
|
+
class LineItem < ::Stripe::RequestParams
|
|
4695
|
+
class Tax < ::Stripe::RequestParams
|
|
4696
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4697
|
+
attr_accessor :amount
|
|
4698
|
+
# The tax behavior for the line item.
|
|
4699
|
+
attr_accessor :behavior
|
|
4700
|
+
|
|
4701
|
+
def initialize(amount: nil, behavior: nil)
|
|
4702
|
+
@amount = amount
|
|
4703
|
+
@behavior = behavior
|
|
4704
|
+
end
|
|
4705
|
+
end
|
|
4706
|
+
# Type of the line item.
|
|
4707
|
+
attr_accessor :category
|
|
4708
|
+
# Description of the line item.
|
|
4709
|
+
attr_accessor :description
|
|
4710
|
+
# Descriptive name of the line item.
|
|
4711
|
+
attr_accessor :name
|
|
4712
|
+
# Quantity of the line item. Must be a positive number.
|
|
4713
|
+
attr_accessor :quantity
|
|
4714
|
+
# Client facing stock keeping unit, article number or similar.
|
|
4715
|
+
attr_accessor :sku
|
|
4716
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
4717
|
+
attr_accessor :sold_by
|
|
4718
|
+
# The tax information for the line item.
|
|
4719
|
+
attr_accessor :tax
|
|
4720
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4721
|
+
attr_accessor :unit_amount
|
|
4722
|
+
|
|
4723
|
+
def initialize(
|
|
4724
|
+
category: nil,
|
|
4725
|
+
description: nil,
|
|
4726
|
+
name: nil,
|
|
4727
|
+
quantity: nil,
|
|
4728
|
+
sku: nil,
|
|
4729
|
+
sold_by: nil,
|
|
4730
|
+
tax: nil,
|
|
4731
|
+
unit_amount: nil
|
|
4732
|
+
)
|
|
4733
|
+
@category = category
|
|
4734
|
+
@description = description
|
|
4735
|
+
@name = name
|
|
4736
|
+
@quantity = quantity
|
|
4737
|
+
@sku = sku
|
|
4738
|
+
@sold_by = sold_by
|
|
4739
|
+
@tax = tax
|
|
4740
|
+
@unit_amount = unit_amount
|
|
4741
|
+
end
|
|
4742
|
+
end
|
|
1930
4743
|
# Controls when the funds will be captured from the customer's account.
|
|
1931
4744
|
attr_accessor :capture_method
|
|
4745
|
+
# The line items purchased by the customer.
|
|
4746
|
+
attr_accessor :line_items
|
|
1932
4747
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1933
4748
|
attr_accessor :preferred_locale
|
|
1934
4749
|
# 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.
|
|
1935
4750
|
attr_accessor :reference
|
|
4751
|
+
# 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.
|
|
4752
|
+
attr_accessor :reference_id
|
|
1936
4753
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1937
4754
|
attr_accessor :risk_correlation_id
|
|
1938
4755
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1945,19 +4762,40 @@ module Stripe
|
|
|
1945
4762
|
#
|
|
1946
4763
|
# 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`.
|
|
1947
4764
|
attr_accessor :setup_future_usage
|
|
4765
|
+
# 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.
|
|
4766
|
+
attr_accessor :subsellers
|
|
1948
4767
|
|
|
1949
4768
|
def initialize(
|
|
1950
4769
|
capture_method: nil,
|
|
4770
|
+
line_items: nil,
|
|
1951
4771
|
preferred_locale: nil,
|
|
1952
4772
|
reference: nil,
|
|
4773
|
+
reference_id: nil,
|
|
1953
4774
|
risk_correlation_id: nil,
|
|
1954
|
-
setup_future_usage: nil
|
|
4775
|
+
setup_future_usage: nil,
|
|
4776
|
+
subsellers: nil
|
|
1955
4777
|
)
|
|
1956
4778
|
@capture_method = capture_method
|
|
4779
|
+
@line_items = line_items
|
|
1957
4780
|
@preferred_locale = preferred_locale
|
|
1958
4781
|
@reference = reference
|
|
4782
|
+
@reference_id = reference_id
|
|
1959
4783
|
@risk_correlation_id = risk_correlation_id
|
|
1960
4784
|
@setup_future_usage = setup_future_usage
|
|
4785
|
+
@subsellers = subsellers
|
|
4786
|
+
end
|
|
4787
|
+
end
|
|
4788
|
+
|
|
4789
|
+
class Paypay < ::Stripe::RequestParams
|
|
4790
|
+
# Controls when the funds are captured from the customer's account.
|
|
4791
|
+
#
|
|
4792
|
+
# 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.
|
|
4793
|
+
#
|
|
4794
|
+
# 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.
|
|
4795
|
+
attr_accessor :capture_method
|
|
4796
|
+
|
|
4797
|
+
def initialize(capture_method: nil)
|
|
4798
|
+
@capture_method = capture_method
|
|
1961
4799
|
end
|
|
1962
4800
|
end
|
|
1963
4801
|
|
|
@@ -2012,12 +4850,52 @@ module Stripe
|
|
|
2012
4850
|
end
|
|
2013
4851
|
|
|
2014
4852
|
class Pix < ::Stripe::RequestParams
|
|
4853
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
4854
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
4855
|
+
attr_accessor :amount
|
|
4856
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
4857
|
+
attr_accessor :amount_includes_iof
|
|
4858
|
+
# Type of amount. Defaults to `maximum`.
|
|
4859
|
+
attr_accessor :amount_type
|
|
4860
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
4861
|
+
attr_accessor :currency
|
|
4862
|
+
# 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.
|
|
4863
|
+
attr_accessor :end_date
|
|
4864
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
4865
|
+
attr_accessor :payment_schedule
|
|
4866
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
4867
|
+
attr_accessor :reference
|
|
4868
|
+
# 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.
|
|
4869
|
+
attr_accessor :start_date
|
|
4870
|
+
|
|
4871
|
+
def initialize(
|
|
4872
|
+
amount: nil,
|
|
4873
|
+
amount_includes_iof: nil,
|
|
4874
|
+
amount_type: nil,
|
|
4875
|
+
currency: nil,
|
|
4876
|
+
end_date: nil,
|
|
4877
|
+
payment_schedule: nil,
|
|
4878
|
+
reference: nil,
|
|
4879
|
+
start_date: nil
|
|
4880
|
+
)
|
|
4881
|
+
@amount = amount
|
|
4882
|
+
@amount_includes_iof = amount_includes_iof
|
|
4883
|
+
@amount_type = amount_type
|
|
4884
|
+
@currency = currency
|
|
4885
|
+
@end_date = end_date
|
|
4886
|
+
@payment_schedule = payment_schedule
|
|
4887
|
+
@reference = reference
|
|
4888
|
+
@start_date = start_date
|
|
4889
|
+
end
|
|
4890
|
+
end
|
|
2015
4891
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
2016
4892
|
attr_accessor :amount_includes_iof
|
|
2017
4893
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
2018
4894
|
attr_accessor :expires_after_seconds
|
|
2019
4895
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
|
2020
4896
|
attr_accessor :expires_at
|
|
4897
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
4898
|
+
attr_accessor :mandate_options
|
|
2021
4899
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2022
4900
|
#
|
|
2023
4901
|
# 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.
|
|
@@ -2033,11 +4911,13 @@ module Stripe
|
|
|
2033
4911
|
amount_includes_iof: nil,
|
|
2034
4912
|
expires_after_seconds: nil,
|
|
2035
4913
|
expires_at: nil,
|
|
4914
|
+
mandate_options: nil,
|
|
2036
4915
|
setup_future_usage: nil
|
|
2037
4916
|
)
|
|
2038
4917
|
@amount_includes_iof = amount_includes_iof
|
|
2039
4918
|
@expires_after_seconds = expires_after_seconds
|
|
2040
4919
|
@expires_at = expires_at
|
|
4920
|
+
@mandate_options = mandate_options
|
|
2041
4921
|
@setup_future_usage = setup_future_usage
|
|
2042
4922
|
end
|
|
2043
4923
|
end
|
|
@@ -2059,6 +4939,25 @@ module Stripe
|
|
|
2059
4939
|
end
|
|
2060
4940
|
end
|
|
2061
4941
|
|
|
4942
|
+
class Qris < ::Stripe::RequestParams
|
|
4943
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4944
|
+
#
|
|
4945
|
+
# 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.
|
|
4946
|
+
#
|
|
4947
|
+
# 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.
|
|
4948
|
+
#
|
|
4949
|
+
# 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).
|
|
4950
|
+
#
|
|
4951
|
+
# 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`.
|
|
4952
|
+
attr_accessor :setup_future_usage
|
|
4953
|
+
|
|
4954
|
+
def initialize(setup_future_usage: nil)
|
|
4955
|
+
@setup_future_usage = setup_future_usage
|
|
4956
|
+
end
|
|
4957
|
+
end
|
|
4958
|
+
|
|
4959
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
4960
|
+
|
|
2062
4961
|
class RevolutPay < ::Stripe::RequestParams
|
|
2063
4962
|
# Controls when the funds are captured from the customer's account.
|
|
2064
4963
|
#
|
|
@@ -2138,6 +5037,23 @@ module Stripe
|
|
|
2138
5037
|
end
|
|
2139
5038
|
end
|
|
2140
5039
|
|
|
5040
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5041
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5042
|
+
#
|
|
5043
|
+
# 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.
|
|
5044
|
+
#
|
|
5045
|
+
# 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.
|
|
5046
|
+
#
|
|
5047
|
+
# 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).
|
|
5048
|
+
#
|
|
5049
|
+
# 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`.
|
|
5050
|
+
attr_accessor :setup_future_usage
|
|
5051
|
+
|
|
5052
|
+
def initialize(setup_future_usage: nil)
|
|
5053
|
+
@setup_future_usage = setup_future_usage
|
|
5054
|
+
end
|
|
5055
|
+
end
|
|
5056
|
+
|
|
2141
5057
|
class Sofort < ::Stripe::RequestParams
|
|
2142
5058
|
# Language shown to the payer on redirect.
|
|
2143
5059
|
attr_accessor :preferred_language
|
|
@@ -2158,6 +5074,23 @@ module Stripe
|
|
|
2158
5074
|
end
|
|
2159
5075
|
end
|
|
2160
5076
|
|
|
5077
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5078
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5079
|
+
#
|
|
5080
|
+
# 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.
|
|
5081
|
+
#
|
|
5082
|
+
# 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.
|
|
5083
|
+
#
|
|
5084
|
+
# 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).
|
|
5085
|
+
#
|
|
5086
|
+
# 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`.
|
|
5087
|
+
attr_accessor :setup_future_usage
|
|
5088
|
+
|
|
5089
|
+
def initialize(setup_future_usage: nil)
|
|
5090
|
+
@setup_future_usage = setup_future_usage
|
|
5091
|
+
end
|
|
5092
|
+
end
|
|
5093
|
+
|
|
2161
5094
|
class Swish < ::Stripe::RequestParams
|
|
2162
5095
|
# A reference for this payment to be displayed in the Swish app.
|
|
2163
5096
|
attr_accessor :reference
|
|
@@ -2200,13 +5133,27 @@ module Stripe
|
|
|
2200
5133
|
class Filters < ::Stripe::RequestParams
|
|
2201
5134
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2202
5135
|
attr_accessor :account_subcategories
|
|
5136
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5137
|
+
attr_accessor :institution
|
|
2203
5138
|
|
|
2204
|
-
def initialize(account_subcategories: nil)
|
|
5139
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2205
5140
|
@account_subcategories = account_subcategories
|
|
5141
|
+
@institution = institution
|
|
5142
|
+
end
|
|
5143
|
+
end
|
|
5144
|
+
|
|
5145
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5146
|
+
# Settings for configuring manual entry of account details.
|
|
5147
|
+
attr_accessor :mode
|
|
5148
|
+
|
|
5149
|
+
def initialize(mode: nil)
|
|
5150
|
+
@mode = mode
|
|
2206
5151
|
end
|
|
2207
5152
|
end
|
|
2208
5153
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2209
5154
|
attr_accessor :filters
|
|
5155
|
+
# Customize manual entry behavior
|
|
5156
|
+
attr_accessor :manual_entry
|
|
2210
5157
|
# 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`.
|
|
2211
5158
|
attr_accessor :permissions
|
|
2212
5159
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2214,8 +5161,15 @@ module Stripe
|
|
|
2214
5161
|
# 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.
|
|
2215
5162
|
attr_accessor :return_url
|
|
2216
5163
|
|
|
2217
|
-
def initialize(
|
|
5164
|
+
def initialize(
|
|
5165
|
+
filters: nil,
|
|
5166
|
+
manual_entry: nil,
|
|
5167
|
+
permissions: nil,
|
|
5168
|
+
prefetch: nil,
|
|
5169
|
+
return_url: nil
|
|
5170
|
+
)
|
|
2218
5171
|
@filters = filters
|
|
5172
|
+
@manual_entry = manual_entry
|
|
2219
5173
|
@permissions = permissions
|
|
2220
5174
|
@prefetch = prefetch
|
|
2221
5175
|
@return_url = return_url
|
|
@@ -2360,8 +5314,12 @@ module Stripe
|
|
|
2360
5314
|
attr_accessor :fpx
|
|
2361
5315
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2362
5316
|
attr_accessor :giropay
|
|
5317
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5318
|
+
attr_accessor :gopay
|
|
2363
5319
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2364
5320
|
attr_accessor :grabpay
|
|
5321
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5322
|
+
attr_accessor :id_bank_transfer
|
|
2365
5323
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2366
5324
|
attr_accessor :ideal
|
|
2367
5325
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2398,12 +5356,18 @@ module Stripe
|
|
|
2398
5356
|
attr_accessor :paynow
|
|
2399
5357
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2400
5358
|
attr_accessor :paypal
|
|
5359
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5360
|
+
attr_accessor :paypay
|
|
2401
5361
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2402
5362
|
attr_accessor :payto
|
|
2403
5363
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2404
5364
|
attr_accessor :pix
|
|
2405
5365
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2406
5366
|
attr_accessor :promptpay
|
|
5367
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5368
|
+
attr_accessor :qris
|
|
5369
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5370
|
+
attr_accessor :rechnung
|
|
2407
5371
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2408
5372
|
attr_accessor :revolut_pay
|
|
2409
5373
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2412,8 +5376,12 @@ module Stripe
|
|
|
2412
5376
|
attr_accessor :satispay
|
|
2413
5377
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2414
5378
|
attr_accessor :sepa_debit
|
|
5379
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5380
|
+
attr_accessor :shopeepay
|
|
2415
5381
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2416
5382
|
attr_accessor :sofort
|
|
5383
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5384
|
+
attr_accessor :stripe_balance
|
|
2417
5385
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2418
5386
|
attr_accessor :swish
|
|
2419
5387
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2446,7 +5414,9 @@ module Stripe
|
|
|
2446
5414
|
eps: nil,
|
|
2447
5415
|
fpx: nil,
|
|
2448
5416
|
giropay: nil,
|
|
5417
|
+
gopay: nil,
|
|
2449
5418
|
grabpay: nil,
|
|
5419
|
+
id_bank_transfer: nil,
|
|
2450
5420
|
ideal: nil,
|
|
2451
5421
|
interac_present: nil,
|
|
2452
5422
|
kakao_pay: nil,
|
|
@@ -2465,14 +5435,19 @@ module Stripe
|
|
|
2465
5435
|
payco: nil,
|
|
2466
5436
|
paynow: nil,
|
|
2467
5437
|
paypal: nil,
|
|
5438
|
+
paypay: nil,
|
|
2468
5439
|
payto: nil,
|
|
2469
5440
|
pix: nil,
|
|
2470
5441
|
promptpay: nil,
|
|
5442
|
+
qris: nil,
|
|
5443
|
+
rechnung: nil,
|
|
2471
5444
|
revolut_pay: nil,
|
|
2472
5445
|
samsung_pay: nil,
|
|
2473
5446
|
satispay: nil,
|
|
2474
5447
|
sepa_debit: nil,
|
|
5448
|
+
shopeepay: nil,
|
|
2475
5449
|
sofort: nil,
|
|
5450
|
+
stripe_balance: nil,
|
|
2476
5451
|
swish: nil,
|
|
2477
5452
|
twint: nil,
|
|
2478
5453
|
us_bank_account: nil,
|
|
@@ -2499,7 +5474,9 @@ module Stripe
|
|
|
2499
5474
|
@eps = eps
|
|
2500
5475
|
@fpx = fpx
|
|
2501
5476
|
@giropay = giropay
|
|
5477
|
+
@gopay = gopay
|
|
2502
5478
|
@grabpay = grabpay
|
|
5479
|
+
@id_bank_transfer = id_bank_transfer
|
|
2503
5480
|
@ideal = ideal
|
|
2504
5481
|
@interac_present = interac_present
|
|
2505
5482
|
@kakao_pay = kakao_pay
|
|
@@ -2518,14 +5495,19 @@ module Stripe
|
|
|
2518
5495
|
@payco = payco
|
|
2519
5496
|
@paynow = paynow
|
|
2520
5497
|
@paypal = paypal
|
|
5498
|
+
@paypay = paypay
|
|
2521
5499
|
@payto = payto
|
|
2522
5500
|
@pix = pix
|
|
2523
5501
|
@promptpay = promptpay
|
|
5502
|
+
@qris = qris
|
|
5503
|
+
@rechnung = rechnung
|
|
2524
5504
|
@revolut_pay = revolut_pay
|
|
2525
5505
|
@samsung_pay = samsung_pay
|
|
2526
5506
|
@satispay = satispay
|
|
2527
5507
|
@sepa_debit = sepa_debit
|
|
5508
|
+
@shopeepay = shopeepay
|
|
2528
5509
|
@sofort = sofort
|
|
5510
|
+
@stripe_balance = stripe_balance
|
|
2529
5511
|
@swish = swish
|
|
2530
5512
|
@twint = twint
|
|
2531
5513
|
@us_bank_account = us_bank_account
|
|
@@ -2593,8 +5575,12 @@ module Stripe
|
|
|
2593
5575
|
@tracking_number = tracking_number
|
|
2594
5576
|
end
|
|
2595
5577
|
end
|
|
5578
|
+
# Allocated Funds configuration for this PaymentIntent.
|
|
5579
|
+
attr_accessor :allocated_funds
|
|
2596
5580
|
# Provides industry-specific information about the amount.
|
|
2597
5581
|
attr_accessor :amount_details
|
|
5582
|
+
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
5583
|
+
attr_accessor :application_fee_amount
|
|
2598
5584
|
# Controls when the funds will be captured from the customer's account.
|
|
2599
5585
|
attr_accessor :capture_method
|
|
2600
5586
|
# ID of the ConfirmationToken used to confirm this PaymentIntent.
|
|
@@ -2607,6 +5593,8 @@ module Stripe
|
|
|
2607
5593
|
attr_accessor :excluded_payment_method_types
|
|
2608
5594
|
# Specifies which fields in the response should be expanded.
|
|
2609
5595
|
attr_accessor :expand
|
|
5596
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5597
|
+
attr_accessor :fx_quote
|
|
2610
5598
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2611
5599
|
attr_accessor :hooks
|
|
2612
5600
|
# ID of the mandate that's used for this payment.
|
|
@@ -2646,18 +5634,23 @@ module Stripe
|
|
|
2646
5634
|
#
|
|
2647
5635
|
# 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`.
|
|
2648
5636
|
attr_accessor :setup_future_usage
|
|
5637
|
+
# ID of the SharedPaymentToken used to confirm this PaymentIntent.
|
|
5638
|
+
attr_accessor :shared_payment_granted_token
|
|
2649
5639
|
# Shipping information for this PaymentIntent.
|
|
2650
5640
|
attr_accessor :shipping
|
|
2651
5641
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
|
2652
5642
|
attr_accessor :use_stripe_sdk
|
|
2653
5643
|
|
|
2654
5644
|
def initialize(
|
|
5645
|
+
allocated_funds: nil,
|
|
2655
5646
|
amount_details: nil,
|
|
5647
|
+
application_fee_amount: nil,
|
|
2656
5648
|
capture_method: nil,
|
|
2657
5649
|
confirmation_token: nil,
|
|
2658
5650
|
error_on_requires_action: nil,
|
|
2659
5651
|
excluded_payment_method_types: nil,
|
|
2660
5652
|
expand: nil,
|
|
5653
|
+
fx_quote: nil,
|
|
2661
5654
|
hooks: nil,
|
|
2662
5655
|
mandate: nil,
|
|
2663
5656
|
mandate_data: nil,
|
|
@@ -2671,15 +5664,19 @@ module Stripe
|
|
|
2671
5664
|
receipt_email: nil,
|
|
2672
5665
|
return_url: nil,
|
|
2673
5666
|
setup_future_usage: nil,
|
|
5667
|
+
shared_payment_granted_token: nil,
|
|
2674
5668
|
shipping: nil,
|
|
2675
5669
|
use_stripe_sdk: nil
|
|
2676
5670
|
)
|
|
5671
|
+
@allocated_funds = allocated_funds
|
|
2677
5672
|
@amount_details = amount_details
|
|
5673
|
+
@application_fee_amount = application_fee_amount
|
|
2678
5674
|
@capture_method = capture_method
|
|
2679
5675
|
@confirmation_token = confirmation_token
|
|
2680
5676
|
@error_on_requires_action = error_on_requires_action
|
|
2681
5677
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2682
5678
|
@expand = expand
|
|
5679
|
+
@fx_quote = fx_quote
|
|
2683
5680
|
@hooks = hooks
|
|
2684
5681
|
@mandate = mandate
|
|
2685
5682
|
@mandate_data = mandate_data
|
|
@@ -2693,6 +5690,7 @@ module Stripe
|
|
|
2693
5690
|
@receipt_email = receipt_email
|
|
2694
5691
|
@return_url = return_url
|
|
2695
5692
|
@setup_future_usage = setup_future_usage
|
|
5693
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
2696
5694
|
@shipping = shipping
|
|
2697
5695
|
@use_stripe_sdk = use_stripe_sdk
|
|
2698
5696
|
end
|