orb-billing 0.11.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 +39 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/base_model.rb +5 -5
- data/lib/orb/internal/type/union.rb +3 -8
- data/lib/orb/internal/util.rb +8 -9
- 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 +9 -1
- data/lib/orb/models/amount_discount_interval.rb +65 -0
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +186 -17772
- data/lib/orb/models/beta_create_plan_version_params.rb +183 -17605
- 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 +9 -1
- 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 -18278
- 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 -8758
- data/lib/orb/models/subscription_redeem_coupon_params.rb +17 -9
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +238 -18372
- 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 +9 -1
- 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 +9 -1
- 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 +29 -27
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +181 -11
- data/rbi/orb/internal/util.rbi +2 -0
- 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 +8 -0
- data/rbi/orb/models/amount_discount_interval.rbi +100 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +482 -32442
- data/rbi/orb/models/beta_create_plan_version_params.rbi +484 -32436
- 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 +8 -0
- 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 +541 -33368
- 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 -16144
- data/rbi/orb/models/subscription_redeem_coupon_params.rbi +16 -8
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +549 -33384
- 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 +8 -0
- 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 +8 -0
- 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 +19 -22
- 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 +5 -0
- data/sig/orb/models/amount_discount_interval.rbs +55 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +147 -12821
- data/sig/orb/models/beta_create_plan_version_params.rbs +144 -12802
- 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 +5 -0
- 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 +174 -13219
- 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 -6390
- data/sig/orb/models/subscription_redeem_coupon_params.rbs +11 -6
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +175 -13220
- 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 +5 -0
- 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 +5 -0
- 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 +15 -14
- 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/plan.rbi
CHANGED
@@ -54,10 +54,10 @@ module Orb
|
|
54
54
|
sig { returns(String) }
|
55
55
|
attr_accessor :invoicing_currency
|
56
56
|
|
57
|
-
sig { returns(T.nilable(Orb::
|
57
|
+
sig { returns(T.nilable(Orb::Maximum)) }
|
58
58
|
attr_reader :maximum
|
59
59
|
|
60
|
-
sig { params(maximum: T.nilable(Orb::
|
60
|
+
sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void }
|
61
61
|
attr_writer :maximum
|
62
62
|
|
63
63
|
sig { returns(T.nilable(String)) }
|
@@ -70,10 +70,10 @@ module Orb
|
|
70
70
|
sig { returns(T::Hash[Symbol, String]) }
|
71
71
|
attr_accessor :metadata
|
72
72
|
|
73
|
-
sig { returns(T.nilable(Orb::
|
73
|
+
sig { returns(T.nilable(Orb::Minimum)) }
|
74
74
|
attr_reader :minimum
|
75
75
|
|
76
|
-
sig { params(minimum: T.nilable(Orb::
|
76
|
+
sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void }
|
77
77
|
attr_writer :minimum
|
78
78
|
|
79
79
|
sig { returns(T.nilable(String)) }
|
@@ -126,11 +126,11 @@ module Orb
|
|
126
126
|
adjustments:
|
127
127
|
T::Array[
|
128
128
|
T.any(
|
129
|
-
Orb::
|
130
|
-
Orb::
|
131
|
-
Orb::
|
132
|
-
Orb::
|
133
|
-
Orb::
|
129
|
+
Orb::PlanPhaseUsageDiscountAdjustment::OrHash,
|
130
|
+
Orb::PlanPhaseAmountDiscountAdjustment::OrHash,
|
131
|
+
Orb::PlanPhasePercentageDiscountAdjustment::OrHash,
|
132
|
+
Orb::PlanPhaseMinimumAdjustment::OrHash,
|
133
|
+
Orb::PlanPhaseMaximumAdjustment::OrHash
|
134
134
|
)
|
135
135
|
],
|
136
136
|
base_plan: T.nilable(Orb::Plan::BasePlan::OrHash),
|
@@ -150,10 +150,10 @@ module Orb
|
|
150
150
|
),
|
151
151
|
external_plan_id: T.nilable(String),
|
152
152
|
invoicing_currency: String,
|
153
|
-
maximum: T.nilable(Orb::
|
153
|
+
maximum: T.nilable(Orb::Maximum::OrHash),
|
154
154
|
maximum_amount: T.nilable(String),
|
155
155
|
metadata: T::Hash[Symbol, String],
|
156
|
-
minimum: T.nilable(Orb::
|
156
|
+
minimum: T.nilable(Orb::Minimum::OrHash),
|
157
157
|
minimum_amount: T.nilable(String),
|
158
158
|
name: String,
|
159
159
|
net_terms: T.nilable(Integer),
|
@@ -165,9 +165,9 @@ module Orb
|
|
165
165
|
Orb::Price::Package::OrHash,
|
166
166
|
Orb::Price::Matrix::OrHash,
|
167
167
|
Orb::Price::Tiered::OrHash,
|
168
|
-
Orb::Price::
|
169
|
-
Orb::Price::
|
170
|
-
Orb::Price::
|
168
|
+
Orb::Price::TieredBPS::OrHash,
|
169
|
+
Orb::Price::BPS::OrHash,
|
170
|
+
Orb::Price::BulkBPS::OrHash,
|
171
171
|
Orb::Price::Bulk::OrHash,
|
172
172
|
Orb::Price::ThresholdTotalAmount::OrHash,
|
173
173
|
Orb::Price::TieredPackage::OrHash,
|
@@ -263,10 +263,10 @@ module Orb
|
|
263
263
|
discount: T.nilable(Orb::Discount::Variants),
|
264
264
|
external_plan_id: T.nilable(String),
|
265
265
|
invoicing_currency: String,
|
266
|
-
maximum: T.nilable(Orb::
|
266
|
+
maximum: T.nilable(Orb::Maximum),
|
267
267
|
maximum_amount: T.nilable(String),
|
268
268
|
metadata: T::Hash[Symbol, String],
|
269
|
-
minimum: T.nilable(Orb::
|
269
|
+
minimum: T.nilable(Orb::Minimum),
|
270
270
|
minimum_amount: T.nilable(String),
|
271
271
|
name: String,
|
272
272
|
net_terms: T.nilable(Integer),
|
@@ -288,1216 +288,14 @@ module Orb
|
|
288
288
|
Variants =
|
289
289
|
T.type_alias do
|
290
290
|
T.any(
|
291
|
-
Orb::
|
292
|
-
Orb::
|
293
|
-
Orb::
|
294
|
-
Orb::
|
295
|
-
Orb::
|
291
|
+
Orb::PlanPhaseUsageDiscountAdjustment,
|
292
|
+
Orb::PlanPhaseAmountDiscountAdjustment,
|
293
|
+
Orb::PlanPhasePercentageDiscountAdjustment,
|
294
|
+
Orb::PlanPhaseMinimumAdjustment,
|
295
|
+
Orb::PlanPhaseMaximumAdjustment
|
296
296
|
)
|
297
297
|
end
|
298
298
|
|
299
|
-
class UsageDiscount < Orb::Internal::Type::BaseModel
|
300
|
-
OrHash =
|
301
|
-
T.type_alias do
|
302
|
-
T.any(
|
303
|
-
Orb::Plan::Adjustment::UsageDiscount,
|
304
|
-
Orb::Internal::AnyHash
|
305
|
-
)
|
306
|
-
end
|
307
|
-
|
308
|
-
sig { returns(String) }
|
309
|
-
attr_accessor :id
|
310
|
-
|
311
|
-
sig { returns(Symbol) }
|
312
|
-
attr_accessor :adjustment_type
|
313
|
-
|
314
|
-
# The price IDs that this adjustment applies to.
|
315
|
-
sig { returns(T::Array[String]) }
|
316
|
-
attr_accessor :applies_to_price_ids
|
317
|
-
|
318
|
-
# The filters that determine which prices to apply this adjustment to.
|
319
|
-
sig do
|
320
|
-
returns(T::Array[Orb::Plan::Adjustment::UsageDiscount::Filter])
|
321
|
-
end
|
322
|
-
attr_accessor :filters
|
323
|
-
|
324
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
325
|
-
# that apply to only one price.
|
326
|
-
sig { returns(T::Boolean) }
|
327
|
-
attr_accessor :is_invoice_level
|
328
|
-
|
329
|
-
# The plan phase in which this adjustment is active.
|
330
|
-
sig { returns(T.nilable(Integer)) }
|
331
|
-
attr_accessor :plan_phase_order
|
332
|
-
|
333
|
-
# The reason for the adjustment.
|
334
|
-
sig { returns(T.nilable(String)) }
|
335
|
-
attr_accessor :reason
|
336
|
-
|
337
|
-
# The number of usage units by which to discount the price this adjustment applies
|
338
|
-
# to in a given billing period.
|
339
|
-
sig { returns(Float) }
|
340
|
-
attr_accessor :usage_discount
|
341
|
-
|
342
|
-
sig do
|
343
|
-
params(
|
344
|
-
id: String,
|
345
|
-
applies_to_price_ids: T::Array[String],
|
346
|
-
filters:
|
347
|
-
T::Array[Orb::Plan::Adjustment::UsageDiscount::Filter::OrHash],
|
348
|
-
is_invoice_level: T::Boolean,
|
349
|
-
plan_phase_order: T.nilable(Integer),
|
350
|
-
reason: T.nilable(String),
|
351
|
-
usage_discount: Float,
|
352
|
-
adjustment_type: Symbol
|
353
|
-
).returns(T.attached_class)
|
354
|
-
end
|
355
|
-
def self.new(
|
356
|
-
id:,
|
357
|
-
# The price IDs that this adjustment applies to.
|
358
|
-
applies_to_price_ids:,
|
359
|
-
# The filters that determine which prices to apply this adjustment to.
|
360
|
-
filters:,
|
361
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
362
|
-
# that apply to only one price.
|
363
|
-
is_invoice_level:,
|
364
|
-
# The plan phase in which this adjustment is active.
|
365
|
-
plan_phase_order:,
|
366
|
-
# The reason for the adjustment.
|
367
|
-
reason:,
|
368
|
-
# The number of usage units by which to discount the price this adjustment applies
|
369
|
-
# to in a given billing period.
|
370
|
-
usage_discount:,
|
371
|
-
adjustment_type: :usage_discount
|
372
|
-
)
|
373
|
-
end
|
374
|
-
|
375
|
-
sig do
|
376
|
-
override.returns(
|
377
|
-
{
|
378
|
-
id: String,
|
379
|
-
adjustment_type: Symbol,
|
380
|
-
applies_to_price_ids: T::Array[String],
|
381
|
-
filters: T::Array[Orb::Plan::Adjustment::UsageDiscount::Filter],
|
382
|
-
is_invoice_level: T::Boolean,
|
383
|
-
plan_phase_order: T.nilable(Integer),
|
384
|
-
reason: T.nilable(String),
|
385
|
-
usage_discount: Float
|
386
|
-
}
|
387
|
-
)
|
388
|
-
end
|
389
|
-
def to_hash
|
390
|
-
end
|
391
|
-
|
392
|
-
class Filter < Orb::Internal::Type::BaseModel
|
393
|
-
OrHash =
|
394
|
-
T.type_alias do
|
395
|
-
T.any(
|
396
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter,
|
397
|
-
Orb::Internal::AnyHash
|
398
|
-
)
|
399
|
-
end
|
400
|
-
|
401
|
-
# The property of the price to filter on.
|
402
|
-
sig do
|
403
|
-
returns(
|
404
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
405
|
-
)
|
406
|
-
end
|
407
|
-
attr_accessor :field
|
408
|
-
|
409
|
-
# Should prices that match the filter be included or excluded.
|
410
|
-
sig do
|
411
|
-
returns(
|
412
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
413
|
-
)
|
414
|
-
end
|
415
|
-
attr_accessor :operator
|
416
|
-
|
417
|
-
# The IDs or values that match this filter.
|
418
|
-
sig { returns(T::Array[String]) }
|
419
|
-
attr_accessor :values
|
420
|
-
|
421
|
-
sig do
|
422
|
-
params(
|
423
|
-
field:
|
424
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::OrSymbol,
|
425
|
-
operator:
|
426
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Operator::OrSymbol,
|
427
|
-
values: T::Array[String]
|
428
|
-
).returns(T.attached_class)
|
429
|
-
end
|
430
|
-
def self.new(
|
431
|
-
# The property of the price to filter on.
|
432
|
-
field:,
|
433
|
-
# Should prices that match the filter be included or excluded.
|
434
|
-
operator:,
|
435
|
-
# The IDs or values that match this filter.
|
436
|
-
values:
|
437
|
-
)
|
438
|
-
end
|
439
|
-
|
440
|
-
sig do
|
441
|
-
override.returns(
|
442
|
-
{
|
443
|
-
field:
|
444
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol,
|
445
|
-
operator:
|
446
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol,
|
447
|
-
values: T::Array[String]
|
448
|
-
}
|
449
|
-
)
|
450
|
-
end
|
451
|
-
def to_hash
|
452
|
-
end
|
453
|
-
|
454
|
-
# The property of the price to filter on.
|
455
|
-
module Field
|
456
|
-
extend Orb::Internal::Type::Enum
|
457
|
-
|
458
|
-
TaggedSymbol =
|
459
|
-
T.type_alias do
|
460
|
-
T.all(
|
461
|
-
Symbol,
|
462
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field
|
463
|
-
)
|
464
|
-
end
|
465
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
466
|
-
|
467
|
-
PRICE_ID =
|
468
|
-
T.let(
|
469
|
-
:price_id,
|
470
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
471
|
-
)
|
472
|
-
ITEM_ID =
|
473
|
-
T.let(
|
474
|
-
:item_id,
|
475
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
476
|
-
)
|
477
|
-
PRICE_TYPE =
|
478
|
-
T.let(
|
479
|
-
:price_type,
|
480
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
481
|
-
)
|
482
|
-
CURRENCY =
|
483
|
-
T.let(
|
484
|
-
:currency,
|
485
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
486
|
-
)
|
487
|
-
PRICING_UNIT_ID =
|
488
|
-
T.let(
|
489
|
-
:pricing_unit_id,
|
490
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
491
|
-
)
|
492
|
-
|
493
|
-
sig do
|
494
|
-
override.returns(
|
495
|
-
T::Array[
|
496
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
497
|
-
]
|
498
|
-
)
|
499
|
-
end
|
500
|
-
def self.values
|
501
|
-
end
|
502
|
-
end
|
503
|
-
|
504
|
-
# Should prices that match the filter be included or excluded.
|
505
|
-
module Operator
|
506
|
-
extend Orb::Internal::Type::Enum
|
507
|
-
|
508
|
-
TaggedSymbol =
|
509
|
-
T.type_alias do
|
510
|
-
T.all(
|
511
|
-
Symbol,
|
512
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Operator
|
513
|
-
)
|
514
|
-
end
|
515
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
516
|
-
|
517
|
-
INCLUDES =
|
518
|
-
T.let(
|
519
|
-
:includes,
|
520
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
521
|
-
)
|
522
|
-
EXCLUDES =
|
523
|
-
T.let(
|
524
|
-
:excludes,
|
525
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
526
|
-
)
|
527
|
-
|
528
|
-
sig do
|
529
|
-
override.returns(
|
530
|
-
T::Array[
|
531
|
-
Orb::Plan::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
532
|
-
]
|
533
|
-
)
|
534
|
-
end
|
535
|
-
def self.values
|
536
|
-
end
|
537
|
-
end
|
538
|
-
end
|
539
|
-
end
|
540
|
-
|
541
|
-
class AmountDiscount < Orb::Internal::Type::BaseModel
|
542
|
-
OrHash =
|
543
|
-
T.type_alias do
|
544
|
-
T.any(
|
545
|
-
Orb::Plan::Adjustment::AmountDiscount,
|
546
|
-
Orb::Internal::AnyHash
|
547
|
-
)
|
548
|
-
end
|
549
|
-
|
550
|
-
sig { returns(String) }
|
551
|
-
attr_accessor :id
|
552
|
-
|
553
|
-
sig { returns(Symbol) }
|
554
|
-
attr_accessor :adjustment_type
|
555
|
-
|
556
|
-
# The amount by which to discount the prices this adjustment applies to in a given
|
557
|
-
# billing period.
|
558
|
-
sig { returns(String) }
|
559
|
-
attr_accessor :amount_discount
|
560
|
-
|
561
|
-
# The price IDs that this adjustment applies to.
|
562
|
-
sig { returns(T::Array[String]) }
|
563
|
-
attr_accessor :applies_to_price_ids
|
564
|
-
|
565
|
-
# The filters that determine which prices to apply this adjustment to.
|
566
|
-
sig do
|
567
|
-
returns(T::Array[Orb::Plan::Adjustment::AmountDiscount::Filter])
|
568
|
-
end
|
569
|
-
attr_accessor :filters
|
570
|
-
|
571
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
572
|
-
# that apply to only one price.
|
573
|
-
sig { returns(T::Boolean) }
|
574
|
-
attr_accessor :is_invoice_level
|
575
|
-
|
576
|
-
# The plan phase in which this adjustment is active.
|
577
|
-
sig { returns(T.nilable(Integer)) }
|
578
|
-
attr_accessor :plan_phase_order
|
579
|
-
|
580
|
-
# The reason for the adjustment.
|
581
|
-
sig { returns(T.nilable(String)) }
|
582
|
-
attr_accessor :reason
|
583
|
-
|
584
|
-
sig do
|
585
|
-
params(
|
586
|
-
id: String,
|
587
|
-
amount_discount: String,
|
588
|
-
applies_to_price_ids: T::Array[String],
|
589
|
-
filters:
|
590
|
-
T::Array[Orb::Plan::Adjustment::AmountDiscount::Filter::OrHash],
|
591
|
-
is_invoice_level: T::Boolean,
|
592
|
-
plan_phase_order: T.nilable(Integer),
|
593
|
-
reason: T.nilable(String),
|
594
|
-
adjustment_type: Symbol
|
595
|
-
).returns(T.attached_class)
|
596
|
-
end
|
597
|
-
def self.new(
|
598
|
-
id:,
|
599
|
-
# The amount by which to discount the prices this adjustment applies to in a given
|
600
|
-
# billing period.
|
601
|
-
amount_discount:,
|
602
|
-
# The price IDs that this adjustment applies to.
|
603
|
-
applies_to_price_ids:,
|
604
|
-
# The filters that determine which prices to apply this adjustment to.
|
605
|
-
filters:,
|
606
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
607
|
-
# that apply to only one price.
|
608
|
-
is_invoice_level:,
|
609
|
-
# The plan phase in which this adjustment is active.
|
610
|
-
plan_phase_order:,
|
611
|
-
# The reason for the adjustment.
|
612
|
-
reason:,
|
613
|
-
adjustment_type: :amount_discount
|
614
|
-
)
|
615
|
-
end
|
616
|
-
|
617
|
-
sig do
|
618
|
-
override.returns(
|
619
|
-
{
|
620
|
-
id: String,
|
621
|
-
adjustment_type: Symbol,
|
622
|
-
amount_discount: String,
|
623
|
-
applies_to_price_ids: T::Array[String],
|
624
|
-
filters:
|
625
|
-
T::Array[Orb::Plan::Adjustment::AmountDiscount::Filter],
|
626
|
-
is_invoice_level: T::Boolean,
|
627
|
-
plan_phase_order: T.nilable(Integer),
|
628
|
-
reason: T.nilable(String)
|
629
|
-
}
|
630
|
-
)
|
631
|
-
end
|
632
|
-
def to_hash
|
633
|
-
end
|
634
|
-
|
635
|
-
class Filter < Orb::Internal::Type::BaseModel
|
636
|
-
OrHash =
|
637
|
-
T.type_alias do
|
638
|
-
T.any(
|
639
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter,
|
640
|
-
Orb::Internal::AnyHash
|
641
|
-
)
|
642
|
-
end
|
643
|
-
|
644
|
-
# The property of the price to filter on.
|
645
|
-
sig do
|
646
|
-
returns(
|
647
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
648
|
-
)
|
649
|
-
end
|
650
|
-
attr_accessor :field
|
651
|
-
|
652
|
-
# Should prices that match the filter be included or excluded.
|
653
|
-
sig do
|
654
|
-
returns(
|
655
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
656
|
-
)
|
657
|
-
end
|
658
|
-
attr_accessor :operator
|
659
|
-
|
660
|
-
# The IDs or values that match this filter.
|
661
|
-
sig { returns(T::Array[String]) }
|
662
|
-
attr_accessor :values
|
663
|
-
|
664
|
-
sig do
|
665
|
-
params(
|
666
|
-
field:
|
667
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::OrSymbol,
|
668
|
-
operator:
|
669
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Operator::OrSymbol,
|
670
|
-
values: T::Array[String]
|
671
|
-
).returns(T.attached_class)
|
672
|
-
end
|
673
|
-
def self.new(
|
674
|
-
# The property of the price to filter on.
|
675
|
-
field:,
|
676
|
-
# Should prices that match the filter be included or excluded.
|
677
|
-
operator:,
|
678
|
-
# The IDs or values that match this filter.
|
679
|
-
values:
|
680
|
-
)
|
681
|
-
end
|
682
|
-
|
683
|
-
sig do
|
684
|
-
override.returns(
|
685
|
-
{
|
686
|
-
field:
|
687
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol,
|
688
|
-
operator:
|
689
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol,
|
690
|
-
values: T::Array[String]
|
691
|
-
}
|
692
|
-
)
|
693
|
-
end
|
694
|
-
def to_hash
|
695
|
-
end
|
696
|
-
|
697
|
-
# The property of the price to filter on.
|
698
|
-
module Field
|
699
|
-
extend Orb::Internal::Type::Enum
|
700
|
-
|
701
|
-
TaggedSymbol =
|
702
|
-
T.type_alias do
|
703
|
-
T.all(
|
704
|
-
Symbol,
|
705
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field
|
706
|
-
)
|
707
|
-
end
|
708
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
709
|
-
|
710
|
-
PRICE_ID =
|
711
|
-
T.let(
|
712
|
-
:price_id,
|
713
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
714
|
-
)
|
715
|
-
ITEM_ID =
|
716
|
-
T.let(
|
717
|
-
:item_id,
|
718
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
719
|
-
)
|
720
|
-
PRICE_TYPE =
|
721
|
-
T.let(
|
722
|
-
:price_type,
|
723
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
724
|
-
)
|
725
|
-
CURRENCY =
|
726
|
-
T.let(
|
727
|
-
:currency,
|
728
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
729
|
-
)
|
730
|
-
PRICING_UNIT_ID =
|
731
|
-
T.let(
|
732
|
-
:pricing_unit_id,
|
733
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
734
|
-
)
|
735
|
-
|
736
|
-
sig do
|
737
|
-
override.returns(
|
738
|
-
T::Array[
|
739
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
740
|
-
]
|
741
|
-
)
|
742
|
-
end
|
743
|
-
def self.values
|
744
|
-
end
|
745
|
-
end
|
746
|
-
|
747
|
-
# Should prices that match the filter be included or excluded.
|
748
|
-
module Operator
|
749
|
-
extend Orb::Internal::Type::Enum
|
750
|
-
|
751
|
-
TaggedSymbol =
|
752
|
-
T.type_alias do
|
753
|
-
T.all(
|
754
|
-
Symbol,
|
755
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Operator
|
756
|
-
)
|
757
|
-
end
|
758
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
759
|
-
|
760
|
-
INCLUDES =
|
761
|
-
T.let(
|
762
|
-
:includes,
|
763
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
764
|
-
)
|
765
|
-
EXCLUDES =
|
766
|
-
T.let(
|
767
|
-
:excludes,
|
768
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
769
|
-
)
|
770
|
-
|
771
|
-
sig do
|
772
|
-
override.returns(
|
773
|
-
T::Array[
|
774
|
-
Orb::Plan::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
775
|
-
]
|
776
|
-
)
|
777
|
-
end
|
778
|
-
def self.values
|
779
|
-
end
|
780
|
-
end
|
781
|
-
end
|
782
|
-
end
|
783
|
-
|
784
|
-
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
785
|
-
OrHash =
|
786
|
-
T.type_alias do
|
787
|
-
T.any(
|
788
|
-
Orb::Plan::Adjustment::PercentageDiscount,
|
789
|
-
Orb::Internal::AnyHash
|
790
|
-
)
|
791
|
-
end
|
792
|
-
|
793
|
-
sig { returns(String) }
|
794
|
-
attr_accessor :id
|
795
|
-
|
796
|
-
sig { returns(Symbol) }
|
797
|
-
attr_accessor :adjustment_type
|
798
|
-
|
799
|
-
# The price IDs that this adjustment applies to.
|
800
|
-
sig { returns(T::Array[String]) }
|
801
|
-
attr_accessor :applies_to_price_ids
|
802
|
-
|
803
|
-
# The filters that determine which prices to apply this adjustment to.
|
804
|
-
sig do
|
805
|
-
returns(T::Array[Orb::Plan::Adjustment::PercentageDiscount::Filter])
|
806
|
-
end
|
807
|
-
attr_accessor :filters
|
808
|
-
|
809
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
810
|
-
# that apply to only one price.
|
811
|
-
sig { returns(T::Boolean) }
|
812
|
-
attr_accessor :is_invoice_level
|
813
|
-
|
814
|
-
# The percentage (as a value between 0 and 1) by which to discount the price
|
815
|
-
# intervals this adjustment applies to in a given billing period.
|
816
|
-
sig { returns(Float) }
|
817
|
-
attr_accessor :percentage_discount
|
818
|
-
|
819
|
-
# The plan phase in which this adjustment is active.
|
820
|
-
sig { returns(T.nilable(Integer)) }
|
821
|
-
attr_accessor :plan_phase_order
|
822
|
-
|
823
|
-
# The reason for the adjustment.
|
824
|
-
sig { returns(T.nilable(String)) }
|
825
|
-
attr_accessor :reason
|
826
|
-
|
827
|
-
sig do
|
828
|
-
params(
|
829
|
-
id: String,
|
830
|
-
applies_to_price_ids: T::Array[String],
|
831
|
-
filters:
|
832
|
-
T::Array[
|
833
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::OrHash
|
834
|
-
],
|
835
|
-
is_invoice_level: T::Boolean,
|
836
|
-
percentage_discount: Float,
|
837
|
-
plan_phase_order: T.nilable(Integer),
|
838
|
-
reason: T.nilable(String),
|
839
|
-
adjustment_type: Symbol
|
840
|
-
).returns(T.attached_class)
|
841
|
-
end
|
842
|
-
def self.new(
|
843
|
-
id:,
|
844
|
-
# The price IDs that this adjustment applies to.
|
845
|
-
applies_to_price_ids:,
|
846
|
-
# The filters that determine which prices to apply this adjustment to.
|
847
|
-
filters:,
|
848
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
849
|
-
# that apply to only one price.
|
850
|
-
is_invoice_level:,
|
851
|
-
# The percentage (as a value between 0 and 1) by which to discount the price
|
852
|
-
# intervals this adjustment applies to in a given billing period.
|
853
|
-
percentage_discount:,
|
854
|
-
# The plan phase in which this adjustment is active.
|
855
|
-
plan_phase_order:,
|
856
|
-
# The reason for the adjustment.
|
857
|
-
reason:,
|
858
|
-
adjustment_type: :percentage_discount
|
859
|
-
)
|
860
|
-
end
|
861
|
-
|
862
|
-
sig do
|
863
|
-
override.returns(
|
864
|
-
{
|
865
|
-
id: String,
|
866
|
-
adjustment_type: Symbol,
|
867
|
-
applies_to_price_ids: T::Array[String],
|
868
|
-
filters:
|
869
|
-
T::Array[Orb::Plan::Adjustment::PercentageDiscount::Filter],
|
870
|
-
is_invoice_level: T::Boolean,
|
871
|
-
percentage_discount: Float,
|
872
|
-
plan_phase_order: T.nilable(Integer),
|
873
|
-
reason: T.nilable(String)
|
874
|
-
}
|
875
|
-
)
|
876
|
-
end
|
877
|
-
def to_hash
|
878
|
-
end
|
879
|
-
|
880
|
-
class Filter < Orb::Internal::Type::BaseModel
|
881
|
-
OrHash =
|
882
|
-
T.type_alias do
|
883
|
-
T.any(
|
884
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter,
|
885
|
-
Orb::Internal::AnyHash
|
886
|
-
)
|
887
|
-
end
|
888
|
-
|
889
|
-
# The property of the price to filter on.
|
890
|
-
sig do
|
891
|
-
returns(
|
892
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
893
|
-
)
|
894
|
-
end
|
895
|
-
attr_accessor :field
|
896
|
-
|
897
|
-
# Should prices that match the filter be included or excluded.
|
898
|
-
sig do
|
899
|
-
returns(
|
900
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
901
|
-
)
|
902
|
-
end
|
903
|
-
attr_accessor :operator
|
904
|
-
|
905
|
-
# The IDs or values that match this filter.
|
906
|
-
sig { returns(T::Array[String]) }
|
907
|
-
attr_accessor :values
|
908
|
-
|
909
|
-
sig do
|
910
|
-
params(
|
911
|
-
field:
|
912
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::OrSymbol,
|
913
|
-
operator:
|
914
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Operator::OrSymbol,
|
915
|
-
values: T::Array[String]
|
916
|
-
).returns(T.attached_class)
|
917
|
-
end
|
918
|
-
def self.new(
|
919
|
-
# The property of the price to filter on.
|
920
|
-
field:,
|
921
|
-
# Should prices that match the filter be included or excluded.
|
922
|
-
operator:,
|
923
|
-
# The IDs or values that match this filter.
|
924
|
-
values:
|
925
|
-
)
|
926
|
-
end
|
927
|
-
|
928
|
-
sig do
|
929
|
-
override.returns(
|
930
|
-
{
|
931
|
-
field:
|
932
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol,
|
933
|
-
operator:
|
934
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol,
|
935
|
-
values: T::Array[String]
|
936
|
-
}
|
937
|
-
)
|
938
|
-
end
|
939
|
-
def to_hash
|
940
|
-
end
|
941
|
-
|
942
|
-
# The property of the price to filter on.
|
943
|
-
module Field
|
944
|
-
extend Orb::Internal::Type::Enum
|
945
|
-
|
946
|
-
TaggedSymbol =
|
947
|
-
T.type_alias do
|
948
|
-
T.all(
|
949
|
-
Symbol,
|
950
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field
|
951
|
-
)
|
952
|
-
end
|
953
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
954
|
-
|
955
|
-
PRICE_ID =
|
956
|
-
T.let(
|
957
|
-
:price_id,
|
958
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
959
|
-
)
|
960
|
-
ITEM_ID =
|
961
|
-
T.let(
|
962
|
-
:item_id,
|
963
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
964
|
-
)
|
965
|
-
PRICE_TYPE =
|
966
|
-
T.let(
|
967
|
-
:price_type,
|
968
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
969
|
-
)
|
970
|
-
CURRENCY =
|
971
|
-
T.let(
|
972
|
-
:currency,
|
973
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
974
|
-
)
|
975
|
-
PRICING_UNIT_ID =
|
976
|
-
T.let(
|
977
|
-
:pricing_unit_id,
|
978
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
979
|
-
)
|
980
|
-
|
981
|
-
sig do
|
982
|
-
override.returns(
|
983
|
-
T::Array[
|
984
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
985
|
-
]
|
986
|
-
)
|
987
|
-
end
|
988
|
-
def self.values
|
989
|
-
end
|
990
|
-
end
|
991
|
-
|
992
|
-
# Should prices that match the filter be included or excluded.
|
993
|
-
module Operator
|
994
|
-
extend Orb::Internal::Type::Enum
|
995
|
-
|
996
|
-
TaggedSymbol =
|
997
|
-
T.type_alias do
|
998
|
-
T.all(
|
999
|
-
Symbol,
|
1000
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Operator
|
1001
|
-
)
|
1002
|
-
end
|
1003
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1004
|
-
|
1005
|
-
INCLUDES =
|
1006
|
-
T.let(
|
1007
|
-
:includes,
|
1008
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
1009
|
-
)
|
1010
|
-
EXCLUDES =
|
1011
|
-
T.let(
|
1012
|
-
:excludes,
|
1013
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
1014
|
-
)
|
1015
|
-
|
1016
|
-
sig do
|
1017
|
-
override.returns(
|
1018
|
-
T::Array[
|
1019
|
-
Orb::Plan::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
1020
|
-
]
|
1021
|
-
)
|
1022
|
-
end
|
1023
|
-
def self.values
|
1024
|
-
end
|
1025
|
-
end
|
1026
|
-
end
|
1027
|
-
end
|
1028
|
-
|
1029
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
1030
|
-
OrHash =
|
1031
|
-
T.type_alias do
|
1032
|
-
T.any(Orb::Plan::Adjustment::Minimum, Orb::Internal::AnyHash)
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
sig { returns(String) }
|
1036
|
-
attr_accessor :id
|
1037
|
-
|
1038
|
-
sig { returns(Symbol) }
|
1039
|
-
attr_accessor :adjustment_type
|
1040
|
-
|
1041
|
-
# The price IDs that this adjustment applies to.
|
1042
|
-
sig { returns(T::Array[String]) }
|
1043
|
-
attr_accessor :applies_to_price_ids
|
1044
|
-
|
1045
|
-
# The filters that determine which prices to apply this adjustment to.
|
1046
|
-
sig { returns(T::Array[Orb::Plan::Adjustment::Minimum::Filter]) }
|
1047
|
-
attr_accessor :filters
|
1048
|
-
|
1049
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
1050
|
-
# that apply to only one price.
|
1051
|
-
sig { returns(T::Boolean) }
|
1052
|
-
attr_accessor :is_invoice_level
|
1053
|
-
|
1054
|
-
# The item ID that revenue from this minimum will be attributed to.
|
1055
|
-
sig { returns(String) }
|
1056
|
-
attr_accessor :item_id
|
1057
|
-
|
1058
|
-
# The minimum amount to charge in a given billing period for the prices this
|
1059
|
-
# adjustment applies to.
|
1060
|
-
sig { returns(String) }
|
1061
|
-
attr_accessor :minimum_amount
|
1062
|
-
|
1063
|
-
# The plan phase in which this adjustment is active.
|
1064
|
-
sig { returns(T.nilable(Integer)) }
|
1065
|
-
attr_accessor :plan_phase_order
|
1066
|
-
|
1067
|
-
# The reason for the adjustment.
|
1068
|
-
sig { returns(T.nilable(String)) }
|
1069
|
-
attr_accessor :reason
|
1070
|
-
|
1071
|
-
sig do
|
1072
|
-
params(
|
1073
|
-
id: String,
|
1074
|
-
applies_to_price_ids: T::Array[String],
|
1075
|
-
filters: T::Array[Orb::Plan::Adjustment::Minimum::Filter::OrHash],
|
1076
|
-
is_invoice_level: T::Boolean,
|
1077
|
-
item_id: String,
|
1078
|
-
minimum_amount: String,
|
1079
|
-
plan_phase_order: T.nilable(Integer),
|
1080
|
-
reason: T.nilable(String),
|
1081
|
-
adjustment_type: Symbol
|
1082
|
-
).returns(T.attached_class)
|
1083
|
-
end
|
1084
|
-
def self.new(
|
1085
|
-
id:,
|
1086
|
-
# The price IDs that this adjustment applies to.
|
1087
|
-
applies_to_price_ids:,
|
1088
|
-
# The filters that determine which prices to apply this adjustment to.
|
1089
|
-
filters:,
|
1090
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
1091
|
-
# that apply to only one price.
|
1092
|
-
is_invoice_level:,
|
1093
|
-
# The item ID that revenue from this minimum will be attributed to.
|
1094
|
-
item_id:,
|
1095
|
-
# The minimum amount to charge in a given billing period for the prices this
|
1096
|
-
# adjustment applies to.
|
1097
|
-
minimum_amount:,
|
1098
|
-
# The plan phase in which this adjustment is active.
|
1099
|
-
plan_phase_order:,
|
1100
|
-
# The reason for the adjustment.
|
1101
|
-
reason:,
|
1102
|
-
adjustment_type: :minimum
|
1103
|
-
)
|
1104
|
-
end
|
1105
|
-
|
1106
|
-
sig do
|
1107
|
-
override.returns(
|
1108
|
-
{
|
1109
|
-
id: String,
|
1110
|
-
adjustment_type: Symbol,
|
1111
|
-
applies_to_price_ids: T::Array[String],
|
1112
|
-
filters: T::Array[Orb::Plan::Adjustment::Minimum::Filter],
|
1113
|
-
is_invoice_level: T::Boolean,
|
1114
|
-
item_id: String,
|
1115
|
-
minimum_amount: String,
|
1116
|
-
plan_phase_order: T.nilable(Integer),
|
1117
|
-
reason: T.nilable(String)
|
1118
|
-
}
|
1119
|
-
)
|
1120
|
-
end
|
1121
|
-
def to_hash
|
1122
|
-
end
|
1123
|
-
|
1124
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1125
|
-
OrHash =
|
1126
|
-
T.type_alias do
|
1127
|
-
T.any(
|
1128
|
-
Orb::Plan::Adjustment::Minimum::Filter,
|
1129
|
-
Orb::Internal::AnyHash
|
1130
|
-
)
|
1131
|
-
end
|
1132
|
-
|
1133
|
-
# The property of the price to filter on.
|
1134
|
-
sig do
|
1135
|
-
returns(
|
1136
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
1137
|
-
)
|
1138
|
-
end
|
1139
|
-
attr_accessor :field
|
1140
|
-
|
1141
|
-
# Should prices that match the filter be included or excluded.
|
1142
|
-
sig do
|
1143
|
-
returns(
|
1144
|
-
Orb::Plan::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
1145
|
-
)
|
1146
|
-
end
|
1147
|
-
attr_accessor :operator
|
1148
|
-
|
1149
|
-
# The IDs or values that match this filter.
|
1150
|
-
sig { returns(T::Array[String]) }
|
1151
|
-
attr_accessor :values
|
1152
|
-
|
1153
|
-
sig do
|
1154
|
-
params(
|
1155
|
-
field: Orb::Plan::Adjustment::Minimum::Filter::Field::OrSymbol,
|
1156
|
-
operator:
|
1157
|
-
Orb::Plan::Adjustment::Minimum::Filter::Operator::OrSymbol,
|
1158
|
-
values: T::Array[String]
|
1159
|
-
).returns(T.attached_class)
|
1160
|
-
end
|
1161
|
-
def self.new(
|
1162
|
-
# The property of the price to filter on.
|
1163
|
-
field:,
|
1164
|
-
# Should prices that match the filter be included or excluded.
|
1165
|
-
operator:,
|
1166
|
-
# The IDs or values that match this filter.
|
1167
|
-
values:
|
1168
|
-
)
|
1169
|
-
end
|
1170
|
-
|
1171
|
-
sig do
|
1172
|
-
override.returns(
|
1173
|
-
{
|
1174
|
-
field:
|
1175
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol,
|
1176
|
-
operator:
|
1177
|
-
Orb::Plan::Adjustment::Minimum::Filter::Operator::TaggedSymbol,
|
1178
|
-
values: T::Array[String]
|
1179
|
-
}
|
1180
|
-
)
|
1181
|
-
end
|
1182
|
-
def to_hash
|
1183
|
-
end
|
1184
|
-
|
1185
|
-
# The property of the price to filter on.
|
1186
|
-
module Field
|
1187
|
-
extend Orb::Internal::Type::Enum
|
1188
|
-
|
1189
|
-
TaggedSymbol =
|
1190
|
-
T.type_alias do
|
1191
|
-
T.all(Symbol, Orb::Plan::Adjustment::Minimum::Filter::Field)
|
1192
|
-
end
|
1193
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1194
|
-
|
1195
|
-
PRICE_ID =
|
1196
|
-
T.let(
|
1197
|
-
:price_id,
|
1198
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
1199
|
-
)
|
1200
|
-
ITEM_ID =
|
1201
|
-
T.let(
|
1202
|
-
:item_id,
|
1203
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
1204
|
-
)
|
1205
|
-
PRICE_TYPE =
|
1206
|
-
T.let(
|
1207
|
-
:price_type,
|
1208
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
1209
|
-
)
|
1210
|
-
CURRENCY =
|
1211
|
-
T.let(
|
1212
|
-
:currency,
|
1213
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
1214
|
-
)
|
1215
|
-
PRICING_UNIT_ID =
|
1216
|
-
T.let(
|
1217
|
-
:pricing_unit_id,
|
1218
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
1219
|
-
)
|
1220
|
-
|
1221
|
-
sig do
|
1222
|
-
override.returns(
|
1223
|
-
T::Array[
|
1224
|
-
Orb::Plan::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
1225
|
-
]
|
1226
|
-
)
|
1227
|
-
end
|
1228
|
-
def self.values
|
1229
|
-
end
|
1230
|
-
end
|
1231
|
-
|
1232
|
-
# Should prices that match the filter be included or excluded.
|
1233
|
-
module Operator
|
1234
|
-
extend Orb::Internal::Type::Enum
|
1235
|
-
|
1236
|
-
TaggedSymbol =
|
1237
|
-
T.type_alias do
|
1238
|
-
T.all(
|
1239
|
-
Symbol,
|
1240
|
-
Orb::Plan::Adjustment::Minimum::Filter::Operator
|
1241
|
-
)
|
1242
|
-
end
|
1243
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1244
|
-
|
1245
|
-
INCLUDES =
|
1246
|
-
T.let(
|
1247
|
-
:includes,
|
1248
|
-
Orb::Plan::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
1249
|
-
)
|
1250
|
-
EXCLUDES =
|
1251
|
-
T.let(
|
1252
|
-
:excludes,
|
1253
|
-
Orb::Plan::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
1254
|
-
)
|
1255
|
-
|
1256
|
-
sig do
|
1257
|
-
override.returns(
|
1258
|
-
T::Array[
|
1259
|
-
Orb::Plan::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
1260
|
-
]
|
1261
|
-
)
|
1262
|
-
end
|
1263
|
-
def self.values
|
1264
|
-
end
|
1265
|
-
end
|
1266
|
-
end
|
1267
|
-
end
|
1268
|
-
|
1269
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
1270
|
-
OrHash =
|
1271
|
-
T.type_alias do
|
1272
|
-
T.any(Orb::Plan::Adjustment::Maximum, Orb::Internal::AnyHash)
|
1273
|
-
end
|
1274
|
-
|
1275
|
-
sig { returns(String) }
|
1276
|
-
attr_accessor :id
|
1277
|
-
|
1278
|
-
sig { returns(Symbol) }
|
1279
|
-
attr_accessor :adjustment_type
|
1280
|
-
|
1281
|
-
# The price IDs that this adjustment applies to.
|
1282
|
-
sig { returns(T::Array[String]) }
|
1283
|
-
attr_accessor :applies_to_price_ids
|
1284
|
-
|
1285
|
-
# The filters that determine which prices to apply this adjustment to.
|
1286
|
-
sig { returns(T::Array[Orb::Plan::Adjustment::Maximum::Filter]) }
|
1287
|
-
attr_accessor :filters
|
1288
|
-
|
1289
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
1290
|
-
# that apply to only one price.
|
1291
|
-
sig { returns(T::Boolean) }
|
1292
|
-
attr_accessor :is_invoice_level
|
1293
|
-
|
1294
|
-
# The maximum amount to charge in a given billing period for the prices this
|
1295
|
-
# adjustment applies to.
|
1296
|
-
sig { returns(String) }
|
1297
|
-
attr_accessor :maximum_amount
|
1298
|
-
|
1299
|
-
# The plan phase in which this adjustment is active.
|
1300
|
-
sig { returns(T.nilable(Integer)) }
|
1301
|
-
attr_accessor :plan_phase_order
|
1302
|
-
|
1303
|
-
# The reason for the adjustment.
|
1304
|
-
sig { returns(T.nilable(String)) }
|
1305
|
-
attr_accessor :reason
|
1306
|
-
|
1307
|
-
sig do
|
1308
|
-
params(
|
1309
|
-
id: String,
|
1310
|
-
applies_to_price_ids: T::Array[String],
|
1311
|
-
filters: T::Array[Orb::Plan::Adjustment::Maximum::Filter::OrHash],
|
1312
|
-
is_invoice_level: T::Boolean,
|
1313
|
-
maximum_amount: String,
|
1314
|
-
plan_phase_order: T.nilable(Integer),
|
1315
|
-
reason: T.nilable(String),
|
1316
|
-
adjustment_type: Symbol
|
1317
|
-
).returns(T.attached_class)
|
1318
|
-
end
|
1319
|
-
def self.new(
|
1320
|
-
id:,
|
1321
|
-
# The price IDs that this adjustment applies to.
|
1322
|
-
applies_to_price_ids:,
|
1323
|
-
# The filters that determine which prices to apply this adjustment to.
|
1324
|
-
filters:,
|
1325
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
1326
|
-
# that apply to only one price.
|
1327
|
-
is_invoice_level:,
|
1328
|
-
# The maximum amount to charge in a given billing period for the prices this
|
1329
|
-
# adjustment applies to.
|
1330
|
-
maximum_amount:,
|
1331
|
-
# The plan phase in which this adjustment is active.
|
1332
|
-
plan_phase_order:,
|
1333
|
-
# The reason for the adjustment.
|
1334
|
-
reason:,
|
1335
|
-
adjustment_type: :maximum
|
1336
|
-
)
|
1337
|
-
end
|
1338
|
-
|
1339
|
-
sig do
|
1340
|
-
override.returns(
|
1341
|
-
{
|
1342
|
-
id: String,
|
1343
|
-
adjustment_type: Symbol,
|
1344
|
-
applies_to_price_ids: T::Array[String],
|
1345
|
-
filters: T::Array[Orb::Plan::Adjustment::Maximum::Filter],
|
1346
|
-
is_invoice_level: T::Boolean,
|
1347
|
-
maximum_amount: String,
|
1348
|
-
plan_phase_order: T.nilable(Integer),
|
1349
|
-
reason: T.nilable(String)
|
1350
|
-
}
|
1351
|
-
)
|
1352
|
-
end
|
1353
|
-
def to_hash
|
1354
|
-
end
|
1355
|
-
|
1356
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1357
|
-
OrHash =
|
1358
|
-
T.type_alias do
|
1359
|
-
T.any(
|
1360
|
-
Orb::Plan::Adjustment::Maximum::Filter,
|
1361
|
-
Orb::Internal::AnyHash
|
1362
|
-
)
|
1363
|
-
end
|
1364
|
-
|
1365
|
-
# The property of the price to filter on.
|
1366
|
-
sig do
|
1367
|
-
returns(
|
1368
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
1369
|
-
)
|
1370
|
-
end
|
1371
|
-
attr_accessor :field
|
1372
|
-
|
1373
|
-
# Should prices that match the filter be included or excluded.
|
1374
|
-
sig do
|
1375
|
-
returns(
|
1376
|
-
Orb::Plan::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
1377
|
-
)
|
1378
|
-
end
|
1379
|
-
attr_accessor :operator
|
1380
|
-
|
1381
|
-
# The IDs or values that match this filter.
|
1382
|
-
sig { returns(T::Array[String]) }
|
1383
|
-
attr_accessor :values
|
1384
|
-
|
1385
|
-
sig do
|
1386
|
-
params(
|
1387
|
-
field: Orb::Plan::Adjustment::Maximum::Filter::Field::OrSymbol,
|
1388
|
-
operator:
|
1389
|
-
Orb::Plan::Adjustment::Maximum::Filter::Operator::OrSymbol,
|
1390
|
-
values: T::Array[String]
|
1391
|
-
).returns(T.attached_class)
|
1392
|
-
end
|
1393
|
-
def self.new(
|
1394
|
-
# The property of the price to filter on.
|
1395
|
-
field:,
|
1396
|
-
# Should prices that match the filter be included or excluded.
|
1397
|
-
operator:,
|
1398
|
-
# The IDs or values that match this filter.
|
1399
|
-
values:
|
1400
|
-
)
|
1401
|
-
end
|
1402
|
-
|
1403
|
-
sig do
|
1404
|
-
override.returns(
|
1405
|
-
{
|
1406
|
-
field:
|
1407
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol,
|
1408
|
-
operator:
|
1409
|
-
Orb::Plan::Adjustment::Maximum::Filter::Operator::TaggedSymbol,
|
1410
|
-
values: T::Array[String]
|
1411
|
-
}
|
1412
|
-
)
|
1413
|
-
end
|
1414
|
-
def to_hash
|
1415
|
-
end
|
1416
|
-
|
1417
|
-
# The property of the price to filter on.
|
1418
|
-
module Field
|
1419
|
-
extend Orb::Internal::Type::Enum
|
1420
|
-
|
1421
|
-
TaggedSymbol =
|
1422
|
-
T.type_alias do
|
1423
|
-
T.all(Symbol, Orb::Plan::Adjustment::Maximum::Filter::Field)
|
1424
|
-
end
|
1425
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1426
|
-
|
1427
|
-
PRICE_ID =
|
1428
|
-
T.let(
|
1429
|
-
:price_id,
|
1430
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
1431
|
-
)
|
1432
|
-
ITEM_ID =
|
1433
|
-
T.let(
|
1434
|
-
:item_id,
|
1435
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
1436
|
-
)
|
1437
|
-
PRICE_TYPE =
|
1438
|
-
T.let(
|
1439
|
-
:price_type,
|
1440
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
1441
|
-
)
|
1442
|
-
CURRENCY =
|
1443
|
-
T.let(
|
1444
|
-
:currency,
|
1445
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
1446
|
-
)
|
1447
|
-
PRICING_UNIT_ID =
|
1448
|
-
T.let(
|
1449
|
-
:pricing_unit_id,
|
1450
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
1451
|
-
)
|
1452
|
-
|
1453
|
-
sig do
|
1454
|
-
override.returns(
|
1455
|
-
T::Array[
|
1456
|
-
Orb::Plan::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
1457
|
-
]
|
1458
|
-
)
|
1459
|
-
end
|
1460
|
-
def self.values
|
1461
|
-
end
|
1462
|
-
end
|
1463
|
-
|
1464
|
-
# Should prices that match the filter be included or excluded.
|
1465
|
-
module Operator
|
1466
|
-
extend Orb::Internal::Type::Enum
|
1467
|
-
|
1468
|
-
TaggedSymbol =
|
1469
|
-
T.type_alias do
|
1470
|
-
T.all(
|
1471
|
-
Symbol,
|
1472
|
-
Orb::Plan::Adjustment::Maximum::Filter::Operator
|
1473
|
-
)
|
1474
|
-
end
|
1475
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1476
|
-
|
1477
|
-
INCLUDES =
|
1478
|
-
T.let(
|
1479
|
-
:includes,
|
1480
|
-
Orb::Plan::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
1481
|
-
)
|
1482
|
-
EXCLUDES =
|
1483
|
-
T.let(
|
1484
|
-
:excludes,
|
1485
|
-
Orb::Plan::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
1486
|
-
)
|
1487
|
-
|
1488
|
-
sig do
|
1489
|
-
override.returns(
|
1490
|
-
T::Array[
|
1491
|
-
Orb::Plan::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
1492
|
-
]
|
1493
|
-
)
|
1494
|
-
end
|
1495
|
-
def self.values
|
1496
|
-
end
|
1497
|
-
end
|
1498
|
-
end
|
1499
|
-
end
|
1500
|
-
|
1501
299
|
sig { override.returns(T::Array[Orb::Plan::Adjustment::Variants]) }
|
1502
300
|
def self.variants
|
1503
301
|
end
|
@@ -1549,326 +347,6 @@ module Orb
|
|
1549
347
|
end
|
1550
348
|
end
|
1551
349
|
|
1552
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
1553
|
-
OrHash =
|
1554
|
-
T.type_alias { T.any(Orb::Plan::Maximum, Orb::Internal::AnyHash) }
|
1555
|
-
|
1556
|
-
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
1557
|
-
# maximums, this can be a subset of prices.
|
1558
|
-
sig { returns(T::Array[String]) }
|
1559
|
-
attr_accessor :applies_to_price_ids
|
1560
|
-
|
1561
|
-
# The filters that determine which prices to apply this maximum to.
|
1562
|
-
sig { returns(T::Array[Orb::Plan::Maximum::Filter]) }
|
1563
|
-
attr_accessor :filters
|
1564
|
-
|
1565
|
-
# Maximum amount applied
|
1566
|
-
sig { returns(String) }
|
1567
|
-
attr_accessor :maximum_amount
|
1568
|
-
|
1569
|
-
sig do
|
1570
|
-
params(
|
1571
|
-
applies_to_price_ids: T::Array[String],
|
1572
|
-
filters: T::Array[Orb::Plan::Maximum::Filter::OrHash],
|
1573
|
-
maximum_amount: String
|
1574
|
-
).returns(T.attached_class)
|
1575
|
-
end
|
1576
|
-
def self.new(
|
1577
|
-
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
1578
|
-
# maximums, this can be a subset of prices.
|
1579
|
-
applies_to_price_ids:,
|
1580
|
-
# The filters that determine which prices to apply this maximum to.
|
1581
|
-
filters:,
|
1582
|
-
# Maximum amount applied
|
1583
|
-
maximum_amount:
|
1584
|
-
)
|
1585
|
-
end
|
1586
|
-
|
1587
|
-
sig do
|
1588
|
-
override.returns(
|
1589
|
-
{
|
1590
|
-
applies_to_price_ids: T::Array[String],
|
1591
|
-
filters: T::Array[Orb::Plan::Maximum::Filter],
|
1592
|
-
maximum_amount: String
|
1593
|
-
}
|
1594
|
-
)
|
1595
|
-
end
|
1596
|
-
def to_hash
|
1597
|
-
end
|
1598
|
-
|
1599
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1600
|
-
OrHash =
|
1601
|
-
T.type_alias do
|
1602
|
-
T.any(Orb::Plan::Maximum::Filter, Orb::Internal::AnyHash)
|
1603
|
-
end
|
1604
|
-
|
1605
|
-
# The property of the price to filter on.
|
1606
|
-
sig { returns(Orb::Plan::Maximum::Filter::Field::TaggedSymbol) }
|
1607
|
-
attr_accessor :field
|
1608
|
-
|
1609
|
-
# Should prices that match the filter be included or excluded.
|
1610
|
-
sig { returns(Orb::Plan::Maximum::Filter::Operator::TaggedSymbol) }
|
1611
|
-
attr_accessor :operator
|
1612
|
-
|
1613
|
-
# The IDs or values that match this filter.
|
1614
|
-
sig { returns(T::Array[String]) }
|
1615
|
-
attr_accessor :values
|
1616
|
-
|
1617
|
-
sig do
|
1618
|
-
params(
|
1619
|
-
field: Orb::Plan::Maximum::Filter::Field::OrSymbol,
|
1620
|
-
operator: Orb::Plan::Maximum::Filter::Operator::OrSymbol,
|
1621
|
-
values: T::Array[String]
|
1622
|
-
).returns(T.attached_class)
|
1623
|
-
end
|
1624
|
-
def self.new(
|
1625
|
-
# The property of the price to filter on.
|
1626
|
-
field:,
|
1627
|
-
# Should prices that match the filter be included or excluded.
|
1628
|
-
operator:,
|
1629
|
-
# The IDs or values that match this filter.
|
1630
|
-
values:
|
1631
|
-
)
|
1632
|
-
end
|
1633
|
-
|
1634
|
-
sig do
|
1635
|
-
override.returns(
|
1636
|
-
{
|
1637
|
-
field: Orb::Plan::Maximum::Filter::Field::TaggedSymbol,
|
1638
|
-
operator: Orb::Plan::Maximum::Filter::Operator::TaggedSymbol,
|
1639
|
-
values: T::Array[String]
|
1640
|
-
}
|
1641
|
-
)
|
1642
|
-
end
|
1643
|
-
def to_hash
|
1644
|
-
end
|
1645
|
-
|
1646
|
-
# The property of the price to filter on.
|
1647
|
-
module Field
|
1648
|
-
extend Orb::Internal::Type::Enum
|
1649
|
-
|
1650
|
-
TaggedSymbol =
|
1651
|
-
T.type_alias { T.all(Symbol, Orb::Plan::Maximum::Filter::Field) }
|
1652
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1653
|
-
|
1654
|
-
PRICE_ID =
|
1655
|
-
T.let(:price_id, Orb::Plan::Maximum::Filter::Field::TaggedSymbol)
|
1656
|
-
ITEM_ID =
|
1657
|
-
T.let(:item_id, Orb::Plan::Maximum::Filter::Field::TaggedSymbol)
|
1658
|
-
PRICE_TYPE =
|
1659
|
-
T.let(
|
1660
|
-
:price_type,
|
1661
|
-
Orb::Plan::Maximum::Filter::Field::TaggedSymbol
|
1662
|
-
)
|
1663
|
-
CURRENCY =
|
1664
|
-
T.let(:currency, Orb::Plan::Maximum::Filter::Field::TaggedSymbol)
|
1665
|
-
PRICING_UNIT_ID =
|
1666
|
-
T.let(
|
1667
|
-
:pricing_unit_id,
|
1668
|
-
Orb::Plan::Maximum::Filter::Field::TaggedSymbol
|
1669
|
-
)
|
1670
|
-
|
1671
|
-
sig do
|
1672
|
-
override.returns(
|
1673
|
-
T::Array[Orb::Plan::Maximum::Filter::Field::TaggedSymbol]
|
1674
|
-
)
|
1675
|
-
end
|
1676
|
-
def self.values
|
1677
|
-
end
|
1678
|
-
end
|
1679
|
-
|
1680
|
-
# Should prices that match the filter be included or excluded.
|
1681
|
-
module Operator
|
1682
|
-
extend Orb::Internal::Type::Enum
|
1683
|
-
|
1684
|
-
TaggedSymbol =
|
1685
|
-
T.type_alias do
|
1686
|
-
T.all(Symbol, Orb::Plan::Maximum::Filter::Operator)
|
1687
|
-
end
|
1688
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1689
|
-
|
1690
|
-
INCLUDES =
|
1691
|
-
T.let(
|
1692
|
-
:includes,
|
1693
|
-
Orb::Plan::Maximum::Filter::Operator::TaggedSymbol
|
1694
|
-
)
|
1695
|
-
EXCLUDES =
|
1696
|
-
T.let(
|
1697
|
-
:excludes,
|
1698
|
-
Orb::Plan::Maximum::Filter::Operator::TaggedSymbol
|
1699
|
-
)
|
1700
|
-
|
1701
|
-
sig do
|
1702
|
-
override.returns(
|
1703
|
-
T::Array[Orb::Plan::Maximum::Filter::Operator::TaggedSymbol]
|
1704
|
-
)
|
1705
|
-
end
|
1706
|
-
def self.values
|
1707
|
-
end
|
1708
|
-
end
|
1709
|
-
end
|
1710
|
-
end
|
1711
|
-
|
1712
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
1713
|
-
OrHash =
|
1714
|
-
T.type_alias { T.any(Orb::Plan::Minimum, Orb::Internal::AnyHash) }
|
1715
|
-
|
1716
|
-
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
1717
|
-
# minimums, this can be a subset of prices.
|
1718
|
-
sig { returns(T::Array[String]) }
|
1719
|
-
attr_accessor :applies_to_price_ids
|
1720
|
-
|
1721
|
-
# The filters that determine which prices to apply this minimum to.
|
1722
|
-
sig { returns(T::Array[Orb::Plan::Minimum::Filter]) }
|
1723
|
-
attr_accessor :filters
|
1724
|
-
|
1725
|
-
# Minimum amount applied
|
1726
|
-
sig { returns(String) }
|
1727
|
-
attr_accessor :minimum_amount
|
1728
|
-
|
1729
|
-
sig do
|
1730
|
-
params(
|
1731
|
-
applies_to_price_ids: T::Array[String],
|
1732
|
-
filters: T::Array[Orb::Plan::Minimum::Filter::OrHash],
|
1733
|
-
minimum_amount: String
|
1734
|
-
).returns(T.attached_class)
|
1735
|
-
end
|
1736
|
-
def self.new(
|
1737
|
-
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
1738
|
-
# minimums, this can be a subset of prices.
|
1739
|
-
applies_to_price_ids:,
|
1740
|
-
# The filters that determine which prices to apply this minimum to.
|
1741
|
-
filters:,
|
1742
|
-
# Minimum amount applied
|
1743
|
-
minimum_amount:
|
1744
|
-
)
|
1745
|
-
end
|
1746
|
-
|
1747
|
-
sig do
|
1748
|
-
override.returns(
|
1749
|
-
{
|
1750
|
-
applies_to_price_ids: T::Array[String],
|
1751
|
-
filters: T::Array[Orb::Plan::Minimum::Filter],
|
1752
|
-
minimum_amount: String
|
1753
|
-
}
|
1754
|
-
)
|
1755
|
-
end
|
1756
|
-
def to_hash
|
1757
|
-
end
|
1758
|
-
|
1759
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1760
|
-
OrHash =
|
1761
|
-
T.type_alias do
|
1762
|
-
T.any(Orb::Plan::Minimum::Filter, Orb::Internal::AnyHash)
|
1763
|
-
end
|
1764
|
-
|
1765
|
-
# The property of the price to filter on.
|
1766
|
-
sig { returns(Orb::Plan::Minimum::Filter::Field::TaggedSymbol) }
|
1767
|
-
attr_accessor :field
|
1768
|
-
|
1769
|
-
# Should prices that match the filter be included or excluded.
|
1770
|
-
sig { returns(Orb::Plan::Minimum::Filter::Operator::TaggedSymbol) }
|
1771
|
-
attr_accessor :operator
|
1772
|
-
|
1773
|
-
# The IDs or values that match this filter.
|
1774
|
-
sig { returns(T::Array[String]) }
|
1775
|
-
attr_accessor :values
|
1776
|
-
|
1777
|
-
sig do
|
1778
|
-
params(
|
1779
|
-
field: Orb::Plan::Minimum::Filter::Field::OrSymbol,
|
1780
|
-
operator: Orb::Plan::Minimum::Filter::Operator::OrSymbol,
|
1781
|
-
values: T::Array[String]
|
1782
|
-
).returns(T.attached_class)
|
1783
|
-
end
|
1784
|
-
def self.new(
|
1785
|
-
# The property of the price to filter on.
|
1786
|
-
field:,
|
1787
|
-
# Should prices that match the filter be included or excluded.
|
1788
|
-
operator:,
|
1789
|
-
# The IDs or values that match this filter.
|
1790
|
-
values:
|
1791
|
-
)
|
1792
|
-
end
|
1793
|
-
|
1794
|
-
sig do
|
1795
|
-
override.returns(
|
1796
|
-
{
|
1797
|
-
field: Orb::Plan::Minimum::Filter::Field::TaggedSymbol,
|
1798
|
-
operator: Orb::Plan::Minimum::Filter::Operator::TaggedSymbol,
|
1799
|
-
values: T::Array[String]
|
1800
|
-
}
|
1801
|
-
)
|
1802
|
-
end
|
1803
|
-
def to_hash
|
1804
|
-
end
|
1805
|
-
|
1806
|
-
# The property of the price to filter on.
|
1807
|
-
module Field
|
1808
|
-
extend Orb::Internal::Type::Enum
|
1809
|
-
|
1810
|
-
TaggedSymbol =
|
1811
|
-
T.type_alias { T.all(Symbol, Orb::Plan::Minimum::Filter::Field) }
|
1812
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1813
|
-
|
1814
|
-
PRICE_ID =
|
1815
|
-
T.let(:price_id, Orb::Plan::Minimum::Filter::Field::TaggedSymbol)
|
1816
|
-
ITEM_ID =
|
1817
|
-
T.let(:item_id, Orb::Plan::Minimum::Filter::Field::TaggedSymbol)
|
1818
|
-
PRICE_TYPE =
|
1819
|
-
T.let(
|
1820
|
-
:price_type,
|
1821
|
-
Orb::Plan::Minimum::Filter::Field::TaggedSymbol
|
1822
|
-
)
|
1823
|
-
CURRENCY =
|
1824
|
-
T.let(:currency, Orb::Plan::Minimum::Filter::Field::TaggedSymbol)
|
1825
|
-
PRICING_UNIT_ID =
|
1826
|
-
T.let(
|
1827
|
-
:pricing_unit_id,
|
1828
|
-
Orb::Plan::Minimum::Filter::Field::TaggedSymbol
|
1829
|
-
)
|
1830
|
-
|
1831
|
-
sig do
|
1832
|
-
override.returns(
|
1833
|
-
T::Array[Orb::Plan::Minimum::Filter::Field::TaggedSymbol]
|
1834
|
-
)
|
1835
|
-
end
|
1836
|
-
def self.values
|
1837
|
-
end
|
1838
|
-
end
|
1839
|
-
|
1840
|
-
# Should prices that match the filter be included or excluded.
|
1841
|
-
module Operator
|
1842
|
-
extend Orb::Internal::Type::Enum
|
1843
|
-
|
1844
|
-
TaggedSymbol =
|
1845
|
-
T.type_alias do
|
1846
|
-
T.all(Symbol, Orb::Plan::Minimum::Filter::Operator)
|
1847
|
-
end
|
1848
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1849
|
-
|
1850
|
-
INCLUDES =
|
1851
|
-
T.let(
|
1852
|
-
:includes,
|
1853
|
-
Orb::Plan::Minimum::Filter::Operator::TaggedSymbol
|
1854
|
-
)
|
1855
|
-
EXCLUDES =
|
1856
|
-
T.let(
|
1857
|
-
:excludes,
|
1858
|
-
Orb::Plan::Minimum::Filter::Operator::TaggedSymbol
|
1859
|
-
)
|
1860
|
-
|
1861
|
-
sig do
|
1862
|
-
override.returns(
|
1863
|
-
T::Array[Orb::Plan::Minimum::Filter::Operator::TaggedSymbol]
|
1864
|
-
)
|
1865
|
-
end
|
1866
|
-
def self.values
|
1867
|
-
end
|
1868
|
-
end
|
1869
|
-
end
|
1870
|
-
end
|
1871
|
-
|
1872
350
|
class PlanPhase < Orb::Internal::Type::BaseModel
|
1873
351
|
OrHash =
|
1874
352
|
T.type_alias { T.any(Orb::Plan::PlanPhase, Orb::Internal::AnyHash) }
|
@@ -1892,23 +370,19 @@ module Orb
|
|
1892
370
|
end
|
1893
371
|
attr_accessor :duration_unit
|
1894
372
|
|
1895
|
-
sig { returns(T.nilable(Orb::
|
373
|
+
sig { returns(T.nilable(Orb::Maximum)) }
|
1896
374
|
attr_reader :maximum
|
1897
375
|
|
1898
|
-
sig
|
1899
|
-
params(maximum: T.nilable(Orb::Plan::PlanPhase::Maximum::OrHash)).void
|
1900
|
-
end
|
376
|
+
sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void }
|
1901
377
|
attr_writer :maximum
|
1902
378
|
|
1903
379
|
sig { returns(T.nilable(String)) }
|
1904
380
|
attr_accessor :maximum_amount
|
1905
381
|
|
1906
|
-
sig { returns(T.nilable(Orb::
|
382
|
+
sig { returns(T.nilable(Orb::Minimum)) }
|
1907
383
|
attr_reader :minimum
|
1908
384
|
|
1909
|
-
sig
|
1910
|
-
params(minimum: T.nilable(Orb::Plan::PlanPhase::Minimum::OrHash)).void
|
1911
|
-
end
|
385
|
+
sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void }
|
1912
386
|
attr_writer :minimum
|
1913
387
|
|
1914
388
|
sig { returns(T.nilable(String)) }
|
@@ -1937,9 +411,9 @@ module Orb
|
|
1937
411
|
duration: T.nilable(Integer),
|
1938
412
|
duration_unit:
|
1939
413
|
T.nilable(Orb::Plan::PlanPhase::DurationUnit::OrSymbol),
|
1940
|
-
maximum: T.nilable(Orb::
|
414
|
+
maximum: T.nilable(Orb::Maximum::OrHash),
|
1941
415
|
maximum_amount: T.nilable(String),
|
1942
|
-
minimum: T.nilable(Orb::
|
416
|
+
minimum: T.nilable(Orb::Minimum::OrHash),
|
1943
417
|
minimum_amount: T.nilable(String),
|
1944
418
|
name: String,
|
1945
419
|
order: Integer
|
@@ -1972,9 +446,9 @@ module Orb
|
|
1972
446
|
duration: T.nilable(Integer),
|
1973
447
|
duration_unit:
|
1974
448
|
T.nilable(Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol),
|
1975
|
-
maximum: T.nilable(Orb::
|
449
|
+
maximum: T.nilable(Orb::Maximum),
|
1976
450
|
maximum_amount: T.nilable(String),
|
1977
|
-
minimum: T.nilable(Orb::
|
451
|
+
minimum: T.nilable(Orb::Minimum),
|
1978
452
|
minimum_amount: T.nilable(String),
|
1979
453
|
name: String,
|
1980
454
|
order: Integer
|
@@ -2013,388 +487,6 @@ module Orb
|
|
2013
487
|
def self.values
|
2014
488
|
end
|
2015
489
|
end
|
2016
|
-
|
2017
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
2018
|
-
OrHash =
|
2019
|
-
T.type_alias do
|
2020
|
-
T.any(Orb::Plan::PlanPhase::Maximum, Orb::Internal::AnyHash)
|
2021
|
-
end
|
2022
|
-
|
2023
|
-
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
2024
|
-
# maximums, this can be a subset of prices.
|
2025
|
-
sig { returns(T::Array[String]) }
|
2026
|
-
attr_accessor :applies_to_price_ids
|
2027
|
-
|
2028
|
-
# The filters that determine which prices to apply this maximum to.
|
2029
|
-
sig { returns(T::Array[Orb::Plan::PlanPhase::Maximum::Filter]) }
|
2030
|
-
attr_accessor :filters
|
2031
|
-
|
2032
|
-
# Maximum amount applied
|
2033
|
-
sig { returns(String) }
|
2034
|
-
attr_accessor :maximum_amount
|
2035
|
-
|
2036
|
-
sig do
|
2037
|
-
params(
|
2038
|
-
applies_to_price_ids: T::Array[String],
|
2039
|
-
filters: T::Array[Orb::Plan::PlanPhase::Maximum::Filter::OrHash],
|
2040
|
-
maximum_amount: String
|
2041
|
-
).returns(T.attached_class)
|
2042
|
-
end
|
2043
|
-
def self.new(
|
2044
|
-
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
2045
|
-
# maximums, this can be a subset of prices.
|
2046
|
-
applies_to_price_ids:,
|
2047
|
-
# The filters that determine which prices to apply this maximum to.
|
2048
|
-
filters:,
|
2049
|
-
# Maximum amount applied
|
2050
|
-
maximum_amount:
|
2051
|
-
)
|
2052
|
-
end
|
2053
|
-
|
2054
|
-
sig do
|
2055
|
-
override.returns(
|
2056
|
-
{
|
2057
|
-
applies_to_price_ids: T::Array[String],
|
2058
|
-
filters: T::Array[Orb::Plan::PlanPhase::Maximum::Filter],
|
2059
|
-
maximum_amount: String
|
2060
|
-
}
|
2061
|
-
)
|
2062
|
-
end
|
2063
|
-
def to_hash
|
2064
|
-
end
|
2065
|
-
|
2066
|
-
class Filter < Orb::Internal::Type::BaseModel
|
2067
|
-
OrHash =
|
2068
|
-
T.type_alias do
|
2069
|
-
T.any(
|
2070
|
-
Orb::Plan::PlanPhase::Maximum::Filter,
|
2071
|
-
Orb::Internal::AnyHash
|
2072
|
-
)
|
2073
|
-
end
|
2074
|
-
|
2075
|
-
# The property of the price to filter on.
|
2076
|
-
sig do
|
2077
|
-
returns(
|
2078
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol
|
2079
|
-
)
|
2080
|
-
end
|
2081
|
-
attr_accessor :field
|
2082
|
-
|
2083
|
-
# Should prices that match the filter be included or excluded.
|
2084
|
-
sig do
|
2085
|
-
returns(
|
2086
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Operator::TaggedSymbol
|
2087
|
-
)
|
2088
|
-
end
|
2089
|
-
attr_accessor :operator
|
2090
|
-
|
2091
|
-
# The IDs or values that match this filter.
|
2092
|
-
sig { returns(T::Array[String]) }
|
2093
|
-
attr_accessor :values
|
2094
|
-
|
2095
|
-
sig do
|
2096
|
-
params(
|
2097
|
-
field: Orb::Plan::PlanPhase::Maximum::Filter::Field::OrSymbol,
|
2098
|
-
operator:
|
2099
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Operator::OrSymbol,
|
2100
|
-
values: T::Array[String]
|
2101
|
-
).returns(T.attached_class)
|
2102
|
-
end
|
2103
|
-
def self.new(
|
2104
|
-
# The property of the price to filter on.
|
2105
|
-
field:,
|
2106
|
-
# Should prices that match the filter be included or excluded.
|
2107
|
-
operator:,
|
2108
|
-
# The IDs or values that match this filter.
|
2109
|
-
values:
|
2110
|
-
)
|
2111
|
-
end
|
2112
|
-
|
2113
|
-
sig do
|
2114
|
-
override.returns(
|
2115
|
-
{
|
2116
|
-
field:
|
2117
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol,
|
2118
|
-
operator:
|
2119
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Operator::TaggedSymbol,
|
2120
|
-
values: T::Array[String]
|
2121
|
-
}
|
2122
|
-
)
|
2123
|
-
end
|
2124
|
-
def to_hash
|
2125
|
-
end
|
2126
|
-
|
2127
|
-
# The property of the price to filter on.
|
2128
|
-
module Field
|
2129
|
-
extend Orb::Internal::Type::Enum
|
2130
|
-
|
2131
|
-
TaggedSymbol =
|
2132
|
-
T.type_alias do
|
2133
|
-
T.all(Symbol, Orb::Plan::PlanPhase::Maximum::Filter::Field)
|
2134
|
-
end
|
2135
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2136
|
-
|
2137
|
-
PRICE_ID =
|
2138
|
-
T.let(
|
2139
|
-
:price_id,
|
2140
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol
|
2141
|
-
)
|
2142
|
-
ITEM_ID =
|
2143
|
-
T.let(
|
2144
|
-
:item_id,
|
2145
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol
|
2146
|
-
)
|
2147
|
-
PRICE_TYPE =
|
2148
|
-
T.let(
|
2149
|
-
:price_type,
|
2150
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol
|
2151
|
-
)
|
2152
|
-
CURRENCY =
|
2153
|
-
T.let(
|
2154
|
-
:currency,
|
2155
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol
|
2156
|
-
)
|
2157
|
-
PRICING_UNIT_ID =
|
2158
|
-
T.let(
|
2159
|
-
:pricing_unit_id,
|
2160
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol
|
2161
|
-
)
|
2162
|
-
|
2163
|
-
sig do
|
2164
|
-
override.returns(
|
2165
|
-
T::Array[
|
2166
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Field::TaggedSymbol
|
2167
|
-
]
|
2168
|
-
)
|
2169
|
-
end
|
2170
|
-
def self.values
|
2171
|
-
end
|
2172
|
-
end
|
2173
|
-
|
2174
|
-
# Should prices that match the filter be included or excluded.
|
2175
|
-
module Operator
|
2176
|
-
extend Orb::Internal::Type::Enum
|
2177
|
-
|
2178
|
-
TaggedSymbol =
|
2179
|
-
T.type_alias do
|
2180
|
-
T.all(Symbol, Orb::Plan::PlanPhase::Maximum::Filter::Operator)
|
2181
|
-
end
|
2182
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2183
|
-
|
2184
|
-
INCLUDES =
|
2185
|
-
T.let(
|
2186
|
-
:includes,
|
2187
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Operator::TaggedSymbol
|
2188
|
-
)
|
2189
|
-
EXCLUDES =
|
2190
|
-
T.let(
|
2191
|
-
:excludes,
|
2192
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Operator::TaggedSymbol
|
2193
|
-
)
|
2194
|
-
|
2195
|
-
sig do
|
2196
|
-
override.returns(
|
2197
|
-
T::Array[
|
2198
|
-
Orb::Plan::PlanPhase::Maximum::Filter::Operator::TaggedSymbol
|
2199
|
-
]
|
2200
|
-
)
|
2201
|
-
end
|
2202
|
-
def self.values
|
2203
|
-
end
|
2204
|
-
end
|
2205
|
-
end
|
2206
|
-
end
|
2207
|
-
|
2208
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
2209
|
-
OrHash =
|
2210
|
-
T.type_alias do
|
2211
|
-
T.any(Orb::Plan::PlanPhase::Minimum, Orb::Internal::AnyHash)
|
2212
|
-
end
|
2213
|
-
|
2214
|
-
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
2215
|
-
# minimums, this can be a subset of prices.
|
2216
|
-
sig { returns(T::Array[String]) }
|
2217
|
-
attr_accessor :applies_to_price_ids
|
2218
|
-
|
2219
|
-
# The filters that determine which prices to apply this minimum to.
|
2220
|
-
sig { returns(T::Array[Orb::Plan::PlanPhase::Minimum::Filter]) }
|
2221
|
-
attr_accessor :filters
|
2222
|
-
|
2223
|
-
# Minimum amount applied
|
2224
|
-
sig { returns(String) }
|
2225
|
-
attr_accessor :minimum_amount
|
2226
|
-
|
2227
|
-
sig do
|
2228
|
-
params(
|
2229
|
-
applies_to_price_ids: T::Array[String],
|
2230
|
-
filters: T::Array[Orb::Plan::PlanPhase::Minimum::Filter::OrHash],
|
2231
|
-
minimum_amount: String
|
2232
|
-
).returns(T.attached_class)
|
2233
|
-
end
|
2234
|
-
def self.new(
|
2235
|
-
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
2236
|
-
# minimums, this can be a subset of prices.
|
2237
|
-
applies_to_price_ids:,
|
2238
|
-
# The filters that determine which prices to apply this minimum to.
|
2239
|
-
filters:,
|
2240
|
-
# Minimum amount applied
|
2241
|
-
minimum_amount:
|
2242
|
-
)
|
2243
|
-
end
|
2244
|
-
|
2245
|
-
sig do
|
2246
|
-
override.returns(
|
2247
|
-
{
|
2248
|
-
applies_to_price_ids: T::Array[String],
|
2249
|
-
filters: T::Array[Orb::Plan::PlanPhase::Minimum::Filter],
|
2250
|
-
minimum_amount: String
|
2251
|
-
}
|
2252
|
-
)
|
2253
|
-
end
|
2254
|
-
def to_hash
|
2255
|
-
end
|
2256
|
-
|
2257
|
-
class Filter < Orb::Internal::Type::BaseModel
|
2258
|
-
OrHash =
|
2259
|
-
T.type_alias do
|
2260
|
-
T.any(
|
2261
|
-
Orb::Plan::PlanPhase::Minimum::Filter,
|
2262
|
-
Orb::Internal::AnyHash
|
2263
|
-
)
|
2264
|
-
end
|
2265
|
-
|
2266
|
-
# The property of the price to filter on.
|
2267
|
-
sig do
|
2268
|
-
returns(
|
2269
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol
|
2270
|
-
)
|
2271
|
-
end
|
2272
|
-
attr_accessor :field
|
2273
|
-
|
2274
|
-
# Should prices that match the filter be included or excluded.
|
2275
|
-
sig do
|
2276
|
-
returns(
|
2277
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Operator::TaggedSymbol
|
2278
|
-
)
|
2279
|
-
end
|
2280
|
-
attr_accessor :operator
|
2281
|
-
|
2282
|
-
# The IDs or values that match this filter.
|
2283
|
-
sig { returns(T::Array[String]) }
|
2284
|
-
attr_accessor :values
|
2285
|
-
|
2286
|
-
sig do
|
2287
|
-
params(
|
2288
|
-
field: Orb::Plan::PlanPhase::Minimum::Filter::Field::OrSymbol,
|
2289
|
-
operator:
|
2290
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Operator::OrSymbol,
|
2291
|
-
values: T::Array[String]
|
2292
|
-
).returns(T.attached_class)
|
2293
|
-
end
|
2294
|
-
def self.new(
|
2295
|
-
# The property of the price to filter on.
|
2296
|
-
field:,
|
2297
|
-
# Should prices that match the filter be included or excluded.
|
2298
|
-
operator:,
|
2299
|
-
# The IDs or values that match this filter.
|
2300
|
-
values:
|
2301
|
-
)
|
2302
|
-
end
|
2303
|
-
|
2304
|
-
sig do
|
2305
|
-
override.returns(
|
2306
|
-
{
|
2307
|
-
field:
|
2308
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol,
|
2309
|
-
operator:
|
2310
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Operator::TaggedSymbol,
|
2311
|
-
values: T::Array[String]
|
2312
|
-
}
|
2313
|
-
)
|
2314
|
-
end
|
2315
|
-
def to_hash
|
2316
|
-
end
|
2317
|
-
|
2318
|
-
# The property of the price to filter on.
|
2319
|
-
module Field
|
2320
|
-
extend Orb::Internal::Type::Enum
|
2321
|
-
|
2322
|
-
TaggedSymbol =
|
2323
|
-
T.type_alias do
|
2324
|
-
T.all(Symbol, Orb::Plan::PlanPhase::Minimum::Filter::Field)
|
2325
|
-
end
|
2326
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2327
|
-
|
2328
|
-
PRICE_ID =
|
2329
|
-
T.let(
|
2330
|
-
:price_id,
|
2331
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol
|
2332
|
-
)
|
2333
|
-
ITEM_ID =
|
2334
|
-
T.let(
|
2335
|
-
:item_id,
|
2336
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol
|
2337
|
-
)
|
2338
|
-
PRICE_TYPE =
|
2339
|
-
T.let(
|
2340
|
-
:price_type,
|
2341
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol
|
2342
|
-
)
|
2343
|
-
CURRENCY =
|
2344
|
-
T.let(
|
2345
|
-
:currency,
|
2346
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol
|
2347
|
-
)
|
2348
|
-
PRICING_UNIT_ID =
|
2349
|
-
T.let(
|
2350
|
-
:pricing_unit_id,
|
2351
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol
|
2352
|
-
)
|
2353
|
-
|
2354
|
-
sig do
|
2355
|
-
override.returns(
|
2356
|
-
T::Array[
|
2357
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Field::TaggedSymbol
|
2358
|
-
]
|
2359
|
-
)
|
2360
|
-
end
|
2361
|
-
def self.values
|
2362
|
-
end
|
2363
|
-
end
|
2364
|
-
|
2365
|
-
# Should prices that match the filter be included or excluded.
|
2366
|
-
module Operator
|
2367
|
-
extend Orb::Internal::Type::Enum
|
2368
|
-
|
2369
|
-
TaggedSymbol =
|
2370
|
-
T.type_alias do
|
2371
|
-
T.all(Symbol, Orb::Plan::PlanPhase::Minimum::Filter::Operator)
|
2372
|
-
end
|
2373
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2374
|
-
|
2375
|
-
INCLUDES =
|
2376
|
-
T.let(
|
2377
|
-
:includes,
|
2378
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Operator::TaggedSymbol
|
2379
|
-
)
|
2380
|
-
EXCLUDES =
|
2381
|
-
T.let(
|
2382
|
-
:excludes,
|
2383
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Operator::TaggedSymbol
|
2384
|
-
)
|
2385
|
-
|
2386
|
-
sig do
|
2387
|
-
override.returns(
|
2388
|
-
T::Array[
|
2389
|
-
Orb::Plan::PlanPhase::Minimum::Filter::Operator::TaggedSymbol
|
2390
|
-
]
|
2391
|
-
)
|
2392
|
-
end
|
2393
|
-
def self.values
|
2394
|
-
end
|
2395
|
-
end
|
2396
|
-
end
|
2397
|
-
end
|
2398
490
|
end
|
2399
491
|
|
2400
492
|
class Product < Orb::Internal::Type::BaseModel
|