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 SubscriptionChangeCancelResponse < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
Orb::Models::SubscriptionChangeCancelResponse,
|
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::SubscriptionChangeCancelResponse::Status::TaggedSymbol
|
24
|
+
)
|
25
|
+
end
|
14
26
|
attr_accessor :status
|
15
27
|
|
16
|
-
sig
|
28
|
+
sig do
|
29
|
+
returns(
|
30
|
+
T.nilable(Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Status::OrSymbol,
|
63
|
+
subscription:
|
64
|
+
T.nilable(
|
65
|
+
Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Status::TaggedSymbol,
|
91
|
+
subscription:
|
92
|
+
T.nilable(
|
93
|
+
Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Status::TaggedSymbol
|
116
|
+
)
|
117
|
+
APPLIED =
|
118
|
+
T.let(
|
119
|
+
:applied,
|
120
|
+
Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol
|
121
|
+
)
|
122
|
+
CANCELLED =
|
123
|
+
T.let(
|
124
|
+
:cancelled,
|
125
|
+
Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol
|
126
|
+
)
|
85
127
|
|
86
|
-
sig
|
87
|
-
|
128
|
+
sig do
|
129
|
+
override.returns(
|
130
|
+
T::Array[
|
131
|
+
Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration
|
117
|
-
|
118
|
-
)
|
119
|
-
)
|
120
|
-
.void
|
182
|
+
billing_cycle_anchor_configuration:
|
183
|
+
Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange
|
230
|
-
Orb::Internal::AnyHash
|
315
|
+
pending_subscription_change:
|
316
|
+
T.nilable(
|
317
|
+
Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol
|
369
|
+
)
|
370
|
+
end
|
270
371
|
attr_accessor :status
|
271
372
|
|
272
|
-
sig
|
373
|
+
sig do
|
374
|
+
returns(
|
375
|
+
Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Subscription::ChangedResources
|
294
|
-
Orb::Internal::AnyHash
|
402
|
+
changed_resources:
|
403
|
+
T.nilable(
|
404
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources::OrHash
|
295
405
|
)
|
296
|
-
|
297
|
-
)
|
298
|
-
.void
|
406
|
+
).void
|
299
407
|
end
|
300
408
|
attr_writer :changed_resources
|
301
409
|
|
@@ -303,75 +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::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval
|
309
|
-
|
310
|
-
)
|
311
|
-
],
|
414
|
+
adjustment_intervals:
|
415
|
+
T::Array[
|
416
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::OrHash
|
417
|
+
],
|
312
418
|
auto_collection: T.nilable(T::Boolean),
|
313
|
-
billing_cycle_anchor_configuration:
|
314
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration,
|
315
|
-
Orb::Internal::AnyHash
|
316
|
-
),
|
419
|
+
billing_cycle_anchor_configuration:
|
420
|
+
Orb::Models::SubscriptionChangeCancelResponse::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::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount::OrHash,
|
431
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage::OrHash,
|
432
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage::OrHash
|
433
|
+
)
|
434
|
+
],
|
331
435
|
end_date: T.nilable(Time),
|
332
|
-
fixed_fee_quantity_schedule:
|
333
|
-
T
|
334
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule
|
335
|
-
|
336
|
-
)
|
337
|
-
],
|
436
|
+
fixed_fee_quantity_schedule:
|
437
|
+
T::Array[
|
438
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule::OrHash
|
439
|
+
],
|
338
440
|
invoicing_threshold: T.nilable(String),
|
339
|
-
maximum_intervals:
|
340
|
-
T
|
341
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval
|
342
|
-
|
343
|
-
)
|
344
|
-
],
|
441
|
+
maximum_intervals:
|
442
|
+
T::Array[
|
443
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval::OrHash
|
444
|
+
],
|
345
445
|
metadata: T::Hash[Symbol, String],
|
346
|
-
minimum_intervals:
|
347
|
-
T
|
348
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval
|
349
|
-
|
350
|
-
)
|
351
|
-
],
|
446
|
+
minimum_intervals:
|
447
|
+
T::Array[
|
448
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval::OrHash
|
449
|
+
],
|
352
450
|
net_terms: Integer,
|
353
|
-
pending_subscription_change:
|
354
|
-
T.
|
355
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
451
|
+
pending_subscription_change:
|
452
|
+
T.nilable(
|
453
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange::OrHash
|
454
|
+
),
|
455
|
+
plan: Orb::Plan::OrHash,
|
456
|
+
price_intervals:
|
457
|
+
T::Array[
|
458
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::OrHash
|
459
|
+
],
|
460
|
+
redeemed_coupon:
|
461
|
+
T.nilable(
|
462
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon::OrHash
|
463
|
+
),
|
364
464
|
start_date: Time,
|
365
|
-
status:
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
465
|
+
status:
|
466
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::OrSymbol,
|
467
|
+
trial_info:
|
468
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo::OrHash,
|
469
|
+
changed_resources:
|
470
|
+
T.nilable(
|
471
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources::OrHash
|
371
472
|
)
|
372
|
-
|
373
|
-
)
|
374
|
-
.returns(T.attached_class)
|
473
|
+
).returns(T.attached_class)
|
375
474
|
end
|
376
475
|
def self.new(
|
377
476
|
id:,
|
@@ -460,50 +559,88 @@ module Orb
|
|
460
559
|
# fetched through the subscription changes API or if the
|
461
560
|
# `include_changed_resources` parameter was passed in the request.
|
462
561
|
changed_resources: nil
|
463
|
-
)
|
562
|
+
)
|
563
|
+
end
|
564
|
+
|
464
565
|
sig do
|
465
|
-
override
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
566
|
+
override.returns(
|
567
|
+
{
|
568
|
+
id: String,
|
569
|
+
active_plan_phase_order: T.nilable(Integer),
|
570
|
+
adjustment_intervals:
|
571
|
+
T::Array[
|
572
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval
|
573
|
+
],
|
574
|
+
auto_collection: T.nilable(T::Boolean),
|
575
|
+
billing_cycle_anchor_configuration:
|
576
|
+
Orb::Models::SubscriptionChangeCancelResponse::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[
|
480
585
|
T.any(
|
481
586
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount,
|
482
587
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage,
|
483
588
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage
|
484
589
|
)
|
485
590
|
],
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
591
|
+
end_date: T.nilable(Time),
|
592
|
+
fixed_fee_quantity_schedule:
|
593
|
+
T::Array[
|
594
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule
|
595
|
+
],
|
596
|
+
invoicing_threshold: T.nilable(String),
|
597
|
+
maximum_intervals:
|
598
|
+
T::Array[
|
599
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval
|
600
|
+
],
|
601
|
+
metadata: T::Hash[Symbol, String],
|
602
|
+
minimum_intervals:
|
603
|
+
T::Array[
|
604
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval
|
605
|
+
],
|
606
|
+
net_terms: Integer,
|
607
|
+
pending_subscription_change:
|
608
|
+
T.nilable(
|
609
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange
|
610
|
+
),
|
611
|
+
plan: Orb::Plan,
|
612
|
+
price_intervals:
|
613
|
+
T::Array[
|
614
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval
|
615
|
+
],
|
616
|
+
redeemed_coupon:
|
617
|
+
T.nilable(
|
618
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon
|
619
|
+
),
|
620
|
+
start_date: Time,
|
621
|
+
status:
|
622
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol,
|
623
|
+
trial_info:
|
624
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo,
|
625
|
+
changed_resources:
|
626
|
+
T.nilable(
|
627
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources
|
628
|
+
)
|
629
|
+
}
|
630
|
+
)
|
631
|
+
end
|
632
|
+
def to_hash
|
503
633
|
end
|
504
|
-
def to_hash; end
|
505
634
|
|
506
635
|
class AdjustmentInterval < Orb::Internal::Type::BaseModel
|
636
|
+
OrHash =
|
637
|
+
T.type_alias do
|
638
|
+
T.any(
|
639
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval,
|
640
|
+
Orb::Internal::AnyHash
|
641
|
+
)
|
642
|
+
end
|
643
|
+
|
507
644
|
sig { returns(String) }
|
508
645
|
attr_accessor :id
|
509
646
|
|
@@ -535,19 +672,18 @@ module Orb
|
|
535
672
|
sig do
|
536
673
|
params(
|
537
674
|
id: String,
|
538
|
-
adjustment:
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
675
|
+
adjustment:
|
676
|
+
T.any(
|
677
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
|
678
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
|
679
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
|
680
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash,
|
681
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash
|
682
|
+
),
|
546
683
|
applies_to_price_interval_ids: T::Array[String],
|
547
684
|
end_date: T.nilable(Time),
|
548
685
|
start_date: Time
|
549
|
-
)
|
550
|
-
.returns(T.attached_class)
|
686
|
+
).returns(T.attached_class)
|
551
687
|
end
|
552
688
|
def self.new(
|
553
689
|
id:,
|
@@ -558,31 +694,53 @@ module Orb
|
|
558
694
|
end_date:,
|
559
695
|
# The start date of the adjustment interval.
|
560
696
|
start_date:
|
561
|
-
)
|
697
|
+
)
|
698
|
+
end
|
699
|
+
|
562
700
|
sig do
|
563
|
-
override
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
701
|
+
override.returns(
|
702
|
+
{
|
703
|
+
id: String,
|
704
|
+
adjustment:
|
705
|
+
T.any(
|
568
706
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
569
707
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
570
708
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
571
709
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
572
710
|
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
573
711
|
),
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
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
|
579
719
|
end
|
580
|
-
def to_hash; end
|
581
720
|
|
582
721
|
module Adjustment
|
583
722
|
extend Orb::Internal::Type::Union
|
584
723
|
|
724
|
+
Variants =
|
725
|
+
T.type_alias do
|
726
|
+
T.any(
|
727
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
728
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
729
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
730
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
731
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
732
|
+
)
|
733
|
+
end
|
734
|
+
|
585
735
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
736
|
+
OrHash =
|
737
|
+
T.type_alias do
|
738
|
+
T.any(
|
739
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
|
740
|
+
Orb::Internal::AnyHash
|
741
|
+
)
|
742
|
+
end
|
743
|
+
|
586
744
|
sig { returns(String) }
|
587
745
|
attr_accessor :id
|
588
746
|
|
@@ -620,8 +778,7 @@ module Orb
|
|
620
778
|
reason: T.nilable(String),
|
621
779
|
usage_discount: Float,
|
622
780
|
adjustment_type: Symbol
|
623
|
-
)
|
624
|
-
.returns(T.attached_class)
|
781
|
+
).returns(T.attached_class)
|
625
782
|
end
|
626
783
|
def self.new(
|
627
784
|
id:,
|
@@ -638,25 +795,35 @@ module Orb
|
|
638
795
|
# to in a given billing period.
|
639
796
|
usage_discount:,
|
640
797
|
adjustment_type: :usage_discount
|
641
|
-
)
|
798
|
+
)
|
799
|
+
end
|
800
|
+
|
642
801
|
sig do
|
643
|
-
override
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
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
|
655
815
|
end
|
656
|
-
def to_hash; end
|
657
816
|
end
|
658
817
|
|
659
818
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
819
|
+
OrHash =
|
820
|
+
T.type_alias do
|
821
|
+
T.any(
|
822
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
|
823
|
+
Orb::Internal::AnyHash
|
824
|
+
)
|
825
|
+
end
|
826
|
+
|
660
827
|
sig { returns(String) }
|
661
828
|
attr_accessor :id
|
662
829
|
|
@@ -694,8 +861,7 @@ module Orb
|
|
694
861
|
plan_phase_order: T.nilable(Integer),
|
695
862
|
reason: T.nilable(String),
|
696
863
|
adjustment_type: Symbol
|
697
|
-
)
|
698
|
-
.returns(T.attached_class)
|
864
|
+
).returns(T.attached_class)
|
699
865
|
end
|
700
866
|
def self.new(
|
701
867
|
id:,
|
@@ -712,25 +878,35 @@ module Orb
|
|
712
878
|
# The reason for the adjustment.
|
713
879
|
reason:,
|
714
880
|
adjustment_type: :amount_discount
|
715
|
-
)
|
881
|
+
)
|
882
|
+
end
|
883
|
+
|
716
884
|
sig do
|
717
|
-
override
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
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
|
729
898
|
end
|
730
|
-
def to_hash; end
|
731
899
|
end
|
732
900
|
|
733
901
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
902
|
+
OrHash =
|
903
|
+
T.type_alias do
|
904
|
+
T.any(
|
905
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
|
906
|
+
Orb::Internal::AnyHash
|
907
|
+
)
|
908
|
+
end
|
909
|
+
|
734
910
|
sig { returns(String) }
|
735
911
|
attr_accessor :id
|
736
912
|
|
@@ -768,8 +944,7 @@ module Orb
|
|
768
944
|
plan_phase_order: T.nilable(Integer),
|
769
945
|
reason: T.nilable(String),
|
770
946
|
adjustment_type: Symbol
|
771
|
-
)
|
772
|
-
.returns(T.attached_class)
|
947
|
+
).returns(T.attached_class)
|
773
948
|
end
|
774
949
|
def self.new(
|
775
950
|
id:,
|
@@ -786,25 +961,35 @@ module Orb
|
|
786
961
|
# The reason for the adjustment.
|
787
962
|
reason:,
|
788
963
|
adjustment_type: :percentage_discount
|
789
|
-
)
|
964
|
+
)
|
965
|
+
end
|
966
|
+
|
790
967
|
sig do
|
791
|
-
override
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
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
|
803
981
|
end
|
804
|
-
def to_hash; end
|
805
982
|
end
|
806
983
|
|
807
984
|
class Minimum < Orb::Internal::Type::BaseModel
|
985
|
+
OrHash =
|
986
|
+
T.type_alias do
|
987
|
+
T.any(
|
988
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
|
989
|
+
Orb::Internal::AnyHash
|
990
|
+
)
|
991
|
+
end
|
992
|
+
|
808
993
|
sig { returns(String) }
|
809
994
|
attr_accessor :id
|
810
995
|
|
@@ -847,8 +1032,7 @@ module Orb
|
|
847
1032
|
plan_phase_order: T.nilable(Integer),
|
848
1033
|
reason: T.nilable(String),
|
849
1034
|
adjustment_type: Symbol
|
850
|
-
)
|
851
|
-
.returns(T.attached_class)
|
1035
|
+
).returns(T.attached_class)
|
852
1036
|
end
|
853
1037
|
def self.new(
|
854
1038
|
id:,
|
@@ -867,26 +1051,36 @@ module Orb
|
|
867
1051
|
# The reason for the adjustment.
|
868
1052
|
reason:,
|
869
1053
|
adjustment_type: :minimum
|
870
|
-
)
|
1054
|
+
)
|
1055
|
+
end
|
1056
|
+
|
871
1057
|
sig do
|
872
|
-
override
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
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
|
885
1072
|
end
|
886
|
-
def to_hash; end
|
887
1073
|
end
|
888
1074
|
|
889
1075
|
class Maximum < Orb::Internal::Type::BaseModel
|
1076
|
+
OrHash =
|
1077
|
+
T.type_alias do
|
1078
|
+
T.any(
|
1079
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum,
|
1080
|
+
Orb::Internal::AnyHash
|
1081
|
+
)
|
1082
|
+
end
|
1083
|
+
|
890
1084
|
sig { returns(String) }
|
891
1085
|
attr_accessor :id
|
892
1086
|
|
@@ -924,8 +1118,7 @@ module Orb
|
|
924
1118
|
plan_phase_order: T.nilable(Integer),
|
925
1119
|
reason: T.nilable(String),
|
926
1120
|
adjustment_type: Symbol
|
927
|
-
)
|
928
|
-
.returns(T.attached_class)
|
1121
|
+
).returns(T.attached_class)
|
929
1122
|
end
|
930
1123
|
def self.new(
|
931
1124
|
id:,
|
@@ -942,35 +1135,47 @@ module Orb
|
|
942
1135
|
# The reason for the adjustment.
|
943
1136
|
reason:,
|
944
1137
|
adjustment_type: :maximum
|
945
|
-
)
|
1138
|
+
)
|
1139
|
+
end
|
1140
|
+
|
946
1141
|
sig do
|
947
|
-
override
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
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
|
959
1155
|
end
|
960
|
-
def to_hash; end
|
961
1156
|
end
|
962
|
-
|
963
|
-
sig do
|
964
|
-
override
|
965
|
-
|
966
|
-
|
967
|
-
|
1157
|
+
|
1158
|
+
sig do
|
1159
|
+
override.returns(
|
1160
|
+
T::Array[
|
1161
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Variants
|
1162
|
+
]
|
1163
|
+
)
|
1164
|
+
end
|
1165
|
+
def self.variants
|
968
1166
|
end
|
969
|
-
def self.variants; end
|
970
1167
|
end
|
971
1168
|
end
|
972
1169
|
|
973
1170
|
class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
|
1171
|
+
OrHash =
|
1172
|
+
T.type_alias do
|
1173
|
+
T.any(
|
1174
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration,
|
1175
|
+
Orb::Internal::AnyHash
|
1176
|
+
)
|
1177
|
+
end
|
1178
|
+
|
974
1179
|
# The day of the month on which the billing cycle is anchored. If the maximum
|
975
1180
|
# number of days in a month is greater than this value, the last day of the month
|
976
1181
|
# is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
@@ -1009,15 +1214,43 @@ module Orb
|
|
1009
1214
|
# The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
1010
1215
|
# anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
1011
1216
|
year: nil
|
1012
|
-
)
|
1013
|
-
|
1014
|
-
|
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
|
1015
1231
|
end
|
1016
1232
|
|
1017
1233
|
module DiscountInterval
|
1018
1234
|
extend Orb::Internal::Type::Union
|
1019
1235
|
|
1236
|
+
Variants =
|
1237
|
+
T.type_alias do
|
1238
|
+
T.any(
|
1239
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount,
|
1240
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage,
|
1241
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage
|
1242
|
+
)
|
1243
|
+
end
|
1244
|
+
|
1020
1245
|
class Amount < Orb::Internal::Type::BaseModel
|
1246
|
+
OrHash =
|
1247
|
+
T.type_alias do
|
1248
|
+
T.any(
|
1249
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount,
|
1250
|
+
Orb::Internal::AnyHash
|
1251
|
+
)
|
1252
|
+
end
|
1253
|
+
|
1021
1254
|
# Only available if discount_type is `amount`.
|
1022
1255
|
sig { returns(String) }
|
1023
1256
|
attr_accessor :amount_discount
|
@@ -1049,8 +1282,7 @@ module Orb
|
|
1049
1282
|
end_date: T.nilable(Time),
|
1050
1283
|
start_date: Time,
|
1051
1284
|
discount_type: Symbol
|
1052
|
-
)
|
1053
|
-
.returns(T.attached_class)
|
1285
|
+
).returns(T.attached_class)
|
1054
1286
|
end
|
1055
1287
|
def self.new(
|
1056
1288
|
# Only available if discount_type is `amount`.
|
@@ -1064,24 +1296,34 @@ module Orb
|
|
1064
1296
|
# The start date of the discount interval.
|
1065
1297
|
start_date:,
|
1066
1298
|
discount_type: :amount
|
1067
|
-
)
|
1299
|
+
)
|
1300
|
+
end
|
1301
|
+
|
1068
1302
|
sig do
|
1069
|
-
override
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
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
|
1080
1315
|
end
|
1081
|
-
def to_hash; end
|
1082
1316
|
end
|
1083
1317
|
|
1084
1318
|
class Percentage < Orb::Internal::Type::BaseModel
|
1319
|
+
OrHash =
|
1320
|
+
T.type_alias do
|
1321
|
+
T.any(
|
1322
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage,
|
1323
|
+
Orb::Internal::AnyHash
|
1324
|
+
)
|
1325
|
+
end
|
1326
|
+
|
1085
1327
|
# The price ids that this discount interval applies to.
|
1086
1328
|
sig { returns(T::Array[String]) }
|
1087
1329
|
attr_accessor :applies_to_price_ids
|
@@ -1114,8 +1356,7 @@ module Orb
|
|
1114
1356
|
percentage_discount: Float,
|
1115
1357
|
start_date: Time,
|
1116
1358
|
discount_type: Symbol
|
1117
|
-
)
|
1118
|
-
.returns(T.attached_class)
|
1359
|
+
).returns(T.attached_class)
|
1119
1360
|
end
|
1120
1361
|
def self.new(
|
1121
1362
|
# The price ids that this discount interval applies to.
|
@@ -1130,24 +1371,34 @@ module Orb
|
|
1130
1371
|
# The start date of the discount interval.
|
1131
1372
|
start_date:,
|
1132
1373
|
discount_type: :percentage
|
1133
|
-
)
|
1374
|
+
)
|
1375
|
+
end
|
1376
|
+
|
1134
1377
|
sig do
|
1135
|
-
override
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
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
|
1146
1390
|
end
|
1147
|
-
def to_hash; end
|
1148
1391
|
end
|
1149
1392
|
|
1150
1393
|
class Usage < Orb::Internal::Type::BaseModel
|
1394
|
+
OrHash =
|
1395
|
+
T.type_alias do
|
1396
|
+
T.any(
|
1397
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage,
|
1398
|
+
Orb::Internal::AnyHash
|
1399
|
+
)
|
1400
|
+
end
|
1401
|
+
|
1151
1402
|
# The price ids that this discount interval applies to.
|
1152
1403
|
sig { returns(T::Array[String]) }
|
1153
1404
|
attr_accessor :applies_to_price_ids
|
@@ -1180,8 +1431,7 @@ module Orb
|
|
1180
1431
|
start_date: Time,
|
1181
1432
|
usage_discount: Float,
|
1182
1433
|
discount_type: Symbol
|
1183
|
-
)
|
1184
|
-
.returns(T.attached_class)
|
1434
|
+
).returns(T.attached_class)
|
1185
1435
|
end
|
1186
1436
|
def self.new(
|
1187
1437
|
# The price ids that this discount interval applies to.
|
@@ -1196,33 +1446,45 @@ module Orb
|
|
1196
1446
|
# discount is for
|
1197
1447
|
usage_discount:,
|
1198
1448
|
discount_type: :usage
|
1199
|
-
)
|
1449
|
+
)
|
1450
|
+
end
|
1451
|
+
|
1200
1452
|
sig do
|
1201
|
-
override
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
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
|
1212
1465
|
end
|
1213
|
-
def to_hash; end
|
1214
1466
|
end
|
1215
1467
|
|
1216
1468
|
sig do
|
1217
|
-
override
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1469
|
+
override.returns(
|
1470
|
+
T::Array[
|
1471
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Variants
|
1472
|
+
]
|
1473
|
+
)
|
1474
|
+
end
|
1475
|
+
def self.variants
|
1221
1476
|
end
|
1222
|
-
def self.variants; end
|
1223
1477
|
end
|
1224
1478
|
|
1225
1479
|
class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
|
1480
|
+
OrHash =
|
1481
|
+
T.type_alias do
|
1482
|
+
T.any(
|
1483
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule,
|
1484
|
+
Orb::Internal::AnyHash
|
1485
|
+
)
|
1486
|
+
end
|
1487
|
+
|
1226
1488
|
sig { returns(T.nilable(Time)) }
|
1227
1489
|
attr_accessor :end_date
|
1228
1490
|
|
@@ -1236,18 +1498,39 @@ module Orb
|
|
1236
1498
|
attr_accessor :start_date
|
1237
1499
|
|
1238
1500
|
sig do
|
1239
|
-
params(
|
1240
|
-
.
|
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:)
|
1241
1509
|
end
|
1242
|
-
def self.new(end_date:, price_id:, quantity:, start_date:); end
|
1243
1510
|
|
1244
1511
|
sig do
|
1245
|
-
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
|
1246
1522
|
end
|
1247
|
-
def to_hash; end
|
1248
1523
|
end
|
1249
1524
|
|
1250
1525
|
class MaximumInterval < Orb::Internal::Type::BaseModel
|
1526
|
+
OrHash =
|
1527
|
+
T.type_alias do
|
1528
|
+
T.any(
|
1529
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval,
|
1530
|
+
Orb::Internal::AnyHash
|
1531
|
+
)
|
1532
|
+
end
|
1533
|
+
|
1251
1534
|
# The price ids that this maximum interval applies to.
|
1252
1535
|
sig { returns(T::Array[String]) }
|
1253
1536
|
attr_accessor :applies_to_price_ids
|
@@ -1276,8 +1559,7 @@ module Orb
|
|
1276
1559
|
end_date: T.nilable(Time),
|
1277
1560
|
maximum_amount: String,
|
1278
1561
|
start_date: Time
|
1279
|
-
)
|
1280
|
-
.returns(T.attached_class)
|
1562
|
+
).returns(T.attached_class)
|
1281
1563
|
end
|
1282
1564
|
def self.new(
|
1283
1565
|
# The price ids that this maximum interval applies to.
|
@@ -1291,23 +1573,33 @@ module Orb
|
|
1291
1573
|
maximum_amount:,
|
1292
1574
|
# The start date of the maximum interval.
|
1293
1575
|
start_date:
|
1294
|
-
)
|
1576
|
+
)
|
1577
|
+
end
|
1578
|
+
|
1295
1579
|
sig do
|
1296
|
-
override
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
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
|
1306
1591
|
end
|
1307
|
-
def to_hash; end
|
1308
1592
|
end
|
1309
1593
|
|
1310
1594
|
class MinimumInterval < Orb::Internal::Type::BaseModel
|
1595
|
+
OrHash =
|
1596
|
+
T.type_alias do
|
1597
|
+
T.any(
|
1598
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval,
|
1599
|
+
Orb::Internal::AnyHash
|
1600
|
+
)
|
1601
|
+
end
|
1602
|
+
|
1311
1603
|
# The price ids that this minimum interval applies to.
|
1312
1604
|
sig { returns(T::Array[String]) }
|
1313
1605
|
attr_accessor :applies_to_price_ids
|
@@ -1336,8 +1628,7 @@ module Orb
|
|
1336
1628
|
end_date: T.nilable(Time),
|
1337
1629
|
minimum_amount: String,
|
1338
1630
|
start_date: Time
|
1339
|
-
)
|
1340
|
-
.returns(T.attached_class)
|
1631
|
+
).returns(T.attached_class)
|
1341
1632
|
end
|
1342
1633
|
def self.new(
|
1343
1634
|
# The price ids that this minimum interval applies to.
|
@@ -1351,35 +1642,55 @@ module Orb
|
|
1351
1642
|
minimum_amount:,
|
1352
1643
|
# The start date of the minimum interval.
|
1353
1644
|
start_date:
|
1354
|
-
)
|
1645
|
+
)
|
1646
|
+
end
|
1647
|
+
|
1355
1648
|
sig do
|
1356
|
-
override
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
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
|
1366
1660
|
end
|
1367
|
-
def to_hash; end
|
1368
1661
|
end
|
1369
1662
|
|
1370
1663
|
class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
|
1664
|
+
OrHash =
|
1665
|
+
T.type_alias do
|
1666
|
+
T.any(
|
1667
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange,
|
1668
|
+
Orb::Internal::AnyHash
|
1669
|
+
)
|
1670
|
+
end
|
1671
|
+
|
1371
1672
|
sig { returns(String) }
|
1372
1673
|
attr_accessor :id
|
1373
1674
|
|
1374
1675
|
# A pending subscription change if one exists on this subscription.
|
1375
1676
|
sig { params(id: String).returns(T.attached_class) }
|
1376
|
-
def self.new(id:)
|
1677
|
+
def self.new(id:)
|
1678
|
+
end
|
1377
1679
|
|
1378
|
-
sig { override.returns({id: String}) }
|
1379
|
-
def to_hash
|
1680
|
+
sig { override.returns({ id: String }) }
|
1681
|
+
def to_hash
|
1682
|
+
end
|
1380
1683
|
end
|
1381
1684
|
|
1382
1685
|
class PriceInterval < Orb::Internal::Type::BaseModel
|
1686
|
+
OrHash =
|
1687
|
+
T.type_alias do
|
1688
|
+
T.any(
|
1689
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval,
|
1690
|
+
Orb::Internal::AnyHash
|
1691
|
+
)
|
1692
|
+
end
|
1693
|
+
|
1383
1694
|
sig { returns(String) }
|
1384
1695
|
attr_accessor :id
|
1385
1696
|
|
@@ -1413,7 +1724,9 @@ module Orb
|
|
1413
1724
|
sig do
|
1414
1725
|
returns(
|
1415
1726
|
T.nilable(
|
1416
|
-
T::Array[
|
1727
|
+
T::Array[
|
1728
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1729
|
+
]
|
1417
1730
|
)
|
1418
1731
|
)
|
1419
1732
|
end
|
@@ -1432,34 +1745,34 @@ module Orb
|
|
1432
1745
|
sig do
|
1433
1746
|
returns(
|
1434
1747
|
T.any(
|
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::
|
1453
|
-
Orb::
|
1454
|
-
Orb::
|
1455
|
-
Orb::
|
1456
|
-
Orb::
|
1457
|
-
Orb::
|
1458
|
-
Orb::
|
1459
|
-
Orb::
|
1460
|
-
Orb::
|
1461
|
-
Orb::
|
1462
|
-
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
|
1463
1776
|
)
|
1464
1777
|
)
|
1465
1778
|
end
|
@@ -1486,49 +1799,46 @@ module Orb
|
|
1486
1799
|
current_billing_period_start_date: T.nilable(Time),
|
1487
1800
|
end_date: T.nilable(Time),
|
1488
1801
|
filter: T.nilable(String),
|
1489
|
-
fixed_fee_quantity_transitions:
|
1490
|
-
T
|
1491
|
-
T
|
1492
|
-
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
Orb::Models::Price::CumulativeGroupedBulk
|
1527
|
-
),
|
1802
|
+
fixed_fee_quantity_transitions:
|
1803
|
+
T.nilable(
|
1804
|
+
T::Array[
|
1805
|
+
Orb::Models::SubscriptionChangeCancelResponse::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
|
+
),
|
1528
1839
|
start_date: Time,
|
1529
1840
|
usage_customer_ids: T.nilable(T::Array[String])
|
1530
|
-
)
|
1531
|
-
.returns(T.attached_class)
|
1841
|
+
).returns(T.attached_class)
|
1532
1842
|
end
|
1533
1843
|
def self.new(
|
1534
1844
|
id:,
|
@@ -1567,58 +1877,72 @@ module Orb
|
|
1567
1877
|
# A list of customer IDs whose usage events will be aggregated and billed under
|
1568
1878
|
# this price interval.
|
1569
1879
|
usage_customer_ids:
|
1570
|
-
)
|
1880
|
+
)
|
1881
|
+
end
|
1882
|
+
|
1571
1883
|
sig do
|
1572
|
-
override
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
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::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
|
1896
|
+
]
|
1583
1897
|
),
|
1584
|
-
|
1585
|
-
|
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::
|
1603
|
-
Orb::
|
1604
|
-
Orb::
|
1605
|
-
Orb::
|
1606
|
-
Orb::
|
1607
|
-
Orb::
|
1608
|
-
Orb::
|
1609
|
-
Orb::
|
1610
|
-
Orb::
|
1611
|
-
Orb::
|
1612
|
-
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
|
1613
1928
|
),
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1929
|
+
start_date: Time,
|
1930
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
1931
|
+
}
|
1932
|
+
)
|
1933
|
+
end
|
1934
|
+
def to_hash
|
1618
1935
|
end
|
1619
|
-
def to_hash; end
|
1620
1936
|
|
1621
1937
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
1938
|
+
OrHash =
|
1939
|
+
T.type_alias do
|
1940
|
+
T.any(
|
1941
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition,
|
1942
|
+
Orb::Internal::AnyHash
|
1943
|
+
)
|
1944
|
+
end
|
1945
|
+
|
1622
1946
|
sig { returns(Time) }
|
1623
1947
|
attr_accessor :effective_date
|
1624
1948
|
|
@@ -1629,16 +1953,34 @@ module Orb
|
|
1629
1953
|
attr_accessor :quantity
|
1630
1954
|
|
1631
1955
|
sig do
|
1632
|
-
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:)
|
1633
1963
|
end
|
1634
|
-
def self.new(effective_date:, price_id:, quantity:); end
|
1635
1964
|
|
1636
|
-
sig
|
1637
|
-
|
1965
|
+
sig do
|
1966
|
+
override.returns(
|
1967
|
+
{ effective_date: Time, price_id: String, quantity: Integer }
|
1968
|
+
)
|
1969
|
+
end
|
1970
|
+
def to_hash
|
1971
|
+
end
|
1638
1972
|
end
|
1639
1973
|
end
|
1640
1974
|
|
1641
1975
|
class RedeemedCoupon < Orb::Internal::Type::BaseModel
|
1976
|
+
OrHash =
|
1977
|
+
T.type_alias do
|
1978
|
+
T.any(
|
1979
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon,
|
1980
|
+
Orb::Internal::AnyHash
|
1981
|
+
)
|
1982
|
+
end
|
1983
|
+
|
1642
1984
|
sig { returns(String) }
|
1643
1985
|
attr_accessor :coupon_id
|
1644
1986
|
|
@@ -1649,60 +1991,107 @@ module Orb
|
|
1649
1991
|
attr_accessor :start_date
|
1650
1992
|
|
1651
1993
|
sig do
|
1652
|
-
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:)
|
1653
2001
|
end
|
1654
|
-
def self.new(coupon_id:, end_date:, start_date:); end
|
1655
2002
|
|
1656
|
-
sig
|
1657
|
-
|
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
|
1658
2010
|
end
|
1659
2011
|
|
1660
2012
|
module Status
|
1661
2013
|
extend Orb::Internal::Type::Enum
|
1662
2014
|
|
1663
2015
|
TaggedSymbol =
|
1664
|
-
T.type_alias
|
2016
|
+
T.type_alias do
|
2017
|
+
T.all(
|
2018
|
+
Symbol,
|
2019
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status
|
2020
|
+
)
|
2021
|
+
end
|
1665
2022
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1666
2023
|
|
1667
2024
|
ACTIVE =
|
1668
|
-
T.let(
|
1669
|
-
|
2025
|
+
T.let(
|
2026
|
+
:active,
|
2027
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol
|
2028
|
+
)
|
2029
|
+
ENDED =
|
2030
|
+
T.let(
|
2031
|
+
:ended,
|
2032
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol
|
2033
|
+
)
|
1670
2034
|
UPCOMING =
|
1671
|
-
T.let(
|
2035
|
+
T.let(
|
2036
|
+
:upcoming,
|
2037
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol
|
2038
|
+
)
|
1672
2039
|
|
1673
2040
|
sig do
|
1674
|
-
override
|
1675
|
-
|
2041
|
+
override.returns(
|
2042
|
+
T::Array[
|
2043
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol
|
2044
|
+
]
|
2045
|
+
)
|
2046
|
+
end
|
2047
|
+
def self.values
|
1676
2048
|
end
|
1677
|
-
def self.values; end
|
1678
2049
|
end
|
1679
2050
|
|
1680
2051
|
class TrialInfo < Orb::Internal::Type::BaseModel
|
2052
|
+
OrHash =
|
2053
|
+
T.type_alias do
|
2054
|
+
T.any(
|
2055
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo,
|
2056
|
+
Orb::Internal::AnyHash
|
2057
|
+
)
|
2058
|
+
end
|
2059
|
+
|
1681
2060
|
sig { returns(T.nilable(Time)) }
|
1682
2061
|
attr_accessor :end_date
|
1683
2062
|
|
1684
2063
|
sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
|
1685
|
-
def self.new(end_date:)
|
2064
|
+
def self.new(end_date:)
|
2065
|
+
end
|
1686
2066
|
|
1687
|
-
sig { override.returns({end_date: T.nilable(Time)}) }
|
1688
|
-
def to_hash
|
2067
|
+
sig { override.returns({ end_date: T.nilable(Time) }) }
|
2068
|
+
def to_hash
|
2069
|
+
end
|
1689
2070
|
end
|
1690
2071
|
|
1691
2072
|
class ChangedResources < Orb::Internal::Type::BaseModel
|
2073
|
+
OrHash =
|
2074
|
+
T.type_alias do
|
2075
|
+
T.any(
|
2076
|
+
Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources,
|
2077
|
+
Orb::Internal::AnyHash
|
2078
|
+
)
|
2079
|
+
end
|
2080
|
+
|
1692
2081
|
# The credit notes that were created as part of this operation.
|
1693
|
-
sig { returns(T::Array[Orb::
|
2082
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1694
2083
|
attr_accessor :created_credit_notes
|
1695
2084
|
|
1696
2085
|
# The invoices that were created as part of this operation.
|
1697
|
-
sig { returns(T::Array[Orb::
|
2086
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1698
2087
|
attr_accessor :created_invoices
|
1699
2088
|
|
1700
2089
|
# The credit notes that were voided as part of this operation.
|
1701
|
-
sig { returns(T::Array[Orb::
|
2090
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1702
2091
|
attr_accessor :voided_credit_notes
|
1703
2092
|
|
1704
2093
|
# The invoices that were voided as part of this operation.
|
1705
|
-
sig { returns(T::Array[Orb::
|
2094
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1706
2095
|
attr_accessor :voided_invoices
|
1707
2096
|
|
1708
2097
|
# The resources that were changed as part of this operation. Only present when
|
@@ -1710,12 +2099,11 @@ module Orb
|
|
1710
2099
|
# `include_changed_resources` parameter was passed in the request.
|
1711
2100
|
sig do
|
1712
2101
|
params(
|
1713
|
-
created_credit_notes: T::Array[
|
1714
|
-
created_invoices: T::Array[
|
1715
|
-
voided_credit_notes: T::Array[
|
1716
|
-
voided_invoices: T::Array[
|
1717
|
-
)
|
1718
|
-
.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)
|
1719
2107
|
end
|
1720
2108
|
def self.new(
|
1721
2109
|
# The credit notes that were created as part of this operation.
|
@@ -1726,19 +2114,21 @@ module Orb
|
|
1726
2114
|
voided_credit_notes:,
|
1727
2115
|
# The invoices that were voided as part of this operation.
|
1728
2116
|
voided_invoices:
|
1729
|
-
)
|
2117
|
+
)
|
2118
|
+
end
|
2119
|
+
|
1730
2120
|
sig do
|
1731
|
-
override
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
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
|
1740
2131
|
end
|
1741
|
-
def to_hash; end
|
1742
2132
|
end
|
1743
2133
|
end
|
1744
2134
|
end
|