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
@@ -265,9 +265,9 @@ module Orb
|
|
265
265
|
#
|
266
266
|
# @overload create(add_adjustments: nil, add_prices: nil, align_billing_with_subscription_start_date: nil, auto_collection: nil, aws_region: nil, billing_cycle_anchor_configuration: nil, coupon_redemption_code: nil, credits_overage_rate: nil, customer_id: nil, default_invoice_memo: nil, end_date: nil, external_customer_id: nil, external_marketplace: nil, external_marketplace_reporting_id: nil, external_plan_id: nil, filter: nil, initial_phase_order: nil, invoicing_threshold: nil, metadata: nil, net_terms: nil, per_credit_overage_amount: nil, plan_id: nil, plan_version_number: nil, price_overrides: nil, remove_adjustments: nil, remove_prices: nil, replace_adjustments: nil, replace_prices: nil, start_date: nil, trial_duration_days: nil, usage_customer_ids: nil, request_options: {})
|
267
267
|
#
|
268
|
-
# @param add_adjustments [Array<Orb::SubscriptionCreateParams::AddAdjustment>, nil] Additional adjustments to be added to the subscription. (Only available for acco
|
268
|
+
# @param add_adjustments [Array<Orb::Models::SubscriptionCreateParams::AddAdjustment>, nil] Additional adjustments to be added to the subscription. (Only available for acco
|
269
269
|
#
|
270
|
-
# @param add_prices [Array<Orb::SubscriptionCreateParams::AddPrice>, nil] Additional prices to be added to the subscription. (Only available for accounts
|
270
|
+
# @param add_prices [Array<Orb::Models::SubscriptionCreateParams::AddPrice>, nil] Additional prices to be added to the subscription. (Only available for accounts
|
271
271
|
#
|
272
272
|
# @param align_billing_with_subscription_start_date [Boolean]
|
273
273
|
#
|
@@ -275,7 +275,7 @@ module Orb
|
|
275
275
|
#
|
276
276
|
# @param aws_region [String, nil]
|
277
277
|
#
|
278
|
-
# @param billing_cycle_anchor_configuration [Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil]
|
278
|
+
# @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil]
|
279
279
|
#
|
280
280
|
# @param coupon_redemption_code [String, nil] Redemption code to be used for this subscription. If the coupon cannot be found
|
281
281
|
#
|
@@ -289,7 +289,7 @@ module Orb
|
|
289
289
|
#
|
290
290
|
# @param external_customer_id [String, nil]
|
291
291
|
#
|
292
|
-
# @param external_marketplace [Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace, nil]
|
292
|
+
# @param external_marketplace [Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace, nil]
|
293
293
|
#
|
294
294
|
# @param external_marketplace_reporting_id [String, nil]
|
295
295
|
#
|
@@ -313,13 +313,13 @@ module Orb
|
|
313
313
|
#
|
314
314
|
# @param price_overrides [Array<Object>, nil] Optionally provide a list of overrides for prices on the plan
|
315
315
|
#
|
316
|
-
# @param remove_adjustments [Array<Orb::SubscriptionCreateParams::RemoveAdjustment>, nil] Plan adjustments to be removed from the subscription. (Only available for accoun
|
316
|
+
# @param remove_adjustments [Array<Orb::Models::SubscriptionCreateParams::RemoveAdjustment>, nil] Plan adjustments to be removed from the subscription. (Only available for accoun
|
317
317
|
#
|
318
|
-
# @param remove_prices [Array<Orb::SubscriptionCreateParams::RemovePrice>, nil] Plan prices to be removed from the subscription. (Only available for accounts th
|
318
|
+
# @param remove_prices [Array<Orb::Models::SubscriptionCreateParams::RemovePrice>, nil] Plan prices to be removed from the subscription. (Only available for accounts th
|
319
319
|
#
|
320
|
-
# @param replace_adjustments [Array<Orb::SubscriptionCreateParams::ReplaceAdjustment>, nil] Plan adjustments to be replaced with additional adjustments on the subscription.
|
320
|
+
# @param replace_adjustments [Array<Orb::Models::SubscriptionCreateParams::ReplaceAdjustment>, nil] Plan adjustments to be replaced with additional adjustments on the subscription.
|
321
321
|
#
|
322
|
-
# @param replace_prices [Array<Orb::SubscriptionCreateParams::ReplacePrice>, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava
|
322
|
+
# @param replace_prices [Array<Orb::Models::SubscriptionCreateParams::ReplacePrice>, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava
|
323
323
|
#
|
324
324
|
# @param start_date [Time, nil]
|
325
325
|
#
|
@@ -366,7 +366,7 @@ module Orb
|
|
366
366
|
#
|
367
367
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
368
368
|
#
|
369
|
-
# @return [Orb::Subscription]
|
369
|
+
# @return [Orb::Models::Subscription]
|
370
370
|
#
|
371
371
|
# @see Orb::Models::SubscriptionUpdateParams
|
372
372
|
def update(subscription_id, params = {})
|
@@ -411,11 +411,11 @@ module Orb
|
|
411
411
|
#
|
412
412
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
413
413
|
#
|
414
|
-
# @param status [Symbol, Orb::SubscriptionListParams::Status, nil]
|
414
|
+
# @param status [Symbol, Orb::Models::SubscriptionListParams::Status, nil]
|
415
415
|
#
|
416
416
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
417
417
|
#
|
418
|
-
# @return [Orb::Internal::Page<Orb::Subscription>]
|
418
|
+
# @return [Orb::Internal::Page<Orb::Models::Subscription>]
|
419
419
|
#
|
420
420
|
# @see Orb::Models::SubscriptionListParams
|
421
421
|
def list(params = {})
|
@@ -504,7 +504,7 @@ module Orb
|
|
504
504
|
#
|
505
505
|
# @param subscription_id [String]
|
506
506
|
#
|
507
|
-
# @param cancel_option [Symbol, Orb::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation
|
507
|
+
# @param cancel_option [Symbol, Orb::Models::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation
|
508
508
|
#
|
509
509
|
# @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
|
510
510
|
#
|
@@ -534,7 +534,7 @@ module Orb
|
|
534
534
|
# @param subscription_id [String]
|
535
535
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
536
536
|
#
|
537
|
-
# @return [Orb::Subscription]
|
537
|
+
# @return [Orb::Models::Subscription]
|
538
538
|
#
|
539
539
|
# @see Orb::Models::SubscriptionFetchParams
|
540
540
|
def fetch(subscription_id, params = {})
|
@@ -570,7 +570,7 @@ module Orb
|
|
570
570
|
#
|
571
571
|
# @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`.
|
572
572
|
#
|
573
|
-
# @param view_mode [Symbol, Orb::SubscriptionFetchCostsParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per
|
573
|
+
# @param view_mode [Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per
|
574
574
|
#
|
575
575
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
576
576
|
#
|
@@ -842,7 +842,7 @@ module Orb
|
|
842
842
|
#
|
843
843
|
# @param first_dimension_value [String, nil]
|
844
844
|
#
|
845
|
-
# @param granularity [Symbol, Orb::SubscriptionFetchUsageParams::Granularity, nil] This determines the windowing of usage reporting.
|
845
|
+
# @param granularity [Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity, nil] This determines the windowing of usage reporting.
|
846
846
|
#
|
847
847
|
# @param group_by [String, nil] Groups per-price usage by the key provided.
|
848
848
|
#
|
@@ -854,11 +854,11 @@ module Orb
|
|
854
854
|
#
|
855
855
|
# @param timeframe_start [Time, nil] Usage returned is inclusive of `timeframe_start`.
|
856
856
|
#
|
857
|
-
# @param view_mode [Symbol, Orb::SubscriptionFetchUsageParams::ViewMode, nil] Controls whether Orb returns cumulative usage since the start of the billing per
|
857
|
+
# @param view_mode [Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode, nil] Controls whether Orb returns cumulative usage since the start of the billing per
|
858
858
|
#
|
859
859
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
860
860
|
#
|
861
|
-
# @return [Orb::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::SubscriptionUsage::GroupedSubscriptionUsage]
|
861
|
+
# @return [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage]
|
862
862
|
#
|
863
863
|
# @see Orb::Models::SubscriptionFetchUsageParams
|
864
864
|
def fetch_usage(subscription_id, params = {})
|
@@ -952,15 +952,15 @@ module Orb
|
|
952
952
|
#
|
953
953
|
# @param subscription_id [String]
|
954
954
|
#
|
955
|
-
# @param add [Array<Orb::SubscriptionPriceIntervalsParams::Add>] A list of price intervals to add to the subscription.
|
955
|
+
# @param add [Array<Orb::Models::SubscriptionPriceIntervalsParams::Add>] A list of price intervals to add to the subscription.
|
956
956
|
#
|
957
|
-
# @param add_adjustments [Array<Orb::SubscriptionPriceIntervalsParams::AddAdjustment>] A list of adjustments to add to the subscription.
|
957
|
+
# @param add_adjustments [Array<Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment>] A list of adjustments to add to the subscription.
|
958
958
|
#
|
959
959
|
# @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
|
960
960
|
#
|
961
|
-
# @param edit [Array<Orb::SubscriptionPriceIntervalsParams::Edit>] A list of price intervals to edit on the subscription.
|
961
|
+
# @param edit [Array<Orb::Models::SubscriptionPriceIntervalsParams::Edit>] A list of price intervals to edit on the subscription.
|
962
962
|
#
|
963
|
-
# @param edit_adjustments [Array<Orb::SubscriptionPriceIntervalsParams::EditAdjustment>] A list of adjustments to edit on the subscription.
|
963
|
+
# @param edit_adjustments [Array<Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment>] A list of adjustments to edit on the subscription.
|
964
964
|
#
|
965
965
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
966
966
|
#
|
@@ -1169,19 +1169,19 @@ module Orb
|
|
1169
1169
|
#
|
1170
1170
|
# @param subscription_id [String]
|
1171
1171
|
#
|
1172
|
-
# @param change_option [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ChangeOption]
|
1172
|
+
# @param change_option [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption]
|
1173
1173
|
#
|
1174
|
-
# @param add_adjustments [Array<Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment>, nil] Additional adjustments to be added to the subscription. (Only available for acco
|
1174
|
+
# @param add_adjustments [Array<Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment>, nil] Additional adjustments to be added to the subscription. (Only available for acco
|
1175
1175
|
#
|
1176
|
-
# @param add_prices [Array<Orb::SubscriptionSchedulePlanChangeParams::AddPrice>, nil] Additional prices to be added to the subscription. (Only available for accounts
|
1176
|
+
# @param add_prices [Array<Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice>, nil] Additional prices to be added to the subscription. (Only available for accounts
|
1177
1177
|
#
|
1178
1178
|
# @param align_billing_with_plan_change_date [Boolean, nil] [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be al
|
1179
1179
|
#
|
1180
1180
|
# @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c
|
1181
1181
|
#
|
1182
|
-
# @param billing_cycle_alignment [Symbol, Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] Reset billing periods to be aligned with the plan change's effective date or sta
|
1182
|
+
# @param billing_cycle_alignment [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] Reset billing periods to be aligned with the plan change's effective date or sta
|
1183
1183
|
#
|
1184
|
-
# @param billing_cycle_anchor_configuration [Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil]
|
1184
|
+
# @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil]
|
1185
1185
|
#
|
1186
1186
|
# @param change_date [Time, nil] The date that the plan change should take effect. This parameter can only be pas
|
1187
1187
|
#
|
@@ -1209,13 +1209,13 @@ module Orb
|
|
1209
1209
|
#
|
1210
1210
|
# @param price_overrides [Array<Object>, nil] Optionally provide a list of overrides for prices on the plan
|
1211
1211
|
#
|
1212
|
-
# @param remove_adjustments [Array<Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment>, nil] Plan adjustments to be removed from the subscription. (Only available for accoun
|
1212
|
+
# @param remove_adjustments [Array<Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment>, nil] Plan adjustments to be removed from the subscription. (Only available for accoun
|
1213
1213
|
#
|
1214
|
-
# @param remove_prices [Array<Orb::SubscriptionSchedulePlanChangeParams::RemovePrice>, nil] Plan prices to be removed from the subscription. (Only available for accounts th
|
1214
|
+
# @param remove_prices [Array<Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice>, nil] Plan prices to be removed from the subscription. (Only available for accounts th
|
1215
1215
|
#
|
1216
|
-
# @param replace_adjustments [Array<Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment>, nil] Plan adjustments to be replaced with additional adjustments on the subscription.
|
1216
|
+
# @param replace_adjustments [Array<Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment>, nil] Plan adjustments to be replaced with additional adjustments on the subscription.
|
1217
1217
|
#
|
1218
|
-
# @param replace_prices [Array<Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice>, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava
|
1218
|
+
# @param replace_prices [Array<Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice>, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava
|
1219
1219
|
#
|
1220
1220
|
# @param trial_duration_days [Integer, nil] The duration of the trial period in days. If not provided, this defaults to the
|
1221
1221
|
#
|
@@ -1367,7 +1367,7 @@ module Orb
|
|
1367
1367
|
#
|
1368
1368
|
# @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
|
1369
1369
|
#
|
1370
|
-
# @param change_option [Symbol, Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] Determines when the change takes effect. Note that if `effective_date` is specif
|
1370
|
+
# @param change_option [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] Determines when the change takes effect. Note that if `effective_date` is specif
|
1371
1371
|
#
|
1372
1372
|
# @param effective_date [Date, nil] The date that the quantity change should take effect, localized to the customer'
|
1373
1373
|
#
|
@@ -1413,7 +1413,7 @@ module Orb
|
|
1413
1413
|
#
|
1414
1414
|
# @param subscription_id [String]
|
1415
1415
|
#
|
1416
|
-
# @param trial_end_date [Time, Symbol, Orb::SubscriptionUpdateTrialParams::TrialEndDate] The new date that the trial should end, or the literal string `immediate` to end
|
1416
|
+
# @param trial_end_date [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate] The new date that the trial should end, or the literal string `immediate` to end
|
1417
1417
|
#
|
1418
1418
|
# @param shift [Boolean] If true, shifts subsequent price and adjustment intervals (preserving their dura
|
1419
1419
|
#
|
data/lib/orb/version.rb
CHANGED
@@ -8,6 +8,7 @@ module Orb
|
|
8
8
|
# Array of items of a given type.
|
9
9
|
class ArrayOf
|
10
10
|
include Orb::Internal::Type::Converter
|
11
|
+
include Orb::Internal::Util::SorbetRuntimeSupport
|
11
12
|
|
12
13
|
abstract!
|
13
14
|
|
@@ -63,6 +64,11 @@ module Orb
|
|
63
64
|
def dump(value, state:)
|
64
65
|
end
|
65
66
|
|
67
|
+
# @api private
|
68
|
+
sig { returns(T.anything) }
|
69
|
+
def to_sorbet_type
|
70
|
+
end
|
71
|
+
|
66
72
|
# @api private
|
67
73
|
sig { returns(Elem) }
|
68
74
|
protected def item_type
|
@@ -8,6 +8,7 @@ module Orb
|
|
8
8
|
# Ruby has no Boolean class; this is something for models to refer to.
|
9
9
|
class Boolean
|
10
10
|
extend Orb::Internal::Type::Converter
|
11
|
+
extend Orb::Internal::Util::SorbetRuntimeSupport
|
11
12
|
|
12
13
|
abstract!
|
13
14
|
|
@@ -43,6 +44,11 @@ module Orb
|
|
43
44
|
end
|
44
45
|
def dump(value, state:)
|
45
46
|
end
|
47
|
+
|
48
|
+
# @api private
|
49
|
+
sig { returns(T.anything) }
|
50
|
+
def to_sorbet_type
|
51
|
+
end
|
46
52
|
end
|
47
53
|
end
|
48
54
|
end
|
@@ -8,6 +8,7 @@ module Orb
|
|
8
8
|
# Hash of items of a given type.
|
9
9
|
class HashOf
|
10
10
|
include Orb::Internal::Type::Converter
|
11
|
+
include Orb::Internal::Util::SorbetRuntimeSupport
|
11
12
|
|
12
13
|
abstract!
|
13
14
|
|
@@ -63,6 +64,11 @@ module Orb
|
|
63
64
|
def dump(value, state:)
|
64
65
|
end
|
65
66
|
|
67
|
+
# @api private
|
68
|
+
sig { returns(T.anything) }
|
69
|
+
def to_sorbet_type
|
70
|
+
end
|
71
|
+
|
66
72
|
# @api private
|
67
73
|
sig { returns(Elem) }
|
68
74
|
protected def item_type
|
@@ -8,6 +8,7 @@ module Orb
|
|
8
8
|
# When we don't know what to expect for the value.
|
9
9
|
class Unknown
|
10
10
|
extend Orb::Internal::Type::Converter
|
11
|
+
extend Orb::Internal::Util::SorbetRuntimeSupport
|
11
12
|
|
12
13
|
abstract!
|
13
14
|
|
@@ -43,6 +44,11 @@ module Orb
|
|
43
44
|
end
|
44
45
|
def dump(value, state:)
|
45
46
|
end
|
47
|
+
|
48
|
+
# @api private
|
49
|
+
sig { returns(T.anything) }
|
50
|
+
def to_sorbet_type
|
51
|
+
end
|
46
52
|
end
|
47
53
|
end
|
48
54
|
end
|
data/rbi/orb/internal/util.rbi
CHANGED
@@ -11,6 +11,15 @@ module Orb
|
|
11
11
|
def self.monotonic_secs
|
12
12
|
end
|
13
13
|
|
14
|
+
# @api private
|
15
|
+
sig do
|
16
|
+
params(ns: T.any(Module, T::Class[T.anything])).returns(
|
17
|
+
T::Enumerable[T.any(Module, T::Class[T.anything])]
|
18
|
+
)
|
19
|
+
end
|
20
|
+
def self.walk_namespaces(ns)
|
21
|
+
end
|
22
|
+
|
14
23
|
class << self
|
15
24
|
# @api private
|
16
25
|
sig { returns(String) }
|
@@ -435,10 +444,31 @@ module Orb
|
|
435
444
|
def const_missing(name)
|
436
445
|
end
|
437
446
|
|
447
|
+
# @api private
|
448
|
+
sig { params(name: Symbol).returns(T::Boolean) }
|
449
|
+
def sorbet_constant_defined?(name)
|
450
|
+
end
|
451
|
+
|
438
452
|
# @api private
|
439
453
|
sig { params(name: Symbol, blk: T.proc.returns(T.anything)).void }
|
440
454
|
def define_sorbet_constant!(name, &blk)
|
441
455
|
end
|
456
|
+
|
457
|
+
# @api private
|
458
|
+
sig { returns(T.anything) }
|
459
|
+
def to_sorbet_type
|
460
|
+
end
|
461
|
+
|
462
|
+
class << self
|
463
|
+
# @api private
|
464
|
+
sig do
|
465
|
+
params(
|
466
|
+
type: T.any(Orb::Internal::Util::SorbetRuntimeSupport, T.anything)
|
467
|
+
).returns(T.anything)
|
468
|
+
end
|
469
|
+
def to_sorbet_type(type)
|
470
|
+
end
|
471
|
+
end
|
442
472
|
end
|
443
473
|
end
|
444
474
|
end
|
data/rbi/orb/internal.rbi
CHANGED
@@ -8,6 +8,9 @@ module Orb
|
|
8
8
|
# this alias might be refined in the future.
|
9
9
|
AnyHash = T.type_alias { T::Hash[Symbol, T.anything] }
|
10
10
|
|
11
|
+
FileInput =
|
12
|
+
T.type_alias { T.any(Pathname, StringIO, IO, String, Orb::FilePart) }
|
13
|
+
|
11
14
|
OMIT = T.let(Object.new.freeze, T.anything)
|
12
15
|
end
|
13
16
|
end
|
data/rbi/orb/models/coupon.rbi
CHANGED
@@ -14,7 +14,7 @@ module Orb
|
|
14
14
|
sig { returns(T.nilable(Time)) }
|
15
15
|
attr_accessor :archived_at
|
16
16
|
|
17
|
-
sig { returns(
|
17
|
+
sig { returns(Orb::Coupon::Discount::Variants) }
|
18
18
|
attr_accessor :discount
|
19
19
|
|
20
20
|
# This allows for a coupon's discount to apply for a limited time (determined in
|
@@ -77,7 +77,7 @@ module Orb
|
|
77
77
|
{
|
78
78
|
id: String,
|
79
79
|
archived_at: T.nilable(Time),
|
80
|
-
discount:
|
80
|
+
discount: Orb::Coupon::Discount::Variants,
|
81
81
|
duration_in_months: T.nilable(Integer),
|
82
82
|
max_redemptions: T.nilable(Integer),
|
83
83
|
redemption_code: String,
|
@@ -125,40 +125,7 @@ module Orb
|
|
125
125
|
end
|
126
126
|
|
127
127
|
# The price object
|
128
|
-
sig
|
129
|
-
returns(
|
130
|
-
T.any(
|
131
|
-
Orb::Price::Unit,
|
132
|
-
Orb::Price::Package,
|
133
|
-
Orb::Price::Matrix,
|
134
|
-
Orb::Price::Tiered,
|
135
|
-
Orb::Price::TieredBps,
|
136
|
-
Orb::Price::Bps,
|
137
|
-
Orb::Price::BulkBps,
|
138
|
-
Orb::Price::Bulk,
|
139
|
-
Orb::Price::ThresholdTotalAmount,
|
140
|
-
Orb::Price::TieredPackage,
|
141
|
-
Orb::Price::GroupedTiered,
|
142
|
-
Orb::Price::TieredWithMinimum,
|
143
|
-
Orb::Price::TieredPackageWithMinimum,
|
144
|
-
Orb::Price::PackageWithAllocation,
|
145
|
-
Orb::Price::UnitWithPercent,
|
146
|
-
Orb::Price::MatrixWithAllocation,
|
147
|
-
Orb::Price::TieredWithProration,
|
148
|
-
Orb::Price::UnitWithProration,
|
149
|
-
Orb::Price::GroupedAllocation,
|
150
|
-
Orb::Price::GroupedWithProratedMinimum,
|
151
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
152
|
-
Orb::Price::MatrixWithDisplayName,
|
153
|
-
Orb::Price::BulkWithProration,
|
154
|
-
Orb::Price::GroupedTieredPackage,
|
155
|
-
Orb::Price::MaxGroupTieredPackage,
|
156
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
157
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
158
|
-
Orb::Price::CumulativeGroupedBulk
|
159
|
-
)
|
160
|
-
)
|
161
|
-
end
|
128
|
+
sig { returns(Orb::Price::Variants) }
|
162
129
|
attr_accessor :price
|
163
130
|
|
164
131
|
# The price the cost is associated with
|
@@ -233,37 +200,7 @@ module Orb
|
|
233
200
|
sig do
|
234
201
|
override.returns(
|
235
202
|
{
|
236
|
-
price:
|
237
|
-
T.any(
|
238
|
-
Orb::Price::Unit,
|
239
|
-
Orb::Price::Package,
|
240
|
-
Orb::Price::Matrix,
|
241
|
-
Orb::Price::Tiered,
|
242
|
-
Orb::Price::TieredBps,
|
243
|
-
Orb::Price::Bps,
|
244
|
-
Orb::Price::BulkBps,
|
245
|
-
Orb::Price::Bulk,
|
246
|
-
Orb::Price::ThresholdTotalAmount,
|
247
|
-
Orb::Price::TieredPackage,
|
248
|
-
Orb::Price::GroupedTiered,
|
249
|
-
Orb::Price::TieredWithMinimum,
|
250
|
-
Orb::Price::TieredPackageWithMinimum,
|
251
|
-
Orb::Price::PackageWithAllocation,
|
252
|
-
Orb::Price::UnitWithPercent,
|
253
|
-
Orb::Price::MatrixWithAllocation,
|
254
|
-
Orb::Price::TieredWithProration,
|
255
|
-
Orb::Price::UnitWithProration,
|
256
|
-
Orb::Price::GroupedAllocation,
|
257
|
-
Orb::Price::GroupedWithProratedMinimum,
|
258
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
259
|
-
Orb::Price::MatrixWithDisplayName,
|
260
|
-
Orb::Price::BulkWithProration,
|
261
|
-
Orb::Price::GroupedTieredPackage,
|
262
|
-
Orb::Price::MaxGroupTieredPackage,
|
263
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
264
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
265
|
-
Orb::Price::CumulativeGroupedBulk
|
266
|
-
),
|
203
|
+
price: Orb::Price::Variants,
|
267
204
|
price_id: String,
|
268
205
|
subtotal: String,
|
269
206
|
total: String,
|
@@ -116,40 +116,7 @@ module Orb
|
|
116
116
|
end
|
117
117
|
|
118
118
|
# The price object
|
119
|
-
sig
|
120
|
-
returns(
|
121
|
-
T.any(
|
122
|
-
Orb::Price::Unit,
|
123
|
-
Orb::Price::Package,
|
124
|
-
Orb::Price::Matrix,
|
125
|
-
Orb::Price::Tiered,
|
126
|
-
Orb::Price::TieredBps,
|
127
|
-
Orb::Price::Bps,
|
128
|
-
Orb::Price::BulkBps,
|
129
|
-
Orb::Price::Bulk,
|
130
|
-
Orb::Price::ThresholdTotalAmount,
|
131
|
-
Orb::Price::TieredPackage,
|
132
|
-
Orb::Price::GroupedTiered,
|
133
|
-
Orb::Price::TieredWithMinimum,
|
134
|
-
Orb::Price::TieredPackageWithMinimum,
|
135
|
-
Orb::Price::PackageWithAllocation,
|
136
|
-
Orb::Price::UnitWithPercent,
|
137
|
-
Orb::Price::MatrixWithAllocation,
|
138
|
-
Orb::Price::TieredWithProration,
|
139
|
-
Orb::Price::UnitWithProration,
|
140
|
-
Orb::Price::GroupedAllocation,
|
141
|
-
Orb::Price::GroupedWithProratedMinimum,
|
142
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
143
|
-
Orb::Price::MatrixWithDisplayName,
|
144
|
-
Orb::Price::BulkWithProration,
|
145
|
-
Orb::Price::GroupedTieredPackage,
|
146
|
-
Orb::Price::MaxGroupTieredPackage,
|
147
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
148
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
149
|
-
Orb::Price::CumulativeGroupedBulk
|
150
|
-
)
|
151
|
-
)
|
152
|
-
end
|
119
|
+
sig { returns(Orb::Price::Variants) }
|
153
120
|
attr_accessor :price
|
154
121
|
|
155
122
|
# The price the cost is associated with
|
@@ -224,37 +191,7 @@ module Orb
|
|
224
191
|
sig do
|
225
192
|
override.returns(
|
226
193
|
{
|
227
|
-
price:
|
228
|
-
T.any(
|
229
|
-
Orb::Price::Unit,
|
230
|
-
Orb::Price::Package,
|
231
|
-
Orb::Price::Matrix,
|
232
|
-
Orb::Price::Tiered,
|
233
|
-
Orb::Price::TieredBps,
|
234
|
-
Orb::Price::Bps,
|
235
|
-
Orb::Price::BulkBps,
|
236
|
-
Orb::Price::Bulk,
|
237
|
-
Orb::Price::ThresholdTotalAmount,
|
238
|
-
Orb::Price::TieredPackage,
|
239
|
-
Orb::Price::GroupedTiered,
|
240
|
-
Orb::Price::TieredWithMinimum,
|
241
|
-
Orb::Price::TieredPackageWithMinimum,
|
242
|
-
Orb::Price::PackageWithAllocation,
|
243
|
-
Orb::Price::UnitWithPercent,
|
244
|
-
Orb::Price::MatrixWithAllocation,
|
245
|
-
Orb::Price::TieredWithProration,
|
246
|
-
Orb::Price::UnitWithProration,
|
247
|
-
Orb::Price::GroupedAllocation,
|
248
|
-
Orb::Price::GroupedWithProratedMinimum,
|
249
|
-
Orb::Price::GroupedWithMeteredMinimum,
|
250
|
-
Orb::Price::MatrixWithDisplayName,
|
251
|
-
Orb::Price::BulkWithProration,
|
252
|
-
Orb::Price::GroupedTieredPackage,
|
253
|
-
Orb::Price::MaxGroupTieredPackage,
|
254
|
-
Orb::Price::ScalableMatrixWithUnitPricing,
|
255
|
-
Orb::Price::ScalableMatrixWithTieredPricing,
|
256
|
-
Orb::Price::CumulativeGroupedBulk
|
257
|
-
),
|
194
|
+
price: Orb::Price::Variants,
|
258
195
|
price_id: String,
|
259
196
|
subtotal: String,
|
260
197
|
total: String,
|
@@ -11,7 +11,9 @@ module Orb
|
|
11
11
|
attr_accessor :amount
|
12
12
|
|
13
13
|
# The values for the group in the order specified by `grouping_keys`
|
14
|
-
sig
|
14
|
+
sig do
|
15
|
+
returns(T::Array[Orb::EvaluatePriceGroup::GroupingValue::Variants])
|
16
|
+
end
|
15
17
|
attr_accessor :grouping_values
|
16
18
|
|
17
19
|
# The price's usage quantity for the group
|
@@ -21,7 +23,8 @@ module Orb
|
|
21
23
|
sig do
|
22
24
|
params(
|
23
25
|
amount: String,
|
24
|
-
grouping_values:
|
26
|
+
grouping_values:
|
27
|
+
T::Array[Orb::EvaluatePriceGroup::GroupingValue::Variants],
|
25
28
|
quantity: Float
|
26
29
|
).returns(T.attached_class)
|
27
30
|
end
|
@@ -39,7 +42,8 @@ module Orb
|
|
39
42
|
override.returns(
|
40
43
|
{
|
41
44
|
amount: String,
|
42
|
-
grouping_values:
|
45
|
+
grouping_values:
|
46
|
+
T::Array[Orb::EvaluatePriceGroup::GroupingValue::Variants],
|
43
47
|
quantity: Float
|
44
48
|
}
|
45
49
|
)
|