orb-billing 0.5.1 → 0.5.3
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 +26 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- data/lib/orb/internal/type/array_of.rb +8 -0
- data/lib/orb/internal/type/base_model.rb +7 -0
- data/lib/orb/internal/type/boolean.rb +8 -0
- data/lib/orb/internal/type/enum.rb +12 -0
- data/lib/orb/internal/type/file_input.rb +7 -0
- data/lib/orb/internal/type/hash_of.rb +8 -0
- data/lib/orb/internal/type/union.rb +12 -0
- data/lib/orb/internal/type/unknown.rb +8 -0
- data/lib/orb/internal/util.rb +45 -0
- data/lib/orb/internal.rb +3 -0
- data/lib/orb/models/alert.rb +23 -23
- data/lib/orb/models/alert_create_for_customer_params.rb +5 -5
- data/lib/orb/models/alert_create_for_external_customer_params.rb +5 -5
- data/lib/orb/models/alert_create_for_subscription_params.rb +5 -5
- data/lib/orb/models/alert_update_params.rb +3 -3
- data/lib/orb/models/amount_discount.rb +5 -5
- data/lib/orb/models/billable_metric.rb +7 -7
- data/lib/orb/models/coupon.rb +6 -10
- data/lib/orb/models/coupon_create_params.rb +3 -9
- data/lib/orb/models/credit_note.rb +33 -33
- data/lib/orb/models/credit_note_create_params.rb +4 -4
- data/lib/orb/models/customer.rb +39 -39
- data/lib/orb/models/customer_create_params.rb +26 -35
- data/lib/orb/models/customer_update_by_external_id_params.rb +26 -35
- data/lib/orb/models/customer_update_params.rb +26 -35
- data/lib/orb/models/customers/balance_transaction_create_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
- data/lib/orb/models/customers/cost_list_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_response.rb +2 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +7 -7
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +8 -8
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_list_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -14
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +6 -6
- data/lib/orb/models/customers/credits/top_up_create_params.rb +6 -5
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/dimensional_price_groups.rb +4 -4
- data/lib/orb/models/discount.rb +1 -7
- data/lib/orb/models/evaluate_price_group.rb +0 -4
- data/lib/orb/models/event_ingest_params.rb +3 -3
- data/lib/orb/models/events/event_volumes.rb +2 -2
- data/lib/orb/models/invoice.rb +114 -135
- data/lib/orb/models/invoice_create_params.rb +10 -10
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +6 -28
- data/lib/orb/models/invoice_level_discount.rb +1 -5
- data/lib/orb/models/invoice_line_item_create_response.rb +4 -26
- data/lib/orb/models/invoice_list_params.rb +4 -4
- data/lib/orb/models/item.rb +5 -5
- data/lib/orb/models/item_update_params.rb +5 -5
- data/lib/orb/models/percentage_discount.rb +5 -5
- data/lib/orb/models/plan.rb +58 -70
- data/lib/orb/models/plan_create_params.rb +448 -476
- data/lib/orb/models/plan_list_params.rb +2 -2
- data/lib/orb/models/price.rb +1204 -1239
- data/lib/orb/models/price_create_params.rb +50 -50
- data/lib/orb/models/price_evaluate_response.rb +2 -2
- data/lib/orb/models/subscription.rb +58 -78
- data/lib/orb/models/subscription_cancel_params.rb +2 -2
- data/lib/orb/models/subscription_cancel_response.rb +14 -36
- data/lib/orb/models/subscription_change_apply_response.rb +14 -36
- data/lib/orb/models/subscription_change_cancel_response.rb +14 -36
- data/lib/orb/models/subscription_change_retrieve_response.rb +14 -36
- data/lib/orb/models/subscription_create_params.rb +1002 -1075
- data/lib/orb/models/subscription_create_response.rb +14 -36
- data/lib/orb/models/subscription_fetch_costs_params.rb +2 -2
- data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
- data/lib/orb/models/subscription_fetch_usage_params.rb +4 -4
- data/lib/orb/models/subscription_list_params.rb +2 -2
- data/lib/orb/models/subscription_price_intervals_params.rb +596 -674
- data/lib/orb/models/subscription_price_intervals_response.rb +14 -36
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +973 -1059
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +14 -36
- data/lib/orb/models/subscription_trigger_phase_response.rb +14 -36
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +14 -36
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +14 -36
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +14 -36
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +2 -2
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +14 -36
- data/lib/orb/models/subscription_update_trial_params.rb +3 -3
- data/lib/orb/models/subscription_update_trial_response.rb +14 -36
- data/lib/orb/models/subscription_usage.rb +26 -35
- data/lib/orb/models/subscriptions.rb +4 -4
- data/lib/orb/models/trial_discount.rb +5 -5
- data/lib/orb/models/usage_discount.rb +5 -5
- data/lib/orb/models.rb +30 -16
- data/lib/orb/resources/alerts.rb +15 -15
- data/lib/orb/resources/coupons/subscriptions.rb +1 -1
- data/lib/orb/resources/coupons.rb +5 -5
- data/lib/orb/resources/credit_notes.rb +5 -5
- data/lib/orb/resources/customers/balance_transactions.rb +1 -1
- data/lib/orb/resources/customers/costs.rb +2 -2
- data/lib/orb/resources/customers/credits/ledger.rb +10 -10
- data/lib/orb/resources/customers/credits/top_ups.rb +4 -4
- data/lib/orb/resources/customers.rb +30 -30
- data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +1 -1
- data/lib/orb/resources/dimensional_price_groups.rb +3 -3
- data/lib/orb/resources/events/volume.rb +1 -1
- data/lib/orb/resources/events.rb +1 -1
- data/lib/orb/resources/invoices.rb +12 -12
- data/lib/orb/resources/items.rb +5 -5
- data/lib/orb/resources/metrics.rb +4 -4
- data/lib/orb/resources/plans/external_plan_id.rb +2 -2
- data/lib/orb/resources/plans.rb +7 -7
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +17 -17
- data/lib/orb/resources/subscriptions.rb +32 -32
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/internal/type/array_of.rbi +6 -0
- data/rbi/orb/internal/type/base_model.rbi +5 -0
- data/rbi/orb/internal/type/boolean.rbi +6 -0
- data/rbi/orb/internal/type/enum.rbi +5 -0
- data/rbi/orb/internal/type/file_input.rbi +5 -0
- data/rbi/orb/internal/type/hash_of.rbi +6 -0
- data/rbi/orb/internal/type/union.rbi +5 -0
- data/rbi/orb/internal/type/unknown.rbi +6 -0
- data/rbi/orb/internal/util.rbi +30 -0
- data/rbi/orb/internal.rbi +3 -0
- data/rbi/orb/models/coupon.rbi +2 -2
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +2 -65
- data/rbi/orb/models/customers/cost_list_response.rbi +2 -65
- data/rbi/orb/models/evaluate_price_group.rbi +7 -3
- data/rbi/orb/models/invoice.rbi +10 -149
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +10 -133
- data/rbi/orb/models/invoice_line_item_create_response.rbi +8 -114
- data/rbi/orb/models/plan.rbi +8 -134
- data/rbi/orb/models/price.rbi +56 -588
- data/rbi/orb/models/subscription.rbi +6 -99
- data/rbi/orb/models/subscription_cancel_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_apply_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_cancel_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +6 -89
- data/rbi/orb/models/subscription_create_response.rbi +6 -89
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +2 -65
- data/rbi/orb/models/subscription_price_intervals_response.rbi +6 -89
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +6 -89
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +6 -89
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +6 -89
- data/rbi/orb/models/subscription_update_trial_response.rbi +6 -89
- data/rbi/orb/resources/customers/credits/ledger.rbi +4 -36
- data/rbi/orb/resources/prices/external_price_id.rbi +2 -64
- data/rbi/orb/resources/prices.rbi +4 -130
- data/rbi/orb/resources/subscriptions.rbi +1 -6
- data/sig/orb/internal/page.rbs +2 -0
- data/sig/orb/internal/type/array_of.rbs +3 -0
- data/sig/orb/internal/type/base_model.rbs +2 -0
- data/sig/orb/internal/type/boolean.rbs +3 -0
- data/sig/orb/internal/type/enum.rbs +2 -0
- data/sig/orb/internal/type/file_input.rbs +2 -0
- data/sig/orb/internal/type/hash_of.rbs +3 -0
- data/sig/orb/internal/type/union.rbs +2 -0
- data/sig/orb/internal/type/unknown.rbs +3 -0
- data/sig/orb/internal/util.rbs +12 -0
- data/sig/orb/internal.rbs +2 -0
- data/sig/orb/models/alert.rbs +32 -4
- data/sig/orb/models/alert_create_for_customer_params.rbs +9 -0
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +9 -0
- data/sig/orb/models/alert_create_for_subscription_params.rbs +9 -0
- data/sig/orb/models/alert_disable_params.rbs +5 -0
- data/sig/orb/models/alert_enable_params.rbs +5 -0
- data/sig/orb/models/alert_list_params.rbs +13 -0
- data/sig/orb/models/alert_retrieve_params.rbs +2 -0
- data/sig/orb/models/alert_update_params.rbs +7 -0
- data/sig/orb/models/amount_discount.rbs +11 -4
- data/sig/orb/models/billable_metric.rbs +13 -4
- data/sig/orb/models/coupon.rbs +14 -4
- data/sig/orb/models/coupon_archive_params.rbs +2 -0
- data/sig/orb/models/coupon_create_params.rbs +15 -0
- data/sig/orb/models/coupon_fetch_params.rbs +2 -0
- data/sig/orb/models/coupon_list_params.rbs +8 -0
- data/sig/orb/models/coupons/subscription_list_params.rbs +6 -0
- data/sig/orb/models/credit_note.rbs +88 -20
- data/sig/orb/models/credit_note_create_params.rbs +9 -0
- data/sig/orb/models/credit_note_fetch_params.rbs +2 -0
- data/sig/orb/models/credit_note_list_params.rbs +10 -0
- data/sig/orb/models/customer.rbs +86 -16
- data/sig/orb/models/customer_create_params.rbs +79 -8
- data/sig/orb/models/customer_delete_params.rbs +2 -0
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +2 -0
- data/sig/orb/models/customer_fetch_params.rbs +2 -0
- data/sig/orb/models/customer_list_params.rbs +10 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +2 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +2 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +78 -8
- data/sig/orb/models/customer_update_params.rbs +78 -8
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +7 -0
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +17 -0
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +10 -0
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +17 -0
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +8 -0
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +20 -0
- data/sig/orb/models/customers/cost_list_params.rbs +8 -0
- data/sig/orb/models/customers/cost_list_response.rbs +20 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +8 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +10 -0
- data/sig/orb/models/customers/credit_list_params.rbs +8 -0
- data/sig/orb/models/customers/credit_list_response.rbs +10 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +23 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +23 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +14 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +14 -0
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +177 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +19 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +19 -0
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +6 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +6 -0
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +18 -0
- data/sig/orb/models/dimensional_price_group.rbs +9 -0
- data/sig/orb/models/dimensional_price_group_create_params.rbs +9 -0
- data/sig/orb/models/dimensional_price_group_list_params.rbs +6 -0
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +2 -0
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +2 -0
- data/sig/orb/models/dimensional_price_groups.rbs +5 -0
- data/sig/orb/models/evaluate_price_group.rbs +10 -4
- data/sig/orb/models/event_deprecate_params.rbs +2 -0
- data/sig/orb/models/event_deprecate_response.rbs +2 -0
- data/sig/orb/models/event_ingest_params.rbs +16 -0
- data/sig/orb/models/event_ingest_response.rbs +15 -0
- data/sig/orb/models/event_search_params.rbs +7 -0
- data/sig/orb/models/event_search_response.rbs +12 -0
- data/sig/orb/models/event_update_params.rbs +9 -0
- data/sig/orb/models/event_update_response.rbs +2 -0
- data/sig/orb/models/events/backfill_close_params.rbs +2 -0
- data/sig/orb/models/events/backfill_close_response.rbs +14 -0
- data/sig/orb/models/events/backfill_create_params.rbs +11 -0
- data/sig/orb/models/events/backfill_create_response.rbs +14 -0
- data/sig/orb/models/events/backfill_fetch_params.rbs +2 -0
- data/sig/orb/models/events/backfill_fetch_response.rbs +14 -0
- data/sig/orb/models/events/backfill_list_params.rbs +6 -0
- data/sig/orb/models/events/backfill_list_response.rbs +14 -0
- data/sig/orb/models/events/backfill_revert_params.rbs +2 -0
- data/sig/orb/models/events/backfill_revert_response.rbs +14 -0
- data/sig/orb/models/events/event_volumes.rbs +8 -0
- data/sig/orb/models/events/volume_list_params.rbs +8 -0
- data/sig/orb/models/invoice.rbs +293 -36
- data/sig/orb/models/invoice_create_params.rbs +30 -4
- data/sig/orb/models/invoice_fetch_params.rbs +2 -0
- data/sig/orb/models/invoice_fetch_upcoming_params.rbs +5 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +257 -0
- data/sig/orb/models/invoice_issue_params.rbs +5 -0
- data/sig/orb/models/invoice_line_item_create_params.rbs +10 -0
- data/sig/orb/models/invoice_line_item_create_response.rbs +132 -0
- data/sig/orb/models/invoice_list_params.rbs +27 -4
- data/sig/orb/models/invoice_mark_paid_params.rbs +7 -0
- data/sig/orb/models/invoice_pay_params.rbs +2 -0
- data/sig/orb/models/invoice_update_params.rbs +5 -0
- data/sig/orb/models/invoice_void_params.rbs +2 -0
- data/sig/orb/models/item.rbs +16 -4
- data/sig/orb/models/item_create_params.rbs +2 -0
- data/sig/orb/models/item_fetch_params.rbs +2 -0
- data/sig/orb/models/item_list_params.rbs +6 -0
- data/sig/orb/models/item_update_params.rbs +15 -4
- data/sig/orb/models/metric_create_params.rbs +9 -0
- data/sig/orb/models/metric_fetch_params.rbs +2 -0
- data/sig/orb/models/metric_list_params.rbs +10 -0
- data/sig/orb/models/metric_update_params.rbs +5 -0
- data/sig/orb/models/pagination_metadata.rbs +2 -0
- data/sig/orb/models/percentage_discount.rbs +11 -4
- data/sig/orb/models/plan.rbs +141 -16
- data/sig/orb/models/plan_create_params.rbs +1070 -304
- data/sig/orb/models/plan_fetch_params.rbs +2 -0
- data/sig/orb/models/plan_list_params.rbs +11 -0
- data/sig/orb/models/plan_update_params.rbs +6 -0
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +2 -0
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -0
- data/sig/orb/models/price.rbs +2148 -460
- data/sig/orb/models/price_create_params.rbs +130 -8
- data/sig/orb/models/price_evaluate_params.rbs +10 -0
- data/sig/orb/models/price_evaluate_response.rbs +2 -0
- data/sig/orb/models/price_fetch_params.rbs +2 -0
- data/sig/orb/models/price_list_params.rbs +6 -0
- data/sig/orb/models/price_update_params.rbs +5 -0
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +2 -0
- data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -0
- data/sig/orb/models/subscription.rbs +177 -12
- data/sig/orb/models/subscription_cancel_params.rbs +7 -0
- data/sig/orb/models/subscription_cancel_response.rbs +173 -0
- data/sig/orb/models/subscription_change_apply_params.rbs +6 -0
- data/sig/orb/models/subscription_change_apply_response.rbs +186 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +2 -0
- data/sig/orb/models/subscription_change_cancel_response.rbs +186 -0
- data/sig/orb/models/subscription_change_retrieve_params.rbs +2 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +186 -0
- data/sig/orb/models/subscription_create_params.rbs +2368 -632
- data/sig/orb/models/subscription_create_response.rbs +173 -0
- data/sig/orb/models/subscription_fetch_costs_params.rbs +8 -0
- data/sig/orb/models/subscription_fetch_costs_response.rbs +20 -0
- data/sig/orb/models/subscription_fetch_params.rbs +2 -0
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +10 -0
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +13 -0
- data/sig/orb/models/subscription_fetch_usage_params.rbs +14 -0
- data/sig/orb/models/subscription_list_params.rbs +13 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +1348 -396
- data/sig/orb/models/subscription_price_intervals_response.rbs +173 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2363 -632
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +173 -0
- data/sig/orb/models/subscription_trigger_phase_params.rbs +6 -0
- data/sig/orb/models/subscription_trigger_phase_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +173 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +9 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +173 -0
- data/sig/orb/models/subscription_update_params.rbs +9 -0
- data/sig/orb/models/subscription_update_trial_params.rbs +6 -0
- data/sig/orb/models/subscription_update_trial_response.rbs +173 -0
- data/sig/orb/models/subscription_usage.rbs +48 -8
- data/sig/orb/models/subscriptions.rbs +5 -0
- data/sig/orb/models/top_level_ping_params.rbs +2 -0
- data/sig/orb/models/top_level_ping_response.rbs +2 -0
- data/sig/orb/models/trial_discount.rbs +12 -4
- data/sig/orb/models/usage_discount.rbs +11 -4
- data/sig/orb/resources/invoices.rbs +1 -1
- data/sig/orb/resources/plans.rbs +1 -1
- metadata +2 -2
@@ -106,11 +106,7 @@ module Orb
|
|
106
106
|
sig do
|
107
107
|
returns(
|
108
108
|
T::Array[
|
109
|
-
|
110
|
-
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount,
|
111
|
-
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage,
|
112
|
-
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage
|
113
|
-
)
|
109
|
+
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Variants
|
114
110
|
]
|
115
111
|
)
|
116
112
|
end
|
@@ -442,11 +438,7 @@ module Orb
|
|
442
438
|
default_invoice_memo: T.nilable(String),
|
443
439
|
discount_intervals:
|
444
440
|
T::Array[
|
445
|
-
|
446
|
-
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount,
|
447
|
-
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage,
|
448
|
-
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage
|
449
|
-
)
|
441
|
+
Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Variants
|
450
442
|
],
|
451
443
|
end_date: T.nilable(Time),
|
452
444
|
fixed_fee_quantity_schedule:
|
@@ -505,13 +497,7 @@ module Orb
|
|
505
497
|
|
506
498
|
sig do
|
507
499
|
returns(
|
508
|
-
|
509
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
510
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
511
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
512
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum,
|
513
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum
|
514
|
-
)
|
500
|
+
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Variants
|
515
501
|
)
|
516
502
|
end
|
517
503
|
attr_accessor :adjustment
|
@@ -561,13 +547,7 @@ module Orb
|
|
561
547
|
{
|
562
548
|
id: String,
|
563
549
|
adjustment:
|
564
|
-
|
565
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
566
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
567
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
568
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum,
|
569
|
-
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum
|
570
|
-
),
|
550
|
+
Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Variants,
|
571
551
|
applies_to_price_interval_ids: T::Array[String],
|
572
552
|
end_date: T.nilable(Time),
|
573
553
|
start_date: Time
|
@@ -1601,40 +1581,7 @@ module Orb
|
|
1601
1581
|
#
|
1602
1582
|
# For more on the types of prices, see
|
1603
1583
|
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1604
|
-
sig
|
1605
|
-
returns(
|
1606
|
-
T.any(
|
1607
|
-
Orb::Price::Unit,
|
1608
|
-
Orb::Price::Package,
|
1609
|
-
Orb::Price::Matrix,
|
1610
|
-
Orb::Price::Tiered,
|
1611
|
-
Orb::Price::TieredBps,
|
1612
|
-
Orb::Price::Bps,
|
1613
|
-
Orb::Price::BulkBps,
|
1614
|
-
Orb::Price::Bulk,
|
1615
|
-
Orb::Price::ThresholdTotalAmount,
|
1616
|
-
Orb::Price::TieredPackage,
|
1617
|
-
Orb::Price::GroupedTiered,
|
1618
|
-
Orb::Price::TieredWithMinimum,
|
1619
|
-
Orb::Price::TieredPackageWithMinimum,
|
1620
|
-
Orb::Price::PackageWithAllocation,
|
1621
|
-
Orb::Price::UnitWithPercent,
|
1622
|
-
Orb::Price::MatrixWithAllocation,
|
1623
|
-
Orb::Price::TieredWithProration,
|
1624
|
-
Orb::Price::UnitWithProration,
|
1625
|
-
Orb::Price::GroupedAllocation,
|
1626
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1627
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1628
|
-
Orb::Price::MatrixWithDisplayName,
|
1629
|
-
Orb::Price::BulkWithProration,
|
1630
|
-
Orb::Price::GroupedTieredPackage,
|
1631
|
-
Orb::Price::MaxGroupTieredPackage,
|
1632
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1633
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1634
|
-
Orb::Price::CumulativeGroupedBulk
|
1635
|
-
)
|
1636
|
-
)
|
1637
|
-
end
|
1584
|
+
sig { returns(Orb::Price::Variants) }
|
1638
1585
|
attr_accessor :price
|
1639
1586
|
|
1640
1587
|
# The start date of the price interval. This is the date that Orb starts billing
|
@@ -1754,37 +1701,7 @@ module Orb
|
|
1754
1701
|
Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition
|
1755
1702
|
]
|
1756
1703
|
),
|
1757
|
-
price:
|
1758
|
-
T.any(
|
1759
|
-
Orb::Price::Unit,
|
1760
|
-
Orb::Price::Package,
|
1761
|
-
Orb::Price::Matrix,
|
1762
|
-
Orb::Price::Tiered,
|
1763
|
-
Orb::Price::TieredBps,
|
1764
|
-
Orb::Price::Bps,
|
1765
|
-
Orb::Price::BulkBps,
|
1766
|
-
Orb::Price::Bulk,
|
1767
|
-
Orb::Price::ThresholdTotalAmount,
|
1768
|
-
Orb::Price::TieredPackage,
|
1769
|
-
Orb::Price::GroupedTiered,
|
1770
|
-
Orb::Price::TieredWithMinimum,
|
1771
|
-
Orb::Price::TieredPackageWithMinimum,
|
1772
|
-
Orb::Price::PackageWithAllocation,
|
1773
|
-
Orb::Price::UnitWithPercent,
|
1774
|
-
Orb::Price::MatrixWithAllocation,
|
1775
|
-
Orb::Price::TieredWithProration,
|
1776
|
-
Orb::Price::UnitWithProration,
|
1777
|
-
Orb::Price::GroupedAllocation,
|
1778
|
-
Orb::Price::GroupedWithProratedMinimum,
|
1779
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
1780
|
-
Orb::Price::MatrixWithDisplayName,
|
1781
|
-
Orb::Price::BulkWithProration,
|
1782
|
-
Orb::Price::GroupedTieredPackage,
|
1783
|
-
Orb::Price::MaxGroupTieredPackage,
|
1784
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
1785
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
1786
|
-
Orb::Price::CumulativeGroupedBulk
|
1787
|
-
),
|
1704
|
+
price: Orb::Price::Variants,
|
1788
1705
|
start_date: Time,
|
1789
1706
|
usage_customer_ids: T.nilable(T::Array[String])
|
1790
1707
|
}
|
@@ -108,15 +108,7 @@ module Orb
|
|
108
108
|
request_options: Orb::RequestOptions::OrHash
|
109
109
|
).returns(
|
110
110
|
Orb::Internal::Page[
|
111
|
-
|
112
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Increment,
|
113
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Decrement,
|
114
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange,
|
115
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry,
|
116
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Void,
|
117
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated,
|
118
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Amendment
|
119
|
-
)
|
111
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Variants
|
120
112
|
]
|
121
113
|
)
|
122
114
|
end
|
@@ -274,15 +266,7 @@ module Orb
|
|
274
266
|
),
|
275
267
|
request_options: Orb::RequestOptions::OrHash
|
276
268
|
).returns(
|
277
|
-
|
278
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment,
|
279
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement,
|
280
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange,
|
281
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry,
|
282
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void,
|
283
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated,
|
284
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment
|
285
|
-
)
|
269
|
+
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Variants
|
286
270
|
)
|
287
271
|
end
|
288
272
|
def create_entry(
|
@@ -461,15 +445,7 @@ module Orb
|
|
461
445
|
),
|
462
446
|
request_options: Orb::RequestOptions::OrHash
|
463
447
|
).returns(
|
464
|
-
|
465
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment,
|
466
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement,
|
467
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange,
|
468
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry,
|
469
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void,
|
470
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated,
|
471
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment
|
472
|
-
)
|
448
|
+
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Variants
|
473
449
|
)
|
474
450
|
end
|
475
451
|
def create_entry_by_external_id(
|
@@ -617,15 +593,7 @@ module Orb
|
|
617
593
|
request_options: Orb::RequestOptions::OrHash
|
618
594
|
).returns(
|
619
595
|
Orb::Internal::Page[
|
620
|
-
|
621
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment,
|
622
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement,
|
623
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange,
|
624
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry,
|
625
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void,
|
626
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated,
|
627
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment
|
628
|
-
)
|
596
|
+
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Variants
|
629
597
|
]
|
630
598
|
)
|
631
599
|
end
|
@@ -12,38 +12,7 @@ module Orb
|
|
12
12
|
external_price_id: String,
|
13
13
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
14
14
|
request_options: Orb::RequestOptions::OrHash
|
15
|
-
).returns(
|
16
|
-
T.any(
|
17
|
-
Orb::Price::Unit,
|
18
|
-
Orb::Price::Package,
|
19
|
-
Orb::Price::Matrix,
|
20
|
-
Orb::Price::Tiered,
|
21
|
-
Orb::Price::TieredBps,
|
22
|
-
Orb::Price::Bps,
|
23
|
-
Orb::Price::BulkBps,
|
24
|
-
Orb::Price::Bulk,
|
25
|
-
Orb::Price::ThresholdTotalAmount,
|
26
|
-
Orb::Price::TieredPackage,
|
27
|
-
Orb::Price::GroupedTiered,
|
28
|
-
Orb::Price::TieredWithMinimum,
|
29
|
-
Orb::Price::TieredPackageWithMinimum,
|
30
|
-
Orb::Price::PackageWithAllocation,
|
31
|
-
Orb::Price::UnitWithPercent,
|
32
|
-
Orb::Price::MatrixWithAllocation,
|
33
|
-
Orb::Price::TieredWithProration,
|
34
|
-
Orb::Price::UnitWithProration,
|
35
|
-
Orb::Price::GroupedAllocation,
|
36
|
-
Orb::Price::GroupedWithProratedMinimum,
|
37
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
38
|
-
Orb::Price::MatrixWithDisplayName,
|
39
|
-
Orb::Price::BulkWithProration,
|
40
|
-
Orb::Price::GroupedTieredPackage,
|
41
|
-
Orb::Price::MaxGroupTieredPackage,
|
42
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
43
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
44
|
-
Orb::Price::CumulativeGroupedBulk
|
45
|
-
)
|
46
|
-
)
|
15
|
+
).returns(Orb::Price::Variants)
|
47
16
|
end
|
48
17
|
def update(
|
49
18
|
external_price_id,
|
@@ -62,38 +31,7 @@ module Orb
|
|
62
31
|
params(
|
63
32
|
external_price_id: String,
|
64
33
|
request_options: Orb::RequestOptions::OrHash
|
65
|
-
).returns(
|
66
|
-
T.any(
|
67
|
-
Orb::Price::Unit,
|
68
|
-
Orb::Price::Package,
|
69
|
-
Orb::Price::Matrix,
|
70
|
-
Orb::Price::Tiered,
|
71
|
-
Orb::Price::TieredBps,
|
72
|
-
Orb::Price::Bps,
|
73
|
-
Orb::Price::BulkBps,
|
74
|
-
Orb::Price::Bulk,
|
75
|
-
Orb::Price::ThresholdTotalAmount,
|
76
|
-
Orb::Price::TieredPackage,
|
77
|
-
Orb::Price::GroupedTiered,
|
78
|
-
Orb::Price::TieredWithMinimum,
|
79
|
-
Orb::Price::TieredPackageWithMinimum,
|
80
|
-
Orb::Price::PackageWithAllocation,
|
81
|
-
Orb::Price::UnitWithPercent,
|
82
|
-
Orb::Price::MatrixWithAllocation,
|
83
|
-
Orb::Price::TieredWithProration,
|
84
|
-
Orb::Price::UnitWithProration,
|
85
|
-
Orb::Price::GroupedAllocation,
|
86
|
-
Orb::Price::GroupedWithProratedMinimum,
|
87
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
88
|
-
Orb::Price::MatrixWithDisplayName,
|
89
|
-
Orb::Price::BulkWithProration,
|
90
|
-
Orb::Price::GroupedTieredPackage,
|
91
|
-
Orb::Price::MaxGroupTieredPackage,
|
92
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
93
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
94
|
-
Orb::Price::CumulativeGroupedBulk
|
95
|
-
)
|
96
|
-
)
|
34
|
+
).returns(Orb::Price::Variants)
|
97
35
|
end
|
98
36
|
def fetch(external_price_id, request_options: {})
|
99
37
|
end
|
@@ -69,38 +69,7 @@ module Orb
|
|
69
69
|
),
|
70
70
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
71
71
|
request_options: Orb::RequestOptions::OrHash
|
72
|
-
).returns(
|
73
|
-
T.any(
|
74
|
-
Orb::Price::Unit,
|
75
|
-
Orb::Price::Package,
|
76
|
-
Orb::Price::Matrix,
|
77
|
-
Orb::Price::Tiered,
|
78
|
-
Orb::Price::TieredBps,
|
79
|
-
Orb::Price::Bps,
|
80
|
-
Orb::Price::BulkBps,
|
81
|
-
Orb::Price::Bulk,
|
82
|
-
Orb::Price::ThresholdTotalAmount,
|
83
|
-
Orb::Price::TieredPackage,
|
84
|
-
Orb::Price::GroupedTiered,
|
85
|
-
Orb::Price::TieredWithMinimum,
|
86
|
-
Orb::Price::TieredPackageWithMinimum,
|
87
|
-
Orb::Price::PackageWithAllocation,
|
88
|
-
Orb::Price::UnitWithPercent,
|
89
|
-
Orb::Price::MatrixWithAllocation,
|
90
|
-
Orb::Price::TieredWithProration,
|
91
|
-
Orb::Price::UnitWithProration,
|
92
|
-
Orb::Price::GroupedAllocation,
|
93
|
-
Orb::Price::GroupedWithProratedMinimum,
|
94
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
95
|
-
Orb::Price::MatrixWithDisplayName,
|
96
|
-
Orb::Price::BulkWithProration,
|
97
|
-
Orb::Price::GroupedTieredPackage,
|
98
|
-
Orb::Price::MaxGroupTieredPackage,
|
99
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
100
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
101
|
-
Orb::Price::CumulativeGroupedBulk
|
102
|
-
)
|
103
|
-
)
|
72
|
+
).returns(Orb::Price::Variants)
|
104
73
|
end
|
105
74
|
def create(
|
106
75
|
# The cadence to bill for this price on.
|
@@ -177,38 +146,7 @@ module Orb
|
|
177
146
|
price_id: String,
|
178
147
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
179
148
|
request_options: Orb::RequestOptions::OrHash
|
180
|
-
).returns(
|
181
|
-
T.any(
|
182
|
-
Orb::Price::Unit,
|
183
|
-
Orb::Price::Package,
|
184
|
-
Orb::Price::Matrix,
|
185
|
-
Orb::Price::Tiered,
|
186
|
-
Orb::Price::TieredBps,
|
187
|
-
Orb::Price::Bps,
|
188
|
-
Orb::Price::BulkBps,
|
189
|
-
Orb::Price::Bulk,
|
190
|
-
Orb::Price::ThresholdTotalAmount,
|
191
|
-
Orb::Price::TieredPackage,
|
192
|
-
Orb::Price::GroupedTiered,
|
193
|
-
Orb::Price::TieredWithMinimum,
|
194
|
-
Orb::Price::TieredPackageWithMinimum,
|
195
|
-
Orb::Price::PackageWithAllocation,
|
196
|
-
Orb::Price::UnitWithPercent,
|
197
|
-
Orb::Price::MatrixWithAllocation,
|
198
|
-
Orb::Price::TieredWithProration,
|
199
|
-
Orb::Price::UnitWithProration,
|
200
|
-
Orb::Price::GroupedAllocation,
|
201
|
-
Orb::Price::GroupedWithProratedMinimum,
|
202
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
203
|
-
Orb::Price::MatrixWithDisplayName,
|
204
|
-
Orb::Price::BulkWithProration,
|
205
|
-
Orb::Price::GroupedTieredPackage,
|
206
|
-
Orb::Price::MaxGroupTieredPackage,
|
207
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
208
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
209
|
-
Orb::Price::CumulativeGroupedBulk
|
210
|
-
)
|
211
|
-
)
|
149
|
+
).returns(Orb::Price::Variants)
|
212
150
|
end
|
213
151
|
def update(
|
214
152
|
price_id,
|
@@ -227,40 +165,7 @@ module Orb
|
|
227
165
|
cursor: T.nilable(String),
|
228
166
|
limit: Integer,
|
229
167
|
request_options: Orb::RequestOptions::OrHash
|
230
|
-
).returns(
|
231
|
-
Orb::Internal::Page[
|
232
|
-
T.any(
|
233
|
-
Orb::Price::Unit,
|
234
|
-
Orb::Price::Package,
|
235
|
-
Orb::Price::Matrix,
|
236
|
-
Orb::Price::Tiered,
|
237
|
-
Orb::Price::TieredBps,
|
238
|
-
Orb::Price::Bps,
|
239
|
-
Orb::Price::BulkBps,
|
240
|
-
Orb::Price::Bulk,
|
241
|
-
Orb::Price::ThresholdTotalAmount,
|
242
|
-
Orb::Price::TieredPackage,
|
243
|
-
Orb::Price::GroupedTiered,
|
244
|
-
Orb::Price::TieredWithMinimum,
|
245
|
-
Orb::Price::TieredPackageWithMinimum,
|
246
|
-
Orb::Price::PackageWithAllocation,
|
247
|
-
Orb::Price::UnitWithPercent,
|
248
|
-
Orb::Price::MatrixWithAllocation,
|
249
|
-
Orb::Price::TieredWithProration,
|
250
|
-
Orb::Price::UnitWithProration,
|
251
|
-
Orb::Price::GroupedAllocation,
|
252
|
-
Orb::Price::GroupedWithProratedMinimum,
|
253
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
254
|
-
Orb::Price::MatrixWithDisplayName,
|
255
|
-
Orb::Price::BulkWithProration,
|
256
|
-
Orb::Price::GroupedTieredPackage,
|
257
|
-
Orb::Price::MaxGroupTieredPackage,
|
258
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
259
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
260
|
-
Orb::Price::CumulativeGroupedBulk
|
261
|
-
)
|
262
|
-
]
|
263
|
-
)
|
168
|
+
).returns(Orb::Internal::Page[Orb::Price::Variants])
|
264
169
|
end
|
265
170
|
def list(
|
266
171
|
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
@@ -332,38 +237,7 @@ module Orb
|
|
332
237
|
params(
|
333
238
|
price_id: String,
|
334
239
|
request_options: Orb::RequestOptions::OrHash
|
335
|
-
).returns(
|
336
|
-
T.any(
|
337
|
-
Orb::Price::Unit,
|
338
|
-
Orb::Price::Package,
|
339
|
-
Orb::Price::Matrix,
|
340
|
-
Orb::Price::Tiered,
|
341
|
-
Orb::Price::TieredBps,
|
342
|
-
Orb::Price::Bps,
|
343
|
-
Orb::Price::BulkBps,
|
344
|
-
Orb::Price::Bulk,
|
345
|
-
Orb::Price::ThresholdTotalAmount,
|
346
|
-
Orb::Price::TieredPackage,
|
347
|
-
Orb::Price::GroupedTiered,
|
348
|
-
Orb::Price::TieredWithMinimum,
|
349
|
-
Orb::Price::TieredPackageWithMinimum,
|
350
|
-
Orb::Price::PackageWithAllocation,
|
351
|
-
Orb::Price::UnitWithPercent,
|
352
|
-
Orb::Price::MatrixWithAllocation,
|
353
|
-
Orb::Price::TieredWithProration,
|
354
|
-
Orb::Price::UnitWithProration,
|
355
|
-
Orb::Price::GroupedAllocation,
|
356
|
-
Orb::Price::GroupedWithProratedMinimum,
|
357
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
358
|
-
Orb::Price::MatrixWithDisplayName,
|
359
|
-
Orb::Price::BulkWithProration,
|
360
|
-
Orb::Price::GroupedTieredPackage,
|
361
|
-
Orb::Price::MaxGroupTieredPackage,
|
362
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
363
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
364
|
-
Orb::Price::CumulativeGroupedBulk
|
365
|
-
)
|
366
|
-
)
|
240
|
+
).returns(Orb::Price::Variants)
|
367
241
|
end
|
368
242
|
def fetch(price_id, request_options: {})
|
369
243
|
end
|
@@ -863,12 +863,7 @@ module Orb
|
|
863
863
|
view_mode:
|
864
864
|
T.nilable(Orb::SubscriptionFetchUsageParams::ViewMode::OrSymbol),
|
865
865
|
request_options: Orb::RequestOptions::OrHash
|
866
|
-
).returns(
|
867
|
-
T.any(
|
868
|
-
Orb::SubscriptionUsage::UngroupedSubscriptionUsage,
|
869
|
-
Orb::SubscriptionUsage::GroupedSubscriptionUsage
|
870
|
-
)
|
871
|
-
)
|
866
|
+
).returns(Orb::SubscriptionUsage::Variants)
|
872
867
|
end
|
873
868
|
def fetch_usage(
|
874
869
|
subscription_id,
|
data/sig/orb/internal/page.rbs
CHANGED
@@ -3,6 +3,7 @@ module Orb
|
|
3
3
|
module Type
|
4
4
|
class ArrayOf[Elem]
|
5
5
|
include Orb::Internal::Type::Converter
|
6
|
+
include Orb::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Orb
|
|
27
28
|
state: Orb::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Array[top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Orb
|
|
3
3
|
module Type
|
4
4
|
class Boolean
|
5
5
|
extend Orb::Internal::Type::Converter
|
6
|
+
extend Orb::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Orb
|
|
17
18
|
bool | top value,
|
18
19
|
state: Orb::Internal::Type::Converter::dump_state
|
19
20
|
) -> (bool | top)
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -3,6 +3,7 @@ module Orb
|
|
3
3
|
module Type
|
4
4
|
class HashOf[Elem]
|
5
5
|
include Orb::Internal::Type::Converter
|
6
|
+
include Orb::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Orb
|
|
27
28
|
state: Orb::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Hash[Symbol, top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Orb
|
|
3
3
|
module Type
|
4
4
|
class Unknown
|
5
5
|
extend Orb::Internal::Type::Converter
|
6
|
+
extend Orb::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Orb
|
|
17
18
|
top value,
|
18
19
|
state: Orb::Internal::Type::Converter::dump_state
|
19
20
|
) -> top
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
data/sig/orb/internal/util.rbs
CHANGED
@@ -5,6 +5,10 @@ module Orb
|
|
5
5
|
|
6
6
|
def self?.monotonic_secs: -> Float
|
7
7
|
|
8
|
+
def self?.walk_namespaces: (
|
9
|
+
Module | Class ns
|
10
|
+
) -> Enumerable[(Module | Class)]
|
11
|
+
|
8
12
|
def self?.arch: -> String
|
9
13
|
|
10
14
|
def self?.os: -> String
|
@@ -166,7 +170,15 @@ module Orb
|
|
166
170
|
|
167
171
|
def const_missing: (Symbol name) -> void
|
168
172
|
|
173
|
+
def sorbet_constant_defined?: (Symbol name) -> bool
|
174
|
+
|
169
175
|
def define_sorbet_constant!: (Symbol name) { -> top } -> void
|
176
|
+
|
177
|
+
def to_sorbet_type: -> top
|
178
|
+
|
179
|
+
def self.to_sorbet_type: (
|
180
|
+
Orb::Internal::Util::SorbetRuntimeSupport | top `type`
|
181
|
+
) -> top
|
170
182
|
end
|
171
183
|
end
|
172
184
|
end
|