orb-billing 1.14.0 → 1.15.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 +12 -0
- data/lib/orb/client.rb +14 -0
- data/lib/orb/internal/transport/base_client.rb +5 -0
- data/lib/orb/internal/type/union.rb +13 -27
- data/lib/orb/models/accounting_provider_config.rb +14 -3
- data/lib/orb/models/adjustment_interval.rb +185 -3
- data/lib/orb/models/alert.rb +105 -1
- data/lib/orb/models/alert_create_for_subscription_params.rb +120 -7
- data/lib/orb/models/alert_update_params.rb +113 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +2419 -17109
- data/lib/orb/models/beta_create_plan_version_params.rb +2361 -16947
- data/lib/orb/models/changed_subscription_resources.rb +200 -10
- data/lib/orb/models/conversion_rate_config.rb +18 -0
- data/lib/orb/models/credit_block_list_invoices_response.rb +155 -1
- data/lib/orb/models/credit_block_retrieve_response.rb +150 -1
- data/lib/orb/models/customer.rb +111 -4
- data/lib/orb/models/customer_create_params.rb +6 -1
- data/lib/orb/models/customer_tax_id.rb +15 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +16 -2
- data/lib/orb/models/customer_update_params.rb +16 -2
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +155 -1
- data/lib/orb/models/customers/credit_list_response.rb +152 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +4 -4
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/discount.rb +145 -1
- data/lib/orb/models/event_ingest_params.rb +5 -2
- data/lib/orb/models/invoice.rb +198 -10
- data/lib/orb/models/invoice_create_params.rb +6 -5
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +200 -10
- data/lib/orb/models/invoice_issue_summary_response.rb +9 -3
- data/lib/orb/models/invoice_level_discount.rb +145 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +189 -5
- data/lib/orb/models/invoice_list_summary_response.rb +9 -3
- data/lib/orb/models/licenses/external_license_get_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_all_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_usage_params.rb +3 -3
- data/lib/orb/models/mutated_subscription.rb +169 -4
- data/lib/orb/models/new_allocation_price.rb +11 -1
- data/lib/orb/models/new_floating_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_floating_package_price.rb +1 -3
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_bulk_price.rb +1 -1
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_price.rb +1 -5
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_plan_package_price.rb +1 -5
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_price.rb +1 -5
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_price.rb +1 -1
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +189 -9
- data/lib/orb/models/plan_create_params.rb +1047 -8228
- data/lib/orb/models/plan_update_params.rb +9 -1
- data/lib/orb/models/plan_version.rb +186 -5
- data/lib/orb/models/plans/external_plan_id_update_params.rb +9 -1
- data/lib/orb/models/plans/migration_cancel_response.rb +22 -4
- data/lib/orb/models/plans/migration_list_response.rb +22 -4
- data/lib/orb/models/plans/migration_retrieve_response.rb +22 -4
- data/lib/orb/models/price.rb +2614 -1268
- data/lib/orb/models/price_create_params.rb +866 -49
- data/lib/orb/models/price_evaluate_multiple_params.rb +889 -54
- data/lib/orb/models/price_evaluate_preview_events_params.rb +881 -46
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription.rb +168 -4
- data/lib/orb/models/subscription_create_params.rb +2818 -674
- data/lib/orb/models/subscription_price_intervals_params.rb +1098 -57
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +2834 -687
- data/lib/orb/models/subscription_update_params.rb +12 -1
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/alerts.rb +14 -3
- data/lib/orb/resources/customers/credits/ledger.rb +28 -14
- data/lib/orb/resources/customers.rb +6 -2
- data/lib/orb/resources/events.rb +7 -34
- data/lib/orb/resources/invoices.rb +6 -2
- data/lib/orb/resources/licenses/external_licenses.rb +1 -1
- data/lib/orb/resources/licenses/usage.rb +2 -2
- data/lib/orb/resources/metrics.rb +5 -5
- data/lib/orb/resources/plans/external_plan_id.rb +5 -3
- data/lib/orb/resources/plans.rb +9 -5
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/resources/subscriptions.rb +20 -3
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/orb/models/accounting_provider_config.rbi +38 -5
- data/rbi/orb/models/adjustment_interval.rbi +336 -0
- data/rbi/orb/models/alert.rbi +172 -3
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +268 -9
- data/rbi/orb/models/alert_update_params.rbi +208 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +3833 -28395
- data/rbi/orb/models/beta_create_plan_version_params.rbi +3833 -28363
- data/rbi/orb/models/changed_subscription_resources.rbi +360 -5
- data/rbi/orb/models/conversion_rate_config.rbi +18 -0
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +346 -3
- data/rbi/orb/models/credit_block_retrieve_response.rbi +344 -3
- data/rbi/orb/models/customer.rbi +190 -10
- data/rbi/orb/models/customer_create_params.rbi +12 -2
- data/rbi/orb/models/customer_tax_id.rbi +15 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +22 -2
- data/rbi/orb/models/customer_update_params.rbi +22 -2
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +346 -3
- data/rbi/orb/models/customers/credit_list_response.rbi +347 -3
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +6 -6
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +6 -6
- data/rbi/orb/models/dimensional_price_group.rbi +1 -1
- data/rbi/orb/models/discount.rbi +269 -1
- data/rbi/orb/models/event_ingest_params.rbi +4 -2
- data/rbi/orb/models/invoice.rbi +360 -5
- data/rbi/orb/models/invoice_create_params.rbi +12 -7
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +360 -5
- data/rbi/orb/models/invoice_issue_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_level_discount.rbi +298 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +339 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +19 -4
- data/rbi/orb/models/licenses/external_license_get_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_usage_params.rbi +3 -3
- data/rbi/orb/models/mutated_subscription.rbi +324 -2
- data/rbi/orb/models/new_allocation_price.rbi +12 -0
- data/rbi/orb/models/per_price_cost.rbi +3 -0
- data/rbi/orb/models/plan.rbi +339 -2
- data/rbi/orb/models/plan_create_params.rbi +1877 -14138
- data/rbi/orb/models/plan_update_params.rbi +8 -0
- data/rbi/orb/models/plan_version.rbi +339 -0
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +8 -0
- data/rbi/orb/models/plans/migration_cancel_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_list_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +22 -1
- data/rbi/orb/models/price.rbi +4552 -2285
- data/rbi/orb/models/price_create_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1540 -114
- data/rbi/orb/models/price_interval.rbi +3 -0
- data/rbi/orb/models/subscription.rbi +324 -2
- data/rbi/orb/models/subscription_create_params.rbi +4998 -1186
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2127 -264
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +4997 -1185
- data/rbi/orb/models/subscription_update_params.rbi +14 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/alerts.rbi +39 -4
- data/rbi/orb/resources/customers/credits/ledger.rbi +28 -14
- data/rbi/orb/resources/customers.rbi +23 -0
- data/rbi/orb/resources/events.rbi +8 -35
- data/rbi/orb/resources/invoices.rbi +9 -3
- data/rbi/orb/resources/licenses/external_licenses.rbi +1 -1
- data/rbi/orb/resources/licenses/usage.rbi +2 -2
- data/rbi/orb/resources/metrics.rbi +5 -5
- data/rbi/orb/resources/plans/external_plan_id.rbi +5 -2
- data/rbi/orb/resources/plans.rbi +9 -3
- data/rbi/orb/resources/prices.rbi +3 -0
- data/rbi/orb/resources/subscriptions.rbi +29 -0
- data/sig/orb/models/accounting_provider_config.rbs +21 -4
- data/sig/orb/models/adjustment_interval.rbs +134 -0
- data/sig/orb/models/alert.rbs +85 -3
- data/sig/orb/models/alert_create_for_subscription_params.rbs +86 -4
- data/sig/orb/models/alert_update_params.rbs +86 -1
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1803 -11601
- data/sig/orb/models/beta_create_plan_version_params.rbs +1747 -11541
- data/sig/orb/models/changed_subscription_resources.rbs +140 -1
- data/sig/orb/models/conversion_rate_config.rbs +12 -0
- data/sig/orb/models/credit_block_list_invoices_response.rbs +124 -3
- data/sig/orb/models/credit_block_retrieve_response.rbs +124 -3
- data/sig/orb/models/customer.rbs +70 -4
- data/sig/orb/models/customer_create_params.rbs +2 -2
- data/sig/orb/models/customer_tax_id.rbs +20 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +7 -2
- data/sig/orb/models/customer_update_params.rbs +7 -2
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +124 -3
- data/sig/orb/models/customers/credit_list_response.rbs +124 -3
- data/sig/orb/models/discount.rbs +114 -0
- data/sig/orb/models/invoice.rbs +140 -1
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +140 -1
- data/sig/orb/models/invoice_issue_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_level_discount.rbs +117 -1
- data/sig/orb/models/invoice_line_item_create_response.rbs +134 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +2 -1
- data/sig/orb/models/licenses/external_license_get_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_usage_params.rbs +4 -4
- data/sig/orb/models/mutated_subscription.rbs +124 -0
- data/sig/orb/models/new_allocation_price.rbs +5 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/plan.rbs +134 -0
- data/sig/orb/models/plan_create_params.rbs +836 -5728
- data/sig/orb/models/plan_update_params.rbs +5 -0
- data/sig/orb/models/plan_version.rbs +134 -0
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +5 -0
- data/sig/orb/models/price.rbs +2200 -1150
- data/sig/orb/models/price_create_params.rbs +611 -23
- data/sig/orb/models/price_evaluate_multiple_params.rbs +626 -23
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +626 -23
- data/sig/orb/models/subscription.rbs +124 -0
- data/sig/orb/models/subscription_create_params.rbs +2009 -430
- data/sig/orb/models/subscription_price_intervals_params.rbs +795 -23
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2009 -430
- data/sig/orb/models/subscription_update_params.rbs +5 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/alerts.rbs +5 -1
- data/sig/orb/resources/customers.rbs +2 -0
- data/sig/orb/resources/licenses/external_licenses.rbs +1 -1
- data/sig/orb/resources/licenses/usage.rbs +2 -2
- data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
- data/sig/orb/resources/plans.rbs +2 -0
- data/sig/orb/resources/subscriptions.rbs +3 -0
- metadata +6 -7
|
@@ -70,6 +70,17 @@ module Orb
|
|
|
70
70
|
sig { returns(Float) }
|
|
71
71
|
attr_accessor :balance
|
|
72
72
|
|
|
73
|
+
# How this credit block was created: `allocation` (a subscription's recurring
|
|
74
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up), or
|
|
75
|
+
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
76
|
+
# off another block).
|
|
77
|
+
sig do
|
|
78
|
+
returns(
|
|
79
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource::TaggedSymbol
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
attr_accessor :credit_block_source
|
|
83
|
+
|
|
73
84
|
sig { returns(T.nilable(Time)) }
|
|
74
85
|
attr_accessor :effective_date
|
|
75
86
|
|
|
@@ -105,11 +116,34 @@ module Orb
|
|
|
105
116
|
end
|
|
106
117
|
attr_accessor :status
|
|
107
118
|
|
|
119
|
+
# The credit allocation that funded a block. Extends the allocation resource
|
|
120
|
+
# serialized on prices with the catalog-item attribution of the funding price.
|
|
121
|
+
sig do
|
|
122
|
+
returns(
|
|
123
|
+
T.nilable(
|
|
124
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation
|
|
125
|
+
)
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
attr_reader :credit_allocation
|
|
129
|
+
|
|
130
|
+
sig do
|
|
131
|
+
params(
|
|
132
|
+
credit_allocation:
|
|
133
|
+
T.nilable(
|
|
134
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::OrHash
|
|
135
|
+
)
|
|
136
|
+
).void
|
|
137
|
+
end
|
|
138
|
+
attr_writer :credit_allocation
|
|
139
|
+
|
|
108
140
|
# The Credit Block resource models prepaid credits within Orb.
|
|
109
141
|
sig do
|
|
110
142
|
params(
|
|
111
143
|
id: String,
|
|
112
144
|
balance: Float,
|
|
145
|
+
credit_block_source:
|
|
146
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource::OrSymbol,
|
|
113
147
|
effective_date: T.nilable(Time),
|
|
114
148
|
expiry_date: T.nilable(Time),
|
|
115
149
|
filters:
|
|
@@ -120,12 +154,21 @@ module Orb
|
|
|
120
154
|
metadata: T::Hash[Symbol, String],
|
|
121
155
|
per_unit_cost_basis: T.nilable(String),
|
|
122
156
|
status:
|
|
123
|
-
Orb::Models::CreditBlockListInvoicesResponse::Block::Status::OrSymbol
|
|
157
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::Status::OrSymbol,
|
|
158
|
+
credit_allocation:
|
|
159
|
+
T.nilable(
|
|
160
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::OrHash
|
|
161
|
+
)
|
|
124
162
|
).returns(T.attached_class)
|
|
125
163
|
end
|
|
126
164
|
def self.new(
|
|
127
165
|
id:,
|
|
128
166
|
balance:,
|
|
167
|
+
# How this credit block was created: `allocation` (a subscription's recurring
|
|
168
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up), or
|
|
169
|
+
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
170
|
+
# off another block).
|
|
171
|
+
credit_block_source:,
|
|
129
172
|
effective_date:,
|
|
130
173
|
expiry_date:,
|
|
131
174
|
filters:,
|
|
@@ -136,7 +179,10 @@ module Orb
|
|
|
136
179
|
# `null`.
|
|
137
180
|
metadata:,
|
|
138
181
|
per_unit_cost_basis:,
|
|
139
|
-
status
|
|
182
|
+
status:,
|
|
183
|
+
# The credit allocation that funded a block. Extends the allocation resource
|
|
184
|
+
# serialized on prices with the catalog-item attribution of the funding price.
|
|
185
|
+
credit_allocation: nil
|
|
140
186
|
)
|
|
141
187
|
end
|
|
142
188
|
|
|
@@ -145,6 +191,8 @@ module Orb
|
|
|
145
191
|
{
|
|
146
192
|
id: String,
|
|
147
193
|
balance: Float,
|
|
194
|
+
credit_block_source:
|
|
195
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource::TaggedSymbol,
|
|
148
196
|
effective_date: T.nilable(Time),
|
|
149
197
|
expiry_date: T.nilable(Time),
|
|
150
198
|
filters:
|
|
@@ -155,13 +203,60 @@ module Orb
|
|
|
155
203
|
metadata: T::Hash[Symbol, String],
|
|
156
204
|
per_unit_cost_basis: T.nilable(String),
|
|
157
205
|
status:
|
|
158
|
-
Orb::Models::CreditBlockListInvoicesResponse::Block::Status::TaggedSymbol
|
|
206
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::Status::TaggedSymbol,
|
|
207
|
+
credit_allocation:
|
|
208
|
+
T.nilable(
|
|
209
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation
|
|
210
|
+
)
|
|
159
211
|
}
|
|
160
212
|
)
|
|
161
213
|
end
|
|
162
214
|
def to_hash
|
|
163
215
|
end
|
|
164
216
|
|
|
217
|
+
# How this credit block was created: `allocation` (a subscription's recurring
|
|
218
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up), or
|
|
219
|
+
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
220
|
+
# off another block).
|
|
221
|
+
module CreditBlockSource
|
|
222
|
+
extend Orb::Internal::Type::Enum
|
|
223
|
+
|
|
224
|
+
TaggedSymbol =
|
|
225
|
+
T.type_alias do
|
|
226
|
+
T.all(
|
|
227
|
+
Symbol,
|
|
228
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource
|
|
229
|
+
)
|
|
230
|
+
end
|
|
231
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
232
|
+
|
|
233
|
+
ALLOCATION =
|
|
234
|
+
T.let(
|
|
235
|
+
:allocation,
|
|
236
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource::TaggedSymbol
|
|
237
|
+
)
|
|
238
|
+
TOP_UP =
|
|
239
|
+
T.let(
|
|
240
|
+
:top_up,
|
|
241
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource::TaggedSymbol
|
|
242
|
+
)
|
|
243
|
+
MANUAL =
|
|
244
|
+
T.let(
|
|
245
|
+
:manual,
|
|
246
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource::TaggedSymbol
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
sig do
|
|
250
|
+
override.returns(
|
|
251
|
+
T::Array[
|
|
252
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditBlockSource::TaggedSymbol
|
|
253
|
+
]
|
|
254
|
+
)
|
|
255
|
+
end
|
|
256
|
+
def self.values
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
165
260
|
class Filter < Orb::Internal::Type::BaseModel
|
|
166
261
|
OrHash =
|
|
167
262
|
T.type_alias do
|
|
@@ -343,6 +438,254 @@ module Orb
|
|
|
343
438
|
def self.values
|
|
344
439
|
end
|
|
345
440
|
end
|
|
441
|
+
|
|
442
|
+
class CreditAllocation < Orb::Internal::Type::BaseModel
|
|
443
|
+
OrHash =
|
|
444
|
+
T.type_alias do
|
|
445
|
+
T.any(
|
|
446
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation,
|
|
447
|
+
Orb::Internal::AnyHash
|
|
448
|
+
)
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
sig { returns(T::Boolean) }
|
|
452
|
+
attr_accessor :allows_rollover
|
|
453
|
+
|
|
454
|
+
sig { returns(String) }
|
|
455
|
+
attr_accessor :currency
|
|
456
|
+
|
|
457
|
+
sig { returns(T.nilable(Orb::CustomExpiration)) }
|
|
458
|
+
attr_reader :custom_expiration
|
|
459
|
+
|
|
460
|
+
sig do
|
|
461
|
+
params(
|
|
462
|
+
custom_expiration: T.nilable(Orb::CustomExpiration::OrHash)
|
|
463
|
+
).void
|
|
464
|
+
end
|
|
465
|
+
attr_writer :custom_expiration
|
|
466
|
+
|
|
467
|
+
# The ID of the catalog item this block was allocated from, derived from the
|
|
468
|
+
# allocation's price.
|
|
469
|
+
sig { returns(String) }
|
|
470
|
+
attr_accessor :item_id
|
|
471
|
+
|
|
472
|
+
sig do
|
|
473
|
+
returns(
|
|
474
|
+
T.nilable(
|
|
475
|
+
T::Array[
|
|
476
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter
|
|
477
|
+
]
|
|
478
|
+
)
|
|
479
|
+
)
|
|
480
|
+
end
|
|
481
|
+
attr_reader :filters
|
|
482
|
+
|
|
483
|
+
sig do
|
|
484
|
+
params(
|
|
485
|
+
filters:
|
|
486
|
+
T::Array[
|
|
487
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::OrHash
|
|
488
|
+
]
|
|
489
|
+
).void
|
|
490
|
+
end
|
|
491
|
+
attr_writer :filters
|
|
492
|
+
|
|
493
|
+
sig { returns(T.nilable(String)) }
|
|
494
|
+
attr_accessor :license_type_id
|
|
495
|
+
|
|
496
|
+
# The credit allocation that funded a block. Extends the allocation resource
|
|
497
|
+
# serialized on prices with the catalog-item attribution of the funding price.
|
|
498
|
+
sig do
|
|
499
|
+
params(
|
|
500
|
+
allows_rollover: T::Boolean,
|
|
501
|
+
currency: String,
|
|
502
|
+
custom_expiration: T.nilable(Orb::CustomExpiration::OrHash),
|
|
503
|
+
item_id: String,
|
|
504
|
+
filters:
|
|
505
|
+
T::Array[
|
|
506
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::OrHash
|
|
507
|
+
],
|
|
508
|
+
license_type_id: T.nilable(String)
|
|
509
|
+
).returns(T.attached_class)
|
|
510
|
+
end
|
|
511
|
+
def self.new(
|
|
512
|
+
allows_rollover:,
|
|
513
|
+
currency:,
|
|
514
|
+
custom_expiration:,
|
|
515
|
+
# The ID of the catalog item this block was allocated from, derived from the
|
|
516
|
+
# allocation's price.
|
|
517
|
+
item_id:,
|
|
518
|
+
filters: nil,
|
|
519
|
+
license_type_id: nil
|
|
520
|
+
)
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
sig do
|
|
524
|
+
override.returns(
|
|
525
|
+
{
|
|
526
|
+
allows_rollover: T::Boolean,
|
|
527
|
+
currency: String,
|
|
528
|
+
custom_expiration: T.nilable(Orb::CustomExpiration),
|
|
529
|
+
item_id: String,
|
|
530
|
+
filters:
|
|
531
|
+
T::Array[
|
|
532
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter
|
|
533
|
+
],
|
|
534
|
+
license_type_id: T.nilable(String)
|
|
535
|
+
}
|
|
536
|
+
)
|
|
537
|
+
end
|
|
538
|
+
def to_hash
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
542
|
+
OrHash =
|
|
543
|
+
T.type_alias do
|
|
544
|
+
T.any(
|
|
545
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter,
|
|
546
|
+
Orb::Internal::AnyHash
|
|
547
|
+
)
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# The property of the price to filter on.
|
|
551
|
+
sig do
|
|
552
|
+
returns(
|
|
553
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol
|
|
554
|
+
)
|
|
555
|
+
end
|
|
556
|
+
attr_accessor :field
|
|
557
|
+
|
|
558
|
+
# Should prices that match the filter be included or excluded.
|
|
559
|
+
sig do
|
|
560
|
+
returns(
|
|
561
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Operator::TaggedSymbol
|
|
562
|
+
)
|
|
563
|
+
end
|
|
564
|
+
attr_accessor :operator
|
|
565
|
+
|
|
566
|
+
# The IDs or values that match this filter.
|
|
567
|
+
sig { returns(T::Array[String]) }
|
|
568
|
+
attr_accessor :values
|
|
569
|
+
|
|
570
|
+
sig do
|
|
571
|
+
params(
|
|
572
|
+
field:
|
|
573
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::OrSymbol,
|
|
574
|
+
operator:
|
|
575
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Operator::OrSymbol,
|
|
576
|
+
values: T::Array[String]
|
|
577
|
+
).returns(T.attached_class)
|
|
578
|
+
end
|
|
579
|
+
def self.new(
|
|
580
|
+
# The property of the price to filter on.
|
|
581
|
+
field:,
|
|
582
|
+
# Should prices that match the filter be included or excluded.
|
|
583
|
+
operator:,
|
|
584
|
+
# The IDs or values that match this filter.
|
|
585
|
+
values:
|
|
586
|
+
)
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
sig do
|
|
590
|
+
override.returns(
|
|
591
|
+
{
|
|
592
|
+
field:
|
|
593
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol,
|
|
594
|
+
operator:
|
|
595
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Operator::TaggedSymbol,
|
|
596
|
+
values: T::Array[String]
|
|
597
|
+
}
|
|
598
|
+
)
|
|
599
|
+
end
|
|
600
|
+
def to_hash
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# The property of the price to filter on.
|
|
604
|
+
module Field
|
|
605
|
+
extend Orb::Internal::Type::Enum
|
|
606
|
+
|
|
607
|
+
TaggedSymbol =
|
|
608
|
+
T.type_alias do
|
|
609
|
+
T.all(
|
|
610
|
+
Symbol,
|
|
611
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field
|
|
612
|
+
)
|
|
613
|
+
end
|
|
614
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
615
|
+
|
|
616
|
+
PRICE_ID =
|
|
617
|
+
T.let(
|
|
618
|
+
:price_id,
|
|
619
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol
|
|
620
|
+
)
|
|
621
|
+
ITEM_ID =
|
|
622
|
+
T.let(
|
|
623
|
+
:item_id,
|
|
624
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol
|
|
625
|
+
)
|
|
626
|
+
PRICE_TYPE =
|
|
627
|
+
T.let(
|
|
628
|
+
:price_type,
|
|
629
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol
|
|
630
|
+
)
|
|
631
|
+
CURRENCY =
|
|
632
|
+
T.let(
|
|
633
|
+
:currency,
|
|
634
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol
|
|
635
|
+
)
|
|
636
|
+
PRICING_UNIT_ID =
|
|
637
|
+
T.let(
|
|
638
|
+
:pricing_unit_id,
|
|
639
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol
|
|
640
|
+
)
|
|
641
|
+
|
|
642
|
+
sig do
|
|
643
|
+
override.returns(
|
|
644
|
+
T::Array[
|
|
645
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Field::TaggedSymbol
|
|
646
|
+
]
|
|
647
|
+
)
|
|
648
|
+
end
|
|
649
|
+
def self.values
|
|
650
|
+
end
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# Should prices that match the filter be included or excluded.
|
|
654
|
+
module Operator
|
|
655
|
+
extend Orb::Internal::Type::Enum
|
|
656
|
+
|
|
657
|
+
TaggedSymbol =
|
|
658
|
+
T.type_alias do
|
|
659
|
+
T.all(
|
|
660
|
+
Symbol,
|
|
661
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Operator
|
|
662
|
+
)
|
|
663
|
+
end
|
|
664
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
665
|
+
|
|
666
|
+
INCLUDES =
|
|
667
|
+
T.let(
|
|
668
|
+
:includes,
|
|
669
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Operator::TaggedSymbol
|
|
670
|
+
)
|
|
671
|
+
EXCLUDES =
|
|
672
|
+
T.let(
|
|
673
|
+
:excludes,
|
|
674
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Operator::TaggedSymbol
|
|
675
|
+
)
|
|
676
|
+
|
|
677
|
+
sig do
|
|
678
|
+
override.returns(
|
|
679
|
+
T::Array[
|
|
680
|
+
Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::Operator::TaggedSymbol
|
|
681
|
+
]
|
|
682
|
+
)
|
|
683
|
+
end
|
|
684
|
+
def self.values
|
|
685
|
+
end
|
|
686
|
+
end
|
|
687
|
+
end
|
|
688
|
+
end
|
|
346
689
|
end
|
|
347
690
|
|
|
348
691
|
class Invoice < Orb::Internal::Type::BaseModel
|