orb-billing 0.12.0 → 1.0.0
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 +20 -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
@@ -0,0 +1,411 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
class PriceEvaluatePreviewEventsParams < Orb::Internal::Type::BaseModel
|
6
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
7
|
+
include Orb::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Orb::PriceEvaluatePreviewEventsParams, Orb::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
# The exclusive upper bound for event timestamps
|
15
|
+
sig { returns(Time) }
|
16
|
+
attr_accessor :timeframe_end
|
17
|
+
|
18
|
+
# The inclusive lower bound for event timestamps
|
19
|
+
sig { returns(Time) }
|
20
|
+
attr_accessor :timeframe_start
|
21
|
+
|
22
|
+
# The ID of the customer to which this evaluation is scoped.
|
23
|
+
sig { returns(T.nilable(String)) }
|
24
|
+
attr_accessor :customer_id
|
25
|
+
|
26
|
+
# List of preview events to use instead of actual usage data
|
27
|
+
sig do
|
28
|
+
returns(
|
29
|
+
T.nilable(T::Array[Orb::PriceEvaluatePreviewEventsParams::Event])
|
30
|
+
)
|
31
|
+
end
|
32
|
+
attr_reader :events
|
33
|
+
|
34
|
+
sig do
|
35
|
+
params(
|
36
|
+
events: T::Array[Orb::PriceEvaluatePreviewEventsParams::Event::OrHash]
|
37
|
+
).void
|
38
|
+
end
|
39
|
+
attr_writer :events
|
40
|
+
|
41
|
+
# The external customer ID of the customer to which this evaluation is scoped.
|
42
|
+
sig { returns(T.nilable(String)) }
|
43
|
+
attr_accessor :external_customer_id
|
44
|
+
|
45
|
+
# List of prices to evaluate (max 100)
|
46
|
+
sig do
|
47
|
+
returns(
|
48
|
+
T.nilable(
|
49
|
+
T::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation]
|
50
|
+
)
|
51
|
+
)
|
52
|
+
end
|
53
|
+
attr_reader :price_evaluations
|
54
|
+
|
55
|
+
sig do
|
56
|
+
params(
|
57
|
+
price_evaluations:
|
58
|
+
T::Array[
|
59
|
+
Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::OrHash
|
60
|
+
]
|
61
|
+
).void
|
62
|
+
end
|
63
|
+
attr_writer :price_evaluations
|
64
|
+
|
65
|
+
sig do
|
66
|
+
params(
|
67
|
+
timeframe_end: Time,
|
68
|
+
timeframe_start: Time,
|
69
|
+
customer_id: T.nilable(String),
|
70
|
+
events:
|
71
|
+
T::Array[Orb::PriceEvaluatePreviewEventsParams::Event::OrHash],
|
72
|
+
external_customer_id: T.nilable(String),
|
73
|
+
price_evaluations:
|
74
|
+
T::Array[
|
75
|
+
Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::OrHash
|
76
|
+
],
|
77
|
+
request_options: Orb::RequestOptions::OrHash
|
78
|
+
).returns(T.attached_class)
|
79
|
+
end
|
80
|
+
def self.new(
|
81
|
+
# The exclusive upper bound for event timestamps
|
82
|
+
timeframe_end:,
|
83
|
+
# The inclusive lower bound for event timestamps
|
84
|
+
timeframe_start:,
|
85
|
+
# The ID of the customer to which this evaluation is scoped.
|
86
|
+
customer_id: nil,
|
87
|
+
# List of preview events to use instead of actual usage data
|
88
|
+
events: nil,
|
89
|
+
# The external customer ID of the customer to which this evaluation is scoped.
|
90
|
+
external_customer_id: nil,
|
91
|
+
# List of prices to evaluate (max 100)
|
92
|
+
price_evaluations: nil,
|
93
|
+
request_options: {}
|
94
|
+
)
|
95
|
+
end
|
96
|
+
|
97
|
+
sig do
|
98
|
+
override.returns(
|
99
|
+
{
|
100
|
+
timeframe_end: Time,
|
101
|
+
timeframe_start: Time,
|
102
|
+
customer_id: T.nilable(String),
|
103
|
+
events: T::Array[Orb::PriceEvaluatePreviewEventsParams::Event],
|
104
|
+
external_customer_id: T.nilable(String),
|
105
|
+
price_evaluations:
|
106
|
+
T::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation],
|
107
|
+
request_options: Orb::RequestOptions
|
108
|
+
}
|
109
|
+
)
|
110
|
+
end
|
111
|
+
def to_hash
|
112
|
+
end
|
113
|
+
|
114
|
+
class Event < Orb::Internal::Type::BaseModel
|
115
|
+
OrHash =
|
116
|
+
T.type_alias do
|
117
|
+
T.any(
|
118
|
+
Orb::PriceEvaluatePreviewEventsParams::Event,
|
119
|
+
Orb::Internal::AnyHash
|
120
|
+
)
|
121
|
+
end
|
122
|
+
|
123
|
+
# A name to meaningfully identify the action or event type.
|
124
|
+
sig { returns(String) }
|
125
|
+
attr_accessor :event_name
|
126
|
+
|
127
|
+
# A dictionary of custom properties. Values in this dictionary must be numeric,
|
128
|
+
# boolean, or strings. Nested dictionaries are disallowed.
|
129
|
+
sig { returns(T::Hash[Symbol, T.anything]) }
|
130
|
+
attr_accessor :properties
|
131
|
+
|
132
|
+
# An ISO 8601 format date with no timezone offset (i.e. UTC). This should
|
133
|
+
# represent the time that usage was recorded, and is particularly important to
|
134
|
+
# attribute usage to a given billing period.
|
135
|
+
sig { returns(Time) }
|
136
|
+
attr_accessor :timestamp
|
137
|
+
|
138
|
+
# The Orb Customer identifier
|
139
|
+
sig { returns(T.nilable(String)) }
|
140
|
+
attr_accessor :customer_id
|
141
|
+
|
142
|
+
# An alias for the Orb customer, whose mapping is specified when creating the
|
143
|
+
# customer
|
144
|
+
sig { returns(T.nilable(String)) }
|
145
|
+
attr_accessor :external_customer_id
|
146
|
+
|
147
|
+
sig do
|
148
|
+
params(
|
149
|
+
event_name: String,
|
150
|
+
properties: T::Hash[Symbol, T.anything],
|
151
|
+
timestamp: Time,
|
152
|
+
customer_id: T.nilable(String),
|
153
|
+
external_customer_id: T.nilable(String)
|
154
|
+
).returns(T.attached_class)
|
155
|
+
end
|
156
|
+
def self.new(
|
157
|
+
# A name to meaningfully identify the action or event type.
|
158
|
+
event_name:,
|
159
|
+
# A dictionary of custom properties. Values in this dictionary must be numeric,
|
160
|
+
# boolean, or strings. Nested dictionaries are disallowed.
|
161
|
+
properties:,
|
162
|
+
# An ISO 8601 format date with no timezone offset (i.e. UTC). This should
|
163
|
+
# represent the time that usage was recorded, and is particularly important to
|
164
|
+
# attribute usage to a given billing period.
|
165
|
+
timestamp:,
|
166
|
+
# The Orb Customer identifier
|
167
|
+
customer_id: nil,
|
168
|
+
# An alias for the Orb customer, whose mapping is specified when creating the
|
169
|
+
# customer
|
170
|
+
external_customer_id: nil
|
171
|
+
)
|
172
|
+
end
|
173
|
+
|
174
|
+
sig do
|
175
|
+
override.returns(
|
176
|
+
{
|
177
|
+
event_name: String,
|
178
|
+
properties: T::Hash[Symbol, T.anything],
|
179
|
+
timestamp: Time,
|
180
|
+
customer_id: T.nilable(String),
|
181
|
+
external_customer_id: T.nilable(String)
|
182
|
+
}
|
183
|
+
)
|
184
|
+
end
|
185
|
+
def to_hash
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
class PriceEvaluation < Orb::Internal::Type::BaseModel
|
190
|
+
OrHash =
|
191
|
+
T.type_alias do
|
192
|
+
T.any(
|
193
|
+
Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation,
|
194
|
+
Orb::Internal::AnyHash
|
195
|
+
)
|
196
|
+
end
|
197
|
+
|
198
|
+
# A boolean
|
199
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
200
|
+
# filter the underlying billable metric
|
201
|
+
sig { returns(T.nilable(String)) }
|
202
|
+
attr_accessor :filter
|
203
|
+
|
204
|
+
# Properties (or
|
205
|
+
# [computed properties](/extensibility/advanced-metrics#computed-properties)) used
|
206
|
+
# to group the underlying billable metric
|
207
|
+
sig { returns(T.nilable(T::Array[String])) }
|
208
|
+
attr_reader :grouping_keys
|
209
|
+
|
210
|
+
sig { params(grouping_keys: T::Array[String]).void }
|
211
|
+
attr_writer :grouping_keys
|
212
|
+
|
213
|
+
# An inline price definition to evaluate, allowing you to test price
|
214
|
+
# configurations before adding them to Orb.
|
215
|
+
sig do
|
216
|
+
returns(
|
217
|
+
T.nilable(
|
218
|
+
T.any(
|
219
|
+
Orb::NewFloatingUnitPrice,
|
220
|
+
Orb::NewFloatingPackagePrice,
|
221
|
+
Orb::NewFloatingMatrixPrice,
|
222
|
+
Orb::NewFloatingMatrixWithAllocationPrice,
|
223
|
+
Orb::NewFloatingTieredPrice,
|
224
|
+
Orb::NewFloatingTieredBPSPrice,
|
225
|
+
Orb::NewFloatingBPSPrice,
|
226
|
+
Orb::NewFloatingBulkBPSPrice,
|
227
|
+
Orb::NewFloatingBulkPrice,
|
228
|
+
Orb::NewFloatingThresholdTotalAmountPrice,
|
229
|
+
Orb::NewFloatingTieredPackagePrice,
|
230
|
+
Orb::NewFloatingGroupedTieredPrice,
|
231
|
+
Orb::NewFloatingMaxGroupTieredPackagePrice,
|
232
|
+
Orb::NewFloatingTieredWithMinimumPrice,
|
233
|
+
Orb::NewFloatingPackageWithAllocationPrice,
|
234
|
+
Orb::NewFloatingTieredPackageWithMinimumPrice,
|
235
|
+
Orb::NewFloatingUnitWithPercentPrice,
|
236
|
+
Orb::NewFloatingTieredWithProrationPrice,
|
237
|
+
Orb::NewFloatingUnitWithProrationPrice,
|
238
|
+
Orb::NewFloatingGroupedAllocationPrice,
|
239
|
+
Orb::NewFloatingGroupedWithProratedMinimumPrice,
|
240
|
+
Orb::NewFloatingGroupedWithMeteredMinimumPrice,
|
241
|
+
Orb::NewFloatingMatrixWithDisplayNamePrice,
|
242
|
+
Orb::NewFloatingBulkWithProrationPrice,
|
243
|
+
Orb::NewFloatingGroupedTieredPackagePrice,
|
244
|
+
Orb::NewFloatingScalableMatrixWithUnitPricingPrice,
|
245
|
+
Orb::NewFloatingScalableMatrixWithTieredPricingPrice,
|
246
|
+
Orb::NewFloatingCumulativeGroupedBulkPrice
|
247
|
+
)
|
248
|
+
)
|
249
|
+
)
|
250
|
+
end
|
251
|
+
attr_accessor :price
|
252
|
+
|
253
|
+
# The ID of a price to evaluate that exists in your Orb account.
|
254
|
+
sig { returns(T.nilable(String)) }
|
255
|
+
attr_accessor :price_id
|
256
|
+
|
257
|
+
sig do
|
258
|
+
params(
|
259
|
+
filter: T.nilable(String),
|
260
|
+
grouping_keys: T::Array[String],
|
261
|
+
price:
|
262
|
+
T.nilable(
|
263
|
+
T.any(
|
264
|
+
Orb::NewFloatingUnitPrice::OrHash,
|
265
|
+
Orb::NewFloatingPackagePrice::OrHash,
|
266
|
+
Orb::NewFloatingMatrixPrice::OrHash,
|
267
|
+
Orb::NewFloatingMatrixWithAllocationPrice::OrHash,
|
268
|
+
Orb::NewFloatingTieredPrice::OrHash,
|
269
|
+
Orb::NewFloatingTieredBPSPrice::OrHash,
|
270
|
+
Orb::NewFloatingBPSPrice::OrHash,
|
271
|
+
Orb::NewFloatingBulkBPSPrice::OrHash,
|
272
|
+
Orb::NewFloatingBulkPrice::OrHash,
|
273
|
+
Orb::NewFloatingThresholdTotalAmountPrice::OrHash,
|
274
|
+
Orb::NewFloatingTieredPackagePrice::OrHash,
|
275
|
+
Orb::NewFloatingGroupedTieredPrice::OrHash,
|
276
|
+
Orb::NewFloatingMaxGroupTieredPackagePrice::OrHash,
|
277
|
+
Orb::NewFloatingTieredWithMinimumPrice::OrHash,
|
278
|
+
Orb::NewFloatingPackageWithAllocationPrice::OrHash,
|
279
|
+
Orb::NewFloatingTieredPackageWithMinimumPrice::OrHash,
|
280
|
+
Orb::NewFloatingUnitWithPercentPrice::OrHash,
|
281
|
+
Orb::NewFloatingTieredWithProrationPrice::OrHash,
|
282
|
+
Orb::NewFloatingUnitWithProrationPrice::OrHash,
|
283
|
+
Orb::NewFloatingGroupedAllocationPrice::OrHash,
|
284
|
+
Orb::NewFloatingGroupedWithProratedMinimumPrice::OrHash,
|
285
|
+
Orb::NewFloatingGroupedWithMeteredMinimumPrice::OrHash,
|
286
|
+
Orb::NewFloatingMatrixWithDisplayNamePrice::OrHash,
|
287
|
+
Orb::NewFloatingBulkWithProrationPrice::OrHash,
|
288
|
+
Orb::NewFloatingGroupedTieredPackagePrice::OrHash,
|
289
|
+
Orb::NewFloatingScalableMatrixWithUnitPricingPrice::OrHash,
|
290
|
+
Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash,
|
291
|
+
Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash
|
292
|
+
)
|
293
|
+
),
|
294
|
+
price_id: T.nilable(String)
|
295
|
+
).returns(T.attached_class)
|
296
|
+
end
|
297
|
+
def self.new(
|
298
|
+
# A boolean
|
299
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
300
|
+
# filter the underlying billable metric
|
301
|
+
filter: nil,
|
302
|
+
# Properties (or
|
303
|
+
# [computed properties](/extensibility/advanced-metrics#computed-properties)) used
|
304
|
+
# to group the underlying billable metric
|
305
|
+
grouping_keys: nil,
|
306
|
+
# An inline price definition to evaluate, allowing you to test price
|
307
|
+
# configurations before adding them to Orb.
|
308
|
+
price: nil,
|
309
|
+
# The ID of a price to evaluate that exists in your Orb account.
|
310
|
+
price_id: nil
|
311
|
+
)
|
312
|
+
end
|
313
|
+
|
314
|
+
sig do
|
315
|
+
override.returns(
|
316
|
+
{
|
317
|
+
filter: T.nilable(String),
|
318
|
+
grouping_keys: T::Array[String],
|
319
|
+
price:
|
320
|
+
T.nilable(
|
321
|
+
T.any(
|
322
|
+
Orb::NewFloatingUnitPrice,
|
323
|
+
Orb::NewFloatingPackagePrice,
|
324
|
+
Orb::NewFloatingMatrixPrice,
|
325
|
+
Orb::NewFloatingMatrixWithAllocationPrice,
|
326
|
+
Orb::NewFloatingTieredPrice,
|
327
|
+
Orb::NewFloatingTieredBPSPrice,
|
328
|
+
Orb::NewFloatingBPSPrice,
|
329
|
+
Orb::NewFloatingBulkBPSPrice,
|
330
|
+
Orb::NewFloatingBulkPrice,
|
331
|
+
Orb::NewFloatingThresholdTotalAmountPrice,
|
332
|
+
Orb::NewFloatingTieredPackagePrice,
|
333
|
+
Orb::NewFloatingGroupedTieredPrice,
|
334
|
+
Orb::NewFloatingMaxGroupTieredPackagePrice,
|
335
|
+
Orb::NewFloatingTieredWithMinimumPrice,
|
336
|
+
Orb::NewFloatingPackageWithAllocationPrice,
|
337
|
+
Orb::NewFloatingTieredPackageWithMinimumPrice,
|
338
|
+
Orb::NewFloatingUnitWithPercentPrice,
|
339
|
+
Orb::NewFloatingTieredWithProrationPrice,
|
340
|
+
Orb::NewFloatingUnitWithProrationPrice,
|
341
|
+
Orb::NewFloatingGroupedAllocationPrice,
|
342
|
+
Orb::NewFloatingGroupedWithProratedMinimumPrice,
|
343
|
+
Orb::NewFloatingGroupedWithMeteredMinimumPrice,
|
344
|
+
Orb::NewFloatingMatrixWithDisplayNamePrice,
|
345
|
+
Orb::NewFloatingBulkWithProrationPrice,
|
346
|
+
Orb::NewFloatingGroupedTieredPackagePrice,
|
347
|
+
Orb::NewFloatingScalableMatrixWithUnitPricingPrice,
|
348
|
+
Orb::NewFloatingScalableMatrixWithTieredPricingPrice,
|
349
|
+
Orb::NewFloatingCumulativeGroupedBulkPrice
|
350
|
+
)
|
351
|
+
),
|
352
|
+
price_id: T.nilable(String)
|
353
|
+
}
|
354
|
+
)
|
355
|
+
end
|
356
|
+
def to_hash
|
357
|
+
end
|
358
|
+
|
359
|
+
# An inline price definition to evaluate, allowing you to test price
|
360
|
+
# configurations before adding them to Orb.
|
361
|
+
module Price
|
362
|
+
extend Orb::Internal::Type::Union
|
363
|
+
|
364
|
+
Variants =
|
365
|
+
T.type_alias do
|
366
|
+
T.any(
|
367
|
+
Orb::NewFloatingUnitPrice,
|
368
|
+
Orb::NewFloatingPackagePrice,
|
369
|
+
Orb::NewFloatingMatrixPrice,
|
370
|
+
Orb::NewFloatingMatrixWithAllocationPrice,
|
371
|
+
Orb::NewFloatingTieredPrice,
|
372
|
+
Orb::NewFloatingTieredBPSPrice,
|
373
|
+
Orb::NewFloatingBPSPrice,
|
374
|
+
Orb::NewFloatingBulkBPSPrice,
|
375
|
+
Orb::NewFloatingBulkPrice,
|
376
|
+
Orb::NewFloatingThresholdTotalAmountPrice,
|
377
|
+
Orb::NewFloatingTieredPackagePrice,
|
378
|
+
Orb::NewFloatingGroupedTieredPrice,
|
379
|
+
Orb::NewFloatingMaxGroupTieredPackagePrice,
|
380
|
+
Orb::NewFloatingTieredWithMinimumPrice,
|
381
|
+
Orb::NewFloatingPackageWithAllocationPrice,
|
382
|
+
Orb::NewFloatingTieredPackageWithMinimumPrice,
|
383
|
+
Orb::NewFloatingUnitWithPercentPrice,
|
384
|
+
Orb::NewFloatingTieredWithProrationPrice,
|
385
|
+
Orb::NewFloatingUnitWithProrationPrice,
|
386
|
+
Orb::NewFloatingGroupedAllocationPrice,
|
387
|
+
Orb::NewFloatingGroupedWithProratedMinimumPrice,
|
388
|
+
Orb::NewFloatingGroupedWithMeteredMinimumPrice,
|
389
|
+
Orb::NewFloatingMatrixWithDisplayNamePrice,
|
390
|
+
Orb::NewFloatingBulkWithProrationPrice,
|
391
|
+
Orb::NewFloatingGroupedTieredPackagePrice,
|
392
|
+
Orb::NewFloatingScalableMatrixWithUnitPricingPrice,
|
393
|
+
Orb::NewFloatingScalableMatrixWithTieredPricingPrice,
|
394
|
+
Orb::NewFloatingCumulativeGroupedBulkPrice
|
395
|
+
)
|
396
|
+
end
|
397
|
+
|
398
|
+
sig do
|
399
|
+
override.returns(
|
400
|
+
T::Array[
|
401
|
+
Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Variants
|
402
|
+
]
|
403
|
+
)
|
404
|
+
end
|
405
|
+
def self.variants
|
406
|
+
end
|
407
|
+
end
|
408
|
+
end
|
409
|
+
end
|
410
|
+
end
|
411
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
class PriceEvaluatePreviewEventsResponse < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
Orb::Models::PriceEvaluatePreviewEventsResponse,
|
10
|
+
Orb::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
sig do
|
15
|
+
returns(T::Array[Orb::Models::PriceEvaluatePreviewEventsResponse::Data])
|
16
|
+
end
|
17
|
+
attr_accessor :data
|
18
|
+
|
19
|
+
sig do
|
20
|
+
params(
|
21
|
+
data:
|
22
|
+
T::Array[
|
23
|
+
Orb::Models::PriceEvaluatePreviewEventsResponse::Data::OrHash
|
24
|
+
]
|
25
|
+
).returns(T.attached_class)
|
26
|
+
end
|
27
|
+
def self.new(data:)
|
28
|
+
end
|
29
|
+
|
30
|
+
sig do
|
31
|
+
override.returns(
|
32
|
+
{
|
33
|
+
data:
|
34
|
+
T::Array[Orb::Models::PriceEvaluatePreviewEventsResponse::Data]
|
35
|
+
}
|
36
|
+
)
|
37
|
+
end
|
38
|
+
def to_hash
|
39
|
+
end
|
40
|
+
|
41
|
+
class Data < Orb::Internal::Type::BaseModel
|
42
|
+
OrHash =
|
43
|
+
T.type_alias do
|
44
|
+
T.any(
|
45
|
+
Orb::Models::PriceEvaluatePreviewEventsResponse::Data,
|
46
|
+
Orb::Internal::AnyHash
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
# The currency of the price
|
51
|
+
sig { returns(String) }
|
52
|
+
attr_accessor :currency
|
53
|
+
|
54
|
+
# The computed price groups associated with input price.
|
55
|
+
sig { returns(T::Array[Orb::EvaluatePriceGroup]) }
|
56
|
+
attr_accessor :price_groups
|
57
|
+
|
58
|
+
# The index of the inline price
|
59
|
+
sig { returns(T.nilable(Integer)) }
|
60
|
+
attr_accessor :inline_price_index
|
61
|
+
|
62
|
+
# The ID of the price
|
63
|
+
sig { returns(T.nilable(String)) }
|
64
|
+
attr_accessor :price_id
|
65
|
+
|
66
|
+
sig do
|
67
|
+
params(
|
68
|
+
currency: String,
|
69
|
+
price_groups: T::Array[Orb::EvaluatePriceGroup::OrHash],
|
70
|
+
inline_price_index: T.nilable(Integer),
|
71
|
+
price_id: T.nilable(String)
|
72
|
+
).returns(T.attached_class)
|
73
|
+
end
|
74
|
+
def self.new(
|
75
|
+
# The currency of the price
|
76
|
+
currency:,
|
77
|
+
# The computed price groups associated with input price.
|
78
|
+
price_groups:,
|
79
|
+
# The index of the inline price
|
80
|
+
inline_price_index: nil,
|
81
|
+
# The ID of the price
|
82
|
+
price_id: nil
|
83
|
+
)
|
84
|
+
end
|
85
|
+
|
86
|
+
sig do
|
87
|
+
override.returns(
|
88
|
+
{
|
89
|
+
currency: String,
|
90
|
+
price_groups: T::Array[Orb::EvaluatePriceGroup],
|
91
|
+
inline_price_index: T.nilable(Integer),
|
92
|
+
price_id: T.nilable(String)
|
93
|
+
}
|
94
|
+
)
|
95
|
+
end
|
96
|
+
def to_hash
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,174 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
class PriceInterval < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias { T.any(Orb::PriceInterval, Orb::Internal::AnyHash) }
|
8
|
+
|
9
|
+
sig { returns(String) }
|
10
|
+
attr_accessor :id
|
11
|
+
|
12
|
+
# The day of the month that Orb bills for this price
|
13
|
+
sig { returns(Integer) }
|
14
|
+
attr_accessor :billing_cycle_day
|
15
|
+
|
16
|
+
# The end of the current billing period. This is an exclusive timestamp, such that
|
17
|
+
# the instant returned is exactly the end of the billing period. Set to null if
|
18
|
+
# this price interval is not currently active.
|
19
|
+
sig { returns(T.nilable(Time)) }
|
20
|
+
attr_accessor :current_billing_period_end_date
|
21
|
+
|
22
|
+
# The start date of the current billing period. This is an inclusive timestamp;
|
23
|
+
# the instant returned is exactly the beginning of the billing period. Set to null
|
24
|
+
# if this price interval is not currently active.
|
25
|
+
sig { returns(T.nilable(Time)) }
|
26
|
+
attr_accessor :current_billing_period_start_date
|
27
|
+
|
28
|
+
# The end date of the price interval. This is the date that Orb stops billing for
|
29
|
+
# this price.
|
30
|
+
sig { returns(T.nilable(Time)) }
|
31
|
+
attr_accessor :end_date
|
32
|
+
|
33
|
+
# An additional filter to apply to usage queries.
|
34
|
+
sig { returns(T.nilable(String)) }
|
35
|
+
attr_accessor :filter
|
36
|
+
|
37
|
+
# The fixed fee quantity transitions for this price interval. This is only
|
38
|
+
# relevant for fixed fees.
|
39
|
+
sig { returns(T.nilable(T::Array[Orb::FixedFeeQuantityTransition])) }
|
40
|
+
attr_accessor :fixed_fee_quantity_transitions
|
41
|
+
|
42
|
+
# The Price resource represents a price that can be billed on a subscription,
|
43
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
44
|
+
# take a quantity and determine an amount to bill.
|
45
|
+
#
|
46
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
47
|
+
# is serialized differently in a given Price object. The model_type field
|
48
|
+
# determines the key for the configuration object that is present.
|
49
|
+
#
|
50
|
+
# For more on the types of prices, see
|
51
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
52
|
+
sig { returns(Orb::Price::Variants) }
|
53
|
+
attr_accessor :price
|
54
|
+
|
55
|
+
# The start date of the price interval. This is the date that Orb starts billing
|
56
|
+
# for this price.
|
57
|
+
sig { returns(Time) }
|
58
|
+
attr_accessor :start_date
|
59
|
+
|
60
|
+
# A list of customer IDs whose usage events will be aggregated and billed under
|
61
|
+
# this price interval.
|
62
|
+
sig { returns(T.nilable(T::Array[String])) }
|
63
|
+
attr_accessor :usage_customer_ids
|
64
|
+
|
65
|
+
# The Price Interval resource represents a period of time for which a price will
|
66
|
+
# bill on a subscription. A subscription’s price intervals define its billing
|
67
|
+
# behavior.
|
68
|
+
sig do
|
69
|
+
params(
|
70
|
+
id: String,
|
71
|
+
billing_cycle_day: Integer,
|
72
|
+
current_billing_period_end_date: T.nilable(Time),
|
73
|
+
current_billing_period_start_date: T.nilable(Time),
|
74
|
+
end_date: T.nilable(Time),
|
75
|
+
filter: T.nilable(String),
|
76
|
+
fixed_fee_quantity_transitions:
|
77
|
+
T.nilable(T::Array[Orb::FixedFeeQuantityTransition::OrHash]),
|
78
|
+
price:
|
79
|
+
T.any(
|
80
|
+
Orb::Price::Unit::OrHash,
|
81
|
+
Orb::Price::Package::OrHash,
|
82
|
+
Orb::Price::Matrix::OrHash,
|
83
|
+
Orb::Price::Tiered::OrHash,
|
84
|
+
Orb::Price::TieredBPS::OrHash,
|
85
|
+
Orb::Price::BPS::OrHash,
|
86
|
+
Orb::Price::BulkBPS::OrHash,
|
87
|
+
Orb::Price::Bulk::OrHash,
|
88
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
89
|
+
Orb::Price::TieredPackage::OrHash,
|
90
|
+
Orb::Price::GroupedTiered::OrHash,
|
91
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
92
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
93
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
94
|
+
Orb::Price::UnitWithPercent::OrHash,
|
95
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
96
|
+
Orb::Price::TieredWithProration::OrHash,
|
97
|
+
Orb::Price::UnitWithProration::OrHash,
|
98
|
+
Orb::Price::GroupedAllocation::OrHash,
|
99
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
100
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
101
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
102
|
+
Orb::Price::BulkWithProration::OrHash,
|
103
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
104
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
105
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
106
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
107
|
+
Orb::Price::CumulativeGroupedBulk::OrHash
|
108
|
+
),
|
109
|
+
start_date: Time,
|
110
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
111
|
+
).returns(T.attached_class)
|
112
|
+
end
|
113
|
+
def self.new(
|
114
|
+
id:,
|
115
|
+
# The day of the month that Orb bills for this price
|
116
|
+
billing_cycle_day:,
|
117
|
+
# The end of the current billing period. This is an exclusive timestamp, such that
|
118
|
+
# the instant returned is exactly the end of the billing period. Set to null if
|
119
|
+
# this price interval is not currently active.
|
120
|
+
current_billing_period_end_date:,
|
121
|
+
# The start date of the current billing period. This is an inclusive timestamp;
|
122
|
+
# the instant returned is exactly the beginning of the billing period. Set to null
|
123
|
+
# if this price interval is not currently active.
|
124
|
+
current_billing_period_start_date:,
|
125
|
+
# The end date of the price interval. This is the date that Orb stops billing for
|
126
|
+
# this price.
|
127
|
+
end_date:,
|
128
|
+
# An additional filter to apply to usage queries.
|
129
|
+
filter:,
|
130
|
+
# The fixed fee quantity transitions for this price interval. This is only
|
131
|
+
# relevant for fixed fees.
|
132
|
+
fixed_fee_quantity_transitions:,
|
133
|
+
# The Price resource represents a price that can be billed on a subscription,
|
134
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
135
|
+
# take a quantity and determine an amount to bill.
|
136
|
+
#
|
137
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
138
|
+
# is serialized differently in a given Price object. The model_type field
|
139
|
+
# determines the key for the configuration object that is present.
|
140
|
+
#
|
141
|
+
# For more on the types of prices, see
|
142
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
143
|
+
price:,
|
144
|
+
# The start date of the price interval. This is the date that Orb starts billing
|
145
|
+
# for this price.
|
146
|
+
start_date:,
|
147
|
+
# A list of customer IDs whose usage events will be aggregated and billed under
|
148
|
+
# this price interval.
|
149
|
+
usage_customer_ids:
|
150
|
+
)
|
151
|
+
end
|
152
|
+
|
153
|
+
sig do
|
154
|
+
override.returns(
|
155
|
+
{
|
156
|
+
id: String,
|
157
|
+
billing_cycle_day: Integer,
|
158
|
+
current_billing_period_end_date: T.nilable(Time),
|
159
|
+
current_billing_period_start_date: T.nilable(Time),
|
160
|
+
end_date: T.nilable(Time),
|
161
|
+
filter: T.nilable(String),
|
162
|
+
fixed_fee_quantity_transitions:
|
163
|
+
T.nilable(T::Array[Orb::FixedFeeQuantityTransition]),
|
164
|
+
price: Orb::Price::Variants,
|
165
|
+
start_date: Time,
|
166
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
167
|
+
}
|
168
|
+
)
|
169
|
+
end
|
170
|
+
def to_hash
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|