stripe 19.4.0 → 19.5.0.pre.alpha.2
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 +38 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/connection_manager.rb +30 -0
- data/lib/stripe/error_object.rb +5 -0
- data/lib/stripe/errors.rb +90 -0
- data/lib/stripe/event_types.rb +1383 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v1_account_application_authorized_event.rb +20 -0
- data/lib/stripe/events/v1_account_application_deauthorized_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_created_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_deleted_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_updated_event.rb +20 -0
- data/lib/stripe/events/v1_account_signals_including_delinquency_created_event.rb +68 -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_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_balance_available_event.rb +44 -0
- data/lib/stripe/events/v1_billing_alert_triggered_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_billing_portal_session_created_event.rb +20 -0
- data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
- data/lib/stripe/events/v1_cash_balance_funds_available_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_cash_balance_transaction_created_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_entitlements_active_entitlement_summary_updated_event.rb +20 -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_tax_settings_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_contract_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_ended_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_updated_event.rb +44 -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_custom_pricing_unit_overage_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_signals_fraudulent_website_ready_event.rb +48 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_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_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +115 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +117 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +113 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +115 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +96 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +98 -0
- data/lib/stripe/events/v2_core_health_elements_error_firing_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_elements_error_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_invoice_count_dropped_firing_event.rb +75 -0
- data/lib/stripe/events/v2_core_health_invoice_count_dropped_resolved_event.rb +77 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +66 -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 +66 -0
- data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +111 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +113 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +70 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +72 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +66 -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 +60 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_extension_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +40 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_approved_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_canceled_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_denied_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_removed_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_requested_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_updated_event.rb +38 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_debit_dispute_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_debit_dispute_submitted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_debit_dispute_succeeded_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_statement_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -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_under_review_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_under_review_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_created_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_mandate_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_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_scheduled_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 +63 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +61 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +61 -0
- data/lib/stripe/events/v2_payments_off_session_payment_paused_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_resumed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +109 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_payment_delinquency_exposure_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +143 -0
- data/lib/stripe/params/account_create_params.rb +463 -4
- data/lib/stripe/params/account_link_create_params.rb +4 -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 +60 -0
- data/lib/stripe/params/account_person_update_params.rb +60 -0
- data/lib/stripe/params/account_session_create_params.rb +301 -1
- data/lib/stripe/params/account_signals_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_update_params.rb +425 -3
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +264 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/alert_notification_list_params.rb +70 -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 +25 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +60 -2
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +20 -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 +1743 -0
- data/lib/stripe/params/charge_update_params.rb +1743 -0
- data/lib/stripe/params/checkout/session_approve_params.rb +52 -0
- data/lib/stripe/params/checkout/session_create_params.rb +573 -7
- data/lib/stripe/params/checkout/session_update_params.rb +180 -2
- data/lib/stripe/params/confirmation_token_create_params.rb +101 -0
- data/lib/stripe/params/coupon_create_params.rb +47 -1
- data/lib/stripe/params/crypto/customer_consumer_wallet_list_params.rb +24 -0
- data/lib/stripe/params/crypto/customer_payment_token_list_params.rb +24 -0
- data/lib/stripe/params/crypto/customer_retrieve_params.rb +15 -0
- data/lib/stripe/params/crypto/deposit_address_create_params.rb +24 -0
- data/lib/stripe/params/crypto/deposit_address_list_params.rb +45 -0
- data/lib/stripe/params/crypto/deposit_address_retrieve_params.rb +15 -0
- data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +56 -0
- data/lib/stripe/params/crypto/onramp_session_create_params.rb +122 -0
- data/lib/stripe/params/crypto/onramp_session_list_params.rb +62 -0
- data/lib/stripe/params/crypto/onramp_session_quote_params.rb +15 -0
- data/lib/stripe/params/crypto/onramp_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/crypto/onramp_transaction_limits_retrieve_params.rb +33 -0
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +172 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +230 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
- data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -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 +216 -0
- data/lib/stripe/params/dispute_update_params.rb +14 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_activate_params.rb +30 -0
- data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
- data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
- data/lib/stripe/params/gift_card_create_params.rb +28 -0
- data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_reload_params.rb +22 -0
- data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_void_operation_params.rb +19 -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_update_params.rb +11 -1
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +98 -3
- data/lib/stripe/params/invoice_create_preview_params.rb +1365 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +98 -3
- data/lib/stripe/params/issuing/authorization_capture_params.rb +56 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +51 -0
- data/lib/stripe/params/issuing/card_create_params.rb +4 -0
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/card_update_params.rb +4 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
- 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_report_offer_acceptance_params.rb +15 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_close_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_provisional_credit_params.rb +21 -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/dispute_simulate_network_lifecycle_dispute_response_params.rb +26 -0
- data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
- data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
- 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_create_force_capture_params.rb +64 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +51 -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/orchestration/payment_attempt_retrieve_params.rb +15 -0
- data/lib/stripe/params/order_create_params.rb +2117 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2121 -0
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +41 -0
- data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +31 -0
- data/lib/stripe/params/payment_attempt_record_report_early_fraud_warning_params.rb +22 -0
- data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +92 -0
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +92 -0
- data/lib/stripe/params/payment_attempt_record_report_informational_params.rb +93 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +103 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1815 -3
- data/lib/stripe/params/payment_intent_confirm_params.rb +3712 -92
- data/lib/stripe/params/payment_intent_create_params.rb +3719 -83
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +370 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +112 -2
- data/lib/stripe/params/payment_intent_reauthorize_params.rb +19 -0
- data/lib/stripe/params/payment_intent_simulate_crypto_deposit_params.rb +31 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3741 -90
- data/lib/stripe/params/payment_link_create_params.rb +35 -1
- data/lib/stripe/params/payment_link_update_params.rb +1 -1
- data/lib/stripe/params/payment_location_capability_list_params.rb +16 -0
- data/lib/stripe/params/payment_location_capability_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_location_capability_update_params.rb +19 -0
- data/lib/stripe/params/payment_location_create_params.rb +54 -0
- data/lib/stripe/params/payment_location_delete_params.rb +6 -0
- data/lib/stripe/params/payment_location_list_params.rb +22 -0
- data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_location_update_params.rb +63 -0
- 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_update_params.rb +16 -0
- data/lib/stripe/params/payment_record_create_params.rb +109 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +13 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +74 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +70 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +87 -3
- data/lib/stripe/params/payment_record_report_payment_params.rb +87 -3
- data/lib/stripe/params/payment_record_report_refund_params.rb +24 -0
- data/lib/stripe/params/payment_record_search_params.rb +22 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +23 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_catalog/trial_offer_list_params.rb +54 -0
- data/lib/stripe/params/product_catalog/trial_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/product_create_params.rb +47 -0
- data/lib/stripe/params/product_update_params.rb +47 -0
- data/lib/stripe/params/quote_create_params.rb +1217 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +1225 -4
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +115 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +72 -0
- data/lib/stripe/params/radar/customer_evaluation_create_params.rb +86 -0
- data/lib/stripe/params/radar/customer_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/customer_evaluation_update_params.rb +21 -0
- data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +65 -2
- data/lib/stripe/params/refund_create_params.rb +8 -0
- data/lib/stripe/params/refund_list_params.rb +8 -0
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
- data/lib/stripe/params/setup_intent_create_params.rb +187 -3
- data/lib/stripe/params/setup_intent_update_params.rb +188 -4
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +50 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +74 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +325 -7
- data/lib/stripe/params/subscription_item_create_params.rb +114 -2
- data/lib/stripe/params/subscription_item_update_params.rb +97 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +471 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +471 -5
- data/lib/stripe/params/subscription_update_params.rb +308 -6
- data/lib/stripe/params/tax/calculation_create_params.rb +46 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +117 -0
- data/lib/stripe/params/tax_fund_list_params.rb +42 -0
- data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_activate_gift_card_params.rb +35 -0
- data/lib/stripe/params/terminal/reader_cashout_gift_card_params.rb +21 -0
- data/lib/stripe/params/terminal/reader_check_gift_card_balance_params.rb +21 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +4 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +16 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +4 -0
- data/lib/stripe/params/terminal/reader_reload_gift_card_params.rb +27 -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 +101 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +56 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +51 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_close_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_provisional_credit_params.rb +23 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +28 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +64 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +51 -0
- data/lib/stripe/params/test_helpers/payment_intent_simulate_crypto_deposit_params.rb +33 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +52 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +16 -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 +136 -2
- 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_payment_create_params.rb +4 -0
- 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/cadences/spend_modifier_rule_list_params.rb +22 -0
- data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -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 +263 -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/contract_activate_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_cancel_params.rb +39 -0
- data/lib/stripe/params/v2/billing/contract_create_params.rb +491 -0
- data/lib/stripe/params/v2/billing/contract_delete_params.rb +10 -0
- data/lib/stripe/params/v2/billing/contract_list_params.rb +23 -0
- data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_update_params.rb +786 -0
- data/lib/stripe/params/v2/billing/contracts/pricing_lines/quantity_change_list_contract_pricing_line_quantity_changes_params.rb +21 -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 +899 -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 +121 -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_update_params.rb +102 -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/one_time_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/one_time_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/one_time_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/one_time_item_update_params.rb +48 -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 +54 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_remove_discounts_params.rb +17 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -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_modify_rates_params.rb +177 -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/custom_pricing_unit_overage_rate_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params.rb +22 -0
- data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +109 -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 +315 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +4072 -57
- data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +73 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +81 -1
- data/lib/stripe/params/v2/core/account_list_params.rb +9 -1
- data/lib/stripe/params/v2/core/account_token_create_params.rb +254 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +4051 -57
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_execute_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +17 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_submit_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +59 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +28 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/connection_session_create_params.rb +23 -0
- data/lib/stripe/params/v2/core/connection_session_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/core/fee_batch_list_params.rb +43 -0
- data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
- data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/health/alert_list_params.rb +53 -0
- data/lib/stripe/params/v2/core/health/alert_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/health/alerts/history_list_params.rb +21 -0
- 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 +58 -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 +37 -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/data/analytics/metric_query_create_params.rb +68 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +19 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +68 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +49 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_create_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_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 +37 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +33 -0
- data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +25 -0
- data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +52 -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 +179 -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 +70 -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 +110 -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 +88 -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 +104 -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_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +138 -0
- data/lib/stripe/params/v2/money_management/payout_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/payout_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +138 -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 +20 -0
- data/lib/stripe/params/v2/money_management/received_debit_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/received_debit_mandate_retrieve_params.rb +10 -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/test_helpers/financial_address_debit_params.rb +25 -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/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_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 +178 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +366 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_pause_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_resume_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +35 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_list_params.rb +47 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +20 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +28 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_list_params.rb +22 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/risk/inquiry_list_params.rb +20 -0
- data/lib/stripe/params/v2/risk/inquiry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/risk/inquiry_update_params.rb +49 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +197 -0
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +188 -0
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +124 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +124 -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 +1040 -0
- data/lib/stripe/resources/account.rb +273 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +414 -0
- data/lib/stripe/resources/account_signals.rb +104 -0
- data/lib/stripe/resources/application_fee.rb +24 -1
- data/lib/stripe/resources/balance.rb +166 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +277 -1
- data/lib/stripe/resources/billing/alert_notification.rb +56 -0
- data/lib/stripe/resources/billing/alert_recovered.rb +60 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +48 -1
- 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 +172 -3
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +145 -2
- data/lib/stripe/resources/billing/credit_grant.rb +92 -2
- data/lib/stripe/resources/billing/feedback_options.rb +47 -0
- 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/configuration.rb +2 -0
- data/lib/stripe/resources/capability.rb +36 -1
- data/lib/stripe/resources/capital/financing_offer.rb +185 -0
- data/lib/stripe/resources/capital/financing_summary.rb +84 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +35 -1
- data/lib/stripe/resources/charge.rb +422 -2
- data/lib/stripe/resources/checkout/session.rb +689 -3
- data/lib/stripe/resources/confirmation_token.rb +255 -1
- data/lib/stripe/resources/coupon.rb +60 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/crypto/customer.rb +73 -0
- data/lib/stripe/resources/crypto/customer_consumer_wallet.rb +35 -0
- data/lib/stripe/resources/crypto/customer_payment_token.rb +84 -0
- data/lib/stripe/resources/crypto/deposit_address.rb +82 -0
- data/lib/stripe/resources/crypto/onramp_session.rb +222 -0
- data/lib/stripe/resources/crypto/onramp_transaction_limits.rb +33 -0
- data/lib/stripe/resources/customer.rb +16 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
- data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +895 -0
- data/lib/stripe/resources/discount.rb +20 -1
- data/lib/stripe/resources/dispute.rb +24 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +45 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +92 -0
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/gift_card.rb +146 -0
- data/lib/stripe/resources/gift_card_operation.rb +280 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +24 -1
- data/lib/stripe/resources/invoice.rb +198 -1
- data/lib/stripe/resources/invoice_item.rb +126 -2
- data/lib/stripe/resources/invoice_line_item.rb +195 -1
- data/lib/stripe/resources/issuing/authorization.rb +530 -1
- data/lib/stripe/resources/issuing/card.rb +42 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +285 -0
- data/lib/stripe/resources/issuing/dispute.rb +349 -1
- 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/token.rb +10 -0
- data/lib/stripe/resources/issuing/transaction.rb +191 -1
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +30 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/orchestration/payment_attempt.rb +31 -0
- data/lib/stripe/resources/order.rb +929 -0
- data/lib/stripe/resources/payment_attempt_record.rb +513 -3
- data/lib/stripe/resources/payment_intent.rb +2584 -20
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +48 -1
- data/lib/stripe/resources/payment_link.rb +22 -0
- data/lib/stripe/resources/payment_location.rb +165 -0
- data/lib/stripe/resources/payment_location_capability.rb +94 -0
- data/lib/stripe/resources/payment_method.rb +286 -1
- 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 +379 -3
- data/lib/stripe/resources/person.rb +62 -0
- data/lib/stripe/resources/price.rb +22 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product.rb +78 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +117 -0
- data/lib/stripe/resources/profile.rb +80 -0
- data/lib/stripe/resources/quote.rb +806 -2
- data/lib/stripe/resources/quote_line.rb +731 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1264 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +1078 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +180 -0
- data/lib/stripe/resources/radar/customer_evaluation.rb +155 -0
- data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +45 -2
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/risk_signals.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +51 -0
- data/lib/stripe/resources/setup_intent.rb +129 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +683 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +312 -0
- data/lib/stripe/resources/source.rb +54 -0
- data/lib/stripe/resources/subscription.rb +253 -1
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +496 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +43 -1
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +74 -0
- data/lib/stripe/resources/tax/registration.rb +144 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/tax_fund.rb +179 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +181 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/token.rb +15 -1
- 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_payment.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 +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +773 -0
- data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +103 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/contract.rb +537 -0
- data/lib/stripe/resources/v2/billing/contract_pricing_line_quantity_change.rb +59 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +358 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +711 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +140 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +101 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/one_time_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +97 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +719 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +41 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +71 -0
- data/lib/stripe/resources/v2/billing/rate_card_custom_pricing_unit_overage_rate.rb +48 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +131 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +97 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +37 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +306 -0
- data/lib/stripe/resources/v2/core/account.rb +19747 -1376
- data/lib/stripe/resources/v2/core/account_evaluation.rb +106 -0
- data/lib/stripe/resources/v2/core/account_link.rb +72 -0
- data/lib/stripe/resources/v2/core/approval_request.rb +337 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +565 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +146 -0
- data/lib/stripe/resources/v2/core/connection_session.rb +58 -0
- data/lib/stripe/resources/v2/core/event.rb +66 -1
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/fee_batch.rb +225 -0
- data/lib/stripe/resources/v2/core/fee_entry.rb +173 -0
- data/lib/stripe/resources/v2/core/health/alert.rb +572 -0
- data/lib/stripe/resources/v2/core/health/alert_history_entry.rb +542 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/analytics/metric_query_result.rb +106 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +159 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +189 -0
- data/lib/stripe/resources/v2/iam/api_key.rb +133 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +69 -0
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +66 -0
- data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +311 -0
- data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +225 -0
- data/lib/stripe/resources/v2/money_management/financial_address_debit_simulation.rb +31 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +376 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +146 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +239 -0
- data/lib/stripe/resources/v2/money_management/payout_intent.rb +245 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +185 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +434 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +293 -0
- data/lib/stripe/resources/v2/money_management/received_debit_mandate.rb +121 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +187 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +157 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +292 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +77 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +65 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +159 -0
- data/lib/stripe/resources/v2/risk/inquiry.rb +89 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +250 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +247 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +315 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +145 -0
- data/lib/stripe/resources.rb +1860 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +46 -1
- data/lib/stripe/services/account_signals_service.rb +17 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/billing/alert_notification_service.rb +19 -0
- data/lib/stripe/services/billing/alert_service.rb +9 -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/credit_grant_service.rb +4 -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/checkout/session_service.rb +11 -0
- data/lib/stripe/services/coupon_service.rb +44 -0
- data/lib/stripe/services/credit_note_service.rb +14 -0
- data/lib/stripe/services/crypto/customer_consumer_wallet_service.rb +19 -0
- data/lib/stripe/services/crypto/customer_payment_token_service.rb +19 -0
- data/lib/stripe/services/crypto/customer_service.rb +27 -0
- data/lib/stripe/services/crypto/deposit_address_service.rb +43 -0
- data/lib/stripe/services/crypto/onramp_session_service.rb +69 -0
- data/lib/stripe/services/crypto/onramp_transaction_limits_service.rb +19 -0
- data/lib/stripe/services/crypto_service.rb +16 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +30 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +15 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +15 -0
- data/lib/stripe/services/customer_payment_source_service.rb +60 -0
- data/lib/stripe/services/customer_service.rb +59 -0
- data/lib/stripe/services/customer_session_service.rb +14 -0
- data/lib/stripe/services/customer_tax_id_service.rb +30 -0
- data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
- data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +70 -0
- data/lib/stripe/services/delegated_checkout_service.rb +14 -0
- data/lib/stripe/services/dispute_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/gift_card_operation_service.rb +17 -0
- data/lib/stripe/services/gift_card_service.rb +77 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/invoice_item_service.rb +44 -0
- data/lib/stripe/services/invoice_line_item_service.rb +15 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +30 -0
- data/lib/stripe/services/invoice_service.rb +189 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +85 -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/orchestration/payment_attempt_service.rb +19 -0
- data/lib/stripe/services/orchestration_service.rb +13 -0
- data/lib/stripe/services/order_service.rb +53 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +88 -0
- data/lib/stripe/services/payment_intent_service.rb +66 -0
- data/lib/stripe/services/payment_location_capability_service.rb +39 -0
- data/lib/stripe/services/payment_location_service.rb +61 -0
- data/lib/stripe/services/payment_method_service.rb +26 -0
- data/lib/stripe/services/payment_record_service.rb +26 -0
- data/lib/stripe/services/price_service.rb +29 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +41 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/product_feature_service.rb +30 -0
- data/lib/stripe/services/product_service.rb +44 -0
- data/lib/stripe/services/promotion_code_service.rb +29 -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/customer_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +14 -0
- data/lib/stripe/services/radar_service.rb +5 -1
- data/lib/stripe/services/refund_service.rb +29 -0
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_item_service.rb +44 -0
- data/lib/stripe/services/subscription_schedule_service.rb +70 -0
- data/lib/stripe/services/subscription_service.rb +112 -1
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax/registration_service.rb +29 -0
- data/lib/stripe/services/tax/settings_service.rb +14 -0
- data/lib/stripe/services/tax/transaction_service.rb +14 -0
- data/lib/stripe/services/tax_fund_service.rb +22 -0
- data/lib/stripe/services/tax_id_service.rb +14 -0
- data/lib/stripe/services/tax_rate_service.rb +29 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_service.rb +44 -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/issuing/dispute_service.rb +65 -0
- data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
- data/lib/stripe/services/test_helpers/payment_intent_service.rb +19 -0
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +4 -1
- data/lib/stripe/services/v1_services.rb +20 -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 +73 -0
- data/lib/stripe/services/v2/billing/cadences/spend_modifier_rule_service.rb +34 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/contract_service.rb +102 -0
- data/lib/stripe/services/v2/billing/contracts/pricing_lines/quantity_change_service.rb +30 -0
- data/lib/stripe/services/v2/billing/contracts/pricing_lines_service.rb +20 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +98 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +69 -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/one_time_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 +54 -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 +79 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/custom_pricing_unit_overage_rate_service.rb +56 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +61 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +47 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_evaluation_service.rb +21 -0
- data/lib/stripe/services/v2/core/approval_request_service.rb +70 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +47 -0
- data/lib/stripe/services/v2/core/connection_session_service.rb +32 -0
- data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
- data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
- data/lib/stripe/services/v2/core/health/alert_service.rb +41 -0
- data/lib/stripe/services/v2/core/health/alerts/history_service.rb +25 -0
- data/lib/stripe/services/v2/core/health_service.rb +17 -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 +106 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +10 -1
- data/lib/stripe/services/v2/data/analytics/metric_query_service.rb +23 -0
- data/lib/stripe/services/v2/data/analytics_service.rb +17 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data_service.rb +16 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +16 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +78 -0
- data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_intent_service.rb +71 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -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_mandate_service.rb +43 -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/test_helpers/financial_address_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/test_helpers_service.rb +18 -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 +40 -0
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +87 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +83 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +56 -0
- data/lib/stripe/services/v2/payments_service.rb +17 -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/risk/inquiry_service.rb +43 -0
- data/lib/stripe/services/v2/risk_service.rb +15 -0
- data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +17 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +73 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +16 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +13 -1
- data/lib/stripe/services.rb +452 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +2640 -0
- 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 +54 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +260886 -113845
- metadata +1141 -4
|
@@ -3,15 +3,80 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentIntentCreateParams < ::Stripe::RequestParams
|
|
6
|
+
class AllocatedFunds < ::Stripe::RequestParams
|
|
7
|
+
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
|
8
|
+
attr_accessor :enabled
|
|
9
|
+
|
|
10
|
+
def initialize(enabled: nil)
|
|
11
|
+
@enabled = enabled
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
6
15
|
class AmountDetails < ::Stripe::RequestParams
|
|
7
16
|
class LineItem < ::Stripe::RequestParams
|
|
8
17
|
class PaymentMethodOptions < ::Stripe::RequestParams
|
|
9
18
|
class Card < ::Stripe::RequestParams
|
|
19
|
+
class EvCharging < ::Stripe::RequestParams
|
|
20
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
21
|
+
attr_accessor :carbon_footprint_avoided_grams_co2
|
|
22
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
23
|
+
attr_accessor :charging_ended_at
|
|
24
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
25
|
+
attr_accessor :charging_power_output_capacity_kw
|
|
26
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
27
|
+
attr_accessor :charging_started_at
|
|
28
|
+
# The type of connector used for the charging session.
|
|
29
|
+
attr_accessor :connector_type
|
|
30
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
31
|
+
attr_accessor :estimated_range_added
|
|
32
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
33
|
+
attr_accessor :estimated_range_left
|
|
34
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
35
|
+
attr_accessor :maximum_power_dispensed_kw
|
|
36
|
+
|
|
37
|
+
def initialize(
|
|
38
|
+
carbon_footprint_avoided_grams_co2: nil,
|
|
39
|
+
charging_ended_at: nil,
|
|
40
|
+
charging_power_output_capacity_kw: nil,
|
|
41
|
+
charging_started_at: nil,
|
|
42
|
+
connector_type: nil,
|
|
43
|
+
estimated_range_added: nil,
|
|
44
|
+
estimated_range_left: nil,
|
|
45
|
+
maximum_power_dispensed_kw: nil
|
|
46
|
+
)
|
|
47
|
+
@carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
|
|
48
|
+
@charging_ended_at = charging_ended_at
|
|
49
|
+
@charging_power_output_capacity_kw = charging_power_output_capacity_kw
|
|
50
|
+
@charging_started_at = charging_started_at
|
|
51
|
+
@connector_type = connector_type
|
|
52
|
+
@estimated_range_added = estimated_range_added
|
|
53
|
+
@estimated_range_left = estimated_range_left
|
|
54
|
+
@maximum_power_dispensed_kw = maximum_power_dispensed_kw
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class FleetData < ::Stripe::RequestParams
|
|
59
|
+
# The type of product being purchased at this line item.
|
|
60
|
+
attr_accessor :product_type
|
|
61
|
+
# The type of service received at the acceptor location.
|
|
62
|
+
attr_accessor :service_type
|
|
63
|
+
|
|
64
|
+
def initialize(product_type: nil, service_type: nil)
|
|
65
|
+
@product_type = product_type
|
|
66
|
+
@service_type = service_type
|
|
67
|
+
end
|
|
68
|
+
end
|
|
10
69
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
11
70
|
attr_accessor :commodity_code
|
|
71
|
+
# EV charging data for this line item.
|
|
72
|
+
attr_accessor :ev_charging
|
|
73
|
+
# Fleet data for this line item.
|
|
74
|
+
attr_accessor :fleet_data
|
|
12
75
|
|
|
13
|
-
def initialize(commodity_code: nil)
|
|
76
|
+
def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
|
|
14
77
|
@commodity_code = commodity_code
|
|
78
|
+
@ev_charging = ev_charging
|
|
79
|
+
@fleet_data = fleet_data
|
|
15
80
|
end
|
|
16
81
|
end
|
|
17
82
|
|
|
@@ -102,6 +167,8 @@ module Stripe
|
|
|
102
167
|
attr_accessor :product_name
|
|
103
168
|
# The quantity of items. Required for L3 rates. An integer greater than 0.
|
|
104
169
|
attr_accessor :quantity
|
|
170
|
+
# The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided.
|
|
171
|
+
attr_accessor :quantity_precision
|
|
105
172
|
# Contains information about the tax on the item.
|
|
106
173
|
attr_accessor :tax
|
|
107
174
|
# The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
@@ -115,6 +182,7 @@ module Stripe
|
|
|
115
182
|
product_code: nil,
|
|
116
183
|
product_name: nil,
|
|
117
184
|
quantity: nil,
|
|
185
|
+
quantity_precision: nil,
|
|
118
186
|
tax: nil,
|
|
119
187
|
unit_cost: nil,
|
|
120
188
|
unit_of_measure: nil
|
|
@@ -124,6 +192,7 @@ module Stripe
|
|
|
124
192
|
@product_code = product_code
|
|
125
193
|
@product_name = product_name
|
|
126
194
|
@quantity = quantity
|
|
195
|
+
@quantity_precision = quantity_precision
|
|
127
196
|
@tax = tax
|
|
128
197
|
@unit_cost = unit_cost
|
|
129
198
|
@unit_of_measure = unit_of_measure
|
|
@@ -145,6 +214,18 @@ module Stripe
|
|
|
145
214
|
end
|
|
146
215
|
end
|
|
147
216
|
|
|
217
|
+
class Surcharge < ::Stripe::RequestParams
|
|
218
|
+
# Portion of the amount that corresponds to a surcharge.
|
|
219
|
+
attr_accessor :amount
|
|
220
|
+
# Indicate whether to enforce validations on the surcharge amount.
|
|
221
|
+
attr_accessor :enforce_validation
|
|
222
|
+
|
|
223
|
+
def initialize(amount: nil, enforce_validation: nil)
|
|
224
|
+
@amount = amount
|
|
225
|
+
@enforce_validation = enforce_validation
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
148
229
|
class Tax < ::Stripe::RequestParams
|
|
149
230
|
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
150
231
|
#
|
|
@@ -155,6 +236,15 @@ module Stripe
|
|
|
155
236
|
@total_tax_amount = total_tax_amount
|
|
156
237
|
end
|
|
157
238
|
end
|
|
239
|
+
|
|
240
|
+
class Tip < ::Stripe::RequestParams
|
|
241
|
+
# Portion of the amount that corresponds to a tip.
|
|
242
|
+
attr_accessor :amount
|
|
243
|
+
|
|
244
|
+
def initialize(amount: nil)
|
|
245
|
+
@amount = amount
|
|
246
|
+
end
|
|
247
|
+
end
|
|
158
248
|
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
159
249
|
#
|
|
160
250
|
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
@@ -169,115 +259,2056 @@ module Stripe
|
|
|
169
259
|
attr_accessor :line_items
|
|
170
260
|
# Contains information about the shipping portion of the amount.
|
|
171
261
|
attr_accessor :shipping
|
|
262
|
+
# Contains information about the surcharge portion of the amount.
|
|
263
|
+
attr_accessor :surcharge
|
|
172
264
|
# Contains information about the tax portion of the amount.
|
|
173
265
|
attr_accessor :tax
|
|
266
|
+
# Contains information about the tip portion of the amount.
|
|
267
|
+
attr_accessor :tip
|
|
268
|
+
|
|
269
|
+
def initialize(
|
|
270
|
+
discount_amount: nil,
|
|
271
|
+
enforce_arithmetic_validation: nil,
|
|
272
|
+
line_items: nil,
|
|
273
|
+
shipping: nil,
|
|
274
|
+
surcharge: nil,
|
|
275
|
+
tax: nil,
|
|
276
|
+
tip: nil
|
|
277
|
+
)
|
|
278
|
+
@discount_amount = discount_amount
|
|
279
|
+
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
280
|
+
@line_items = line_items
|
|
281
|
+
@shipping = shipping
|
|
282
|
+
@surcharge = surcharge
|
|
283
|
+
@tax = tax
|
|
284
|
+
@tip = tip
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
class AutomaticPaymentMethods < ::Stripe::RequestParams
|
|
289
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
290
|
+
#
|
|
291
|
+
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
|
292
|
+
attr_accessor :allow_redirects
|
|
293
|
+
# Whether this feature is enabled.
|
|
294
|
+
attr_accessor :enabled
|
|
295
|
+
|
|
296
|
+
def initialize(allow_redirects: nil, enabled: nil)
|
|
297
|
+
@allow_redirects = allow_redirects
|
|
298
|
+
@enabled = enabled
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
class Hooks < ::Stripe::RequestParams
|
|
303
|
+
class Inputs < ::Stripe::RequestParams
|
|
304
|
+
class Tax < ::Stripe::RequestParams
|
|
305
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
306
|
+
attr_accessor :calculation
|
|
307
|
+
|
|
308
|
+
def initialize(calculation: nil)
|
|
309
|
+
@calculation = calculation
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
# Tax arguments for automations
|
|
313
|
+
attr_accessor :tax
|
|
314
|
+
|
|
315
|
+
def initialize(tax: nil)
|
|
316
|
+
@tax = tax
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
# Arguments passed in automations
|
|
320
|
+
attr_accessor :inputs
|
|
321
|
+
|
|
322
|
+
def initialize(inputs: nil)
|
|
323
|
+
@inputs = inputs
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
class MandateData < ::Stripe::RequestParams
|
|
328
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
329
|
+
class Offline < ::Stripe::RequestParams; end
|
|
330
|
+
|
|
331
|
+
class Online < ::Stripe::RequestParams
|
|
332
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
333
|
+
attr_accessor :ip_address
|
|
334
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
335
|
+
attr_accessor :user_agent
|
|
336
|
+
|
|
337
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
338
|
+
@ip_address = ip_address
|
|
339
|
+
@user_agent = user_agent
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
# The time at which the customer accepted the Mandate.
|
|
343
|
+
attr_accessor :accepted_at
|
|
344
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
345
|
+
attr_accessor :offline
|
|
346
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
347
|
+
attr_accessor :online
|
|
348
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
349
|
+
attr_accessor :type
|
|
350
|
+
|
|
351
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
352
|
+
@accepted_at = accepted_at
|
|
353
|
+
@offline = offline
|
|
354
|
+
@online = online
|
|
355
|
+
@type = type
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
359
|
+
attr_accessor :customer_acceptance
|
|
360
|
+
|
|
361
|
+
def initialize(customer_acceptance: nil)
|
|
362
|
+
@customer_acceptance = customer_acceptance
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
367
|
+
class Benefit < ::Stripe::RequestParams
|
|
368
|
+
class FrMealVoucher < ::Stripe::RequestParams
|
|
369
|
+
# Whether to enable meal voucher benefit for this payment.
|
|
370
|
+
attr_accessor :enabled
|
|
371
|
+
# The 14-digit SIRET of the meal voucher acceptor.
|
|
372
|
+
attr_accessor :siret
|
|
373
|
+
|
|
374
|
+
def initialize(enabled: nil, siret: nil)
|
|
375
|
+
@enabled = enabled
|
|
376
|
+
@siret = siret
|
|
377
|
+
end
|
|
378
|
+
end
|
|
379
|
+
# French meal voucher benefit details for this PaymentIntent.
|
|
380
|
+
attr_accessor :fr_meal_voucher
|
|
381
|
+
|
|
382
|
+
def initialize(fr_meal_voucher: nil)
|
|
383
|
+
@fr_meal_voucher = fr_meal_voucher
|
|
384
|
+
end
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
class CarRental < ::Stripe::RequestParams
|
|
388
|
+
class Affiliate < ::Stripe::RequestParams
|
|
389
|
+
# The name of the affiliate that originated the purchase.
|
|
390
|
+
attr_accessor :name
|
|
391
|
+
|
|
392
|
+
def initialize(name: nil)
|
|
393
|
+
@name = name
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
class Delivery < ::Stripe::RequestParams
|
|
398
|
+
class Recipient < ::Stripe::RequestParams
|
|
399
|
+
# The email of the recipient the ticket is delivered to.
|
|
400
|
+
attr_accessor :email
|
|
401
|
+
# The name of the recipient the ticket is delivered to.
|
|
402
|
+
attr_accessor :name
|
|
403
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
404
|
+
attr_accessor :phone
|
|
405
|
+
|
|
406
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
407
|
+
@email = email
|
|
408
|
+
@name = name
|
|
409
|
+
@phone = phone
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
# The delivery method for the payment
|
|
413
|
+
attr_accessor :mode
|
|
414
|
+
# Details of the recipient.
|
|
415
|
+
attr_accessor :recipient
|
|
416
|
+
|
|
417
|
+
def initialize(mode: nil, recipient: nil)
|
|
418
|
+
@mode = mode
|
|
419
|
+
@recipient = recipient
|
|
420
|
+
end
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
class Distance < ::Stripe::RequestParams
|
|
424
|
+
# Distance traveled.
|
|
425
|
+
attr_accessor :amount
|
|
426
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
427
|
+
attr_accessor :unit
|
|
428
|
+
|
|
429
|
+
def initialize(amount: nil, unit: nil)
|
|
430
|
+
@amount = amount
|
|
431
|
+
@unit = unit
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
class Driver < ::Stripe::RequestParams
|
|
436
|
+
# Driver's identification number.
|
|
437
|
+
attr_accessor :driver_identification_number
|
|
438
|
+
# Driver's tax number.
|
|
439
|
+
attr_accessor :driver_tax_number
|
|
440
|
+
# Full name of the person or entity on the car reservation.
|
|
441
|
+
attr_accessor :name
|
|
442
|
+
|
|
443
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
444
|
+
@driver_identification_number = driver_identification_number
|
|
445
|
+
@driver_tax_number = driver_tax_number
|
|
446
|
+
@name = name
|
|
447
|
+
end
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
451
|
+
# City, district, suburb, town, or village.
|
|
452
|
+
attr_accessor :city
|
|
453
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
454
|
+
attr_accessor :country
|
|
455
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
456
|
+
attr_accessor :line1
|
|
457
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
458
|
+
attr_accessor :line2
|
|
459
|
+
# ZIP or postal code.
|
|
460
|
+
attr_accessor :postal_code
|
|
461
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
462
|
+
attr_accessor :state
|
|
463
|
+
|
|
464
|
+
def initialize(
|
|
465
|
+
city: nil,
|
|
466
|
+
country: nil,
|
|
467
|
+
line1: nil,
|
|
468
|
+
line2: nil,
|
|
469
|
+
postal_code: nil,
|
|
470
|
+
state: nil
|
|
471
|
+
)
|
|
472
|
+
@city = city
|
|
473
|
+
@country = country
|
|
474
|
+
@line1 = line1
|
|
475
|
+
@line2 = line2
|
|
476
|
+
@postal_code = postal_code
|
|
477
|
+
@state = state
|
|
478
|
+
end
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
482
|
+
# City, district, suburb, town, or village.
|
|
483
|
+
attr_accessor :city
|
|
484
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
485
|
+
attr_accessor :country
|
|
486
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
487
|
+
attr_accessor :line1
|
|
488
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
489
|
+
attr_accessor :line2
|
|
490
|
+
# ZIP or postal code.
|
|
491
|
+
attr_accessor :postal_code
|
|
492
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
493
|
+
attr_accessor :state
|
|
494
|
+
|
|
495
|
+
def initialize(
|
|
496
|
+
city: nil,
|
|
497
|
+
country: nil,
|
|
498
|
+
line1: nil,
|
|
499
|
+
line2: nil,
|
|
500
|
+
postal_code: nil,
|
|
501
|
+
state: nil
|
|
502
|
+
)
|
|
503
|
+
@city = city
|
|
504
|
+
@country = country
|
|
505
|
+
@line1 = line1
|
|
506
|
+
@line2 = line2
|
|
507
|
+
@postal_code = postal_code
|
|
508
|
+
@state = state
|
|
509
|
+
end
|
|
510
|
+
end
|
|
511
|
+
# Affiliate details for this purchase.
|
|
512
|
+
attr_accessor :affiliate
|
|
513
|
+
# The booking number associated with the car rental.
|
|
514
|
+
attr_accessor :booking_number
|
|
515
|
+
# Class code of the car.
|
|
516
|
+
attr_accessor :car_class_code
|
|
517
|
+
# Make of the car.
|
|
518
|
+
attr_accessor :car_make
|
|
519
|
+
# Model of the car.
|
|
520
|
+
attr_accessor :car_model
|
|
521
|
+
# The name of the rental car company.
|
|
522
|
+
attr_accessor :company
|
|
523
|
+
# The customer service phone number of the car rental company.
|
|
524
|
+
attr_accessor :customer_service_phone_number
|
|
525
|
+
# Number of days the car is being rented.
|
|
526
|
+
attr_accessor :days_rented
|
|
527
|
+
# Delivery details for this purchase.
|
|
528
|
+
attr_accessor :delivery
|
|
529
|
+
# The details of the distance traveled during the rental period.
|
|
530
|
+
attr_accessor :distance
|
|
531
|
+
# The details of the passengers in the travel reservation
|
|
532
|
+
attr_accessor :drivers
|
|
533
|
+
# List of additional charges being billed.
|
|
534
|
+
attr_accessor :extra_charges
|
|
535
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
536
|
+
attr_accessor :no_show
|
|
537
|
+
# Car pick-up address.
|
|
538
|
+
attr_accessor :pickup_address
|
|
539
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
540
|
+
attr_accessor :pickup_at
|
|
541
|
+
# Name of the pickup location.
|
|
542
|
+
attr_accessor :pickup_location_name
|
|
543
|
+
# Rental rate.
|
|
544
|
+
attr_accessor :rate_amount
|
|
545
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
546
|
+
attr_accessor :rate_interval
|
|
547
|
+
# The name of the person or entity renting the car.
|
|
548
|
+
attr_accessor :renter_name
|
|
549
|
+
# Car return address.
|
|
550
|
+
attr_accessor :return_address
|
|
551
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
552
|
+
attr_accessor :return_at
|
|
553
|
+
# Name of the return location.
|
|
554
|
+
attr_accessor :return_location_name
|
|
555
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
556
|
+
attr_accessor :tax_exempt
|
|
557
|
+
# The vehicle identification number.
|
|
558
|
+
attr_accessor :vehicle_identification_number
|
|
559
|
+
|
|
560
|
+
def initialize(
|
|
561
|
+
affiliate: nil,
|
|
562
|
+
booking_number: nil,
|
|
563
|
+
car_class_code: nil,
|
|
564
|
+
car_make: nil,
|
|
565
|
+
car_model: nil,
|
|
566
|
+
company: nil,
|
|
567
|
+
customer_service_phone_number: nil,
|
|
568
|
+
days_rented: nil,
|
|
569
|
+
delivery: nil,
|
|
570
|
+
distance: nil,
|
|
571
|
+
drivers: nil,
|
|
572
|
+
extra_charges: nil,
|
|
573
|
+
no_show: nil,
|
|
574
|
+
pickup_address: nil,
|
|
575
|
+
pickup_at: nil,
|
|
576
|
+
pickup_location_name: nil,
|
|
577
|
+
rate_amount: nil,
|
|
578
|
+
rate_interval: nil,
|
|
579
|
+
renter_name: nil,
|
|
580
|
+
return_address: nil,
|
|
581
|
+
return_at: nil,
|
|
582
|
+
return_location_name: nil,
|
|
583
|
+
tax_exempt: nil,
|
|
584
|
+
vehicle_identification_number: nil
|
|
585
|
+
)
|
|
586
|
+
@affiliate = affiliate
|
|
587
|
+
@booking_number = booking_number
|
|
588
|
+
@car_class_code = car_class_code
|
|
589
|
+
@car_make = car_make
|
|
590
|
+
@car_model = car_model
|
|
591
|
+
@company = company
|
|
592
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
593
|
+
@days_rented = days_rented
|
|
594
|
+
@delivery = delivery
|
|
595
|
+
@distance = distance
|
|
596
|
+
@drivers = drivers
|
|
597
|
+
@extra_charges = extra_charges
|
|
598
|
+
@no_show = no_show
|
|
599
|
+
@pickup_address = pickup_address
|
|
600
|
+
@pickup_at = pickup_at
|
|
601
|
+
@pickup_location_name = pickup_location_name
|
|
602
|
+
@rate_amount = rate_amount
|
|
603
|
+
@rate_interval = rate_interval
|
|
604
|
+
@renter_name = renter_name
|
|
605
|
+
@return_address = return_address
|
|
606
|
+
@return_at = return_at
|
|
607
|
+
@return_location_name = return_location_name
|
|
608
|
+
@tax_exempt = tax_exempt
|
|
609
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
610
|
+
end
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
614
|
+
class Affiliate < ::Stripe::RequestParams
|
|
615
|
+
# Affiliate partner code.
|
|
616
|
+
attr_accessor :code
|
|
617
|
+
# Name of affiliate partner.
|
|
618
|
+
attr_accessor :name
|
|
619
|
+
|
|
620
|
+
def initialize(code: nil, name: nil)
|
|
621
|
+
@code = code
|
|
622
|
+
@name = name
|
|
623
|
+
end
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
class Distance < ::Stripe::RequestParams
|
|
627
|
+
# Distance traveled.
|
|
628
|
+
attr_accessor :amount
|
|
629
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
630
|
+
attr_accessor :unit
|
|
631
|
+
|
|
632
|
+
def initialize(amount: nil, unit: nil)
|
|
633
|
+
@amount = amount
|
|
634
|
+
@unit = unit
|
|
635
|
+
end
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
class Driver < ::Stripe::RequestParams
|
|
639
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
640
|
+
# Day of birth (1-31).
|
|
641
|
+
attr_accessor :day
|
|
642
|
+
# Month of birth (1-12).
|
|
643
|
+
attr_accessor :month
|
|
644
|
+
# Year of birth (must be greater than 1900).
|
|
645
|
+
attr_accessor :year
|
|
646
|
+
|
|
647
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
648
|
+
@day = day
|
|
649
|
+
@month = month
|
|
650
|
+
@year = year
|
|
651
|
+
end
|
|
652
|
+
end
|
|
653
|
+
# Driver's date of birth.
|
|
654
|
+
attr_accessor :date_of_birth
|
|
655
|
+
# Driver's identification number.
|
|
656
|
+
attr_accessor :driver_identification_number
|
|
657
|
+
# Driver's tax number.
|
|
658
|
+
attr_accessor :driver_tax_number
|
|
659
|
+
# Driver's full name.
|
|
660
|
+
attr_accessor :name
|
|
661
|
+
|
|
662
|
+
def initialize(
|
|
663
|
+
date_of_birth: nil,
|
|
664
|
+
driver_identification_number: nil,
|
|
665
|
+
driver_tax_number: nil,
|
|
666
|
+
name: nil
|
|
667
|
+
)
|
|
668
|
+
@date_of_birth = date_of_birth
|
|
669
|
+
@driver_identification_number = driver_identification_number
|
|
670
|
+
@driver_tax_number = driver_tax_number
|
|
671
|
+
@name = name
|
|
672
|
+
end
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
class DropOff < ::Stripe::RequestParams
|
|
676
|
+
class Address < ::Stripe::RequestParams
|
|
677
|
+
# City, district, suburb, town, or village.
|
|
678
|
+
attr_accessor :city
|
|
679
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
680
|
+
attr_accessor :country
|
|
681
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
682
|
+
attr_accessor :line1
|
|
683
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
684
|
+
attr_accessor :line2
|
|
685
|
+
# ZIP or postal code.
|
|
686
|
+
attr_accessor :postal_code
|
|
687
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
688
|
+
attr_accessor :state
|
|
689
|
+
|
|
690
|
+
def initialize(
|
|
691
|
+
city: nil,
|
|
692
|
+
country: nil,
|
|
693
|
+
line1: nil,
|
|
694
|
+
line2: nil,
|
|
695
|
+
postal_code: nil,
|
|
696
|
+
state: nil
|
|
697
|
+
)
|
|
698
|
+
@city = city
|
|
699
|
+
@country = country
|
|
700
|
+
@line1 = line1
|
|
701
|
+
@line2 = line2
|
|
702
|
+
@postal_code = postal_code
|
|
703
|
+
@state = state
|
|
704
|
+
end
|
|
705
|
+
end
|
|
706
|
+
# Address of the rental location.
|
|
707
|
+
attr_accessor :address
|
|
708
|
+
# Location name.
|
|
709
|
+
attr_accessor :location_name
|
|
710
|
+
# Timestamp for the location.
|
|
711
|
+
attr_accessor :time
|
|
712
|
+
|
|
713
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
714
|
+
@address = address
|
|
715
|
+
@location_name = location_name
|
|
716
|
+
@time = time
|
|
717
|
+
end
|
|
718
|
+
end
|
|
719
|
+
|
|
720
|
+
class Insurance < ::Stripe::RequestParams
|
|
721
|
+
# Amount of the insurance coverage in cents.
|
|
722
|
+
attr_accessor :amount
|
|
723
|
+
# Currency of the insurance amount.
|
|
724
|
+
attr_accessor :currency
|
|
725
|
+
# Name of the insurance company.
|
|
726
|
+
attr_accessor :insurance_company_name
|
|
727
|
+
# Type of insurance coverage.
|
|
728
|
+
attr_accessor :insurance_type
|
|
729
|
+
|
|
730
|
+
def initialize(
|
|
731
|
+
amount: nil,
|
|
732
|
+
currency: nil,
|
|
733
|
+
insurance_company_name: nil,
|
|
734
|
+
insurance_type: nil
|
|
735
|
+
)
|
|
736
|
+
@amount = amount
|
|
737
|
+
@currency = currency
|
|
738
|
+
@insurance_company_name = insurance_company_name
|
|
739
|
+
@insurance_type = insurance_type
|
|
740
|
+
end
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
class Pickup < ::Stripe::RequestParams
|
|
744
|
+
class Address < ::Stripe::RequestParams
|
|
745
|
+
# City, district, suburb, town, or village.
|
|
746
|
+
attr_accessor :city
|
|
747
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
748
|
+
attr_accessor :country
|
|
749
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
750
|
+
attr_accessor :line1
|
|
751
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
752
|
+
attr_accessor :line2
|
|
753
|
+
# ZIP or postal code.
|
|
754
|
+
attr_accessor :postal_code
|
|
755
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
756
|
+
attr_accessor :state
|
|
757
|
+
|
|
758
|
+
def initialize(
|
|
759
|
+
city: nil,
|
|
760
|
+
country: nil,
|
|
761
|
+
line1: nil,
|
|
762
|
+
line2: nil,
|
|
763
|
+
postal_code: nil,
|
|
764
|
+
state: nil
|
|
765
|
+
)
|
|
766
|
+
@city = city
|
|
767
|
+
@country = country
|
|
768
|
+
@line1 = line1
|
|
769
|
+
@line2 = line2
|
|
770
|
+
@postal_code = postal_code
|
|
771
|
+
@state = state
|
|
772
|
+
end
|
|
773
|
+
end
|
|
774
|
+
# Address of the rental location.
|
|
775
|
+
attr_accessor :address
|
|
776
|
+
# Location name.
|
|
777
|
+
attr_accessor :location_name
|
|
778
|
+
# Timestamp for the location.
|
|
779
|
+
attr_accessor :time
|
|
780
|
+
|
|
781
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
782
|
+
@address = address
|
|
783
|
+
@location_name = location_name
|
|
784
|
+
@time = time
|
|
785
|
+
end
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
class Total < ::Stripe::RequestParams
|
|
789
|
+
class Discounts < ::Stripe::RequestParams
|
|
790
|
+
# Corporate client discount code.
|
|
791
|
+
attr_accessor :corporate_client_code
|
|
792
|
+
# Coupon code applied to the rental.
|
|
793
|
+
attr_accessor :coupon
|
|
794
|
+
# Maximum number of free miles or kilometers included.
|
|
795
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
796
|
+
|
|
797
|
+
def initialize(
|
|
798
|
+
corporate_client_code: nil,
|
|
799
|
+
coupon: nil,
|
|
800
|
+
maximum_free_miles_or_kilometers: nil
|
|
801
|
+
)
|
|
802
|
+
@corporate_client_code = corporate_client_code
|
|
803
|
+
@coupon = coupon
|
|
804
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
805
|
+
end
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
809
|
+
# Amount of the extra charge in cents.
|
|
810
|
+
attr_accessor :amount
|
|
811
|
+
# Type of extra charge.
|
|
812
|
+
attr_accessor :type
|
|
813
|
+
|
|
814
|
+
def initialize(amount: nil, type: nil)
|
|
815
|
+
@amount = amount
|
|
816
|
+
@type = type
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
class Tax < ::Stripe::RequestParams
|
|
821
|
+
class TaxItem < ::Stripe::RequestParams
|
|
822
|
+
# Tax amount.
|
|
823
|
+
attr_accessor :amount
|
|
824
|
+
# Tax rate applied.
|
|
825
|
+
attr_accessor :rate
|
|
826
|
+
# Type of tax applied.
|
|
827
|
+
attr_accessor :type
|
|
828
|
+
|
|
829
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
830
|
+
@amount = amount
|
|
831
|
+
@rate = rate
|
|
832
|
+
@type = type
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
# Indicates if the transaction is tax exempt.
|
|
836
|
+
attr_accessor :tax_exempt_indicator
|
|
837
|
+
# Array of tax details.
|
|
838
|
+
attr_accessor :tax_items
|
|
839
|
+
|
|
840
|
+
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
841
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
842
|
+
@tax_items = tax_items
|
|
843
|
+
end
|
|
844
|
+
end
|
|
845
|
+
# Total amount in cents.
|
|
846
|
+
attr_accessor :amount
|
|
847
|
+
# Currency of the amount.
|
|
848
|
+
attr_accessor :currency
|
|
849
|
+
# Discount details for the rental.
|
|
850
|
+
attr_accessor :discounts
|
|
851
|
+
# Additional charges for the rental.
|
|
852
|
+
attr_accessor :extra_charges
|
|
853
|
+
# Rate per unit for the rental.
|
|
854
|
+
attr_accessor :rate_per_unit
|
|
855
|
+
# Unit of measurement for the rate.
|
|
856
|
+
attr_accessor :rate_unit
|
|
857
|
+
# Tax breakdown for the rental.
|
|
858
|
+
attr_accessor :tax
|
|
859
|
+
|
|
860
|
+
def initialize(
|
|
861
|
+
amount: nil,
|
|
862
|
+
currency: nil,
|
|
863
|
+
discounts: nil,
|
|
864
|
+
extra_charges: nil,
|
|
865
|
+
rate_per_unit: nil,
|
|
866
|
+
rate_unit: nil,
|
|
867
|
+
tax: nil
|
|
868
|
+
)
|
|
869
|
+
@amount = amount
|
|
870
|
+
@currency = currency
|
|
871
|
+
@discounts = discounts
|
|
872
|
+
@extra_charges = extra_charges
|
|
873
|
+
@rate_per_unit = rate_per_unit
|
|
874
|
+
@rate_unit = rate_unit
|
|
875
|
+
@tax = tax
|
|
876
|
+
end
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
class Vehicle < ::Stripe::RequestParams
|
|
880
|
+
# Make of the rental vehicle.
|
|
881
|
+
attr_accessor :make
|
|
882
|
+
# Model of the rental vehicle.
|
|
883
|
+
attr_accessor :model
|
|
884
|
+
# Odometer reading at the time of rental.
|
|
885
|
+
attr_accessor :odometer
|
|
886
|
+
# Type of the rental vehicle.
|
|
887
|
+
attr_accessor :type
|
|
888
|
+
# Class of the rental vehicle.
|
|
889
|
+
attr_accessor :vehicle_class
|
|
890
|
+
# Vehicle identification number (VIN).
|
|
891
|
+
attr_accessor :vehicle_identification_number
|
|
892
|
+
|
|
893
|
+
def initialize(
|
|
894
|
+
make: nil,
|
|
895
|
+
model: nil,
|
|
896
|
+
odometer: nil,
|
|
897
|
+
type: nil,
|
|
898
|
+
vehicle_class: nil,
|
|
899
|
+
vehicle_identification_number: nil
|
|
900
|
+
)
|
|
901
|
+
@make = make
|
|
902
|
+
@model = model
|
|
903
|
+
@odometer = odometer
|
|
904
|
+
@type = type
|
|
905
|
+
@vehicle_class = vehicle_class
|
|
906
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
907
|
+
end
|
|
908
|
+
end
|
|
909
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
910
|
+
attr_accessor :affiliate
|
|
911
|
+
# Booking confirmation number for the car rental.
|
|
912
|
+
attr_accessor :booking_number
|
|
913
|
+
# Name of the car rental company.
|
|
914
|
+
attr_accessor :carrier_name
|
|
915
|
+
# Customer service phone number for the car rental company.
|
|
916
|
+
attr_accessor :customer_service_phone_number
|
|
917
|
+
# Number of days the car is being rented.
|
|
918
|
+
attr_accessor :days_rented
|
|
919
|
+
# Distance details for the rental.
|
|
920
|
+
attr_accessor :distance
|
|
921
|
+
# List of drivers for the rental.
|
|
922
|
+
attr_accessor :drivers
|
|
923
|
+
# Drop-off location details.
|
|
924
|
+
attr_accessor :drop_off
|
|
925
|
+
# Insurance details for the rental.
|
|
926
|
+
attr_accessor :insurances
|
|
927
|
+
# Indicates if the customer was a no-show.
|
|
928
|
+
attr_accessor :no_show_indicator
|
|
929
|
+
# Pickup location details.
|
|
930
|
+
attr_accessor :pickup
|
|
931
|
+
# Name of the person renting the vehicle.
|
|
932
|
+
attr_accessor :renter_name
|
|
933
|
+
# Total cost breakdown for the rental.
|
|
934
|
+
attr_accessor :total
|
|
935
|
+
# Vehicle details for the rental.
|
|
936
|
+
attr_accessor :vehicle
|
|
937
|
+
|
|
938
|
+
def initialize(
|
|
939
|
+
affiliate: nil,
|
|
940
|
+
booking_number: nil,
|
|
941
|
+
carrier_name: nil,
|
|
942
|
+
customer_service_phone_number: nil,
|
|
943
|
+
days_rented: nil,
|
|
944
|
+
distance: nil,
|
|
945
|
+
drivers: nil,
|
|
946
|
+
drop_off: nil,
|
|
947
|
+
insurances: nil,
|
|
948
|
+
no_show_indicator: nil,
|
|
949
|
+
pickup: nil,
|
|
950
|
+
renter_name: nil,
|
|
951
|
+
total: nil,
|
|
952
|
+
vehicle: nil
|
|
953
|
+
)
|
|
954
|
+
@affiliate = affiliate
|
|
955
|
+
@booking_number = booking_number
|
|
956
|
+
@carrier_name = carrier_name
|
|
957
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
958
|
+
@days_rented = days_rented
|
|
959
|
+
@distance = distance
|
|
960
|
+
@drivers = drivers
|
|
961
|
+
@drop_off = drop_off
|
|
962
|
+
@insurances = insurances
|
|
963
|
+
@no_show_indicator = no_show_indicator
|
|
964
|
+
@pickup = pickup
|
|
965
|
+
@renter_name = renter_name
|
|
966
|
+
@total = total
|
|
967
|
+
@vehicle = vehicle
|
|
968
|
+
end
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
class EventDetails < ::Stripe::RequestParams
|
|
972
|
+
class Address < ::Stripe::RequestParams
|
|
973
|
+
# City, district, suburb, town, or village.
|
|
974
|
+
attr_accessor :city
|
|
975
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
976
|
+
attr_accessor :country
|
|
977
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
978
|
+
attr_accessor :line1
|
|
979
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
980
|
+
attr_accessor :line2
|
|
981
|
+
# ZIP or postal code.
|
|
982
|
+
attr_accessor :postal_code
|
|
983
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
984
|
+
attr_accessor :state
|
|
985
|
+
|
|
986
|
+
def initialize(
|
|
987
|
+
city: nil,
|
|
988
|
+
country: nil,
|
|
989
|
+
line1: nil,
|
|
990
|
+
line2: nil,
|
|
991
|
+
postal_code: nil,
|
|
992
|
+
state: nil
|
|
993
|
+
)
|
|
994
|
+
@city = city
|
|
995
|
+
@country = country
|
|
996
|
+
@line1 = line1
|
|
997
|
+
@line2 = line2
|
|
998
|
+
@postal_code = postal_code
|
|
999
|
+
@state = state
|
|
1000
|
+
end
|
|
1001
|
+
end
|
|
1002
|
+
|
|
1003
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1004
|
+
# The name of the affiliate that originated the purchase.
|
|
1005
|
+
attr_accessor :name
|
|
1006
|
+
|
|
1007
|
+
def initialize(name: nil)
|
|
1008
|
+
@name = name
|
|
1009
|
+
end
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
class Delivery < ::Stripe::RequestParams
|
|
1013
|
+
class Recipient < ::Stripe::RequestParams
|
|
1014
|
+
# The email of the recipient the ticket is delivered to.
|
|
1015
|
+
attr_accessor :email
|
|
1016
|
+
# The name of the recipient the ticket is delivered to.
|
|
1017
|
+
attr_accessor :name
|
|
1018
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1019
|
+
attr_accessor :phone
|
|
1020
|
+
|
|
1021
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1022
|
+
@email = email
|
|
1023
|
+
@name = name
|
|
1024
|
+
@phone = phone
|
|
1025
|
+
end
|
|
1026
|
+
end
|
|
1027
|
+
# The delivery method for the payment
|
|
1028
|
+
attr_accessor :mode
|
|
1029
|
+
# Details of the recipient.
|
|
1030
|
+
attr_accessor :recipient
|
|
1031
|
+
|
|
1032
|
+
def initialize(mode: nil, recipient: nil)
|
|
1033
|
+
@mode = mode
|
|
1034
|
+
@recipient = recipient
|
|
1035
|
+
end
|
|
1036
|
+
end
|
|
1037
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
1038
|
+
attr_accessor :access_controlled_venue
|
|
1039
|
+
# The event location's address.
|
|
1040
|
+
attr_accessor :address
|
|
1041
|
+
# Affiliate details for this purchase.
|
|
1042
|
+
attr_accessor :affiliate
|
|
1043
|
+
# The name of the company
|
|
1044
|
+
attr_accessor :company
|
|
1045
|
+
# Delivery details for this purchase.
|
|
1046
|
+
attr_accessor :delivery
|
|
1047
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
1048
|
+
attr_accessor :ends_at
|
|
1049
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
1050
|
+
attr_accessor :genre
|
|
1051
|
+
# The name of the event.
|
|
1052
|
+
attr_accessor :name
|
|
1053
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
1054
|
+
attr_accessor :starts_at
|
|
1055
|
+
|
|
1056
|
+
def initialize(
|
|
1057
|
+
access_controlled_venue: nil,
|
|
1058
|
+
address: nil,
|
|
1059
|
+
affiliate: nil,
|
|
1060
|
+
company: nil,
|
|
1061
|
+
delivery: nil,
|
|
1062
|
+
ends_at: nil,
|
|
1063
|
+
genre: nil,
|
|
1064
|
+
name: nil,
|
|
1065
|
+
starts_at: nil
|
|
1066
|
+
)
|
|
1067
|
+
@access_controlled_venue = access_controlled_venue
|
|
1068
|
+
@address = address
|
|
1069
|
+
@affiliate = affiliate
|
|
1070
|
+
@company = company
|
|
1071
|
+
@delivery = delivery
|
|
1072
|
+
@ends_at = ends_at
|
|
1073
|
+
@genre = genre
|
|
1074
|
+
@name = name
|
|
1075
|
+
@starts_at = starts_at
|
|
1076
|
+
end
|
|
1077
|
+
end
|
|
1078
|
+
|
|
1079
|
+
class FleetDatum < ::Stripe::RequestParams
|
|
1080
|
+
class PrimaryFuelFields < ::Stripe::RequestParams
|
|
1081
|
+
# The fuel brand.
|
|
1082
|
+
attr_accessor :brand
|
|
1083
|
+
|
|
1084
|
+
def initialize(brand: nil)
|
|
1085
|
+
@brand = brand
|
|
1086
|
+
end
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
class Station < ::Stripe::RequestParams
|
|
1090
|
+
class ServiceLocation < ::Stripe::RequestParams
|
|
1091
|
+
# City, district, suburb, town, or village.
|
|
1092
|
+
attr_accessor :city
|
|
1093
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1094
|
+
attr_accessor :country
|
|
1095
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1096
|
+
attr_accessor :line1
|
|
1097
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1098
|
+
attr_accessor :line2
|
|
1099
|
+
# ZIP or postal code.
|
|
1100
|
+
attr_accessor :postal_code
|
|
1101
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1102
|
+
attr_accessor :state
|
|
1103
|
+
|
|
1104
|
+
def initialize(
|
|
1105
|
+
city: nil,
|
|
1106
|
+
country: nil,
|
|
1107
|
+
line1: nil,
|
|
1108
|
+
line2: nil,
|
|
1109
|
+
postal_code: nil,
|
|
1110
|
+
state: nil
|
|
1111
|
+
)
|
|
1112
|
+
@city = city
|
|
1113
|
+
@country = country
|
|
1114
|
+
@line1 = line1
|
|
1115
|
+
@line2 = line2
|
|
1116
|
+
@postal_code = postal_code
|
|
1117
|
+
@state = state
|
|
1118
|
+
end
|
|
1119
|
+
end
|
|
1120
|
+
# Additional contact information for the station.
|
|
1121
|
+
attr_accessor :additional_contact_info
|
|
1122
|
+
# The customer service phone number of the station.
|
|
1123
|
+
attr_accessor :customer_service_phone_number
|
|
1124
|
+
# The partner ID code of the station.
|
|
1125
|
+
attr_accessor :partner_id_code
|
|
1126
|
+
# The phone number of the station.
|
|
1127
|
+
attr_accessor :phone_number
|
|
1128
|
+
# The physical location of the station.
|
|
1129
|
+
attr_accessor :service_location
|
|
1130
|
+
# The URL of the station.
|
|
1131
|
+
attr_accessor :url
|
|
1132
|
+
|
|
1133
|
+
def initialize(
|
|
1134
|
+
additional_contact_info: nil,
|
|
1135
|
+
customer_service_phone_number: nil,
|
|
1136
|
+
partner_id_code: nil,
|
|
1137
|
+
phone_number: nil,
|
|
1138
|
+
service_location: nil,
|
|
1139
|
+
url: nil
|
|
1140
|
+
)
|
|
1141
|
+
@additional_contact_info = additional_contact_info
|
|
1142
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1143
|
+
@partner_id_code = partner_id_code
|
|
1144
|
+
@phone_number = phone_number
|
|
1145
|
+
@service_location = service_location
|
|
1146
|
+
@url = url
|
|
1147
|
+
end
|
|
1148
|
+
end
|
|
1149
|
+
|
|
1150
|
+
class Vat < ::Stripe::RequestParams
|
|
1151
|
+
# Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing.
|
|
1152
|
+
attr_accessor :iob_indicator
|
|
1153
|
+
|
|
1154
|
+
def initialize(iob_indicator: nil)
|
|
1155
|
+
@iob_indicator = iob_indicator
|
|
1156
|
+
end
|
|
1157
|
+
end
|
|
1158
|
+
# Primary fuel fields for the transaction.
|
|
1159
|
+
attr_accessor :primary_fuel_fields
|
|
1160
|
+
# Station and acceptor location details.
|
|
1161
|
+
attr_accessor :station
|
|
1162
|
+
# VAT and Invoice on Behalf (IOB) details.
|
|
1163
|
+
attr_accessor :vat
|
|
1164
|
+
|
|
1165
|
+
def initialize(primary_fuel_fields: nil, station: nil, vat: nil)
|
|
1166
|
+
@primary_fuel_fields = primary_fuel_fields
|
|
1167
|
+
@station = station
|
|
1168
|
+
@vat = vat
|
|
1169
|
+
end
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
class Flight < ::Stripe::RequestParams
|
|
1173
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1174
|
+
# The name of the affiliate that originated the purchase.
|
|
1175
|
+
attr_accessor :name
|
|
1176
|
+
|
|
1177
|
+
def initialize(name: nil)
|
|
1178
|
+
@name = name
|
|
1179
|
+
end
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
class Delivery < ::Stripe::RequestParams
|
|
1183
|
+
class Recipient < ::Stripe::RequestParams
|
|
1184
|
+
# The email of the recipient the ticket is delivered to.
|
|
1185
|
+
attr_accessor :email
|
|
1186
|
+
# The name of the recipient the ticket is delivered to.
|
|
1187
|
+
attr_accessor :name
|
|
1188
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1189
|
+
attr_accessor :phone
|
|
1190
|
+
|
|
1191
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1192
|
+
@email = email
|
|
1193
|
+
@name = name
|
|
1194
|
+
@phone = phone
|
|
1195
|
+
end
|
|
1196
|
+
end
|
|
1197
|
+
# The delivery method for the payment
|
|
1198
|
+
attr_accessor :mode
|
|
1199
|
+
# Details of the recipient.
|
|
1200
|
+
attr_accessor :recipient
|
|
1201
|
+
|
|
1202
|
+
def initialize(mode: nil, recipient: nil)
|
|
1203
|
+
@mode = mode
|
|
1204
|
+
@recipient = recipient
|
|
1205
|
+
end
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
class Passenger < ::Stripe::RequestParams
|
|
1209
|
+
# Full name of the person or entity on the flight reservation.
|
|
1210
|
+
attr_accessor :name
|
|
1211
|
+
|
|
1212
|
+
def initialize(name: nil)
|
|
1213
|
+
@name = name
|
|
1214
|
+
end
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
class Segment < ::Stripe::RequestParams
|
|
1218
|
+
# The flight segment amount.
|
|
1219
|
+
attr_accessor :amount
|
|
1220
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1221
|
+
attr_accessor :arrival_airport
|
|
1222
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1223
|
+
attr_accessor :arrives_at
|
|
1224
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1225
|
+
attr_accessor :carrier
|
|
1226
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1227
|
+
attr_accessor :departs_at
|
|
1228
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1229
|
+
attr_accessor :departure_airport
|
|
1230
|
+
# The flight number associated with the segment
|
|
1231
|
+
attr_accessor :flight_number
|
|
1232
|
+
# The fare class for the segment.
|
|
1233
|
+
attr_accessor :service_class
|
|
1234
|
+
|
|
1235
|
+
def initialize(
|
|
1236
|
+
amount: nil,
|
|
1237
|
+
arrival_airport: nil,
|
|
1238
|
+
arrives_at: nil,
|
|
1239
|
+
carrier: nil,
|
|
1240
|
+
departs_at: nil,
|
|
1241
|
+
departure_airport: nil,
|
|
1242
|
+
flight_number: nil,
|
|
1243
|
+
service_class: nil
|
|
1244
|
+
)
|
|
1245
|
+
@amount = amount
|
|
1246
|
+
@arrival_airport = arrival_airport
|
|
1247
|
+
@arrives_at = arrives_at
|
|
1248
|
+
@carrier = carrier
|
|
1249
|
+
@departs_at = departs_at
|
|
1250
|
+
@departure_airport = departure_airport
|
|
1251
|
+
@flight_number = flight_number
|
|
1252
|
+
@service_class = service_class
|
|
1253
|
+
end
|
|
1254
|
+
end
|
|
1255
|
+
# Affiliate details for this purchase.
|
|
1256
|
+
attr_accessor :affiliate
|
|
1257
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1258
|
+
attr_accessor :agency_number
|
|
1259
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1260
|
+
attr_accessor :carrier
|
|
1261
|
+
# Delivery details for this purchase.
|
|
1262
|
+
attr_accessor :delivery
|
|
1263
|
+
# The name of the person or entity on the reservation.
|
|
1264
|
+
attr_accessor :passenger_name
|
|
1265
|
+
# The details of the passengers in the travel reservation.
|
|
1266
|
+
attr_accessor :passengers
|
|
1267
|
+
# The individual flight segments associated with the trip.
|
|
1268
|
+
attr_accessor :segments
|
|
1269
|
+
# The ticket number associated with the travel reservation.
|
|
1270
|
+
attr_accessor :ticket_number
|
|
1271
|
+
|
|
1272
|
+
def initialize(
|
|
1273
|
+
affiliate: nil,
|
|
1274
|
+
agency_number: nil,
|
|
1275
|
+
carrier: nil,
|
|
1276
|
+
delivery: nil,
|
|
1277
|
+
passenger_name: nil,
|
|
1278
|
+
passengers: nil,
|
|
1279
|
+
segments: nil,
|
|
1280
|
+
ticket_number: nil
|
|
1281
|
+
)
|
|
1282
|
+
@affiliate = affiliate
|
|
1283
|
+
@agency_number = agency_number
|
|
1284
|
+
@carrier = carrier
|
|
1285
|
+
@delivery = delivery
|
|
1286
|
+
@passenger_name = passenger_name
|
|
1287
|
+
@passengers = passengers
|
|
1288
|
+
@segments = segments
|
|
1289
|
+
@ticket_number = ticket_number
|
|
1290
|
+
end
|
|
1291
|
+
end
|
|
1292
|
+
|
|
1293
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1294
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1295
|
+
# Affiliate partner code.
|
|
1296
|
+
attr_accessor :code
|
|
1297
|
+
# Name of affiliate partner.
|
|
1298
|
+
attr_accessor :name
|
|
1299
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1300
|
+
attr_accessor :travel_authorization_code
|
|
1301
|
+
|
|
1302
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1303
|
+
@code = code
|
|
1304
|
+
@name = name
|
|
1305
|
+
@travel_authorization_code = travel_authorization_code
|
|
1306
|
+
end
|
|
1307
|
+
end
|
|
1308
|
+
|
|
1309
|
+
class Insurance < ::Stripe::RequestParams
|
|
1310
|
+
# Insurance cost.
|
|
1311
|
+
attr_accessor :amount
|
|
1312
|
+
# Insurance currency.
|
|
1313
|
+
attr_accessor :currency
|
|
1314
|
+
# Insurance company name.
|
|
1315
|
+
attr_accessor :insurance_company_name
|
|
1316
|
+
# Type of insurance.
|
|
1317
|
+
attr_accessor :insurance_type
|
|
1318
|
+
|
|
1319
|
+
def initialize(
|
|
1320
|
+
amount: nil,
|
|
1321
|
+
currency: nil,
|
|
1322
|
+
insurance_company_name: nil,
|
|
1323
|
+
insurance_type: nil
|
|
1324
|
+
)
|
|
1325
|
+
@amount = amount
|
|
1326
|
+
@currency = currency
|
|
1327
|
+
@insurance_company_name = insurance_company_name
|
|
1328
|
+
@insurance_type = insurance_type
|
|
1329
|
+
end
|
|
1330
|
+
end
|
|
1331
|
+
|
|
1332
|
+
class Passenger < ::Stripe::RequestParams
|
|
1333
|
+
# Passenger's full name.
|
|
1334
|
+
attr_accessor :name
|
|
1335
|
+
|
|
1336
|
+
def initialize(name: nil)
|
|
1337
|
+
@name = name
|
|
1338
|
+
end
|
|
1339
|
+
end
|
|
1340
|
+
|
|
1341
|
+
class Segment < ::Stripe::RequestParams
|
|
1342
|
+
class Arrival < ::Stripe::RequestParams
|
|
1343
|
+
# Arrival airport IATA code.
|
|
1344
|
+
attr_accessor :airport
|
|
1345
|
+
# Arrival date/time.
|
|
1346
|
+
attr_accessor :arrives_at
|
|
1347
|
+
# Arrival city.
|
|
1348
|
+
attr_accessor :city
|
|
1349
|
+
# Arrival country.
|
|
1350
|
+
attr_accessor :country
|
|
1351
|
+
|
|
1352
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1353
|
+
@airport = airport
|
|
1354
|
+
@arrives_at = arrives_at
|
|
1355
|
+
@city = city
|
|
1356
|
+
@country = country
|
|
1357
|
+
end
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1360
|
+
class Departure < ::Stripe::RequestParams
|
|
1361
|
+
# Departure airport IATA code.
|
|
1362
|
+
attr_accessor :airport
|
|
1363
|
+
# Departure city.
|
|
1364
|
+
attr_accessor :city
|
|
1365
|
+
# Departure country.
|
|
1366
|
+
attr_accessor :country
|
|
1367
|
+
# Departure date/time.
|
|
1368
|
+
attr_accessor :departs_at
|
|
1369
|
+
|
|
1370
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1371
|
+
@airport = airport
|
|
1372
|
+
@city = city
|
|
1373
|
+
@country = country
|
|
1374
|
+
@departs_at = departs_at
|
|
1375
|
+
end
|
|
1376
|
+
end
|
|
1377
|
+
# Segment fare amount.
|
|
1378
|
+
attr_accessor :amount
|
|
1379
|
+
# Arrival details.
|
|
1380
|
+
attr_accessor :arrival
|
|
1381
|
+
# Airline carrier code.
|
|
1382
|
+
attr_accessor :carrier_code
|
|
1383
|
+
# Carrier name.
|
|
1384
|
+
attr_accessor :carrier_name
|
|
1385
|
+
# Segment currency.
|
|
1386
|
+
attr_accessor :currency
|
|
1387
|
+
# Departure details.
|
|
1388
|
+
attr_accessor :departure
|
|
1389
|
+
# Exchange ticket number.
|
|
1390
|
+
attr_accessor :exchange_ticket_number
|
|
1391
|
+
# Fare basis code.
|
|
1392
|
+
attr_accessor :fare_basis_code
|
|
1393
|
+
# Additional fees.
|
|
1394
|
+
attr_accessor :fees
|
|
1395
|
+
# Flight number.
|
|
1396
|
+
attr_accessor :flight_number
|
|
1397
|
+
# Stopover indicator.
|
|
1398
|
+
attr_accessor :is_stop_over_indicator
|
|
1399
|
+
# Refundable ticket indicator.
|
|
1400
|
+
attr_accessor :refundable
|
|
1401
|
+
# Class of service.
|
|
1402
|
+
attr_accessor :service_class
|
|
1403
|
+
# Tax amount for segment.
|
|
1404
|
+
attr_accessor :tax_amount
|
|
1405
|
+
# Ticket number.
|
|
1406
|
+
attr_accessor :ticket_number
|
|
1407
|
+
|
|
1408
|
+
def initialize(
|
|
1409
|
+
amount: nil,
|
|
1410
|
+
arrival: nil,
|
|
1411
|
+
carrier_code: nil,
|
|
1412
|
+
carrier_name: nil,
|
|
1413
|
+
currency: nil,
|
|
1414
|
+
departure: nil,
|
|
1415
|
+
exchange_ticket_number: nil,
|
|
1416
|
+
fare_basis_code: nil,
|
|
1417
|
+
fees: nil,
|
|
1418
|
+
flight_number: nil,
|
|
1419
|
+
is_stop_over_indicator: nil,
|
|
1420
|
+
refundable: nil,
|
|
1421
|
+
service_class: nil,
|
|
1422
|
+
tax_amount: nil,
|
|
1423
|
+
ticket_number: nil
|
|
1424
|
+
)
|
|
1425
|
+
@amount = amount
|
|
1426
|
+
@arrival = arrival
|
|
1427
|
+
@carrier_code = carrier_code
|
|
1428
|
+
@carrier_name = carrier_name
|
|
1429
|
+
@currency = currency
|
|
1430
|
+
@departure = departure
|
|
1431
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1432
|
+
@fare_basis_code = fare_basis_code
|
|
1433
|
+
@fees = fees
|
|
1434
|
+
@flight_number = flight_number
|
|
1435
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1436
|
+
@refundable = refundable
|
|
1437
|
+
@service_class = service_class
|
|
1438
|
+
@tax_amount = tax_amount
|
|
1439
|
+
@ticket_number = ticket_number
|
|
1440
|
+
end
|
|
1441
|
+
end
|
|
1442
|
+
|
|
1443
|
+
class Total < ::Stripe::RequestParams
|
|
1444
|
+
class Discounts < ::Stripe::RequestParams
|
|
1445
|
+
# Corporate client discount code.
|
|
1446
|
+
attr_accessor :corporate_client_code
|
|
1447
|
+
|
|
1448
|
+
def initialize(corporate_client_code: nil)
|
|
1449
|
+
@corporate_client_code = corporate_client_code
|
|
1450
|
+
end
|
|
1451
|
+
end
|
|
1452
|
+
|
|
1453
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1454
|
+
# Amount of additional charges.
|
|
1455
|
+
attr_accessor :amount
|
|
1456
|
+
# Type of additional charges.
|
|
1457
|
+
attr_accessor :type
|
|
1458
|
+
|
|
1459
|
+
def initialize(amount: nil, type: nil)
|
|
1460
|
+
@amount = amount
|
|
1461
|
+
@type = type
|
|
1462
|
+
end
|
|
1463
|
+
end
|
|
1464
|
+
|
|
1465
|
+
class Tax < ::Stripe::RequestParams
|
|
1466
|
+
class TaxItem < ::Stripe::RequestParams
|
|
1467
|
+
# Tax amount.
|
|
1468
|
+
attr_accessor :amount
|
|
1469
|
+
# Tax rate.
|
|
1470
|
+
attr_accessor :rate
|
|
1471
|
+
# Type of tax.
|
|
1472
|
+
attr_accessor :type
|
|
1473
|
+
|
|
1474
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1475
|
+
@amount = amount
|
|
1476
|
+
@rate = rate
|
|
1477
|
+
@type = type
|
|
1478
|
+
end
|
|
1479
|
+
end
|
|
1480
|
+
# Array of tax details.
|
|
1481
|
+
attr_accessor :tax_items
|
|
1482
|
+
|
|
1483
|
+
def initialize(tax_items: nil)
|
|
1484
|
+
@tax_items = tax_items
|
|
1485
|
+
end
|
|
1486
|
+
end
|
|
1487
|
+
# Total flight amount.
|
|
1488
|
+
attr_accessor :amount
|
|
1489
|
+
# Reason for credit.
|
|
1490
|
+
attr_accessor :credit_reason
|
|
1491
|
+
# Total currency.
|
|
1492
|
+
attr_accessor :currency
|
|
1493
|
+
# Discount details.
|
|
1494
|
+
attr_accessor :discounts
|
|
1495
|
+
# Additional charges.
|
|
1496
|
+
attr_accessor :extra_charges
|
|
1497
|
+
# Tax breakdown.
|
|
1498
|
+
attr_accessor :tax
|
|
1499
|
+
|
|
1500
|
+
def initialize(
|
|
1501
|
+
amount: nil,
|
|
1502
|
+
credit_reason: nil,
|
|
1503
|
+
currency: nil,
|
|
1504
|
+
discounts: nil,
|
|
1505
|
+
extra_charges: nil,
|
|
1506
|
+
tax: nil
|
|
1507
|
+
)
|
|
1508
|
+
@amount = amount
|
|
1509
|
+
@credit_reason = credit_reason
|
|
1510
|
+
@currency = currency
|
|
1511
|
+
@discounts = discounts
|
|
1512
|
+
@extra_charges = extra_charges
|
|
1513
|
+
@tax = tax
|
|
1514
|
+
end
|
|
1515
|
+
end
|
|
1516
|
+
# Affiliate details if applicable.
|
|
1517
|
+
attr_accessor :affiliate
|
|
1518
|
+
# Reservation reference.
|
|
1519
|
+
attr_accessor :booking_number
|
|
1520
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1521
|
+
attr_accessor :computerized_reservation_system
|
|
1522
|
+
# Ticket restrictions.
|
|
1523
|
+
attr_accessor :endorsements_and_restrictions
|
|
1524
|
+
# List of insurances.
|
|
1525
|
+
attr_accessor :insurances
|
|
1526
|
+
# List of passengers.
|
|
1527
|
+
attr_accessor :passengers
|
|
1528
|
+
# List of flight segments.
|
|
1529
|
+
attr_accessor :segments
|
|
1530
|
+
# Electronic ticket indicator.
|
|
1531
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1532
|
+
# Total cost breakdown.
|
|
1533
|
+
attr_accessor :total
|
|
1534
|
+
# Type of flight transaction.
|
|
1535
|
+
attr_accessor :transaction_type
|
|
1536
|
+
|
|
1537
|
+
def initialize(
|
|
1538
|
+
affiliate: nil,
|
|
1539
|
+
booking_number: nil,
|
|
1540
|
+
computerized_reservation_system: nil,
|
|
1541
|
+
endorsements_and_restrictions: nil,
|
|
1542
|
+
insurances: nil,
|
|
1543
|
+
passengers: nil,
|
|
1544
|
+
segments: nil,
|
|
1545
|
+
ticket_electronically_issued_indicator: nil,
|
|
1546
|
+
total: nil,
|
|
1547
|
+
transaction_type: nil
|
|
1548
|
+
)
|
|
1549
|
+
@affiliate = affiliate
|
|
1550
|
+
@booking_number = booking_number
|
|
1551
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1552
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1553
|
+
@insurances = insurances
|
|
1554
|
+
@passengers = passengers
|
|
1555
|
+
@segments = segments
|
|
1556
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1557
|
+
@total = total
|
|
1558
|
+
@transaction_type = transaction_type
|
|
1559
|
+
end
|
|
1560
|
+
end
|
|
1561
|
+
|
|
1562
|
+
class Lodging < ::Stripe::RequestParams
|
|
1563
|
+
class Address < ::Stripe::RequestParams
|
|
1564
|
+
# City, district, suburb, town, or village.
|
|
1565
|
+
attr_accessor :city
|
|
1566
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1567
|
+
attr_accessor :country
|
|
1568
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1569
|
+
attr_accessor :line1
|
|
1570
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1571
|
+
attr_accessor :line2
|
|
1572
|
+
# ZIP or postal code.
|
|
1573
|
+
attr_accessor :postal_code
|
|
1574
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1575
|
+
attr_accessor :state
|
|
1576
|
+
|
|
1577
|
+
def initialize(
|
|
1578
|
+
city: nil,
|
|
1579
|
+
country: nil,
|
|
1580
|
+
line1: nil,
|
|
1581
|
+
line2: nil,
|
|
1582
|
+
postal_code: nil,
|
|
1583
|
+
state: nil
|
|
1584
|
+
)
|
|
1585
|
+
@city = city
|
|
1586
|
+
@country = country
|
|
1587
|
+
@line1 = line1
|
|
1588
|
+
@line2 = line2
|
|
1589
|
+
@postal_code = postal_code
|
|
1590
|
+
@state = state
|
|
1591
|
+
end
|
|
1592
|
+
end
|
|
1593
|
+
|
|
1594
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1595
|
+
# The name of the affiliate that originated the purchase.
|
|
1596
|
+
attr_accessor :name
|
|
1597
|
+
|
|
1598
|
+
def initialize(name: nil)
|
|
1599
|
+
@name = name
|
|
1600
|
+
end
|
|
1601
|
+
end
|
|
1602
|
+
|
|
1603
|
+
class Delivery < ::Stripe::RequestParams
|
|
1604
|
+
class Recipient < ::Stripe::RequestParams
|
|
1605
|
+
# The email of the recipient the ticket is delivered to.
|
|
1606
|
+
attr_accessor :email
|
|
1607
|
+
# The name of the recipient the ticket is delivered to.
|
|
1608
|
+
attr_accessor :name
|
|
1609
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1610
|
+
attr_accessor :phone
|
|
1611
|
+
|
|
1612
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1613
|
+
@email = email
|
|
1614
|
+
@name = name
|
|
1615
|
+
@phone = phone
|
|
1616
|
+
end
|
|
1617
|
+
end
|
|
1618
|
+
# The delivery method for the payment
|
|
1619
|
+
attr_accessor :mode
|
|
1620
|
+
# Details of the recipient.
|
|
1621
|
+
attr_accessor :recipient
|
|
1622
|
+
|
|
1623
|
+
def initialize(mode: nil, recipient: nil)
|
|
1624
|
+
@mode = mode
|
|
1625
|
+
@recipient = recipient
|
|
1626
|
+
end
|
|
1627
|
+
end
|
|
1628
|
+
|
|
1629
|
+
class Passenger < ::Stripe::RequestParams
|
|
1630
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1631
|
+
attr_accessor :name
|
|
1632
|
+
|
|
1633
|
+
def initialize(name: nil)
|
|
1634
|
+
@name = name
|
|
1635
|
+
end
|
|
1636
|
+
end
|
|
1637
|
+
# The lodging location's address.
|
|
1638
|
+
attr_accessor :address
|
|
1639
|
+
# The number of adults on the booking
|
|
1640
|
+
attr_accessor :adults
|
|
1641
|
+
# Affiliate details for this purchase.
|
|
1642
|
+
attr_accessor :affiliate
|
|
1643
|
+
# The booking number associated with the lodging reservation.
|
|
1644
|
+
attr_accessor :booking_number
|
|
1645
|
+
# The lodging category
|
|
1646
|
+
attr_accessor :category
|
|
1647
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1648
|
+
attr_accessor :checkin_at
|
|
1649
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1650
|
+
attr_accessor :checkout_at
|
|
1651
|
+
# The customer service phone number of the lodging company.
|
|
1652
|
+
attr_accessor :customer_service_phone_number
|
|
1653
|
+
# The daily lodging room rate.
|
|
1654
|
+
attr_accessor :daily_room_rate_amount
|
|
1655
|
+
# Delivery details for this purchase.
|
|
1656
|
+
attr_accessor :delivery
|
|
1657
|
+
# List of additional charges being billed.
|
|
1658
|
+
attr_accessor :extra_charges
|
|
1659
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1660
|
+
attr_accessor :fire_safety_act_compliance
|
|
1661
|
+
# The name of the lodging location.
|
|
1662
|
+
attr_accessor :name
|
|
1663
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1664
|
+
attr_accessor :no_show
|
|
1665
|
+
# The number of rooms on the booking
|
|
1666
|
+
attr_accessor :number_of_rooms
|
|
1667
|
+
# The details of the passengers in the travel reservation
|
|
1668
|
+
attr_accessor :passengers
|
|
1669
|
+
# The phone number of the lodging location.
|
|
1670
|
+
attr_accessor :property_phone_number
|
|
1671
|
+
# The room class for this purchase.
|
|
1672
|
+
attr_accessor :room_class
|
|
1673
|
+
# The number of room nights
|
|
1674
|
+
attr_accessor :room_nights
|
|
1675
|
+
# The total tax amount associating with the room reservation.
|
|
1676
|
+
attr_accessor :total_room_tax_amount
|
|
1677
|
+
# The total tax amount
|
|
1678
|
+
attr_accessor :total_tax_amount
|
|
1679
|
+
|
|
1680
|
+
def initialize(
|
|
1681
|
+
address: nil,
|
|
1682
|
+
adults: nil,
|
|
1683
|
+
affiliate: nil,
|
|
1684
|
+
booking_number: nil,
|
|
1685
|
+
category: nil,
|
|
1686
|
+
checkin_at: nil,
|
|
1687
|
+
checkout_at: nil,
|
|
1688
|
+
customer_service_phone_number: nil,
|
|
1689
|
+
daily_room_rate_amount: nil,
|
|
1690
|
+
delivery: nil,
|
|
1691
|
+
extra_charges: nil,
|
|
1692
|
+
fire_safety_act_compliance: nil,
|
|
1693
|
+
name: nil,
|
|
1694
|
+
no_show: nil,
|
|
1695
|
+
number_of_rooms: nil,
|
|
1696
|
+
passengers: nil,
|
|
1697
|
+
property_phone_number: nil,
|
|
1698
|
+
room_class: nil,
|
|
1699
|
+
room_nights: nil,
|
|
1700
|
+
total_room_tax_amount: nil,
|
|
1701
|
+
total_tax_amount: nil
|
|
1702
|
+
)
|
|
1703
|
+
@address = address
|
|
1704
|
+
@adults = adults
|
|
1705
|
+
@affiliate = affiliate
|
|
1706
|
+
@booking_number = booking_number
|
|
1707
|
+
@category = category
|
|
1708
|
+
@checkin_at = checkin_at
|
|
1709
|
+
@checkout_at = checkout_at
|
|
1710
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1711
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1712
|
+
@delivery = delivery
|
|
1713
|
+
@extra_charges = extra_charges
|
|
1714
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1715
|
+
@name = name
|
|
1716
|
+
@no_show = no_show
|
|
1717
|
+
@number_of_rooms = number_of_rooms
|
|
1718
|
+
@passengers = passengers
|
|
1719
|
+
@property_phone_number = property_phone_number
|
|
1720
|
+
@room_class = room_class
|
|
1721
|
+
@room_nights = room_nights
|
|
1722
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1723
|
+
@total_tax_amount = total_tax_amount
|
|
1724
|
+
end
|
|
1725
|
+
end
|
|
1726
|
+
|
|
1727
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1728
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1729
|
+
# Type of accommodation.
|
|
1730
|
+
attr_accessor :accommodation_type
|
|
1731
|
+
# Bed type.
|
|
1732
|
+
attr_accessor :bed_type
|
|
1733
|
+
# Daily accommodation rate in cents.
|
|
1734
|
+
attr_accessor :daily_rate_amount
|
|
1735
|
+
# Number of nights.
|
|
1736
|
+
attr_accessor :nights
|
|
1737
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1738
|
+
attr_accessor :number_of_rooms
|
|
1739
|
+
# Rate type.
|
|
1740
|
+
attr_accessor :rate_type
|
|
1741
|
+
# Whether smoking is allowed.
|
|
1742
|
+
attr_accessor :smoking_indicator
|
|
1743
|
+
|
|
1744
|
+
def initialize(
|
|
1745
|
+
accommodation_type: nil,
|
|
1746
|
+
bed_type: nil,
|
|
1747
|
+
daily_rate_amount: nil,
|
|
1748
|
+
nights: nil,
|
|
1749
|
+
number_of_rooms: nil,
|
|
1750
|
+
rate_type: nil,
|
|
1751
|
+
smoking_indicator: nil
|
|
1752
|
+
)
|
|
1753
|
+
@accommodation_type = accommodation_type
|
|
1754
|
+
@bed_type = bed_type
|
|
1755
|
+
@daily_rate_amount = daily_rate_amount
|
|
1756
|
+
@nights = nights
|
|
1757
|
+
@number_of_rooms = number_of_rooms
|
|
1758
|
+
@rate_type = rate_type
|
|
1759
|
+
@smoking_indicator = smoking_indicator
|
|
1760
|
+
end
|
|
1761
|
+
end
|
|
1762
|
+
|
|
1763
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1764
|
+
# Affiliate partner code.
|
|
1765
|
+
attr_accessor :code
|
|
1766
|
+
# Affiliate partner name.
|
|
1767
|
+
attr_accessor :name
|
|
1768
|
+
|
|
1769
|
+
def initialize(code: nil, name: nil)
|
|
1770
|
+
@code = code
|
|
1771
|
+
@name = name
|
|
1772
|
+
end
|
|
1773
|
+
end
|
|
1774
|
+
|
|
1775
|
+
class Guest < ::Stripe::RequestParams
|
|
1776
|
+
# Guest's full name.
|
|
1777
|
+
attr_accessor :name
|
|
1778
|
+
|
|
1779
|
+
def initialize(name: nil)
|
|
1780
|
+
@name = name
|
|
1781
|
+
end
|
|
1782
|
+
end
|
|
1783
|
+
|
|
1784
|
+
class Host < ::Stripe::RequestParams
|
|
1785
|
+
class Address < ::Stripe::RequestParams
|
|
1786
|
+
# City, district, suburb, town, or village.
|
|
1787
|
+
attr_accessor :city
|
|
1788
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1789
|
+
attr_accessor :country
|
|
1790
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1791
|
+
attr_accessor :line1
|
|
1792
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1793
|
+
attr_accessor :line2
|
|
1794
|
+
# ZIP or postal code.
|
|
1795
|
+
attr_accessor :postal_code
|
|
1796
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1797
|
+
attr_accessor :state
|
|
1798
|
+
|
|
1799
|
+
def initialize(
|
|
1800
|
+
city: nil,
|
|
1801
|
+
country: nil,
|
|
1802
|
+
line1: nil,
|
|
1803
|
+
line2: nil,
|
|
1804
|
+
postal_code: nil,
|
|
1805
|
+
state: nil
|
|
1806
|
+
)
|
|
1807
|
+
@city = city
|
|
1808
|
+
@country = country
|
|
1809
|
+
@line1 = line1
|
|
1810
|
+
@line2 = line2
|
|
1811
|
+
@postal_code = postal_code
|
|
1812
|
+
@state = state
|
|
1813
|
+
end
|
|
1814
|
+
end
|
|
1815
|
+
# Address of the host.
|
|
1816
|
+
attr_accessor :address
|
|
1817
|
+
# Host's country of domicile.
|
|
1818
|
+
attr_accessor :country_of_domicile
|
|
1819
|
+
# Reference number for the host.
|
|
1820
|
+
attr_accessor :host_reference
|
|
1821
|
+
# Type of host.
|
|
1822
|
+
attr_accessor :host_type
|
|
1823
|
+
# Name of the lodging property or host.
|
|
1824
|
+
attr_accessor :name
|
|
1825
|
+
# Total number of reservations for the host.
|
|
1826
|
+
attr_accessor :number_of_reservations
|
|
1827
|
+
# Property phone number.
|
|
1828
|
+
attr_accessor :property_phone_number
|
|
1829
|
+
# Host's registration date.
|
|
1830
|
+
attr_accessor :registered_at
|
|
1831
|
+
|
|
1832
|
+
def initialize(
|
|
1833
|
+
address: nil,
|
|
1834
|
+
country_of_domicile: nil,
|
|
1835
|
+
host_reference: nil,
|
|
1836
|
+
host_type: nil,
|
|
1837
|
+
name: nil,
|
|
1838
|
+
number_of_reservations: nil,
|
|
1839
|
+
property_phone_number: nil,
|
|
1840
|
+
registered_at: nil
|
|
1841
|
+
)
|
|
1842
|
+
@address = address
|
|
1843
|
+
@country_of_domicile = country_of_domicile
|
|
1844
|
+
@host_reference = host_reference
|
|
1845
|
+
@host_type = host_type
|
|
1846
|
+
@name = name
|
|
1847
|
+
@number_of_reservations = number_of_reservations
|
|
1848
|
+
@property_phone_number = property_phone_number
|
|
1849
|
+
@registered_at = registered_at
|
|
1850
|
+
end
|
|
1851
|
+
end
|
|
1852
|
+
|
|
1853
|
+
class Insurance < ::Stripe::RequestParams
|
|
1854
|
+
# Price of the insurance coverage in cents.
|
|
1855
|
+
attr_accessor :amount
|
|
1856
|
+
# Currency of the insurance amount.
|
|
1857
|
+
attr_accessor :currency
|
|
1858
|
+
# Name of the insurance company.
|
|
1859
|
+
attr_accessor :insurance_company_name
|
|
1860
|
+
# Type of insurance coverage.
|
|
1861
|
+
attr_accessor :insurance_type
|
|
1862
|
+
|
|
1863
|
+
def initialize(
|
|
1864
|
+
amount: nil,
|
|
1865
|
+
currency: nil,
|
|
1866
|
+
insurance_company_name: nil,
|
|
1867
|
+
insurance_type: nil
|
|
1868
|
+
)
|
|
1869
|
+
@amount = amount
|
|
1870
|
+
@currency = currency
|
|
1871
|
+
@insurance_company_name = insurance_company_name
|
|
1872
|
+
@insurance_type = insurance_type
|
|
1873
|
+
end
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
class Total < ::Stripe::RequestParams
|
|
1877
|
+
class Discounts < ::Stripe::RequestParams
|
|
1878
|
+
# Corporate client discount code.
|
|
1879
|
+
attr_accessor :corporate_client_code
|
|
1880
|
+
# Coupon code.
|
|
1881
|
+
attr_accessor :coupon
|
|
1882
|
+
|
|
1883
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1884
|
+
@corporate_client_code = corporate_client_code
|
|
1885
|
+
@coupon = coupon
|
|
1886
|
+
end
|
|
1887
|
+
end
|
|
1888
|
+
|
|
1889
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1890
|
+
# Amount of the extra charge in cents.
|
|
1891
|
+
attr_accessor :amount
|
|
1892
|
+
# Type of extra charge.
|
|
1893
|
+
attr_accessor :type
|
|
1894
|
+
|
|
1895
|
+
def initialize(amount: nil, type: nil)
|
|
1896
|
+
@amount = amount
|
|
1897
|
+
@type = type
|
|
1898
|
+
end
|
|
1899
|
+
end
|
|
1900
|
+
|
|
1901
|
+
class Tax < ::Stripe::RequestParams
|
|
1902
|
+
class TaxItem < ::Stripe::RequestParams
|
|
1903
|
+
# Tax amount in cents.
|
|
1904
|
+
attr_accessor :amount
|
|
1905
|
+
# Tax rate.
|
|
1906
|
+
attr_accessor :rate
|
|
1907
|
+
# Type of tax applied.
|
|
1908
|
+
attr_accessor :type
|
|
1909
|
+
|
|
1910
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1911
|
+
@amount = amount
|
|
1912
|
+
@rate = rate
|
|
1913
|
+
@type = type
|
|
1914
|
+
end
|
|
1915
|
+
end
|
|
1916
|
+
# Indicates whether the transaction is tax exempt.
|
|
1917
|
+
attr_accessor :tax_exempt_indicator
|
|
1918
|
+
# Tax details.
|
|
1919
|
+
attr_accessor :tax_items
|
|
1920
|
+
|
|
1921
|
+
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
1922
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1923
|
+
@tax_items = tax_items
|
|
1924
|
+
end
|
|
1925
|
+
end
|
|
1926
|
+
# Total price of the lodging reservation in cents.
|
|
1927
|
+
attr_accessor :amount
|
|
1928
|
+
# Cash advances in cents.
|
|
1929
|
+
attr_accessor :cash_advances
|
|
1930
|
+
# Currency of the total amount.
|
|
1931
|
+
attr_accessor :currency
|
|
1932
|
+
# Discount details for the lodging.
|
|
1933
|
+
attr_accessor :discounts
|
|
1934
|
+
# Additional charges for the lodging.
|
|
1935
|
+
attr_accessor :extra_charges
|
|
1936
|
+
# Prepaid amount in cents.
|
|
1937
|
+
attr_accessor :prepaid_amount
|
|
1938
|
+
# Tax breakdown for the lodging reservation.
|
|
1939
|
+
attr_accessor :tax
|
|
1940
|
+
|
|
1941
|
+
def initialize(
|
|
1942
|
+
amount: nil,
|
|
1943
|
+
cash_advances: nil,
|
|
1944
|
+
currency: nil,
|
|
1945
|
+
discounts: nil,
|
|
1946
|
+
extra_charges: nil,
|
|
1947
|
+
prepaid_amount: nil,
|
|
1948
|
+
tax: nil
|
|
1949
|
+
)
|
|
1950
|
+
@amount = amount
|
|
1951
|
+
@cash_advances = cash_advances
|
|
1952
|
+
@currency = currency
|
|
1953
|
+
@discounts = discounts
|
|
1954
|
+
@extra_charges = extra_charges
|
|
1955
|
+
@prepaid_amount = prepaid_amount
|
|
1956
|
+
@tax = tax
|
|
1957
|
+
end
|
|
1958
|
+
end
|
|
1959
|
+
# Accommodation details for the lodging.
|
|
1960
|
+
attr_accessor :accommodation
|
|
1961
|
+
# Affiliate details if applicable.
|
|
1962
|
+
attr_accessor :affiliate
|
|
1963
|
+
# Booking confirmation number for the lodging.
|
|
1964
|
+
attr_accessor :booking_number
|
|
1965
|
+
# Check-in date.
|
|
1966
|
+
attr_accessor :checkin_at
|
|
1967
|
+
# Check-out date.
|
|
1968
|
+
attr_accessor :checkout_at
|
|
1969
|
+
# Customer service phone number for the lodging company.
|
|
1970
|
+
attr_accessor :customer_service_phone_number
|
|
1971
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1972
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1973
|
+
# List of guests for the lodging.
|
|
1974
|
+
attr_accessor :guests
|
|
1975
|
+
# Host details for the lodging.
|
|
1976
|
+
attr_accessor :host
|
|
1977
|
+
# List of insurances for the lodging.
|
|
1978
|
+
attr_accessor :insurances
|
|
1979
|
+
# Whether the renter is a no-show.
|
|
1980
|
+
attr_accessor :no_show_indicator
|
|
1981
|
+
# Renter ID number for the lodging.
|
|
1982
|
+
attr_accessor :renter_id_number
|
|
1983
|
+
# Renter name for the lodging.
|
|
1984
|
+
attr_accessor :renter_name
|
|
1985
|
+
# Total details for the lodging.
|
|
1986
|
+
attr_accessor :total
|
|
174
1987
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
1988
|
+
def initialize(
|
|
1989
|
+
accommodation: nil,
|
|
1990
|
+
affiliate: nil,
|
|
1991
|
+
booking_number: nil,
|
|
1992
|
+
checkin_at: nil,
|
|
1993
|
+
checkout_at: nil,
|
|
1994
|
+
customer_service_phone_number: nil,
|
|
1995
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1996
|
+
guests: nil,
|
|
1997
|
+
host: nil,
|
|
1998
|
+
insurances: nil,
|
|
1999
|
+
no_show_indicator: nil,
|
|
2000
|
+
renter_id_number: nil,
|
|
2001
|
+
renter_name: nil,
|
|
2002
|
+
total: nil
|
|
2003
|
+
)
|
|
2004
|
+
@accommodation = accommodation
|
|
2005
|
+
@affiliate = affiliate
|
|
2006
|
+
@booking_number = booking_number
|
|
2007
|
+
@checkin_at = checkin_at
|
|
2008
|
+
@checkout_at = checkout_at
|
|
2009
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
2010
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
2011
|
+
@guests = guests
|
|
2012
|
+
@host = host
|
|
2013
|
+
@insurances = insurances
|
|
2014
|
+
@no_show_indicator = no_show_indicator
|
|
2015
|
+
@renter_id_number = renter_id_number
|
|
2016
|
+
@renter_name = renter_name
|
|
2017
|
+
@total = total
|
|
2018
|
+
end
|
|
187
2019
|
end
|
|
188
|
-
end
|
|
189
2020
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
2021
|
+
class MoneyServices < ::Stripe::RequestParams
|
|
2022
|
+
class AccountFunding < ::Stripe::RequestParams
|
|
2023
|
+
class SenderDetails < ::Stripe::RequestParams
|
|
2024
|
+
class Address < ::Stripe::RequestParams
|
|
2025
|
+
# City, district, suburb, town, or village.
|
|
2026
|
+
attr_accessor :city
|
|
2027
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2028
|
+
attr_accessor :country
|
|
2029
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2030
|
+
attr_accessor :line1
|
|
2031
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2032
|
+
attr_accessor :line2
|
|
2033
|
+
# ZIP or postal code.
|
|
2034
|
+
attr_accessor :postal_code
|
|
2035
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2036
|
+
attr_accessor :state
|
|
2037
|
+
|
|
2038
|
+
def initialize(
|
|
2039
|
+
city: nil,
|
|
2040
|
+
country: nil,
|
|
2041
|
+
line1: nil,
|
|
2042
|
+
line2: nil,
|
|
2043
|
+
postal_code: nil,
|
|
2044
|
+
state: nil
|
|
2045
|
+
)
|
|
2046
|
+
@city = city
|
|
2047
|
+
@country = country
|
|
2048
|
+
@line1 = line1
|
|
2049
|
+
@line2 = line2
|
|
2050
|
+
@postal_code = postal_code
|
|
2051
|
+
@state = state
|
|
2052
|
+
end
|
|
2053
|
+
end
|
|
197
2054
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
2055
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
2056
|
+
# Day of birth, between 1 and 31.
|
|
2057
|
+
attr_accessor :day
|
|
2058
|
+
# Month of birth, between 1 and 12.
|
|
2059
|
+
attr_accessor :month
|
|
2060
|
+
# Four-digit year of birth.
|
|
2061
|
+
attr_accessor :year
|
|
2062
|
+
|
|
2063
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2064
|
+
@day = day
|
|
2065
|
+
@month = month
|
|
2066
|
+
@year = year
|
|
2067
|
+
end
|
|
2068
|
+
end
|
|
2069
|
+
# Address.
|
|
2070
|
+
attr_accessor :address
|
|
2071
|
+
# Date of birth.
|
|
2072
|
+
attr_accessor :date_of_birth
|
|
2073
|
+
# Email address.
|
|
2074
|
+
attr_accessor :email
|
|
2075
|
+
# Given (first) name.
|
|
2076
|
+
attr_accessor :given_name
|
|
2077
|
+
# Phone number.
|
|
2078
|
+
attr_accessor :phone
|
|
2079
|
+
# Surname (family name).
|
|
2080
|
+
attr_accessor :surname
|
|
203
2081
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
2082
|
+
def initialize(
|
|
2083
|
+
address: nil,
|
|
2084
|
+
date_of_birth: nil,
|
|
2085
|
+
email: nil,
|
|
2086
|
+
given_name: nil,
|
|
2087
|
+
phone: nil,
|
|
2088
|
+
surname: nil
|
|
2089
|
+
)
|
|
2090
|
+
@address = address
|
|
2091
|
+
@date_of_birth = date_of_birth
|
|
2092
|
+
@email = email
|
|
2093
|
+
@given_name = given_name
|
|
2094
|
+
@phone = phone
|
|
2095
|
+
@surname = surname
|
|
2096
|
+
end
|
|
2097
|
+
end
|
|
2098
|
+
# Inline identity details for the sender of this account funding transaction.
|
|
2099
|
+
attr_accessor :sender_details
|
|
209
2100
|
|
|
210
|
-
def initialize(
|
|
211
|
-
@
|
|
2101
|
+
def initialize(sender_details: nil)
|
|
2102
|
+
@sender_details = sender_details
|
|
212
2103
|
end
|
|
213
2104
|
end
|
|
214
|
-
# Tax arguments for automations
|
|
215
|
-
attr_accessor :tax
|
|
216
2105
|
|
|
217
|
-
|
|
218
|
-
|
|
2106
|
+
class BeneficiaryDetails < ::Stripe::RequestParams
|
|
2107
|
+
class Address < ::Stripe::RequestParams
|
|
2108
|
+
# City, district, suburb, town, or village.
|
|
2109
|
+
attr_accessor :city
|
|
2110
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2111
|
+
attr_accessor :country
|
|
2112
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2113
|
+
attr_accessor :line1
|
|
2114
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2115
|
+
attr_accessor :line2
|
|
2116
|
+
# ZIP or postal code.
|
|
2117
|
+
attr_accessor :postal_code
|
|
2118
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2119
|
+
attr_accessor :state
|
|
2120
|
+
|
|
2121
|
+
def initialize(
|
|
2122
|
+
city: nil,
|
|
2123
|
+
country: nil,
|
|
2124
|
+
line1: nil,
|
|
2125
|
+
line2: nil,
|
|
2126
|
+
postal_code: nil,
|
|
2127
|
+
state: nil
|
|
2128
|
+
)
|
|
2129
|
+
@city = city
|
|
2130
|
+
@country = country
|
|
2131
|
+
@line1 = line1
|
|
2132
|
+
@line2 = line2
|
|
2133
|
+
@postal_code = postal_code
|
|
2134
|
+
@state = state
|
|
2135
|
+
end
|
|
2136
|
+
end
|
|
2137
|
+
|
|
2138
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
2139
|
+
# Day of birth, between 1 and 31.
|
|
2140
|
+
attr_accessor :day
|
|
2141
|
+
# Month of birth, between 1 and 12.
|
|
2142
|
+
attr_accessor :month
|
|
2143
|
+
# Four-digit year of birth.
|
|
2144
|
+
attr_accessor :year
|
|
2145
|
+
|
|
2146
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2147
|
+
@day = day
|
|
2148
|
+
@month = month
|
|
2149
|
+
@year = year
|
|
2150
|
+
end
|
|
2151
|
+
end
|
|
2152
|
+
# An opaque identifier for the beneficiary's account (e.g. bank account number, card first6+last4, or other unique identifier).
|
|
2153
|
+
attr_accessor :account_reference
|
|
2154
|
+
# Address.
|
|
2155
|
+
attr_accessor :address
|
|
2156
|
+
# Date of birth.
|
|
2157
|
+
attr_accessor :date_of_birth
|
|
2158
|
+
# Email address.
|
|
2159
|
+
attr_accessor :email
|
|
2160
|
+
# Given (first) name.
|
|
2161
|
+
attr_accessor :given_name
|
|
2162
|
+
# Phone number.
|
|
2163
|
+
attr_accessor :phone
|
|
2164
|
+
# Surname (family name).
|
|
2165
|
+
attr_accessor :surname
|
|
2166
|
+
|
|
2167
|
+
def initialize(
|
|
2168
|
+
account_reference: nil,
|
|
2169
|
+
address: nil,
|
|
2170
|
+
date_of_birth: nil,
|
|
2171
|
+
email: nil,
|
|
2172
|
+
given_name: nil,
|
|
2173
|
+
phone: nil,
|
|
2174
|
+
surname: nil
|
|
2175
|
+
)
|
|
2176
|
+
@account_reference = account_reference
|
|
2177
|
+
@address = address
|
|
2178
|
+
@date_of_birth = date_of_birth
|
|
2179
|
+
@email = email
|
|
2180
|
+
@given_name = given_name
|
|
2181
|
+
@phone = phone
|
|
2182
|
+
@surname = surname
|
|
2183
|
+
end
|
|
2184
|
+
end
|
|
2185
|
+
# Account funding transaction details including sender information.
|
|
2186
|
+
attr_accessor :account_funding
|
|
2187
|
+
# Inline identity details for the beneficiary of this transaction.
|
|
2188
|
+
attr_accessor :beneficiary_details
|
|
2189
|
+
# The type of money services transaction.
|
|
2190
|
+
attr_accessor :transaction_type
|
|
2191
|
+
|
|
2192
|
+
def initialize(account_funding: nil, beneficiary_details: nil, transaction_type: nil)
|
|
2193
|
+
@account_funding = account_funding
|
|
2194
|
+
@beneficiary_details = beneficiary_details
|
|
2195
|
+
@transaction_type = transaction_type
|
|
219
2196
|
end
|
|
220
2197
|
end
|
|
221
|
-
# Arguments passed in automations
|
|
222
|
-
attr_accessor :inputs
|
|
223
2198
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
2199
|
+
class Subscription < ::Stripe::RequestParams
|
|
2200
|
+
class Affiliate < ::Stripe::RequestParams
|
|
2201
|
+
# The name of the affiliate that originated the purchase.
|
|
2202
|
+
attr_accessor :name
|
|
228
2203
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
2204
|
+
def initialize(name: nil)
|
|
2205
|
+
@name = name
|
|
2206
|
+
end
|
|
2207
|
+
end
|
|
232
2208
|
|
|
233
|
-
class
|
|
234
|
-
# The
|
|
235
|
-
attr_accessor :
|
|
236
|
-
#
|
|
237
|
-
attr_accessor :
|
|
2209
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
2210
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2211
|
+
attr_accessor :count
|
|
2212
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2213
|
+
attr_accessor :interval
|
|
238
2214
|
|
|
239
|
-
def initialize(
|
|
240
|
-
@
|
|
241
|
-
@
|
|
2215
|
+
def initialize(count: nil, interval: nil)
|
|
2216
|
+
@count = count
|
|
2217
|
+
@interval = interval
|
|
242
2218
|
end
|
|
243
2219
|
end
|
|
244
|
-
#
|
|
245
|
-
attr_accessor :
|
|
246
|
-
#
|
|
247
|
-
attr_accessor :
|
|
248
|
-
#
|
|
249
|
-
attr_accessor :
|
|
250
|
-
#
|
|
251
|
-
attr_accessor :
|
|
2220
|
+
# Affiliate details for this purchase.
|
|
2221
|
+
attr_accessor :affiliate
|
|
2222
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
2223
|
+
attr_accessor :auto_renewal
|
|
2224
|
+
# Subscription billing details for this purchase.
|
|
2225
|
+
attr_accessor :billing_interval
|
|
2226
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
2227
|
+
attr_accessor :ends_at
|
|
2228
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
2229
|
+
attr_accessor :name
|
|
2230
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
2231
|
+
attr_accessor :starts_at
|
|
252
2232
|
|
|
253
|
-
def initialize(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
2233
|
+
def initialize(
|
|
2234
|
+
affiliate: nil,
|
|
2235
|
+
auto_renewal: nil,
|
|
2236
|
+
billing_interval: nil,
|
|
2237
|
+
ends_at: nil,
|
|
2238
|
+
name: nil,
|
|
2239
|
+
starts_at: nil
|
|
2240
|
+
)
|
|
2241
|
+
@affiliate = affiliate
|
|
2242
|
+
@auto_renewal = auto_renewal
|
|
2243
|
+
@billing_interval = billing_interval
|
|
2244
|
+
@ends_at = ends_at
|
|
2245
|
+
@name = name
|
|
2246
|
+
@starts_at = starts_at
|
|
258
2247
|
end
|
|
259
2248
|
end
|
|
260
|
-
#
|
|
261
|
-
attr_accessor :
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
class PaymentDetails < ::Stripe::RequestParams
|
|
2249
|
+
# Benefit details for this PaymentIntent
|
|
2250
|
+
attr_accessor :benefit
|
|
2251
|
+
# Car rental details for this PaymentIntent.
|
|
2252
|
+
attr_accessor :car_rental
|
|
2253
|
+
# Car rental data for this PaymentIntent.
|
|
2254
|
+
attr_accessor :car_rental_data
|
|
269
2255
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
270
2256
|
#
|
|
271
2257
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
272
2258
|
attr_accessor :customer_reference
|
|
2259
|
+
# Event details for this PaymentIntent
|
|
2260
|
+
attr_accessor :event_details
|
|
2261
|
+
# Fleet data for this PaymentIntent.
|
|
2262
|
+
attr_accessor :fleet_data
|
|
2263
|
+
# Flight reservation details for this PaymentIntent
|
|
2264
|
+
attr_accessor :flight
|
|
2265
|
+
# Flight data for this PaymentIntent.
|
|
2266
|
+
attr_accessor :flight_data
|
|
2267
|
+
# The ID of the Payment Location for this PaymentIntent.
|
|
2268
|
+
attr_accessor :location
|
|
2269
|
+
# Lodging reservation details for this PaymentIntent
|
|
2270
|
+
attr_accessor :lodging
|
|
2271
|
+
# Lodging data for this PaymentIntent.
|
|
2272
|
+
attr_accessor :lodging_data
|
|
2273
|
+
# Money services details for this PaymentIntent.
|
|
2274
|
+
attr_accessor :money_services
|
|
273
2275
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
274
2276
|
#
|
|
275
2277
|
# 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.
|
|
276
2278
|
attr_accessor :order_reference
|
|
2279
|
+
# Subscription details for this PaymentIntent
|
|
2280
|
+
attr_accessor :subscription
|
|
277
2281
|
|
|
278
|
-
def initialize(
|
|
2282
|
+
def initialize(
|
|
2283
|
+
benefit: nil,
|
|
2284
|
+
car_rental: nil,
|
|
2285
|
+
car_rental_data: nil,
|
|
2286
|
+
customer_reference: nil,
|
|
2287
|
+
event_details: nil,
|
|
2288
|
+
fleet_data: nil,
|
|
2289
|
+
flight: nil,
|
|
2290
|
+
flight_data: nil,
|
|
2291
|
+
location: nil,
|
|
2292
|
+
lodging: nil,
|
|
2293
|
+
lodging_data: nil,
|
|
2294
|
+
money_services: nil,
|
|
2295
|
+
order_reference: nil,
|
|
2296
|
+
subscription: nil
|
|
2297
|
+
)
|
|
2298
|
+
@benefit = benefit
|
|
2299
|
+
@car_rental = car_rental
|
|
2300
|
+
@car_rental_data = car_rental_data
|
|
279
2301
|
@customer_reference = customer_reference
|
|
2302
|
+
@event_details = event_details
|
|
2303
|
+
@fleet_data = fleet_data
|
|
2304
|
+
@flight = flight
|
|
2305
|
+
@flight_data = flight_data
|
|
2306
|
+
@location = location
|
|
2307
|
+
@lodging = lodging
|
|
2308
|
+
@lodging_data = lodging_data
|
|
2309
|
+
@money_services = money_services
|
|
280
2310
|
@order_reference = order_reference
|
|
2311
|
+
@subscription = subscription
|
|
281
2312
|
end
|
|
282
2313
|
end
|
|
283
2314
|
|
|
@@ -418,9 +2449,28 @@ module Stripe
|
|
|
418
2449
|
end
|
|
419
2450
|
end
|
|
420
2451
|
|
|
2452
|
+
class GiftCard < ::Stripe::RequestParams
|
|
2453
|
+
# The gift card ID to redeem
|
|
2454
|
+
attr_accessor :gift_card
|
|
2455
|
+
|
|
2456
|
+
def initialize(gift_card: nil)
|
|
2457
|
+
@gift_card = gift_card
|
|
2458
|
+
end
|
|
2459
|
+
end
|
|
2460
|
+
|
|
421
2461
|
class Giropay < ::Stripe::RequestParams; end
|
|
2462
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
422
2463
|
class Grabpay < ::Stripe::RequestParams; end
|
|
423
2464
|
|
|
2465
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2466
|
+
# Bank where the account is held.
|
|
2467
|
+
attr_accessor :bank
|
|
2468
|
+
|
|
2469
|
+
def initialize(bank: nil)
|
|
2470
|
+
@bank = bank
|
|
2471
|
+
end
|
|
2472
|
+
end
|
|
2473
|
+
|
|
424
2474
|
class Ideal < ::Stripe::RequestParams
|
|
425
2475
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
426
2476
|
attr_accessor :bank
|
|
@@ -518,6 +2568,7 @@ module Stripe
|
|
|
518
2568
|
class Payco < ::Stripe::RequestParams; end
|
|
519
2569
|
class Paynow < ::Stripe::RequestParams; end
|
|
520
2570
|
class Paypal < ::Stripe::RequestParams; end
|
|
2571
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
521
2572
|
|
|
522
2573
|
class Payto < ::Stripe::RequestParams
|
|
523
2574
|
# The account number for the bank account.
|
|
@@ -536,6 +2587,7 @@ module Stripe
|
|
|
536
2587
|
|
|
537
2588
|
class Pix < ::Stripe::RequestParams; end
|
|
538
2589
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2590
|
+
class Qris < ::Stripe::RequestParams; end
|
|
539
2591
|
|
|
540
2592
|
class RadarOptions < ::Stripe::RequestParams
|
|
541
2593
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -546,6 +2598,29 @@ module Stripe
|
|
|
546
2598
|
end
|
|
547
2599
|
end
|
|
548
2600
|
|
|
2601
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2602
|
+
class Dob < ::Stripe::RequestParams
|
|
2603
|
+
# The day of birth, between 1 and 31.
|
|
2604
|
+
attr_accessor :day
|
|
2605
|
+
# The month of birth, between 1 and 12.
|
|
2606
|
+
attr_accessor :month
|
|
2607
|
+
# The four-digit year of birth.
|
|
2608
|
+
attr_accessor :year
|
|
2609
|
+
|
|
2610
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2611
|
+
@day = day
|
|
2612
|
+
@month = month
|
|
2613
|
+
@year = year
|
|
2614
|
+
end
|
|
2615
|
+
end
|
|
2616
|
+
# Customer's date of birth
|
|
2617
|
+
attr_accessor :dob
|
|
2618
|
+
|
|
2619
|
+
def initialize(dob: nil)
|
|
2620
|
+
@dob = dob
|
|
2621
|
+
end
|
|
2622
|
+
end
|
|
2623
|
+
|
|
549
2624
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
550
2625
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
551
2626
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -560,6 +2635,8 @@ module Stripe
|
|
|
560
2635
|
end
|
|
561
2636
|
end
|
|
562
2637
|
|
|
2638
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2639
|
+
|
|
563
2640
|
class Sofort < ::Stripe::RequestParams
|
|
564
2641
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
565
2642
|
attr_accessor :country
|
|
@@ -569,8 +2646,18 @@ module Stripe
|
|
|
569
2646
|
end
|
|
570
2647
|
end
|
|
571
2648
|
|
|
2649
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2650
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2651
|
+
attr_accessor :account
|
|
2652
|
+
|
|
2653
|
+
def initialize(account: nil)
|
|
2654
|
+
@account = account
|
|
2655
|
+
end
|
|
2656
|
+
end
|
|
2657
|
+
|
|
572
2658
|
class Sunbit < ::Stripe::RequestParams; end
|
|
573
2659
|
class Swish < ::Stripe::RequestParams; end
|
|
2660
|
+
class Tamara < ::Stripe::RequestParams; end
|
|
574
2661
|
class Twint < ::Stripe::RequestParams; end
|
|
575
2662
|
|
|
576
2663
|
class Upi < ::Stripe::RequestParams
|
|
@@ -626,6 +2713,7 @@ module Stripe
|
|
|
626
2713
|
end
|
|
627
2714
|
end
|
|
628
2715
|
|
|
2716
|
+
class Vipps < ::Stripe::RequestParams; end
|
|
629
2717
|
class WechatPay < ::Stripe::RequestParams; end
|
|
630
2718
|
class Zip < ::Stripe::RequestParams; end
|
|
631
2719
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
@@ -668,10 +2756,16 @@ module Stripe
|
|
|
668
2756
|
attr_accessor :eps
|
|
669
2757
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
670
2758
|
attr_accessor :fpx
|
|
2759
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
2760
|
+
attr_accessor :gift_card
|
|
671
2761
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
672
2762
|
attr_accessor :giropay
|
|
2763
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2764
|
+
attr_accessor :gopay
|
|
673
2765
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
674
2766
|
attr_accessor :grabpay
|
|
2767
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2768
|
+
attr_accessor :id_bank_transfer
|
|
675
2769
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
676
2770
|
attr_accessor :ideal
|
|
677
2771
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -710,14 +2804,20 @@ module Stripe
|
|
|
710
2804
|
attr_accessor :paynow
|
|
711
2805
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
712
2806
|
attr_accessor :paypal
|
|
2807
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2808
|
+
attr_accessor :paypay
|
|
713
2809
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
714
2810
|
attr_accessor :payto
|
|
715
2811
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
716
2812
|
attr_accessor :pix
|
|
717
2813
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
718
2814
|
attr_accessor :promptpay
|
|
2815
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2816
|
+
attr_accessor :qris
|
|
719
2817
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
720
2818
|
attr_accessor :radar_options
|
|
2819
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2820
|
+
attr_accessor :rechnung
|
|
721
2821
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
722
2822
|
attr_accessor :revolut_pay
|
|
723
2823
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -728,12 +2828,20 @@ module Stripe
|
|
|
728
2828
|
attr_accessor :scalapay
|
|
729
2829
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
730
2830
|
attr_accessor :sepa_debit
|
|
2831
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2832
|
+
attr_accessor :shared_payment_granted_token
|
|
2833
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2834
|
+
attr_accessor :shopeepay
|
|
731
2835
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
732
2836
|
attr_accessor :sofort
|
|
2837
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2838
|
+
attr_accessor :stripe_balance
|
|
733
2839
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
734
2840
|
attr_accessor :sunbit
|
|
735
2841
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
736
2842
|
attr_accessor :swish
|
|
2843
|
+
# If this is a `tamara` PaymentMethod, this hash contains details about the Tamara payment method.
|
|
2844
|
+
attr_accessor :tamara
|
|
737
2845
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
738
2846
|
attr_accessor :twint
|
|
739
2847
|
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
@@ -742,6 +2850,8 @@ module Stripe
|
|
|
742
2850
|
attr_accessor :upi
|
|
743
2851
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
744
2852
|
attr_accessor :us_bank_account
|
|
2853
|
+
# If this is a `vipps` PaymentMethod, this hash contains details about the Vipps payment method.
|
|
2854
|
+
attr_accessor :vipps
|
|
745
2855
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
746
2856
|
attr_accessor :wechat_pay
|
|
747
2857
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
@@ -768,8 +2878,11 @@ module Stripe
|
|
|
768
2878
|
customer_balance: nil,
|
|
769
2879
|
eps: nil,
|
|
770
2880
|
fpx: nil,
|
|
2881
|
+
gift_card: nil,
|
|
771
2882
|
giropay: nil,
|
|
2883
|
+
gopay: nil,
|
|
772
2884
|
grabpay: nil,
|
|
2885
|
+
id_bank_transfer: nil,
|
|
773
2886
|
ideal: nil,
|
|
774
2887
|
interac_present: nil,
|
|
775
2888
|
kakao_pay: nil,
|
|
@@ -789,22 +2902,30 @@ module Stripe
|
|
|
789
2902
|
payco: nil,
|
|
790
2903
|
paynow: nil,
|
|
791
2904
|
paypal: nil,
|
|
2905
|
+
paypay: nil,
|
|
792
2906
|
payto: nil,
|
|
793
2907
|
pix: nil,
|
|
794
2908
|
promptpay: nil,
|
|
2909
|
+
qris: nil,
|
|
795
2910
|
radar_options: nil,
|
|
2911
|
+
rechnung: nil,
|
|
796
2912
|
revolut_pay: nil,
|
|
797
2913
|
samsung_pay: nil,
|
|
798
2914
|
satispay: nil,
|
|
799
2915
|
scalapay: nil,
|
|
800
2916
|
sepa_debit: nil,
|
|
2917
|
+
shared_payment_granted_token: nil,
|
|
2918
|
+
shopeepay: nil,
|
|
801
2919
|
sofort: nil,
|
|
2920
|
+
stripe_balance: nil,
|
|
802
2921
|
sunbit: nil,
|
|
803
2922
|
swish: nil,
|
|
2923
|
+
tamara: nil,
|
|
804
2924
|
twint: nil,
|
|
805
2925
|
type: nil,
|
|
806
2926
|
upi: nil,
|
|
807
2927
|
us_bank_account: nil,
|
|
2928
|
+
vipps: nil,
|
|
808
2929
|
wechat_pay: nil,
|
|
809
2930
|
zip: nil
|
|
810
2931
|
)
|
|
@@ -828,8 +2949,11 @@ module Stripe
|
|
|
828
2949
|
@customer_balance = customer_balance
|
|
829
2950
|
@eps = eps
|
|
830
2951
|
@fpx = fpx
|
|
2952
|
+
@gift_card = gift_card
|
|
831
2953
|
@giropay = giropay
|
|
2954
|
+
@gopay = gopay
|
|
832
2955
|
@grabpay = grabpay
|
|
2956
|
+
@id_bank_transfer = id_bank_transfer
|
|
833
2957
|
@ideal = ideal
|
|
834
2958
|
@interac_present = interac_present
|
|
835
2959
|
@kakao_pay = kakao_pay
|
|
@@ -849,22 +2973,30 @@ module Stripe
|
|
|
849
2973
|
@payco = payco
|
|
850
2974
|
@paynow = paynow
|
|
851
2975
|
@paypal = paypal
|
|
2976
|
+
@paypay = paypay
|
|
852
2977
|
@payto = payto
|
|
853
2978
|
@pix = pix
|
|
854
2979
|
@promptpay = promptpay
|
|
2980
|
+
@qris = qris
|
|
855
2981
|
@radar_options = radar_options
|
|
2982
|
+
@rechnung = rechnung
|
|
856
2983
|
@revolut_pay = revolut_pay
|
|
857
2984
|
@samsung_pay = samsung_pay
|
|
858
2985
|
@satispay = satispay
|
|
859
2986
|
@scalapay = scalapay
|
|
860
2987
|
@sepa_debit = sepa_debit
|
|
2988
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
2989
|
+
@shopeepay = shopeepay
|
|
861
2990
|
@sofort = sofort
|
|
2991
|
+
@stripe_balance = stripe_balance
|
|
862
2992
|
@sunbit = sunbit
|
|
863
2993
|
@swish = swish
|
|
2994
|
+
@tamara = tamara
|
|
864
2995
|
@twint = twint
|
|
865
2996
|
@type = type
|
|
866
2997
|
@upi = upi
|
|
867
2998
|
@us_bank_account = us_bank_account
|
|
2999
|
+
@vipps = vipps
|
|
868
3000
|
@wechat_pay = wechat_pay
|
|
869
3001
|
@zip = zip
|
|
870
3002
|
end
|
|
@@ -1160,6 +3292,18 @@ module Stripe
|
|
|
1160
3292
|
end
|
|
1161
3293
|
|
|
1162
3294
|
class Card < ::Stripe::RequestParams
|
|
3295
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3296
|
+
# Attribute for param field days
|
|
3297
|
+
attr_accessor :days
|
|
3298
|
+
# Attribute for param field hours
|
|
3299
|
+
attr_accessor :hours
|
|
3300
|
+
|
|
3301
|
+
def initialize(days: nil, hours: nil)
|
|
3302
|
+
@days = days
|
|
3303
|
+
@hours = hours
|
|
3304
|
+
end
|
|
3305
|
+
end
|
|
3306
|
+
|
|
1163
3307
|
class Installments < ::Stripe::RequestParams
|
|
1164
3308
|
class Plan < ::Stripe::RequestParams
|
|
1165
3309
|
# For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
|
|
@@ -1233,6 +3377,73 @@ module Stripe
|
|
|
1233
3377
|
end
|
|
1234
3378
|
end
|
|
1235
3379
|
|
|
3380
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
3381
|
+
class MoneyServices < ::Stripe::RequestParams
|
|
3382
|
+
class AccountFunding < ::Stripe::RequestParams
|
|
3383
|
+
# The category of digital asset being acquired through this account funding transaction.
|
|
3384
|
+
attr_accessor :digital_asset_category
|
|
3385
|
+
|
|
3386
|
+
def initialize(digital_asset_category: nil)
|
|
3387
|
+
@digital_asset_category = digital_asset_category
|
|
3388
|
+
end
|
|
3389
|
+
end
|
|
3390
|
+
# Payment method specific account funding transaction details.
|
|
3391
|
+
attr_accessor :account_funding
|
|
3392
|
+
|
|
3393
|
+
def initialize(account_funding: nil)
|
|
3394
|
+
@account_funding = account_funding
|
|
3395
|
+
end
|
|
3396
|
+
end
|
|
3397
|
+
# Money services details for payment method specific funding fields.
|
|
3398
|
+
attr_accessor :money_services
|
|
3399
|
+
|
|
3400
|
+
def initialize(money_services: nil)
|
|
3401
|
+
@money_services = money_services
|
|
3402
|
+
end
|
|
3403
|
+
end
|
|
3404
|
+
|
|
3405
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
3406
|
+
class Address < ::Stripe::RequestParams
|
|
3407
|
+
# City, district, suburb, town, or village.
|
|
3408
|
+
attr_accessor :city
|
|
3409
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
3410
|
+
attr_accessor :country
|
|
3411
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
3412
|
+
attr_accessor :line1
|
|
3413
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
3414
|
+
attr_accessor :line2
|
|
3415
|
+
# ZIP or postal code.
|
|
3416
|
+
attr_accessor :postal_code
|
|
3417
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
3418
|
+
attr_accessor :state
|
|
3419
|
+
|
|
3420
|
+
def initialize(
|
|
3421
|
+
city: nil,
|
|
3422
|
+
country: nil,
|
|
3423
|
+
line1: nil,
|
|
3424
|
+
line2: nil,
|
|
3425
|
+
postal_code: nil,
|
|
3426
|
+
state: nil
|
|
3427
|
+
)
|
|
3428
|
+
@city = city
|
|
3429
|
+
@country = country
|
|
3430
|
+
@line1 = line1
|
|
3431
|
+
@line2 = line2
|
|
3432
|
+
@postal_code = postal_code
|
|
3433
|
+
@state = state
|
|
3434
|
+
end
|
|
3435
|
+
end
|
|
3436
|
+
# Please pass in an address that is within your Stripe user account country
|
|
3437
|
+
attr_accessor :address
|
|
3438
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
3439
|
+
attr_accessor :phone
|
|
3440
|
+
|
|
3441
|
+
def initialize(address: nil, phone: nil)
|
|
3442
|
+
@address = address
|
|
3443
|
+
@phone = phone
|
|
3444
|
+
end
|
|
3445
|
+
end
|
|
3446
|
+
|
|
1236
3447
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1237
3448
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1238
3449
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1307,6 +3518,14 @@ module Stripe
|
|
|
1307
3518
|
@version = version
|
|
1308
3519
|
end
|
|
1309
3520
|
end
|
|
3521
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3522
|
+
#
|
|
3523
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3524
|
+
attr_accessor :capture_by
|
|
3525
|
+
# The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
|
|
3526
|
+
#
|
|
3527
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3528
|
+
attr_accessor :capture_delay
|
|
1310
3529
|
# Controls when the funds are captured from the customer's account.
|
|
1311
3530
|
#
|
|
1312
3531
|
# 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.
|
|
@@ -1327,6 +3546,10 @@ module Stripe
|
|
|
1327
3546
|
attr_accessor :moto
|
|
1328
3547
|
# 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.
|
|
1329
3548
|
attr_accessor :network
|
|
3549
|
+
# Payment details for payment method specific funding fields.
|
|
3550
|
+
attr_accessor :payment_details
|
|
3551
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3552
|
+
attr_accessor :request_decremental_authorization
|
|
1330
3553
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1331
3554
|
attr_accessor :request_extended_authorization
|
|
1332
3555
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1335,6 +3558,10 @@ module Stripe
|
|
|
1335
3558
|
attr_accessor :request_multicapture
|
|
1336
3559
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1337
3560
|
attr_accessor :request_overcapture
|
|
3561
|
+
# Request partial authorization on this PaymentIntent.
|
|
3562
|
+
attr_accessor :request_partial_authorization
|
|
3563
|
+
# Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
|
|
3564
|
+
attr_accessor :request_reauthorization
|
|
1338
3565
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1339
3566
|
attr_accessor :request_three_d_secure
|
|
1340
3567
|
# 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).
|
|
@@ -1353,48 +3580,101 @@ module Stripe
|
|
|
1353
3580
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1354
3581
|
# 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.
|
|
1355
3582
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3583
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3584
|
+
attr_accessor :statement_details
|
|
1356
3585
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1357
3586
|
# the authentication details to use for this payment.
|
|
1358
3587
|
attr_accessor :three_d_secure
|
|
1359
3588
|
|
|
1360
3589
|
def initialize(
|
|
3590
|
+
capture_by: nil,
|
|
3591
|
+
capture_delay: nil,
|
|
1361
3592
|
capture_method: nil,
|
|
1362
3593
|
cvc_token: nil,
|
|
1363
3594
|
installments: nil,
|
|
1364
3595
|
mandate_options: nil,
|
|
1365
3596
|
moto: nil,
|
|
1366
3597
|
network: nil,
|
|
3598
|
+
payment_details: nil,
|
|
3599
|
+
request_decremental_authorization: nil,
|
|
1367
3600
|
request_extended_authorization: nil,
|
|
1368
3601
|
request_incremental_authorization: nil,
|
|
1369
3602
|
request_multicapture: nil,
|
|
1370
3603
|
request_overcapture: nil,
|
|
3604
|
+
request_partial_authorization: nil,
|
|
3605
|
+
request_reauthorization: nil,
|
|
1371
3606
|
request_three_d_secure: nil,
|
|
1372
3607
|
require_cvc_recollection: nil,
|
|
1373
3608
|
setup_future_usage: nil,
|
|
1374
3609
|
statement_descriptor_suffix_kana: nil,
|
|
1375
3610
|
statement_descriptor_suffix_kanji: nil,
|
|
3611
|
+
statement_details: nil,
|
|
1376
3612
|
three_d_secure: nil
|
|
1377
3613
|
)
|
|
3614
|
+
@capture_by = capture_by
|
|
3615
|
+
@capture_delay = capture_delay
|
|
1378
3616
|
@capture_method = capture_method
|
|
1379
3617
|
@cvc_token = cvc_token
|
|
1380
3618
|
@installments = installments
|
|
1381
3619
|
@mandate_options = mandate_options
|
|
1382
3620
|
@moto = moto
|
|
1383
3621
|
@network = network
|
|
3622
|
+
@payment_details = payment_details
|
|
3623
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1384
3624
|
@request_extended_authorization = request_extended_authorization
|
|
1385
3625
|
@request_incremental_authorization = request_incremental_authorization
|
|
1386
3626
|
@request_multicapture = request_multicapture
|
|
1387
3627
|
@request_overcapture = request_overcapture
|
|
3628
|
+
@request_partial_authorization = request_partial_authorization
|
|
3629
|
+
@request_reauthorization = request_reauthorization
|
|
1388
3630
|
@request_three_d_secure = request_three_d_secure
|
|
1389
3631
|
@require_cvc_recollection = require_cvc_recollection
|
|
1390
3632
|
@setup_future_usage = setup_future_usage
|
|
1391
3633
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1392
3634
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3635
|
+
@statement_details = statement_details
|
|
1393
3636
|
@three_d_secure = three_d_secure
|
|
1394
3637
|
end
|
|
1395
3638
|
end
|
|
1396
3639
|
|
|
1397
3640
|
class CardPresent < ::Stripe::RequestParams
|
|
3641
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3642
|
+
# Attribute for param field days
|
|
3643
|
+
attr_accessor :days
|
|
3644
|
+
# Attribute for param field hours
|
|
3645
|
+
attr_accessor :hours
|
|
3646
|
+
|
|
3647
|
+
def initialize(days: nil, hours: nil)
|
|
3648
|
+
@days = days
|
|
3649
|
+
@hours = hours
|
|
3650
|
+
end
|
|
3651
|
+
end
|
|
3652
|
+
|
|
3653
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
3654
|
+
class MoneyServices < ::Stripe::RequestParams
|
|
3655
|
+
class AccountFunding < ::Stripe::RequestParams
|
|
3656
|
+
# The category of digital asset being acquired through this account funding transaction.
|
|
3657
|
+
attr_accessor :digital_asset_category
|
|
3658
|
+
|
|
3659
|
+
def initialize(digital_asset_category: nil)
|
|
3660
|
+
@digital_asset_category = digital_asset_category
|
|
3661
|
+
end
|
|
3662
|
+
end
|
|
3663
|
+
# Payment method specific account funding transaction details.
|
|
3664
|
+
attr_accessor :account_funding
|
|
3665
|
+
|
|
3666
|
+
def initialize(account_funding: nil)
|
|
3667
|
+
@account_funding = account_funding
|
|
3668
|
+
end
|
|
3669
|
+
end
|
|
3670
|
+
# Money services details for payment method specific funding fields.
|
|
3671
|
+
attr_accessor :money_services
|
|
3672
|
+
|
|
3673
|
+
def initialize(money_services: nil)
|
|
3674
|
+
@money_services = money_services
|
|
3675
|
+
end
|
|
3676
|
+
end
|
|
3677
|
+
|
|
1398
3678
|
class Routing < ::Stripe::RequestParams
|
|
1399
3679
|
# Routing requested priority
|
|
1400
3680
|
attr_accessor :requested_priority
|
|
@@ -1403,28 +3683,52 @@ module Stripe
|
|
|
1403
3683
|
@requested_priority = requested_priority
|
|
1404
3684
|
end
|
|
1405
3685
|
end
|
|
3686
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3687
|
+
#
|
|
3688
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3689
|
+
attr_accessor :capture_by
|
|
3690
|
+
# The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
|
|
3691
|
+
#
|
|
3692
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3693
|
+
attr_accessor :capture_delay
|
|
1406
3694
|
# Controls when the funds are captured from the customer's account.
|
|
1407
3695
|
#
|
|
1408
3696
|
# 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.
|
|
1409
3697
|
#
|
|
1410
3698
|
# 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.
|
|
1411
3699
|
attr_accessor :capture_method
|
|
3700
|
+
# Payment details for payment method specific funding transaction fields.
|
|
3701
|
+
attr_accessor :payment_details
|
|
1412
3702
|
# Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
1413
3703
|
attr_accessor :request_extended_authorization
|
|
1414
3704
|
# Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
|
|
1415
3705
|
attr_accessor :request_incremental_authorization_support
|
|
3706
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
3707
|
+
attr_accessor :request_multicapture
|
|
3708
|
+
# Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
|
|
3709
|
+
attr_accessor :request_reauthorization
|
|
1416
3710
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
1417
3711
|
attr_accessor :routing
|
|
1418
3712
|
|
|
1419
3713
|
def initialize(
|
|
3714
|
+
capture_by: nil,
|
|
3715
|
+
capture_delay: nil,
|
|
1420
3716
|
capture_method: nil,
|
|
3717
|
+
payment_details: nil,
|
|
1421
3718
|
request_extended_authorization: nil,
|
|
1422
3719
|
request_incremental_authorization_support: nil,
|
|
3720
|
+
request_multicapture: nil,
|
|
3721
|
+
request_reauthorization: nil,
|
|
1423
3722
|
routing: nil
|
|
1424
3723
|
)
|
|
3724
|
+
@capture_by = capture_by
|
|
3725
|
+
@capture_delay = capture_delay
|
|
1425
3726
|
@capture_method = capture_method
|
|
3727
|
+
@payment_details = payment_details
|
|
1426
3728
|
@request_extended_authorization = request_extended_authorization
|
|
1427
3729
|
@request_incremental_authorization_support = request_incremental_authorization_support
|
|
3730
|
+
@request_multicapture = request_multicapture
|
|
3731
|
+
@request_reauthorization = request_reauthorization
|
|
1428
3732
|
@routing = routing
|
|
1429
3733
|
end
|
|
1430
3734
|
end
|
|
@@ -1454,6 +3758,44 @@ module Stripe
|
|
|
1454
3758
|
end
|
|
1455
3759
|
|
|
1456
3760
|
class Crypto < ::Stripe::RequestParams
|
|
3761
|
+
class AmountReconciliation < ::Stripe::RequestParams
|
|
3762
|
+
# Controls how crypto funding amounts are reconciled for the PaymentIntent.
|
|
3763
|
+
attr_accessor :type
|
|
3764
|
+
|
|
3765
|
+
def initialize(type: nil)
|
|
3766
|
+
@type = type
|
|
3767
|
+
end
|
|
3768
|
+
end
|
|
3769
|
+
|
|
3770
|
+
class DepositOptions < ::Stripe::RequestParams
|
|
3771
|
+
# The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
|
|
3772
|
+
attr_accessor :networks
|
|
3773
|
+
# If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
|
|
3774
|
+
attr_accessor :static_address
|
|
3775
|
+
|
|
3776
|
+
def initialize(networks: nil, static_address: nil)
|
|
3777
|
+
@networks = networks
|
|
3778
|
+
@static_address = static_address
|
|
3779
|
+
end
|
|
3780
|
+
end
|
|
3781
|
+
|
|
3782
|
+
class TransactionVerificationOptions < ::Stripe::RequestParams
|
|
3783
|
+
# The network on which the transaction was submitted.
|
|
3784
|
+
attr_accessor :network
|
|
3785
|
+
# The hash of the onchain transaction to verify.
|
|
3786
|
+
attr_accessor :transaction_hash
|
|
3787
|
+
|
|
3788
|
+
def initialize(network: nil, transaction_hash: nil)
|
|
3789
|
+
@network = network
|
|
3790
|
+
@transaction_hash = transaction_hash
|
|
3791
|
+
end
|
|
3792
|
+
end
|
|
3793
|
+
# Controls how crypto funding amounts are reconciled for this PaymentIntent.
|
|
3794
|
+
attr_accessor :amount_reconciliation
|
|
3795
|
+
# Specific configuration for this PaymentIntent when the mode is `deposit`.
|
|
3796
|
+
attr_accessor :deposit_options
|
|
3797
|
+
# The mode of the crypto payment.
|
|
3798
|
+
attr_accessor :mode
|
|
1457
3799
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1458
3800
|
#
|
|
1459
3801
|
# 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.
|
|
@@ -1464,9 +3806,21 @@ module Stripe
|
|
|
1464
3806
|
#
|
|
1465
3807
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1466
3808
|
attr_accessor :setup_future_usage
|
|
3809
|
+
# Specific configuration for this PaymentIntent when the mode is `transaction_verification`.
|
|
3810
|
+
attr_accessor :transaction_verification_options
|
|
1467
3811
|
|
|
1468
|
-
def initialize(
|
|
3812
|
+
def initialize(
|
|
3813
|
+
amount_reconciliation: nil,
|
|
3814
|
+
deposit_options: nil,
|
|
3815
|
+
mode: nil,
|
|
3816
|
+
setup_future_usage: nil,
|
|
3817
|
+
transaction_verification_options: nil
|
|
3818
|
+
)
|
|
3819
|
+
@amount_reconciliation = amount_reconciliation
|
|
3820
|
+
@deposit_options = deposit_options
|
|
3821
|
+
@mode = mode
|
|
1469
3822
|
@setup_future_usage = setup_future_usage
|
|
3823
|
+
@transaction_verification_options = transaction_verification_options
|
|
1470
3824
|
end
|
|
1471
3825
|
end
|
|
1472
3826
|
|
|
@@ -1551,6 +3905,25 @@ module Stripe
|
|
|
1551
3905
|
end
|
|
1552
3906
|
end
|
|
1553
3907
|
|
|
3908
|
+
class GiftCard < ::Stripe::RequestParams
|
|
3909
|
+
# Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
|
|
3910
|
+
attr_accessor :ignore_application_fee
|
|
3911
|
+
# Set to `yes` to ignore transfer data on the PaymentIntent when redeeming this gift card.
|
|
3912
|
+
attr_accessor :ignore_transfer_data
|
|
3913
|
+
# Request partial authorization on this PaymentIntent.
|
|
3914
|
+
attr_accessor :request_partial_authorization
|
|
3915
|
+
|
|
3916
|
+
def initialize(
|
|
3917
|
+
ignore_application_fee: nil,
|
|
3918
|
+
ignore_transfer_data: nil,
|
|
3919
|
+
request_partial_authorization: nil
|
|
3920
|
+
)
|
|
3921
|
+
@ignore_application_fee = ignore_application_fee
|
|
3922
|
+
@ignore_transfer_data = ignore_transfer_data
|
|
3923
|
+
@request_partial_authorization = request_partial_authorization
|
|
3924
|
+
end
|
|
3925
|
+
end
|
|
3926
|
+
|
|
1554
3927
|
class Giropay < ::Stripe::RequestParams
|
|
1555
3928
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1556
3929
|
#
|
|
@@ -1568,6 +3941,23 @@ module Stripe
|
|
|
1568
3941
|
end
|
|
1569
3942
|
end
|
|
1570
3943
|
|
|
3944
|
+
class Gopay < ::Stripe::RequestParams
|
|
3945
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3946
|
+
#
|
|
3947
|
+
# 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.
|
|
3948
|
+
#
|
|
3949
|
+
# 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.
|
|
3950
|
+
#
|
|
3951
|
+
# 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).
|
|
3952
|
+
#
|
|
3953
|
+
# 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`.
|
|
3954
|
+
attr_accessor :setup_future_usage
|
|
3955
|
+
|
|
3956
|
+
def initialize(setup_future_usage: nil)
|
|
3957
|
+
@setup_future_usage = setup_future_usage
|
|
3958
|
+
end
|
|
3959
|
+
end
|
|
3960
|
+
|
|
1571
3961
|
class Grabpay < ::Stripe::RequestParams
|
|
1572
3962
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1573
3963
|
#
|
|
@@ -1585,6 +3975,29 @@ module Stripe
|
|
|
1585
3975
|
end
|
|
1586
3976
|
end
|
|
1587
3977
|
|
|
3978
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3979
|
+
# 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.
|
|
3980
|
+
attr_accessor :expires_after
|
|
3981
|
+
# 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.
|
|
3982
|
+
attr_accessor :expires_at
|
|
3983
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3984
|
+
#
|
|
3985
|
+
# 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.
|
|
3986
|
+
#
|
|
3987
|
+
# 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.
|
|
3988
|
+
#
|
|
3989
|
+
# 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).
|
|
3990
|
+
#
|
|
3991
|
+
# 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`.
|
|
3992
|
+
attr_accessor :setup_future_usage
|
|
3993
|
+
|
|
3994
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3995
|
+
@expires_after = expires_after
|
|
3996
|
+
@expires_at = expires_at
|
|
3997
|
+
@setup_future_usage = setup_future_usage
|
|
3998
|
+
end
|
|
3999
|
+
end
|
|
4000
|
+
|
|
1588
4001
|
class Ideal < ::Stripe::RequestParams
|
|
1589
4002
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1590
4003
|
#
|
|
@@ -1691,6 +4104,939 @@ module Stripe
|
|
|
1691
4104
|
@reference = reference
|
|
1692
4105
|
end
|
|
1693
4106
|
end
|
|
4107
|
+
|
|
4108
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
4109
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
4110
|
+
class Arrival < ::Stripe::RequestParams
|
|
4111
|
+
class Address < ::Stripe::RequestParams
|
|
4112
|
+
# The city or town.
|
|
4113
|
+
attr_accessor :city
|
|
4114
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4115
|
+
attr_accessor :country
|
|
4116
|
+
# The postal code formatted according to country.
|
|
4117
|
+
attr_accessor :postal_code
|
|
4118
|
+
# The state, county, province, or region formatted according to country.
|
|
4119
|
+
attr_accessor :region
|
|
4120
|
+
# Line 1 of the street address.
|
|
4121
|
+
attr_accessor :street_address
|
|
4122
|
+
# Line 2 of the street address.
|
|
4123
|
+
attr_accessor :street_address2
|
|
4124
|
+
|
|
4125
|
+
def initialize(
|
|
4126
|
+
city: nil,
|
|
4127
|
+
country: nil,
|
|
4128
|
+
postal_code: nil,
|
|
4129
|
+
region: nil,
|
|
4130
|
+
street_address: nil,
|
|
4131
|
+
street_address2: nil
|
|
4132
|
+
)
|
|
4133
|
+
@city = city
|
|
4134
|
+
@country = country
|
|
4135
|
+
@postal_code = postal_code
|
|
4136
|
+
@region = region
|
|
4137
|
+
@street_address = street_address
|
|
4138
|
+
@street_address2 = street_address2
|
|
4139
|
+
end
|
|
4140
|
+
end
|
|
4141
|
+
# Address of the arrival location.
|
|
4142
|
+
attr_accessor :address
|
|
4143
|
+
# Identifier name or reference for the arrival location.
|
|
4144
|
+
attr_accessor :arrival_location
|
|
4145
|
+
|
|
4146
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4147
|
+
@address = address
|
|
4148
|
+
@arrival_location = arrival_location
|
|
4149
|
+
end
|
|
4150
|
+
end
|
|
4151
|
+
|
|
4152
|
+
class Departure < ::Stripe::RequestParams
|
|
4153
|
+
class Address < ::Stripe::RequestParams
|
|
4154
|
+
# The city or town.
|
|
4155
|
+
attr_accessor :city
|
|
4156
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4157
|
+
attr_accessor :country
|
|
4158
|
+
# The postal code formatted according to country.
|
|
4159
|
+
attr_accessor :postal_code
|
|
4160
|
+
# The state, county, province, or region formatted according to country.
|
|
4161
|
+
attr_accessor :region
|
|
4162
|
+
# Line 1 of the street address.
|
|
4163
|
+
attr_accessor :street_address
|
|
4164
|
+
# Line 2 of the street address.
|
|
4165
|
+
attr_accessor :street_address2
|
|
4166
|
+
|
|
4167
|
+
def initialize(
|
|
4168
|
+
city: nil,
|
|
4169
|
+
country: nil,
|
|
4170
|
+
postal_code: nil,
|
|
4171
|
+
region: nil,
|
|
4172
|
+
street_address: nil,
|
|
4173
|
+
street_address2: nil
|
|
4174
|
+
)
|
|
4175
|
+
@city = city
|
|
4176
|
+
@country = country
|
|
4177
|
+
@postal_code = postal_code
|
|
4178
|
+
@region = region
|
|
4179
|
+
@street_address = street_address
|
|
4180
|
+
@street_address2 = street_address2
|
|
4181
|
+
end
|
|
4182
|
+
end
|
|
4183
|
+
# Address of the departure location.
|
|
4184
|
+
attr_accessor :address
|
|
4185
|
+
# Timestamp of departure.
|
|
4186
|
+
attr_accessor :departs_at
|
|
4187
|
+
# Identifier name or reference for the origin location.
|
|
4188
|
+
attr_accessor :departure_location
|
|
4189
|
+
|
|
4190
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4191
|
+
@address = address
|
|
4192
|
+
@departs_at = departs_at
|
|
4193
|
+
@departure_location = departure_location
|
|
4194
|
+
end
|
|
4195
|
+
end
|
|
4196
|
+
|
|
4197
|
+
class Insurance < ::Stripe::RequestParams
|
|
4198
|
+
# Insurance currency.
|
|
4199
|
+
attr_accessor :currency
|
|
4200
|
+
# Name of the company providing the insurance.
|
|
4201
|
+
attr_accessor :insurance_company_name
|
|
4202
|
+
# Type of insurance.
|
|
4203
|
+
attr_accessor :insurance_type
|
|
4204
|
+
# Price of insurance in cents.
|
|
4205
|
+
attr_accessor :price
|
|
4206
|
+
|
|
4207
|
+
def initialize(
|
|
4208
|
+
currency: nil,
|
|
4209
|
+
insurance_company_name: nil,
|
|
4210
|
+
insurance_type: nil,
|
|
4211
|
+
price: nil
|
|
4212
|
+
)
|
|
4213
|
+
@currency = currency
|
|
4214
|
+
@insurance_company_name = insurance_company_name
|
|
4215
|
+
@insurance_type = insurance_type
|
|
4216
|
+
@price = price
|
|
4217
|
+
end
|
|
4218
|
+
end
|
|
4219
|
+
|
|
4220
|
+
class Passenger < ::Stripe::RequestParams
|
|
4221
|
+
# The family name of the person.
|
|
4222
|
+
attr_accessor :family_name
|
|
4223
|
+
# The given name of the person.
|
|
4224
|
+
attr_accessor :given_name
|
|
4225
|
+
|
|
4226
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4227
|
+
@family_name = family_name
|
|
4228
|
+
@given_name = given_name
|
|
4229
|
+
end
|
|
4230
|
+
end
|
|
4231
|
+
# Name of associated or partner company for the service.
|
|
4232
|
+
attr_accessor :affiliate_name
|
|
4233
|
+
# Arrival details.
|
|
4234
|
+
attr_accessor :arrival
|
|
4235
|
+
# Name of transportation company.
|
|
4236
|
+
attr_accessor :carrier_name
|
|
4237
|
+
# Currency.
|
|
4238
|
+
attr_accessor :currency
|
|
4239
|
+
# Departure details.
|
|
4240
|
+
attr_accessor :departure
|
|
4241
|
+
# List of insurances for this reservation.
|
|
4242
|
+
attr_accessor :insurances
|
|
4243
|
+
# List of passengers that this reservation applies to.
|
|
4244
|
+
attr_accessor :passengers
|
|
4245
|
+
# Price in cents.
|
|
4246
|
+
attr_accessor :price
|
|
4247
|
+
# Ticket class.
|
|
4248
|
+
attr_accessor :ticket_class
|
|
4249
|
+
|
|
4250
|
+
def initialize(
|
|
4251
|
+
affiliate_name: nil,
|
|
4252
|
+
arrival: nil,
|
|
4253
|
+
carrier_name: nil,
|
|
4254
|
+
currency: nil,
|
|
4255
|
+
departure: nil,
|
|
4256
|
+
insurances: nil,
|
|
4257
|
+
passengers: nil,
|
|
4258
|
+
price: nil,
|
|
4259
|
+
ticket_class: nil
|
|
4260
|
+
)
|
|
4261
|
+
@affiliate_name = affiliate_name
|
|
4262
|
+
@arrival = arrival
|
|
4263
|
+
@carrier_name = carrier_name
|
|
4264
|
+
@currency = currency
|
|
4265
|
+
@departure = departure
|
|
4266
|
+
@insurances = insurances
|
|
4267
|
+
@passengers = passengers
|
|
4268
|
+
@price = price
|
|
4269
|
+
@ticket_class = ticket_class
|
|
4270
|
+
end
|
|
4271
|
+
end
|
|
4272
|
+
|
|
4273
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
4274
|
+
class Address < ::Stripe::RequestParams
|
|
4275
|
+
# The city or town.
|
|
4276
|
+
attr_accessor :city
|
|
4277
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4278
|
+
attr_accessor :country
|
|
4279
|
+
# The postal code formatted according to country.
|
|
4280
|
+
attr_accessor :postal_code
|
|
4281
|
+
# The state, county, province, or region formatted according to country.
|
|
4282
|
+
attr_accessor :region
|
|
4283
|
+
# Line 1 of the street address.
|
|
4284
|
+
attr_accessor :street_address
|
|
4285
|
+
# Line 2 of the street address.
|
|
4286
|
+
attr_accessor :street_address2
|
|
4287
|
+
|
|
4288
|
+
def initialize(
|
|
4289
|
+
city: nil,
|
|
4290
|
+
country: nil,
|
|
4291
|
+
postal_code: nil,
|
|
4292
|
+
region: nil,
|
|
4293
|
+
street_address: nil,
|
|
4294
|
+
street_address2: nil
|
|
4295
|
+
)
|
|
4296
|
+
@city = city
|
|
4297
|
+
@country = country
|
|
4298
|
+
@postal_code = postal_code
|
|
4299
|
+
@region = region
|
|
4300
|
+
@street_address = street_address
|
|
4301
|
+
@street_address2 = street_address2
|
|
4302
|
+
end
|
|
4303
|
+
end
|
|
4304
|
+
|
|
4305
|
+
class Insurance < ::Stripe::RequestParams
|
|
4306
|
+
# Insurance currency.
|
|
4307
|
+
attr_accessor :currency
|
|
4308
|
+
# Name of the company providing the insurance.
|
|
4309
|
+
attr_accessor :insurance_company_name
|
|
4310
|
+
# Type of insurance.
|
|
4311
|
+
attr_accessor :insurance_type
|
|
4312
|
+
# Price of insurance in cents.
|
|
4313
|
+
attr_accessor :price
|
|
4314
|
+
|
|
4315
|
+
def initialize(
|
|
4316
|
+
currency: nil,
|
|
4317
|
+
insurance_company_name: nil,
|
|
4318
|
+
insurance_type: nil,
|
|
4319
|
+
price: nil
|
|
4320
|
+
)
|
|
4321
|
+
@currency = currency
|
|
4322
|
+
@insurance_company_name = insurance_company_name
|
|
4323
|
+
@insurance_type = insurance_type
|
|
4324
|
+
@price = price
|
|
4325
|
+
end
|
|
4326
|
+
end
|
|
4327
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
4328
|
+
attr_accessor :access_controlled_venue
|
|
4329
|
+
# Address of the event.
|
|
4330
|
+
attr_accessor :address
|
|
4331
|
+
# Name of associated or partner company for the service.
|
|
4332
|
+
attr_accessor :affiliate_name
|
|
4333
|
+
# End timestamp of the event.
|
|
4334
|
+
attr_accessor :ends_at
|
|
4335
|
+
# Company selling the ticket.
|
|
4336
|
+
attr_accessor :event_company_name
|
|
4337
|
+
# Name of the event.
|
|
4338
|
+
attr_accessor :event_name
|
|
4339
|
+
# Type of the event.
|
|
4340
|
+
attr_accessor :event_type
|
|
4341
|
+
# List of insurances for this event.
|
|
4342
|
+
attr_accessor :insurances
|
|
4343
|
+
# Start timestamp of the event.
|
|
4344
|
+
attr_accessor :starts_at
|
|
4345
|
+
# Name of the venue where the event takes place.
|
|
4346
|
+
attr_accessor :venue_name
|
|
4347
|
+
|
|
4348
|
+
def initialize(
|
|
4349
|
+
access_controlled_venue: nil,
|
|
4350
|
+
address: nil,
|
|
4351
|
+
affiliate_name: nil,
|
|
4352
|
+
ends_at: nil,
|
|
4353
|
+
event_company_name: nil,
|
|
4354
|
+
event_name: nil,
|
|
4355
|
+
event_type: nil,
|
|
4356
|
+
insurances: nil,
|
|
4357
|
+
starts_at: nil,
|
|
4358
|
+
venue_name: nil
|
|
4359
|
+
)
|
|
4360
|
+
@access_controlled_venue = access_controlled_venue
|
|
4361
|
+
@address = address
|
|
4362
|
+
@affiliate_name = affiliate_name
|
|
4363
|
+
@ends_at = ends_at
|
|
4364
|
+
@event_company_name = event_company_name
|
|
4365
|
+
@event_name = event_name
|
|
4366
|
+
@event_type = event_type
|
|
4367
|
+
@insurances = insurances
|
|
4368
|
+
@starts_at = starts_at
|
|
4369
|
+
@venue_name = venue_name
|
|
4370
|
+
end
|
|
4371
|
+
end
|
|
4372
|
+
|
|
4373
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
4374
|
+
class Arrival < ::Stripe::RequestParams
|
|
4375
|
+
class Address < ::Stripe::RequestParams
|
|
4376
|
+
# The city or town.
|
|
4377
|
+
attr_accessor :city
|
|
4378
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4379
|
+
attr_accessor :country
|
|
4380
|
+
# The postal code formatted according to country.
|
|
4381
|
+
attr_accessor :postal_code
|
|
4382
|
+
# The state, county, province, or region formatted according to country.
|
|
4383
|
+
attr_accessor :region
|
|
4384
|
+
# Line 1 of the street address.
|
|
4385
|
+
attr_accessor :street_address
|
|
4386
|
+
# Line 2 of the street address.
|
|
4387
|
+
attr_accessor :street_address2
|
|
4388
|
+
|
|
4389
|
+
def initialize(
|
|
4390
|
+
city: nil,
|
|
4391
|
+
country: nil,
|
|
4392
|
+
postal_code: nil,
|
|
4393
|
+
region: nil,
|
|
4394
|
+
street_address: nil,
|
|
4395
|
+
street_address2: nil
|
|
4396
|
+
)
|
|
4397
|
+
@city = city
|
|
4398
|
+
@country = country
|
|
4399
|
+
@postal_code = postal_code
|
|
4400
|
+
@region = region
|
|
4401
|
+
@street_address = street_address
|
|
4402
|
+
@street_address2 = street_address2
|
|
4403
|
+
end
|
|
4404
|
+
end
|
|
4405
|
+
# Address of the arrival location.
|
|
4406
|
+
attr_accessor :address
|
|
4407
|
+
# Identifier name or reference for the arrival location.
|
|
4408
|
+
attr_accessor :arrival_location
|
|
4409
|
+
|
|
4410
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4411
|
+
@address = address
|
|
4412
|
+
@arrival_location = arrival_location
|
|
4413
|
+
end
|
|
4414
|
+
end
|
|
4415
|
+
|
|
4416
|
+
class Departure < ::Stripe::RequestParams
|
|
4417
|
+
class Address < ::Stripe::RequestParams
|
|
4418
|
+
# The city or town.
|
|
4419
|
+
attr_accessor :city
|
|
4420
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4421
|
+
attr_accessor :country
|
|
4422
|
+
# The postal code formatted according to country.
|
|
4423
|
+
attr_accessor :postal_code
|
|
4424
|
+
# The state, county, province, or region formatted according to country.
|
|
4425
|
+
attr_accessor :region
|
|
4426
|
+
# Line 1 of the street address.
|
|
4427
|
+
attr_accessor :street_address
|
|
4428
|
+
# Line 2 of the street address.
|
|
4429
|
+
attr_accessor :street_address2
|
|
4430
|
+
|
|
4431
|
+
def initialize(
|
|
4432
|
+
city: nil,
|
|
4433
|
+
country: nil,
|
|
4434
|
+
postal_code: nil,
|
|
4435
|
+
region: nil,
|
|
4436
|
+
street_address: nil,
|
|
4437
|
+
street_address2: nil
|
|
4438
|
+
)
|
|
4439
|
+
@city = city
|
|
4440
|
+
@country = country
|
|
4441
|
+
@postal_code = postal_code
|
|
4442
|
+
@region = region
|
|
4443
|
+
@street_address = street_address
|
|
4444
|
+
@street_address2 = street_address2
|
|
4445
|
+
end
|
|
4446
|
+
end
|
|
4447
|
+
# Address of the departure location.
|
|
4448
|
+
attr_accessor :address
|
|
4449
|
+
# Timestamp of departure.
|
|
4450
|
+
attr_accessor :departs_at
|
|
4451
|
+
# Identifier name or reference for the origin location.
|
|
4452
|
+
attr_accessor :departure_location
|
|
4453
|
+
|
|
4454
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4455
|
+
@address = address
|
|
4456
|
+
@departs_at = departs_at
|
|
4457
|
+
@departure_location = departure_location
|
|
4458
|
+
end
|
|
4459
|
+
end
|
|
4460
|
+
|
|
4461
|
+
class Insurance < ::Stripe::RequestParams
|
|
4462
|
+
# Insurance currency.
|
|
4463
|
+
attr_accessor :currency
|
|
4464
|
+
# Name of the company providing the insurance.
|
|
4465
|
+
attr_accessor :insurance_company_name
|
|
4466
|
+
# Type of insurance.
|
|
4467
|
+
attr_accessor :insurance_type
|
|
4468
|
+
# Price of insurance in cents.
|
|
4469
|
+
attr_accessor :price
|
|
4470
|
+
|
|
4471
|
+
def initialize(
|
|
4472
|
+
currency: nil,
|
|
4473
|
+
insurance_company_name: nil,
|
|
4474
|
+
insurance_type: nil,
|
|
4475
|
+
price: nil
|
|
4476
|
+
)
|
|
4477
|
+
@currency = currency
|
|
4478
|
+
@insurance_company_name = insurance_company_name
|
|
4479
|
+
@insurance_type = insurance_type
|
|
4480
|
+
@price = price
|
|
4481
|
+
end
|
|
4482
|
+
end
|
|
4483
|
+
|
|
4484
|
+
class Passenger < ::Stripe::RequestParams
|
|
4485
|
+
# The family name of the person.
|
|
4486
|
+
attr_accessor :family_name
|
|
4487
|
+
# The given name of the person.
|
|
4488
|
+
attr_accessor :given_name
|
|
4489
|
+
|
|
4490
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4491
|
+
@family_name = family_name
|
|
4492
|
+
@given_name = given_name
|
|
4493
|
+
end
|
|
4494
|
+
end
|
|
4495
|
+
# Name of associated or partner company for the service.
|
|
4496
|
+
attr_accessor :affiliate_name
|
|
4497
|
+
# Arrival details.
|
|
4498
|
+
attr_accessor :arrival
|
|
4499
|
+
# Name of transportation company.
|
|
4500
|
+
attr_accessor :carrier_name
|
|
4501
|
+
# Currency.
|
|
4502
|
+
attr_accessor :currency
|
|
4503
|
+
# Departure details.
|
|
4504
|
+
attr_accessor :departure
|
|
4505
|
+
# List of insurances for this reservation.
|
|
4506
|
+
attr_accessor :insurances
|
|
4507
|
+
# List of passengers that this reservation applies to.
|
|
4508
|
+
attr_accessor :passengers
|
|
4509
|
+
# Price in cents.
|
|
4510
|
+
attr_accessor :price
|
|
4511
|
+
# Ticket class.
|
|
4512
|
+
attr_accessor :ticket_class
|
|
4513
|
+
|
|
4514
|
+
def initialize(
|
|
4515
|
+
affiliate_name: nil,
|
|
4516
|
+
arrival: nil,
|
|
4517
|
+
carrier_name: nil,
|
|
4518
|
+
currency: nil,
|
|
4519
|
+
departure: nil,
|
|
4520
|
+
insurances: nil,
|
|
4521
|
+
passengers: nil,
|
|
4522
|
+
price: nil,
|
|
4523
|
+
ticket_class: nil
|
|
4524
|
+
)
|
|
4525
|
+
@affiliate_name = affiliate_name
|
|
4526
|
+
@arrival = arrival
|
|
4527
|
+
@carrier_name = carrier_name
|
|
4528
|
+
@currency = currency
|
|
4529
|
+
@departure = departure
|
|
4530
|
+
@insurances = insurances
|
|
4531
|
+
@passengers = passengers
|
|
4532
|
+
@price = price
|
|
4533
|
+
@ticket_class = ticket_class
|
|
4534
|
+
end
|
|
4535
|
+
end
|
|
4536
|
+
|
|
4537
|
+
class Insurance < ::Stripe::RequestParams
|
|
4538
|
+
# Insurance currency.
|
|
4539
|
+
attr_accessor :currency
|
|
4540
|
+
# Name of the company providing the insurance.
|
|
4541
|
+
attr_accessor :insurance_company_name
|
|
4542
|
+
# Type of insurance
|
|
4543
|
+
attr_accessor :insurance_type
|
|
4544
|
+
# Price of insurance in cents.
|
|
4545
|
+
attr_accessor :price
|
|
4546
|
+
|
|
4547
|
+
def initialize(
|
|
4548
|
+
currency: nil,
|
|
4549
|
+
insurance_company_name: nil,
|
|
4550
|
+
insurance_type: nil,
|
|
4551
|
+
price: nil
|
|
4552
|
+
)
|
|
4553
|
+
@currency = currency
|
|
4554
|
+
@insurance_company_name = insurance_company_name
|
|
4555
|
+
@insurance_type = insurance_type
|
|
4556
|
+
@price = price
|
|
4557
|
+
end
|
|
4558
|
+
end
|
|
4559
|
+
|
|
4560
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
4561
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
4562
|
+
# The city or town.
|
|
4563
|
+
attr_accessor :city
|
|
4564
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4565
|
+
attr_accessor :country
|
|
4566
|
+
# The postal code formatted according to country.
|
|
4567
|
+
attr_accessor :postal_code
|
|
4568
|
+
# The state, county, province, or region formatted according to country.
|
|
4569
|
+
attr_accessor :region
|
|
4570
|
+
# Line 1 of the street address.
|
|
4571
|
+
attr_accessor :street_address
|
|
4572
|
+
# Line 2 of the street address.
|
|
4573
|
+
attr_accessor :street_address2
|
|
4574
|
+
|
|
4575
|
+
def initialize(
|
|
4576
|
+
city: nil,
|
|
4577
|
+
country: nil,
|
|
4578
|
+
postal_code: nil,
|
|
4579
|
+
region: nil,
|
|
4580
|
+
street_address: nil,
|
|
4581
|
+
street_address2: nil
|
|
4582
|
+
)
|
|
4583
|
+
@city = city
|
|
4584
|
+
@country = country
|
|
4585
|
+
@postal_code = postal_code
|
|
4586
|
+
@region = region
|
|
4587
|
+
@street_address = street_address
|
|
4588
|
+
@street_address2 = street_address2
|
|
4589
|
+
end
|
|
4590
|
+
end
|
|
4591
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
4592
|
+
attr_accessor :line_item_references
|
|
4593
|
+
# The address of the selling or delivering merchant.
|
|
4594
|
+
attr_accessor :marketplace_seller_address
|
|
4595
|
+
# The name of the marketplace seller.
|
|
4596
|
+
attr_accessor :marketplace_seller_name
|
|
4597
|
+
# The unique identifier for the marketplace seller.
|
|
4598
|
+
attr_accessor :marketplace_seller_reference
|
|
4599
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
4600
|
+
attr_accessor :number_of_transactions
|
|
4601
|
+
# The category of the product.
|
|
4602
|
+
attr_accessor :product_category
|
|
4603
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
4604
|
+
attr_accessor :seller_last_login_at
|
|
4605
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
4606
|
+
attr_accessor :seller_rating
|
|
4607
|
+
# The date when the seller's account with the marketplace was created.
|
|
4608
|
+
attr_accessor :seller_registered_at
|
|
4609
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
4610
|
+
attr_accessor :seller_updated_at
|
|
4611
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
4612
|
+
attr_accessor :shipping_references
|
|
4613
|
+
# 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.
|
|
4614
|
+
attr_accessor :volume_of_transactions
|
|
4615
|
+
|
|
4616
|
+
def initialize(
|
|
4617
|
+
line_item_references: nil,
|
|
4618
|
+
marketplace_seller_address: nil,
|
|
4619
|
+
marketplace_seller_name: nil,
|
|
4620
|
+
marketplace_seller_reference: nil,
|
|
4621
|
+
number_of_transactions: nil,
|
|
4622
|
+
product_category: nil,
|
|
4623
|
+
seller_last_login_at: nil,
|
|
4624
|
+
seller_rating: nil,
|
|
4625
|
+
seller_registered_at: nil,
|
|
4626
|
+
seller_updated_at: nil,
|
|
4627
|
+
shipping_references: nil,
|
|
4628
|
+
volume_of_transactions: nil
|
|
4629
|
+
)
|
|
4630
|
+
@line_item_references = line_item_references
|
|
4631
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
4632
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
4633
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
4634
|
+
@number_of_transactions = number_of_transactions
|
|
4635
|
+
@product_category = product_category
|
|
4636
|
+
@seller_last_login_at = seller_last_login_at
|
|
4637
|
+
@seller_rating = seller_rating
|
|
4638
|
+
@seller_registered_at = seller_registered_at
|
|
4639
|
+
@seller_updated_at = seller_updated_at
|
|
4640
|
+
@shipping_references = shipping_references
|
|
4641
|
+
@volume_of_transactions = volume_of_transactions
|
|
4642
|
+
end
|
|
4643
|
+
end
|
|
4644
|
+
|
|
4645
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4646
|
+
class Arrival < ::Stripe::RequestParams
|
|
4647
|
+
class Address < ::Stripe::RequestParams
|
|
4648
|
+
# The city or town.
|
|
4649
|
+
attr_accessor :city
|
|
4650
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4651
|
+
attr_accessor :country
|
|
4652
|
+
# The postal code formatted according to country.
|
|
4653
|
+
attr_accessor :postal_code
|
|
4654
|
+
# The state, county, province, or region formatted according to country.
|
|
4655
|
+
attr_accessor :region
|
|
4656
|
+
# Line 1 of the street address.
|
|
4657
|
+
attr_accessor :street_address
|
|
4658
|
+
# Line 2 of the street address.
|
|
4659
|
+
attr_accessor :street_address2
|
|
4660
|
+
|
|
4661
|
+
def initialize(
|
|
4662
|
+
city: nil,
|
|
4663
|
+
country: nil,
|
|
4664
|
+
postal_code: nil,
|
|
4665
|
+
region: nil,
|
|
4666
|
+
street_address: nil,
|
|
4667
|
+
street_address2: nil
|
|
4668
|
+
)
|
|
4669
|
+
@city = city
|
|
4670
|
+
@country = country
|
|
4671
|
+
@postal_code = postal_code
|
|
4672
|
+
@region = region
|
|
4673
|
+
@street_address = street_address
|
|
4674
|
+
@street_address2 = street_address2
|
|
4675
|
+
end
|
|
4676
|
+
end
|
|
4677
|
+
# Address of the arrival location.
|
|
4678
|
+
attr_accessor :address
|
|
4679
|
+
# Identifier name or reference for the arrival location.
|
|
4680
|
+
attr_accessor :arrival_location
|
|
4681
|
+
|
|
4682
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4683
|
+
@address = address
|
|
4684
|
+
@arrival_location = arrival_location
|
|
4685
|
+
end
|
|
4686
|
+
end
|
|
4687
|
+
|
|
4688
|
+
class Departure < ::Stripe::RequestParams
|
|
4689
|
+
class Address < ::Stripe::RequestParams
|
|
4690
|
+
# The city or town.
|
|
4691
|
+
attr_accessor :city
|
|
4692
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4693
|
+
attr_accessor :country
|
|
4694
|
+
# The postal code formatted according to country.
|
|
4695
|
+
attr_accessor :postal_code
|
|
4696
|
+
# The state, county, province, or region formatted according to country.
|
|
4697
|
+
attr_accessor :region
|
|
4698
|
+
# Line 1 of the street address.
|
|
4699
|
+
attr_accessor :street_address
|
|
4700
|
+
# Line 2 of the street address.
|
|
4701
|
+
attr_accessor :street_address2
|
|
4702
|
+
|
|
4703
|
+
def initialize(
|
|
4704
|
+
city: nil,
|
|
4705
|
+
country: nil,
|
|
4706
|
+
postal_code: nil,
|
|
4707
|
+
region: nil,
|
|
4708
|
+
street_address: nil,
|
|
4709
|
+
street_address2: nil
|
|
4710
|
+
)
|
|
4711
|
+
@city = city
|
|
4712
|
+
@country = country
|
|
4713
|
+
@postal_code = postal_code
|
|
4714
|
+
@region = region
|
|
4715
|
+
@street_address = street_address
|
|
4716
|
+
@street_address2 = street_address2
|
|
4717
|
+
end
|
|
4718
|
+
end
|
|
4719
|
+
# Address of the departure location.
|
|
4720
|
+
attr_accessor :address
|
|
4721
|
+
# Timestamp of departure.
|
|
4722
|
+
attr_accessor :departs_at
|
|
4723
|
+
# Identifier name or reference for the origin location.
|
|
4724
|
+
attr_accessor :departure_location
|
|
4725
|
+
|
|
4726
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4727
|
+
@address = address
|
|
4728
|
+
@departs_at = departs_at
|
|
4729
|
+
@departure_location = departure_location
|
|
4730
|
+
end
|
|
4731
|
+
end
|
|
4732
|
+
|
|
4733
|
+
class Insurance < ::Stripe::RequestParams
|
|
4734
|
+
# Insurance currency.
|
|
4735
|
+
attr_accessor :currency
|
|
4736
|
+
# Name of the company providing the insurance.
|
|
4737
|
+
attr_accessor :insurance_company_name
|
|
4738
|
+
# Type of insurance.
|
|
4739
|
+
attr_accessor :insurance_type
|
|
4740
|
+
# Price of insurance in cents.
|
|
4741
|
+
attr_accessor :price
|
|
4742
|
+
|
|
4743
|
+
def initialize(
|
|
4744
|
+
currency: nil,
|
|
4745
|
+
insurance_company_name: nil,
|
|
4746
|
+
insurance_type: nil,
|
|
4747
|
+
price: nil
|
|
4748
|
+
)
|
|
4749
|
+
@currency = currency
|
|
4750
|
+
@insurance_company_name = insurance_company_name
|
|
4751
|
+
@insurance_type = insurance_type
|
|
4752
|
+
@price = price
|
|
4753
|
+
end
|
|
4754
|
+
end
|
|
4755
|
+
|
|
4756
|
+
class Passenger < ::Stripe::RequestParams
|
|
4757
|
+
# The family name of the person.
|
|
4758
|
+
attr_accessor :family_name
|
|
4759
|
+
# The given name of the person.
|
|
4760
|
+
attr_accessor :given_name
|
|
4761
|
+
|
|
4762
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4763
|
+
@family_name = family_name
|
|
4764
|
+
@given_name = given_name
|
|
4765
|
+
end
|
|
4766
|
+
end
|
|
4767
|
+
# Name of associated or partner company for the service.
|
|
4768
|
+
attr_accessor :affiliate_name
|
|
4769
|
+
# Arrival details.
|
|
4770
|
+
attr_accessor :arrival
|
|
4771
|
+
# Name of transportation company.
|
|
4772
|
+
attr_accessor :carrier_name
|
|
4773
|
+
# Currency.
|
|
4774
|
+
attr_accessor :currency
|
|
4775
|
+
# Departure details.
|
|
4776
|
+
attr_accessor :departure
|
|
4777
|
+
# List of insurances for this reservation.
|
|
4778
|
+
attr_accessor :insurances
|
|
4779
|
+
# List of passengers that this reservation applies to.
|
|
4780
|
+
attr_accessor :passengers
|
|
4781
|
+
# Price in cents.
|
|
4782
|
+
attr_accessor :price
|
|
4783
|
+
# Ticket class.
|
|
4784
|
+
attr_accessor :ticket_class
|
|
4785
|
+
|
|
4786
|
+
def initialize(
|
|
4787
|
+
affiliate_name: nil,
|
|
4788
|
+
arrival: nil,
|
|
4789
|
+
carrier_name: nil,
|
|
4790
|
+
currency: nil,
|
|
4791
|
+
departure: nil,
|
|
4792
|
+
insurances: nil,
|
|
4793
|
+
passengers: nil,
|
|
4794
|
+
price: nil,
|
|
4795
|
+
ticket_class: nil
|
|
4796
|
+
)
|
|
4797
|
+
@affiliate_name = affiliate_name
|
|
4798
|
+
@arrival = arrival
|
|
4799
|
+
@carrier_name = carrier_name
|
|
4800
|
+
@currency = currency
|
|
4801
|
+
@departure = departure
|
|
4802
|
+
@insurances = insurances
|
|
4803
|
+
@passengers = passengers
|
|
4804
|
+
@price = price
|
|
4805
|
+
@ticket_class = ticket_class
|
|
4806
|
+
end
|
|
4807
|
+
end
|
|
4808
|
+
|
|
4809
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4810
|
+
class Arrival < ::Stripe::RequestParams
|
|
4811
|
+
class Address < ::Stripe::RequestParams
|
|
4812
|
+
# The city or town.
|
|
4813
|
+
attr_accessor :city
|
|
4814
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4815
|
+
attr_accessor :country
|
|
4816
|
+
# The postal code formatted according to country.
|
|
4817
|
+
attr_accessor :postal_code
|
|
4818
|
+
# The state, county, province, or region formatted according to country.
|
|
4819
|
+
attr_accessor :region
|
|
4820
|
+
# Line 1 of the street address.
|
|
4821
|
+
attr_accessor :street_address
|
|
4822
|
+
# Line 2 of the street address.
|
|
4823
|
+
attr_accessor :street_address2
|
|
4824
|
+
|
|
4825
|
+
def initialize(
|
|
4826
|
+
city: nil,
|
|
4827
|
+
country: nil,
|
|
4828
|
+
postal_code: nil,
|
|
4829
|
+
region: nil,
|
|
4830
|
+
street_address: nil,
|
|
4831
|
+
street_address2: nil
|
|
4832
|
+
)
|
|
4833
|
+
@city = city
|
|
4834
|
+
@country = country
|
|
4835
|
+
@postal_code = postal_code
|
|
4836
|
+
@region = region
|
|
4837
|
+
@street_address = street_address
|
|
4838
|
+
@street_address2 = street_address2
|
|
4839
|
+
end
|
|
4840
|
+
end
|
|
4841
|
+
# Address of the arrival location.
|
|
4842
|
+
attr_accessor :address
|
|
4843
|
+
# Identifier name or reference for the arrival location.
|
|
4844
|
+
attr_accessor :arrival_location
|
|
4845
|
+
|
|
4846
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4847
|
+
@address = address
|
|
4848
|
+
@arrival_location = arrival_location
|
|
4849
|
+
end
|
|
4850
|
+
end
|
|
4851
|
+
|
|
4852
|
+
class Departure < ::Stripe::RequestParams
|
|
4853
|
+
class Address < ::Stripe::RequestParams
|
|
4854
|
+
# The city or town.
|
|
4855
|
+
attr_accessor :city
|
|
4856
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4857
|
+
attr_accessor :country
|
|
4858
|
+
# The postal code formatted according to country.
|
|
4859
|
+
attr_accessor :postal_code
|
|
4860
|
+
# The state, county, province, or region formatted according to country.
|
|
4861
|
+
attr_accessor :region
|
|
4862
|
+
# Line 1 of the street address.
|
|
4863
|
+
attr_accessor :street_address
|
|
4864
|
+
# Line 2 of the street address.
|
|
4865
|
+
attr_accessor :street_address2
|
|
4866
|
+
|
|
4867
|
+
def initialize(
|
|
4868
|
+
city: nil,
|
|
4869
|
+
country: nil,
|
|
4870
|
+
postal_code: nil,
|
|
4871
|
+
region: nil,
|
|
4872
|
+
street_address: nil,
|
|
4873
|
+
street_address2: nil
|
|
4874
|
+
)
|
|
4875
|
+
@city = city
|
|
4876
|
+
@country = country
|
|
4877
|
+
@postal_code = postal_code
|
|
4878
|
+
@region = region
|
|
4879
|
+
@street_address = street_address
|
|
4880
|
+
@street_address2 = street_address2
|
|
4881
|
+
end
|
|
4882
|
+
end
|
|
4883
|
+
# Address of the departure location.
|
|
4884
|
+
attr_accessor :address
|
|
4885
|
+
# Timestamp of departure.
|
|
4886
|
+
attr_accessor :departs_at
|
|
4887
|
+
# Identifier name or reference for the origin location.
|
|
4888
|
+
attr_accessor :departure_location
|
|
4889
|
+
|
|
4890
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4891
|
+
@address = address
|
|
4892
|
+
@departs_at = departs_at
|
|
4893
|
+
@departure_location = departure_location
|
|
4894
|
+
end
|
|
4895
|
+
end
|
|
4896
|
+
|
|
4897
|
+
class Insurance < ::Stripe::RequestParams
|
|
4898
|
+
# Insurance currency.
|
|
4899
|
+
attr_accessor :currency
|
|
4900
|
+
# Name of the company providing the insurance.
|
|
4901
|
+
attr_accessor :insurance_company_name
|
|
4902
|
+
# Type of insurance.
|
|
4903
|
+
attr_accessor :insurance_type
|
|
4904
|
+
# Price of insurance in cents.
|
|
4905
|
+
attr_accessor :price
|
|
4906
|
+
|
|
4907
|
+
def initialize(
|
|
4908
|
+
currency: nil,
|
|
4909
|
+
insurance_company_name: nil,
|
|
4910
|
+
insurance_type: nil,
|
|
4911
|
+
price: nil
|
|
4912
|
+
)
|
|
4913
|
+
@currency = currency
|
|
4914
|
+
@insurance_company_name = insurance_company_name
|
|
4915
|
+
@insurance_type = insurance_type
|
|
4916
|
+
@price = price
|
|
4917
|
+
end
|
|
4918
|
+
end
|
|
4919
|
+
|
|
4920
|
+
class Passenger < ::Stripe::RequestParams
|
|
4921
|
+
# The family name of the person.
|
|
4922
|
+
attr_accessor :family_name
|
|
4923
|
+
# The given name of the person.
|
|
4924
|
+
attr_accessor :given_name
|
|
4925
|
+
|
|
4926
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4927
|
+
@family_name = family_name
|
|
4928
|
+
@given_name = given_name
|
|
4929
|
+
end
|
|
4930
|
+
end
|
|
4931
|
+
# Name of associated or partner company for the service.
|
|
4932
|
+
attr_accessor :affiliate_name
|
|
4933
|
+
# Arrival details.
|
|
4934
|
+
attr_accessor :arrival
|
|
4935
|
+
# Name of transportation company.
|
|
4936
|
+
attr_accessor :carrier_name
|
|
4937
|
+
# Currency.
|
|
4938
|
+
attr_accessor :currency
|
|
4939
|
+
# Departure details.
|
|
4940
|
+
attr_accessor :departure
|
|
4941
|
+
# List of insurances for this reservation.
|
|
4942
|
+
attr_accessor :insurances
|
|
4943
|
+
# List of passengers that this reservation applies to.
|
|
4944
|
+
attr_accessor :passengers
|
|
4945
|
+
# Price in cents.
|
|
4946
|
+
attr_accessor :price
|
|
4947
|
+
# Ticket class.
|
|
4948
|
+
attr_accessor :ticket_class
|
|
4949
|
+
|
|
4950
|
+
def initialize(
|
|
4951
|
+
affiliate_name: nil,
|
|
4952
|
+
arrival: nil,
|
|
4953
|
+
carrier_name: nil,
|
|
4954
|
+
currency: nil,
|
|
4955
|
+
departure: nil,
|
|
4956
|
+
insurances: nil,
|
|
4957
|
+
passengers: nil,
|
|
4958
|
+
price: nil,
|
|
4959
|
+
ticket_class: nil
|
|
4960
|
+
)
|
|
4961
|
+
@affiliate_name = affiliate_name
|
|
4962
|
+
@arrival = arrival
|
|
4963
|
+
@carrier_name = carrier_name
|
|
4964
|
+
@currency = currency
|
|
4965
|
+
@departure = departure
|
|
4966
|
+
@insurances = insurances
|
|
4967
|
+
@passengers = passengers
|
|
4968
|
+
@price = price
|
|
4969
|
+
@ticket_class = ticket_class
|
|
4970
|
+
end
|
|
4971
|
+
end
|
|
4972
|
+
|
|
4973
|
+
class Voucher < ::Stripe::RequestParams
|
|
4974
|
+
# Name of associated or partner company for this voucher.
|
|
4975
|
+
attr_accessor :affiliate_name
|
|
4976
|
+
# The voucher validity end time.
|
|
4977
|
+
attr_accessor :ends_at
|
|
4978
|
+
# The voucher validity start time.
|
|
4979
|
+
attr_accessor :starts_at
|
|
4980
|
+
# The issuer or provider of this voucher.
|
|
4981
|
+
attr_accessor :voucher_company
|
|
4982
|
+
# The name or reference to identify the voucher.
|
|
4983
|
+
attr_accessor :voucher_name
|
|
4984
|
+
# The type of this voucher.
|
|
4985
|
+
attr_accessor :voucher_type
|
|
4986
|
+
|
|
4987
|
+
def initialize(
|
|
4988
|
+
affiliate_name: nil,
|
|
4989
|
+
ends_at: nil,
|
|
4990
|
+
starts_at: nil,
|
|
4991
|
+
voucher_company: nil,
|
|
4992
|
+
voucher_name: nil,
|
|
4993
|
+
voucher_type: nil
|
|
4994
|
+
)
|
|
4995
|
+
@affiliate_name = affiliate_name
|
|
4996
|
+
@ends_at = ends_at
|
|
4997
|
+
@starts_at = starts_at
|
|
4998
|
+
@voucher_company = voucher_company
|
|
4999
|
+
@voucher_name = voucher_name
|
|
5000
|
+
@voucher_type = voucher_type
|
|
5001
|
+
end
|
|
5002
|
+
end
|
|
5003
|
+
# Supplementary bus reservation details.
|
|
5004
|
+
attr_accessor :bus_reservation_details
|
|
5005
|
+
# Supplementary event reservation details.
|
|
5006
|
+
attr_accessor :event_reservation_details
|
|
5007
|
+
# Supplementary ferry reservation details.
|
|
5008
|
+
attr_accessor :ferry_reservation_details
|
|
5009
|
+
# Supplementary insurance details.
|
|
5010
|
+
attr_accessor :insurances
|
|
5011
|
+
# Supplementary marketplace seller details.
|
|
5012
|
+
attr_accessor :marketplace_sellers
|
|
5013
|
+
# Supplementary round trip reservation details.
|
|
5014
|
+
attr_accessor :round_trip_reservation_details
|
|
5015
|
+
# Supplementary train reservation details.
|
|
5016
|
+
attr_accessor :train_reservation_details
|
|
5017
|
+
# Voucher details, such as a gift card or discount code.
|
|
5018
|
+
attr_accessor :vouchers
|
|
5019
|
+
|
|
5020
|
+
def initialize(
|
|
5021
|
+
bus_reservation_details: nil,
|
|
5022
|
+
event_reservation_details: nil,
|
|
5023
|
+
ferry_reservation_details: nil,
|
|
5024
|
+
insurances: nil,
|
|
5025
|
+
marketplace_sellers: nil,
|
|
5026
|
+
round_trip_reservation_details: nil,
|
|
5027
|
+
train_reservation_details: nil,
|
|
5028
|
+
vouchers: nil
|
|
5029
|
+
)
|
|
5030
|
+
@bus_reservation_details = bus_reservation_details
|
|
5031
|
+
@event_reservation_details = event_reservation_details
|
|
5032
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
5033
|
+
@insurances = insurances
|
|
5034
|
+
@marketplace_sellers = marketplace_sellers
|
|
5035
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
5036
|
+
@train_reservation_details = train_reservation_details
|
|
5037
|
+
@vouchers = vouchers
|
|
5038
|
+
end
|
|
5039
|
+
end
|
|
1694
5040
|
# Controls when the funds are captured from the customer's account.
|
|
1695
5041
|
#
|
|
1696
5042
|
# 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.
|
|
@@ -1713,19 +5059,23 @@ module Stripe
|
|
|
1713
5059
|
attr_accessor :setup_future_usage
|
|
1714
5060
|
# Subscription details if setting up or charging a subscription.
|
|
1715
5061
|
attr_accessor :subscriptions
|
|
5062
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
5063
|
+
attr_accessor :supplementary_purchase_data
|
|
1716
5064
|
|
|
1717
5065
|
def initialize(
|
|
1718
5066
|
capture_method: nil,
|
|
1719
5067
|
on_demand: nil,
|
|
1720
5068
|
preferred_locale: nil,
|
|
1721
5069
|
setup_future_usage: nil,
|
|
1722
|
-
subscriptions: nil
|
|
5070
|
+
subscriptions: nil,
|
|
5071
|
+
supplementary_purchase_data: nil
|
|
1723
5072
|
)
|
|
1724
5073
|
@capture_method = capture_method
|
|
1725
5074
|
@on_demand = on_demand
|
|
1726
5075
|
@preferred_locale = preferred_locale
|
|
1727
5076
|
@setup_future_usage = setup_future_usage
|
|
1728
5077
|
@subscriptions = subscriptions
|
|
5078
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1729
5079
|
end
|
|
1730
5080
|
end
|
|
1731
5081
|
|
|
@@ -1995,12 +5345,65 @@ module Stripe
|
|
|
1995
5345
|
end
|
|
1996
5346
|
|
|
1997
5347
|
class Paypal < ::Stripe::RequestParams
|
|
5348
|
+
class LineItem < ::Stripe::RequestParams
|
|
5349
|
+
class Tax < ::Stripe::RequestParams
|
|
5350
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
5351
|
+
attr_accessor :amount
|
|
5352
|
+
# The tax behavior for the line item.
|
|
5353
|
+
attr_accessor :behavior
|
|
5354
|
+
|
|
5355
|
+
def initialize(amount: nil, behavior: nil)
|
|
5356
|
+
@amount = amount
|
|
5357
|
+
@behavior = behavior
|
|
5358
|
+
end
|
|
5359
|
+
end
|
|
5360
|
+
# Type of the line item.
|
|
5361
|
+
attr_accessor :category
|
|
5362
|
+
# Description of the line item.
|
|
5363
|
+
attr_accessor :description
|
|
5364
|
+
# Descriptive name of the line item.
|
|
5365
|
+
attr_accessor :name
|
|
5366
|
+
# Quantity of the line item. Must be a positive number.
|
|
5367
|
+
attr_accessor :quantity
|
|
5368
|
+
# Client facing stock keeping unit, article number or similar.
|
|
5369
|
+
attr_accessor :sku
|
|
5370
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
5371
|
+
attr_accessor :sold_by
|
|
5372
|
+
# The tax information for the line item.
|
|
5373
|
+
attr_accessor :tax
|
|
5374
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
5375
|
+
attr_accessor :unit_amount
|
|
5376
|
+
|
|
5377
|
+
def initialize(
|
|
5378
|
+
category: nil,
|
|
5379
|
+
description: nil,
|
|
5380
|
+
name: nil,
|
|
5381
|
+
quantity: nil,
|
|
5382
|
+
sku: nil,
|
|
5383
|
+
sold_by: nil,
|
|
5384
|
+
tax: nil,
|
|
5385
|
+
unit_amount: nil
|
|
5386
|
+
)
|
|
5387
|
+
@category = category
|
|
5388
|
+
@description = description
|
|
5389
|
+
@name = name
|
|
5390
|
+
@quantity = quantity
|
|
5391
|
+
@sku = sku
|
|
5392
|
+
@sold_by = sold_by
|
|
5393
|
+
@tax = tax
|
|
5394
|
+
@unit_amount = unit_amount
|
|
5395
|
+
end
|
|
5396
|
+
end
|
|
1998
5397
|
# Controls when the funds will be captured from the customer's account.
|
|
1999
5398
|
attr_accessor :capture_method
|
|
5399
|
+
# The line items purchased by the customer.
|
|
5400
|
+
attr_accessor :line_items
|
|
2000
5401
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
2001
5402
|
attr_accessor :preferred_locale
|
|
2002
5403
|
# 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.
|
|
2003
5404
|
attr_accessor :reference
|
|
5405
|
+
# 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.
|
|
5406
|
+
attr_accessor :reference_id
|
|
2004
5407
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
2005
5408
|
attr_accessor :risk_correlation_id
|
|
2006
5409
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2013,19 +5416,49 @@ module Stripe
|
|
|
2013
5416
|
#
|
|
2014
5417
|
# 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`.
|
|
2015
5418
|
attr_accessor :setup_future_usage
|
|
5419
|
+
# 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.
|
|
5420
|
+
attr_accessor :subsellers
|
|
2016
5421
|
|
|
2017
5422
|
def initialize(
|
|
2018
5423
|
capture_method: nil,
|
|
5424
|
+
line_items: nil,
|
|
2019
5425
|
preferred_locale: nil,
|
|
2020
5426
|
reference: nil,
|
|
5427
|
+
reference_id: nil,
|
|
2021
5428
|
risk_correlation_id: nil,
|
|
2022
|
-
setup_future_usage: nil
|
|
5429
|
+
setup_future_usage: nil,
|
|
5430
|
+
subsellers: nil
|
|
2023
5431
|
)
|
|
2024
5432
|
@capture_method = capture_method
|
|
5433
|
+
@line_items = line_items
|
|
2025
5434
|
@preferred_locale = preferred_locale
|
|
2026
5435
|
@reference = reference
|
|
5436
|
+
@reference_id = reference_id
|
|
2027
5437
|
@risk_correlation_id = risk_correlation_id
|
|
2028
5438
|
@setup_future_usage = setup_future_usage
|
|
5439
|
+
@subsellers = subsellers
|
|
5440
|
+
end
|
|
5441
|
+
end
|
|
5442
|
+
|
|
5443
|
+
class Paypay < ::Stripe::RequestParams
|
|
5444
|
+
# Controls when the funds are captured from the customer's account.
|
|
5445
|
+
#
|
|
5446
|
+
# 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.
|
|
5447
|
+
#
|
|
5448
|
+
# 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.
|
|
5449
|
+
attr_accessor :capture_method
|
|
5450
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5451
|
+
#
|
|
5452
|
+
# 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.
|
|
5453
|
+
#
|
|
5454
|
+
# 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.
|
|
5455
|
+
#
|
|
5456
|
+
# 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).
|
|
5457
|
+
attr_accessor :setup_future_usage
|
|
5458
|
+
|
|
5459
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
5460
|
+
@capture_method = capture_method
|
|
5461
|
+
@setup_future_usage = setup_future_usage
|
|
2029
5462
|
end
|
|
2030
5463
|
end
|
|
2031
5464
|
|
|
@@ -2167,6 +5600,25 @@ module Stripe
|
|
|
2167
5600
|
end
|
|
2168
5601
|
end
|
|
2169
5602
|
|
|
5603
|
+
class Qris < ::Stripe::RequestParams
|
|
5604
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5605
|
+
#
|
|
5606
|
+
# 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.
|
|
5607
|
+
#
|
|
5608
|
+
# 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.
|
|
5609
|
+
#
|
|
5610
|
+
# 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).
|
|
5611
|
+
#
|
|
5612
|
+
# 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`.
|
|
5613
|
+
attr_accessor :setup_future_usage
|
|
5614
|
+
|
|
5615
|
+
def initialize(setup_future_usage: nil)
|
|
5616
|
+
@setup_future_usage = setup_future_usage
|
|
5617
|
+
end
|
|
5618
|
+
end
|
|
5619
|
+
|
|
5620
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
5621
|
+
|
|
2170
5622
|
class RevolutPay < ::Stripe::RequestParams
|
|
2171
5623
|
# Controls when the funds are captured from the customer's account.
|
|
2172
5624
|
#
|
|
@@ -2277,6 +5729,23 @@ module Stripe
|
|
|
2277
5729
|
end
|
|
2278
5730
|
end
|
|
2279
5731
|
|
|
5732
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5733
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5734
|
+
#
|
|
5735
|
+
# 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.
|
|
5736
|
+
#
|
|
5737
|
+
# 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.
|
|
5738
|
+
#
|
|
5739
|
+
# 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).
|
|
5740
|
+
#
|
|
5741
|
+
# 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`.
|
|
5742
|
+
attr_accessor :setup_future_usage
|
|
5743
|
+
|
|
5744
|
+
def initialize(setup_future_usage: nil)
|
|
5745
|
+
@setup_future_usage = setup_future_usage
|
|
5746
|
+
end
|
|
5747
|
+
end
|
|
5748
|
+
|
|
2280
5749
|
class Sofort < ::Stripe::RequestParams
|
|
2281
5750
|
# Language shown to the payer on redirect.
|
|
2282
5751
|
attr_accessor :preferred_language
|
|
@@ -2297,6 +5766,34 @@ module Stripe
|
|
|
2297
5766
|
end
|
|
2298
5767
|
end
|
|
2299
5768
|
|
|
5769
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5770
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
5771
|
+
# The ID of the Stripe Balance Debit Agreement used for this mandate.
|
|
5772
|
+
attr_accessor :stripe_balance_debit_agreement
|
|
5773
|
+
|
|
5774
|
+
def initialize(stripe_balance_debit_agreement: nil)
|
|
5775
|
+
@stripe_balance_debit_agreement = stripe_balance_debit_agreement
|
|
5776
|
+
end
|
|
5777
|
+
end
|
|
5778
|
+
# Additional fields for mandate creation.
|
|
5779
|
+
attr_accessor :mandate_options
|
|
5780
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5781
|
+
#
|
|
5782
|
+
# 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.
|
|
5783
|
+
#
|
|
5784
|
+
# 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.
|
|
5785
|
+
#
|
|
5786
|
+
# 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).
|
|
5787
|
+
#
|
|
5788
|
+
# 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`.
|
|
5789
|
+
attr_accessor :setup_future_usage
|
|
5790
|
+
|
|
5791
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
|
5792
|
+
@mandate_options = mandate_options
|
|
5793
|
+
@setup_future_usage = setup_future_usage
|
|
5794
|
+
end
|
|
5795
|
+
end
|
|
5796
|
+
|
|
2300
5797
|
class Sunbit < ::Stripe::RequestParams
|
|
2301
5798
|
# Controls when the funds are captured from the customer's account.
|
|
2302
5799
|
#
|
|
@@ -2390,13 +5887,27 @@ module Stripe
|
|
|
2390
5887
|
class Filters < ::Stripe::RequestParams
|
|
2391
5888
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2392
5889
|
attr_accessor :account_subcategories
|
|
5890
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5891
|
+
attr_accessor :institution
|
|
2393
5892
|
|
|
2394
|
-
def initialize(account_subcategories: nil)
|
|
5893
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2395
5894
|
@account_subcategories = account_subcategories
|
|
5895
|
+
@institution = institution
|
|
5896
|
+
end
|
|
5897
|
+
end
|
|
5898
|
+
|
|
5899
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5900
|
+
# Settings for configuring manual entry of account details.
|
|
5901
|
+
attr_accessor :mode
|
|
5902
|
+
|
|
5903
|
+
def initialize(mode: nil)
|
|
5904
|
+
@mode = mode
|
|
2396
5905
|
end
|
|
2397
5906
|
end
|
|
2398
5907
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2399
5908
|
attr_accessor :filters
|
|
5909
|
+
# Customize manual entry behavior
|
|
5910
|
+
attr_accessor :manual_entry
|
|
2400
5911
|
# 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`.
|
|
2401
5912
|
attr_accessor :permissions
|
|
2402
5913
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2404,8 +5915,15 @@ module Stripe
|
|
|
2404
5915
|
# 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.
|
|
2405
5916
|
attr_accessor :return_url
|
|
2406
5917
|
|
|
2407
|
-
def initialize(
|
|
5918
|
+
def initialize(
|
|
5919
|
+
filters: nil,
|
|
5920
|
+
manual_entry: nil,
|
|
5921
|
+
permissions: nil,
|
|
5922
|
+
prefetch: nil,
|
|
5923
|
+
return_url: nil
|
|
5924
|
+
)
|
|
2408
5925
|
@filters = filters
|
|
5926
|
+
@manual_entry = manual_entry
|
|
2409
5927
|
@permissions = permissions
|
|
2410
5928
|
@prefetch = prefetch
|
|
2411
5929
|
@return_url = return_url
|
|
@@ -2471,9 +5989,62 @@ module Stripe
|
|
|
2471
5989
|
end
|
|
2472
5990
|
end
|
|
2473
5991
|
|
|
5992
|
+
class Vipps < ::Stripe::RequestParams
|
|
5993
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
5994
|
+
class MoneyServices < ::Stripe::RequestParams
|
|
5995
|
+
class AccountFunding < ::Stripe::RequestParams
|
|
5996
|
+
# The category of digital asset being acquired through this account funding transaction.
|
|
5997
|
+
attr_accessor :digital_asset_category
|
|
5998
|
+
|
|
5999
|
+
def initialize(digital_asset_category: nil)
|
|
6000
|
+
@digital_asset_category = digital_asset_category
|
|
6001
|
+
end
|
|
6002
|
+
end
|
|
6003
|
+
# Payment method specific account funding transaction details.
|
|
6004
|
+
attr_accessor :account_funding
|
|
6005
|
+
|
|
6006
|
+
def initialize(account_funding: nil)
|
|
6007
|
+
@account_funding = account_funding
|
|
6008
|
+
end
|
|
6009
|
+
end
|
|
6010
|
+
# Money services details for payment method specific funding fields.
|
|
6011
|
+
attr_accessor :money_services
|
|
6012
|
+
|
|
6013
|
+
def initialize(money_services: nil)
|
|
6014
|
+
@money_services = money_services
|
|
6015
|
+
end
|
|
6016
|
+
end
|
|
6017
|
+
# Controls when the funds are captured from the customer's account.
|
|
6018
|
+
#
|
|
6019
|
+
# 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.
|
|
6020
|
+
#
|
|
6021
|
+
# 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.
|
|
6022
|
+
attr_accessor :capture_method
|
|
6023
|
+
# Payment details for payment method specific funding transaction fields.
|
|
6024
|
+
attr_accessor :payment_details
|
|
6025
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
6026
|
+
#
|
|
6027
|
+
# 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.
|
|
6028
|
+
#
|
|
6029
|
+
# 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.
|
|
6030
|
+
#
|
|
6031
|
+
# 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).
|
|
6032
|
+
#
|
|
6033
|
+
# 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`.
|
|
6034
|
+
attr_accessor :setup_future_usage
|
|
6035
|
+
|
|
6036
|
+
def initialize(capture_method: nil, payment_details: nil, setup_future_usage: nil)
|
|
6037
|
+
@capture_method = capture_method
|
|
6038
|
+
@payment_details = payment_details
|
|
6039
|
+
@setup_future_usage = setup_future_usage
|
|
6040
|
+
end
|
|
6041
|
+
end
|
|
6042
|
+
|
|
2474
6043
|
class WechatPay < ::Stripe::RequestParams
|
|
2475
6044
|
# The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
|
|
2476
6045
|
attr_accessor :app_id
|
|
6046
|
+
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
6047
|
+
attr_accessor :buyer_id
|
|
2477
6048
|
# The client type that the end customer will pay from
|
|
2478
6049
|
attr_accessor :client
|
|
2479
6050
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2487,8 +6058,9 @@ module Stripe
|
|
|
2487
6058
|
# 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`.
|
|
2488
6059
|
attr_accessor :setup_future_usage
|
|
2489
6060
|
|
|
2490
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
|
6061
|
+
def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
|
|
2491
6062
|
@app_id = app_id
|
|
6063
|
+
@buyer_id = buyer_id
|
|
2492
6064
|
@client = client
|
|
2493
6065
|
@setup_future_usage = setup_future_usage
|
|
2494
6066
|
end
|
|
@@ -2550,10 +6122,16 @@ module Stripe
|
|
|
2550
6122
|
attr_accessor :eps
|
|
2551
6123
|
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
|
|
2552
6124
|
attr_accessor :fpx
|
|
6125
|
+
# If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options.
|
|
6126
|
+
attr_accessor :gift_card
|
|
2553
6127
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2554
6128
|
attr_accessor :giropay
|
|
6129
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
6130
|
+
attr_accessor :gopay
|
|
2555
6131
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2556
6132
|
attr_accessor :grabpay
|
|
6133
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
6134
|
+
attr_accessor :id_bank_transfer
|
|
2557
6135
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2558
6136
|
attr_accessor :ideal
|
|
2559
6137
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2590,12 +6168,18 @@ module Stripe
|
|
|
2590
6168
|
attr_accessor :paynow
|
|
2591
6169
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2592
6170
|
attr_accessor :paypal
|
|
6171
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
6172
|
+
attr_accessor :paypay
|
|
2593
6173
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2594
6174
|
attr_accessor :payto
|
|
2595
6175
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2596
6176
|
attr_accessor :pix
|
|
2597
6177
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2598
6178
|
attr_accessor :promptpay
|
|
6179
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
6180
|
+
attr_accessor :qris
|
|
6181
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
6182
|
+
attr_accessor :rechnung
|
|
2599
6183
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2600
6184
|
attr_accessor :revolut_pay
|
|
2601
6185
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2606,8 +6190,12 @@ module Stripe
|
|
|
2606
6190
|
attr_accessor :scalapay
|
|
2607
6191
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2608
6192
|
attr_accessor :sepa_debit
|
|
6193
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
6194
|
+
attr_accessor :shopeepay
|
|
2609
6195
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2610
6196
|
attr_accessor :sofort
|
|
6197
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
6198
|
+
attr_accessor :stripe_balance
|
|
2611
6199
|
# If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
|
|
2612
6200
|
attr_accessor :sunbit
|
|
2613
6201
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
@@ -2618,6 +6206,8 @@ module Stripe
|
|
|
2618
6206
|
attr_accessor :upi
|
|
2619
6207
|
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
2620
6208
|
attr_accessor :us_bank_account
|
|
6209
|
+
# If this is a `Vipps` PaymentMethod, this sub-hash contains details about the Vipps payment method options.
|
|
6210
|
+
attr_accessor :vipps
|
|
2621
6211
|
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
|
|
2622
6212
|
attr_accessor :wechat_pay
|
|
2623
6213
|
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
|
|
@@ -2644,8 +6234,11 @@ module Stripe
|
|
|
2644
6234
|
customer_balance: nil,
|
|
2645
6235
|
eps: nil,
|
|
2646
6236
|
fpx: nil,
|
|
6237
|
+
gift_card: nil,
|
|
2647
6238
|
giropay: nil,
|
|
6239
|
+
gopay: nil,
|
|
2648
6240
|
grabpay: nil,
|
|
6241
|
+
id_bank_transfer: nil,
|
|
2649
6242
|
ideal: nil,
|
|
2650
6243
|
interac_present: nil,
|
|
2651
6244
|
kakao_pay: nil,
|
|
@@ -2664,20 +6257,26 @@ module Stripe
|
|
|
2664
6257
|
payco: nil,
|
|
2665
6258
|
paynow: nil,
|
|
2666
6259
|
paypal: nil,
|
|
6260
|
+
paypay: nil,
|
|
2667
6261
|
payto: nil,
|
|
2668
6262
|
pix: nil,
|
|
2669
6263
|
promptpay: nil,
|
|
6264
|
+
qris: nil,
|
|
6265
|
+
rechnung: nil,
|
|
2670
6266
|
revolut_pay: nil,
|
|
2671
6267
|
samsung_pay: nil,
|
|
2672
6268
|
satispay: nil,
|
|
2673
6269
|
scalapay: nil,
|
|
2674
6270
|
sepa_debit: nil,
|
|
6271
|
+
shopeepay: nil,
|
|
2675
6272
|
sofort: nil,
|
|
6273
|
+
stripe_balance: nil,
|
|
2676
6274
|
sunbit: nil,
|
|
2677
6275
|
swish: nil,
|
|
2678
6276
|
twint: nil,
|
|
2679
6277
|
upi: nil,
|
|
2680
6278
|
us_bank_account: nil,
|
|
6279
|
+
vipps: nil,
|
|
2681
6280
|
wechat_pay: nil,
|
|
2682
6281
|
zip: nil
|
|
2683
6282
|
)
|
|
@@ -2701,8 +6300,11 @@ module Stripe
|
|
|
2701
6300
|
@customer_balance = customer_balance
|
|
2702
6301
|
@eps = eps
|
|
2703
6302
|
@fpx = fpx
|
|
6303
|
+
@gift_card = gift_card
|
|
2704
6304
|
@giropay = giropay
|
|
6305
|
+
@gopay = gopay
|
|
2705
6306
|
@grabpay = grabpay
|
|
6307
|
+
@id_bank_transfer = id_bank_transfer
|
|
2706
6308
|
@ideal = ideal
|
|
2707
6309
|
@interac_present = interac_present
|
|
2708
6310
|
@kakao_pay = kakao_pay
|
|
@@ -2721,25 +6323,43 @@ module Stripe
|
|
|
2721
6323
|
@payco = payco
|
|
2722
6324
|
@paynow = paynow
|
|
2723
6325
|
@paypal = paypal
|
|
6326
|
+
@paypay = paypay
|
|
2724
6327
|
@payto = payto
|
|
2725
6328
|
@pix = pix
|
|
2726
6329
|
@promptpay = promptpay
|
|
6330
|
+
@qris = qris
|
|
6331
|
+
@rechnung = rechnung
|
|
2727
6332
|
@revolut_pay = revolut_pay
|
|
2728
6333
|
@samsung_pay = samsung_pay
|
|
2729
6334
|
@satispay = satispay
|
|
2730
6335
|
@scalapay = scalapay
|
|
2731
6336
|
@sepa_debit = sepa_debit
|
|
6337
|
+
@shopeepay = shopeepay
|
|
2732
6338
|
@sofort = sofort
|
|
6339
|
+
@stripe_balance = stripe_balance
|
|
2733
6340
|
@sunbit = sunbit
|
|
2734
6341
|
@swish = swish
|
|
2735
6342
|
@twint = twint
|
|
2736
6343
|
@upi = upi
|
|
2737
6344
|
@us_bank_account = us_bank_account
|
|
6345
|
+
@vipps = vipps
|
|
2738
6346
|
@wechat_pay = wechat_pay
|
|
2739
6347
|
@zip = zip
|
|
2740
6348
|
end
|
|
2741
6349
|
end
|
|
2742
6350
|
|
|
6351
|
+
class PaymentsOrchestration < ::Stripe::RequestParams
|
|
6352
|
+
# Whether this feature is enabled.
|
|
6353
|
+
attr_accessor :enabled
|
|
6354
|
+
# Merchant-provided reference for this payment, used for reconciliation.
|
|
6355
|
+
attr_accessor :payment_reference
|
|
6356
|
+
|
|
6357
|
+
def initialize(enabled: nil, payment_reference: nil)
|
|
6358
|
+
@enabled = enabled
|
|
6359
|
+
@payment_reference = payment_reference
|
|
6360
|
+
end
|
|
6361
|
+
end
|
|
6362
|
+
|
|
2743
6363
|
class RadarOptions < ::Stripe::RequestParams
|
|
2744
6364
|
# The referrer URL of the current checkout session. You can use this to supply session-level referrer data when a Radar Session isn't available or doesn't contain a referrer.
|
|
2745
6365
|
attr_accessor :referrer
|
|
@@ -2849,6 +6469,8 @@ module Stripe
|
|
|
2849
6469
|
@payment_data = payment_data
|
|
2850
6470
|
end
|
|
2851
6471
|
end
|
|
6472
|
+
# Allocated Funds configuration for this PaymentIntent.
|
|
6473
|
+
attr_accessor :allocated_funds
|
|
2852
6474
|
# The list of payment method types allowed for use with this payment. Stripe automatically returns compatible payment methods from this list in the `payment_method_types` field of the response, based on the other PaymentIntent parameters, such as `currency`, `amount`, and `customer`.
|
|
2853
6475
|
attr_accessor :allowed_payment_method_types
|
|
2854
6476
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
@@ -2891,6 +6513,8 @@ module Stripe
|
|
|
2891
6513
|
attr_accessor :excluded_payment_method_types
|
|
2892
6514
|
# Specifies which fields in the response should be expanded.
|
|
2893
6515
|
attr_accessor :expand
|
|
6516
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
6517
|
+
attr_accessor :fx_quote
|
|
2894
6518
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2895
6519
|
attr_accessor :hooks
|
|
2896
6520
|
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
@@ -2921,12 +6545,16 @@ module Stripe
|
|
|
2921
6545
|
attr_accessor :payment_method_options
|
|
2922
6546
|
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
2923
6547
|
attr_accessor :payment_method_types
|
|
6548
|
+
# When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
|
|
6549
|
+
attr_accessor :payments_orchestration
|
|
2924
6550
|
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
2925
6551
|
attr_accessor :radar_options
|
|
2926
6552
|
# Email address to send the receipt to. If you specify `receipt_email` for a payment in live mode, you send a receipt regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
2927
6553
|
attr_accessor :receipt_email
|
|
2928
6554
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
2929
6555
|
attr_accessor :return_url
|
|
6556
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
6557
|
+
attr_accessor :secret_key_confirmation
|
|
2930
6558
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2931
6559
|
#
|
|
2932
6560
|
# 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.
|
|
@@ -2952,6 +6580,7 @@ module Stripe
|
|
|
2952
6580
|
attr_accessor :use_stripe_sdk
|
|
2953
6581
|
|
|
2954
6582
|
def initialize(
|
|
6583
|
+
allocated_funds: nil,
|
|
2955
6584
|
allowed_payment_method_types: nil,
|
|
2956
6585
|
amount: nil,
|
|
2957
6586
|
amount_details: nil,
|
|
@@ -2968,6 +6597,7 @@ module Stripe
|
|
|
2968
6597
|
error_on_requires_action: nil,
|
|
2969
6598
|
excluded_payment_method_types: nil,
|
|
2970
6599
|
expand: nil,
|
|
6600
|
+
fx_quote: nil,
|
|
2971
6601
|
hooks: nil,
|
|
2972
6602
|
mandate: nil,
|
|
2973
6603
|
mandate_data: nil,
|
|
@@ -2980,9 +6610,11 @@ module Stripe
|
|
|
2980
6610
|
payment_method_data: nil,
|
|
2981
6611
|
payment_method_options: nil,
|
|
2982
6612
|
payment_method_types: nil,
|
|
6613
|
+
payments_orchestration: nil,
|
|
2983
6614
|
radar_options: nil,
|
|
2984
6615
|
receipt_email: nil,
|
|
2985
6616
|
return_url: nil,
|
|
6617
|
+
secret_key_confirmation: nil,
|
|
2986
6618
|
setup_future_usage: nil,
|
|
2987
6619
|
shipping: nil,
|
|
2988
6620
|
statement_descriptor: nil,
|
|
@@ -2991,6 +6623,7 @@ module Stripe
|
|
|
2991
6623
|
transfer_group: nil,
|
|
2992
6624
|
use_stripe_sdk: nil
|
|
2993
6625
|
)
|
|
6626
|
+
@allocated_funds = allocated_funds
|
|
2994
6627
|
@allowed_payment_method_types = allowed_payment_method_types
|
|
2995
6628
|
@amount = amount
|
|
2996
6629
|
@amount_details = amount_details
|
|
@@ -3007,6 +6640,7 @@ module Stripe
|
|
|
3007
6640
|
@error_on_requires_action = error_on_requires_action
|
|
3008
6641
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
3009
6642
|
@expand = expand
|
|
6643
|
+
@fx_quote = fx_quote
|
|
3010
6644
|
@hooks = hooks
|
|
3011
6645
|
@mandate = mandate
|
|
3012
6646
|
@mandate_data = mandate_data
|
|
@@ -3019,9 +6653,11 @@ module Stripe
|
|
|
3019
6653
|
@payment_method_data = payment_method_data
|
|
3020
6654
|
@payment_method_options = payment_method_options
|
|
3021
6655
|
@payment_method_types = payment_method_types
|
|
6656
|
+
@payments_orchestration = payments_orchestration
|
|
3022
6657
|
@radar_options = radar_options
|
|
3023
6658
|
@receipt_email = receipt_email
|
|
3024
6659
|
@return_url = return_url
|
|
6660
|
+
@secret_key_confirmation = secret_key_confirmation
|
|
3025
6661
|
@setup_future_usage = setup_future_usage
|
|
3026
6662
|
@shipping = shipping
|
|
3027
6663
|
@statement_descriptor = statement_descriptor
|