orb-billing 1.11.2 → 1.13.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 +123 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +84 -0
- data/lib/orb/errors.rb +25 -11
- data/lib/orb/file_part.rb +10 -7
- data/lib/orb/internal/page.rb +1 -1
- data/lib/orb/internal/transport/base_client.rb +18 -8
- data/lib/orb/internal/transport/pooled_net_requester.rb +43 -34
- data/lib/orb/internal/type/base_page.rb +1 -1
- data/lib/orb/internal/type/file_input.rb +7 -4
- data/lib/orb/internal/util.rb +47 -10
- data/lib/orb/models/alert.rb +23 -1
- data/lib/orb/models/allocation.rb +69 -1
- data/lib/orb/models/amount_discount.rb +59 -3
- data/lib/orb/models/amount_discount_interval.rb +59 -3
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +2898 -44
- data/lib/orb/models/beta_create_plan_version_params.rb +2870 -44
- data/lib/orb/models/billable_metric.rb +10 -1
- data/lib/orb/models/bulk_config.rb +2 -0
- data/lib/orb/models/bulk_tier.rb +2 -0
- data/lib/orb/models/changed_subscription_resources.rb +1030 -3
- data/lib/orb/models/credit_block_delete_params.rb +14 -0
- data/lib/orb/models/credit_block_list_invoices_params.rb +14 -0
- data/lib/orb/models/credit_block_list_invoices_response.rb +217 -0
- data/lib/orb/models/credit_block_retrieve_params.rb +14 -0
- data/lib/orb/models/credit_block_retrieve_response.rb +148 -0
- data/lib/orb/models/customer.rb +84 -1
- data/lib/orb/models/customer_create_params.rb +175 -5
- data/lib/orb/models/customer_tax_id.rb +2 -0
- data/lib/orb/models/customer_update_by_external_id_params.rb +180 -5
- data/lib/orb/models/customer_update_params.rb +175 -5
- data/lib/orb/models/customers/balance_transaction_create_response.rb +1 -0
- data/lib/orb/models/customers/balance_transaction_list_response.rb +1 -0
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +29 -1
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +83 -1
- data/lib/orb/models/customers/credit_list_params.rb +29 -1
- data/lib/orb/models/customers/credit_list_response.rb +82 -1
- data/lib/orb/models/customers/credits/affected_block.rb +63 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +125 -9
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +124 -9
- data/lib/orb/models/invoice.rb +20 -56
- data/lib/orb/models/invoice_create_params.rb +44 -9
- data/lib/orb/models/invoice_delete_line_item_params.rb +20 -0
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +20 -56
- data/lib/orb/models/invoice_issue_summary_params.rb +29 -0
- data/lib/orb/models/invoice_issue_summary_response.rb +760 -0
- data/lib/orb/models/invoice_line_item_create_params.rb +25 -10
- data/lib/orb/models/invoice_line_item_create_response.rb +5 -55
- data/lib/orb/models/invoice_list_summary_params.rb +180 -0
- data/lib/orb/models/invoice_list_summary_response.rb +759 -0
- data/lib/orb/models/invoice_update_params.rb +65 -1
- data/lib/orb/models/item.rb +30 -7
- data/lib/orb/models/item_slim.rb +8 -2
- data/lib/orb/models/item_update_params.rb +12 -2
- data/lib/orb/models/license_create_params.rb +57 -0
- data/lib/orb/models/license_create_response.rb +63 -0
- data/lib/orb/models/license_deactivate_params.rb +26 -0
- data/lib/orb/models/license_deactivate_response.rb +63 -0
- data/lib/orb/models/license_list_params.rb +72 -0
- data/lib/orb/models/license_list_response.rb +63 -0
- data/lib/orb/models/license_retrieve_by_external_id_params.rb +30 -0
- data/lib/orb/models/license_retrieve_by_external_id_response.rb +63 -0
- data/lib/orb/models/license_retrieve_params.rb +14 -0
- data/lib/orb/models/license_retrieve_response.rb +63 -0
- data/lib/orb/models/license_type_create_params.rb +34 -0
- data/lib/orb/models/license_type_create_response.rb +41 -0
- data/lib/orb/models/license_type_list_params.rb +34 -0
- data/lib/orb/models/license_type_list_response.rb +41 -0
- data/lib/orb/models/license_type_retrieve_params.rb +14 -0
- data/lib/orb/models/license_type_retrieve_response.rb +41 -0
- data/lib/orb/models/licenses/external_license_get_usage_params.rb +78 -0
- data/lib/orb/models/licenses/external_license_get_usage_response.rb +135 -0
- data/lib/orb/models/licenses/usage_get_all_usage_params.rb +78 -0
- data/lib/orb/models/licenses/usage_get_all_usage_response.rb +134 -0
- data/lib/orb/models/licenses/usage_get_usage_params.rb +62 -0
- data/lib/orb/models/licenses/usage_get_usage_response.rb +134 -0
- data/lib/orb/models/matrix_config.rb +4 -2
- data/lib/orb/models/matrix_sub_line_item.rb +9 -1
- data/lib/orb/models/matrix_value.rb +3 -6
- data/lib/orb/models/matrix_with_allocation_config.rb +36 -8
- data/lib/orb/models/maximum.rb +59 -3
- data/lib/orb/models/maximum_interval.rb +59 -3
- data/lib/orb/models/minimum.rb +59 -3
- data/lib/orb/models/minimum_interval.rb +59 -3
- data/lib/orb/models/monetary_amount_discount_adjustment.rb +62 -6
- data/lib/orb/models/monetary_maximum_adjustment.rb +62 -6
- data/lib/orb/models/monetary_minimum_adjustment.rb +62 -6
- data/lib/orb/models/monetary_percentage_discount_adjustment.rb +62 -6
- data/lib/orb/models/monetary_usage_discount_adjustment.rb +62 -6
- data/lib/orb/models/new_allocation_price.rb +91 -1
- data/lib/orb/models/new_amount_discount.rb +59 -3
- data/lib/orb/models/new_avalara_tax_configuration.rb +15 -1
- data/lib/orb/models/new_floating_bulk_price.rb +15 -19
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +54 -21
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +69 -21
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +48 -21
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +73 -21
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +65 -21
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +118 -21
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +48 -21
- data/lib/orb/models/new_floating_matrix_price.rb +15 -19
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +15 -19
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +70 -21
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +72 -21
- data/lib/orb/models/{new_floating_bps_price.rb → new_floating_minimum_composite_price.rb} +54 -38
- data/lib/orb/models/new_floating_package_price.rb +15 -19
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +41 -19
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +96 -15
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +94 -15
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +64 -19
- data/lib/orb/models/new_floating_tiered_package_price.rb +64 -19
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +67 -19
- data/lib/orb/models/new_floating_tiered_price.rb +15 -19
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +75 -15
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +57 -19
- data/lib/orb/models/new_floating_unit_price.rb +15 -19
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +37 -19
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +30 -19
- data/lib/orb/models/new_maximum.rb +59 -3
- data/lib/orb/models/new_minimum.rb +59 -3
- data/lib/orb/models/new_percentage_discount.rb +59 -3
- data/lib/orb/models/new_plan_bulk_price.rb +15 -19
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +53 -21
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +69 -21
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +47 -21
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +73 -21
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +64 -21
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +118 -21
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +48 -21
- data/lib/orb/models/new_plan_matrix_price.rb +15 -19
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +15 -19
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +70 -21
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +72 -21
- data/lib/orb/models/{new_plan_bulk_bps_price.rb → new_plan_minimum_composite_price.rb} +54 -38
- data/lib/orb/models/new_plan_package_price.rb +15 -19
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +41 -19
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +96 -15
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +90 -15
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +64 -19
- data/lib/orb/models/new_plan_tiered_package_price.rb +63 -19
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +67 -19
- data/lib/orb/models/new_plan_tiered_price.rb +15 -19
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +74 -15
- data/lib/orb/models/new_plan_unit_price.rb +15 -19
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +37 -19
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +29 -19
- data/lib/orb/models/new_sphere_configuration.rb +14 -1
- data/lib/orb/models/new_subscription_bulk_price.rb +15 -19
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +54 -21
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +69 -21
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +48 -21
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +73 -21
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +65 -21
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +118 -21
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +48 -21
- data/lib/orb/models/new_subscription_matrix_price.rb +15 -19
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +15 -19
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +70 -21
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +72 -21
- data/lib/orb/models/{new_subscription_bulk_bps_price.rb → new_subscription_minimum_composite_price.rb} +55 -36
- data/lib/orb/models/new_subscription_package_price.rb +15 -19
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +41 -19
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +96 -15
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +94 -15
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +64 -19
- data/lib/orb/models/new_subscription_tiered_package_price.rb +64 -19
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +67 -19
- data/lib/orb/models/new_subscription_tiered_price.rb +15 -19
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +75 -15
- data/lib/orb/models/new_subscription_unit_price.rb +15 -19
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +37 -19
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +30 -19
- data/lib/orb/models/new_tax_jar_configuration.rb +14 -1
- data/lib/orb/models/new_usage_discount.rb +59 -3
- data/lib/orb/models/package_config.rb +2 -0
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/percentage_discount.rb +59 -3
- data/lib/orb/models/percentage_discount_interval.rb +59 -3
- data/lib/orb/models/plan.rb +17 -6
- data/lib/orb/models/plan_create_params.rb +1417 -22
- data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +62 -6
- data/lib/orb/models/plan_phase_maximum_adjustment.rb +62 -6
- data/lib/orb/models/plan_phase_minimum_adjustment.rb +62 -6
- data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +62 -6
- data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +62 -6
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/plans/migration_cancel_params.rb +22 -0
- data/lib/orb/models/plans/migration_cancel_response.rb +76 -0
- data/lib/orb/models/plans/migration_list_params.rb +36 -0
- data/lib/orb/models/plans/migration_list_response.rb +76 -0
- data/lib/orb/models/plans/migration_retrieve_params.rb +22 -0
- data/lib/orb/models/plans/migration_retrieve_response.rb +76 -0
- data/lib/orb/models/price.rb +6360 -986
- data/lib/orb/models/price_create_params.rb +1272 -111
- data/lib/orb/models/price_evaluate_multiple_params.rb +1160 -25
- data/lib/orb/models/price_evaluate_params.rb +12 -1
- data/lib/orb/models/price_evaluate_preview_events_params.rb +1169 -25
- data/lib/orb/models/price_interval.rb +24 -3
- data/lib/orb/models/subscription_change_apply_params.rb +42 -3
- data/lib/orb/models/subscription_change_apply_response.rb +42 -1
- data/lib/orb/models/subscription_change_cancel_response.rb +42 -1
- data/lib/orb/models/subscription_change_list_params.rb +66 -0
- data/lib/orb/models/subscription_change_list_response.rb +69 -0
- data/lib/orb/models/subscription_change_retrieve_response.rb +42 -1
- data/lib/orb/models/subscription_create_params.rb +2899 -58
- data/lib/orb/models/subscription_list_params.rb +15 -1
- data/lib/orb/models/subscription_price_intervals_params.rb +1237 -51
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +2924 -58
- data/lib/orb/models/tier.rb +8 -2
- data/lib/orb/models/tier_sub_line_item.rb +26 -3
- data/lib/orb/models/tiered_config.rb +11 -1
- data/lib/orb/models/trial_discount.rb +59 -3
- data/lib/orb/models/unit_config.rb +11 -1
- data/lib/orb/models/usage_discount.rb +59 -3
- data/lib/orb/models/usage_discount_interval.rb +59 -3
- data/lib/orb/models.rb +38 -36
- data/lib/orb/resources/alerts.rb +12 -4
- data/lib/orb/resources/beta/external_plan_id.rb +4 -9
- data/lib/orb/resources/beta.rb +8 -9
- data/lib/orb/resources/coupons/subscriptions.rb +7 -1
- data/lib/orb/resources/coupons.rb +12 -1
- data/lib/orb/resources/credit_blocks.rb +100 -0
- data/lib/orb/resources/credit_notes.rb +4 -1
- data/lib/orb/resources/customers/balance_transactions.rb +20 -1
- data/lib/orb/resources/customers/costs.rb +22 -2
- data/lib/orb/resources/customers/credits/ledger.rb +30 -16
- data/lib/orb/resources/customers/credits/top_ups.rb +6 -2
- data/lib/orb/resources/customers/credits.rb +48 -4
- data/lib/orb/resources/customers.rb +76 -7
- data/lib/orb/resources/dimensional_price_groups.rb +3 -2
- data/lib/orb/resources/events/backfills.rb +10 -3
- data/lib/orb/resources/events/volume.rb +5 -1
- data/lib/orb/resources/events.rb +13 -3
- data/lib/orb/resources/invoice_line_items.rb +21 -3
- data/lib/orb/resources/invoices.rb +187 -15
- data/lib/orb/resources/items.rb +5 -1
- data/lib/orb/resources/license_types.rb +104 -0
- data/lib/orb/resources/licenses/external_licenses.rb +59 -0
- data/lib/orb/resources/licenses/usage.rb +95 -0
- data/lib/orb/resources/licenses.rb +173 -0
- data/lib/orb/resources/metrics.rb +5 -1
- data/lib/orb/resources/plans/external_plan_id.rb +4 -0
- data/lib/orb/resources/plans/migrations.rb +104 -0
- data/lib/orb/resources/plans.rb +18 -1
- data/lib/orb/resources/prices/external_price_id.rb +12 -2
- data/lib/orb/resources/prices.rb +67 -36
- data/lib/orb/resources/subscription_changes.rb +50 -2
- data/lib/orb/resources/subscriptions.rb +21 -7
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +51 -18
- data/manifest.yaml +2 -0
- data/rbi/orb/client.rbi +81 -0
- data/rbi/orb/errors.rbi +29 -2
- data/rbi/orb/file_part.rbi +1 -1
- data/rbi/orb/internal/transport/base_client.rbi +9 -5
- data/rbi/orb/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/orb/internal/type/base_model.rbi +5 -4
- data/rbi/orb/internal/type/base_page.rbi +1 -1
- data/rbi/orb/internal/util.rbi +20 -2
- data/rbi/orb/models/alert.rbi +40 -3
- data/rbi/orb/models/allocation.rbi +123 -3
- data/rbi/orb/models/amount_discount.rbi +112 -3
- data/rbi/orb/models/amount_discount_interval.rbi +133 -3
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +5192 -396
- data/rbi/orb/models/beta_create_plan_version_params.rbi +5182 -396
- data/rbi/orb/models/billable_metric.rbi +11 -3
- data/rbi/orb/models/bulk_config.rbi +1 -0
- data/rbi/orb/models/bulk_tier.rbi +1 -0
- data/rbi/orb/models/changed_subscription_resources.rbi +1690 -3
- data/rbi/orb/models/credit_block_delete_params.rbi +27 -0
- data/rbi/orb/models/credit_block_list_invoices_params.rbi +27 -0
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +465 -0
- data/rbi/orb/models/credit_block_retrieve_params.rbi +27 -0
- data/rbi/orb/models/credit_block_retrieve_response.rbi +280 -0
- data/rbi/orb/models/customer.rbi +188 -0
- data/rbi/orb/models/customer_create_params.rbi +356 -6
- data/rbi/orb/models/customer_tax_id.rbi +2 -0
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +364 -6
- data/rbi/orb/models/customer_update_params.rbi +356 -6
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +5 -0
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +5 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +24 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +161 -0
- data/rbi/orb/models/customers/credit_list_params.rbi +24 -0
- data/rbi/orb/models/customers/credit_list_response.rbi +155 -0
- data/rbi/orb/models/customers/credits/affected_block.rbi +160 -1
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +235 -11
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +235 -11
- data/rbi/orb/models/invoice.rbi +29 -64
- data/rbi/orb/models/invoice_create_params.rbi +54 -10
- data/rbi/orb/models/invoice_delete_line_item_params.rbi +35 -0
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +29 -64
- data/rbi/orb/models/invoice_issue_summary_params.rbi +51 -0
- data/rbi/orb/models/invoice_issue_summary_response.rbi +1264 -0
- data/rbi/orb/models/invoice_line_item_create_params.rbi +32 -10
- data/rbi/orb/models/invoice_line_item_create_response.rbi +12 -64
- data/rbi/orb/models/invoice_list_summary_params.rbi +226 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +1259 -0
- data/rbi/orb/models/invoice_update_params.rbi +81 -0
- data/rbi/orb/models/item.rbi +42 -4
- data/rbi/orb/models/item_slim.rbi +10 -1
- data/rbi/orb/models/item_update_params.rbi +21 -1
- data/rbi/orb/models/license_create_params.rbi +73 -0
- data/rbi/orb/models/license_create_response.rbi +100 -0
- data/rbi/orb/models/license_deactivate_params.rbi +42 -0
- data/rbi/orb/models/license_deactivate_response.rbi +105 -0
- data/rbi/orb/models/license_list_params.rbi +98 -0
- data/rbi/orb/models/license_list_response.rbi +97 -0
- data/rbi/orb/models/license_retrieve_by_external_id_params.rbi +51 -0
- data/rbi/orb/models/license_retrieve_by_external_id_response.rbi +114 -0
- data/rbi/orb/models/license_retrieve_params.rbi +27 -0
- data/rbi/orb/models/license_retrieve_response.rbi +102 -0
- data/rbi/orb/models/license_type_create_params.rbi +53 -0
- data/rbi/orb/models/license_type_create_response.rbi +50 -0
- data/rbi/orb/models/license_type_list_params.rbi +56 -0
- data/rbi/orb/models/license_type_list_response.rbi +50 -0
- data/rbi/orb/models/license_type_retrieve_params.rbi +27 -0
- data/rbi/orb/models/license_type_retrieve_response.rbi +53 -0
- data/rbi/orb/models/licenses/external_license_get_usage_params.rbi +105 -0
- data/rbi/orb/models/licenses/external_license_get_usage_response.rbi +192 -0
- data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +102 -0
- data/rbi/orb/models/licenses/usage_get_all_usage_response.rbi +188 -0
- data/rbi/orb/models/licenses/usage_get_usage_params.rbi +86 -0
- data/rbi/orb/models/licenses/usage_get_usage_response.rbi +186 -0
- data/rbi/orb/models/matrix_config.rbi +3 -2
- data/rbi/orb/models/matrix_sub_line_item.rbi +11 -3
- data/rbi/orb/models/matrix_value.rbi +3 -6
- data/rbi/orb/models/matrix_with_allocation_config.rbi +61 -10
- data/rbi/orb/models/maximum.rbi +96 -3
- data/rbi/orb/models/maximum_interval.rbi +115 -3
- data/rbi/orb/models/minimum.rbi +96 -3
- data/rbi/orb/models/minimum_interval.rbi +115 -3
- data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +156 -7
- data/rbi/orb/models/monetary_maximum_adjustment.rbi +146 -7
- data/rbi/orb/models/monetary_minimum_adjustment.rbi +146 -7
- data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +159 -7
- data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +153 -7
- data/rbi/orb/models/new_allocation_price.rbi +150 -3
- data/rbi/orb/models/new_amount_discount.rbi +123 -3
- data/rbi/orb/models/new_avalara_tax_configuration.rbi +15 -1
- data/rbi/orb/models/new_floating_bulk_price.rbi +13 -21
- data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +118 -27
- data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +137 -27
- data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +81 -27
- data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +131 -27
- data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +121 -27
- data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +202 -27
- data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +79 -27
- data/rbi/orb/models/new_floating_matrix_price.rbi +13 -23
- data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +13 -23
- data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +139 -27
- data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +129 -27
- data/rbi/orb/models/{new_floating_tiered_bps_price.rbi → new_floating_minimum_composite_price.rbi} +106 -49
- data/rbi/orb/models/new_floating_package_price.rbi +13 -23
- data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +57 -15
- data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +175 -14
- data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +151 -14
- data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +110 -14
- data/rbi/orb/models/new_floating_tiered_package_price.rbi +110 -14
- data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +116 -14
- data/rbi/orb/models/new_floating_tiered_price.rbi +13 -23
- data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +136 -14
- data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +106 -14
- data/rbi/orb/models/new_floating_unit_price.rbi +13 -21
- data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +53 -17
- data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +46 -18
- data/rbi/orb/models/new_maximum.rbi +104 -3
- data/rbi/orb/models/new_minimum.rbi +104 -3
- data/rbi/orb/models/new_percentage_discount.rbi +129 -3
- data/rbi/orb/models/new_plan_bulk_price.rbi +13 -21
- data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +118 -27
- data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +137 -27
- data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +81 -27
- data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +131 -27
- data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +119 -27
- data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +202 -27
- data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +79 -27
- data/rbi/orb/models/new_plan_matrix_price.rbi +13 -21
- data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +13 -23
- data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +139 -27
- data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +129 -27
- data/rbi/orb/models/{new_subscription_tier_with_proration_price.rbi → new_plan_minimum_composite_price.rbi} +87 -61
- data/rbi/orb/models/new_plan_package_price.rbi +13 -21
- data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +57 -15
- data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +175 -14
- data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +151 -14
- data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +110 -14
- data/rbi/orb/models/new_plan_tiered_package_price.rbi +109 -15
- data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +116 -14
- data/rbi/orb/models/new_plan_tiered_price.rbi +13 -21
- data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +136 -14
- data/rbi/orb/models/new_plan_unit_price.rbi +13 -21
- data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +51 -17
- data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +46 -18
- data/rbi/orb/models/new_sphere_configuration.rbi +16 -3
- data/rbi/orb/models/new_subscription_bulk_price.rbi +13 -23
- data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +120 -27
- data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +137 -27
- data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +83 -27
- data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +131 -27
- data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +123 -27
- data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +202 -27
- data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +79 -27
- data/rbi/orb/models/new_subscription_matrix_price.rbi +13 -23
- data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +13 -23
- data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +139 -27
- data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +129 -27
- data/rbi/orb/models/{new_subscription_tiered_bps_price.rbi → new_subscription_minimum_composite_price.rbi} +105 -51
- data/rbi/orb/models/new_subscription_package_price.rbi +13 -23
- data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +57 -15
- data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +175 -14
- data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +151 -14
- data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +110 -14
- data/rbi/orb/models/new_subscription_tiered_package_price.rbi +112 -14
- data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +116 -14
- data/rbi/orb/models/new_subscription_tiered_price.rbi +13 -23
- data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +138 -14
- data/rbi/orb/models/new_subscription_unit_price.rbi +13 -23
- data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +53 -17
- data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +48 -18
- data/rbi/orb/models/new_tax_jar_configuration.rbi +16 -3
- data/rbi/orb/models/new_usage_discount.rbi +115 -3
- data/rbi/orb/models/package_config.rbi +1 -0
- data/rbi/orb/models/per_price_cost.rbi +10 -8
- data/rbi/orb/models/percentage_discount.rbi +126 -3
- data/rbi/orb/models/percentage_discount_interval.rbi +142 -3
- data/rbi/orb/models/plan.rbi +20 -12
- data/rbi/orb/models/plan_create_params.rbi +2440 -47
- data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +156 -7
- data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +146 -7
- data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +146 -7
- data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +161 -7
- data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +156 -7
- data/rbi/orb/models/plan_version.rbi +10 -8
- data/rbi/orb/models/plans/migration_cancel_params.rbi +37 -0
- data/rbi/orb/models/plans/migration_cancel_response.rbi +159 -0
- data/rbi/orb/models/plans/migration_list_params.rbi +58 -0
- data/rbi/orb/models/plans/migration_list_response.rbi +158 -0
- data/rbi/orb/models/plans/migration_retrieve_params.rbi +37 -0
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +162 -0
- data/rbi/orb/models/price.rbi +12951 -1485
- data/rbi/orb/models/price_create_params.rbi +2533 -129
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +1978 -50
- data/rbi/orb/models/price_evaluate_params.rbi +10 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1978 -50
- data/rbi/orb/models/price_interval.rbi +35 -11
- data/rbi/orb/models/subscription_change_apply_params.rbi +42 -2
- data/rbi/orb/models/subscription_change_apply_response.rbi +45 -3
- data/rbi/orb/models/subscription_change_cancel_response.rbi +45 -3
- data/rbi/orb/models/subscription_change_list_params.rbi +112 -0
- data/rbi/orb/models/subscription_change_list_response.rbi +115 -0
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +45 -3
- data/rbi/orb/models/subscription_create_params.rbi +5276 -468
- data/rbi/orb/models/subscription_list_params.rbi +12 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2226 -232
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +5281 -473
- data/rbi/orb/models/tier.rbi +5 -2
- data/rbi/orb/models/tier_sub_line_item.rbi +42 -4
- data/rbi/orb/models/tiered_config.rbi +18 -3
- data/rbi/orb/models/trial_discount.rbi +104 -3
- data/rbi/orb/models/unit_config.rbi +17 -3
- data/rbi/orb/models/usage_discount.rbi +104 -3
- data/rbi/orb/models/usage_discount_interval.rbi +131 -3
- data/rbi/orb/models.rbi +41 -37
- data/rbi/orb/resources/alerts.rbi +6 -1
- data/rbi/orb/resources/beta/external_plan_id.rbi +4 -9
- data/rbi/orb/resources/beta.rbi +8 -9
- data/rbi/orb/resources/coupons/subscriptions.rbi +5 -0
- data/rbi/orb/resources/coupons.rbi +10 -0
- data/rbi/orb/resources/credit_blocks.rbi +71 -0
- data/rbi/orb/resources/credit_notes.rbi +2 -0
- data/rbi/orb/resources/customers/balance_transactions.rbi +18 -0
- data/rbi/orb/resources/customers/costs.rbi +18 -0
- data/rbi/orb/resources/customers/credits/ledger.rbi +38 -12
- data/rbi/orb/resources/customers/credits/top_ups.rbi +2 -0
- data/rbi/orb/resources/customers/credits.rbi +32 -0
- data/rbi/orb/resources/customers.rbi +112 -6
- data/rbi/orb/resources/dimensional_price_groups.rbi +1 -1
- data/rbi/orb/resources/events/backfills.rbi +8 -2
- data/rbi/orb/resources/events/volume.rbi +3 -0
- data/rbi/orb/resources/events.rbi +10 -1
- data/rbi/orb/resources/invoice_line_items.rbi +30 -4
- data/rbi/orb/resources/invoices.rbi +167 -14
- data/rbi/orb/resources/items.rbi +3 -0
- data/rbi/orb/resources/license_types.rbi +73 -0
- data/rbi/orb/resources/licenses/external_licenses.rbi +54 -0
- data/rbi/orb/resources/licenses/usage.rbi +85 -0
- data/rbi/orb/resources/licenses.rbi +124 -0
- data/rbi/orb/resources/metrics.rbi +3 -0
- data/rbi/orb/resources/plans/external_plan_id.rbi +4 -0
- data/rbi/orb/resources/plans/migrations.rbi +65 -0
- data/rbi/orb/resources/plans.rbi +15 -0
- data/rbi/orb/resources/prices/external_price_id.rbi +10 -0
- data/rbi/orb/resources/prices.rbi +122 -34
- data/rbi/orb/resources/subscription_changes.rbi +46 -1
- data/rbi/orb/resources/subscriptions.rbi +13 -1
- data/sig/orb/client.rbs +6 -0
- data/sig/orb/errors.rbs +7 -0
- data/sig/orb/file_part.rbs +1 -1
- data/sig/orb/internal/transport/base_client.rbs +2 -0
- data/sig/orb/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/orb/internal/util.rbs +10 -0
- data/sig/orb/models/alert.rbs +20 -3
- data/sig/orb/models/allocation.rbs +70 -3
- data/sig/orb/models/amount_discount.rbs +57 -4
- data/sig/orb/models/amount_discount_interval.rbs +57 -4
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1952 -22
- data/sig/orb/models/beta_create_plan_version_params.rbs +1946 -22
- data/sig/orb/models/billable_metric.rbs +8 -3
- data/sig/orb/models/changed_subscription_resources.rbs +611 -4
- data/sig/orb/models/credit_block_delete_params.rbs +15 -0
- data/sig/orb/models/credit_block_list_invoices_params.rbs +15 -0
- data/sig/orb/models/credit_block_list_invoices_response.rbs +197 -0
- data/sig/orb/models/credit_block_retrieve_params.rbs +15 -0
- data/sig/orb/models/credit_block_retrieve_response.rbs +124 -0
- data/sig/orb/models/customer.rbs +72 -0
- data/sig/orb/models/customer_create_params.rbs +151 -0
- data/sig/orb/models/customer_tax_id.rbs +2 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +151 -0
- data/sig/orb/models/customer_update_params.rbs +151 -0
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +2 -0
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +2 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +20 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +58 -0
- data/sig/orb/models/customers/credit_list_params.rbs +20 -0
- data/sig/orb/models/customers/credit_list_response.rbs +58 -0
- data/sig/orb/models/customers/credits/affected_block.rbs +63 -1
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +82 -4
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +82 -4
- data/sig/orb/models/invoice.rbs +7 -25
- data/sig/orb/models/invoice_create_params.rbs +18 -0
- data/sig/orb/models/invoice_delete_line_item_params.rbs +23 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +7 -25
- data/sig/orb/models/invoice_issue_summary_params.rbs +25 -0
- data/sig/orb/models/invoice_issue_summary_response.rbs +444 -0
- data/sig/orb/models/invoice_line_item_create_params.rbs +11 -6
- data/sig/orb/models/invoice_line_item_create_response.rbs +0 -25
- data/sig/orb/models/invoice_list_summary_params.rbs +143 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +444 -0
- data/sig/orb/models/invoice_update_params.rbs +39 -1
- data/sig/orb/models/item.rbs +12 -3
- data/sig/orb/models/item_update_params.rbs +4 -0
- data/sig/orb/models/license_create_params.rbs +46 -0
- data/sig/orb/models/license_create_response.rbs +61 -0
- data/sig/orb/models/license_deactivate_params.rbs +20 -0
- data/sig/orb/models/license_deactivate_response.rbs +61 -0
- data/sig/orb/models/license_list_params.rbs +64 -0
- data/sig/orb/models/license_list_response.rbs +61 -0
- data/sig/orb/models/license_retrieve_by_external_id_params.rbs +28 -0
- data/sig/orb/models/license_retrieve_by_external_id_response.rbs +61 -0
- data/sig/orb/models/license_retrieve_params.rbs +15 -0
- data/sig/orb/models/license_retrieve_response.rbs +61 -0
- data/sig/orb/models/license_type_create_params.rbs +28 -0
- data/sig/orb/models/license_type_create_response.rbs +18 -0
- data/sig/orb/models/license_type_list_params.rbs +30 -0
- data/sig/orb/models/license_type_list_response.rbs +18 -0
- data/sig/orb/models/license_type_retrieve_params.rbs +15 -0
- data/sig/orb/models/license_type_retrieve_response.rbs +18 -0
- data/sig/orb/models/licenses/external_license_get_usage_params.rbs +60 -0
- data/sig/orb/models/licenses/external_license_get_usage_response.rbs +99 -0
- data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +60 -0
- data/sig/orb/models/licenses/usage_get_all_usage_response.rbs +99 -0
- data/sig/orb/models/licenses/usage_get_usage_params.rbs +50 -0
- data/sig/orb/models/licenses/usage_get_usage_response.rbs +99 -0
- data/sig/orb/models/matrix_sub_line_item.rbs +8 -3
- data/sig/orb/models/matrix_with_allocation_config.rbs +27 -8
- data/sig/orb/models/maximum.rbs +57 -4
- data/sig/orb/models/maximum_interval.rbs +57 -4
- data/sig/orb/models/minimum.rbs +57 -4
- data/sig/orb/models/minimum_interval.rbs +57 -4
- data/sig/orb/models/monetary_amount_discount_adjustment.rbs +57 -4
- data/sig/orb/models/monetary_maximum_adjustment.rbs +57 -4
- data/sig/orb/models/monetary_minimum_adjustment.rbs +57 -4
- data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +57 -4
- data/sig/orb/models/monetary_usage_discount_adjustment.rbs +57 -4
- data/sig/orb/models/new_allocation_price.rbs +73 -3
- data/sig/orb/models/new_amount_discount.rbs +57 -4
- data/sig/orb/models/new_avalara_tax_configuration.rbs +5 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +5 -9
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +41 -13
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +58 -13
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +32 -13
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +48 -13
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +46 -13
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +78 -13
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +32 -13
- data/sig/orb/models/new_floating_matrix_price.rbs +5 -9
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +5 -9
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +54 -13
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +51 -13
- data/sig/orb/models/{new_floating_bulk_bps_price.rbs → new_floating_minimum_composite_price.rbs} +40 -30
- data/sig/orb/models/new_floating_package_price.rbs +5 -9
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +28 -9
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +79 -9
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +76 -11
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +39 -9
- data/sig/orb/models/new_floating_tiered_package_price.rbs +39 -9
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +50 -9
- data/sig/orb/models/new_floating_tiered_price.rbs +5 -9
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +63 -9
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +37 -9
- data/sig/orb/models/new_floating_unit_price.rbs +5 -9
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +17 -9
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +15 -9
- data/sig/orb/models/new_maximum.rbs +57 -4
- data/sig/orb/models/new_minimum.rbs +57 -4
- data/sig/orb/models/new_percentage_discount.rbs +57 -4
- data/sig/orb/models/new_plan_bulk_price.rbs +5 -9
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +41 -13
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +58 -13
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +32 -13
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +48 -13
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +46 -13
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +78 -13
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +32 -13
- data/sig/orb/models/new_plan_matrix_price.rbs +5 -9
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +5 -9
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +54 -13
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +51 -13
- data/sig/orb/models/{new_plan_tiered_bps_price.rbs → new_plan_minimum_composite_price.rbs} +40 -30
- data/sig/orb/models/new_plan_package_price.rbs +5 -9
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +28 -9
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +79 -9
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +76 -11
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +39 -9
- data/sig/orb/models/new_plan_tiered_package_price.rbs +39 -9
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +50 -9
- data/sig/orb/models/new_plan_tiered_price.rbs +5 -9
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +63 -9
- data/sig/orb/models/new_plan_unit_price.rbs +5 -9
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +17 -9
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +15 -9
- data/sig/orb/models/new_sphere_configuration.rbs +8 -3
- data/sig/orb/models/new_subscription_bulk_price.rbs +5 -9
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +41 -13
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +58 -13
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +32 -13
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +48 -13
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +46 -13
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +78 -13
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +32 -13
- data/sig/orb/models/new_subscription_matrix_price.rbs +5 -9
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +5 -9
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +54 -13
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +51 -13
- data/sig/orb/models/{new_subscription_bps_price.rbs → new_subscription_minimum_composite_price.rbs} +40 -30
- data/sig/orb/models/new_subscription_package_price.rbs +5 -9
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +28 -9
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +79 -9
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +76 -11
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +39 -9
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +39 -9
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +50 -9
- data/sig/orb/models/new_subscription_tiered_price.rbs +5 -9
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +63 -9
- data/sig/orb/models/new_subscription_unit_price.rbs +5 -9
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +17 -9
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +15 -9
- data/sig/orb/models/new_tax_jar_configuration.rbs +8 -3
- data/sig/orb/models/new_usage_discount.rbs +57 -4
- data/sig/orb/models/percentage_discount.rbs +57 -4
- data/sig/orb/models/percentage_discount_interval.rbs +57 -4
- data/sig/orb/models/plan_create_params.rbs +973 -11
- data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +57 -4
- data/sig/orb/models/plan_phase_maximum_adjustment.rbs +57 -4
- data/sig/orb/models/plan_phase_minimum_adjustment.rbs +57 -4
- data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +57 -4
- data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +57 -4
- data/sig/orb/models/plans/migration_cancel_params.rbs +25 -0
- data/sig/orb/models/plans/migration_cancel_response.rbs +62 -0
- data/sig/orb/models/plans/migration_list_params.rbs +32 -0
- data/sig/orb/models/plans/migration_list_response.rbs +62 -0
- data/sig/orb/models/plans/migration_retrieve_params.rbs +25 -0
- data/sig/orb/models/plans/migration_retrieve_response.rbs +62 -0
- data/sig/orb/models/price.rbs +4982 -934
- data/sig/orb/models/price_create_params.rbs +1029 -104
- data/sig/orb/models/price_evaluate_multiple_params.rbs +789 -10
- data/sig/orb/models/price_evaluate_params.rbs +6 -1
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +789 -10
- data/sig/orb/models/price_interval.rbs +13 -3
- data/sig/orb/models/subscription_change_apply_params.rbs +24 -1
- data/sig/orb/models/subscription_change_apply_response.rbs +28 -3
- data/sig/orb/models/subscription_change_cancel_response.rbs +28 -3
- data/sig/orb/models/subscription_change_list_params.rbs +60 -0
- data/sig/orb/models/subscription_change_list_response.rbs +57 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +28 -3
- data/sig/orb/models/subscription_create_params.rbs +1964 -30
- data/sig/orb/models/subscription_list_params.rbs +10 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +827 -23
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1964 -30
- data/sig/orb/models/tier_sub_line_item.rbs +27 -4
- data/sig/orb/models/tiered_config.rbs +7 -3
- data/sig/orb/models/trial_discount.rbs +57 -4
- data/sig/orb/models/unit_config.rbs +7 -3
- data/sig/orb/models/usage_discount.rbs +57 -4
- data/sig/orb/models/usage_discount_interval.rbs +57 -4
- data/sig/orb/models.rbs +38 -36
- data/sig/orb/resources/credit_blocks.rbs +19 -0
- data/sig/orb/resources/customers/credits/ledger.rbs +2 -0
- data/sig/orb/resources/customers/credits.rbs +8 -0
- data/sig/orb/resources/customers.rbs +6 -0
- data/sig/orb/resources/invoice_line_items.rbs +2 -1
- data/sig/orb/resources/invoices.rbs +41 -0
- data/sig/orb/resources/license_types.rbs +24 -0
- data/sig/orb/resources/licenses/external_licenses.rbs +21 -0
- data/sig/orb/resources/licenses/usage.rbs +30 -0
- data/sig/orb/resources/licenses.rbs +48 -0
- data/sig/orb/resources/plans/migrations.rbs +28 -0
- data/sig/orb/resources/plans.rbs +2 -0
- data/sig/orb/resources/prices.rbs +29 -24
- data/sig/orb/resources/subscription_changes.rbs +13 -0
- data/sig/orb/resources/subscriptions.rbs +3 -0
- metadata +163 -56
- data/lib/orb/models/bps_config.rb +0 -24
- data/lib/orb/models/bps_tier.rb +0 -40
- data/lib/orb/models/bulk_bps_config.rb +0 -20
- data/lib/orb/models/bulk_bps_tier.rb +0 -32
- data/lib/orb/models/new_floating_bulk_bps_price.rb +0 -197
- data/lib/orb/models/new_floating_tiered_bps_price.rb +0 -197
- data/lib/orb/models/new_plan_bps_price.rb +0 -205
- data/lib/orb/models/new_plan_tier_with_proration_price.rb +0 -207
- data/lib/orb/models/new_plan_tiered_bps_price.rb +0 -207
- data/lib/orb/models/new_subscription_bps_price.rb +0 -207
- data/lib/orb/models/new_subscription_tier_with_proration_price.rb +0 -207
- data/lib/orb/models/new_subscription_tiered_bps_price.rb +0 -207
- data/lib/orb/models/tier_config.rb +0 -27
- data/lib/orb/models/tiered_bps_config.rb +0 -20
- data/lib/orb/models/transform_price_filter.rb +0 -61
- data/rbi/orb/models/bps_config.rbi +0 -36
- data/rbi/orb/models/bps_tier.rbi +0 -58
- data/rbi/orb/models/bulk_bps_config.rbi +0 -31
- data/rbi/orb/models/bulk_bps_tier.rbi +0 -50
- data/rbi/orb/models/new_floating_bps_price.rbi +0 -294
- data/rbi/orb/models/new_floating_bulk_bps_price.rbi +0 -309
- data/rbi/orb/models/new_plan_bps_price.rbi +0 -304
- data/rbi/orb/models/new_plan_bulk_bps_price.rbi +0 -307
- data/rbi/orb/models/new_plan_tier_with_proration_price.rbi +0 -337
- data/rbi/orb/models/new_plan_tiered_bps_price.rbi +0 -314
- data/rbi/orb/models/new_subscription_bps_price.rbi +0 -317
- data/rbi/orb/models/new_subscription_bulk_bps_price.rbi +0 -338
- data/rbi/orb/models/tier_config.rbi +0 -40
- data/rbi/orb/models/tiered_bps_config.rbi +0 -29
- data/rbi/orb/models/transform_price_filter.rbi +0 -106
- data/sig/orb/models/bps_config.rbs +0 -15
- data/sig/orb/models/bps_tier.rbs +0 -35
- data/sig/orb/models/bulk_bps_config.rbs +0 -13
- data/sig/orb/models/bulk_bps_tier.rbs +0 -26
- data/sig/orb/models/new_floating_bps_price.rbs +0 -135
- data/sig/orb/models/new_floating_tiered_bps_price.rbs +0 -135
- data/sig/orb/models/new_plan_bps_price.rbs +0 -140
- data/sig/orb/models/new_plan_bulk_bps_price.rbs +0 -140
- data/sig/orb/models/new_plan_tier_with_proration_price.rbs +0 -140
- data/sig/orb/models/new_subscription_bulk_bps_price.rbs +0 -140
- data/sig/orb/models/new_subscription_tier_with_proration_price.rbs +0 -140
- data/sig/orb/models/new_subscription_tiered_bps_price.rbs +0 -140
- data/sig/orb/models/tier_config.rbs +0 -26
- data/sig/orb/models/tiered_bps_config.rbs +0 -13
- data/sig/orb/models/transform_price_filter.rbs +0 -56
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c7cdd5d38f2aa6b93c7100f54d7867b638d76be4a8737ea73c1a2c4973b9340
|
|
4
|
+
data.tar.gz: 5e94a570bc66d4ebc9b9be79806626b3dc12ab835ee19c7efe78ac7c2b89224a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f9921baba3f8d5438b4aa0bbcf0d54ddd4b52b9495f5318e81970535069a06237e8f6350129784166700bd37ba3b33b7421ab5d3d44e8fd3735d244a9fe8cd0
|
|
7
|
+
data.tar.gz: 715cbc4a16163338a16725d67de9915e144b9877209f6ceb86caead7047f9610c7781a851ef8e8123068536ad7090a05aa8240c4451ebe6e5f487cf63f42a076
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,128 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.13.0 (2026-03-03)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.12.0...v1.13.0](https://github.com/orbcorp/orb-ruby/compare/v1.12.0...v1.13.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([c203926](https://github.com/orbcorp/orb-ruby/commit/c203926582b3237293d3078ada79bf3d221071d7))
|
|
10
|
+
* **api:** api update ([fd4f82d](https://github.com/orbcorp/orb-ruby/commit/fd4f82dd2f04f36cd49a7413fdfaa5e1189f22c2))
|
|
11
|
+
* **api:** api update ([a703c63](https://github.com/orbcorp/orb-ruby/commit/a703c638264d4dd7761a3534562f47a86b8da288))
|
|
12
|
+
* **api:** api update ([49c2213](https://github.com/orbcorp/orb-ruby/commit/49c22131d40a8e0e050f894be9ff48d5958301aa))
|
|
13
|
+
* **api:** api update ([357d2d4](https://github.com/orbcorp/orb-ruby/commit/357d2d4e2758c92578d1c7af1e26f1a1779738b0))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **client:** serialize query parameters properly ([003ab4e](https://github.com/orbcorp/orb-ruby/commit/003ab4e466176c051711b7e89e1e40be5de6a664))
|
|
19
|
+
* properly mock time in ruby ci tests ([c8c588e](https://github.com/orbcorp/orb-ruby/commit/c8c588eb8bd5383d1875fef102cd7de66d6dff71))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
* **ci:** add build step ([b57c8a3](https://github.com/orbcorp/orb-ruby/commit/b57c8a3f52e22c5c67f3842357747437d12f56d7))
|
|
25
|
+
* **docs:** add missing descriptions ([174bbeb](https://github.com/orbcorp/orb-ruby/commit/174bbebe6ed10a5c2c079232299b48b4269e470c))
|
|
26
|
+
* update mock server docs ([4b838cf](https://github.com/orbcorp/orb-ruby/commit/4b838cf2bc89666bea9767ae25e66868d38bbeef))
|
|
27
|
+
|
|
28
|
+
## 1.12.0 (2026-02-12)
|
|
29
|
+
|
|
30
|
+
Full Changelog: [v1.11.2...v1.12.0](https://github.com/orbcorp/orb-ruby/compare/v1.11.2...v1.12.0)
|
|
31
|
+
|
|
32
|
+
### ⚠ BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
* **api:** define shared model ConversionRateConfig
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **api:** api update ([25dea19](https://github.com/orbcorp/orb-ruby/commit/25dea196cdd20a1099d54e7f7872037cc76de888))
|
|
39
|
+
* **api:** api update ([065b4c0](https://github.com/orbcorp/orb-ruby/commit/065b4c072106c25518386f10483230ce3b8369bf))
|
|
40
|
+
* **api:** api update ([1cae097](https://github.com/orbcorp/orb-ruby/commit/1cae0970ef281a06ac1004bae27c2870d4015834))
|
|
41
|
+
* **api:** api update ([20be312](https://github.com/orbcorp/orb-ruby/commit/20be31255b3b157e64bcee41c530767ebae7ae46))
|
|
42
|
+
* **api:** api update ([82a95e1](https://github.com/orbcorp/orb-ruby/commit/82a95e16b9a27835527f87601e8017029dbb6adf))
|
|
43
|
+
* **api:** api update ([b28aaa6](https://github.com/orbcorp/orb-ruby/commit/b28aaa6a7b47420b5006876f407e81da69da2960))
|
|
44
|
+
* **api:** api update ([99c34e5](https://github.com/orbcorp/orb-ruby/commit/99c34e5534e553bb0d1371029ebb187a4996d8a0))
|
|
45
|
+
* **api:** api update ([06f2f3a](https://github.com/orbcorp/orb-ruby/commit/06f2f3a630bebb897c6d8179d26b874d57aa5170))
|
|
46
|
+
* **api:** api update ([becbbfb](https://github.com/orbcorp/orb-ruby/commit/becbbfbda376e7262edc85e8b62033c900802aa3))
|
|
47
|
+
* **api:** api update ([b6cd2e4](https://github.com/orbcorp/orb-ruby/commit/b6cd2e48e6f93bd9c35a03370bf2bcaec81dfe40))
|
|
48
|
+
* **api:** api update ([87a0726](https://github.com/orbcorp/orb-ruby/commit/87a07260f66116747a5e9fc1fef8b04e2ed2ce73))
|
|
49
|
+
* **api:** api update ([be086a4](https://github.com/orbcorp/orb-ruby/commit/be086a41778e92515daa377fd87f6f0abfca72ae))
|
|
50
|
+
* **api:** api update ([9f52897](https://github.com/orbcorp/orb-ruby/commit/9f528979375caa801a1cf91f8bf5d3918a09c4ef))
|
|
51
|
+
* **api:** api update ([98aaf7c](https://github.com/orbcorp/orb-ruby/commit/98aaf7c01983329fe7900895b91f79192b38e15e))
|
|
52
|
+
* **api:** api update ([921d3c6](https://github.com/orbcorp/orb-ruby/commit/921d3c6a87d758ce6a1cc3fcfd7f4b81e0482d86))
|
|
53
|
+
* **api:** api update ([88e3262](https://github.com/orbcorp/orb-ruby/commit/88e32624c94e7de29738f086c90e41b07dcdd760))
|
|
54
|
+
* **api:** api update ([4de7f17](https://github.com/orbcorp/orb-ruby/commit/4de7f17ac1c5fe9b440348e06529528ef41a317e))
|
|
55
|
+
* **api:** api update ([6ada340](https://github.com/orbcorp/orb-ruby/commit/6ada3406fbcb73e97da781bffaa5c0dcc81d3ad1))
|
|
56
|
+
* **api:** api update ([455c9c1](https://github.com/orbcorp/orb-ruby/commit/455c9c18b77ee41a6b9c27fc791cc622553b83f8))
|
|
57
|
+
* **api:** api update ([024cfe9](https://github.com/orbcorp/orb-ruby/commit/024cfe9ce8ec66066224003fd8476cde441dfcba))
|
|
58
|
+
* **api:** api update ([d677c86](https://github.com/orbcorp/orb-ruby/commit/d677c8652f13f00ab40e63799223f64807d4d624))
|
|
59
|
+
* **api:** api update ([97803ff](https://github.com/orbcorp/orb-ruby/commit/97803ffbb43d1730ebb2f23386b241a3e9f99ee4))
|
|
60
|
+
* **api:** api update ([e883731](https://github.com/orbcorp/orb-ruby/commit/e8837312b28020f32d984bc83003be7c5d0bbe58))
|
|
61
|
+
* **api:** api update ([c82723f](https://github.com/orbcorp/orb-ruby/commit/c82723f6b075de5b8b806f4523437c31bc3f4d36))
|
|
62
|
+
* **api:** api update ([b3fa16d](https://github.com/orbcorp/orb-ruby/commit/b3fa16d2ae0fa06ed8c04f7c10634d240152e8b5))
|
|
63
|
+
* **api:** api update ([863a72d](https://github.com/orbcorp/orb-ruby/commit/863a72d5bc1ed22405334019d51e987daadedff4))
|
|
64
|
+
* **api:** api update ([6df80f0](https://github.com/orbcorp/orb-ruby/commit/6df80f039a079ed7c9c15201e6693ac88e64ee12))
|
|
65
|
+
* **api:** api update ([34d9e85](https://github.com/orbcorp/orb-ruby/commit/34d9e857f7863e718aaa844dcf0c299e234e9ab7))
|
|
66
|
+
* **api:** api update ([21271b0](https://github.com/orbcorp/orb-ruby/commit/21271b04f2b4b3af856b02dd156542770683f6d8))
|
|
67
|
+
* **api:** api update ([182e255](https://github.com/orbcorp/orb-ruby/commit/182e255a2ed9a39f774afb700320ff762da40e6d))
|
|
68
|
+
* **api:** api update ([87ab4bb](https://github.com/orbcorp/orb-ruby/commit/87ab4bb08910a9c6e5a7995ca307e8a80c737c39))
|
|
69
|
+
* **api:** api update ([dbeafc7](https://github.com/orbcorp/orb-ruby/commit/dbeafc76cc391a10d8cb21f5db2ef8bb825aee1c))
|
|
70
|
+
* **api:** api update ([f8b2792](https://github.com/orbcorp/orb-ruby/commit/f8b27927f181b45c2196de229a35b5eae6122f46))
|
|
71
|
+
* **api:** api update ([f8c9f2c](https://github.com/orbcorp/orb-ruby/commit/f8c9f2c57e94d09130d68b080b0adc5ae38bbd30))
|
|
72
|
+
* **api:** api update ([d1fc414](https://github.com/orbcorp/orb-ruby/commit/d1fc414cb976afe6bb19dc284dceb7ed7bfa38c2))
|
|
73
|
+
* **api:** api update ([83a6ffd](https://github.com/orbcorp/orb-ruby/commit/83a6ffda9613b6571029f01235d673d179294c94))
|
|
74
|
+
* **api:** api update ([343fa0b](https://github.com/orbcorp/orb-ruby/commit/343fa0b8a9a724b73f8abe5e9de34795f232e065))
|
|
75
|
+
* **api:** api update ([b89ea6d](https://github.com/orbcorp/orb-ruby/commit/b89ea6d10a12909e77c76617d11068ade5cf6fc8))
|
|
76
|
+
* **api:** api update ([be80854](https://github.com/orbcorp/orb-ruby/commit/be80854305b7dd24350c0a955de536d37233bc35))
|
|
77
|
+
* **api:** api update ([8e3ac4b](https://github.com/orbcorp/orb-ruby/commit/8e3ac4b248b2aca6ac6d5360f34be8521b05bc83))
|
|
78
|
+
* **api:** api update ([246283d](https://github.com/orbcorp/orb-ruby/commit/246283dc41fd3d9b128ac44ccd8550ae7b987578))
|
|
79
|
+
* **api:** api update ([bc6c8f9](https://github.com/orbcorp/orb-ruby/commit/bc6c8f9914220783adeb80fa6a9eb87d009fa58d))
|
|
80
|
+
* **api:** api update ([394af82](https://github.com/orbcorp/orb-ruby/commit/394af826a5ba3cd462447304c8ec659038e67617))
|
|
81
|
+
* **api:** define shared model ConversionRateConfig ([aa669fe](https://github.com/orbcorp/orb-ruby/commit/aa669fef9079dbac856be83d56cabd826e3c47c0))
|
|
82
|
+
* **api:** manual updates ([85ded24](https://github.com/orbcorp/orb-ruby/commit/85ded24125953bfdaac7a5f862633929c07b0546))
|
|
83
|
+
* **api:** manual updates ([45682e2](https://github.com/orbcorp/orb-ruby/commit/45682e2e4835f5575b9efc9c5d0bd307f5610baa))
|
|
84
|
+
* expose response headers for both streams and errors ([cafba93](https://github.com/orbcorp/orb-ruby/commit/cafba93f8798a84815c9c9d1183327e498cb6b95))
|
|
85
|
+
* extract minimum composite to type ([3bd8a47](https://github.com/orbcorp/orb-ruby/commit/3bd8a47a7c0601ccb9c43b472131562319a59e51))
|
|
86
|
+
* handle thread interrupts in the core HTTP client ([bd23d78](https://github.com/orbcorp/orb-ruby/commit/bd23d789ed205441ea6f6d76324278867eaf59eb))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Bug Fixes
|
|
90
|
+
|
|
91
|
+
* absolutely qualified uris should always override the default ([22b2593](https://github.com/orbcorp/orb-ruby/commit/22b25937df7cf77dbf1e1a9836e5cd822087d338))
|
|
92
|
+
* always send `filename=...` for multipart requests where a file is expected ([aefe58f](https://github.com/orbcorp/orb-ruby/commit/aefe58f92b1296aa30172ce8206f84723a3a326c))
|
|
93
|
+
* better thread safety via early initializing SSL store during HTTP client creation ([89f6a24](https://github.com/orbcorp/orb-ruby/commit/89f6a24e6ed1147c45a583c91ac368932cf37ddb))
|
|
94
|
+
* calling `break` out of streams should be instantaneous ([c7f51d6](https://github.com/orbcorp/orb-ruby/commit/c7f51d6d47678f33015fdffc78e6cff826a90a2c))
|
|
95
|
+
* **client:** always add content-length to post body, even when empty ([59f4f8b](https://github.com/orbcorp/orb-ruby/commit/59f4f8b2416b68c556f75e8f4e89d647cd93a1fe))
|
|
96
|
+
* **client:** loosen json header parsing ([60bf3f3](https://github.com/orbcorp/orb-ruby/commit/60bf3f3bfda9caa36269e75ccb5d5df6c4811bd0))
|
|
97
|
+
* coroutine leaks from connection pool ([a4faf55](https://github.com/orbcorp/orb-ruby/commit/a4faf55a381bcdaae01f0a22cd8922038af38f69))
|
|
98
|
+
* **internal:** use null byte as file separator in the fast formatting script ([58f092f](https://github.com/orbcorp/orb-ruby/commit/58f092f32214ae8deb17db5e002f10fafd60378e))
|
|
99
|
+
* issue where json.parse errors when receiving HTTP 204 with nobody ([ecbf9f1](https://github.com/orbcorp/orb-ruby/commit/ecbf9f18b8229cb9d9c729a346a5f00dc1be2427))
|
|
100
|
+
* shorten multipart boundary sep to less than RFC specificed max length ([984b6ad](https://github.com/orbcorp/orb-ruby/commit/984b6ad403302ab97275136e145dce322ce82e9b))
|
|
101
|
+
* should not reuse buffers for `IO.copy_stream` interop ([11db4b2](https://github.com/orbcorp/orb-ruby/commit/11db4b2e6edf33581a21c6eacfbdaf347af418ea))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Performance Improvements
|
|
105
|
+
|
|
106
|
+
* faster code formatting ([9538971](https://github.com/orbcorp/orb-ruby/commit/95389713d7c3b97ec3cf0963b86211d5fba72fe4))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Chores
|
|
110
|
+
|
|
111
|
+
* allow fast-format to use bsd sed as well ([6566897](https://github.com/orbcorp/orb-ruby/commit/6566897b0797bdbad69e21ed05d97f4ce1509f07))
|
|
112
|
+
* bump dependency version and update sorbet types ([26ac9ce](https://github.com/orbcorp/orb-ruby/commit/26ac9ce1b4ae0315417ece34fc02b63b569db0c6))
|
|
113
|
+
* **client:** send user-agent header ([ed62aa3](https://github.com/orbcorp/orb-ruby/commit/ed62aa37562af4ddca14635d87bc44fe049df745))
|
|
114
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([c7d1331](https://github.com/orbcorp/orb-ruby/commit/c7d13317194914b406f35048eb198c715e3645da))
|
|
115
|
+
* **docs:** remove www prefix ([fd0b56a](https://github.com/orbcorp/orb-ruby/commit/fd0b56a55df0ae699a00fa168c3cf1524bff5a23))
|
|
116
|
+
* explicitly require "base64" gem ([2dc59bc](https://github.com/orbcorp/orb-ruby/commit/2dc59bc83506fbb02785f784023a217e0472513e))
|
|
117
|
+
* fix typo in descriptions ([ebb72da](https://github.com/orbcorp/orb-ruby/commit/ebb72daa8a4a736d1c4a68c44bf346d3fc93c45d))
|
|
118
|
+
* ignore linter error for tests having large collections ([717bc2e](https://github.com/orbcorp/orb-ruby/commit/717bc2e5e09f3c6cea641189a2a9eb516dcbf0ec))
|
|
119
|
+
* **internal:** codegen related update ([fced85a](https://github.com/orbcorp/orb-ruby/commit/fced85ad0524759c290f1a5afaad4e7baaa1525e))
|
|
120
|
+
* **internal:** codegen related update ([01a2d5d](https://github.com/orbcorp/orb-ruby/commit/01a2d5dbfe250eab0597658dd7156ba234bf6424))
|
|
121
|
+
* **internal:** codegen related update ([88e7ca5](https://github.com/orbcorp/orb-ruby/commit/88e7ca54ee9a3aeed69433c775638765f2838514))
|
|
122
|
+
* **internal:** codegen related update ([d7dd0b8](https://github.com/orbcorp/orb-ruby/commit/d7dd0b8380fd9ec066388c3327ed16fdba9f7fa6))
|
|
123
|
+
* **internal:** update `actions/checkout` version ([03524b6](https://github.com/orbcorp/orb-ruby/commit/03524b6b0a9252b46637bde590b46a98f67ec497))
|
|
124
|
+
* move `cgi` into dependencies for ruby 4 ([09ae2b0](https://github.com/orbcorp/orb-ruby/commit/09ae2b03acf7b359b387b682250cd412e0834057))
|
|
125
|
+
|
|
3
126
|
## 1.11.2 (2025-08-29)
|
|
4
127
|
|
|
5
128
|
Full Changelog: [v1.11.1...v1.11.2](https://github.com/orbcorp/orb-ruby/compare/v1.11.1...v1.11.2)
|
data/README.md
CHANGED
data/lib/orb/client.rb
CHANGED
|
@@ -21,42 +21,109 @@ module Orb
|
|
|
21
21
|
# @return [Orb::Resources::TopLevel]
|
|
22
22
|
attr_reader :top_level
|
|
23
23
|
|
|
24
|
+
# The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
|
|
25
|
+
# subscribed to by a customer. Plans define the billing behavior of the
|
|
26
|
+
# subscription. You can see more about how to configure prices in the
|
|
27
|
+
# [Price resource](/reference/price).
|
|
24
28
|
# @return [Orb::Resources::Beta]
|
|
25
29
|
attr_reader :beta
|
|
26
30
|
|
|
31
|
+
# A coupon represents a reusable discount configuration that can be applied either
|
|
32
|
+
# as a fixed or percentage amount to an invoice or subscription. Coupons are
|
|
33
|
+
# activated using a redemption code, which applies the discount to a subscription
|
|
34
|
+
# or invoice. The duration of a coupon determines how long it remains available
|
|
35
|
+
# for use by end users.
|
|
27
36
|
# @return [Orb::Resources::Coupons]
|
|
28
37
|
attr_reader :coupons
|
|
29
38
|
|
|
39
|
+
# The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
|
|
40
|
+
# been applied to a particular invoice.
|
|
30
41
|
# @return [Orb::Resources::CreditNotes]
|
|
31
42
|
attr_reader :credit_notes
|
|
32
43
|
|
|
44
|
+
# A customer is a buyer of your products, and the other party to the billing
|
|
45
|
+
# relationship.
|
|
46
|
+
#
|
|
47
|
+
# In Orb, customers are assigned system generated identifiers automatically, but
|
|
48
|
+
# it's often desirable to have these match existing identifiers in your system. To
|
|
49
|
+
# avoid having to denormalize Orb ID information, you can pass in an
|
|
50
|
+
# `external_customer_id` with your own identifier. See
|
|
51
|
+
# [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
|
|
52
|
+
# information about how these aliases work in Orb.
|
|
53
|
+
#
|
|
54
|
+
# In addition to having an identifier in your system, a customer may exist in a
|
|
55
|
+
# payment provider solution like Stripe. Use the `payment_provider_id` and the
|
|
56
|
+
# `payment_provider` enum field to express this mapping.
|
|
57
|
+
#
|
|
58
|
+
# A customer also has a timezone (from the standard
|
|
59
|
+
# [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
|
|
60
|
+
# your account's timezone. See [Timezone localization](/essentials/timezones) for
|
|
61
|
+
# information on what this timezone parameter influences within Orb.
|
|
33
62
|
# @return [Orb::Resources::Customers]
|
|
34
63
|
attr_reader :customers
|
|
35
64
|
|
|
65
|
+
# The [Event](/core-concepts#event) resource represents a usage event that has
|
|
66
|
+
# been created for a customer. Events are the core of Orb's usage-based billing
|
|
67
|
+
# model, and are used to calculate the usage charges for a given billing period.
|
|
36
68
|
# @return [Orb::Resources::Events]
|
|
37
69
|
attr_reader :events
|
|
38
70
|
|
|
71
|
+
# An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity,
|
|
72
|
+
# representing the request for payment for a single subscription. This includes a
|
|
73
|
+
# set of line items, which correspond to prices in the subscription's plan and can
|
|
74
|
+
# represent fixed recurring fees or usage-based fees. They are generated at the
|
|
75
|
+
# end of a billing period, or as the result of an action, such as a cancellation.
|
|
39
76
|
# @return [Orb::Resources::InvoiceLineItems]
|
|
40
77
|
attr_reader :invoice_line_items
|
|
41
78
|
|
|
79
|
+
# An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity,
|
|
80
|
+
# representing the request for payment for a single subscription. This includes a
|
|
81
|
+
# set of line items, which correspond to prices in the subscription's plan and can
|
|
82
|
+
# represent fixed recurring fees or usage-based fees. They are generated at the
|
|
83
|
+
# end of a billing period, or as the result of an action, such as a cancellation.
|
|
42
84
|
# @return [Orb::Resources::Invoices]
|
|
43
85
|
attr_reader :invoices
|
|
44
86
|
|
|
87
|
+
# The Item resource represents a sellable product or good. Items are associated
|
|
88
|
+
# with all line items, billable metrics, and prices and are used for defining
|
|
89
|
+
# external sync behavior for invoices and tax calculation purposes.
|
|
45
90
|
# @return [Orb::Resources::Items]
|
|
46
91
|
attr_reader :items
|
|
47
92
|
|
|
93
|
+
# The Metric resource represents a calculation of a quantity based on events.
|
|
94
|
+
# Metrics are defined by the query that transforms raw usage events into
|
|
95
|
+
# meaningful values for your customers.
|
|
48
96
|
# @return [Orb::Resources::Metrics]
|
|
49
97
|
attr_reader :metrics
|
|
50
98
|
|
|
99
|
+
# The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
|
|
100
|
+
# subscribed to by a customer. Plans define the billing behavior of the
|
|
101
|
+
# subscription. You can see more about how to configure prices in the
|
|
102
|
+
# [Price resource](/reference/price).
|
|
51
103
|
# @return [Orb::Resources::Plans]
|
|
52
104
|
attr_reader :plans
|
|
53
105
|
|
|
106
|
+
# The Price resource represents a price that can be billed on a subscription,
|
|
107
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
108
|
+
# take a quantity and determine an amount to bill.
|
|
109
|
+
#
|
|
110
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
|
111
|
+
# is serialized differently in a given Price object. The model_type field
|
|
112
|
+
# determines the key for the configuration object that is present.
|
|
113
|
+
#
|
|
114
|
+
# For more on the types of prices, see
|
|
115
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
|
54
116
|
# @return [Orb::Resources::Prices]
|
|
55
117
|
attr_reader :prices
|
|
56
118
|
|
|
57
119
|
# @return [Orb::Resources::Subscriptions]
|
|
58
120
|
attr_reader :subscriptions
|
|
59
121
|
|
|
122
|
+
# [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
123
|
+
# usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
124
|
+
#
|
|
125
|
+
# Alerts created through the API can be scoped to either customers or
|
|
126
|
+
# subscriptions.
|
|
60
127
|
# @return [Orb::Resources::Alerts]
|
|
61
128
|
attr_reader :alerts
|
|
62
129
|
|
|
@@ -66,6 +133,20 @@ module Orb
|
|
|
66
133
|
# @return [Orb::Resources::SubscriptionChanges]
|
|
67
134
|
attr_reader :subscription_changes
|
|
68
135
|
|
|
136
|
+
# The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid
|
|
137
|
+
# credits within Orb.
|
|
138
|
+
# @return [Orb::Resources::CreditBlocks]
|
|
139
|
+
attr_reader :credit_blocks
|
|
140
|
+
|
|
141
|
+
# The LicenseType resource represents a type of license that can be assigned to
|
|
142
|
+
# users. License types are used during billing by grouping metrics on the
|
|
143
|
+
# configured grouping key.
|
|
144
|
+
# @return [Orb::Resources::LicenseTypes]
|
|
145
|
+
attr_reader :license_types
|
|
146
|
+
|
|
147
|
+
# @return [Orb::Resources::Licenses]
|
|
148
|
+
attr_reader :licenses
|
|
149
|
+
|
|
69
150
|
# @api private
|
|
70
151
|
#
|
|
71
152
|
# @return [Hash{String=>String}]
|
|
@@ -133,6 +214,9 @@ module Orb
|
|
|
133
214
|
@alerts = Orb::Resources::Alerts.new(client: self)
|
|
134
215
|
@dimensional_price_groups = Orb::Resources::DimensionalPriceGroups.new(client: self)
|
|
135
216
|
@subscription_changes = Orb::Resources::SubscriptionChanges.new(client: self)
|
|
217
|
+
@credit_blocks = Orb::Resources::CreditBlocks.new(client: self)
|
|
218
|
+
@license_types = Orb::Resources::LicenseTypes.new(client: self)
|
|
219
|
+
@licenses = Orb::Resources::Licenses.new(client: self)
|
|
136
220
|
end
|
|
137
221
|
end
|
|
138
222
|
end
|
data/lib/orb/errors.rb
CHANGED
|
@@ -40,6 +40,9 @@ module Orb
|
|
|
40
40
|
# @return [Integer, nil]
|
|
41
41
|
attr_accessor :status
|
|
42
42
|
|
|
43
|
+
# @return [Hash{String=>String}, nil]
|
|
44
|
+
attr_accessor :headers
|
|
45
|
+
|
|
43
46
|
# @return [Object, nil]
|
|
44
47
|
attr_accessor :body
|
|
45
48
|
|
|
@@ -47,13 +50,15 @@ module Orb
|
|
|
47
50
|
#
|
|
48
51
|
# @param url [URI::Generic]
|
|
49
52
|
# @param status [Integer, nil]
|
|
53
|
+
# @param headers [Hash{String=>String}, nil]
|
|
50
54
|
# @param body [Object, nil]
|
|
51
55
|
# @param request [nil]
|
|
52
56
|
# @param response [nil]
|
|
53
57
|
# @param message [String, nil]
|
|
54
|
-
def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil)
|
|
58
|
+
def initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil)
|
|
55
59
|
@url = url
|
|
56
60
|
@status = status
|
|
61
|
+
@headers = headers
|
|
57
62
|
@body = body
|
|
58
63
|
@request = request
|
|
59
64
|
@response = response
|
|
@@ -74,6 +79,7 @@ module Orb
|
|
|
74
79
|
#
|
|
75
80
|
# @param url [URI::Generic]
|
|
76
81
|
# @param status [nil]
|
|
82
|
+
# @param headers [Hash{String=>String}, nil]
|
|
77
83
|
# @param body [nil]
|
|
78
84
|
# @param request [nil]
|
|
79
85
|
# @param response [nil]
|
|
@@ -81,6 +87,7 @@ module Orb
|
|
|
81
87
|
def initialize(
|
|
82
88
|
url:,
|
|
83
89
|
status: nil,
|
|
90
|
+
headers: nil,
|
|
84
91
|
body: nil,
|
|
85
92
|
request: nil,
|
|
86
93
|
response: nil,
|
|
@@ -95,6 +102,7 @@ module Orb
|
|
|
95
102
|
#
|
|
96
103
|
# @param url [URI::Generic]
|
|
97
104
|
# @param status [nil]
|
|
105
|
+
# @param headers [Hash{String=>String}, nil]
|
|
98
106
|
# @param body [nil]
|
|
99
107
|
# @param request [nil]
|
|
100
108
|
# @param response [nil]
|
|
@@ -102,6 +110,7 @@ module Orb
|
|
|
102
110
|
def initialize(
|
|
103
111
|
url:,
|
|
104
112
|
status: nil,
|
|
113
|
+
headers: nil,
|
|
105
114
|
body: nil,
|
|
106
115
|
request: nil,
|
|
107
116
|
response: nil,
|
|
@@ -116,22 +125,25 @@ module Orb
|
|
|
116
125
|
#
|
|
117
126
|
# @param url [URI::Generic]
|
|
118
127
|
# @param status [Integer]
|
|
128
|
+
# @param headers [Hash{String=>String}, nil]
|
|
119
129
|
# @param body [Object, nil]
|
|
120
130
|
# @param request [nil]
|
|
121
131
|
# @param response [nil]
|
|
122
132
|
# @param message [String, nil]
|
|
123
133
|
#
|
|
124
134
|
# @return [self]
|
|
125
|
-
def self.for(url:, status:, body:, request:, response:, message: nil)
|
|
135
|
+
def self.for(url:, status:, headers:, body:, request:, response:, message: nil)
|
|
126
136
|
key = Orb::Internal::Util.dig(body, :type)
|
|
127
|
-
kwargs =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
137
|
+
kwargs =
|
|
138
|
+
{
|
|
139
|
+
url: url,
|
|
140
|
+
status: status,
|
|
141
|
+
headers: headers,
|
|
142
|
+
body: body,
|
|
143
|
+
request: request,
|
|
144
|
+
response: response,
|
|
145
|
+
message: message
|
|
146
|
+
}
|
|
135
147
|
|
|
136
148
|
case [status, key]
|
|
137
149
|
in [400, Orb::Errors::ConstraintViolation::TYPE]
|
|
@@ -187,15 +199,17 @@ module Orb
|
|
|
187
199
|
#
|
|
188
200
|
# @param url [URI::Generic]
|
|
189
201
|
# @param status [Integer]
|
|
202
|
+
# @param headers [Hash{String=>String}, nil]
|
|
190
203
|
# @param body [Object, nil]
|
|
191
204
|
# @param request [nil]
|
|
192
205
|
# @param response [nil]
|
|
193
206
|
# @param message [String, nil]
|
|
194
|
-
def initialize(url:, status:, body:, request:, response:, message: nil)
|
|
207
|
+
def initialize(url:, status:, headers:, body:, request:, response:, message: nil)
|
|
195
208
|
message ||= {url: url.to_s, status: status, body: body}
|
|
196
209
|
super(
|
|
197
210
|
url: url,
|
|
198
211
|
status: status,
|
|
212
|
+
headers: headers,
|
|
199
213
|
body: body,
|
|
200
214
|
request: request,
|
|
201
215
|
response: response,
|
data/lib/orb/file_part.rb
CHANGED
|
@@ -38,18 +38,21 @@ module Orb
|
|
|
38
38
|
def to_yaml(*a) = read.to_yaml(*a)
|
|
39
39
|
|
|
40
40
|
# @param content [Pathname, StringIO, IO, String]
|
|
41
|
-
# @param filename [String, nil]
|
|
41
|
+
# @param filename [Pathname, String, nil]
|
|
42
42
|
# @param content_type [String, nil]
|
|
43
43
|
def initialize(content, filename: nil, content_type: nil)
|
|
44
|
-
@
|
|
44
|
+
@content_type = content_type
|
|
45
45
|
@filename =
|
|
46
|
-
case content
|
|
47
|
-
in Pathname
|
|
48
|
-
|
|
46
|
+
case [filename, (@content = content)]
|
|
47
|
+
in [String | Pathname, _]
|
|
48
|
+
::File.basename(filename)
|
|
49
|
+
in [nil, Pathname]
|
|
50
|
+
content.basename.to_path
|
|
51
|
+
in [nil, IO]
|
|
52
|
+
content.to_path
|
|
49
53
|
else
|
|
50
|
-
filename
|
|
54
|
+
filename
|
|
51
55
|
end
|
|
52
|
-
@content_type = content_type
|
|
53
56
|
end
|
|
54
57
|
end
|
|
55
58
|
end
|
data/lib/orb/internal/page.rb
CHANGED
|
@@ -60,7 +60,7 @@ module Orb
|
|
|
60
60
|
#
|
|
61
61
|
# @param client [Orb::Internal::Transport::BaseClient]
|
|
62
62
|
# @param req [Hash{Symbol=>Object}]
|
|
63
|
-
# @param headers [Hash{String=>String}
|
|
63
|
+
# @param headers [Hash{String=>String}]
|
|
64
64
|
# @param page_data [Hash{Symbol=>Object}]
|
|
65
65
|
def initialize(client:, req:, headers:, page_data:)
|
|
66
66
|
super
|
|
@@ -47,7 +47,7 @@ module Orb
|
|
|
47
47
|
# @api private
|
|
48
48
|
#
|
|
49
49
|
# @param status [Integer]
|
|
50
|
-
# @param headers [Hash{String=>String}
|
|
50
|
+
# @param headers [Hash{String=>String}]
|
|
51
51
|
#
|
|
52
52
|
# @return [Boolean]
|
|
53
53
|
def should_retry?(status, headers:)
|
|
@@ -85,7 +85,7 @@ module Orb
|
|
|
85
85
|
#
|
|
86
86
|
# @param status [Integer]
|
|
87
87
|
#
|
|
88
|
-
# @param response_headers [Hash{String=>String}
|
|
88
|
+
# @param response_headers [Hash{String=>String}]
|
|
89
89
|
#
|
|
90
90
|
# @return [Hash{Symbol=>Object}]
|
|
91
91
|
def follow_redirect(request, status:, response_headers:)
|
|
@@ -201,7 +201,8 @@ module Orb
|
|
|
201
201
|
self.class::PLATFORM_HEADERS,
|
|
202
202
|
{
|
|
203
203
|
"accept" => "application/json",
|
|
204
|
-
"content-type" => "application/json"
|
|
204
|
+
"content-type" => "application/json",
|
|
205
|
+
"user-agent" => user_agent
|
|
205
206
|
},
|
|
206
207
|
headers
|
|
207
208
|
)
|
|
@@ -219,6 +220,11 @@ module Orb
|
|
|
219
220
|
# @return [Hash{String=>String}]
|
|
220
221
|
private def auth_headers = {}
|
|
221
222
|
|
|
223
|
+
# @api private
|
|
224
|
+
#
|
|
225
|
+
# @return [String]
|
|
226
|
+
private def user_agent = "#{self.class.name}/Ruby #{Orb::VERSION}"
|
|
227
|
+
|
|
222
228
|
# @api private
|
|
223
229
|
#
|
|
224
230
|
# @return [String]
|
|
@@ -375,6 +381,7 @@ module Orb
|
|
|
375
381
|
rescue Orb::Errors::APIConnectionError => e
|
|
376
382
|
status = e
|
|
377
383
|
end
|
|
384
|
+
headers = Orb::Internal::Util.normalized_headers(response&.each_header&.to_h)
|
|
378
385
|
|
|
379
386
|
case status
|
|
380
387
|
in ..299
|
|
@@ -387,7 +394,7 @@ module Orb
|
|
|
387
394
|
in 300..399
|
|
388
395
|
self.class.reap_connection!(status, stream: stream)
|
|
389
396
|
|
|
390
|
-
request = self.class.follow_redirect(request, status: status, response_headers:
|
|
397
|
+
request = self.class.follow_redirect(request, status: status, response_headers: headers)
|
|
391
398
|
send_request(
|
|
392
399
|
request,
|
|
393
400
|
redirect_count: redirect_count + 1,
|
|
@@ -396,9 +403,9 @@ module Orb
|
|
|
396
403
|
)
|
|
397
404
|
in Orb::Errors::APIConnectionError if retry_count >= max_retries
|
|
398
405
|
raise status
|
|
399
|
-
in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers:
|
|
406
|
+
in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: headers)
|
|
400
407
|
decoded = Kernel.then do
|
|
401
|
-
Orb::Internal::Util.decode_content(
|
|
408
|
+
Orb::Internal::Util.decode_content(headers, stream: stream, suppress_error: true)
|
|
402
409
|
ensure
|
|
403
410
|
self.class.reap_connection!(status, stream: stream)
|
|
404
411
|
end
|
|
@@ -406,6 +413,7 @@ module Orb
|
|
|
406
413
|
raise Orb::Errors::APIStatusError.for(
|
|
407
414
|
url: url,
|
|
408
415
|
status: status,
|
|
416
|
+
headers: headers,
|
|
409
417
|
body: decoded,
|
|
410
418
|
request: nil,
|
|
411
419
|
response: response
|
|
@@ -482,19 +490,21 @@ module Orb
|
|
|
482
490
|
send_retry_header: send_retry_header
|
|
483
491
|
)
|
|
484
492
|
|
|
485
|
-
|
|
493
|
+
headers = Orb::Internal::Util.normalized_headers(response.each_header.to_h)
|
|
494
|
+
decoded = Orb::Internal::Util.decode_content(headers, stream: stream)
|
|
486
495
|
case req
|
|
487
496
|
in {stream: Class => st}
|
|
488
497
|
st.new(
|
|
489
498
|
model: model,
|
|
490
499
|
url: url,
|
|
491
500
|
status: status,
|
|
501
|
+
headers: headers,
|
|
492
502
|
response: response,
|
|
493
503
|
unwrap: unwrap,
|
|
494
504
|
stream: decoded
|
|
495
505
|
)
|
|
496
506
|
in {page: Class => page}
|
|
497
|
-
page.new(client: self, req: req, headers:
|
|
507
|
+
page.new(client: self, req: req, headers: headers, page_data: decoded)
|
|
498
508
|
else
|
|
499
509
|
unwrapped = Orb::Internal::Util.dig(decoded, unwrap)
|
|
500
510
|
Orb::Internal::Type::Converter.coerce(model, unwrapped)
|