orb-billing 0.12.0 → 1.0.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/CHANGELOG.md +28 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/base_model.rb +5 -5
- data/lib/orb/models/accounting_provider_config.rb +21 -0
- data/lib/orb/models/address.rb +45 -0
- data/lib/orb/models/address_input.rb +45 -0
- data/lib/orb/models/adjustment_interval.rb +66 -0
- data/lib/orb/models/aggregated_cost.rb +45 -0
- data/lib/orb/models/alert.rb +9 -60
- data/lib/orb/models/alert_create_for_customer_params.rb +3 -24
- data/lib/orb/models/alert_create_for_external_customer_params.rb +3 -24
- data/lib/orb/models/alert_create_for_subscription_params.rb +3 -23
- data/lib/orb/models/alert_update_params.rb +3 -22
- data/lib/orb/models/allocation.rb +27 -0
- data/lib/orb/models/amount_discount.rb +3 -59
- data/lib/orb/models/amount_discount_interval.rb +65 -0
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +193 -19201
- data/lib/orb/models/beta_create_plan_version_params.rb +183 -19025
- data/lib/orb/models/billable_metric_tiny.rb +15 -0
- data/lib/orb/models/billing_cycle_anchor_configuration.rb +41 -0
- data/lib/orb/models/billing_cycle_configuration.rb +32 -0
- data/lib/orb/models/bps_config.rb +24 -0
- data/lib/orb/models/bps_tier.rb +40 -0
- data/lib/orb/models/bulk_bps_config.rb +20 -0
- data/lib/orb/models/bulk_bps_tier.rb +32 -0
- data/lib/orb/models/bulk_config.rb +16 -0
- data/lib/orb/models/bulk_tier.rb +24 -0
- data/lib/orb/models/changed_subscription_resources.rb +40 -0
- data/lib/orb/models/conversion_rate_tier.rb +32 -0
- data/lib/orb/models/conversion_rate_tiered_config.rb +16 -0
- data/lib/orb/models/conversion_rate_unit_config.rb +16 -0
- data/lib/orb/models/coupon_redemption.rb +27 -0
- data/lib/orb/models/credit_note.rb +6 -51
- data/lib/orb/models/credit_note_tiny.rb +16 -0
- data/lib/orb/models/custom_expiration.rb +32 -0
- data/lib/orb/models/customer.rb +15 -426
- data/lib/orb/models/customer_create_params.rb +24 -527
- data/lib/orb/models/customer_hierarchy_config.rb +29 -0
- data/lib/orb/models/customer_minified.rb +21 -0
- data/lib/orb/models/customer_tax_id.rb +300 -0
- data/lib/orb/models/customer_update_by_external_id_params.rb +24 -529
- data/lib/orb/models/customer_update_params.rb +24 -527
- data/lib/orb/models/customers/balance_transaction_create_response.rb +6 -32
- data/lib/orb/models/customers/balance_transaction_list_response.rb +6 -32
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -88
- data/lib/orb/models/customers/cost_list_response.rb +3 -87
- data/lib/orb/models/customers/credits/affected_block.rb +31 -0
- data/lib/orb/models/customers/credits/amendment_ledger_entry.rb +131 -0
- data/lib/orb/models/customers/credits/credit_block_expiry_ledger_entry.rb +137 -0
- data/lib/orb/models/customers/credits/decrement_ledger_entry.rb +152 -0
- data/lib/orb/models/customers/credits/expiration_change_ledger_entry.rb +141 -0
- data/lib/orb/models/customers/credits/increment_ledger_entry.rb +139 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +8 -1177
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +8 -1169
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +8 -1173
- data/lib/orb/models/customers/credits/ledger_list_response.rb +8 -1161
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +3 -52
- data/lib/orb/models/customers/credits/top_up_create_response.rb +3 -51
- data/lib/orb/models/customers/credits/top_up_invoice_settings.rb +53 -0
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +3 -52
- data/lib/orb/models/customers/credits/top_up_list_response.rb +3 -51
- data/lib/orb/models/customers/credits/void_initiated_ledger_entry.rb +152 -0
- data/lib/orb/models/customers/credits/void_ledger_entry.rb +145 -0
- data/lib/orb/models/dimensional_price_configuration.rb +21 -0
- data/lib/orb/models/discount_override.rb +56 -0
- data/lib/orb/models/fixed_fee_quantity_schedule_entry.rb +33 -0
- data/lib/orb/models/fixed_fee_quantity_transition.rb +27 -0
- data/lib/orb/models/invoice.rb +56 -1777
- data/lib/orb/models/invoice_create_params.rb +3 -15
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +56 -1794
- data/lib/orb/models/invoice_line_item_create_response.rb +25 -1142
- data/lib/orb/models/invoice_tiny.rb +16 -0
- data/lib/orb/models/item_slim.rb +21 -0
- data/lib/orb/models/matrix_config.rb +32 -0
- data/lib/orb/models/matrix_sub_line_item.rb +61 -0
- data/lib/orb/models/matrix_value.rb +29 -0
- data/lib/orb/models/matrix_with_allocation_config.rb +40 -0
- data/lib/orb/models/maximum.rb +38 -0
- data/lib/orb/models/maximum_interval.rb +52 -0
- data/lib/orb/models/minimum.rb +38 -0
- data/lib/orb/models/minimum_interval.rb +52 -0
- data/lib/orb/models/monetary_amount_discount_adjustment.rb +87 -0
- data/lib/orb/models/monetary_maximum_adjustment.rb +87 -0
- data/lib/orb/models/monetary_minimum_adjustment.rb +95 -0
- data/lib/orb/models/monetary_percentage_discount_adjustment.rb +87 -0
- data/lib/orb/models/monetary_usage_discount_adjustment.rb +87 -0
- data/lib/orb/models/mutated_subscription.rb +302 -0
- data/lib/orb/models/new_accounting_sync_configuration.rb +23 -0
- data/lib/orb/models/new_allocation_price.rb +70 -0
- data/lib/orb/models/new_amount_discount.rb +120 -0
- data/lib/orb/models/new_avalara_tax_configuration.rb +37 -0
- data/lib/orb/models/new_billing_cycle_configuration.rb +37 -0
- data/lib/orb/models/new_dimensional_price_configuration.rb +36 -0
- data/lib/orb/models/new_floating_bps_price.rb +199 -0
- data/lib/orb/models/new_floating_bulk_bps_price.rb +197 -0
- data/lib/orb/models/new_floating_bulk_price.rb +197 -0
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +197 -0
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +198 -0
- data/lib/orb/models/new_floating_matrix_price.rb +197 -0
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +197 -0
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +197 -0
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +197 -0
- data/lib/orb/models/new_floating_package_price.rb +197 -0
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +197 -0
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +198 -0
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +198 -0
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_bps_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_package_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +197 -0
- data/lib/orb/models/new_floating_unit_price.rb +197 -0
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +197 -0
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +197 -0
- data/lib/orb/models/new_maximum.rb +120 -0
- data/lib/orb/models/new_minimum.rb +128 -0
- data/lib/orb/models/new_percentage_discount.rb +120 -0
- data/lib/orb/models/new_plan_bps_price.rb +196 -0
- data/lib/orb/models/new_plan_bulk_bps_price.rb +200 -0
- data/lib/orb/models/new_plan_bulk_price.rb +196 -0
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +198 -0
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +199 -0
- data/lib/orb/models/new_plan_matrix_price.rb +200 -0
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +198 -0
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +198 -0
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +198 -0
- data/lib/orb/models/new_plan_package_price.rb +200 -0
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +198 -0
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +199 -0
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +199 -0
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +198 -0
- data/lib/orb/models/new_plan_tier_with_proration_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_bps_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_package_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_price.rb +200 -0
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +198 -0
- data/lib/orb/models/new_plan_unit_price.rb +196 -0
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +198 -0
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +198 -0
- data/lib/orb/models/new_reporting_configuration.rb +15 -0
- data/lib/orb/models/new_sphere_configuration.rb +31 -0
- data/lib/orb/models/new_subscription_bps_price.rb +207 -0
- data/lib/orb/models/new_subscription_bulk_bps_price.rb +207 -0
- data/lib/orb/models/new_subscription_bulk_price.rb +207 -0
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +207 -0
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +208 -0
- data/lib/orb/models/new_subscription_matrix_price.rb +207 -0
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +207 -0
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +207 -0
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +207 -0
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +209 -0
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +209 -0
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +207 -0
- data/lib/orb/models/new_subscription_tier_with_proration_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_bps_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +207 -0
- data/lib/orb/models/new_subscription_unit_price.rb +207 -0
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +207 -0
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +207 -0
- data/lib/orb/models/new_tax_jar_configuration.rb +31 -0
- data/lib/orb/models/new_usage_discount.rb +120 -0
- data/lib/orb/models/other_sub_line_item.rb +54 -0
- data/lib/orb/models/package_config.rb +28 -0
- data/lib/orb/models/per_price_cost.rb +48 -0
- data/lib/orb/models/percentage_discount.rb +3 -59
- data/lib/orb/models/percentage_discount_interval.rb +69 -0
- data/lib/orb/models/plan.rb +22 -1040
- data/lib/orb/models/plan_create_params.rb +31 -8145
- data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +87 -0
- data/lib/orb/models/plan_phase_maximum_adjustment.rb +87 -0
- data/lib/orb/models/plan_phase_minimum_adjustment.rb +95 -0
- data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +87 -0
- data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +87 -0
- data/lib/orb/models/plan_version.rb +10 -672
- data/lib/orb/models/price.rb +1225 -10817
- data/lib/orb/models/price_create_params.rb +53 -472
- data/lib/orb/models/price_evaluate_multiple_params.rb +32 -8479
- data/lib/orb/models/price_evaluate_preview_events_params.rb +236 -0
- data/lib/orb/models/price_evaluate_preview_events_response.rb +51 -0
- data/lib/orb/models/price_interval.rb +113 -0
- data/lib/orb/models/sub_line_item_grouping.rb +23 -0
- data/lib/orb/models/sub_line_item_matrix_config.rb +16 -0
- data/lib/orb/models/subscription.rb +33 -1581
- data/lib/orb/models/subscription_change_apply_response.rb +3 -1904
- data/lib/orb/models/subscription_change_cancel_response.rb +3 -1905
- data/lib/orb/models/subscription_change_minified.rb +15 -0
- data/lib/orb/models/subscription_change_retrieve_response.rb +3 -1906
- data/lib/orb/models/subscription_create_params.rb +232 -19698
- data/lib/orb/models/subscription_fetch_costs_response.rb +3 -87
- data/lib/orb/models/subscription_minified.rb +15 -0
- data/lib/orb/models/subscription_price_intervals_params.rb +86 -9468
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +238 -19792
- data/lib/orb/models/subscription_trial_info.rb +15 -0
- data/lib/orb/models/tax_amount.rb +32 -0
- data/lib/orb/models/threshold.rb +24 -0
- data/lib/orb/models/tier.rb +32 -0
- data/lib/orb/models/tier_config.rb +27 -0
- data/lib/orb/models/tier_sub_line_item.rb +61 -0
- data/lib/orb/models/tiered_bps_config.rb +20 -0
- data/lib/orb/models/tiered_config.rb +16 -0
- data/lib/orb/models/tiered_conversion_rate_config.rb +31 -0
- data/lib/orb/models/transform_price_filter.rb +61 -0
- data/lib/orb/models/trial_discount.rb +3 -59
- data/lib/orb/models/unit_config.rb +16 -0
- data/lib/orb/models/unit_conversion_rate_config.rb +31 -0
- data/lib/orb/models/usage_discount.rb +3 -59
- data/lib/orb/models/usage_discount_interval.rb +69 -0
- data/lib/orb/models.rb +348 -0
- data/lib/orb/resources/alerts.rb +4 -4
- data/lib/orb/resources/customers/credits/ledger.rb +4 -4
- data/lib/orb/resources/customers.rb +21 -21
- data/lib/orb/resources/plans.rb +1 -1
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +82 -34
- data/lib/orb/resources/subscriptions.rb +24 -24
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +181 -11
- data/rbi/orb/models/accounting_provider_config.rbi +34 -0
- data/rbi/orb/models/address.rbi +55 -0
- data/rbi/orb/models/address_input.rbi +62 -0
- data/rbi/orb/models/adjustment_interval.rbi +93 -0
- data/rbi/orb/models/aggregated_cost.rbi +61 -0
- data/rbi/orb/models/alert.rbi +11 -84
- data/rbi/orb/models/alert_create_for_customer_params.rbi +3 -42
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +3 -48
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +3 -38
- data/rbi/orb/models/alert_update_params.rbi +3 -31
- data/rbi/orb/models/allocation.rbi +45 -0
- data/rbi/orb/models/amount_discount.rbi +3 -112
- data/rbi/orb/models/amount_discount_interval.rbi +100 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +558 -35618
- data/rbi/orb/models/beta_create_plan_version_params.rbi +558 -35610
- data/rbi/orb/models/billable_metric_tiny.rbi +21 -0
- data/rbi/orb/models/billing_cycle_anchor_configuration.rbi +61 -0
- data/rbi/orb/models/billing_cycle_configuration.rbi +70 -0
- data/rbi/orb/models/bps_config.rbi +36 -0
- data/rbi/orb/models/bps_tier.rbi +58 -0
- data/rbi/orb/models/bulk_bps_config.rbi +31 -0
- data/rbi/orb/models/bulk_bps_tier.rbi +50 -0
- data/rbi/orb/models/bulk_config.rbi +26 -0
- data/rbi/orb/models/bulk_tier.rbi +38 -0
- data/rbi/orb/models/changed_subscription_resources.rbi +61 -0
- data/rbi/orb/models/conversion_rate_tier.rbi +51 -0
- data/rbi/orb/models/conversion_rate_tiered_config.rbi +31 -0
- data/rbi/orb/models/conversion_rate_unit_config.rbi +27 -0
- data/rbi/orb/models/coupon_redemption.rbi +37 -0
- data/rbi/orb/models/credit_note.rbi +7 -87
- data/rbi/orb/models/credit_note_tiny.rbi +25 -0
- data/rbi/orb/models/custom_expiration.rbi +55 -0
- data/rbi/orb/models/customer.rbi +19 -522
- data/rbi/orb/models/customer_create_params.rbi +36 -957
- data/rbi/orb/models/customer_hierarchy_config.rbi +52 -0
- data/rbi/orb/models/customer_minified.rbi +32 -0
- data/rbi/orb/models/customer_tax_id.rbi +324 -0
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +36 -1436
- data/rbi/orb/models/customer_update_params.rbi +36 -957
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +8 -96
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +8 -96
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +5 -191
- data/rbi/orb/models/customers/cost_list_response.rbi +5 -182
- data/rbi/orb/models/customers/credits/affected_block.rbi +50 -0
- data/rbi/orb/models/customers/credits/amendment_ledger_entry.rbi +207 -0
- data/rbi/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbi +209 -0
- data/rbi/orb/models/customers/credits/decrement_ledger_entry.rbi +225 -0
- data/rbi/orb/models/customers/credits/expiration_change_ledger_entry.rbi +213 -0
- data/rbi/orb/models/customers/credits/increment_ledger_entry.rbi +215 -0
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/top_up_invoice_settings.rbi +83 -0
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/void_initiated_ledger_entry.rbi +225 -0
- data/rbi/orb/models/customers/credits/void_ledger_entry.rbi +219 -0
- data/rbi/orb/models/dimensional_price_configuration.rbi +38 -0
- data/rbi/orb/models/discount_override.rbi +83 -0
- data/rbi/orb/models/fixed_fee_quantity_schedule_entry.rbi +48 -0
- data/rbi/orb/models/fixed_fee_quantity_transition.rbi +39 -0
- data/rbi/orb/models/invoice.rbi +212 -3345
- data/rbi/orb/models/invoice_create_params.rbi +4 -33
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +355 -4329
- data/rbi/orb/models/invoice_line_item_create_response.rbi +30 -2260
- data/rbi/orb/models/invoice_tiny.rbi +24 -0
- data/rbi/orb/models/item_slim.rbi +23 -0
- data/rbi/orb/models/matrix_config.rbi +50 -0
- data/rbi/orb/models/matrix_sub_line_item.rbi +87 -0
- data/rbi/orb/models/matrix_value.rbi +43 -0
- data/rbi/orb/models/matrix_with_allocation_config.rbi +61 -0
- data/rbi/orb/models/maximum.rbi +52 -0
- data/rbi/orb/models/maximum_interval.rbi +69 -0
- data/rbi/orb/models/minimum.rbi +52 -0
- data/rbi/orb/models/minimum_interval.rbi +69 -0
- data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +125 -0
- data/rbi/orb/models/monetary_maximum_adjustment.rbi +123 -0
- data/rbi/orb/models/monetary_minimum_adjustment.rbi +131 -0
- data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +131 -0
- data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +125 -0
- data/rbi/orb/models/mutated_subscription.rbi +412 -0
- data/rbi/orb/models/new_accounting_sync_configuration.rbi +40 -0
- data/rbi/orb/models/new_allocation_price.rbi +104 -0
- data/rbi/orb/models/new_amount_discount.rbi +179 -0
- data/rbi/orb/models/new_avalara_tax_configuration.rbi +68 -0
- data/rbi/orb/models/new_billing_cycle_configuration.rbi +79 -0
- data/rbi/orb/models/new_dimensional_price_configuration.rbi +55 -0
- data/rbi/orb/models/new_floating_bps_price.rbi +294 -0
- data/rbi/orb/models/new_floating_bulk_bps_price.rbi +309 -0
- data/rbi/orb/models/new_floating_bulk_price.rbi +298 -0
- data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +331 -0
- data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +338 -0
- data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +331 -0
- data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +337 -0
- data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +325 -0
- data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +348 -0
- data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +348 -0
- data/rbi/orb/models/new_floating_matrix_price.rbi +304 -0
- data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +345 -0
- data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +338 -0
- data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +338 -0
- data/rbi/orb/models/new_floating_package_price.rbi +306 -0
- data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +338 -0
- data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +350 -0
- data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +349 -0
- data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +337 -0
- data/rbi/orb/models/new_floating_tiered_bps_price.rbi +317 -0
- data/rbi/orb/models/new_floating_tiered_package_price.rbi +325 -0
- data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +348 -0
- data/rbi/orb/models/new_floating_tiered_price.rbi +304 -0
- data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +331 -0
- data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +337 -0
- data/rbi/orb/models/new_floating_unit_price.rbi +298 -0
- data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +328 -0
- data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +331 -0
- data/rbi/orb/models/new_maximum.rbi +160 -0
- data/rbi/orb/models/new_minimum.rbi +168 -0
- data/rbi/orb/models/new_percentage_discount.rbi +193 -0
- data/rbi/orb/models/new_plan_bps_price.rbi +294 -0
- data/rbi/orb/models/new_plan_bulk_bps_price.rbi +297 -0
- data/rbi/orb/models/new_plan_bulk_price.rbi +295 -0
- data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +327 -0
- data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +333 -0
- data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +327 -0
- data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +333 -0
- data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +316 -0
- data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +340 -0
- data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +345 -0
- data/rbi/orb/models/new_plan_matrix_price.rbi +297 -0
- data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +341 -0
- data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +333 -0
- data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +333 -0
- data/rbi/orb/models/new_plan_package_price.rbi +297 -0
- data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +333 -0
- data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +352 -0
- data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +351 -0
- data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +333 -0
- data/rbi/orb/models/new_plan_tier_with_proration_price.rbi +327 -0
- data/rbi/orb/models/new_plan_tiered_bps_price.rbi +304 -0
- data/rbi/orb/models/new_plan_tiered_package_price.rbi +316 -0
- data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +339 -0
- data/rbi/orb/models/new_plan_tiered_price.rbi +297 -0
- data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +327 -0
- data/rbi/orb/models/new_plan_unit_price.rbi +295 -0
- data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +325 -0
- data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +327 -0
- data/rbi/orb/models/new_reporting_configuration.rbi +23 -0
- data/rbi/orb/models/new_sphere_configuration.rbi +59 -0
- data/rbi/orb/models/new_subscription_bps_price.rbi +317 -0
- data/rbi/orb/models/new_subscription_bulk_bps_price.rbi +338 -0
- data/rbi/orb/models/new_subscription_bulk_price.rbi +321 -0
- data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +343 -0
- data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_matrix_price.rbi +332 -0
- data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +368 -0
- data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_package_price.rbi +338 -0
- data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +362 -0
- data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +361 -0
- data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_tier_with_proration_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_tiered_bps_price.rbi +340 -0
- data/rbi/orb/models/new_subscription_tiered_package_price.rbi +343 -0
- data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_tiered_price.rbi +332 -0
- data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_unit_price.rbi +321 -0
- data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +349 -0
- data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +350 -0
- data/rbi/orb/models/new_tax_jar_configuration.rbi +59 -0
- data/rbi/orb/models/new_usage_discount.rbi +177 -0
- data/rbi/orb/models/other_sub_line_item.rbi +78 -0
- data/rbi/orb/models/package_config.rbi +39 -0
- data/rbi/orb/models/per_price_cost.rbi +96 -0
- data/rbi/orb/models/percentage_discount.rbi +3 -126
- data/rbi/orb/models/percentage_discount_interval.rbi +107 -0
- data/rbi/orb/models/plan.rbi +29 -1937
- data/rbi/orb/models/plan_create_params.rbi +112 -15428
- data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +128 -0
- data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +123 -0
- data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +131 -0
- data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +131 -0
- data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +125 -0
- data/rbi/orb/models/plan_version.rbi +13 -1252
- data/rbi/orb/models/price.rbi +3518 -26097
- data/rbi/orb/models/price_create_params.rbi +81 -937
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +112 -15566
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +411 -0
- data/rbi/orb/models/price_evaluate_preview_events_response.rbi +101 -0
- data/rbi/orb/models/price_interval.rbi +174 -0
- data/rbi/orb/models/sub_line_item_grouping.rbi +31 -0
- data/rbi/orb/models/sub_line_item_matrix_config.rbi +33 -0
- data/rbi/orb/models/subscription.rbi +51 -2939
- data/rbi/orb/models/subscription_change_apply_response.rbi +4 -3580
- data/rbi/orb/models/subscription_change_cancel_response.rbi +4 -3580
- data/rbi/orb/models/subscription_change_minified.rbi +23 -0
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +4 -3582
- data/rbi/orb/models/subscription_create_params.rbi +686 -36613
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +5 -182
- data/rbi/orb/models/subscription_minified.rbi +23 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +224 -17694
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +696 -36631
- data/rbi/orb/models/subscription_trial_info.rbi +23 -0
- data/rbi/orb/models/tax_amount.rbi +50 -0
- data/rbi/orb/models/threshold.rbi +30 -0
- data/rbi/orb/models/tier.rbi +50 -0
- data/rbi/orb/models/tier_config.rbi +40 -0
- data/rbi/orb/models/tier_sub_line_item.rbi +87 -0
- data/rbi/orb/models/tiered_bps_config.rbi +29 -0
- data/rbi/orb/models/tiered_config.rbi +26 -0
- data/rbi/orb/models/tiered_conversion_rate_config.rbi +73 -0
- data/rbi/orb/models/transform_price_filter.rbi +106 -0
- data/rbi/orb/models/trial_discount.rbi +3 -104
- data/rbi/orb/models/unit_config.rbi +24 -0
- data/rbi/orb/models/unit_conversion_rate_config.rbi +71 -0
- data/rbi/orb/models/usage_discount.rbi +3 -104
- data/rbi/orb/models/usage_discount_interval.rbi +99 -0
- data/rbi/orb/models.rbi +398 -0
- data/rbi/orb/resources/alerts.rbi +4 -13
- data/rbi/orb/resources/customers.rbi +27 -51
- data/rbi/orb/resources/plans.rbi +28 -28
- data/rbi/orb/resources/prices.rbi +82 -36
- data/rbi/orb/resources/subscriptions.rbi +13 -19
- data/sig/orb/models/accounting_provider_config.rbs +19 -0
- data/sig/orb/models/address.rbs +45 -0
- data/sig/orb/models/address_input.rbs +45 -0
- data/sig/orb/models/adjustment_interval.rbs +53 -0
- data/sig/orb/models/aggregated_cost.rbs +40 -0
- data/sig/orb/models/alert.rbs +12 -44
- data/sig/orb/models/alert_create_for_customer_params.rbs +4 -14
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +4 -14
- data/sig/orb/models/alert_create_for_subscription_params.rbs +4 -14
- data/sig/orb/models/alert_update_params.rbs +4 -14
- data/sig/orb/models/allocation.rbs +30 -0
- data/sig/orb/models/amount_discount.rbs +4 -57
- data/sig/orb/models/amount_discount_interval.rbs +55 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +149 -13933
- data/sig/orb/models/beta_create_plan_version_params.rbs +146 -13914
- data/sig/orb/models/billable_metric_tiny.rbs +13 -0
- data/sig/orb/models/billing_cycle_anchor_configuration.rbs +18 -0
- data/sig/orb/models/billing_cycle_configuration.rbs +36 -0
- data/sig/orb/models/bps_config.rbs +15 -0
- data/sig/orb/models/bps_tier.rbs +35 -0
- data/sig/orb/models/bulk_bps_config.rbs +13 -0
- data/sig/orb/models/bulk_bps_tier.rbs +26 -0
- data/sig/orb/models/bulk_config.rbs +13 -0
- data/sig/orb/models/bulk_tier.rbs +15 -0
- data/sig/orb/models/changed_subscription_resources.rbs +35 -0
- data/sig/orb/models/conversion_rate_tier.rbs +26 -0
- data/sig/orb/models/conversion_rate_tiered_config.rbs +14 -0
- data/sig/orb/models/conversion_rate_unit_config.rbs +13 -0
- data/sig/orb/models/coupon_redemption.rbs +22 -0
- data/sig/orb/models/credit_note.rbs +8 -47
- data/sig/orb/models/credit_note_tiny.rbs +13 -0
- data/sig/orb/models/custom_expiration.rbs +36 -0
- data/sig/orb/models/customer.rbs +20 -471
- data/sig/orb/models/customer_create_params.rbs +27 -577
- data/sig/orb/models/customer_hierarchy_config.rbs +24 -0
- data/sig/orb/models/customer_minified.rbs +15 -0
- data/sig/orb/models/customer_tax_id.rbs +346 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +27 -577
- data/sig/orb/models/customer_update_params.rbs +27 -577
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +8 -28
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +8 -28
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +4 -84
- data/sig/orb/models/customers/cost_list_response.rbs +4 -83
- data/sig/orb/models/customers/credits/affected_block.rbs +30 -0
- data/sig/orb/models/customers/credits/amendment_ledger_entry.rbs +105 -0
- data/sig/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbs +107 -0
- data/sig/orb/models/customers/credits/decrement_ledger_entry.rbs +120 -0
- data/sig/orb/models/customers/credits/expiration_change_ledger_entry.rbs +110 -0
- data/sig/orb/models/customers/credits/increment_ledger_entry.rbs +110 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -939
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -939
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -939
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -939
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +4 -38
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +4 -38
- data/sig/orb/models/customers/credits/top_up_invoice_settings.rbs +41 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +4 -38
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +4 -38
- data/sig/orb/models/customers/credits/void_initiated_ledger_entry.rbs +120 -0
- data/sig/orb/models/customers/credits/void_ledger_entry.rbs +115 -0
- data/sig/orb/models/dimensional_price_configuration.rbs +22 -0
- data/sig/orb/models/discount_override.rbs +47 -0
- data/sig/orb/models/fixed_fee_quantity_schedule_entry.rbs +30 -0
- data/sig/orb/models/fixed_fee_quantity_transition.rbs +26 -0
- data/sig/orb/models/invoice.rbs +54 -1612
- data/sig/orb/models/invoice_create_params.rbs +4 -14
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -1612
- data/sig/orb/models/invoice_line_item_create_response.rbs +18 -927
- data/sig/orb/models/invoice_tiny.rbs +13 -0
- data/sig/orb/models/item_slim.rbs +15 -0
- data/sig/orb/models/matrix_config.rbs +30 -0
- data/sig/orb/models/matrix_sub_line_item.rbs +55 -0
- data/sig/orb/models/matrix_value.rbs +22 -0
- data/sig/orb/models/matrix_with_allocation_config.rbs +35 -0
- data/sig/orb/models/maximum.rbs +30 -0
- data/sig/orb/models/maximum_interval.rbs +40 -0
- data/sig/orb/models/minimum.rbs +30 -0
- data/sig/orb/models/minimum_interval.rbs +40 -0
- data/sig/orb/models/monetary_amount_discount_adjustment.rbs +65 -0
- data/sig/orb/models/monetary_maximum_adjustment.rbs +65 -0
- data/sig/orb/models/monetary_minimum_adjustment.rbs +70 -0
- data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/monetary_usage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/mutated_subscription.rbs +178 -0
- data/sig/orb/models/new_accounting_sync_configuration.rbs +25 -0
- data/sig/orb/models/new_allocation_price.rbs +56 -0
- data/sig/orb/models/new_amount_discount.rbs +97 -0
- data/sig/orb/models/new_avalara_tax_configuration.rbs +40 -0
- data/sig/orb/models/new_billing_cycle_configuration.rbs +36 -0
- data/sig/orb/models/new_dimensional_price_configuration.rbs +30 -0
- data/sig/orb/models/new_floating_bps_price.rbs +135 -0
- data/sig/orb/models/new_floating_bulk_bps_price.rbs +135 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +135 -0
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_matrix_price.rbs +135 -0
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +135 -0
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +135 -0
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_bps_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_floating_unit_price.rbs +135 -0
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +135 -0
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_maximum.rbs +97 -0
- data/sig/orb/models/new_minimum.rbs +102 -0
- data/sig/orb/models/new_percentage_discount.rbs +97 -0
- data/sig/orb/models/new_plan_bps_price.rbs +135 -0
- data/sig/orb/models/new_plan_bulk_bps_price.rbs +135 -0
- data/sig/orb/models/new_plan_bulk_price.rbs +135 -0
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_matrix_price.rbs +135 -0
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +135 -0
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +135 -0
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +135 -0
- data/sig/orb/models/new_plan_tier_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_bps_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_unit_price.rbs +135 -0
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +135 -0
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_reporting_configuration.rbs +13 -0
- data/sig/orb/models/new_sphere_configuration.rbs +35 -0
- data/sig/orb/models/new_subscription_bps_price.rbs +140 -0
- data/sig/orb/models/new_subscription_bulk_bps_price.rbs +140 -0
- data/sig/orb/models/new_subscription_bulk_price.rbs +140 -0
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +140 -0
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_matrix_price.rbs +140 -0
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +140 -0
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +140 -0
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +140 -0
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +140 -0
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +140 -0
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tier_with_proration_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_bps_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_unit_price.rbs +140 -0
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +140 -0
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +140 -0
- data/sig/orb/models/new_tax_jar_configuration.rbs +35 -0
- data/sig/orb/models/new_usage_discount.rbs +97 -0
- data/sig/orb/models/other_sub_line_item.rbs +50 -0
- data/sig/orb/models/package_config.rbs +15 -0
- data/sig/orb/models/per_price_cost.rbs +40 -0
- data/sig/orb/models/percentage_discount.rbs +4 -57
- data/sig/orb/models/percentage_discount_interval.rbs +55 -0
- data/sig/orb/models/plan.rbs +21 -871
- data/sig/orb/models/plan_create_params.rbs +28 -5952
- data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +65 -0
- data/sig/orb/models/plan_phase_maximum_adjustment.rbs +65 -0
- data/sig/orb/models/plan_phase_minimum_adjustment.rbs +70 -0
- data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/plan_version.rbs +5 -535
- data/sig/orb/models/price.rbs +2164 -11297
- data/sig/orb/models/price_create_params.rbs +58 -418
- data/sig/orb/models/price_evaluate_multiple_params.rbs +28 -6138
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +166 -0
- data/sig/orb/models/price_evaluate_preview_events_response.rbs +50 -0
- data/sig/orb/models/price_interval.rbs +65 -0
- data/sig/orb/models/sub_line_item_grouping.rbs +15 -0
- data/sig/orb/models/sub_line_item_matrix_config.rbs +13 -0
- data/sig/orb/models/subscription.rbs +39 -1274
- data/sig/orb/models/subscription_change_apply_response.rbs +4 -1467
- data/sig/orb/models/subscription_change_cancel_response.rbs +4 -1467
- data/sig/orb/models/subscription_change_minified.rbs +13 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +4 -1467
- data/sig/orb/models/subscription_create_params.rbs +176 -14331
- data/sig/orb/models/subscription_fetch_costs_response.rbs +4 -82
- data/sig/orb/models/subscription_minified.rbs +13 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +61 -6945
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +178 -14333
- data/sig/orb/models/subscription_trial_info.rbs +13 -0
- data/sig/orb/models/tax_amount.rbs +30 -0
- data/sig/orb/models/threshold.rbs +13 -0
- data/sig/orb/models/tier.rbs +25 -0
- data/sig/orb/models/tier_config.rbs +26 -0
- data/sig/orb/models/tier_sub_line_item.rbs +55 -0
- data/sig/orb/models/tiered_bps_config.rbs +13 -0
- data/sig/orb/models/tiered_config.rbs +13 -0
- data/sig/orb/models/tiered_conversion_rate_config.rbs +35 -0
- data/sig/orb/models/transform_price_filter.rbs +56 -0
- data/sig/orb/models/trial_discount.rbs +4 -57
- data/sig/orb/models/unit_config.rbs +13 -0
- data/sig/orb/models/unit_conversion_rate_config.rbs +35 -0
- data/sig/orb/models/usage_discount.rbs +4 -57
- data/sig/orb/models/usage_discount_interval.rbs +55 -0
- data/sig/orb/models.rbs +342 -0
- data/sig/orb/resources/alerts.rbs +4 -4
- data/sig/orb/resources/customers.rbs +18 -18
- data/sig/orb/resources/prices.rbs +23 -13
- data/sig/orb/resources/subscriptions.rbs +13 -13
- metadata +545 -35
- data/lib/orb/models/subscription_cancel_response.rb +0 -1873
- data/lib/orb/models/subscription_create_response.rb +0 -1873
- data/lib/orb/models/subscription_price_intervals_response.rb +0 -1888
- data/lib/orb/models/subscription_redeem_coupon_response.rb +0 -1883
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +0 -1893
- data/lib/orb/models/subscription_trigger_phase_response.rb +0 -1883
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +0 -1897
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +0 -1912
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +0 -1908
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +0 -1897
- data/lib/orb/models/subscription_update_trial_response.rb +0 -1879
- data/rbi/orb/models/subscription_cancel_response.rbi +0 -3537
- data/rbi/orb/models/subscription_create_response.rbi +0 -3537
- data/rbi/orb/models/subscription_price_intervals_response.rbi +0 -3564
- data/rbi/orb/models/subscription_redeem_coupon_response.rbi +0 -3557
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +0 -3564
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +0 -3557
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +0 -3566
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +0 -3566
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +0 -3566
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +0 -3566
- data/rbi/orb/models/subscription_update_trial_response.rbi +0 -3556
- data/sig/orb/models/subscription_cancel_response.rbs +0 -1445
- data/sig/orb/models/subscription_create_response.rbs +0 -1445
- data/sig/orb/models/subscription_price_intervals_response.rbs +0 -1445
- data/sig/orb/models/subscription_redeem_coupon_response.rbs +0 -1445
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +0 -1445
- data/sig/orb/models/subscription_trigger_phase_response.rbs +0 -1445
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +0 -1445
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +0 -1445
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +0 -1445
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +0 -1445
- data/sig/orb/models/subscription_update_trial_response.rbs +0 -1445
data/rbi/orb/models/alert.rbi
CHANGED
@@ -18,10 +18,10 @@ module Orb
|
|
18
18
|
attr_accessor :currency
|
19
19
|
|
20
20
|
# The customer the alert applies to.
|
21
|
-
sig { returns(T.nilable(Orb::
|
21
|
+
sig { returns(T.nilable(Orb::CustomerMinified)) }
|
22
22
|
attr_reader :customer
|
23
23
|
|
24
|
-
sig { params(customer: T.nilable(Orb::
|
24
|
+
sig { params(customer: T.nilable(Orb::CustomerMinified::OrHash)).void }
|
25
25
|
attr_writer :customer
|
26
26
|
|
27
27
|
# Whether the alert is enabled or disabled.
|
@@ -43,17 +43,17 @@ module Orb
|
|
43
43
|
attr_writer :plan
|
44
44
|
|
45
45
|
# The subscription the alert applies to.
|
46
|
-
sig { returns(T.nilable(Orb::
|
46
|
+
sig { returns(T.nilable(Orb::SubscriptionMinified)) }
|
47
47
|
attr_reader :subscription
|
48
48
|
|
49
49
|
sig do
|
50
|
-
params(subscription: T.nilable(Orb::
|
50
|
+
params(subscription: T.nilable(Orb::SubscriptionMinified::OrHash)).void
|
51
51
|
end
|
52
52
|
attr_writer :subscription
|
53
53
|
|
54
54
|
# The thresholds that define the conditions under which the alert will be
|
55
55
|
# triggered.
|
56
|
-
sig { returns(T.nilable(T::Array[Orb::
|
56
|
+
sig { returns(T.nilable(T::Array[Orb::Threshold])) }
|
57
57
|
attr_accessor :thresholds
|
58
58
|
|
59
59
|
# The type of alert. This must be a valid alert type.
|
@@ -75,12 +75,12 @@ module Orb
|
|
75
75
|
id: String,
|
76
76
|
created_at: Time,
|
77
77
|
currency: T.nilable(String),
|
78
|
-
customer: T.nilable(Orb::
|
78
|
+
customer: T.nilable(Orb::CustomerMinified::OrHash),
|
79
79
|
enabled: T::Boolean,
|
80
80
|
metric: T.nilable(Orb::Alert::Metric::OrHash),
|
81
81
|
plan: T.nilable(Orb::Alert::Plan::OrHash),
|
82
|
-
subscription: T.nilable(Orb::
|
83
|
-
thresholds: T.nilable(T::Array[Orb::
|
82
|
+
subscription: T.nilable(Orb::SubscriptionMinified::OrHash),
|
83
|
+
thresholds: T.nilable(T::Array[Orb::Threshold::OrHash]),
|
84
84
|
type: Orb::Alert::Type::OrSymbol,
|
85
85
|
balance_alert_status:
|
86
86
|
T.nilable(T::Array[Orb::Alert::BalanceAlertStatus::OrHash])
|
@@ -120,12 +120,12 @@ module Orb
|
|
120
120
|
id: String,
|
121
121
|
created_at: Time,
|
122
122
|
currency: T.nilable(String),
|
123
|
-
customer: T.nilable(Orb::
|
123
|
+
customer: T.nilable(Orb::CustomerMinified),
|
124
124
|
enabled: T::Boolean,
|
125
125
|
metric: T.nilable(Orb::Alert::Metric),
|
126
126
|
plan: T.nilable(Orb::Alert::Plan),
|
127
|
-
subscription: T.nilable(Orb::
|
128
|
-
thresholds: T.nilable(T::Array[Orb::
|
127
|
+
subscription: T.nilable(Orb::SubscriptionMinified),
|
128
|
+
thresholds: T.nilable(T::Array[Orb::Threshold]),
|
129
129
|
type: Orb::Alert::Type::TaggedSymbol,
|
130
130
|
balance_alert_status:
|
131
131
|
T.nilable(T::Array[Orb::Alert::BalanceAlertStatus])
|
@@ -135,34 +135,6 @@ module Orb
|
|
135
135
|
def to_hash
|
136
136
|
end
|
137
137
|
|
138
|
-
class Customer < Orb::Internal::Type::BaseModel
|
139
|
-
OrHash =
|
140
|
-
T.type_alias { T.any(Orb::Alert::Customer, Orb::Internal::AnyHash) }
|
141
|
-
|
142
|
-
sig { returns(String) }
|
143
|
-
attr_accessor :id
|
144
|
-
|
145
|
-
sig { returns(T.nilable(String)) }
|
146
|
-
attr_accessor :external_customer_id
|
147
|
-
|
148
|
-
# The customer the alert applies to.
|
149
|
-
sig do
|
150
|
-
params(id: String, external_customer_id: T.nilable(String)).returns(
|
151
|
-
T.attached_class
|
152
|
-
)
|
153
|
-
end
|
154
|
-
def self.new(id:, external_customer_id:)
|
155
|
-
end
|
156
|
-
|
157
|
-
sig do
|
158
|
-
override.returns(
|
159
|
-
{ id: String, external_customer_id: T.nilable(String) }
|
160
|
-
)
|
161
|
-
end
|
162
|
-
def to_hash
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
138
|
class Metric < Orb::Internal::Type::BaseModel
|
167
139
|
OrHash =
|
168
140
|
T.type_alias { T.any(Orb::Alert::Metric, Orb::Internal::AnyHash) }
|
@@ -233,51 +205,6 @@ module Orb
|
|
233
205
|
end
|
234
206
|
end
|
235
207
|
|
236
|
-
class Subscription < Orb::Internal::Type::BaseModel
|
237
|
-
OrHash =
|
238
|
-
T.type_alias do
|
239
|
-
T.any(Orb::Alert::Subscription, Orb::Internal::AnyHash)
|
240
|
-
end
|
241
|
-
|
242
|
-
sig { returns(String) }
|
243
|
-
attr_accessor :id
|
244
|
-
|
245
|
-
# The subscription the alert applies to.
|
246
|
-
sig { params(id: String).returns(T.attached_class) }
|
247
|
-
def self.new(id:)
|
248
|
-
end
|
249
|
-
|
250
|
-
sig { override.returns({ id: String }) }
|
251
|
-
def to_hash
|
252
|
-
end
|
253
|
-
end
|
254
|
-
|
255
|
-
class Threshold < Orb::Internal::Type::BaseModel
|
256
|
-
OrHash =
|
257
|
-
T.type_alias { T.any(Orb::Alert::Threshold, Orb::Internal::AnyHash) }
|
258
|
-
|
259
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
260
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
261
|
-
# or above this value.
|
262
|
-
sig { returns(Float) }
|
263
|
-
attr_accessor :value
|
264
|
-
|
265
|
-
# Thresholds are used to define the conditions under which an alert will be
|
266
|
-
# triggered.
|
267
|
-
sig { params(value: Float).returns(T.attached_class) }
|
268
|
-
def self.new(
|
269
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
270
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
271
|
-
# or above this value.
|
272
|
-
value:
|
273
|
-
)
|
274
|
-
end
|
275
|
-
|
276
|
-
sig { override.returns({ value: Float }) }
|
277
|
-
def to_hash
|
278
|
-
end
|
279
|
-
end
|
280
|
-
|
281
208
|
# The type of alert. This must be a valid alert type.
|
282
209
|
module Type
|
283
210
|
extend Orb::Internal::Type::Enum
|
@@ -20,21 +20,14 @@ module Orb
|
|
20
20
|
attr_accessor :type
|
21
21
|
|
22
22
|
# The thresholds that define the values at which the alert will be triggered.
|
23
|
-
sig
|
24
|
-
returns(
|
25
|
-
T.nilable(T::Array[Orb::AlertCreateForCustomerParams::Threshold])
|
26
|
-
)
|
27
|
-
end
|
23
|
+
sig { returns(T.nilable(T::Array[Orb::Threshold])) }
|
28
24
|
attr_accessor :thresholds
|
29
25
|
|
30
26
|
sig do
|
31
27
|
params(
|
32
28
|
currency: String,
|
33
29
|
type: Orb::AlertCreateForCustomerParams::Type::OrSymbol,
|
34
|
-
thresholds:
|
35
|
-
T.nilable(
|
36
|
-
T::Array[Orb::AlertCreateForCustomerParams::Threshold::OrHash]
|
37
|
-
),
|
30
|
+
thresholds: T.nilable(T::Array[Orb::Threshold::OrHash]),
|
38
31
|
request_options: Orb::RequestOptions::OrHash
|
39
32
|
).returns(T.attached_class)
|
40
33
|
end
|
@@ -54,8 +47,7 @@ module Orb
|
|
54
47
|
{
|
55
48
|
currency: String,
|
56
49
|
type: Orb::AlertCreateForCustomerParams::Type::OrSymbol,
|
57
|
-
thresholds:
|
58
|
-
T.nilable(T::Array[Orb::AlertCreateForCustomerParams::Threshold]),
|
50
|
+
thresholds: T.nilable(T::Array[Orb::Threshold]),
|
59
51
|
request_options: Orb::RequestOptions
|
60
52
|
}
|
61
53
|
)
|
@@ -97,37 +89,6 @@ module Orb
|
|
97
89
|
def self.values
|
98
90
|
end
|
99
91
|
end
|
100
|
-
|
101
|
-
class Threshold < Orb::Internal::Type::BaseModel
|
102
|
-
OrHash =
|
103
|
-
T.type_alias do
|
104
|
-
T.any(
|
105
|
-
Orb::AlertCreateForCustomerParams::Threshold,
|
106
|
-
Orb::Internal::AnyHash
|
107
|
-
)
|
108
|
-
end
|
109
|
-
|
110
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
111
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
112
|
-
# or above this value.
|
113
|
-
sig { returns(Float) }
|
114
|
-
attr_accessor :value
|
115
|
-
|
116
|
-
# Thresholds are used to define the conditions under which an alert will be
|
117
|
-
# triggered.
|
118
|
-
sig { params(value: Float).returns(T.attached_class) }
|
119
|
-
def self.new(
|
120
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
121
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
122
|
-
# or above this value.
|
123
|
-
value:
|
124
|
-
)
|
125
|
-
end
|
126
|
-
|
127
|
-
sig { override.returns({ value: Float }) }
|
128
|
-
def to_hash
|
129
|
-
end
|
130
|
-
end
|
131
92
|
end
|
132
93
|
end
|
133
94
|
end
|
@@ -23,25 +23,14 @@ module Orb
|
|
23
23
|
attr_accessor :type
|
24
24
|
|
25
25
|
# The thresholds that define the values at which the alert will be triggered.
|
26
|
-
sig
|
27
|
-
returns(
|
28
|
-
T.nilable(
|
29
|
-
T::Array[Orb::AlertCreateForExternalCustomerParams::Threshold]
|
30
|
-
)
|
31
|
-
)
|
32
|
-
end
|
26
|
+
sig { returns(T.nilable(T::Array[Orb::Threshold])) }
|
33
27
|
attr_accessor :thresholds
|
34
28
|
|
35
29
|
sig do
|
36
30
|
params(
|
37
31
|
currency: String,
|
38
32
|
type: Orb::AlertCreateForExternalCustomerParams::Type::OrSymbol,
|
39
|
-
thresholds:
|
40
|
-
T.nilable(
|
41
|
-
T::Array[
|
42
|
-
Orb::AlertCreateForExternalCustomerParams::Threshold::OrHash
|
43
|
-
]
|
44
|
-
),
|
33
|
+
thresholds: T.nilable(T::Array[Orb::Threshold::OrHash]),
|
45
34
|
request_options: Orb::RequestOptions::OrHash
|
46
35
|
).returns(T.attached_class)
|
47
36
|
end
|
@@ -61,10 +50,7 @@ module Orb
|
|
61
50
|
{
|
62
51
|
currency: String,
|
63
52
|
type: Orb::AlertCreateForExternalCustomerParams::Type::OrSymbol,
|
64
|
-
thresholds:
|
65
|
-
T.nilable(
|
66
|
-
T::Array[Orb::AlertCreateForExternalCustomerParams::Threshold]
|
67
|
-
),
|
53
|
+
thresholds: T.nilable(T::Array[Orb::Threshold]),
|
68
54
|
request_options: Orb::RequestOptions
|
69
55
|
}
|
70
56
|
)
|
@@ -108,37 +94,6 @@ module Orb
|
|
108
94
|
def self.values
|
109
95
|
end
|
110
96
|
end
|
111
|
-
|
112
|
-
class Threshold < Orb::Internal::Type::BaseModel
|
113
|
-
OrHash =
|
114
|
-
T.type_alias do
|
115
|
-
T.any(
|
116
|
-
Orb::AlertCreateForExternalCustomerParams::Threshold,
|
117
|
-
Orb::Internal::AnyHash
|
118
|
-
)
|
119
|
-
end
|
120
|
-
|
121
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
122
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
123
|
-
# or above this value.
|
124
|
-
sig { returns(Float) }
|
125
|
-
attr_accessor :value
|
126
|
-
|
127
|
-
# Thresholds are used to define the conditions under which an alert will be
|
128
|
-
# triggered.
|
129
|
-
sig { params(value: Float).returns(T.attached_class) }
|
130
|
-
def self.new(
|
131
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
132
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
133
|
-
# or above this value.
|
134
|
-
value:
|
135
|
-
)
|
136
|
-
end
|
137
|
-
|
138
|
-
sig { override.returns({ value: Float }) }
|
139
|
-
def to_hash
|
140
|
-
end
|
141
|
-
end
|
142
97
|
end
|
143
98
|
end
|
144
99
|
end
|
@@ -12,9 +12,7 @@ module Orb
|
|
12
12
|
end
|
13
13
|
|
14
14
|
# The thresholds that define the values at which the alert will be triggered.
|
15
|
-
sig
|
16
|
-
returns(T::Array[Orb::AlertCreateForSubscriptionParams::Threshold])
|
17
|
-
end
|
15
|
+
sig { returns(T::Array[Orb::Threshold]) }
|
18
16
|
attr_accessor :thresholds
|
19
17
|
|
20
18
|
# The type of alert to create. This must be a valid alert type.
|
@@ -27,8 +25,7 @@ module Orb
|
|
27
25
|
|
28
26
|
sig do
|
29
27
|
params(
|
30
|
-
thresholds:
|
31
|
-
T::Array[Orb::AlertCreateForSubscriptionParams::Threshold::OrHash],
|
28
|
+
thresholds: T::Array[Orb::Threshold::OrHash],
|
32
29
|
type: Orb::AlertCreateForSubscriptionParams::Type::OrSymbol,
|
33
30
|
metric_id: T.nilable(String),
|
34
31
|
request_options: Orb::RequestOptions::OrHash
|
@@ -48,8 +45,7 @@ module Orb
|
|
48
45
|
sig do
|
49
46
|
override.returns(
|
50
47
|
{
|
51
|
-
thresholds:
|
52
|
-
T::Array[Orb::AlertCreateForSubscriptionParams::Threshold],
|
48
|
+
thresholds: T::Array[Orb::Threshold],
|
53
49
|
type: Orb::AlertCreateForSubscriptionParams::Type::OrSymbol,
|
54
50
|
metric_id: T.nilable(String),
|
55
51
|
request_options: Orb::RequestOptions
|
@@ -59,37 +55,6 @@ module Orb
|
|
59
55
|
def to_hash
|
60
56
|
end
|
61
57
|
|
62
|
-
class Threshold < Orb::Internal::Type::BaseModel
|
63
|
-
OrHash =
|
64
|
-
T.type_alias do
|
65
|
-
T.any(
|
66
|
-
Orb::AlertCreateForSubscriptionParams::Threshold,
|
67
|
-
Orb::Internal::AnyHash
|
68
|
-
)
|
69
|
-
end
|
70
|
-
|
71
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
72
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
73
|
-
# or above this value.
|
74
|
-
sig { returns(Float) }
|
75
|
-
attr_accessor :value
|
76
|
-
|
77
|
-
# Thresholds are used to define the conditions under which an alert will be
|
78
|
-
# triggered.
|
79
|
-
sig { params(value: Float).returns(T.attached_class) }
|
80
|
-
def self.new(
|
81
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
82
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
83
|
-
# or above this value.
|
84
|
-
value:
|
85
|
-
)
|
86
|
-
end
|
87
|
-
|
88
|
-
sig { override.returns({ value: Float }) }
|
89
|
-
def to_hash
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
58
|
# The type of alert to create. This must be a valid alert type.
|
94
59
|
module Type
|
95
60
|
extend Orb::Internal::Type::Enum
|
@@ -10,12 +10,12 @@ module Orb
|
|
10
10
|
T.type_alias { T.any(Orb::AlertUpdateParams, Orb::Internal::AnyHash) }
|
11
11
|
|
12
12
|
# The thresholds that define the values at which the alert will be triggered.
|
13
|
-
sig { returns(T::Array[Orb::
|
13
|
+
sig { returns(T::Array[Orb::Threshold]) }
|
14
14
|
attr_accessor :thresholds
|
15
15
|
|
16
16
|
sig do
|
17
17
|
params(
|
18
|
-
thresholds: T::Array[Orb::
|
18
|
+
thresholds: T::Array[Orb::Threshold::OrHash],
|
19
19
|
request_options: Orb::RequestOptions::OrHash
|
20
20
|
).returns(T.attached_class)
|
21
21
|
end
|
@@ -29,41 +29,13 @@ module Orb
|
|
29
29
|
sig do
|
30
30
|
override.returns(
|
31
31
|
{
|
32
|
-
thresholds: T::Array[Orb::
|
32
|
+
thresholds: T::Array[Orb::Threshold],
|
33
33
|
request_options: Orb::RequestOptions
|
34
34
|
}
|
35
35
|
)
|
36
36
|
end
|
37
37
|
def to_hash
|
38
38
|
end
|
39
|
-
|
40
|
-
class Threshold < Orb::Internal::Type::BaseModel
|
41
|
-
OrHash =
|
42
|
-
T.type_alias do
|
43
|
-
T.any(Orb::AlertUpdateParams::Threshold, Orb::Internal::AnyHash)
|
44
|
-
end
|
45
|
-
|
46
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
47
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
48
|
-
# or above this value.
|
49
|
-
sig { returns(Float) }
|
50
|
-
attr_accessor :value
|
51
|
-
|
52
|
-
# Thresholds are used to define the conditions under which an alert will be
|
53
|
-
# triggered.
|
54
|
-
sig { params(value: Float).returns(T.attached_class) }
|
55
|
-
def self.new(
|
56
|
-
# The value at which an alert will fire. For credit balance alerts, the alert will
|
57
|
-
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
58
|
-
# or above this value.
|
59
|
-
value:
|
60
|
-
)
|
61
|
-
end
|
62
|
-
|
63
|
-
sig { override.returns({ value: Float }) }
|
64
|
-
def to_hash
|
65
|
-
end
|
66
|
-
end
|
67
39
|
end
|
68
40
|
end
|
69
41
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
class Allocation < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash = T.type_alias { T.any(Orb::Allocation, Orb::Internal::AnyHash) }
|
7
|
+
|
8
|
+
sig { returns(T::Boolean) }
|
9
|
+
attr_accessor :allows_rollover
|
10
|
+
|
11
|
+
sig { returns(String) }
|
12
|
+
attr_accessor :currency
|
13
|
+
|
14
|
+
sig { returns(T.nilable(Orb::CustomExpiration)) }
|
15
|
+
attr_reader :custom_expiration
|
16
|
+
|
17
|
+
sig do
|
18
|
+
params(custom_expiration: T.nilable(Orb::CustomExpiration::OrHash)).void
|
19
|
+
end
|
20
|
+
attr_writer :custom_expiration
|
21
|
+
|
22
|
+
sig do
|
23
|
+
params(
|
24
|
+
allows_rollover: T::Boolean,
|
25
|
+
currency: String,
|
26
|
+
custom_expiration: T.nilable(Orb::CustomExpiration::OrHash)
|
27
|
+
).returns(T.attached_class)
|
28
|
+
end
|
29
|
+
def self.new(allows_rollover:, currency:, custom_expiration:)
|
30
|
+
end
|
31
|
+
|
32
|
+
sig do
|
33
|
+
override.returns(
|
34
|
+
{
|
35
|
+
allows_rollover: T::Boolean,
|
36
|
+
currency: String,
|
37
|
+
custom_expiration: T.nilable(Orb::CustomExpiration)
|
38
|
+
}
|
39
|
+
)
|
40
|
+
end
|
41
|
+
def to_hash
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -19,7 +19,7 @@ module Orb
|
|
19
19
|
attr_accessor :applies_to_price_ids
|
20
20
|
|
21
21
|
# The filters that determine which prices to apply this discount to.
|
22
|
-
sig { returns(T.nilable(T::Array[Orb::
|
22
|
+
sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) }
|
23
23
|
attr_accessor :filters
|
24
24
|
|
25
25
|
sig { returns(T.nilable(String)) }
|
@@ -30,7 +30,7 @@ module Orb
|
|
30
30
|
amount_discount: String,
|
31
31
|
discount_type: Orb::AmountDiscount::DiscountType::OrSymbol,
|
32
32
|
applies_to_price_ids: T.nilable(T::Array[String]),
|
33
|
-
filters: T.nilable(T::Array[Orb::
|
33
|
+
filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]),
|
34
34
|
reason: T.nilable(String)
|
35
35
|
).returns(T.attached_class)
|
36
36
|
end
|
@@ -53,7 +53,7 @@ module Orb
|
|
53
53
|
amount_discount: String,
|
54
54
|
discount_type: Orb::AmountDiscount::DiscountType::OrSymbol,
|
55
55
|
applies_to_price_ids: T.nilable(T::Array[String]),
|
56
|
-
filters: T.nilable(T::Array[Orb::
|
56
|
+
filters: T.nilable(T::Array[Orb::TransformPriceFilter]),
|
57
57
|
reason: T.nilable(String)
|
58
58
|
}
|
59
59
|
)
|
@@ -78,115 +78,6 @@ module Orb
|
|
78
78
|
def self.values
|
79
79
|
end
|
80
80
|
end
|
81
|
-
|
82
|
-
class Filter < Orb::Internal::Type::BaseModel
|
83
|
-
OrHash =
|
84
|
-
T.type_alias do
|
85
|
-
T.any(Orb::AmountDiscount::Filter, Orb::Internal::AnyHash)
|
86
|
-
end
|
87
|
-
|
88
|
-
# The property of the price to filter on.
|
89
|
-
sig { returns(Orb::AmountDiscount::Filter::Field::OrSymbol) }
|
90
|
-
attr_accessor :field
|
91
|
-
|
92
|
-
# Should prices that match the filter be included or excluded.
|
93
|
-
sig { returns(Orb::AmountDiscount::Filter::Operator::OrSymbol) }
|
94
|
-
attr_accessor :operator
|
95
|
-
|
96
|
-
# The IDs or values that match this filter.
|
97
|
-
sig { returns(T::Array[String]) }
|
98
|
-
attr_accessor :values
|
99
|
-
|
100
|
-
sig do
|
101
|
-
params(
|
102
|
-
field: Orb::AmountDiscount::Filter::Field::OrSymbol,
|
103
|
-
operator: Orb::AmountDiscount::Filter::Operator::OrSymbol,
|
104
|
-
values: T::Array[String]
|
105
|
-
).returns(T.attached_class)
|
106
|
-
end
|
107
|
-
def self.new(
|
108
|
-
# The property of the price to filter on.
|
109
|
-
field:,
|
110
|
-
# Should prices that match the filter be included or excluded.
|
111
|
-
operator:,
|
112
|
-
# The IDs or values that match this filter.
|
113
|
-
values:
|
114
|
-
)
|
115
|
-
end
|
116
|
-
|
117
|
-
sig do
|
118
|
-
override.returns(
|
119
|
-
{
|
120
|
-
field: Orb::AmountDiscount::Filter::Field::OrSymbol,
|
121
|
-
operator: Orb::AmountDiscount::Filter::Operator::OrSymbol,
|
122
|
-
values: T::Array[String]
|
123
|
-
}
|
124
|
-
)
|
125
|
-
end
|
126
|
-
def to_hash
|
127
|
-
end
|
128
|
-
|
129
|
-
# The property of the price to filter on.
|
130
|
-
module Field
|
131
|
-
extend Orb::Internal::Type::Enum
|
132
|
-
|
133
|
-
TaggedSymbol =
|
134
|
-
T.type_alias { T.all(Symbol, Orb::AmountDiscount::Filter::Field) }
|
135
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
136
|
-
|
137
|
-
PRICE_ID =
|
138
|
-
T.let(:price_id, Orb::AmountDiscount::Filter::Field::TaggedSymbol)
|
139
|
-
ITEM_ID =
|
140
|
-
T.let(:item_id, Orb::AmountDiscount::Filter::Field::TaggedSymbol)
|
141
|
-
PRICE_TYPE =
|
142
|
-
T.let(:price_type, Orb::AmountDiscount::Filter::Field::TaggedSymbol)
|
143
|
-
CURRENCY =
|
144
|
-
T.let(:currency, Orb::AmountDiscount::Filter::Field::TaggedSymbol)
|
145
|
-
PRICING_UNIT_ID =
|
146
|
-
T.let(
|
147
|
-
:pricing_unit_id,
|
148
|
-
Orb::AmountDiscount::Filter::Field::TaggedSymbol
|
149
|
-
)
|
150
|
-
|
151
|
-
sig do
|
152
|
-
override.returns(
|
153
|
-
T::Array[Orb::AmountDiscount::Filter::Field::TaggedSymbol]
|
154
|
-
)
|
155
|
-
end
|
156
|
-
def self.values
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
# Should prices that match the filter be included or excluded.
|
161
|
-
module Operator
|
162
|
-
extend Orb::Internal::Type::Enum
|
163
|
-
|
164
|
-
TaggedSymbol =
|
165
|
-
T.type_alias do
|
166
|
-
T.all(Symbol, Orb::AmountDiscount::Filter::Operator)
|
167
|
-
end
|
168
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
169
|
-
|
170
|
-
INCLUDES =
|
171
|
-
T.let(
|
172
|
-
:includes,
|
173
|
-
Orb::AmountDiscount::Filter::Operator::TaggedSymbol
|
174
|
-
)
|
175
|
-
EXCLUDES =
|
176
|
-
T.let(
|
177
|
-
:excludes,
|
178
|
-
Orb::AmountDiscount::Filter::Operator::TaggedSymbol
|
179
|
-
)
|
180
|
-
|
181
|
-
sig do
|
182
|
-
override.returns(
|
183
|
-
T::Array[Orb::AmountDiscount::Filter::Operator::TaggedSymbol]
|
184
|
-
)
|
185
|
-
end
|
186
|
-
def self.values
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
81
|
end
|
191
82
|
end
|
192
83
|
end
|