stripe 18.4.0.pre.alpha.1 → 18.4.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/event_types.rb +0 -356
- data/lib/stripe/object_types.rb +0 -42
- data/lib/stripe/params/account_create_params.rb +0 -32
- data/lib/stripe/params/account_person_create_params.rb +0 -32
- data/lib/stripe/params/account_person_update_params.rb +0 -32
- data/lib/stripe/params/account_session_create_params.rb +0 -17
- data/lib/stripe/params/account_update_params.rb +0 -32
- data/lib/stripe/params/billing/alert_create_params.rb +1 -121
- data/lib/stripe/params/billing/alert_list_params.rb +0 -4
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +1 -5
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -13
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -29
- data/lib/stripe/params/billing/meter_create_params.rb +0 -4
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
- data/lib/stripe/params/checkout/session_create_params.rb +1 -95
- data/lib/stripe/params/checkout/session_update_params.rb +0 -15
- data/lib/stripe/params/coupon_create_params.rb +1 -31
- data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
- data/lib/stripe/params/invoice_add_lines_params.rb +0 -15
- data/lib/stripe/params/invoice_create_preview_params.rb +13 -552
- data/lib/stripe/params/invoice_line_item_update_params.rb +0 -15
- data/lib/stripe/params/invoice_list_params.rb +0 -4
- data/lib/stripe/params/invoice_update_lines_params.rb +0 -15
- data/lib/stripe/params/issuing/card_list_params.rb +1 -34
- data/lib/stripe/params/payment_intent_confirm_params.rb +0 -38
- data/lib/stripe/params/payment_intent_create_params.rb +0 -51
- data/lib/stripe/params/payment_intent_update_params.rb +0 -34
- data/lib/stripe/params/payment_link_create_params.rb +0 -15
- data/lib/stripe/params/plan_create_params.rb +0 -15
- data/lib/stripe/params/price_create_params.rb +0 -15
- data/lib/stripe/params/product_create_params.rb +0 -16
- data/lib/stripe/params/product_update_params.rb +0 -16
- data/lib/stripe/params/quote_create_params.rb +8 -424
- data/lib/stripe/params/quote_update_params.rb +8 -424
- data/lib/stripe/params/setup_intent_confirm_params.rb +0 -29
- data/lib/stripe/params/setup_intent_create_params.rb +0 -29
- data/lib/stripe/params/setup_intent_update_params.rb +1 -30
- data/lib/stripe/params/subscription_create_params.rb +2 -126
- data/lib/stripe/params/subscription_item_create_params.rb +1 -69
- data/lib/stripe/params/subscription_item_update_params.rb +1 -69
- data/lib/stripe/params/subscription_list_params.rb +0 -4
- data/lib/stripe/params/subscription_schedule_amend_params.rb +8 -243
- data/lib/stripe/params/subscription_schedule_create_params.rb +3 -175
- data/lib/stripe/params/subscription_schedule_update_params.rb +3 -175
- data/lib/stripe/params/subscription_update_params.rb +2 -126
- data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
- data/lib/stripe/params/token_create_params.rb +0 -64
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +1 -8
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -4
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +1 -4
- data/lib/stripe/params/v2/core/account_create_params.rb +32 -716
- data/lib/stripe/params/v2/core/account_token_create_params.rb +24 -238
- data/lib/stripe/params/v2/core/account_update_params.rb +32 -702
- data/lib/stripe/params/v2/core/event_list_params.rb +1 -4
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -8
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -4
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +1 -12
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +1 -25
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +1 -4
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -19
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -4
- data/lib/stripe/params.rb +0 -134
- data/lib/stripe/resources/account_session.rb +0 -54
- data/lib/stripe/resources/application_fee.rb +0 -2
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/billing/alert.rb +1 -105
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -84
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
- data/lib/stripe/resources/billing/credit_grant.rb +2 -58
- data/lib/stripe/resources/billing/meter.rb +0 -2
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
- data/lib/stripe/resources/capital/financing_offer.rb +0 -41
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +0 -18
- data/lib/stripe/resources/checkout/session.rb +0 -92
- data/lib/stripe/resources/confirmation_token.rb +0 -18
- data/lib/stripe/resources/coupon.rb +0 -34
- data/lib/stripe/resources/discount.rb +1 -20
- data/lib/stripe/resources/identity/verification_report.rb +0 -4
- data/lib/stripe/resources/invoice.rb +0 -34
- data/lib/stripe/resources/invoice_item.rb +2 -106
- data/lib/stripe/resources/invoice_line_item.rb +1 -107
- data/lib/stripe/resources/issuing/card.rb +0 -4
- data/lib/stripe/resources/payment_intent.rb +0 -62
- data/lib/stripe/resources/payment_method.rb +0 -38
- data/lib/stripe/resources/person.rb +0 -36
- data/lib/stripe/resources/plan.rb +0 -2
- data/lib/stripe/resources/price.rb +0 -2
- data/lib/stripe/resources/quote.rb +1 -238
- data/lib/stripe/resources/quote_line.rb +0 -6
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -34
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -94
- data/lib/stripe/resources/setup_intent.rb +0 -40
- data/lib/stripe/resources/subscription.rb +1 -62
- data/lib/stripe/resources/subscription_item.rb +1 -24
- data/lib/stripe/resources/subscription_schedule.rb +0 -94
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +0 -128
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/transfer.rb +0 -4
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -46
- data/lib/stripe/resources/v2/billing/profile.rb +1 -0
- data/lib/stripe/resources/v2/core/account.rb +27 -1073
- data/lib/stripe/resources/v2/core/event.rb +1 -50
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -35
- data/lib/stripe/resources/v2/money_management/financial_address.rb +29 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -87
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/payout_method.rb +3 -24
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -34
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -56
- data/lib/stripe/resources.rb +0 -134
- data/lib/stripe/services/identity_service.rb +1 -2
- data/lib/stripe/services/issuing_service.rb +1 -2
- data/lib/stripe/services/payment_method_service.rb +0 -11
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/subscription_service.rb +0 -22
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -3
- data/lib/stripe/services/v1_services.rb +1 -6
- data/lib/stripe/services/v2/billing_service.rb +1 -14
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2/money_management_service.rb +1 -5
- data/lib/stripe/services/v2/test_helper_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -5
- data/lib/stripe/services.rb +0 -49
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_event_notification_handler.rb +431 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +1 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +751 -23957
- metadata +2 -318
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -86
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -86
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -84
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -84
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -78
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -91
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -82
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -82
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +0 -58
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +0 -60
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +0 -38
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +0 -20
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -48
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +0 -65
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +0 -38
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +0 -61
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +0 -61
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +0 -61
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -44
- data/lib/stripe/params/balance_transfer_create_params.rb +0 -66
- data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +0 -37
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -138
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
- data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +0 -25
- data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +0 -22
- data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +0 -13
- data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +0 -16
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +0 -29
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_create_params.rb +0 -21
- data/lib/stripe/params/issuing/program_list_params.rb +0 -24
- data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_update_params.rb +0 -21
- data/lib/stripe/params/payment_method_check_balance_params.rb +0 -13
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +0 -81
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +0 -15
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +0 -41
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
- data/lib/stripe/params/subscription_pause_params.rb +0 -33
- data/lib/stripe/params/tax/location_create_params.rb +0 -54
- data/lib/stripe/params/tax/location_list_params.rb +0 -27
- data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +0 -39
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -425
- data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +0 -49
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -278
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +0 -51
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +0 -10
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +0 -20
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +0 -46
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +0 -68
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -57
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -161
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +0 -46
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +0 -10
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +0 -31
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +0 -12
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +0 -39
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +0 -94
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +0 -10
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +0 -17
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +0 -94
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
- data/lib/stripe/resources/balance_transfer.rb +0 -139
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -509
- data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +0 -143
- data/lib/stripe/resources/identity/blocklist_entry.rb +0 -116
- data/lib/stripe/resources/issuing/program.rb +0 -69
- data/lib/stripe/resources/payment_method_balance.rb +0 -68
- data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
- data/lib/stripe/resources/radar/account_evaluation.rb +0 -145
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -126
- data/lib/stripe/resources/tax/location.rb +0 -72
- data/lib/stripe/resources/transit_balance.rb +0 -45
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -483
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -274
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
- data/lib/stripe/resources/v2/iam/api_key.rb +0 -129
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +0 -94
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -186
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +0 -92
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +0 -78
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
- data/lib/stripe/resources/v2/tax/manual_rule.rb +0 -115
- data/lib/stripe/services/balance_transfer_service.rb +0 -17
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +0 -63
- data/lib/stripe/services/delegated_checkout_service.rb +0 -13
- data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +0 -50
- data/lib/stripe/services/identity/blocklist_entry_service.rb +0 -71
- data/lib/stripe/services/issuing/program_service.rb +0 -52
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
- data/lib/stripe/services/product_catalog_service.rb +0 -13
- data/lib/stripe/services/radar/account_evaluation_service.rb +0 -41
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment_service.rb +0 -13
- data/lib/stripe/services/tax/location_service.rb +0 -45
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +0 -32
- data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -54
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
- data/lib/stripe/services/v2/iam/api_key_service.rb +0 -76
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +0 -43
- data/lib/stripe/services/v2/payment_service.rb +0 -17
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +0 -72
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +0 -45
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -38
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +0 -65
- data/lib/stripe/services/v2/tax_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
|
@@ -77,29 +77,6 @@ module Stripe
|
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
class BillingSchedulesAction < ::Stripe::RequestParams
|
|
81
|
-
class AppliesTo < ::Stripe::RequestParams
|
|
82
|
-
# The ID of the price object.
|
|
83
|
-
attr_accessor :price
|
|
84
|
-
# Controls which subscription items the billing schedule applies to.
|
|
85
|
-
attr_accessor :type
|
|
86
|
-
|
|
87
|
-
def initialize(price: nil, type: nil)
|
|
88
|
-
@price = price
|
|
89
|
-
@type = type
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
# Specify which subscription items the billing schedule applies to.
|
|
93
|
-
attr_accessor :applies_to
|
|
94
|
-
# Select the action.
|
|
95
|
-
attr_accessor :type
|
|
96
|
-
|
|
97
|
-
def initialize(applies_to: nil, type: nil)
|
|
98
|
-
@applies_to = applies_to
|
|
99
|
-
@type = type
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
|
|
103
80
|
class DiscountAction < ::Stripe::RequestParams
|
|
104
81
|
class Add < ::Stripe::RequestParams
|
|
105
82
|
class DiscountEnd < ::Stripe::RequestParams
|
|
@@ -110,49 +87,6 @@ module Stripe
|
|
|
110
87
|
@type = type
|
|
111
88
|
end
|
|
112
89
|
end
|
|
113
|
-
|
|
114
|
-
class Settings < ::Stripe::RequestParams
|
|
115
|
-
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
116
|
-
class Custom < ::Stripe::RequestParams
|
|
117
|
-
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
118
|
-
attr_accessor :day_of_month
|
|
119
|
-
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
120
|
-
attr_accessor :hour
|
|
121
|
-
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
122
|
-
attr_accessor :minute
|
|
123
|
-
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
124
|
-
attr_accessor :month
|
|
125
|
-
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
126
|
-
attr_accessor :second
|
|
127
|
-
|
|
128
|
-
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
129
|
-
@day_of_month = day_of_month
|
|
130
|
-
@hour = hour
|
|
131
|
-
@minute = minute
|
|
132
|
-
@month = month
|
|
133
|
-
@second = second
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
137
|
-
attr_accessor :custom
|
|
138
|
-
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
139
|
-
attr_accessor :type
|
|
140
|
-
|
|
141
|
-
def initialize(custom: nil, type: nil)
|
|
142
|
-
@custom = custom
|
|
143
|
-
@type = type
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
# Configures service period cycle anchoring.
|
|
147
|
-
attr_accessor :service_period_anchor_config
|
|
148
|
-
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
149
|
-
attr_accessor :start_date
|
|
150
|
-
|
|
151
|
-
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
152
|
-
@service_period_anchor_config = service_period_anchor_config
|
|
153
|
-
@start_date = start_date
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
90
|
# The coupon code to redeem.
|
|
157
91
|
attr_accessor :coupon
|
|
158
92
|
# An ID of an existing discount for a coupon that was already redeemed.
|
|
@@ -163,23 +97,19 @@ module Stripe
|
|
|
163
97
|
attr_accessor :index
|
|
164
98
|
# The promotion code to redeem.
|
|
165
99
|
attr_accessor :promotion_code
|
|
166
|
-
# Settings for discount application including service period anchoring.
|
|
167
|
-
attr_accessor :settings
|
|
168
100
|
|
|
169
101
|
def initialize(
|
|
170
102
|
coupon: nil,
|
|
171
103
|
discount: nil,
|
|
172
104
|
discount_end: nil,
|
|
173
105
|
index: nil,
|
|
174
|
-
promotion_code: nil
|
|
175
|
-
settings: nil
|
|
106
|
+
promotion_code: nil
|
|
176
107
|
)
|
|
177
108
|
@coupon = coupon
|
|
178
109
|
@discount = discount
|
|
179
110
|
@discount_end = discount_end
|
|
180
111
|
@index = index
|
|
181
112
|
@promotion_code = promotion_code
|
|
182
|
-
@settings = settings
|
|
183
113
|
end
|
|
184
114
|
end
|
|
185
115
|
|
|
@@ -199,62 +129,17 @@ module Stripe
|
|
|
199
129
|
end
|
|
200
130
|
|
|
201
131
|
class Set < ::Stripe::RequestParams
|
|
202
|
-
class Settings < ::Stripe::RequestParams
|
|
203
|
-
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
204
|
-
class Custom < ::Stripe::RequestParams
|
|
205
|
-
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
206
|
-
attr_accessor :day_of_month
|
|
207
|
-
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
208
|
-
attr_accessor :hour
|
|
209
|
-
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
210
|
-
attr_accessor :minute
|
|
211
|
-
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
212
|
-
attr_accessor :month
|
|
213
|
-
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
214
|
-
attr_accessor :second
|
|
215
|
-
|
|
216
|
-
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
217
|
-
@day_of_month = day_of_month
|
|
218
|
-
@hour = hour
|
|
219
|
-
@minute = minute
|
|
220
|
-
@month = month
|
|
221
|
-
@second = second
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
225
|
-
attr_accessor :custom
|
|
226
|
-
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
227
|
-
attr_accessor :type
|
|
228
|
-
|
|
229
|
-
def initialize(custom: nil, type: nil)
|
|
230
|
-
@custom = custom
|
|
231
|
-
@type = type
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
# Configures service period cycle anchoring.
|
|
235
|
-
attr_accessor :service_period_anchor_config
|
|
236
|
-
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
237
|
-
attr_accessor :start_date
|
|
238
|
-
|
|
239
|
-
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
240
|
-
@service_period_anchor_config = service_period_anchor_config
|
|
241
|
-
@start_date = start_date
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
132
|
# The coupon code to replace the `discounts` array with.
|
|
245
133
|
attr_accessor :coupon
|
|
246
134
|
# An ID of an existing discount to replace the `discounts` array with.
|
|
247
135
|
attr_accessor :discount
|
|
248
136
|
# An ID of an existing promotion code to replace the `discounts` array with.
|
|
249
137
|
attr_accessor :promotion_code
|
|
250
|
-
# Settings for discount application including service period anchoring.
|
|
251
|
-
attr_accessor :settings
|
|
252
138
|
|
|
253
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil
|
|
139
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
254
140
|
@coupon = coupon
|
|
255
141
|
@discount = discount
|
|
256
142
|
@promotion_code = promotion_code
|
|
257
|
-
@settings = settings
|
|
258
143
|
end
|
|
259
144
|
end
|
|
260
145
|
# Details of the discount to add.
|
|
@@ -302,49 +187,6 @@ module Stripe
|
|
|
302
187
|
@type = type
|
|
303
188
|
end
|
|
304
189
|
end
|
|
305
|
-
|
|
306
|
-
class Settings < ::Stripe::RequestParams
|
|
307
|
-
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
308
|
-
class Custom < ::Stripe::RequestParams
|
|
309
|
-
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
310
|
-
attr_accessor :day_of_month
|
|
311
|
-
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
312
|
-
attr_accessor :hour
|
|
313
|
-
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
314
|
-
attr_accessor :minute
|
|
315
|
-
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
316
|
-
attr_accessor :month
|
|
317
|
-
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
318
|
-
attr_accessor :second
|
|
319
|
-
|
|
320
|
-
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
321
|
-
@day_of_month = day_of_month
|
|
322
|
-
@hour = hour
|
|
323
|
-
@minute = minute
|
|
324
|
-
@month = month
|
|
325
|
-
@second = second
|
|
326
|
-
end
|
|
327
|
-
end
|
|
328
|
-
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
329
|
-
attr_accessor :custom
|
|
330
|
-
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
331
|
-
attr_accessor :type
|
|
332
|
-
|
|
333
|
-
def initialize(custom: nil, type: nil)
|
|
334
|
-
@custom = custom
|
|
335
|
-
@type = type
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
# Configures service period cycle anchoring.
|
|
339
|
-
attr_accessor :service_period_anchor_config
|
|
340
|
-
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
341
|
-
attr_accessor :start_date
|
|
342
|
-
|
|
343
|
-
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
344
|
-
@service_period_anchor_config = service_period_anchor_config
|
|
345
|
-
@start_date = start_date
|
|
346
|
-
end
|
|
347
|
-
end
|
|
348
190
|
# ID of the coupon to create a new discount for.
|
|
349
191
|
attr_accessor :coupon
|
|
350
192
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -353,21 +195,12 @@ module Stripe
|
|
|
353
195
|
attr_accessor :discount_end
|
|
354
196
|
# ID of the promotion code to create a new discount for.
|
|
355
197
|
attr_accessor :promotion_code
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
def initialize(
|
|
360
|
-
coupon: nil,
|
|
361
|
-
discount: nil,
|
|
362
|
-
discount_end: nil,
|
|
363
|
-
promotion_code: nil,
|
|
364
|
-
settings: nil
|
|
365
|
-
)
|
|
198
|
+
|
|
199
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
366
200
|
@coupon = coupon
|
|
367
201
|
@discount = discount
|
|
368
202
|
@discount_end = discount_end
|
|
369
203
|
@promotion_code = promotion_code
|
|
370
|
-
@settings = settings
|
|
371
204
|
end
|
|
372
205
|
end
|
|
373
206
|
|
|
@@ -394,8 +227,6 @@ module Stripe
|
|
|
394
227
|
attr_accessor :tax_rates
|
|
395
228
|
# Options that configure the trial on the subscription item.
|
|
396
229
|
attr_accessor :trial
|
|
397
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
398
|
-
attr_accessor :trial_offer
|
|
399
230
|
|
|
400
231
|
def initialize(
|
|
401
232
|
discounts: nil,
|
|
@@ -403,8 +234,7 @@ module Stripe
|
|
|
403
234
|
price: nil,
|
|
404
235
|
quantity: nil,
|
|
405
236
|
tax_rates: nil,
|
|
406
|
-
trial: nil
|
|
407
|
-
trial_offer: nil
|
|
237
|
+
trial: nil
|
|
408
238
|
)
|
|
409
239
|
@discounts = discounts
|
|
410
240
|
@metadata = metadata
|
|
@@ -412,7 +242,6 @@ module Stripe
|
|
|
412
242
|
@quantity = quantity
|
|
413
243
|
@tax_rates = tax_rates
|
|
414
244
|
@trial = trial
|
|
415
|
-
@trial_offer = trial_offer
|
|
416
245
|
end
|
|
417
246
|
end
|
|
418
247
|
|
|
@@ -452,49 +281,6 @@ module Stripe
|
|
|
452
281
|
@type = type
|
|
453
282
|
end
|
|
454
283
|
end
|
|
455
|
-
|
|
456
|
-
class Settings < ::Stripe::RequestParams
|
|
457
|
-
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
458
|
-
class Custom < ::Stripe::RequestParams
|
|
459
|
-
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
460
|
-
attr_accessor :day_of_month
|
|
461
|
-
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
462
|
-
attr_accessor :hour
|
|
463
|
-
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
464
|
-
attr_accessor :minute
|
|
465
|
-
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
466
|
-
attr_accessor :month
|
|
467
|
-
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
468
|
-
attr_accessor :second
|
|
469
|
-
|
|
470
|
-
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
471
|
-
@day_of_month = day_of_month
|
|
472
|
-
@hour = hour
|
|
473
|
-
@minute = minute
|
|
474
|
-
@month = month
|
|
475
|
-
@second = second
|
|
476
|
-
end
|
|
477
|
-
end
|
|
478
|
-
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
479
|
-
attr_accessor :custom
|
|
480
|
-
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
481
|
-
attr_accessor :type
|
|
482
|
-
|
|
483
|
-
def initialize(custom: nil, type: nil)
|
|
484
|
-
@custom = custom
|
|
485
|
-
@type = type
|
|
486
|
-
end
|
|
487
|
-
end
|
|
488
|
-
# Configures service period cycle anchoring.
|
|
489
|
-
attr_accessor :service_period_anchor_config
|
|
490
|
-
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
491
|
-
attr_accessor :start_date
|
|
492
|
-
|
|
493
|
-
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
494
|
-
@service_period_anchor_config = service_period_anchor_config
|
|
495
|
-
@start_date = start_date
|
|
496
|
-
end
|
|
497
|
-
end
|
|
498
284
|
# ID of the coupon to create a new discount for.
|
|
499
285
|
attr_accessor :coupon
|
|
500
286
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -503,21 +289,12 @@ module Stripe
|
|
|
503
289
|
attr_accessor :discount_end
|
|
504
290
|
# ID of the promotion code to create a new discount for.
|
|
505
291
|
attr_accessor :promotion_code
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
def initialize(
|
|
510
|
-
coupon: nil,
|
|
511
|
-
discount: nil,
|
|
512
|
-
discount_end: nil,
|
|
513
|
-
promotion_code: nil,
|
|
514
|
-
settings: nil
|
|
515
|
-
)
|
|
292
|
+
|
|
293
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
516
294
|
@coupon = coupon
|
|
517
295
|
@discount = discount
|
|
518
296
|
@discount_end = discount_end
|
|
519
297
|
@promotion_code = promotion_code
|
|
520
|
-
@settings = settings
|
|
521
298
|
end
|
|
522
299
|
end
|
|
523
300
|
|
|
@@ -544,8 +321,6 @@ module Stripe
|
|
|
544
321
|
attr_accessor :tax_rates
|
|
545
322
|
# 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`.
|
|
546
323
|
attr_accessor :trial
|
|
547
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
548
|
-
attr_accessor :trial_offer
|
|
549
324
|
|
|
550
325
|
def initialize(
|
|
551
326
|
discounts: nil,
|
|
@@ -553,8 +328,7 @@ module Stripe
|
|
|
553
328
|
price: nil,
|
|
554
329
|
quantity: nil,
|
|
555
330
|
tax_rates: nil,
|
|
556
|
-
trial: nil
|
|
557
|
-
trial_offer: nil
|
|
331
|
+
trial: nil
|
|
558
332
|
)
|
|
559
333
|
@discounts = discounts
|
|
560
334
|
@metadata = metadata
|
|
@@ -562,7 +336,6 @@ module Stripe
|
|
|
562
336
|
@quantity = quantity
|
|
563
337
|
@tax_rates = tax_rates
|
|
564
338
|
@trial = trial
|
|
565
|
-
@trial_offer = trial_offer
|
|
566
339
|
end
|
|
567
340
|
end
|
|
568
341
|
# 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.
|
|
@@ -642,12 +415,8 @@ module Stripe
|
|
|
642
415
|
attr_accessor :amendment_start
|
|
643
416
|
# For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
|
|
644
417
|
attr_accessor :billing_cycle_anchor
|
|
645
|
-
# Actions to apply to the billing schedules.
|
|
646
|
-
attr_accessor :billing_schedules_actions
|
|
647
418
|
# Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
648
419
|
attr_accessor :discount_actions
|
|
649
|
-
# Configures how the subscription schedule handles billing for phase transitions.
|
|
650
|
-
attr_accessor :effective_at
|
|
651
420
|
# Changes to the subscription items during the amendment time span.
|
|
652
421
|
attr_accessor :item_actions
|
|
653
422
|
# Instructions for how to modify phase metadata
|
|
@@ -665,9 +434,7 @@ module Stripe
|
|
|
665
434
|
amendment_end: nil,
|
|
666
435
|
amendment_start: nil,
|
|
667
436
|
billing_cycle_anchor: nil,
|
|
668
|
-
billing_schedules_actions: nil,
|
|
669
437
|
discount_actions: nil,
|
|
670
|
-
effective_at: nil,
|
|
671
438
|
item_actions: nil,
|
|
672
439
|
metadata_actions: nil,
|
|
673
440
|
proration_behavior: nil,
|
|
@@ -678,9 +445,7 @@ module Stripe
|
|
|
678
445
|
@amendment_end = amendment_end
|
|
679
446
|
@amendment_start = amendment_start
|
|
680
447
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
681
|
-
@billing_schedules_actions = billing_schedules_actions
|
|
682
448
|
@discount_actions = discount_actions
|
|
683
|
-
@effective_at = effective_at
|
|
684
449
|
@item_actions = item_actions
|
|
685
450
|
@metadata_actions = metadata_actions
|
|
686
451
|
@proration_behavior = proration_behavior
|
|
@@ -23,58 +23,6 @@ module Stripe
|
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
class BillingSchedule < ::Stripe::RequestParams
|
|
27
|
-
class AppliesTo < ::Stripe::RequestParams
|
|
28
|
-
# The ID of the price object.
|
|
29
|
-
attr_accessor :price
|
|
30
|
-
# Controls which subscription items the billing schedule applies to.
|
|
31
|
-
attr_accessor :type
|
|
32
|
-
|
|
33
|
-
def initialize(price: nil, type: nil)
|
|
34
|
-
@price = price
|
|
35
|
-
@type = type
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
class BillUntil < ::Stripe::RequestParams
|
|
40
|
-
class Duration < ::Stripe::RequestParams
|
|
41
|
-
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
42
|
-
attr_accessor :interval
|
|
43
|
-
# The multiplier applied to the interval.
|
|
44
|
-
attr_accessor :interval_count
|
|
45
|
-
|
|
46
|
-
def initialize(interval: nil, interval_count: nil)
|
|
47
|
-
@interval = interval
|
|
48
|
-
@interval_count = interval_count
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
# Specifies the billing period.
|
|
52
|
-
attr_accessor :duration
|
|
53
|
-
# The end date of the billing schedule.
|
|
54
|
-
attr_accessor :timestamp
|
|
55
|
-
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
56
|
-
attr_accessor :type
|
|
57
|
-
|
|
58
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
59
|
-
@duration = duration
|
|
60
|
-
@timestamp = timestamp
|
|
61
|
-
@type = type
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
# Configure billing schedule differently for individual subscription items.
|
|
65
|
-
attr_accessor :applies_to
|
|
66
|
-
# The end date for the billing schedule.
|
|
67
|
-
attr_accessor :bill_until
|
|
68
|
-
# Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
69
|
-
attr_accessor :key
|
|
70
|
-
|
|
71
|
-
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
72
|
-
@applies_to = applies_to
|
|
73
|
-
@bill_until = bill_until
|
|
74
|
-
@key = key
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
|
|
78
26
|
class DefaultSettings < ::Stripe::RequestParams
|
|
79
27
|
class AutomaticTax < ::Stripe::RequestParams
|
|
80
28
|
class Liability < ::Stripe::RequestParams
|
|
@@ -166,8 +114,6 @@ module Stripe
|
|
|
166
114
|
attr_accessor :invoice_settings
|
|
167
115
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
168
116
|
attr_accessor :on_behalf_of
|
|
169
|
-
# Configures how the subscription schedule handles billing for phase transitions.
|
|
170
|
-
attr_accessor :phase_effective_at
|
|
171
117
|
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
|
172
118
|
attr_accessor :transfer_data
|
|
173
119
|
|
|
@@ -181,7 +127,6 @@ module Stripe
|
|
|
181
127
|
description: nil,
|
|
182
128
|
invoice_settings: nil,
|
|
183
129
|
on_behalf_of: nil,
|
|
184
|
-
phase_effective_at: nil,
|
|
185
130
|
transfer_data: nil
|
|
186
131
|
)
|
|
187
132
|
@application_fee_percent = application_fee_percent
|
|
@@ -193,7 +138,6 @@ module Stripe
|
|
|
193
138
|
@description = description
|
|
194
139
|
@invoice_settings = invoice_settings
|
|
195
140
|
@on_behalf_of = on_behalf_of
|
|
196
|
-
@phase_effective_at = phase_effective_at
|
|
197
141
|
@transfer_data = transfer_data
|
|
198
142
|
end
|
|
199
143
|
end
|
|
@@ -399,49 +343,6 @@ module Stripe
|
|
|
399
343
|
@type = type
|
|
400
344
|
end
|
|
401
345
|
end
|
|
402
|
-
|
|
403
|
-
class Settings < ::Stripe::RequestParams
|
|
404
|
-
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
405
|
-
class Custom < ::Stripe::RequestParams
|
|
406
|
-
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
407
|
-
attr_accessor :day_of_month
|
|
408
|
-
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
409
|
-
attr_accessor :hour
|
|
410
|
-
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
411
|
-
attr_accessor :minute
|
|
412
|
-
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
413
|
-
attr_accessor :month
|
|
414
|
-
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
415
|
-
attr_accessor :second
|
|
416
|
-
|
|
417
|
-
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
418
|
-
@day_of_month = day_of_month
|
|
419
|
-
@hour = hour
|
|
420
|
-
@minute = minute
|
|
421
|
-
@month = month
|
|
422
|
-
@second = second
|
|
423
|
-
end
|
|
424
|
-
end
|
|
425
|
-
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
426
|
-
attr_accessor :custom
|
|
427
|
-
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
428
|
-
attr_accessor :type
|
|
429
|
-
|
|
430
|
-
def initialize(custom: nil, type: nil)
|
|
431
|
-
@custom = custom
|
|
432
|
-
@type = type
|
|
433
|
-
end
|
|
434
|
-
end
|
|
435
|
-
# Configures service period cycle anchoring.
|
|
436
|
-
attr_accessor :service_period_anchor_config
|
|
437
|
-
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
|
|
438
|
-
attr_accessor :start_date
|
|
439
|
-
|
|
440
|
-
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
441
|
-
@service_period_anchor_config = service_period_anchor_config
|
|
442
|
-
@start_date = start_date
|
|
443
|
-
end
|
|
444
|
-
end
|
|
445
346
|
# ID of the coupon to create a new discount for.
|
|
446
347
|
attr_accessor :coupon
|
|
447
348
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -450,21 +351,12 @@ module Stripe
|
|
|
450
351
|
attr_accessor :discount_end
|
|
451
352
|
# ID of the promotion code to create a new discount for.
|
|
452
353
|
attr_accessor :promotion_code
|
|
453
|
-
# Settings for discount application including service period anchoring.
|
|
454
|
-
attr_accessor :settings
|
|
455
354
|
|
|
456
|
-
def initialize(
|
|
457
|
-
coupon: nil,
|
|
458
|
-
discount: nil,
|
|
459
|
-
discount_end: nil,
|
|
460
|
-
promotion_code: nil,
|
|
461
|
-
settings: nil
|
|
462
|
-
)
|
|
355
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
463
356
|
@coupon = coupon
|
|
464
357
|
@discount = discount
|
|
465
358
|
@discount_end = discount_end
|
|
466
359
|
@promotion_code = promotion_code
|
|
467
|
-
@settings = settings
|
|
468
360
|
end
|
|
469
361
|
end
|
|
470
362
|
|
|
@@ -542,49 +434,6 @@ module Stripe
|
|
|
542
434
|
@type = type
|
|
543
435
|
end
|
|
544
436
|
end
|
|
545
|
-
|
|
546
|
-
class Settings < ::Stripe::RequestParams
|
|
547
|
-
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
548
|
-
class Custom < ::Stripe::RequestParams
|
|
549
|
-
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
550
|
-
attr_accessor :day_of_month
|
|
551
|
-
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
552
|
-
attr_accessor :hour
|
|
553
|
-
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
554
|
-
attr_accessor :minute
|
|
555
|
-
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
556
|
-
attr_accessor :month
|
|
557
|
-
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
558
|
-
attr_accessor :second
|
|
559
|
-
|
|
560
|
-
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
561
|
-
@day_of_month = day_of_month
|
|
562
|
-
@hour = hour
|
|
563
|
-
@minute = minute
|
|
564
|
-
@month = month
|
|
565
|
-
@second = second
|
|
566
|
-
end
|
|
567
|
-
end
|
|
568
|
-
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
569
|
-
attr_accessor :custom
|
|
570
|
-
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
571
|
-
attr_accessor :type
|
|
572
|
-
|
|
573
|
-
def initialize(custom: nil, type: nil)
|
|
574
|
-
@custom = custom
|
|
575
|
-
@type = type
|
|
576
|
-
end
|
|
577
|
-
end
|
|
578
|
-
# Configures service period cycle anchoring.
|
|
579
|
-
attr_accessor :service_period_anchor_config
|
|
580
|
-
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
|
|
581
|
-
attr_accessor :start_date
|
|
582
|
-
|
|
583
|
-
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
584
|
-
@service_period_anchor_config = service_period_anchor_config
|
|
585
|
-
@start_date = start_date
|
|
586
|
-
end
|
|
587
|
-
end
|
|
588
437
|
# ID of the coupon to create a new discount for.
|
|
589
438
|
attr_accessor :coupon
|
|
590
439
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -593,21 +442,12 @@ module Stripe
|
|
|
593
442
|
attr_accessor :discount_end
|
|
594
443
|
# ID of the promotion code to create a new discount for.
|
|
595
444
|
attr_accessor :promotion_code
|
|
596
|
-
# Settings for discount application including service period anchoring.
|
|
597
|
-
attr_accessor :settings
|
|
598
445
|
|
|
599
|
-
def initialize(
|
|
600
|
-
coupon: nil,
|
|
601
|
-
discount: nil,
|
|
602
|
-
discount_end: nil,
|
|
603
|
-
promotion_code: nil,
|
|
604
|
-
settings: nil
|
|
605
|
-
)
|
|
446
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
606
447
|
@coupon = coupon
|
|
607
448
|
@discount = discount
|
|
608
449
|
@discount_end = discount_end
|
|
609
450
|
@promotion_code = promotion_code
|
|
610
|
-
@settings = settings
|
|
611
451
|
end
|
|
612
452
|
end
|
|
613
453
|
|
|
@@ -682,8 +522,6 @@ module Stripe
|
|
|
682
522
|
attr_accessor :tax_rates
|
|
683
523
|
# Options that configure the trial on the subscription item.
|
|
684
524
|
attr_accessor :trial
|
|
685
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
686
|
-
attr_accessor :trial_offer
|
|
687
525
|
|
|
688
526
|
def initialize(
|
|
689
527
|
billing_thresholds: nil,
|
|
@@ -694,8 +532,7 @@ module Stripe
|
|
|
694
532
|
price_data: nil,
|
|
695
533
|
quantity: nil,
|
|
696
534
|
tax_rates: nil,
|
|
697
|
-
trial: nil
|
|
698
|
-
trial_offer: nil
|
|
535
|
+
trial: nil
|
|
699
536
|
)
|
|
700
537
|
@billing_thresholds = billing_thresholds
|
|
701
538
|
@discounts = discounts
|
|
@@ -706,7 +543,6 @@ module Stripe
|
|
|
706
543
|
@quantity = quantity
|
|
707
544
|
@tax_rates = tax_rates
|
|
708
545
|
@trial = trial
|
|
709
|
-
@trial_offer = trial_offer
|
|
710
546
|
end
|
|
711
547
|
end
|
|
712
548
|
|
|
@@ -771,8 +607,6 @@ module Stripe
|
|
|
771
607
|
attr_accessor :discounts
|
|
772
608
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
773
609
|
attr_accessor :duration
|
|
774
|
-
# Configures how the subscription schedule handles billing for phase transitions.
|
|
775
|
-
attr_accessor :effective_at
|
|
776
610
|
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
777
611
|
attr_accessor :end_date
|
|
778
612
|
# All invoices will be billed using the specified settings.
|
|
@@ -811,7 +645,6 @@ module Stripe
|
|
|
811
645
|
description: nil,
|
|
812
646
|
discounts: nil,
|
|
813
647
|
duration: nil,
|
|
814
|
-
effective_at: nil,
|
|
815
648
|
end_date: nil,
|
|
816
649
|
invoice_settings: nil,
|
|
817
650
|
items: nil,
|
|
@@ -837,7 +670,6 @@ module Stripe
|
|
|
837
670
|
@description = description
|
|
838
671
|
@discounts = discounts
|
|
839
672
|
@duration = duration
|
|
840
|
-
@effective_at = effective_at
|
|
841
673
|
@end_date = end_date
|
|
842
674
|
@invoice_settings = invoice_settings
|
|
843
675
|
@items = items
|
|
@@ -868,8 +700,6 @@ module Stripe
|
|
|
868
700
|
attr_accessor :billing_behavior
|
|
869
701
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
870
702
|
attr_accessor :billing_mode
|
|
871
|
-
# Sets the billing schedules for the subscription schedule.
|
|
872
|
-
attr_accessor :billing_schedules
|
|
873
703
|
# The identifier of the customer to create the subscription schedule for.
|
|
874
704
|
attr_accessor :customer
|
|
875
705
|
# The identifier of the account to create the subscription schedule for.
|
|
@@ -894,7 +724,6 @@ module Stripe
|
|
|
894
724
|
def initialize(
|
|
895
725
|
billing_behavior: nil,
|
|
896
726
|
billing_mode: nil,
|
|
897
|
-
billing_schedules: nil,
|
|
898
727
|
customer: nil,
|
|
899
728
|
customer_account: nil,
|
|
900
729
|
default_settings: nil,
|
|
@@ -908,7 +737,6 @@ module Stripe
|
|
|
908
737
|
)
|
|
909
738
|
@billing_behavior = billing_behavior
|
|
910
739
|
@billing_mode = billing_mode
|
|
911
|
-
@billing_schedules = billing_schedules
|
|
912
740
|
@customer = customer
|
|
913
741
|
@customer_account = customer_account
|
|
914
742
|
@default_settings = default_settings
|