stripe 15.5.0 → 15.6.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1717 -642
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +185 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +13 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +22 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +80 -0
- data/lib/stripe/resources/account.rb +653 -1
- data/lib/stripe/resources/account_notice.rb +123 -0
- data/lib/stripe/resources/account_session.rb +256 -1
- data/lib/stripe/resources/balance_settings.rb +112 -0
- data/lib/stripe/resources/billing/alert.rb +128 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +52 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +54 -0
- data/lib/stripe/resources/billing/credit_grant.rb +71 -2
- data/lib/stripe/resources/billing/meter_usage.rb +23 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +28 -0
- data/lib/stripe/resources/billing_portal/session.rb +6 -0
- data/lib/stripe/resources/capital/financing_offer.rb +179 -0
- data/lib/stripe/resources/capital/financing_summary.rb +55 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +1540 -4
- data/lib/stripe/resources/checkout/session.rb +623 -5
- data/lib/stripe/resources/confirmation_token.rb +170 -0
- data/lib/stripe/resources/coupon.rb +30 -1
- data/lib/stripe/resources/credit_note.rb +6 -0
- data/lib/stripe/resources/credit_note_line_item.rb +9 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +6 -1
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +11 -0
- data/lib/stripe/resources/event.rb +31 -0
- data/lib/stripe/resources/financial_connections/account.rb +22 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
- data/lib/stripe/resources/financial_connections/institution.rb +92 -0
- data/lib/stripe/resources/financial_connections/session.rb +62 -2
- data/lib/stripe/resources/fx_quote.rb +186 -0
- data/lib/stripe/resources/identity/verification_session.rb +10 -0
- data/lib/stripe/resources/invoice.rb +1151 -16
- data/lib/stripe/resources/invoice_item.rb +126 -2
- data/lib/stripe/resources/invoice_line_item.rb +107 -1
- data/lib/stripe/resources/invoice_payment.rb +6 -1
- data/lib/stripe/resources/issuing/card.rb +0 -8
- data/lib/stripe/resources/issuing/cardholder.rb +2 -1
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
- data/lib/stripe/resources/issuing/settlement.rb +53 -0
- data/lib/stripe/resources/issuing/transaction.rb +6 -0
- data/lib/stripe/resources/line_item.rb +37 -0
- data/lib/stripe/resources/mandate.rb +89 -1
- data/lib/stripe/resources/margin.rb +115 -0
- data/lib/stripe/resources/order.rb +2958 -0
- data/lib/stripe/resources/payment_attempt_record.rb +1177 -0
- data/lib/stripe/resources/payment_intent.rb +6448 -545
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +72 -0
- data/lib/stripe/resources/payment_method.rb +194 -1
- data/lib/stripe/resources/payment_method_configuration.rb +295 -0
- data/lib/stripe/resources/payment_record.rb +1723 -0
- data/lib/stripe/resources/price.rb +30 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +298 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +33 -0
- data/lib/stripe/resources/promotion_code.rb +10 -0
- data/lib/stripe/resources/quote.rb +2038 -7
- data/lib/stripe/resources/quote_line.rb +274 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +687 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +395 -0
- data/lib/stripe/resources/refund.rb +9 -0
- data/lib/stripe/resources/setup_attempt.rb +24 -0
- data/lib/stripe/resources/setup_intent.rb +771 -9
- data/lib/stripe/resources/source.rb +29 -0
- data/lib/stripe/resources/subscription.rb +403 -9
- data/lib/stripe/resources/subscription_item.rb +84 -3
- data/lib/stripe/resources/subscription_schedule.rb +1007 -10
- data/lib/stripe/resources/tax/association.rb +66 -0
- data/lib/stripe/resources/tax/form.rb +211 -0
- data/lib/stripe/resources/tax_id.rb +12 -2
- data/lib/stripe/resources/terminal/configuration.rb +33 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +84 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/treasury/financial_account.rb +22 -3
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
- data/lib/stripe/resources/treasury/received_credit.rb +38 -1
- data/lib/stripe/resources/treasury/received_debit.rb +40 -1
- data/lib/stripe/resources/v2/billing/bill_setting.rb +62 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +50 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +182 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +148 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +136 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +35 -0
- data/lib/stripe/resources/v2/billing/intent.rb +59 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +200 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +79 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +36 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +56 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +44 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +43 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +30 -0
- data/lib/stripe/resources/v2/billing/profile.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +53 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +71 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +26 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +117 -0
- data/lib/stripe/resources/v2/core/account.rb +1938 -0
- data/lib/stripe/resources/v2/core/account_link.rb +72 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +57 -0
- data/lib/stripe/resources/v2/core/person.rb +276 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +74 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +39 -0
- data/lib/stripe/resources/v2/event.rb +2 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +20 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +22 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +51 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +79 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +68 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +94 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +129 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +82 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +45 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +117 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +77 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +49 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +122 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +84 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +80 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +70 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +89 -0
- data/lib/stripe/resources/v2/reporting/report.rb +64 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +89 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +31 -0
- data/lib/stripe/resources.rb +194 -0
- data/lib/stripe/services/account_notice_service.rb +101 -0
- data/lib/stripe/services/account_service.rb +562 -1
- data/lib/stripe/services/account_session_service.rb +226 -1
- data/lib/stripe/services/balance_settings_service.rb +99 -0
- data/lib/stripe/services/billing/alert_service.rb +75 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +17 -2
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +37 -2
- data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
- data/lib/stripe/services/billing_portal/session_service.rb +4 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/charge_service.rb +1418 -0
- data/lib/stripe/services/checkout/session_service.rb +472 -5
- data/lib/stripe/services/coupon_service.rb +17 -1
- data/lib/stripe/services/credit_note_service.rb +4 -0
- data/lib/stripe/services/customer_session_service.rb +4 -1
- data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
- data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
- data/lib/stripe/services/financial_connections/account_service.rb +7 -2
- data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
- data/lib/stripe/services/financial_connections/session_service.rb +34 -2
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +123 -0
- data/lib/stripe/services/identity/verification_session_service.rb +8 -0
- data/lib/stripe/services/invoice_item_service.rb +74 -2
- data/lib/stripe/services/invoice_line_item_service.rb +33 -1
- data/lib/stripe/services/invoice_payment_service.rb +4 -1
- data/lib/stripe/services/invoice_service.rb +1078 -16
- data/lib/stripe/services/issuing/card_service.rb +0 -8
- data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
- data/lib/stripe/services/issuing/transaction_service.rb +4 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/margin_service.rb +119 -0
- data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
- data/lib/stripe/services/order_service.rb +2388 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +52 -0
- data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
- data/lib/stripe/services/payment_intent_service.rb +7630 -2215
- data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
- data/lib/stripe/services/payment_method_service.rb +120 -1
- data/lib/stripe/services/payment_record_service.rb +562 -0
- data/lib/stripe/services/price_service.rb +19 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
- data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +8 -0
- data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
- data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
- data/lib/stripe/services/quote_service.rb +1723 -8
- data/lib/stripe/services/setup_intent_service.rb +691 -9
- data/lib/stripe/services/subscription_item_service.rb +75 -3
- data/lib/stripe/services/subscription_schedule_service.rb +911 -10
- data/lib/stripe/services/subscription_service.rb +336 -9
- data/lib/stripe/services/tax/association_service.rb +31 -0
- data/lib/stripe/services/tax/form_service.rb +100 -0
- data/lib/stripe/services/tax_id_service.rb +8 -2
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/configuration_service.rb +26 -0
- data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
- data/lib/stripe/services/transfer_service.rb +4 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
- data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +114 -0
- data/lib/stripe/services/v2/core/account_service.rb +4536 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +5 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +119 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +152 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +53 -0
- data/lib/stripe/services/v2_services.rb +6 -1
- data/lib/stripe/services.rb +84 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/stripe.gemspec +4 -1
- metadata +281 -323
- data/rbi/stripe/resources/account.rbi +0 -4991
- data/rbi/stripe/resources/account_link.rbi +0 -76
- data/rbi/stripe/resources/account_session.rbi +0 -1173
- data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
- data/rbi/stripe/resources/application.rbi +0 -20
- data/rbi/stripe/resources/application_fee.rbi +0 -118
- data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
- data/rbi/stripe/resources/apps/secret.rbi +0 -195
- data/rbi/stripe/resources/balance.rbi +0 -230
- data/rbi/stripe/resources/balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/bank_account.rbi +0 -127
- data/rbi/stripe/resources/billing/alert.rbi +0 -201
- data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
- data/rbi/stripe/resources/billing/meter.rbi +0 -226
- data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
- data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -712
- data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
- data/rbi/stripe/resources/capability.rbi +0 -125
- data/rbi/stripe/resources/card.rbi +0 -125
- data/rbi/stripe/resources/cash_balance.rbi +0 -32
- data/rbi/stripe/resources/charge.rbi +0 -2136
- data/rbi/stripe/resources/checkout/session.rbi +0 -4105
- data/rbi/stripe/resources/climate/order.rbi +0 -245
- data/rbi/stripe/resources/climate/product.rbi +0 -75
- data/rbi/stripe/resources/climate/supplier.rbi +0 -72
- data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
- data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
- data/rbi/stripe/resources/country_spec.rbi +0 -85
- data/rbi/stripe/resources/coupon.rbi +0 -250
- data/rbi/stripe/resources/credit_note.rbi +0 -752
- data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
- data/rbi/stripe/resources/customer.rbi +0 -993
- data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
- data/rbi/stripe/resources/customer_session.rbi +0 -200
- data/rbi/stripe/resources/discount.rbi +0 -53
- data/rbi/stripe/resources/dispute.rbi +0 -761
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
- data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
- data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
- data/rbi/stripe/resources/event.rbi +0 -137
- data/rbi/stripe/resources/exchange_rate.rbi +0 -66
- data/rbi/stripe/resources/file.rbi +0 -143
- data/rbi/stripe/resources/file_link.rbi +0 -141
- data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
- data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
- data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
- data/rbi/stripe/resources/forwarding/request.rbi +0 -216
- data/rbi/stripe/resources/funding_instructions.rbi +0 -437
- data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
- data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
- data/rbi/stripe/resources/invoice.rbi +0 -3894
- data/rbi/stripe/resources/invoice_item.rbi +0 -470
- data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
- data/rbi/stripe/resources/invoice_payment.rbi +0 -121
- data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
- data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
- data/rbi/stripe/resources/issuing/card.rbi +0 -749
- data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
- data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
- data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
- data/rbi/stripe/resources/issuing/token.rbi +0 -226
- data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
- data/rbi/stripe/resources/line_item.rbi +0 -72
- data/rbi/stripe/resources/login_link.rbi +0 -19
- data/rbi/stripe/resources/mandate.rbi +0 -191
- data/rbi/stripe/resources/payment_intent.rbi +0 -10011
- data/rbi/stripe/resources/payment_link.rbi +0 -1891
- data/rbi/stripe/resources/payment_method.rbi +0 -1770
- data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
- data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
- data/rbi/stripe/resources/payout.rbi +0 -307
- data/rbi/stripe/resources/person.rbi +0 -401
- data/rbi/stripe/resources/plan.rbi +0 -371
- data/rbi/stripe/resources/price.rbi +0 -694
- data/rbi/stripe/resources/product.rbi +0 -553
- data/rbi/stripe/resources/product_feature.rbi +0 -26
- data/rbi/stripe/resources/promotion_code.rbi +0 -264
- data/rbi/stripe/resources/quote.rbi +0 -1137
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
- data/rbi/stripe/resources/radar/value_list.rbi +0 -168
- data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
- data/rbi/stripe/resources/refund.rbi +0 -523
- data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
- data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
- data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
- data/rbi/stripe/resources/reversal.rbi +0 -51
- data/rbi/stripe/resources/review.rbi +0 -154
- data/rbi/stripe/resources/setup_attempt.rbi +0 -477
- data/rbi/stripe/resources/setup_intent.rbi +0 -3974
- data/rbi/stripe/resources/shipping_rate.rbi +0 -305
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
- data/rbi/stripe/resources/source.rbi +0 -1496
- data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
- data/rbi/stripe/resources/source_transaction.rbi +0 -127
- data/rbi/stripe/resources/subscription.rbi +0 -2154
- data/rbi/stripe/resources/subscription_item.rbi +0 -404
- data/rbi/stripe/resources/subscription_schedule.rbi +0 -1795
- data/rbi/stripe/resources/tax/calculation.rbi +0 -478
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
- data/rbi/stripe/resources/tax/registration.rbi +0 -3216
- data/rbi/stripe/resources/tax/settings.rbi +0 -141
- data/rbi/stripe/resources/tax/transaction.rbi +0 -351
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
- data/rbi/stripe/resources/tax_code.rbi +0 -44
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
- data/rbi/stripe/resources/tax_id.rbi +0 -165
- data/rbi/stripe/resources/tax_rate.rbi +0 -239
- data/rbi/stripe/resources/terminal/configuration.rbi +0 -1647
- data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
- data/rbi/stripe/resources/terminal/location.rbi +0 -222
- data/rbi/stripe/resources/terminal/reader.rbi +0 -1016
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
- data/rbi/stripe/resources/token.rbi +0 -1281
- data/rbi/stripe/resources/topup.rbi +0 -222
- data/rbi/stripe/resources/transfer.rbi +0 -199
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
- data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
- data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
- data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
- data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
- data/rbi/stripe/resources/v2/amount.rbi +0 -14
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
- data/rbi/stripe/resources/v2/event.rbi +0 -48
- data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
- data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
- data/rbi/stripe/services/account_capability_service.rbi +0 -51
- data/rbi/stripe/services/account_link_service.rbi +0 -60
- data/rbi/stripe/services/account_login_link_service.rbi +0 -22
- data/rbi/stripe/services/account_person_service.rbi +0 -1007
- data/rbi/stripe/services/account_service.rbi +0 -4281
- data/rbi/stripe/services/account_session_service.rbi +0 -748
- data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
- data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
- data/rbi/stripe/services/application_fee_service.rbi +0 -78
- data/rbi/stripe/services/apps/secret_service.rbi +0 -151
- data/rbi/stripe/services/apps_service.rbi +0 -9
- data/rbi/stripe/services/balance_service.rbi +0 -21
- data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
- data/rbi/stripe/services/billing/alert_service.rbi +0 -152
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
- data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
- data/rbi/stripe/services/billing/meter_service.rbi +0 -163
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -561
- data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
- data/rbi/stripe/services/billing_portal_service.rbi +0 -10
- data/rbi/stripe/services/billing_service.rbi +0 -15
- data/rbi/stripe/services/charge_service.rbi +0 -448
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
- data/rbi/stripe/services/checkout/session_service.rbi +0 -2697
- data/rbi/stripe/services/checkout_service.rbi +0 -9
- data/rbi/stripe/services/climate/order_service.rbi +0 -142
- data/rbi/stripe/services/climate/product_service.rbi +0 -46
- data/rbi/stripe/services/climate_service.rbi +0 -11
- data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
- data/rbi/stripe/services/country_spec_service.rbi +0 -44
- data/rbi/stripe/services/coupon_service.rbi +0 -194
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
- data/rbi/stripe/services/credit_note_service.rbi +0 -415
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
- data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
- data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
- data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
- data/rbi/stripe/services/customer_service.rbi +0 -635
- data/rbi/stripe/services/customer_session_service.rbi +0 -116
- data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
- data/rbi/stripe/services/dispute_service.rbi +0 -424
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
- data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
- data/rbi/stripe/services/entitlements_service.rbi +0 -10
- data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
- data/rbi/stripe/services/event_service.rbi +0 -83
- data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
- data/rbi/stripe/services/file_link_service.rbi +0 -124
- data/rbi/stripe/services/file_service.rbi +0 -116
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
- data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
- data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
- data/rbi/stripe/services/financial_connections_service.rbi +0 -11
- data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
- data/rbi/stripe/services/forwarding_service.rbi +0 -9
- data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
- data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
- data/rbi/stripe/services/identity_service.rbi +0 -10
- data/rbi/stripe/services/invoice_item_service.rbi +0 -366
- data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
- data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
- data/rbi/stripe/services/invoice_service.rbi +0 -3073
- data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
- data/rbi/stripe/services/issuing/card_service.rbi +0 -503
- data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
- data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
- data/rbi/stripe/services/issuing/token_service.rbi +0 -99
- data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
- data/rbi/stripe/services/issuing_service.rbi +0 -16
- data/rbi/stripe/services/mandate_service.rbi +0 -20
- data/rbi/stripe/services/payment_intent_service.rbi +0 -8010
- data/rbi/stripe/services/payment_link_service.rbi +0 -1441
- data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
- data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
- data/rbi/stripe/services/payment_method_service.rbi +0 -781
- data/rbi/stripe/services/payout_service.rbi +0 -209
- data/rbi/stripe/services/plan_service.rbi +0 -282
- data/rbi/stripe/services/price_service.rbi +0 -546
- data/rbi/stripe/services/product_feature_service.rbi +0 -67
- data/rbi/stripe/services/product_service.rbi +0 -477
- data/rbi/stripe/services/promotion_code_service.rbi +0 -214
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
- data/rbi/stripe/services/quote_service.rbi +0 -695
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
- data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
- data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
- data/rbi/stripe/services/radar_service.rbi +0 -11
- data/rbi/stripe/services/refund_service.rbi +0 -185
- data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
- data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
- data/rbi/stripe/services/reporting_service.rbi +0 -10
- data/rbi/stripe/services/review_service.rbi +0 -84
- data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
- data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
- data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
- data/rbi/stripe/services/sigma_service.rbi +0 -9
- data/rbi/stripe/services/source_service.rbi +0 -663
- data/rbi/stripe/services/subscription_item_service.rbi +0 -350
- data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1425
- data/rbi/stripe/services/subscription_service.rbi +0 -1768
- data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
- data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
- data/rbi/stripe/services/tax/settings_service.rbi +0 -93
- data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
- data/rbi/stripe/services/tax_code_service.rbi +0 -44
- data/rbi/stripe/services/tax_id_service.rbi +0 -110
- data/rbi/stripe/services/tax_rate_service.rbi +0 -185
- data/rbi/stripe/services/tax_service.rbi +0 -12
- data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1328
- data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
- data/rbi/stripe/services/terminal/location_service.rbi +0 -182
- data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
- data/rbi/stripe/services/terminal_service.rbi +0 -12
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
- data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
- data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -117
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
- data/rbi/stripe/services/test_helpers_service.rbi +0 -15
- data/rbi/stripe/services/token_service.rbi +0 -1255
- data/rbi/stripe/services/topup_service.rbi +0 -176
- data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
- data/rbi/stripe/services/transfer_service.rbi +0 -152
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
- data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
- data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
- data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
- data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
- data/rbi/stripe/services/treasury_service.rbi +0 -18
- data/rbi/stripe/services/v1_services.rbi +0 -77
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
- data/rbi/stripe/services/v2/billing_service.rbi +0 -14
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
- data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
- data/rbi/stripe/services/v2/core_service.rbi +0 -12
- data/rbi/stripe/services/v2_services.rbi +0 -10
- data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -197,6 +197,8 @@ module Stripe
|
|
197
197
|
class Card < Stripe::StripeObject
|
198
198
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
199
199
|
attr_reader :brand
|
200
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
201
|
+
attr_reader :brand_product
|
200
202
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
201
203
|
attr_reader :country
|
202
204
|
# Two-digit number representing the card's expiration month.
|
@@ -287,6 +289,11 @@ module Stripe
|
|
287
289
|
attr_reader :cvc_check
|
288
290
|
end
|
289
291
|
|
292
|
+
class DecrementalAuthorization < Stripe::StripeObject
|
293
|
+
# Indicates whether or not the decremental authorization feature is supported.
|
294
|
+
attr_reader :status
|
295
|
+
end
|
296
|
+
|
290
297
|
class ExtendedAuthorization < Stripe::StripeObject
|
291
298
|
# Indicates whether or not the capture window is extended beyond the standard authorization.
|
292
299
|
attr_reader :status
|
@@ -328,6 +335,11 @@ module Stripe
|
|
328
335
|
attr_reader :status
|
329
336
|
end
|
330
337
|
|
338
|
+
class PartialAuthorization < Stripe::StripeObject
|
339
|
+
# Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
|
340
|
+
attr_reader :status
|
341
|
+
end
|
342
|
+
|
331
343
|
class ThreeDSecure < Stripe::StripeObject
|
332
344
|
# For authenticated transactions: how the customer was authenticated by
|
333
345
|
# the issuing bank.
|
@@ -460,6 +472,8 @@ module Stripe
|
|
460
472
|
end
|
461
473
|
# The authorized amount.
|
462
474
|
attr_reader :amount_authorized
|
475
|
+
# The latest amount intended to be authorized by this charge.
|
476
|
+
attr_reader :amount_requested
|
463
477
|
# Authorization code on the charge.
|
464
478
|
attr_reader :authorization_code
|
465
479
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
@@ -470,6 +484,8 @@ module Stripe
|
|
470
484
|
attr_reader :checks
|
471
485
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
472
486
|
attr_reader :country
|
487
|
+
# Attribute for field decremental_authorization
|
488
|
+
attr_reader :decremental_authorization
|
473
489
|
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
474
490
|
attr_reader :description
|
475
491
|
# Two-digit number representing the card's expiration month.
|
@@ -510,6 +526,8 @@ module Stripe
|
|
510
526
|
attr_reader :network_transaction_id
|
511
527
|
# Attribute for field overcapture
|
512
528
|
attr_reader :overcapture
|
529
|
+
# Attribute for field partial_authorization
|
530
|
+
attr_reader :partial_authorization
|
513
531
|
# Status of a card based on the card issuer.
|
514
532
|
attr_reader :regulated_status
|
515
533
|
# Populated if this transaction used 3D Secure authentication.
|
@@ -658,11 +676,26 @@ module Stripe
|
|
658
676
|
attr_reader :verified_name
|
659
677
|
end
|
660
678
|
|
679
|
+
class Gopay < Stripe::StripeObject; end
|
680
|
+
|
661
681
|
class Grabpay < Stripe::StripeObject
|
662
682
|
# Unique transaction id generated by GrabPay
|
663
683
|
attr_reader :transaction_id
|
664
684
|
end
|
665
685
|
|
686
|
+
class IdBankTransfer < Stripe::StripeObject
|
687
|
+
# Account number of the bank account to transfer funds to.
|
688
|
+
attr_reader :account_number
|
689
|
+
# Bank where the account is located.
|
690
|
+
attr_reader :bank
|
691
|
+
# Local bank code of the bank.
|
692
|
+
attr_reader :bank_code
|
693
|
+
# Name of the bank associated with the bank account.
|
694
|
+
attr_reader :bank_name
|
695
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
696
|
+
attr_reader :display_name
|
697
|
+
end
|
698
|
+
|
666
699
|
class Ideal < Stripe::StripeObject
|
667
700
|
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
668
701
|
attr_reader :bank
|
@@ -792,6 +825,8 @@ module Stripe
|
|
792
825
|
attr_reader :country
|
793
826
|
end
|
794
827
|
|
828
|
+
class MbWay < Stripe::StripeObject; end
|
829
|
+
|
795
830
|
class Mobilepay < Stripe::StripeObject
|
796
831
|
class Card < Stripe::StripeObject
|
797
832
|
# Brand of the card used in the transaction
|
@@ -864,10 +899,6 @@ module Stripe
|
|
864
899
|
end
|
865
900
|
|
866
901
|
class Paynow < Stripe::StripeObject
|
867
|
-
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
868
|
-
attr_reader :location
|
869
|
-
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
870
|
-
attr_reader :reader
|
871
902
|
# Reference number associated with this PayNow payment
|
872
903
|
attr_reader :reference
|
873
904
|
end
|
@@ -879,6 +910,36 @@ module Stripe
|
|
879
910
|
# Indicates whether the transaction is eligible for PayPal's seller protection.
|
880
911
|
attr_reader :status
|
881
912
|
end
|
913
|
+
|
914
|
+
class Shipping < Stripe::StripeObject
|
915
|
+
# City, district, suburb, town, or village.
|
916
|
+
attr_reader :city
|
917
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
918
|
+
attr_reader :country
|
919
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
920
|
+
attr_reader :line1
|
921
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
922
|
+
attr_reader :line2
|
923
|
+
# ZIP or postal code.
|
924
|
+
attr_reader :postal_code
|
925
|
+
# State, county, province, or region.
|
926
|
+
attr_reader :state
|
927
|
+
end
|
928
|
+
|
929
|
+
class VerifiedAddress < Stripe::StripeObject
|
930
|
+
# City, district, suburb, town, or village.
|
931
|
+
attr_reader :city
|
932
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
933
|
+
attr_reader :country
|
934
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
935
|
+
attr_reader :line1
|
936
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
937
|
+
attr_reader :line2
|
938
|
+
# ZIP or postal code.
|
939
|
+
attr_reader :postal_code
|
940
|
+
# State, county, province, or region.
|
941
|
+
attr_reader :state
|
942
|
+
end
|
882
943
|
# Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
883
944
|
attr_reader :country
|
884
945
|
# Owner's email. Values are provided by PayPal directly
|
@@ -891,13 +952,40 @@ module Stripe
|
|
891
952
|
attr_reader :payer_name
|
892
953
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
893
954
|
attr_reader :seller_protection
|
955
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
956
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
957
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
958
|
+
attr_reader :shipping
|
894
959
|
# A unique ID generated by PayPal for this transaction.
|
895
960
|
attr_reader :transaction_id
|
961
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
962
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
963
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
964
|
+
attr_reader :verified_address
|
965
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
966
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
967
|
+
attr_reader :verified_email
|
968
|
+
# Owner's verified full name. Values are verified or provided by PayPal directly
|
969
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
970
|
+
attr_reader :verified_name
|
971
|
+
end
|
972
|
+
|
973
|
+
class Payto < Stripe::StripeObject
|
974
|
+
# Bank-State-Branch number of the bank account.
|
975
|
+
attr_reader :bsb_number
|
976
|
+
# Last four digits of the bank account number.
|
977
|
+
attr_reader :last4
|
978
|
+
# ID of the mandate used to make this payment.
|
979
|
+
attr_reader :mandate
|
980
|
+
# The PayID alias for the bank account.
|
981
|
+
attr_reader :pay_id
|
896
982
|
end
|
897
983
|
|
898
984
|
class Pix < Stripe::StripeObject
|
899
985
|
# Unique transaction id generated by BCB
|
900
986
|
attr_reader :bank_transaction_id
|
987
|
+
# ID of the multi use Mandate generated by the PaymentIntent
|
988
|
+
attr_reader :mandate
|
901
989
|
end
|
902
990
|
|
903
991
|
class Promptpay < Stripe::StripeObject
|
@@ -905,11 +993,16 @@ module Stripe
|
|
905
993
|
attr_reader :reference
|
906
994
|
end
|
907
995
|
|
996
|
+
class Qris < Stripe::StripeObject; end
|
997
|
+
class Rechnung < Stripe::StripeObject; end
|
998
|
+
|
908
999
|
class RevolutPay < Stripe::StripeObject
|
909
1000
|
class Funding < Stripe::StripeObject
|
910
1001
|
class Card < Stripe::StripeObject
|
911
1002
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
912
1003
|
attr_reader :brand
|
1004
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
1005
|
+
attr_reader :brand_product
|
913
1006
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
914
1007
|
attr_reader :country
|
915
1008
|
# Two-digit number representing the card's expiration month.
|
@@ -968,6 +1061,8 @@ module Stripe
|
|
968
1061
|
attr_reader :mandate
|
969
1062
|
end
|
970
1063
|
|
1064
|
+
class Shopeepay < Stripe::StripeObject; end
|
1065
|
+
|
971
1066
|
class Sofort < Stripe::StripeObject
|
972
1067
|
# Bank code of bank associated with the bank account.
|
973
1068
|
attr_reader :bank_code
|
@@ -993,6 +1088,13 @@ module Stripe
|
|
993
1088
|
|
994
1089
|
class StripeAccount < Stripe::StripeObject; end
|
995
1090
|
|
1091
|
+
class StripeBalance < Stripe::StripeObject
|
1092
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
1093
|
+
attr_reader :account
|
1094
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
1095
|
+
attr_reader :source_type
|
1096
|
+
end
|
1097
|
+
|
996
1098
|
class Swish < Stripe::StripeObject
|
997
1099
|
# Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
|
998
1100
|
attr_reader :fingerprint
|
@@ -1081,8 +1183,12 @@ module Stripe
|
|
1081
1183
|
attr_reader :fpx
|
1082
1184
|
# Attribute for field giropay
|
1083
1185
|
attr_reader :giropay
|
1186
|
+
# Attribute for field gopay
|
1187
|
+
attr_reader :gopay
|
1084
1188
|
# Attribute for field grabpay
|
1085
1189
|
attr_reader :grabpay
|
1190
|
+
# Attribute for field id_bank_transfer
|
1191
|
+
attr_reader :id_bank_transfer
|
1086
1192
|
# Attribute for field ideal
|
1087
1193
|
attr_reader :ideal
|
1088
1194
|
# Attribute for field interac_present
|
@@ -1097,6 +1203,8 @@ module Stripe
|
|
1097
1203
|
attr_reader :kr_card
|
1098
1204
|
# Attribute for field link
|
1099
1205
|
attr_reader :link
|
1206
|
+
# Attribute for field mb_way
|
1207
|
+
attr_reader :mb_way
|
1100
1208
|
# Attribute for field mobilepay
|
1101
1209
|
attr_reader :mobilepay
|
1102
1210
|
# Attribute for field multibanco
|
@@ -1117,10 +1225,16 @@ module Stripe
|
|
1117
1225
|
attr_reader :paynow
|
1118
1226
|
# Attribute for field paypal
|
1119
1227
|
attr_reader :paypal
|
1228
|
+
# Attribute for field payto
|
1229
|
+
attr_reader :payto
|
1120
1230
|
# Attribute for field pix
|
1121
1231
|
attr_reader :pix
|
1122
1232
|
# Attribute for field promptpay
|
1123
1233
|
attr_reader :promptpay
|
1234
|
+
# Attribute for field qris
|
1235
|
+
attr_reader :qris
|
1236
|
+
# Attribute for field rechnung
|
1237
|
+
attr_reader :rechnung
|
1124
1238
|
# Attribute for field revolut_pay
|
1125
1239
|
attr_reader :revolut_pay
|
1126
1240
|
# Attribute for field samsung_pay
|
@@ -1131,10 +1245,14 @@ module Stripe
|
|
1131
1245
|
attr_reader :sepa_credit_transfer
|
1132
1246
|
# Attribute for field sepa_debit
|
1133
1247
|
attr_reader :sepa_debit
|
1248
|
+
# Attribute for field shopeepay
|
1249
|
+
attr_reader :shopeepay
|
1134
1250
|
# Attribute for field sofort
|
1135
1251
|
attr_reader :sofort
|
1136
1252
|
# Attribute for field stripe_account
|
1137
1253
|
attr_reader :stripe_account
|
1254
|
+
# Attribute for field stripe_balance
|
1255
|
+
attr_reader :stripe_balance
|
1138
1256
|
# Attribute for field swish
|
1139
1257
|
attr_reader :swish
|
1140
1258
|
# Attribute for field twint
|
@@ -1433,6 +1551,711 @@ module Stripe
|
|
1433
1551
|
end
|
1434
1552
|
end
|
1435
1553
|
|
1554
|
+
class PaymentDetails < Stripe::RequestParams
|
1555
|
+
class CarRental < Stripe::RequestParams
|
1556
|
+
class Affiliate < Stripe::RequestParams
|
1557
|
+
# The name of the affiliate that originated the purchase.
|
1558
|
+
attr_accessor :name
|
1559
|
+
|
1560
|
+
def initialize(name: nil)
|
1561
|
+
@name = name
|
1562
|
+
end
|
1563
|
+
end
|
1564
|
+
|
1565
|
+
class Delivery < Stripe::RequestParams
|
1566
|
+
class Recipient < Stripe::RequestParams
|
1567
|
+
# The email of the recipient the ticket is delivered to.
|
1568
|
+
attr_accessor :email
|
1569
|
+
# The name of the recipient the ticket is delivered to.
|
1570
|
+
attr_accessor :name
|
1571
|
+
# The phone number of the recipient the ticket is delivered to.
|
1572
|
+
attr_accessor :phone
|
1573
|
+
|
1574
|
+
def initialize(email: nil, name: nil, phone: nil)
|
1575
|
+
@email = email
|
1576
|
+
@name = name
|
1577
|
+
@phone = phone
|
1578
|
+
end
|
1579
|
+
end
|
1580
|
+
# The delivery method for the payment
|
1581
|
+
attr_accessor :mode
|
1582
|
+
# Details of the recipient.
|
1583
|
+
attr_accessor :recipient
|
1584
|
+
|
1585
|
+
def initialize(mode: nil, recipient: nil)
|
1586
|
+
@mode = mode
|
1587
|
+
@recipient = recipient
|
1588
|
+
end
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
class Distance < Stripe::RequestParams
|
1592
|
+
# Distance traveled.
|
1593
|
+
attr_accessor :amount
|
1594
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
1595
|
+
attr_accessor :unit
|
1596
|
+
|
1597
|
+
def initialize(amount: nil, unit: nil)
|
1598
|
+
@amount = amount
|
1599
|
+
@unit = unit
|
1600
|
+
end
|
1601
|
+
end
|
1602
|
+
|
1603
|
+
class Driver < Stripe::RequestParams
|
1604
|
+
# Driver's identification number.
|
1605
|
+
attr_accessor :driver_identification_number
|
1606
|
+
# Driver's tax number.
|
1607
|
+
attr_accessor :driver_tax_number
|
1608
|
+
# Full name of the person or entity on the car reservation.
|
1609
|
+
attr_accessor :name
|
1610
|
+
|
1611
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
1612
|
+
@driver_identification_number = driver_identification_number
|
1613
|
+
@driver_tax_number = driver_tax_number
|
1614
|
+
@name = name
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
|
1618
|
+
class PickupAddress < Stripe::RequestParams
|
1619
|
+
# City, district, suburb, town, or village.
|
1620
|
+
attr_accessor :city
|
1621
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1622
|
+
attr_accessor :country
|
1623
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
1624
|
+
attr_accessor :line1
|
1625
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1626
|
+
attr_accessor :line2
|
1627
|
+
# ZIP or postal code.
|
1628
|
+
attr_accessor :postal_code
|
1629
|
+
# State, county, province, or region.
|
1630
|
+
attr_accessor :state
|
1631
|
+
|
1632
|
+
def initialize(
|
1633
|
+
city: nil,
|
1634
|
+
country: nil,
|
1635
|
+
line1: nil,
|
1636
|
+
line2: nil,
|
1637
|
+
postal_code: nil,
|
1638
|
+
state: nil
|
1639
|
+
)
|
1640
|
+
@city = city
|
1641
|
+
@country = country
|
1642
|
+
@line1 = line1
|
1643
|
+
@line2 = line2
|
1644
|
+
@postal_code = postal_code
|
1645
|
+
@state = state
|
1646
|
+
end
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
class ReturnAddress < Stripe::RequestParams
|
1650
|
+
# City, district, suburb, town, or village.
|
1651
|
+
attr_accessor :city
|
1652
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1653
|
+
attr_accessor :country
|
1654
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
1655
|
+
attr_accessor :line1
|
1656
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1657
|
+
attr_accessor :line2
|
1658
|
+
# ZIP or postal code.
|
1659
|
+
attr_accessor :postal_code
|
1660
|
+
# State, county, province, or region.
|
1661
|
+
attr_accessor :state
|
1662
|
+
|
1663
|
+
def initialize(
|
1664
|
+
city: nil,
|
1665
|
+
country: nil,
|
1666
|
+
line1: nil,
|
1667
|
+
line2: nil,
|
1668
|
+
postal_code: nil,
|
1669
|
+
state: nil
|
1670
|
+
)
|
1671
|
+
@city = city
|
1672
|
+
@country = country
|
1673
|
+
@line1 = line1
|
1674
|
+
@line2 = line2
|
1675
|
+
@postal_code = postal_code
|
1676
|
+
@state = state
|
1677
|
+
end
|
1678
|
+
end
|
1679
|
+
# Affiliate details for this purchase.
|
1680
|
+
attr_accessor :affiliate
|
1681
|
+
# The booking number associated with the car rental.
|
1682
|
+
attr_accessor :booking_number
|
1683
|
+
# Class code of the car.
|
1684
|
+
attr_accessor :car_class_code
|
1685
|
+
# Make of the car.
|
1686
|
+
attr_accessor :car_make
|
1687
|
+
# Model of the car.
|
1688
|
+
attr_accessor :car_model
|
1689
|
+
# The name of the rental car company.
|
1690
|
+
attr_accessor :company
|
1691
|
+
# The customer service phone number of the car rental company.
|
1692
|
+
attr_accessor :customer_service_phone_number
|
1693
|
+
# Number of days the car is being rented.
|
1694
|
+
attr_accessor :days_rented
|
1695
|
+
# Delivery details for this purchase.
|
1696
|
+
attr_accessor :delivery
|
1697
|
+
# The details of the distance traveled during the rental period.
|
1698
|
+
attr_accessor :distance
|
1699
|
+
# The details of the passengers in the travel reservation
|
1700
|
+
attr_accessor :drivers
|
1701
|
+
# List of additional charges being billed.
|
1702
|
+
attr_accessor :extra_charges
|
1703
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
1704
|
+
attr_accessor :no_show
|
1705
|
+
# Car pick-up address.
|
1706
|
+
attr_accessor :pickup_address
|
1707
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
1708
|
+
attr_accessor :pickup_at
|
1709
|
+
# Name of the pickup location.
|
1710
|
+
attr_accessor :pickup_location_name
|
1711
|
+
# Rental rate.
|
1712
|
+
attr_accessor :rate_amount
|
1713
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
1714
|
+
attr_accessor :rate_interval
|
1715
|
+
# The name of the person or entity renting the car.
|
1716
|
+
attr_accessor :renter_name
|
1717
|
+
# Car return address.
|
1718
|
+
attr_accessor :return_address
|
1719
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
1720
|
+
attr_accessor :return_at
|
1721
|
+
# Name of the return location.
|
1722
|
+
attr_accessor :return_location_name
|
1723
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
1724
|
+
attr_accessor :tax_exempt
|
1725
|
+
# The vehicle identification number.
|
1726
|
+
attr_accessor :vehicle_identification_number
|
1727
|
+
|
1728
|
+
def initialize(
|
1729
|
+
affiliate: nil,
|
1730
|
+
booking_number: nil,
|
1731
|
+
car_class_code: nil,
|
1732
|
+
car_make: nil,
|
1733
|
+
car_model: nil,
|
1734
|
+
company: nil,
|
1735
|
+
customer_service_phone_number: nil,
|
1736
|
+
days_rented: nil,
|
1737
|
+
delivery: nil,
|
1738
|
+
distance: nil,
|
1739
|
+
drivers: nil,
|
1740
|
+
extra_charges: nil,
|
1741
|
+
no_show: nil,
|
1742
|
+
pickup_address: nil,
|
1743
|
+
pickup_at: nil,
|
1744
|
+
pickup_location_name: nil,
|
1745
|
+
rate_amount: nil,
|
1746
|
+
rate_interval: nil,
|
1747
|
+
renter_name: nil,
|
1748
|
+
return_address: nil,
|
1749
|
+
return_at: nil,
|
1750
|
+
return_location_name: nil,
|
1751
|
+
tax_exempt: nil,
|
1752
|
+
vehicle_identification_number: nil
|
1753
|
+
)
|
1754
|
+
@affiliate = affiliate
|
1755
|
+
@booking_number = booking_number
|
1756
|
+
@car_class_code = car_class_code
|
1757
|
+
@car_make = car_make
|
1758
|
+
@car_model = car_model
|
1759
|
+
@company = company
|
1760
|
+
@customer_service_phone_number = customer_service_phone_number
|
1761
|
+
@days_rented = days_rented
|
1762
|
+
@delivery = delivery
|
1763
|
+
@distance = distance
|
1764
|
+
@drivers = drivers
|
1765
|
+
@extra_charges = extra_charges
|
1766
|
+
@no_show = no_show
|
1767
|
+
@pickup_address = pickup_address
|
1768
|
+
@pickup_at = pickup_at
|
1769
|
+
@pickup_location_name = pickup_location_name
|
1770
|
+
@rate_amount = rate_amount
|
1771
|
+
@rate_interval = rate_interval
|
1772
|
+
@renter_name = renter_name
|
1773
|
+
@return_address = return_address
|
1774
|
+
@return_at = return_at
|
1775
|
+
@return_location_name = return_location_name
|
1776
|
+
@tax_exempt = tax_exempt
|
1777
|
+
@vehicle_identification_number = vehicle_identification_number
|
1778
|
+
end
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
class EventDetails < Stripe::RequestParams
|
1782
|
+
class Address < Stripe::RequestParams
|
1783
|
+
# City, district, suburb, town, or village.
|
1784
|
+
attr_accessor :city
|
1785
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1786
|
+
attr_accessor :country
|
1787
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
1788
|
+
attr_accessor :line1
|
1789
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1790
|
+
attr_accessor :line2
|
1791
|
+
# ZIP or postal code.
|
1792
|
+
attr_accessor :postal_code
|
1793
|
+
# State, county, province, or region.
|
1794
|
+
attr_accessor :state
|
1795
|
+
|
1796
|
+
def initialize(
|
1797
|
+
city: nil,
|
1798
|
+
country: nil,
|
1799
|
+
line1: nil,
|
1800
|
+
line2: nil,
|
1801
|
+
postal_code: nil,
|
1802
|
+
state: nil
|
1803
|
+
)
|
1804
|
+
@city = city
|
1805
|
+
@country = country
|
1806
|
+
@line1 = line1
|
1807
|
+
@line2 = line2
|
1808
|
+
@postal_code = postal_code
|
1809
|
+
@state = state
|
1810
|
+
end
|
1811
|
+
end
|
1812
|
+
|
1813
|
+
class Affiliate < Stripe::RequestParams
|
1814
|
+
# The name of the affiliate that originated the purchase.
|
1815
|
+
attr_accessor :name
|
1816
|
+
|
1817
|
+
def initialize(name: nil)
|
1818
|
+
@name = name
|
1819
|
+
end
|
1820
|
+
end
|
1821
|
+
|
1822
|
+
class Delivery < Stripe::RequestParams
|
1823
|
+
class Recipient < Stripe::RequestParams
|
1824
|
+
# The email of the recipient the ticket is delivered to.
|
1825
|
+
attr_accessor :email
|
1826
|
+
# The name of the recipient the ticket is delivered to.
|
1827
|
+
attr_accessor :name
|
1828
|
+
# The phone number of the recipient the ticket is delivered to.
|
1829
|
+
attr_accessor :phone
|
1830
|
+
|
1831
|
+
def initialize(email: nil, name: nil, phone: nil)
|
1832
|
+
@email = email
|
1833
|
+
@name = name
|
1834
|
+
@phone = phone
|
1835
|
+
end
|
1836
|
+
end
|
1837
|
+
# The delivery method for the payment
|
1838
|
+
attr_accessor :mode
|
1839
|
+
# Details of the recipient.
|
1840
|
+
attr_accessor :recipient
|
1841
|
+
|
1842
|
+
def initialize(mode: nil, recipient: nil)
|
1843
|
+
@mode = mode
|
1844
|
+
@recipient = recipient
|
1845
|
+
end
|
1846
|
+
end
|
1847
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
1848
|
+
attr_accessor :access_controlled_venue
|
1849
|
+
# The event location's address.
|
1850
|
+
attr_accessor :address
|
1851
|
+
# Affiliate details for this purchase.
|
1852
|
+
attr_accessor :affiliate
|
1853
|
+
# The name of the company
|
1854
|
+
attr_accessor :company
|
1855
|
+
# Delivery details for this purchase.
|
1856
|
+
attr_accessor :delivery
|
1857
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
1858
|
+
attr_accessor :ends_at
|
1859
|
+
# Type of the event entertainment (concert, sports event etc)
|
1860
|
+
attr_accessor :genre
|
1861
|
+
# The name of the event.
|
1862
|
+
attr_accessor :name
|
1863
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
1864
|
+
attr_accessor :starts_at
|
1865
|
+
|
1866
|
+
def initialize(
|
1867
|
+
access_controlled_venue: nil,
|
1868
|
+
address: nil,
|
1869
|
+
affiliate: nil,
|
1870
|
+
company: nil,
|
1871
|
+
delivery: nil,
|
1872
|
+
ends_at: nil,
|
1873
|
+
genre: nil,
|
1874
|
+
name: nil,
|
1875
|
+
starts_at: nil
|
1876
|
+
)
|
1877
|
+
@access_controlled_venue = access_controlled_venue
|
1878
|
+
@address = address
|
1879
|
+
@affiliate = affiliate
|
1880
|
+
@company = company
|
1881
|
+
@delivery = delivery
|
1882
|
+
@ends_at = ends_at
|
1883
|
+
@genre = genre
|
1884
|
+
@name = name
|
1885
|
+
@starts_at = starts_at
|
1886
|
+
end
|
1887
|
+
end
|
1888
|
+
|
1889
|
+
class Flight < Stripe::RequestParams
|
1890
|
+
class Affiliate < Stripe::RequestParams
|
1891
|
+
# The name of the affiliate that originated the purchase.
|
1892
|
+
attr_accessor :name
|
1893
|
+
|
1894
|
+
def initialize(name: nil)
|
1895
|
+
@name = name
|
1896
|
+
end
|
1897
|
+
end
|
1898
|
+
|
1899
|
+
class Delivery < Stripe::RequestParams
|
1900
|
+
class Recipient < Stripe::RequestParams
|
1901
|
+
# The email of the recipient the ticket is delivered to.
|
1902
|
+
attr_accessor :email
|
1903
|
+
# The name of the recipient the ticket is delivered to.
|
1904
|
+
attr_accessor :name
|
1905
|
+
# The phone number of the recipient the ticket is delivered to.
|
1906
|
+
attr_accessor :phone
|
1907
|
+
|
1908
|
+
def initialize(email: nil, name: nil, phone: nil)
|
1909
|
+
@email = email
|
1910
|
+
@name = name
|
1911
|
+
@phone = phone
|
1912
|
+
end
|
1913
|
+
end
|
1914
|
+
# The delivery method for the payment
|
1915
|
+
attr_accessor :mode
|
1916
|
+
# Details of the recipient.
|
1917
|
+
attr_accessor :recipient
|
1918
|
+
|
1919
|
+
def initialize(mode: nil, recipient: nil)
|
1920
|
+
@mode = mode
|
1921
|
+
@recipient = recipient
|
1922
|
+
end
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
class Passenger < Stripe::RequestParams
|
1926
|
+
# Full name of the person or entity on the flight reservation.
|
1927
|
+
attr_accessor :name
|
1928
|
+
|
1929
|
+
def initialize(name: nil)
|
1930
|
+
@name = name
|
1931
|
+
end
|
1932
|
+
end
|
1933
|
+
|
1934
|
+
class Segment < Stripe::RequestParams
|
1935
|
+
# The flight segment amount.
|
1936
|
+
attr_accessor :amount
|
1937
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
1938
|
+
attr_accessor :arrival_airport
|
1939
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
1940
|
+
attr_accessor :arrives_at
|
1941
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
1942
|
+
attr_accessor :carrier
|
1943
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
1944
|
+
attr_accessor :departs_at
|
1945
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
1946
|
+
attr_accessor :departure_airport
|
1947
|
+
# The flight number associated with the segment
|
1948
|
+
attr_accessor :flight_number
|
1949
|
+
# The fare class for the segment.
|
1950
|
+
attr_accessor :service_class
|
1951
|
+
|
1952
|
+
def initialize(
|
1953
|
+
amount: nil,
|
1954
|
+
arrival_airport: nil,
|
1955
|
+
arrives_at: nil,
|
1956
|
+
carrier: nil,
|
1957
|
+
departs_at: nil,
|
1958
|
+
departure_airport: nil,
|
1959
|
+
flight_number: nil,
|
1960
|
+
service_class: nil
|
1961
|
+
)
|
1962
|
+
@amount = amount
|
1963
|
+
@arrival_airport = arrival_airport
|
1964
|
+
@arrives_at = arrives_at
|
1965
|
+
@carrier = carrier
|
1966
|
+
@departs_at = departs_at
|
1967
|
+
@departure_airport = departure_airport
|
1968
|
+
@flight_number = flight_number
|
1969
|
+
@service_class = service_class
|
1970
|
+
end
|
1971
|
+
end
|
1972
|
+
# Affiliate details for this purchase.
|
1973
|
+
attr_accessor :affiliate
|
1974
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
1975
|
+
attr_accessor :agency_number
|
1976
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
1977
|
+
attr_accessor :carrier
|
1978
|
+
# Delivery details for this purchase.
|
1979
|
+
attr_accessor :delivery
|
1980
|
+
# The name of the person or entity on the reservation.
|
1981
|
+
attr_accessor :passenger_name
|
1982
|
+
# The details of the passengers in the travel reservation.
|
1983
|
+
attr_accessor :passengers
|
1984
|
+
# The individual flight segments associated with the trip.
|
1985
|
+
attr_accessor :segments
|
1986
|
+
# The ticket number associated with the travel reservation.
|
1987
|
+
attr_accessor :ticket_number
|
1988
|
+
|
1989
|
+
def initialize(
|
1990
|
+
affiliate: nil,
|
1991
|
+
agency_number: nil,
|
1992
|
+
carrier: nil,
|
1993
|
+
delivery: nil,
|
1994
|
+
passenger_name: nil,
|
1995
|
+
passengers: nil,
|
1996
|
+
segments: nil,
|
1997
|
+
ticket_number: nil
|
1998
|
+
)
|
1999
|
+
@affiliate = affiliate
|
2000
|
+
@agency_number = agency_number
|
2001
|
+
@carrier = carrier
|
2002
|
+
@delivery = delivery
|
2003
|
+
@passenger_name = passenger_name
|
2004
|
+
@passengers = passengers
|
2005
|
+
@segments = segments
|
2006
|
+
@ticket_number = ticket_number
|
2007
|
+
end
|
2008
|
+
end
|
2009
|
+
|
2010
|
+
class Lodging < Stripe::RequestParams
|
2011
|
+
class Address < Stripe::RequestParams
|
2012
|
+
# City, district, suburb, town, or village.
|
2013
|
+
attr_accessor :city
|
2014
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2015
|
+
attr_accessor :country
|
2016
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2017
|
+
attr_accessor :line1
|
2018
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2019
|
+
attr_accessor :line2
|
2020
|
+
# ZIP or postal code.
|
2021
|
+
attr_accessor :postal_code
|
2022
|
+
# State, county, province, or region.
|
2023
|
+
attr_accessor :state
|
2024
|
+
|
2025
|
+
def initialize(
|
2026
|
+
city: nil,
|
2027
|
+
country: nil,
|
2028
|
+
line1: nil,
|
2029
|
+
line2: nil,
|
2030
|
+
postal_code: nil,
|
2031
|
+
state: nil
|
2032
|
+
)
|
2033
|
+
@city = city
|
2034
|
+
@country = country
|
2035
|
+
@line1 = line1
|
2036
|
+
@line2 = line2
|
2037
|
+
@postal_code = postal_code
|
2038
|
+
@state = state
|
2039
|
+
end
|
2040
|
+
end
|
2041
|
+
|
2042
|
+
class Affiliate < Stripe::RequestParams
|
2043
|
+
# The name of the affiliate that originated the purchase.
|
2044
|
+
attr_accessor :name
|
2045
|
+
|
2046
|
+
def initialize(name: nil)
|
2047
|
+
@name = name
|
2048
|
+
end
|
2049
|
+
end
|
2050
|
+
|
2051
|
+
class Delivery < Stripe::RequestParams
|
2052
|
+
class Recipient < Stripe::RequestParams
|
2053
|
+
# The email of the recipient the ticket is delivered to.
|
2054
|
+
attr_accessor :email
|
2055
|
+
# The name of the recipient the ticket is delivered to.
|
2056
|
+
attr_accessor :name
|
2057
|
+
# The phone number of the recipient the ticket is delivered to.
|
2058
|
+
attr_accessor :phone
|
2059
|
+
|
2060
|
+
def initialize(email: nil, name: nil, phone: nil)
|
2061
|
+
@email = email
|
2062
|
+
@name = name
|
2063
|
+
@phone = phone
|
2064
|
+
end
|
2065
|
+
end
|
2066
|
+
# The delivery method for the payment
|
2067
|
+
attr_accessor :mode
|
2068
|
+
# Details of the recipient.
|
2069
|
+
attr_accessor :recipient
|
2070
|
+
|
2071
|
+
def initialize(mode: nil, recipient: nil)
|
2072
|
+
@mode = mode
|
2073
|
+
@recipient = recipient
|
2074
|
+
end
|
2075
|
+
end
|
2076
|
+
|
2077
|
+
class Passenger < Stripe::RequestParams
|
2078
|
+
# Full name of the person or entity on the lodging reservation.
|
2079
|
+
attr_accessor :name
|
2080
|
+
|
2081
|
+
def initialize(name: nil)
|
2082
|
+
@name = name
|
2083
|
+
end
|
2084
|
+
end
|
2085
|
+
# The lodging location's address.
|
2086
|
+
attr_accessor :address
|
2087
|
+
# The number of adults on the booking
|
2088
|
+
attr_accessor :adults
|
2089
|
+
# Affiliate details for this purchase.
|
2090
|
+
attr_accessor :affiliate
|
2091
|
+
# The booking number associated with the lodging reservation.
|
2092
|
+
attr_accessor :booking_number
|
2093
|
+
# The lodging category
|
2094
|
+
attr_accessor :category
|
2095
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
2096
|
+
attr_accessor :checkin_at
|
2097
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
2098
|
+
attr_accessor :checkout_at
|
2099
|
+
# The customer service phone number of the lodging company.
|
2100
|
+
attr_accessor :customer_service_phone_number
|
2101
|
+
# The daily lodging room rate.
|
2102
|
+
attr_accessor :daily_room_rate_amount
|
2103
|
+
# Delivery details for this purchase.
|
2104
|
+
attr_accessor :delivery
|
2105
|
+
# List of additional charges being billed.
|
2106
|
+
attr_accessor :extra_charges
|
2107
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
2108
|
+
attr_accessor :fire_safety_act_compliance
|
2109
|
+
# The name of the lodging location.
|
2110
|
+
attr_accessor :name
|
2111
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
2112
|
+
attr_accessor :no_show
|
2113
|
+
# The number of rooms on the booking
|
2114
|
+
attr_accessor :number_of_rooms
|
2115
|
+
# The details of the passengers in the travel reservation
|
2116
|
+
attr_accessor :passengers
|
2117
|
+
# The phone number of the lodging location.
|
2118
|
+
attr_accessor :property_phone_number
|
2119
|
+
# The room class for this purchase.
|
2120
|
+
attr_accessor :room_class
|
2121
|
+
# The number of room nights
|
2122
|
+
attr_accessor :room_nights
|
2123
|
+
# The total tax amount associating with the room reservation.
|
2124
|
+
attr_accessor :total_room_tax_amount
|
2125
|
+
# The total tax amount
|
2126
|
+
attr_accessor :total_tax_amount
|
2127
|
+
|
2128
|
+
def initialize(
|
2129
|
+
address: nil,
|
2130
|
+
adults: nil,
|
2131
|
+
affiliate: nil,
|
2132
|
+
booking_number: nil,
|
2133
|
+
category: nil,
|
2134
|
+
checkin_at: nil,
|
2135
|
+
checkout_at: nil,
|
2136
|
+
customer_service_phone_number: nil,
|
2137
|
+
daily_room_rate_amount: nil,
|
2138
|
+
delivery: nil,
|
2139
|
+
extra_charges: nil,
|
2140
|
+
fire_safety_act_compliance: nil,
|
2141
|
+
name: nil,
|
2142
|
+
no_show: nil,
|
2143
|
+
number_of_rooms: nil,
|
2144
|
+
passengers: nil,
|
2145
|
+
property_phone_number: nil,
|
2146
|
+
room_class: nil,
|
2147
|
+
room_nights: nil,
|
2148
|
+
total_room_tax_amount: nil,
|
2149
|
+
total_tax_amount: nil
|
2150
|
+
)
|
2151
|
+
@address = address
|
2152
|
+
@adults = adults
|
2153
|
+
@affiliate = affiliate
|
2154
|
+
@booking_number = booking_number
|
2155
|
+
@category = category
|
2156
|
+
@checkin_at = checkin_at
|
2157
|
+
@checkout_at = checkout_at
|
2158
|
+
@customer_service_phone_number = customer_service_phone_number
|
2159
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
2160
|
+
@delivery = delivery
|
2161
|
+
@extra_charges = extra_charges
|
2162
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
2163
|
+
@name = name
|
2164
|
+
@no_show = no_show
|
2165
|
+
@number_of_rooms = number_of_rooms
|
2166
|
+
@passengers = passengers
|
2167
|
+
@property_phone_number = property_phone_number
|
2168
|
+
@room_class = room_class
|
2169
|
+
@room_nights = room_nights
|
2170
|
+
@total_room_tax_amount = total_room_tax_amount
|
2171
|
+
@total_tax_amount = total_tax_amount
|
2172
|
+
end
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
class Subscription < Stripe::RequestParams
|
2176
|
+
class Affiliate < Stripe::RequestParams
|
2177
|
+
# The name of the affiliate that originated the purchase.
|
2178
|
+
attr_accessor :name
|
2179
|
+
|
2180
|
+
def initialize(name: nil)
|
2181
|
+
@name = name
|
2182
|
+
end
|
2183
|
+
end
|
2184
|
+
|
2185
|
+
class BillingInterval < Stripe::RequestParams
|
2186
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
2187
|
+
attr_accessor :count
|
2188
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
2189
|
+
attr_accessor :interval
|
2190
|
+
|
2191
|
+
def initialize(count: nil, interval: nil)
|
2192
|
+
@count = count
|
2193
|
+
@interval = interval
|
2194
|
+
end
|
2195
|
+
end
|
2196
|
+
# Affiliate details for this purchase.
|
2197
|
+
attr_accessor :affiliate
|
2198
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
2199
|
+
attr_accessor :auto_renewal
|
2200
|
+
# Subscription billing details for this purchase.
|
2201
|
+
attr_accessor :billing_interval
|
2202
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
2203
|
+
attr_accessor :ends_at
|
2204
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
2205
|
+
attr_accessor :name
|
2206
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
2207
|
+
attr_accessor :starts_at
|
2208
|
+
|
2209
|
+
def initialize(
|
2210
|
+
affiliate: nil,
|
2211
|
+
auto_renewal: nil,
|
2212
|
+
billing_interval: nil,
|
2213
|
+
ends_at: nil,
|
2214
|
+
name: nil,
|
2215
|
+
starts_at: nil
|
2216
|
+
)
|
2217
|
+
@affiliate = affiliate
|
2218
|
+
@auto_renewal = auto_renewal
|
2219
|
+
@billing_interval = billing_interval
|
2220
|
+
@ends_at = ends_at
|
2221
|
+
@name = name
|
2222
|
+
@starts_at = starts_at
|
2223
|
+
end
|
2224
|
+
end
|
2225
|
+
# Car rental details for this PaymentIntent.
|
2226
|
+
attr_accessor :car_rental
|
2227
|
+
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
2228
|
+
attr_accessor :customer_reference
|
2229
|
+
# Event details for this PaymentIntent
|
2230
|
+
attr_accessor :event_details
|
2231
|
+
# Flight reservation details for this PaymentIntent
|
2232
|
+
attr_accessor :flight
|
2233
|
+
# Lodging reservation details for this PaymentIntent
|
2234
|
+
attr_accessor :lodging
|
2235
|
+
# A unique value assigned by the business to identify the transaction.
|
2236
|
+
attr_accessor :order_reference
|
2237
|
+
# Subscription details for this PaymentIntent
|
2238
|
+
attr_accessor :subscription
|
2239
|
+
|
2240
|
+
def initialize(
|
2241
|
+
car_rental: nil,
|
2242
|
+
customer_reference: nil,
|
2243
|
+
event_details: nil,
|
2244
|
+
flight: nil,
|
2245
|
+
lodging: nil,
|
2246
|
+
order_reference: nil,
|
2247
|
+
subscription: nil
|
2248
|
+
)
|
2249
|
+
@car_rental = car_rental
|
2250
|
+
@customer_reference = customer_reference
|
2251
|
+
@event_details = event_details
|
2252
|
+
@flight = flight
|
2253
|
+
@lodging = lodging
|
2254
|
+
@order_reference = order_reference
|
2255
|
+
@subscription = subscription
|
2256
|
+
end
|
2257
|
+
end
|
2258
|
+
|
1436
2259
|
class Shipping < Stripe::RequestParams
|
1437
2260
|
class Address < Stripe::RequestParams
|
1438
2261
|
# City, district, suburb, town, or village.
|
@@ -1493,6 +2316,8 @@ module Stripe
|
|
1493
2316
|
attr_accessor :fraud_details
|
1494
2317
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
1495
2318
|
attr_accessor :metadata
|
2319
|
+
# Provides industry-specific information about the charge.
|
2320
|
+
attr_accessor :payment_details
|
1496
2321
|
# This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
|
1497
2322
|
attr_accessor :receipt_email
|
1498
2323
|
# Shipping information for the charge. Helps prevent fraud on charges for physical goods.
|
@@ -1506,6 +2331,7 @@ module Stripe
|
|
1506
2331
|
expand: nil,
|
1507
2332
|
fraud_details: nil,
|
1508
2333
|
metadata: nil,
|
2334
|
+
payment_details: nil,
|
1509
2335
|
receipt_email: nil,
|
1510
2336
|
shipping: nil,
|
1511
2337
|
transfer_group: nil
|
@@ -1515,6 +2341,7 @@ module Stripe
|
|
1515
2341
|
@expand = expand
|
1516
2342
|
@fraud_details = fraud_details
|
1517
2343
|
@metadata = metadata
|
2344
|
+
@payment_details = payment_details
|
1518
2345
|
@receipt_email = receipt_email
|
1519
2346
|
@shipping = shipping
|
1520
2347
|
@transfer_group = transfer_group
|
@@ -1540,6 +2367,711 @@ module Stripe
|
|
1540
2367
|
end
|
1541
2368
|
|
1542
2369
|
class CaptureParams < Stripe::RequestParams
|
2370
|
+
class PaymentDetails < Stripe::RequestParams
|
2371
|
+
class CarRental < Stripe::RequestParams
|
2372
|
+
class Affiliate < Stripe::RequestParams
|
2373
|
+
# The name of the affiliate that originated the purchase.
|
2374
|
+
attr_accessor :name
|
2375
|
+
|
2376
|
+
def initialize(name: nil)
|
2377
|
+
@name = name
|
2378
|
+
end
|
2379
|
+
end
|
2380
|
+
|
2381
|
+
class Delivery < Stripe::RequestParams
|
2382
|
+
class Recipient < Stripe::RequestParams
|
2383
|
+
# The email of the recipient the ticket is delivered to.
|
2384
|
+
attr_accessor :email
|
2385
|
+
# The name of the recipient the ticket is delivered to.
|
2386
|
+
attr_accessor :name
|
2387
|
+
# The phone number of the recipient the ticket is delivered to.
|
2388
|
+
attr_accessor :phone
|
2389
|
+
|
2390
|
+
def initialize(email: nil, name: nil, phone: nil)
|
2391
|
+
@email = email
|
2392
|
+
@name = name
|
2393
|
+
@phone = phone
|
2394
|
+
end
|
2395
|
+
end
|
2396
|
+
# The delivery method for the payment
|
2397
|
+
attr_accessor :mode
|
2398
|
+
# Details of the recipient.
|
2399
|
+
attr_accessor :recipient
|
2400
|
+
|
2401
|
+
def initialize(mode: nil, recipient: nil)
|
2402
|
+
@mode = mode
|
2403
|
+
@recipient = recipient
|
2404
|
+
end
|
2405
|
+
end
|
2406
|
+
|
2407
|
+
class Distance < Stripe::RequestParams
|
2408
|
+
# Distance traveled.
|
2409
|
+
attr_accessor :amount
|
2410
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
2411
|
+
attr_accessor :unit
|
2412
|
+
|
2413
|
+
def initialize(amount: nil, unit: nil)
|
2414
|
+
@amount = amount
|
2415
|
+
@unit = unit
|
2416
|
+
end
|
2417
|
+
end
|
2418
|
+
|
2419
|
+
class Driver < Stripe::RequestParams
|
2420
|
+
# Driver's identification number.
|
2421
|
+
attr_accessor :driver_identification_number
|
2422
|
+
# Driver's tax number.
|
2423
|
+
attr_accessor :driver_tax_number
|
2424
|
+
# Full name of the person or entity on the car reservation.
|
2425
|
+
attr_accessor :name
|
2426
|
+
|
2427
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
2428
|
+
@driver_identification_number = driver_identification_number
|
2429
|
+
@driver_tax_number = driver_tax_number
|
2430
|
+
@name = name
|
2431
|
+
end
|
2432
|
+
end
|
2433
|
+
|
2434
|
+
class PickupAddress < Stripe::RequestParams
|
2435
|
+
# City, district, suburb, town, or village.
|
2436
|
+
attr_accessor :city
|
2437
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2438
|
+
attr_accessor :country
|
2439
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2440
|
+
attr_accessor :line1
|
2441
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2442
|
+
attr_accessor :line2
|
2443
|
+
# ZIP or postal code.
|
2444
|
+
attr_accessor :postal_code
|
2445
|
+
# State, county, province, or region.
|
2446
|
+
attr_accessor :state
|
2447
|
+
|
2448
|
+
def initialize(
|
2449
|
+
city: nil,
|
2450
|
+
country: nil,
|
2451
|
+
line1: nil,
|
2452
|
+
line2: nil,
|
2453
|
+
postal_code: nil,
|
2454
|
+
state: nil
|
2455
|
+
)
|
2456
|
+
@city = city
|
2457
|
+
@country = country
|
2458
|
+
@line1 = line1
|
2459
|
+
@line2 = line2
|
2460
|
+
@postal_code = postal_code
|
2461
|
+
@state = state
|
2462
|
+
end
|
2463
|
+
end
|
2464
|
+
|
2465
|
+
class ReturnAddress < Stripe::RequestParams
|
2466
|
+
# City, district, suburb, town, or village.
|
2467
|
+
attr_accessor :city
|
2468
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2469
|
+
attr_accessor :country
|
2470
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2471
|
+
attr_accessor :line1
|
2472
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2473
|
+
attr_accessor :line2
|
2474
|
+
# ZIP or postal code.
|
2475
|
+
attr_accessor :postal_code
|
2476
|
+
# State, county, province, or region.
|
2477
|
+
attr_accessor :state
|
2478
|
+
|
2479
|
+
def initialize(
|
2480
|
+
city: nil,
|
2481
|
+
country: nil,
|
2482
|
+
line1: nil,
|
2483
|
+
line2: nil,
|
2484
|
+
postal_code: nil,
|
2485
|
+
state: nil
|
2486
|
+
)
|
2487
|
+
@city = city
|
2488
|
+
@country = country
|
2489
|
+
@line1 = line1
|
2490
|
+
@line2 = line2
|
2491
|
+
@postal_code = postal_code
|
2492
|
+
@state = state
|
2493
|
+
end
|
2494
|
+
end
|
2495
|
+
# Affiliate details for this purchase.
|
2496
|
+
attr_accessor :affiliate
|
2497
|
+
# The booking number associated with the car rental.
|
2498
|
+
attr_accessor :booking_number
|
2499
|
+
# Class code of the car.
|
2500
|
+
attr_accessor :car_class_code
|
2501
|
+
# Make of the car.
|
2502
|
+
attr_accessor :car_make
|
2503
|
+
# Model of the car.
|
2504
|
+
attr_accessor :car_model
|
2505
|
+
# The name of the rental car company.
|
2506
|
+
attr_accessor :company
|
2507
|
+
# The customer service phone number of the car rental company.
|
2508
|
+
attr_accessor :customer_service_phone_number
|
2509
|
+
# Number of days the car is being rented.
|
2510
|
+
attr_accessor :days_rented
|
2511
|
+
# Delivery details for this purchase.
|
2512
|
+
attr_accessor :delivery
|
2513
|
+
# The details of the distance traveled during the rental period.
|
2514
|
+
attr_accessor :distance
|
2515
|
+
# The details of the passengers in the travel reservation
|
2516
|
+
attr_accessor :drivers
|
2517
|
+
# List of additional charges being billed.
|
2518
|
+
attr_accessor :extra_charges
|
2519
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
2520
|
+
attr_accessor :no_show
|
2521
|
+
# Car pick-up address.
|
2522
|
+
attr_accessor :pickup_address
|
2523
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
2524
|
+
attr_accessor :pickup_at
|
2525
|
+
# Name of the pickup location.
|
2526
|
+
attr_accessor :pickup_location_name
|
2527
|
+
# Rental rate.
|
2528
|
+
attr_accessor :rate_amount
|
2529
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
2530
|
+
attr_accessor :rate_interval
|
2531
|
+
# The name of the person or entity renting the car.
|
2532
|
+
attr_accessor :renter_name
|
2533
|
+
# Car return address.
|
2534
|
+
attr_accessor :return_address
|
2535
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
2536
|
+
attr_accessor :return_at
|
2537
|
+
# Name of the return location.
|
2538
|
+
attr_accessor :return_location_name
|
2539
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
2540
|
+
attr_accessor :tax_exempt
|
2541
|
+
# The vehicle identification number.
|
2542
|
+
attr_accessor :vehicle_identification_number
|
2543
|
+
|
2544
|
+
def initialize(
|
2545
|
+
affiliate: nil,
|
2546
|
+
booking_number: nil,
|
2547
|
+
car_class_code: nil,
|
2548
|
+
car_make: nil,
|
2549
|
+
car_model: nil,
|
2550
|
+
company: nil,
|
2551
|
+
customer_service_phone_number: nil,
|
2552
|
+
days_rented: nil,
|
2553
|
+
delivery: nil,
|
2554
|
+
distance: nil,
|
2555
|
+
drivers: nil,
|
2556
|
+
extra_charges: nil,
|
2557
|
+
no_show: nil,
|
2558
|
+
pickup_address: nil,
|
2559
|
+
pickup_at: nil,
|
2560
|
+
pickup_location_name: nil,
|
2561
|
+
rate_amount: nil,
|
2562
|
+
rate_interval: nil,
|
2563
|
+
renter_name: nil,
|
2564
|
+
return_address: nil,
|
2565
|
+
return_at: nil,
|
2566
|
+
return_location_name: nil,
|
2567
|
+
tax_exempt: nil,
|
2568
|
+
vehicle_identification_number: nil
|
2569
|
+
)
|
2570
|
+
@affiliate = affiliate
|
2571
|
+
@booking_number = booking_number
|
2572
|
+
@car_class_code = car_class_code
|
2573
|
+
@car_make = car_make
|
2574
|
+
@car_model = car_model
|
2575
|
+
@company = company
|
2576
|
+
@customer_service_phone_number = customer_service_phone_number
|
2577
|
+
@days_rented = days_rented
|
2578
|
+
@delivery = delivery
|
2579
|
+
@distance = distance
|
2580
|
+
@drivers = drivers
|
2581
|
+
@extra_charges = extra_charges
|
2582
|
+
@no_show = no_show
|
2583
|
+
@pickup_address = pickup_address
|
2584
|
+
@pickup_at = pickup_at
|
2585
|
+
@pickup_location_name = pickup_location_name
|
2586
|
+
@rate_amount = rate_amount
|
2587
|
+
@rate_interval = rate_interval
|
2588
|
+
@renter_name = renter_name
|
2589
|
+
@return_address = return_address
|
2590
|
+
@return_at = return_at
|
2591
|
+
@return_location_name = return_location_name
|
2592
|
+
@tax_exempt = tax_exempt
|
2593
|
+
@vehicle_identification_number = vehicle_identification_number
|
2594
|
+
end
|
2595
|
+
end
|
2596
|
+
|
2597
|
+
class EventDetails < Stripe::RequestParams
|
2598
|
+
class Address < Stripe::RequestParams
|
2599
|
+
# City, district, suburb, town, or village.
|
2600
|
+
attr_accessor :city
|
2601
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2602
|
+
attr_accessor :country
|
2603
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2604
|
+
attr_accessor :line1
|
2605
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2606
|
+
attr_accessor :line2
|
2607
|
+
# ZIP or postal code.
|
2608
|
+
attr_accessor :postal_code
|
2609
|
+
# State, county, province, or region.
|
2610
|
+
attr_accessor :state
|
2611
|
+
|
2612
|
+
def initialize(
|
2613
|
+
city: nil,
|
2614
|
+
country: nil,
|
2615
|
+
line1: nil,
|
2616
|
+
line2: nil,
|
2617
|
+
postal_code: nil,
|
2618
|
+
state: nil
|
2619
|
+
)
|
2620
|
+
@city = city
|
2621
|
+
@country = country
|
2622
|
+
@line1 = line1
|
2623
|
+
@line2 = line2
|
2624
|
+
@postal_code = postal_code
|
2625
|
+
@state = state
|
2626
|
+
end
|
2627
|
+
end
|
2628
|
+
|
2629
|
+
class Affiliate < Stripe::RequestParams
|
2630
|
+
# The name of the affiliate that originated the purchase.
|
2631
|
+
attr_accessor :name
|
2632
|
+
|
2633
|
+
def initialize(name: nil)
|
2634
|
+
@name = name
|
2635
|
+
end
|
2636
|
+
end
|
2637
|
+
|
2638
|
+
class Delivery < Stripe::RequestParams
|
2639
|
+
class Recipient < Stripe::RequestParams
|
2640
|
+
# The email of the recipient the ticket is delivered to.
|
2641
|
+
attr_accessor :email
|
2642
|
+
# The name of the recipient the ticket is delivered to.
|
2643
|
+
attr_accessor :name
|
2644
|
+
# The phone number of the recipient the ticket is delivered to.
|
2645
|
+
attr_accessor :phone
|
2646
|
+
|
2647
|
+
def initialize(email: nil, name: nil, phone: nil)
|
2648
|
+
@email = email
|
2649
|
+
@name = name
|
2650
|
+
@phone = phone
|
2651
|
+
end
|
2652
|
+
end
|
2653
|
+
# The delivery method for the payment
|
2654
|
+
attr_accessor :mode
|
2655
|
+
# Details of the recipient.
|
2656
|
+
attr_accessor :recipient
|
2657
|
+
|
2658
|
+
def initialize(mode: nil, recipient: nil)
|
2659
|
+
@mode = mode
|
2660
|
+
@recipient = recipient
|
2661
|
+
end
|
2662
|
+
end
|
2663
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
2664
|
+
attr_accessor :access_controlled_venue
|
2665
|
+
# The event location's address.
|
2666
|
+
attr_accessor :address
|
2667
|
+
# Affiliate details for this purchase.
|
2668
|
+
attr_accessor :affiliate
|
2669
|
+
# The name of the company
|
2670
|
+
attr_accessor :company
|
2671
|
+
# Delivery details for this purchase.
|
2672
|
+
attr_accessor :delivery
|
2673
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
2674
|
+
attr_accessor :ends_at
|
2675
|
+
# Type of the event entertainment (concert, sports event etc)
|
2676
|
+
attr_accessor :genre
|
2677
|
+
# The name of the event.
|
2678
|
+
attr_accessor :name
|
2679
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
2680
|
+
attr_accessor :starts_at
|
2681
|
+
|
2682
|
+
def initialize(
|
2683
|
+
access_controlled_venue: nil,
|
2684
|
+
address: nil,
|
2685
|
+
affiliate: nil,
|
2686
|
+
company: nil,
|
2687
|
+
delivery: nil,
|
2688
|
+
ends_at: nil,
|
2689
|
+
genre: nil,
|
2690
|
+
name: nil,
|
2691
|
+
starts_at: nil
|
2692
|
+
)
|
2693
|
+
@access_controlled_venue = access_controlled_venue
|
2694
|
+
@address = address
|
2695
|
+
@affiliate = affiliate
|
2696
|
+
@company = company
|
2697
|
+
@delivery = delivery
|
2698
|
+
@ends_at = ends_at
|
2699
|
+
@genre = genre
|
2700
|
+
@name = name
|
2701
|
+
@starts_at = starts_at
|
2702
|
+
end
|
2703
|
+
end
|
2704
|
+
|
2705
|
+
class Flight < Stripe::RequestParams
|
2706
|
+
class Affiliate < Stripe::RequestParams
|
2707
|
+
# The name of the affiliate that originated the purchase.
|
2708
|
+
attr_accessor :name
|
2709
|
+
|
2710
|
+
def initialize(name: nil)
|
2711
|
+
@name = name
|
2712
|
+
end
|
2713
|
+
end
|
2714
|
+
|
2715
|
+
class Delivery < Stripe::RequestParams
|
2716
|
+
class Recipient < Stripe::RequestParams
|
2717
|
+
# The email of the recipient the ticket is delivered to.
|
2718
|
+
attr_accessor :email
|
2719
|
+
# The name of the recipient the ticket is delivered to.
|
2720
|
+
attr_accessor :name
|
2721
|
+
# The phone number of the recipient the ticket is delivered to.
|
2722
|
+
attr_accessor :phone
|
2723
|
+
|
2724
|
+
def initialize(email: nil, name: nil, phone: nil)
|
2725
|
+
@email = email
|
2726
|
+
@name = name
|
2727
|
+
@phone = phone
|
2728
|
+
end
|
2729
|
+
end
|
2730
|
+
# The delivery method for the payment
|
2731
|
+
attr_accessor :mode
|
2732
|
+
# Details of the recipient.
|
2733
|
+
attr_accessor :recipient
|
2734
|
+
|
2735
|
+
def initialize(mode: nil, recipient: nil)
|
2736
|
+
@mode = mode
|
2737
|
+
@recipient = recipient
|
2738
|
+
end
|
2739
|
+
end
|
2740
|
+
|
2741
|
+
class Passenger < Stripe::RequestParams
|
2742
|
+
# Full name of the person or entity on the flight reservation.
|
2743
|
+
attr_accessor :name
|
2744
|
+
|
2745
|
+
def initialize(name: nil)
|
2746
|
+
@name = name
|
2747
|
+
end
|
2748
|
+
end
|
2749
|
+
|
2750
|
+
class Segment < Stripe::RequestParams
|
2751
|
+
# The flight segment amount.
|
2752
|
+
attr_accessor :amount
|
2753
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
2754
|
+
attr_accessor :arrival_airport
|
2755
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
2756
|
+
attr_accessor :arrives_at
|
2757
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
2758
|
+
attr_accessor :carrier
|
2759
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
2760
|
+
attr_accessor :departs_at
|
2761
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
2762
|
+
attr_accessor :departure_airport
|
2763
|
+
# The flight number associated with the segment
|
2764
|
+
attr_accessor :flight_number
|
2765
|
+
# The fare class for the segment.
|
2766
|
+
attr_accessor :service_class
|
2767
|
+
|
2768
|
+
def initialize(
|
2769
|
+
amount: nil,
|
2770
|
+
arrival_airport: nil,
|
2771
|
+
arrives_at: nil,
|
2772
|
+
carrier: nil,
|
2773
|
+
departs_at: nil,
|
2774
|
+
departure_airport: nil,
|
2775
|
+
flight_number: nil,
|
2776
|
+
service_class: nil
|
2777
|
+
)
|
2778
|
+
@amount = amount
|
2779
|
+
@arrival_airport = arrival_airport
|
2780
|
+
@arrives_at = arrives_at
|
2781
|
+
@carrier = carrier
|
2782
|
+
@departs_at = departs_at
|
2783
|
+
@departure_airport = departure_airport
|
2784
|
+
@flight_number = flight_number
|
2785
|
+
@service_class = service_class
|
2786
|
+
end
|
2787
|
+
end
|
2788
|
+
# Affiliate details for this purchase.
|
2789
|
+
attr_accessor :affiliate
|
2790
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
2791
|
+
attr_accessor :agency_number
|
2792
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
2793
|
+
attr_accessor :carrier
|
2794
|
+
# Delivery details for this purchase.
|
2795
|
+
attr_accessor :delivery
|
2796
|
+
# The name of the person or entity on the reservation.
|
2797
|
+
attr_accessor :passenger_name
|
2798
|
+
# The details of the passengers in the travel reservation.
|
2799
|
+
attr_accessor :passengers
|
2800
|
+
# The individual flight segments associated with the trip.
|
2801
|
+
attr_accessor :segments
|
2802
|
+
# The ticket number associated with the travel reservation.
|
2803
|
+
attr_accessor :ticket_number
|
2804
|
+
|
2805
|
+
def initialize(
|
2806
|
+
affiliate: nil,
|
2807
|
+
agency_number: nil,
|
2808
|
+
carrier: nil,
|
2809
|
+
delivery: nil,
|
2810
|
+
passenger_name: nil,
|
2811
|
+
passengers: nil,
|
2812
|
+
segments: nil,
|
2813
|
+
ticket_number: nil
|
2814
|
+
)
|
2815
|
+
@affiliate = affiliate
|
2816
|
+
@agency_number = agency_number
|
2817
|
+
@carrier = carrier
|
2818
|
+
@delivery = delivery
|
2819
|
+
@passenger_name = passenger_name
|
2820
|
+
@passengers = passengers
|
2821
|
+
@segments = segments
|
2822
|
+
@ticket_number = ticket_number
|
2823
|
+
end
|
2824
|
+
end
|
2825
|
+
|
2826
|
+
class Lodging < Stripe::RequestParams
|
2827
|
+
class Address < Stripe::RequestParams
|
2828
|
+
# City, district, suburb, town, or village.
|
2829
|
+
attr_accessor :city
|
2830
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2831
|
+
attr_accessor :country
|
2832
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2833
|
+
attr_accessor :line1
|
2834
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2835
|
+
attr_accessor :line2
|
2836
|
+
# ZIP or postal code.
|
2837
|
+
attr_accessor :postal_code
|
2838
|
+
# State, county, province, or region.
|
2839
|
+
attr_accessor :state
|
2840
|
+
|
2841
|
+
def initialize(
|
2842
|
+
city: nil,
|
2843
|
+
country: nil,
|
2844
|
+
line1: nil,
|
2845
|
+
line2: nil,
|
2846
|
+
postal_code: nil,
|
2847
|
+
state: nil
|
2848
|
+
)
|
2849
|
+
@city = city
|
2850
|
+
@country = country
|
2851
|
+
@line1 = line1
|
2852
|
+
@line2 = line2
|
2853
|
+
@postal_code = postal_code
|
2854
|
+
@state = state
|
2855
|
+
end
|
2856
|
+
end
|
2857
|
+
|
2858
|
+
class Affiliate < Stripe::RequestParams
|
2859
|
+
# The name of the affiliate that originated the purchase.
|
2860
|
+
attr_accessor :name
|
2861
|
+
|
2862
|
+
def initialize(name: nil)
|
2863
|
+
@name = name
|
2864
|
+
end
|
2865
|
+
end
|
2866
|
+
|
2867
|
+
class Delivery < Stripe::RequestParams
|
2868
|
+
class Recipient < Stripe::RequestParams
|
2869
|
+
# The email of the recipient the ticket is delivered to.
|
2870
|
+
attr_accessor :email
|
2871
|
+
# The name of the recipient the ticket is delivered to.
|
2872
|
+
attr_accessor :name
|
2873
|
+
# The phone number of the recipient the ticket is delivered to.
|
2874
|
+
attr_accessor :phone
|
2875
|
+
|
2876
|
+
def initialize(email: nil, name: nil, phone: nil)
|
2877
|
+
@email = email
|
2878
|
+
@name = name
|
2879
|
+
@phone = phone
|
2880
|
+
end
|
2881
|
+
end
|
2882
|
+
# The delivery method for the payment
|
2883
|
+
attr_accessor :mode
|
2884
|
+
# Details of the recipient.
|
2885
|
+
attr_accessor :recipient
|
2886
|
+
|
2887
|
+
def initialize(mode: nil, recipient: nil)
|
2888
|
+
@mode = mode
|
2889
|
+
@recipient = recipient
|
2890
|
+
end
|
2891
|
+
end
|
2892
|
+
|
2893
|
+
class Passenger < Stripe::RequestParams
|
2894
|
+
# Full name of the person or entity on the lodging reservation.
|
2895
|
+
attr_accessor :name
|
2896
|
+
|
2897
|
+
def initialize(name: nil)
|
2898
|
+
@name = name
|
2899
|
+
end
|
2900
|
+
end
|
2901
|
+
# The lodging location's address.
|
2902
|
+
attr_accessor :address
|
2903
|
+
# The number of adults on the booking
|
2904
|
+
attr_accessor :adults
|
2905
|
+
# Affiliate details for this purchase.
|
2906
|
+
attr_accessor :affiliate
|
2907
|
+
# The booking number associated with the lodging reservation.
|
2908
|
+
attr_accessor :booking_number
|
2909
|
+
# The lodging category
|
2910
|
+
attr_accessor :category
|
2911
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
2912
|
+
attr_accessor :checkin_at
|
2913
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
2914
|
+
attr_accessor :checkout_at
|
2915
|
+
# The customer service phone number of the lodging company.
|
2916
|
+
attr_accessor :customer_service_phone_number
|
2917
|
+
# The daily lodging room rate.
|
2918
|
+
attr_accessor :daily_room_rate_amount
|
2919
|
+
# Delivery details for this purchase.
|
2920
|
+
attr_accessor :delivery
|
2921
|
+
# List of additional charges being billed.
|
2922
|
+
attr_accessor :extra_charges
|
2923
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
2924
|
+
attr_accessor :fire_safety_act_compliance
|
2925
|
+
# The name of the lodging location.
|
2926
|
+
attr_accessor :name
|
2927
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
2928
|
+
attr_accessor :no_show
|
2929
|
+
# The number of rooms on the booking
|
2930
|
+
attr_accessor :number_of_rooms
|
2931
|
+
# The details of the passengers in the travel reservation
|
2932
|
+
attr_accessor :passengers
|
2933
|
+
# The phone number of the lodging location.
|
2934
|
+
attr_accessor :property_phone_number
|
2935
|
+
# The room class for this purchase.
|
2936
|
+
attr_accessor :room_class
|
2937
|
+
# The number of room nights
|
2938
|
+
attr_accessor :room_nights
|
2939
|
+
# The total tax amount associating with the room reservation.
|
2940
|
+
attr_accessor :total_room_tax_amount
|
2941
|
+
# The total tax amount
|
2942
|
+
attr_accessor :total_tax_amount
|
2943
|
+
|
2944
|
+
def initialize(
|
2945
|
+
address: nil,
|
2946
|
+
adults: nil,
|
2947
|
+
affiliate: nil,
|
2948
|
+
booking_number: nil,
|
2949
|
+
category: nil,
|
2950
|
+
checkin_at: nil,
|
2951
|
+
checkout_at: nil,
|
2952
|
+
customer_service_phone_number: nil,
|
2953
|
+
daily_room_rate_amount: nil,
|
2954
|
+
delivery: nil,
|
2955
|
+
extra_charges: nil,
|
2956
|
+
fire_safety_act_compliance: nil,
|
2957
|
+
name: nil,
|
2958
|
+
no_show: nil,
|
2959
|
+
number_of_rooms: nil,
|
2960
|
+
passengers: nil,
|
2961
|
+
property_phone_number: nil,
|
2962
|
+
room_class: nil,
|
2963
|
+
room_nights: nil,
|
2964
|
+
total_room_tax_amount: nil,
|
2965
|
+
total_tax_amount: nil
|
2966
|
+
)
|
2967
|
+
@address = address
|
2968
|
+
@adults = adults
|
2969
|
+
@affiliate = affiliate
|
2970
|
+
@booking_number = booking_number
|
2971
|
+
@category = category
|
2972
|
+
@checkin_at = checkin_at
|
2973
|
+
@checkout_at = checkout_at
|
2974
|
+
@customer_service_phone_number = customer_service_phone_number
|
2975
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
2976
|
+
@delivery = delivery
|
2977
|
+
@extra_charges = extra_charges
|
2978
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
2979
|
+
@name = name
|
2980
|
+
@no_show = no_show
|
2981
|
+
@number_of_rooms = number_of_rooms
|
2982
|
+
@passengers = passengers
|
2983
|
+
@property_phone_number = property_phone_number
|
2984
|
+
@room_class = room_class
|
2985
|
+
@room_nights = room_nights
|
2986
|
+
@total_room_tax_amount = total_room_tax_amount
|
2987
|
+
@total_tax_amount = total_tax_amount
|
2988
|
+
end
|
2989
|
+
end
|
2990
|
+
|
2991
|
+
class Subscription < Stripe::RequestParams
|
2992
|
+
class Affiliate < Stripe::RequestParams
|
2993
|
+
# The name of the affiliate that originated the purchase.
|
2994
|
+
attr_accessor :name
|
2995
|
+
|
2996
|
+
def initialize(name: nil)
|
2997
|
+
@name = name
|
2998
|
+
end
|
2999
|
+
end
|
3000
|
+
|
3001
|
+
class BillingInterval < Stripe::RequestParams
|
3002
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
3003
|
+
attr_accessor :count
|
3004
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
3005
|
+
attr_accessor :interval
|
3006
|
+
|
3007
|
+
def initialize(count: nil, interval: nil)
|
3008
|
+
@count = count
|
3009
|
+
@interval = interval
|
3010
|
+
end
|
3011
|
+
end
|
3012
|
+
# Affiliate details for this purchase.
|
3013
|
+
attr_accessor :affiliate
|
3014
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
3015
|
+
attr_accessor :auto_renewal
|
3016
|
+
# Subscription billing details for this purchase.
|
3017
|
+
attr_accessor :billing_interval
|
3018
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
3019
|
+
attr_accessor :ends_at
|
3020
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
3021
|
+
attr_accessor :name
|
3022
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
3023
|
+
attr_accessor :starts_at
|
3024
|
+
|
3025
|
+
def initialize(
|
3026
|
+
affiliate: nil,
|
3027
|
+
auto_renewal: nil,
|
3028
|
+
billing_interval: nil,
|
3029
|
+
ends_at: nil,
|
3030
|
+
name: nil,
|
3031
|
+
starts_at: nil
|
3032
|
+
)
|
3033
|
+
@affiliate = affiliate
|
3034
|
+
@auto_renewal = auto_renewal
|
3035
|
+
@billing_interval = billing_interval
|
3036
|
+
@ends_at = ends_at
|
3037
|
+
@name = name
|
3038
|
+
@starts_at = starts_at
|
3039
|
+
end
|
3040
|
+
end
|
3041
|
+
# Car rental details for this PaymentIntent.
|
3042
|
+
attr_accessor :car_rental
|
3043
|
+
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
3044
|
+
attr_accessor :customer_reference
|
3045
|
+
# Event details for this PaymentIntent
|
3046
|
+
attr_accessor :event_details
|
3047
|
+
# Flight reservation details for this PaymentIntent
|
3048
|
+
attr_accessor :flight
|
3049
|
+
# Lodging reservation details for this PaymentIntent
|
3050
|
+
attr_accessor :lodging
|
3051
|
+
# A unique value assigned by the business to identify the transaction.
|
3052
|
+
attr_accessor :order_reference
|
3053
|
+
# Subscription details for this PaymentIntent
|
3054
|
+
attr_accessor :subscription
|
3055
|
+
|
3056
|
+
def initialize(
|
3057
|
+
car_rental: nil,
|
3058
|
+
customer_reference: nil,
|
3059
|
+
event_details: nil,
|
3060
|
+
flight: nil,
|
3061
|
+
lodging: nil,
|
3062
|
+
order_reference: nil,
|
3063
|
+
subscription: nil
|
3064
|
+
)
|
3065
|
+
@car_rental = car_rental
|
3066
|
+
@customer_reference = customer_reference
|
3067
|
+
@event_details = event_details
|
3068
|
+
@flight = flight
|
3069
|
+
@lodging = lodging
|
3070
|
+
@order_reference = order_reference
|
3071
|
+
@subscription = subscription
|
3072
|
+
end
|
3073
|
+
end
|
3074
|
+
|
1543
3075
|
class TransferData < Stripe::RequestParams
|
1544
3076
|
# The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
|
1545
3077
|
attr_accessor :amount
|
@@ -1556,6 +3088,8 @@ module Stripe
|
|
1556
3088
|
attr_accessor :application_fee_amount
|
1557
3089
|
# Specifies which fields in the response should be expanded.
|
1558
3090
|
attr_accessor :expand
|
3091
|
+
# Provides industry-specific information about the charge.
|
3092
|
+
attr_accessor :payment_details
|
1559
3093
|
# The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
|
1560
3094
|
attr_accessor :receipt_email
|
1561
3095
|
# For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
@@ -1574,6 +3108,7 @@ module Stripe
|
|
1574
3108
|
application_fee: nil,
|
1575
3109
|
application_fee_amount: nil,
|
1576
3110
|
expand: nil,
|
3111
|
+
payment_details: nil,
|
1577
3112
|
receipt_email: nil,
|
1578
3113
|
statement_descriptor: nil,
|
1579
3114
|
statement_descriptor_suffix: nil,
|
@@ -1584,6 +3119,7 @@ module Stripe
|
|
1584
3119
|
@application_fee = application_fee
|
1585
3120
|
@application_fee_amount = application_fee_amount
|
1586
3121
|
@expand = expand
|
3122
|
+
@payment_details = payment_details
|
1587
3123
|
@receipt_email = receipt_email
|
1588
3124
|
@statement_descriptor = statement_descriptor
|
1589
3125
|
@statement_descriptor_suffix = statement_descriptor_suffix
|