stripe 18.0.0 → 18.1.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +1050 -0
- data/lib/stripe/events/v1_account_updated_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
- data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
- data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
- data/lib/stripe/events/v1_customer_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v1_file_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payout_created_event.rb +44 -0
- data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
- data/lib/stripe/events/v1_person_created_event.rb +44 -0
- data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_person_updated_event.rb +44 -0
- data/lib/stripe/events/v1_plan_created_event.rb +44 -0
- data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v1_price_created_event.rb +44 -0
- data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_price_updated_event.rb +44 -0
- data/lib/stripe/events/v1_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_product_updated_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
- data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
- data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_quote_created_event.rb +44 -0
- data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
- data/lib/stripe/events/v1_refund_created_event.rb +44 -0
- data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
- data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_review_closed_event.rb +44 -0
- data/lib/stripe/events/v1_review_opened_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
- data/lib/stripe/events/v1_source_failed_event.rb +44 -0
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
- data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_topup_created_event.rb +44 -0
- data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +84 -0
- data/lib/stripe/params/account_create_params.rb +349 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_person_create_params.rb +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +311 -0
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +273 -4
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +36 -2
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +909 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +8 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/issuing/program_list_params.rb +24 -0
- data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3306 -238
- data/lib/stripe/params/payment_intent_create_params.rb +3160 -84
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3192 -85
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_list_params.rb +8 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +1013 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +1021 -4
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +254 -3
- data/lib/stripe/params/setup_intent_create_params.rb +260 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +261 -4
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +597 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +229 -7
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +225 -7
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/token_create_params.rb +64 -0
- data/lib/stripe/params/transfer_create_params.rb +8 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2943 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2975 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +254 -0
- data/lib/stripe/resources/account.rb +184 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +105 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +60 -2
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +183 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +20 -1
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +255 -1
- data/lib/stripe/resources/checkout/session.rb +246 -4
- data/lib/stripe/resources/confirmation_token.rb +173 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +38 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +420 -0
- data/lib/stripe/resources/discount.rb +4 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +168 -1
- data/lib/stripe/resources/invoice_item.rb +110 -2
- data/lib/stripe/resources/invoice_line_item.rb +147 -1
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +203 -1
- data/lib/stripe/resources/payment_intent.rb +793 -4
- data/lib/stripe/resources/payment_method.rb +195 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +203 -1
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +918 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1166 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +906 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +172 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +335 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +372 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +1 -2
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
- data/lib/stripe/resources/v2/core/account.rb +4967 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +4 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +140 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources.rb +393 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +6 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_method_service.rb +11 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +10 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +5 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +33 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/test_helper_service.rb +16 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +5 -1
- data/lib/stripe/services.rb +88 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +178406 -88690
- metadata +738 -3
|
@@ -3,6 +3,1650 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class ChargeCaptureParams < ::Stripe::RequestParams
|
|
6
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
7
|
+
class CarRental < ::Stripe::RequestParams
|
|
8
|
+
class Affiliate < ::Stripe::RequestParams
|
|
9
|
+
# The name of the affiliate that originated the purchase.
|
|
10
|
+
attr_accessor :name
|
|
11
|
+
|
|
12
|
+
def initialize(name: nil)
|
|
13
|
+
@name = name
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class Delivery < ::Stripe::RequestParams
|
|
18
|
+
class Recipient < ::Stripe::RequestParams
|
|
19
|
+
# The email of the recipient the ticket is delivered to.
|
|
20
|
+
attr_accessor :email
|
|
21
|
+
# The name of the recipient the ticket is delivered to.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
24
|
+
attr_accessor :phone
|
|
25
|
+
|
|
26
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
27
|
+
@email = email
|
|
28
|
+
@name = name
|
|
29
|
+
@phone = phone
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# The delivery method for the payment
|
|
33
|
+
attr_accessor :mode
|
|
34
|
+
# Details of the recipient.
|
|
35
|
+
attr_accessor :recipient
|
|
36
|
+
|
|
37
|
+
def initialize(mode: nil, recipient: nil)
|
|
38
|
+
@mode = mode
|
|
39
|
+
@recipient = recipient
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class Distance < ::Stripe::RequestParams
|
|
44
|
+
# Distance traveled.
|
|
45
|
+
attr_accessor :amount
|
|
46
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
47
|
+
attr_accessor :unit
|
|
48
|
+
|
|
49
|
+
def initialize(amount: nil, unit: nil)
|
|
50
|
+
@amount = amount
|
|
51
|
+
@unit = unit
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class Driver < ::Stripe::RequestParams
|
|
56
|
+
# Driver's identification number.
|
|
57
|
+
attr_accessor :driver_identification_number
|
|
58
|
+
# Driver's tax number.
|
|
59
|
+
attr_accessor :driver_tax_number
|
|
60
|
+
# Full name of the person or entity on the car reservation.
|
|
61
|
+
attr_accessor :name
|
|
62
|
+
|
|
63
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
64
|
+
@driver_identification_number = driver_identification_number
|
|
65
|
+
@driver_tax_number = driver_tax_number
|
|
66
|
+
@name = name
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
71
|
+
# City, district, suburb, town, or village.
|
|
72
|
+
attr_accessor :city
|
|
73
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
74
|
+
attr_accessor :country
|
|
75
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
76
|
+
attr_accessor :line1
|
|
77
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
78
|
+
attr_accessor :line2
|
|
79
|
+
# ZIP or postal code.
|
|
80
|
+
attr_accessor :postal_code
|
|
81
|
+
# State, county, province, or region.
|
|
82
|
+
attr_accessor :state
|
|
83
|
+
|
|
84
|
+
def initialize(
|
|
85
|
+
city: nil,
|
|
86
|
+
country: nil,
|
|
87
|
+
line1: nil,
|
|
88
|
+
line2: nil,
|
|
89
|
+
postal_code: nil,
|
|
90
|
+
state: nil
|
|
91
|
+
)
|
|
92
|
+
@city = city
|
|
93
|
+
@country = country
|
|
94
|
+
@line1 = line1
|
|
95
|
+
@line2 = line2
|
|
96
|
+
@postal_code = postal_code
|
|
97
|
+
@state = state
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
102
|
+
# City, district, suburb, town, or village.
|
|
103
|
+
attr_accessor :city
|
|
104
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
105
|
+
attr_accessor :country
|
|
106
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
107
|
+
attr_accessor :line1
|
|
108
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
109
|
+
attr_accessor :line2
|
|
110
|
+
# ZIP or postal code.
|
|
111
|
+
attr_accessor :postal_code
|
|
112
|
+
# State, county, province, or region.
|
|
113
|
+
attr_accessor :state
|
|
114
|
+
|
|
115
|
+
def initialize(
|
|
116
|
+
city: nil,
|
|
117
|
+
country: nil,
|
|
118
|
+
line1: nil,
|
|
119
|
+
line2: nil,
|
|
120
|
+
postal_code: nil,
|
|
121
|
+
state: nil
|
|
122
|
+
)
|
|
123
|
+
@city = city
|
|
124
|
+
@country = country
|
|
125
|
+
@line1 = line1
|
|
126
|
+
@line2 = line2
|
|
127
|
+
@postal_code = postal_code
|
|
128
|
+
@state = state
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
# Affiliate details for this purchase.
|
|
132
|
+
attr_accessor :affiliate
|
|
133
|
+
# The booking number associated with the car rental.
|
|
134
|
+
attr_accessor :booking_number
|
|
135
|
+
# Class code of the car.
|
|
136
|
+
attr_accessor :car_class_code
|
|
137
|
+
# Make of the car.
|
|
138
|
+
attr_accessor :car_make
|
|
139
|
+
# Model of the car.
|
|
140
|
+
attr_accessor :car_model
|
|
141
|
+
# The name of the rental car company.
|
|
142
|
+
attr_accessor :company
|
|
143
|
+
# The customer service phone number of the car rental company.
|
|
144
|
+
attr_accessor :customer_service_phone_number
|
|
145
|
+
# Number of days the car is being rented.
|
|
146
|
+
attr_accessor :days_rented
|
|
147
|
+
# Delivery details for this purchase.
|
|
148
|
+
attr_accessor :delivery
|
|
149
|
+
# The details of the distance traveled during the rental period.
|
|
150
|
+
attr_accessor :distance
|
|
151
|
+
# The details of the passengers in the travel reservation
|
|
152
|
+
attr_accessor :drivers
|
|
153
|
+
# List of additional charges being billed.
|
|
154
|
+
attr_accessor :extra_charges
|
|
155
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
156
|
+
attr_accessor :no_show
|
|
157
|
+
# Car pick-up address.
|
|
158
|
+
attr_accessor :pickup_address
|
|
159
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
160
|
+
attr_accessor :pickup_at
|
|
161
|
+
# Name of the pickup location.
|
|
162
|
+
attr_accessor :pickup_location_name
|
|
163
|
+
# Rental rate.
|
|
164
|
+
attr_accessor :rate_amount
|
|
165
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
166
|
+
attr_accessor :rate_interval
|
|
167
|
+
# The name of the person or entity renting the car.
|
|
168
|
+
attr_accessor :renter_name
|
|
169
|
+
# Car return address.
|
|
170
|
+
attr_accessor :return_address
|
|
171
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
172
|
+
attr_accessor :return_at
|
|
173
|
+
# Name of the return location.
|
|
174
|
+
attr_accessor :return_location_name
|
|
175
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
176
|
+
attr_accessor :tax_exempt
|
|
177
|
+
# The vehicle identification number.
|
|
178
|
+
attr_accessor :vehicle_identification_number
|
|
179
|
+
|
|
180
|
+
def initialize(
|
|
181
|
+
affiliate: nil,
|
|
182
|
+
booking_number: nil,
|
|
183
|
+
car_class_code: nil,
|
|
184
|
+
car_make: nil,
|
|
185
|
+
car_model: nil,
|
|
186
|
+
company: nil,
|
|
187
|
+
customer_service_phone_number: nil,
|
|
188
|
+
days_rented: nil,
|
|
189
|
+
delivery: nil,
|
|
190
|
+
distance: nil,
|
|
191
|
+
drivers: nil,
|
|
192
|
+
extra_charges: nil,
|
|
193
|
+
no_show: nil,
|
|
194
|
+
pickup_address: nil,
|
|
195
|
+
pickup_at: nil,
|
|
196
|
+
pickup_location_name: nil,
|
|
197
|
+
rate_amount: nil,
|
|
198
|
+
rate_interval: nil,
|
|
199
|
+
renter_name: nil,
|
|
200
|
+
return_address: nil,
|
|
201
|
+
return_at: nil,
|
|
202
|
+
return_location_name: nil,
|
|
203
|
+
tax_exempt: nil,
|
|
204
|
+
vehicle_identification_number: nil
|
|
205
|
+
)
|
|
206
|
+
@affiliate = affiliate
|
|
207
|
+
@booking_number = booking_number
|
|
208
|
+
@car_class_code = car_class_code
|
|
209
|
+
@car_make = car_make
|
|
210
|
+
@car_model = car_model
|
|
211
|
+
@company = company
|
|
212
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
213
|
+
@days_rented = days_rented
|
|
214
|
+
@delivery = delivery
|
|
215
|
+
@distance = distance
|
|
216
|
+
@drivers = drivers
|
|
217
|
+
@extra_charges = extra_charges
|
|
218
|
+
@no_show = no_show
|
|
219
|
+
@pickup_address = pickup_address
|
|
220
|
+
@pickup_at = pickup_at
|
|
221
|
+
@pickup_location_name = pickup_location_name
|
|
222
|
+
@rate_amount = rate_amount
|
|
223
|
+
@rate_interval = rate_interval
|
|
224
|
+
@renter_name = renter_name
|
|
225
|
+
@return_address = return_address
|
|
226
|
+
@return_at = return_at
|
|
227
|
+
@return_location_name = return_location_name
|
|
228
|
+
@tax_exempt = tax_exempt
|
|
229
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
234
|
+
class Affiliate < ::Stripe::RequestParams
|
|
235
|
+
# Affiliate partner code.
|
|
236
|
+
attr_accessor :code
|
|
237
|
+
# Name of affiliate partner.
|
|
238
|
+
attr_accessor :name
|
|
239
|
+
|
|
240
|
+
def initialize(code: nil, name: nil)
|
|
241
|
+
@code = code
|
|
242
|
+
@name = name
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
class Distance < ::Stripe::RequestParams
|
|
247
|
+
# Distance traveled.
|
|
248
|
+
attr_accessor :amount
|
|
249
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
250
|
+
attr_accessor :unit
|
|
251
|
+
|
|
252
|
+
def initialize(amount: nil, unit: nil)
|
|
253
|
+
@amount = amount
|
|
254
|
+
@unit = unit
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class Driver < ::Stripe::RequestParams
|
|
259
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
260
|
+
# Day of birth (1-31).
|
|
261
|
+
attr_accessor :day
|
|
262
|
+
# Month of birth (1-12).
|
|
263
|
+
attr_accessor :month
|
|
264
|
+
# Year of birth (must be greater than 1900).
|
|
265
|
+
attr_accessor :year
|
|
266
|
+
|
|
267
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
268
|
+
@day = day
|
|
269
|
+
@month = month
|
|
270
|
+
@year = year
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
# Driver's date of birth.
|
|
274
|
+
attr_accessor :date_of_birth
|
|
275
|
+
# Driver's identification number.
|
|
276
|
+
attr_accessor :driver_identification_number
|
|
277
|
+
# Driver's tax number.
|
|
278
|
+
attr_accessor :driver_tax_number
|
|
279
|
+
# Driver's full name.
|
|
280
|
+
attr_accessor :name
|
|
281
|
+
|
|
282
|
+
def initialize(
|
|
283
|
+
date_of_birth: nil,
|
|
284
|
+
driver_identification_number: nil,
|
|
285
|
+
driver_tax_number: nil,
|
|
286
|
+
name: nil
|
|
287
|
+
)
|
|
288
|
+
@date_of_birth = date_of_birth
|
|
289
|
+
@driver_identification_number = driver_identification_number
|
|
290
|
+
@driver_tax_number = driver_tax_number
|
|
291
|
+
@name = name
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class DropOff < ::Stripe::RequestParams
|
|
296
|
+
class Address < ::Stripe::RequestParams
|
|
297
|
+
# City, district, suburb, town, or village.
|
|
298
|
+
attr_accessor :city
|
|
299
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
300
|
+
attr_accessor :country
|
|
301
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
302
|
+
attr_accessor :line1
|
|
303
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
304
|
+
attr_accessor :line2
|
|
305
|
+
# ZIP or postal code.
|
|
306
|
+
attr_accessor :postal_code
|
|
307
|
+
# State, county, province, or region.
|
|
308
|
+
attr_accessor :state
|
|
309
|
+
|
|
310
|
+
def initialize(
|
|
311
|
+
city: nil,
|
|
312
|
+
country: nil,
|
|
313
|
+
line1: nil,
|
|
314
|
+
line2: nil,
|
|
315
|
+
postal_code: nil,
|
|
316
|
+
state: nil
|
|
317
|
+
)
|
|
318
|
+
@city = city
|
|
319
|
+
@country = country
|
|
320
|
+
@line1 = line1
|
|
321
|
+
@line2 = line2
|
|
322
|
+
@postal_code = postal_code
|
|
323
|
+
@state = state
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
# Address of the rental location.
|
|
327
|
+
attr_accessor :address
|
|
328
|
+
# Location name.
|
|
329
|
+
attr_accessor :location_name
|
|
330
|
+
# Timestamp for the location.
|
|
331
|
+
attr_accessor :time
|
|
332
|
+
|
|
333
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
334
|
+
@address = address
|
|
335
|
+
@location_name = location_name
|
|
336
|
+
@time = time
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
class Insurance < ::Stripe::RequestParams
|
|
341
|
+
# Amount of the insurance coverage in cents.
|
|
342
|
+
attr_accessor :amount
|
|
343
|
+
# Currency of the insurance amount.
|
|
344
|
+
attr_accessor :currency
|
|
345
|
+
# Name of the insurance company.
|
|
346
|
+
attr_accessor :insurance_company_name
|
|
347
|
+
# Type of insurance coverage.
|
|
348
|
+
attr_accessor :insurance_type
|
|
349
|
+
|
|
350
|
+
def initialize(
|
|
351
|
+
amount: nil,
|
|
352
|
+
currency: nil,
|
|
353
|
+
insurance_company_name: nil,
|
|
354
|
+
insurance_type: nil
|
|
355
|
+
)
|
|
356
|
+
@amount = amount
|
|
357
|
+
@currency = currency
|
|
358
|
+
@insurance_company_name = insurance_company_name
|
|
359
|
+
@insurance_type = insurance_type
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
class Pickup < ::Stripe::RequestParams
|
|
364
|
+
class Address < ::Stripe::RequestParams
|
|
365
|
+
# City, district, suburb, town, or village.
|
|
366
|
+
attr_accessor :city
|
|
367
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
368
|
+
attr_accessor :country
|
|
369
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
370
|
+
attr_accessor :line1
|
|
371
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
372
|
+
attr_accessor :line2
|
|
373
|
+
# ZIP or postal code.
|
|
374
|
+
attr_accessor :postal_code
|
|
375
|
+
# State, county, province, or region.
|
|
376
|
+
attr_accessor :state
|
|
377
|
+
|
|
378
|
+
def initialize(
|
|
379
|
+
city: nil,
|
|
380
|
+
country: nil,
|
|
381
|
+
line1: nil,
|
|
382
|
+
line2: nil,
|
|
383
|
+
postal_code: nil,
|
|
384
|
+
state: nil
|
|
385
|
+
)
|
|
386
|
+
@city = city
|
|
387
|
+
@country = country
|
|
388
|
+
@line1 = line1
|
|
389
|
+
@line2 = line2
|
|
390
|
+
@postal_code = postal_code
|
|
391
|
+
@state = state
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
# Address of the rental location.
|
|
395
|
+
attr_accessor :address
|
|
396
|
+
# Location name.
|
|
397
|
+
attr_accessor :location_name
|
|
398
|
+
# Timestamp for the location.
|
|
399
|
+
attr_accessor :time
|
|
400
|
+
|
|
401
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
402
|
+
@address = address
|
|
403
|
+
@location_name = location_name
|
|
404
|
+
@time = time
|
|
405
|
+
end
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
class Total < ::Stripe::RequestParams
|
|
409
|
+
class Discounts < ::Stripe::RequestParams
|
|
410
|
+
# Corporate client discount code.
|
|
411
|
+
attr_accessor :corporate_client_code
|
|
412
|
+
# Coupon code applied to the rental.
|
|
413
|
+
attr_accessor :coupon
|
|
414
|
+
# Maximum number of free miles or kilometers included.
|
|
415
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
416
|
+
|
|
417
|
+
def initialize(
|
|
418
|
+
corporate_client_code: nil,
|
|
419
|
+
coupon: nil,
|
|
420
|
+
maximum_free_miles_or_kilometers: nil
|
|
421
|
+
)
|
|
422
|
+
@corporate_client_code = corporate_client_code
|
|
423
|
+
@coupon = coupon
|
|
424
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
425
|
+
end
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
429
|
+
# Amount of the extra charge in cents.
|
|
430
|
+
attr_accessor :amount
|
|
431
|
+
# Type of extra charge.
|
|
432
|
+
attr_accessor :type
|
|
433
|
+
|
|
434
|
+
def initialize(amount: nil, type: nil)
|
|
435
|
+
@amount = amount
|
|
436
|
+
@type = type
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
class Tax < ::Stripe::RequestParams
|
|
441
|
+
class Tax < ::Stripe::RequestParams
|
|
442
|
+
# Tax amount.
|
|
443
|
+
attr_accessor :amount
|
|
444
|
+
# Tax rate applied.
|
|
445
|
+
attr_accessor :rate
|
|
446
|
+
# Type of tax applied.
|
|
447
|
+
attr_accessor :type
|
|
448
|
+
|
|
449
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
450
|
+
@amount = amount
|
|
451
|
+
@rate = rate
|
|
452
|
+
@type = type
|
|
453
|
+
end
|
|
454
|
+
end
|
|
455
|
+
# Indicates if the transaction is tax exempt.
|
|
456
|
+
attr_accessor :tax_exempt_indicator
|
|
457
|
+
# Array of tax details.
|
|
458
|
+
attr_accessor :taxes
|
|
459
|
+
|
|
460
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
461
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
462
|
+
@taxes = taxes
|
|
463
|
+
end
|
|
464
|
+
end
|
|
465
|
+
# Total amount in cents.
|
|
466
|
+
attr_accessor :amount
|
|
467
|
+
# Currency of the amount.
|
|
468
|
+
attr_accessor :currency
|
|
469
|
+
# Discount details for the rental.
|
|
470
|
+
attr_accessor :discounts
|
|
471
|
+
# Additional charges for the rental.
|
|
472
|
+
attr_accessor :extra_charges
|
|
473
|
+
# Rate per unit for the rental.
|
|
474
|
+
attr_accessor :rate_per_unit
|
|
475
|
+
# Unit of measurement for the rate.
|
|
476
|
+
attr_accessor :rate_unit
|
|
477
|
+
# Tax breakdown for the rental.
|
|
478
|
+
attr_accessor :tax
|
|
479
|
+
|
|
480
|
+
def initialize(
|
|
481
|
+
amount: nil,
|
|
482
|
+
currency: nil,
|
|
483
|
+
discounts: nil,
|
|
484
|
+
extra_charges: nil,
|
|
485
|
+
rate_per_unit: nil,
|
|
486
|
+
rate_unit: nil,
|
|
487
|
+
tax: nil
|
|
488
|
+
)
|
|
489
|
+
@amount = amount
|
|
490
|
+
@currency = currency
|
|
491
|
+
@discounts = discounts
|
|
492
|
+
@extra_charges = extra_charges
|
|
493
|
+
@rate_per_unit = rate_per_unit
|
|
494
|
+
@rate_unit = rate_unit
|
|
495
|
+
@tax = tax
|
|
496
|
+
end
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
class Vehicle < ::Stripe::RequestParams
|
|
500
|
+
# Make of the rental vehicle.
|
|
501
|
+
attr_accessor :make
|
|
502
|
+
# Model of the rental vehicle.
|
|
503
|
+
attr_accessor :model
|
|
504
|
+
# Odometer reading at the time of rental.
|
|
505
|
+
attr_accessor :odometer
|
|
506
|
+
# Type of the rental vehicle.
|
|
507
|
+
attr_accessor :type
|
|
508
|
+
# Class of the rental vehicle.
|
|
509
|
+
attr_accessor :vehicle_class
|
|
510
|
+
# Vehicle identification number (VIN).
|
|
511
|
+
attr_accessor :vehicle_identification_number
|
|
512
|
+
|
|
513
|
+
def initialize(
|
|
514
|
+
make: nil,
|
|
515
|
+
model: nil,
|
|
516
|
+
odometer: nil,
|
|
517
|
+
type: nil,
|
|
518
|
+
vehicle_class: nil,
|
|
519
|
+
vehicle_identification_number: nil
|
|
520
|
+
)
|
|
521
|
+
@make = make
|
|
522
|
+
@model = model
|
|
523
|
+
@odometer = odometer
|
|
524
|
+
@type = type
|
|
525
|
+
@vehicle_class = vehicle_class
|
|
526
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
530
|
+
attr_accessor :affiliate
|
|
531
|
+
# Booking confirmation number for the car rental.
|
|
532
|
+
attr_accessor :booking_number
|
|
533
|
+
# Name of the car rental company.
|
|
534
|
+
attr_accessor :carrier_name
|
|
535
|
+
# Customer service phone number for the car rental company.
|
|
536
|
+
attr_accessor :customer_service_phone_number
|
|
537
|
+
# Number of days the car is being rented.
|
|
538
|
+
attr_accessor :days_rented
|
|
539
|
+
# Distance details for the rental.
|
|
540
|
+
attr_accessor :distance
|
|
541
|
+
# List of drivers for the rental.
|
|
542
|
+
attr_accessor :drivers
|
|
543
|
+
# Drop-off location details.
|
|
544
|
+
attr_accessor :drop_off
|
|
545
|
+
# Insurance details for the rental.
|
|
546
|
+
attr_accessor :insurances
|
|
547
|
+
# Indicates if the customer was a no-show.
|
|
548
|
+
attr_accessor :no_show_indicator
|
|
549
|
+
# Pickup location details.
|
|
550
|
+
attr_accessor :pickup
|
|
551
|
+
# Name of the person renting the vehicle.
|
|
552
|
+
attr_accessor :renter_name
|
|
553
|
+
# Total cost breakdown for the rental.
|
|
554
|
+
attr_accessor :total
|
|
555
|
+
# Vehicle details for the rental.
|
|
556
|
+
attr_accessor :vehicle
|
|
557
|
+
|
|
558
|
+
def initialize(
|
|
559
|
+
affiliate: nil,
|
|
560
|
+
booking_number: nil,
|
|
561
|
+
carrier_name: nil,
|
|
562
|
+
customer_service_phone_number: nil,
|
|
563
|
+
days_rented: nil,
|
|
564
|
+
distance: nil,
|
|
565
|
+
drivers: nil,
|
|
566
|
+
drop_off: nil,
|
|
567
|
+
insurances: nil,
|
|
568
|
+
no_show_indicator: nil,
|
|
569
|
+
pickup: nil,
|
|
570
|
+
renter_name: nil,
|
|
571
|
+
total: nil,
|
|
572
|
+
vehicle: nil
|
|
573
|
+
)
|
|
574
|
+
@affiliate = affiliate
|
|
575
|
+
@booking_number = booking_number
|
|
576
|
+
@carrier_name = carrier_name
|
|
577
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
578
|
+
@days_rented = days_rented
|
|
579
|
+
@distance = distance
|
|
580
|
+
@drivers = drivers
|
|
581
|
+
@drop_off = drop_off
|
|
582
|
+
@insurances = insurances
|
|
583
|
+
@no_show_indicator = no_show_indicator
|
|
584
|
+
@pickup = pickup
|
|
585
|
+
@renter_name = renter_name
|
|
586
|
+
@total = total
|
|
587
|
+
@vehicle = vehicle
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
class EventDetails < ::Stripe::RequestParams
|
|
592
|
+
class Address < ::Stripe::RequestParams
|
|
593
|
+
# City, district, suburb, town, or village.
|
|
594
|
+
attr_accessor :city
|
|
595
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
596
|
+
attr_accessor :country
|
|
597
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
598
|
+
attr_accessor :line1
|
|
599
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
600
|
+
attr_accessor :line2
|
|
601
|
+
# ZIP or postal code.
|
|
602
|
+
attr_accessor :postal_code
|
|
603
|
+
# State, county, province, or region.
|
|
604
|
+
attr_accessor :state
|
|
605
|
+
|
|
606
|
+
def initialize(
|
|
607
|
+
city: nil,
|
|
608
|
+
country: nil,
|
|
609
|
+
line1: nil,
|
|
610
|
+
line2: nil,
|
|
611
|
+
postal_code: nil,
|
|
612
|
+
state: nil
|
|
613
|
+
)
|
|
614
|
+
@city = city
|
|
615
|
+
@country = country
|
|
616
|
+
@line1 = line1
|
|
617
|
+
@line2 = line2
|
|
618
|
+
@postal_code = postal_code
|
|
619
|
+
@state = state
|
|
620
|
+
end
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
class Affiliate < ::Stripe::RequestParams
|
|
624
|
+
# The name of the affiliate that originated the purchase.
|
|
625
|
+
attr_accessor :name
|
|
626
|
+
|
|
627
|
+
def initialize(name: nil)
|
|
628
|
+
@name = name
|
|
629
|
+
end
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
class Delivery < ::Stripe::RequestParams
|
|
633
|
+
class Recipient < ::Stripe::RequestParams
|
|
634
|
+
# The email of the recipient the ticket is delivered to.
|
|
635
|
+
attr_accessor :email
|
|
636
|
+
# The name of the recipient the ticket is delivered to.
|
|
637
|
+
attr_accessor :name
|
|
638
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
639
|
+
attr_accessor :phone
|
|
640
|
+
|
|
641
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
642
|
+
@email = email
|
|
643
|
+
@name = name
|
|
644
|
+
@phone = phone
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
# The delivery method for the payment
|
|
648
|
+
attr_accessor :mode
|
|
649
|
+
# Details of the recipient.
|
|
650
|
+
attr_accessor :recipient
|
|
651
|
+
|
|
652
|
+
def initialize(mode: nil, recipient: nil)
|
|
653
|
+
@mode = mode
|
|
654
|
+
@recipient = recipient
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
658
|
+
attr_accessor :access_controlled_venue
|
|
659
|
+
# The event location's address.
|
|
660
|
+
attr_accessor :address
|
|
661
|
+
# Affiliate details for this purchase.
|
|
662
|
+
attr_accessor :affiliate
|
|
663
|
+
# The name of the company
|
|
664
|
+
attr_accessor :company
|
|
665
|
+
# Delivery details for this purchase.
|
|
666
|
+
attr_accessor :delivery
|
|
667
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
668
|
+
attr_accessor :ends_at
|
|
669
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
670
|
+
attr_accessor :genre
|
|
671
|
+
# The name of the event.
|
|
672
|
+
attr_accessor :name
|
|
673
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
674
|
+
attr_accessor :starts_at
|
|
675
|
+
|
|
676
|
+
def initialize(
|
|
677
|
+
access_controlled_venue: nil,
|
|
678
|
+
address: nil,
|
|
679
|
+
affiliate: nil,
|
|
680
|
+
company: nil,
|
|
681
|
+
delivery: nil,
|
|
682
|
+
ends_at: nil,
|
|
683
|
+
genre: nil,
|
|
684
|
+
name: nil,
|
|
685
|
+
starts_at: nil
|
|
686
|
+
)
|
|
687
|
+
@access_controlled_venue = access_controlled_venue
|
|
688
|
+
@address = address
|
|
689
|
+
@affiliate = affiliate
|
|
690
|
+
@company = company
|
|
691
|
+
@delivery = delivery
|
|
692
|
+
@ends_at = ends_at
|
|
693
|
+
@genre = genre
|
|
694
|
+
@name = name
|
|
695
|
+
@starts_at = starts_at
|
|
696
|
+
end
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
class Flight < ::Stripe::RequestParams
|
|
700
|
+
class Affiliate < ::Stripe::RequestParams
|
|
701
|
+
# The name of the affiliate that originated the purchase.
|
|
702
|
+
attr_accessor :name
|
|
703
|
+
|
|
704
|
+
def initialize(name: nil)
|
|
705
|
+
@name = name
|
|
706
|
+
end
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
class Delivery < ::Stripe::RequestParams
|
|
710
|
+
class Recipient < ::Stripe::RequestParams
|
|
711
|
+
# The email of the recipient the ticket is delivered to.
|
|
712
|
+
attr_accessor :email
|
|
713
|
+
# The name of the recipient the ticket is delivered to.
|
|
714
|
+
attr_accessor :name
|
|
715
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
716
|
+
attr_accessor :phone
|
|
717
|
+
|
|
718
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
719
|
+
@email = email
|
|
720
|
+
@name = name
|
|
721
|
+
@phone = phone
|
|
722
|
+
end
|
|
723
|
+
end
|
|
724
|
+
# The delivery method for the payment
|
|
725
|
+
attr_accessor :mode
|
|
726
|
+
# Details of the recipient.
|
|
727
|
+
attr_accessor :recipient
|
|
728
|
+
|
|
729
|
+
def initialize(mode: nil, recipient: nil)
|
|
730
|
+
@mode = mode
|
|
731
|
+
@recipient = recipient
|
|
732
|
+
end
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
class Passenger < ::Stripe::RequestParams
|
|
736
|
+
# Full name of the person or entity on the flight reservation.
|
|
737
|
+
attr_accessor :name
|
|
738
|
+
|
|
739
|
+
def initialize(name: nil)
|
|
740
|
+
@name = name
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
class Segment < ::Stripe::RequestParams
|
|
745
|
+
# The flight segment amount.
|
|
746
|
+
attr_accessor :amount
|
|
747
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
748
|
+
attr_accessor :arrival_airport
|
|
749
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
750
|
+
attr_accessor :arrives_at
|
|
751
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
752
|
+
attr_accessor :carrier
|
|
753
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
754
|
+
attr_accessor :departs_at
|
|
755
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
756
|
+
attr_accessor :departure_airport
|
|
757
|
+
# The flight number associated with the segment
|
|
758
|
+
attr_accessor :flight_number
|
|
759
|
+
# The fare class for the segment.
|
|
760
|
+
attr_accessor :service_class
|
|
761
|
+
|
|
762
|
+
def initialize(
|
|
763
|
+
amount: nil,
|
|
764
|
+
arrival_airport: nil,
|
|
765
|
+
arrives_at: nil,
|
|
766
|
+
carrier: nil,
|
|
767
|
+
departs_at: nil,
|
|
768
|
+
departure_airport: nil,
|
|
769
|
+
flight_number: nil,
|
|
770
|
+
service_class: nil
|
|
771
|
+
)
|
|
772
|
+
@amount = amount
|
|
773
|
+
@arrival_airport = arrival_airport
|
|
774
|
+
@arrives_at = arrives_at
|
|
775
|
+
@carrier = carrier
|
|
776
|
+
@departs_at = departs_at
|
|
777
|
+
@departure_airport = departure_airport
|
|
778
|
+
@flight_number = flight_number
|
|
779
|
+
@service_class = service_class
|
|
780
|
+
end
|
|
781
|
+
end
|
|
782
|
+
# Affiliate details for this purchase.
|
|
783
|
+
attr_accessor :affiliate
|
|
784
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
785
|
+
attr_accessor :agency_number
|
|
786
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
787
|
+
attr_accessor :carrier
|
|
788
|
+
# Delivery details for this purchase.
|
|
789
|
+
attr_accessor :delivery
|
|
790
|
+
# The name of the person or entity on the reservation.
|
|
791
|
+
attr_accessor :passenger_name
|
|
792
|
+
# The details of the passengers in the travel reservation.
|
|
793
|
+
attr_accessor :passengers
|
|
794
|
+
# The individual flight segments associated with the trip.
|
|
795
|
+
attr_accessor :segments
|
|
796
|
+
# The ticket number associated with the travel reservation.
|
|
797
|
+
attr_accessor :ticket_number
|
|
798
|
+
|
|
799
|
+
def initialize(
|
|
800
|
+
affiliate: nil,
|
|
801
|
+
agency_number: nil,
|
|
802
|
+
carrier: nil,
|
|
803
|
+
delivery: nil,
|
|
804
|
+
passenger_name: nil,
|
|
805
|
+
passengers: nil,
|
|
806
|
+
segments: nil,
|
|
807
|
+
ticket_number: nil
|
|
808
|
+
)
|
|
809
|
+
@affiliate = affiliate
|
|
810
|
+
@agency_number = agency_number
|
|
811
|
+
@carrier = carrier
|
|
812
|
+
@delivery = delivery
|
|
813
|
+
@passenger_name = passenger_name
|
|
814
|
+
@passengers = passengers
|
|
815
|
+
@segments = segments
|
|
816
|
+
@ticket_number = ticket_number
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
821
|
+
class Affiliate < ::Stripe::RequestParams
|
|
822
|
+
# Affiliate partner code.
|
|
823
|
+
attr_accessor :code
|
|
824
|
+
# Name of affiliate partner.
|
|
825
|
+
attr_accessor :name
|
|
826
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
827
|
+
attr_accessor :travel_authorization_code
|
|
828
|
+
|
|
829
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
830
|
+
@code = code
|
|
831
|
+
@name = name
|
|
832
|
+
@travel_authorization_code = travel_authorization_code
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
class Insurance < ::Stripe::RequestParams
|
|
837
|
+
# Insurance cost.
|
|
838
|
+
attr_accessor :amount
|
|
839
|
+
# Insurance currency.
|
|
840
|
+
attr_accessor :currency
|
|
841
|
+
# Insurance company name.
|
|
842
|
+
attr_accessor :insurance_company_name
|
|
843
|
+
# Type of insurance.
|
|
844
|
+
attr_accessor :insurance_type
|
|
845
|
+
|
|
846
|
+
def initialize(
|
|
847
|
+
amount: nil,
|
|
848
|
+
currency: nil,
|
|
849
|
+
insurance_company_name: nil,
|
|
850
|
+
insurance_type: nil
|
|
851
|
+
)
|
|
852
|
+
@amount = amount
|
|
853
|
+
@currency = currency
|
|
854
|
+
@insurance_company_name = insurance_company_name
|
|
855
|
+
@insurance_type = insurance_type
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
class Passenger < ::Stripe::RequestParams
|
|
860
|
+
# Passenger's full name.
|
|
861
|
+
attr_accessor :name
|
|
862
|
+
|
|
863
|
+
def initialize(name: nil)
|
|
864
|
+
@name = name
|
|
865
|
+
end
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
class Segment < ::Stripe::RequestParams
|
|
869
|
+
class Arrival < ::Stripe::RequestParams
|
|
870
|
+
# Arrival airport IATA code.
|
|
871
|
+
attr_accessor :airport
|
|
872
|
+
# Arrival date/time.
|
|
873
|
+
attr_accessor :arrives_at
|
|
874
|
+
# Arrival city.
|
|
875
|
+
attr_accessor :city
|
|
876
|
+
# Arrival country.
|
|
877
|
+
attr_accessor :country
|
|
878
|
+
|
|
879
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
880
|
+
@airport = airport
|
|
881
|
+
@arrives_at = arrives_at
|
|
882
|
+
@city = city
|
|
883
|
+
@country = country
|
|
884
|
+
end
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
class Departure < ::Stripe::RequestParams
|
|
888
|
+
# Departure airport IATA code.
|
|
889
|
+
attr_accessor :airport
|
|
890
|
+
# Departure city.
|
|
891
|
+
attr_accessor :city
|
|
892
|
+
# Departure country.
|
|
893
|
+
attr_accessor :country
|
|
894
|
+
# Departure date/time.
|
|
895
|
+
attr_accessor :departs_at
|
|
896
|
+
|
|
897
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
898
|
+
@airport = airport
|
|
899
|
+
@city = city
|
|
900
|
+
@country = country
|
|
901
|
+
@departs_at = departs_at
|
|
902
|
+
end
|
|
903
|
+
end
|
|
904
|
+
# Segment fare amount.
|
|
905
|
+
attr_accessor :amount
|
|
906
|
+
# Arrival details.
|
|
907
|
+
attr_accessor :arrival
|
|
908
|
+
# Airline carrier code.
|
|
909
|
+
attr_accessor :carrier_code
|
|
910
|
+
# Carrier name.
|
|
911
|
+
attr_accessor :carrier_name
|
|
912
|
+
# Segment currency.
|
|
913
|
+
attr_accessor :currency
|
|
914
|
+
# Departure details.
|
|
915
|
+
attr_accessor :departure
|
|
916
|
+
# Exchange ticket number.
|
|
917
|
+
attr_accessor :exchange_ticket_number
|
|
918
|
+
# Fare basis code.
|
|
919
|
+
attr_accessor :fare_basis_code
|
|
920
|
+
# Additional fees.
|
|
921
|
+
attr_accessor :fees
|
|
922
|
+
# Flight number.
|
|
923
|
+
attr_accessor :flight_number
|
|
924
|
+
# Stopover indicator.
|
|
925
|
+
attr_accessor :is_stop_over_indicator
|
|
926
|
+
# Refundable ticket indicator.
|
|
927
|
+
attr_accessor :refundable
|
|
928
|
+
# Class of service.
|
|
929
|
+
attr_accessor :service_class
|
|
930
|
+
# Tax amount for segment.
|
|
931
|
+
attr_accessor :tax_amount
|
|
932
|
+
# Ticket number.
|
|
933
|
+
attr_accessor :ticket_number
|
|
934
|
+
|
|
935
|
+
def initialize(
|
|
936
|
+
amount: nil,
|
|
937
|
+
arrival: nil,
|
|
938
|
+
carrier_code: nil,
|
|
939
|
+
carrier_name: nil,
|
|
940
|
+
currency: nil,
|
|
941
|
+
departure: nil,
|
|
942
|
+
exchange_ticket_number: nil,
|
|
943
|
+
fare_basis_code: nil,
|
|
944
|
+
fees: nil,
|
|
945
|
+
flight_number: nil,
|
|
946
|
+
is_stop_over_indicator: nil,
|
|
947
|
+
refundable: nil,
|
|
948
|
+
service_class: nil,
|
|
949
|
+
tax_amount: nil,
|
|
950
|
+
ticket_number: nil
|
|
951
|
+
)
|
|
952
|
+
@amount = amount
|
|
953
|
+
@arrival = arrival
|
|
954
|
+
@carrier_code = carrier_code
|
|
955
|
+
@carrier_name = carrier_name
|
|
956
|
+
@currency = currency
|
|
957
|
+
@departure = departure
|
|
958
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
959
|
+
@fare_basis_code = fare_basis_code
|
|
960
|
+
@fees = fees
|
|
961
|
+
@flight_number = flight_number
|
|
962
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
963
|
+
@refundable = refundable
|
|
964
|
+
@service_class = service_class
|
|
965
|
+
@tax_amount = tax_amount
|
|
966
|
+
@ticket_number = ticket_number
|
|
967
|
+
end
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
class Total < ::Stripe::RequestParams
|
|
971
|
+
class Discounts < ::Stripe::RequestParams
|
|
972
|
+
# Corporate client discount code.
|
|
973
|
+
attr_accessor :corporate_client_code
|
|
974
|
+
|
|
975
|
+
def initialize(corporate_client_code: nil)
|
|
976
|
+
@corporate_client_code = corporate_client_code
|
|
977
|
+
end
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
981
|
+
# Amount of additional charges.
|
|
982
|
+
attr_accessor :amount
|
|
983
|
+
# Type of additional charges.
|
|
984
|
+
attr_accessor :type
|
|
985
|
+
|
|
986
|
+
def initialize(amount: nil, type: nil)
|
|
987
|
+
@amount = amount
|
|
988
|
+
@type = type
|
|
989
|
+
end
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
class Tax < ::Stripe::RequestParams
|
|
993
|
+
class Tax < ::Stripe::RequestParams
|
|
994
|
+
# Tax amount.
|
|
995
|
+
attr_accessor :amount
|
|
996
|
+
# Tax rate.
|
|
997
|
+
attr_accessor :rate
|
|
998
|
+
# Type of tax.
|
|
999
|
+
attr_accessor :type
|
|
1000
|
+
|
|
1001
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1002
|
+
@amount = amount
|
|
1003
|
+
@rate = rate
|
|
1004
|
+
@type = type
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
# Array of tax details.
|
|
1008
|
+
attr_accessor :taxes
|
|
1009
|
+
|
|
1010
|
+
def initialize(taxes: nil)
|
|
1011
|
+
@taxes = taxes
|
|
1012
|
+
end
|
|
1013
|
+
end
|
|
1014
|
+
# Total flight amount.
|
|
1015
|
+
attr_accessor :amount
|
|
1016
|
+
# Reason for credit.
|
|
1017
|
+
attr_accessor :credit_reason
|
|
1018
|
+
# Total currency.
|
|
1019
|
+
attr_accessor :currency
|
|
1020
|
+
# Discount details.
|
|
1021
|
+
attr_accessor :discounts
|
|
1022
|
+
# Additional charges.
|
|
1023
|
+
attr_accessor :extra_charges
|
|
1024
|
+
# Tax breakdown.
|
|
1025
|
+
attr_accessor :tax
|
|
1026
|
+
|
|
1027
|
+
def initialize(
|
|
1028
|
+
amount: nil,
|
|
1029
|
+
credit_reason: nil,
|
|
1030
|
+
currency: nil,
|
|
1031
|
+
discounts: nil,
|
|
1032
|
+
extra_charges: nil,
|
|
1033
|
+
tax: nil
|
|
1034
|
+
)
|
|
1035
|
+
@amount = amount
|
|
1036
|
+
@credit_reason = credit_reason
|
|
1037
|
+
@currency = currency
|
|
1038
|
+
@discounts = discounts
|
|
1039
|
+
@extra_charges = extra_charges
|
|
1040
|
+
@tax = tax
|
|
1041
|
+
end
|
|
1042
|
+
end
|
|
1043
|
+
# Affiliate details if applicable.
|
|
1044
|
+
attr_accessor :affiliate
|
|
1045
|
+
# Reservation reference.
|
|
1046
|
+
attr_accessor :booking_number
|
|
1047
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1048
|
+
attr_accessor :computerized_reservation_system
|
|
1049
|
+
# Ticket restrictions.
|
|
1050
|
+
attr_accessor :endorsements_and_restrictions
|
|
1051
|
+
# List of insurances.
|
|
1052
|
+
attr_accessor :insurances
|
|
1053
|
+
# List of passengers.
|
|
1054
|
+
attr_accessor :passengers
|
|
1055
|
+
# List of flight segments.
|
|
1056
|
+
attr_accessor :segments
|
|
1057
|
+
# Electronic ticket indicator.
|
|
1058
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1059
|
+
# Total cost breakdown.
|
|
1060
|
+
attr_accessor :total
|
|
1061
|
+
# Type of flight transaction.
|
|
1062
|
+
attr_accessor :transaction_type
|
|
1063
|
+
|
|
1064
|
+
def initialize(
|
|
1065
|
+
affiliate: nil,
|
|
1066
|
+
booking_number: nil,
|
|
1067
|
+
computerized_reservation_system: nil,
|
|
1068
|
+
endorsements_and_restrictions: nil,
|
|
1069
|
+
insurances: nil,
|
|
1070
|
+
passengers: nil,
|
|
1071
|
+
segments: nil,
|
|
1072
|
+
ticket_electronically_issued_indicator: nil,
|
|
1073
|
+
total: nil,
|
|
1074
|
+
transaction_type: nil
|
|
1075
|
+
)
|
|
1076
|
+
@affiliate = affiliate
|
|
1077
|
+
@booking_number = booking_number
|
|
1078
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1079
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1080
|
+
@insurances = insurances
|
|
1081
|
+
@passengers = passengers
|
|
1082
|
+
@segments = segments
|
|
1083
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1084
|
+
@total = total
|
|
1085
|
+
@transaction_type = transaction_type
|
|
1086
|
+
end
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
class Lodging < ::Stripe::RequestParams
|
|
1090
|
+
class Address < ::Stripe::RequestParams
|
|
1091
|
+
# City, district, suburb, town, or village.
|
|
1092
|
+
attr_accessor :city
|
|
1093
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1094
|
+
attr_accessor :country
|
|
1095
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1096
|
+
attr_accessor :line1
|
|
1097
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1098
|
+
attr_accessor :line2
|
|
1099
|
+
# ZIP or postal code.
|
|
1100
|
+
attr_accessor :postal_code
|
|
1101
|
+
# State, county, province, or region.
|
|
1102
|
+
attr_accessor :state
|
|
1103
|
+
|
|
1104
|
+
def initialize(
|
|
1105
|
+
city: nil,
|
|
1106
|
+
country: nil,
|
|
1107
|
+
line1: nil,
|
|
1108
|
+
line2: nil,
|
|
1109
|
+
postal_code: nil,
|
|
1110
|
+
state: nil
|
|
1111
|
+
)
|
|
1112
|
+
@city = city
|
|
1113
|
+
@country = country
|
|
1114
|
+
@line1 = line1
|
|
1115
|
+
@line2 = line2
|
|
1116
|
+
@postal_code = postal_code
|
|
1117
|
+
@state = state
|
|
1118
|
+
end
|
|
1119
|
+
end
|
|
1120
|
+
|
|
1121
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1122
|
+
# The name of the affiliate that originated the purchase.
|
|
1123
|
+
attr_accessor :name
|
|
1124
|
+
|
|
1125
|
+
def initialize(name: nil)
|
|
1126
|
+
@name = name
|
|
1127
|
+
end
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
class Delivery < ::Stripe::RequestParams
|
|
1131
|
+
class Recipient < ::Stripe::RequestParams
|
|
1132
|
+
# The email of the recipient the ticket is delivered to.
|
|
1133
|
+
attr_accessor :email
|
|
1134
|
+
# The name of the recipient the ticket is delivered to.
|
|
1135
|
+
attr_accessor :name
|
|
1136
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1137
|
+
attr_accessor :phone
|
|
1138
|
+
|
|
1139
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1140
|
+
@email = email
|
|
1141
|
+
@name = name
|
|
1142
|
+
@phone = phone
|
|
1143
|
+
end
|
|
1144
|
+
end
|
|
1145
|
+
# The delivery method for the payment
|
|
1146
|
+
attr_accessor :mode
|
|
1147
|
+
# Details of the recipient.
|
|
1148
|
+
attr_accessor :recipient
|
|
1149
|
+
|
|
1150
|
+
def initialize(mode: nil, recipient: nil)
|
|
1151
|
+
@mode = mode
|
|
1152
|
+
@recipient = recipient
|
|
1153
|
+
end
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
class Passenger < ::Stripe::RequestParams
|
|
1157
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1158
|
+
attr_accessor :name
|
|
1159
|
+
|
|
1160
|
+
def initialize(name: nil)
|
|
1161
|
+
@name = name
|
|
1162
|
+
end
|
|
1163
|
+
end
|
|
1164
|
+
# The lodging location's address.
|
|
1165
|
+
attr_accessor :address
|
|
1166
|
+
# The number of adults on the booking
|
|
1167
|
+
attr_accessor :adults
|
|
1168
|
+
# Affiliate details for this purchase.
|
|
1169
|
+
attr_accessor :affiliate
|
|
1170
|
+
# The booking number associated with the lodging reservation.
|
|
1171
|
+
attr_accessor :booking_number
|
|
1172
|
+
# The lodging category
|
|
1173
|
+
attr_accessor :category
|
|
1174
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1175
|
+
attr_accessor :checkin_at
|
|
1176
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1177
|
+
attr_accessor :checkout_at
|
|
1178
|
+
# The customer service phone number of the lodging company.
|
|
1179
|
+
attr_accessor :customer_service_phone_number
|
|
1180
|
+
# The daily lodging room rate.
|
|
1181
|
+
attr_accessor :daily_room_rate_amount
|
|
1182
|
+
# Delivery details for this purchase.
|
|
1183
|
+
attr_accessor :delivery
|
|
1184
|
+
# List of additional charges being billed.
|
|
1185
|
+
attr_accessor :extra_charges
|
|
1186
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1187
|
+
attr_accessor :fire_safety_act_compliance
|
|
1188
|
+
# The name of the lodging location.
|
|
1189
|
+
attr_accessor :name
|
|
1190
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1191
|
+
attr_accessor :no_show
|
|
1192
|
+
# The number of rooms on the booking
|
|
1193
|
+
attr_accessor :number_of_rooms
|
|
1194
|
+
# The details of the passengers in the travel reservation
|
|
1195
|
+
attr_accessor :passengers
|
|
1196
|
+
# The phone number of the lodging location.
|
|
1197
|
+
attr_accessor :property_phone_number
|
|
1198
|
+
# The room class for this purchase.
|
|
1199
|
+
attr_accessor :room_class
|
|
1200
|
+
# The number of room nights
|
|
1201
|
+
attr_accessor :room_nights
|
|
1202
|
+
# The total tax amount associating with the room reservation.
|
|
1203
|
+
attr_accessor :total_room_tax_amount
|
|
1204
|
+
# The total tax amount
|
|
1205
|
+
attr_accessor :total_tax_amount
|
|
1206
|
+
|
|
1207
|
+
def initialize(
|
|
1208
|
+
address: nil,
|
|
1209
|
+
adults: nil,
|
|
1210
|
+
affiliate: nil,
|
|
1211
|
+
booking_number: nil,
|
|
1212
|
+
category: nil,
|
|
1213
|
+
checkin_at: nil,
|
|
1214
|
+
checkout_at: nil,
|
|
1215
|
+
customer_service_phone_number: nil,
|
|
1216
|
+
daily_room_rate_amount: nil,
|
|
1217
|
+
delivery: nil,
|
|
1218
|
+
extra_charges: nil,
|
|
1219
|
+
fire_safety_act_compliance: nil,
|
|
1220
|
+
name: nil,
|
|
1221
|
+
no_show: nil,
|
|
1222
|
+
number_of_rooms: nil,
|
|
1223
|
+
passengers: nil,
|
|
1224
|
+
property_phone_number: nil,
|
|
1225
|
+
room_class: nil,
|
|
1226
|
+
room_nights: nil,
|
|
1227
|
+
total_room_tax_amount: nil,
|
|
1228
|
+
total_tax_amount: nil
|
|
1229
|
+
)
|
|
1230
|
+
@address = address
|
|
1231
|
+
@adults = adults
|
|
1232
|
+
@affiliate = affiliate
|
|
1233
|
+
@booking_number = booking_number
|
|
1234
|
+
@category = category
|
|
1235
|
+
@checkin_at = checkin_at
|
|
1236
|
+
@checkout_at = checkout_at
|
|
1237
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1238
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1239
|
+
@delivery = delivery
|
|
1240
|
+
@extra_charges = extra_charges
|
|
1241
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1242
|
+
@name = name
|
|
1243
|
+
@no_show = no_show
|
|
1244
|
+
@number_of_rooms = number_of_rooms
|
|
1245
|
+
@passengers = passengers
|
|
1246
|
+
@property_phone_number = property_phone_number
|
|
1247
|
+
@room_class = room_class
|
|
1248
|
+
@room_nights = room_nights
|
|
1249
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1250
|
+
@total_tax_amount = total_tax_amount
|
|
1251
|
+
end
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1255
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1256
|
+
# Type of accommodation.
|
|
1257
|
+
attr_accessor :accommodation_type
|
|
1258
|
+
# Bed type.
|
|
1259
|
+
attr_accessor :bed_type
|
|
1260
|
+
# Daily accommodation rate in cents.
|
|
1261
|
+
attr_accessor :daily_rate_amount
|
|
1262
|
+
# Number of nights.
|
|
1263
|
+
attr_accessor :nights
|
|
1264
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1265
|
+
attr_accessor :number_of_rooms
|
|
1266
|
+
# Rate type.
|
|
1267
|
+
attr_accessor :rate_type
|
|
1268
|
+
# Whether smoking is allowed.
|
|
1269
|
+
attr_accessor :smoking_indicator
|
|
1270
|
+
|
|
1271
|
+
def initialize(
|
|
1272
|
+
accommodation_type: nil,
|
|
1273
|
+
bed_type: nil,
|
|
1274
|
+
daily_rate_amount: nil,
|
|
1275
|
+
nights: nil,
|
|
1276
|
+
number_of_rooms: nil,
|
|
1277
|
+
rate_type: nil,
|
|
1278
|
+
smoking_indicator: nil
|
|
1279
|
+
)
|
|
1280
|
+
@accommodation_type = accommodation_type
|
|
1281
|
+
@bed_type = bed_type
|
|
1282
|
+
@daily_rate_amount = daily_rate_amount
|
|
1283
|
+
@nights = nights
|
|
1284
|
+
@number_of_rooms = number_of_rooms
|
|
1285
|
+
@rate_type = rate_type
|
|
1286
|
+
@smoking_indicator = smoking_indicator
|
|
1287
|
+
end
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1291
|
+
# Affiliate partner code.
|
|
1292
|
+
attr_accessor :code
|
|
1293
|
+
# Affiliate partner name.
|
|
1294
|
+
attr_accessor :name
|
|
1295
|
+
|
|
1296
|
+
def initialize(code: nil, name: nil)
|
|
1297
|
+
@code = code
|
|
1298
|
+
@name = name
|
|
1299
|
+
end
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
class Guest < ::Stripe::RequestParams
|
|
1303
|
+
# Guest's full name.
|
|
1304
|
+
attr_accessor :name
|
|
1305
|
+
|
|
1306
|
+
def initialize(name: nil)
|
|
1307
|
+
@name = name
|
|
1308
|
+
end
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
class Host < ::Stripe::RequestParams
|
|
1312
|
+
class Address < ::Stripe::RequestParams
|
|
1313
|
+
# City, district, suburb, town, or village.
|
|
1314
|
+
attr_accessor :city
|
|
1315
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1316
|
+
attr_accessor :country
|
|
1317
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1318
|
+
attr_accessor :line1
|
|
1319
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1320
|
+
attr_accessor :line2
|
|
1321
|
+
# ZIP or postal code.
|
|
1322
|
+
attr_accessor :postal_code
|
|
1323
|
+
# State, county, province, or region.
|
|
1324
|
+
attr_accessor :state
|
|
1325
|
+
|
|
1326
|
+
def initialize(
|
|
1327
|
+
city: nil,
|
|
1328
|
+
country: nil,
|
|
1329
|
+
line1: nil,
|
|
1330
|
+
line2: nil,
|
|
1331
|
+
postal_code: nil,
|
|
1332
|
+
state: nil
|
|
1333
|
+
)
|
|
1334
|
+
@city = city
|
|
1335
|
+
@country = country
|
|
1336
|
+
@line1 = line1
|
|
1337
|
+
@line2 = line2
|
|
1338
|
+
@postal_code = postal_code
|
|
1339
|
+
@state = state
|
|
1340
|
+
end
|
|
1341
|
+
end
|
|
1342
|
+
# Address of the host.
|
|
1343
|
+
attr_accessor :address
|
|
1344
|
+
# Host's country of domicile.
|
|
1345
|
+
attr_accessor :country_of_domicile
|
|
1346
|
+
# Reference number for the host.
|
|
1347
|
+
attr_accessor :host_reference
|
|
1348
|
+
# Type of host.
|
|
1349
|
+
attr_accessor :host_type
|
|
1350
|
+
# Name of the lodging property or host.
|
|
1351
|
+
attr_accessor :name
|
|
1352
|
+
# Total number of reservations for the host.
|
|
1353
|
+
attr_accessor :number_of_reservations
|
|
1354
|
+
# Property phone number.
|
|
1355
|
+
attr_accessor :property_phone_number
|
|
1356
|
+
# Host's registration date.
|
|
1357
|
+
attr_accessor :registered_at
|
|
1358
|
+
|
|
1359
|
+
def initialize(
|
|
1360
|
+
address: nil,
|
|
1361
|
+
country_of_domicile: nil,
|
|
1362
|
+
host_reference: nil,
|
|
1363
|
+
host_type: nil,
|
|
1364
|
+
name: nil,
|
|
1365
|
+
number_of_reservations: nil,
|
|
1366
|
+
property_phone_number: nil,
|
|
1367
|
+
registered_at: nil
|
|
1368
|
+
)
|
|
1369
|
+
@address = address
|
|
1370
|
+
@country_of_domicile = country_of_domicile
|
|
1371
|
+
@host_reference = host_reference
|
|
1372
|
+
@host_type = host_type
|
|
1373
|
+
@name = name
|
|
1374
|
+
@number_of_reservations = number_of_reservations
|
|
1375
|
+
@property_phone_number = property_phone_number
|
|
1376
|
+
@registered_at = registered_at
|
|
1377
|
+
end
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
class Insurance < ::Stripe::RequestParams
|
|
1381
|
+
# Price of the insurance coverage in cents.
|
|
1382
|
+
attr_accessor :amount
|
|
1383
|
+
# Currency of the insurance amount.
|
|
1384
|
+
attr_accessor :currency
|
|
1385
|
+
# Name of the insurance company.
|
|
1386
|
+
attr_accessor :insurance_company_name
|
|
1387
|
+
# Type of insurance coverage.
|
|
1388
|
+
attr_accessor :insurance_type
|
|
1389
|
+
|
|
1390
|
+
def initialize(
|
|
1391
|
+
amount: nil,
|
|
1392
|
+
currency: nil,
|
|
1393
|
+
insurance_company_name: nil,
|
|
1394
|
+
insurance_type: nil
|
|
1395
|
+
)
|
|
1396
|
+
@amount = amount
|
|
1397
|
+
@currency = currency
|
|
1398
|
+
@insurance_company_name = insurance_company_name
|
|
1399
|
+
@insurance_type = insurance_type
|
|
1400
|
+
end
|
|
1401
|
+
end
|
|
1402
|
+
|
|
1403
|
+
class Total < ::Stripe::RequestParams
|
|
1404
|
+
class Discounts < ::Stripe::RequestParams
|
|
1405
|
+
# Corporate client discount code.
|
|
1406
|
+
attr_accessor :corporate_client_code
|
|
1407
|
+
# Coupon code.
|
|
1408
|
+
attr_accessor :coupon
|
|
1409
|
+
|
|
1410
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1411
|
+
@corporate_client_code = corporate_client_code
|
|
1412
|
+
@coupon = coupon
|
|
1413
|
+
end
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1417
|
+
# Amount of the extra charge in cents.
|
|
1418
|
+
attr_accessor :amount
|
|
1419
|
+
# Type of extra charge.
|
|
1420
|
+
attr_accessor :type
|
|
1421
|
+
|
|
1422
|
+
def initialize(amount: nil, type: nil)
|
|
1423
|
+
@amount = amount
|
|
1424
|
+
@type = type
|
|
1425
|
+
end
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
class Tax < ::Stripe::RequestParams
|
|
1429
|
+
class Tax < ::Stripe::RequestParams
|
|
1430
|
+
# Tax amount in cents.
|
|
1431
|
+
attr_accessor :amount
|
|
1432
|
+
# Tax rate.
|
|
1433
|
+
attr_accessor :rate
|
|
1434
|
+
# Type of tax applied.
|
|
1435
|
+
attr_accessor :type
|
|
1436
|
+
|
|
1437
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1438
|
+
@amount = amount
|
|
1439
|
+
@rate = rate
|
|
1440
|
+
@type = type
|
|
1441
|
+
end
|
|
1442
|
+
end
|
|
1443
|
+
# Indicates whether the transaction is tax exempt.
|
|
1444
|
+
attr_accessor :tax_exempt_indicator
|
|
1445
|
+
# Tax details.
|
|
1446
|
+
attr_accessor :taxes
|
|
1447
|
+
|
|
1448
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1449
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1450
|
+
@taxes = taxes
|
|
1451
|
+
end
|
|
1452
|
+
end
|
|
1453
|
+
# Total price of the lodging reservation in cents.
|
|
1454
|
+
attr_accessor :amount
|
|
1455
|
+
# Cash advances in cents.
|
|
1456
|
+
attr_accessor :cash_advances
|
|
1457
|
+
# Currency of the total amount.
|
|
1458
|
+
attr_accessor :currency
|
|
1459
|
+
# Discount details for the lodging.
|
|
1460
|
+
attr_accessor :discounts
|
|
1461
|
+
# Additional charges for the lodging.
|
|
1462
|
+
attr_accessor :extra_charges
|
|
1463
|
+
# Prepaid amount in cents.
|
|
1464
|
+
attr_accessor :prepaid_amount
|
|
1465
|
+
# Tax breakdown for the lodging reservation.
|
|
1466
|
+
attr_accessor :tax
|
|
1467
|
+
|
|
1468
|
+
def initialize(
|
|
1469
|
+
amount: nil,
|
|
1470
|
+
cash_advances: nil,
|
|
1471
|
+
currency: nil,
|
|
1472
|
+
discounts: nil,
|
|
1473
|
+
extra_charges: nil,
|
|
1474
|
+
prepaid_amount: nil,
|
|
1475
|
+
tax: nil
|
|
1476
|
+
)
|
|
1477
|
+
@amount = amount
|
|
1478
|
+
@cash_advances = cash_advances
|
|
1479
|
+
@currency = currency
|
|
1480
|
+
@discounts = discounts
|
|
1481
|
+
@extra_charges = extra_charges
|
|
1482
|
+
@prepaid_amount = prepaid_amount
|
|
1483
|
+
@tax = tax
|
|
1484
|
+
end
|
|
1485
|
+
end
|
|
1486
|
+
# Accommodation details for the lodging.
|
|
1487
|
+
attr_accessor :accommodation
|
|
1488
|
+
# Affiliate details if applicable.
|
|
1489
|
+
attr_accessor :affiliate
|
|
1490
|
+
# Booking confirmation number for the lodging.
|
|
1491
|
+
attr_accessor :booking_number
|
|
1492
|
+
# Check-in date.
|
|
1493
|
+
attr_accessor :checkin_at
|
|
1494
|
+
# Check-out date.
|
|
1495
|
+
attr_accessor :checkout_at
|
|
1496
|
+
# Customer service phone number for the lodging company.
|
|
1497
|
+
attr_accessor :customer_service_phone_number
|
|
1498
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1499
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1500
|
+
# List of guests for the lodging.
|
|
1501
|
+
attr_accessor :guests
|
|
1502
|
+
# Host details for the lodging.
|
|
1503
|
+
attr_accessor :host
|
|
1504
|
+
# List of insurances for the lodging.
|
|
1505
|
+
attr_accessor :insurances
|
|
1506
|
+
# Whether the renter is a no-show.
|
|
1507
|
+
attr_accessor :no_show_indicator
|
|
1508
|
+
# Renter ID number for the lodging.
|
|
1509
|
+
attr_accessor :renter_id_number
|
|
1510
|
+
# Renter name for the lodging.
|
|
1511
|
+
attr_accessor :renter_name
|
|
1512
|
+
# Total details for the lodging.
|
|
1513
|
+
attr_accessor :total
|
|
1514
|
+
|
|
1515
|
+
def initialize(
|
|
1516
|
+
accommodation: nil,
|
|
1517
|
+
affiliate: nil,
|
|
1518
|
+
booking_number: nil,
|
|
1519
|
+
checkin_at: nil,
|
|
1520
|
+
checkout_at: nil,
|
|
1521
|
+
customer_service_phone_number: nil,
|
|
1522
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1523
|
+
guests: nil,
|
|
1524
|
+
host: nil,
|
|
1525
|
+
insurances: nil,
|
|
1526
|
+
no_show_indicator: nil,
|
|
1527
|
+
renter_id_number: nil,
|
|
1528
|
+
renter_name: nil,
|
|
1529
|
+
total: nil
|
|
1530
|
+
)
|
|
1531
|
+
@accommodation = accommodation
|
|
1532
|
+
@affiliate = affiliate
|
|
1533
|
+
@booking_number = booking_number
|
|
1534
|
+
@checkin_at = checkin_at
|
|
1535
|
+
@checkout_at = checkout_at
|
|
1536
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1537
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1538
|
+
@guests = guests
|
|
1539
|
+
@host = host
|
|
1540
|
+
@insurances = insurances
|
|
1541
|
+
@no_show_indicator = no_show_indicator
|
|
1542
|
+
@renter_id_number = renter_id_number
|
|
1543
|
+
@renter_name = renter_name
|
|
1544
|
+
@total = total
|
|
1545
|
+
end
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1548
|
+
class Subscription < ::Stripe::RequestParams
|
|
1549
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1550
|
+
# The name of the affiliate that originated the purchase.
|
|
1551
|
+
attr_accessor :name
|
|
1552
|
+
|
|
1553
|
+
def initialize(name: nil)
|
|
1554
|
+
@name = name
|
|
1555
|
+
end
|
|
1556
|
+
end
|
|
1557
|
+
|
|
1558
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1559
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1560
|
+
attr_accessor :count
|
|
1561
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1562
|
+
attr_accessor :interval
|
|
1563
|
+
|
|
1564
|
+
def initialize(count: nil, interval: nil)
|
|
1565
|
+
@count = count
|
|
1566
|
+
@interval = interval
|
|
1567
|
+
end
|
|
1568
|
+
end
|
|
1569
|
+
# Affiliate details for this purchase.
|
|
1570
|
+
attr_accessor :affiliate
|
|
1571
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1572
|
+
attr_accessor :auto_renewal
|
|
1573
|
+
# Subscription billing details for this purchase.
|
|
1574
|
+
attr_accessor :billing_interval
|
|
1575
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1576
|
+
attr_accessor :ends_at
|
|
1577
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1578
|
+
attr_accessor :name
|
|
1579
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1580
|
+
attr_accessor :starts_at
|
|
1581
|
+
|
|
1582
|
+
def initialize(
|
|
1583
|
+
affiliate: nil,
|
|
1584
|
+
auto_renewal: nil,
|
|
1585
|
+
billing_interval: nil,
|
|
1586
|
+
ends_at: nil,
|
|
1587
|
+
name: nil,
|
|
1588
|
+
starts_at: nil
|
|
1589
|
+
)
|
|
1590
|
+
@affiliate = affiliate
|
|
1591
|
+
@auto_renewal = auto_renewal
|
|
1592
|
+
@billing_interval = billing_interval
|
|
1593
|
+
@ends_at = ends_at
|
|
1594
|
+
@name = name
|
|
1595
|
+
@starts_at = starts_at
|
|
1596
|
+
end
|
|
1597
|
+
end
|
|
1598
|
+
# Car rental details for this PaymentIntent.
|
|
1599
|
+
attr_accessor :car_rental
|
|
1600
|
+
# Car rental data for this PaymentIntent.
|
|
1601
|
+
attr_accessor :car_rental_data
|
|
1602
|
+
# A unique value to identify the customer. This field is available only for card payments.
|
|
1603
|
+
#
|
|
1604
|
+
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1605
|
+
attr_accessor :customer_reference
|
|
1606
|
+
# Event details for this PaymentIntent
|
|
1607
|
+
attr_accessor :event_details
|
|
1608
|
+
# Flight reservation details for this PaymentIntent
|
|
1609
|
+
attr_accessor :flight
|
|
1610
|
+
# Flight data for this PaymentIntent.
|
|
1611
|
+
attr_accessor :flight_data
|
|
1612
|
+
# Lodging reservation details for this PaymentIntent
|
|
1613
|
+
attr_accessor :lodging
|
|
1614
|
+
# Lodging data for this PaymentIntent.
|
|
1615
|
+
attr_accessor :lodging_data
|
|
1616
|
+
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1617
|
+
#
|
|
1618
|
+
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
1619
|
+
#
|
|
1620
|
+
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
1621
|
+
attr_accessor :order_reference
|
|
1622
|
+
# Subscription details for this PaymentIntent
|
|
1623
|
+
attr_accessor :subscription
|
|
1624
|
+
|
|
1625
|
+
def initialize(
|
|
1626
|
+
car_rental: nil,
|
|
1627
|
+
car_rental_data: nil,
|
|
1628
|
+
customer_reference: nil,
|
|
1629
|
+
event_details: nil,
|
|
1630
|
+
flight: nil,
|
|
1631
|
+
flight_data: nil,
|
|
1632
|
+
lodging: nil,
|
|
1633
|
+
lodging_data: nil,
|
|
1634
|
+
order_reference: nil,
|
|
1635
|
+
subscription: nil
|
|
1636
|
+
)
|
|
1637
|
+
@car_rental = car_rental
|
|
1638
|
+
@car_rental_data = car_rental_data
|
|
1639
|
+
@customer_reference = customer_reference
|
|
1640
|
+
@event_details = event_details
|
|
1641
|
+
@flight = flight
|
|
1642
|
+
@flight_data = flight_data
|
|
1643
|
+
@lodging = lodging
|
|
1644
|
+
@lodging_data = lodging_data
|
|
1645
|
+
@order_reference = order_reference
|
|
1646
|
+
@subscription = subscription
|
|
1647
|
+
end
|
|
1648
|
+
end
|
|
1649
|
+
|
|
6
1650
|
class TransferData < ::Stripe::RequestParams
|
|
7
1651
|
# The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
|
|
8
1652
|
attr_accessor :amount
|
|
@@ -19,6 +1663,8 @@ module Stripe
|
|
|
19
1663
|
attr_accessor :application_fee_amount
|
|
20
1664
|
# Specifies which fields in the response should be expanded.
|
|
21
1665
|
attr_accessor :expand
|
|
1666
|
+
# Provides industry-specific information about the charge.
|
|
1667
|
+
attr_accessor :payment_details
|
|
22
1668
|
# 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.
|
|
23
1669
|
attr_accessor :receipt_email
|
|
24
1670
|
# 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).
|
|
@@ -37,6 +1683,7 @@ module Stripe
|
|
|
37
1683
|
application_fee: nil,
|
|
38
1684
|
application_fee_amount: nil,
|
|
39
1685
|
expand: nil,
|
|
1686
|
+
payment_details: nil,
|
|
40
1687
|
receipt_email: nil,
|
|
41
1688
|
statement_descriptor: nil,
|
|
42
1689
|
statement_descriptor_suffix: nil,
|
|
@@ -47,6 +1694,7 @@ module Stripe
|
|
|
47
1694
|
@application_fee = application_fee
|
|
48
1695
|
@application_fee_amount = application_fee_amount
|
|
49
1696
|
@expand = expand
|
|
1697
|
+
@payment_details = payment_details
|
|
50
1698
|
@receipt_email = receipt_email
|
|
51
1699
|
@statement_descriptor = statement_descriptor
|
|
52
1700
|
@statement_descriptor_suffix = statement_descriptor_suffix
|