stripe 18.0.0 → 18.1.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 +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +1050 -0
- data/lib/stripe/events/v1_account_updated_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
- data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
- data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
- data/lib/stripe/events/v1_customer_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v1_file_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payout_created_event.rb +44 -0
- data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
- data/lib/stripe/events/v1_person_created_event.rb +44 -0
- data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_person_updated_event.rb +44 -0
- data/lib/stripe/events/v1_plan_created_event.rb +44 -0
- data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v1_price_created_event.rb +44 -0
- data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_price_updated_event.rb +44 -0
- data/lib/stripe/events/v1_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_product_updated_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
- data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
- data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_quote_created_event.rb +44 -0
- data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
- data/lib/stripe/events/v1_refund_created_event.rb +44 -0
- data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
- data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_review_closed_event.rb +44 -0
- data/lib/stripe/events/v1_review_opened_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
- data/lib/stripe/events/v1_source_failed_event.rb +44 -0
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
- data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_topup_created_event.rb +44 -0
- data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_updated_event.rb +44 -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 +66 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -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 +66 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -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_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_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_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -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_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 +84 -0
- data/lib/stripe/params/account_create_params.rb +349 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_person_create_params.rb +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +311 -0
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- 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/billing_portal/session_create_params.rb +4 -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 +273 -4
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +36 -2
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -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/account_list_params.rb +4 -1
- 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 +34 -2
- 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/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +909 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +8 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- 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 +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3306 -238
- data/lib/stripe/params/payment_intent_create_params.rb +3160 -84
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3192 -85
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_list_params.rb +8 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -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/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +1013 -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 +8 -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 +1021 -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 +254 -3
- data/lib/stripe/params/setup_intent_create_params.rb +260 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +261 -4
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +597 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +229 -7
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +225 -7
- data/lib/stripe/params/subscription_update_params.rb +238 -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/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- 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 +97 -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 +355 -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 +254 -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_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2943 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2975 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- 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 +21 -21
- 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/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/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 +20 -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 +50 -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 +102 -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 +67 -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 +81 -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 +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -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/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/test_helpers/financial_address_credit_params.rb +23 -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 +254 -0
- data/lib/stripe/resources/account.rb +184 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -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 +86 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +60 -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/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +183 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +20 -1
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +255 -1
- data/lib/stripe/resources/checkout/session.rb +246 -4
- data/lib/stripe/resources/confirmation_token.rb +173 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +38 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +420 -0
- data/lib/stripe/resources/discount.rb +4 -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 +27 -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 +67 -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/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +168 -1
- data/lib/stripe/resources/invoice_item.rb +110 -2
- data/lib/stripe/resources/invoice_line_item.rb +147 -1
- 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 +68 -1
- data/lib/stripe/resources/mandate.rb +71 -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 +203 -1
- data/lib/stripe/resources/payment_intent.rb +793 -4
- data/lib/stripe/resources/payment_method.rb +195 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +203 -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/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +918 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1166 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +906 -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 +63 -0
- data/lib/stripe/resources/setup_intent.rb +172 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +335 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +372 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -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 +395 -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/meter_event.rb +1 -2
- 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 +244 -0
- data/lib/stripe/resources/v2/core/account.rb +4967 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +4 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -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 +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +140 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -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.rb +393 -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/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/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_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +10 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +5 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -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 +73 -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 +63 -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 +33 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -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/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 +5 -1
- data/lib/stripe/services.rb +88 -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 +178406 -88690
- metadata +738 -3
|
@@ -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
|
|
@@ -199,21 +208,1699 @@ module Stripe
|
|
|
199
208
|
end
|
|
200
209
|
end
|
|
201
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
|
+
|
|
202
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
1561
|
+
end
|
|
1562
|
+
end
|
|
1563
|
+
|
|
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.
|
|
1577
|
+
attr_accessor :state
|
|
1578
|
+
|
|
1579
|
+
def initialize(
|
|
1580
|
+
city: nil,
|
|
1581
|
+
country: nil,
|
|
1582
|
+
line1: nil,
|
|
1583
|
+
line2: nil,
|
|
1584
|
+
postal_code: nil,
|
|
1585
|
+
state: nil
|
|
1586
|
+
)
|
|
1587
|
+
@city = city
|
|
1588
|
+
@country = country
|
|
1589
|
+
@line1 = line1
|
|
1590
|
+
@line2 = line2
|
|
1591
|
+
@postal_code = postal_code
|
|
1592
|
+
@state = state
|
|
1593
|
+
end
|
|
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
|
|
1611
|
+
|
|
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
|
|
1632
|
+
|
|
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
|
|
1666
|
+
end
|
|
1667
|
+
end
|
|
1668
|
+
|
|
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
|
|
1679
|
+
end
|
|
1680
|
+
|
|
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
|
|
1720
|
+
|
|
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
|
|
1737
|
+
end
|
|
1738
|
+
end
|
|
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
|
|
1767
|
+
|
|
1768
|
+
def initialize(
|
|
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
|
|
1783
|
+
)
|
|
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
|
|
1798
|
+
end
|
|
1799
|
+
end
|
|
1800
|
+
|
|
1801
|
+
class Subscription < ::Stripe::RequestParams
|
|
1802
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1803
|
+
# The name of the affiliate that originated the purchase.
|
|
1804
|
+
attr_accessor :name
|
|
1805
|
+
|
|
1806
|
+
def initialize(name: nil)
|
|
1807
|
+
@name = name
|
|
1808
|
+
end
|
|
1809
|
+
end
|
|
1810
|
+
|
|
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
|
|
1816
|
+
|
|
1817
|
+
def initialize(count: nil, interval: nil)
|
|
1818
|
+
@count = count
|
|
1819
|
+
@interval = interval
|
|
1820
|
+
end
|
|
1821
|
+
end
|
|
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
|
|
1834
|
+
|
|
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
|
|
1849
|
+
end
|
|
1850
|
+
end
|
|
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,8 +2150,26 @@ 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
|
|
2154
|
+
|
|
2155
|
+
class Payto < ::Stripe::RequestParams
|
|
2156
|
+
# The account number for the bank account.
|
|
2157
|
+
attr_accessor :account_number
|
|
2158
|
+
# Bank-State-Branch number of the bank account.
|
|
2159
|
+
attr_accessor :bsb_number
|
|
2160
|
+
# The PayID alias for the bank account.
|
|
2161
|
+
attr_accessor :pay_id
|
|
2162
|
+
|
|
2163
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
|
2164
|
+
@account_number = account_number
|
|
2165
|
+
@bsb_number = bsb_number
|
|
2166
|
+
@pay_id = pay_id
|
|
2167
|
+
end
|
|
2168
|
+
end
|
|
2169
|
+
|
|
456
2170
|
class Pix < ::Stripe::RequestParams; end
|
|
457
2171
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2172
|
+
class Qris < ::Stripe::RequestParams; end
|
|
458
2173
|
|
|
459
2174
|
class RadarOptions < ::Stripe::RequestParams
|
|
460
2175
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -465,6 +2180,29 @@ module Stripe
|
|
|
465
2180
|
end
|
|
466
2181
|
end
|
|
467
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
|
+
|
|
468
2206
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
469
2207
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
470
2208
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -478,6 +2216,8 @@ module Stripe
|
|
|
478
2216
|
end
|
|
479
2217
|
end
|
|
480
2218
|
|
|
2219
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2220
|
+
|
|
481
2221
|
class Sofort < ::Stripe::RequestParams
|
|
482
2222
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
483
2223
|
attr_accessor :country
|
|
@@ -487,6 +2227,18 @@ module Stripe
|
|
|
487
2227
|
end
|
|
488
2228
|
end
|
|
489
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
|
+
|
|
490
2242
|
class Swish < ::Stripe::RequestParams; end
|
|
491
2243
|
class Twint < ::Stripe::RequestParams; end
|
|
492
2244
|
|
|
@@ -559,8 +2311,12 @@ module Stripe
|
|
|
559
2311
|
attr_accessor :fpx
|
|
560
2312
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
561
2313
|
attr_accessor :giropay
|
|
2314
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2315
|
+
attr_accessor :gopay
|
|
562
2316
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
563
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
|
|
564
2320
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
565
2321
|
attr_accessor :ideal
|
|
566
2322
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -599,12 +2355,20 @@ module Stripe
|
|
|
599
2355
|
attr_accessor :paynow
|
|
600
2356
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
601
2357
|
attr_accessor :paypal
|
|
2358
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2359
|
+
attr_accessor :paypay
|
|
2360
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
2361
|
+
attr_accessor :payto
|
|
602
2362
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
603
2363
|
attr_accessor :pix
|
|
604
2364
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
605
2365
|
attr_accessor :promptpay
|
|
2366
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2367
|
+
attr_accessor :qris
|
|
606
2368
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
607
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
|
|
608
2372
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
609
2373
|
attr_accessor :revolut_pay
|
|
610
2374
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -613,8 +2377,12 @@ module Stripe
|
|
|
613
2377
|
attr_accessor :satispay
|
|
614
2378
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
615
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
|
|
616
2382
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
617
2383
|
attr_accessor :sofort
|
|
2384
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2385
|
+
attr_accessor :stripe_balance
|
|
618
2386
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
619
2387
|
attr_accessor :swish
|
|
620
2388
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -649,7 +2417,9 @@ module Stripe
|
|
|
649
2417
|
eps: nil,
|
|
650
2418
|
fpx: nil,
|
|
651
2419
|
giropay: nil,
|
|
2420
|
+
gopay: nil,
|
|
652
2421
|
grabpay: nil,
|
|
2422
|
+
id_bank_transfer: nil,
|
|
653
2423
|
ideal: nil,
|
|
654
2424
|
interac_present: nil,
|
|
655
2425
|
kakao_pay: nil,
|
|
@@ -669,14 +2439,20 @@ module Stripe
|
|
|
669
2439
|
payco: nil,
|
|
670
2440
|
paynow: nil,
|
|
671
2441
|
paypal: nil,
|
|
2442
|
+
paypay: nil,
|
|
2443
|
+
payto: nil,
|
|
672
2444
|
pix: nil,
|
|
673
2445
|
promptpay: nil,
|
|
2446
|
+
qris: nil,
|
|
674
2447
|
radar_options: nil,
|
|
2448
|
+
rechnung: nil,
|
|
675
2449
|
revolut_pay: nil,
|
|
676
2450
|
samsung_pay: nil,
|
|
677
2451
|
satispay: nil,
|
|
678
2452
|
sepa_debit: nil,
|
|
2453
|
+
shopeepay: nil,
|
|
679
2454
|
sofort: nil,
|
|
2455
|
+
stripe_balance: nil,
|
|
680
2456
|
swish: nil,
|
|
681
2457
|
twint: nil,
|
|
682
2458
|
type: nil,
|
|
@@ -704,7 +2480,9 @@ module Stripe
|
|
|
704
2480
|
@eps = eps
|
|
705
2481
|
@fpx = fpx
|
|
706
2482
|
@giropay = giropay
|
|
2483
|
+
@gopay = gopay
|
|
707
2484
|
@grabpay = grabpay
|
|
2485
|
+
@id_bank_transfer = id_bank_transfer
|
|
708
2486
|
@ideal = ideal
|
|
709
2487
|
@interac_present = interac_present
|
|
710
2488
|
@kakao_pay = kakao_pay
|
|
@@ -724,14 +2502,20 @@ module Stripe
|
|
|
724
2502
|
@payco = payco
|
|
725
2503
|
@paynow = paynow
|
|
726
2504
|
@paypal = paypal
|
|
2505
|
+
@paypay = paypay
|
|
2506
|
+
@payto = payto
|
|
727
2507
|
@pix = pix
|
|
728
2508
|
@promptpay = promptpay
|
|
2509
|
+
@qris = qris
|
|
729
2510
|
@radar_options = radar_options
|
|
2511
|
+
@rechnung = rechnung
|
|
730
2512
|
@revolut_pay = revolut_pay
|
|
731
2513
|
@samsung_pay = samsung_pay
|
|
732
2514
|
@satispay = satispay
|
|
733
2515
|
@sepa_debit = sepa_debit
|
|
2516
|
+
@shopeepay = shopeepay
|
|
734
2517
|
@sofort = sofort
|
|
2518
|
+
@stripe_balance = stripe_balance
|
|
735
2519
|
@swish = swish
|
|
736
2520
|
@twint = twint
|
|
737
2521
|
@type = type
|
|
@@ -1102,6 +2886,48 @@ module Stripe
|
|
|
1102
2886
|
end
|
|
1103
2887
|
end
|
|
1104
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.
|
|
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
|
+
|
|
1105
2931
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1106
2932
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1107
2933
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1196,6 +3022,8 @@ module Stripe
|
|
|
1196
3022
|
attr_accessor :moto
|
|
1197
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.
|
|
1198
3024
|
attr_accessor :network
|
|
3025
|
+
# Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
3026
|
+
attr_accessor :request_decremental_authorization
|
|
1199
3027
|
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1200
3028
|
attr_accessor :request_extended_authorization
|
|
1201
3029
|
# Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1204,6 +3032,8 @@ module Stripe
|
|
|
1204
3032
|
attr_accessor :request_multicapture
|
|
1205
3033
|
# Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
|
|
1206
3034
|
attr_accessor :request_overcapture
|
|
3035
|
+
# Request partial authorization on this PaymentIntent.
|
|
3036
|
+
attr_accessor :request_partial_authorization
|
|
1207
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://stripe.com/docs/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://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1208
3038
|
attr_accessor :request_three_d_secure
|
|
1209
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).
|
|
@@ -1222,6 +3052,8 @@ module Stripe
|
|
|
1222
3052
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1223
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.
|
|
1224
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
|
|
1225
3057
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1226
3058
|
# the authentication details to use for this payment.
|
|
1227
3059
|
attr_accessor :three_d_secure
|
|
@@ -1233,15 +3065,18 @@ module Stripe
|
|
|
1233
3065
|
mandate_options: nil,
|
|
1234
3066
|
moto: nil,
|
|
1235
3067
|
network: nil,
|
|
3068
|
+
request_decremental_authorization: nil,
|
|
1236
3069
|
request_extended_authorization: nil,
|
|
1237
3070
|
request_incremental_authorization: nil,
|
|
1238
3071
|
request_multicapture: nil,
|
|
1239
3072
|
request_overcapture: nil,
|
|
3073
|
+
request_partial_authorization: nil,
|
|
1240
3074
|
request_three_d_secure: nil,
|
|
1241
3075
|
require_cvc_recollection: nil,
|
|
1242
3076
|
setup_future_usage: nil,
|
|
1243
3077
|
statement_descriptor_suffix_kana: nil,
|
|
1244
3078
|
statement_descriptor_suffix_kanji: nil,
|
|
3079
|
+
statement_details: nil,
|
|
1245
3080
|
three_d_secure: nil
|
|
1246
3081
|
)
|
|
1247
3082
|
@capture_method = capture_method
|
|
@@ -1250,15 +3085,18 @@ module Stripe
|
|
|
1250
3085
|
@mandate_options = mandate_options
|
|
1251
3086
|
@moto = moto
|
|
1252
3087
|
@network = network
|
|
3088
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1253
3089
|
@request_extended_authorization = request_extended_authorization
|
|
1254
3090
|
@request_incremental_authorization = request_incremental_authorization
|
|
1255
3091
|
@request_multicapture = request_multicapture
|
|
1256
3092
|
@request_overcapture = request_overcapture
|
|
3093
|
+
@request_partial_authorization = request_partial_authorization
|
|
1257
3094
|
@request_three_d_secure = request_three_d_secure
|
|
1258
3095
|
@require_cvc_recollection = require_cvc_recollection
|
|
1259
3096
|
@setup_future_usage = setup_future_usage
|
|
1260
3097
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1261
3098
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3099
|
+
@statement_details = statement_details
|
|
1262
3100
|
@three_d_secure = three_d_secure
|
|
1263
3101
|
end
|
|
1264
3102
|
end
|
|
@@ -1437,6 +3275,23 @@ module Stripe
|
|
|
1437
3275
|
end
|
|
1438
3276
|
end
|
|
1439
3277
|
|
|
3278
|
+
class Gopay < ::Stripe::RequestParams
|
|
3279
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3280
|
+
#
|
|
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.
|
|
3282
|
+
#
|
|
3283
|
+
# 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.
|
|
3284
|
+
#
|
|
3285
|
+
# 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).
|
|
3286
|
+
#
|
|
3287
|
+
# 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`.
|
|
3288
|
+
attr_accessor :setup_future_usage
|
|
3289
|
+
|
|
3290
|
+
def initialize(setup_future_usage: nil)
|
|
3291
|
+
@setup_future_usage = setup_future_usage
|
|
3292
|
+
end
|
|
3293
|
+
end
|
|
3294
|
+
|
|
1440
3295
|
class Grabpay < ::Stripe::RequestParams
|
|
1441
3296
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1442
3297
|
#
|
|
@@ -1454,6 +3309,29 @@ module Stripe
|
|
|
1454
3309
|
end
|
|
1455
3310
|
end
|
|
1456
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
|
+
|
|
1457
3335
|
class Ideal < ::Stripe::RequestParams
|
|
1458
3336
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1459
3337
|
#
|
|
@@ -1466,98 +3344,1031 @@ module Stripe
|
|
|
1466
3344
|
# 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`.
|
|
1467
3345
|
attr_accessor :setup_future_usage
|
|
1468
3346
|
|
|
1469
|
-
def initialize(setup_future_usage: nil)
|
|
1470
|
-
@setup_future_usage = setup_future_usage
|
|
1471
|
-
end
|
|
1472
|
-
end
|
|
3347
|
+
def initialize(setup_future_usage: nil)
|
|
3348
|
+
@setup_future_usage = setup_future_usage
|
|
3349
|
+
end
|
|
3350
|
+
end
|
|
3351
|
+
|
|
3352
|
+
class InteracPresent < ::Stripe::RequestParams; end
|
|
3353
|
+
|
|
3354
|
+
class KakaoPay < ::Stripe::RequestParams
|
|
3355
|
+
# Controls when the funds are captured from the customer's account.
|
|
3356
|
+
#
|
|
3357
|
+
# 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.
|
|
3358
|
+
#
|
|
3359
|
+
# 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.
|
|
3360
|
+
attr_accessor :capture_method
|
|
3361
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3362
|
+
#
|
|
3363
|
+
# 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.
|
|
3364
|
+
#
|
|
3365
|
+
# 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.
|
|
3366
|
+
#
|
|
3367
|
+
# 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).
|
|
3368
|
+
attr_accessor :setup_future_usage
|
|
3369
|
+
|
|
3370
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
3371
|
+
@capture_method = capture_method
|
|
3372
|
+
@setup_future_usage = setup_future_usage
|
|
3373
|
+
end
|
|
3374
|
+
end
|
|
3375
|
+
|
|
3376
|
+
class Klarna < ::Stripe::RequestParams
|
|
3377
|
+
class OnDemand < ::Stripe::RequestParams
|
|
3378
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
|
3379
|
+
attr_accessor :average_amount
|
|
3380
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
|
3381
|
+
attr_accessor :maximum_amount
|
|
3382
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
|
3383
|
+
attr_accessor :minimum_amount
|
|
3384
|
+
# Interval at which the customer is making purchases
|
|
3385
|
+
attr_accessor :purchase_interval
|
|
3386
|
+
# The number of `purchase_interval` between charges
|
|
3387
|
+
attr_accessor :purchase_interval_count
|
|
3388
|
+
|
|
3389
|
+
def initialize(
|
|
3390
|
+
average_amount: nil,
|
|
3391
|
+
maximum_amount: nil,
|
|
3392
|
+
minimum_amount: nil,
|
|
3393
|
+
purchase_interval: nil,
|
|
3394
|
+
purchase_interval_count: nil
|
|
3395
|
+
)
|
|
3396
|
+
@average_amount = average_amount
|
|
3397
|
+
@maximum_amount = maximum_amount
|
|
3398
|
+
@minimum_amount = minimum_amount
|
|
3399
|
+
@purchase_interval = purchase_interval
|
|
3400
|
+
@purchase_interval_count = purchase_interval_count
|
|
3401
|
+
end
|
|
3402
|
+
end
|
|
3403
|
+
|
|
3404
|
+
class Subscription < ::Stripe::RequestParams
|
|
3405
|
+
class NextBilling < ::Stripe::RequestParams
|
|
3406
|
+
# The amount of the next charge for the subscription.
|
|
3407
|
+
attr_accessor :amount
|
|
3408
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
|
3409
|
+
attr_accessor :date
|
|
3410
|
+
|
|
3411
|
+
def initialize(amount: nil, date: nil)
|
|
3412
|
+
@amount = amount
|
|
3413
|
+
@date = date
|
|
3414
|
+
end
|
|
3415
|
+
end
|
|
3416
|
+
# Unit of time between subscription charges.
|
|
3417
|
+
attr_accessor :interval
|
|
3418
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
|
3419
|
+
attr_accessor :interval_count
|
|
3420
|
+
# Name for subscription.
|
|
3421
|
+
attr_accessor :name
|
|
3422
|
+
# Describes the upcoming charge for this subscription.
|
|
3423
|
+
attr_accessor :next_billing
|
|
3424
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
|
3425
|
+
attr_accessor :reference
|
|
3426
|
+
|
|
3427
|
+
def initialize(
|
|
3428
|
+
interval: nil,
|
|
3429
|
+
interval_count: nil,
|
|
3430
|
+
name: nil,
|
|
3431
|
+
next_billing: nil,
|
|
3432
|
+
reference: nil
|
|
3433
|
+
)
|
|
3434
|
+
@interval = interval
|
|
3435
|
+
@interval_count = interval_count
|
|
3436
|
+
@name = name
|
|
3437
|
+
@next_billing = next_billing
|
|
3438
|
+
@reference = reference
|
|
3439
|
+
end
|
|
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
|
|
1473
4089
|
|
|
1474
|
-
|
|
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
|
|
1475
4095
|
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
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
|
|
1491
4119
|
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
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
|
|
1497
4142
|
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
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
|
|
1510
4185
|
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
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
|
|
1523
4305
|
end
|
|
1524
|
-
end
|
|
1525
4306
|
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
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
|
|
1532
4320
|
|
|
1533
|
-
def initialize(
|
|
1534
|
-
|
|
1535
|
-
|
|
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
|
|
1536
4335
|
end
|
|
1537
4336
|
end
|
|
1538
|
-
#
|
|
1539
|
-
attr_accessor :
|
|
1540
|
-
#
|
|
1541
|
-
attr_accessor :
|
|
1542
|
-
#
|
|
1543
|
-
attr_accessor :
|
|
1544
|
-
#
|
|
1545
|
-
attr_accessor :
|
|
1546
|
-
#
|
|
1547
|
-
attr_accessor :
|
|
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
|
|
1548
4353
|
|
|
1549
4354
|
def initialize(
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
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
|
|
1555
4363
|
)
|
|
1556
|
-
@
|
|
1557
|
-
@
|
|
1558
|
-
@
|
|
1559
|
-
@
|
|
1560
|
-
@
|
|
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
|
|
1561
4372
|
end
|
|
1562
4373
|
end
|
|
1563
4374
|
# Controls when the funds are captured from the customer's account.
|
|
@@ -1582,19 +4393,23 @@ module Stripe
|
|
|
1582
4393
|
attr_accessor :setup_future_usage
|
|
1583
4394
|
# Subscription details if setting up or charging a subscription.
|
|
1584
4395
|
attr_accessor :subscriptions
|
|
4396
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4397
|
+
attr_accessor :supplementary_purchase_data
|
|
1585
4398
|
|
|
1586
4399
|
def initialize(
|
|
1587
4400
|
capture_method: nil,
|
|
1588
4401
|
on_demand: nil,
|
|
1589
4402
|
preferred_locale: nil,
|
|
1590
4403
|
setup_future_usage: nil,
|
|
1591
|
-
subscriptions: nil
|
|
4404
|
+
subscriptions: nil,
|
|
4405
|
+
supplementary_purchase_data: nil
|
|
1592
4406
|
)
|
|
1593
4407
|
@capture_method = capture_method
|
|
1594
4408
|
@on_demand = on_demand
|
|
1595
4409
|
@preferred_locale = preferred_locale
|
|
1596
4410
|
@setup_future_usage = setup_future_usage
|
|
1597
4411
|
@subscriptions = subscriptions
|
|
4412
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1598
4413
|
end
|
|
1599
4414
|
end
|
|
1600
4415
|
|
|
@@ -1855,12 +4670,65 @@ module Stripe
|
|
|
1855
4670
|
end
|
|
1856
4671
|
|
|
1857
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
|
|
1858
4722
|
# Controls when the funds will be captured from the customer's account.
|
|
1859
4723
|
attr_accessor :capture_method
|
|
4724
|
+
# The line items purchased by the customer.
|
|
4725
|
+
attr_accessor :line_items
|
|
1860
4726
|
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1861
4727
|
attr_accessor :preferred_locale
|
|
1862
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.
|
|
1863
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
|
|
1864
4732
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1865
4733
|
attr_accessor :risk_correlation_id
|
|
1866
4734
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1873,29 +4741,140 @@ module Stripe
|
|
|
1873
4741
|
#
|
|
1874
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`.
|
|
1875
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
|
|
1876
4746
|
|
|
1877
4747
|
def initialize(
|
|
1878
4748
|
capture_method: nil,
|
|
4749
|
+
line_items: nil,
|
|
1879
4750
|
preferred_locale: nil,
|
|
1880
4751
|
reference: nil,
|
|
4752
|
+
reference_id: nil,
|
|
1881
4753
|
risk_correlation_id: nil,
|
|
1882
|
-
setup_future_usage: nil
|
|
4754
|
+
setup_future_usage: nil,
|
|
4755
|
+
subsellers: nil
|
|
1883
4756
|
)
|
|
1884
4757
|
@capture_method = capture_method
|
|
4758
|
+
@line_items = line_items
|
|
1885
4759
|
@preferred_locale = preferred_locale
|
|
1886
4760
|
@reference = reference
|
|
4761
|
+
@reference_id = reference_id
|
|
1887
4762
|
@risk_correlation_id = risk_correlation_id
|
|
1888
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
|
|
4778
|
+
end
|
|
4779
|
+
end
|
|
4780
|
+
|
|
4781
|
+
class Payto < ::Stripe::RequestParams
|
|
4782
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
4783
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
4784
|
+
attr_accessor :amount
|
|
4785
|
+
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
|
|
4786
|
+
attr_accessor :amount_type
|
|
4787
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
4788
|
+
attr_accessor :end_date
|
|
4789
|
+
# The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
4790
|
+
attr_accessor :payment_schedule
|
|
4791
|
+
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
4792
|
+
attr_accessor :payments_per_period
|
|
4793
|
+
# The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
4794
|
+
attr_accessor :purpose
|
|
4795
|
+
|
|
4796
|
+
def initialize(
|
|
4797
|
+
amount: nil,
|
|
4798
|
+
amount_type: nil,
|
|
4799
|
+
end_date: nil,
|
|
4800
|
+
payment_schedule: nil,
|
|
4801
|
+
payments_per_period: nil,
|
|
4802
|
+
purpose: nil
|
|
4803
|
+
)
|
|
4804
|
+
@amount = amount
|
|
4805
|
+
@amount_type = amount_type
|
|
4806
|
+
@end_date = end_date
|
|
4807
|
+
@payment_schedule = payment_schedule
|
|
4808
|
+
@payments_per_period = payments_per_period
|
|
4809
|
+
@purpose = purpose
|
|
4810
|
+
end
|
|
4811
|
+
end
|
|
4812
|
+
# Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
|
|
4813
|
+
attr_accessor :mandate_options
|
|
4814
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4815
|
+
#
|
|
4816
|
+
# 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.
|
|
4817
|
+
#
|
|
4818
|
+
# 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.
|
|
4819
|
+
#
|
|
4820
|
+
# 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).
|
|
4821
|
+
#
|
|
4822
|
+
# 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`.
|
|
4823
|
+
attr_accessor :setup_future_usage
|
|
4824
|
+
|
|
4825
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
|
4826
|
+
@mandate_options = mandate_options
|
|
4827
|
+
@setup_future_usage = setup_future_usage
|
|
1889
4828
|
end
|
|
1890
4829
|
end
|
|
1891
4830
|
|
|
1892
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
|
|
1893
4870
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
1894
4871
|
attr_accessor :amount_includes_iof
|
|
1895
4872
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
1896
4873
|
attr_accessor :expires_after_seconds
|
|
1897
4874
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
|
1898
4875
|
attr_accessor :expires_at
|
|
4876
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
4877
|
+
attr_accessor :mandate_options
|
|
1899
4878
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1900
4879
|
#
|
|
1901
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.
|
|
@@ -1911,11 +4890,13 @@ module Stripe
|
|
|
1911
4890
|
amount_includes_iof: nil,
|
|
1912
4891
|
expires_after_seconds: nil,
|
|
1913
4892
|
expires_at: nil,
|
|
4893
|
+
mandate_options: nil,
|
|
1914
4894
|
setup_future_usage: nil
|
|
1915
4895
|
)
|
|
1916
4896
|
@amount_includes_iof = amount_includes_iof
|
|
1917
4897
|
@expires_after_seconds = expires_after_seconds
|
|
1918
4898
|
@expires_at = expires_at
|
|
4899
|
+
@mandate_options = mandate_options
|
|
1919
4900
|
@setup_future_usage = setup_future_usage
|
|
1920
4901
|
end
|
|
1921
4902
|
end
|
|
@@ -1937,6 +4918,25 @@ module Stripe
|
|
|
1937
4918
|
end
|
|
1938
4919
|
end
|
|
1939
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
|
+
|
|
1940
4940
|
class RevolutPay < ::Stripe::RequestParams
|
|
1941
4941
|
# Controls when the funds are captured from the customer's account.
|
|
1942
4942
|
#
|
|
@@ -2016,6 +5016,23 @@ module Stripe
|
|
|
2016
5016
|
end
|
|
2017
5017
|
end
|
|
2018
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
|
+
|
|
2019
5036
|
class Sofort < ::Stripe::RequestParams
|
|
2020
5037
|
# Language shown to the payer on redirect.
|
|
2021
5038
|
attr_accessor :preferred_language
|
|
@@ -2036,6 +5053,23 @@ module Stripe
|
|
|
2036
5053
|
end
|
|
2037
5054
|
end
|
|
2038
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
|
+
|
|
2039
5073
|
class Swish < ::Stripe::RequestParams
|
|
2040
5074
|
# A reference for this payment to be displayed in the Swish app.
|
|
2041
5075
|
attr_accessor :reference
|
|
@@ -2078,13 +5112,27 @@ module Stripe
|
|
|
2078
5112
|
class Filters < ::Stripe::RequestParams
|
|
2079
5113
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2080
5114
|
attr_accessor :account_subcategories
|
|
5115
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5116
|
+
attr_accessor :institution
|
|
2081
5117
|
|
|
2082
|
-
def initialize(account_subcategories: nil)
|
|
5118
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2083
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
|
|
2084
5130
|
end
|
|
2085
5131
|
end
|
|
2086
5132
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2087
5133
|
attr_accessor :filters
|
|
5134
|
+
# Customize manual entry behavior
|
|
5135
|
+
attr_accessor :manual_entry
|
|
2088
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`.
|
|
2089
5137
|
attr_accessor :permissions
|
|
2090
5138
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2092,8 +5140,15 @@ module Stripe
|
|
|
2092
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.
|
|
2093
5141
|
attr_accessor :return_url
|
|
2094
5142
|
|
|
2095
|
-
def initialize(
|
|
5143
|
+
def initialize(
|
|
5144
|
+
filters: nil,
|
|
5145
|
+
manual_entry: nil,
|
|
5146
|
+
permissions: nil,
|
|
5147
|
+
prefetch: nil,
|
|
5148
|
+
return_url: nil
|
|
5149
|
+
)
|
|
2096
5150
|
@filters = filters
|
|
5151
|
+
@manual_entry = manual_entry
|
|
2097
5152
|
@permissions = permissions
|
|
2098
5153
|
@prefetch = prefetch
|
|
2099
5154
|
@return_url = return_url
|
|
@@ -2238,8 +5293,12 @@ module Stripe
|
|
|
2238
5293
|
attr_accessor :fpx
|
|
2239
5294
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2240
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
|
|
2241
5298
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2242
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
|
|
2243
5302
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2244
5303
|
attr_accessor :ideal
|
|
2245
5304
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2276,10 +5335,18 @@ module Stripe
|
|
|
2276
5335
|
attr_accessor :paynow
|
|
2277
5336
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2278
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
|
|
5340
|
+
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
5341
|
+
attr_accessor :payto
|
|
2279
5342
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2280
5343
|
attr_accessor :pix
|
|
2281
5344
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2282
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
|
|
2283
5350
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2284
5351
|
attr_accessor :revolut_pay
|
|
2285
5352
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2288,8 +5355,12 @@ module Stripe
|
|
|
2288
5355
|
attr_accessor :satispay
|
|
2289
5356
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2290
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
|
|
2291
5360
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2292
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
|
|
2293
5364
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2294
5365
|
attr_accessor :swish
|
|
2295
5366
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2322,7 +5393,9 @@ module Stripe
|
|
|
2322
5393
|
eps: nil,
|
|
2323
5394
|
fpx: nil,
|
|
2324
5395
|
giropay: nil,
|
|
5396
|
+
gopay: nil,
|
|
2325
5397
|
grabpay: nil,
|
|
5398
|
+
id_bank_transfer: nil,
|
|
2326
5399
|
ideal: nil,
|
|
2327
5400
|
interac_present: nil,
|
|
2328
5401
|
kakao_pay: nil,
|
|
@@ -2341,13 +5414,19 @@ module Stripe
|
|
|
2341
5414
|
payco: nil,
|
|
2342
5415
|
paynow: nil,
|
|
2343
5416
|
paypal: nil,
|
|
5417
|
+
paypay: nil,
|
|
5418
|
+
payto: nil,
|
|
2344
5419
|
pix: nil,
|
|
2345
5420
|
promptpay: nil,
|
|
5421
|
+
qris: nil,
|
|
5422
|
+
rechnung: nil,
|
|
2346
5423
|
revolut_pay: nil,
|
|
2347
5424
|
samsung_pay: nil,
|
|
2348
5425
|
satispay: nil,
|
|
2349
5426
|
sepa_debit: nil,
|
|
5427
|
+
shopeepay: nil,
|
|
2350
5428
|
sofort: nil,
|
|
5429
|
+
stripe_balance: nil,
|
|
2351
5430
|
swish: nil,
|
|
2352
5431
|
twint: nil,
|
|
2353
5432
|
us_bank_account: nil,
|
|
@@ -2374,7 +5453,9 @@ module Stripe
|
|
|
2374
5453
|
@eps = eps
|
|
2375
5454
|
@fpx = fpx
|
|
2376
5455
|
@giropay = giropay
|
|
5456
|
+
@gopay = gopay
|
|
2377
5457
|
@grabpay = grabpay
|
|
5458
|
+
@id_bank_transfer = id_bank_transfer
|
|
2378
5459
|
@ideal = ideal
|
|
2379
5460
|
@interac_present = interac_present
|
|
2380
5461
|
@kakao_pay = kakao_pay
|
|
@@ -2393,13 +5474,19 @@ module Stripe
|
|
|
2393
5474
|
@payco = payco
|
|
2394
5475
|
@paynow = paynow
|
|
2395
5476
|
@paypal = paypal
|
|
5477
|
+
@paypay = paypay
|
|
5478
|
+
@payto = payto
|
|
2396
5479
|
@pix = pix
|
|
2397
5480
|
@promptpay = promptpay
|
|
5481
|
+
@qris = qris
|
|
5482
|
+
@rechnung = rechnung
|
|
2398
5483
|
@revolut_pay = revolut_pay
|
|
2399
5484
|
@samsung_pay = samsung_pay
|
|
2400
5485
|
@satispay = satispay
|
|
2401
5486
|
@sepa_debit = sepa_debit
|
|
5487
|
+
@shopeepay = shopeepay
|
|
2402
5488
|
@sofort = sofort
|
|
5489
|
+
@stripe_balance = stripe_balance
|
|
2403
5490
|
@swish = swish
|
|
2404
5491
|
@twint = twint
|
|
2405
5492
|
@us_bank_account = us_bank_account
|
|
@@ -2467,6 +5554,8 @@ module Stripe
|
|
|
2467
5554
|
@amount = amount
|
|
2468
5555
|
end
|
|
2469
5556
|
end
|
|
5557
|
+
# Allocated Funds configuration for this PaymentIntent.
|
|
5558
|
+
attr_accessor :allocated_funds
|
|
2470
5559
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/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://stripe.com/docs/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).
|
|
2471
5560
|
attr_accessor :amount
|
|
2472
5561
|
# Provides industry-specific information about the amount.
|
|
@@ -2483,19 +5572,29 @@ module Stripe
|
|
|
2483
5572
|
#
|
|
2484
5573
|
# If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
2485
5574
|
attr_accessor :customer
|
|
5575
|
+
# ID of the Account this PaymentIntent belongs to, if one exists.
|
|
5576
|
+
#
|
|
5577
|
+
# Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
|
5578
|
+
#
|
|
5579
|
+
# If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
|
|
5580
|
+
attr_accessor :customer_account
|
|
2486
5581
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2487
5582
|
attr_accessor :description
|
|
2488
5583
|
# The list of payment method types to exclude from use with this payment.
|
|
2489
5584
|
attr_accessor :excluded_payment_method_types
|
|
2490
5585
|
# Specifies which fields in the response should be expanded.
|
|
2491
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
|
|
2492
5589
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2493
5590
|
attr_accessor :hooks
|
|
5591
|
+
# This hash contains details about the Mandate to create.
|
|
5592
|
+
attr_accessor :mandate_data
|
|
2494
5593
|
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
|
2495
5594
|
attr_accessor :metadata
|
|
2496
5595
|
# Provides industry-specific information about the charge.
|
|
2497
5596
|
attr_accessor :payment_details
|
|
2498
|
-
#
|
|
5597
|
+
# Attribute for param field payment_method
|
|
2499
5598
|
attr_accessor :payment_method
|
|
2500
5599
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
|
|
2501
5600
|
attr_accessor :payment_method_configuration
|
|
@@ -2533,16 +5632,20 @@ module Stripe
|
|
|
2533
5632
|
attr_accessor :transfer_group
|
|
2534
5633
|
|
|
2535
5634
|
def initialize(
|
|
5635
|
+
allocated_funds: nil,
|
|
2536
5636
|
amount: nil,
|
|
2537
5637
|
amount_details: nil,
|
|
2538
5638
|
application_fee_amount: nil,
|
|
2539
5639
|
capture_method: nil,
|
|
2540
5640
|
currency: nil,
|
|
2541
5641
|
customer: nil,
|
|
5642
|
+
customer_account: nil,
|
|
2542
5643
|
description: nil,
|
|
2543
5644
|
excluded_payment_method_types: nil,
|
|
2544
5645
|
expand: nil,
|
|
5646
|
+
fx_quote: nil,
|
|
2545
5647
|
hooks: nil,
|
|
5648
|
+
mandate_data: nil,
|
|
2546
5649
|
metadata: nil,
|
|
2547
5650
|
payment_details: nil,
|
|
2548
5651
|
payment_method: nil,
|
|
@@ -2558,16 +5661,20 @@ module Stripe
|
|
|
2558
5661
|
transfer_data: nil,
|
|
2559
5662
|
transfer_group: nil
|
|
2560
5663
|
)
|
|
5664
|
+
@allocated_funds = allocated_funds
|
|
2561
5665
|
@amount = amount
|
|
2562
5666
|
@amount_details = amount_details
|
|
2563
5667
|
@application_fee_amount = application_fee_amount
|
|
2564
5668
|
@capture_method = capture_method
|
|
2565
5669
|
@currency = currency
|
|
2566
5670
|
@customer = customer
|
|
5671
|
+
@customer_account = customer_account
|
|
2567
5672
|
@description = description
|
|
2568
5673
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2569
5674
|
@expand = expand
|
|
5675
|
+
@fx_quote = fx_quote
|
|
2570
5676
|
@hooks = hooks
|
|
5677
|
+
@mandate_data = mandate_data
|
|
2571
5678
|
@metadata = metadata
|
|
2572
5679
|
@payment_details = payment_details
|
|
2573
5680
|
@payment_method = payment_method
|