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 SubscriptionChangeApplyResponse < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
Orb::Models::SubscriptionChangeApplyResponse,
|
10
|
+
Orb::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
6
14
|
sig { returns(String) }
|
7
15
|
attr_accessor :id
|
8
16
|
|
@@ -10,17 +18,27 @@ 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::SubscriptionChangeApplyResponse::Status::TaggedSymbol
|
24
|
+
)
|
25
|
+
end
|
14
26
|
attr_accessor :status
|
15
27
|
|
16
|
-
sig
|
28
|
+
sig do
|
29
|
+
returns(
|
30
|
+
T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription)
|
31
|
+
)
|
32
|
+
end
|
17
33
|
attr_reader :subscription
|
18
34
|
|
19
35
|
sig do
|
20
36
|
params(
|
21
|
-
subscription:
|
22
|
-
|
23
|
-
|
37
|
+
subscription:
|
38
|
+
T.nilable(
|
39
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::OrHash
|
40
|
+
)
|
41
|
+
).void
|
24
42
|
end
|
25
43
|
attr_writer :subscription
|
26
44
|
|
@@ -40,12 +58,15 @@ module Orb
|
|
40
58
|
params(
|
41
59
|
id: String,
|
42
60
|
expiration_time: Time,
|
43
|
-
status:
|
44
|
-
|
61
|
+
status:
|
62
|
+
Orb::Models::SubscriptionChangeApplyResponse::Status::OrSymbol,
|
63
|
+
subscription:
|
64
|
+
T.nilable(
|
65
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::OrHash
|
66
|
+
),
|
45
67
|
applied_at: T.nilable(Time),
|
46
68
|
cancelled_at: T.nilable(Time)
|
47
|
-
)
|
48
|
-
.returns(T.attached_class)
|
69
|
+
).returns(T.attached_class)
|
49
70
|
end
|
50
71
|
def self.new(
|
51
72
|
id:,
|
@@ -57,37 +78,73 @@ module Orb
|
|
57
78
|
applied_at: nil,
|
58
79
|
# When this change was cancelled.
|
59
80
|
cancelled_at: nil
|
60
|
-
)
|
81
|
+
)
|
82
|
+
end
|
83
|
+
|
61
84
|
sig do
|
62
|
-
override
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
85
|
+
override.returns(
|
86
|
+
{
|
87
|
+
id: String,
|
88
|
+
expiration_time: Time,
|
89
|
+
status:
|
90
|
+
Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol,
|
91
|
+
subscription:
|
92
|
+
T.nilable(
|
93
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription
|
94
|
+
),
|
95
|
+
applied_at: T.nilable(Time),
|
96
|
+
cancelled_at: T.nilable(Time)
|
97
|
+
}
|
98
|
+
)
|
99
|
+
end
|
100
|
+
def to_hash
|
73
101
|
end
|
74
|
-
def to_hash; end
|
75
102
|
|
76
103
|
module Status
|
77
104
|
extend Orb::Internal::Type::Enum
|
78
105
|
|
79
|
-
TaggedSymbol =
|
106
|
+
TaggedSymbol =
|
107
|
+
T.type_alias do
|
108
|
+
T.all(Symbol, Orb::Models::SubscriptionChangeApplyResponse::Status)
|
109
|
+
end
|
80
110
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
81
111
|
|
82
|
-
PENDING =
|
83
|
-
|
84
|
-
|
112
|
+
PENDING =
|
113
|
+
T.let(
|
114
|
+
:pending,
|
115
|
+
Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
|
116
|
+
)
|
117
|
+
APPLIED =
|
118
|
+
T.let(
|
119
|
+
:applied,
|
120
|
+
Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
|
121
|
+
)
|
122
|
+
CANCELLED =
|
123
|
+
T.let(
|
124
|
+
:cancelled,
|
125
|
+
Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
|
126
|
+
)
|
85
127
|
|
86
|
-
sig
|
87
|
-
|
128
|
+
sig do
|
129
|
+
override.returns(
|
130
|
+
T::Array[
|
131
|
+
Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
|
132
|
+
]
|
133
|
+
)
|
134
|
+
end
|
135
|
+
def self.values
|
136
|
+
end
|
88
137
|
end
|
89
138
|
|
90
139
|
class Subscription < Orb::Internal::Type::BaseModel
|
140
|
+
OrHash =
|
141
|
+
T.type_alias do
|
142
|
+
T.any(
|
143
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription,
|
144
|
+
Orb::Internal::AnyHash
|
145
|
+
)
|
146
|
+
end
|
147
|
+
|
91
148
|
sig { returns(String) }
|
92
149
|
attr_accessor :id
|
93
150
|
|
@@ -98,7 +155,13 @@ module Orb
|
|
98
155
|
|
99
156
|
# The adjustment intervals for this subscription sorted by the start_date of the
|
100
157
|
# adjustment interval.
|
101
|
-
sig
|
158
|
+
sig do
|
159
|
+
returns(
|
160
|
+
T::Array[
|
161
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval
|
162
|
+
]
|
163
|
+
)
|
164
|
+
end
|
102
165
|
attr_accessor :adjustment_intervals
|
103
166
|
|
104
167
|
# Determines whether issued invoices for this subscription will automatically be
|
@@ -107,17 +170,18 @@ module Orb
|
|
107
170
|
sig { returns(T.nilable(T::Boolean)) }
|
108
171
|
attr_accessor :auto_collection
|
109
172
|
|
110
|
-
sig
|
173
|
+
sig do
|
174
|
+
returns(
|
175
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration
|
176
|
+
)
|
177
|
+
end
|
111
178
|
attr_reader :billing_cycle_anchor_configuration
|
112
179
|
|
113
180
|
sig do
|
114
181
|
params(
|
115
|
-
billing_cycle_anchor_configuration:
|
116
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration
|
117
|
-
|
118
|
-
)
|
119
|
-
)
|
120
|
-
.void
|
182
|
+
billing_cycle_anchor_configuration:
|
183
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration::OrHash
|
184
|
+
).void
|
121
185
|
end
|
122
186
|
attr_writer :billing_cycle_anchor_configuration
|
123
187
|
|
@@ -161,10 +225,10 @@ module Orb
|
|
161
225
|
# [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
|
162
226
|
# your account's timezone. See [Timezone localization](/essentials/timezones) for
|
163
227
|
# information on what this timezone parameter influences within Orb.
|
164
|
-
sig { returns(Orb::
|
228
|
+
sig { returns(Orb::Customer) }
|
165
229
|
attr_reader :customer
|
166
230
|
|
167
|
-
sig { params(customer:
|
231
|
+
sig { params(customer: Orb::Customer::OrHash).void }
|
168
232
|
attr_writer :customer
|
169
233
|
|
170
234
|
# Determines the default memo on this subscriptions' invoices. Note that if this
|
@@ -190,14 +254,26 @@ module Orb
|
|
190
254
|
sig { returns(T.nilable(Time)) }
|
191
255
|
attr_accessor :end_date
|
192
256
|
|
193
|
-
sig
|
257
|
+
sig do
|
258
|
+
returns(
|
259
|
+
T::Array[
|
260
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule
|
261
|
+
]
|
262
|
+
)
|
263
|
+
end
|
194
264
|
attr_accessor :fixed_fee_quantity_schedule
|
195
265
|
|
196
266
|
sig { returns(T.nilable(String)) }
|
197
267
|
attr_accessor :invoicing_threshold
|
198
268
|
|
199
269
|
# The maximum intervals for this subscription sorted by the start_date.
|
200
|
-
sig
|
270
|
+
sig do
|
271
|
+
returns(
|
272
|
+
T::Array[
|
273
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval
|
274
|
+
]
|
275
|
+
)
|
276
|
+
end
|
201
277
|
attr_accessor :maximum_intervals
|
202
278
|
|
203
279
|
# User specified key-value pairs for the resource. If not present, this defaults
|
@@ -208,7 +284,13 @@ module Orb
|
|
208
284
|
attr_accessor :metadata
|
209
285
|
|
210
286
|
# The minimum intervals for this subscription sorted by the start_date.
|
211
|
-
sig
|
287
|
+
sig do
|
288
|
+
returns(
|
289
|
+
T::Array[
|
290
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval
|
291
|
+
]
|
292
|
+
)
|
293
|
+
end
|
212
294
|
attr_accessor :minimum_intervals
|
213
295
|
|
214
296
|
# Determines the difference between the invoice issue date for subscription
|
@@ -219,19 +301,22 @@ module Orb
|
|
219
301
|
attr_accessor :net_terms
|
220
302
|
|
221
303
|
# A pending subscription change if one exists on this subscription.
|
222
|
-
sig
|
304
|
+
sig do
|
305
|
+
returns(
|
306
|
+
T.nilable(
|
307
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange
|
308
|
+
)
|
309
|
+
)
|
310
|
+
end
|
223
311
|
attr_reader :pending_subscription_change
|
224
312
|
|
225
313
|
sig do
|
226
314
|
params(
|
227
|
-
pending_subscription_change:
|
228
|
-
T.
|
229
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange
|
230
|
-
Orb::Internal::AnyHash
|
315
|
+
pending_subscription_change:
|
316
|
+
T.nilable(
|
317
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange::OrHash
|
231
318
|
)
|
232
|
-
|
233
|
-
)
|
234
|
-
.void
|
319
|
+
).void
|
235
320
|
end
|
236
321
|
attr_writer :pending_subscription_change
|
237
322
|
|
@@ -239,26 +324,38 @@ module Orb
|
|
239
324
|
# subscribed to by a customer. Plans define the billing behavior of the
|
240
325
|
# subscription. You can see more about how to configure prices in the
|
241
326
|
# [Price resource](/reference/price).
|
242
|
-
sig { returns(Orb::
|
327
|
+
sig { returns(Orb::Plan) }
|
243
328
|
attr_reader :plan
|
244
329
|
|
245
|
-
sig { params(plan:
|
330
|
+
sig { params(plan: Orb::Plan::OrHash).void }
|
246
331
|
attr_writer :plan
|
247
332
|
|
248
333
|
# The price intervals for this subscription.
|
249
|
-
sig
|
334
|
+
sig do
|
335
|
+
returns(
|
336
|
+
T::Array[
|
337
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval
|
338
|
+
]
|
339
|
+
)
|
340
|
+
end
|
250
341
|
attr_accessor :price_intervals
|
251
342
|
|
252
|
-
sig
|
343
|
+
sig do
|
344
|
+
returns(
|
345
|
+
T.nilable(
|
346
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon
|
347
|
+
)
|
348
|
+
)
|
349
|
+
end
|
253
350
|
attr_reader :redeemed_coupon
|
254
351
|
|
255
352
|
sig do
|
256
353
|
params(
|
257
|
-
redeemed_coupon:
|
258
|
-
T.
|
259
|
-
|
260
|
-
|
261
|
-
|
354
|
+
redeemed_coupon:
|
355
|
+
T.nilable(
|
356
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon::OrHash
|
357
|
+
)
|
358
|
+
).void
|
262
359
|
end
|
263
360
|
attr_writer :redeemed_coupon
|
264
361
|
|
@@ -266,36 +363,47 @@ module Orb
|
|
266
363
|
sig { returns(Time) }
|
267
364
|
attr_accessor :start_date
|
268
365
|
|
269
|
-
sig
|
366
|
+
sig do
|
367
|
+
returns(
|
368
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
|
369
|
+
)
|
370
|
+
end
|
270
371
|
attr_accessor :status
|
271
372
|
|
272
|
-
sig
|
373
|
+
sig do
|
374
|
+
returns(
|
375
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo
|
376
|
+
)
|
377
|
+
end
|
273
378
|
attr_reader :trial_info
|
274
379
|
|
275
380
|
sig do
|
276
381
|
params(
|
277
|
-
trial_info:
|
278
|
-
|
279
|
-
|
382
|
+
trial_info:
|
383
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo::OrHash
|
384
|
+
).void
|
280
385
|
end
|
281
386
|
attr_writer :trial_info
|
282
387
|
|
283
388
|
# The resources that were changed as part of this operation. Only present when
|
284
389
|
# fetched through the subscription changes API or if the
|
285
390
|
# `include_changed_resources` parameter was passed in the request.
|
286
|
-
sig
|
391
|
+
sig do
|
392
|
+
returns(
|
393
|
+
T.nilable(
|
394
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources
|
395
|
+
)
|
396
|
+
)
|
397
|
+
end
|
287
398
|
attr_reader :changed_resources
|
288
399
|
|
289
400
|
sig do
|
290
401
|
params(
|
291
|
-
changed_resources:
|
292
|
-
T.
|
293
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources
|
294
|
-
Orb::Internal::AnyHash
|
402
|
+
changed_resources:
|
403
|
+
T.nilable(
|
404
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources::OrHash
|
295
405
|
)
|
296
|
-
|
297
|
-
)
|
298
|
-
.void
|
406
|
+
).void
|
299
407
|
end
|
300
408
|
attr_writer :changed_resources
|
301
409
|
|
@@ -303,65 +411,66 @@ module Orb
|
|
303
411
|
params(
|
304
412
|
id: String,
|
305
413
|
active_plan_phase_order: T.nilable(Integer),
|
306
|
-
adjustment_intervals:
|
307
|
-
T
|
308
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval
|
309
|
-
|
310
|
-
)
|
311
|
-
],
|
414
|
+
adjustment_intervals:
|
415
|
+
T::Array[
|
416
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::OrHash
|
417
|
+
],
|
312
418
|
auto_collection: T.nilable(T::Boolean),
|
313
|
-
billing_cycle_anchor_configuration:
|
314
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
|
315
|
-
Orb::Internal::AnyHash
|
316
|
-
),
|
419
|
+
billing_cycle_anchor_configuration:
|
420
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration::OrHash,
|
317
421
|
billing_cycle_day: Integer,
|
318
422
|
created_at: Time,
|
319
423
|
current_billing_period_end_date: T.nilable(Time),
|
320
424
|
current_billing_period_start_date: T.nilable(Time),
|
321
|
-
customer:
|
425
|
+
customer: Orb::Customer::OrHash,
|
322
426
|
default_invoice_memo: T.nilable(String),
|
323
|
-
discount_intervals:
|
324
|
-
T
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
427
|
+
discount_intervals:
|
428
|
+
T::Array[
|
429
|
+
T.any(
|
430
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::OrHash,
|
431
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::OrHash,
|
432
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::OrHash
|
433
|
+
)
|
434
|
+
],
|
331
435
|
end_date: T.nilable(Time),
|
332
|
-
fixed_fee_quantity_schedule:
|
333
|
-
T
|
334
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule
|
335
|
-
|
336
|
-
)
|
337
|
-
],
|
436
|
+
fixed_fee_quantity_schedule:
|
437
|
+
T::Array[
|
438
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule::OrHash
|
439
|
+
],
|
338
440
|
invoicing_threshold: T.nilable(String),
|
339
|
-
maximum_intervals:
|
441
|
+
maximum_intervals:
|
442
|
+
T::Array[
|
443
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::OrHash
|
444
|
+
],
|
340
445
|
metadata: T::Hash[Symbol, String],
|
341
|
-
minimum_intervals:
|
446
|
+
minimum_intervals:
|
447
|
+
T::Array[
|
448
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::OrHash
|
449
|
+
],
|
342
450
|
net_terms: Integer,
|
343
|
-
pending_subscription_change:
|
344
|
-
T.
|
345
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
451
|
+
pending_subscription_change:
|
452
|
+
T.nilable(
|
453
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange::OrHash
|
454
|
+
),
|
455
|
+
plan: Orb::Plan::OrHash,
|
456
|
+
price_intervals:
|
457
|
+
T::Array[
|
458
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::OrHash
|
459
|
+
],
|
460
|
+
redeemed_coupon:
|
461
|
+
T.nilable(
|
462
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon::OrHash
|
463
|
+
),
|
354
464
|
start_date: Time,
|
355
|
-
status:
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
465
|
+
status:
|
466
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::OrSymbol,
|
467
|
+
trial_info:
|
468
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo::OrHash,
|
469
|
+
changed_resources:
|
470
|
+
T.nilable(
|
471
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources::OrHash
|
361
472
|
)
|
362
|
-
|
363
|
-
)
|
364
|
-
.returns(T.attached_class)
|
473
|
+
).returns(T.attached_class)
|
365
474
|
end
|
366
475
|
def self.new(
|
367
476
|
id:,
|
@@ -450,50 +559,88 @@ module Orb
|
|
450
559
|
# fetched through the subscription changes API or if the
|
451
560
|
# `include_changed_resources` parameter was passed in the request.
|
452
561
|
changed_resources: nil
|
453
|
-
)
|
562
|
+
)
|
563
|
+
end
|
564
|
+
|
454
565
|
sig do
|
455
|
-
override
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
566
|
+
override.returns(
|
567
|
+
{
|
568
|
+
id: String,
|
569
|
+
active_plan_phase_order: T.nilable(Integer),
|
570
|
+
adjustment_intervals:
|
571
|
+
T::Array[
|
572
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval
|
573
|
+
],
|
574
|
+
auto_collection: T.nilable(T::Boolean),
|
575
|
+
billing_cycle_anchor_configuration:
|
576
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
|
577
|
+
billing_cycle_day: Integer,
|
578
|
+
created_at: Time,
|
579
|
+
current_billing_period_end_date: T.nilable(Time),
|
580
|
+
current_billing_period_start_date: T.nilable(Time),
|
581
|
+
customer: Orb::Customer,
|
582
|
+
default_invoice_memo: T.nilable(String),
|
583
|
+
discount_intervals:
|
584
|
+
T::Array[
|
470
585
|
T.any(
|
471
586
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
|
472
587
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
|
473
588
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
|
474
589
|
)
|
475
590
|
],
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
591
|
+
end_date: T.nilable(Time),
|
592
|
+
fixed_fee_quantity_schedule:
|
593
|
+
T::Array[
|
594
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule
|
595
|
+
],
|
596
|
+
invoicing_threshold: T.nilable(String),
|
597
|
+
maximum_intervals:
|
598
|
+
T::Array[
|
599
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval
|
600
|
+
],
|
601
|
+
metadata: T::Hash[Symbol, String],
|
602
|
+
minimum_intervals:
|
603
|
+
T::Array[
|
604
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval
|
605
|
+
],
|
606
|
+
net_terms: Integer,
|
607
|
+
pending_subscription_change:
|
608
|
+
T.nilable(
|
609
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange
|
610
|
+
),
|
611
|
+
plan: Orb::Plan,
|
612
|
+
price_intervals:
|
613
|
+
T::Array[
|
614
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval
|
615
|
+
],
|
616
|
+
redeemed_coupon:
|
617
|
+
T.nilable(
|
618
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon
|
619
|
+
),
|
620
|
+
start_date: Time,
|
621
|
+
status:
|
622
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol,
|
623
|
+
trial_info:
|
624
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo,
|
625
|
+
changed_resources:
|
626
|
+
T.nilable(
|
627
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources
|
628
|
+
)
|
629
|
+
}
|
630
|
+
)
|
631
|
+
end
|
632
|
+
def to_hash
|
493
633
|
end
|
494
|
-
def to_hash; end
|
495
634
|
|
496
635
|
class AdjustmentInterval < Orb::Internal::Type::BaseModel
|
636
|
+
OrHash =
|
637
|
+
T.type_alias do
|
638
|
+
T.any(
|
639
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval,
|
640
|
+
Orb::Internal::AnyHash
|
641
|
+
)
|
642
|
+
end
|
643
|
+
|
497
644
|
sig { returns(String) }
|
498
645
|
attr_accessor :id
|
499
646
|
|
@@ -525,19 +672,18 @@ module Orb
|
|
525
672
|
sig do
|
526
673
|
params(
|
527
674
|
id: String,
|
528
|
-
adjustment:
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
675
|
+
adjustment:
|
676
|
+
T.any(
|
677
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
|
678
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
|
679
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
|
680
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash,
|
681
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash
|
682
|
+
),
|
536
683
|
applies_to_price_interval_ids: T::Array[String],
|
537
684
|
end_date: T.nilable(Time),
|
538
685
|
start_date: Time
|
539
|
-
)
|
540
|
-
.returns(T.attached_class)
|
686
|
+
).returns(T.attached_class)
|
541
687
|
end
|
542
688
|
def self.new(
|
543
689
|
id:,
|
@@ -548,31 +694,53 @@ module Orb
|
|
548
694
|
end_date:,
|
549
695
|
# The start date of the adjustment interval.
|
550
696
|
start_date:
|
551
|
-
)
|
697
|
+
)
|
698
|
+
end
|
699
|
+
|
552
700
|
sig do
|
553
|
-
override
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
701
|
+
override.returns(
|
702
|
+
{
|
703
|
+
id: String,
|
704
|
+
adjustment:
|
705
|
+
T.any(
|
558
706
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
559
707
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
560
708
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
561
709
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
562
710
|
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
563
711
|
),
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
712
|
+
applies_to_price_interval_ids: T::Array[String],
|
713
|
+
end_date: T.nilable(Time),
|
714
|
+
start_date: Time
|
715
|
+
}
|
716
|
+
)
|
717
|
+
end
|
718
|
+
def to_hash
|
569
719
|
end
|
570
|
-
def to_hash; end
|
571
720
|
|
572
721
|
module Adjustment
|
573
722
|
extend Orb::Internal::Type::Union
|
574
723
|
|
724
|
+
Variants =
|
725
|
+
T.type_alias do
|
726
|
+
T.any(
|
727
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
728
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
729
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
730
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
731
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
732
|
+
)
|
733
|
+
end
|
734
|
+
|
575
735
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
736
|
+
OrHash =
|
737
|
+
T.type_alias do
|
738
|
+
T.any(
|
739
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
740
|
+
Orb::Internal::AnyHash
|
741
|
+
)
|
742
|
+
end
|
743
|
+
|
576
744
|
sig { returns(String) }
|
577
745
|
attr_accessor :id
|
578
746
|
|
@@ -610,8 +778,7 @@ module Orb
|
|
610
778
|
reason: T.nilable(String),
|
611
779
|
usage_discount: Float,
|
612
780
|
adjustment_type: Symbol
|
613
|
-
)
|
614
|
-
.returns(T.attached_class)
|
781
|
+
).returns(T.attached_class)
|
615
782
|
end
|
616
783
|
def self.new(
|
617
784
|
id:,
|
@@ -628,25 +795,35 @@ module Orb
|
|
628
795
|
# to in a given billing period.
|
629
796
|
usage_discount:,
|
630
797
|
adjustment_type: :usage_discount
|
631
|
-
)
|
798
|
+
)
|
799
|
+
end
|
800
|
+
|
632
801
|
sig do
|
633
|
-
override
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
802
|
+
override.returns(
|
803
|
+
{
|
804
|
+
id: String,
|
805
|
+
adjustment_type: Symbol,
|
806
|
+
applies_to_price_ids: T::Array[String],
|
807
|
+
is_invoice_level: T::Boolean,
|
808
|
+
plan_phase_order: T.nilable(Integer),
|
809
|
+
reason: T.nilable(String),
|
810
|
+
usage_discount: Float
|
811
|
+
}
|
812
|
+
)
|
813
|
+
end
|
814
|
+
def to_hash
|
645
815
|
end
|
646
|
-
def to_hash; end
|
647
816
|
end
|
648
817
|
|
649
818
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
819
|
+
OrHash =
|
820
|
+
T.type_alias do
|
821
|
+
T.any(
|
822
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
823
|
+
Orb::Internal::AnyHash
|
824
|
+
)
|
825
|
+
end
|
826
|
+
|
650
827
|
sig { returns(String) }
|
651
828
|
attr_accessor :id
|
652
829
|
|
@@ -684,8 +861,7 @@ module Orb
|
|
684
861
|
plan_phase_order: T.nilable(Integer),
|
685
862
|
reason: T.nilable(String),
|
686
863
|
adjustment_type: Symbol
|
687
|
-
)
|
688
|
-
.returns(T.attached_class)
|
864
|
+
).returns(T.attached_class)
|
689
865
|
end
|
690
866
|
def self.new(
|
691
867
|
id:,
|
@@ -702,25 +878,35 @@ module Orb
|
|
702
878
|
# The reason for the adjustment.
|
703
879
|
reason:,
|
704
880
|
adjustment_type: :amount_discount
|
705
|
-
)
|
881
|
+
)
|
882
|
+
end
|
883
|
+
|
706
884
|
sig do
|
707
|
-
override
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
885
|
+
override.returns(
|
886
|
+
{
|
887
|
+
id: String,
|
888
|
+
adjustment_type: Symbol,
|
889
|
+
amount_discount: String,
|
890
|
+
applies_to_price_ids: T::Array[String],
|
891
|
+
is_invoice_level: T::Boolean,
|
892
|
+
plan_phase_order: T.nilable(Integer),
|
893
|
+
reason: T.nilable(String)
|
894
|
+
}
|
895
|
+
)
|
896
|
+
end
|
897
|
+
def to_hash
|
719
898
|
end
|
720
|
-
def to_hash; end
|
721
899
|
end
|
722
900
|
|
723
901
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
902
|
+
OrHash =
|
903
|
+
T.type_alias do
|
904
|
+
T.any(
|
905
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
906
|
+
Orb::Internal::AnyHash
|
907
|
+
)
|
908
|
+
end
|
909
|
+
|
724
910
|
sig { returns(String) }
|
725
911
|
attr_accessor :id
|
726
912
|
|
@@ -758,8 +944,7 @@ module Orb
|
|
758
944
|
plan_phase_order: T.nilable(Integer),
|
759
945
|
reason: T.nilable(String),
|
760
946
|
adjustment_type: Symbol
|
761
|
-
)
|
762
|
-
.returns(T.attached_class)
|
947
|
+
).returns(T.attached_class)
|
763
948
|
end
|
764
949
|
def self.new(
|
765
950
|
id:,
|
@@ -776,25 +961,35 @@ module Orb
|
|
776
961
|
# The reason for the adjustment.
|
777
962
|
reason:,
|
778
963
|
adjustment_type: :percentage_discount
|
779
|
-
)
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
964
|
+
)
|
965
|
+
end
|
966
|
+
|
967
|
+
sig do
|
968
|
+
override.returns(
|
969
|
+
{
|
970
|
+
id: String,
|
971
|
+
adjustment_type: Symbol,
|
972
|
+
applies_to_price_ids: T::Array[String],
|
973
|
+
is_invoice_level: T::Boolean,
|
974
|
+
percentage_discount: Float,
|
975
|
+
plan_phase_order: T.nilable(Integer),
|
976
|
+
reason: T.nilable(String)
|
977
|
+
}
|
978
|
+
)
|
979
|
+
end
|
980
|
+
def to_hash
|
793
981
|
end
|
794
|
-
def to_hash; end
|
795
982
|
end
|
796
983
|
|
797
984
|
class Minimum < Orb::Internal::Type::BaseModel
|
985
|
+
OrHash =
|
986
|
+
T.type_alias do
|
987
|
+
T.any(
|
988
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
989
|
+
Orb::Internal::AnyHash
|
990
|
+
)
|
991
|
+
end
|
992
|
+
|
798
993
|
sig { returns(String) }
|
799
994
|
attr_accessor :id
|
800
995
|
|
@@ -837,8 +1032,7 @@ module Orb
|
|
837
1032
|
plan_phase_order: T.nilable(Integer),
|
838
1033
|
reason: T.nilable(String),
|
839
1034
|
adjustment_type: Symbol
|
840
|
-
)
|
841
|
-
.returns(T.attached_class)
|
1035
|
+
).returns(T.attached_class)
|
842
1036
|
end
|
843
1037
|
def self.new(
|
844
1038
|
id:,
|
@@ -857,26 +1051,36 @@ module Orb
|
|
857
1051
|
# The reason for the adjustment.
|
858
1052
|
reason:,
|
859
1053
|
adjustment_type: :minimum
|
860
|
-
)
|
1054
|
+
)
|
1055
|
+
end
|
1056
|
+
|
861
1057
|
sig do
|
862
|
-
override
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
1058
|
+
override.returns(
|
1059
|
+
{
|
1060
|
+
id: String,
|
1061
|
+
adjustment_type: Symbol,
|
1062
|
+
applies_to_price_ids: T::Array[String],
|
1063
|
+
is_invoice_level: T::Boolean,
|
1064
|
+
item_id: String,
|
1065
|
+
minimum_amount: String,
|
1066
|
+
plan_phase_order: T.nilable(Integer),
|
1067
|
+
reason: T.nilable(String)
|
1068
|
+
}
|
1069
|
+
)
|
1070
|
+
end
|
1071
|
+
def to_hash
|
875
1072
|
end
|
876
|
-
def to_hash; end
|
877
1073
|
end
|
878
1074
|
|
879
1075
|
class Maximum < Orb::Internal::Type::BaseModel
|
1076
|
+
OrHash =
|
1077
|
+
T.type_alias do
|
1078
|
+
T.any(
|
1079
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum,
|
1080
|
+
Orb::Internal::AnyHash
|
1081
|
+
)
|
1082
|
+
end
|
1083
|
+
|
880
1084
|
sig { returns(String) }
|
881
1085
|
attr_accessor :id
|
882
1086
|
|
@@ -914,8 +1118,7 @@ module Orb
|
|
914
1118
|
plan_phase_order: T.nilable(Integer),
|
915
1119
|
reason: T.nilable(String),
|
916
1120
|
adjustment_type: Symbol
|
917
|
-
)
|
918
|
-
.returns(T.attached_class)
|
1121
|
+
).returns(T.attached_class)
|
919
1122
|
end
|
920
1123
|
def self.new(
|
921
1124
|
id:,
|
@@ -932,35 +1135,47 @@ module Orb
|
|
932
1135
|
# The reason for the adjustment.
|
933
1136
|
reason:,
|
934
1137
|
adjustment_type: :maximum
|
935
|
-
)
|
1138
|
+
)
|
1139
|
+
end
|
1140
|
+
|
936
1141
|
sig do
|
937
|
-
override
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
1142
|
+
override.returns(
|
1143
|
+
{
|
1144
|
+
id: String,
|
1145
|
+
adjustment_type: Symbol,
|
1146
|
+
applies_to_price_ids: T::Array[String],
|
1147
|
+
is_invoice_level: T::Boolean,
|
1148
|
+
maximum_amount: String,
|
1149
|
+
plan_phase_order: T.nilable(Integer),
|
1150
|
+
reason: T.nilable(String)
|
1151
|
+
}
|
1152
|
+
)
|
1153
|
+
end
|
1154
|
+
def to_hash
|
949
1155
|
end
|
950
|
-
def to_hash; end
|
951
1156
|
end
|
952
1157
|
|
953
1158
|
sig do
|
954
|
-
override
|
955
|
-
|
956
|
-
|
957
|
-
|
1159
|
+
override.returns(
|
1160
|
+
T::Array[
|
1161
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Variants
|
1162
|
+
]
|
1163
|
+
)
|
1164
|
+
end
|
1165
|
+
def self.variants
|
958
1166
|
end
|
959
|
-
def self.variants; end
|
960
1167
|
end
|
961
1168
|
end
|
962
1169
|
|
963
1170
|
class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
|
1171
|
+
OrHash =
|
1172
|
+
T.type_alias do
|
1173
|
+
T.any(
|
1174
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
|
1175
|
+
Orb::Internal::AnyHash
|
1176
|
+
)
|
1177
|
+
end
|
1178
|
+
|
964
1179
|
# The day of the month on which the billing cycle is anchored. If the maximum
|
965
1180
|
# number of days in a month is greater than this value, the last day of the month
|
966
1181
|
# is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
@@ -999,15 +1214,43 @@ module Orb
|
|
999
1214
|
# The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
1000
1215
|
# anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
1001
1216
|
year: nil
|
1002
|
-
)
|
1003
|
-
|
1004
|
-
|
1217
|
+
)
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
sig do
|
1221
|
+
override.returns(
|
1222
|
+
{
|
1223
|
+
day: Integer,
|
1224
|
+
month: T.nilable(Integer),
|
1225
|
+
year: T.nilable(Integer)
|
1226
|
+
}
|
1227
|
+
)
|
1228
|
+
end
|
1229
|
+
def to_hash
|
1230
|
+
end
|
1005
1231
|
end
|
1006
1232
|
|
1007
1233
|
module DiscountInterval
|
1008
1234
|
extend Orb::Internal::Type::Union
|
1009
1235
|
|
1236
|
+
Variants =
|
1237
|
+
T.type_alias do
|
1238
|
+
T.any(
|
1239
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
|
1240
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
|
1241
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
|
1242
|
+
)
|
1243
|
+
end
|
1244
|
+
|
1010
1245
|
class Amount < Orb::Internal::Type::BaseModel
|
1246
|
+
OrHash =
|
1247
|
+
T.type_alias do
|
1248
|
+
T.any(
|
1249
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
|
1250
|
+
Orb::Internal::AnyHash
|
1251
|
+
)
|
1252
|
+
end
|
1253
|
+
|
1011
1254
|
# Only available if discount_type is `amount`.
|
1012
1255
|
sig { returns(String) }
|
1013
1256
|
attr_accessor :amount_discount
|
@@ -1039,8 +1282,7 @@ module Orb
|
|
1039
1282
|
end_date: T.nilable(Time),
|
1040
1283
|
start_date: Time,
|
1041
1284
|
discount_type: Symbol
|
1042
|
-
)
|
1043
|
-
.returns(T.attached_class)
|
1285
|
+
).returns(T.attached_class)
|
1044
1286
|
end
|
1045
1287
|
def self.new(
|
1046
1288
|
# Only available if discount_type is `amount`.
|
@@ -1054,24 +1296,34 @@ module Orb
|
|
1054
1296
|
# The start date of the discount interval.
|
1055
1297
|
start_date:,
|
1056
1298
|
discount_type: :amount
|
1057
|
-
)
|
1299
|
+
)
|
1300
|
+
end
|
1301
|
+
|
1058
1302
|
sig do
|
1059
|
-
override
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1303
|
+
override.returns(
|
1304
|
+
{
|
1305
|
+
amount_discount: String,
|
1306
|
+
applies_to_price_ids: T::Array[String],
|
1307
|
+
applies_to_price_interval_ids: T::Array[String],
|
1308
|
+
discount_type: Symbol,
|
1309
|
+
end_date: T.nilable(Time),
|
1310
|
+
start_date: Time
|
1311
|
+
}
|
1312
|
+
)
|
1313
|
+
end
|
1314
|
+
def to_hash
|
1070
1315
|
end
|
1071
|
-
def to_hash; end
|
1072
1316
|
end
|
1073
1317
|
|
1074
1318
|
class Percentage < Orb::Internal::Type::BaseModel
|
1319
|
+
OrHash =
|
1320
|
+
T.type_alias do
|
1321
|
+
T.any(
|
1322
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
|
1323
|
+
Orb::Internal::AnyHash
|
1324
|
+
)
|
1325
|
+
end
|
1326
|
+
|
1075
1327
|
# The price ids that this discount interval applies to.
|
1076
1328
|
sig { returns(T::Array[String]) }
|
1077
1329
|
attr_accessor :applies_to_price_ids
|
@@ -1104,8 +1356,7 @@ module Orb
|
|
1104
1356
|
percentage_discount: Float,
|
1105
1357
|
start_date: Time,
|
1106
1358
|
discount_type: Symbol
|
1107
|
-
)
|
1108
|
-
.returns(T.attached_class)
|
1359
|
+
).returns(T.attached_class)
|
1109
1360
|
end
|
1110
1361
|
def self.new(
|
1111
1362
|
# The price ids that this discount interval applies to.
|
@@ -1120,24 +1371,34 @@ module Orb
|
|
1120
1371
|
# The start date of the discount interval.
|
1121
1372
|
start_date:,
|
1122
1373
|
discount_type: :percentage
|
1123
|
-
)
|
1374
|
+
)
|
1375
|
+
end
|
1376
|
+
|
1124
1377
|
sig do
|
1125
|
-
override
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1378
|
+
override.returns(
|
1379
|
+
{
|
1380
|
+
applies_to_price_ids: T::Array[String],
|
1381
|
+
applies_to_price_interval_ids: T::Array[String],
|
1382
|
+
discount_type: Symbol,
|
1383
|
+
end_date: T.nilable(Time),
|
1384
|
+
percentage_discount: Float,
|
1385
|
+
start_date: Time
|
1386
|
+
}
|
1387
|
+
)
|
1388
|
+
end
|
1389
|
+
def to_hash
|
1136
1390
|
end
|
1137
|
-
def to_hash; end
|
1138
1391
|
end
|
1139
1392
|
|
1140
1393
|
class Usage < Orb::Internal::Type::BaseModel
|
1394
|
+
OrHash =
|
1395
|
+
T.type_alias do
|
1396
|
+
T.any(
|
1397
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage,
|
1398
|
+
Orb::Internal::AnyHash
|
1399
|
+
)
|
1400
|
+
end
|
1401
|
+
|
1141
1402
|
# The price ids that this discount interval applies to.
|
1142
1403
|
sig { returns(T::Array[String]) }
|
1143
1404
|
attr_accessor :applies_to_price_ids
|
@@ -1170,8 +1431,7 @@ module Orb
|
|
1170
1431
|
start_date: Time,
|
1171
1432
|
usage_discount: Float,
|
1172
1433
|
discount_type: Symbol
|
1173
|
-
)
|
1174
|
-
.returns(T.attached_class)
|
1434
|
+
).returns(T.attached_class)
|
1175
1435
|
end
|
1176
1436
|
def self.new(
|
1177
1437
|
# The price ids that this discount interval applies to.
|
@@ -1186,33 +1446,45 @@ module Orb
|
|
1186
1446
|
# discount is for
|
1187
1447
|
usage_discount:,
|
1188
1448
|
discount_type: :usage
|
1189
|
-
)
|
1449
|
+
)
|
1450
|
+
end
|
1451
|
+
|
1190
1452
|
sig do
|
1191
|
-
override
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1453
|
+
override.returns(
|
1454
|
+
{
|
1455
|
+
applies_to_price_ids: T::Array[String],
|
1456
|
+
applies_to_price_interval_ids: T::Array[String],
|
1457
|
+
discount_type: Symbol,
|
1458
|
+
end_date: T.nilable(Time),
|
1459
|
+
start_date: Time,
|
1460
|
+
usage_discount: Float
|
1461
|
+
}
|
1462
|
+
)
|
1463
|
+
end
|
1464
|
+
def to_hash
|
1202
1465
|
end
|
1203
|
-
def to_hash; end
|
1204
1466
|
end
|
1205
1467
|
|
1206
1468
|
sig do
|
1207
|
-
override
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1469
|
+
override.returns(
|
1470
|
+
T::Array[
|
1471
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Variants
|
1472
|
+
]
|
1473
|
+
)
|
1474
|
+
end
|
1475
|
+
def self.variants
|
1211
1476
|
end
|
1212
|
-
def self.variants; end
|
1213
1477
|
end
|
1214
1478
|
|
1215
1479
|
class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
|
1480
|
+
OrHash =
|
1481
|
+
T.type_alias do
|
1482
|
+
T.any(
|
1483
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule,
|
1484
|
+
Orb::Internal::AnyHash
|
1485
|
+
)
|
1486
|
+
end
|
1487
|
+
|
1216
1488
|
sig { returns(T.nilable(Time)) }
|
1217
1489
|
attr_accessor :end_date
|
1218
1490
|
|
@@ -1226,18 +1498,39 @@ module Orb
|
|
1226
1498
|
attr_accessor :start_date
|
1227
1499
|
|
1228
1500
|
sig do
|
1229
|
-
params(
|
1230
|
-
.
|
1501
|
+
params(
|
1502
|
+
end_date: T.nilable(Time),
|
1503
|
+
price_id: String,
|
1504
|
+
quantity: Float,
|
1505
|
+
start_date: Time
|
1506
|
+
).returns(T.attached_class)
|
1507
|
+
end
|
1508
|
+
def self.new(end_date:, price_id:, quantity:, start_date:)
|
1231
1509
|
end
|
1232
|
-
def self.new(end_date:, price_id:, quantity:, start_date:); end
|
1233
1510
|
|
1234
1511
|
sig do
|
1235
|
-
override.returns(
|
1512
|
+
override.returns(
|
1513
|
+
{
|
1514
|
+
end_date: T.nilable(Time),
|
1515
|
+
price_id: String,
|
1516
|
+
quantity: Float,
|
1517
|
+
start_date: Time
|
1518
|
+
}
|
1519
|
+
)
|
1520
|
+
end
|
1521
|
+
def to_hash
|
1236
1522
|
end
|
1237
|
-
def to_hash; end
|
1238
1523
|
end
|
1239
1524
|
|
1240
1525
|
class MaximumInterval < Orb::Internal::Type::BaseModel
|
1526
|
+
OrHash =
|
1527
|
+
T.type_alias do
|
1528
|
+
T.any(
|
1529
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval,
|
1530
|
+
Orb::Internal::AnyHash
|
1531
|
+
)
|
1532
|
+
end
|
1533
|
+
|
1241
1534
|
# The price ids that this maximum interval applies to.
|
1242
1535
|
sig { returns(T::Array[String]) }
|
1243
1536
|
attr_accessor :applies_to_price_ids
|
@@ -1266,8 +1559,7 @@ module Orb
|
|
1266
1559
|
end_date: T.nilable(Time),
|
1267
1560
|
maximum_amount: String,
|
1268
1561
|
start_date: Time
|
1269
|
-
)
|
1270
|
-
.returns(T.attached_class)
|
1562
|
+
).returns(T.attached_class)
|
1271
1563
|
end
|
1272
1564
|
def self.new(
|
1273
1565
|
# The price ids that this maximum interval applies to.
|
@@ -1281,23 +1573,33 @@ module Orb
|
|
1281
1573
|
maximum_amount:,
|
1282
1574
|
# The start date of the maximum interval.
|
1283
1575
|
start_date:
|
1284
|
-
)
|
1576
|
+
)
|
1577
|
+
end
|
1578
|
+
|
1285
1579
|
sig do
|
1286
|
-
override
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1580
|
+
override.returns(
|
1581
|
+
{
|
1582
|
+
applies_to_price_ids: T::Array[String],
|
1583
|
+
applies_to_price_interval_ids: T::Array[String],
|
1584
|
+
end_date: T.nilable(Time),
|
1585
|
+
maximum_amount: String,
|
1586
|
+
start_date: Time
|
1587
|
+
}
|
1588
|
+
)
|
1589
|
+
end
|
1590
|
+
def to_hash
|
1296
1591
|
end
|
1297
|
-
def to_hash; end
|
1298
1592
|
end
|
1299
1593
|
|
1300
1594
|
class MinimumInterval < Orb::Internal::Type::BaseModel
|
1595
|
+
OrHash =
|
1596
|
+
T.type_alias do
|
1597
|
+
T.any(
|
1598
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval,
|
1599
|
+
Orb::Internal::AnyHash
|
1600
|
+
)
|
1601
|
+
end
|
1602
|
+
|
1301
1603
|
# The price ids that this minimum interval applies to.
|
1302
1604
|
sig { returns(T::Array[String]) }
|
1303
1605
|
attr_accessor :applies_to_price_ids
|
@@ -1326,8 +1628,7 @@ module Orb
|
|
1326
1628
|
end_date: T.nilable(Time),
|
1327
1629
|
minimum_amount: String,
|
1328
1630
|
start_date: Time
|
1329
|
-
)
|
1330
|
-
.returns(T.attached_class)
|
1631
|
+
).returns(T.attached_class)
|
1331
1632
|
end
|
1332
1633
|
def self.new(
|
1333
1634
|
# The price ids that this minimum interval applies to.
|
@@ -1341,35 +1642,55 @@ module Orb
|
|
1341
1642
|
minimum_amount:,
|
1342
1643
|
# The start date of the minimum interval.
|
1343
1644
|
start_date:
|
1344
|
-
)
|
1645
|
+
)
|
1646
|
+
end
|
1647
|
+
|
1345
1648
|
sig do
|
1346
|
-
override
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1649
|
+
override.returns(
|
1650
|
+
{
|
1651
|
+
applies_to_price_ids: T::Array[String],
|
1652
|
+
applies_to_price_interval_ids: T::Array[String],
|
1653
|
+
end_date: T.nilable(Time),
|
1654
|
+
minimum_amount: String,
|
1655
|
+
start_date: Time
|
1656
|
+
}
|
1657
|
+
)
|
1658
|
+
end
|
1659
|
+
def to_hash
|
1356
1660
|
end
|
1357
|
-
def to_hash; end
|
1358
1661
|
end
|
1359
1662
|
|
1360
1663
|
class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
|
1664
|
+
OrHash =
|
1665
|
+
T.type_alias do
|
1666
|
+
T.any(
|
1667
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange,
|
1668
|
+
Orb::Internal::AnyHash
|
1669
|
+
)
|
1670
|
+
end
|
1671
|
+
|
1361
1672
|
sig { returns(String) }
|
1362
1673
|
attr_accessor :id
|
1363
1674
|
|
1364
1675
|
# A pending subscription change if one exists on this subscription.
|
1365
1676
|
sig { params(id: String).returns(T.attached_class) }
|
1366
|
-
def self.new(id:)
|
1677
|
+
def self.new(id:)
|
1678
|
+
end
|
1367
1679
|
|
1368
|
-
sig { override.returns({id: String}) }
|
1369
|
-
def to_hash
|
1680
|
+
sig { override.returns({ id: String }) }
|
1681
|
+
def to_hash
|
1682
|
+
end
|
1370
1683
|
end
|
1371
1684
|
|
1372
1685
|
class PriceInterval < Orb::Internal::Type::BaseModel
|
1686
|
+
OrHash =
|
1687
|
+
T.type_alias do
|
1688
|
+
T.any(
|
1689
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval,
|
1690
|
+
Orb::Internal::AnyHash
|
1691
|
+
)
|
1692
|
+
end
|
1693
|
+
|
1373
1694
|
sig { returns(String) }
|
1374
1695
|
attr_accessor :id
|
1375
1696
|
|
@@ -1403,7 +1724,9 @@ module Orb
|
|
1403
1724
|
sig do
|
1404
1725
|
returns(
|
1405
1726
|
T.nilable(
|
1406
|
-
T::Array[
|
1727
|
+
T::Array[
|
1728
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1729
|
+
]
|
1407
1730
|
)
|
1408
1731
|
)
|
1409
1732
|
end
|
@@ -1422,34 +1745,34 @@ module Orb
|
|
1422
1745
|
sig do
|
1423
1746
|
returns(
|
1424
1747
|
T.any(
|
1425
|
-
Orb::
|
1426
|
-
Orb::
|
1427
|
-
Orb::
|
1428
|
-
Orb::
|
1429
|
-
Orb::
|
1430
|
-
Orb::
|
1431
|
-
Orb::
|
1432
|
-
Orb::
|
1433
|
-
Orb::
|
1434
|
-
Orb::
|
1435
|
-
Orb::
|
1436
|
-
Orb::
|
1437
|
-
Orb::
|
1438
|
-
Orb::
|
1439
|
-
Orb::
|
1440
|
-
Orb::
|
1441
|
-
Orb::
|
1442
|
-
Orb::
|
1443
|
-
Orb::
|
1444
|
-
Orb::
|
1445
|
-
Orb::
|
1446
|
-
Orb::
|
1447
|
-
Orb::
|
1448
|
-
Orb::
|
1449
|
-
Orb::
|
1450
|
-
Orb::
|
1451
|
-
Orb::
|
1452
|
-
Orb::
|
1748
|
+
Orb::Price::Unit,
|
1749
|
+
Orb::Price::Package,
|
1750
|
+
Orb::Price::Matrix,
|
1751
|
+
Orb::Price::Tiered,
|
1752
|
+
Orb::Price::TieredBps,
|
1753
|
+
Orb::Price::Bps,
|
1754
|
+
Orb::Price::BulkBps,
|
1755
|
+
Orb::Price::Bulk,
|
1756
|
+
Orb::Price::ThresholdTotalAmount,
|
1757
|
+
Orb::Price::TieredPackage,
|
1758
|
+
Orb::Price::GroupedTiered,
|
1759
|
+
Orb::Price::TieredWithMinimum,
|
1760
|
+
Orb::Price::TieredPackageWithMinimum,
|
1761
|
+
Orb::Price::PackageWithAllocation,
|
1762
|
+
Orb::Price::UnitWithPercent,
|
1763
|
+
Orb::Price::MatrixWithAllocation,
|
1764
|
+
Orb::Price::TieredWithProration,
|
1765
|
+
Orb::Price::UnitWithProration,
|
1766
|
+
Orb::Price::GroupedAllocation,
|
1767
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1768
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1769
|
+
Orb::Price::MatrixWithDisplayName,
|
1770
|
+
Orb::Price::BulkWithProration,
|
1771
|
+
Orb::Price::GroupedTieredPackage,
|
1772
|
+
Orb::Price::MaxGroupTieredPackage,
|
1773
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1774
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1775
|
+
Orb::Price::CumulativeGroupedBulk
|
1453
1776
|
)
|
1454
1777
|
)
|
1455
1778
|
end
|
@@ -1476,49 +1799,46 @@ module Orb
|
|
1476
1799
|
current_billing_period_start_date: T.nilable(Time),
|
1477
1800
|
end_date: T.nilable(Time),
|
1478
1801
|
filter: T.nilable(String),
|
1479
|
-
fixed_fee_quantity_transitions:
|
1480
|
-
T
|
1481
|
-
T
|
1482
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
Orb::Models::Price::CumulativeGroupedBulk
|
1517
|
-
),
|
1802
|
+
fixed_fee_quantity_transitions:
|
1803
|
+
T.nilable(
|
1804
|
+
T::Array[
|
1805
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition::OrHash
|
1806
|
+
]
|
1807
|
+
),
|
1808
|
+
price:
|
1809
|
+
T.any(
|
1810
|
+
Orb::Price::Unit::OrHash,
|
1811
|
+
Orb::Price::Package::OrHash,
|
1812
|
+
Orb::Price::Matrix::OrHash,
|
1813
|
+
Orb::Price::Tiered::OrHash,
|
1814
|
+
Orb::Price::TieredBps::OrHash,
|
1815
|
+
Orb::Price::Bps::OrHash,
|
1816
|
+
Orb::Price::BulkBps::OrHash,
|
1817
|
+
Orb::Price::Bulk::OrHash,
|
1818
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
1819
|
+
Orb::Price::TieredPackage::OrHash,
|
1820
|
+
Orb::Price::GroupedTiered::OrHash,
|
1821
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
1822
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
1823
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
1824
|
+
Orb::Price::UnitWithPercent::OrHash,
|
1825
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
1826
|
+
Orb::Price::TieredWithProration::OrHash,
|
1827
|
+
Orb::Price::UnitWithProration::OrHash,
|
1828
|
+
Orb::Price::GroupedAllocation::OrHash,
|
1829
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
1830
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
1831
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
1832
|
+
Orb::Price::BulkWithProration::OrHash,
|
1833
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
1834
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
1835
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
1836
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
1837
|
+
Orb::Price::CumulativeGroupedBulk::OrHash
|
1838
|
+
),
|
1518
1839
|
start_date: Time,
|
1519
1840
|
usage_customer_ids: T.nilable(T::Array[String])
|
1520
|
-
)
|
1521
|
-
.returns(T.attached_class)
|
1841
|
+
).returns(T.attached_class)
|
1522
1842
|
end
|
1523
1843
|
def self.new(
|
1524
1844
|
id:,
|
@@ -1557,58 +1877,72 @@ module Orb
|
|
1557
1877
|
# A list of customer IDs whose usage events will be aggregated and billed under
|
1558
1878
|
# this price interval.
|
1559
1879
|
usage_customer_ids:
|
1560
|
-
)
|
1880
|
+
)
|
1881
|
+
end
|
1882
|
+
|
1561
1883
|
sig do
|
1562
|
-
override
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
T::Array[
|
1884
|
+
override.returns(
|
1885
|
+
{
|
1886
|
+
id: String,
|
1887
|
+
billing_cycle_day: Integer,
|
1888
|
+
current_billing_period_end_date: T.nilable(Time),
|
1889
|
+
current_billing_period_start_date: T.nilable(Time),
|
1890
|
+
end_date: T.nilable(Time),
|
1891
|
+
filter: T.nilable(String),
|
1892
|
+
fixed_fee_quantity_transitions:
|
1893
|
+
T.nilable(
|
1894
|
+
T::Array[
|
1895
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1896
|
+
]
|
1573
1897
|
),
|
1574
|
-
|
1575
|
-
|
1576
|
-
Orb::
|
1577
|
-
Orb::
|
1578
|
-
Orb::
|
1579
|
-
Orb::
|
1580
|
-
Orb::
|
1581
|
-
Orb::
|
1582
|
-
Orb::
|
1583
|
-
Orb::
|
1584
|
-
Orb::
|
1585
|
-
Orb::
|
1586
|
-
Orb::
|
1587
|
-
Orb::
|
1588
|
-
Orb::
|
1589
|
-
Orb::
|
1590
|
-
Orb::
|
1591
|
-
Orb::
|
1592
|
-
Orb::
|
1593
|
-
Orb::
|
1594
|
-
Orb::
|
1595
|
-
Orb::
|
1596
|
-
Orb::
|
1597
|
-
Orb::
|
1598
|
-
Orb::
|
1599
|
-
Orb::
|
1600
|
-
Orb::
|
1601
|
-
Orb::
|
1602
|
-
Orb::
|
1898
|
+
price:
|
1899
|
+
T.any(
|
1900
|
+
Orb::Price::Unit,
|
1901
|
+
Orb::Price::Package,
|
1902
|
+
Orb::Price::Matrix,
|
1903
|
+
Orb::Price::Tiered,
|
1904
|
+
Orb::Price::TieredBps,
|
1905
|
+
Orb::Price::Bps,
|
1906
|
+
Orb::Price::BulkBps,
|
1907
|
+
Orb::Price::Bulk,
|
1908
|
+
Orb::Price::ThresholdTotalAmount,
|
1909
|
+
Orb::Price::TieredPackage,
|
1910
|
+
Orb::Price::GroupedTiered,
|
1911
|
+
Orb::Price::TieredWithMinimum,
|
1912
|
+
Orb::Price::TieredPackageWithMinimum,
|
1913
|
+
Orb::Price::PackageWithAllocation,
|
1914
|
+
Orb::Price::UnitWithPercent,
|
1915
|
+
Orb::Price::MatrixWithAllocation,
|
1916
|
+
Orb::Price::TieredWithProration,
|
1917
|
+
Orb::Price::UnitWithProration,
|
1918
|
+
Orb::Price::GroupedAllocation,
|
1919
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1920
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1921
|
+
Orb::Price::MatrixWithDisplayName,
|
1922
|
+
Orb::Price::BulkWithProration,
|
1923
|
+
Orb::Price::GroupedTieredPackage,
|
1924
|
+
Orb::Price::MaxGroupTieredPackage,
|
1925
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1926
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1927
|
+
Orb::Price::CumulativeGroupedBulk
|
1603
1928
|
),
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1929
|
+
start_date: Time,
|
1930
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
1931
|
+
}
|
1932
|
+
)
|
1933
|
+
end
|
1934
|
+
def to_hash
|
1608
1935
|
end
|
1609
|
-
def to_hash; end
|
1610
1936
|
|
1611
1937
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
1938
|
+
OrHash =
|
1939
|
+
T.type_alias do
|
1940
|
+
T.any(
|
1941
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition,
|
1942
|
+
Orb::Internal::AnyHash
|
1943
|
+
)
|
1944
|
+
end
|
1945
|
+
|
1612
1946
|
sig { returns(Time) }
|
1613
1947
|
attr_accessor :effective_date
|
1614
1948
|
|
@@ -1619,16 +1953,34 @@ module Orb
|
|
1619
1953
|
attr_accessor :quantity
|
1620
1954
|
|
1621
1955
|
sig do
|
1622
|
-
params(
|
1956
|
+
params(
|
1957
|
+
effective_date: Time,
|
1958
|
+
price_id: String,
|
1959
|
+
quantity: Integer
|
1960
|
+
).returns(T.attached_class)
|
1961
|
+
end
|
1962
|
+
def self.new(effective_date:, price_id:, quantity:)
|
1623
1963
|
end
|
1624
|
-
def self.new(effective_date:, price_id:, quantity:); end
|
1625
1964
|
|
1626
|
-
sig
|
1627
|
-
|
1965
|
+
sig do
|
1966
|
+
override.returns(
|
1967
|
+
{ effective_date: Time, price_id: String, quantity: Integer }
|
1968
|
+
)
|
1969
|
+
end
|
1970
|
+
def to_hash
|
1971
|
+
end
|
1628
1972
|
end
|
1629
1973
|
end
|
1630
1974
|
|
1631
1975
|
class RedeemedCoupon < Orb::Internal::Type::BaseModel
|
1976
|
+
OrHash =
|
1977
|
+
T.type_alias do
|
1978
|
+
T.any(
|
1979
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon,
|
1980
|
+
Orb::Internal::AnyHash
|
1981
|
+
)
|
1982
|
+
end
|
1983
|
+
|
1632
1984
|
sig { returns(String) }
|
1633
1985
|
attr_accessor :coupon_id
|
1634
1986
|
|
@@ -1639,59 +1991,107 @@ module Orb
|
|
1639
1991
|
attr_accessor :start_date
|
1640
1992
|
|
1641
1993
|
sig do
|
1642
|
-
params(
|
1994
|
+
params(
|
1995
|
+
coupon_id: String,
|
1996
|
+
end_date: T.nilable(Time),
|
1997
|
+
start_date: Time
|
1998
|
+
).returns(T.attached_class)
|
1999
|
+
end
|
2000
|
+
def self.new(coupon_id:, end_date:, start_date:)
|
1643
2001
|
end
|
1644
|
-
def self.new(coupon_id:, end_date:, start_date:); end
|
1645
2002
|
|
1646
|
-
sig
|
1647
|
-
|
2003
|
+
sig do
|
2004
|
+
override.returns(
|
2005
|
+
{ coupon_id: String, end_date: T.nilable(Time), start_date: Time }
|
2006
|
+
)
|
2007
|
+
end
|
2008
|
+
def to_hash
|
2009
|
+
end
|
1648
2010
|
end
|
1649
2011
|
|
1650
2012
|
module Status
|
1651
2013
|
extend Orb::Internal::Type::Enum
|
1652
2014
|
|
1653
2015
|
TaggedSymbol =
|
1654
|
-
T.type_alias
|
2016
|
+
T.type_alias do
|
2017
|
+
T.all(
|
2018
|
+
Symbol,
|
2019
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status
|
2020
|
+
)
|
2021
|
+
end
|
1655
2022
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1656
2023
|
|
1657
|
-
ACTIVE =
|
1658
|
-
|
2024
|
+
ACTIVE =
|
2025
|
+
T.let(
|
2026
|
+
:active,
|
2027
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
|
2028
|
+
)
|
2029
|
+
ENDED =
|
2030
|
+
T.let(
|
2031
|
+
:ended,
|
2032
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
|
2033
|
+
)
|
1659
2034
|
UPCOMING =
|
1660
|
-
T.let(
|
2035
|
+
T.let(
|
2036
|
+
:upcoming,
|
2037
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
|
2038
|
+
)
|
1661
2039
|
|
1662
2040
|
sig do
|
1663
|
-
override
|
1664
|
-
|
2041
|
+
override.returns(
|
2042
|
+
T::Array[
|
2043
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
|
2044
|
+
]
|
2045
|
+
)
|
2046
|
+
end
|
2047
|
+
def self.values
|
1665
2048
|
end
|
1666
|
-
def self.values; end
|
1667
2049
|
end
|
1668
2050
|
|
1669
2051
|
class TrialInfo < Orb::Internal::Type::BaseModel
|
2052
|
+
OrHash =
|
2053
|
+
T.type_alias do
|
2054
|
+
T.any(
|
2055
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo,
|
2056
|
+
Orb::Internal::AnyHash
|
2057
|
+
)
|
2058
|
+
end
|
2059
|
+
|
1670
2060
|
sig { returns(T.nilable(Time)) }
|
1671
2061
|
attr_accessor :end_date
|
1672
2062
|
|
1673
2063
|
sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
|
1674
|
-
def self.new(end_date:)
|
2064
|
+
def self.new(end_date:)
|
2065
|
+
end
|
1675
2066
|
|
1676
|
-
sig { override.returns({end_date: T.nilable(Time)}) }
|
1677
|
-
def to_hash
|
2067
|
+
sig { override.returns({ end_date: T.nilable(Time) }) }
|
2068
|
+
def to_hash
|
2069
|
+
end
|
1678
2070
|
end
|
1679
2071
|
|
1680
2072
|
class ChangedResources < Orb::Internal::Type::BaseModel
|
2073
|
+
OrHash =
|
2074
|
+
T.type_alias do
|
2075
|
+
T.any(
|
2076
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources,
|
2077
|
+
Orb::Internal::AnyHash
|
2078
|
+
)
|
2079
|
+
end
|
2080
|
+
|
1681
2081
|
# The credit notes that were created as part of this operation.
|
1682
|
-
sig { returns(T::Array[Orb::
|
2082
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1683
2083
|
attr_accessor :created_credit_notes
|
1684
2084
|
|
1685
2085
|
# The invoices that were created as part of this operation.
|
1686
|
-
sig { returns(T::Array[Orb::
|
2086
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1687
2087
|
attr_accessor :created_invoices
|
1688
2088
|
|
1689
2089
|
# The credit notes that were voided as part of this operation.
|
1690
|
-
sig { returns(T::Array[Orb::
|
2090
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1691
2091
|
attr_accessor :voided_credit_notes
|
1692
2092
|
|
1693
2093
|
# The invoices that were voided as part of this operation.
|
1694
|
-
sig { returns(T::Array[Orb::
|
2094
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1695
2095
|
attr_accessor :voided_invoices
|
1696
2096
|
|
1697
2097
|
# The resources that were changed as part of this operation. Only present when
|
@@ -1699,12 +2099,11 @@ module Orb
|
|
1699
2099
|
# `include_changed_resources` parameter was passed in the request.
|
1700
2100
|
sig do
|
1701
2101
|
params(
|
1702
|
-
created_credit_notes: T::Array[
|
1703
|
-
created_invoices: T::Array[
|
1704
|
-
voided_credit_notes: T::Array[
|
1705
|
-
voided_invoices: T::Array[
|
1706
|
-
)
|
1707
|
-
.returns(T.attached_class)
|
2102
|
+
created_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
2103
|
+
created_invoices: T::Array[Orb::Invoice::OrHash],
|
2104
|
+
voided_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
2105
|
+
voided_invoices: T::Array[Orb::Invoice::OrHash]
|
2106
|
+
).returns(T.attached_class)
|
1708
2107
|
end
|
1709
2108
|
def self.new(
|
1710
2109
|
# The credit notes that were created as part of this operation.
|
@@ -1715,19 +2114,21 @@ module Orb
|
|
1715
2114
|
voided_credit_notes:,
|
1716
2115
|
# The invoices that were voided as part of this operation.
|
1717
2116
|
voided_invoices:
|
1718
|
-
)
|
2117
|
+
)
|
2118
|
+
end
|
2119
|
+
|
1719
2120
|
sig do
|
1720
|
-
override
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
2121
|
+
override.returns(
|
2122
|
+
{
|
2123
|
+
created_credit_notes: T::Array[Orb::CreditNote],
|
2124
|
+
created_invoices: T::Array[Orb::Invoice],
|
2125
|
+
voided_credit_notes: T::Array[Orb::CreditNote],
|
2126
|
+
voided_invoices: T::Array[Orb::Invoice]
|
2127
|
+
}
|
2128
|
+
)
|
2129
|
+
end
|
2130
|
+
def to_hash
|
1729
2131
|
end
|
1730
|
-
def to_hash; end
|
1731
2132
|
end
|
1732
2133
|
end
|
1733
2134
|
end
|