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
@@ -29,36 +29,30 @@ module Orb
|
|
29
29
|
email: String,
|
30
30
|
name: String,
|
31
31
|
accounting_sync_configuration:
|
32
|
-
T.nilable(
|
33
|
-
Orb::CustomerCreateParams::AccountingSyncConfiguration::OrHash
|
34
|
-
),
|
32
|
+
T.nilable(Orb::NewAccountingSyncConfiguration::OrHash),
|
35
33
|
additional_emails: T.nilable(T::Array[String]),
|
36
34
|
auto_collection: T.nilable(T::Boolean),
|
37
|
-
billing_address:
|
38
|
-
T.nilable(Orb::CustomerCreateParams::BillingAddress::OrHash),
|
35
|
+
billing_address: T.nilable(Orb::AddressInput::OrHash),
|
39
36
|
currency: T.nilable(String),
|
40
37
|
email_delivery: T.nilable(T::Boolean),
|
41
38
|
external_customer_id: T.nilable(String),
|
42
|
-
hierarchy: T.nilable(Orb::
|
39
|
+
hierarchy: T.nilable(Orb::CustomerHierarchyConfig::OrHash),
|
43
40
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
44
41
|
payment_provider:
|
45
42
|
T.nilable(Orb::CustomerCreateParams::PaymentProvider::OrSymbol),
|
46
43
|
payment_provider_id: T.nilable(String),
|
47
44
|
reporting_configuration:
|
48
|
-
T.nilable(
|
49
|
-
|
50
|
-
),
|
51
|
-
shipping_address:
|
52
|
-
T.nilable(Orb::CustomerCreateParams::ShippingAddress::OrHash),
|
45
|
+
T.nilable(Orb::NewReportingConfiguration::OrHash),
|
46
|
+
shipping_address: T.nilable(Orb::AddressInput::OrHash),
|
53
47
|
tax_configuration:
|
54
48
|
T.nilable(
|
55
49
|
T.any(
|
56
|
-
Orb::
|
57
|
-
Orb::
|
58
|
-
Orb::
|
50
|
+
Orb::NewAvalaraTaxConfiguration::OrHash,
|
51
|
+
Orb::NewTaxJarConfiguration::OrHash,
|
52
|
+
Orb::NewSphereConfiguration::OrHash
|
59
53
|
)
|
60
54
|
),
|
61
|
-
tax_id: T.nilable(Orb::
|
55
|
+
tax_id: T.nilable(Orb::CustomerTaxID::OrHash),
|
62
56
|
timezone: T.nilable(String),
|
63
57
|
request_options: Orb::RequestOptions::OrHash
|
64
58
|
).returns(Orb::Customer)
|
@@ -226,38 +220,32 @@ module Orb
|
|
226
220
|
params(
|
227
221
|
customer_id: String,
|
228
222
|
accounting_sync_configuration:
|
229
|
-
T.nilable(
|
230
|
-
Orb::CustomerUpdateParams::AccountingSyncConfiguration::OrHash
|
231
|
-
),
|
223
|
+
T.nilable(Orb::NewAccountingSyncConfiguration::OrHash),
|
232
224
|
additional_emails: T.nilable(T::Array[String]),
|
233
225
|
auto_collection: T.nilable(T::Boolean),
|
234
|
-
billing_address:
|
235
|
-
T.nilable(Orb::CustomerUpdateParams::BillingAddress::OrHash),
|
226
|
+
billing_address: T.nilable(Orb::AddressInput::OrHash),
|
236
227
|
currency: T.nilable(String),
|
237
228
|
email: T.nilable(String),
|
238
229
|
email_delivery: T.nilable(T::Boolean),
|
239
230
|
external_customer_id: T.nilable(String),
|
240
|
-
hierarchy: T.nilable(Orb::
|
231
|
+
hierarchy: T.nilable(Orb::CustomerHierarchyConfig::OrHash),
|
241
232
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
242
233
|
name: T.nilable(String),
|
243
234
|
payment_provider:
|
244
235
|
T.nilable(Orb::CustomerUpdateParams::PaymentProvider::OrSymbol),
|
245
236
|
payment_provider_id: T.nilable(String),
|
246
237
|
reporting_configuration:
|
247
|
-
T.nilable(
|
248
|
-
|
249
|
-
),
|
250
|
-
shipping_address:
|
251
|
-
T.nilable(Orb::CustomerUpdateParams::ShippingAddress::OrHash),
|
238
|
+
T.nilable(Orb::NewReportingConfiguration::OrHash),
|
239
|
+
shipping_address: T.nilable(Orb::AddressInput::OrHash),
|
252
240
|
tax_configuration:
|
253
241
|
T.nilable(
|
254
242
|
T.any(
|
255
|
-
Orb::
|
256
|
-
Orb::
|
257
|
-
Orb::
|
243
|
+
Orb::NewAvalaraTaxConfiguration::OrHash,
|
244
|
+
Orb::NewTaxJarConfiguration::OrHash,
|
245
|
+
Orb::NewSphereConfiguration::OrHash
|
258
246
|
)
|
259
247
|
),
|
260
|
-
tax_id: T.nilable(Orb::
|
248
|
+
tax_id: T.nilable(Orb::CustomerTaxID::OrHash),
|
261
249
|
request_options: Orb::RequestOptions::OrHash
|
262
250
|
).returns(Orb::Customer)
|
263
251
|
end
|
@@ -535,21 +523,15 @@ module Orb
|
|
535
523
|
params(
|
536
524
|
id: String,
|
537
525
|
accounting_sync_configuration:
|
538
|
-
T.nilable(
|
539
|
-
Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::OrHash
|
540
|
-
),
|
526
|
+
T.nilable(Orb::NewAccountingSyncConfiguration::OrHash),
|
541
527
|
additional_emails: T.nilable(T::Array[String]),
|
542
528
|
auto_collection: T.nilable(T::Boolean),
|
543
|
-
billing_address:
|
544
|
-
T.nilable(
|
545
|
-
Orb::CustomerUpdateByExternalIDParams::BillingAddress::OrHash
|
546
|
-
),
|
529
|
+
billing_address: T.nilable(Orb::AddressInput::OrHash),
|
547
530
|
currency: T.nilable(String),
|
548
531
|
email: T.nilable(String),
|
549
532
|
email_delivery: T.nilable(T::Boolean),
|
550
533
|
external_customer_id: T.nilable(String),
|
551
|
-
hierarchy:
|
552
|
-
T.nilable(Orb::CustomerUpdateByExternalIDParams::Hierarchy::OrHash),
|
534
|
+
hierarchy: T.nilable(Orb::CustomerHierarchyConfig::OrHash),
|
553
535
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
554
536
|
name: T.nilable(String),
|
555
537
|
payment_provider:
|
@@ -558,23 +540,17 @@ module Orb
|
|
558
540
|
),
|
559
541
|
payment_provider_id: T.nilable(String),
|
560
542
|
reporting_configuration:
|
561
|
-
T.nilable(
|
562
|
-
|
563
|
-
),
|
564
|
-
shipping_address:
|
565
|
-
T.nilable(
|
566
|
-
Orb::CustomerUpdateByExternalIDParams::ShippingAddress::OrHash
|
567
|
-
),
|
543
|
+
T.nilable(Orb::NewReportingConfiguration::OrHash),
|
544
|
+
shipping_address: T.nilable(Orb::AddressInput::OrHash),
|
568
545
|
tax_configuration:
|
569
546
|
T.nilable(
|
570
547
|
T.any(
|
571
|
-
Orb::
|
572
|
-
Orb::
|
573
|
-
Orb::
|
548
|
+
Orb::NewAvalaraTaxConfiguration::OrHash,
|
549
|
+
Orb::NewTaxJarConfiguration::OrHash,
|
550
|
+
Orb::NewSphereConfiguration::OrHash
|
574
551
|
)
|
575
552
|
),
|
576
|
-
tax_id:
|
577
|
-
T.nilable(Orb::CustomerUpdateByExternalIDParams::TaxID::OrHash),
|
553
|
+
tax_id: T.nilable(Orb::CustomerTaxID::OrHash),
|
578
554
|
request_options: Orb::RequestOptions::OrHash
|
579
555
|
).returns(Orb::Customer)
|
580
556
|
end
|
data/rbi/orb/resources/plans.rbi
CHANGED
@@ -14,34 +14,34 @@ module Orb
|
|
14
14
|
prices:
|
15
15
|
T::Array[
|
16
16
|
T.any(
|
17
|
-
Orb::
|
18
|
-
Orb::
|
19
|
-
Orb::
|
20
|
-
Orb::
|
21
|
-
Orb::
|
22
|
-
Orb::
|
23
|
-
Orb::
|
24
|
-
Orb::
|
25
|
-
Orb::
|
26
|
-
Orb::
|
27
|
-
Orb::
|
28
|
-
Orb::
|
29
|
-
Orb::
|
30
|
-
Orb::
|
31
|
-
Orb::
|
32
|
-
Orb::
|
33
|
-
Orb::
|
34
|
-
Orb::
|
35
|
-
Orb::
|
36
|
-
Orb::
|
37
|
-
Orb::
|
38
|
-
Orb::
|
39
|
-
Orb::
|
40
|
-
Orb::
|
41
|
-
Orb::
|
42
|
-
Orb::
|
43
|
-
Orb::
|
44
|
-
Orb::
|
17
|
+
Orb::NewPlanUnitPrice::OrHash,
|
18
|
+
Orb::NewPlanPackagePrice::OrHash,
|
19
|
+
Orb::NewPlanMatrixPrice::OrHash,
|
20
|
+
Orb::NewPlanTieredPrice::OrHash,
|
21
|
+
Orb::NewPlanTieredBPSPrice::OrHash,
|
22
|
+
Orb::NewPlanBPSPrice::OrHash,
|
23
|
+
Orb::NewPlanBulkBPSPrice::OrHash,
|
24
|
+
Orb::NewPlanBulkPrice::OrHash,
|
25
|
+
Orb::NewPlanThresholdTotalAmountPrice::OrHash,
|
26
|
+
Orb::NewPlanTieredPackagePrice::OrHash,
|
27
|
+
Orb::NewPlanTieredWithMinimumPrice::OrHash,
|
28
|
+
Orb::NewPlanUnitWithPercentPrice::OrHash,
|
29
|
+
Orb::NewPlanPackageWithAllocationPrice::OrHash,
|
30
|
+
Orb::NewPlanTierWithProrationPrice::OrHash,
|
31
|
+
Orb::NewPlanUnitWithProrationPrice::OrHash,
|
32
|
+
Orb::NewPlanGroupedAllocationPrice::OrHash,
|
33
|
+
Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash,
|
34
|
+
Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash,
|
35
|
+
Orb::NewPlanMatrixWithDisplayNamePrice::OrHash,
|
36
|
+
Orb::NewPlanBulkWithProrationPrice::OrHash,
|
37
|
+
Orb::NewPlanGroupedTieredPackagePrice::OrHash,
|
38
|
+
Orb::NewPlanMaxGroupTieredPackagePrice::OrHash,
|
39
|
+
Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash,
|
40
|
+
Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash,
|
41
|
+
Orb::NewPlanCumulativeGroupedBulkPrice::OrHash,
|
42
|
+
Orb::NewPlanTieredPackageWithMinimumPrice::OrHash,
|
43
|
+
Orb::NewPlanMatrixWithAllocationPrice::OrHash,
|
44
|
+
Orb::NewPlanGroupedTieredPrice::OrHash
|
45
45
|
)
|
46
46
|
],
|
47
47
|
default_invoice_memo: T.nilable(String),
|
@@ -23,16 +23,16 @@ module Orb
|
|
23
23
|
item_id: String,
|
24
24
|
model_type: Orb::PriceCreateParams::ModelType::OrSymbol,
|
25
25
|
name: String,
|
26
|
-
unit_config: Orb::
|
27
|
-
package_config: Orb::
|
28
|
-
matrix_config: Orb::
|
26
|
+
unit_config: Orb::UnitConfig::OrHash,
|
27
|
+
package_config: Orb::PackageConfig::OrHash,
|
28
|
+
matrix_config: Orb::MatrixConfig::OrHash,
|
29
29
|
matrix_with_allocation_config:
|
30
|
-
Orb::
|
31
|
-
tiered_config: Orb::
|
32
|
-
tiered_bps_config: Orb::
|
33
|
-
bps_config: Orb::
|
34
|
-
bulk_bps_config: Orb::
|
35
|
-
bulk_config: Orb::
|
30
|
+
Orb::MatrixWithAllocationConfig::OrHash,
|
31
|
+
tiered_config: Orb::TieredConfig::OrHash,
|
32
|
+
tiered_bps_config: Orb::TieredBPSConfig::OrHash,
|
33
|
+
bps_config: Orb::BPSConfig::OrHash,
|
34
|
+
bulk_bps_config: Orb::BulkBPSConfig::OrHash,
|
35
|
+
bulk_config: Orb::BulkConfig::OrHash,
|
36
36
|
threshold_total_amount_config: T::Hash[Symbol, T.anything],
|
37
37
|
tiered_package_config: T::Hash[Symbol, T.anything],
|
38
38
|
grouped_tiered_config: T::Hash[Symbol, T.anything],
|
@@ -56,21 +56,22 @@ module Orb
|
|
56
56
|
billable_metric_id: T.nilable(String),
|
57
57
|
billed_in_advance: T.nilable(T::Boolean),
|
58
58
|
billing_cycle_configuration:
|
59
|
-
T.nilable(
|
60
|
-
Orb::PriceCreateParams::BillingCycleConfiguration::OrHash
|
61
|
-
),
|
59
|
+
T.nilable(Orb::NewBillingCycleConfiguration::OrHash),
|
62
60
|
conversion_rate: T.nilable(Float),
|
63
|
-
|
61
|
+
conversion_rate_config:
|
64
62
|
T.nilable(
|
65
|
-
|
63
|
+
T.any(
|
64
|
+
Orb::UnitConversionRateConfig::OrHash,
|
65
|
+
Orb::TieredConversionRateConfig::OrHash
|
66
|
+
)
|
66
67
|
),
|
68
|
+
dimensional_price_configuration:
|
69
|
+
T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash),
|
67
70
|
external_price_id: T.nilable(String),
|
68
71
|
fixed_price_quantity: T.nilable(Float),
|
69
72
|
invoice_grouping_key: T.nilable(String),
|
70
73
|
invoicing_cycle_configuration:
|
71
|
-
T.nilable(
|
72
|
-
Orb::PriceCreateParams::InvoicingCycleConfiguration::OrHash
|
73
|
-
),
|
74
|
+
T.nilable(Orb::NewBillingCycleConfiguration::OrHash),
|
74
75
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
75
76
|
request_options: Orb::RequestOptions::OrHash
|
76
77
|
).returns(Orb::Price::Variants)
|
@@ -124,6 +125,8 @@ module Orb
|
|
124
125
|
billing_cycle_configuration: nil,
|
125
126
|
# The per unit conversion rate of the price currency to the invoicing currency.
|
126
127
|
conversion_rate: nil,
|
128
|
+
# The configuration for the rate of the price currency to the invoicing currency.
|
129
|
+
conversion_rate_config: nil,
|
127
130
|
# For dimensional price: specifies a price group and dimension values
|
128
131
|
dimensional_price_configuration: nil,
|
129
132
|
# An alias for the price.
|
@@ -243,23 +246,14 @@ module Orb
|
|
243
246
|
end
|
244
247
|
|
245
248
|
# This endpoint is used to evaluate the output of price(s) for a given customer
|
246
|
-
# and time range over
|
247
|
-
#
|
249
|
+
# and time range over ingested events. It enables filtering and grouping the
|
250
|
+
# output using
|
248
251
|
# [computed properties](/extensibility/advanced-metrics#computed-properties),
|
249
252
|
# supporting the following workflows:
|
250
253
|
#
|
251
254
|
# 1. Showing detailed usage and costs to the end customer.
|
252
255
|
# 2. Auditing subtotals on invoice line items.
|
253
256
|
#
|
254
|
-
# Prices may either reference existing prices in your Orb account or be defined
|
255
|
-
# inline in the request body. Up to 100 prices can be evaluated in a single
|
256
|
-
# request.
|
257
|
-
#
|
258
|
-
# Price evaluation by default uses ingested events, but you can also provide a
|
259
|
-
# list of preview events to use instead. Up to 500 preview events can be provided
|
260
|
-
# in a single request. When using ingested events, the start of the time range
|
261
|
-
# must be no more than 100 days ago.
|
262
|
-
#
|
263
257
|
# For these workflows, the expressiveness of computed properties in both the
|
264
258
|
# filters and grouping is critical. For example, if you'd like to show your
|
265
259
|
# customer their usage grouped by hour and another property, you can do so with
|
@@ -269,18 +263,22 @@ module Orb
|
|
269
263
|
# with the following `filter`:
|
270
264
|
# `my_property = 'foo' AND my_other_property = 'bar'`.
|
271
265
|
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
266
|
+
# Prices may either reference existing prices in your Orb account or be defined
|
267
|
+
# inline in the request body. Up to 100 prices can be evaluated in a single
|
268
|
+
# request.
|
269
|
+
#
|
270
|
+
# Prices are evaluated on ingested events and the start of the time range must be
|
271
|
+
# no more than 100 days ago. To evaluate based off a set of provided events, the
|
272
|
+
# [evaluate preview events](/api-reference/price/evaluate-preview-events) endpoint
|
273
|
+
# can be used instead.
|
274
|
+
#
|
275
|
+
# Note that this is a POST endpoint rather than a GET endpoint because it employs
|
276
|
+
# a JSON body rather than query parameters.
|
275
277
|
sig do
|
276
278
|
params(
|
277
279
|
timeframe_end: Time,
|
278
280
|
timeframe_start: Time,
|
279
281
|
customer_id: T.nilable(String),
|
280
|
-
events:
|
281
|
-
T.nilable(
|
282
|
-
T::Array[Orb::PriceEvaluateMultipleParams::Event::OrHash]
|
283
|
-
),
|
284
282
|
external_customer_id: T.nilable(String),
|
285
283
|
price_evaluations:
|
286
284
|
T::Array[Orb::PriceEvaluateMultipleParams::PriceEvaluation::OrHash],
|
@@ -294,7 +292,55 @@ module Orb
|
|
294
292
|
timeframe_start:,
|
295
293
|
# The ID of the customer to which this evaluation is scoped.
|
296
294
|
customer_id: nil,
|
297
|
-
#
|
295
|
+
# The external customer ID of the customer to which this evaluation is scoped.
|
296
|
+
external_customer_id: nil,
|
297
|
+
# List of prices to evaluate (max 100)
|
298
|
+
price_evaluations: nil,
|
299
|
+
request_options: {}
|
300
|
+
)
|
301
|
+
end
|
302
|
+
|
303
|
+
# This endpoint evaluates prices on preview events instead of actual usage, making
|
304
|
+
# it ideal for building price calculators and cost estimation tools. You can
|
305
|
+
# filter and group results using
|
306
|
+
# [computed properties](/extensibility/advanced-metrics#computed-properties) to
|
307
|
+
# analyze pricing across different dimensions.
|
308
|
+
#
|
309
|
+
# Prices may either reference existing prices in your Orb account or be defined
|
310
|
+
# inline in the request body. The endpoint has the following limitations:
|
311
|
+
#
|
312
|
+
# 1. Up to 100 prices can be evaluated in a single request.
|
313
|
+
# 2. Up to 500 preview events can be provided in a single request.
|
314
|
+
#
|
315
|
+
# A top-level customer_id is required to evaluate the preview events.
|
316
|
+
# Additionally, all events without a customer_id will have the top-level
|
317
|
+
# customer_id added.
|
318
|
+
#
|
319
|
+
# Note that this is a POST endpoint rather than a GET endpoint because it employs
|
320
|
+
# a JSON body rather than query parameters.
|
321
|
+
sig do
|
322
|
+
params(
|
323
|
+
timeframe_end: Time,
|
324
|
+
timeframe_start: Time,
|
325
|
+
customer_id: T.nilable(String),
|
326
|
+
events:
|
327
|
+
T::Array[Orb::PriceEvaluatePreviewEventsParams::Event::OrHash],
|
328
|
+
external_customer_id: T.nilable(String),
|
329
|
+
price_evaluations:
|
330
|
+
T::Array[
|
331
|
+
Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::OrHash
|
332
|
+
],
|
333
|
+
request_options: Orb::RequestOptions::OrHash
|
334
|
+
).returns(Orb::Models::PriceEvaluatePreviewEventsResponse)
|
335
|
+
end
|
336
|
+
def evaluate_preview_events(
|
337
|
+
# The exclusive upper bound for event timestamps
|
338
|
+
timeframe_end:,
|
339
|
+
# The inclusive lower bound for event timestamps
|
340
|
+
timeframe_start:,
|
341
|
+
# The ID of the customer to which this evaluation is scoped.
|
342
|
+
customer_id: nil,
|
343
|
+
# List of preview events to use instead of actual usage data
|
298
344
|
events: nil,
|
299
345
|
# The external customer ID of the customer to which this evaluation is scoped.
|
300
346
|
external_customer_id: nil,
|
@@ -273,9 +273,7 @@ module Orb
|
|
273
273
|
auto_collection: T.nilable(T::Boolean),
|
274
274
|
aws_region: T.nilable(String),
|
275
275
|
billing_cycle_anchor_configuration:
|
276
|
-
T.nilable(
|
277
|
-
Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration::OrHash
|
278
|
-
),
|
276
|
+
T.nilable(Orb::BillingCycleAnchorConfiguration::OrHash),
|
279
277
|
coupon_redemption_code: T.nilable(String),
|
280
278
|
credits_overage_rate: T.nilable(Float),
|
281
279
|
currency: T.nilable(String),
|
@@ -319,7 +317,7 @@ module Orb
|
|
319
317
|
trial_duration_days: T.nilable(Integer),
|
320
318
|
usage_customer_ids: T.nilable(T::Array[String]),
|
321
319
|
request_options: Orb::RequestOptions::OrHash
|
322
|
-
).returns(Orb::
|
320
|
+
).returns(Orb::MutatedSubscription)
|
323
321
|
end
|
324
322
|
def create(
|
325
323
|
# Additional adjustments to be added to the subscription. (Only available for
|
@@ -562,7 +560,7 @@ module Orb
|
|
562
560
|
allow_invoice_credit_or_void: T.nilable(T::Boolean),
|
563
561
|
cancellation_date: T.nilable(Time),
|
564
562
|
request_options: Orb::RequestOptions::OrHash
|
565
|
-
).returns(Orb::
|
563
|
+
).returns(Orb::MutatedSubscription)
|
566
564
|
end
|
567
565
|
def cancel(
|
568
566
|
subscription_id,
|
@@ -987,7 +985,7 @@ module Orb
|
|
987
985
|
Orb::SubscriptionPriceIntervalsParams::EditAdjustment::OrHash
|
988
986
|
],
|
989
987
|
request_options: Orb::RequestOptions::OrHash
|
990
|
-
).returns(Orb::
|
988
|
+
).returns(Orb::MutatedSubscription)
|
991
989
|
end
|
992
990
|
def price_intervals(
|
993
991
|
subscription_id,
|
@@ -1013,17 +1011,16 @@ module Orb
|
|
1013
1011
|
subscription_id: String,
|
1014
1012
|
change_option:
|
1015
1013
|
Orb::SubscriptionRedeemCouponParams::ChangeOption::OrSymbol,
|
1016
|
-
coupon_id: String,
|
1017
1014
|
allow_invoice_credit_or_void: T.nilable(T::Boolean),
|
1018
1015
|
change_date: T.nilable(Time),
|
1016
|
+
coupon_id: T.nilable(String),
|
1017
|
+
coupon_redemption_code: T.nilable(String),
|
1019
1018
|
request_options: Orb::RequestOptions::OrHash
|
1020
|
-
).returns(Orb::
|
1019
|
+
).returns(Orb::MutatedSubscription)
|
1021
1020
|
end
|
1022
1021
|
def redeem_coupon(
|
1023
1022
|
subscription_id,
|
1024
1023
|
change_option:,
|
1025
|
-
# Coupon ID to be redeemed for this subscription.
|
1026
|
-
coupon_id:,
|
1027
1024
|
# If false, this request will fail if it would void an issued invoice or create a
|
1028
1025
|
# credit note. Consider using this as a safety mechanism if you do not expect
|
1029
1026
|
# existing invoices to be changed.
|
@@ -1031,6 +1028,10 @@ module Orb
|
|
1031
1028
|
# The date that the coupon discount should take effect. This parameter can only be
|
1032
1029
|
# passed if the `change_option` is `requested_date`.
|
1033
1030
|
change_date: nil,
|
1031
|
+
# Coupon ID to be redeemed for this subscription.
|
1032
|
+
coupon_id: nil,
|
1033
|
+
# Redemption code of the coupon to be redeemed for this subscription.
|
1034
|
+
coupon_redemption_code: nil,
|
1034
1035
|
request_options: {}
|
1035
1036
|
)
|
1036
1037
|
end
|
@@ -1242,9 +1243,7 @@ module Orb
|
|
1242
1243
|
Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol
|
1243
1244
|
),
|
1244
1245
|
billing_cycle_anchor_configuration:
|
1245
|
-
T.nilable(
|
1246
|
-
Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration::OrHash
|
1247
|
-
),
|
1246
|
+
T.nilable(Orb::BillingCycleAnchorConfiguration::OrHash),
|
1248
1247
|
change_date: T.nilable(Time),
|
1249
1248
|
coupon_redemption_code: T.nilable(String),
|
1250
1249
|
credits_overage_rate: T.nilable(Float),
|
@@ -1285,7 +1284,7 @@ module Orb
|
|
1285
1284
|
trial_duration_days: T.nilable(Integer),
|
1286
1285
|
usage_customer_ids: T.nilable(T::Array[String]),
|
1287
1286
|
request_options: Orb::RequestOptions::OrHash
|
1288
|
-
).returns(Orb::
|
1287
|
+
).returns(Orb::MutatedSubscription)
|
1289
1288
|
end
|
1290
1289
|
def schedule_plan_change(
|
1291
1290
|
subscription_id,
|
@@ -1383,7 +1382,7 @@ module Orb
|
|
1383
1382
|
allow_invoice_credit_or_void: T.nilable(T::Boolean),
|
1384
1383
|
effective_date: T.nilable(Date),
|
1385
1384
|
request_options: Orb::RequestOptions::OrHash
|
1386
|
-
).returns(Orb::
|
1385
|
+
).returns(Orb::MutatedSubscription)
|
1387
1386
|
end
|
1388
1387
|
def trigger_phase(
|
1389
1388
|
subscription_id,
|
@@ -1408,7 +1407,7 @@ module Orb
|
|
1408
1407
|
params(
|
1409
1408
|
subscription_id: String,
|
1410
1409
|
request_options: Orb::RequestOptions::OrHash
|
1411
|
-
).returns(Orb::
|
1410
|
+
).returns(Orb::MutatedSubscription)
|
1412
1411
|
end
|
1413
1412
|
def unschedule_cancellation(subscription_id, request_options: {})
|
1414
1413
|
end
|
@@ -1423,9 +1422,7 @@ module Orb
|
|
1423
1422
|
subscription_id: String,
|
1424
1423
|
price_id: String,
|
1425
1424
|
request_options: Orb::RequestOptions::OrHash
|
1426
|
-
).returns(
|
1427
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse
|
1428
|
-
)
|
1425
|
+
).returns(Orb::MutatedSubscription)
|
1429
1426
|
end
|
1430
1427
|
def unschedule_fixed_fee_quantity_updates(
|
1431
1428
|
subscription_id,
|
@@ -1441,7 +1438,7 @@ module Orb
|
|
1441
1438
|
params(
|
1442
1439
|
subscription_id: String,
|
1443
1440
|
request_options: Orb::RequestOptions::OrHash
|
1444
|
-
).returns(Orb::
|
1441
|
+
).returns(Orb::MutatedSubscription)
|
1445
1442
|
end
|
1446
1443
|
def unschedule_pending_plan_changes(subscription_id, request_options: {})
|
1447
1444
|
end
|
@@ -1470,7 +1467,7 @@ module Orb
|
|
1470
1467
|
Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol,
|
1471
1468
|
effective_date: T.nilable(Date),
|
1472
1469
|
request_options: Orb::RequestOptions::OrHash
|
1473
|
-
).returns(Orb::
|
1470
|
+
).returns(Orb::MutatedSubscription)
|
1474
1471
|
end
|
1475
1472
|
def update_fixed_fee_quantity(
|
1476
1473
|
subscription_id,
|
@@ -1521,7 +1518,7 @@ module Orb
|
|
1521
1518
|
),
|
1522
1519
|
shift: T::Boolean,
|
1523
1520
|
request_options: Orb::RequestOptions::OrHash
|
1524
|
-
).returns(Orb::
|
1521
|
+
).returns(Orb::MutatedSubscription)
|
1525
1522
|
end
|
1526
1523
|
def update_trial(
|
1527
1524
|
subscription_id,
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Orb
|
2
|
+
module Models
|
3
|
+
type accounting_provider_config =
|
4
|
+
{ external_provider_id: String, provider_type: String }
|
5
|
+
|
6
|
+
class AccountingProviderConfig < Orb::Internal::Type::BaseModel
|
7
|
+
attr_accessor external_provider_id: String
|
8
|
+
|
9
|
+
attr_accessor provider_type: String
|
10
|
+
|
11
|
+
def initialize: (
|
12
|
+
external_provider_id: String,
|
13
|
+
provider_type: String
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> { external_provider_id: String, provider_type: String }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module Orb
|
2
|
+
module Models
|
3
|
+
type address =
|
4
|
+
{
|
5
|
+
city: String?,
|
6
|
+
country: String?,
|
7
|
+
:line1 => String?,
|
8
|
+
:line2 => String?,
|
9
|
+
postal_code: String?,
|
10
|
+
state: String?
|
11
|
+
}
|
12
|
+
|
13
|
+
class Address < Orb::Internal::Type::BaseModel
|
14
|
+
attr_accessor city: String?
|
15
|
+
|
16
|
+
attr_accessor country: String?
|
17
|
+
|
18
|
+
attr_accessor line1: String?
|
19
|
+
|
20
|
+
attr_accessor line2: String?
|
21
|
+
|
22
|
+
attr_accessor postal_code: String?
|
23
|
+
|
24
|
+
attr_accessor state: String?
|
25
|
+
|
26
|
+
def initialize: (
|
27
|
+
city: String?,
|
28
|
+
country: String?,
|
29
|
+
line1: String?,
|
30
|
+
line2: String?,
|
31
|
+
postal_code: String?,
|
32
|
+
state: String?
|
33
|
+
) -> void
|
34
|
+
|
35
|
+
def to_hash: -> {
|
36
|
+
city: String?,
|
37
|
+
country: String?,
|
38
|
+
:line1 => String?,
|
39
|
+
:line2 => String?,
|
40
|
+
postal_code: String?,
|
41
|
+
state: String?
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module Orb
|
2
|
+
module Models
|
3
|
+
type address_input =
|
4
|
+
{
|
5
|
+
city: String?,
|
6
|
+
country: String?,
|
7
|
+
:line1 => String?,
|
8
|
+
:line2 => String?,
|
9
|
+
postal_code: String?,
|
10
|
+
state: String?
|
11
|
+
}
|
12
|
+
|
13
|
+
class AddressInput < Orb::Internal::Type::BaseModel
|
14
|
+
attr_accessor city: String?
|
15
|
+
|
16
|
+
attr_accessor country: String?
|
17
|
+
|
18
|
+
attr_accessor line1: String?
|
19
|
+
|
20
|
+
attr_accessor line2: String?
|
21
|
+
|
22
|
+
attr_accessor postal_code: String?
|
23
|
+
|
24
|
+
attr_accessor state: String?
|
25
|
+
|
26
|
+
def initialize: (
|
27
|
+
?city: String?,
|
28
|
+
?country: String?,
|
29
|
+
?line1: String?,
|
30
|
+
?line2: String?,
|
31
|
+
?postal_code: String?,
|
32
|
+
?state: String?
|
33
|
+
) -> void
|
34
|
+
|
35
|
+
def to_hash: -> {
|
36
|
+
city: String?,
|
37
|
+
country: String?,
|
38
|
+
:line1 => String?,
|
39
|
+
:line2 => String?,
|
40
|
+
postal_code: String?,
|
41
|
+
state: String?
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|