orb-billing 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +3 -3
- data/lib/orb/errors.rb +1 -1
- data/lib/orb/file_part.rb +2 -2
- data/lib/orb/internal/transport/base_client.rb +74 -5
- data/lib/orb/internal/transport/pooled_net_requester.rb +14 -0
- data/lib/orb/internal/type/array_of.rb +1 -1
- data/lib/orb/internal/type/base_model.rb +62 -30
- data/lib/orb/internal/type/converter.rb +18 -0
- data/lib/orb/internal/type/enum.rb +4 -3
- data/lib/orb/internal/type/hash_of.rb +1 -1
- data/lib/orb/internal/type/request_parameters.rb +4 -4
- data/lib/orb/internal/type/union.rb +5 -4
- data/lib/orb/internal/util.rb +57 -1
- data/lib/orb/internal.rb +6 -0
- 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 +13 -12
- data/lib/orb/models/coupon_create_params.rb +12 -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 +50 -53
- data/lib/orb/models/customer_list_params.rb +0 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +50 -53
- data/lib/orb/models/customer_update_params.rb +50 -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 +14 -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 +14 -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 +14 -7
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
- data/lib/orb/models/customers/credits/ledger_list_response.rb +14 -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 +11 -5
- data/lib/orb/models/evaluate_price_group.rb +5 -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 +179 -202
- data/lib/orb/models/invoice_create_params.rb +14 -21
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +31 -54
- data/lib/orb/models/invoice_issue_params.rb +0 -1
- data/lib/orb/models/invoice_level_discount.rb +8 -4
- data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +28 -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 +90 -103
- data/lib/orb/models/plan_create_params.rb +759 -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 +1706 -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 +108 -122
- data/lib/orb/models/subscription_cancel_params.rb +3 -5
- data/lib/orb/models/subscription_cancel_response.rb +43 -57
- data/lib/orb/models/subscription_change_apply_response.rb +43 -58
- data/lib/orb/models/subscription_change_cancel_response.rb +43 -58
- data/lib/orb/models/subscription_change_retrieve_response.rb +43 -58
- data/lib/orb/models/subscription_create_params.rb +1953 -1815
- data/lib/orb/models/subscription_create_response.rb +43 -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 +1194 -1017
- data/lib/orb/models/subscription_price_intervals_response.rb +43 -57
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1994 -1791
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +43 -57
- data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
- data/lib/orb/models/subscription_trigger_phase_response.rb +43 -57
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +43 -57
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +43 -57
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +43 -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 +43 -57
- data/lib/orb/models/subscription_update_params.rb +0 -5
- data/lib/orb/models/subscription_update_trial_params.rb +8 -6
- data/lib/orb/models/subscription_update_trial_response.rb +43 -57
- data/lib/orb/models/subscription_usage.rb +55 -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/models.rb +24 -0
- data/lib/orb/request_options.rb +4 -0
- 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 +3 -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 +20 -6
- data/rbi/orb/internal/transport/base_client.rbi +159 -78
- data/rbi/orb/internal/transport/pooled_net_requester.rbi +27 -13
- data/rbi/orb/internal/type/array_of.rbi +42 -34
- data/rbi/orb/internal/type/base_model.rbi +144 -69
- data/rbi/orb/internal/type/base_page.rbi +12 -8
- data/rbi/orb/internal/type/boolean.rbi +16 -10
- data/rbi/orb/internal/type/converter.rbi +68 -31
- data/rbi/orb/internal/type/enum.rbi +28 -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 +61 -25
- data/rbi/orb/internal/type/unknown.rbi +20 -12
- data/rbi/orb/internal/util.rbi +232 -90
- data/rbi/orb/internal.rbi +2 -0
- data/rbi/orb/models/alert.rbi +114 -70
- data/rbi/orb/models/alert_create_for_customer_params.rbi +69 -27
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +80 -29
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +62 -26
- data/rbi/orb/models/alert_disable_params.rbi +18 -6
- data/rbi/orb/models/alert_enable_params.rbi +18 -6
- data/rbi/orb/models/alert_list_params.rbi +24 -20
- data/rbi/orb/models/alert_retrieve_params.rbi +11 -4
- data/rbi/orb/models/alert_update_params.rbi +29 -14
- data/rbi/orb/models/amount_discount.rbi +29 -19
- data/rbi/orb/models/billable_metric.rbi +34 -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 +11 -4
- data/rbi/orb/models/coupon_create_params.rbi +85 -38
- data/rbi/orb/models/coupon_fetch_params.rbi +11 -4
- data/rbi/orb/models/coupon_list_params.rbi +19 -15
- data/rbi/orb/models/coupons/subscription_list_params.rbi +19 -6
- data/rbi/orb/models/credit_note.rbi +329 -158
- data/rbi/orb/models/credit_note_create_params.rbi +64 -29
- data/rbi/orb/models/credit_note_fetch_params.rbi +13 -4
- data/rbi/orb/models/credit_note_list_params.rbi +23 -17
- data/rbi/orb/models/customer.rbi +461 -329
- data/rbi/orb/models/customer_create_params.rbi +713 -325
- data/rbi/orb/models/customer_delete_params.rbi +13 -4
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +13 -4
- data/rbi/orb/models/customer_fetch_params.rbi +11 -4
- data/rbi/orb/models/customer_list_params.rbi +21 -17
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +16 -4
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +16 -4
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +1193 -336
- data/rbi/orb/models/customer_update_params.rbi +712 -324
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +56 -21
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +172 -61
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +26 -17
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +182 -59
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +62 -22
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +180 -124
- data/rbi/orb/models/customers/cost_list_params.rbi +48 -22
- data/rbi/orb/models/customers/cost_list_response.rbi +172 -123
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +24 -15
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +54 -22
- data/rbi/orb/models/customers/credit_list_params.rbi +21 -15
- data/rbi/orb/models/customers/credit_list_response.rbi +50 -21
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +118 -68
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +755 -434
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +129 -59
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +812 -425
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +108 -44
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +793 -432
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +129 -40
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +847 -389
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +86 -53
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +77 -48
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +96 -45
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +95 -43
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +22 -6
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +21 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +15 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +82 -49
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +15 -5
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +96 -43
- data/rbi/orb/models/dimensional_price_group.rbi +21 -15
- data/rbi/orb/models/dimensional_price_group_create_params.rbi +22 -16
- data/rbi/orb/models/dimensional_price_group_list_params.rbi +19 -6
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +16 -4
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +15 -8
- data/rbi/orb/models/dimensional_price_groups.rbi +21 -13
- data/rbi/orb/models/discount.rbi +11 -5
- data/rbi/orb/models/evaluate_price_group.rbi +29 -12
- data/rbi/orb/models/event_deprecate_params.rbi +13 -4
- data/rbi/orb/models/event_deprecate_response.rbi +11 -3
- data/rbi/orb/models/event_ingest_params.rbi +41 -31
- data/rbi/orb/models/event_ingest_response.rbi +78 -23
- data/rbi/orb/models/event_search_params.rbi +18 -14
- data/rbi/orb/models/event_search_response.rbi +42 -21
- data/rbi/orb/models/event_update_params.rbi +20 -16
- data/rbi/orb/models/event_update_response.rbi +11 -3
- data/rbi/orb/models/events/backfill_close_params.rbi +13 -9
- data/rbi/orb/models/events/backfill_close_response.rbi +70 -29
- data/rbi/orb/models/events/backfill_create_params.rbi +24 -18
- data/rbi/orb/models/events/backfill_create_response.rbi +69 -29
- data/rbi/orb/models/events/backfill_fetch_params.rbi +13 -9
- data/rbi/orb/models/events/backfill_fetch_response.rbi +70 -29
- data/rbi/orb/models/events/backfill_list_params.rbi +19 -6
- data/rbi/orb/models/events/backfill_list_response.rbi +68 -28
- data/rbi/orb/models/events/backfill_revert_params.rbi +13 -9
- data/rbi/orb/models/events/backfill_revert_response.rbi +69 -29
- data/rbi/orb/models/events/event_volumes.rbi +38 -10
- data/rbi/orb/models/events/volume_list_params.rbi +21 -15
- data/rbi/orb/models/invoice.rbi +1411 -805
- data/rbi/orb/models/invoice_create_params.rbi +107 -69
- data/rbi/orb/models/invoice_fetch_params.rbi +11 -4
- data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +18 -5
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +2187 -876
- data/rbi/orb/models/invoice_issue_params.rbi +17 -5
- data/rbi/orb/models/invoice_level_discount.rbi +11 -4
- data/rbi/orb/models/invoice_line_item_create_params.rbi +23 -17
- data/rbi/orb/models/invoice_line_item_create_response.rbi +675 -376
- data/rbi/orb/models/invoice_list_params.rbi +68 -47
- data/rbi/orb/models/invoice_mark_paid_params.rbi +20 -14
- data/rbi/orb/models/invoice_pay_params.rbi +11 -4
- data/rbi/orb/models/invoice_update_params.rbi +16 -10
- data/rbi/orb/models/invoice_void_params.rbi +11 -4
- data/rbi/orb/models/item.rbi +90 -39
- data/rbi/orb/models/item_create_params.rbi +15 -5
- data/rbi/orb/models/item_fetch_params.rbi +11 -4
- data/rbi/orb/models/item_list_params.rbi +17 -6
- data/rbi/orb/models/item_update_params.rbi +86 -39
- data/rbi/orb/models/metric_create_params.rbi +20 -16
- data/rbi/orb/models/metric_fetch_params.rbi +11 -4
- data/rbi/orb/models/metric_list_params.rbi +21 -17
- data/rbi/orb/models/metric_update_params.rbi +16 -10
- data/rbi/orb/models/pagination_metadata.rbi +17 -4
- data/rbi/orb/models/percentage_discount.rbi +33 -19
- data/rbi/orb/models/plan.rbi +532 -365
- data/rbi/orb/models/plan_create_params.rbi +5295 -2870
- data/rbi/orb/models/plan_fetch_params.rbi +11 -4
- data/rbi/orb/models/plan_list_params.rbi +35 -27
- data/rbi/orb/models/plan_update_params.rbi +17 -13
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +13 -9
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +22 -13
- data/rbi/orb/models/price.rbi +11332 -5033
- data/rbi/orb/models/price_create_params.rbi +583 -245
- data/rbi/orb/models/price_evaluate_params.rbi +21 -17
- data/rbi/orb/models/price_evaluate_response.rbi +14 -6
- data/rbi/orb/models/price_fetch_params.rbi +11 -4
- data/rbi/orb/models/price_list_params.rbi +17 -6
- data/rbi/orb/models/price_update_params.rbi +16 -10
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +15 -8
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +21 -10
- data/rbi/orb/models/subscription.rbi +668 -420
- data/rbi/orb/models/subscription_cancel_params.rbi +47 -22
- data/rbi/orb/models/subscription_cancel_response.rbi +817 -438
- data/rbi/orb/models/subscription_change_apply_params.rbi +19 -13
- data/rbi/orb/models/subscription_change_apply_response.rbi +906 -505
- data/rbi/orb/models/subscription_change_cancel_params.rbi +13 -4
- data/rbi/orb/models/subscription_change_cancel_response.rbi +906 -516
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +13 -4
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +903 -524
- data/rbi/orb/models/subscription_create_params.rbi +10096 -6746
- data/rbi/orb/models/subscription_create_response.rbi +817 -438
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +50 -22
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +172 -123
- data/rbi/orb/models/subscription_fetch_params.rbi +13 -4
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +23 -17
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +45 -19
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +84 -34
- data/rbi/orb/models/subscription_list_params.rbi +42 -28
- data/rbi/orb/models/subscription_price_intervals_params.rbi +5798 -3823
- data/rbi/orb/models/subscription_price_intervals_response.rbi +840 -453
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +9676 -6922
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +838 -467
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +19 -13
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +832 -448
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +16 -4
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +839 -467
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +22 -5
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +815 -504
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +16 -4
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +828 -497
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +63 -26
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +839 -467
- data/rbi/orb/models/subscription_update_params.rbi +22 -16
- data/rbi/orb/models/subscription_update_trial_params.rbi +60 -19
- data/rbi/orb/models/subscription_update_trial_response.rbi +832 -447
- data/rbi/orb/models/subscription_usage.rbi +325 -121
- data/rbi/orb/models/subscriptions.rbi +19 -11
- data/rbi/orb/models/top_level_ping_params.rbi +11 -4
- data/rbi/orb/models/top_level_ping_response.rbi +10 -3
- data/rbi/orb/models/trial_discount.rbi +30 -20
- data/rbi/orb/models/usage_discount.rbi +29 -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/transport/base_client.rbs +16 -1
- data/sig/orb/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/orb/internal/type/base_model.rbs +11 -5
- data/sig/orb/internal/type/base_page.rbs +1 -1
- data/sig/orb/internal/type/converter.rbs +2 -0
- data/sig/orb/internal/type/enum.rbs +1 -0
- data/sig/orb/internal/type/request_parameters.rbs +3 -1
- data/sig/orb/internal/type/union.rbs +1 -0
- data/sig/orb/internal/util.rbs +13 -0
- data/sig/orb/internal.rbs +2 -0
- 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,14 @@
|
|
3
3
|
module Orb
|
4
4
|
module Models
|
5
5
|
class SubscriptionChangeRetrieveResponse < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
Orb::Models::SubscriptionChangeRetrieveResponse,
|
10
|
+
Orb::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
6
14
|
sig { returns(String) }
|
7
15
|
attr_accessor :id
|
8
16
|
|
@@ -10,17 +18,29 @@ module Orb
|
|
10
18
|
sig { returns(Time) }
|
11
19
|
attr_accessor :expiration_time
|
12
20
|
|
13
|
-
sig
|
21
|
+
sig do
|
22
|
+
returns(
|
23
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol
|
24
|
+
)
|
25
|
+
end
|
14
26
|
attr_accessor :status
|
15
27
|
|
16
|
-
sig
|
28
|
+
sig do
|
29
|
+
returns(
|
30
|
+
T.nilable(
|
31
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription
|
32
|
+
)
|
33
|
+
)
|
34
|
+
end
|
17
35
|
attr_reader :subscription
|
18
36
|
|
19
37
|
sig do
|
20
38
|
params(
|
21
|
-
subscription:
|
22
|
-
|
23
|
-
|
39
|
+
subscription:
|
40
|
+
T.nilable(
|
41
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::OrHash
|
42
|
+
)
|
43
|
+
).void
|
24
44
|
end
|
25
45
|
attr_writer :subscription
|
26
46
|
|
@@ -40,12 +60,15 @@ module Orb
|
|
40
60
|
params(
|
41
61
|
id: String,
|
42
62
|
expiration_time: Time,
|
43
|
-
status:
|
44
|
-
|
63
|
+
status:
|
64
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status::OrSymbol,
|
65
|
+
subscription:
|
66
|
+
T.nilable(
|
67
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::OrHash
|
68
|
+
),
|
45
69
|
applied_at: T.nilable(Time),
|
46
70
|
cancelled_at: T.nilable(Time)
|
47
|
-
)
|
48
|
-
.returns(T.attached_class)
|
71
|
+
).returns(T.attached_class)
|
49
72
|
end
|
50
73
|
def self.new(
|
51
74
|
id:,
|
@@ -57,37 +80,76 @@ module Orb
|
|
57
80
|
applied_at: nil,
|
58
81
|
# When this change was cancelled.
|
59
82
|
cancelled_at: nil
|
60
|
-
)
|
83
|
+
)
|
84
|
+
end
|
85
|
+
|
61
86
|
sig do
|
62
|
-
override
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
87
|
+
override.returns(
|
88
|
+
{
|
89
|
+
id: String,
|
90
|
+
expiration_time: Time,
|
91
|
+
status:
|
92
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol,
|
93
|
+
subscription:
|
94
|
+
T.nilable(
|
95
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription
|
96
|
+
),
|
97
|
+
applied_at: T.nilable(Time),
|
98
|
+
cancelled_at: T.nilable(Time)
|
99
|
+
}
|
100
|
+
)
|
101
|
+
end
|
102
|
+
def to_hash
|
73
103
|
end
|
74
|
-
def to_hash; end
|
75
104
|
|
76
105
|
module Status
|
77
106
|
extend Orb::Internal::Type::Enum
|
78
107
|
|
79
|
-
TaggedSymbol =
|
108
|
+
TaggedSymbol =
|
109
|
+
T.type_alias do
|
110
|
+
T.all(
|
111
|
+
Symbol,
|
112
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status
|
113
|
+
)
|
114
|
+
end
|
80
115
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
81
116
|
|
82
|
-
PENDING =
|
83
|
-
|
84
|
-
|
117
|
+
PENDING =
|
118
|
+
T.let(
|
119
|
+
:pending,
|
120
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol
|
121
|
+
)
|
122
|
+
APPLIED =
|
123
|
+
T.let(
|
124
|
+
:applied,
|
125
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol
|
126
|
+
)
|
127
|
+
CANCELLED =
|
128
|
+
T.let(
|
129
|
+
:cancelled,
|
130
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol
|
131
|
+
)
|
85
132
|
|
86
|
-
sig
|
87
|
-
|
133
|
+
sig do
|
134
|
+
override.returns(
|
135
|
+
T::Array[
|
136
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol
|
137
|
+
]
|
138
|
+
)
|
139
|
+
end
|
140
|
+
def self.values
|
141
|
+
end
|
88
142
|
end
|
89
143
|
|
90
144
|
class Subscription < Orb::Internal::Type::BaseModel
|
145
|
+
OrHash =
|
146
|
+
T.type_alias do
|
147
|
+
T.any(
|
148
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription,
|
149
|
+
Orb::Internal::AnyHash
|
150
|
+
)
|
151
|
+
end
|
152
|
+
|
91
153
|
sig { returns(String) }
|
92
154
|
attr_accessor :id
|
93
155
|
|
@@ -98,7 +160,13 @@ module Orb
|
|
98
160
|
|
99
161
|
# The adjustment intervals for this subscription sorted by the start_date of the
|
100
162
|
# adjustment interval.
|
101
|
-
sig
|
163
|
+
sig do
|
164
|
+
returns(
|
165
|
+
T::Array[
|
166
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval
|
167
|
+
]
|
168
|
+
)
|
169
|
+
end
|
102
170
|
attr_accessor :adjustment_intervals
|
103
171
|
|
104
172
|
# Determines whether issued invoices for this subscription will automatically be
|
@@ -107,17 +175,18 @@ module Orb
|
|
107
175
|
sig { returns(T.nilable(T::Boolean)) }
|
108
176
|
attr_accessor :auto_collection
|
109
177
|
|
110
|
-
sig
|
178
|
+
sig do
|
179
|
+
returns(
|
180
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration
|
181
|
+
)
|
182
|
+
end
|
111
183
|
attr_reader :billing_cycle_anchor_configuration
|
112
184
|
|
113
185
|
sig do
|
114
186
|
params(
|
115
|
-
billing_cycle_anchor_configuration:
|
116
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration
|
117
|
-
|
118
|
-
)
|
119
|
-
)
|
120
|
-
.void
|
187
|
+
billing_cycle_anchor_configuration:
|
188
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration::OrHash
|
189
|
+
).void
|
121
190
|
end
|
122
191
|
attr_writer :billing_cycle_anchor_configuration
|
123
192
|
|
@@ -161,10 +230,10 @@ module Orb
|
|
161
230
|
# [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
|
162
231
|
# your account's timezone. See [Timezone localization](/essentials/timezones) for
|
163
232
|
# information on what this timezone parameter influences within Orb.
|
164
|
-
sig { returns(Orb::
|
233
|
+
sig { returns(Orb::Customer) }
|
165
234
|
attr_reader :customer
|
166
235
|
|
167
|
-
sig { params(customer:
|
236
|
+
sig { params(customer: Orb::Customer::OrHash).void }
|
168
237
|
attr_writer :customer
|
169
238
|
|
170
239
|
# Determines the default memo on this subscriptions' invoices. Note that if this
|
@@ -190,14 +259,26 @@ module Orb
|
|
190
259
|
sig { returns(T.nilable(Time)) }
|
191
260
|
attr_accessor :end_date
|
192
261
|
|
193
|
-
sig
|
262
|
+
sig do
|
263
|
+
returns(
|
264
|
+
T::Array[
|
265
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule
|
266
|
+
]
|
267
|
+
)
|
268
|
+
end
|
194
269
|
attr_accessor :fixed_fee_quantity_schedule
|
195
270
|
|
196
271
|
sig { returns(T.nilable(String)) }
|
197
272
|
attr_accessor :invoicing_threshold
|
198
273
|
|
199
274
|
# The maximum intervals for this subscription sorted by the start_date.
|
200
|
-
sig
|
275
|
+
sig do
|
276
|
+
returns(
|
277
|
+
T::Array[
|
278
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval
|
279
|
+
]
|
280
|
+
)
|
281
|
+
end
|
201
282
|
attr_accessor :maximum_intervals
|
202
283
|
|
203
284
|
# User specified key-value pairs for the resource. If not present, this defaults
|
@@ -208,7 +289,13 @@ module Orb
|
|
208
289
|
attr_accessor :metadata
|
209
290
|
|
210
291
|
# The minimum intervals for this subscription sorted by the start_date.
|
211
|
-
sig
|
292
|
+
sig do
|
293
|
+
returns(
|
294
|
+
T::Array[
|
295
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval
|
296
|
+
]
|
297
|
+
)
|
298
|
+
end
|
212
299
|
attr_accessor :minimum_intervals
|
213
300
|
|
214
301
|
# Determines the difference between the invoice issue date for subscription
|
@@ -221,21 +308,20 @@ module Orb
|
|
221
308
|
# A pending subscription change if one exists on this subscription.
|
222
309
|
sig do
|
223
310
|
returns(
|
224
|
-
T.nilable(
|
311
|
+
T.nilable(
|
312
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange
|
313
|
+
)
|
225
314
|
)
|
226
315
|
end
|
227
316
|
attr_reader :pending_subscription_change
|
228
317
|
|
229
318
|
sig do
|
230
319
|
params(
|
231
|
-
pending_subscription_change:
|
232
|
-
T.
|
233
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange
|
234
|
-
Orb::Internal::AnyHash
|
320
|
+
pending_subscription_change:
|
321
|
+
T.nilable(
|
322
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange::OrHash
|
235
323
|
)
|
236
|
-
|
237
|
-
)
|
238
|
-
.void
|
324
|
+
).void
|
239
325
|
end
|
240
326
|
attr_writer :pending_subscription_change
|
241
327
|
|
@@ -243,29 +329,38 @@ module Orb
|
|
243
329
|
# subscribed to by a customer. Plans define the billing behavior of the
|
244
330
|
# subscription. You can see more about how to configure prices in the
|
245
331
|
# [Price resource](/reference/price).
|
246
|
-
sig { returns(Orb::
|
332
|
+
sig { returns(Orb::Plan) }
|
247
333
|
attr_reader :plan
|
248
334
|
|
249
|
-
sig { params(plan:
|
335
|
+
sig { params(plan: Orb::Plan::OrHash).void }
|
250
336
|
attr_writer :plan
|
251
337
|
|
252
338
|
# The price intervals for this subscription.
|
253
|
-
sig
|
339
|
+
sig do
|
340
|
+
returns(
|
341
|
+
T::Array[
|
342
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval
|
343
|
+
]
|
344
|
+
)
|
345
|
+
end
|
254
346
|
attr_accessor :price_intervals
|
255
347
|
|
256
|
-
sig
|
348
|
+
sig do
|
349
|
+
returns(
|
350
|
+
T.nilable(
|
351
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon
|
352
|
+
)
|
353
|
+
)
|
354
|
+
end
|
257
355
|
attr_reader :redeemed_coupon
|
258
356
|
|
259
357
|
sig do
|
260
358
|
params(
|
261
|
-
redeemed_coupon:
|
262
|
-
T.
|
263
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon
|
264
|
-
Orb::Internal::AnyHash
|
359
|
+
redeemed_coupon:
|
360
|
+
T.nilable(
|
361
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon::OrHash
|
265
362
|
)
|
266
|
-
|
267
|
-
)
|
268
|
-
.void
|
363
|
+
).void
|
269
364
|
end
|
270
365
|
attr_writer :redeemed_coupon
|
271
366
|
|
@@ -273,36 +368,47 @@ module Orb
|
|
273
368
|
sig { returns(Time) }
|
274
369
|
attr_accessor :start_date
|
275
370
|
|
276
|
-
sig
|
371
|
+
sig do
|
372
|
+
returns(
|
373
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol
|
374
|
+
)
|
375
|
+
end
|
277
376
|
attr_accessor :status
|
278
377
|
|
279
|
-
sig
|
378
|
+
sig do
|
379
|
+
returns(
|
380
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo
|
381
|
+
)
|
382
|
+
end
|
280
383
|
attr_reader :trial_info
|
281
384
|
|
282
385
|
sig do
|
283
386
|
params(
|
284
|
-
trial_info:
|
285
|
-
|
286
|
-
|
387
|
+
trial_info:
|
388
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo::OrHash
|
389
|
+
).void
|
287
390
|
end
|
288
391
|
attr_writer :trial_info
|
289
392
|
|
290
393
|
# The resources that were changed as part of this operation. Only present when
|
291
394
|
# fetched through the subscription changes API or if the
|
292
395
|
# `include_changed_resources` parameter was passed in the request.
|
293
|
-
sig
|
396
|
+
sig do
|
397
|
+
returns(
|
398
|
+
T.nilable(
|
399
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources
|
400
|
+
)
|
401
|
+
)
|
402
|
+
end
|
294
403
|
attr_reader :changed_resources
|
295
404
|
|
296
405
|
sig do
|
297
406
|
params(
|
298
|
-
changed_resources:
|
299
|
-
T.
|
300
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources
|
301
|
-
Orb::Internal::AnyHash
|
407
|
+
changed_resources:
|
408
|
+
T.nilable(
|
409
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources::OrHash
|
302
410
|
)
|
303
|
-
|
304
|
-
)
|
305
|
-
.void
|
411
|
+
).void
|
306
412
|
end
|
307
413
|
attr_writer :changed_resources
|
308
414
|
|
@@ -310,83 +416,66 @@ module Orb
|
|
310
416
|
params(
|
311
417
|
id: String,
|
312
418
|
active_plan_phase_order: T.nilable(Integer),
|
313
|
-
adjustment_intervals:
|
314
|
-
T
|
315
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval
|
316
|
-
|
317
|
-
)
|
318
|
-
],
|
419
|
+
adjustment_intervals:
|
420
|
+
T::Array[
|
421
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::OrHash
|
422
|
+
],
|
319
423
|
auto_collection: T.nilable(T::Boolean),
|
320
|
-
billing_cycle_anchor_configuration:
|
321
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration,
|
322
|
-
Orb::Internal::AnyHash
|
323
|
-
),
|
424
|
+
billing_cycle_anchor_configuration:
|
425
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration::OrHash,
|
324
426
|
billing_cycle_day: Integer,
|
325
427
|
created_at: Time,
|
326
428
|
current_billing_period_end_date: T.nilable(Time),
|
327
429
|
current_billing_period_start_date: T.nilable(Time),
|
328
|
-
customer:
|
430
|
+
customer: Orb::Customer::OrHash,
|
329
431
|
default_invoice_memo: T.nilable(String),
|
330
|
-
discount_intervals:
|
331
|
-
T
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
432
|
+
discount_intervals:
|
433
|
+
T::Array[
|
434
|
+
T.any(
|
435
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount::OrHash,
|
436
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage::OrHash,
|
437
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage::OrHash
|
438
|
+
)
|
439
|
+
],
|
338
440
|
end_date: T.nilable(Time),
|
339
|
-
fixed_fee_quantity_schedule:
|
340
|
-
T
|
341
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule
|
342
|
-
|
343
|
-
)
|
344
|
-
],
|
441
|
+
fixed_fee_quantity_schedule:
|
442
|
+
T::Array[
|
443
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule::OrHash
|
444
|
+
],
|
345
445
|
invoicing_threshold: T.nilable(String),
|
346
|
-
maximum_intervals:
|
347
|
-
T
|
348
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval
|
349
|
-
|
350
|
-
)
|
351
|
-
],
|
446
|
+
maximum_intervals:
|
447
|
+
T::Array[
|
448
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval::OrHash
|
449
|
+
],
|
352
450
|
metadata: T::Hash[Symbol, String],
|
353
|
-
minimum_intervals:
|
354
|
-
T
|
355
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval
|
356
|
-
|
357
|
-
)
|
358
|
-
],
|
451
|
+
minimum_intervals:
|
452
|
+
T::Array[
|
453
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval::OrHash
|
454
|
+
],
|
359
455
|
net_terms: Integer,
|
360
|
-
pending_subscription_change:
|
361
|
-
T.
|
362
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
redeemed_coupon: T.nilable(
|
374
|
-
T.any(
|
375
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon,
|
376
|
-
Orb::Internal::AnyHash
|
377
|
-
)
|
378
|
-
),
|
456
|
+
pending_subscription_change:
|
457
|
+
T.nilable(
|
458
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange::OrHash
|
459
|
+
),
|
460
|
+
plan: Orb::Plan::OrHash,
|
461
|
+
price_intervals:
|
462
|
+
T::Array[
|
463
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::OrHash
|
464
|
+
],
|
465
|
+
redeemed_coupon:
|
466
|
+
T.nilable(
|
467
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon::OrHash
|
468
|
+
),
|
379
469
|
start_date: Time,
|
380
|
-
status:
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
470
|
+
status:
|
471
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::OrSymbol,
|
472
|
+
trial_info:
|
473
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo::OrHash,
|
474
|
+
changed_resources:
|
475
|
+
T.nilable(
|
476
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources::OrHash
|
386
477
|
)
|
387
|
-
|
388
|
-
)
|
389
|
-
.returns(T.attached_class)
|
478
|
+
).returns(T.attached_class)
|
390
479
|
end
|
391
480
|
def self.new(
|
392
481
|
id:,
|
@@ -475,50 +564,88 @@ module Orb
|
|
475
564
|
# fetched through the subscription changes API or if the
|
476
565
|
# `include_changed_resources` parameter was passed in the request.
|
477
566
|
changed_resources: nil
|
478
|
-
)
|
567
|
+
)
|
568
|
+
end
|
569
|
+
|
479
570
|
sig do
|
480
|
-
override
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
571
|
+
override.returns(
|
572
|
+
{
|
573
|
+
id: String,
|
574
|
+
active_plan_phase_order: T.nilable(Integer),
|
575
|
+
adjustment_intervals:
|
576
|
+
T::Array[
|
577
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval
|
578
|
+
],
|
579
|
+
auto_collection: T.nilable(T::Boolean),
|
580
|
+
billing_cycle_anchor_configuration:
|
581
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration,
|
582
|
+
billing_cycle_day: Integer,
|
583
|
+
created_at: Time,
|
584
|
+
current_billing_period_end_date: T.nilable(Time),
|
585
|
+
current_billing_period_start_date: T.nilable(Time),
|
586
|
+
customer: Orb::Customer,
|
587
|
+
default_invoice_memo: T.nilable(String),
|
588
|
+
discount_intervals:
|
589
|
+
T::Array[
|
495
590
|
T.any(
|
496
591
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount,
|
497
592
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage,
|
498
593
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage
|
499
594
|
)
|
500
595
|
],
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
596
|
+
end_date: T.nilable(Time),
|
597
|
+
fixed_fee_quantity_schedule:
|
598
|
+
T::Array[
|
599
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule
|
600
|
+
],
|
601
|
+
invoicing_threshold: T.nilable(String),
|
602
|
+
maximum_intervals:
|
603
|
+
T::Array[
|
604
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval
|
605
|
+
],
|
606
|
+
metadata: T::Hash[Symbol, String],
|
607
|
+
minimum_intervals:
|
608
|
+
T::Array[
|
609
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval
|
610
|
+
],
|
611
|
+
net_terms: Integer,
|
612
|
+
pending_subscription_change:
|
613
|
+
T.nilable(
|
614
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange
|
615
|
+
),
|
616
|
+
plan: Orb::Plan,
|
617
|
+
price_intervals:
|
618
|
+
T::Array[
|
619
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval
|
620
|
+
],
|
621
|
+
redeemed_coupon:
|
622
|
+
T.nilable(
|
623
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon
|
624
|
+
),
|
625
|
+
start_date: Time,
|
626
|
+
status:
|
627
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol,
|
628
|
+
trial_info:
|
629
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo,
|
630
|
+
changed_resources:
|
631
|
+
T.nilable(
|
632
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources
|
633
|
+
)
|
634
|
+
}
|
635
|
+
)
|
636
|
+
end
|
637
|
+
def to_hash
|
518
638
|
end
|
519
|
-
def to_hash; end
|
520
639
|
|
521
640
|
class AdjustmentInterval < Orb::Internal::Type::BaseModel
|
641
|
+
OrHash =
|
642
|
+
T.type_alias do
|
643
|
+
T.any(
|
644
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval,
|
645
|
+
Orb::Internal::AnyHash
|
646
|
+
)
|
647
|
+
end
|
648
|
+
|
522
649
|
sig { returns(String) }
|
523
650
|
attr_accessor :id
|
524
651
|
|
@@ -550,19 +677,18 @@ module Orb
|
|
550
677
|
sig do
|
551
678
|
params(
|
552
679
|
id: String,
|
553
|
-
adjustment:
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
680
|
+
adjustment:
|
681
|
+
T.any(
|
682
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
|
683
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
|
684
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
|
685
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash,
|
686
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash
|
687
|
+
),
|
561
688
|
applies_to_price_interval_ids: T::Array[String],
|
562
689
|
end_date: T.nilable(Time),
|
563
690
|
start_date: Time
|
564
|
-
)
|
565
|
-
.returns(T.attached_class)
|
691
|
+
).returns(T.attached_class)
|
566
692
|
end
|
567
693
|
def self.new(
|
568
694
|
id:,
|
@@ -573,31 +699,53 @@ module Orb
|
|
573
699
|
end_date:,
|
574
700
|
# The start date of the adjustment interval.
|
575
701
|
start_date:
|
576
|
-
)
|
702
|
+
)
|
703
|
+
end
|
704
|
+
|
577
705
|
sig do
|
578
|
-
override
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
706
|
+
override.returns(
|
707
|
+
{
|
708
|
+
id: String,
|
709
|
+
adjustment:
|
710
|
+
T.any(
|
583
711
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
584
712
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
585
713
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
586
714
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
587
715
|
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
588
716
|
),
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
717
|
+
applies_to_price_interval_ids: T::Array[String],
|
718
|
+
end_date: T.nilable(Time),
|
719
|
+
start_date: Time
|
720
|
+
}
|
721
|
+
)
|
722
|
+
end
|
723
|
+
def to_hash
|
594
724
|
end
|
595
|
-
def to_hash; end
|
596
725
|
|
597
726
|
module Adjustment
|
598
727
|
extend Orb::Internal::Type::Union
|
599
728
|
|
729
|
+
Variants =
|
730
|
+
T.type_alias do
|
731
|
+
T.any(
|
732
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
733
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
734
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
735
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
736
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
737
|
+
)
|
738
|
+
end
|
739
|
+
|
600
740
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
741
|
+
OrHash =
|
742
|
+
T.type_alias do
|
743
|
+
T.any(
|
744
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
745
|
+
Orb::Internal::AnyHash
|
746
|
+
)
|
747
|
+
end
|
748
|
+
|
601
749
|
sig { returns(String) }
|
602
750
|
attr_accessor :id
|
603
751
|
|
@@ -635,8 +783,7 @@ module Orb
|
|
635
783
|
reason: T.nilable(String),
|
636
784
|
usage_discount: Float,
|
637
785
|
adjustment_type: Symbol
|
638
|
-
)
|
639
|
-
.returns(T.attached_class)
|
786
|
+
).returns(T.attached_class)
|
640
787
|
end
|
641
788
|
def self.new(
|
642
789
|
id:,
|
@@ -653,25 +800,35 @@ module Orb
|
|
653
800
|
# to in a given billing period.
|
654
801
|
usage_discount:,
|
655
802
|
adjustment_type: :usage_discount
|
656
|
-
)
|
803
|
+
)
|
804
|
+
end
|
805
|
+
|
657
806
|
sig do
|
658
|
-
override
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
807
|
+
override.returns(
|
808
|
+
{
|
809
|
+
id: String,
|
810
|
+
adjustment_type: Symbol,
|
811
|
+
applies_to_price_ids: T::Array[String],
|
812
|
+
is_invoice_level: T::Boolean,
|
813
|
+
plan_phase_order: T.nilable(Integer),
|
814
|
+
reason: T.nilable(String),
|
815
|
+
usage_discount: Float
|
816
|
+
}
|
817
|
+
)
|
818
|
+
end
|
819
|
+
def to_hash
|
670
820
|
end
|
671
|
-
def to_hash; end
|
672
821
|
end
|
673
822
|
|
674
823
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
824
|
+
OrHash =
|
825
|
+
T.type_alias do
|
826
|
+
T.any(
|
827
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
828
|
+
Orb::Internal::AnyHash
|
829
|
+
)
|
830
|
+
end
|
831
|
+
|
675
832
|
sig { returns(String) }
|
676
833
|
attr_accessor :id
|
677
834
|
|
@@ -709,8 +866,7 @@ module Orb
|
|
709
866
|
plan_phase_order: T.nilable(Integer),
|
710
867
|
reason: T.nilable(String),
|
711
868
|
adjustment_type: Symbol
|
712
|
-
)
|
713
|
-
.returns(T.attached_class)
|
869
|
+
).returns(T.attached_class)
|
714
870
|
end
|
715
871
|
def self.new(
|
716
872
|
id:,
|
@@ -727,25 +883,35 @@ module Orb
|
|
727
883
|
# The reason for the adjustment.
|
728
884
|
reason:,
|
729
885
|
adjustment_type: :amount_discount
|
730
|
-
)
|
886
|
+
)
|
887
|
+
end
|
888
|
+
|
731
889
|
sig do
|
732
|
-
override
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
890
|
+
override.returns(
|
891
|
+
{
|
892
|
+
id: String,
|
893
|
+
adjustment_type: Symbol,
|
894
|
+
amount_discount: String,
|
895
|
+
applies_to_price_ids: T::Array[String],
|
896
|
+
is_invoice_level: T::Boolean,
|
897
|
+
plan_phase_order: T.nilable(Integer),
|
898
|
+
reason: T.nilable(String)
|
899
|
+
}
|
900
|
+
)
|
901
|
+
end
|
902
|
+
def to_hash
|
744
903
|
end
|
745
|
-
def to_hash; end
|
746
904
|
end
|
747
905
|
|
748
906
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
907
|
+
OrHash =
|
908
|
+
T.type_alias do
|
909
|
+
T.any(
|
910
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
911
|
+
Orb::Internal::AnyHash
|
912
|
+
)
|
913
|
+
end
|
914
|
+
|
749
915
|
sig { returns(String) }
|
750
916
|
attr_accessor :id
|
751
917
|
|
@@ -783,8 +949,7 @@ module Orb
|
|
783
949
|
plan_phase_order: T.nilable(Integer),
|
784
950
|
reason: T.nilable(String),
|
785
951
|
adjustment_type: Symbol
|
786
|
-
)
|
787
|
-
.returns(T.attached_class)
|
952
|
+
).returns(T.attached_class)
|
788
953
|
end
|
789
954
|
def self.new(
|
790
955
|
id:,
|
@@ -801,25 +966,35 @@ module Orb
|
|
801
966
|
# The reason for the adjustment.
|
802
967
|
reason:,
|
803
968
|
adjustment_type: :percentage_discount
|
804
|
-
)
|
969
|
+
)
|
970
|
+
end
|
971
|
+
|
805
972
|
sig do
|
806
|
-
override
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
973
|
+
override.returns(
|
974
|
+
{
|
975
|
+
id: String,
|
976
|
+
adjustment_type: Symbol,
|
977
|
+
applies_to_price_ids: T::Array[String],
|
978
|
+
is_invoice_level: T::Boolean,
|
979
|
+
percentage_discount: Float,
|
980
|
+
plan_phase_order: T.nilable(Integer),
|
981
|
+
reason: T.nilable(String)
|
982
|
+
}
|
983
|
+
)
|
984
|
+
end
|
985
|
+
def to_hash
|
818
986
|
end
|
819
|
-
def to_hash; end
|
820
987
|
end
|
821
988
|
|
822
989
|
class Minimum < Orb::Internal::Type::BaseModel
|
990
|
+
OrHash =
|
991
|
+
T.type_alias do
|
992
|
+
T.any(
|
993
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
994
|
+
Orb::Internal::AnyHash
|
995
|
+
)
|
996
|
+
end
|
997
|
+
|
823
998
|
sig { returns(String) }
|
824
999
|
attr_accessor :id
|
825
1000
|
|
@@ -862,8 +1037,7 @@ module Orb
|
|
862
1037
|
plan_phase_order: T.nilable(Integer),
|
863
1038
|
reason: T.nilable(String),
|
864
1039
|
adjustment_type: Symbol
|
865
|
-
)
|
866
|
-
.returns(T.attached_class)
|
1040
|
+
).returns(T.attached_class)
|
867
1041
|
end
|
868
1042
|
def self.new(
|
869
1043
|
id:,
|
@@ -882,26 +1056,36 @@ module Orb
|
|
882
1056
|
# The reason for the adjustment.
|
883
1057
|
reason:,
|
884
1058
|
adjustment_type: :minimum
|
885
|
-
)
|
1059
|
+
)
|
1060
|
+
end
|
1061
|
+
|
886
1062
|
sig do
|
887
|
-
override
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
1063
|
+
override.returns(
|
1064
|
+
{
|
1065
|
+
id: String,
|
1066
|
+
adjustment_type: Symbol,
|
1067
|
+
applies_to_price_ids: T::Array[String],
|
1068
|
+
is_invoice_level: T::Boolean,
|
1069
|
+
item_id: String,
|
1070
|
+
minimum_amount: String,
|
1071
|
+
plan_phase_order: T.nilable(Integer),
|
1072
|
+
reason: T.nilable(String)
|
1073
|
+
}
|
1074
|
+
)
|
1075
|
+
end
|
1076
|
+
def to_hash
|
900
1077
|
end
|
901
|
-
def to_hash; end
|
902
1078
|
end
|
903
1079
|
|
904
1080
|
class Maximum < Orb::Internal::Type::BaseModel
|
1081
|
+
OrHash =
|
1082
|
+
T.type_alias do
|
1083
|
+
T.any(
|
1084
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum,
|
1085
|
+
Orb::Internal::AnyHash
|
1086
|
+
)
|
1087
|
+
end
|
1088
|
+
|
905
1089
|
sig { returns(String) }
|
906
1090
|
attr_accessor :id
|
907
1091
|
|
@@ -939,8 +1123,7 @@ module Orb
|
|
939
1123
|
plan_phase_order: T.nilable(Integer),
|
940
1124
|
reason: T.nilable(String),
|
941
1125
|
adjustment_type: Symbol
|
942
|
-
)
|
943
|
-
.returns(T.attached_class)
|
1126
|
+
).returns(T.attached_class)
|
944
1127
|
end
|
945
1128
|
def self.new(
|
946
1129
|
id:,
|
@@ -957,35 +1140,47 @@ module Orb
|
|
957
1140
|
# The reason for the adjustment.
|
958
1141
|
reason:,
|
959
1142
|
adjustment_type: :maximum
|
960
|
-
)
|
1143
|
+
)
|
1144
|
+
end
|
1145
|
+
|
961
1146
|
sig do
|
962
|
-
override
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
1147
|
+
override.returns(
|
1148
|
+
{
|
1149
|
+
id: String,
|
1150
|
+
adjustment_type: Symbol,
|
1151
|
+
applies_to_price_ids: T::Array[String],
|
1152
|
+
is_invoice_level: T::Boolean,
|
1153
|
+
maximum_amount: String,
|
1154
|
+
plan_phase_order: T.nilable(Integer),
|
1155
|
+
reason: T.nilable(String)
|
1156
|
+
}
|
1157
|
+
)
|
1158
|
+
end
|
1159
|
+
def to_hash
|
974
1160
|
end
|
975
|
-
def to_hash; end
|
976
1161
|
end
|
977
1162
|
|
978
1163
|
sig do
|
979
|
-
override
|
980
|
-
|
981
|
-
|
982
|
-
|
1164
|
+
override.returns(
|
1165
|
+
T::Array[
|
1166
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Variants
|
1167
|
+
]
|
1168
|
+
)
|
1169
|
+
end
|
1170
|
+
def self.variants
|
983
1171
|
end
|
984
|
-
def self.variants; end
|
985
1172
|
end
|
986
1173
|
end
|
987
1174
|
|
988
1175
|
class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
|
1176
|
+
OrHash =
|
1177
|
+
T.type_alias do
|
1178
|
+
T.any(
|
1179
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration,
|
1180
|
+
Orb::Internal::AnyHash
|
1181
|
+
)
|
1182
|
+
end
|
1183
|
+
|
989
1184
|
# The day of the month on which the billing cycle is anchored. If the maximum
|
990
1185
|
# number of days in a month is greater than this value, the last day of the month
|
991
1186
|
# is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
@@ -1024,15 +1219,43 @@ module Orb
|
|
1024
1219
|
# The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
1025
1220
|
# anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
1026
1221
|
year: nil
|
1027
|
-
)
|
1028
|
-
|
1029
|
-
|
1222
|
+
)
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
sig do
|
1226
|
+
override.returns(
|
1227
|
+
{
|
1228
|
+
day: Integer,
|
1229
|
+
month: T.nilable(Integer),
|
1230
|
+
year: T.nilable(Integer)
|
1231
|
+
}
|
1232
|
+
)
|
1233
|
+
end
|
1234
|
+
def to_hash
|
1235
|
+
end
|
1030
1236
|
end
|
1031
1237
|
|
1032
1238
|
module DiscountInterval
|
1033
1239
|
extend Orb::Internal::Type::Union
|
1034
1240
|
|
1241
|
+
Variants =
|
1242
|
+
T.type_alias do
|
1243
|
+
T.any(
|
1244
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount,
|
1245
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage,
|
1246
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage
|
1247
|
+
)
|
1248
|
+
end
|
1249
|
+
|
1035
1250
|
class Amount < Orb::Internal::Type::BaseModel
|
1251
|
+
OrHash =
|
1252
|
+
T.type_alias do
|
1253
|
+
T.any(
|
1254
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount,
|
1255
|
+
Orb::Internal::AnyHash
|
1256
|
+
)
|
1257
|
+
end
|
1258
|
+
|
1036
1259
|
# Only available if discount_type is `amount`.
|
1037
1260
|
sig { returns(String) }
|
1038
1261
|
attr_accessor :amount_discount
|
@@ -1064,8 +1287,7 @@ module Orb
|
|
1064
1287
|
end_date: T.nilable(Time),
|
1065
1288
|
start_date: Time,
|
1066
1289
|
discount_type: Symbol
|
1067
|
-
)
|
1068
|
-
.returns(T.attached_class)
|
1290
|
+
).returns(T.attached_class)
|
1069
1291
|
end
|
1070
1292
|
def self.new(
|
1071
1293
|
# Only available if discount_type is `amount`.
|
@@ -1079,24 +1301,34 @@ module Orb
|
|
1079
1301
|
# The start date of the discount interval.
|
1080
1302
|
start_date:,
|
1081
1303
|
discount_type: :amount
|
1082
|
-
)
|
1304
|
+
)
|
1305
|
+
end
|
1306
|
+
|
1083
1307
|
sig do
|
1084
|
-
override
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1308
|
+
override.returns(
|
1309
|
+
{
|
1310
|
+
amount_discount: String,
|
1311
|
+
applies_to_price_ids: T::Array[String],
|
1312
|
+
applies_to_price_interval_ids: T::Array[String],
|
1313
|
+
discount_type: Symbol,
|
1314
|
+
end_date: T.nilable(Time),
|
1315
|
+
start_date: Time
|
1316
|
+
}
|
1317
|
+
)
|
1318
|
+
end
|
1319
|
+
def to_hash
|
1095
1320
|
end
|
1096
|
-
def to_hash; end
|
1097
1321
|
end
|
1098
1322
|
|
1099
1323
|
class Percentage < Orb::Internal::Type::BaseModel
|
1324
|
+
OrHash =
|
1325
|
+
T.type_alias do
|
1326
|
+
T.any(
|
1327
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage,
|
1328
|
+
Orb::Internal::AnyHash
|
1329
|
+
)
|
1330
|
+
end
|
1331
|
+
|
1100
1332
|
# The price ids that this discount interval applies to.
|
1101
1333
|
sig { returns(T::Array[String]) }
|
1102
1334
|
attr_accessor :applies_to_price_ids
|
@@ -1129,8 +1361,7 @@ module Orb
|
|
1129
1361
|
percentage_discount: Float,
|
1130
1362
|
start_date: Time,
|
1131
1363
|
discount_type: Symbol
|
1132
|
-
)
|
1133
|
-
.returns(T.attached_class)
|
1364
|
+
).returns(T.attached_class)
|
1134
1365
|
end
|
1135
1366
|
def self.new(
|
1136
1367
|
# The price ids that this discount interval applies to.
|
@@ -1145,24 +1376,34 @@ module Orb
|
|
1145
1376
|
# The start date of the discount interval.
|
1146
1377
|
start_date:,
|
1147
1378
|
discount_type: :percentage
|
1148
|
-
)
|
1379
|
+
)
|
1380
|
+
end
|
1381
|
+
|
1149
1382
|
sig do
|
1150
|
-
override
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1383
|
+
override.returns(
|
1384
|
+
{
|
1385
|
+
applies_to_price_ids: T::Array[String],
|
1386
|
+
applies_to_price_interval_ids: T::Array[String],
|
1387
|
+
discount_type: Symbol,
|
1388
|
+
end_date: T.nilable(Time),
|
1389
|
+
percentage_discount: Float,
|
1390
|
+
start_date: Time
|
1391
|
+
}
|
1392
|
+
)
|
1393
|
+
end
|
1394
|
+
def to_hash
|
1161
1395
|
end
|
1162
|
-
def to_hash; end
|
1163
1396
|
end
|
1164
1397
|
|
1165
1398
|
class Usage < Orb::Internal::Type::BaseModel
|
1399
|
+
OrHash =
|
1400
|
+
T.type_alias do
|
1401
|
+
T.any(
|
1402
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage,
|
1403
|
+
Orb::Internal::AnyHash
|
1404
|
+
)
|
1405
|
+
end
|
1406
|
+
|
1166
1407
|
# The price ids that this discount interval applies to.
|
1167
1408
|
sig { returns(T::Array[String]) }
|
1168
1409
|
attr_accessor :applies_to_price_ids
|
@@ -1195,8 +1436,7 @@ module Orb
|
|
1195
1436
|
start_date: Time,
|
1196
1437
|
usage_discount: Float,
|
1197
1438
|
discount_type: Symbol
|
1198
|
-
)
|
1199
|
-
.returns(T.attached_class)
|
1439
|
+
).returns(T.attached_class)
|
1200
1440
|
end
|
1201
1441
|
def self.new(
|
1202
1442
|
# The price ids that this discount interval applies to.
|
@@ -1211,33 +1451,45 @@ module Orb
|
|
1211
1451
|
# discount is for
|
1212
1452
|
usage_discount:,
|
1213
1453
|
discount_type: :usage
|
1214
|
-
)
|
1454
|
+
)
|
1455
|
+
end
|
1456
|
+
|
1215
1457
|
sig do
|
1216
|
-
override
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1458
|
+
override.returns(
|
1459
|
+
{
|
1460
|
+
applies_to_price_ids: T::Array[String],
|
1461
|
+
applies_to_price_interval_ids: T::Array[String],
|
1462
|
+
discount_type: Symbol,
|
1463
|
+
end_date: T.nilable(Time),
|
1464
|
+
start_date: Time,
|
1465
|
+
usage_discount: Float
|
1466
|
+
}
|
1467
|
+
)
|
1468
|
+
end
|
1469
|
+
def to_hash
|
1227
1470
|
end
|
1228
|
-
def to_hash; end
|
1229
1471
|
end
|
1230
1472
|
|
1231
1473
|
sig do
|
1232
|
-
override
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1474
|
+
override.returns(
|
1475
|
+
T::Array[
|
1476
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Variants
|
1477
|
+
]
|
1478
|
+
)
|
1479
|
+
end
|
1480
|
+
def self.variants
|
1236
1481
|
end
|
1237
|
-
def self.variants; end
|
1238
1482
|
end
|
1239
1483
|
|
1240
1484
|
class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
|
1485
|
+
OrHash =
|
1486
|
+
T.type_alias do
|
1487
|
+
T.any(
|
1488
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule,
|
1489
|
+
Orb::Internal::AnyHash
|
1490
|
+
)
|
1491
|
+
end
|
1492
|
+
|
1241
1493
|
sig { returns(T.nilable(Time)) }
|
1242
1494
|
attr_accessor :end_date
|
1243
1495
|
|
@@ -1251,18 +1503,39 @@ module Orb
|
|
1251
1503
|
attr_accessor :start_date
|
1252
1504
|
|
1253
1505
|
sig do
|
1254
|
-
params(
|
1255
|
-
.
|
1506
|
+
params(
|
1507
|
+
end_date: T.nilable(Time),
|
1508
|
+
price_id: String,
|
1509
|
+
quantity: Float,
|
1510
|
+
start_date: Time
|
1511
|
+
).returns(T.attached_class)
|
1512
|
+
end
|
1513
|
+
def self.new(end_date:, price_id:, quantity:, start_date:)
|
1256
1514
|
end
|
1257
|
-
def self.new(end_date:, price_id:, quantity:, start_date:); end
|
1258
1515
|
|
1259
1516
|
sig do
|
1260
|
-
override.returns(
|
1517
|
+
override.returns(
|
1518
|
+
{
|
1519
|
+
end_date: T.nilable(Time),
|
1520
|
+
price_id: String,
|
1521
|
+
quantity: Float,
|
1522
|
+
start_date: Time
|
1523
|
+
}
|
1524
|
+
)
|
1525
|
+
end
|
1526
|
+
def to_hash
|
1261
1527
|
end
|
1262
|
-
def to_hash; end
|
1263
1528
|
end
|
1264
1529
|
|
1265
1530
|
class MaximumInterval < Orb::Internal::Type::BaseModel
|
1531
|
+
OrHash =
|
1532
|
+
T.type_alias do
|
1533
|
+
T.any(
|
1534
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval,
|
1535
|
+
Orb::Internal::AnyHash
|
1536
|
+
)
|
1537
|
+
end
|
1538
|
+
|
1266
1539
|
# The price ids that this maximum interval applies to.
|
1267
1540
|
sig { returns(T::Array[String]) }
|
1268
1541
|
attr_accessor :applies_to_price_ids
|
@@ -1291,8 +1564,7 @@ module Orb
|
|
1291
1564
|
end_date: T.nilable(Time),
|
1292
1565
|
maximum_amount: String,
|
1293
1566
|
start_date: Time
|
1294
|
-
)
|
1295
|
-
.returns(T.attached_class)
|
1567
|
+
).returns(T.attached_class)
|
1296
1568
|
end
|
1297
1569
|
def self.new(
|
1298
1570
|
# The price ids that this maximum interval applies to.
|
@@ -1306,23 +1578,33 @@ module Orb
|
|
1306
1578
|
maximum_amount:,
|
1307
1579
|
# The start date of the maximum interval.
|
1308
1580
|
start_date:
|
1309
|
-
)
|
1581
|
+
)
|
1582
|
+
end
|
1583
|
+
|
1310
1584
|
sig do
|
1311
|
-
override
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1585
|
+
override.returns(
|
1586
|
+
{
|
1587
|
+
applies_to_price_ids: T::Array[String],
|
1588
|
+
applies_to_price_interval_ids: T::Array[String],
|
1589
|
+
end_date: T.nilable(Time),
|
1590
|
+
maximum_amount: String,
|
1591
|
+
start_date: Time
|
1592
|
+
}
|
1593
|
+
)
|
1594
|
+
end
|
1595
|
+
def to_hash
|
1321
1596
|
end
|
1322
|
-
def to_hash; end
|
1323
1597
|
end
|
1324
1598
|
|
1325
1599
|
class MinimumInterval < Orb::Internal::Type::BaseModel
|
1600
|
+
OrHash =
|
1601
|
+
T.type_alias do
|
1602
|
+
T.any(
|
1603
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval,
|
1604
|
+
Orb::Internal::AnyHash
|
1605
|
+
)
|
1606
|
+
end
|
1607
|
+
|
1326
1608
|
# The price ids that this minimum interval applies to.
|
1327
1609
|
sig { returns(T::Array[String]) }
|
1328
1610
|
attr_accessor :applies_to_price_ids
|
@@ -1351,8 +1633,7 @@ module Orb
|
|
1351
1633
|
end_date: T.nilable(Time),
|
1352
1634
|
minimum_amount: String,
|
1353
1635
|
start_date: Time
|
1354
|
-
)
|
1355
|
-
.returns(T.attached_class)
|
1636
|
+
).returns(T.attached_class)
|
1356
1637
|
end
|
1357
1638
|
def self.new(
|
1358
1639
|
# The price ids that this minimum interval applies to.
|
@@ -1366,35 +1647,55 @@ module Orb
|
|
1366
1647
|
minimum_amount:,
|
1367
1648
|
# The start date of the minimum interval.
|
1368
1649
|
start_date:
|
1369
|
-
)
|
1650
|
+
)
|
1651
|
+
end
|
1652
|
+
|
1370
1653
|
sig do
|
1371
|
-
override
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1654
|
+
override.returns(
|
1655
|
+
{
|
1656
|
+
applies_to_price_ids: T::Array[String],
|
1657
|
+
applies_to_price_interval_ids: T::Array[String],
|
1658
|
+
end_date: T.nilable(Time),
|
1659
|
+
minimum_amount: String,
|
1660
|
+
start_date: Time
|
1661
|
+
}
|
1662
|
+
)
|
1663
|
+
end
|
1664
|
+
def to_hash
|
1381
1665
|
end
|
1382
|
-
def to_hash; end
|
1383
1666
|
end
|
1384
1667
|
|
1385
1668
|
class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
|
1669
|
+
OrHash =
|
1670
|
+
T.type_alias do
|
1671
|
+
T.any(
|
1672
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange,
|
1673
|
+
Orb::Internal::AnyHash
|
1674
|
+
)
|
1675
|
+
end
|
1676
|
+
|
1386
1677
|
sig { returns(String) }
|
1387
1678
|
attr_accessor :id
|
1388
1679
|
|
1389
1680
|
# A pending subscription change if one exists on this subscription.
|
1390
1681
|
sig { params(id: String).returns(T.attached_class) }
|
1391
|
-
def self.new(id:)
|
1682
|
+
def self.new(id:)
|
1683
|
+
end
|
1392
1684
|
|
1393
|
-
sig { override.returns({id: String}) }
|
1394
|
-
def to_hash
|
1685
|
+
sig { override.returns({ id: String }) }
|
1686
|
+
def to_hash
|
1687
|
+
end
|
1395
1688
|
end
|
1396
1689
|
|
1397
1690
|
class PriceInterval < Orb::Internal::Type::BaseModel
|
1691
|
+
OrHash =
|
1692
|
+
T.type_alias do
|
1693
|
+
T.any(
|
1694
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval,
|
1695
|
+
Orb::Internal::AnyHash
|
1696
|
+
)
|
1697
|
+
end
|
1698
|
+
|
1398
1699
|
sig { returns(String) }
|
1399
1700
|
attr_accessor :id
|
1400
1701
|
|
@@ -1428,7 +1729,9 @@ module Orb
|
|
1428
1729
|
sig do
|
1429
1730
|
returns(
|
1430
1731
|
T.nilable(
|
1431
|
-
T::Array[
|
1732
|
+
T::Array[
|
1733
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1734
|
+
]
|
1432
1735
|
)
|
1433
1736
|
)
|
1434
1737
|
end
|
@@ -1447,34 +1750,34 @@ module Orb
|
|
1447
1750
|
sig do
|
1448
1751
|
returns(
|
1449
1752
|
T.any(
|
1450
|
-
Orb::
|
1451
|
-
Orb::
|
1452
|
-
Orb::
|
1453
|
-
Orb::
|
1454
|
-
Orb::
|
1455
|
-
Orb::
|
1456
|
-
Orb::
|
1457
|
-
Orb::
|
1458
|
-
Orb::
|
1459
|
-
Orb::
|
1460
|
-
Orb::
|
1461
|
-
Orb::
|
1462
|
-
Orb::
|
1463
|
-
Orb::
|
1464
|
-
Orb::
|
1465
|
-
Orb::
|
1466
|
-
Orb::
|
1467
|
-
Orb::
|
1468
|
-
Orb::
|
1469
|
-
Orb::
|
1470
|
-
Orb::
|
1471
|
-
Orb::
|
1472
|
-
Orb::
|
1473
|
-
Orb::
|
1474
|
-
Orb::
|
1475
|
-
Orb::
|
1476
|
-
Orb::
|
1477
|
-
Orb::
|
1753
|
+
Orb::Price::Unit,
|
1754
|
+
Orb::Price::Package,
|
1755
|
+
Orb::Price::Matrix,
|
1756
|
+
Orb::Price::Tiered,
|
1757
|
+
Orb::Price::TieredBps,
|
1758
|
+
Orb::Price::Bps,
|
1759
|
+
Orb::Price::BulkBps,
|
1760
|
+
Orb::Price::Bulk,
|
1761
|
+
Orb::Price::ThresholdTotalAmount,
|
1762
|
+
Orb::Price::TieredPackage,
|
1763
|
+
Orb::Price::GroupedTiered,
|
1764
|
+
Orb::Price::TieredWithMinimum,
|
1765
|
+
Orb::Price::TieredPackageWithMinimum,
|
1766
|
+
Orb::Price::PackageWithAllocation,
|
1767
|
+
Orb::Price::UnitWithPercent,
|
1768
|
+
Orb::Price::MatrixWithAllocation,
|
1769
|
+
Orb::Price::TieredWithProration,
|
1770
|
+
Orb::Price::UnitWithProration,
|
1771
|
+
Orb::Price::GroupedAllocation,
|
1772
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1773
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1774
|
+
Orb::Price::MatrixWithDisplayName,
|
1775
|
+
Orb::Price::BulkWithProration,
|
1776
|
+
Orb::Price::GroupedTieredPackage,
|
1777
|
+
Orb::Price::MaxGroupTieredPackage,
|
1778
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1779
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1780
|
+
Orb::Price::CumulativeGroupedBulk
|
1478
1781
|
)
|
1479
1782
|
)
|
1480
1783
|
end
|
@@ -1501,49 +1804,46 @@ module Orb
|
|
1501
1804
|
current_billing_period_start_date: T.nilable(Time),
|
1502
1805
|
end_date: T.nilable(Time),
|
1503
1806
|
filter: T.nilable(String),
|
1504
|
-
fixed_fee_quantity_transitions:
|
1505
|
-
T
|
1506
|
-
T
|
1507
|
-
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
Orb::Models::Price::CumulativeGroupedBulk
|
1542
|
-
),
|
1807
|
+
fixed_fee_quantity_transitions:
|
1808
|
+
T.nilable(
|
1809
|
+
T::Array[
|
1810
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition::OrHash
|
1811
|
+
]
|
1812
|
+
),
|
1813
|
+
price:
|
1814
|
+
T.any(
|
1815
|
+
Orb::Price::Unit::OrHash,
|
1816
|
+
Orb::Price::Package::OrHash,
|
1817
|
+
Orb::Price::Matrix::OrHash,
|
1818
|
+
Orb::Price::Tiered::OrHash,
|
1819
|
+
Orb::Price::TieredBps::OrHash,
|
1820
|
+
Orb::Price::Bps::OrHash,
|
1821
|
+
Orb::Price::BulkBps::OrHash,
|
1822
|
+
Orb::Price::Bulk::OrHash,
|
1823
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
1824
|
+
Orb::Price::TieredPackage::OrHash,
|
1825
|
+
Orb::Price::GroupedTiered::OrHash,
|
1826
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
1827
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
1828
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
1829
|
+
Orb::Price::UnitWithPercent::OrHash,
|
1830
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
1831
|
+
Orb::Price::TieredWithProration::OrHash,
|
1832
|
+
Orb::Price::UnitWithProration::OrHash,
|
1833
|
+
Orb::Price::GroupedAllocation::OrHash,
|
1834
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
1835
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
1836
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
1837
|
+
Orb::Price::BulkWithProration::OrHash,
|
1838
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
1839
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
1840
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
1841
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
1842
|
+
Orb::Price::CumulativeGroupedBulk::OrHash
|
1843
|
+
),
|
1543
1844
|
start_date: Time,
|
1544
1845
|
usage_customer_ids: T.nilable(T::Array[String])
|
1545
|
-
)
|
1546
|
-
.returns(T.attached_class)
|
1846
|
+
).returns(T.attached_class)
|
1547
1847
|
end
|
1548
1848
|
def self.new(
|
1549
1849
|
id:,
|
@@ -1582,58 +1882,72 @@ module Orb
|
|
1582
1882
|
# A list of customer IDs whose usage events will be aggregated and billed under
|
1583
1883
|
# this price interval.
|
1584
1884
|
usage_customer_ids:
|
1585
|
-
)
|
1885
|
+
)
|
1886
|
+
end
|
1887
|
+
|
1586
1888
|
sig do
|
1587
|
-
override
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
T::Array[
|
1889
|
+
override.returns(
|
1890
|
+
{
|
1891
|
+
id: String,
|
1892
|
+
billing_cycle_day: Integer,
|
1893
|
+
current_billing_period_end_date: T.nilable(Time),
|
1894
|
+
current_billing_period_start_date: T.nilable(Time),
|
1895
|
+
end_date: T.nilable(Time),
|
1896
|
+
filter: T.nilable(String),
|
1897
|
+
fixed_fee_quantity_transitions:
|
1898
|
+
T.nilable(
|
1899
|
+
T::Array[
|
1900
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1901
|
+
]
|
1598
1902
|
),
|
1599
|
-
|
1600
|
-
|
1601
|
-
Orb::
|
1602
|
-
Orb::
|
1603
|
-
Orb::
|
1604
|
-
Orb::
|
1605
|
-
Orb::
|
1606
|
-
Orb::
|
1607
|
-
Orb::
|
1608
|
-
Orb::
|
1609
|
-
Orb::
|
1610
|
-
Orb::
|
1611
|
-
Orb::
|
1612
|
-
Orb::
|
1613
|
-
Orb::
|
1614
|
-
Orb::
|
1615
|
-
Orb::
|
1616
|
-
Orb::
|
1617
|
-
Orb::
|
1618
|
-
Orb::
|
1619
|
-
Orb::
|
1620
|
-
Orb::
|
1621
|
-
Orb::
|
1622
|
-
Orb::
|
1623
|
-
Orb::
|
1624
|
-
Orb::
|
1625
|
-
Orb::
|
1626
|
-
Orb::
|
1627
|
-
Orb::
|
1903
|
+
price:
|
1904
|
+
T.any(
|
1905
|
+
Orb::Price::Unit,
|
1906
|
+
Orb::Price::Package,
|
1907
|
+
Orb::Price::Matrix,
|
1908
|
+
Orb::Price::Tiered,
|
1909
|
+
Orb::Price::TieredBps,
|
1910
|
+
Orb::Price::Bps,
|
1911
|
+
Orb::Price::BulkBps,
|
1912
|
+
Orb::Price::Bulk,
|
1913
|
+
Orb::Price::ThresholdTotalAmount,
|
1914
|
+
Orb::Price::TieredPackage,
|
1915
|
+
Orb::Price::GroupedTiered,
|
1916
|
+
Orb::Price::TieredWithMinimum,
|
1917
|
+
Orb::Price::TieredPackageWithMinimum,
|
1918
|
+
Orb::Price::PackageWithAllocation,
|
1919
|
+
Orb::Price::UnitWithPercent,
|
1920
|
+
Orb::Price::MatrixWithAllocation,
|
1921
|
+
Orb::Price::TieredWithProration,
|
1922
|
+
Orb::Price::UnitWithProration,
|
1923
|
+
Orb::Price::GroupedAllocation,
|
1924
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1925
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1926
|
+
Orb::Price::MatrixWithDisplayName,
|
1927
|
+
Orb::Price::BulkWithProration,
|
1928
|
+
Orb::Price::GroupedTieredPackage,
|
1929
|
+
Orb::Price::MaxGroupTieredPackage,
|
1930
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1931
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1932
|
+
Orb::Price::CumulativeGroupedBulk
|
1628
1933
|
),
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1934
|
+
start_date: Time,
|
1935
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
1936
|
+
}
|
1937
|
+
)
|
1938
|
+
end
|
1939
|
+
def to_hash
|
1633
1940
|
end
|
1634
|
-
def to_hash; end
|
1635
1941
|
|
1636
1942
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
1943
|
+
OrHash =
|
1944
|
+
T.type_alias do
|
1945
|
+
T.any(
|
1946
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition,
|
1947
|
+
Orb::Internal::AnyHash
|
1948
|
+
)
|
1949
|
+
end
|
1950
|
+
|
1637
1951
|
sig { returns(Time) }
|
1638
1952
|
attr_accessor :effective_date
|
1639
1953
|
|
@@ -1644,16 +1958,34 @@ module Orb
|
|
1644
1958
|
attr_accessor :quantity
|
1645
1959
|
|
1646
1960
|
sig do
|
1647
|
-
params(
|
1961
|
+
params(
|
1962
|
+
effective_date: Time,
|
1963
|
+
price_id: String,
|
1964
|
+
quantity: Integer
|
1965
|
+
).returns(T.attached_class)
|
1966
|
+
end
|
1967
|
+
def self.new(effective_date:, price_id:, quantity:)
|
1648
1968
|
end
|
1649
|
-
def self.new(effective_date:, price_id:, quantity:); end
|
1650
1969
|
|
1651
|
-
sig
|
1652
|
-
|
1970
|
+
sig do
|
1971
|
+
override.returns(
|
1972
|
+
{ effective_date: Time, price_id: String, quantity: Integer }
|
1973
|
+
)
|
1974
|
+
end
|
1975
|
+
def to_hash
|
1976
|
+
end
|
1653
1977
|
end
|
1654
1978
|
end
|
1655
1979
|
|
1656
1980
|
class RedeemedCoupon < Orb::Internal::Type::BaseModel
|
1981
|
+
OrHash =
|
1982
|
+
T.type_alias do
|
1983
|
+
T.any(
|
1984
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon,
|
1985
|
+
Orb::Internal::AnyHash
|
1986
|
+
)
|
1987
|
+
end
|
1988
|
+
|
1657
1989
|
sig { returns(String) }
|
1658
1990
|
attr_accessor :coupon_id
|
1659
1991
|
|
@@ -1664,61 +1996,107 @@ module Orb
|
|
1664
1996
|
attr_accessor :start_date
|
1665
1997
|
|
1666
1998
|
sig do
|
1667
|
-
params(
|
1999
|
+
params(
|
2000
|
+
coupon_id: String,
|
2001
|
+
end_date: T.nilable(Time),
|
2002
|
+
start_date: Time
|
2003
|
+
).returns(T.attached_class)
|
2004
|
+
end
|
2005
|
+
def self.new(coupon_id:, end_date:, start_date:)
|
1668
2006
|
end
|
1669
|
-
def self.new(coupon_id:, end_date:, start_date:); end
|
1670
2007
|
|
1671
|
-
sig
|
1672
|
-
|
2008
|
+
sig do
|
2009
|
+
override.returns(
|
2010
|
+
{ coupon_id: String, end_date: T.nilable(Time), start_date: Time }
|
2011
|
+
)
|
2012
|
+
end
|
2013
|
+
def to_hash
|
2014
|
+
end
|
1673
2015
|
end
|
1674
2016
|
|
1675
2017
|
module Status
|
1676
2018
|
extend Orb::Internal::Type::Enum
|
1677
2019
|
|
1678
2020
|
TaggedSymbol =
|
1679
|
-
T.type_alias
|
2021
|
+
T.type_alias do
|
2022
|
+
T.all(
|
2023
|
+
Symbol,
|
2024
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status
|
2025
|
+
)
|
2026
|
+
end
|
1680
2027
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1681
2028
|
|
1682
2029
|
ACTIVE =
|
1683
|
-
T.let(
|
2030
|
+
T.let(
|
2031
|
+
:active,
|
2032
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol
|
2033
|
+
)
|
1684
2034
|
ENDED =
|
1685
|
-
T.let(
|
2035
|
+
T.let(
|
2036
|
+
:ended,
|
2037
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol
|
2038
|
+
)
|
1686
2039
|
UPCOMING =
|
1687
|
-
T.let(
|
2040
|
+
T.let(
|
2041
|
+
:upcoming,
|
2042
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol
|
2043
|
+
)
|
1688
2044
|
|
1689
2045
|
sig do
|
1690
|
-
override
|
1691
|
-
|
2046
|
+
override.returns(
|
2047
|
+
T::Array[
|
2048
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol
|
2049
|
+
]
|
2050
|
+
)
|
2051
|
+
end
|
2052
|
+
def self.values
|
1692
2053
|
end
|
1693
|
-
def self.values; end
|
1694
2054
|
end
|
1695
2055
|
|
1696
2056
|
class TrialInfo < Orb::Internal::Type::BaseModel
|
2057
|
+
OrHash =
|
2058
|
+
T.type_alias do
|
2059
|
+
T.any(
|
2060
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo,
|
2061
|
+
Orb::Internal::AnyHash
|
2062
|
+
)
|
2063
|
+
end
|
2064
|
+
|
1697
2065
|
sig { returns(T.nilable(Time)) }
|
1698
2066
|
attr_accessor :end_date
|
1699
2067
|
|
1700
2068
|
sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
|
1701
|
-
def self.new(end_date:)
|
2069
|
+
def self.new(end_date:)
|
2070
|
+
end
|
1702
2071
|
|
1703
|
-
sig { override.returns({end_date: T.nilable(Time)}) }
|
1704
|
-
def to_hash
|
2072
|
+
sig { override.returns({ end_date: T.nilable(Time) }) }
|
2073
|
+
def to_hash
|
2074
|
+
end
|
1705
2075
|
end
|
1706
2076
|
|
1707
2077
|
class ChangedResources < Orb::Internal::Type::BaseModel
|
2078
|
+
OrHash =
|
2079
|
+
T.type_alias do
|
2080
|
+
T.any(
|
2081
|
+
Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources,
|
2082
|
+
Orb::Internal::AnyHash
|
2083
|
+
)
|
2084
|
+
end
|
2085
|
+
|
1708
2086
|
# The credit notes that were created as part of this operation.
|
1709
|
-
sig { returns(T::Array[Orb::
|
2087
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1710
2088
|
attr_accessor :created_credit_notes
|
1711
2089
|
|
1712
2090
|
# The invoices that were created as part of this operation.
|
1713
|
-
sig { returns(T::Array[Orb::
|
2091
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1714
2092
|
attr_accessor :created_invoices
|
1715
2093
|
|
1716
2094
|
# The credit notes that were voided as part of this operation.
|
1717
|
-
sig { returns(T::Array[Orb::
|
2095
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1718
2096
|
attr_accessor :voided_credit_notes
|
1719
2097
|
|
1720
2098
|
# The invoices that were voided as part of this operation.
|
1721
|
-
sig { returns(T::Array[Orb::
|
2099
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1722
2100
|
attr_accessor :voided_invoices
|
1723
2101
|
|
1724
2102
|
# The resources that were changed as part of this operation. Only present when
|
@@ -1726,12 +2104,11 @@ module Orb
|
|
1726
2104
|
# `include_changed_resources` parameter was passed in the request.
|
1727
2105
|
sig do
|
1728
2106
|
params(
|
1729
|
-
created_credit_notes: T::Array[
|
1730
|
-
created_invoices: T::Array[
|
1731
|
-
voided_credit_notes: T::Array[
|
1732
|
-
voided_invoices: T::Array[
|
1733
|
-
)
|
1734
|
-
.returns(T.attached_class)
|
2107
|
+
created_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
2108
|
+
created_invoices: T::Array[Orb::Invoice::OrHash],
|
2109
|
+
voided_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
2110
|
+
voided_invoices: T::Array[Orb::Invoice::OrHash]
|
2111
|
+
).returns(T.attached_class)
|
1735
2112
|
end
|
1736
2113
|
def self.new(
|
1737
2114
|
# The credit notes that were created as part of this operation.
|
@@ -1742,19 +2119,21 @@ module Orb
|
|
1742
2119
|
voided_credit_notes:,
|
1743
2120
|
# The invoices that were voided as part of this operation.
|
1744
2121
|
voided_invoices:
|
1745
|
-
)
|
2122
|
+
)
|
2123
|
+
end
|
2124
|
+
|
1746
2125
|
sig do
|
1747
|
-
override
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
2126
|
+
override.returns(
|
2127
|
+
{
|
2128
|
+
created_credit_notes: T::Array[Orb::CreditNote],
|
2129
|
+
created_invoices: T::Array[Orb::Invoice],
|
2130
|
+
voided_credit_notes: T::Array[Orb::CreditNote],
|
2131
|
+
voided_invoices: T::Array[Orb::Invoice]
|
2132
|
+
}
|
2133
|
+
)
|
2134
|
+
end
|
2135
|
+
def to_hash
|
1756
2136
|
end
|
1757
|
-
def to_hash; end
|
1758
2137
|
end
|
1759
2138
|
end
|
1760
2139
|
end
|