stripe 18.1.0.pre.alpha.1 → 18.1.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/event_types.rb +8 -565
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +15 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +2 -0
- data/lib/stripe/events/{v1_sigma_scheduled_query_run_created_event.rb → v2_payments_off_session_payment_attempt_failed_event.rb} +7 -7
- data/lib/stripe/events/{v1_radar_early_fraud_warning_created_event.rb → v2_payments_off_session_payment_attempt_started_event.rb} +9 -7
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +2 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +2 -2
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +42 -6
- data/lib/stripe/params/quote_create_params.rb +15 -3
- data/lib/stripe/params/quote_update_params.rb +15 -3
- data/lib/stripe/params/subscription_create_params.rb +17 -1
- data/lib/stripe/params/subscription_item_create_params.rb +17 -1
- data/lib/stripe/params/subscription_item_update_params.rb +17 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +15 -3
- data/lib/stripe/params/subscription_schedule_create_params.rb +10 -2
- data/lib/stripe/params/subscription_schedule_update_params.rb +10 -2
- data/lib/stripe/params/subscription_update_params.rb +17 -1
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +24 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +118 -3
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1259 -0
- data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +119 -4
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
- data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +12 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +5 -9
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +13 -89
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
- data/lib/stripe/params.rb +7 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +15 -1
- data/lib/stripe/resources/payment_method.rb +2 -2
- data/lib/stripe/resources/quote.rb +8 -118
- data/lib/stripe/resources/quote_line.rb +6 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +7 -87
- data/lib/stripe/resources/subscription.rb +3 -87
- data/lib/stripe/resources/subscription_item.rb +24 -1
- data/lib/stripe/resources/subscription_schedule.rb +7 -87
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
- data/lib/stripe/resources/v2/billing/service_action.rb +32 -2
- data/lib/stripe/resources/v2/core/account.rb +341 -10
- data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +0 -2
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -1
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +49 -1
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +46 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +61 -3
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +46 -2
- data/lib/stripe/resources/v2/money_management/received_credit.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +65 -1
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +49 -1
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +23 -79
- data/lib/stripe/resources.rb +5 -186
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +2 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management_service.rb +3 -1
- data/lib/stripe/services.rb +3 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +5579 -1470
- metadata +17 -188
- data/lib/stripe/events/v1_account_updated_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
- data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
- data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
- data/lib/stripe/events/v1_customer_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v1_file_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payout_created_event.rb +0 -44
- data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
- data/lib/stripe/events/v1_person_created_event.rb +0 -44
- data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_person_updated_event.rb +0 -44
- data/lib/stripe/events/v1_plan_created_event.rb +0 -44
- data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v1_price_created_event.rb +0 -44
- data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_price_updated_event.rb +0 -44
- data/lib/stripe/events/v1_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_product_updated_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
- data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
- data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_quote_created_event.rb +0 -44
- data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
- data/lib/stripe/events/v1_refund_created_event.rb +0 -44
- data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
- data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_review_closed_event.rb +0 -44
- data/lib/stripe/events/v1_review_opened_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
- data/lib/stripe/events/v1_source_failed_event.rb +0 -44
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
- data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_topup_created_event.rb +0 -44
- data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
|
@@ -516,6 +516,8 @@ module Stripe
|
|
|
516
516
|
attr_reader :tax_rates
|
|
517
517
|
# Options that configure the trial on the subscription item.
|
|
518
518
|
attr_reader :trial
|
|
519
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
520
|
+
attr_reader :trial_offer
|
|
519
521
|
|
|
520
522
|
def self.inner_class_types
|
|
521
523
|
@inner_class_types = {
|
|
@@ -628,6 +630,8 @@ module Stripe
|
|
|
628
630
|
attr_reader :trial_end
|
|
629
631
|
# Settings related to any trials on the subscription during this phase.
|
|
630
632
|
attr_reader :trial_settings
|
|
633
|
+
# Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
634
|
+
attr_reader :effective_at
|
|
631
635
|
|
|
632
636
|
def self.inner_class_types
|
|
633
637
|
@inner_class_types = {
|
|
@@ -684,65 +688,15 @@ module Stripe
|
|
|
684
688
|
end
|
|
685
689
|
|
|
686
690
|
class BillFrom < ::Stripe::StripeObject
|
|
687
|
-
class AmendmentStart < ::Stripe::StripeObject
|
|
688
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
689
|
-
attr_reader :index
|
|
690
|
-
|
|
691
|
-
def self.inner_class_types
|
|
692
|
-
@inner_class_types = {}
|
|
693
|
-
end
|
|
694
|
-
|
|
695
|
-
def self.field_remappings
|
|
696
|
-
@field_remappings = {}
|
|
697
|
-
end
|
|
698
|
-
end
|
|
699
|
-
|
|
700
|
-
class LineStartsAt < ::Stripe::StripeObject
|
|
701
|
-
# Unique identifier for the object.
|
|
702
|
-
attr_reader :id
|
|
703
|
-
|
|
704
|
-
def self.inner_class_types
|
|
705
|
-
@inner_class_types = {}
|
|
706
|
-
end
|
|
707
|
-
|
|
708
|
-
def self.field_remappings
|
|
709
|
-
@field_remappings = {}
|
|
710
|
-
end
|
|
711
|
-
end
|
|
712
|
-
|
|
713
|
-
class Relative < ::Stripe::StripeObject
|
|
714
|
-
# Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`.
|
|
715
|
-
attr_reader :interval
|
|
716
|
-
# The multiplier applied to the interval.
|
|
717
|
-
attr_reader :interval_count
|
|
718
|
-
|
|
719
|
-
def self.inner_class_types
|
|
720
|
-
@inner_class_types = {}
|
|
721
|
-
end
|
|
722
|
-
|
|
723
|
-
def self.field_remappings
|
|
724
|
-
@field_remappings = {}
|
|
725
|
-
end
|
|
726
|
-
end
|
|
727
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
728
|
-
attr_reader :amendment_start
|
|
729
691
|
# The time the billing schedule applies from.
|
|
730
692
|
attr_reader :computed_timestamp
|
|
731
|
-
# Lets you bill the period starting from a particular Quote line.
|
|
732
|
-
attr_reader :line_starts_at
|
|
733
|
-
# Timestamp is calculated from the request time.
|
|
734
|
-
attr_reader :relative
|
|
735
693
|
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
736
694
|
attr_reader :timestamp
|
|
737
|
-
# Describes how the billing schedule determines the start date. Possible values are `timestamp
|
|
695
|
+
# Describes how the billing schedule determines the start date. Possible values are `timestamp`.
|
|
738
696
|
attr_reader :type
|
|
739
697
|
|
|
740
698
|
def self.inner_class_types
|
|
741
|
-
@inner_class_types = {
|
|
742
|
-
amendment_start: AmendmentStart,
|
|
743
|
-
line_starts_at: LineStartsAt,
|
|
744
|
-
relative: Relative,
|
|
745
|
-
}
|
|
699
|
+
@inner_class_types = {}
|
|
746
700
|
end
|
|
747
701
|
|
|
748
702
|
def self.field_remappings
|
|
@@ -751,19 +705,6 @@ module Stripe
|
|
|
751
705
|
end
|
|
752
706
|
|
|
753
707
|
class BillUntil < ::Stripe::StripeObject
|
|
754
|
-
class AmendmentEnd < ::Stripe::StripeObject
|
|
755
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
756
|
-
attr_reader :index
|
|
757
|
-
|
|
758
|
-
def self.inner_class_types
|
|
759
|
-
@inner_class_types = {}
|
|
760
|
-
end
|
|
761
|
-
|
|
762
|
-
def self.field_remappings
|
|
763
|
-
@field_remappings = {}
|
|
764
|
-
end
|
|
765
|
-
end
|
|
766
|
-
|
|
767
708
|
class Duration < ::Stripe::StripeObject
|
|
768
709
|
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
769
710
|
attr_reader :interval
|
|
@@ -778,38 +719,17 @@ module Stripe
|
|
|
778
719
|
@field_remappings = {}
|
|
779
720
|
end
|
|
780
721
|
end
|
|
781
|
-
|
|
782
|
-
class LineEndsAt < ::Stripe::StripeObject
|
|
783
|
-
# Unique identifier for the object.
|
|
784
|
-
attr_reader :id
|
|
785
|
-
|
|
786
|
-
def self.inner_class_types
|
|
787
|
-
@inner_class_types = {}
|
|
788
|
-
end
|
|
789
|
-
|
|
790
|
-
def self.field_remappings
|
|
791
|
-
@field_remappings = {}
|
|
792
|
-
end
|
|
793
|
-
end
|
|
794
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
795
|
-
attr_reader :amendment_end
|
|
796
722
|
# The timestamp the billing schedule will apply until.
|
|
797
723
|
attr_reader :computed_timestamp
|
|
798
724
|
# Specifies the billing period.
|
|
799
725
|
attr_reader :duration
|
|
800
|
-
# Lets you bill the period ending at a particular Quote line.
|
|
801
|
-
attr_reader :line_ends_at
|
|
802
726
|
# If specified, the billing schedule will apply until the specified timestamp.
|
|
803
727
|
attr_reader :timestamp
|
|
804
728
|
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
805
729
|
attr_reader :type
|
|
806
730
|
|
|
807
731
|
def self.inner_class_types
|
|
808
|
-
@inner_class_types = {
|
|
809
|
-
amendment_end: AmendmentEnd,
|
|
810
|
-
duration: Duration,
|
|
811
|
-
line_ends_at: LineEndsAt,
|
|
812
|
-
}
|
|
732
|
+
@inner_class_types = { duration: Duration }
|
|
813
733
|
end
|
|
814
734
|
|
|
815
735
|
def self.field_remappings
|
|
@@ -114,65 +114,15 @@ module Stripe
|
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
class BillFrom < ::Stripe::StripeObject
|
|
117
|
-
class AmendmentStart < ::Stripe::StripeObject
|
|
118
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
119
|
-
attr_reader :index
|
|
120
|
-
|
|
121
|
-
def self.inner_class_types
|
|
122
|
-
@inner_class_types = {}
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
def self.field_remappings
|
|
126
|
-
@field_remappings = {}
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
class LineStartsAt < ::Stripe::StripeObject
|
|
131
|
-
# Unique identifier for the object.
|
|
132
|
-
attr_reader :id
|
|
133
|
-
|
|
134
|
-
def self.inner_class_types
|
|
135
|
-
@inner_class_types = {}
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def self.field_remappings
|
|
139
|
-
@field_remappings = {}
|
|
140
|
-
end
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
class Relative < ::Stripe::StripeObject
|
|
144
|
-
# Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`.
|
|
145
|
-
attr_reader :interval
|
|
146
|
-
# The multiplier applied to the interval.
|
|
147
|
-
attr_reader :interval_count
|
|
148
|
-
|
|
149
|
-
def self.inner_class_types
|
|
150
|
-
@inner_class_types = {}
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
def self.field_remappings
|
|
154
|
-
@field_remappings = {}
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
158
|
-
attr_reader :amendment_start
|
|
159
117
|
# The time the billing schedule applies from.
|
|
160
118
|
attr_reader :computed_timestamp
|
|
161
|
-
# Lets you bill the period starting from a particular Quote line.
|
|
162
|
-
attr_reader :line_starts_at
|
|
163
|
-
# Timestamp is calculated from the request time.
|
|
164
|
-
attr_reader :relative
|
|
165
119
|
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
166
120
|
attr_reader :timestamp
|
|
167
|
-
# Describes how the billing schedule determines the start date. Possible values are `timestamp
|
|
121
|
+
# Describes how the billing schedule determines the start date. Possible values are `timestamp`.
|
|
168
122
|
attr_reader :type
|
|
169
123
|
|
|
170
124
|
def self.inner_class_types
|
|
171
|
-
@inner_class_types = {
|
|
172
|
-
amendment_start: AmendmentStart,
|
|
173
|
-
line_starts_at: LineStartsAt,
|
|
174
|
-
relative: Relative,
|
|
175
|
-
}
|
|
125
|
+
@inner_class_types = {}
|
|
176
126
|
end
|
|
177
127
|
|
|
178
128
|
def self.field_remappings
|
|
@@ -181,19 +131,6 @@ module Stripe
|
|
|
181
131
|
end
|
|
182
132
|
|
|
183
133
|
class BillUntil < ::Stripe::StripeObject
|
|
184
|
-
class AmendmentEnd < ::Stripe::StripeObject
|
|
185
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
186
|
-
attr_reader :index
|
|
187
|
-
|
|
188
|
-
def self.inner_class_types
|
|
189
|
-
@inner_class_types = {}
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
def self.field_remappings
|
|
193
|
-
@field_remappings = {}
|
|
194
|
-
end
|
|
195
|
-
end
|
|
196
|
-
|
|
197
134
|
class Duration < ::Stripe::StripeObject
|
|
198
135
|
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
199
136
|
attr_reader :interval
|
|
@@ -208,38 +145,17 @@ module Stripe
|
|
|
208
145
|
@field_remappings = {}
|
|
209
146
|
end
|
|
210
147
|
end
|
|
211
|
-
|
|
212
|
-
class LineEndsAt < ::Stripe::StripeObject
|
|
213
|
-
# Unique identifier for the object.
|
|
214
|
-
attr_reader :id
|
|
215
|
-
|
|
216
|
-
def self.inner_class_types
|
|
217
|
-
@inner_class_types = {}
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
def self.field_remappings
|
|
221
|
-
@field_remappings = {}
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
225
|
-
attr_reader :amendment_end
|
|
226
148
|
# The timestamp the billing schedule will apply until.
|
|
227
149
|
attr_reader :computed_timestamp
|
|
228
150
|
# Specifies the billing period.
|
|
229
151
|
attr_reader :duration
|
|
230
|
-
# Lets you bill the period ending at a particular Quote line.
|
|
231
|
-
attr_reader :line_ends_at
|
|
232
152
|
# If specified, the billing schedule will apply until the specified timestamp.
|
|
233
153
|
attr_reader :timestamp
|
|
234
154
|
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
235
155
|
attr_reader :type
|
|
236
156
|
|
|
237
157
|
def self.inner_class_types
|
|
238
|
-
@inner_class_types = {
|
|
239
|
-
amendment_end: AmendmentEnd,
|
|
240
|
-
duration: Duration,
|
|
241
|
-
line_ends_at: LineEndsAt,
|
|
242
|
-
}
|
|
158
|
+
@inner_class_types = { duration: Duration }
|
|
243
159
|
end
|
|
244
160
|
|
|
245
161
|
def self.field_remappings
|
|
@@ -42,6 +42,23 @@ module Stripe
|
|
|
42
42
|
@field_remappings = {}
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
|
+
|
|
46
|
+
class CurrentTrial < ::Stripe::StripeObject
|
|
47
|
+
# Attribute for field end_date
|
|
48
|
+
attr_reader :end_date
|
|
49
|
+
# Attribute for field start_date
|
|
50
|
+
attr_reader :start_date
|
|
51
|
+
# Attribute for field trial_offer
|
|
52
|
+
attr_reader :trial_offer
|
|
53
|
+
|
|
54
|
+
def self.inner_class_types
|
|
55
|
+
@inner_class_types = {}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def self.field_remappings
|
|
59
|
+
@field_remappings = {}
|
|
60
|
+
end
|
|
61
|
+
end
|
|
45
62
|
# The time period the subscription item has been billed for.
|
|
46
63
|
attr_reader :billed_until
|
|
47
64
|
# Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
|
|
@@ -84,6 +101,8 @@ module Stripe
|
|
|
84
101
|
attr_reader :tax_rates
|
|
85
102
|
# Options that configure the trial on the subscription item.
|
|
86
103
|
attr_reader :trial
|
|
104
|
+
# The current trial that is applied to this subscription item.
|
|
105
|
+
attr_reader :current_trial
|
|
87
106
|
# Always true for a deleted object
|
|
88
107
|
attr_reader :deleted
|
|
89
108
|
|
|
@@ -138,7 +157,11 @@ module Stripe
|
|
|
138
157
|
end
|
|
139
158
|
|
|
140
159
|
def self.inner_class_types
|
|
141
|
-
@inner_class_types = {
|
|
160
|
+
@inner_class_types = {
|
|
161
|
+
billing_thresholds: BillingThresholds,
|
|
162
|
+
trial: Trial,
|
|
163
|
+
current_trial: CurrentTrial,
|
|
164
|
+
}
|
|
142
165
|
end
|
|
143
166
|
|
|
144
167
|
def self.field_remappings
|
|
@@ -506,6 +506,8 @@ module Stripe
|
|
|
506
506
|
attr_reader :tax_rates
|
|
507
507
|
# Options that configure the trial on the subscription item.
|
|
508
508
|
attr_reader :trial
|
|
509
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
510
|
+
attr_reader :trial_offer
|
|
509
511
|
|
|
510
512
|
def self.inner_class_types
|
|
511
513
|
@inner_class_types = {
|
|
@@ -618,6 +620,8 @@ module Stripe
|
|
|
618
620
|
attr_reader :trial_end
|
|
619
621
|
# Settings related to any trials on the subscription during this phase.
|
|
620
622
|
attr_reader :trial_settings
|
|
623
|
+
# Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
624
|
+
attr_reader :effective_at
|
|
621
625
|
|
|
622
626
|
def self.inner_class_types
|
|
623
627
|
@inner_class_types = {
|
|
@@ -674,65 +678,15 @@ module Stripe
|
|
|
674
678
|
end
|
|
675
679
|
|
|
676
680
|
class BillFrom < ::Stripe::StripeObject
|
|
677
|
-
class AmendmentStart < ::Stripe::StripeObject
|
|
678
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
679
|
-
attr_reader :index
|
|
680
|
-
|
|
681
|
-
def self.inner_class_types
|
|
682
|
-
@inner_class_types = {}
|
|
683
|
-
end
|
|
684
|
-
|
|
685
|
-
def self.field_remappings
|
|
686
|
-
@field_remappings = {}
|
|
687
|
-
end
|
|
688
|
-
end
|
|
689
|
-
|
|
690
|
-
class LineStartsAt < ::Stripe::StripeObject
|
|
691
|
-
# Unique identifier for the object.
|
|
692
|
-
attr_reader :id
|
|
693
|
-
|
|
694
|
-
def self.inner_class_types
|
|
695
|
-
@inner_class_types = {}
|
|
696
|
-
end
|
|
697
|
-
|
|
698
|
-
def self.field_remappings
|
|
699
|
-
@field_remappings = {}
|
|
700
|
-
end
|
|
701
|
-
end
|
|
702
|
-
|
|
703
|
-
class Relative < ::Stripe::StripeObject
|
|
704
|
-
# Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`.
|
|
705
|
-
attr_reader :interval
|
|
706
|
-
# The multiplier applied to the interval.
|
|
707
|
-
attr_reader :interval_count
|
|
708
|
-
|
|
709
|
-
def self.inner_class_types
|
|
710
|
-
@inner_class_types = {}
|
|
711
|
-
end
|
|
712
|
-
|
|
713
|
-
def self.field_remappings
|
|
714
|
-
@field_remappings = {}
|
|
715
|
-
end
|
|
716
|
-
end
|
|
717
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
718
|
-
attr_reader :amendment_start
|
|
719
681
|
# The time the billing schedule applies from.
|
|
720
682
|
attr_reader :computed_timestamp
|
|
721
|
-
# Lets you bill the period starting from a particular Quote line.
|
|
722
|
-
attr_reader :line_starts_at
|
|
723
|
-
# Timestamp is calculated from the request time.
|
|
724
|
-
attr_reader :relative
|
|
725
683
|
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
726
684
|
attr_reader :timestamp
|
|
727
|
-
# Describes how the billing schedule determines the start date. Possible values are `timestamp
|
|
685
|
+
# Describes how the billing schedule determines the start date. Possible values are `timestamp`.
|
|
728
686
|
attr_reader :type
|
|
729
687
|
|
|
730
688
|
def self.inner_class_types
|
|
731
|
-
@inner_class_types = {
|
|
732
|
-
amendment_start: AmendmentStart,
|
|
733
|
-
line_starts_at: LineStartsAt,
|
|
734
|
-
relative: Relative,
|
|
735
|
-
}
|
|
689
|
+
@inner_class_types = {}
|
|
736
690
|
end
|
|
737
691
|
|
|
738
692
|
def self.field_remappings
|
|
@@ -741,19 +695,6 @@ module Stripe
|
|
|
741
695
|
end
|
|
742
696
|
|
|
743
697
|
class BillUntil < ::Stripe::StripeObject
|
|
744
|
-
class AmendmentEnd < ::Stripe::StripeObject
|
|
745
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
746
|
-
attr_reader :index
|
|
747
|
-
|
|
748
|
-
def self.inner_class_types
|
|
749
|
-
@inner_class_types = {}
|
|
750
|
-
end
|
|
751
|
-
|
|
752
|
-
def self.field_remappings
|
|
753
|
-
@field_remappings = {}
|
|
754
|
-
end
|
|
755
|
-
end
|
|
756
|
-
|
|
757
698
|
class Duration < ::Stripe::StripeObject
|
|
758
699
|
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
759
700
|
attr_reader :interval
|
|
@@ -768,38 +709,17 @@ module Stripe
|
|
|
768
709
|
@field_remappings = {}
|
|
769
710
|
end
|
|
770
711
|
end
|
|
771
|
-
|
|
772
|
-
class LineEndsAt < ::Stripe::StripeObject
|
|
773
|
-
# Unique identifier for the object.
|
|
774
|
-
attr_reader :id
|
|
775
|
-
|
|
776
|
-
def self.inner_class_types
|
|
777
|
-
@inner_class_types = {}
|
|
778
|
-
end
|
|
779
|
-
|
|
780
|
-
def self.field_remappings
|
|
781
|
-
@field_remappings = {}
|
|
782
|
-
end
|
|
783
|
-
end
|
|
784
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
785
|
-
attr_reader :amendment_end
|
|
786
712
|
# The timestamp the billing schedule will apply until.
|
|
787
713
|
attr_reader :computed_timestamp
|
|
788
714
|
# Specifies the billing period.
|
|
789
715
|
attr_reader :duration
|
|
790
|
-
# Lets you bill the period ending at a particular Quote line.
|
|
791
|
-
attr_reader :line_ends_at
|
|
792
716
|
# If specified, the billing schedule will apply until the specified timestamp.
|
|
793
717
|
attr_reader :timestamp
|
|
794
718
|
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
795
719
|
attr_reader :type
|
|
796
720
|
|
|
797
721
|
def self.inner_class_types
|
|
798
|
-
@inner_class_types = {
|
|
799
|
-
amendment_end: AmendmentEnd,
|
|
800
|
-
duration: Duration,
|
|
801
|
-
line_ends_at: LineEndsAt,
|
|
802
|
-
}
|
|
722
|
+
@inner_class_types = { duration: Duration }
|
|
803
723
|
end
|
|
804
724
|
|
|
805
725
|
def self.field_remappings
|
|
@@ -445,9 +445,9 @@ module Stripe
|
|
|
445
445
|
# Selected network to process the payment on. Depends on the available networks of the card.
|
|
446
446
|
attr_reader :network
|
|
447
447
|
# An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
|
|
448
|
-
# for authentication based on risk level and [other requirements](https://docs.
|
|
448
|
+
# for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
|
|
449
449
|
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
|
450
|
-
# Read our guide on [manually requesting 3D Secure](https://docs.
|
|
450
|
+
# Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
451
451
|
attr_reader :request_three_d_secure
|
|
452
452
|
|
|
453
453
|
def self.inner_class_types
|
|
@@ -101,9 +101,9 @@ module Stripe
|
|
|
101
101
|
# Selected network to process the payment on. Depends on the available networks of the card.
|
|
102
102
|
attr_reader :network
|
|
103
103
|
# An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
|
|
104
|
-
# for authentication based on risk level and [other requirements](https://docs.
|
|
104
|
+
# for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
|
|
105
105
|
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
|
106
|
-
# Read our guide on [manually requesting 3D Secure](https://docs.
|
|
106
|
+
# Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
107
107
|
attr_reader :request_three_d_secure
|
|
108
108
|
|
|
109
109
|
def self.inner_class_types
|
|
@@ -100,9 +100,9 @@ module Stripe
|
|
|
100
100
|
# Selected network to process the payment on. Depends on the available networks of the card.
|
|
101
101
|
attr_reader :network
|
|
102
102
|
# An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
|
|
103
|
-
# for authentication based on risk level and [other requirements](https://docs.
|
|
103
|
+
# for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
|
|
104
104
|
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
|
105
|
-
# Read our guide on [manually requesting 3D Secure](https://docs.
|
|
105
|
+
# Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
106
106
|
attr_reader :request_three_d_secure
|
|
107
107
|
|
|
108
108
|
def self.inner_class_types
|
|
@@ -21,7 +21,8 @@ module Stripe
|
|
|
21
21
|
attr_reader :object
|
|
22
22
|
# The payload of the event. This must contain the fields corresponding to a meter’s
|
|
23
23
|
# `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and
|
|
24
|
-
# `value_settings.event_payload_key` (default is `value`). Read more about
|
|
24
|
+
# `value_settings.event_payload_key` (default is `value`). Read more about
|
|
25
|
+
# the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides)..
|
|
25
26
|
attr_reader :payload
|
|
26
27
|
# The time of the event. Must be within the past 35 calendar days or up to
|
|
27
28
|
# 5 minutes in the future. Defaults to current timestamp if not specified.
|
|
@@ -28,6 +28,21 @@ module Stripe
|
|
|
28
28
|
@field_remappings = {}
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
|
+
|
|
32
|
+
class Monetary < ::Stripe::StripeObject
|
|
33
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
34
|
+
attr_reader :value
|
|
35
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
36
|
+
attr_reader :currency
|
|
37
|
+
|
|
38
|
+
def self.inner_class_types
|
|
39
|
+
@inner_class_types = {}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.field_remappings
|
|
43
|
+
@field_remappings = {}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
31
46
|
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
|
32
47
|
attr_reader :type
|
|
33
48
|
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|
|
@@ -36,7 +51,7 @@ module Stripe
|
|
|
36
51
|
attr_reader :monetary
|
|
37
52
|
|
|
38
53
|
def self.inner_class_types
|
|
39
|
-
@inner_class_types = { custom_pricing_unit: CustomPricingUnit }
|
|
54
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
|
40
55
|
end
|
|
41
56
|
|
|
42
57
|
def self.field_remappings
|
|
@@ -127,6 +142,21 @@ module Stripe
|
|
|
127
142
|
@field_remappings = {}
|
|
128
143
|
end
|
|
129
144
|
end
|
|
145
|
+
|
|
146
|
+
class Monetary < ::Stripe::StripeObject
|
|
147
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
148
|
+
attr_reader :value
|
|
149
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
150
|
+
attr_reader :currency
|
|
151
|
+
|
|
152
|
+
def self.inner_class_types
|
|
153
|
+
@inner_class_types = {}
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
def self.field_remappings
|
|
157
|
+
@field_remappings = {}
|
|
158
|
+
end
|
|
159
|
+
end
|
|
130
160
|
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
|
131
161
|
attr_reader :type
|
|
132
162
|
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|
|
@@ -135,7 +165,7 @@ module Stripe
|
|
|
135
165
|
attr_reader :monetary
|
|
136
166
|
|
|
137
167
|
def self.inner_class_types
|
|
138
|
-
@inner_class_types = { custom_pricing_unit: CustomPricingUnit }
|
|
168
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
|
139
169
|
end
|
|
140
170
|
|
|
141
171
|
def self.field_remappings
|