orb-billing 0.3.1 → 0.3.2
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 +14 -0
- data/README.md +3 -3
- data/lib/orb/file_part.rb +2 -2
- data/lib/orb/internal/type/enum.rb +3 -3
- data/lib/orb/internal/type/request_parameters.rb +4 -4
- data/lib/orb/internal/type/union.rb +4 -4
- data/lib/orb/internal/util.rb +1 -1
- data/lib/orb/models/alert.rb +29 -32
- data/lib/orb/models/alert_create_for_customer_params.rb +7 -8
- data/lib/orb/models/alert_create_for_external_customer_params.rb +7 -8
- data/lib/orb/models/alert_create_for_subscription_params.rb +7 -8
- data/lib/orb/models/alert_list_params.rb +0 -1
- data/lib/orb/models/alert_update_params.rb +4 -5
- data/lib/orb/models/amount_discount.rb +6 -7
- data/lib/orb/models/billable_metric.rb +9 -11
- data/lib/orb/models/coupon.rb +9 -12
- data/lib/orb/models/coupon_create_params.rb +6 -8
- data/lib/orb/models/coupon_list_params.rb +0 -2
- data/lib/orb/models/coupons/subscription_list_params.rb +0 -1
- data/lib/orb/models/credit_note.rb +48 -46
- data/lib/orb/models/credit_note_create_params.rb +6 -6
- data/lib/orb/models/credit_note_list_params.rb +0 -1
- data/lib/orb/models/customer.rb +54 -61
- data/lib/orb/models/customer_create_params.rb +41 -53
- data/lib/orb/models/customer_list_params.rb +0 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +41 -53
- data/lib/orb/models/customer_update_params.rb +41 -51
- data/lib/orb/models/customers/balance_transaction_create_params.rb +3 -3
- data/lib/orb/models/customers/balance_transaction_create_response.rb +0 -2
- data/lib/orb/models/customers/balance_transaction_list_params.rb +0 -1
- data/lib/orb/models/customers/balance_transaction_list_response.rb +0 -2
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +3 -4
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -3
- data/lib/orb/models/customers/cost_list_params.rb +3 -4
- data/lib/orb/models/customers/cost_list_response.rb +3 -3
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +0 -2
- data/lib/orb/models/customers/credit_list_params.rb +0 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +12 -21
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -7
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +11 -22
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -7
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +6 -7
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -7
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
- data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -7
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +10 -15
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +0 -6
- data/lib/orb/models/customers/credits/top_up_create_params.rb +7 -15
- data/lib/orb/models/customers/credits/top_up_create_response.rb +0 -6
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +0 -1
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +0 -6
- data/lib/orb/models/customers/credits/top_up_list_params.rb +0 -1
- data/lib/orb/models/customers/credits/top_up_list_response.rb +0 -6
- data/lib/orb/models/dimensional_price_group.rb +1 -3
- data/lib/orb/models/dimensional_price_group_create_params.rb +0 -1
- data/lib/orb/models/dimensional_price_group_list_params.rb +0 -1
- data/lib/orb/models/dimensional_price_groups.rb +6 -6
- data/lib/orb/models/discount.rb +5 -5
- data/lib/orb/models/evaluate_price_group.rb +1 -1
- data/lib/orb/models/event_ingest_params.rb +4 -9
- data/lib/orb/models/event_ingest_response.rb +0 -3
- data/lib/orb/models/event_search_params.rb +0 -3
- data/lib/orb/models/event_search_response.rb +0 -4
- data/lib/orb/models/event_update_params.rb +0 -3
- data/lib/orb/models/events/backfill_close_response.rb +0 -4
- data/lib/orb/models/events/backfill_create_params.rb +0 -7
- data/lib/orb/models/events/backfill_create_response.rb +0 -4
- data/lib/orb/models/events/backfill_fetch_response.rb +0 -4
- data/lib/orb/models/events/backfill_list_params.rb +0 -1
- data/lib/orb/models/events/backfill_list_response.rb +0 -4
- data/lib/orb/models/events/backfill_revert_response.rb +0 -4
- data/lib/orb/models/events/event_volumes.rb +3 -3
- data/lib/orb/models/events/volume_list_params.rb +0 -3
- data/lib/orb/models/invoice.rb +157 -202
- data/lib/orb/models/invoice_create_params.rb +14 -21
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +9 -54
- data/lib/orb/models/invoice_issue_params.rb +0 -1
- data/lib/orb/models/invoice_level_discount.rb +4 -4
- data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +6 -26
- data/lib/orb/models/invoice_list_params.rb +6 -10
- data/lib/orb/models/invoice_update_params.rb +0 -1
- data/lib/orb/models/item.rb +7 -8
- data/lib/orb/models/item_list_params.rb +0 -1
- data/lib/orb/models/item_update_params.rb +7 -7
- data/lib/orb/models/metric_create_params.rb +0 -1
- data/lib/orb/models/metric_list_params.rb +0 -1
- data/lib/orb/models/metric_update_params.rb +0 -1
- data/lib/orb/models/percentage_discount.rb +6 -8
- data/lib/orb/models/plan.rb +78 -103
- data/lib/orb/models/plan_create_params.rb +727 -800
- data/lib/orb/models/plan_list_params.rb +3 -4
- data/lib/orb/models/plan_update_params.rb +0 -2
- data/lib/orb/models/plans/external_plan_id_update_params.rb +0 -2
- data/lib/orb/models/price.rb +1671 -1724
- data/lib/orb/models/price_create_params.rb +75 -84
- data/lib/orb/models/price_evaluate_params.rb +0 -2
- data/lib/orb/models/price_evaluate_response.rb +3 -3
- data/lib/orb/models/price_list_params.rb +0 -1
- data/lib/orb/models/price_update_params.rb +0 -1
- data/lib/orb/models/prices/external_price_id_update_params.rb +0 -1
- data/lib/orb/models/subscription.rb +86 -122
- data/lib/orb/models/subscription_cancel_params.rb +3 -5
- data/lib/orb/models/subscription_cancel_response.rb +21 -57
- data/lib/orb/models/subscription_change_apply_response.rb +21 -58
- data/lib/orb/models/subscription_change_cancel_response.rb +21 -58
- data/lib/orb/models/subscription_change_retrieve_response.rb +21 -58
- data/lib/orb/models/subscription_create_params.rb +1865 -1815
- data/lib/orb/models/subscription_create_response.rb +21 -57
- data/lib/orb/models/subscription_fetch_costs_params.rb +3 -4
- data/lib/orb/models/subscription_fetch_costs_response.rb +3 -3
- data/lib/orb/models/subscription_fetch_schedule_params.rb +0 -1
- data/lib/orb/models/subscription_fetch_schedule_response.rb +0 -1
- data/lib/orb/models/subscription_fetch_usage_params.rb +6 -8
- data/lib/orb/models/subscription_list_params.rb +3 -4
- data/lib/orb/models/subscription_price_intervals_params.rb +1105 -1017
- data/lib/orb/models/subscription_price_intervals_response.rb +21 -57
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1906 -1791
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +21 -57
- data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
- data/lib/orb/models/subscription_trigger_phase_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +21 -57
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +3 -6
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +21 -57
- data/lib/orb/models/subscription_update_params.rb +0 -5
- data/lib/orb/models/subscription_update_trial_params.rb +4 -6
- data/lib/orb/models/subscription_update_trial_response.rb +21 -57
- data/lib/orb/models/subscription_usage.rb +46 -39
- data/lib/orb/models/subscriptions.rb +6 -6
- data/lib/orb/models/trial_discount.rb +6 -7
- data/lib/orb/models/usage_discount.rb +6 -8
- data/lib/orb/resources/alerts.rb +30 -31
- data/lib/orb/resources/coupons/subscriptions.rb +3 -4
- data/lib/orb/resources/coupons.rb +11 -21
- data/lib/orb/resources/credit_notes.rb +10 -11
- data/lib/orb/resources/customers/balance_transactions.rb +3 -4
- data/lib/orb/resources/customers/costs.rb +4 -6
- data/lib/orb/resources/customers/credits/ledger.rb +14 -33
- data/lib/orb/resources/customers/credits/top_ups.rb +10 -20
- data/lib/orb/resources/customers/credits.rb +2 -6
- data/lib/orb/resources/customers.rb +40 -67
- data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +2 -2
- data/lib/orb/resources/dimensional_price_groups.rb +8 -10
- data/lib/orb/resources/events/backfills.rb +2 -10
- data/lib/orb/resources/events/volume.rb +3 -6
- data/lib/orb/resources/events.rb +4 -12
- data/lib/orb/resources/invoice_line_items.rb +1 -2
- data/lib/orb/resources/invoices.rb +26 -43
- data/lib/orb/resources/items.rb +12 -13
- data/lib/orb/resources/metrics.rb +11 -14
- data/lib/orb/resources/plans/external_plan_id.rb +5 -7
- data/lib/orb/resources/plans.rb +14 -23
- data/lib/orb/resources/prices/external_price_id.rb +5 -6
- data/lib/orb/resources/prices.rb +25 -35
- data/lib/orb/resources/subscription_changes.rb +1 -1
- data/lib/orb/resources/subscriptions.rb +49 -107
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/orb/client.rbi +5 -4
- data/rbi/orb/errors.rbi +59 -28
- data/rbi/orb/file_part.rbi +9 -6
- data/rbi/orb/internal/page.rbi +19 -6
- data/rbi/orb/internal/transport/base_client.rbi +131 -73
- data/rbi/orb/internal/transport/pooled_net_requester.rbi +25 -12
- data/rbi/orb/internal/type/array_of.rbi +42 -34
- data/rbi/orb/internal/type/base_model.rbi +124 -65
- data/rbi/orb/internal/type/base_page.rbi +11 -7
- data/rbi/orb/internal/type/boolean.rbi +16 -10
- data/rbi/orb/internal/type/converter.rbi +66 -31
- data/rbi/orb/internal/type/enum.rbi +27 -15
- data/rbi/orb/internal/type/file_input.rbi +12 -10
- data/rbi/orb/internal/type/hash_of.rbi +34 -24
- data/rbi/orb/internal/type/request_parameters.rbi +12 -4
- data/rbi/orb/internal/type/union.rbi +60 -25
- data/rbi/orb/internal/type/unknown.rbi +20 -12
- data/rbi/orb/internal/util.rbi +210 -89
- data/rbi/orb/models/alert.rbi +107 -70
- data/rbi/orb/models/alert_create_for_customer_params.rbi +60 -27
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +68 -29
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +53 -26
- data/rbi/orb/models/alert_disable_params.rbi +17 -6
- data/rbi/orb/models/alert_enable_params.rbi +17 -6
- data/rbi/orb/models/alert_list_params.rbi +23 -20
- data/rbi/orb/models/alert_retrieve_params.rbi +10 -4
- data/rbi/orb/models/alert_update_params.rbi +25 -14
- data/rbi/orb/models/amount_discount.rbi +28 -19
- data/rbi/orb/models/billable_metric.rbi +33 -26
- data/rbi/orb/models/billing_cycle_relative_date.rbi +11 -5
- data/rbi/orb/models/coupon.rbi +28 -20
- data/rbi/orb/models/coupon_archive_params.rbi +10 -4
- data/rbi/orb/models/coupon_create_params.rbi +72 -38
- data/rbi/orb/models/coupon_fetch_params.rbi +10 -4
- data/rbi/orb/models/coupon_list_params.rbi +18 -15
- data/rbi/orb/models/coupons/subscription_list_params.rbi +16 -6
- data/rbi/orb/models/credit_note.rbi +293 -158
- data/rbi/orb/models/credit_note_create_params.rbi +58 -29
- data/rbi/orb/models/credit_note_fetch_params.rbi +10 -4
- data/rbi/orb/models/credit_note_list_params.rbi +20 -17
- data/rbi/orb/models/customer.rbi +430 -329
- data/rbi/orb/models/customer_create_params.rbi +662 -325
- data/rbi/orb/models/customer_delete_params.rbi +10 -4
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +10 -4
- data/rbi/orb/models/customer_fetch_params.rbi +10 -4
- data/rbi/orb/models/customer_list_params.rbi +20 -17
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +10 -4
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +10 -4
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +1136 -336
- data/rbi/orb/models/customer_update_params.rbi +661 -324
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +50 -21
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +154 -61
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +20 -17
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +164 -59
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +56 -22
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +162 -124
- data/rbi/orb/models/customers/cost_list_params.rbi +45 -22
- data/rbi/orb/models/customers/cost_list_response.rbi +154 -123
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +18 -15
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +48 -22
- data/rbi/orb/models/customers/credit_list_params.rbi +18 -15
- data/rbi/orb/models/customers/credit_list_response.rbi +44 -21
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +106 -68
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +643 -434
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +117 -59
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +700 -425
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +102 -44
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +681 -432
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +123 -40
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +735 -389
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +74 -53
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +65 -48
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +84 -45
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +83 -43
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +16 -6
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +15 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +9 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +70 -49
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +9 -5
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +84 -43
- data/rbi/orb/models/dimensional_price_group.rbi +18 -15
- data/rbi/orb/models/dimensional_price_group_create_params.rbi +19 -16
- data/rbi/orb/models/dimensional_price_group_list_params.rbi +16 -6
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +10 -4
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +10 -9
- data/rbi/orb/models/dimensional_price_groups.rbi +18 -13
- data/rbi/orb/models/discount.rbi +11 -5
- data/rbi/orb/models/evaluate_price_group.rbi +28 -12
- data/rbi/orb/models/event_deprecate_params.rbi +10 -4
- data/rbi/orb/models/event_deprecate_response.rbi +8 -3
- data/rbi/orb/models/event_ingest_params.rbi +37 -31
- data/rbi/orb/models/event_ingest_response.rbi +63 -23
- data/rbi/orb/models/event_search_params.rbi +17 -14
- data/rbi/orb/models/event_search_response.rbi +33 -21
- data/rbi/orb/models/event_update_params.rbi +19 -16
- data/rbi/orb/models/event_update_response.rbi +8 -3
- data/rbi/orb/models/events/backfill_close_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_close_response.rbi +64 -29
- data/rbi/orb/models/events/backfill_create_params.rbi +21 -18
- data/rbi/orb/models/events/backfill_create_response.rbi +63 -29
- data/rbi/orb/models/events/backfill_fetch_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_fetch_response.rbi +64 -29
- data/rbi/orb/models/events/backfill_list_params.rbi +16 -6
- data/rbi/orb/models/events/backfill_list_response.rbi +62 -28
- data/rbi/orb/models/events/backfill_revert_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_revert_response.rbi +63 -29
- data/rbi/orb/models/events/event_volumes.rbi +32 -10
- data/rbi/orb/models/events/volume_list_params.rbi +18 -15
- data/rbi/orb/models/invoice.rbi +1286 -805
- data/rbi/orb/models/invoice_create_params.rbi +97 -69
- data/rbi/orb/models/invoice_fetch_params.rbi +10 -4
- data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +15 -5
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1991 -861
- data/rbi/orb/models/invoice_issue_params.rbi +16 -5
- data/rbi/orb/models/invoice_level_discount.rbi +11 -4
- data/rbi/orb/models/invoice_line_item_create_params.rbi +20 -17
- data/rbi/orb/models/invoice_line_item_create_response.rbi +573 -376
- data/rbi/orb/models/invoice_list_params.rbi +67 -47
- data/rbi/orb/models/invoice_mark_paid_params.rbi +17 -14
- data/rbi/orb/models/invoice_pay_params.rbi +10 -4
- data/rbi/orb/models/invoice_update_params.rbi +15 -10
- data/rbi/orb/models/invoice_void_params.rbi +10 -4
- data/rbi/orb/models/item.rbi +87 -39
- data/rbi/orb/models/item_create_params.rbi +14 -5
- data/rbi/orb/models/item_fetch_params.rbi +10 -4
- data/rbi/orb/models/item_list_params.rbi +16 -6
- data/rbi/orb/models/item_update_params.rbi +79 -39
- data/rbi/orb/models/metric_create_params.rbi +19 -16
- data/rbi/orb/models/metric_fetch_params.rbi +10 -4
- data/rbi/orb/models/metric_list_params.rbi +20 -17
- data/rbi/orb/models/metric_update_params.rbi +15 -10
- data/rbi/orb/models/pagination_metadata.rbi +16 -4
- data/rbi/orb/models/percentage_discount.rbi +32 -19
- data/rbi/orb/models/plan.rbi +496 -365
- data/rbi/orb/models/plan_create_params.rbi +4785 -2875
- data/rbi/orb/models/plan_fetch_params.rbi +10 -4
- data/rbi/orb/models/plan_list_params.rbi +34 -27
- data/rbi/orb/models/plan_update_params.rbi +16 -13
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +10 -9
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +16 -13
- data/rbi/orb/models/price.rbi +9969 -5024
- data/rbi/orb/models/price_create_params.rbi +501 -245
- data/rbi/orb/models/price_evaluate_params.rbi +20 -17
- data/rbi/orb/models/price_evaluate_response.rbi +11 -6
- data/rbi/orb/models/price_fetch_params.rbi +10 -4
- data/rbi/orb/models/price_list_params.rbi +16 -6
- data/rbi/orb/models/price_update_params.rbi +15 -10
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +10 -9
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +15 -10
- data/rbi/orb/models/subscription.rbi +578 -420
- data/rbi/orb/models/subscription_cancel_params.rbi +44 -22
- data/rbi/orb/models/subscription_cancel_response.rbi +700 -438
- data/rbi/orb/models/subscription_change_apply_params.rbi +16 -13
- data/rbi/orb/models/subscription_change_apply_response.rbi +784 -504
- data/rbi/orb/models/subscription_change_cancel_params.rbi +10 -4
- data/rbi/orb/models/subscription_change_cancel_response.rbi +783 -514
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +10 -4
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +782 -524
- data/rbi/orb/models/subscription_create_params.rbi +9021 -6730
- data/rbi/orb/models/subscription_create_response.rbi +700 -438
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +47 -22
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +154 -123
- data/rbi/orb/models/subscription_fetch_params.rbi +10 -4
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +20 -17
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +33 -19
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +81 -34
- data/rbi/orb/models/subscription_list_params.rbi +39 -28
- data/rbi/orb/models/subscription_price_intervals_params.rbi +5181 -3822
- data/rbi/orb/models/subscription_price_intervals_response.rbi +720 -453
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +8602 -6910
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +718 -467
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +16 -13
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +712 -448
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +10 -4
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +719 -467
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +16 -5
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +693 -502
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +10 -4
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +708 -497
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +57 -26
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +719 -467
- data/rbi/orb/models/subscription_update_params.rbi +19 -16
- data/rbi/orb/models/subscription_update_trial_params.rbi +57 -19
- data/rbi/orb/models/subscription_update_trial_response.rbi +712 -447
- data/rbi/orb/models/subscription_usage.rbi +271 -121
- data/rbi/orb/models/subscriptions.rbi +18 -11
- data/rbi/orb/models/top_level_ping_params.rbi +10 -4
- data/rbi/orb/models/top_level_ping_response.rbi +7 -3
- data/rbi/orb/models/trial_discount.rbi +29 -20
- data/rbi/orb/models/usage_discount.rbi +28 -19
- data/rbi/orb/models.rbi +22 -11
- data/rbi/orb/request_options.rbi +12 -6
- data/rbi/orb/resources/alerts.rbi +61 -40
- data/rbi/orb/resources/coupons/subscriptions.rbi +7 -5
- data/rbi/orb/resources/coupons.rbi +33 -18
- data/rbi/orb/resources/credit_notes.rbi +22 -13
- data/rbi/orb/resources/customers/balance_transactions.rbi +17 -9
- data/rbi/orb/resources/customers/costs.rbi +18 -11
- data/rbi/orb/resources/customers/credits/ledger.rbi +98 -74
- data/rbi/orb/resources/customers/credits/top_ups.rbi +61 -25
- data/rbi/orb/resources/customers/credits.rbi +16 -7
- data/rbi/orb/resources/customers.rbi +137 -72
- data/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +8 -4
- data/rbi/orb/resources/dimensional_price_groups.rbi +26 -12
- data/rbi/orb/resources/events/backfills.rbi +35 -17
- data/rbi/orb/resources/events/volume.rbi +7 -5
- data/rbi/orb/resources/events.rbi +26 -16
- data/rbi/orb/resources/invoice_line_items.rbi +7 -5
- data/rbi/orb/resources/invoices.rbi +72 -41
- data/rbi/orb/resources/items.rbi +40 -13
- data/rbi/orb/resources/metrics.rbi +25 -15
- data/rbi/orb/resources/plans/external_plan_id.rbi +15 -7
- data/rbi/orb/resources/plans.rbi +57 -47
- data/rbi/orb/resources/prices/external_price_id.rbi +73 -68
- data/rbi/orb/resources/prices.rbi +176 -156
- data/rbi/orb/resources/subscription_changes.rbi +19 -11
- data/rbi/orb/resources/subscriptions.rbi +200 -114
- data/rbi/orb/resources/top_level.rbi +9 -3
- data/sig/orb/internal/page.rbs +0 -2
- data/sig/orb/internal/type/request_parameters.rbs +3 -1
- data/sig/orb/models/alert.rbs +19 -31
- data/sig/orb/models/alert_create_for_customer_params.rbs +3 -7
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +3 -7
- data/sig/orb/models/alert_create_for_subscription_params.rbs +3 -7
- data/sig/orb/models/alert_disable_params.rbs +0 -2
- data/sig/orb/models/alert_enable_params.rbs +0 -2
- data/sig/orb/models/alert_list_params.rbs +0 -2
- data/sig/orb/models/alert_retrieve_params.rbs +0 -2
- data/sig/orb/models/alert_update_params.rbs +3 -7
- data/sig/orb/models/amount_discount.rbs +4 -6
- data/sig/orb/models/billable_metric.rbs +7 -9
- data/sig/orb/models/coupon.rbs +5 -8
- data/sig/orb/models/coupon_archive_params.rbs +0 -2
- data/sig/orb/models/coupon_create_params.rbs +3 -9
- data/sig/orb/models/coupon_fetch_params.rbs +0 -2
- data/sig/orb/models/coupon_list_params.rbs +0 -2
- data/sig/orb/models/coupons/subscription_list_params.rbs +0 -2
- data/sig/orb/models/credit_note.rbs +48 -66
- data/sig/orb/models/credit_note_create_params.rbs +3 -7
- data/sig/orb/models/credit_note_fetch_params.rbs +0 -2
- data/sig/orb/models/credit_note_list_params.rbs +0 -2
- data/sig/orb/models/customer.rbs +43 -63
- data/sig/orb/models/customer_create_params.rbs +32 -52
- data/sig/orb/models/customer_delete_params.rbs +0 -2
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customer_fetch_params.rbs +0 -2
- data/sig/orb/models/customer_list_params.rbs +0 -2
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +0 -2
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +0 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +32 -52
- data/sig/orb/models/customer_update_params.rbs +32 -52
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +0 -2
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +0 -6
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +0 -2
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +0 -6
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +0 -6
- data/sig/orb/models/customers/cost_list_params.rbs +0 -2
- data/sig/orb/models/customers/cost_list_response.rbs +0 -6
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +0 -2
- data/sig/orb/models/customers/credit_list_params.rbs +0 -2
- data/sig/orb/models/customers/credit_list_response.rbs +0 -2
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +3 -7
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +1 -43
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +3 -7
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +1 -43
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +1 -43
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +0 -2
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +1 -43
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +3 -7
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +0 -4
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +3 -7
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +0 -4
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +0 -4
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +0 -4
- data/sig/orb/models/dimensional_price_group.rbs +0 -2
- data/sig/orb/models/dimensional_price_group_create_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_group_list_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_groups.rbs +6 -8
- data/sig/orb/models/discount.rbs +5 -5
- data/sig/orb/models/evaluate_price_group.rbs +4 -6
- data/sig/orb/models/event_deprecate_params.rbs +0 -2
- data/sig/orb/models/event_deprecate_response.rbs +0 -2
- data/sig/orb/models/event_ingest_params.rbs +3 -7
- data/sig/orb/models/event_ingest_response.rbs +0 -6
- data/sig/orb/models/event_search_params.rbs +0 -2
- data/sig/orb/models/event_search_response.rbs +0 -4
- data/sig/orb/models/event_update_params.rbs +0 -2
- data/sig/orb/models/event_update_response.rbs +0 -2
- data/sig/orb/models/events/backfill_close_params.rbs +0 -2
- data/sig/orb/models/events/backfill_close_response.rbs +0 -2
- data/sig/orb/models/events/backfill_create_params.rbs +0 -2
- data/sig/orb/models/events/backfill_create_response.rbs +0 -2
- data/sig/orb/models/events/backfill_fetch_params.rbs +0 -2
- data/sig/orb/models/events/backfill_fetch_response.rbs +0 -2
- data/sig/orb/models/events/backfill_list_params.rbs +0 -2
- data/sig/orb/models/events/backfill_list_response.rbs +0 -2
- data/sig/orb/models/events/backfill_revert_params.rbs +0 -2
- data/sig/orb/models/events/backfill_revert_response.rbs +0 -2
- data/sig/orb/models/events/event_volumes.rbs +3 -10
- data/sig/orb/models/events/volume_list_params.rbs +0 -2
- data/sig/orb/models/invoice.rbs +110 -172
- data/sig/orb/models/invoice_create_params.rbs +10 -16
- data/sig/orb/models/invoice_fetch_params.rbs +0 -2
- data/sig/orb/models/invoice_fetch_upcoming_params.rbs +0 -2
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +2 -64
- data/sig/orb/models/invoice_issue_params.rbs +0 -2
- data/sig/orb/models/invoice_level_discount.rbs +2 -4
- data/sig/orb/models/invoice_line_item_create_params.rbs +0 -2
- data/sig/orb/models/invoice_line_item_create_response.rbs +2 -36
- data/sig/orb/models/invoice_list_params.rbs +4 -6
- data/sig/orb/models/invoice_mark_paid_params.rbs +0 -2
- data/sig/orb/models/invoice_pay_params.rbs +0 -2
- data/sig/orb/models/invoice_update_params.rbs +0 -2
- data/sig/orb/models/invoice_void_params.rbs +0 -2
- data/sig/orb/models/item.rbs +7 -11
- data/sig/orb/models/item_create_params.rbs +0 -2
- data/sig/orb/models/item_fetch_params.rbs +0 -2
- data/sig/orb/models/item_list_params.rbs +0 -2
- data/sig/orb/models/item_update_params.rbs +7 -11
- data/sig/orb/models/metric_create_params.rbs +0 -2
- data/sig/orb/models/metric_fetch_params.rbs +0 -2
- data/sig/orb/models/metric_list_params.rbs +0 -2
- data/sig/orb/models/metric_update_params.rbs +0 -2
- data/sig/orb/models/pagination_metadata.rbs +0 -2
- data/sig/orb/models/percentage_discount.rbs +4 -6
- data/sig/orb/models/plan.rbs +45 -73
- data/sig/orb/models/plan_create_params.rbs +518 -696
- data/sig/orb/models/plan_fetch_params.rbs +0 -2
- data/sig/orb/models/plan_list_params.rbs +0 -2
- data/sig/orb/models/plan_update_params.rbs +0 -2
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +0 -2
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +0 -2
- data/sig/orb/models/price.rbs +1194 -1730
- data/sig/orb/models/price_create_params.rbs +59 -97
- data/sig/orb/models/price_evaluate_params.rbs +0 -2
- data/sig/orb/models/price_evaluate_response.rbs +3 -6
- data/sig/orb/models/price_fetch_params.rbs +0 -2
- data/sig/orb/models/price_list_params.rbs +0 -2
- data/sig/orb/models/price_update_params.rbs +0 -2
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +0 -2
- data/sig/orb/models/prices/external_price_id_update_params.rbs +0 -2
- data/sig/orb/models/subscription.rbs +56 -94
- data/sig/orb/models/subscription_cancel_params.rbs +0 -2
- data/sig/orb/models/subscription_cancel_response.rbs +20 -60
- data/sig/orb/models/subscription_change_apply_params.rbs +0 -2
- data/sig/orb/models/subscription_change_apply_response.rbs +20 -62
- data/sig/orb/models/subscription_change_cancel_params.rbs +0 -2
- data/sig/orb/models/subscription_change_cancel_response.rbs +20 -62
- data/sig/orb/models/subscription_change_retrieve_params.rbs +0 -2
- data/sig/orb/models/subscription_change_retrieve_response.rbs +20 -62
- data/sig/orb/models/subscription_create_params.rbs +1103 -1499
- data/sig/orb/models/subscription_create_response.rbs +20 -60
- data/sig/orb/models/subscription_fetch_costs_params.rbs +0 -2
- data/sig/orb/models/subscription_fetch_costs_response.rbs +0 -6
- data/sig/orb/models/subscription_fetch_params.rbs +0 -2
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +0 -2
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +0 -4
- data/sig/orb/models/subscription_fetch_usage_params.rbs +0 -2
- data/sig/orb/models/subscription_list_params.rbs +0 -2
- data/sig/orb/models/subscription_price_intervals_params.rbs +666 -896
- data/sig/orb/models/subscription_price_intervals_response.rbs +20 -60
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1103 -1499
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +20 -60
- data/sig/orb/models/subscription_trigger_phase_params.rbs +0 -2
- data/sig/orb/models/subscription_trigger_phase_response.rbs +20 -60
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +0 -2
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +20 -60
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +0 -2
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +20 -60
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +0 -2
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +20 -60
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +0 -2
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +20 -60
- data/sig/orb/models/subscription_update_params.rbs +0 -2
- data/sig/orb/models/subscription_update_trial_params.rbs +1 -3
- data/sig/orb/models/subscription_update_trial_response.rbs +20 -60
- data/sig/orb/models/subscription_usage.rbs +35 -53
- data/sig/orb/models/subscriptions.rbs +6 -8
- data/sig/orb/models/top_level_ping_params.rbs +0 -2
- data/sig/orb/models/top_level_ping_response.rbs +0 -2
- data/sig/orb/models/trial_discount.rbs +4 -6
- data/sig/orb/models/usage_discount.rbs +4 -6
- data/sig/orb/request_options.rbs +1 -1
- data/sig/orb/resources/alerts.rbs +12 -12
- data/sig/orb/resources/coupons/subscriptions.rbs +1 -1
- data/sig/orb/resources/coupons.rbs +4 -4
- data/sig/orb/resources/credit_notes.rbs +4 -4
- data/sig/orb/resources/customers/credits/ledger.rbs +2 -2
- data/sig/orb/resources/customers/credits/top_ups.rbs +2 -2
- data/sig/orb/resources/customers.rbs +24 -24
- data/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +1 -1
- data/sig/orb/resources/dimensional_price_groups.rbs +3 -3
- data/sig/orb/resources/events/volume.rbs +1 -1
- data/sig/orb/resources/events.rbs +1 -1
- data/sig/orb/resources/invoices.rbs +10 -10
- data/sig/orb/resources/items.rbs +5 -5
- data/sig/orb/resources/metrics.rbs +4 -4
- data/sig/orb/resources/plans/external_plan_id.rbs +2 -2
- data/sig/orb/resources/plans.rbs +5 -5
- data/sig/orb/resources/prices.rbs +11 -11
- data/sig/orb/resources/subscriptions.rbs +21 -21
- metadata +2 -2
@@ -3,6 +3,8 @@
|
|
3
3
|
module Orb
|
4
4
|
module Models
|
5
5
|
class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
7
|
+
|
6
8
|
sig { returns(String) }
|
7
9
|
attr_accessor :id
|
8
10
|
|
@@ -13,7 +15,13 @@ module Orb
|
|
13
15
|
|
14
16
|
# The adjustment intervals for this subscription sorted by the start_date of the
|
15
17
|
# adjustment interval.
|
16
|
-
sig
|
18
|
+
sig do
|
19
|
+
returns(
|
20
|
+
T::Array[
|
21
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval
|
22
|
+
]
|
23
|
+
)
|
24
|
+
end
|
17
25
|
attr_accessor :adjustment_intervals
|
18
26
|
|
19
27
|
# Determines whether issued invoices for this subscription will automatically be
|
@@ -31,12 +39,9 @@ module Orb
|
|
31
39
|
|
32
40
|
sig do
|
33
41
|
params(
|
34
|
-
billing_cycle_anchor_configuration:
|
35
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration
|
36
|
-
|
37
|
-
)
|
38
|
-
)
|
39
|
-
.void
|
42
|
+
billing_cycle_anchor_configuration:
|
43
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration::OrHash
|
44
|
+
).void
|
40
45
|
end
|
41
46
|
attr_writer :billing_cycle_anchor_configuration
|
42
47
|
|
@@ -80,10 +85,10 @@ module Orb
|
|
80
85
|
# [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
|
81
86
|
# your account's timezone. See [Timezone localization](/essentials/timezones) for
|
82
87
|
# information on what this timezone parameter influences within Orb.
|
83
|
-
sig { returns(Orb::
|
88
|
+
sig { returns(Orb::Customer) }
|
84
89
|
attr_reader :customer
|
85
90
|
|
86
|
-
sig { params(customer:
|
91
|
+
sig { params(customer: Orb::Customer::OrHash).void }
|
87
92
|
attr_writer :customer
|
88
93
|
|
89
94
|
# Determines the default memo on this subscriptions' invoices. Note that if this
|
@@ -111,7 +116,9 @@ module Orb
|
|
111
116
|
|
112
117
|
sig do
|
113
118
|
returns(
|
114
|
-
T::Array[
|
119
|
+
T::Array[
|
120
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule
|
121
|
+
]
|
115
122
|
)
|
116
123
|
end
|
117
124
|
attr_accessor :fixed_fee_quantity_schedule
|
@@ -120,7 +127,13 @@ module Orb
|
|
120
127
|
attr_accessor :invoicing_threshold
|
121
128
|
|
122
129
|
# The maximum intervals for this subscription sorted by the start_date.
|
123
|
-
sig
|
130
|
+
sig do
|
131
|
+
returns(
|
132
|
+
T::Array[
|
133
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval
|
134
|
+
]
|
135
|
+
)
|
136
|
+
end
|
124
137
|
attr_accessor :maximum_intervals
|
125
138
|
|
126
139
|
# User specified key-value pairs for the resource. If not present, this defaults
|
@@ -131,7 +144,13 @@ module Orb
|
|
131
144
|
attr_accessor :metadata
|
132
145
|
|
133
146
|
# The minimum intervals for this subscription sorted by the start_date.
|
134
|
-
sig
|
147
|
+
sig do
|
148
|
+
returns(
|
149
|
+
T::Array[
|
150
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval
|
151
|
+
]
|
152
|
+
)
|
153
|
+
end
|
135
154
|
attr_accessor :minimum_intervals
|
136
155
|
|
137
156
|
# Determines the difference between the invoice issue date for subscription
|
@@ -144,21 +163,20 @@ module Orb
|
|
144
163
|
# A pending subscription change if one exists on this subscription.
|
145
164
|
sig do
|
146
165
|
returns(
|
147
|
-
T.nilable(
|
166
|
+
T.nilable(
|
167
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
168
|
+
)
|
148
169
|
)
|
149
170
|
end
|
150
171
|
attr_reader :pending_subscription_change
|
151
172
|
|
152
173
|
sig do
|
153
174
|
params(
|
154
|
-
pending_subscription_change:
|
155
|
-
T.
|
156
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
157
|
-
Orb::Internal::AnyHash
|
175
|
+
pending_subscription_change:
|
176
|
+
T.nilable(
|
177
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange::OrHash
|
158
178
|
)
|
159
|
-
|
160
|
-
)
|
161
|
-
.void
|
179
|
+
).void
|
162
180
|
end
|
163
181
|
attr_writer :pending_subscription_change
|
164
182
|
|
@@ -166,29 +184,38 @@ module Orb
|
|
166
184
|
# subscribed to by a customer. Plans define the billing behavior of the
|
167
185
|
# subscription. You can see more about how to configure prices in the
|
168
186
|
# [Price resource](/reference/price).
|
169
|
-
sig { returns(Orb::
|
187
|
+
sig { returns(Orb::Plan) }
|
170
188
|
attr_reader :plan
|
171
189
|
|
172
|
-
sig { params(plan:
|
190
|
+
sig { params(plan: Orb::Plan::OrHash).void }
|
173
191
|
attr_writer :plan
|
174
192
|
|
175
193
|
# The price intervals for this subscription.
|
176
|
-
sig
|
194
|
+
sig do
|
195
|
+
returns(
|
196
|
+
T::Array[
|
197
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval
|
198
|
+
]
|
199
|
+
)
|
200
|
+
end
|
177
201
|
attr_accessor :price_intervals
|
178
202
|
|
179
|
-
sig
|
203
|
+
sig do
|
204
|
+
returns(
|
205
|
+
T.nilable(
|
206
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon
|
207
|
+
)
|
208
|
+
)
|
209
|
+
end
|
180
210
|
attr_reader :redeemed_coupon
|
181
211
|
|
182
212
|
sig do
|
183
213
|
params(
|
184
|
-
redeemed_coupon:
|
185
|
-
T.
|
186
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon
|
187
|
-
Orb::Internal::AnyHash
|
214
|
+
redeemed_coupon:
|
215
|
+
T.nilable(
|
216
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon::OrHash
|
188
217
|
)
|
189
|
-
|
190
|
-
)
|
191
|
-
.void
|
218
|
+
).void
|
192
219
|
end
|
193
220
|
attr_writer :redeemed_coupon
|
194
221
|
|
@@ -196,39 +223,47 @@ module Orb
|
|
196
223
|
sig { returns(Time) }
|
197
224
|
attr_accessor :start_date
|
198
225
|
|
199
|
-
sig
|
226
|
+
sig do
|
227
|
+
returns(
|
228
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
229
|
+
)
|
230
|
+
end
|
200
231
|
attr_accessor :status
|
201
232
|
|
202
|
-
sig
|
233
|
+
sig do
|
234
|
+
returns(
|
235
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo
|
236
|
+
)
|
237
|
+
end
|
203
238
|
attr_reader :trial_info
|
204
239
|
|
205
240
|
sig do
|
206
241
|
params(
|
207
|
-
trial_info:
|
208
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo
|
209
|
-
|
210
|
-
)
|
211
|
-
)
|
212
|
-
.void
|
242
|
+
trial_info:
|
243
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo::OrHash
|
244
|
+
).void
|
213
245
|
end
|
214
246
|
attr_writer :trial_info
|
215
247
|
|
216
248
|
# The resources that were changed as part of this operation. Only present when
|
217
249
|
# fetched through the subscription changes API or if the
|
218
250
|
# `include_changed_resources` parameter was passed in the request.
|
219
|
-
sig
|
251
|
+
sig do
|
252
|
+
returns(
|
253
|
+
T.nilable(
|
254
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources
|
255
|
+
)
|
256
|
+
)
|
257
|
+
end
|
220
258
|
attr_reader :changed_resources
|
221
259
|
|
222
260
|
sig do
|
223
261
|
params(
|
224
|
-
changed_resources:
|
225
|
-
T.
|
226
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources
|
227
|
-
Orb::Internal::AnyHash
|
262
|
+
changed_resources:
|
263
|
+
T.nilable(
|
264
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources::OrHash
|
228
265
|
)
|
229
|
-
|
230
|
-
)
|
231
|
-
.void
|
266
|
+
).void
|
232
267
|
end
|
233
268
|
attr_writer :changed_resources
|
234
269
|
|
@@ -236,86 +271,66 @@ module Orb
|
|
236
271
|
params(
|
237
272
|
id: String,
|
238
273
|
active_plan_phase_order: T.nilable(Integer),
|
239
|
-
adjustment_intervals:
|
240
|
-
T
|
241
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval
|
242
|
-
|
243
|
-
)
|
244
|
-
],
|
274
|
+
adjustment_intervals:
|
275
|
+
T::Array[
|
276
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::OrHash
|
277
|
+
],
|
245
278
|
auto_collection: T.nilable(T::Boolean),
|
246
|
-
billing_cycle_anchor_configuration:
|
247
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration,
|
248
|
-
Orb::Internal::AnyHash
|
249
|
-
),
|
279
|
+
billing_cycle_anchor_configuration:
|
280
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration::OrHash,
|
250
281
|
billing_cycle_day: Integer,
|
251
282
|
created_at: Time,
|
252
283
|
current_billing_period_end_date: T.nilable(Time),
|
253
284
|
current_billing_period_start_date: T.nilable(Time),
|
254
|
-
customer:
|
285
|
+
customer: Orb::Customer::OrHash,
|
255
286
|
default_invoice_memo: T.nilable(String),
|
256
|
-
discount_intervals:
|
257
|
-
T
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
287
|
+
discount_intervals:
|
288
|
+
T::Array[
|
289
|
+
T.any(
|
290
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount::OrHash,
|
291
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage::OrHash,
|
292
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage::OrHash
|
293
|
+
)
|
294
|
+
],
|
264
295
|
end_date: T.nilable(Time),
|
265
|
-
fixed_fee_quantity_schedule:
|
266
|
-
T
|
267
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule
|
268
|
-
|
269
|
-
)
|
270
|
-
],
|
296
|
+
fixed_fee_quantity_schedule:
|
297
|
+
T::Array[
|
298
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule::OrHash
|
299
|
+
],
|
271
300
|
invoicing_threshold: T.nilable(String),
|
272
|
-
maximum_intervals:
|
273
|
-
T
|
274
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval
|
275
|
-
|
276
|
-
)
|
277
|
-
],
|
301
|
+
maximum_intervals:
|
302
|
+
T::Array[
|
303
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval::OrHash
|
304
|
+
],
|
278
305
|
metadata: T::Hash[Symbol, String],
|
279
|
-
minimum_intervals:
|
280
|
-
T
|
281
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval
|
282
|
-
|
283
|
-
)
|
284
|
-
],
|
306
|
+
minimum_intervals:
|
307
|
+
T::Array[
|
308
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval::OrHash
|
309
|
+
],
|
285
310
|
net_terms: Integer,
|
286
|
-
pending_subscription_change:
|
287
|
-
T.
|
288
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
redeemed_coupon: T.nilable(
|
300
|
-
T.any(
|
301
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon,
|
302
|
-
Orb::Internal::AnyHash
|
303
|
-
)
|
304
|
-
),
|
311
|
+
pending_subscription_change:
|
312
|
+
T.nilable(
|
313
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange::OrHash
|
314
|
+
),
|
315
|
+
plan: Orb::Plan::OrHash,
|
316
|
+
price_intervals:
|
317
|
+
T::Array[
|
318
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::OrHash
|
319
|
+
],
|
320
|
+
redeemed_coupon:
|
321
|
+
T.nilable(
|
322
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon::OrHash
|
323
|
+
),
|
305
324
|
start_date: Time,
|
306
|
-
status:
|
307
|
-
|
308
|
-
|
309
|
-
Orb::
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources,
|
314
|
-
Orb::Internal::AnyHash
|
325
|
+
status:
|
326
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::OrSymbol,
|
327
|
+
trial_info:
|
328
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo::OrHash,
|
329
|
+
changed_resources:
|
330
|
+
T.nilable(
|
331
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources::OrHash
|
315
332
|
)
|
316
|
-
|
317
|
-
)
|
318
|
-
.returns(T.attached_class)
|
333
|
+
).returns(T.attached_class)
|
319
334
|
end
|
320
335
|
def self.new(
|
321
336
|
id:,
|
@@ -404,50 +419,82 @@ module Orb
|
|
404
419
|
# fetched through the subscription changes API or if the
|
405
420
|
# `include_changed_resources` parameter was passed in the request.
|
406
421
|
changed_resources: nil
|
407
|
-
)
|
422
|
+
)
|
423
|
+
end
|
424
|
+
|
408
425
|
sig do
|
409
|
-
override
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
426
|
+
override.returns(
|
427
|
+
{
|
428
|
+
id: String,
|
429
|
+
active_plan_phase_order: T.nilable(Integer),
|
430
|
+
adjustment_intervals:
|
431
|
+
T::Array[
|
432
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval
|
433
|
+
],
|
434
|
+
auto_collection: T.nilable(T::Boolean),
|
435
|
+
billing_cycle_anchor_configuration:
|
436
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration,
|
437
|
+
billing_cycle_day: Integer,
|
438
|
+
created_at: Time,
|
439
|
+
current_billing_period_end_date: T.nilable(Time),
|
440
|
+
current_billing_period_start_date: T.nilable(Time),
|
441
|
+
customer: Orb::Customer,
|
442
|
+
default_invoice_memo: T.nilable(String),
|
443
|
+
discount_intervals:
|
444
|
+
T::Array[
|
424
445
|
T.any(
|
425
446
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
|
426
447
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
|
427
448
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage
|
428
449
|
)
|
429
450
|
],
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
451
|
+
end_date: T.nilable(Time),
|
452
|
+
fixed_fee_quantity_schedule:
|
453
|
+
T::Array[
|
454
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule
|
455
|
+
],
|
456
|
+
invoicing_threshold: T.nilable(String),
|
457
|
+
maximum_intervals:
|
458
|
+
T::Array[
|
459
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval
|
460
|
+
],
|
461
|
+
metadata: T::Hash[Symbol, String],
|
462
|
+
minimum_intervals:
|
463
|
+
T::Array[
|
464
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval
|
465
|
+
],
|
466
|
+
net_terms: Integer,
|
467
|
+
pending_subscription_change:
|
468
|
+
T.nilable(
|
469
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
470
|
+
),
|
471
|
+
plan: Orb::Plan,
|
472
|
+
price_intervals:
|
473
|
+
T::Array[
|
474
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval
|
475
|
+
],
|
476
|
+
redeemed_coupon:
|
477
|
+
T.nilable(
|
478
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon
|
479
|
+
),
|
480
|
+
start_date: Time,
|
481
|
+
status:
|
482
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol,
|
483
|
+
trial_info:
|
484
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo,
|
485
|
+
changed_resources:
|
486
|
+
T.nilable(
|
487
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources
|
488
|
+
)
|
489
|
+
}
|
490
|
+
)
|
491
|
+
end
|
492
|
+
def to_hash
|
447
493
|
end
|
448
|
-
def to_hash; end
|
449
494
|
|
450
495
|
class AdjustmentInterval < Orb::Internal::Type::BaseModel
|
496
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
497
|
+
|
451
498
|
sig { returns(String) }
|
452
499
|
attr_accessor :id
|
453
500
|
|
@@ -479,19 +526,18 @@ module Orb
|
|
479
526
|
sig do
|
480
527
|
params(
|
481
528
|
id: String,
|
482
|
-
adjustment:
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
529
|
+
adjustment:
|
530
|
+
T.any(
|
531
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
|
532
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
|
533
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
|
534
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum::OrHash,
|
535
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum::OrHash
|
536
|
+
),
|
490
537
|
applies_to_price_interval_ids: T::Array[String],
|
491
538
|
end_date: T.nilable(Time),
|
492
539
|
start_date: Time
|
493
|
-
)
|
494
|
-
.returns(T.attached_class)
|
540
|
+
).returns(T.attached_class)
|
495
541
|
end
|
496
542
|
def self.new(
|
497
543
|
id:,
|
@@ -502,31 +548,47 @@ module Orb
|
|
502
548
|
end_date:,
|
503
549
|
# The start date of the adjustment interval.
|
504
550
|
start_date:
|
505
|
-
)
|
551
|
+
)
|
552
|
+
end
|
553
|
+
|
506
554
|
sig do
|
507
|
-
override
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
555
|
+
override.returns(
|
556
|
+
{
|
557
|
+
id: String,
|
558
|
+
adjustment:
|
559
|
+
T.any(
|
512
560
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
513
561
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
514
562
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
515
563
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
|
516
564
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum
|
517
565
|
),
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
566
|
+
applies_to_price_interval_ids: T::Array[String],
|
567
|
+
end_date: T.nilable(Time),
|
568
|
+
start_date: Time
|
569
|
+
}
|
570
|
+
)
|
571
|
+
end
|
572
|
+
def to_hash
|
523
573
|
end
|
524
|
-
def to_hash; end
|
525
574
|
|
526
575
|
module Adjustment
|
527
576
|
extend Orb::Internal::Type::Union
|
528
577
|
|
578
|
+
Variants =
|
579
|
+
T.type_alias do
|
580
|
+
T.any(
|
581
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
582
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
583
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
584
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
|
585
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum
|
586
|
+
)
|
587
|
+
end
|
588
|
+
|
529
589
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
590
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
591
|
+
|
530
592
|
sig { returns(String) }
|
531
593
|
attr_accessor :id
|
532
594
|
|
@@ -564,8 +626,7 @@ module Orb
|
|
564
626
|
reason: T.nilable(String),
|
565
627
|
usage_discount: Float,
|
566
628
|
adjustment_type: Symbol
|
567
|
-
)
|
568
|
-
.returns(T.attached_class)
|
629
|
+
).returns(T.attached_class)
|
569
630
|
end
|
570
631
|
def self.new(
|
571
632
|
id:,
|
@@ -582,25 +643,29 @@ module Orb
|
|
582
643
|
# to in a given billing period.
|
583
644
|
usage_discount:,
|
584
645
|
adjustment_type: :usage_discount
|
585
|
-
)
|
646
|
+
)
|
647
|
+
end
|
648
|
+
|
586
649
|
sig do
|
587
|
-
override
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
650
|
+
override.returns(
|
651
|
+
{
|
652
|
+
id: String,
|
653
|
+
adjustment_type: Symbol,
|
654
|
+
applies_to_price_ids: T::Array[String],
|
655
|
+
is_invoice_level: T::Boolean,
|
656
|
+
plan_phase_order: T.nilable(Integer),
|
657
|
+
reason: T.nilable(String),
|
658
|
+
usage_discount: Float
|
659
|
+
}
|
660
|
+
)
|
661
|
+
end
|
662
|
+
def to_hash
|
599
663
|
end
|
600
|
-
def to_hash; end
|
601
664
|
end
|
602
665
|
|
603
666
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
667
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
668
|
+
|
604
669
|
sig { returns(String) }
|
605
670
|
attr_accessor :id
|
606
671
|
|
@@ -638,8 +703,7 @@ module Orb
|
|
638
703
|
plan_phase_order: T.nilable(Integer),
|
639
704
|
reason: T.nilable(String),
|
640
705
|
adjustment_type: Symbol
|
641
|
-
)
|
642
|
-
.returns(T.attached_class)
|
706
|
+
).returns(T.attached_class)
|
643
707
|
end
|
644
708
|
def self.new(
|
645
709
|
id:,
|
@@ -656,25 +720,29 @@ module Orb
|
|
656
720
|
# The reason for the adjustment.
|
657
721
|
reason:,
|
658
722
|
adjustment_type: :amount_discount
|
659
|
-
)
|
723
|
+
)
|
724
|
+
end
|
725
|
+
|
660
726
|
sig do
|
661
|
-
override
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
727
|
+
override.returns(
|
728
|
+
{
|
729
|
+
id: String,
|
730
|
+
adjustment_type: Symbol,
|
731
|
+
amount_discount: String,
|
732
|
+
applies_to_price_ids: T::Array[String],
|
733
|
+
is_invoice_level: T::Boolean,
|
734
|
+
plan_phase_order: T.nilable(Integer),
|
735
|
+
reason: T.nilable(String)
|
736
|
+
}
|
737
|
+
)
|
738
|
+
end
|
739
|
+
def to_hash
|
673
740
|
end
|
674
|
-
def to_hash; end
|
675
741
|
end
|
676
742
|
|
677
743
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
744
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
745
|
+
|
678
746
|
sig { returns(String) }
|
679
747
|
attr_accessor :id
|
680
748
|
|
@@ -712,8 +780,7 @@ module Orb
|
|
712
780
|
plan_phase_order: T.nilable(Integer),
|
713
781
|
reason: T.nilable(String),
|
714
782
|
adjustment_type: Symbol
|
715
|
-
)
|
716
|
-
.returns(T.attached_class)
|
783
|
+
).returns(T.attached_class)
|
717
784
|
end
|
718
785
|
def self.new(
|
719
786
|
id:,
|
@@ -730,25 +797,29 @@ module Orb
|
|
730
797
|
# The reason for the adjustment.
|
731
798
|
reason:,
|
732
799
|
adjustment_type: :percentage_discount
|
733
|
-
)
|
800
|
+
)
|
801
|
+
end
|
802
|
+
|
734
803
|
sig do
|
735
|
-
override
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
804
|
+
override.returns(
|
805
|
+
{
|
806
|
+
id: String,
|
807
|
+
adjustment_type: Symbol,
|
808
|
+
applies_to_price_ids: T::Array[String],
|
809
|
+
is_invoice_level: T::Boolean,
|
810
|
+
percentage_discount: Float,
|
811
|
+
plan_phase_order: T.nilable(Integer),
|
812
|
+
reason: T.nilable(String)
|
813
|
+
}
|
814
|
+
)
|
815
|
+
end
|
816
|
+
def to_hash
|
747
817
|
end
|
748
|
-
def to_hash; end
|
749
818
|
end
|
750
819
|
|
751
820
|
class Minimum < Orb::Internal::Type::BaseModel
|
821
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
822
|
+
|
752
823
|
sig { returns(String) }
|
753
824
|
attr_accessor :id
|
754
825
|
|
@@ -791,8 +862,7 @@ module Orb
|
|
791
862
|
plan_phase_order: T.nilable(Integer),
|
792
863
|
reason: T.nilable(String),
|
793
864
|
adjustment_type: Symbol
|
794
|
-
)
|
795
|
-
.returns(T.attached_class)
|
865
|
+
).returns(T.attached_class)
|
796
866
|
end
|
797
867
|
def self.new(
|
798
868
|
id:,
|
@@ -811,26 +881,30 @@ module Orb
|
|
811
881
|
# The reason for the adjustment.
|
812
882
|
reason:,
|
813
883
|
adjustment_type: :minimum
|
814
|
-
)
|
884
|
+
)
|
885
|
+
end
|
886
|
+
|
815
887
|
sig do
|
816
|
-
override
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
888
|
+
override.returns(
|
889
|
+
{
|
890
|
+
id: String,
|
891
|
+
adjustment_type: Symbol,
|
892
|
+
applies_to_price_ids: T::Array[String],
|
893
|
+
is_invoice_level: T::Boolean,
|
894
|
+
item_id: String,
|
895
|
+
minimum_amount: String,
|
896
|
+
plan_phase_order: T.nilable(Integer),
|
897
|
+
reason: T.nilable(String)
|
898
|
+
}
|
899
|
+
)
|
900
|
+
end
|
901
|
+
def to_hash
|
829
902
|
end
|
830
|
-
def to_hash; end
|
831
903
|
end
|
832
904
|
|
833
905
|
class Maximum < Orb::Internal::Type::BaseModel
|
906
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
907
|
+
|
834
908
|
sig { returns(String) }
|
835
909
|
attr_accessor :id
|
836
910
|
|
@@ -868,8 +942,7 @@ module Orb
|
|
868
942
|
plan_phase_order: T.nilable(Integer),
|
869
943
|
reason: T.nilable(String),
|
870
944
|
adjustment_type: Symbol
|
871
|
-
)
|
872
|
-
.returns(T.attached_class)
|
945
|
+
).returns(T.attached_class)
|
873
946
|
end
|
874
947
|
def self.new(
|
875
948
|
id:,
|
@@ -886,35 +959,41 @@ module Orb
|
|
886
959
|
# The reason for the adjustment.
|
887
960
|
reason:,
|
888
961
|
adjustment_type: :maximum
|
889
|
-
)
|
962
|
+
)
|
963
|
+
end
|
964
|
+
|
890
965
|
sig do
|
891
|
-
override
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
966
|
+
override.returns(
|
967
|
+
{
|
968
|
+
id: String,
|
969
|
+
adjustment_type: Symbol,
|
970
|
+
applies_to_price_ids: T::Array[String],
|
971
|
+
is_invoice_level: T::Boolean,
|
972
|
+
maximum_amount: String,
|
973
|
+
plan_phase_order: T.nilable(Integer),
|
974
|
+
reason: T.nilable(String)
|
975
|
+
}
|
976
|
+
)
|
977
|
+
end
|
978
|
+
def to_hash
|
903
979
|
end
|
904
|
-
def to_hash; end
|
905
980
|
end
|
906
981
|
|
907
982
|
sig do
|
908
|
-
override
|
909
|
-
|
910
|
-
|
911
|
-
|
983
|
+
override.returns(
|
984
|
+
T::Array[
|
985
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants
|
986
|
+
]
|
987
|
+
)
|
988
|
+
end
|
989
|
+
def self.variants
|
912
990
|
end
|
913
|
-
def self.variants; end
|
914
991
|
end
|
915
992
|
end
|
916
993
|
|
917
994
|
class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
|
995
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
996
|
+
|
918
997
|
# The day of the month on which the billing cycle is anchored. If the maximum
|
919
998
|
# number of days in a month is greater than this value, the last day of the month
|
920
999
|
# is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
@@ -934,7 +1013,11 @@ module Orb
|
|
934
1013
|
attr_accessor :year
|
935
1014
|
|
936
1015
|
sig do
|
937
|
-
params(
|
1016
|
+
params(
|
1017
|
+
day: Integer,
|
1018
|
+
month: T.nilable(Integer),
|
1019
|
+
year: T.nilable(Integer)
|
1020
|
+
).returns(T.attached_class)
|
938
1021
|
end
|
939
1022
|
def self.new(
|
940
1023
|
# The day of the month on which the billing cycle is anchored. If the maximum
|
@@ -949,15 +1032,37 @@ module Orb
|
|
949
1032
|
# The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
950
1033
|
# anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
951
1034
|
year: nil
|
952
|
-
)
|
953
|
-
|
954
|
-
|
1035
|
+
)
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
sig do
|
1039
|
+
override.returns(
|
1040
|
+
{
|
1041
|
+
day: Integer,
|
1042
|
+
month: T.nilable(Integer),
|
1043
|
+
year: T.nilable(Integer)
|
1044
|
+
}
|
1045
|
+
)
|
1046
|
+
end
|
1047
|
+
def to_hash
|
1048
|
+
end
|
955
1049
|
end
|
956
1050
|
|
957
1051
|
module DiscountInterval
|
958
1052
|
extend Orb::Internal::Type::Union
|
959
1053
|
|
1054
|
+
Variants =
|
1055
|
+
T.type_alias do
|
1056
|
+
T.any(
|
1057
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
|
1058
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
|
1059
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage
|
1060
|
+
)
|
1061
|
+
end
|
1062
|
+
|
960
1063
|
class Amount < Orb::Internal::Type::BaseModel
|
1064
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1065
|
+
|
961
1066
|
# Only available if discount_type is `amount`.
|
962
1067
|
sig { returns(String) }
|
963
1068
|
attr_accessor :amount_discount
|
@@ -989,8 +1094,7 @@ module Orb
|
|
989
1094
|
end_date: T.nilable(Time),
|
990
1095
|
start_date: Time,
|
991
1096
|
discount_type: Symbol
|
992
|
-
)
|
993
|
-
.returns(T.attached_class)
|
1097
|
+
).returns(T.attached_class)
|
994
1098
|
end
|
995
1099
|
def self.new(
|
996
1100
|
# Only available if discount_type is `amount`.
|
@@ -1004,24 +1108,28 @@ module Orb
|
|
1004
1108
|
# The start date of the discount interval.
|
1005
1109
|
start_date:,
|
1006
1110
|
discount_type: :amount
|
1007
|
-
)
|
1111
|
+
)
|
1112
|
+
end
|
1113
|
+
|
1008
1114
|
sig do
|
1009
|
-
override
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1115
|
+
override.returns(
|
1116
|
+
{
|
1117
|
+
amount_discount: String,
|
1118
|
+
applies_to_price_ids: T::Array[String],
|
1119
|
+
applies_to_price_interval_ids: T::Array[String],
|
1120
|
+
discount_type: Symbol,
|
1121
|
+
end_date: T.nilable(Time),
|
1122
|
+
start_date: Time
|
1123
|
+
}
|
1124
|
+
)
|
1125
|
+
end
|
1126
|
+
def to_hash
|
1020
1127
|
end
|
1021
|
-
def to_hash; end
|
1022
1128
|
end
|
1023
1129
|
|
1024
1130
|
class Percentage < Orb::Internal::Type::BaseModel
|
1131
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1132
|
+
|
1025
1133
|
# The price ids that this discount interval applies to.
|
1026
1134
|
sig { returns(T::Array[String]) }
|
1027
1135
|
attr_accessor :applies_to_price_ids
|
@@ -1054,8 +1162,7 @@ module Orb
|
|
1054
1162
|
percentage_discount: Float,
|
1055
1163
|
start_date: Time,
|
1056
1164
|
discount_type: Symbol
|
1057
|
-
)
|
1058
|
-
.returns(T.attached_class)
|
1165
|
+
).returns(T.attached_class)
|
1059
1166
|
end
|
1060
1167
|
def self.new(
|
1061
1168
|
# The price ids that this discount interval applies to.
|
@@ -1070,24 +1177,28 @@ module Orb
|
|
1070
1177
|
# The start date of the discount interval.
|
1071
1178
|
start_date:,
|
1072
1179
|
discount_type: :percentage
|
1073
|
-
)
|
1180
|
+
)
|
1181
|
+
end
|
1182
|
+
|
1074
1183
|
sig do
|
1075
|
-
override
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1184
|
+
override.returns(
|
1185
|
+
{
|
1186
|
+
applies_to_price_ids: T::Array[String],
|
1187
|
+
applies_to_price_interval_ids: T::Array[String],
|
1188
|
+
discount_type: Symbol,
|
1189
|
+
end_date: T.nilable(Time),
|
1190
|
+
percentage_discount: Float,
|
1191
|
+
start_date: Time
|
1192
|
+
}
|
1193
|
+
)
|
1194
|
+
end
|
1195
|
+
def to_hash
|
1086
1196
|
end
|
1087
|
-
def to_hash; end
|
1088
1197
|
end
|
1089
1198
|
|
1090
1199
|
class Usage < Orb::Internal::Type::BaseModel
|
1200
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1201
|
+
|
1091
1202
|
# The price ids that this discount interval applies to.
|
1092
1203
|
sig { returns(T::Array[String]) }
|
1093
1204
|
attr_accessor :applies_to_price_ids
|
@@ -1120,8 +1231,7 @@ module Orb
|
|
1120
1231
|
start_date: Time,
|
1121
1232
|
usage_discount: Float,
|
1122
1233
|
discount_type: Symbol
|
1123
|
-
)
|
1124
|
-
.returns(T.attached_class)
|
1234
|
+
).returns(T.attached_class)
|
1125
1235
|
end
|
1126
1236
|
def self.new(
|
1127
1237
|
# The price ids that this discount interval applies to.
|
@@ -1136,33 +1246,39 @@ module Orb
|
|
1136
1246
|
# discount is for
|
1137
1247
|
usage_discount:,
|
1138
1248
|
discount_type: :usage
|
1139
|
-
)
|
1249
|
+
)
|
1250
|
+
end
|
1251
|
+
|
1140
1252
|
sig do
|
1141
|
-
override
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1253
|
+
override.returns(
|
1254
|
+
{
|
1255
|
+
applies_to_price_ids: T::Array[String],
|
1256
|
+
applies_to_price_interval_ids: T::Array[String],
|
1257
|
+
discount_type: Symbol,
|
1258
|
+
end_date: T.nilable(Time),
|
1259
|
+
start_date: Time,
|
1260
|
+
usage_discount: Float
|
1261
|
+
}
|
1262
|
+
)
|
1263
|
+
end
|
1264
|
+
def to_hash
|
1152
1265
|
end
|
1153
|
-
def to_hash; end
|
1154
1266
|
end
|
1155
1267
|
|
1156
1268
|
sig do
|
1157
|
-
override
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1269
|
+
override.returns(
|
1270
|
+
T::Array[
|
1271
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants
|
1272
|
+
]
|
1273
|
+
)
|
1274
|
+
end
|
1275
|
+
def self.variants
|
1161
1276
|
end
|
1162
|
-
def self.variants; end
|
1163
1277
|
end
|
1164
1278
|
|
1165
1279
|
class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
|
1280
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1281
|
+
|
1166
1282
|
sig { returns(T.nilable(Time)) }
|
1167
1283
|
attr_accessor :end_date
|
1168
1284
|
|
@@ -1176,18 +1292,33 @@ module Orb
|
|
1176
1292
|
attr_accessor :start_date
|
1177
1293
|
|
1178
1294
|
sig do
|
1179
|
-
params(
|
1180
|
-
.
|
1295
|
+
params(
|
1296
|
+
end_date: T.nilable(Time),
|
1297
|
+
price_id: String,
|
1298
|
+
quantity: Float,
|
1299
|
+
start_date: Time
|
1300
|
+
).returns(T.attached_class)
|
1301
|
+
end
|
1302
|
+
def self.new(end_date:, price_id:, quantity:, start_date:)
|
1181
1303
|
end
|
1182
|
-
def self.new(end_date:, price_id:, quantity:, start_date:); end
|
1183
1304
|
|
1184
1305
|
sig do
|
1185
|
-
override.returns(
|
1306
|
+
override.returns(
|
1307
|
+
{
|
1308
|
+
end_date: T.nilable(Time),
|
1309
|
+
price_id: String,
|
1310
|
+
quantity: Float,
|
1311
|
+
start_date: Time
|
1312
|
+
}
|
1313
|
+
)
|
1314
|
+
end
|
1315
|
+
def to_hash
|
1186
1316
|
end
|
1187
|
-
def to_hash; end
|
1188
1317
|
end
|
1189
1318
|
|
1190
1319
|
class MaximumInterval < Orb::Internal::Type::BaseModel
|
1320
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1321
|
+
|
1191
1322
|
# The price ids that this maximum interval applies to.
|
1192
1323
|
sig { returns(T::Array[String]) }
|
1193
1324
|
attr_accessor :applies_to_price_ids
|
@@ -1216,8 +1347,7 @@ module Orb
|
|
1216
1347
|
end_date: T.nilable(Time),
|
1217
1348
|
maximum_amount: String,
|
1218
1349
|
start_date: Time
|
1219
|
-
)
|
1220
|
-
.returns(T.attached_class)
|
1350
|
+
).returns(T.attached_class)
|
1221
1351
|
end
|
1222
1352
|
def self.new(
|
1223
1353
|
# The price ids that this maximum interval applies to.
|
@@ -1231,23 +1361,27 @@ module Orb
|
|
1231
1361
|
maximum_amount:,
|
1232
1362
|
# The start date of the maximum interval.
|
1233
1363
|
start_date:
|
1234
|
-
)
|
1364
|
+
)
|
1365
|
+
end
|
1366
|
+
|
1235
1367
|
sig do
|
1236
|
-
override
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1368
|
+
override.returns(
|
1369
|
+
{
|
1370
|
+
applies_to_price_ids: T::Array[String],
|
1371
|
+
applies_to_price_interval_ids: T::Array[String],
|
1372
|
+
end_date: T.nilable(Time),
|
1373
|
+
maximum_amount: String,
|
1374
|
+
start_date: Time
|
1375
|
+
}
|
1376
|
+
)
|
1377
|
+
end
|
1378
|
+
def to_hash
|
1246
1379
|
end
|
1247
|
-
def to_hash; end
|
1248
1380
|
end
|
1249
1381
|
|
1250
1382
|
class MinimumInterval < Orb::Internal::Type::BaseModel
|
1383
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1384
|
+
|
1251
1385
|
# The price ids that this minimum interval applies to.
|
1252
1386
|
sig { returns(T::Array[String]) }
|
1253
1387
|
attr_accessor :applies_to_price_ids
|
@@ -1276,8 +1410,7 @@ module Orb
|
|
1276
1410
|
end_date: T.nilable(Time),
|
1277
1411
|
minimum_amount: String,
|
1278
1412
|
start_date: Time
|
1279
|
-
)
|
1280
|
-
.returns(T.attached_class)
|
1413
|
+
).returns(T.attached_class)
|
1281
1414
|
end
|
1282
1415
|
def self.new(
|
1283
1416
|
# The price ids that this minimum interval applies to.
|
@@ -1291,35 +1424,43 @@ module Orb
|
|
1291
1424
|
minimum_amount:,
|
1292
1425
|
# The start date of the minimum interval.
|
1293
1426
|
start_date:
|
1294
|
-
)
|
1427
|
+
)
|
1428
|
+
end
|
1429
|
+
|
1295
1430
|
sig do
|
1296
|
-
override
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1431
|
+
override.returns(
|
1432
|
+
{
|
1433
|
+
applies_to_price_ids: T::Array[String],
|
1434
|
+
applies_to_price_interval_ids: T::Array[String],
|
1435
|
+
end_date: T.nilable(Time),
|
1436
|
+
minimum_amount: String,
|
1437
|
+
start_date: Time
|
1438
|
+
}
|
1439
|
+
)
|
1440
|
+
end
|
1441
|
+
def to_hash
|
1306
1442
|
end
|
1307
|
-
def to_hash; end
|
1308
1443
|
end
|
1309
1444
|
|
1310
1445
|
class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
|
1446
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1447
|
+
|
1311
1448
|
sig { returns(String) }
|
1312
1449
|
attr_accessor :id
|
1313
1450
|
|
1314
1451
|
# A pending subscription change if one exists on this subscription.
|
1315
1452
|
sig { params(id: String).returns(T.attached_class) }
|
1316
|
-
def self.new(id:)
|
1453
|
+
def self.new(id:)
|
1454
|
+
end
|
1317
1455
|
|
1318
|
-
sig { override.returns({id: String}) }
|
1319
|
-
def to_hash
|
1456
|
+
sig { override.returns({ id: String }) }
|
1457
|
+
def to_hash
|
1458
|
+
end
|
1320
1459
|
end
|
1321
1460
|
|
1322
1461
|
class PriceInterval < Orb::Internal::Type::BaseModel
|
1462
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1463
|
+
|
1323
1464
|
sig { returns(String) }
|
1324
1465
|
attr_accessor :id
|
1325
1466
|
|
@@ -1374,34 +1515,34 @@ module Orb
|
|
1374
1515
|
sig do
|
1375
1516
|
returns(
|
1376
1517
|
T.any(
|
1377
|
-
Orb::
|
1378
|
-
Orb::
|
1379
|
-
Orb::
|
1380
|
-
Orb::
|
1381
|
-
Orb::
|
1382
|
-
Orb::
|
1383
|
-
Orb::
|
1384
|
-
Orb::
|
1385
|
-
Orb::
|
1386
|
-
Orb::
|
1387
|
-
Orb::
|
1388
|
-
Orb::
|
1389
|
-
Orb::
|
1390
|
-
Orb::
|
1391
|
-
Orb::
|
1392
|
-
Orb::
|
1393
|
-
Orb::
|
1394
|
-
Orb::
|
1395
|
-
Orb::
|
1396
|
-
Orb::
|
1397
|
-
Orb::
|
1398
|
-
Orb::
|
1399
|
-
Orb::
|
1400
|
-
Orb::
|
1401
|
-
Orb::
|
1402
|
-
Orb::
|
1403
|
-
Orb::
|
1404
|
-
Orb::
|
1518
|
+
Orb::Price::Unit,
|
1519
|
+
Orb::Price::Package,
|
1520
|
+
Orb::Price::Matrix,
|
1521
|
+
Orb::Price::Tiered,
|
1522
|
+
Orb::Price::TieredBps,
|
1523
|
+
Orb::Price::Bps,
|
1524
|
+
Orb::Price::BulkBps,
|
1525
|
+
Orb::Price::Bulk,
|
1526
|
+
Orb::Price::ThresholdTotalAmount,
|
1527
|
+
Orb::Price::TieredPackage,
|
1528
|
+
Orb::Price::GroupedTiered,
|
1529
|
+
Orb::Price::TieredWithMinimum,
|
1530
|
+
Orb::Price::TieredPackageWithMinimum,
|
1531
|
+
Orb::Price::PackageWithAllocation,
|
1532
|
+
Orb::Price::UnitWithPercent,
|
1533
|
+
Orb::Price::MatrixWithAllocation,
|
1534
|
+
Orb::Price::TieredWithProration,
|
1535
|
+
Orb::Price::UnitWithProration,
|
1536
|
+
Orb::Price::GroupedAllocation,
|
1537
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1538
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1539
|
+
Orb::Price::MatrixWithDisplayName,
|
1540
|
+
Orb::Price::BulkWithProration,
|
1541
|
+
Orb::Price::GroupedTieredPackage,
|
1542
|
+
Orb::Price::MaxGroupTieredPackage,
|
1543
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1544
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1545
|
+
Orb::Price::CumulativeGroupedBulk
|
1405
1546
|
)
|
1406
1547
|
)
|
1407
1548
|
end
|
@@ -1428,49 +1569,46 @@ module Orb
|
|
1428
1569
|
current_billing_period_start_date: T.nilable(Time),
|
1429
1570
|
end_date: T.nilable(Time),
|
1430
1571
|
filter: T.nilable(String),
|
1431
|
-
fixed_fee_quantity_transitions:
|
1432
|
-
T
|
1433
|
-
T
|
1434
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
Orb::Models::Price::CumulativeGroupedBulk
|
1469
|
-
),
|
1572
|
+
fixed_fee_quantity_transitions:
|
1573
|
+
T.nilable(
|
1574
|
+
T::Array[
|
1575
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition::OrHash
|
1576
|
+
]
|
1577
|
+
),
|
1578
|
+
price:
|
1579
|
+
T.any(
|
1580
|
+
Orb::Price::Unit::OrHash,
|
1581
|
+
Orb::Price::Package::OrHash,
|
1582
|
+
Orb::Price::Matrix::OrHash,
|
1583
|
+
Orb::Price::Tiered::OrHash,
|
1584
|
+
Orb::Price::TieredBps::OrHash,
|
1585
|
+
Orb::Price::Bps::OrHash,
|
1586
|
+
Orb::Price::BulkBps::OrHash,
|
1587
|
+
Orb::Price::Bulk::OrHash,
|
1588
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
1589
|
+
Orb::Price::TieredPackage::OrHash,
|
1590
|
+
Orb::Price::GroupedTiered::OrHash,
|
1591
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
1592
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
1593
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
1594
|
+
Orb::Price::UnitWithPercent::OrHash,
|
1595
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
1596
|
+
Orb::Price::TieredWithProration::OrHash,
|
1597
|
+
Orb::Price::UnitWithProration::OrHash,
|
1598
|
+
Orb::Price::GroupedAllocation::OrHash,
|
1599
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
1600
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
1601
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
1602
|
+
Orb::Price::BulkWithProration::OrHash,
|
1603
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
1604
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
1605
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
1606
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
1607
|
+
Orb::Price::CumulativeGroupedBulk::OrHash
|
1608
|
+
),
|
1470
1609
|
start_date: Time,
|
1471
1610
|
usage_customer_ids: T.nilable(T::Array[String])
|
1472
|
-
)
|
1473
|
-
.returns(T.attached_class)
|
1611
|
+
).returns(T.attached_class)
|
1474
1612
|
end
|
1475
1613
|
def self.new(
|
1476
1614
|
id:,
|
@@ -1509,60 +1647,66 @@ module Orb
|
|
1509
1647
|
# A list of customer IDs whose usage events will be aggregated and billed under
|
1510
1648
|
# this price interval.
|
1511
1649
|
usage_customer_ids:
|
1512
|
-
)
|
1650
|
+
)
|
1651
|
+
end
|
1652
|
+
|
1513
1653
|
sig do
|
1514
|
-
override
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1654
|
+
override.returns(
|
1655
|
+
{
|
1656
|
+
id: String,
|
1657
|
+
billing_cycle_day: Integer,
|
1658
|
+
current_billing_period_end_date: T.nilable(Time),
|
1659
|
+
current_billing_period_start_date: T.nilable(Time),
|
1660
|
+
end_date: T.nilable(Time),
|
1661
|
+
filter: T.nilable(String),
|
1662
|
+
fixed_fee_quantity_transitions:
|
1663
|
+
T.nilable(
|
1524
1664
|
T::Array[
|
1525
1665
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition
|
1526
1666
|
]
|
1527
1667
|
),
|
1528
|
-
|
1529
|
-
|
1530
|
-
Orb::
|
1531
|
-
Orb::
|
1532
|
-
Orb::
|
1533
|
-
Orb::
|
1534
|
-
Orb::
|
1535
|
-
Orb::
|
1536
|
-
Orb::
|
1537
|
-
Orb::
|
1538
|
-
Orb::
|
1539
|
-
Orb::
|
1540
|
-
Orb::
|
1541
|
-
Orb::
|
1542
|
-
Orb::
|
1543
|
-
Orb::
|
1544
|
-
Orb::
|
1545
|
-
Orb::
|
1546
|
-
Orb::
|
1547
|
-
Orb::
|
1548
|
-
Orb::
|
1549
|
-
Orb::
|
1550
|
-
Orb::
|
1551
|
-
Orb::
|
1552
|
-
Orb::
|
1553
|
-
Orb::
|
1554
|
-
Orb::
|
1555
|
-
Orb::
|
1556
|
-
Orb::
|
1668
|
+
price:
|
1669
|
+
T.any(
|
1670
|
+
Orb::Price::Unit,
|
1671
|
+
Orb::Price::Package,
|
1672
|
+
Orb::Price::Matrix,
|
1673
|
+
Orb::Price::Tiered,
|
1674
|
+
Orb::Price::TieredBps,
|
1675
|
+
Orb::Price::Bps,
|
1676
|
+
Orb::Price::BulkBps,
|
1677
|
+
Orb::Price::Bulk,
|
1678
|
+
Orb::Price::ThresholdTotalAmount,
|
1679
|
+
Orb::Price::TieredPackage,
|
1680
|
+
Orb::Price::GroupedTiered,
|
1681
|
+
Orb::Price::TieredWithMinimum,
|
1682
|
+
Orb::Price::TieredPackageWithMinimum,
|
1683
|
+
Orb::Price::PackageWithAllocation,
|
1684
|
+
Orb::Price::UnitWithPercent,
|
1685
|
+
Orb::Price::MatrixWithAllocation,
|
1686
|
+
Orb::Price::TieredWithProration,
|
1687
|
+
Orb::Price::UnitWithProration,
|
1688
|
+
Orb::Price::GroupedAllocation,
|
1689
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1690
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1691
|
+
Orb::Price::MatrixWithDisplayName,
|
1692
|
+
Orb::Price::BulkWithProration,
|
1693
|
+
Orb::Price::GroupedTieredPackage,
|
1694
|
+
Orb::Price::MaxGroupTieredPackage,
|
1695
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1696
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1697
|
+
Orb::Price::CumulativeGroupedBulk
|
1557
1698
|
),
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1699
|
+
start_date: Time,
|
1700
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
1701
|
+
}
|
1702
|
+
)
|
1703
|
+
end
|
1704
|
+
def to_hash
|
1562
1705
|
end
|
1563
|
-
def to_hash; end
|
1564
1706
|
|
1565
1707
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
1708
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1709
|
+
|
1566
1710
|
sig { returns(Time) }
|
1567
1711
|
attr_accessor :effective_date
|
1568
1712
|
|
@@ -1572,15 +1716,29 @@ module Orb
|
|
1572
1716
|
sig { returns(Integer) }
|
1573
1717
|
attr_accessor :quantity
|
1574
1718
|
|
1575
|
-
sig
|
1576
|
-
|
1719
|
+
sig do
|
1720
|
+
params(
|
1721
|
+
effective_date: Time,
|
1722
|
+
price_id: String,
|
1723
|
+
quantity: Integer
|
1724
|
+
).returns(T.attached_class)
|
1725
|
+
end
|
1726
|
+
def self.new(effective_date:, price_id:, quantity:)
|
1727
|
+
end
|
1577
1728
|
|
1578
|
-
sig
|
1579
|
-
|
1729
|
+
sig do
|
1730
|
+
override.returns(
|
1731
|
+
{ effective_date: Time, price_id: String, quantity: Integer }
|
1732
|
+
)
|
1733
|
+
end
|
1734
|
+
def to_hash
|
1735
|
+
end
|
1580
1736
|
end
|
1581
1737
|
end
|
1582
1738
|
|
1583
1739
|
class RedeemedCoupon < Orb::Internal::Type::BaseModel
|
1740
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1741
|
+
|
1584
1742
|
sig { returns(String) }
|
1585
1743
|
attr_accessor :coupon_id
|
1586
1744
|
|
@@ -1591,63 +1749,95 @@ module Orb
|
|
1591
1749
|
attr_accessor :start_date
|
1592
1750
|
|
1593
1751
|
sig do
|
1594
|
-
params(
|
1752
|
+
params(
|
1753
|
+
coupon_id: String,
|
1754
|
+
end_date: T.nilable(Time),
|
1755
|
+
start_date: Time
|
1756
|
+
).returns(T.attached_class)
|
1757
|
+
end
|
1758
|
+
def self.new(coupon_id:, end_date:, start_date:)
|
1595
1759
|
end
|
1596
|
-
def self.new(coupon_id:, end_date:, start_date:); end
|
1597
1760
|
|
1598
|
-
sig
|
1599
|
-
|
1761
|
+
sig do
|
1762
|
+
override.returns(
|
1763
|
+
{ coupon_id: String, end_date: T.nilable(Time), start_date: Time }
|
1764
|
+
)
|
1765
|
+
end
|
1766
|
+
def to_hash
|
1767
|
+
end
|
1600
1768
|
end
|
1601
1769
|
|
1602
1770
|
module Status
|
1603
1771
|
extend Orb::Internal::Type::Enum
|
1604
1772
|
|
1605
1773
|
TaggedSymbol =
|
1606
|
-
T.type_alias
|
1774
|
+
T.type_alias do
|
1775
|
+
T.all(
|
1776
|
+
Symbol,
|
1777
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status
|
1778
|
+
)
|
1779
|
+
end
|
1607
1780
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1608
1781
|
|
1609
1782
|
ACTIVE =
|
1610
|
-
T.let(
|
1783
|
+
T.let(
|
1784
|
+
:active,
|
1785
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1786
|
+
)
|
1611
1787
|
ENDED =
|
1612
|
-
T.let(
|
1788
|
+
T.let(
|
1789
|
+
:ended,
|
1790
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1791
|
+
)
|
1613
1792
|
UPCOMING =
|
1614
|
-
T.let(
|
1793
|
+
T.let(
|
1794
|
+
:upcoming,
|
1795
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1796
|
+
)
|
1615
1797
|
|
1616
1798
|
sig do
|
1617
|
-
override
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1799
|
+
override.returns(
|
1800
|
+
T::Array[
|
1801
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1802
|
+
]
|
1803
|
+
)
|
1804
|
+
end
|
1805
|
+
def self.values
|
1621
1806
|
end
|
1622
|
-
def self.values; end
|
1623
1807
|
end
|
1624
1808
|
|
1625
1809
|
class TrialInfo < Orb::Internal::Type::BaseModel
|
1810
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1811
|
+
|
1626
1812
|
sig { returns(T.nilable(Time)) }
|
1627
1813
|
attr_accessor :end_date
|
1628
1814
|
|
1629
1815
|
sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
|
1630
|
-
def self.new(end_date:)
|
1816
|
+
def self.new(end_date:)
|
1817
|
+
end
|
1631
1818
|
|
1632
|
-
sig { override.returns({end_date: T.nilable(Time)}) }
|
1633
|
-
def to_hash
|
1819
|
+
sig { override.returns({ end_date: T.nilable(Time) }) }
|
1820
|
+
def to_hash
|
1821
|
+
end
|
1634
1822
|
end
|
1635
1823
|
|
1636
1824
|
class ChangedResources < Orb::Internal::Type::BaseModel
|
1825
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1826
|
+
|
1637
1827
|
# The credit notes that were created as part of this operation.
|
1638
|
-
sig { returns(T::Array[Orb::
|
1828
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1639
1829
|
attr_accessor :created_credit_notes
|
1640
1830
|
|
1641
1831
|
# The invoices that were created as part of this operation.
|
1642
|
-
sig { returns(T::Array[Orb::
|
1832
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1643
1833
|
attr_accessor :created_invoices
|
1644
1834
|
|
1645
1835
|
# The credit notes that were voided as part of this operation.
|
1646
|
-
sig { returns(T::Array[Orb::
|
1836
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1647
1837
|
attr_accessor :voided_credit_notes
|
1648
1838
|
|
1649
1839
|
# The invoices that were voided as part of this operation.
|
1650
|
-
sig { returns(T::Array[Orb::
|
1840
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1651
1841
|
attr_accessor :voided_invoices
|
1652
1842
|
|
1653
1843
|
# The resources that were changed as part of this operation. Only present when
|
@@ -1655,12 +1845,11 @@ module Orb
|
|
1655
1845
|
# `include_changed_resources` parameter was passed in the request.
|
1656
1846
|
sig do
|
1657
1847
|
params(
|
1658
|
-
created_credit_notes: T::Array[
|
1659
|
-
created_invoices: T::Array[
|
1660
|
-
voided_credit_notes: T::Array[
|
1661
|
-
voided_invoices: T::Array[
|
1662
|
-
)
|
1663
|
-
.returns(T.attached_class)
|
1848
|
+
created_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
1849
|
+
created_invoices: T::Array[Orb::Invoice::OrHash],
|
1850
|
+
voided_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
1851
|
+
voided_invoices: T::Array[Orb::Invoice::OrHash]
|
1852
|
+
).returns(T.attached_class)
|
1664
1853
|
end
|
1665
1854
|
def self.new(
|
1666
1855
|
# The credit notes that were created as part of this operation.
|
@@ -1671,19 +1860,21 @@ module Orb
|
|
1671
1860
|
voided_credit_notes:,
|
1672
1861
|
# The invoices that were voided as part of this operation.
|
1673
1862
|
voided_invoices:
|
1674
|
-
)
|
1863
|
+
)
|
1864
|
+
end
|
1865
|
+
|
1675
1866
|
sig do
|
1676
|
-
override
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1867
|
+
override.returns(
|
1868
|
+
{
|
1869
|
+
created_credit_notes: T::Array[Orb::CreditNote],
|
1870
|
+
created_invoices: T::Array[Orb::Invoice],
|
1871
|
+
voided_credit_notes: T::Array[Orb::CreditNote],
|
1872
|
+
voided_invoices: T::Array[Orb::Invoice]
|
1873
|
+
}
|
1874
|
+
)
|
1875
|
+
end
|
1876
|
+
def to_hash
|
1685
1877
|
end
|
1686
|
-
def to_hash; end
|
1687
1878
|
end
|
1688
1879
|
end
|
1689
1880
|
end
|