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
@@ -57,7 +57,7 @@ module Orb
|
|
57
57
|
# @!attribute price
|
58
58
|
# The price object
|
59
59
|
#
|
60
|
-
# @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk]
|
60
|
+
# @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk]
|
61
61
|
required :price, union: -> { Orb::Price }
|
62
62
|
|
63
63
|
# @!attribute price_id
|
@@ -85,7 +85,7 @@ module Orb
|
|
85
85
|
optional :quantity, Float, nil?: true
|
86
86
|
|
87
87
|
# @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil)
|
88
|
-
# @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The price object
|
88
|
+
# @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The price object
|
89
89
|
#
|
90
90
|
# @param price_id [String] The price the cost is associated with
|
91
91
|
#
|
@@ -18,7 +18,7 @@ module Orb
|
|
18
18
|
|
19
19
|
# @!attribute entry_type
|
20
20
|
#
|
21
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType]
|
21
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType]
|
22
22
|
required :entry_type,
|
23
23
|
enum: -> {
|
24
24
|
Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType
|
@@ -58,7 +58,7 @@ module Orb
|
|
58
58
|
# per_unit_cost_basis, as the calculation of the invoice total is done on that
|
59
59
|
# basis.
|
60
60
|
#
|
61
|
-
# @return [Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil]
|
61
|
+
# @return [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil]
|
62
62
|
optional :invoice_settings,
|
63
63
|
-> { Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings },
|
64
64
|
nil?: true
|
@@ -95,7 +95,7 @@ module Orb
|
|
95
95
|
# @!attribute void_reason
|
96
96
|
# Can only be specified when `entry_type=void`. The reason for the void.
|
97
97
|
#
|
98
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil]
|
98
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil]
|
99
99
|
optional :void_reason,
|
100
100
|
enum: -> { Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason },
|
101
101
|
nil?: true
|
@@ -107,7 +107,7 @@ module Orb
|
|
107
107
|
#
|
108
108
|
# @param amount [Float] The number of credits to effect. Note that this is required for increment, decre
|
109
109
|
#
|
110
|
-
# @param entry_type [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType]
|
110
|
+
# @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType]
|
111
111
|
#
|
112
112
|
# @param expiry_date [Time, nil] An ISO 8601 format date that identifies the origination credit block to expire
|
113
113
|
#
|
@@ -121,13 +121,13 @@ module Orb
|
|
121
121
|
#
|
122
122
|
# @param effective_date [Time, nil] An ISO 8601 format date that denotes when this credit balance should become avai
|
123
123
|
#
|
124
|
-
# @param invoice_settings [Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde
|
124
|
+
# @param invoice_settings [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde
|
125
125
|
#
|
126
126
|
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
127
127
|
#
|
128
128
|
# @param per_unit_cost_basis [String, nil] Can only be specified when entry_type=increment. How much, in the customer's cur
|
129
129
|
#
|
130
|
-
# @param void_reason [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void.
|
130
|
+
# @param void_reason [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void.
|
131
131
|
#
|
132
132
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
133
133
|
|
@@ -171,7 +171,7 @@ module Orb
|
|
171
171
|
|
172
172
|
# @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil)
|
173
173
|
# Some parameter documentations has been truncated, see
|
174
|
-
# {Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings}
|
174
|
+
# {Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings}
|
175
175
|
# for more details.
|
176
176
|
#
|
177
177
|
# Passing `invoice_settings` automatically generates an invoice for the newly
|
@@ -1190,20 +1190,6 @@ module Orb
|
|
1190
1190
|
|
1191
1191
|
# @!method self.variants
|
1192
1192
|
# @return [Array(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment)]
|
1193
|
-
|
1194
|
-
define_sorbet_constant!(:Variants) do
|
1195
|
-
T.type_alias do
|
1196
|
-
T.any(
|
1197
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment,
|
1198
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement,
|
1199
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange,
|
1200
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry,
|
1201
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void,
|
1202
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated,
|
1203
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment
|
1204
|
-
)
|
1205
|
-
end
|
1206
|
-
end
|
1207
1193
|
end
|
1208
1194
|
end
|
1209
1195
|
end
|
@@ -18,7 +18,7 @@ module Orb
|
|
18
18
|
|
19
19
|
# @!attribute entry_type
|
20
20
|
#
|
21
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::EntryType]
|
21
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType]
|
22
22
|
required :entry_type, enum: -> { Orb::Customers::Credits::LedgerCreateEntryParams::EntryType }
|
23
23
|
|
24
24
|
# @!attribute currency
|
@@ -55,7 +55,7 @@ module Orb
|
|
55
55
|
# per_unit_cost_basis, as the calculation of the invoice total is done on that
|
56
56
|
# basis.
|
57
57
|
#
|
58
|
-
# @return [Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil]
|
58
|
+
# @return [Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil]
|
59
59
|
optional :invoice_settings,
|
60
60
|
-> { Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings },
|
61
61
|
nil?: true
|
@@ -92,7 +92,7 @@ module Orb
|
|
92
92
|
# @!attribute void_reason
|
93
93
|
# Can only be specified when `entry_type=void`. The reason for the void.
|
94
94
|
#
|
95
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil]
|
95
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil]
|
96
96
|
optional :void_reason,
|
97
97
|
enum: -> { Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason },
|
98
98
|
nil?: true
|
@@ -103,7 +103,7 @@ module Orb
|
|
103
103
|
#
|
104
104
|
# @param amount [Float] The number of credits to effect. Note that this is required for increment, decre
|
105
105
|
#
|
106
|
-
# @param entry_type [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::EntryType]
|
106
|
+
# @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType]
|
107
107
|
#
|
108
108
|
# @param expiry_date [Time, nil] An ISO 8601 format date that identifies the origination credit block to expire
|
109
109
|
#
|
@@ -117,13 +117,13 @@ module Orb
|
|
117
117
|
#
|
118
118
|
# @param effective_date [Time, nil] An ISO 8601 format date that denotes when this credit balance should become avai
|
119
119
|
#
|
120
|
-
# @param invoice_settings [Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde
|
120
|
+
# @param invoice_settings [Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde
|
121
121
|
#
|
122
122
|
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
123
123
|
#
|
124
124
|
# @param per_unit_cost_basis [String, nil] Can only be specified when entry_type=increment. How much, in the customer's cur
|
125
125
|
#
|
126
|
-
# @param void_reason [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void.
|
126
|
+
# @param void_reason [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void.
|
127
127
|
#
|
128
128
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
129
129
|
|
@@ -167,8 +167,8 @@ module Orb
|
|
167
167
|
|
168
168
|
# @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil)
|
169
169
|
# Some parameter documentations has been truncated, see
|
170
|
-
# {Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings} for
|
171
|
-
# details.
|
170
|
+
# {Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings} for
|
171
|
+
# more details.
|
172
172
|
#
|
173
173
|
# Passing `invoice_settings` automatically generates an invoice for the newly
|
174
174
|
# added credits. If `invoice_settings` is passed, you must specify
|
@@ -1182,20 +1182,6 @@ module Orb
|
|
1182
1182
|
|
1183
1183
|
# @!method self.variants
|
1184
1184
|
# @return [Array(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment)]
|
1185
|
-
|
1186
|
-
define_sorbet_constant!(:Variants) do
|
1187
|
-
T.type_alias do
|
1188
|
-
T.any(
|
1189
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment,
|
1190
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement,
|
1191
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange,
|
1192
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry,
|
1193
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void,
|
1194
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated,
|
1195
|
-
Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment
|
1196
|
-
)
|
1197
|
-
end
|
1198
|
-
end
|
1199
1185
|
end
|
1200
1186
|
end
|
1201
1187
|
end
|
@@ -44,14 +44,14 @@ module Orb
|
|
44
44
|
|
45
45
|
# @!attribute entry_status
|
46
46
|
#
|
47
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil]
|
47
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil]
|
48
48
|
optional :entry_status,
|
49
49
|
enum: -> { Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus },
|
50
50
|
nil?: true
|
51
51
|
|
52
52
|
# @!attribute entry_type
|
53
53
|
#
|
54
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil]
|
54
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil]
|
55
55
|
optional :entry_type,
|
56
56
|
enum: -> { Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType },
|
57
57
|
nil?: true
|
@@ -84,9 +84,9 @@ module Orb
|
|
84
84
|
#
|
85
85
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
86
86
|
#
|
87
|
-
# @param entry_status [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil]
|
87
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil]
|
88
88
|
#
|
89
|
-
# @param entry_type [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil]
|
89
|
+
# @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil]
|
90
90
|
#
|
91
91
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
92
92
|
#
|
@@ -1186,20 +1186,6 @@ module Orb
|
|
1186
1186
|
|
1187
1187
|
# @!method self.variants
|
1188
1188
|
# @return [Array(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment)]
|
1189
|
-
|
1190
|
-
define_sorbet_constant!(:Variants) do
|
1191
|
-
T.type_alias do
|
1192
|
-
T.any(
|
1193
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment,
|
1194
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement,
|
1195
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange,
|
1196
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry,
|
1197
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void,
|
1198
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated,
|
1199
|
-
Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment
|
1200
|
-
)
|
1201
|
-
end
|
1202
|
-
end
|
1203
1189
|
end
|
1204
1190
|
end
|
1205
1191
|
end
|
@@ -44,7 +44,7 @@ module Orb
|
|
44
44
|
|
45
45
|
# @!attribute entry_status
|
46
46
|
#
|
47
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerListParams::EntryStatus, nil]
|
47
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus, nil]
|
48
48
|
optional :entry_status,
|
49
49
|
enum: -> {
|
50
50
|
Orb::Customers::Credits::LedgerListParams::EntryStatus
|
@@ -53,7 +53,7 @@ module Orb
|
|
53
53
|
|
54
54
|
# @!attribute entry_type
|
55
55
|
#
|
56
|
-
# @return [Symbol, Orb::Customers::Credits::LedgerListParams::EntryType, nil]
|
56
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType, nil]
|
57
57
|
optional :entry_type, enum: -> { Orb::Customers::Credits::LedgerListParams::EntryType }, nil?: true
|
58
58
|
|
59
59
|
# @!attribute limit
|
@@ -83,9 +83,9 @@ module Orb
|
|
83
83
|
#
|
84
84
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
85
85
|
#
|
86
|
-
# @param entry_status [Symbol, Orb::Customers::Credits::LedgerListParams::EntryStatus, nil]
|
86
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus, nil]
|
87
87
|
#
|
88
|
-
# @param entry_type [Symbol, Orb::Customers::Credits::LedgerListParams::EntryType, nil]
|
88
|
+
# @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType, nil]
|
89
89
|
#
|
90
90
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
91
91
|
#
|
@@ -1174,20 +1174,6 @@ module Orb
|
|
1174
1174
|
|
1175
1175
|
# @!method self.variants
|
1176
1176
|
# @return [Array(Orb::Models::Customers::Credits::LedgerListResponse::Increment, Orb::Models::Customers::Credits::LedgerListResponse::Decrement, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListResponse::Void, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListResponse::Amendment)]
|
1177
|
-
|
1178
|
-
define_sorbet_constant!(:Variants) do
|
1179
|
-
T.type_alias do
|
1180
|
-
T.any(
|
1181
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Increment,
|
1182
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Decrement,
|
1183
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange,
|
1184
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry,
|
1185
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Void,
|
1186
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated,
|
1187
|
-
Orb::Models::Customers::Credits::LedgerListResponse::Amendment
|
1188
|
-
)
|
1189
|
-
end
|
1190
|
-
end
|
1191
1177
|
end
|
1192
1178
|
end
|
1193
1179
|
end
|
@@ -25,7 +25,7 @@ module Orb
|
|
25
25
|
# @!attribute invoice_settings
|
26
26
|
# Settings for invoices generated by triggered top-ups.
|
27
27
|
#
|
28
|
-
# @return [Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings]
|
28
|
+
# @return [Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings]
|
29
29
|
required :invoice_settings,
|
30
30
|
-> {
|
31
31
|
Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings
|
@@ -61,7 +61,7 @@ module Orb
|
|
61
61
|
# @!attribute expires_after_unit
|
62
62
|
# The unit of expires_after.
|
63
63
|
#
|
64
|
-
# @return [Symbol, Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil]
|
64
|
+
# @return [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil]
|
65
65
|
optional :expires_after_unit,
|
66
66
|
enum: -> { Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit },
|
67
67
|
nil?: true
|
@@ -75,7 +75,7 @@ module Orb
|
|
75
75
|
#
|
76
76
|
# @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo
|
77
77
|
#
|
78
|
-
# @param invoice_settings [Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] Settings for invoices generated by triggered top-ups.
|
78
|
+
# @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] Settings for invoices generated by triggered top-ups.
|
79
79
|
#
|
80
80
|
# @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit.
|
81
81
|
#
|
@@ -85,7 +85,7 @@ module Orb
|
|
85
85
|
#
|
86
86
|
# @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it
|
87
87
|
#
|
88
|
-
# @param expires_after_unit [Symbol, Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] The unit of expires_after.
|
88
|
+
# @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] The unit of expires_after.
|
89
89
|
#
|
90
90
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
91
91
|
|
@@ -120,8 +120,8 @@ module Orb
|
|
120
120
|
|
121
121
|
# @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil)
|
122
122
|
# Some parameter documentations has been truncated, see
|
123
|
-
# {Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings}
|
124
|
-
# more details.
|
123
|
+
# {Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings}
|
124
|
+
# for more details.
|
125
125
|
#
|
126
126
|
# Settings for invoices generated by triggered top-ups.
|
127
127
|
#
|
@@ -25,7 +25,7 @@ module Orb
|
|
25
25
|
# @!attribute invoice_settings
|
26
26
|
# Settings for invoices generated by triggered top-ups.
|
27
27
|
#
|
28
|
-
# @return [Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings]
|
28
|
+
# @return [Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings]
|
29
29
|
required :invoice_settings, -> { Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings }
|
30
30
|
|
31
31
|
# @!attribute per_unit_cost_basis
|
@@ -58,7 +58,7 @@ module Orb
|
|
58
58
|
# @!attribute expires_after_unit
|
59
59
|
# The unit of expires_after.
|
60
60
|
#
|
61
|
-
# @return [Symbol, Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil]
|
61
|
+
# @return [Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil]
|
62
62
|
optional :expires_after_unit,
|
63
63
|
enum: -> { Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit },
|
64
64
|
nil?: true
|
@@ -71,7 +71,7 @@ module Orb
|
|
71
71
|
#
|
72
72
|
# @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo
|
73
73
|
#
|
74
|
-
# @param invoice_settings [Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings] Settings for invoices generated by triggered top-ups.
|
74
|
+
# @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings] Settings for invoices generated by triggered top-ups.
|
75
75
|
#
|
76
76
|
# @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit.
|
77
77
|
#
|
@@ -81,7 +81,7 @@ module Orb
|
|
81
81
|
#
|
82
82
|
# @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it
|
83
83
|
#
|
84
|
-
# @param expires_after_unit [Symbol, Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] The unit of expires_after.
|
84
|
+
# @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] The unit of expires_after.
|
85
85
|
#
|
86
86
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
87
87
|
|
@@ -116,7 +116,8 @@ module Orb
|
|
116
116
|
|
117
117
|
# @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil)
|
118
118
|
# Some parameter documentations has been truncated, see
|
119
|
-
# {Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings} for more
|
119
|
+
# {Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings} for more
|
120
|
+
# details.
|
120
121
|
#
|
121
122
|
# Settings for invoices generated by triggered top-ups.
|
122
123
|
#
|
@@ -46,7 +46,7 @@ module Orb
|
|
46
46
|
|
47
47
|
# @!method initialize(id:, billable_metric_id:, dimensions:, external_dimensional_price_group_id:, metadata:, name:)
|
48
48
|
# Some parameter documentations has been truncated, see
|
49
|
-
# {Orb::DimensionalPriceGroup} for more details.
|
49
|
+
# {Orb::Models::DimensionalPriceGroup} for more details.
|
50
50
|
#
|
51
51
|
# A dimensional price group is used to partition the result of a billable metric
|
52
52
|
# by a set of dimensions. Prices in a price group must specify the parition used
|
@@ -5,17 +5,17 @@ module Orb
|
|
5
5
|
class DimensionalPriceGroupsAPI < Orb::Internal::Type::BaseModel
|
6
6
|
# @!attribute data
|
7
7
|
#
|
8
|
-
# @return [Array<Orb::DimensionalPriceGroup>]
|
8
|
+
# @return [Array<Orb::Models::DimensionalPriceGroup>]
|
9
9
|
required :data, -> { Orb::Internal::Type::ArrayOf[Orb::DimensionalPriceGroup] }
|
10
10
|
|
11
11
|
# @!attribute pagination_metadata
|
12
12
|
#
|
13
|
-
# @return [Orb::PaginationMetadata]
|
13
|
+
# @return [Orb::Models::PaginationMetadata]
|
14
14
|
required :pagination_metadata, -> { Orb::PaginationMetadata }
|
15
15
|
|
16
16
|
# @!method initialize(data:, pagination_metadata:)
|
17
|
-
# @param data [Array<Orb::DimensionalPriceGroup>]
|
18
|
-
# @param pagination_metadata [Orb::PaginationMetadata]
|
17
|
+
# @param data [Array<Orb::Models::DimensionalPriceGroup>]
|
18
|
+
# @param pagination_metadata [Orb::Models::PaginationMetadata]
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/lib/orb/models/discount.rb
CHANGED
@@ -16,13 +16,7 @@ module Orb
|
|
16
16
|
variant :amount, -> { Orb::AmountDiscount }
|
17
17
|
|
18
18
|
# @!method self.variants
|
19
|
-
# @return [Array(Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount)]
|
20
|
-
|
21
|
-
define_sorbet_constant!(:Variants) do
|
22
|
-
T.type_alias do
|
23
|
-
T.any(Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount)
|
24
|
-
end
|
25
|
-
end
|
19
|
+
# @return [Array(Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount)]
|
26
20
|
end
|
27
21
|
end
|
28
22
|
end
|
@@ -9,7 +9,7 @@ module Orb
|
|
9
9
|
|
10
10
|
# @!attribute events
|
11
11
|
#
|
12
|
-
# @return [Array<Orb::EventIngestParams::Event>]
|
12
|
+
# @return [Array<Orb::Models::EventIngestParams::Event>]
|
13
13
|
required :events, -> { Orb::Internal::Type::ArrayOf[Orb::EventIngestParams::Event] }
|
14
14
|
|
15
15
|
# @!attribute backfill_id
|
@@ -29,7 +29,7 @@ module Orb
|
|
29
29
|
# Some parameter documentations has been truncated, see
|
30
30
|
# {Orb::Models::EventIngestParams} for more details.
|
31
31
|
#
|
32
|
-
# @param events [Array<Orb::EventIngestParams::Event>]
|
32
|
+
# @param events [Array<Orb::Models::EventIngestParams::Event>]
|
33
33
|
#
|
34
34
|
# @param backfill_id [String, nil] If this ingestion request is part of a backfill, this parameter ties the ingeste
|
35
35
|
#
|
@@ -82,7 +82,7 @@ module Orb
|
|
82
82
|
|
83
83
|
# @!method initialize(event_name:, idempotency_key:, properties:, timestamp:, customer_id: nil, external_customer_id: nil)
|
84
84
|
# Some parameter documentations has been truncated, see
|
85
|
-
# {Orb::EventIngestParams::Event} for more details.
|
85
|
+
# {Orb::Models::EventIngestParams::Event} for more details.
|
86
86
|
#
|
87
87
|
# @param event_name [String] A name to meaningfully identify the action or event type.
|
88
88
|
#
|
@@ -7,11 +7,11 @@ module Orb
|
|
7
7
|
class EventVolumes < Orb::Internal::Type::BaseModel
|
8
8
|
# @!attribute data
|
9
9
|
#
|
10
|
-
# @return [Array<Orb::Events::EventVolumes::Data>]
|
10
|
+
# @return [Array<Orb::Models::Events::EventVolumes::Data>]
|
11
11
|
required :data, -> { Orb::Internal::Type::ArrayOf[Orb::Events::EventVolumes::Data] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<Orb::Events::EventVolumes::Data>]
|
14
|
+
# @param data [Array<Orb::Models::Events::EventVolumes::Data>]
|
15
15
|
|
16
16
|
class Data < Orb::Internal::Type::BaseModel
|
17
17
|
# @!attribute count
|