stripe 18.2.0.pre.alpha.1 → 18.2.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/api_requestor.rb +0 -2
- data/lib/stripe/errors.rb +0 -3
- data/lib/stripe/event_types.rb +0 -356
- data/lib/stripe/object_types.rb +3 -40
- data/lib/stripe/params/account_create_params.rb +2 -34
- 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 +2 -34
- 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 +2 -93
- data/lib/stripe/params/checkout/session_update_params.rb +1 -13
- data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -13
- data/lib/stripe/params/invoice_create_preview_params.rb +3 -122
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -13
- data/lib/stripe/params/invoice_list_params.rb +0 -4
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -13
- data/lib/stripe/params/issuing/card_list_params.rb +1 -34
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2 -40
- data/lib/stripe/params/payment_intent_create_params.rb +2 -53
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +1 -35
- data/lib/stripe/params/payment_link_create_params.rb +1 -13
- data/lib/stripe/params/product_create_params.rb +1 -14
- data/lib/stripe/params/product_update_params.rb +1 -14
- data/lib/stripe/params/quote_create_params.rb +2 -222
- data/lib/stripe/params/quote_update_params.rb +2 -222
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/{issuing/program_retrieve_params.rb → reserve/hold_retrieve_params.rb} +2 -2
- data/lib/stripe/params/{identity/blocklist_entry_disable_params.rb → reserve/plan_retrieve_params.rb} +2 -2
- data/lib/stripe/params/{issuing/program_list_params.rb → reserve/release_list_params.rb} +20 -3
- data/lib/stripe/params/{identity/blocklist_entry_retrieve_params.rb → reserve/release_retrieve_params.rb} +2 -2
- 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 +0 -16
- data/lib/stripe/params/subscription_item_create_params.rb +0 -16
- data/lib/stripe/params/subscription_item_update_params.rb +0 -16
- data/lib/stripe/params/subscription_schedule_amend_params.rb +2 -41
- data/lib/stripe/params/subscription_schedule_create_params.rb +1 -69
- data/lib/stripe/params/subscription_schedule_update_params.rb +1 -69
- data/lib/stripe/params/subscription_update_params.rb +0 -16
- 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 +9 -716
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -237
- data/lib/stripe/params/v2/core/account_update_params.rb +9 -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/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 -8
- 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 +5 -125
- data/lib/stripe/resources/account_session.rb +0 -27
- 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/discount.rb +0 -2
- data/lib/stripe/resources/identity/verification_report.rb +0 -4
- data/lib/stripe/resources/invoice.rb +0 -16
- data/lib/stripe/resources/invoice_item.rb +2 -106
- data/lib/stripe/resources/invoice_line_item.rb +3 -107
- data/lib/stripe/resources/issuing/card.rb +0 -4
- data/lib/stripe/resources/payment_intent.rb +1 -63
- data/lib/stripe/resources/payment_method.rb +0 -38
- data/lib/stripe/resources/person.rb +0 -36
- 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 -16
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -94
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -0
- data/lib/stripe/resources/setup_intent.rb +0 -40
- data/lib/stripe/resources/subscription.rb +1 -20
- data/lib/stripe/resources/subscription_item.rb +1 -24
- data/lib/stripe/resources/subscription_schedule.rb +0 -94
- data/lib/stripe/resources/transfer.rb +0 -4
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -46
- data/lib/stripe/resources/v2/core/account.rb +5 -1073
- data/lib/stripe/resources/v2/core/event.rb +1 -50
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +1 -21
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +1 -21
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -35
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -4
- 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 +1 -47
- 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 +3 -132
- 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/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +1 -3
- data/lib/stripe/services/v1_services.rb +2 -5
- 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 +4 -47
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_event_notification_handler.rb +425 -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 +1295 -20425
- metadata +15 -306
- 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/identity/blocklist_entry_create_params.rb +0 -29
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
- data/lib/stripe/params/issuing/program_create_params.rb +0 -21
- 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 -60
- 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 -18
- 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_update_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_update_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 -479
- 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 -101
- data/lib/stripe/resources/radar/account_evaluation.rb +0 -116
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -126
- 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/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/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
|
@@ -346,18 +346,6 @@ 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
|
-
|
|
361
349
|
class Discount < ::Stripe::RequestParams
|
|
362
350
|
class DiscountEnd < ::Stripe::RequestParams
|
|
363
351
|
class Duration < ::Stripe::RequestParams
|
|
@@ -456,8 +444,6 @@ module Stripe
|
|
|
456
444
|
end
|
|
457
445
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
458
446
|
attr_accessor :billing_thresholds
|
|
459
|
-
# The trial offer to apply to this subscription item.
|
|
460
|
-
attr_accessor :current_trial
|
|
461
447
|
# The coupons to redeem into discounts for the subscription item.
|
|
462
448
|
attr_accessor :discounts
|
|
463
449
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
@@ -477,7 +463,6 @@ module Stripe
|
|
|
477
463
|
|
|
478
464
|
def initialize(
|
|
479
465
|
billing_thresholds: nil,
|
|
480
|
-
current_trial: nil,
|
|
481
466
|
discounts: nil,
|
|
482
467
|
metadata: nil,
|
|
483
468
|
plan: nil,
|
|
@@ -488,7 +473,6 @@ module Stripe
|
|
|
488
473
|
trial: nil
|
|
489
474
|
)
|
|
490
475
|
@billing_thresholds = billing_thresholds
|
|
491
|
-
@current_trial = current_trial
|
|
492
476
|
@discounts = discounts
|
|
493
477
|
@metadata = metadata
|
|
494
478
|
@plan = plan
|
|
@@ -12,18 +12,6 @@ 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
|
-
|
|
27
15
|
class Discount < ::Stripe::RequestParams
|
|
28
16
|
class DiscountEnd < ::Stripe::RequestParams
|
|
29
17
|
class Duration < ::Stripe::RequestParams
|
|
@@ -122,8 +110,6 @@ module Stripe
|
|
|
122
110
|
end
|
|
123
111
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
124
112
|
attr_accessor :billing_thresholds
|
|
125
|
-
# The trial offer to apply to this subscription item.
|
|
126
|
-
attr_accessor :current_trial
|
|
127
113
|
# The coupons to redeem into discounts for the subscription item.
|
|
128
114
|
attr_accessor :discounts
|
|
129
115
|
# Specifies which fields in the response should be expanded.
|
|
@@ -159,7 +145,6 @@ module Stripe
|
|
|
159
145
|
|
|
160
146
|
def initialize(
|
|
161
147
|
billing_thresholds: nil,
|
|
162
|
-
current_trial: nil,
|
|
163
148
|
discounts: nil,
|
|
164
149
|
expand: nil,
|
|
165
150
|
metadata: nil,
|
|
@@ -175,7 +160,6 @@ module Stripe
|
|
|
175
160
|
trial: nil
|
|
176
161
|
)
|
|
177
162
|
@billing_thresholds = billing_thresholds
|
|
178
|
-
@current_trial = current_trial
|
|
179
163
|
@discounts = discounts
|
|
180
164
|
@expand = expand
|
|
181
165
|
@metadata = metadata
|
|
@@ -12,18 +12,6 @@ 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
|
-
|
|
27
15
|
class Discount < ::Stripe::RequestParams
|
|
28
16
|
class DiscountEnd < ::Stripe::RequestParams
|
|
29
17
|
class Duration < ::Stripe::RequestParams
|
|
@@ -110,8 +98,6 @@ module Stripe
|
|
|
110
98
|
end
|
|
111
99
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
112
100
|
attr_accessor :billing_thresholds
|
|
113
|
-
# The trial offer to apply to this subscription item.
|
|
114
|
-
attr_accessor :current_trial
|
|
115
101
|
# The coupons to redeem into discounts for the subscription item.
|
|
116
102
|
attr_accessor :discounts
|
|
117
103
|
# Specifies which fields in the response should be expanded.
|
|
@@ -145,7 +131,6 @@ module Stripe
|
|
|
145
131
|
|
|
146
132
|
def initialize(
|
|
147
133
|
billing_thresholds: nil,
|
|
148
|
-
current_trial: nil,
|
|
149
134
|
discounts: nil,
|
|
150
135
|
expand: nil,
|
|
151
136
|
metadata: nil,
|
|
@@ -160,7 +145,6 @@ module Stripe
|
|
|
160
145
|
tax_rates: nil
|
|
161
146
|
)
|
|
162
147
|
@billing_thresholds = billing_thresholds
|
|
163
|
-
@current_trial = current_trial
|
|
164
148
|
@discounts = discounts
|
|
165
149
|
@expand = expand
|
|
166
150
|
@metadata = metadata
|
|
@@ -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
|
|
@@ -250,8 +227,6 @@ module Stripe
|
|
|
250
227
|
attr_accessor :tax_rates
|
|
251
228
|
# Options that configure the trial on the subscription item.
|
|
252
229
|
attr_accessor :trial
|
|
253
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
254
|
-
attr_accessor :trial_offer
|
|
255
230
|
|
|
256
231
|
def initialize(
|
|
257
232
|
discounts: nil,
|
|
@@ -259,8 +234,7 @@ module Stripe
|
|
|
259
234
|
price: nil,
|
|
260
235
|
quantity: nil,
|
|
261
236
|
tax_rates: nil,
|
|
262
|
-
trial: nil
|
|
263
|
-
trial_offer: nil
|
|
237
|
+
trial: nil
|
|
264
238
|
)
|
|
265
239
|
@discounts = discounts
|
|
266
240
|
@metadata = metadata
|
|
@@ -268,7 +242,6 @@ module Stripe
|
|
|
268
242
|
@quantity = quantity
|
|
269
243
|
@tax_rates = tax_rates
|
|
270
244
|
@trial = trial
|
|
271
|
-
@trial_offer = trial_offer
|
|
272
245
|
end
|
|
273
246
|
end
|
|
274
247
|
|
|
@@ -348,8 +321,6 @@ module Stripe
|
|
|
348
321
|
attr_accessor :tax_rates
|
|
349
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`.
|
|
350
323
|
attr_accessor :trial
|
|
351
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
352
|
-
attr_accessor :trial_offer
|
|
353
324
|
|
|
354
325
|
def initialize(
|
|
355
326
|
discounts: nil,
|
|
@@ -357,8 +328,7 @@ module Stripe
|
|
|
357
328
|
price: nil,
|
|
358
329
|
quantity: nil,
|
|
359
330
|
tax_rates: nil,
|
|
360
|
-
trial: nil
|
|
361
|
-
trial_offer: nil
|
|
331
|
+
trial: nil
|
|
362
332
|
)
|
|
363
333
|
@discounts = discounts
|
|
364
334
|
@metadata = metadata
|
|
@@ -366,7 +336,6 @@ module Stripe
|
|
|
366
336
|
@quantity = quantity
|
|
367
337
|
@tax_rates = tax_rates
|
|
368
338
|
@trial = trial
|
|
369
|
-
@trial_offer = trial_offer
|
|
370
339
|
end
|
|
371
340
|
end
|
|
372
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.
|
|
@@ -446,12 +415,8 @@ module Stripe
|
|
|
446
415
|
attr_accessor :amendment_start
|
|
447
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.
|
|
448
417
|
attr_accessor :billing_cycle_anchor
|
|
449
|
-
# Actions to apply to the billing schedules.
|
|
450
|
-
attr_accessor :billing_schedules_actions
|
|
451
418
|
# Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
452
419
|
attr_accessor :discount_actions
|
|
453
|
-
# 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.
|
|
454
|
-
attr_accessor :effective_at
|
|
455
420
|
# Changes to the subscription items during the amendment time span.
|
|
456
421
|
attr_accessor :item_actions
|
|
457
422
|
# Instructions for how to modify phase metadata
|
|
@@ -469,9 +434,7 @@ module Stripe
|
|
|
469
434
|
amendment_end: nil,
|
|
470
435
|
amendment_start: nil,
|
|
471
436
|
billing_cycle_anchor: nil,
|
|
472
|
-
billing_schedules_actions: nil,
|
|
473
437
|
discount_actions: nil,
|
|
474
|
-
effective_at: nil,
|
|
475
438
|
item_actions: nil,
|
|
476
439
|
metadata_actions: nil,
|
|
477
440
|
proration_behavior: nil,
|
|
@@ -482,9 +445,7 @@ module Stripe
|
|
|
482
445
|
@amendment_end = amendment_end
|
|
483
446
|
@amendment_start = amendment_start
|
|
484
447
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
485
|
-
@billing_schedules_actions = billing_schedules_actions
|
|
486
448
|
@discount_actions = discount_actions
|
|
487
|
-
@effective_at = effective_at
|
|
488
449
|
@item_actions = item_actions
|
|
489
450
|
@metadata_actions = metadata_actions
|
|
490
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. 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.
|
|
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
|
|
@@ -578,8 +522,6 @@ module Stripe
|
|
|
578
522
|
attr_accessor :tax_rates
|
|
579
523
|
# Options that configure the trial on the subscription item.
|
|
580
524
|
attr_accessor :trial
|
|
581
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
582
|
-
attr_accessor :trial_offer
|
|
583
525
|
|
|
584
526
|
def initialize(
|
|
585
527
|
billing_thresholds: nil,
|
|
@@ -590,8 +532,7 @@ module Stripe
|
|
|
590
532
|
price_data: nil,
|
|
591
533
|
quantity: nil,
|
|
592
534
|
tax_rates: nil,
|
|
593
|
-
trial: nil
|
|
594
|
-
trial_offer: nil
|
|
535
|
+
trial: nil
|
|
595
536
|
)
|
|
596
537
|
@billing_thresholds = billing_thresholds
|
|
597
538
|
@discounts = discounts
|
|
@@ -602,7 +543,6 @@ module Stripe
|
|
|
602
543
|
@quantity = quantity
|
|
603
544
|
@tax_rates = tax_rates
|
|
604
545
|
@trial = trial
|
|
605
|
-
@trial_offer = trial_offer
|
|
606
546
|
end
|
|
607
547
|
end
|
|
608
548
|
|
|
@@ -667,8 +607,6 @@ module Stripe
|
|
|
667
607
|
attr_accessor :discounts
|
|
668
608
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
669
609
|
attr_accessor :duration
|
|
670
|
-
# 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.
|
|
671
|
-
attr_accessor :effective_at
|
|
672
610
|
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
673
611
|
attr_accessor :end_date
|
|
674
612
|
# All invoices will be billed using the specified settings.
|
|
@@ -707,7 +645,6 @@ module Stripe
|
|
|
707
645
|
description: nil,
|
|
708
646
|
discounts: nil,
|
|
709
647
|
duration: nil,
|
|
710
|
-
effective_at: nil,
|
|
711
648
|
end_date: nil,
|
|
712
649
|
invoice_settings: nil,
|
|
713
650
|
items: nil,
|
|
@@ -733,7 +670,6 @@ module Stripe
|
|
|
733
670
|
@description = description
|
|
734
671
|
@discounts = discounts
|
|
735
672
|
@duration = duration
|
|
736
|
-
@effective_at = effective_at
|
|
737
673
|
@end_date = end_date
|
|
738
674
|
@invoice_settings = invoice_settings
|
|
739
675
|
@items = items
|
|
@@ -764,8 +700,6 @@ module Stripe
|
|
|
764
700
|
attr_accessor :billing_behavior
|
|
765
701
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
766
702
|
attr_accessor :billing_mode
|
|
767
|
-
# Sets the billing schedules for the subscription schedule.
|
|
768
|
-
attr_accessor :billing_schedules
|
|
769
703
|
# The identifier of the customer to create the subscription schedule for.
|
|
770
704
|
attr_accessor :customer
|
|
771
705
|
# The identifier of the account to create the subscription schedule for.
|
|
@@ -790,7 +724,6 @@ module Stripe
|
|
|
790
724
|
def initialize(
|
|
791
725
|
billing_behavior: nil,
|
|
792
726
|
billing_mode: nil,
|
|
793
|
-
billing_schedules: nil,
|
|
794
727
|
customer: nil,
|
|
795
728
|
customer_account: nil,
|
|
796
729
|
default_settings: nil,
|
|
@@ -804,7 +737,6 @@ module Stripe
|
|
|
804
737
|
)
|
|
805
738
|
@billing_behavior = billing_behavior
|
|
806
739
|
@billing_mode = billing_mode
|
|
807
|
-
@billing_schedules = billing_schedules
|
|
808
740
|
@customer = customer
|
|
809
741
|
@customer_account = customer_account
|
|
810
742
|
@default_settings = default_settings
|
|
@@ -3,58 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class SubscriptionScheduleUpdateParams < ::Stripe::RequestParams
|
|
6
|
-
class BillingSchedule < ::Stripe::RequestParams
|
|
7
|
-
class AppliesTo < ::Stripe::RequestParams
|
|
8
|
-
# The ID of the price object.
|
|
9
|
-
attr_accessor :price
|
|
10
|
-
# Controls which subscription items the billing schedule applies to.
|
|
11
|
-
attr_accessor :type
|
|
12
|
-
|
|
13
|
-
def initialize(price: nil, type: nil)
|
|
14
|
-
@price = price
|
|
15
|
-
@type = type
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
class BillUntil < ::Stripe::RequestParams
|
|
20
|
-
class Duration < ::Stripe::RequestParams
|
|
21
|
-
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
22
|
-
attr_accessor :interval
|
|
23
|
-
# The multiplier applied to the interval.
|
|
24
|
-
attr_accessor :interval_count
|
|
25
|
-
|
|
26
|
-
def initialize(interval: nil, interval_count: nil)
|
|
27
|
-
@interval = interval
|
|
28
|
-
@interval_count = interval_count
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
# Specifies the billing period.
|
|
32
|
-
attr_accessor :duration
|
|
33
|
-
# The end date of the billing schedule.
|
|
34
|
-
attr_accessor :timestamp
|
|
35
|
-
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
36
|
-
attr_accessor :type
|
|
37
|
-
|
|
38
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
39
|
-
@duration = duration
|
|
40
|
-
@timestamp = timestamp
|
|
41
|
-
@type = type
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
# Configure billing schedule differently for individual subscription items.
|
|
45
|
-
attr_accessor :applies_to
|
|
46
|
-
# The end date for the billing schedule.
|
|
47
|
-
attr_accessor :bill_until
|
|
48
|
-
# 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.
|
|
49
|
-
attr_accessor :key
|
|
50
|
-
|
|
51
|
-
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
52
|
-
@applies_to = applies_to
|
|
53
|
-
@bill_until = bill_until
|
|
54
|
-
@key = key
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
6
|
class DefaultSettings < ::Stripe::RequestParams
|
|
59
7
|
class AutomaticTax < ::Stripe::RequestParams
|
|
60
8
|
class Liability < ::Stripe::RequestParams
|
|
@@ -146,8 +94,6 @@ module Stripe
|
|
|
146
94
|
attr_accessor :invoice_settings
|
|
147
95
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
148
96
|
attr_accessor :on_behalf_of
|
|
149
|
-
# 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.
|
|
150
|
-
attr_accessor :phase_effective_at
|
|
151
97
|
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
|
152
98
|
attr_accessor :transfer_data
|
|
153
99
|
|
|
@@ -161,7 +107,6 @@ module Stripe
|
|
|
161
107
|
description: nil,
|
|
162
108
|
invoice_settings: nil,
|
|
163
109
|
on_behalf_of: nil,
|
|
164
|
-
phase_effective_at: nil,
|
|
165
110
|
transfer_data: nil
|
|
166
111
|
)
|
|
167
112
|
@application_fee_percent = application_fee_percent
|
|
@@ -173,7 +118,6 @@ module Stripe
|
|
|
173
118
|
@description = description
|
|
174
119
|
@invoice_settings = invoice_settings
|
|
175
120
|
@on_behalf_of = on_behalf_of
|
|
176
|
-
@phase_effective_at = phase_effective_at
|
|
177
121
|
@transfer_data = transfer_data
|
|
178
122
|
end
|
|
179
123
|
end
|
|
@@ -558,8 +502,6 @@ module Stripe
|
|
|
558
502
|
attr_accessor :tax_rates
|
|
559
503
|
# Options that configure the trial on the subscription item.
|
|
560
504
|
attr_accessor :trial
|
|
561
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
562
|
-
attr_accessor :trial_offer
|
|
563
505
|
|
|
564
506
|
def initialize(
|
|
565
507
|
billing_thresholds: nil,
|
|
@@ -570,8 +512,7 @@ module Stripe
|
|
|
570
512
|
price_data: nil,
|
|
571
513
|
quantity: nil,
|
|
572
514
|
tax_rates: nil,
|
|
573
|
-
trial: nil
|
|
574
|
-
trial_offer: nil
|
|
515
|
+
trial: nil
|
|
575
516
|
)
|
|
576
517
|
@billing_thresholds = billing_thresholds
|
|
577
518
|
@discounts = discounts
|
|
@@ -582,7 +523,6 @@ module Stripe
|
|
|
582
523
|
@quantity = quantity
|
|
583
524
|
@tax_rates = tax_rates
|
|
584
525
|
@trial = trial
|
|
585
|
-
@trial_offer = trial_offer
|
|
586
526
|
end
|
|
587
527
|
end
|
|
588
528
|
|
|
@@ -647,8 +587,6 @@ module Stripe
|
|
|
647
587
|
attr_accessor :discounts
|
|
648
588
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
649
589
|
attr_accessor :duration
|
|
650
|
-
# 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.
|
|
651
|
-
attr_accessor :effective_at
|
|
652
590
|
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
653
591
|
attr_accessor :end_date
|
|
654
592
|
# All invoices will be billed using the specified settings.
|
|
@@ -689,7 +627,6 @@ module Stripe
|
|
|
689
627
|
description: nil,
|
|
690
628
|
discounts: nil,
|
|
691
629
|
duration: nil,
|
|
692
|
-
effective_at: nil,
|
|
693
630
|
end_date: nil,
|
|
694
631
|
invoice_settings: nil,
|
|
695
632
|
items: nil,
|
|
@@ -716,7 +653,6 @@ module Stripe
|
|
|
716
653
|
@description = description
|
|
717
654
|
@discounts = discounts
|
|
718
655
|
@duration = duration
|
|
719
|
-
@effective_at = effective_at
|
|
720
656
|
@end_date = end_date
|
|
721
657
|
@invoice_settings = invoice_settings
|
|
722
658
|
@items = items
|
|
@@ -746,8 +682,6 @@ module Stripe
|
|
|
746
682
|
end
|
|
747
683
|
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
748
684
|
attr_accessor :billing_behavior
|
|
749
|
-
# Sets the billing schedules for the subscription schedule.
|
|
750
|
-
attr_accessor :billing_schedules
|
|
751
685
|
# Object representing the subscription schedule's default settings.
|
|
752
686
|
attr_accessor :default_settings
|
|
753
687
|
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
@@ -765,7 +699,6 @@ module Stripe
|
|
|
765
699
|
|
|
766
700
|
def initialize(
|
|
767
701
|
billing_behavior: nil,
|
|
768
|
-
billing_schedules: nil,
|
|
769
702
|
default_settings: nil,
|
|
770
703
|
end_behavior: nil,
|
|
771
704
|
expand: nil,
|
|
@@ -775,7 +708,6 @@ module Stripe
|
|
|
775
708
|
proration_behavior: nil
|
|
776
709
|
)
|
|
777
710
|
@billing_behavior = billing_behavior
|
|
778
|
-
@billing_schedules = billing_schedules
|
|
779
711
|
@default_settings = default_settings
|
|
780
712
|
@end_behavior = end_behavior
|
|
781
713
|
@expand = expand
|
|
@@ -317,18 +317,6 @@ 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
|
-
|
|
332
320
|
class Discount < ::Stripe::RequestParams
|
|
333
321
|
class DiscountEnd < ::Stripe::RequestParams
|
|
334
322
|
class Duration < ::Stripe::RequestParams
|
|
@@ -417,8 +405,6 @@ module Stripe
|
|
|
417
405
|
attr_accessor :billing_thresholds
|
|
418
406
|
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
419
407
|
attr_accessor :clear_usage
|
|
420
|
-
# The trial offer to apply to this subscription item.
|
|
421
|
-
attr_accessor :current_trial
|
|
422
408
|
# A flag that, if set to `true`, will delete the specified item.
|
|
423
409
|
attr_accessor :deleted
|
|
424
410
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -441,7 +427,6 @@ module Stripe
|
|
|
441
427
|
def initialize(
|
|
442
428
|
billing_thresholds: nil,
|
|
443
429
|
clear_usage: nil,
|
|
444
|
-
current_trial: nil,
|
|
445
430
|
deleted: nil,
|
|
446
431
|
discounts: nil,
|
|
447
432
|
id: nil,
|
|
@@ -454,7 +439,6 @@ module Stripe
|
|
|
454
439
|
)
|
|
455
440
|
@billing_thresholds = billing_thresholds
|
|
456
441
|
@clear_usage = clear_usage
|
|
457
|
-
@current_trial = current_trial
|
|
458
442
|
@deleted = deleted
|
|
459
443
|
@discounts = discounts
|
|
460
444
|
@id = id
|