stripe 17.3.0.pre.alpha.2 → 18.1.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +0 -841
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
- data/lib/stripe/object_types.rb +2 -30
- data/lib/stripe/params/account_create_params.rb +19 -34
- data/lib/stripe/params/account_person_create_params.rb +1 -33
- data/lib/stripe/params/account_person_update_params.rb +1 -33
- data/lib/stripe/params/account_update_params.rb +19 -34
- data/lib/stripe/params/billing/alert_create_params.rb +1 -121
- data/lib/stripe/params/billing/alert_list_params.rb +0 -4
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +3 -7
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -13
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -29
- data/lib/stripe/params/billing/meter_create_params.rb +0 -4
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
- data/lib/stripe/params/charge_capture_params.rb +941 -2
- data/lib/stripe/params/charge_update_params.rb +941 -2
- data/lib/stripe/params/checkout/session_create_params.rb +4 -83
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +21 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -1
- data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
- data/lib/stripe/params/invoice_create_preview_params.rb +1 -57
- data/lib/stripe/params/invoice_list_params.rb +0 -4
- data/lib/stripe/params/invoice_payment_list_params.rb +22 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +16 -1
- data/lib/stripe/params/order_create_params.rb +938 -1
- data/lib/stripe/params/order_update_params.rb +938 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +962 -13
- data/lib/stripe/params/payment_intent_confirm_params.rb +1913 -53
- data/lib/stripe/params/payment_intent_create_params.rb +1913 -53
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +29 -13
- data/lib/stripe/params/payment_intent_update_params.rb +1913 -53
- data/lib/stripe/params/payment_method_list_params.rb +8 -0
- data/lib/stripe/params/quote_create_params.rb +2 -210
- data/lib/stripe/params/quote_update_params.rb +2 -210
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -32
- data/lib/stripe/params/setup_intent_create_params.rb +3 -32
- data/lib/stripe/params/setup_intent_update_params.rb +4 -33
- data/lib/stripe/params/subscription_schedule_create_params.rb +2 -62
- data/lib/stripe/params/subscription_schedule_update_params.rb +2 -62
- data/lib/stripe/params/tax/registration_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +9 -9
- data/lib/stripe/params/terminal/configuration_update_params.rb +9 -9
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +16 -1
- data/lib/stripe/params/token_create_params.rb +2 -66
- data/lib/stripe/params/transfer_create_params.rb +1 -5
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +1 -8
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -4
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +1 -4
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/core/account_create_params.rb +97 -699
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1001 -0
- data/lib/stripe/params/v2/core/{claimable_sandbox_retrieve_params.rb → account_token_retrieve_params.rb} +1 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +98 -686
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
- data/lib/stripe/params/v2/{billing/rate_cards/version_retrieve_params.rb → core/accounts/person_token_retrieve_params.rb} +3 -3
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +1 -12
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -4
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -19
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -4
- data/lib/stripe/params.rb +4 -93
- data/lib/stripe/resources/account.rb +19 -1
- data/lib/stripe/resources/application_fee.rb +0 -2
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/alert.rb +1 -105
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -84
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
- data/lib/stripe/resources/billing/credit_grant.rb +2 -58
- data/lib/stripe/resources/billing/meter.rb +0 -2
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
- data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +6 -47
- data/lib/stripe/resources/capital/financing_summary.rb +7 -7
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +3 -19
- data/lib/stripe/resources/checkout/session.rb +3 -95
- data/lib/stripe/resources/confirmation_token.rb +1 -19
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/financial_connections/account.rb +22 -0
- data/lib/stripe/resources/identity/verification_report.rb +0 -4
- data/lib/stripe/resources/invoice.rb +1 -17
- data/lib/stripe/resources/invoice_item.rb +2 -106
- data/lib/stripe/resources/invoice_line_item.rb +1 -107
- data/lib/stripe/resources/issuing/card.rb +18 -0
- data/lib/stripe/resources/mandate.rb +3 -3
- data/lib/stripe/resources/payment_attempt_record.rb +8 -6
- data/lib/stripe/resources/payment_intent.rb +22 -54
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +13 -7
- data/lib/stripe/resources/payment_method.rb +1 -39
- data/lib/stripe/resources/payment_record.rb +8 -6
- data/lib/stripe/resources/person.rb +0 -36
- data/lib/stripe/resources/quote.rb +1 -348
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -17
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -174
- data/lib/stripe/resources/refund.rb +31 -0
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +3 -43
- data/lib/stripe/resources/subscription.rb +3 -106
- data/lib/stripe/resources/subscription_schedule.rb +0 -174
- data/lib/stripe/resources/transfer.rb +0 -4
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -48
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
- data/lib/stripe/resources/v2/core/account.rb +295 -1053
- data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -29
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -4
- data/lib/stripe/resources.rb +2 -288
- data/lib/stripe/services/identity_service.rb +1 -2
- data/lib/stripe/services/issuing_service.rb +1 -2
- data/lib/stripe/services/payment_method_service.rb +0 -11
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -2
- data/lib/stripe/services/v2/billing_service.rb +1 -14
- data/lib/stripe/services/v2/core/account_service.rb +2 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
- data/lib/stripe/services/v2/core_service.rb +2 -2
- data/lib/stripe/services/v2/money_management_service.rb +1 -3
- data/lib/stripe/services/v2/test_helper_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +2 -32
- data/lib/stripe/util.rb +2 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +20644 -16929
- metadata +10 -415
- data/lib/stripe/events/v1_account_updated_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
- data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
- data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
- data/lib/stripe/events/v1_customer_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v1_file_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payout_created_event.rb +0 -44
- data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
- data/lib/stripe/events/v1_person_created_event.rb +0 -44
- data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_person_updated_event.rb +0 -44
- data/lib/stripe/events/v1_plan_created_event.rb +0 -44
- data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v1_price_created_event.rb +0 -44
- data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_price_updated_event.rb +0 -44
- data/lib/stripe/events/v1_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_product_updated_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
- data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
- data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_quote_created_event.rb +0 -44
- data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +0 -44
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
- data/lib/stripe/events/v1_refund_created_event.rb +0 -44
- data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
- data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_review_closed_event.rb +0 -44
- data/lib/stripe/events/v1_review_opened_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
- data/lib/stripe/events/v1_source_failed_event.rb +0 -44
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
- data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_topup_created_event.rb +0 -44
- data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -66
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -66
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -44
- data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +0 -37
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -55
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +0 -29
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_create_params.rb +0 -21
- data/lib/stripe/params/issuing/program_list_params.rb +0 -24
- data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_update_params.rb +0 -21
- data/lib/stripe/params/payment_method_check_balance_params.rb +0 -13
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +0 -39
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -355
- data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +0 -49
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -254
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -61
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -237
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -420
- data/lib/stripe/resources/identity/blocklist_entry.rb +0 -116
- data/lib/stripe/resources/issuing/program.rb +0 -69
- data/lib/stripe/resources/payment_method_balance.rb +0 -68
- data/lib/stripe/resources/transit_balance.rb +0 -45
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -244
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +0 -63
- data/lib/stripe/services/delegated_checkout_service.rb +0 -13
- data/lib/stripe/services/identity/blocklist_entry_service.rb +0 -71
- data/lib/stripe/services/issuing/program_service.rb +0 -52
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +0 -32
- data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -54
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +0 -43
- data/lib/stripe/services/v2/payment_service.rb +0 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -38
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
|
@@ -239,6 +239,364 @@ module Stripe
|
|
|
239
239
|
end
|
|
240
240
|
end
|
|
241
241
|
|
|
242
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
243
|
+
class Affiliate < ::Stripe::RequestParams
|
|
244
|
+
# Affiliate partner code.
|
|
245
|
+
attr_accessor :code
|
|
246
|
+
# Name of affiliate partner.
|
|
247
|
+
attr_accessor :name
|
|
248
|
+
|
|
249
|
+
def initialize(code: nil, name: nil)
|
|
250
|
+
@code = code
|
|
251
|
+
@name = name
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
class Distance < ::Stripe::RequestParams
|
|
256
|
+
# Distance traveled.
|
|
257
|
+
attr_accessor :amount
|
|
258
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
259
|
+
attr_accessor :unit
|
|
260
|
+
|
|
261
|
+
def initialize(amount: nil, unit: nil)
|
|
262
|
+
@amount = amount
|
|
263
|
+
@unit = unit
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
class Driver < ::Stripe::RequestParams
|
|
268
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
269
|
+
# Day of birth (1-31).
|
|
270
|
+
attr_accessor :day
|
|
271
|
+
# Month of birth (1-12).
|
|
272
|
+
attr_accessor :month
|
|
273
|
+
# Year of birth (must be greater than 1900).
|
|
274
|
+
attr_accessor :year
|
|
275
|
+
|
|
276
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
277
|
+
@day = day
|
|
278
|
+
@month = month
|
|
279
|
+
@year = year
|
|
280
|
+
end
|
|
281
|
+
end
|
|
282
|
+
# Driver's date of birth.
|
|
283
|
+
attr_accessor :date_of_birth
|
|
284
|
+
# Driver's identification number.
|
|
285
|
+
attr_accessor :driver_identification_number
|
|
286
|
+
# Driver's tax number.
|
|
287
|
+
attr_accessor :driver_tax_number
|
|
288
|
+
# Driver's full name.
|
|
289
|
+
attr_accessor :name
|
|
290
|
+
|
|
291
|
+
def initialize(
|
|
292
|
+
date_of_birth: nil,
|
|
293
|
+
driver_identification_number: nil,
|
|
294
|
+
driver_tax_number: nil,
|
|
295
|
+
name: nil
|
|
296
|
+
)
|
|
297
|
+
@date_of_birth = date_of_birth
|
|
298
|
+
@driver_identification_number = driver_identification_number
|
|
299
|
+
@driver_tax_number = driver_tax_number
|
|
300
|
+
@name = name
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
class DropOff < ::Stripe::RequestParams
|
|
305
|
+
class Address < ::Stripe::RequestParams
|
|
306
|
+
# City, district, suburb, town, or village.
|
|
307
|
+
attr_accessor :city
|
|
308
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
309
|
+
attr_accessor :country
|
|
310
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
311
|
+
attr_accessor :line1
|
|
312
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
313
|
+
attr_accessor :line2
|
|
314
|
+
# ZIP or postal code.
|
|
315
|
+
attr_accessor :postal_code
|
|
316
|
+
# State, county, province, or region.
|
|
317
|
+
attr_accessor :state
|
|
318
|
+
|
|
319
|
+
def initialize(
|
|
320
|
+
city: nil,
|
|
321
|
+
country: nil,
|
|
322
|
+
line1: nil,
|
|
323
|
+
line2: nil,
|
|
324
|
+
postal_code: nil,
|
|
325
|
+
state: nil
|
|
326
|
+
)
|
|
327
|
+
@city = city
|
|
328
|
+
@country = country
|
|
329
|
+
@line1 = line1
|
|
330
|
+
@line2 = line2
|
|
331
|
+
@postal_code = postal_code
|
|
332
|
+
@state = state
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
# Address of the rental location.
|
|
336
|
+
attr_accessor :address
|
|
337
|
+
# Location name.
|
|
338
|
+
attr_accessor :location_name
|
|
339
|
+
# Timestamp for the location.
|
|
340
|
+
attr_accessor :time
|
|
341
|
+
|
|
342
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
343
|
+
@address = address
|
|
344
|
+
@location_name = location_name
|
|
345
|
+
@time = time
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
class Insurance < ::Stripe::RequestParams
|
|
350
|
+
# Amount of the insurance coverage in cents.
|
|
351
|
+
attr_accessor :amount
|
|
352
|
+
# Currency of the insurance amount.
|
|
353
|
+
attr_accessor :currency
|
|
354
|
+
# Name of the insurance company.
|
|
355
|
+
attr_accessor :insurance_company_name
|
|
356
|
+
# Type of insurance coverage.
|
|
357
|
+
attr_accessor :insurance_type
|
|
358
|
+
|
|
359
|
+
def initialize(
|
|
360
|
+
amount: nil,
|
|
361
|
+
currency: nil,
|
|
362
|
+
insurance_company_name: nil,
|
|
363
|
+
insurance_type: nil
|
|
364
|
+
)
|
|
365
|
+
@amount = amount
|
|
366
|
+
@currency = currency
|
|
367
|
+
@insurance_company_name = insurance_company_name
|
|
368
|
+
@insurance_type = insurance_type
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
class Pickup < ::Stripe::RequestParams
|
|
373
|
+
class Address < ::Stripe::RequestParams
|
|
374
|
+
# City, district, suburb, town, or village.
|
|
375
|
+
attr_accessor :city
|
|
376
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
377
|
+
attr_accessor :country
|
|
378
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
379
|
+
attr_accessor :line1
|
|
380
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
381
|
+
attr_accessor :line2
|
|
382
|
+
# ZIP or postal code.
|
|
383
|
+
attr_accessor :postal_code
|
|
384
|
+
# State, county, province, or region.
|
|
385
|
+
attr_accessor :state
|
|
386
|
+
|
|
387
|
+
def initialize(
|
|
388
|
+
city: nil,
|
|
389
|
+
country: nil,
|
|
390
|
+
line1: nil,
|
|
391
|
+
line2: nil,
|
|
392
|
+
postal_code: nil,
|
|
393
|
+
state: nil
|
|
394
|
+
)
|
|
395
|
+
@city = city
|
|
396
|
+
@country = country
|
|
397
|
+
@line1 = line1
|
|
398
|
+
@line2 = line2
|
|
399
|
+
@postal_code = postal_code
|
|
400
|
+
@state = state
|
|
401
|
+
end
|
|
402
|
+
end
|
|
403
|
+
# Address of the rental location.
|
|
404
|
+
attr_accessor :address
|
|
405
|
+
# Location name.
|
|
406
|
+
attr_accessor :location_name
|
|
407
|
+
# Timestamp for the location.
|
|
408
|
+
attr_accessor :time
|
|
409
|
+
|
|
410
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
411
|
+
@address = address
|
|
412
|
+
@location_name = location_name
|
|
413
|
+
@time = time
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
class Total < ::Stripe::RequestParams
|
|
418
|
+
class Discounts < ::Stripe::RequestParams
|
|
419
|
+
# Corporate client discount code.
|
|
420
|
+
attr_accessor :corporate_client_code
|
|
421
|
+
# Coupon code applied to the rental.
|
|
422
|
+
attr_accessor :coupon
|
|
423
|
+
# Maximum number of free miles or kilometers included.
|
|
424
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
425
|
+
|
|
426
|
+
def initialize(
|
|
427
|
+
corporate_client_code: nil,
|
|
428
|
+
coupon: nil,
|
|
429
|
+
maximum_free_miles_or_kilometers: nil
|
|
430
|
+
)
|
|
431
|
+
@corporate_client_code = corporate_client_code
|
|
432
|
+
@coupon = coupon
|
|
433
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
434
|
+
end
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
438
|
+
# Amount of the extra charge in cents.
|
|
439
|
+
attr_accessor :amount
|
|
440
|
+
# Type of extra charge.
|
|
441
|
+
attr_accessor :type
|
|
442
|
+
|
|
443
|
+
def initialize(amount: nil, type: nil)
|
|
444
|
+
@amount = amount
|
|
445
|
+
@type = type
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
class Tax < ::Stripe::RequestParams
|
|
450
|
+
class Tax < ::Stripe::RequestParams
|
|
451
|
+
# Tax amount.
|
|
452
|
+
attr_accessor :amount
|
|
453
|
+
# Tax rate applied.
|
|
454
|
+
attr_accessor :rate
|
|
455
|
+
# Type of tax applied.
|
|
456
|
+
attr_accessor :type
|
|
457
|
+
|
|
458
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
459
|
+
@amount = amount
|
|
460
|
+
@rate = rate
|
|
461
|
+
@type = type
|
|
462
|
+
end
|
|
463
|
+
end
|
|
464
|
+
# Indicates if the transaction is tax exempt.
|
|
465
|
+
attr_accessor :tax_exempt_indicator
|
|
466
|
+
# Array of tax details.
|
|
467
|
+
attr_accessor :taxes
|
|
468
|
+
|
|
469
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
470
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
471
|
+
@taxes = taxes
|
|
472
|
+
end
|
|
473
|
+
end
|
|
474
|
+
# Total amount in cents.
|
|
475
|
+
attr_accessor :amount
|
|
476
|
+
# Currency of the amount.
|
|
477
|
+
attr_accessor :currency
|
|
478
|
+
# Discount details for the rental.
|
|
479
|
+
attr_accessor :discounts
|
|
480
|
+
# Additional charges for the rental.
|
|
481
|
+
attr_accessor :extra_charges
|
|
482
|
+
# Rate per unit for the rental.
|
|
483
|
+
attr_accessor :rate_per_unit
|
|
484
|
+
# Unit of measurement for the rate.
|
|
485
|
+
attr_accessor :rate_unit
|
|
486
|
+
# Tax breakdown for the rental.
|
|
487
|
+
attr_accessor :tax
|
|
488
|
+
|
|
489
|
+
def initialize(
|
|
490
|
+
amount: nil,
|
|
491
|
+
currency: nil,
|
|
492
|
+
discounts: nil,
|
|
493
|
+
extra_charges: nil,
|
|
494
|
+
rate_per_unit: nil,
|
|
495
|
+
rate_unit: nil,
|
|
496
|
+
tax: nil
|
|
497
|
+
)
|
|
498
|
+
@amount = amount
|
|
499
|
+
@currency = currency
|
|
500
|
+
@discounts = discounts
|
|
501
|
+
@extra_charges = extra_charges
|
|
502
|
+
@rate_per_unit = rate_per_unit
|
|
503
|
+
@rate_unit = rate_unit
|
|
504
|
+
@tax = tax
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
class Vehicle < ::Stripe::RequestParams
|
|
509
|
+
# Make of the rental vehicle.
|
|
510
|
+
attr_accessor :make
|
|
511
|
+
# Model of the rental vehicle.
|
|
512
|
+
attr_accessor :model
|
|
513
|
+
# Odometer reading at the time of rental.
|
|
514
|
+
attr_accessor :odometer
|
|
515
|
+
# Type of the rental vehicle.
|
|
516
|
+
attr_accessor :type
|
|
517
|
+
# Class of the rental vehicle.
|
|
518
|
+
attr_accessor :vehicle_class
|
|
519
|
+
# Vehicle identification number (VIN).
|
|
520
|
+
attr_accessor :vehicle_identification_number
|
|
521
|
+
|
|
522
|
+
def initialize(
|
|
523
|
+
make: nil,
|
|
524
|
+
model: nil,
|
|
525
|
+
odometer: nil,
|
|
526
|
+
type: nil,
|
|
527
|
+
vehicle_class: nil,
|
|
528
|
+
vehicle_identification_number: nil
|
|
529
|
+
)
|
|
530
|
+
@make = make
|
|
531
|
+
@model = model
|
|
532
|
+
@odometer = odometer
|
|
533
|
+
@type = type
|
|
534
|
+
@vehicle_class = vehicle_class
|
|
535
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
536
|
+
end
|
|
537
|
+
end
|
|
538
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
539
|
+
attr_accessor :affiliate
|
|
540
|
+
# Booking confirmation number for the car rental.
|
|
541
|
+
attr_accessor :booking_number
|
|
542
|
+
# Name of the car rental company.
|
|
543
|
+
attr_accessor :carrier_name
|
|
544
|
+
# Customer service phone number for the car rental company.
|
|
545
|
+
attr_accessor :customer_service_phone_number
|
|
546
|
+
# Number of days the car is being rented.
|
|
547
|
+
attr_accessor :days_rented
|
|
548
|
+
# Distance details for the rental.
|
|
549
|
+
attr_accessor :distance
|
|
550
|
+
# List of drivers for the rental.
|
|
551
|
+
attr_accessor :drivers
|
|
552
|
+
# Drop-off location details.
|
|
553
|
+
attr_accessor :drop_off
|
|
554
|
+
# Insurance details for the rental.
|
|
555
|
+
attr_accessor :insurances
|
|
556
|
+
# Indicates if the customer was a no-show.
|
|
557
|
+
attr_accessor :no_show_indicator
|
|
558
|
+
# Pickup location details.
|
|
559
|
+
attr_accessor :pickup
|
|
560
|
+
# Name of the person renting the vehicle.
|
|
561
|
+
attr_accessor :renter_name
|
|
562
|
+
# Total cost breakdown for the rental.
|
|
563
|
+
attr_accessor :total
|
|
564
|
+
# Vehicle details for the rental.
|
|
565
|
+
attr_accessor :vehicle
|
|
566
|
+
|
|
567
|
+
def initialize(
|
|
568
|
+
affiliate: nil,
|
|
569
|
+
booking_number: nil,
|
|
570
|
+
carrier_name: nil,
|
|
571
|
+
customer_service_phone_number: nil,
|
|
572
|
+
days_rented: nil,
|
|
573
|
+
distance: nil,
|
|
574
|
+
drivers: nil,
|
|
575
|
+
drop_off: nil,
|
|
576
|
+
insurances: nil,
|
|
577
|
+
no_show_indicator: nil,
|
|
578
|
+
pickup: nil,
|
|
579
|
+
renter_name: nil,
|
|
580
|
+
total: nil,
|
|
581
|
+
vehicle: nil
|
|
582
|
+
)
|
|
583
|
+
@affiliate = affiliate
|
|
584
|
+
@booking_number = booking_number
|
|
585
|
+
@carrier_name = carrier_name
|
|
586
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
587
|
+
@days_rented = days_rented
|
|
588
|
+
@distance = distance
|
|
589
|
+
@drivers = drivers
|
|
590
|
+
@drop_off = drop_off
|
|
591
|
+
@insurances = insurances
|
|
592
|
+
@no_show_indicator = no_show_indicator
|
|
593
|
+
@pickup = pickup
|
|
594
|
+
@renter_name = renter_name
|
|
595
|
+
@total = total
|
|
596
|
+
@vehicle = vehicle
|
|
597
|
+
end
|
|
598
|
+
end
|
|
599
|
+
|
|
242
600
|
class EventDetails < ::Stripe::RequestParams
|
|
243
601
|
class Address < ::Stripe::RequestParams
|
|
244
602
|
# City, district, suburb, town, or village.
|
|
@@ -468,6 +826,275 @@ module Stripe
|
|
|
468
826
|
end
|
|
469
827
|
end
|
|
470
828
|
|
|
829
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
830
|
+
class Affiliate < ::Stripe::RequestParams
|
|
831
|
+
# Affiliate partner code.
|
|
832
|
+
attr_accessor :code
|
|
833
|
+
# Name of affiliate partner.
|
|
834
|
+
attr_accessor :name
|
|
835
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
836
|
+
attr_accessor :travel_authorization_code
|
|
837
|
+
|
|
838
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
839
|
+
@code = code
|
|
840
|
+
@name = name
|
|
841
|
+
@travel_authorization_code = travel_authorization_code
|
|
842
|
+
end
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
class Insurance < ::Stripe::RequestParams
|
|
846
|
+
# Insurance cost.
|
|
847
|
+
attr_accessor :amount
|
|
848
|
+
# Insurance currency.
|
|
849
|
+
attr_accessor :currency
|
|
850
|
+
# Insurance company name.
|
|
851
|
+
attr_accessor :insurance_company_name
|
|
852
|
+
# Type of insurance.
|
|
853
|
+
attr_accessor :insurance_type
|
|
854
|
+
|
|
855
|
+
def initialize(
|
|
856
|
+
amount: nil,
|
|
857
|
+
currency: nil,
|
|
858
|
+
insurance_company_name: nil,
|
|
859
|
+
insurance_type: nil
|
|
860
|
+
)
|
|
861
|
+
@amount = amount
|
|
862
|
+
@currency = currency
|
|
863
|
+
@insurance_company_name = insurance_company_name
|
|
864
|
+
@insurance_type = insurance_type
|
|
865
|
+
end
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
class Passenger < ::Stripe::RequestParams
|
|
869
|
+
# Passenger's full name.
|
|
870
|
+
attr_accessor :name
|
|
871
|
+
|
|
872
|
+
def initialize(name: nil)
|
|
873
|
+
@name = name
|
|
874
|
+
end
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
class Segment < ::Stripe::RequestParams
|
|
878
|
+
class Arrival < ::Stripe::RequestParams
|
|
879
|
+
# Arrival airport IATA code.
|
|
880
|
+
attr_accessor :airport
|
|
881
|
+
# Arrival date/time.
|
|
882
|
+
attr_accessor :arrives_at
|
|
883
|
+
# Arrival city.
|
|
884
|
+
attr_accessor :city
|
|
885
|
+
# Arrival country.
|
|
886
|
+
attr_accessor :country
|
|
887
|
+
|
|
888
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
889
|
+
@airport = airport
|
|
890
|
+
@arrives_at = arrives_at
|
|
891
|
+
@city = city
|
|
892
|
+
@country = country
|
|
893
|
+
end
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
class Departure < ::Stripe::RequestParams
|
|
897
|
+
# Departure airport IATA code.
|
|
898
|
+
attr_accessor :airport
|
|
899
|
+
# Departure city.
|
|
900
|
+
attr_accessor :city
|
|
901
|
+
# Departure country.
|
|
902
|
+
attr_accessor :country
|
|
903
|
+
# Departure date/time.
|
|
904
|
+
attr_accessor :departs_at
|
|
905
|
+
|
|
906
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
907
|
+
@airport = airport
|
|
908
|
+
@city = city
|
|
909
|
+
@country = country
|
|
910
|
+
@departs_at = departs_at
|
|
911
|
+
end
|
|
912
|
+
end
|
|
913
|
+
# Segment fare amount.
|
|
914
|
+
attr_accessor :amount
|
|
915
|
+
# Arrival details.
|
|
916
|
+
attr_accessor :arrival
|
|
917
|
+
# Airline carrier code.
|
|
918
|
+
attr_accessor :carrier_code
|
|
919
|
+
# Carrier name.
|
|
920
|
+
attr_accessor :carrier_name
|
|
921
|
+
# Segment currency.
|
|
922
|
+
attr_accessor :currency
|
|
923
|
+
# Departure details.
|
|
924
|
+
attr_accessor :departure
|
|
925
|
+
# Exchange ticket number.
|
|
926
|
+
attr_accessor :exchange_ticket_number
|
|
927
|
+
# Fare basis code.
|
|
928
|
+
attr_accessor :fare_basis_code
|
|
929
|
+
# Additional fees.
|
|
930
|
+
attr_accessor :fees
|
|
931
|
+
# Flight number.
|
|
932
|
+
attr_accessor :flight_number
|
|
933
|
+
# Stopover indicator.
|
|
934
|
+
attr_accessor :is_stop_over_indicator
|
|
935
|
+
# Refundable ticket indicator.
|
|
936
|
+
attr_accessor :refundable
|
|
937
|
+
# Class of service.
|
|
938
|
+
attr_accessor :service_class
|
|
939
|
+
# Tax amount for segment.
|
|
940
|
+
attr_accessor :tax_amount
|
|
941
|
+
# Ticket number.
|
|
942
|
+
attr_accessor :ticket_number
|
|
943
|
+
|
|
944
|
+
def initialize(
|
|
945
|
+
amount: nil,
|
|
946
|
+
arrival: nil,
|
|
947
|
+
carrier_code: nil,
|
|
948
|
+
carrier_name: nil,
|
|
949
|
+
currency: nil,
|
|
950
|
+
departure: nil,
|
|
951
|
+
exchange_ticket_number: nil,
|
|
952
|
+
fare_basis_code: nil,
|
|
953
|
+
fees: nil,
|
|
954
|
+
flight_number: nil,
|
|
955
|
+
is_stop_over_indicator: nil,
|
|
956
|
+
refundable: nil,
|
|
957
|
+
service_class: nil,
|
|
958
|
+
tax_amount: nil,
|
|
959
|
+
ticket_number: nil
|
|
960
|
+
)
|
|
961
|
+
@amount = amount
|
|
962
|
+
@arrival = arrival
|
|
963
|
+
@carrier_code = carrier_code
|
|
964
|
+
@carrier_name = carrier_name
|
|
965
|
+
@currency = currency
|
|
966
|
+
@departure = departure
|
|
967
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
968
|
+
@fare_basis_code = fare_basis_code
|
|
969
|
+
@fees = fees
|
|
970
|
+
@flight_number = flight_number
|
|
971
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
972
|
+
@refundable = refundable
|
|
973
|
+
@service_class = service_class
|
|
974
|
+
@tax_amount = tax_amount
|
|
975
|
+
@ticket_number = ticket_number
|
|
976
|
+
end
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
class Total < ::Stripe::RequestParams
|
|
980
|
+
class Discounts < ::Stripe::RequestParams
|
|
981
|
+
# Corporate client discount code.
|
|
982
|
+
attr_accessor :corporate_client_code
|
|
983
|
+
|
|
984
|
+
def initialize(corporate_client_code: nil)
|
|
985
|
+
@corporate_client_code = corporate_client_code
|
|
986
|
+
end
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
990
|
+
# Amount of additional charges.
|
|
991
|
+
attr_accessor :amount
|
|
992
|
+
# Type of additional charges.
|
|
993
|
+
attr_accessor :type
|
|
994
|
+
|
|
995
|
+
def initialize(amount: nil, type: nil)
|
|
996
|
+
@amount = amount
|
|
997
|
+
@type = type
|
|
998
|
+
end
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
class Tax < ::Stripe::RequestParams
|
|
1002
|
+
class Tax < ::Stripe::RequestParams
|
|
1003
|
+
# Tax amount.
|
|
1004
|
+
attr_accessor :amount
|
|
1005
|
+
# Tax rate.
|
|
1006
|
+
attr_accessor :rate
|
|
1007
|
+
# Type of tax.
|
|
1008
|
+
attr_accessor :type
|
|
1009
|
+
|
|
1010
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1011
|
+
@amount = amount
|
|
1012
|
+
@rate = rate
|
|
1013
|
+
@type = type
|
|
1014
|
+
end
|
|
1015
|
+
end
|
|
1016
|
+
# Array of tax details.
|
|
1017
|
+
attr_accessor :taxes
|
|
1018
|
+
|
|
1019
|
+
def initialize(taxes: nil)
|
|
1020
|
+
@taxes = taxes
|
|
1021
|
+
end
|
|
1022
|
+
end
|
|
1023
|
+
# Total flight amount.
|
|
1024
|
+
attr_accessor :amount
|
|
1025
|
+
# Reason for credit.
|
|
1026
|
+
attr_accessor :credit_reason
|
|
1027
|
+
# Total currency.
|
|
1028
|
+
attr_accessor :currency
|
|
1029
|
+
# Discount details.
|
|
1030
|
+
attr_accessor :discounts
|
|
1031
|
+
# Additional charges.
|
|
1032
|
+
attr_accessor :extra_charges
|
|
1033
|
+
# Tax breakdown.
|
|
1034
|
+
attr_accessor :tax
|
|
1035
|
+
|
|
1036
|
+
def initialize(
|
|
1037
|
+
amount: nil,
|
|
1038
|
+
credit_reason: nil,
|
|
1039
|
+
currency: nil,
|
|
1040
|
+
discounts: nil,
|
|
1041
|
+
extra_charges: nil,
|
|
1042
|
+
tax: nil
|
|
1043
|
+
)
|
|
1044
|
+
@amount = amount
|
|
1045
|
+
@credit_reason = credit_reason
|
|
1046
|
+
@currency = currency
|
|
1047
|
+
@discounts = discounts
|
|
1048
|
+
@extra_charges = extra_charges
|
|
1049
|
+
@tax = tax
|
|
1050
|
+
end
|
|
1051
|
+
end
|
|
1052
|
+
# Affiliate details if applicable.
|
|
1053
|
+
attr_accessor :affiliate
|
|
1054
|
+
# Reservation reference.
|
|
1055
|
+
attr_accessor :booking_number
|
|
1056
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1057
|
+
attr_accessor :computerized_reservation_system
|
|
1058
|
+
# Ticket restrictions.
|
|
1059
|
+
attr_accessor :endorsements_and_restrictions
|
|
1060
|
+
# List of insurances.
|
|
1061
|
+
attr_accessor :insurances
|
|
1062
|
+
# List of passengers.
|
|
1063
|
+
attr_accessor :passengers
|
|
1064
|
+
# List of flight segments.
|
|
1065
|
+
attr_accessor :segments
|
|
1066
|
+
# Electronic ticket indicator.
|
|
1067
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1068
|
+
# Total cost breakdown.
|
|
1069
|
+
attr_accessor :total
|
|
1070
|
+
# Type of flight transaction.
|
|
1071
|
+
attr_accessor :transaction_type
|
|
1072
|
+
|
|
1073
|
+
def initialize(
|
|
1074
|
+
affiliate: nil,
|
|
1075
|
+
booking_number: nil,
|
|
1076
|
+
computerized_reservation_system: nil,
|
|
1077
|
+
endorsements_and_restrictions: nil,
|
|
1078
|
+
insurances: nil,
|
|
1079
|
+
passengers: nil,
|
|
1080
|
+
segments: nil,
|
|
1081
|
+
ticket_electronically_issued_indicator: nil,
|
|
1082
|
+
total: nil,
|
|
1083
|
+
transaction_type: nil
|
|
1084
|
+
)
|
|
1085
|
+
@affiliate = affiliate
|
|
1086
|
+
@booking_number = booking_number
|
|
1087
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1088
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1089
|
+
@insurances = insurances
|
|
1090
|
+
@passengers = passengers
|
|
1091
|
+
@segments = segments
|
|
1092
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1093
|
+
@total = total
|
|
1094
|
+
@transaction_type = transaction_type
|
|
1095
|
+
end
|
|
1096
|
+
end
|
|
1097
|
+
|
|
471
1098
|
class Lodging < ::Stripe::RequestParams
|
|
472
1099
|
class Address < ::Stripe::RequestParams
|
|
473
1100
|
# City, district, suburb, town, or village.
|
|
@@ -633,6 +1260,300 @@ module Stripe
|
|
|
633
1260
|
end
|
|
634
1261
|
end
|
|
635
1262
|
|
|
1263
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1264
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1265
|
+
# Type of accommodation.
|
|
1266
|
+
attr_accessor :accommodation_type
|
|
1267
|
+
# Bed type.
|
|
1268
|
+
attr_accessor :bed_type
|
|
1269
|
+
# Daily accommodation rate in cents.
|
|
1270
|
+
attr_accessor :daily_rate_amount
|
|
1271
|
+
# Number of nights.
|
|
1272
|
+
attr_accessor :nights
|
|
1273
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1274
|
+
attr_accessor :number_of_rooms
|
|
1275
|
+
# Rate type.
|
|
1276
|
+
attr_accessor :rate_type
|
|
1277
|
+
# Whether smoking is allowed.
|
|
1278
|
+
attr_accessor :smoking_indicator
|
|
1279
|
+
|
|
1280
|
+
def initialize(
|
|
1281
|
+
accommodation_type: nil,
|
|
1282
|
+
bed_type: nil,
|
|
1283
|
+
daily_rate_amount: nil,
|
|
1284
|
+
nights: nil,
|
|
1285
|
+
number_of_rooms: nil,
|
|
1286
|
+
rate_type: nil,
|
|
1287
|
+
smoking_indicator: nil
|
|
1288
|
+
)
|
|
1289
|
+
@accommodation_type = accommodation_type
|
|
1290
|
+
@bed_type = bed_type
|
|
1291
|
+
@daily_rate_amount = daily_rate_amount
|
|
1292
|
+
@nights = nights
|
|
1293
|
+
@number_of_rooms = number_of_rooms
|
|
1294
|
+
@rate_type = rate_type
|
|
1295
|
+
@smoking_indicator = smoking_indicator
|
|
1296
|
+
end
|
|
1297
|
+
end
|
|
1298
|
+
|
|
1299
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1300
|
+
# Affiliate partner code.
|
|
1301
|
+
attr_accessor :code
|
|
1302
|
+
# Affiliate partner name.
|
|
1303
|
+
attr_accessor :name
|
|
1304
|
+
|
|
1305
|
+
def initialize(code: nil, name: nil)
|
|
1306
|
+
@code = code
|
|
1307
|
+
@name = name
|
|
1308
|
+
end
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
class Guest < ::Stripe::RequestParams
|
|
1312
|
+
# Guest's full name.
|
|
1313
|
+
attr_accessor :name
|
|
1314
|
+
|
|
1315
|
+
def initialize(name: nil)
|
|
1316
|
+
@name = name
|
|
1317
|
+
end
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
class Host < ::Stripe::RequestParams
|
|
1321
|
+
class Address < ::Stripe::RequestParams
|
|
1322
|
+
# City, district, suburb, town, or village.
|
|
1323
|
+
attr_accessor :city
|
|
1324
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1325
|
+
attr_accessor :country
|
|
1326
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1327
|
+
attr_accessor :line1
|
|
1328
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1329
|
+
attr_accessor :line2
|
|
1330
|
+
# ZIP or postal code.
|
|
1331
|
+
attr_accessor :postal_code
|
|
1332
|
+
# State, county, province, or region.
|
|
1333
|
+
attr_accessor :state
|
|
1334
|
+
|
|
1335
|
+
def initialize(
|
|
1336
|
+
city: nil,
|
|
1337
|
+
country: nil,
|
|
1338
|
+
line1: nil,
|
|
1339
|
+
line2: nil,
|
|
1340
|
+
postal_code: nil,
|
|
1341
|
+
state: nil
|
|
1342
|
+
)
|
|
1343
|
+
@city = city
|
|
1344
|
+
@country = country
|
|
1345
|
+
@line1 = line1
|
|
1346
|
+
@line2 = line2
|
|
1347
|
+
@postal_code = postal_code
|
|
1348
|
+
@state = state
|
|
1349
|
+
end
|
|
1350
|
+
end
|
|
1351
|
+
# Address of the host.
|
|
1352
|
+
attr_accessor :address
|
|
1353
|
+
# Host's country of domicile.
|
|
1354
|
+
attr_accessor :country_of_domicile
|
|
1355
|
+
# Reference number for the host.
|
|
1356
|
+
attr_accessor :host_reference
|
|
1357
|
+
# Type of host.
|
|
1358
|
+
attr_accessor :host_type
|
|
1359
|
+
# Name of the lodging property or host.
|
|
1360
|
+
attr_accessor :name
|
|
1361
|
+
# Total number of reservations for the host.
|
|
1362
|
+
attr_accessor :number_of_reservations
|
|
1363
|
+
# Property phone number.
|
|
1364
|
+
attr_accessor :property_phone_number
|
|
1365
|
+
# Host's registration date.
|
|
1366
|
+
attr_accessor :registered_at
|
|
1367
|
+
|
|
1368
|
+
def initialize(
|
|
1369
|
+
address: nil,
|
|
1370
|
+
country_of_domicile: nil,
|
|
1371
|
+
host_reference: nil,
|
|
1372
|
+
host_type: nil,
|
|
1373
|
+
name: nil,
|
|
1374
|
+
number_of_reservations: nil,
|
|
1375
|
+
property_phone_number: nil,
|
|
1376
|
+
registered_at: nil
|
|
1377
|
+
)
|
|
1378
|
+
@address = address
|
|
1379
|
+
@country_of_domicile = country_of_domicile
|
|
1380
|
+
@host_reference = host_reference
|
|
1381
|
+
@host_type = host_type
|
|
1382
|
+
@name = name
|
|
1383
|
+
@number_of_reservations = number_of_reservations
|
|
1384
|
+
@property_phone_number = property_phone_number
|
|
1385
|
+
@registered_at = registered_at
|
|
1386
|
+
end
|
|
1387
|
+
end
|
|
1388
|
+
|
|
1389
|
+
class Insurance < ::Stripe::RequestParams
|
|
1390
|
+
# Price of the insurance coverage in cents.
|
|
1391
|
+
attr_accessor :amount
|
|
1392
|
+
# Currency of the insurance amount.
|
|
1393
|
+
attr_accessor :currency
|
|
1394
|
+
# Name of the insurance company.
|
|
1395
|
+
attr_accessor :insurance_company_name
|
|
1396
|
+
# Type of insurance coverage.
|
|
1397
|
+
attr_accessor :insurance_type
|
|
1398
|
+
|
|
1399
|
+
def initialize(
|
|
1400
|
+
amount: nil,
|
|
1401
|
+
currency: nil,
|
|
1402
|
+
insurance_company_name: nil,
|
|
1403
|
+
insurance_type: nil
|
|
1404
|
+
)
|
|
1405
|
+
@amount = amount
|
|
1406
|
+
@currency = currency
|
|
1407
|
+
@insurance_company_name = insurance_company_name
|
|
1408
|
+
@insurance_type = insurance_type
|
|
1409
|
+
end
|
|
1410
|
+
end
|
|
1411
|
+
|
|
1412
|
+
class Total < ::Stripe::RequestParams
|
|
1413
|
+
class Discounts < ::Stripe::RequestParams
|
|
1414
|
+
# Corporate client discount code.
|
|
1415
|
+
attr_accessor :corporate_client_code
|
|
1416
|
+
# Coupon code.
|
|
1417
|
+
attr_accessor :coupon
|
|
1418
|
+
|
|
1419
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1420
|
+
@corporate_client_code = corporate_client_code
|
|
1421
|
+
@coupon = coupon
|
|
1422
|
+
end
|
|
1423
|
+
end
|
|
1424
|
+
|
|
1425
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1426
|
+
# Amount of the extra charge in cents.
|
|
1427
|
+
attr_accessor :amount
|
|
1428
|
+
# Type of extra charge.
|
|
1429
|
+
attr_accessor :type
|
|
1430
|
+
|
|
1431
|
+
def initialize(amount: nil, type: nil)
|
|
1432
|
+
@amount = amount
|
|
1433
|
+
@type = type
|
|
1434
|
+
end
|
|
1435
|
+
end
|
|
1436
|
+
|
|
1437
|
+
class Tax < ::Stripe::RequestParams
|
|
1438
|
+
class Tax < ::Stripe::RequestParams
|
|
1439
|
+
# Tax amount in cents.
|
|
1440
|
+
attr_accessor :amount
|
|
1441
|
+
# Tax rate.
|
|
1442
|
+
attr_accessor :rate
|
|
1443
|
+
# Type of tax applied.
|
|
1444
|
+
attr_accessor :type
|
|
1445
|
+
|
|
1446
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1447
|
+
@amount = amount
|
|
1448
|
+
@rate = rate
|
|
1449
|
+
@type = type
|
|
1450
|
+
end
|
|
1451
|
+
end
|
|
1452
|
+
# Indicates whether the transaction is tax exempt.
|
|
1453
|
+
attr_accessor :tax_exempt_indicator
|
|
1454
|
+
# Tax details.
|
|
1455
|
+
attr_accessor :taxes
|
|
1456
|
+
|
|
1457
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1458
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1459
|
+
@taxes = taxes
|
|
1460
|
+
end
|
|
1461
|
+
end
|
|
1462
|
+
# Total price of the lodging reservation in cents.
|
|
1463
|
+
attr_accessor :amount
|
|
1464
|
+
# Cash advances in cents.
|
|
1465
|
+
attr_accessor :cash_advances
|
|
1466
|
+
# Currency of the total amount.
|
|
1467
|
+
attr_accessor :currency
|
|
1468
|
+
# Discount details for the lodging.
|
|
1469
|
+
attr_accessor :discounts
|
|
1470
|
+
# Additional charges for the lodging.
|
|
1471
|
+
attr_accessor :extra_charges
|
|
1472
|
+
# Prepaid amount in cents.
|
|
1473
|
+
attr_accessor :prepaid_amount
|
|
1474
|
+
# Tax breakdown for the lodging reservation.
|
|
1475
|
+
attr_accessor :tax
|
|
1476
|
+
|
|
1477
|
+
def initialize(
|
|
1478
|
+
amount: nil,
|
|
1479
|
+
cash_advances: nil,
|
|
1480
|
+
currency: nil,
|
|
1481
|
+
discounts: nil,
|
|
1482
|
+
extra_charges: nil,
|
|
1483
|
+
prepaid_amount: nil,
|
|
1484
|
+
tax: nil
|
|
1485
|
+
)
|
|
1486
|
+
@amount = amount
|
|
1487
|
+
@cash_advances = cash_advances
|
|
1488
|
+
@currency = currency
|
|
1489
|
+
@discounts = discounts
|
|
1490
|
+
@extra_charges = extra_charges
|
|
1491
|
+
@prepaid_amount = prepaid_amount
|
|
1492
|
+
@tax = tax
|
|
1493
|
+
end
|
|
1494
|
+
end
|
|
1495
|
+
# Accommodation details for the lodging.
|
|
1496
|
+
attr_accessor :accommodation
|
|
1497
|
+
# Affiliate details if applicable.
|
|
1498
|
+
attr_accessor :affiliate
|
|
1499
|
+
# Booking confirmation number for the lodging.
|
|
1500
|
+
attr_accessor :booking_number
|
|
1501
|
+
# Check-in date.
|
|
1502
|
+
attr_accessor :checkin_at
|
|
1503
|
+
# Check-out date.
|
|
1504
|
+
attr_accessor :checkout_at
|
|
1505
|
+
# Customer service phone number for the lodging company.
|
|
1506
|
+
attr_accessor :customer_service_phone_number
|
|
1507
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1508
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1509
|
+
# List of guests for the lodging.
|
|
1510
|
+
attr_accessor :guests
|
|
1511
|
+
# Host details for the lodging.
|
|
1512
|
+
attr_accessor :host
|
|
1513
|
+
# List of insurances for the lodging.
|
|
1514
|
+
attr_accessor :insurances
|
|
1515
|
+
# Whether the renter is a no-show.
|
|
1516
|
+
attr_accessor :no_show_indicator
|
|
1517
|
+
# Renter ID number for the lodging.
|
|
1518
|
+
attr_accessor :renter_id_number
|
|
1519
|
+
# Renter name for the lodging.
|
|
1520
|
+
attr_accessor :renter_name
|
|
1521
|
+
# Total details for the lodging.
|
|
1522
|
+
attr_accessor :total
|
|
1523
|
+
|
|
1524
|
+
def initialize(
|
|
1525
|
+
accommodation: nil,
|
|
1526
|
+
affiliate: nil,
|
|
1527
|
+
booking_number: nil,
|
|
1528
|
+
checkin_at: nil,
|
|
1529
|
+
checkout_at: nil,
|
|
1530
|
+
customer_service_phone_number: nil,
|
|
1531
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1532
|
+
guests: nil,
|
|
1533
|
+
host: nil,
|
|
1534
|
+
insurances: nil,
|
|
1535
|
+
no_show_indicator: nil,
|
|
1536
|
+
renter_id_number: nil,
|
|
1537
|
+
renter_name: nil,
|
|
1538
|
+
total: nil
|
|
1539
|
+
)
|
|
1540
|
+
@accommodation = accommodation
|
|
1541
|
+
@affiliate = affiliate
|
|
1542
|
+
@booking_number = booking_number
|
|
1543
|
+
@checkin_at = checkin_at
|
|
1544
|
+
@checkout_at = checkout_at
|
|
1545
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1546
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1547
|
+
@guests = guests
|
|
1548
|
+
@host = host
|
|
1549
|
+
@insurances = insurances
|
|
1550
|
+
@no_show_indicator = no_show_indicator
|
|
1551
|
+
@renter_id_number = renter_id_number
|
|
1552
|
+
@renter_name = renter_name
|
|
1553
|
+
@total = total
|
|
1554
|
+
end
|
|
1555
|
+
end
|
|
1556
|
+
|
|
636
1557
|
class Subscription < ::Stripe::RequestParams
|
|
637
1558
|
class Affiliate < ::Stripe::RequestParams
|
|
638
1559
|
# The name of the affiliate that originated the purchase.
|
|
@@ -685,33 +1606,51 @@ module Stripe
|
|
|
685
1606
|
end
|
|
686
1607
|
# Car rental details for this PaymentIntent.
|
|
687
1608
|
attr_accessor :car_rental
|
|
688
|
-
#
|
|
1609
|
+
# Car rental data for this PaymentIntent.
|
|
1610
|
+
attr_accessor :car_rental_data
|
|
1611
|
+
# A unique value to identify the customer. This field is available only for card payments.
|
|
1612
|
+
#
|
|
1613
|
+
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
689
1614
|
attr_accessor :customer_reference
|
|
690
1615
|
# Event details for this PaymentIntent
|
|
691
1616
|
attr_accessor :event_details
|
|
692
1617
|
# Flight reservation details for this PaymentIntent
|
|
693
1618
|
attr_accessor :flight
|
|
1619
|
+
# Flight data for this PaymentIntent.
|
|
1620
|
+
attr_accessor :flight_data
|
|
694
1621
|
# Lodging reservation details for this PaymentIntent
|
|
695
1622
|
attr_accessor :lodging
|
|
696
|
-
#
|
|
1623
|
+
# Lodging data for this PaymentIntent.
|
|
1624
|
+
attr_accessor :lodging_data
|
|
1625
|
+
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1626
|
+
#
|
|
1627
|
+
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
1628
|
+
#
|
|
1629
|
+
# 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.
|
|
697
1630
|
attr_accessor :order_reference
|
|
698
1631
|
# Subscription details for this PaymentIntent
|
|
699
1632
|
attr_accessor :subscription
|
|
700
1633
|
|
|
701
1634
|
def initialize(
|
|
702
1635
|
car_rental: nil,
|
|
1636
|
+
car_rental_data: nil,
|
|
703
1637
|
customer_reference: nil,
|
|
704
1638
|
event_details: nil,
|
|
705
1639
|
flight: nil,
|
|
1640
|
+
flight_data: nil,
|
|
706
1641
|
lodging: nil,
|
|
1642
|
+
lodging_data: nil,
|
|
707
1643
|
order_reference: nil,
|
|
708
1644
|
subscription: nil
|
|
709
1645
|
)
|
|
710
1646
|
@car_rental = car_rental
|
|
1647
|
+
@car_rental_data = car_rental_data
|
|
711
1648
|
@customer_reference = customer_reference
|
|
712
1649
|
@event_details = event_details
|
|
713
1650
|
@flight = flight
|
|
1651
|
+
@flight_data = flight_data
|
|
714
1652
|
@lodging = lodging
|
|
1653
|
+
@lodging_data = lodging_data
|
|
715
1654
|
@order_reference = order_reference
|
|
716
1655
|
@subscription = subscription
|
|
717
1656
|
end
|