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
|
@@ -208,6 +208,8 @@ module Stripe
|
|
|
208
208
|
attr_accessor :tax_rates
|
|
209
209
|
# Options that configure the trial on the subscription item.
|
|
210
210
|
attr_accessor :trial
|
|
211
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
212
|
+
attr_accessor :trial_offer
|
|
211
213
|
|
|
212
214
|
def initialize(
|
|
213
215
|
discounts: nil,
|
|
@@ -215,7 +217,8 @@ module Stripe
|
|
|
215
217
|
price: nil,
|
|
216
218
|
quantity: nil,
|
|
217
219
|
tax_rates: nil,
|
|
218
|
-
trial: nil
|
|
220
|
+
trial: nil,
|
|
221
|
+
trial_offer: nil
|
|
219
222
|
)
|
|
220
223
|
@discounts = discounts
|
|
221
224
|
@metadata = metadata
|
|
@@ -223,6 +226,7 @@ module Stripe
|
|
|
223
226
|
@quantity = quantity
|
|
224
227
|
@tax_rates = tax_rates
|
|
225
228
|
@trial = trial
|
|
229
|
+
@trial_offer = trial_offer
|
|
226
230
|
end
|
|
227
231
|
end
|
|
228
232
|
|
|
@@ -332,6 +336,8 @@ module Stripe
|
|
|
332
336
|
attr_accessor :tax_rates
|
|
333
337
|
# If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
334
338
|
attr_accessor :trial
|
|
339
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
340
|
+
attr_accessor :trial_offer
|
|
335
341
|
|
|
336
342
|
def initialize(
|
|
337
343
|
discounts: nil,
|
|
@@ -339,7 +345,8 @@ module Stripe
|
|
|
339
345
|
price: nil,
|
|
340
346
|
quantity: nil,
|
|
341
347
|
tax_rates: nil,
|
|
342
|
-
trial: nil
|
|
348
|
+
trial: nil,
|
|
349
|
+
trial_offer: nil
|
|
343
350
|
)
|
|
344
351
|
@discounts = discounts
|
|
345
352
|
@metadata = metadata
|
|
@@ -347,6 +354,7 @@ module Stripe
|
|
|
347
354
|
@quantity = quantity
|
|
348
355
|
@tax_rates = tax_rates
|
|
349
356
|
@trial = trial
|
|
357
|
+
@trial_offer = trial_offer
|
|
350
358
|
end
|
|
351
359
|
end
|
|
352
360
|
# Details for the `add_discount` type.
|
|
@@ -554,6 +562,8 @@ module Stripe
|
|
|
554
562
|
attr_accessor :starts_at
|
|
555
563
|
# Settings related to subscription trials.
|
|
556
564
|
attr_accessor :trial_settings
|
|
565
|
+
# 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.
|
|
566
|
+
attr_accessor :effective_at
|
|
557
567
|
|
|
558
568
|
def initialize(
|
|
559
569
|
actions: nil,
|
|
@@ -565,7 +575,8 @@ module Stripe
|
|
|
565
575
|
set_pause_collection: nil,
|
|
566
576
|
set_schedule_end: nil,
|
|
567
577
|
starts_at: nil,
|
|
568
|
-
trial_settings: nil
|
|
578
|
+
trial_settings: nil,
|
|
579
|
+
effective_at: nil
|
|
569
580
|
)
|
|
570
581
|
@actions = actions
|
|
571
582
|
@applies_to = applies_to
|
|
@@ -577,6 +588,7 @@ module Stripe
|
|
|
577
588
|
@set_schedule_end = set_schedule_end
|
|
578
589
|
@starts_at = starts_at
|
|
579
590
|
@trial_settings = trial_settings
|
|
591
|
+
@effective_at = effective_at
|
|
580
592
|
end
|
|
581
593
|
end
|
|
582
594
|
|
|
@@ -196,6 +196,8 @@ module Stripe
|
|
|
196
196
|
attr_accessor :tax_rates
|
|
197
197
|
# Options that configure the trial on the subscription item.
|
|
198
198
|
attr_accessor :trial
|
|
199
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
200
|
+
attr_accessor :trial_offer
|
|
199
201
|
|
|
200
202
|
def initialize(
|
|
201
203
|
discounts: nil,
|
|
@@ -203,7 +205,8 @@ module Stripe
|
|
|
203
205
|
price: nil,
|
|
204
206
|
quantity: nil,
|
|
205
207
|
tax_rates: nil,
|
|
206
|
-
trial: nil
|
|
208
|
+
trial: nil,
|
|
209
|
+
trial_offer: nil
|
|
207
210
|
)
|
|
208
211
|
@discounts = discounts
|
|
209
212
|
@metadata = metadata
|
|
@@ -211,6 +214,7 @@ module Stripe
|
|
|
211
214
|
@quantity = quantity
|
|
212
215
|
@tax_rates = tax_rates
|
|
213
216
|
@trial = trial
|
|
217
|
+
@trial_offer = trial_offer
|
|
214
218
|
end
|
|
215
219
|
end
|
|
216
220
|
|
|
@@ -320,6 +324,8 @@ module Stripe
|
|
|
320
324
|
attr_accessor :tax_rates
|
|
321
325
|
# If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
322
326
|
attr_accessor :trial
|
|
327
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
328
|
+
attr_accessor :trial_offer
|
|
323
329
|
|
|
324
330
|
def initialize(
|
|
325
331
|
discounts: nil,
|
|
@@ -327,7 +333,8 @@ module Stripe
|
|
|
327
333
|
price: nil,
|
|
328
334
|
quantity: nil,
|
|
329
335
|
tax_rates: nil,
|
|
330
|
-
trial: nil
|
|
336
|
+
trial: nil,
|
|
337
|
+
trial_offer: nil
|
|
331
338
|
)
|
|
332
339
|
@discounts = discounts
|
|
333
340
|
@metadata = metadata
|
|
@@ -335,6 +342,7 @@ module Stripe
|
|
|
335
342
|
@quantity = quantity
|
|
336
343
|
@tax_rates = tax_rates
|
|
337
344
|
@trial = trial
|
|
345
|
+
@trial_offer = trial_offer
|
|
338
346
|
end
|
|
339
347
|
end
|
|
340
348
|
# Details for the `add_discount` type.
|
|
@@ -547,6 +555,8 @@ module Stripe
|
|
|
547
555
|
attr_accessor :starts_at
|
|
548
556
|
# Settings related to subscription trials.
|
|
549
557
|
attr_accessor :trial_settings
|
|
558
|
+
# 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.
|
|
559
|
+
attr_accessor :effective_at
|
|
550
560
|
|
|
551
561
|
def initialize(
|
|
552
562
|
actions: nil,
|
|
@@ -559,7 +569,8 @@ module Stripe
|
|
|
559
569
|
set_pause_collection: nil,
|
|
560
570
|
set_schedule_end: nil,
|
|
561
571
|
starts_at: nil,
|
|
562
|
-
trial_settings: nil
|
|
572
|
+
trial_settings: nil,
|
|
573
|
+
effective_at: nil
|
|
563
574
|
)
|
|
564
575
|
@actions = actions
|
|
565
576
|
@applies_to = applies_to
|
|
@@ -572,6 +583,7 @@ module Stripe
|
|
|
572
583
|
@set_schedule_end = set_schedule_end
|
|
573
584
|
@starts_at = starts_at
|
|
574
585
|
@trial_settings = trial_settings
|
|
586
|
+
@effective_at = effective_at
|
|
575
587
|
end
|
|
576
588
|
end
|
|
577
589
|
|
|
@@ -346,6 +346,18 @@ module Stripe
|
|
|
346
346
|
end
|
|
347
347
|
end
|
|
348
348
|
|
|
349
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
350
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
351
|
+
attr_accessor :trial_end
|
|
352
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
353
|
+
attr_accessor :trial_offer
|
|
354
|
+
|
|
355
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
356
|
+
@trial_end = trial_end
|
|
357
|
+
@trial_offer = trial_offer
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
|
|
349
361
|
class Discount < ::Stripe::RequestParams
|
|
350
362
|
class DiscountEnd < ::Stripe::RequestParams
|
|
351
363
|
class Duration < ::Stripe::RequestParams
|
|
@@ -460,6 +472,8 @@ module Stripe
|
|
|
460
472
|
attr_accessor :tax_rates
|
|
461
473
|
# Define options to configure the trial on the subscription item.
|
|
462
474
|
attr_accessor :trial
|
|
475
|
+
# The trial offer to apply to this subscription item.
|
|
476
|
+
attr_accessor :current_trial
|
|
463
477
|
|
|
464
478
|
def initialize(
|
|
465
479
|
billing_thresholds: nil,
|
|
@@ -470,7 +484,8 @@ module Stripe
|
|
|
470
484
|
price_data: nil,
|
|
471
485
|
quantity: nil,
|
|
472
486
|
tax_rates: nil,
|
|
473
|
-
trial: nil
|
|
487
|
+
trial: nil,
|
|
488
|
+
current_trial: nil
|
|
474
489
|
)
|
|
475
490
|
@billing_thresholds = billing_thresholds
|
|
476
491
|
@discounts = discounts
|
|
@@ -481,6 +496,7 @@ module Stripe
|
|
|
481
496
|
@quantity = quantity
|
|
482
497
|
@tax_rates = tax_rates
|
|
483
498
|
@trial = trial
|
|
499
|
+
@current_trial = current_trial
|
|
484
500
|
end
|
|
485
501
|
end
|
|
486
502
|
|
|
@@ -12,6 +12,18 @@ module Stripe
|
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
16
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
17
|
+
attr_accessor :trial_end
|
|
18
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
19
|
+
attr_accessor :trial_offer
|
|
20
|
+
|
|
21
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
22
|
+
@trial_end = trial_end
|
|
23
|
+
@trial_offer = trial_offer
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
15
27
|
class Discount < ::Stripe::RequestParams
|
|
16
28
|
class DiscountEnd < ::Stripe::RequestParams
|
|
17
29
|
class Duration < ::Stripe::RequestParams
|
|
@@ -142,6 +154,8 @@ module Stripe
|
|
|
142
154
|
attr_accessor :tax_rates
|
|
143
155
|
# Options that configure the trial on the subscription item.
|
|
144
156
|
attr_accessor :trial
|
|
157
|
+
# The trial offer to apply to this subscription item.
|
|
158
|
+
attr_accessor :current_trial
|
|
145
159
|
|
|
146
160
|
def initialize(
|
|
147
161
|
billing_thresholds: nil,
|
|
@@ -157,7 +171,8 @@ module Stripe
|
|
|
157
171
|
quantity: nil,
|
|
158
172
|
subscription: nil,
|
|
159
173
|
tax_rates: nil,
|
|
160
|
-
trial: nil
|
|
174
|
+
trial: nil,
|
|
175
|
+
current_trial: nil
|
|
161
176
|
)
|
|
162
177
|
@billing_thresholds = billing_thresholds
|
|
163
178
|
@discounts = discounts
|
|
@@ -173,6 +188,7 @@ module Stripe
|
|
|
173
188
|
@subscription = subscription
|
|
174
189
|
@tax_rates = tax_rates
|
|
175
190
|
@trial = trial
|
|
191
|
+
@current_trial = current_trial
|
|
176
192
|
end
|
|
177
193
|
end
|
|
178
194
|
end
|
|
@@ -12,6 +12,18 @@ module Stripe
|
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
16
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
17
|
+
attr_accessor :trial_end
|
|
18
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
19
|
+
attr_accessor :trial_offer
|
|
20
|
+
|
|
21
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
22
|
+
@trial_end = trial_end
|
|
23
|
+
@trial_offer = trial_offer
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
15
27
|
class Discount < ::Stripe::RequestParams
|
|
16
28
|
class DiscountEnd < ::Stripe::RequestParams
|
|
17
29
|
class Duration < ::Stripe::RequestParams
|
|
@@ -128,6 +140,8 @@ module Stripe
|
|
|
128
140
|
attr_accessor :quantity
|
|
129
141
|
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
130
142
|
attr_accessor :tax_rates
|
|
143
|
+
# The trial offer to apply to this subscription item.
|
|
144
|
+
attr_accessor :current_trial
|
|
131
145
|
|
|
132
146
|
def initialize(
|
|
133
147
|
billing_thresholds: nil,
|
|
@@ -142,7 +156,8 @@ module Stripe
|
|
|
142
156
|
proration_behavior: nil,
|
|
143
157
|
proration_date: nil,
|
|
144
158
|
quantity: nil,
|
|
145
|
-
tax_rates: nil
|
|
159
|
+
tax_rates: nil,
|
|
160
|
+
current_trial: nil
|
|
146
161
|
)
|
|
147
162
|
@billing_thresholds = billing_thresholds
|
|
148
163
|
@discounts = discounts
|
|
@@ -157,6 +172,7 @@ module Stripe
|
|
|
157
172
|
@proration_date = proration_date
|
|
158
173
|
@quantity = quantity
|
|
159
174
|
@tax_rates = tax_rates
|
|
175
|
+
@current_trial = current_trial
|
|
160
176
|
end
|
|
161
177
|
end
|
|
162
178
|
end
|
|
@@ -250,6 +250,8 @@ module Stripe
|
|
|
250
250
|
attr_accessor :tax_rates
|
|
251
251
|
# Options that configure the trial on the subscription item.
|
|
252
252
|
attr_accessor :trial
|
|
253
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
254
|
+
attr_accessor :trial_offer
|
|
253
255
|
|
|
254
256
|
def initialize(
|
|
255
257
|
discounts: nil,
|
|
@@ -257,7 +259,8 @@ module Stripe
|
|
|
257
259
|
price: nil,
|
|
258
260
|
quantity: nil,
|
|
259
261
|
tax_rates: nil,
|
|
260
|
-
trial: nil
|
|
262
|
+
trial: nil,
|
|
263
|
+
trial_offer: nil
|
|
261
264
|
)
|
|
262
265
|
@discounts = discounts
|
|
263
266
|
@metadata = metadata
|
|
@@ -265,6 +268,7 @@ module Stripe
|
|
|
265
268
|
@quantity = quantity
|
|
266
269
|
@tax_rates = tax_rates
|
|
267
270
|
@trial = trial
|
|
271
|
+
@trial_offer = trial_offer
|
|
268
272
|
end
|
|
269
273
|
end
|
|
270
274
|
|
|
@@ -344,6 +348,8 @@ module Stripe
|
|
|
344
348
|
attr_accessor :tax_rates
|
|
345
349
|
# If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
346
350
|
attr_accessor :trial
|
|
351
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
352
|
+
attr_accessor :trial_offer
|
|
347
353
|
|
|
348
354
|
def initialize(
|
|
349
355
|
discounts: nil,
|
|
@@ -351,7 +357,8 @@ module Stripe
|
|
|
351
357
|
price: nil,
|
|
352
358
|
quantity: nil,
|
|
353
359
|
tax_rates: nil,
|
|
354
|
-
trial: nil
|
|
360
|
+
trial: nil,
|
|
361
|
+
trial_offer: nil
|
|
355
362
|
)
|
|
356
363
|
@discounts = discounts
|
|
357
364
|
@metadata = metadata
|
|
@@ -359,6 +366,7 @@ module Stripe
|
|
|
359
366
|
@quantity = quantity
|
|
360
367
|
@tax_rates = tax_rates
|
|
361
368
|
@trial = trial
|
|
369
|
+
@trial_offer = trial_offer
|
|
362
370
|
end
|
|
363
371
|
end
|
|
364
372
|
# Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
|
|
@@ -454,6 +462,8 @@ module Stripe
|
|
|
454
462
|
attr_accessor :trial_settings
|
|
455
463
|
# Actions to apply to the billing schedules.
|
|
456
464
|
attr_accessor :billing_schedules_actions
|
|
465
|
+
# 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.
|
|
466
|
+
attr_accessor :effective_at
|
|
457
467
|
|
|
458
468
|
def initialize(
|
|
459
469
|
amendment_end: nil,
|
|
@@ -466,7 +476,8 @@ module Stripe
|
|
|
466
476
|
set_pause_collection: nil,
|
|
467
477
|
set_schedule_end: nil,
|
|
468
478
|
trial_settings: nil,
|
|
469
|
-
billing_schedules_actions: nil
|
|
479
|
+
billing_schedules_actions: nil,
|
|
480
|
+
effective_at: nil
|
|
470
481
|
)
|
|
471
482
|
@amendment_end = amendment_end
|
|
472
483
|
@amendment_start = amendment_start
|
|
@@ -479,6 +490,7 @@ module Stripe
|
|
|
479
490
|
@set_schedule_end = set_schedule_end
|
|
480
491
|
@trial_settings = trial_settings
|
|
481
492
|
@billing_schedules_actions = billing_schedules_actions
|
|
493
|
+
@effective_at = effective_at
|
|
482
494
|
end
|
|
483
495
|
end
|
|
484
496
|
|
|
@@ -578,6 +578,8 @@ module Stripe
|
|
|
578
578
|
attr_accessor :tax_rates
|
|
579
579
|
# Options that configure the trial on the subscription item.
|
|
580
580
|
attr_accessor :trial
|
|
581
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
582
|
+
attr_accessor :trial_offer
|
|
581
583
|
|
|
582
584
|
def initialize(
|
|
583
585
|
billing_thresholds: nil,
|
|
@@ -588,7 +590,8 @@ module Stripe
|
|
|
588
590
|
price_data: nil,
|
|
589
591
|
quantity: nil,
|
|
590
592
|
tax_rates: nil,
|
|
591
|
-
trial: nil
|
|
593
|
+
trial: nil,
|
|
594
|
+
trial_offer: nil
|
|
592
595
|
)
|
|
593
596
|
@billing_thresholds = billing_thresholds
|
|
594
597
|
@discounts = discounts
|
|
@@ -599,6 +602,7 @@ module Stripe
|
|
|
599
602
|
@quantity = quantity
|
|
600
603
|
@tax_rates = tax_rates
|
|
601
604
|
@trial = trial
|
|
605
|
+
@trial_offer = trial_offer
|
|
602
606
|
end
|
|
603
607
|
end
|
|
604
608
|
|
|
@@ -687,6 +691,8 @@ module Stripe
|
|
|
687
691
|
attr_accessor :trial_end
|
|
688
692
|
# Settings related to subscription trials.
|
|
689
693
|
attr_accessor :trial_settings
|
|
694
|
+
# 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.
|
|
695
|
+
attr_accessor :effective_at
|
|
690
696
|
|
|
691
697
|
def initialize(
|
|
692
698
|
add_invoice_items: nil,
|
|
@@ -712,7 +718,8 @@ module Stripe
|
|
|
712
718
|
trial: nil,
|
|
713
719
|
trial_continuation: nil,
|
|
714
720
|
trial_end: nil,
|
|
715
|
-
trial_settings: nil
|
|
721
|
+
trial_settings: nil,
|
|
722
|
+
effective_at: nil
|
|
716
723
|
)
|
|
717
724
|
@add_invoice_items = add_invoice_items
|
|
718
725
|
@application_fee_percent = application_fee_percent
|
|
@@ -738,6 +745,7 @@ module Stripe
|
|
|
738
745
|
@trial_continuation = trial_continuation
|
|
739
746
|
@trial_end = trial_end
|
|
740
747
|
@trial_settings = trial_settings
|
|
748
|
+
@effective_at = effective_at
|
|
741
749
|
end
|
|
742
750
|
end
|
|
743
751
|
|
|
@@ -558,6 +558,8 @@ module Stripe
|
|
|
558
558
|
attr_accessor :tax_rates
|
|
559
559
|
# Options that configure the trial on the subscription item.
|
|
560
560
|
attr_accessor :trial
|
|
561
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
562
|
+
attr_accessor :trial_offer
|
|
561
563
|
|
|
562
564
|
def initialize(
|
|
563
565
|
billing_thresholds: nil,
|
|
@@ -568,7 +570,8 @@ module Stripe
|
|
|
568
570
|
price_data: nil,
|
|
569
571
|
quantity: nil,
|
|
570
572
|
tax_rates: nil,
|
|
571
|
-
trial: nil
|
|
573
|
+
trial: nil,
|
|
574
|
+
trial_offer: nil
|
|
572
575
|
)
|
|
573
576
|
@billing_thresholds = billing_thresholds
|
|
574
577
|
@discounts = discounts
|
|
@@ -579,6 +582,7 @@ module Stripe
|
|
|
579
582
|
@quantity = quantity
|
|
580
583
|
@tax_rates = tax_rates
|
|
581
584
|
@trial = trial
|
|
585
|
+
@trial_offer = trial_offer
|
|
582
586
|
end
|
|
583
587
|
end
|
|
584
588
|
|
|
@@ -669,6 +673,8 @@ module Stripe
|
|
|
669
673
|
attr_accessor :trial_end
|
|
670
674
|
# Settings related to subscription trials.
|
|
671
675
|
attr_accessor :trial_settings
|
|
676
|
+
# 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.
|
|
677
|
+
attr_accessor :effective_at
|
|
672
678
|
|
|
673
679
|
def initialize(
|
|
674
680
|
add_invoice_items: nil,
|
|
@@ -695,7 +701,8 @@ module Stripe
|
|
|
695
701
|
trial: nil,
|
|
696
702
|
trial_continuation: nil,
|
|
697
703
|
trial_end: nil,
|
|
698
|
-
trial_settings: nil
|
|
704
|
+
trial_settings: nil,
|
|
705
|
+
effective_at: nil
|
|
699
706
|
)
|
|
700
707
|
@add_invoice_items = add_invoice_items
|
|
701
708
|
@application_fee_percent = application_fee_percent
|
|
@@ -722,6 +729,7 @@ module Stripe
|
|
|
722
729
|
@trial_continuation = trial_continuation
|
|
723
730
|
@trial_end = trial_end
|
|
724
731
|
@trial_settings = trial_settings
|
|
732
|
+
@effective_at = effective_at
|
|
725
733
|
end
|
|
726
734
|
end
|
|
727
735
|
|
|
@@ -317,6 +317,18 @@ module Stripe
|
|
|
317
317
|
end
|
|
318
318
|
end
|
|
319
319
|
|
|
320
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
321
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
322
|
+
attr_accessor :trial_end
|
|
323
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
324
|
+
attr_accessor :trial_offer
|
|
325
|
+
|
|
326
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
327
|
+
@trial_end = trial_end
|
|
328
|
+
@trial_offer = trial_offer
|
|
329
|
+
end
|
|
330
|
+
end
|
|
331
|
+
|
|
320
332
|
class Discount < ::Stripe::RequestParams
|
|
321
333
|
class DiscountEnd < ::Stripe::RequestParams
|
|
322
334
|
class Duration < ::Stripe::RequestParams
|
|
@@ -423,6 +435,8 @@ module Stripe
|
|
|
423
435
|
attr_accessor :quantity
|
|
424
436
|
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
425
437
|
attr_accessor :tax_rates
|
|
438
|
+
# The trial offer to apply to this subscription item.
|
|
439
|
+
attr_accessor :current_trial
|
|
426
440
|
|
|
427
441
|
def initialize(
|
|
428
442
|
billing_thresholds: nil,
|
|
@@ -435,7 +449,8 @@ module Stripe
|
|
|
435
449
|
price: nil,
|
|
436
450
|
price_data: nil,
|
|
437
451
|
quantity: nil,
|
|
438
|
-
tax_rates: nil
|
|
452
|
+
tax_rates: nil,
|
|
453
|
+
current_trial: nil
|
|
439
454
|
)
|
|
440
455
|
@billing_thresholds = billing_thresholds
|
|
441
456
|
@clear_usage = clear_usage
|
|
@@ -448,6 +463,7 @@ module Stripe
|
|
|
448
463
|
@price_data = price_data
|
|
449
464
|
@quantity = quantity
|
|
450
465
|
@tax_rates = tax_rates
|
|
466
|
+
@current_trial = current_trial
|
|
451
467
|
end
|
|
452
468
|
end
|
|
453
469
|
|
|
@@ -75,9 +75,9 @@ module Stripe
|
|
|
75
75
|
# Selected network to process the payment on. Depends on the available networks of the card.
|
|
76
76
|
attr_accessor :network
|
|
77
77
|
# An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
|
|
78
|
-
# for authentication based on risk level and [other requirements](https://docs.
|
|
78
|
+
# for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
|
|
79
79
|
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
|
80
|
-
# Read our guide on [manually requesting 3D Secure](https://docs.
|
|
80
|
+
# 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.
|
|
81
81
|
attr_accessor :request_three_d_secure
|
|
82
82
|
|
|
83
83
|
def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil)
|
|
@@ -75,9 +75,9 @@ module Stripe
|
|
|
75
75
|
# Selected network to process the payment on. Depends on the available networks of the card.
|
|
76
76
|
attr_accessor :network
|
|
77
77
|
# An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
|
|
78
|
-
# for authentication based on risk level and [other requirements](https://docs.
|
|
78
|
+
# for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
|
|
79
79
|
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
|
80
|
-
# Read our guide on [manually requesting 3D Secure](https://docs.
|
|
80
|
+
# 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.
|
|
81
81
|
attr_accessor :request_three_d_secure
|
|
82
82
|
|
|
83
83
|
def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil)
|
|
@@ -18,6 +18,18 @@ module Stripe
|
|
|
18
18
|
@value = value
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
|
+
|
|
22
|
+
class Monetary < ::Stripe::RequestParams
|
|
23
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
24
|
+
attr_accessor :value
|
|
25
|
+
# 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).
|
|
26
|
+
attr_accessor :currency
|
|
27
|
+
|
|
28
|
+
def initialize(value: nil, currency: nil)
|
|
29
|
+
@value = value
|
|
30
|
+
@currency = currency
|
|
31
|
+
end
|
|
32
|
+
end
|
|
21
33
|
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
|
22
34
|
attr_accessor :type
|
|
23
35
|
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|
|
@@ -103,6 +115,18 @@ module Stripe
|
|
|
103
115
|
@value = value
|
|
104
116
|
end
|
|
105
117
|
end
|
|
118
|
+
|
|
119
|
+
class Monetary < ::Stripe::RequestParams
|
|
120
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
121
|
+
attr_accessor :value
|
|
122
|
+
# 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).
|
|
123
|
+
attr_accessor :currency
|
|
124
|
+
|
|
125
|
+
def initialize(value: nil, currency: nil)
|
|
126
|
+
@value = value
|
|
127
|
+
@currency = currency
|
|
128
|
+
end
|
|
129
|
+
end
|
|
106
130
|
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
|
107
131
|
attr_accessor :type
|
|
108
132
|
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|