stripe 18.1.0 → 18.2.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +36 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +66 -0
- data/lib/stripe/event_types.rb +569 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +89 -0
- data/lib/stripe/params/account_create_params.rb +338 -3
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_person_create_params.rb +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +243 -1
- data/lib/stripe/params/account_update_params.rb +300 -2
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +222 -5
- data/lib/stripe/params/checkout/session_update_params.rb +154 -2
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +46 -2
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +941 -9
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +46 -2
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +46 -2
- data/lib/stripe/params/invoice_update_params.rb +107 -2
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/issuing/program_list_params.rb +24 -0
- data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1628 -2
- data/lib/stripe/params/payment_intent_confirm_params.rb +3143 -145
- data/lib/stripe/params/payment_intent_create_params.rb +3135 -124
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +22 -1
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3186 -161
- data/lib/stripe/params/payment_link_create_params.rb +13 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +77 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
- data/lib/stripe/params/product_create_params.rb +14 -1
- data/lib/stripe/params/product_update_params.rb +14 -1
- data/lib/stripe/params/quote_create_params.rb +1021 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +1029 -4
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
- data/lib/stripe/params/setup_intent_create_params.rb +187 -3
- data/lib/stripe/params/setup_intent_update_params.rb +188 -4
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +270 -5
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +609 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +231 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +231 -5
- data/lib/stripe/params/subscription_update_params.rb +253 -4
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/token_create_params.rb +64 -0
- data/lib/stripe/params/transfer_create_params.rb +8 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +959 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
- data/lib/stripe/params/v2/core/account_update_params.rb +938 -5
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +117 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +82 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +93 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +271 -0
- data/lib/stripe/resources/account.rb +182 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +108 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +105 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +58 -2
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +183 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +20 -1
- data/lib/stripe/resources/charge.rb +233 -1
- data/lib/stripe/resources/checkout/session.rb +196 -4
- data/lib/stripe/resources/confirmation_token.rb +151 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +479 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/invoice.rb +166 -1
- data/lib/stripe/resources/invoice_item.rb +108 -2
- data/lib/stripe/resources/invoice_line_item.rb +147 -3
- data/lib/stripe/resources/issuing/card.rb +4 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +66 -1
- data/lib/stripe/resources/mandate.rb +43 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +181 -1
- data/lib/stripe/resources/payment_intent.rb +800 -5
- data/lib/stripe/resources/payment_method.rb +173 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +181 -1
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
- data/lib/stripe/resources/quote.rb +806 -2
- data/lib/stripe/resources/quote_line.rb +527 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1198 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +128 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +249 -0
- data/lib/stripe/resources/subscription_item.rb +43 -1
- data/lib/stripe/resources/subscription_schedule.rb +290 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +1688 -58
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +50 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +134 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +103 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +223 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +265 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +204 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +242 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +157 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +280 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +208 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources.rb +233 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +6 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_method_service.rb +11 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +12 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +35 -0
- data/lib/stripe/services/v2/payment_service.rb +17 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +16 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +98 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +129099 -49595
- metadata +606 -4
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentIntentUpdateParams < ::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
|
|
@@ -19,201 +28,1879 @@ module Stripe
|
|
|
19
28
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
|
|
20
29
|
attr_accessor :commodity_code
|
|
21
30
|
|
|
22
|
-
def initialize(commodity_code: nil)
|
|
23
|
-
@commodity_code = commodity_code
|
|
24
|
-
end
|
|
31
|
+
def initialize(commodity_code: nil)
|
|
32
|
+
@commodity_code = commodity_code
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
class Klarna < ::Stripe::RequestParams
|
|
37
|
+
# URL to an image for the product. Max length, 4096 characters.
|
|
38
|
+
attr_accessor :image_url
|
|
39
|
+
# URL to the product page. Max length, 4096 characters.
|
|
40
|
+
attr_accessor :product_url
|
|
41
|
+
# Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed.
|
|
42
|
+
attr_accessor :reference
|
|
43
|
+
# Reference for the subscription this line item is for.
|
|
44
|
+
attr_accessor :subscription_reference
|
|
45
|
+
|
|
46
|
+
def initialize(
|
|
47
|
+
image_url: nil,
|
|
48
|
+
product_url: nil,
|
|
49
|
+
reference: nil,
|
|
50
|
+
subscription_reference: nil
|
|
51
|
+
)
|
|
52
|
+
@image_url = image_url
|
|
53
|
+
@product_url = product_url
|
|
54
|
+
@reference = reference
|
|
55
|
+
@subscription_reference = subscription_reference
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
class Paypal < ::Stripe::RequestParams
|
|
60
|
+
# Type of the line item.
|
|
61
|
+
attr_accessor :category
|
|
62
|
+
# Description of the line item.
|
|
63
|
+
attr_accessor :description
|
|
64
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
65
|
+
attr_accessor :sold_by
|
|
66
|
+
|
|
67
|
+
def initialize(category: nil, description: nil, sold_by: nil)
|
|
68
|
+
@category = category
|
|
69
|
+
@description = description
|
|
70
|
+
@sold_by = sold_by
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
# This sub-hash contains line item details that are specific to `card` payment method."
|
|
74
|
+
attr_accessor :card
|
|
75
|
+
# This sub-hash contains line item details that are specific to `card_present` payment method."
|
|
76
|
+
attr_accessor :card_present
|
|
77
|
+
# This sub-hash contains line item details that are specific to `klarna` payment method."
|
|
78
|
+
attr_accessor :klarna
|
|
79
|
+
# This sub-hash contains line item details that are specific to `paypal` payment method."
|
|
80
|
+
attr_accessor :paypal
|
|
81
|
+
|
|
82
|
+
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
|
|
83
|
+
@card = card
|
|
84
|
+
@card_present = card_present
|
|
85
|
+
@klarna = klarna
|
|
86
|
+
@paypal = paypal
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
class Tax < ::Stripe::RequestParams
|
|
91
|
+
# The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
92
|
+
#
|
|
93
|
+
# This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
|
|
94
|
+
attr_accessor :total_tax_amount
|
|
95
|
+
|
|
96
|
+
def initialize(total_tax_amount: nil)
|
|
97
|
+
@total_tax_amount = total_tax_amount
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
# The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
101
|
+
#
|
|
102
|
+
# This field is mutually exclusive with the `amount_details[discount_amount]` field.
|
|
103
|
+
attr_accessor :discount_amount
|
|
104
|
+
# Payment method-specific information for line items.
|
|
105
|
+
attr_accessor :payment_method_options
|
|
106
|
+
# The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
|
|
107
|
+
attr_accessor :product_code
|
|
108
|
+
# The product name of the line item. Required for L3 rates. At most 1024 characters long.
|
|
109
|
+
#
|
|
110
|
+
# For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
|
|
111
|
+
attr_accessor :product_name
|
|
112
|
+
# The quantity of items. Required for L3 rates. An integer greater than 0.
|
|
113
|
+
attr_accessor :quantity
|
|
114
|
+
# Contains information about the tax on the item.
|
|
115
|
+
attr_accessor :tax
|
|
116
|
+
# The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
117
|
+
attr_accessor :unit_cost
|
|
118
|
+
# A unit of measure for the line item, such as gallons, feet, meters, etc.
|
|
119
|
+
attr_accessor :unit_of_measure
|
|
120
|
+
|
|
121
|
+
def initialize(
|
|
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
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
|
172
|
+
attr_accessor :line_items
|
|
173
|
+
# Contains information about the shipping portion of the amount.
|
|
174
|
+
attr_accessor :shipping
|
|
175
|
+
# Contains information about the tax portion of the amount.
|
|
176
|
+
attr_accessor :tax
|
|
177
|
+
|
|
178
|
+
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
|
|
179
|
+
@discount_amount = discount_amount
|
|
180
|
+
@line_items = line_items
|
|
181
|
+
@shipping = shipping
|
|
182
|
+
@tax = tax
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
class Hooks < ::Stripe::RequestParams
|
|
187
|
+
class Inputs < ::Stripe::RequestParams
|
|
188
|
+
class Tax < ::Stripe::RequestParams
|
|
189
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
190
|
+
attr_accessor :calculation
|
|
191
|
+
|
|
192
|
+
def initialize(calculation: nil)
|
|
193
|
+
@calculation = calculation
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
# Tax arguments for automations
|
|
197
|
+
attr_accessor :tax
|
|
198
|
+
|
|
199
|
+
def initialize(tax: nil)
|
|
200
|
+
@tax = tax
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
# Arguments passed in automations
|
|
204
|
+
attr_accessor :inputs
|
|
205
|
+
|
|
206
|
+
def initialize(inputs: nil)
|
|
207
|
+
@inputs = inputs
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
class MandateData < ::Stripe::RequestParams
|
|
212
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
213
|
+
class Online < ::Stripe::RequestParams
|
|
214
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
215
|
+
attr_accessor :ip_address
|
|
216
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
217
|
+
attr_accessor :user_agent
|
|
218
|
+
|
|
219
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
220
|
+
@ip_address = ip_address
|
|
221
|
+
@user_agent = user_agent
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
225
|
+
attr_accessor :online
|
|
226
|
+
# The type of customer acceptance information included with the Mandate.
|
|
227
|
+
attr_accessor :type
|
|
228
|
+
|
|
229
|
+
def initialize(online: nil, type: nil)
|
|
230
|
+
@online = online
|
|
231
|
+
@type = type
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
235
|
+
attr_accessor :customer_acceptance
|
|
236
|
+
|
|
237
|
+
def initialize(customer_acceptance: nil)
|
|
238
|
+
@customer_acceptance = customer_acceptance
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
243
|
+
class Benefit < ::Stripe::RequestParams
|
|
244
|
+
class FrMealVoucher < ::Stripe::RequestParams
|
|
245
|
+
# The 14-digit SIRET of the meal voucher acceptor.
|
|
246
|
+
attr_accessor :siret
|
|
247
|
+
|
|
248
|
+
def initialize(siret: nil)
|
|
249
|
+
@siret = siret
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
# French meal voucher benefit details for this PaymentIntent.
|
|
253
|
+
attr_accessor :fr_meal_voucher
|
|
254
|
+
|
|
255
|
+
def initialize(fr_meal_voucher: nil)
|
|
256
|
+
@fr_meal_voucher = fr_meal_voucher
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
class CarRental < ::Stripe::RequestParams
|
|
261
|
+
class Affiliate < ::Stripe::RequestParams
|
|
262
|
+
# The name of the affiliate that originated the purchase.
|
|
263
|
+
attr_accessor :name
|
|
264
|
+
|
|
265
|
+
def initialize(name: nil)
|
|
266
|
+
@name = name
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
class Delivery < ::Stripe::RequestParams
|
|
271
|
+
class Recipient < ::Stripe::RequestParams
|
|
272
|
+
# The email of the recipient the ticket is delivered to.
|
|
273
|
+
attr_accessor :email
|
|
274
|
+
# The name of the recipient the ticket is delivered to.
|
|
275
|
+
attr_accessor :name
|
|
276
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
277
|
+
attr_accessor :phone
|
|
278
|
+
|
|
279
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
280
|
+
@email = email
|
|
281
|
+
@name = name
|
|
282
|
+
@phone = phone
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
# The delivery method for the payment
|
|
286
|
+
attr_accessor :mode
|
|
287
|
+
# Details of the recipient.
|
|
288
|
+
attr_accessor :recipient
|
|
289
|
+
|
|
290
|
+
def initialize(mode: nil, recipient: nil)
|
|
291
|
+
@mode = mode
|
|
292
|
+
@recipient = recipient
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
class Distance < ::Stripe::RequestParams
|
|
297
|
+
# Distance traveled.
|
|
298
|
+
attr_accessor :amount
|
|
299
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
300
|
+
attr_accessor :unit
|
|
301
|
+
|
|
302
|
+
def initialize(amount: nil, unit: nil)
|
|
303
|
+
@amount = amount
|
|
304
|
+
@unit = unit
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
class Driver < ::Stripe::RequestParams
|
|
309
|
+
# Driver's identification number.
|
|
310
|
+
attr_accessor :driver_identification_number
|
|
311
|
+
# Driver's tax number.
|
|
312
|
+
attr_accessor :driver_tax_number
|
|
313
|
+
# Full name of the person or entity on the car reservation.
|
|
314
|
+
attr_accessor :name
|
|
315
|
+
|
|
316
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
317
|
+
@driver_identification_number = driver_identification_number
|
|
318
|
+
@driver_tax_number = driver_tax_number
|
|
319
|
+
@name = name
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
324
|
+
# City, district, suburb, town, or village.
|
|
325
|
+
attr_accessor :city
|
|
326
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
327
|
+
attr_accessor :country
|
|
328
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
329
|
+
attr_accessor :line1
|
|
330
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
331
|
+
attr_accessor :line2
|
|
332
|
+
# ZIP or postal code.
|
|
333
|
+
attr_accessor :postal_code
|
|
334
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
335
|
+
attr_accessor :state
|
|
336
|
+
|
|
337
|
+
def initialize(
|
|
338
|
+
city: nil,
|
|
339
|
+
country: nil,
|
|
340
|
+
line1: nil,
|
|
341
|
+
line2: nil,
|
|
342
|
+
postal_code: nil,
|
|
343
|
+
state: nil
|
|
344
|
+
)
|
|
345
|
+
@city = city
|
|
346
|
+
@country = country
|
|
347
|
+
@line1 = line1
|
|
348
|
+
@line2 = line2
|
|
349
|
+
@postal_code = postal_code
|
|
350
|
+
@state = state
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
355
|
+
# City, district, suburb, town, or village.
|
|
356
|
+
attr_accessor :city
|
|
357
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
358
|
+
attr_accessor :country
|
|
359
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
360
|
+
attr_accessor :line1
|
|
361
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
362
|
+
attr_accessor :line2
|
|
363
|
+
# ZIP or postal code.
|
|
364
|
+
attr_accessor :postal_code
|
|
365
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
366
|
+
attr_accessor :state
|
|
367
|
+
|
|
368
|
+
def initialize(
|
|
369
|
+
city: nil,
|
|
370
|
+
country: nil,
|
|
371
|
+
line1: nil,
|
|
372
|
+
line2: nil,
|
|
373
|
+
postal_code: nil,
|
|
374
|
+
state: nil
|
|
375
|
+
)
|
|
376
|
+
@city = city
|
|
377
|
+
@country = country
|
|
378
|
+
@line1 = line1
|
|
379
|
+
@line2 = line2
|
|
380
|
+
@postal_code = postal_code
|
|
381
|
+
@state = state
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
# Affiliate details for this purchase.
|
|
385
|
+
attr_accessor :affiliate
|
|
386
|
+
# The booking number associated with the car rental.
|
|
387
|
+
attr_accessor :booking_number
|
|
388
|
+
# Class code of the car.
|
|
389
|
+
attr_accessor :car_class_code
|
|
390
|
+
# Make of the car.
|
|
391
|
+
attr_accessor :car_make
|
|
392
|
+
# Model of the car.
|
|
393
|
+
attr_accessor :car_model
|
|
394
|
+
# The name of the rental car company.
|
|
395
|
+
attr_accessor :company
|
|
396
|
+
# The customer service phone number of the car rental company.
|
|
397
|
+
attr_accessor :customer_service_phone_number
|
|
398
|
+
# Number of days the car is being rented.
|
|
399
|
+
attr_accessor :days_rented
|
|
400
|
+
# Delivery details for this purchase.
|
|
401
|
+
attr_accessor :delivery
|
|
402
|
+
# The details of the distance traveled during the rental period.
|
|
403
|
+
attr_accessor :distance
|
|
404
|
+
# The details of the passengers in the travel reservation
|
|
405
|
+
attr_accessor :drivers
|
|
406
|
+
# List of additional charges being billed.
|
|
407
|
+
attr_accessor :extra_charges
|
|
408
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
409
|
+
attr_accessor :no_show
|
|
410
|
+
# Car pick-up address.
|
|
411
|
+
attr_accessor :pickup_address
|
|
412
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
413
|
+
attr_accessor :pickup_at
|
|
414
|
+
# Name of the pickup location.
|
|
415
|
+
attr_accessor :pickup_location_name
|
|
416
|
+
# Rental rate.
|
|
417
|
+
attr_accessor :rate_amount
|
|
418
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
419
|
+
attr_accessor :rate_interval
|
|
420
|
+
# The name of the person or entity renting the car.
|
|
421
|
+
attr_accessor :renter_name
|
|
422
|
+
# Car return address.
|
|
423
|
+
attr_accessor :return_address
|
|
424
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
425
|
+
attr_accessor :return_at
|
|
426
|
+
# Name of the return location.
|
|
427
|
+
attr_accessor :return_location_name
|
|
428
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
429
|
+
attr_accessor :tax_exempt
|
|
430
|
+
# The vehicle identification number.
|
|
431
|
+
attr_accessor :vehicle_identification_number
|
|
432
|
+
|
|
433
|
+
def initialize(
|
|
434
|
+
affiliate: nil,
|
|
435
|
+
booking_number: nil,
|
|
436
|
+
car_class_code: nil,
|
|
437
|
+
car_make: nil,
|
|
438
|
+
car_model: nil,
|
|
439
|
+
company: nil,
|
|
440
|
+
customer_service_phone_number: nil,
|
|
441
|
+
days_rented: nil,
|
|
442
|
+
delivery: nil,
|
|
443
|
+
distance: nil,
|
|
444
|
+
drivers: nil,
|
|
445
|
+
extra_charges: nil,
|
|
446
|
+
no_show: nil,
|
|
447
|
+
pickup_address: nil,
|
|
448
|
+
pickup_at: nil,
|
|
449
|
+
pickup_location_name: nil,
|
|
450
|
+
rate_amount: nil,
|
|
451
|
+
rate_interval: nil,
|
|
452
|
+
renter_name: nil,
|
|
453
|
+
return_address: nil,
|
|
454
|
+
return_at: nil,
|
|
455
|
+
return_location_name: nil,
|
|
456
|
+
tax_exempt: nil,
|
|
457
|
+
vehicle_identification_number: nil
|
|
458
|
+
)
|
|
459
|
+
@affiliate = affiliate
|
|
460
|
+
@booking_number = booking_number
|
|
461
|
+
@car_class_code = car_class_code
|
|
462
|
+
@car_make = car_make
|
|
463
|
+
@car_model = car_model
|
|
464
|
+
@company = company
|
|
465
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
466
|
+
@days_rented = days_rented
|
|
467
|
+
@delivery = delivery
|
|
468
|
+
@distance = distance
|
|
469
|
+
@drivers = drivers
|
|
470
|
+
@extra_charges = extra_charges
|
|
471
|
+
@no_show = no_show
|
|
472
|
+
@pickup_address = pickup_address
|
|
473
|
+
@pickup_at = pickup_at
|
|
474
|
+
@pickup_location_name = pickup_location_name
|
|
475
|
+
@rate_amount = rate_amount
|
|
476
|
+
@rate_interval = rate_interval
|
|
477
|
+
@renter_name = renter_name
|
|
478
|
+
@return_address = return_address
|
|
479
|
+
@return_at = return_at
|
|
480
|
+
@return_location_name = return_location_name
|
|
481
|
+
@tax_exempt = tax_exempt
|
|
482
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
487
|
+
class Affiliate < ::Stripe::RequestParams
|
|
488
|
+
# Affiliate partner code.
|
|
489
|
+
attr_accessor :code
|
|
490
|
+
# Name of affiliate partner.
|
|
491
|
+
attr_accessor :name
|
|
492
|
+
|
|
493
|
+
def initialize(code: nil, name: nil)
|
|
494
|
+
@code = code
|
|
495
|
+
@name = name
|
|
496
|
+
end
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
class Distance < ::Stripe::RequestParams
|
|
500
|
+
# Distance traveled.
|
|
501
|
+
attr_accessor :amount
|
|
502
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
503
|
+
attr_accessor :unit
|
|
504
|
+
|
|
505
|
+
def initialize(amount: nil, unit: nil)
|
|
506
|
+
@amount = amount
|
|
507
|
+
@unit = unit
|
|
508
|
+
end
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
class Driver < ::Stripe::RequestParams
|
|
512
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
513
|
+
# Day of birth (1-31).
|
|
514
|
+
attr_accessor :day
|
|
515
|
+
# Month of birth (1-12).
|
|
516
|
+
attr_accessor :month
|
|
517
|
+
# Year of birth (must be greater than 1900).
|
|
518
|
+
attr_accessor :year
|
|
519
|
+
|
|
520
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
521
|
+
@day = day
|
|
522
|
+
@month = month
|
|
523
|
+
@year = year
|
|
524
|
+
end
|
|
525
|
+
end
|
|
526
|
+
# Driver's date of birth.
|
|
527
|
+
attr_accessor :date_of_birth
|
|
528
|
+
# Driver's identification number.
|
|
529
|
+
attr_accessor :driver_identification_number
|
|
530
|
+
# Driver's tax number.
|
|
531
|
+
attr_accessor :driver_tax_number
|
|
532
|
+
# Driver's full name.
|
|
533
|
+
attr_accessor :name
|
|
534
|
+
|
|
535
|
+
def initialize(
|
|
536
|
+
date_of_birth: nil,
|
|
537
|
+
driver_identification_number: nil,
|
|
538
|
+
driver_tax_number: nil,
|
|
539
|
+
name: nil
|
|
540
|
+
)
|
|
541
|
+
@date_of_birth = date_of_birth
|
|
542
|
+
@driver_identification_number = driver_identification_number
|
|
543
|
+
@driver_tax_number = driver_tax_number
|
|
544
|
+
@name = name
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
class DropOff < ::Stripe::RequestParams
|
|
549
|
+
class Address < ::Stripe::RequestParams
|
|
550
|
+
# City, district, suburb, town, or village.
|
|
551
|
+
attr_accessor :city
|
|
552
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
553
|
+
attr_accessor :country
|
|
554
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
555
|
+
attr_accessor :line1
|
|
556
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
557
|
+
attr_accessor :line2
|
|
558
|
+
# ZIP or postal code.
|
|
559
|
+
attr_accessor :postal_code
|
|
560
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
561
|
+
attr_accessor :state
|
|
562
|
+
|
|
563
|
+
def initialize(
|
|
564
|
+
city: nil,
|
|
565
|
+
country: nil,
|
|
566
|
+
line1: nil,
|
|
567
|
+
line2: nil,
|
|
568
|
+
postal_code: nil,
|
|
569
|
+
state: nil
|
|
570
|
+
)
|
|
571
|
+
@city = city
|
|
572
|
+
@country = country
|
|
573
|
+
@line1 = line1
|
|
574
|
+
@line2 = line2
|
|
575
|
+
@postal_code = postal_code
|
|
576
|
+
@state = state
|
|
577
|
+
end
|
|
578
|
+
end
|
|
579
|
+
# Address of the rental location.
|
|
580
|
+
attr_accessor :address
|
|
581
|
+
# Location name.
|
|
582
|
+
attr_accessor :location_name
|
|
583
|
+
# Timestamp for the location.
|
|
584
|
+
attr_accessor :time
|
|
585
|
+
|
|
586
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
587
|
+
@address = address
|
|
588
|
+
@location_name = location_name
|
|
589
|
+
@time = time
|
|
590
|
+
end
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
class Insurance < ::Stripe::RequestParams
|
|
594
|
+
# Amount of the insurance coverage in cents.
|
|
595
|
+
attr_accessor :amount
|
|
596
|
+
# Currency of the insurance amount.
|
|
597
|
+
attr_accessor :currency
|
|
598
|
+
# Name of the insurance company.
|
|
599
|
+
attr_accessor :insurance_company_name
|
|
600
|
+
# Type of insurance coverage.
|
|
601
|
+
attr_accessor :insurance_type
|
|
602
|
+
|
|
603
|
+
def initialize(
|
|
604
|
+
amount: nil,
|
|
605
|
+
currency: nil,
|
|
606
|
+
insurance_company_name: nil,
|
|
607
|
+
insurance_type: nil
|
|
608
|
+
)
|
|
609
|
+
@amount = amount
|
|
610
|
+
@currency = currency
|
|
611
|
+
@insurance_company_name = insurance_company_name
|
|
612
|
+
@insurance_type = insurance_type
|
|
613
|
+
end
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
class Pickup < ::Stripe::RequestParams
|
|
617
|
+
class Address < ::Stripe::RequestParams
|
|
618
|
+
# City, district, suburb, town, or village.
|
|
619
|
+
attr_accessor :city
|
|
620
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
621
|
+
attr_accessor :country
|
|
622
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
623
|
+
attr_accessor :line1
|
|
624
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
625
|
+
attr_accessor :line2
|
|
626
|
+
# ZIP or postal code.
|
|
627
|
+
attr_accessor :postal_code
|
|
628
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
629
|
+
attr_accessor :state
|
|
630
|
+
|
|
631
|
+
def initialize(
|
|
632
|
+
city: nil,
|
|
633
|
+
country: nil,
|
|
634
|
+
line1: nil,
|
|
635
|
+
line2: nil,
|
|
636
|
+
postal_code: nil,
|
|
637
|
+
state: nil
|
|
638
|
+
)
|
|
639
|
+
@city = city
|
|
640
|
+
@country = country
|
|
641
|
+
@line1 = line1
|
|
642
|
+
@line2 = line2
|
|
643
|
+
@postal_code = postal_code
|
|
644
|
+
@state = state
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
# Address of the rental location.
|
|
648
|
+
attr_accessor :address
|
|
649
|
+
# Location name.
|
|
650
|
+
attr_accessor :location_name
|
|
651
|
+
# Timestamp for the location.
|
|
652
|
+
attr_accessor :time
|
|
653
|
+
|
|
654
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
655
|
+
@address = address
|
|
656
|
+
@location_name = location_name
|
|
657
|
+
@time = time
|
|
658
|
+
end
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
class Total < ::Stripe::RequestParams
|
|
662
|
+
class Discounts < ::Stripe::RequestParams
|
|
663
|
+
# Corporate client discount code.
|
|
664
|
+
attr_accessor :corporate_client_code
|
|
665
|
+
# Coupon code applied to the rental.
|
|
666
|
+
attr_accessor :coupon
|
|
667
|
+
# Maximum number of free miles or kilometers included.
|
|
668
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
669
|
+
|
|
670
|
+
def initialize(
|
|
671
|
+
corporate_client_code: nil,
|
|
672
|
+
coupon: nil,
|
|
673
|
+
maximum_free_miles_or_kilometers: nil
|
|
674
|
+
)
|
|
675
|
+
@corporate_client_code = corporate_client_code
|
|
676
|
+
@coupon = coupon
|
|
677
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
678
|
+
end
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
682
|
+
# Amount of the extra charge in cents.
|
|
683
|
+
attr_accessor :amount
|
|
684
|
+
# Type of extra charge.
|
|
685
|
+
attr_accessor :type
|
|
686
|
+
|
|
687
|
+
def initialize(amount: nil, type: nil)
|
|
688
|
+
@amount = amount
|
|
689
|
+
@type = type
|
|
690
|
+
end
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
class Tax < ::Stripe::RequestParams
|
|
694
|
+
class Tax < ::Stripe::RequestParams
|
|
695
|
+
# Tax amount.
|
|
696
|
+
attr_accessor :amount
|
|
697
|
+
# Tax rate applied.
|
|
698
|
+
attr_accessor :rate
|
|
699
|
+
# Type of tax applied.
|
|
700
|
+
attr_accessor :type
|
|
701
|
+
|
|
702
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
703
|
+
@amount = amount
|
|
704
|
+
@rate = rate
|
|
705
|
+
@type = type
|
|
706
|
+
end
|
|
707
|
+
end
|
|
708
|
+
# Indicates if the transaction is tax exempt.
|
|
709
|
+
attr_accessor :tax_exempt_indicator
|
|
710
|
+
# Array of tax details.
|
|
711
|
+
attr_accessor :taxes
|
|
712
|
+
|
|
713
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
714
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
715
|
+
@taxes = taxes
|
|
716
|
+
end
|
|
717
|
+
end
|
|
718
|
+
# Total amount in cents.
|
|
719
|
+
attr_accessor :amount
|
|
720
|
+
# Currency of the amount.
|
|
721
|
+
attr_accessor :currency
|
|
722
|
+
# Discount details for the rental.
|
|
723
|
+
attr_accessor :discounts
|
|
724
|
+
# Additional charges for the rental.
|
|
725
|
+
attr_accessor :extra_charges
|
|
726
|
+
# Rate per unit for the rental.
|
|
727
|
+
attr_accessor :rate_per_unit
|
|
728
|
+
# Unit of measurement for the rate.
|
|
729
|
+
attr_accessor :rate_unit
|
|
730
|
+
# Tax breakdown for the rental.
|
|
731
|
+
attr_accessor :tax
|
|
732
|
+
|
|
733
|
+
def initialize(
|
|
734
|
+
amount: nil,
|
|
735
|
+
currency: nil,
|
|
736
|
+
discounts: nil,
|
|
737
|
+
extra_charges: nil,
|
|
738
|
+
rate_per_unit: nil,
|
|
739
|
+
rate_unit: nil,
|
|
740
|
+
tax: nil
|
|
741
|
+
)
|
|
742
|
+
@amount = amount
|
|
743
|
+
@currency = currency
|
|
744
|
+
@discounts = discounts
|
|
745
|
+
@extra_charges = extra_charges
|
|
746
|
+
@rate_per_unit = rate_per_unit
|
|
747
|
+
@rate_unit = rate_unit
|
|
748
|
+
@tax = tax
|
|
749
|
+
end
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
class Vehicle < ::Stripe::RequestParams
|
|
753
|
+
# Make of the rental vehicle.
|
|
754
|
+
attr_accessor :make
|
|
755
|
+
# Model of the rental vehicle.
|
|
756
|
+
attr_accessor :model
|
|
757
|
+
# Odometer reading at the time of rental.
|
|
758
|
+
attr_accessor :odometer
|
|
759
|
+
# Type of the rental vehicle.
|
|
760
|
+
attr_accessor :type
|
|
761
|
+
# Class of the rental vehicle.
|
|
762
|
+
attr_accessor :vehicle_class
|
|
763
|
+
# Vehicle identification number (VIN).
|
|
764
|
+
attr_accessor :vehicle_identification_number
|
|
765
|
+
|
|
766
|
+
def initialize(
|
|
767
|
+
make: nil,
|
|
768
|
+
model: nil,
|
|
769
|
+
odometer: nil,
|
|
770
|
+
type: nil,
|
|
771
|
+
vehicle_class: nil,
|
|
772
|
+
vehicle_identification_number: nil
|
|
773
|
+
)
|
|
774
|
+
@make = make
|
|
775
|
+
@model = model
|
|
776
|
+
@odometer = odometer
|
|
777
|
+
@type = type
|
|
778
|
+
@vehicle_class = vehicle_class
|
|
779
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
780
|
+
end
|
|
781
|
+
end
|
|
782
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
783
|
+
attr_accessor :affiliate
|
|
784
|
+
# Booking confirmation number for the car rental.
|
|
785
|
+
attr_accessor :booking_number
|
|
786
|
+
# Name of the car rental company.
|
|
787
|
+
attr_accessor :carrier_name
|
|
788
|
+
# Customer service phone number for the car rental company.
|
|
789
|
+
attr_accessor :customer_service_phone_number
|
|
790
|
+
# Number of days the car is being rented.
|
|
791
|
+
attr_accessor :days_rented
|
|
792
|
+
# Distance details for the rental.
|
|
793
|
+
attr_accessor :distance
|
|
794
|
+
# List of drivers for the rental.
|
|
795
|
+
attr_accessor :drivers
|
|
796
|
+
# Drop-off location details.
|
|
797
|
+
attr_accessor :drop_off
|
|
798
|
+
# Insurance details for the rental.
|
|
799
|
+
attr_accessor :insurances
|
|
800
|
+
# Indicates if the customer was a no-show.
|
|
801
|
+
attr_accessor :no_show_indicator
|
|
802
|
+
# Pickup location details.
|
|
803
|
+
attr_accessor :pickup
|
|
804
|
+
# Name of the person renting the vehicle.
|
|
805
|
+
attr_accessor :renter_name
|
|
806
|
+
# Total cost breakdown for the rental.
|
|
807
|
+
attr_accessor :total
|
|
808
|
+
# Vehicle details for the rental.
|
|
809
|
+
attr_accessor :vehicle
|
|
810
|
+
|
|
811
|
+
def initialize(
|
|
812
|
+
affiliate: nil,
|
|
813
|
+
booking_number: nil,
|
|
814
|
+
carrier_name: nil,
|
|
815
|
+
customer_service_phone_number: nil,
|
|
816
|
+
days_rented: nil,
|
|
817
|
+
distance: nil,
|
|
818
|
+
drivers: nil,
|
|
819
|
+
drop_off: nil,
|
|
820
|
+
insurances: nil,
|
|
821
|
+
no_show_indicator: nil,
|
|
822
|
+
pickup: nil,
|
|
823
|
+
renter_name: nil,
|
|
824
|
+
total: nil,
|
|
825
|
+
vehicle: nil
|
|
826
|
+
)
|
|
827
|
+
@affiliate = affiliate
|
|
828
|
+
@booking_number = booking_number
|
|
829
|
+
@carrier_name = carrier_name
|
|
830
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
831
|
+
@days_rented = days_rented
|
|
832
|
+
@distance = distance
|
|
833
|
+
@drivers = drivers
|
|
834
|
+
@drop_off = drop_off
|
|
835
|
+
@insurances = insurances
|
|
836
|
+
@no_show_indicator = no_show_indicator
|
|
837
|
+
@pickup = pickup
|
|
838
|
+
@renter_name = renter_name
|
|
839
|
+
@total = total
|
|
840
|
+
@vehicle = vehicle
|
|
841
|
+
end
|
|
842
|
+
end
|
|
843
|
+
|
|
844
|
+
class EventDetails < ::Stripe::RequestParams
|
|
845
|
+
class Address < ::Stripe::RequestParams
|
|
846
|
+
# City, district, suburb, town, or village.
|
|
847
|
+
attr_accessor :city
|
|
848
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
849
|
+
attr_accessor :country
|
|
850
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
851
|
+
attr_accessor :line1
|
|
852
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
853
|
+
attr_accessor :line2
|
|
854
|
+
# ZIP or postal code.
|
|
855
|
+
attr_accessor :postal_code
|
|
856
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
857
|
+
attr_accessor :state
|
|
858
|
+
|
|
859
|
+
def initialize(
|
|
860
|
+
city: nil,
|
|
861
|
+
country: nil,
|
|
862
|
+
line1: nil,
|
|
863
|
+
line2: nil,
|
|
864
|
+
postal_code: nil,
|
|
865
|
+
state: nil
|
|
866
|
+
)
|
|
867
|
+
@city = city
|
|
868
|
+
@country = country
|
|
869
|
+
@line1 = line1
|
|
870
|
+
@line2 = line2
|
|
871
|
+
@postal_code = postal_code
|
|
872
|
+
@state = state
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
class Affiliate < ::Stripe::RequestParams
|
|
877
|
+
# The name of the affiliate that originated the purchase.
|
|
878
|
+
attr_accessor :name
|
|
879
|
+
|
|
880
|
+
def initialize(name: nil)
|
|
881
|
+
@name = name
|
|
882
|
+
end
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
class Delivery < ::Stripe::RequestParams
|
|
886
|
+
class Recipient < ::Stripe::RequestParams
|
|
887
|
+
# The email of the recipient the ticket is delivered to.
|
|
888
|
+
attr_accessor :email
|
|
889
|
+
# The name of the recipient the ticket is delivered to.
|
|
890
|
+
attr_accessor :name
|
|
891
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
892
|
+
attr_accessor :phone
|
|
893
|
+
|
|
894
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
895
|
+
@email = email
|
|
896
|
+
@name = name
|
|
897
|
+
@phone = phone
|
|
898
|
+
end
|
|
899
|
+
end
|
|
900
|
+
# The delivery method for the payment
|
|
901
|
+
attr_accessor :mode
|
|
902
|
+
# Details of the recipient.
|
|
903
|
+
attr_accessor :recipient
|
|
904
|
+
|
|
905
|
+
def initialize(mode: nil, recipient: nil)
|
|
906
|
+
@mode = mode
|
|
907
|
+
@recipient = recipient
|
|
908
|
+
end
|
|
909
|
+
end
|
|
910
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
911
|
+
attr_accessor :access_controlled_venue
|
|
912
|
+
# The event location's address.
|
|
913
|
+
attr_accessor :address
|
|
914
|
+
# Affiliate details for this purchase.
|
|
915
|
+
attr_accessor :affiliate
|
|
916
|
+
# The name of the company
|
|
917
|
+
attr_accessor :company
|
|
918
|
+
# Delivery details for this purchase.
|
|
919
|
+
attr_accessor :delivery
|
|
920
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
921
|
+
attr_accessor :ends_at
|
|
922
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
923
|
+
attr_accessor :genre
|
|
924
|
+
# The name of the event.
|
|
925
|
+
attr_accessor :name
|
|
926
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
927
|
+
attr_accessor :starts_at
|
|
928
|
+
|
|
929
|
+
def initialize(
|
|
930
|
+
access_controlled_venue: nil,
|
|
931
|
+
address: nil,
|
|
932
|
+
affiliate: nil,
|
|
933
|
+
company: nil,
|
|
934
|
+
delivery: nil,
|
|
935
|
+
ends_at: nil,
|
|
936
|
+
genre: nil,
|
|
937
|
+
name: nil,
|
|
938
|
+
starts_at: nil
|
|
939
|
+
)
|
|
940
|
+
@access_controlled_venue = access_controlled_venue
|
|
941
|
+
@address = address
|
|
942
|
+
@affiliate = affiliate
|
|
943
|
+
@company = company
|
|
944
|
+
@delivery = delivery
|
|
945
|
+
@ends_at = ends_at
|
|
946
|
+
@genre = genre
|
|
947
|
+
@name = name
|
|
948
|
+
@starts_at = starts_at
|
|
949
|
+
end
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
class Flight < ::Stripe::RequestParams
|
|
953
|
+
class Affiliate < ::Stripe::RequestParams
|
|
954
|
+
# The name of the affiliate that originated the purchase.
|
|
955
|
+
attr_accessor :name
|
|
956
|
+
|
|
957
|
+
def initialize(name: nil)
|
|
958
|
+
@name = name
|
|
959
|
+
end
|
|
960
|
+
end
|
|
961
|
+
|
|
962
|
+
class Delivery < ::Stripe::RequestParams
|
|
963
|
+
class Recipient < ::Stripe::RequestParams
|
|
964
|
+
# The email of the recipient the ticket is delivered to.
|
|
965
|
+
attr_accessor :email
|
|
966
|
+
# The name of the recipient the ticket is delivered to.
|
|
967
|
+
attr_accessor :name
|
|
968
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
969
|
+
attr_accessor :phone
|
|
970
|
+
|
|
971
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
972
|
+
@email = email
|
|
973
|
+
@name = name
|
|
974
|
+
@phone = phone
|
|
975
|
+
end
|
|
976
|
+
end
|
|
977
|
+
# The delivery method for the payment
|
|
978
|
+
attr_accessor :mode
|
|
979
|
+
# Details of the recipient.
|
|
980
|
+
attr_accessor :recipient
|
|
981
|
+
|
|
982
|
+
def initialize(mode: nil, recipient: nil)
|
|
983
|
+
@mode = mode
|
|
984
|
+
@recipient = recipient
|
|
985
|
+
end
|
|
986
|
+
end
|
|
987
|
+
|
|
988
|
+
class Passenger < ::Stripe::RequestParams
|
|
989
|
+
# Full name of the person or entity on the flight reservation.
|
|
990
|
+
attr_accessor :name
|
|
991
|
+
|
|
992
|
+
def initialize(name: nil)
|
|
993
|
+
@name = name
|
|
994
|
+
end
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
class Segment < ::Stripe::RequestParams
|
|
998
|
+
# The flight segment amount.
|
|
999
|
+
attr_accessor :amount
|
|
1000
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1001
|
+
attr_accessor :arrival_airport
|
|
1002
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1003
|
+
attr_accessor :arrives_at
|
|
1004
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1005
|
+
attr_accessor :carrier
|
|
1006
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1007
|
+
attr_accessor :departs_at
|
|
1008
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1009
|
+
attr_accessor :departure_airport
|
|
1010
|
+
# The flight number associated with the segment
|
|
1011
|
+
attr_accessor :flight_number
|
|
1012
|
+
# The fare class for the segment.
|
|
1013
|
+
attr_accessor :service_class
|
|
1014
|
+
|
|
1015
|
+
def initialize(
|
|
1016
|
+
amount: nil,
|
|
1017
|
+
arrival_airport: nil,
|
|
1018
|
+
arrives_at: nil,
|
|
1019
|
+
carrier: nil,
|
|
1020
|
+
departs_at: nil,
|
|
1021
|
+
departure_airport: nil,
|
|
1022
|
+
flight_number: nil,
|
|
1023
|
+
service_class: nil
|
|
1024
|
+
)
|
|
1025
|
+
@amount = amount
|
|
1026
|
+
@arrival_airport = arrival_airport
|
|
1027
|
+
@arrives_at = arrives_at
|
|
1028
|
+
@carrier = carrier
|
|
1029
|
+
@departs_at = departs_at
|
|
1030
|
+
@departure_airport = departure_airport
|
|
1031
|
+
@flight_number = flight_number
|
|
1032
|
+
@service_class = service_class
|
|
1033
|
+
end
|
|
1034
|
+
end
|
|
1035
|
+
# Affiliate details for this purchase.
|
|
1036
|
+
attr_accessor :affiliate
|
|
1037
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1038
|
+
attr_accessor :agency_number
|
|
1039
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1040
|
+
attr_accessor :carrier
|
|
1041
|
+
# Delivery details for this purchase.
|
|
1042
|
+
attr_accessor :delivery
|
|
1043
|
+
# The name of the person or entity on the reservation.
|
|
1044
|
+
attr_accessor :passenger_name
|
|
1045
|
+
# The details of the passengers in the travel reservation.
|
|
1046
|
+
attr_accessor :passengers
|
|
1047
|
+
# The individual flight segments associated with the trip.
|
|
1048
|
+
attr_accessor :segments
|
|
1049
|
+
# The ticket number associated with the travel reservation.
|
|
1050
|
+
attr_accessor :ticket_number
|
|
1051
|
+
|
|
1052
|
+
def initialize(
|
|
1053
|
+
affiliate: nil,
|
|
1054
|
+
agency_number: nil,
|
|
1055
|
+
carrier: nil,
|
|
1056
|
+
delivery: nil,
|
|
1057
|
+
passenger_name: nil,
|
|
1058
|
+
passengers: nil,
|
|
1059
|
+
segments: nil,
|
|
1060
|
+
ticket_number: nil
|
|
1061
|
+
)
|
|
1062
|
+
@affiliate = affiliate
|
|
1063
|
+
@agency_number = agency_number
|
|
1064
|
+
@carrier = carrier
|
|
1065
|
+
@delivery = delivery
|
|
1066
|
+
@passenger_name = passenger_name
|
|
1067
|
+
@passengers = passengers
|
|
1068
|
+
@segments = segments
|
|
1069
|
+
@ticket_number = ticket_number
|
|
1070
|
+
end
|
|
1071
|
+
end
|
|
1072
|
+
|
|
1073
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1074
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1075
|
+
# Affiliate partner code.
|
|
1076
|
+
attr_accessor :code
|
|
1077
|
+
# Name of affiliate partner.
|
|
1078
|
+
attr_accessor :name
|
|
1079
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1080
|
+
attr_accessor :travel_authorization_code
|
|
1081
|
+
|
|
1082
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1083
|
+
@code = code
|
|
1084
|
+
@name = name
|
|
1085
|
+
@travel_authorization_code = travel_authorization_code
|
|
1086
|
+
end
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
class Insurance < ::Stripe::RequestParams
|
|
1090
|
+
# Insurance cost.
|
|
1091
|
+
attr_accessor :amount
|
|
1092
|
+
# Insurance currency.
|
|
1093
|
+
attr_accessor :currency
|
|
1094
|
+
# Insurance company name.
|
|
1095
|
+
attr_accessor :insurance_company_name
|
|
1096
|
+
# Type of insurance.
|
|
1097
|
+
attr_accessor :insurance_type
|
|
1098
|
+
|
|
1099
|
+
def initialize(
|
|
1100
|
+
amount: nil,
|
|
1101
|
+
currency: nil,
|
|
1102
|
+
insurance_company_name: nil,
|
|
1103
|
+
insurance_type: nil
|
|
1104
|
+
)
|
|
1105
|
+
@amount = amount
|
|
1106
|
+
@currency = currency
|
|
1107
|
+
@insurance_company_name = insurance_company_name
|
|
1108
|
+
@insurance_type = insurance_type
|
|
1109
|
+
end
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1112
|
+
class Passenger < ::Stripe::RequestParams
|
|
1113
|
+
# Passenger's full name.
|
|
1114
|
+
attr_accessor :name
|
|
1115
|
+
|
|
1116
|
+
def initialize(name: nil)
|
|
1117
|
+
@name = name
|
|
1118
|
+
end
|
|
1119
|
+
end
|
|
1120
|
+
|
|
1121
|
+
class Segment < ::Stripe::RequestParams
|
|
1122
|
+
class Arrival < ::Stripe::RequestParams
|
|
1123
|
+
# Arrival airport IATA code.
|
|
1124
|
+
attr_accessor :airport
|
|
1125
|
+
# Arrival date/time.
|
|
1126
|
+
attr_accessor :arrives_at
|
|
1127
|
+
# Arrival city.
|
|
1128
|
+
attr_accessor :city
|
|
1129
|
+
# Arrival country.
|
|
1130
|
+
attr_accessor :country
|
|
1131
|
+
|
|
1132
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1133
|
+
@airport = airport
|
|
1134
|
+
@arrives_at = arrives_at
|
|
1135
|
+
@city = city
|
|
1136
|
+
@country = country
|
|
1137
|
+
end
|
|
1138
|
+
end
|
|
1139
|
+
|
|
1140
|
+
class Departure < ::Stripe::RequestParams
|
|
1141
|
+
# Departure airport IATA code.
|
|
1142
|
+
attr_accessor :airport
|
|
1143
|
+
# Departure city.
|
|
1144
|
+
attr_accessor :city
|
|
1145
|
+
# Departure country.
|
|
1146
|
+
attr_accessor :country
|
|
1147
|
+
# Departure date/time.
|
|
1148
|
+
attr_accessor :departs_at
|
|
1149
|
+
|
|
1150
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1151
|
+
@airport = airport
|
|
1152
|
+
@city = city
|
|
1153
|
+
@country = country
|
|
1154
|
+
@departs_at = departs_at
|
|
1155
|
+
end
|
|
1156
|
+
end
|
|
1157
|
+
# Segment fare amount.
|
|
1158
|
+
attr_accessor :amount
|
|
1159
|
+
# Arrival details.
|
|
1160
|
+
attr_accessor :arrival
|
|
1161
|
+
# Airline carrier code.
|
|
1162
|
+
attr_accessor :carrier_code
|
|
1163
|
+
# Carrier name.
|
|
1164
|
+
attr_accessor :carrier_name
|
|
1165
|
+
# Segment currency.
|
|
1166
|
+
attr_accessor :currency
|
|
1167
|
+
# Departure details.
|
|
1168
|
+
attr_accessor :departure
|
|
1169
|
+
# Exchange ticket number.
|
|
1170
|
+
attr_accessor :exchange_ticket_number
|
|
1171
|
+
# Fare basis code.
|
|
1172
|
+
attr_accessor :fare_basis_code
|
|
1173
|
+
# Additional fees.
|
|
1174
|
+
attr_accessor :fees
|
|
1175
|
+
# Flight number.
|
|
1176
|
+
attr_accessor :flight_number
|
|
1177
|
+
# Stopover indicator.
|
|
1178
|
+
attr_accessor :is_stop_over_indicator
|
|
1179
|
+
# Refundable ticket indicator.
|
|
1180
|
+
attr_accessor :refundable
|
|
1181
|
+
# Class of service.
|
|
1182
|
+
attr_accessor :service_class
|
|
1183
|
+
# Tax amount for segment.
|
|
1184
|
+
attr_accessor :tax_amount
|
|
1185
|
+
# Ticket number.
|
|
1186
|
+
attr_accessor :ticket_number
|
|
1187
|
+
|
|
1188
|
+
def initialize(
|
|
1189
|
+
amount: nil,
|
|
1190
|
+
arrival: nil,
|
|
1191
|
+
carrier_code: nil,
|
|
1192
|
+
carrier_name: nil,
|
|
1193
|
+
currency: nil,
|
|
1194
|
+
departure: nil,
|
|
1195
|
+
exchange_ticket_number: nil,
|
|
1196
|
+
fare_basis_code: nil,
|
|
1197
|
+
fees: nil,
|
|
1198
|
+
flight_number: nil,
|
|
1199
|
+
is_stop_over_indicator: nil,
|
|
1200
|
+
refundable: nil,
|
|
1201
|
+
service_class: nil,
|
|
1202
|
+
tax_amount: nil,
|
|
1203
|
+
ticket_number: nil
|
|
1204
|
+
)
|
|
1205
|
+
@amount = amount
|
|
1206
|
+
@arrival = arrival
|
|
1207
|
+
@carrier_code = carrier_code
|
|
1208
|
+
@carrier_name = carrier_name
|
|
1209
|
+
@currency = currency
|
|
1210
|
+
@departure = departure
|
|
1211
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1212
|
+
@fare_basis_code = fare_basis_code
|
|
1213
|
+
@fees = fees
|
|
1214
|
+
@flight_number = flight_number
|
|
1215
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1216
|
+
@refundable = refundable
|
|
1217
|
+
@service_class = service_class
|
|
1218
|
+
@tax_amount = tax_amount
|
|
1219
|
+
@ticket_number = ticket_number
|
|
1220
|
+
end
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1223
|
+
class Total < ::Stripe::RequestParams
|
|
1224
|
+
class Discounts < ::Stripe::RequestParams
|
|
1225
|
+
# Corporate client discount code.
|
|
1226
|
+
attr_accessor :corporate_client_code
|
|
1227
|
+
|
|
1228
|
+
def initialize(corporate_client_code: nil)
|
|
1229
|
+
@corporate_client_code = corporate_client_code
|
|
1230
|
+
end
|
|
1231
|
+
end
|
|
1232
|
+
|
|
1233
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1234
|
+
# Amount of additional charges.
|
|
1235
|
+
attr_accessor :amount
|
|
1236
|
+
# Type of additional charges.
|
|
1237
|
+
attr_accessor :type
|
|
1238
|
+
|
|
1239
|
+
def initialize(amount: nil, type: nil)
|
|
1240
|
+
@amount = amount
|
|
1241
|
+
@type = type
|
|
1242
|
+
end
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
class Tax < ::Stripe::RequestParams
|
|
1246
|
+
class Tax < ::Stripe::RequestParams
|
|
1247
|
+
# Tax amount.
|
|
1248
|
+
attr_accessor :amount
|
|
1249
|
+
# Tax rate.
|
|
1250
|
+
attr_accessor :rate
|
|
1251
|
+
# Type of tax.
|
|
1252
|
+
attr_accessor :type
|
|
1253
|
+
|
|
1254
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1255
|
+
@amount = amount
|
|
1256
|
+
@rate = rate
|
|
1257
|
+
@type = type
|
|
1258
|
+
end
|
|
1259
|
+
end
|
|
1260
|
+
# Array of tax details.
|
|
1261
|
+
attr_accessor :taxes
|
|
1262
|
+
|
|
1263
|
+
def initialize(taxes: nil)
|
|
1264
|
+
@taxes = taxes
|
|
1265
|
+
end
|
|
1266
|
+
end
|
|
1267
|
+
# Total flight amount.
|
|
1268
|
+
attr_accessor :amount
|
|
1269
|
+
# Reason for credit.
|
|
1270
|
+
attr_accessor :credit_reason
|
|
1271
|
+
# Total currency.
|
|
1272
|
+
attr_accessor :currency
|
|
1273
|
+
# Discount details.
|
|
1274
|
+
attr_accessor :discounts
|
|
1275
|
+
# Additional charges.
|
|
1276
|
+
attr_accessor :extra_charges
|
|
1277
|
+
# Tax breakdown.
|
|
1278
|
+
attr_accessor :tax
|
|
1279
|
+
|
|
1280
|
+
def initialize(
|
|
1281
|
+
amount: nil,
|
|
1282
|
+
credit_reason: nil,
|
|
1283
|
+
currency: nil,
|
|
1284
|
+
discounts: nil,
|
|
1285
|
+
extra_charges: nil,
|
|
1286
|
+
tax: nil
|
|
1287
|
+
)
|
|
1288
|
+
@amount = amount
|
|
1289
|
+
@credit_reason = credit_reason
|
|
1290
|
+
@currency = currency
|
|
1291
|
+
@discounts = discounts
|
|
1292
|
+
@extra_charges = extra_charges
|
|
1293
|
+
@tax = tax
|
|
1294
|
+
end
|
|
1295
|
+
end
|
|
1296
|
+
# Affiliate details if applicable.
|
|
1297
|
+
attr_accessor :affiliate
|
|
1298
|
+
# Reservation reference.
|
|
1299
|
+
attr_accessor :booking_number
|
|
1300
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1301
|
+
attr_accessor :computerized_reservation_system
|
|
1302
|
+
# Ticket restrictions.
|
|
1303
|
+
attr_accessor :endorsements_and_restrictions
|
|
1304
|
+
# List of insurances.
|
|
1305
|
+
attr_accessor :insurances
|
|
1306
|
+
# List of passengers.
|
|
1307
|
+
attr_accessor :passengers
|
|
1308
|
+
# List of flight segments.
|
|
1309
|
+
attr_accessor :segments
|
|
1310
|
+
# Electronic ticket indicator.
|
|
1311
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1312
|
+
# Total cost breakdown.
|
|
1313
|
+
attr_accessor :total
|
|
1314
|
+
# Type of flight transaction.
|
|
1315
|
+
attr_accessor :transaction_type
|
|
1316
|
+
|
|
1317
|
+
def initialize(
|
|
1318
|
+
affiliate: nil,
|
|
1319
|
+
booking_number: nil,
|
|
1320
|
+
computerized_reservation_system: nil,
|
|
1321
|
+
endorsements_and_restrictions: nil,
|
|
1322
|
+
insurances: nil,
|
|
1323
|
+
passengers: nil,
|
|
1324
|
+
segments: nil,
|
|
1325
|
+
ticket_electronically_issued_indicator: nil,
|
|
1326
|
+
total: nil,
|
|
1327
|
+
transaction_type: nil
|
|
1328
|
+
)
|
|
1329
|
+
@affiliate = affiliate
|
|
1330
|
+
@booking_number = booking_number
|
|
1331
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1332
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1333
|
+
@insurances = insurances
|
|
1334
|
+
@passengers = passengers
|
|
1335
|
+
@segments = segments
|
|
1336
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1337
|
+
@total = total
|
|
1338
|
+
@transaction_type = transaction_type
|
|
1339
|
+
end
|
|
1340
|
+
end
|
|
1341
|
+
|
|
1342
|
+
class Lodging < ::Stripe::RequestParams
|
|
1343
|
+
class Address < ::Stripe::RequestParams
|
|
1344
|
+
# City, district, suburb, town, or village.
|
|
1345
|
+
attr_accessor :city
|
|
1346
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1347
|
+
attr_accessor :country
|
|
1348
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1349
|
+
attr_accessor :line1
|
|
1350
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1351
|
+
attr_accessor :line2
|
|
1352
|
+
# ZIP or postal code.
|
|
1353
|
+
attr_accessor :postal_code
|
|
1354
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1355
|
+
attr_accessor :state
|
|
1356
|
+
|
|
1357
|
+
def initialize(
|
|
1358
|
+
city: nil,
|
|
1359
|
+
country: nil,
|
|
1360
|
+
line1: nil,
|
|
1361
|
+
line2: nil,
|
|
1362
|
+
postal_code: nil,
|
|
1363
|
+
state: nil
|
|
1364
|
+
)
|
|
1365
|
+
@city = city
|
|
1366
|
+
@country = country
|
|
1367
|
+
@line1 = line1
|
|
1368
|
+
@line2 = line2
|
|
1369
|
+
@postal_code = postal_code
|
|
1370
|
+
@state = state
|
|
1371
|
+
end
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1375
|
+
# The name of the affiliate that originated the purchase.
|
|
1376
|
+
attr_accessor :name
|
|
1377
|
+
|
|
1378
|
+
def initialize(name: nil)
|
|
1379
|
+
@name = name
|
|
1380
|
+
end
|
|
1381
|
+
end
|
|
1382
|
+
|
|
1383
|
+
class Delivery < ::Stripe::RequestParams
|
|
1384
|
+
class Recipient < ::Stripe::RequestParams
|
|
1385
|
+
# The email of the recipient the ticket is delivered to.
|
|
1386
|
+
attr_accessor :email
|
|
1387
|
+
# The name of the recipient the ticket is delivered to.
|
|
1388
|
+
attr_accessor :name
|
|
1389
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1390
|
+
attr_accessor :phone
|
|
1391
|
+
|
|
1392
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1393
|
+
@email = email
|
|
1394
|
+
@name = name
|
|
1395
|
+
@phone = phone
|
|
1396
|
+
end
|
|
1397
|
+
end
|
|
1398
|
+
# The delivery method for the payment
|
|
1399
|
+
attr_accessor :mode
|
|
1400
|
+
# Details of the recipient.
|
|
1401
|
+
attr_accessor :recipient
|
|
1402
|
+
|
|
1403
|
+
def initialize(mode: nil, recipient: nil)
|
|
1404
|
+
@mode = mode
|
|
1405
|
+
@recipient = recipient
|
|
1406
|
+
end
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
class Passenger < ::Stripe::RequestParams
|
|
1410
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1411
|
+
attr_accessor :name
|
|
1412
|
+
|
|
1413
|
+
def initialize(name: nil)
|
|
1414
|
+
@name = name
|
|
1415
|
+
end
|
|
1416
|
+
end
|
|
1417
|
+
# The lodging location's address.
|
|
1418
|
+
attr_accessor :address
|
|
1419
|
+
# The number of adults on the booking
|
|
1420
|
+
attr_accessor :adults
|
|
1421
|
+
# Affiliate details for this purchase.
|
|
1422
|
+
attr_accessor :affiliate
|
|
1423
|
+
# The booking number associated with the lodging reservation.
|
|
1424
|
+
attr_accessor :booking_number
|
|
1425
|
+
# The lodging category
|
|
1426
|
+
attr_accessor :category
|
|
1427
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1428
|
+
attr_accessor :checkin_at
|
|
1429
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1430
|
+
attr_accessor :checkout_at
|
|
1431
|
+
# The customer service phone number of the lodging company.
|
|
1432
|
+
attr_accessor :customer_service_phone_number
|
|
1433
|
+
# The daily lodging room rate.
|
|
1434
|
+
attr_accessor :daily_room_rate_amount
|
|
1435
|
+
# Delivery details for this purchase.
|
|
1436
|
+
attr_accessor :delivery
|
|
1437
|
+
# List of additional charges being billed.
|
|
1438
|
+
attr_accessor :extra_charges
|
|
1439
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1440
|
+
attr_accessor :fire_safety_act_compliance
|
|
1441
|
+
# The name of the lodging location.
|
|
1442
|
+
attr_accessor :name
|
|
1443
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1444
|
+
attr_accessor :no_show
|
|
1445
|
+
# The number of rooms on the booking
|
|
1446
|
+
attr_accessor :number_of_rooms
|
|
1447
|
+
# The details of the passengers in the travel reservation
|
|
1448
|
+
attr_accessor :passengers
|
|
1449
|
+
# The phone number of the lodging location.
|
|
1450
|
+
attr_accessor :property_phone_number
|
|
1451
|
+
# The room class for this purchase.
|
|
1452
|
+
attr_accessor :room_class
|
|
1453
|
+
# The number of room nights
|
|
1454
|
+
attr_accessor :room_nights
|
|
1455
|
+
# The total tax amount associating with the room reservation.
|
|
1456
|
+
attr_accessor :total_room_tax_amount
|
|
1457
|
+
# The total tax amount
|
|
1458
|
+
attr_accessor :total_tax_amount
|
|
1459
|
+
|
|
1460
|
+
def initialize(
|
|
1461
|
+
address: nil,
|
|
1462
|
+
adults: nil,
|
|
1463
|
+
affiliate: nil,
|
|
1464
|
+
booking_number: nil,
|
|
1465
|
+
category: nil,
|
|
1466
|
+
checkin_at: nil,
|
|
1467
|
+
checkout_at: nil,
|
|
1468
|
+
customer_service_phone_number: nil,
|
|
1469
|
+
daily_room_rate_amount: nil,
|
|
1470
|
+
delivery: nil,
|
|
1471
|
+
extra_charges: nil,
|
|
1472
|
+
fire_safety_act_compliance: nil,
|
|
1473
|
+
name: nil,
|
|
1474
|
+
no_show: nil,
|
|
1475
|
+
number_of_rooms: nil,
|
|
1476
|
+
passengers: nil,
|
|
1477
|
+
property_phone_number: nil,
|
|
1478
|
+
room_class: nil,
|
|
1479
|
+
room_nights: nil,
|
|
1480
|
+
total_room_tax_amount: nil,
|
|
1481
|
+
total_tax_amount: nil
|
|
1482
|
+
)
|
|
1483
|
+
@address = address
|
|
1484
|
+
@adults = adults
|
|
1485
|
+
@affiliate = affiliate
|
|
1486
|
+
@booking_number = booking_number
|
|
1487
|
+
@category = category
|
|
1488
|
+
@checkin_at = checkin_at
|
|
1489
|
+
@checkout_at = checkout_at
|
|
1490
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1491
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1492
|
+
@delivery = delivery
|
|
1493
|
+
@extra_charges = extra_charges
|
|
1494
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1495
|
+
@name = name
|
|
1496
|
+
@no_show = no_show
|
|
1497
|
+
@number_of_rooms = number_of_rooms
|
|
1498
|
+
@passengers = passengers
|
|
1499
|
+
@property_phone_number = property_phone_number
|
|
1500
|
+
@room_class = room_class
|
|
1501
|
+
@room_nights = room_nights
|
|
1502
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1503
|
+
@total_tax_amount = total_tax_amount
|
|
1504
|
+
end
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1508
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1509
|
+
# Type of accommodation.
|
|
1510
|
+
attr_accessor :accommodation_type
|
|
1511
|
+
# Bed type.
|
|
1512
|
+
attr_accessor :bed_type
|
|
1513
|
+
# Daily accommodation rate in cents.
|
|
1514
|
+
attr_accessor :daily_rate_amount
|
|
1515
|
+
# Number of nights.
|
|
1516
|
+
attr_accessor :nights
|
|
1517
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1518
|
+
attr_accessor :number_of_rooms
|
|
1519
|
+
# Rate type.
|
|
1520
|
+
attr_accessor :rate_type
|
|
1521
|
+
# Whether smoking is allowed.
|
|
1522
|
+
attr_accessor :smoking_indicator
|
|
1523
|
+
|
|
1524
|
+
def initialize(
|
|
1525
|
+
accommodation_type: nil,
|
|
1526
|
+
bed_type: nil,
|
|
1527
|
+
daily_rate_amount: nil,
|
|
1528
|
+
nights: nil,
|
|
1529
|
+
number_of_rooms: nil,
|
|
1530
|
+
rate_type: nil,
|
|
1531
|
+
smoking_indicator: nil
|
|
1532
|
+
)
|
|
1533
|
+
@accommodation_type = accommodation_type
|
|
1534
|
+
@bed_type = bed_type
|
|
1535
|
+
@daily_rate_amount = daily_rate_amount
|
|
1536
|
+
@nights = nights
|
|
1537
|
+
@number_of_rooms = number_of_rooms
|
|
1538
|
+
@rate_type = rate_type
|
|
1539
|
+
@smoking_indicator = smoking_indicator
|
|
1540
|
+
end
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1544
|
+
# Affiliate partner code.
|
|
1545
|
+
attr_accessor :code
|
|
1546
|
+
# Affiliate partner name.
|
|
1547
|
+
attr_accessor :name
|
|
1548
|
+
|
|
1549
|
+
def initialize(code: nil, name: nil)
|
|
1550
|
+
@code = code
|
|
1551
|
+
@name = name
|
|
1552
|
+
end
|
|
1553
|
+
end
|
|
1554
|
+
|
|
1555
|
+
class Guest < ::Stripe::RequestParams
|
|
1556
|
+
# Guest's full name.
|
|
1557
|
+
attr_accessor :name
|
|
1558
|
+
|
|
1559
|
+
def initialize(name: nil)
|
|
1560
|
+
@name = name
|
|
25
1561
|
end
|
|
1562
|
+
end
|
|
26
1563
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1564
|
+
class Host < ::Stripe::RequestParams
|
|
1565
|
+
class Address < ::Stripe::RequestParams
|
|
1566
|
+
# City, district, suburb, town, or village.
|
|
1567
|
+
attr_accessor :city
|
|
1568
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1569
|
+
attr_accessor :country
|
|
1570
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1571
|
+
attr_accessor :line1
|
|
1572
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1573
|
+
attr_accessor :line2
|
|
1574
|
+
# ZIP or postal code.
|
|
1575
|
+
attr_accessor :postal_code
|
|
1576
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1577
|
+
attr_accessor :state
|
|
36
1578
|
|
|
37
1579
|
def initialize(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1580
|
+
city: nil,
|
|
1581
|
+
country: nil,
|
|
1582
|
+
line1: nil,
|
|
1583
|
+
line2: nil,
|
|
1584
|
+
postal_code: nil,
|
|
1585
|
+
state: nil
|
|
42
1586
|
)
|
|
43
|
-
@
|
|
44
|
-
@
|
|
45
|
-
@
|
|
46
|
-
@
|
|
1587
|
+
@city = city
|
|
1588
|
+
@country = country
|
|
1589
|
+
@line1 = line1
|
|
1590
|
+
@line2 = line2
|
|
1591
|
+
@postal_code = postal_code
|
|
1592
|
+
@state = state
|
|
47
1593
|
end
|
|
48
1594
|
end
|
|
1595
|
+
# Address of the host.
|
|
1596
|
+
attr_accessor :address
|
|
1597
|
+
# Host's country of domicile.
|
|
1598
|
+
attr_accessor :country_of_domicile
|
|
1599
|
+
# Reference number for the host.
|
|
1600
|
+
attr_accessor :host_reference
|
|
1601
|
+
# Type of host.
|
|
1602
|
+
attr_accessor :host_type
|
|
1603
|
+
# Name of the lodging property or host.
|
|
1604
|
+
attr_accessor :name
|
|
1605
|
+
# Total number of reservations for the host.
|
|
1606
|
+
attr_accessor :number_of_reservations
|
|
1607
|
+
# Property phone number.
|
|
1608
|
+
attr_accessor :property_phone_number
|
|
1609
|
+
# Host's registration date.
|
|
1610
|
+
attr_accessor :registered_at
|
|
49
1611
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1612
|
+
def initialize(
|
|
1613
|
+
address: nil,
|
|
1614
|
+
country_of_domicile: nil,
|
|
1615
|
+
host_reference: nil,
|
|
1616
|
+
host_type: nil,
|
|
1617
|
+
name: nil,
|
|
1618
|
+
number_of_reservations: nil,
|
|
1619
|
+
property_phone_number: nil,
|
|
1620
|
+
registered_at: nil
|
|
1621
|
+
)
|
|
1622
|
+
@address = address
|
|
1623
|
+
@country_of_domicile = country_of_domicile
|
|
1624
|
+
@host_reference = host_reference
|
|
1625
|
+
@host_type = host_type
|
|
1626
|
+
@name = name
|
|
1627
|
+
@number_of_reservations = number_of_reservations
|
|
1628
|
+
@property_phone_number = property_phone_number
|
|
1629
|
+
@registered_at = registered_at
|
|
1630
|
+
end
|
|
1631
|
+
end
|
|
57
1632
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1633
|
+
class Insurance < ::Stripe::RequestParams
|
|
1634
|
+
# Price of the insurance coverage in cents.
|
|
1635
|
+
attr_accessor :amount
|
|
1636
|
+
# Currency of the insurance amount.
|
|
1637
|
+
attr_accessor :currency
|
|
1638
|
+
# Name of the insurance company.
|
|
1639
|
+
attr_accessor :insurance_company_name
|
|
1640
|
+
# Type of insurance coverage.
|
|
1641
|
+
attr_accessor :insurance_type
|
|
1642
|
+
|
|
1643
|
+
def initialize(
|
|
1644
|
+
amount: nil,
|
|
1645
|
+
currency: nil,
|
|
1646
|
+
insurance_company_name: nil,
|
|
1647
|
+
insurance_type: nil
|
|
1648
|
+
)
|
|
1649
|
+
@amount = amount
|
|
1650
|
+
@currency = currency
|
|
1651
|
+
@insurance_company_name = insurance_company_name
|
|
1652
|
+
@insurance_type = insurance_type
|
|
1653
|
+
end
|
|
1654
|
+
end
|
|
1655
|
+
|
|
1656
|
+
class Total < ::Stripe::RequestParams
|
|
1657
|
+
class Discounts < ::Stripe::RequestParams
|
|
1658
|
+
# Corporate client discount code.
|
|
1659
|
+
attr_accessor :corporate_client_code
|
|
1660
|
+
# Coupon code.
|
|
1661
|
+
attr_accessor :coupon
|
|
1662
|
+
|
|
1663
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1664
|
+
@corporate_client_code = corporate_client_code
|
|
1665
|
+
@coupon = coupon
|
|
62
1666
|
end
|
|
63
1667
|
end
|
|
64
|
-
# This sub-hash contains line item details that are specific to `card` payment method."
|
|
65
|
-
attr_accessor :card
|
|
66
|
-
# This sub-hash contains line item details that are specific to `card_present` payment method."
|
|
67
|
-
attr_accessor :card_present
|
|
68
|
-
# This sub-hash contains line item details that are specific to `klarna` payment method."
|
|
69
|
-
attr_accessor :klarna
|
|
70
|
-
# This sub-hash contains line item details that are specific to `paypal` payment method."
|
|
71
|
-
attr_accessor :paypal
|
|
72
1668
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1669
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1670
|
+
# Amount of the extra charge in cents.
|
|
1671
|
+
attr_accessor :amount
|
|
1672
|
+
# Type of extra charge.
|
|
1673
|
+
attr_accessor :type
|
|
1674
|
+
|
|
1675
|
+
def initialize(amount: nil, type: nil)
|
|
1676
|
+
@amount = amount
|
|
1677
|
+
@type = type
|
|
1678
|
+
end
|
|
78
1679
|
end
|
|
79
|
-
end
|
|
80
1680
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
1681
|
+
class Tax < ::Stripe::RequestParams
|
|
1682
|
+
class Tax < ::Stripe::RequestParams
|
|
1683
|
+
# Tax amount in cents.
|
|
1684
|
+
attr_accessor :amount
|
|
1685
|
+
# Tax rate.
|
|
1686
|
+
attr_accessor :rate
|
|
1687
|
+
# Type of tax applied.
|
|
1688
|
+
attr_accessor :type
|
|
1689
|
+
|
|
1690
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1691
|
+
@amount = amount
|
|
1692
|
+
@rate = rate
|
|
1693
|
+
@type = type
|
|
1694
|
+
end
|
|
1695
|
+
end
|
|
1696
|
+
# Indicates whether the transaction is tax exempt.
|
|
1697
|
+
attr_accessor :tax_exempt_indicator
|
|
1698
|
+
# Tax details.
|
|
1699
|
+
attr_accessor :taxes
|
|
1700
|
+
|
|
1701
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1702
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1703
|
+
@taxes = taxes
|
|
1704
|
+
end
|
|
1705
|
+
end
|
|
1706
|
+
# Total price of the lodging reservation in cents.
|
|
1707
|
+
attr_accessor :amount
|
|
1708
|
+
# Cash advances in cents.
|
|
1709
|
+
attr_accessor :cash_advances
|
|
1710
|
+
# Currency of the total amount.
|
|
1711
|
+
attr_accessor :currency
|
|
1712
|
+
# Discount details for the lodging.
|
|
1713
|
+
attr_accessor :discounts
|
|
1714
|
+
# Additional charges for the lodging.
|
|
1715
|
+
attr_accessor :extra_charges
|
|
1716
|
+
# Prepaid amount in cents.
|
|
1717
|
+
attr_accessor :prepaid_amount
|
|
1718
|
+
# Tax breakdown for the lodging reservation.
|
|
1719
|
+
attr_accessor :tax
|
|
86
1720
|
|
|
87
|
-
def initialize(
|
|
88
|
-
|
|
1721
|
+
def initialize(
|
|
1722
|
+
amount: nil,
|
|
1723
|
+
cash_advances: nil,
|
|
1724
|
+
currency: nil,
|
|
1725
|
+
discounts: nil,
|
|
1726
|
+
extra_charges: nil,
|
|
1727
|
+
prepaid_amount: nil,
|
|
1728
|
+
tax: nil
|
|
1729
|
+
)
|
|
1730
|
+
@amount = amount
|
|
1731
|
+
@cash_advances = cash_advances
|
|
1732
|
+
@currency = currency
|
|
1733
|
+
@discounts = discounts
|
|
1734
|
+
@extra_charges = extra_charges
|
|
1735
|
+
@prepaid_amount = prepaid_amount
|
|
1736
|
+
@tax = tax
|
|
89
1737
|
end
|
|
90
1738
|
end
|
|
91
|
-
#
|
|
92
|
-
|
|
93
|
-
#
|
|
94
|
-
attr_accessor :
|
|
95
|
-
#
|
|
96
|
-
attr_accessor :
|
|
97
|
-
#
|
|
98
|
-
attr_accessor :
|
|
99
|
-
#
|
|
100
|
-
|
|
101
|
-
#
|
|
102
|
-
attr_accessor :
|
|
103
|
-
#
|
|
104
|
-
attr_accessor :
|
|
105
|
-
#
|
|
106
|
-
attr_accessor :
|
|
107
|
-
#
|
|
108
|
-
attr_accessor :
|
|
109
|
-
#
|
|
110
|
-
attr_accessor :
|
|
1739
|
+
# Accommodation details for the lodging.
|
|
1740
|
+
attr_accessor :accommodation
|
|
1741
|
+
# Affiliate details if applicable.
|
|
1742
|
+
attr_accessor :affiliate
|
|
1743
|
+
# Booking confirmation number for the lodging.
|
|
1744
|
+
attr_accessor :booking_number
|
|
1745
|
+
# Check-in date.
|
|
1746
|
+
attr_accessor :checkin_at
|
|
1747
|
+
# Check-out date.
|
|
1748
|
+
attr_accessor :checkout_at
|
|
1749
|
+
# Customer service phone number for the lodging company.
|
|
1750
|
+
attr_accessor :customer_service_phone_number
|
|
1751
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1752
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1753
|
+
# List of guests for the lodging.
|
|
1754
|
+
attr_accessor :guests
|
|
1755
|
+
# Host details for the lodging.
|
|
1756
|
+
attr_accessor :host
|
|
1757
|
+
# List of insurances for the lodging.
|
|
1758
|
+
attr_accessor :insurances
|
|
1759
|
+
# Whether the renter is a no-show.
|
|
1760
|
+
attr_accessor :no_show_indicator
|
|
1761
|
+
# Renter ID number for the lodging.
|
|
1762
|
+
attr_accessor :renter_id_number
|
|
1763
|
+
# Renter name for the lodging.
|
|
1764
|
+
attr_accessor :renter_name
|
|
1765
|
+
# Total details for the lodging.
|
|
1766
|
+
attr_accessor :total
|
|
111
1767
|
|
|
112
1768
|
def initialize(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
1769
|
+
accommodation: nil,
|
|
1770
|
+
affiliate: nil,
|
|
1771
|
+
booking_number: nil,
|
|
1772
|
+
checkin_at: nil,
|
|
1773
|
+
checkout_at: nil,
|
|
1774
|
+
customer_service_phone_number: nil,
|
|
1775
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1776
|
+
guests: nil,
|
|
1777
|
+
host: nil,
|
|
1778
|
+
insurances: nil,
|
|
1779
|
+
no_show_indicator: nil,
|
|
1780
|
+
renter_id_number: nil,
|
|
1781
|
+
renter_name: nil,
|
|
1782
|
+
total: nil
|
|
121
1783
|
)
|
|
122
|
-
@
|
|
123
|
-
@
|
|
124
|
-
@
|
|
125
|
-
@
|
|
126
|
-
@
|
|
127
|
-
@
|
|
128
|
-
@
|
|
129
|
-
@
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
# 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.
|
|
137
|
-
attr_accessor :from_postal_code
|
|
138
|
-
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
139
|
-
attr_accessor :to_postal_code
|
|
140
|
-
|
|
141
|
-
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
|
142
|
-
@amount = amount
|
|
143
|
-
@from_postal_code = from_postal_code
|
|
144
|
-
@to_postal_code = to_postal_code
|
|
1784
|
+
@accommodation = accommodation
|
|
1785
|
+
@affiliate = affiliate
|
|
1786
|
+
@booking_number = booking_number
|
|
1787
|
+
@checkin_at = checkin_at
|
|
1788
|
+
@checkout_at = checkout_at
|
|
1789
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1790
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1791
|
+
@guests = guests
|
|
1792
|
+
@host = host
|
|
1793
|
+
@insurances = insurances
|
|
1794
|
+
@no_show_indicator = no_show_indicator
|
|
1795
|
+
@renter_id_number = renter_id_number
|
|
1796
|
+
@renter_name = renter_name
|
|
1797
|
+
@total = total
|
|
145
1798
|
end
|
|
146
1799
|
end
|
|
147
1800
|
|
|
148
|
-
class
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
attr_accessor :total_tax_amount
|
|
1801
|
+
class Subscription < ::Stripe::RequestParams
|
|
1802
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1803
|
+
# The name of the affiliate that originated the purchase.
|
|
1804
|
+
attr_accessor :name
|
|
153
1805
|
|
|
154
|
-
|
|
155
|
-
|
|
1806
|
+
def initialize(name: nil)
|
|
1807
|
+
@name = name
|
|
1808
|
+
end
|
|
156
1809
|
end
|
|
157
|
-
end
|
|
158
|
-
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
159
|
-
#
|
|
160
|
-
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
161
|
-
attr_accessor :discount_amount
|
|
162
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
163
|
-
attr_accessor :line_items
|
|
164
|
-
# Contains information about the shipping portion of the amount.
|
|
165
|
-
attr_accessor :shipping
|
|
166
|
-
# Contains information about the tax portion of the amount.
|
|
167
|
-
attr_accessor :tax
|
|
168
|
-
|
|
169
|
-
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
|
|
170
|
-
@discount_amount = discount_amount
|
|
171
|
-
@line_items = line_items
|
|
172
|
-
@shipping = shipping
|
|
173
|
-
@tax = tax
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
1810
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
#
|
|
181
|
-
attr_accessor :
|
|
1811
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1812
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1813
|
+
attr_accessor :count
|
|
1814
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1815
|
+
attr_accessor :interval
|
|
182
1816
|
|
|
183
|
-
def initialize(
|
|
184
|
-
@
|
|
1817
|
+
def initialize(count: nil, interval: nil)
|
|
1818
|
+
@count = count
|
|
1819
|
+
@interval = interval
|
|
185
1820
|
end
|
|
186
1821
|
end
|
|
187
|
-
#
|
|
188
|
-
attr_accessor :
|
|
1822
|
+
# Affiliate details for this purchase.
|
|
1823
|
+
attr_accessor :affiliate
|
|
1824
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1825
|
+
attr_accessor :auto_renewal
|
|
1826
|
+
# Subscription billing details for this purchase.
|
|
1827
|
+
attr_accessor :billing_interval
|
|
1828
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1829
|
+
attr_accessor :ends_at
|
|
1830
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1831
|
+
attr_accessor :name
|
|
1832
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1833
|
+
attr_accessor :starts_at
|
|
189
1834
|
|
|
190
|
-
def initialize(
|
|
191
|
-
|
|
1835
|
+
def initialize(
|
|
1836
|
+
affiliate: nil,
|
|
1837
|
+
auto_renewal: nil,
|
|
1838
|
+
billing_interval: nil,
|
|
1839
|
+
ends_at: nil,
|
|
1840
|
+
name: nil,
|
|
1841
|
+
starts_at: nil
|
|
1842
|
+
)
|
|
1843
|
+
@affiliate = affiliate
|
|
1844
|
+
@auto_renewal = auto_renewal
|
|
1845
|
+
@billing_interval = billing_interval
|
|
1846
|
+
@ends_at = ends_at
|
|
1847
|
+
@name = name
|
|
1848
|
+
@starts_at = starts_at
|
|
192
1849
|
end
|
|
193
1850
|
end
|
|
194
|
-
#
|
|
195
|
-
attr_accessor :
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
class PaymentDetails < ::Stripe::RequestParams
|
|
1851
|
+
# Benefit details for this PaymentIntent
|
|
1852
|
+
attr_accessor :benefit
|
|
1853
|
+
# Car rental details for this PaymentIntent.
|
|
1854
|
+
attr_accessor :car_rental
|
|
1855
|
+
# Car rental data for this PaymentIntent.
|
|
1856
|
+
attr_accessor :car_rental_data
|
|
203
1857
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
204
1858
|
#
|
|
205
1859
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
206
1860
|
attr_accessor :customer_reference
|
|
1861
|
+
# Event details for this PaymentIntent
|
|
1862
|
+
attr_accessor :event_details
|
|
1863
|
+
# Flight reservation details for this PaymentIntent
|
|
1864
|
+
attr_accessor :flight
|
|
1865
|
+
# Flight data for this PaymentIntent.
|
|
1866
|
+
attr_accessor :flight_data
|
|
1867
|
+
# Lodging reservation details for this PaymentIntent
|
|
1868
|
+
attr_accessor :lodging
|
|
1869
|
+
# Lodging data for this PaymentIntent.
|
|
1870
|
+
attr_accessor :lodging_data
|
|
207
1871
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
208
1872
|
#
|
|
209
1873
|
# 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`.
|
|
210
1874
|
#
|
|
211
1875
|
# 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.
|
|
212
1876
|
attr_accessor :order_reference
|
|
1877
|
+
# Subscription details for this PaymentIntent
|
|
1878
|
+
attr_accessor :subscription
|
|
213
1879
|
|
|
214
|
-
def initialize(
|
|
1880
|
+
def initialize(
|
|
1881
|
+
benefit: nil,
|
|
1882
|
+
car_rental: nil,
|
|
1883
|
+
car_rental_data: nil,
|
|
1884
|
+
customer_reference: nil,
|
|
1885
|
+
event_details: nil,
|
|
1886
|
+
flight: nil,
|
|
1887
|
+
flight_data: nil,
|
|
1888
|
+
lodging: nil,
|
|
1889
|
+
lodging_data: nil,
|
|
1890
|
+
order_reference: nil,
|
|
1891
|
+
subscription: nil
|
|
1892
|
+
)
|
|
1893
|
+
@benefit = benefit
|
|
1894
|
+
@car_rental = car_rental
|
|
1895
|
+
@car_rental_data = car_rental_data
|
|
215
1896
|
@customer_reference = customer_reference
|
|
1897
|
+
@event_details = event_details
|
|
1898
|
+
@flight = flight
|
|
1899
|
+
@flight_data = flight_data
|
|
1900
|
+
@lodging = lodging
|
|
1901
|
+
@lodging_data = lodging_data
|
|
216
1902
|
@order_reference = order_reference
|
|
1903
|
+
@subscription = subscription
|
|
217
1904
|
end
|
|
218
1905
|
end
|
|
219
1906
|
|
|
@@ -354,8 +2041,18 @@ module Stripe
|
|
|
354
2041
|
end
|
|
355
2042
|
|
|
356
2043
|
class Giropay < ::Stripe::RequestParams; end
|
|
2044
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
357
2045
|
class Grabpay < ::Stripe::RequestParams; end
|
|
358
2046
|
|
|
2047
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2048
|
+
# Bank where the account is held.
|
|
2049
|
+
attr_accessor :bank
|
|
2050
|
+
|
|
2051
|
+
def initialize(bank: nil)
|
|
2052
|
+
@bank = bank
|
|
2053
|
+
end
|
|
2054
|
+
end
|
|
2055
|
+
|
|
359
2056
|
class Ideal < ::Stripe::RequestParams
|
|
360
2057
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
361
2058
|
attr_accessor :bank
|
|
@@ -453,6 +2150,7 @@ module Stripe
|
|
|
453
2150
|
class Payco < ::Stripe::RequestParams; end
|
|
454
2151
|
class Paynow < ::Stripe::RequestParams; end
|
|
455
2152
|
class Paypal < ::Stripe::RequestParams; end
|
|
2153
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
456
2154
|
|
|
457
2155
|
class Payto < ::Stripe::RequestParams
|
|
458
2156
|
# The account number for the bank account.
|
|
@@ -471,6 +2169,7 @@ module Stripe
|
|
|
471
2169
|
|
|
472
2170
|
class Pix < ::Stripe::RequestParams; end
|
|
473
2171
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2172
|
+
class Qris < ::Stripe::RequestParams; end
|
|
474
2173
|
|
|
475
2174
|
class RadarOptions < ::Stripe::RequestParams
|
|
476
2175
|
# 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.
|
|
@@ -481,6 +2180,29 @@ module Stripe
|
|
|
481
2180
|
end
|
|
482
2181
|
end
|
|
483
2182
|
|
|
2183
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2184
|
+
class Dob < ::Stripe::RequestParams
|
|
2185
|
+
# The day of birth, between 1 and 31.
|
|
2186
|
+
attr_accessor :day
|
|
2187
|
+
# The month of birth, between 1 and 12.
|
|
2188
|
+
attr_accessor :month
|
|
2189
|
+
# The four-digit year of birth.
|
|
2190
|
+
attr_accessor :year
|
|
2191
|
+
|
|
2192
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2193
|
+
@day = day
|
|
2194
|
+
@month = month
|
|
2195
|
+
@year = year
|
|
2196
|
+
end
|
|
2197
|
+
end
|
|
2198
|
+
# Customer's date of birth
|
|
2199
|
+
attr_accessor :dob
|
|
2200
|
+
|
|
2201
|
+
def initialize(dob: nil)
|
|
2202
|
+
@dob = dob
|
|
2203
|
+
end
|
|
2204
|
+
end
|
|
2205
|
+
|
|
484
2206
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
485
2207
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
486
2208
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -494,6 +2216,8 @@ module Stripe
|
|
|
494
2216
|
end
|
|
495
2217
|
end
|
|
496
2218
|
|
|
2219
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2220
|
+
|
|
497
2221
|
class Sofort < ::Stripe::RequestParams
|
|
498
2222
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
499
2223
|
attr_accessor :country
|
|
@@ -503,6 +2227,18 @@ module Stripe
|
|
|
503
2227
|
end
|
|
504
2228
|
end
|
|
505
2229
|
|
|
2230
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2231
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2232
|
+
attr_accessor :account
|
|
2233
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
2234
|
+
attr_accessor :source_type
|
|
2235
|
+
|
|
2236
|
+
def initialize(account: nil, source_type: nil)
|
|
2237
|
+
@account = account
|
|
2238
|
+
@source_type = source_type
|
|
2239
|
+
end
|
|
2240
|
+
end
|
|
2241
|
+
|
|
506
2242
|
class Swish < ::Stripe::RequestParams; end
|
|
507
2243
|
class Twint < ::Stripe::RequestParams; end
|
|
508
2244
|
|
|
@@ -575,8 +2311,12 @@ module Stripe
|
|
|
575
2311
|
attr_accessor :fpx
|
|
576
2312
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
577
2313
|
attr_accessor :giropay
|
|
2314
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2315
|
+
attr_accessor :gopay
|
|
578
2316
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
579
2317
|
attr_accessor :grabpay
|
|
2318
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2319
|
+
attr_accessor :id_bank_transfer
|
|
580
2320
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
581
2321
|
attr_accessor :ideal
|
|
582
2322
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -615,14 +2355,20 @@ module Stripe
|
|
|
615
2355
|
attr_accessor :paynow
|
|
616
2356
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
617
2357
|
attr_accessor :paypal
|
|
2358
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2359
|
+
attr_accessor :paypay
|
|
618
2360
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
619
2361
|
attr_accessor :payto
|
|
620
2362
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
621
2363
|
attr_accessor :pix
|
|
622
2364
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
623
2365
|
attr_accessor :promptpay
|
|
2366
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2367
|
+
attr_accessor :qris
|
|
624
2368
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
625
2369
|
attr_accessor :radar_options
|
|
2370
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2371
|
+
attr_accessor :rechnung
|
|
626
2372
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
627
2373
|
attr_accessor :revolut_pay
|
|
628
2374
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -631,8 +2377,12 @@ module Stripe
|
|
|
631
2377
|
attr_accessor :satispay
|
|
632
2378
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
633
2379
|
attr_accessor :sepa_debit
|
|
2380
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2381
|
+
attr_accessor :shopeepay
|
|
634
2382
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
635
2383
|
attr_accessor :sofort
|
|
2384
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2385
|
+
attr_accessor :stripe_balance
|
|
636
2386
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
637
2387
|
attr_accessor :swish
|
|
638
2388
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -667,7 +2417,9 @@ module Stripe
|
|
|
667
2417
|
eps: nil,
|
|
668
2418
|
fpx: nil,
|
|
669
2419
|
giropay: nil,
|
|
2420
|
+
gopay: nil,
|
|
670
2421
|
grabpay: nil,
|
|
2422
|
+
id_bank_transfer: nil,
|
|
671
2423
|
ideal: nil,
|
|
672
2424
|
interac_present: nil,
|
|
673
2425
|
kakao_pay: nil,
|
|
@@ -687,15 +2439,20 @@ module Stripe
|
|
|
687
2439
|
payco: nil,
|
|
688
2440
|
paynow: nil,
|
|
689
2441
|
paypal: nil,
|
|
2442
|
+
paypay: nil,
|
|
690
2443
|
payto: nil,
|
|
691
2444
|
pix: nil,
|
|
692
2445
|
promptpay: nil,
|
|
2446
|
+
qris: nil,
|
|
693
2447
|
radar_options: nil,
|
|
2448
|
+
rechnung: nil,
|
|
694
2449
|
revolut_pay: nil,
|
|
695
2450
|
samsung_pay: nil,
|
|
696
2451
|
satispay: nil,
|
|
697
2452
|
sepa_debit: nil,
|
|
2453
|
+
shopeepay: nil,
|
|
698
2454
|
sofort: nil,
|
|
2455
|
+
stripe_balance: nil,
|
|
699
2456
|
swish: nil,
|
|
700
2457
|
twint: nil,
|
|
701
2458
|
type: nil,
|
|
@@ -723,7 +2480,9 @@ module Stripe
|
|
|
723
2480
|
@eps = eps
|
|
724
2481
|
@fpx = fpx
|
|
725
2482
|
@giropay = giropay
|
|
2483
|
+
@gopay = gopay
|
|
726
2484
|
@grabpay = grabpay
|
|
2485
|
+
@id_bank_transfer = id_bank_transfer
|
|
727
2486
|
@ideal = ideal
|
|
728
2487
|
@interac_present = interac_present
|
|
729
2488
|
@kakao_pay = kakao_pay
|
|
@@ -743,15 +2502,20 @@ module Stripe
|
|
|
743
2502
|
@payco = payco
|
|
744
2503
|
@paynow = paynow
|
|
745
2504
|
@paypal = paypal
|
|
2505
|
+
@paypay = paypay
|
|
746
2506
|
@payto = payto
|
|
747
2507
|
@pix = pix
|
|
748
2508
|
@promptpay = promptpay
|
|
2509
|
+
@qris = qris
|
|
749
2510
|
@radar_options = radar_options
|
|
2511
|
+
@rechnung = rechnung
|
|
750
2512
|
@revolut_pay = revolut_pay
|
|
751
2513
|
@samsung_pay = samsung_pay
|
|
752
2514
|
@satispay = satispay
|
|
753
2515
|
@sepa_debit = sepa_debit
|
|
2516
|
+
@shopeepay = shopeepay
|
|
754
2517
|
@sofort = sofort
|
|
2518
|
+
@stripe_balance = stripe_balance
|
|
755
2519
|
@swish = swish
|
|
756
2520
|
@twint = twint
|
|
757
2521
|
@type = type
|
|
@@ -1122,6 +2886,48 @@ module Stripe
|
|
|
1122
2886
|
end
|
|
1123
2887
|
end
|
|
1124
2888
|
|
|
2889
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
2890
|
+
class Address < ::Stripe::RequestParams
|
|
2891
|
+
# City, district, suburb, town, or village.
|
|
2892
|
+
attr_accessor :city
|
|
2893
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2894
|
+
attr_accessor :country
|
|
2895
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2896
|
+
attr_accessor :line1
|
|
2897
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2898
|
+
attr_accessor :line2
|
|
2899
|
+
# ZIP or postal code.
|
|
2900
|
+
attr_accessor :postal_code
|
|
2901
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2902
|
+
attr_accessor :state
|
|
2903
|
+
|
|
2904
|
+
def initialize(
|
|
2905
|
+
city: nil,
|
|
2906
|
+
country: nil,
|
|
2907
|
+
line1: nil,
|
|
2908
|
+
line2: nil,
|
|
2909
|
+
postal_code: nil,
|
|
2910
|
+
state: nil
|
|
2911
|
+
)
|
|
2912
|
+
@city = city
|
|
2913
|
+
@country = country
|
|
2914
|
+
@line1 = line1
|
|
2915
|
+
@line2 = line2
|
|
2916
|
+
@postal_code = postal_code
|
|
2917
|
+
@state = state
|
|
2918
|
+
end
|
|
2919
|
+
end
|
|
2920
|
+
# Please pass in an address that is within your Stripe user account country
|
|
2921
|
+
attr_accessor :address
|
|
2922
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
2923
|
+
attr_accessor :phone
|
|
2924
|
+
|
|
2925
|
+
def initialize(address: nil, phone: nil)
|
|
2926
|
+
@address = address
|
|
2927
|
+
@phone = phone
|
|
2928
|
+
end
|
|
2929
|
+
end
|
|
2930
|
+
|
|
1125
2931
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1126
2932
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1127
2933
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1216,6 +3022,8 @@ module Stripe
|
|
|
1216
3022
|
attr_accessor :moto
|
|
1217
3023
|
# 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.
|
|
1218
3024
|
attr_accessor :network
|
|
3025
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3026
|
+
attr_accessor :request_decremental_authorization
|
|
1219
3027
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1220
3028
|
attr_accessor :request_extended_authorization
|
|
1221
3029
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1224,6 +3032,8 @@ module Stripe
|
|
|
1224
3032
|
attr_accessor :request_multicapture
|
|
1225
3033
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1226
3034
|
attr_accessor :request_overcapture
|
|
3035
|
+
# Request partial authorization on this PaymentIntent.
|
|
3036
|
+
attr_accessor :request_partial_authorization
|
|
1227
3037
|
# 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.
|
|
1228
3038
|
attr_accessor :request_three_d_secure
|
|
1229
3039
|
# 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).
|
|
@@ -1242,6 +3052,8 @@ module Stripe
|
|
|
1242
3052
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1243
3053
|
# 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.
|
|
1244
3054
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3055
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3056
|
+
attr_accessor :statement_details
|
|
1245
3057
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1246
3058
|
# the authentication details to use for this payment.
|
|
1247
3059
|
attr_accessor :three_d_secure
|
|
@@ -1253,15 +3065,18 @@ module Stripe
|
|
|
1253
3065
|
mandate_options: nil,
|
|
1254
3066
|
moto: nil,
|
|
1255
3067
|
network: nil,
|
|
3068
|
+
request_decremental_authorization: nil,
|
|
1256
3069
|
request_extended_authorization: nil,
|
|
1257
3070
|
request_incremental_authorization: nil,
|
|
1258
3071
|
request_multicapture: nil,
|
|
1259
3072
|
request_overcapture: nil,
|
|
3073
|
+
request_partial_authorization: nil,
|
|
1260
3074
|
request_three_d_secure: nil,
|
|
1261
3075
|
require_cvc_recollection: nil,
|
|
1262
3076
|
setup_future_usage: nil,
|
|
1263
3077
|
statement_descriptor_suffix_kana: nil,
|
|
1264
3078
|
statement_descriptor_suffix_kanji: nil,
|
|
3079
|
+
statement_details: nil,
|
|
1265
3080
|
three_d_secure: nil
|
|
1266
3081
|
)
|
|
1267
3082
|
@capture_method = capture_method
|
|
@@ -1270,15 +3085,18 @@ module Stripe
|
|
|
1270
3085
|
@mandate_options = mandate_options
|
|
1271
3086
|
@moto = moto
|
|
1272
3087
|
@network = network
|
|
3088
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1273
3089
|
@request_extended_authorization = request_extended_authorization
|
|
1274
3090
|
@request_incremental_authorization = request_incremental_authorization
|
|
1275
3091
|
@request_multicapture = request_multicapture
|
|
1276
3092
|
@request_overcapture = request_overcapture
|
|
3093
|
+
@request_partial_authorization = request_partial_authorization
|
|
1277
3094
|
@request_three_d_secure = request_three_d_secure
|
|
1278
3095
|
@require_cvc_recollection = require_cvc_recollection
|
|
1279
3096
|
@setup_future_usage = setup_future_usage
|
|
1280
3097
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1281
3098
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3099
|
+
@statement_details = statement_details
|
|
1282
3100
|
@three_d_secure = three_d_secure
|
|
1283
3101
|
end
|
|
1284
3102
|
end
|
|
@@ -1399,14 +3217,31 @@ module Stripe
|
|
|
1399
3217
|
# 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`.
|
|
1400
3218
|
attr_accessor :setup_future_usage
|
|
1401
3219
|
|
|
1402
|
-
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
1403
|
-
@bank_transfer = bank_transfer
|
|
1404
|
-
@funding_type = funding_type
|
|
3220
|
+
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
3221
|
+
@bank_transfer = bank_transfer
|
|
3222
|
+
@funding_type = funding_type
|
|
3223
|
+
@setup_future_usage = setup_future_usage
|
|
3224
|
+
end
|
|
3225
|
+
end
|
|
3226
|
+
|
|
3227
|
+
class Eps < ::Stripe::RequestParams
|
|
3228
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3229
|
+
#
|
|
3230
|
+
# 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.
|
|
3231
|
+
#
|
|
3232
|
+
# 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.
|
|
3233
|
+
#
|
|
3234
|
+
# 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).
|
|
3235
|
+
#
|
|
3236
|
+
# 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`.
|
|
3237
|
+
attr_accessor :setup_future_usage
|
|
3238
|
+
|
|
3239
|
+
def initialize(setup_future_usage: nil)
|
|
1405
3240
|
@setup_future_usage = setup_future_usage
|
|
1406
3241
|
end
|
|
1407
3242
|
end
|
|
1408
3243
|
|
|
1409
|
-
class
|
|
3244
|
+
class Fpx < ::Stripe::RequestParams
|
|
1410
3245
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1411
3246
|
#
|
|
1412
3247
|
# 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.
|
|
@@ -1423,7 +3258,7 @@ module Stripe
|
|
|
1423
3258
|
end
|
|
1424
3259
|
end
|
|
1425
3260
|
|
|
1426
|
-
class
|
|
3261
|
+
class Giropay < ::Stripe::RequestParams
|
|
1427
3262
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1428
3263
|
#
|
|
1429
3264
|
# 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.
|
|
@@ -1440,7 +3275,7 @@ module Stripe
|
|
|
1440
3275
|
end
|
|
1441
3276
|
end
|
|
1442
3277
|
|
|
1443
|
-
class
|
|
3278
|
+
class Gopay < ::Stripe::RequestParams
|
|
1444
3279
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1445
3280
|
#
|
|
1446
3281
|
# 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.
|
|
@@ -1474,6 +3309,29 @@ module Stripe
|
|
|
1474
3309
|
end
|
|
1475
3310
|
end
|
|
1476
3311
|
|
|
3312
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3313
|
+
# 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.
|
|
3314
|
+
attr_accessor :expires_after
|
|
3315
|
+
# 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.
|
|
3316
|
+
attr_accessor :expires_at
|
|
3317
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3318
|
+
#
|
|
3319
|
+
# 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.
|
|
3320
|
+
#
|
|
3321
|
+
# 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.
|
|
3322
|
+
#
|
|
3323
|
+
# 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).
|
|
3324
|
+
#
|
|
3325
|
+
# 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`.
|
|
3326
|
+
attr_accessor :setup_future_usage
|
|
3327
|
+
|
|
3328
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3329
|
+
@expires_after = expires_after
|
|
3330
|
+
@expires_at = expires_at
|
|
3331
|
+
@setup_future_usage = setup_future_usage
|
|
3332
|
+
end
|
|
3333
|
+
end
|
|
3334
|
+
|
|
1477
3335
|
class Ideal < ::Stripe::RequestParams
|
|
1478
3336
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1479
3337
|
#
|
|
@@ -1580,6 +3438,939 @@ module Stripe
|
|
|
1580
3438
|
@reference = reference
|
|
1581
3439
|
end
|
|
1582
3440
|
end
|
|
3441
|
+
|
|
3442
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3443
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
3444
|
+
class Arrival < ::Stripe::RequestParams
|
|
3445
|
+
class Address < ::Stripe::RequestParams
|
|
3446
|
+
# The city or town.
|
|
3447
|
+
attr_accessor :city
|
|
3448
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3449
|
+
attr_accessor :country
|
|
3450
|
+
# The postal code formatted according to country.
|
|
3451
|
+
attr_accessor :postal_code
|
|
3452
|
+
# The state, county, province, or region formatted according to country.
|
|
3453
|
+
attr_accessor :region
|
|
3454
|
+
# Line 1 of the street address.
|
|
3455
|
+
attr_accessor :street_address
|
|
3456
|
+
# Line 2 of the street address.
|
|
3457
|
+
attr_accessor :street_address2
|
|
3458
|
+
|
|
3459
|
+
def initialize(
|
|
3460
|
+
city: nil,
|
|
3461
|
+
country: nil,
|
|
3462
|
+
postal_code: nil,
|
|
3463
|
+
region: nil,
|
|
3464
|
+
street_address: nil,
|
|
3465
|
+
street_address2: nil
|
|
3466
|
+
)
|
|
3467
|
+
@city = city
|
|
3468
|
+
@country = country
|
|
3469
|
+
@postal_code = postal_code
|
|
3470
|
+
@region = region
|
|
3471
|
+
@street_address = street_address
|
|
3472
|
+
@street_address2 = street_address2
|
|
3473
|
+
end
|
|
3474
|
+
end
|
|
3475
|
+
# Address of the arrival location.
|
|
3476
|
+
attr_accessor :address
|
|
3477
|
+
# Identifier name or reference for the arrival location.
|
|
3478
|
+
attr_accessor :arrival_location
|
|
3479
|
+
|
|
3480
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3481
|
+
@address = address
|
|
3482
|
+
@arrival_location = arrival_location
|
|
3483
|
+
end
|
|
3484
|
+
end
|
|
3485
|
+
|
|
3486
|
+
class Departure < ::Stripe::RequestParams
|
|
3487
|
+
class Address < ::Stripe::RequestParams
|
|
3488
|
+
# The city or town.
|
|
3489
|
+
attr_accessor :city
|
|
3490
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3491
|
+
attr_accessor :country
|
|
3492
|
+
# The postal code formatted according to country.
|
|
3493
|
+
attr_accessor :postal_code
|
|
3494
|
+
# The state, county, province, or region formatted according to country.
|
|
3495
|
+
attr_accessor :region
|
|
3496
|
+
# Line 1 of the street address.
|
|
3497
|
+
attr_accessor :street_address
|
|
3498
|
+
# Line 2 of the street address.
|
|
3499
|
+
attr_accessor :street_address2
|
|
3500
|
+
|
|
3501
|
+
def initialize(
|
|
3502
|
+
city: nil,
|
|
3503
|
+
country: nil,
|
|
3504
|
+
postal_code: nil,
|
|
3505
|
+
region: nil,
|
|
3506
|
+
street_address: nil,
|
|
3507
|
+
street_address2: nil
|
|
3508
|
+
)
|
|
3509
|
+
@city = city
|
|
3510
|
+
@country = country
|
|
3511
|
+
@postal_code = postal_code
|
|
3512
|
+
@region = region
|
|
3513
|
+
@street_address = street_address
|
|
3514
|
+
@street_address2 = street_address2
|
|
3515
|
+
end
|
|
3516
|
+
end
|
|
3517
|
+
# Address of the departure location.
|
|
3518
|
+
attr_accessor :address
|
|
3519
|
+
# Timestamp of departure.
|
|
3520
|
+
attr_accessor :departs_at
|
|
3521
|
+
# Identifier name or reference for the origin location.
|
|
3522
|
+
attr_accessor :departure_location
|
|
3523
|
+
|
|
3524
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3525
|
+
@address = address
|
|
3526
|
+
@departs_at = departs_at
|
|
3527
|
+
@departure_location = departure_location
|
|
3528
|
+
end
|
|
3529
|
+
end
|
|
3530
|
+
|
|
3531
|
+
class Insurance < ::Stripe::RequestParams
|
|
3532
|
+
# Insurance currency.
|
|
3533
|
+
attr_accessor :currency
|
|
3534
|
+
# Name of the company providing the insurance.
|
|
3535
|
+
attr_accessor :insurance_company_name
|
|
3536
|
+
# Type of insurance.
|
|
3537
|
+
attr_accessor :insurance_type
|
|
3538
|
+
# Price of insurance in cents.
|
|
3539
|
+
attr_accessor :price
|
|
3540
|
+
|
|
3541
|
+
def initialize(
|
|
3542
|
+
currency: nil,
|
|
3543
|
+
insurance_company_name: nil,
|
|
3544
|
+
insurance_type: nil,
|
|
3545
|
+
price: nil
|
|
3546
|
+
)
|
|
3547
|
+
@currency = currency
|
|
3548
|
+
@insurance_company_name = insurance_company_name
|
|
3549
|
+
@insurance_type = insurance_type
|
|
3550
|
+
@price = price
|
|
3551
|
+
end
|
|
3552
|
+
end
|
|
3553
|
+
|
|
3554
|
+
class Passenger < ::Stripe::RequestParams
|
|
3555
|
+
# The family name of the person.
|
|
3556
|
+
attr_accessor :family_name
|
|
3557
|
+
# The given name of the person.
|
|
3558
|
+
attr_accessor :given_name
|
|
3559
|
+
|
|
3560
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3561
|
+
@family_name = family_name
|
|
3562
|
+
@given_name = given_name
|
|
3563
|
+
end
|
|
3564
|
+
end
|
|
3565
|
+
# Name of associated or partner company for the service.
|
|
3566
|
+
attr_accessor :affiliate_name
|
|
3567
|
+
# Arrival details.
|
|
3568
|
+
attr_accessor :arrival
|
|
3569
|
+
# Name of transportation company.
|
|
3570
|
+
attr_accessor :carrier_name
|
|
3571
|
+
# Currency.
|
|
3572
|
+
attr_accessor :currency
|
|
3573
|
+
# Departure details.
|
|
3574
|
+
attr_accessor :departure
|
|
3575
|
+
# List of insurances for this reservation.
|
|
3576
|
+
attr_accessor :insurances
|
|
3577
|
+
# List of passengers that this reservation applies to.
|
|
3578
|
+
attr_accessor :passengers
|
|
3579
|
+
# Price in cents.
|
|
3580
|
+
attr_accessor :price
|
|
3581
|
+
# Ticket class.
|
|
3582
|
+
attr_accessor :ticket_class
|
|
3583
|
+
|
|
3584
|
+
def initialize(
|
|
3585
|
+
affiliate_name: nil,
|
|
3586
|
+
arrival: nil,
|
|
3587
|
+
carrier_name: nil,
|
|
3588
|
+
currency: nil,
|
|
3589
|
+
departure: nil,
|
|
3590
|
+
insurances: nil,
|
|
3591
|
+
passengers: nil,
|
|
3592
|
+
price: nil,
|
|
3593
|
+
ticket_class: nil
|
|
3594
|
+
)
|
|
3595
|
+
@affiliate_name = affiliate_name
|
|
3596
|
+
@arrival = arrival
|
|
3597
|
+
@carrier_name = carrier_name
|
|
3598
|
+
@currency = currency
|
|
3599
|
+
@departure = departure
|
|
3600
|
+
@insurances = insurances
|
|
3601
|
+
@passengers = passengers
|
|
3602
|
+
@price = price
|
|
3603
|
+
@ticket_class = ticket_class
|
|
3604
|
+
end
|
|
3605
|
+
end
|
|
3606
|
+
|
|
3607
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
3608
|
+
class Address < ::Stripe::RequestParams
|
|
3609
|
+
# The city or town.
|
|
3610
|
+
attr_accessor :city
|
|
3611
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3612
|
+
attr_accessor :country
|
|
3613
|
+
# The postal code formatted according to country.
|
|
3614
|
+
attr_accessor :postal_code
|
|
3615
|
+
# The state, county, province, or region formatted according to country.
|
|
3616
|
+
attr_accessor :region
|
|
3617
|
+
# Line 1 of the street address.
|
|
3618
|
+
attr_accessor :street_address
|
|
3619
|
+
# Line 2 of the street address.
|
|
3620
|
+
attr_accessor :street_address2
|
|
3621
|
+
|
|
3622
|
+
def initialize(
|
|
3623
|
+
city: nil,
|
|
3624
|
+
country: nil,
|
|
3625
|
+
postal_code: nil,
|
|
3626
|
+
region: nil,
|
|
3627
|
+
street_address: nil,
|
|
3628
|
+
street_address2: nil
|
|
3629
|
+
)
|
|
3630
|
+
@city = city
|
|
3631
|
+
@country = country
|
|
3632
|
+
@postal_code = postal_code
|
|
3633
|
+
@region = region
|
|
3634
|
+
@street_address = street_address
|
|
3635
|
+
@street_address2 = street_address2
|
|
3636
|
+
end
|
|
3637
|
+
end
|
|
3638
|
+
|
|
3639
|
+
class Insurance < ::Stripe::RequestParams
|
|
3640
|
+
# Insurance currency.
|
|
3641
|
+
attr_accessor :currency
|
|
3642
|
+
# Name of the company providing the insurance.
|
|
3643
|
+
attr_accessor :insurance_company_name
|
|
3644
|
+
# Type of insurance.
|
|
3645
|
+
attr_accessor :insurance_type
|
|
3646
|
+
# Price of insurance in cents.
|
|
3647
|
+
attr_accessor :price
|
|
3648
|
+
|
|
3649
|
+
def initialize(
|
|
3650
|
+
currency: nil,
|
|
3651
|
+
insurance_company_name: nil,
|
|
3652
|
+
insurance_type: nil,
|
|
3653
|
+
price: nil
|
|
3654
|
+
)
|
|
3655
|
+
@currency = currency
|
|
3656
|
+
@insurance_company_name = insurance_company_name
|
|
3657
|
+
@insurance_type = insurance_type
|
|
3658
|
+
@price = price
|
|
3659
|
+
end
|
|
3660
|
+
end
|
|
3661
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3662
|
+
attr_accessor :access_controlled_venue
|
|
3663
|
+
# Address of the event.
|
|
3664
|
+
attr_accessor :address
|
|
3665
|
+
# Name of associated or partner company for the service.
|
|
3666
|
+
attr_accessor :affiliate_name
|
|
3667
|
+
# End timestamp of the event.
|
|
3668
|
+
attr_accessor :ends_at
|
|
3669
|
+
# Company selling the ticket.
|
|
3670
|
+
attr_accessor :event_company_name
|
|
3671
|
+
# Name of the event.
|
|
3672
|
+
attr_accessor :event_name
|
|
3673
|
+
# Type of the event.
|
|
3674
|
+
attr_accessor :event_type
|
|
3675
|
+
# List of insurances for this event.
|
|
3676
|
+
attr_accessor :insurances
|
|
3677
|
+
# Start timestamp of the event.
|
|
3678
|
+
attr_accessor :starts_at
|
|
3679
|
+
# Name of the venue where the event takes place.
|
|
3680
|
+
attr_accessor :venue_name
|
|
3681
|
+
|
|
3682
|
+
def initialize(
|
|
3683
|
+
access_controlled_venue: nil,
|
|
3684
|
+
address: nil,
|
|
3685
|
+
affiliate_name: nil,
|
|
3686
|
+
ends_at: nil,
|
|
3687
|
+
event_company_name: nil,
|
|
3688
|
+
event_name: nil,
|
|
3689
|
+
event_type: nil,
|
|
3690
|
+
insurances: nil,
|
|
3691
|
+
starts_at: nil,
|
|
3692
|
+
venue_name: nil
|
|
3693
|
+
)
|
|
3694
|
+
@access_controlled_venue = access_controlled_venue
|
|
3695
|
+
@address = address
|
|
3696
|
+
@affiliate_name = affiliate_name
|
|
3697
|
+
@ends_at = ends_at
|
|
3698
|
+
@event_company_name = event_company_name
|
|
3699
|
+
@event_name = event_name
|
|
3700
|
+
@event_type = event_type
|
|
3701
|
+
@insurances = insurances
|
|
3702
|
+
@starts_at = starts_at
|
|
3703
|
+
@venue_name = venue_name
|
|
3704
|
+
end
|
|
3705
|
+
end
|
|
3706
|
+
|
|
3707
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3708
|
+
class Arrival < ::Stripe::RequestParams
|
|
3709
|
+
class Address < ::Stripe::RequestParams
|
|
3710
|
+
# The city or town.
|
|
3711
|
+
attr_accessor :city
|
|
3712
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3713
|
+
attr_accessor :country
|
|
3714
|
+
# The postal code formatted according to country.
|
|
3715
|
+
attr_accessor :postal_code
|
|
3716
|
+
# The state, county, province, or region formatted according to country.
|
|
3717
|
+
attr_accessor :region
|
|
3718
|
+
# Line 1 of the street address.
|
|
3719
|
+
attr_accessor :street_address
|
|
3720
|
+
# Line 2 of the street address.
|
|
3721
|
+
attr_accessor :street_address2
|
|
3722
|
+
|
|
3723
|
+
def initialize(
|
|
3724
|
+
city: nil,
|
|
3725
|
+
country: nil,
|
|
3726
|
+
postal_code: nil,
|
|
3727
|
+
region: nil,
|
|
3728
|
+
street_address: nil,
|
|
3729
|
+
street_address2: nil
|
|
3730
|
+
)
|
|
3731
|
+
@city = city
|
|
3732
|
+
@country = country
|
|
3733
|
+
@postal_code = postal_code
|
|
3734
|
+
@region = region
|
|
3735
|
+
@street_address = street_address
|
|
3736
|
+
@street_address2 = street_address2
|
|
3737
|
+
end
|
|
3738
|
+
end
|
|
3739
|
+
# Address of the arrival location.
|
|
3740
|
+
attr_accessor :address
|
|
3741
|
+
# Identifier name or reference for the arrival location.
|
|
3742
|
+
attr_accessor :arrival_location
|
|
3743
|
+
|
|
3744
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3745
|
+
@address = address
|
|
3746
|
+
@arrival_location = arrival_location
|
|
3747
|
+
end
|
|
3748
|
+
end
|
|
3749
|
+
|
|
3750
|
+
class Departure < ::Stripe::RequestParams
|
|
3751
|
+
class Address < ::Stripe::RequestParams
|
|
3752
|
+
# The city or town.
|
|
3753
|
+
attr_accessor :city
|
|
3754
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3755
|
+
attr_accessor :country
|
|
3756
|
+
# The postal code formatted according to country.
|
|
3757
|
+
attr_accessor :postal_code
|
|
3758
|
+
# The state, county, province, or region formatted according to country.
|
|
3759
|
+
attr_accessor :region
|
|
3760
|
+
# Line 1 of the street address.
|
|
3761
|
+
attr_accessor :street_address
|
|
3762
|
+
# Line 2 of the street address.
|
|
3763
|
+
attr_accessor :street_address2
|
|
3764
|
+
|
|
3765
|
+
def initialize(
|
|
3766
|
+
city: nil,
|
|
3767
|
+
country: nil,
|
|
3768
|
+
postal_code: nil,
|
|
3769
|
+
region: nil,
|
|
3770
|
+
street_address: nil,
|
|
3771
|
+
street_address2: nil
|
|
3772
|
+
)
|
|
3773
|
+
@city = city
|
|
3774
|
+
@country = country
|
|
3775
|
+
@postal_code = postal_code
|
|
3776
|
+
@region = region
|
|
3777
|
+
@street_address = street_address
|
|
3778
|
+
@street_address2 = street_address2
|
|
3779
|
+
end
|
|
3780
|
+
end
|
|
3781
|
+
# Address of the departure location.
|
|
3782
|
+
attr_accessor :address
|
|
3783
|
+
# Timestamp of departure.
|
|
3784
|
+
attr_accessor :departs_at
|
|
3785
|
+
# Identifier name or reference for the origin location.
|
|
3786
|
+
attr_accessor :departure_location
|
|
3787
|
+
|
|
3788
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3789
|
+
@address = address
|
|
3790
|
+
@departs_at = departs_at
|
|
3791
|
+
@departure_location = departure_location
|
|
3792
|
+
end
|
|
3793
|
+
end
|
|
3794
|
+
|
|
3795
|
+
class Insurance < ::Stripe::RequestParams
|
|
3796
|
+
# Insurance currency.
|
|
3797
|
+
attr_accessor :currency
|
|
3798
|
+
# Name of the company providing the insurance.
|
|
3799
|
+
attr_accessor :insurance_company_name
|
|
3800
|
+
# Type of insurance.
|
|
3801
|
+
attr_accessor :insurance_type
|
|
3802
|
+
# Price of insurance in cents.
|
|
3803
|
+
attr_accessor :price
|
|
3804
|
+
|
|
3805
|
+
def initialize(
|
|
3806
|
+
currency: nil,
|
|
3807
|
+
insurance_company_name: nil,
|
|
3808
|
+
insurance_type: nil,
|
|
3809
|
+
price: nil
|
|
3810
|
+
)
|
|
3811
|
+
@currency = currency
|
|
3812
|
+
@insurance_company_name = insurance_company_name
|
|
3813
|
+
@insurance_type = insurance_type
|
|
3814
|
+
@price = price
|
|
3815
|
+
end
|
|
3816
|
+
end
|
|
3817
|
+
|
|
3818
|
+
class Passenger < ::Stripe::RequestParams
|
|
3819
|
+
# The family name of the person.
|
|
3820
|
+
attr_accessor :family_name
|
|
3821
|
+
# The given name of the person.
|
|
3822
|
+
attr_accessor :given_name
|
|
3823
|
+
|
|
3824
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3825
|
+
@family_name = family_name
|
|
3826
|
+
@given_name = given_name
|
|
3827
|
+
end
|
|
3828
|
+
end
|
|
3829
|
+
# Name of associated or partner company for the service.
|
|
3830
|
+
attr_accessor :affiliate_name
|
|
3831
|
+
# Arrival details.
|
|
3832
|
+
attr_accessor :arrival
|
|
3833
|
+
# Name of transportation company.
|
|
3834
|
+
attr_accessor :carrier_name
|
|
3835
|
+
# Currency.
|
|
3836
|
+
attr_accessor :currency
|
|
3837
|
+
# Departure details.
|
|
3838
|
+
attr_accessor :departure
|
|
3839
|
+
# List of insurances for this reservation.
|
|
3840
|
+
attr_accessor :insurances
|
|
3841
|
+
# List of passengers that this reservation applies to.
|
|
3842
|
+
attr_accessor :passengers
|
|
3843
|
+
# Price in cents.
|
|
3844
|
+
attr_accessor :price
|
|
3845
|
+
# Ticket class.
|
|
3846
|
+
attr_accessor :ticket_class
|
|
3847
|
+
|
|
3848
|
+
def initialize(
|
|
3849
|
+
affiliate_name: nil,
|
|
3850
|
+
arrival: nil,
|
|
3851
|
+
carrier_name: nil,
|
|
3852
|
+
currency: nil,
|
|
3853
|
+
departure: nil,
|
|
3854
|
+
insurances: nil,
|
|
3855
|
+
passengers: nil,
|
|
3856
|
+
price: nil,
|
|
3857
|
+
ticket_class: nil
|
|
3858
|
+
)
|
|
3859
|
+
@affiliate_name = affiliate_name
|
|
3860
|
+
@arrival = arrival
|
|
3861
|
+
@carrier_name = carrier_name
|
|
3862
|
+
@currency = currency
|
|
3863
|
+
@departure = departure
|
|
3864
|
+
@insurances = insurances
|
|
3865
|
+
@passengers = passengers
|
|
3866
|
+
@price = price
|
|
3867
|
+
@ticket_class = ticket_class
|
|
3868
|
+
end
|
|
3869
|
+
end
|
|
3870
|
+
|
|
3871
|
+
class Insurance < ::Stripe::RequestParams
|
|
3872
|
+
# Insurance currency.
|
|
3873
|
+
attr_accessor :currency
|
|
3874
|
+
# Name of the company providing the insurance.
|
|
3875
|
+
attr_accessor :insurance_company_name
|
|
3876
|
+
# Type of insurance
|
|
3877
|
+
attr_accessor :insurance_type
|
|
3878
|
+
# Price of insurance in cents.
|
|
3879
|
+
attr_accessor :price
|
|
3880
|
+
|
|
3881
|
+
def initialize(
|
|
3882
|
+
currency: nil,
|
|
3883
|
+
insurance_company_name: nil,
|
|
3884
|
+
insurance_type: nil,
|
|
3885
|
+
price: nil
|
|
3886
|
+
)
|
|
3887
|
+
@currency = currency
|
|
3888
|
+
@insurance_company_name = insurance_company_name
|
|
3889
|
+
@insurance_type = insurance_type
|
|
3890
|
+
@price = price
|
|
3891
|
+
end
|
|
3892
|
+
end
|
|
3893
|
+
|
|
3894
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3895
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3896
|
+
# The city or town.
|
|
3897
|
+
attr_accessor :city
|
|
3898
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3899
|
+
attr_accessor :country
|
|
3900
|
+
# The postal code formatted according to country.
|
|
3901
|
+
attr_accessor :postal_code
|
|
3902
|
+
# The state, county, province, or region formatted according to country.
|
|
3903
|
+
attr_accessor :region
|
|
3904
|
+
# Line 1 of the street address.
|
|
3905
|
+
attr_accessor :street_address
|
|
3906
|
+
# Line 2 of the street address.
|
|
3907
|
+
attr_accessor :street_address2
|
|
3908
|
+
|
|
3909
|
+
def initialize(
|
|
3910
|
+
city: nil,
|
|
3911
|
+
country: nil,
|
|
3912
|
+
postal_code: nil,
|
|
3913
|
+
region: nil,
|
|
3914
|
+
street_address: nil,
|
|
3915
|
+
street_address2: nil
|
|
3916
|
+
)
|
|
3917
|
+
@city = city
|
|
3918
|
+
@country = country
|
|
3919
|
+
@postal_code = postal_code
|
|
3920
|
+
@region = region
|
|
3921
|
+
@street_address = street_address
|
|
3922
|
+
@street_address2 = street_address2
|
|
3923
|
+
end
|
|
3924
|
+
end
|
|
3925
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3926
|
+
attr_accessor :line_item_references
|
|
3927
|
+
# The address of the selling or delivering merchant.
|
|
3928
|
+
attr_accessor :marketplace_seller_address
|
|
3929
|
+
# The name of the marketplace seller.
|
|
3930
|
+
attr_accessor :marketplace_seller_name
|
|
3931
|
+
# The unique identifier for the marketplace seller.
|
|
3932
|
+
attr_accessor :marketplace_seller_reference
|
|
3933
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
3934
|
+
attr_accessor :number_of_transactions
|
|
3935
|
+
# The category of the product.
|
|
3936
|
+
attr_accessor :product_category
|
|
3937
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
3938
|
+
attr_accessor :seller_last_login_at
|
|
3939
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
3940
|
+
attr_accessor :seller_rating
|
|
3941
|
+
# The date when the seller's account with the marketplace was created.
|
|
3942
|
+
attr_accessor :seller_registered_at
|
|
3943
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
3944
|
+
attr_accessor :seller_updated_at
|
|
3945
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
3946
|
+
attr_accessor :shipping_references
|
|
3947
|
+
# 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.
|
|
3948
|
+
attr_accessor :volume_of_transactions
|
|
3949
|
+
|
|
3950
|
+
def initialize(
|
|
3951
|
+
line_item_references: nil,
|
|
3952
|
+
marketplace_seller_address: nil,
|
|
3953
|
+
marketplace_seller_name: nil,
|
|
3954
|
+
marketplace_seller_reference: nil,
|
|
3955
|
+
number_of_transactions: nil,
|
|
3956
|
+
product_category: nil,
|
|
3957
|
+
seller_last_login_at: nil,
|
|
3958
|
+
seller_rating: nil,
|
|
3959
|
+
seller_registered_at: nil,
|
|
3960
|
+
seller_updated_at: nil,
|
|
3961
|
+
shipping_references: nil,
|
|
3962
|
+
volume_of_transactions: nil
|
|
3963
|
+
)
|
|
3964
|
+
@line_item_references = line_item_references
|
|
3965
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
3966
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
3967
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
3968
|
+
@number_of_transactions = number_of_transactions
|
|
3969
|
+
@product_category = product_category
|
|
3970
|
+
@seller_last_login_at = seller_last_login_at
|
|
3971
|
+
@seller_rating = seller_rating
|
|
3972
|
+
@seller_registered_at = seller_registered_at
|
|
3973
|
+
@seller_updated_at = seller_updated_at
|
|
3974
|
+
@shipping_references = shipping_references
|
|
3975
|
+
@volume_of_transactions = volume_of_transactions
|
|
3976
|
+
end
|
|
3977
|
+
end
|
|
3978
|
+
|
|
3979
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
3980
|
+
class Arrival < ::Stripe::RequestParams
|
|
3981
|
+
class Address < ::Stripe::RequestParams
|
|
3982
|
+
# The city or town.
|
|
3983
|
+
attr_accessor :city
|
|
3984
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3985
|
+
attr_accessor :country
|
|
3986
|
+
# The postal code formatted according to country.
|
|
3987
|
+
attr_accessor :postal_code
|
|
3988
|
+
# The state, county, province, or region formatted according to country.
|
|
3989
|
+
attr_accessor :region
|
|
3990
|
+
# Line 1 of the street address.
|
|
3991
|
+
attr_accessor :street_address
|
|
3992
|
+
# Line 2 of the street address.
|
|
3993
|
+
attr_accessor :street_address2
|
|
3994
|
+
|
|
3995
|
+
def initialize(
|
|
3996
|
+
city: nil,
|
|
3997
|
+
country: nil,
|
|
3998
|
+
postal_code: nil,
|
|
3999
|
+
region: nil,
|
|
4000
|
+
street_address: nil,
|
|
4001
|
+
street_address2: nil
|
|
4002
|
+
)
|
|
4003
|
+
@city = city
|
|
4004
|
+
@country = country
|
|
4005
|
+
@postal_code = postal_code
|
|
4006
|
+
@region = region
|
|
4007
|
+
@street_address = street_address
|
|
4008
|
+
@street_address2 = street_address2
|
|
4009
|
+
end
|
|
4010
|
+
end
|
|
4011
|
+
# Address of the arrival location.
|
|
4012
|
+
attr_accessor :address
|
|
4013
|
+
# Identifier name or reference for the arrival location.
|
|
4014
|
+
attr_accessor :arrival_location
|
|
4015
|
+
|
|
4016
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4017
|
+
@address = address
|
|
4018
|
+
@arrival_location = arrival_location
|
|
4019
|
+
end
|
|
4020
|
+
end
|
|
4021
|
+
|
|
4022
|
+
class Departure < ::Stripe::RequestParams
|
|
4023
|
+
class Address < ::Stripe::RequestParams
|
|
4024
|
+
# The city or town.
|
|
4025
|
+
attr_accessor :city
|
|
4026
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4027
|
+
attr_accessor :country
|
|
4028
|
+
# The postal code formatted according to country.
|
|
4029
|
+
attr_accessor :postal_code
|
|
4030
|
+
# The state, county, province, or region formatted according to country.
|
|
4031
|
+
attr_accessor :region
|
|
4032
|
+
# Line 1 of the street address.
|
|
4033
|
+
attr_accessor :street_address
|
|
4034
|
+
# Line 2 of the street address.
|
|
4035
|
+
attr_accessor :street_address2
|
|
4036
|
+
|
|
4037
|
+
def initialize(
|
|
4038
|
+
city: nil,
|
|
4039
|
+
country: nil,
|
|
4040
|
+
postal_code: nil,
|
|
4041
|
+
region: nil,
|
|
4042
|
+
street_address: nil,
|
|
4043
|
+
street_address2: nil
|
|
4044
|
+
)
|
|
4045
|
+
@city = city
|
|
4046
|
+
@country = country
|
|
4047
|
+
@postal_code = postal_code
|
|
4048
|
+
@region = region
|
|
4049
|
+
@street_address = street_address
|
|
4050
|
+
@street_address2 = street_address2
|
|
4051
|
+
end
|
|
4052
|
+
end
|
|
4053
|
+
# Address of the departure location.
|
|
4054
|
+
attr_accessor :address
|
|
4055
|
+
# Timestamp of departure.
|
|
4056
|
+
attr_accessor :departs_at
|
|
4057
|
+
# Identifier name or reference for the origin location.
|
|
4058
|
+
attr_accessor :departure_location
|
|
4059
|
+
|
|
4060
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4061
|
+
@address = address
|
|
4062
|
+
@departs_at = departs_at
|
|
4063
|
+
@departure_location = departure_location
|
|
4064
|
+
end
|
|
4065
|
+
end
|
|
4066
|
+
|
|
4067
|
+
class Insurance < ::Stripe::RequestParams
|
|
4068
|
+
# Insurance currency.
|
|
4069
|
+
attr_accessor :currency
|
|
4070
|
+
# Name of the company providing the insurance.
|
|
4071
|
+
attr_accessor :insurance_company_name
|
|
4072
|
+
# Type of insurance.
|
|
4073
|
+
attr_accessor :insurance_type
|
|
4074
|
+
# Price of insurance in cents.
|
|
4075
|
+
attr_accessor :price
|
|
4076
|
+
|
|
4077
|
+
def initialize(
|
|
4078
|
+
currency: nil,
|
|
4079
|
+
insurance_company_name: nil,
|
|
4080
|
+
insurance_type: nil,
|
|
4081
|
+
price: nil
|
|
4082
|
+
)
|
|
4083
|
+
@currency = currency
|
|
4084
|
+
@insurance_company_name = insurance_company_name
|
|
4085
|
+
@insurance_type = insurance_type
|
|
4086
|
+
@price = price
|
|
4087
|
+
end
|
|
4088
|
+
end
|
|
4089
|
+
|
|
4090
|
+
class Passenger < ::Stripe::RequestParams
|
|
4091
|
+
# The family name of the person.
|
|
4092
|
+
attr_accessor :family_name
|
|
4093
|
+
# The given name of the person.
|
|
4094
|
+
attr_accessor :given_name
|
|
4095
|
+
|
|
4096
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4097
|
+
@family_name = family_name
|
|
4098
|
+
@given_name = given_name
|
|
4099
|
+
end
|
|
4100
|
+
end
|
|
4101
|
+
# Name of associated or partner company for the service.
|
|
4102
|
+
attr_accessor :affiliate_name
|
|
4103
|
+
# Arrival details.
|
|
4104
|
+
attr_accessor :arrival
|
|
4105
|
+
# Name of transportation company.
|
|
4106
|
+
attr_accessor :carrier_name
|
|
4107
|
+
# Currency.
|
|
4108
|
+
attr_accessor :currency
|
|
4109
|
+
# Departure details.
|
|
4110
|
+
attr_accessor :departure
|
|
4111
|
+
# List of insurances for this reservation.
|
|
4112
|
+
attr_accessor :insurances
|
|
4113
|
+
# List of passengers that this reservation applies to.
|
|
4114
|
+
attr_accessor :passengers
|
|
4115
|
+
# Price in cents.
|
|
4116
|
+
attr_accessor :price
|
|
4117
|
+
# Ticket class.
|
|
4118
|
+
attr_accessor :ticket_class
|
|
4119
|
+
|
|
4120
|
+
def initialize(
|
|
4121
|
+
affiliate_name: nil,
|
|
4122
|
+
arrival: nil,
|
|
4123
|
+
carrier_name: nil,
|
|
4124
|
+
currency: nil,
|
|
4125
|
+
departure: nil,
|
|
4126
|
+
insurances: nil,
|
|
4127
|
+
passengers: nil,
|
|
4128
|
+
price: nil,
|
|
4129
|
+
ticket_class: nil
|
|
4130
|
+
)
|
|
4131
|
+
@affiliate_name = affiliate_name
|
|
4132
|
+
@arrival = arrival
|
|
4133
|
+
@carrier_name = carrier_name
|
|
4134
|
+
@currency = currency
|
|
4135
|
+
@departure = departure
|
|
4136
|
+
@insurances = insurances
|
|
4137
|
+
@passengers = passengers
|
|
4138
|
+
@price = price
|
|
4139
|
+
@ticket_class = ticket_class
|
|
4140
|
+
end
|
|
4141
|
+
end
|
|
4142
|
+
|
|
4143
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4144
|
+
class Arrival < ::Stripe::RequestParams
|
|
4145
|
+
class Address < ::Stripe::RequestParams
|
|
4146
|
+
# The city or town.
|
|
4147
|
+
attr_accessor :city
|
|
4148
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4149
|
+
attr_accessor :country
|
|
4150
|
+
# The postal code formatted according to country.
|
|
4151
|
+
attr_accessor :postal_code
|
|
4152
|
+
# The state, county, province, or region formatted according to country.
|
|
4153
|
+
attr_accessor :region
|
|
4154
|
+
# Line 1 of the street address.
|
|
4155
|
+
attr_accessor :street_address
|
|
4156
|
+
# Line 2 of the street address.
|
|
4157
|
+
attr_accessor :street_address2
|
|
4158
|
+
|
|
4159
|
+
def initialize(
|
|
4160
|
+
city: nil,
|
|
4161
|
+
country: nil,
|
|
4162
|
+
postal_code: nil,
|
|
4163
|
+
region: nil,
|
|
4164
|
+
street_address: nil,
|
|
4165
|
+
street_address2: nil
|
|
4166
|
+
)
|
|
4167
|
+
@city = city
|
|
4168
|
+
@country = country
|
|
4169
|
+
@postal_code = postal_code
|
|
4170
|
+
@region = region
|
|
4171
|
+
@street_address = street_address
|
|
4172
|
+
@street_address2 = street_address2
|
|
4173
|
+
end
|
|
4174
|
+
end
|
|
4175
|
+
# Address of the arrival location.
|
|
4176
|
+
attr_accessor :address
|
|
4177
|
+
# Identifier name or reference for the arrival location.
|
|
4178
|
+
attr_accessor :arrival_location
|
|
4179
|
+
|
|
4180
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4181
|
+
@address = address
|
|
4182
|
+
@arrival_location = arrival_location
|
|
4183
|
+
end
|
|
4184
|
+
end
|
|
4185
|
+
|
|
4186
|
+
class Departure < ::Stripe::RequestParams
|
|
4187
|
+
class Address < ::Stripe::RequestParams
|
|
4188
|
+
# The city or town.
|
|
4189
|
+
attr_accessor :city
|
|
4190
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4191
|
+
attr_accessor :country
|
|
4192
|
+
# The postal code formatted according to country.
|
|
4193
|
+
attr_accessor :postal_code
|
|
4194
|
+
# The state, county, province, or region formatted according to country.
|
|
4195
|
+
attr_accessor :region
|
|
4196
|
+
# Line 1 of the street address.
|
|
4197
|
+
attr_accessor :street_address
|
|
4198
|
+
# Line 2 of the street address.
|
|
4199
|
+
attr_accessor :street_address2
|
|
4200
|
+
|
|
4201
|
+
def initialize(
|
|
4202
|
+
city: nil,
|
|
4203
|
+
country: nil,
|
|
4204
|
+
postal_code: nil,
|
|
4205
|
+
region: nil,
|
|
4206
|
+
street_address: nil,
|
|
4207
|
+
street_address2: nil
|
|
4208
|
+
)
|
|
4209
|
+
@city = city
|
|
4210
|
+
@country = country
|
|
4211
|
+
@postal_code = postal_code
|
|
4212
|
+
@region = region
|
|
4213
|
+
@street_address = street_address
|
|
4214
|
+
@street_address2 = street_address2
|
|
4215
|
+
end
|
|
4216
|
+
end
|
|
4217
|
+
# Address of the departure location.
|
|
4218
|
+
attr_accessor :address
|
|
4219
|
+
# Timestamp of departure.
|
|
4220
|
+
attr_accessor :departs_at
|
|
4221
|
+
# Identifier name or reference for the origin location.
|
|
4222
|
+
attr_accessor :departure_location
|
|
4223
|
+
|
|
4224
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4225
|
+
@address = address
|
|
4226
|
+
@departs_at = departs_at
|
|
4227
|
+
@departure_location = departure_location
|
|
4228
|
+
end
|
|
4229
|
+
end
|
|
4230
|
+
|
|
4231
|
+
class Insurance < ::Stripe::RequestParams
|
|
4232
|
+
# Insurance currency.
|
|
4233
|
+
attr_accessor :currency
|
|
4234
|
+
# Name of the company providing the insurance.
|
|
4235
|
+
attr_accessor :insurance_company_name
|
|
4236
|
+
# Type of insurance.
|
|
4237
|
+
attr_accessor :insurance_type
|
|
4238
|
+
# Price of insurance in cents.
|
|
4239
|
+
attr_accessor :price
|
|
4240
|
+
|
|
4241
|
+
def initialize(
|
|
4242
|
+
currency: nil,
|
|
4243
|
+
insurance_company_name: nil,
|
|
4244
|
+
insurance_type: nil,
|
|
4245
|
+
price: nil
|
|
4246
|
+
)
|
|
4247
|
+
@currency = currency
|
|
4248
|
+
@insurance_company_name = insurance_company_name
|
|
4249
|
+
@insurance_type = insurance_type
|
|
4250
|
+
@price = price
|
|
4251
|
+
end
|
|
4252
|
+
end
|
|
4253
|
+
|
|
4254
|
+
class Passenger < ::Stripe::RequestParams
|
|
4255
|
+
# The family name of the person.
|
|
4256
|
+
attr_accessor :family_name
|
|
4257
|
+
# The given name of the person.
|
|
4258
|
+
attr_accessor :given_name
|
|
4259
|
+
|
|
4260
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4261
|
+
@family_name = family_name
|
|
4262
|
+
@given_name = given_name
|
|
4263
|
+
end
|
|
4264
|
+
end
|
|
4265
|
+
# Name of associated or partner company for the service.
|
|
4266
|
+
attr_accessor :affiliate_name
|
|
4267
|
+
# Arrival details.
|
|
4268
|
+
attr_accessor :arrival
|
|
4269
|
+
# Name of transportation company.
|
|
4270
|
+
attr_accessor :carrier_name
|
|
4271
|
+
# Currency.
|
|
4272
|
+
attr_accessor :currency
|
|
4273
|
+
# Departure details.
|
|
4274
|
+
attr_accessor :departure
|
|
4275
|
+
# List of insurances for this reservation.
|
|
4276
|
+
attr_accessor :insurances
|
|
4277
|
+
# List of passengers that this reservation applies to.
|
|
4278
|
+
attr_accessor :passengers
|
|
4279
|
+
# Price in cents.
|
|
4280
|
+
attr_accessor :price
|
|
4281
|
+
# Ticket class.
|
|
4282
|
+
attr_accessor :ticket_class
|
|
4283
|
+
|
|
4284
|
+
def initialize(
|
|
4285
|
+
affiliate_name: nil,
|
|
4286
|
+
arrival: nil,
|
|
4287
|
+
carrier_name: nil,
|
|
4288
|
+
currency: nil,
|
|
4289
|
+
departure: nil,
|
|
4290
|
+
insurances: nil,
|
|
4291
|
+
passengers: nil,
|
|
4292
|
+
price: nil,
|
|
4293
|
+
ticket_class: nil
|
|
4294
|
+
)
|
|
4295
|
+
@affiliate_name = affiliate_name
|
|
4296
|
+
@arrival = arrival
|
|
4297
|
+
@carrier_name = carrier_name
|
|
4298
|
+
@currency = currency
|
|
4299
|
+
@departure = departure
|
|
4300
|
+
@insurances = insurances
|
|
4301
|
+
@passengers = passengers
|
|
4302
|
+
@price = price
|
|
4303
|
+
@ticket_class = ticket_class
|
|
4304
|
+
end
|
|
4305
|
+
end
|
|
4306
|
+
|
|
4307
|
+
class Voucher < ::Stripe::RequestParams
|
|
4308
|
+
# Name of associated or partner company for this voucher.
|
|
4309
|
+
attr_accessor :affiliate_name
|
|
4310
|
+
# The voucher validity end time.
|
|
4311
|
+
attr_accessor :ends_at
|
|
4312
|
+
# The voucher validity start time.
|
|
4313
|
+
attr_accessor :starts_at
|
|
4314
|
+
# The issuer or provider of this voucher.
|
|
4315
|
+
attr_accessor :voucher_company
|
|
4316
|
+
# The name or reference to identify the voucher.
|
|
4317
|
+
attr_accessor :voucher_name
|
|
4318
|
+
# The type of this voucher.
|
|
4319
|
+
attr_accessor :voucher_type
|
|
4320
|
+
|
|
4321
|
+
def initialize(
|
|
4322
|
+
affiliate_name: nil,
|
|
4323
|
+
ends_at: nil,
|
|
4324
|
+
starts_at: nil,
|
|
4325
|
+
voucher_company: nil,
|
|
4326
|
+
voucher_name: nil,
|
|
4327
|
+
voucher_type: nil
|
|
4328
|
+
)
|
|
4329
|
+
@affiliate_name = affiliate_name
|
|
4330
|
+
@ends_at = ends_at
|
|
4331
|
+
@starts_at = starts_at
|
|
4332
|
+
@voucher_company = voucher_company
|
|
4333
|
+
@voucher_name = voucher_name
|
|
4334
|
+
@voucher_type = voucher_type
|
|
4335
|
+
end
|
|
4336
|
+
end
|
|
4337
|
+
# Supplementary bus reservation details.
|
|
4338
|
+
attr_accessor :bus_reservation_details
|
|
4339
|
+
# Supplementary event reservation details.
|
|
4340
|
+
attr_accessor :event_reservation_details
|
|
4341
|
+
# Supplementary ferry reservation details.
|
|
4342
|
+
attr_accessor :ferry_reservation_details
|
|
4343
|
+
# Supplementary insurance details.
|
|
4344
|
+
attr_accessor :insurances
|
|
4345
|
+
# Supplementary marketplace seller details.
|
|
4346
|
+
attr_accessor :marketplace_sellers
|
|
4347
|
+
# Supplementary round trip reservation details.
|
|
4348
|
+
attr_accessor :round_trip_reservation_details
|
|
4349
|
+
# Supplementary train reservation details.
|
|
4350
|
+
attr_accessor :train_reservation_details
|
|
4351
|
+
# Voucher details, such as a gift card or discount code.
|
|
4352
|
+
attr_accessor :vouchers
|
|
4353
|
+
|
|
4354
|
+
def initialize(
|
|
4355
|
+
bus_reservation_details: nil,
|
|
4356
|
+
event_reservation_details: nil,
|
|
4357
|
+
ferry_reservation_details: nil,
|
|
4358
|
+
insurances: nil,
|
|
4359
|
+
marketplace_sellers: nil,
|
|
4360
|
+
round_trip_reservation_details: nil,
|
|
4361
|
+
train_reservation_details: nil,
|
|
4362
|
+
vouchers: nil
|
|
4363
|
+
)
|
|
4364
|
+
@bus_reservation_details = bus_reservation_details
|
|
4365
|
+
@event_reservation_details = event_reservation_details
|
|
4366
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
4367
|
+
@insurances = insurances
|
|
4368
|
+
@marketplace_sellers = marketplace_sellers
|
|
4369
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
4370
|
+
@train_reservation_details = train_reservation_details
|
|
4371
|
+
@vouchers = vouchers
|
|
4372
|
+
end
|
|
4373
|
+
end
|
|
1583
4374
|
# Controls when the funds are captured from the customer's account.
|
|
1584
4375
|
#
|
|
1585
4376
|
# 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.
|
|
@@ -1602,19 +4393,23 @@ module Stripe
|
|
|
1602
4393
|
attr_accessor :setup_future_usage
|
|
1603
4394
|
# Subscription details if setting up or charging a subscription.
|
|
1604
4395
|
attr_accessor :subscriptions
|
|
4396
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4397
|
+
attr_accessor :supplementary_purchase_data
|
|
1605
4398
|
|
|
1606
4399
|
def initialize(
|
|
1607
4400
|
capture_method: nil,
|
|
1608
4401
|
on_demand: nil,
|
|
1609
4402
|
preferred_locale: nil,
|
|
1610
4403
|
setup_future_usage: nil,
|
|
1611
|
-
subscriptions: nil
|
|
4404
|
+
subscriptions: nil,
|
|
4405
|
+
supplementary_purchase_data: nil
|
|
1612
4406
|
)
|
|
1613
4407
|
@capture_method = capture_method
|
|
1614
4408
|
@on_demand = on_demand
|
|
1615
4409
|
@preferred_locale = preferred_locale
|
|
1616
4410
|
@setup_future_usage = setup_future_usage
|
|
1617
4411
|
@subscriptions = subscriptions
|
|
4412
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1618
4413
|
end
|
|
1619
4414
|
end
|
|
1620
4415
|
|
|
@@ -1875,12 +4670,65 @@ module Stripe
|
|
|
1875
4670
|
end
|
|
1876
4671
|
|
|
1877
4672
|
class Paypal < ::Stripe::RequestParams
|
|
4673
|
+
class LineItem < ::Stripe::RequestParams
|
|
4674
|
+
class Tax < ::Stripe::RequestParams
|
|
4675
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4676
|
+
attr_accessor :amount
|
|
4677
|
+
# The tax behavior for the line item.
|
|
4678
|
+
attr_accessor :behavior
|
|
4679
|
+
|
|
4680
|
+
def initialize(amount: nil, behavior: nil)
|
|
4681
|
+
@amount = amount
|
|
4682
|
+
@behavior = behavior
|
|
4683
|
+
end
|
|
4684
|
+
end
|
|
4685
|
+
# Type of the line item.
|
|
4686
|
+
attr_accessor :category
|
|
4687
|
+
# Description of the line item.
|
|
4688
|
+
attr_accessor :description
|
|
4689
|
+
# Descriptive name of the line item.
|
|
4690
|
+
attr_accessor :name
|
|
4691
|
+
# Quantity of the line item. Must be a positive number.
|
|
4692
|
+
attr_accessor :quantity
|
|
4693
|
+
# Client facing stock keeping unit, article number or similar.
|
|
4694
|
+
attr_accessor :sku
|
|
4695
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
4696
|
+
attr_accessor :sold_by
|
|
4697
|
+
# The tax information for the line item.
|
|
4698
|
+
attr_accessor :tax
|
|
4699
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4700
|
+
attr_accessor :unit_amount
|
|
4701
|
+
|
|
4702
|
+
def initialize(
|
|
4703
|
+
category: nil,
|
|
4704
|
+
description: nil,
|
|
4705
|
+
name: nil,
|
|
4706
|
+
quantity: nil,
|
|
4707
|
+
sku: nil,
|
|
4708
|
+
sold_by: nil,
|
|
4709
|
+
tax: nil,
|
|
4710
|
+
unit_amount: nil
|
|
4711
|
+
)
|
|
4712
|
+
@category = category
|
|
4713
|
+
@description = description
|
|
4714
|
+
@name = name
|
|
4715
|
+
@quantity = quantity
|
|
4716
|
+
@sku = sku
|
|
4717
|
+
@sold_by = sold_by
|
|
4718
|
+
@tax = tax
|
|
4719
|
+
@unit_amount = unit_amount
|
|
4720
|
+
end
|
|
4721
|
+
end
|
|
1878
4722
|
# Controls when the funds will be captured from the customer's account.
|
|
1879
4723
|
attr_accessor :capture_method
|
|
4724
|
+
# The line items purchased by the customer.
|
|
4725
|
+
attr_accessor :line_items
|
|
1880
4726
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1881
4727
|
attr_accessor :preferred_locale
|
|
1882
4728
|
# 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.
|
|
1883
4729
|
attr_accessor :reference
|
|
4730
|
+
# 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.
|
|
4731
|
+
attr_accessor :reference_id
|
|
1884
4732
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1885
4733
|
attr_accessor :risk_correlation_id
|
|
1886
4734
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1893,19 +4741,40 @@ module Stripe
|
|
|
1893
4741
|
#
|
|
1894
4742
|
# 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`.
|
|
1895
4743
|
attr_accessor :setup_future_usage
|
|
4744
|
+
# 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.
|
|
4745
|
+
attr_accessor :subsellers
|
|
1896
4746
|
|
|
1897
4747
|
def initialize(
|
|
1898
4748
|
capture_method: nil,
|
|
4749
|
+
line_items: nil,
|
|
1899
4750
|
preferred_locale: nil,
|
|
1900
4751
|
reference: nil,
|
|
4752
|
+
reference_id: nil,
|
|
1901
4753
|
risk_correlation_id: nil,
|
|
1902
|
-
setup_future_usage: nil
|
|
4754
|
+
setup_future_usage: nil,
|
|
4755
|
+
subsellers: nil
|
|
1903
4756
|
)
|
|
1904
4757
|
@capture_method = capture_method
|
|
4758
|
+
@line_items = line_items
|
|
1905
4759
|
@preferred_locale = preferred_locale
|
|
1906
4760
|
@reference = reference
|
|
4761
|
+
@reference_id = reference_id
|
|
1907
4762
|
@risk_correlation_id = risk_correlation_id
|
|
1908
4763
|
@setup_future_usage = setup_future_usage
|
|
4764
|
+
@subsellers = subsellers
|
|
4765
|
+
end
|
|
4766
|
+
end
|
|
4767
|
+
|
|
4768
|
+
class Paypay < ::Stripe::RequestParams
|
|
4769
|
+
# Controls when the funds are captured from the customer's account.
|
|
4770
|
+
#
|
|
4771
|
+
# 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.
|
|
4772
|
+
#
|
|
4773
|
+
# 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.
|
|
4774
|
+
attr_accessor :capture_method
|
|
4775
|
+
|
|
4776
|
+
def initialize(capture_method: nil)
|
|
4777
|
+
@capture_method = capture_method
|
|
1909
4778
|
end
|
|
1910
4779
|
end
|
|
1911
4780
|
|
|
@@ -1960,12 +4829,52 @@ module Stripe
|
|
|
1960
4829
|
end
|
|
1961
4830
|
|
|
1962
4831
|
class Pix < ::Stripe::RequestParams
|
|
4832
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
4833
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
4834
|
+
attr_accessor :amount
|
|
4835
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
4836
|
+
attr_accessor :amount_includes_iof
|
|
4837
|
+
# Type of amount. Defaults to `maximum`.
|
|
4838
|
+
attr_accessor :amount_type
|
|
4839
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
4840
|
+
attr_accessor :currency
|
|
4841
|
+
# 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.
|
|
4842
|
+
attr_accessor :end_date
|
|
4843
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
4844
|
+
attr_accessor :payment_schedule
|
|
4845
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
4846
|
+
attr_accessor :reference
|
|
4847
|
+
# 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.
|
|
4848
|
+
attr_accessor :start_date
|
|
4849
|
+
|
|
4850
|
+
def initialize(
|
|
4851
|
+
amount: nil,
|
|
4852
|
+
amount_includes_iof: nil,
|
|
4853
|
+
amount_type: nil,
|
|
4854
|
+
currency: nil,
|
|
4855
|
+
end_date: nil,
|
|
4856
|
+
payment_schedule: nil,
|
|
4857
|
+
reference: nil,
|
|
4858
|
+
start_date: nil
|
|
4859
|
+
)
|
|
4860
|
+
@amount = amount
|
|
4861
|
+
@amount_includes_iof = amount_includes_iof
|
|
4862
|
+
@amount_type = amount_type
|
|
4863
|
+
@currency = currency
|
|
4864
|
+
@end_date = end_date
|
|
4865
|
+
@payment_schedule = payment_schedule
|
|
4866
|
+
@reference = reference
|
|
4867
|
+
@start_date = start_date
|
|
4868
|
+
end
|
|
4869
|
+
end
|
|
1963
4870
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
1964
4871
|
attr_accessor :amount_includes_iof
|
|
1965
4872
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
1966
4873
|
attr_accessor :expires_after_seconds
|
|
1967
4874
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
|
1968
4875
|
attr_accessor :expires_at
|
|
4876
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
4877
|
+
attr_accessor :mandate_options
|
|
1969
4878
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1970
4879
|
#
|
|
1971
4880
|
# 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.
|
|
@@ -1981,11 +4890,13 @@ module Stripe
|
|
|
1981
4890
|
amount_includes_iof: nil,
|
|
1982
4891
|
expires_after_seconds: nil,
|
|
1983
4892
|
expires_at: nil,
|
|
4893
|
+
mandate_options: nil,
|
|
1984
4894
|
setup_future_usage: nil
|
|
1985
4895
|
)
|
|
1986
4896
|
@amount_includes_iof = amount_includes_iof
|
|
1987
4897
|
@expires_after_seconds = expires_after_seconds
|
|
1988
4898
|
@expires_at = expires_at
|
|
4899
|
+
@mandate_options = mandate_options
|
|
1989
4900
|
@setup_future_usage = setup_future_usage
|
|
1990
4901
|
end
|
|
1991
4902
|
end
|
|
@@ -2007,6 +4918,25 @@ module Stripe
|
|
|
2007
4918
|
end
|
|
2008
4919
|
end
|
|
2009
4920
|
|
|
4921
|
+
class Qris < ::Stripe::RequestParams
|
|
4922
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4923
|
+
#
|
|
4924
|
+
# 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.
|
|
4925
|
+
#
|
|
4926
|
+
# 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.
|
|
4927
|
+
#
|
|
4928
|
+
# 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).
|
|
4929
|
+
#
|
|
4930
|
+
# 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`.
|
|
4931
|
+
attr_accessor :setup_future_usage
|
|
4932
|
+
|
|
4933
|
+
def initialize(setup_future_usage: nil)
|
|
4934
|
+
@setup_future_usage = setup_future_usage
|
|
4935
|
+
end
|
|
4936
|
+
end
|
|
4937
|
+
|
|
4938
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
4939
|
+
|
|
2010
4940
|
class RevolutPay < ::Stripe::RequestParams
|
|
2011
4941
|
# Controls when the funds are captured from the customer's account.
|
|
2012
4942
|
#
|
|
@@ -2086,6 +5016,23 @@ module Stripe
|
|
|
2086
5016
|
end
|
|
2087
5017
|
end
|
|
2088
5018
|
|
|
5019
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5020
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5021
|
+
#
|
|
5022
|
+
# 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.
|
|
5023
|
+
#
|
|
5024
|
+
# 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.
|
|
5025
|
+
#
|
|
5026
|
+
# 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).
|
|
5027
|
+
#
|
|
5028
|
+
# 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`.
|
|
5029
|
+
attr_accessor :setup_future_usage
|
|
5030
|
+
|
|
5031
|
+
def initialize(setup_future_usage: nil)
|
|
5032
|
+
@setup_future_usage = setup_future_usage
|
|
5033
|
+
end
|
|
5034
|
+
end
|
|
5035
|
+
|
|
2089
5036
|
class Sofort < ::Stripe::RequestParams
|
|
2090
5037
|
# Language shown to the payer on redirect.
|
|
2091
5038
|
attr_accessor :preferred_language
|
|
@@ -2106,6 +5053,23 @@ module Stripe
|
|
|
2106
5053
|
end
|
|
2107
5054
|
end
|
|
2108
5055
|
|
|
5056
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5057
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5058
|
+
#
|
|
5059
|
+
# 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.
|
|
5060
|
+
#
|
|
5061
|
+
# 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.
|
|
5062
|
+
#
|
|
5063
|
+
# 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).
|
|
5064
|
+
#
|
|
5065
|
+
# 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`.
|
|
5066
|
+
attr_accessor :setup_future_usage
|
|
5067
|
+
|
|
5068
|
+
def initialize(setup_future_usage: nil)
|
|
5069
|
+
@setup_future_usage = setup_future_usage
|
|
5070
|
+
end
|
|
5071
|
+
end
|
|
5072
|
+
|
|
2109
5073
|
class Swish < ::Stripe::RequestParams
|
|
2110
5074
|
# A reference for this payment to be displayed in the Swish app.
|
|
2111
5075
|
attr_accessor :reference
|
|
@@ -2148,13 +5112,27 @@ module Stripe
|
|
|
2148
5112
|
class Filters < ::Stripe::RequestParams
|
|
2149
5113
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2150
5114
|
attr_accessor :account_subcategories
|
|
5115
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5116
|
+
attr_accessor :institution
|
|
2151
5117
|
|
|
2152
|
-
def initialize(account_subcategories: nil)
|
|
5118
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2153
5119
|
@account_subcategories = account_subcategories
|
|
5120
|
+
@institution = institution
|
|
5121
|
+
end
|
|
5122
|
+
end
|
|
5123
|
+
|
|
5124
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5125
|
+
# Settings for configuring manual entry of account details.
|
|
5126
|
+
attr_accessor :mode
|
|
5127
|
+
|
|
5128
|
+
def initialize(mode: nil)
|
|
5129
|
+
@mode = mode
|
|
2154
5130
|
end
|
|
2155
5131
|
end
|
|
2156
5132
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2157
5133
|
attr_accessor :filters
|
|
5134
|
+
# Customize manual entry behavior
|
|
5135
|
+
attr_accessor :manual_entry
|
|
2158
5136
|
# 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`.
|
|
2159
5137
|
attr_accessor :permissions
|
|
2160
5138
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2162,8 +5140,15 @@ module Stripe
|
|
|
2162
5140
|
# 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.
|
|
2163
5141
|
attr_accessor :return_url
|
|
2164
5142
|
|
|
2165
|
-
def initialize(
|
|
5143
|
+
def initialize(
|
|
5144
|
+
filters: nil,
|
|
5145
|
+
manual_entry: nil,
|
|
5146
|
+
permissions: nil,
|
|
5147
|
+
prefetch: nil,
|
|
5148
|
+
return_url: nil
|
|
5149
|
+
)
|
|
2166
5150
|
@filters = filters
|
|
5151
|
+
@manual_entry = manual_entry
|
|
2167
5152
|
@permissions = permissions
|
|
2168
5153
|
@prefetch = prefetch
|
|
2169
5154
|
@return_url = return_url
|
|
@@ -2308,8 +5293,12 @@ module Stripe
|
|
|
2308
5293
|
attr_accessor :fpx
|
|
2309
5294
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2310
5295
|
attr_accessor :giropay
|
|
5296
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5297
|
+
attr_accessor :gopay
|
|
2311
5298
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2312
5299
|
attr_accessor :grabpay
|
|
5300
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5301
|
+
attr_accessor :id_bank_transfer
|
|
2313
5302
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2314
5303
|
attr_accessor :ideal
|
|
2315
5304
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2346,12 +5335,18 @@ module Stripe
|
|
|
2346
5335
|
attr_accessor :paynow
|
|
2347
5336
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2348
5337
|
attr_accessor :paypal
|
|
5338
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5339
|
+
attr_accessor :paypay
|
|
2349
5340
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2350
5341
|
attr_accessor :payto
|
|
2351
5342
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2352
5343
|
attr_accessor :pix
|
|
2353
5344
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2354
5345
|
attr_accessor :promptpay
|
|
5346
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5347
|
+
attr_accessor :qris
|
|
5348
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5349
|
+
attr_accessor :rechnung
|
|
2355
5350
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2356
5351
|
attr_accessor :revolut_pay
|
|
2357
5352
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2360,8 +5355,12 @@ module Stripe
|
|
|
2360
5355
|
attr_accessor :satispay
|
|
2361
5356
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2362
5357
|
attr_accessor :sepa_debit
|
|
5358
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5359
|
+
attr_accessor :shopeepay
|
|
2363
5360
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2364
5361
|
attr_accessor :sofort
|
|
5362
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5363
|
+
attr_accessor :stripe_balance
|
|
2365
5364
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2366
5365
|
attr_accessor :swish
|
|
2367
5366
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2394,7 +5393,9 @@ module Stripe
|
|
|
2394
5393
|
eps: nil,
|
|
2395
5394
|
fpx: nil,
|
|
2396
5395
|
giropay: nil,
|
|
5396
|
+
gopay: nil,
|
|
2397
5397
|
grabpay: nil,
|
|
5398
|
+
id_bank_transfer: nil,
|
|
2398
5399
|
ideal: nil,
|
|
2399
5400
|
interac_present: nil,
|
|
2400
5401
|
kakao_pay: nil,
|
|
@@ -2413,14 +5414,19 @@ module Stripe
|
|
|
2413
5414
|
payco: nil,
|
|
2414
5415
|
paynow: nil,
|
|
2415
5416
|
paypal: nil,
|
|
5417
|
+
paypay: nil,
|
|
2416
5418
|
payto: nil,
|
|
2417
5419
|
pix: nil,
|
|
2418
5420
|
promptpay: nil,
|
|
5421
|
+
qris: nil,
|
|
5422
|
+
rechnung: nil,
|
|
2419
5423
|
revolut_pay: nil,
|
|
2420
5424
|
samsung_pay: nil,
|
|
2421
5425
|
satispay: nil,
|
|
2422
5426
|
sepa_debit: nil,
|
|
5427
|
+
shopeepay: nil,
|
|
2423
5428
|
sofort: nil,
|
|
5429
|
+
stripe_balance: nil,
|
|
2424
5430
|
swish: nil,
|
|
2425
5431
|
twint: nil,
|
|
2426
5432
|
us_bank_account: nil,
|
|
@@ -2447,7 +5453,9 @@ module Stripe
|
|
|
2447
5453
|
@eps = eps
|
|
2448
5454
|
@fpx = fpx
|
|
2449
5455
|
@giropay = giropay
|
|
5456
|
+
@gopay = gopay
|
|
2450
5457
|
@grabpay = grabpay
|
|
5458
|
+
@id_bank_transfer = id_bank_transfer
|
|
2451
5459
|
@ideal = ideal
|
|
2452
5460
|
@interac_present = interac_present
|
|
2453
5461
|
@kakao_pay = kakao_pay
|
|
@@ -2466,14 +5474,19 @@ module Stripe
|
|
|
2466
5474
|
@payco = payco
|
|
2467
5475
|
@paynow = paynow
|
|
2468
5476
|
@paypal = paypal
|
|
5477
|
+
@paypay = paypay
|
|
2469
5478
|
@payto = payto
|
|
2470
5479
|
@pix = pix
|
|
2471
5480
|
@promptpay = promptpay
|
|
5481
|
+
@qris = qris
|
|
5482
|
+
@rechnung = rechnung
|
|
2472
5483
|
@revolut_pay = revolut_pay
|
|
2473
5484
|
@samsung_pay = samsung_pay
|
|
2474
5485
|
@satispay = satispay
|
|
2475
5486
|
@sepa_debit = sepa_debit
|
|
5487
|
+
@shopeepay = shopeepay
|
|
2476
5488
|
@sofort = sofort
|
|
5489
|
+
@stripe_balance = stripe_balance
|
|
2477
5490
|
@swish = swish
|
|
2478
5491
|
@twint = twint
|
|
2479
5492
|
@us_bank_account = us_bank_account
|
|
@@ -2541,6 +5554,8 @@ module Stripe
|
|
|
2541
5554
|
@amount = amount
|
|
2542
5555
|
end
|
|
2543
5556
|
end
|
|
5557
|
+
# Allocated Funds configuration for this PaymentIntent.
|
|
5558
|
+
attr_accessor :allocated_funds
|
|
2544
5559
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
2545
5560
|
attr_accessor :amount
|
|
2546
5561
|
# Provides industry-specific information about the amount.
|
|
@@ -2569,13 +5584,17 @@ module Stripe
|
|
|
2569
5584
|
attr_accessor :excluded_payment_method_types
|
|
2570
5585
|
# Specifies which fields in the response should be expanded.
|
|
2571
5586
|
attr_accessor :expand
|
|
5587
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5588
|
+
attr_accessor :fx_quote
|
|
2572
5589
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2573
5590
|
attr_accessor :hooks
|
|
5591
|
+
# This hash contains details about the Mandate to create.
|
|
5592
|
+
attr_accessor :mandate_data
|
|
2574
5593
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2575
5594
|
attr_accessor :metadata
|
|
2576
5595
|
# Provides industry-specific information about the charge.
|
|
2577
5596
|
attr_accessor :payment_details
|
|
2578
|
-
#
|
|
5597
|
+
# Attribute for param field payment_method
|
|
2579
5598
|
attr_accessor :payment_method
|
|
2580
5599
|
# The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
|
|
2581
5600
|
attr_accessor :payment_method_configuration
|
|
@@ -2613,6 +5632,7 @@ module Stripe
|
|
|
2613
5632
|
attr_accessor :transfer_group
|
|
2614
5633
|
|
|
2615
5634
|
def initialize(
|
|
5635
|
+
allocated_funds: nil,
|
|
2616
5636
|
amount: nil,
|
|
2617
5637
|
amount_details: nil,
|
|
2618
5638
|
application_fee_amount: nil,
|
|
@@ -2623,7 +5643,9 @@ module Stripe
|
|
|
2623
5643
|
description: nil,
|
|
2624
5644
|
excluded_payment_method_types: nil,
|
|
2625
5645
|
expand: nil,
|
|
5646
|
+
fx_quote: nil,
|
|
2626
5647
|
hooks: nil,
|
|
5648
|
+
mandate_data: nil,
|
|
2627
5649
|
metadata: nil,
|
|
2628
5650
|
payment_details: nil,
|
|
2629
5651
|
payment_method: nil,
|
|
@@ -2639,6 +5661,7 @@ module Stripe
|
|
|
2639
5661
|
transfer_data: nil,
|
|
2640
5662
|
transfer_group: nil
|
|
2641
5663
|
)
|
|
5664
|
+
@allocated_funds = allocated_funds
|
|
2642
5665
|
@amount = amount
|
|
2643
5666
|
@amount_details = amount_details
|
|
2644
5667
|
@application_fee_amount = application_fee_amount
|
|
@@ -2649,7 +5672,9 @@ module Stripe
|
|
|
2649
5672
|
@description = description
|
|
2650
5673
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2651
5674
|
@expand = expand
|
|
5675
|
+
@fx_quote = fx_quote
|
|
2652
5676
|
@hooks = hooks
|
|
5677
|
+
@mandate_data = mandate_data
|
|
2653
5678
|
@metadata = metadata
|
|
2654
5679
|
@payment_details = payment_details
|
|
2655
5680
|
@payment_method = payment_method
|