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 SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse,
|
10
|
+
Orb::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
6
14
|
sig { returns(String) }
|
7
15
|
attr_accessor :id
|
8
16
|
|
@@ -13,7 +21,13 @@ module Orb
|
|
13
21
|
|
14
22
|
# The adjustment intervals for this subscription sorted by the start_date of the
|
15
23
|
# adjustment interval.
|
16
|
-
sig
|
24
|
+
sig do
|
25
|
+
returns(
|
26
|
+
T::Array[
|
27
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval
|
28
|
+
]
|
29
|
+
)
|
30
|
+
end
|
17
31
|
attr_accessor :adjustment_intervals
|
18
32
|
|
19
33
|
# Determines whether issued invoices for this subscription will automatically be
|
@@ -31,12 +45,9 @@ module Orb
|
|
31
45
|
|
32
46
|
sig do
|
33
47
|
params(
|
34
|
-
billing_cycle_anchor_configuration:
|
35
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration
|
36
|
-
|
37
|
-
)
|
38
|
-
)
|
39
|
-
.void
|
48
|
+
billing_cycle_anchor_configuration:
|
49
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration::OrHash
|
50
|
+
).void
|
40
51
|
end
|
41
52
|
attr_writer :billing_cycle_anchor_configuration
|
42
53
|
|
@@ -80,10 +91,10 @@ module Orb
|
|
80
91
|
# [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
|
81
92
|
# your account's timezone. See [Timezone localization](/essentials/timezones) for
|
82
93
|
# information on what this timezone parameter influences within Orb.
|
83
|
-
sig { returns(Orb::
|
94
|
+
sig { returns(Orb::Customer) }
|
84
95
|
attr_reader :customer
|
85
96
|
|
86
|
-
sig { params(customer:
|
97
|
+
sig { params(customer: Orb::Customer::OrHash).void }
|
87
98
|
attr_writer :customer
|
88
99
|
|
89
100
|
# Determines the default memo on this subscriptions' invoices. Note that if this
|
@@ -111,7 +122,9 @@ module Orb
|
|
111
122
|
|
112
123
|
sig do
|
113
124
|
returns(
|
114
|
-
T::Array[
|
125
|
+
T::Array[
|
126
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule
|
127
|
+
]
|
115
128
|
)
|
116
129
|
end
|
117
130
|
attr_accessor :fixed_fee_quantity_schedule
|
@@ -120,7 +133,13 @@ module Orb
|
|
120
133
|
attr_accessor :invoicing_threshold
|
121
134
|
|
122
135
|
# The maximum intervals for this subscription sorted by the start_date.
|
123
|
-
sig
|
136
|
+
sig do
|
137
|
+
returns(
|
138
|
+
T::Array[
|
139
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval
|
140
|
+
]
|
141
|
+
)
|
142
|
+
end
|
124
143
|
attr_accessor :maximum_intervals
|
125
144
|
|
126
145
|
# User specified key-value pairs for the resource. If not present, this defaults
|
@@ -131,7 +150,13 @@ module Orb
|
|
131
150
|
attr_accessor :metadata
|
132
151
|
|
133
152
|
# The minimum intervals for this subscription sorted by the start_date.
|
134
|
-
sig
|
153
|
+
sig do
|
154
|
+
returns(
|
155
|
+
T::Array[
|
156
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval
|
157
|
+
]
|
158
|
+
)
|
159
|
+
end
|
135
160
|
attr_accessor :minimum_intervals
|
136
161
|
|
137
162
|
# Determines the difference between the invoice issue date for subscription
|
@@ -144,21 +169,20 @@ module Orb
|
|
144
169
|
# A pending subscription change if one exists on this subscription.
|
145
170
|
sig do
|
146
171
|
returns(
|
147
|
-
T.nilable(
|
172
|
+
T.nilable(
|
173
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
174
|
+
)
|
148
175
|
)
|
149
176
|
end
|
150
177
|
attr_reader :pending_subscription_change
|
151
178
|
|
152
179
|
sig do
|
153
180
|
params(
|
154
|
-
pending_subscription_change:
|
155
|
-
T.
|
156
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
157
|
-
Orb::Internal::AnyHash
|
181
|
+
pending_subscription_change:
|
182
|
+
T.nilable(
|
183
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange::OrHash
|
158
184
|
)
|
159
|
-
|
160
|
-
)
|
161
|
-
.void
|
185
|
+
).void
|
162
186
|
end
|
163
187
|
attr_writer :pending_subscription_change
|
164
188
|
|
@@ -166,29 +190,38 @@ module Orb
|
|
166
190
|
# subscribed to by a customer. Plans define the billing behavior of the
|
167
191
|
# subscription. You can see more about how to configure prices in the
|
168
192
|
# [Price resource](/reference/price).
|
169
|
-
sig { returns(Orb::
|
193
|
+
sig { returns(Orb::Plan) }
|
170
194
|
attr_reader :plan
|
171
195
|
|
172
|
-
sig { params(plan:
|
196
|
+
sig { params(plan: Orb::Plan::OrHash).void }
|
173
197
|
attr_writer :plan
|
174
198
|
|
175
199
|
# The price intervals for this subscription.
|
176
|
-
sig
|
200
|
+
sig do
|
201
|
+
returns(
|
202
|
+
T::Array[
|
203
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval
|
204
|
+
]
|
205
|
+
)
|
206
|
+
end
|
177
207
|
attr_accessor :price_intervals
|
178
208
|
|
179
|
-
sig
|
209
|
+
sig do
|
210
|
+
returns(
|
211
|
+
T.nilable(
|
212
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon
|
213
|
+
)
|
214
|
+
)
|
215
|
+
end
|
180
216
|
attr_reader :redeemed_coupon
|
181
217
|
|
182
218
|
sig do
|
183
219
|
params(
|
184
|
-
redeemed_coupon:
|
185
|
-
T.
|
186
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon
|
187
|
-
Orb::Internal::AnyHash
|
220
|
+
redeemed_coupon:
|
221
|
+
T.nilable(
|
222
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon::OrHash
|
188
223
|
)
|
189
|
-
|
190
|
-
)
|
191
|
-
.void
|
224
|
+
).void
|
192
225
|
end
|
193
226
|
attr_writer :redeemed_coupon
|
194
227
|
|
@@ -196,39 +229,47 @@ module Orb
|
|
196
229
|
sig { returns(Time) }
|
197
230
|
attr_accessor :start_date
|
198
231
|
|
199
|
-
sig
|
232
|
+
sig do
|
233
|
+
returns(
|
234
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
235
|
+
)
|
236
|
+
end
|
200
237
|
attr_accessor :status
|
201
238
|
|
202
|
-
sig
|
239
|
+
sig do
|
240
|
+
returns(
|
241
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo
|
242
|
+
)
|
243
|
+
end
|
203
244
|
attr_reader :trial_info
|
204
245
|
|
205
246
|
sig do
|
206
247
|
params(
|
207
|
-
trial_info:
|
208
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo
|
209
|
-
|
210
|
-
)
|
211
|
-
)
|
212
|
-
.void
|
248
|
+
trial_info:
|
249
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo::OrHash
|
250
|
+
).void
|
213
251
|
end
|
214
252
|
attr_writer :trial_info
|
215
253
|
|
216
254
|
# The resources that were changed as part of this operation. Only present when
|
217
255
|
# fetched through the subscription changes API or if the
|
218
256
|
# `include_changed_resources` parameter was passed in the request.
|
219
|
-
sig
|
257
|
+
sig do
|
258
|
+
returns(
|
259
|
+
T.nilable(
|
260
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources
|
261
|
+
)
|
262
|
+
)
|
263
|
+
end
|
220
264
|
attr_reader :changed_resources
|
221
265
|
|
222
266
|
sig do
|
223
267
|
params(
|
224
|
-
changed_resources:
|
225
|
-
T.
|
226
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources
|
227
|
-
Orb::Internal::AnyHash
|
268
|
+
changed_resources:
|
269
|
+
T.nilable(
|
270
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources::OrHash
|
228
271
|
)
|
229
|
-
|
230
|
-
)
|
231
|
-
.void
|
272
|
+
).void
|
232
273
|
end
|
233
274
|
attr_writer :changed_resources
|
234
275
|
|
@@ -236,86 +277,66 @@ module Orb
|
|
236
277
|
params(
|
237
278
|
id: String,
|
238
279
|
active_plan_phase_order: T.nilable(Integer),
|
239
|
-
adjustment_intervals:
|
240
|
-
T
|
241
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval
|
242
|
-
|
243
|
-
)
|
244
|
-
],
|
280
|
+
adjustment_intervals:
|
281
|
+
T::Array[
|
282
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::OrHash
|
283
|
+
],
|
245
284
|
auto_collection: T.nilable(T::Boolean),
|
246
|
-
billing_cycle_anchor_configuration:
|
247
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration,
|
248
|
-
Orb::Internal::AnyHash
|
249
|
-
),
|
285
|
+
billing_cycle_anchor_configuration:
|
286
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration::OrHash,
|
250
287
|
billing_cycle_day: Integer,
|
251
288
|
created_at: Time,
|
252
289
|
current_billing_period_end_date: T.nilable(Time),
|
253
290
|
current_billing_period_start_date: T.nilable(Time),
|
254
|
-
customer:
|
291
|
+
customer: Orb::Customer::OrHash,
|
255
292
|
default_invoice_memo: T.nilable(String),
|
256
|
-
discount_intervals:
|
257
|
-
T
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
293
|
+
discount_intervals:
|
294
|
+
T::Array[
|
295
|
+
T.any(
|
296
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount::OrHash,
|
297
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage::OrHash,
|
298
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage::OrHash
|
299
|
+
)
|
300
|
+
],
|
264
301
|
end_date: T.nilable(Time),
|
265
|
-
fixed_fee_quantity_schedule:
|
266
|
-
T
|
267
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule
|
268
|
-
|
269
|
-
)
|
270
|
-
],
|
302
|
+
fixed_fee_quantity_schedule:
|
303
|
+
T::Array[
|
304
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule::OrHash
|
305
|
+
],
|
271
306
|
invoicing_threshold: T.nilable(String),
|
272
|
-
maximum_intervals:
|
273
|
-
T
|
274
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval
|
275
|
-
|
276
|
-
)
|
277
|
-
],
|
307
|
+
maximum_intervals:
|
308
|
+
T::Array[
|
309
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval::OrHash
|
310
|
+
],
|
278
311
|
metadata: T::Hash[Symbol, String],
|
279
|
-
minimum_intervals:
|
280
|
-
T
|
281
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval
|
282
|
-
|
283
|
-
)
|
284
|
-
],
|
312
|
+
minimum_intervals:
|
313
|
+
T::Array[
|
314
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval::OrHash
|
315
|
+
],
|
285
316
|
net_terms: Integer,
|
286
|
-
pending_subscription_change:
|
287
|
-
T.
|
288
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
redeemed_coupon: T.nilable(
|
300
|
-
T.any(
|
301
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon,
|
302
|
-
Orb::Internal::AnyHash
|
303
|
-
)
|
304
|
-
),
|
317
|
+
pending_subscription_change:
|
318
|
+
T.nilable(
|
319
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange::OrHash
|
320
|
+
),
|
321
|
+
plan: Orb::Plan::OrHash,
|
322
|
+
price_intervals:
|
323
|
+
T::Array[
|
324
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::OrHash
|
325
|
+
],
|
326
|
+
redeemed_coupon:
|
327
|
+
T.nilable(
|
328
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon::OrHash
|
329
|
+
),
|
305
330
|
start_date: Time,
|
306
|
-
status:
|
307
|
-
|
308
|
-
|
309
|
-
Orb::
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources,
|
314
|
-
Orb::Internal::AnyHash
|
331
|
+
status:
|
332
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::OrSymbol,
|
333
|
+
trial_info:
|
334
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo::OrHash,
|
335
|
+
changed_resources:
|
336
|
+
T.nilable(
|
337
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources::OrHash
|
315
338
|
)
|
316
|
-
|
317
|
-
)
|
318
|
-
.returns(T.attached_class)
|
339
|
+
).returns(T.attached_class)
|
319
340
|
end
|
320
341
|
def self.new(
|
321
342
|
id:,
|
@@ -404,50 +425,88 @@ module Orb
|
|
404
425
|
# fetched through the subscription changes API or if the
|
405
426
|
# `include_changed_resources` parameter was passed in the request.
|
406
427
|
changed_resources: nil
|
407
|
-
)
|
428
|
+
)
|
429
|
+
end
|
430
|
+
|
408
431
|
sig do
|
409
|
-
override
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
432
|
+
override.returns(
|
433
|
+
{
|
434
|
+
id: String,
|
435
|
+
active_plan_phase_order: T.nilable(Integer),
|
436
|
+
adjustment_intervals:
|
437
|
+
T::Array[
|
438
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval
|
439
|
+
],
|
440
|
+
auto_collection: T.nilable(T::Boolean),
|
441
|
+
billing_cycle_anchor_configuration:
|
442
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration,
|
443
|
+
billing_cycle_day: Integer,
|
444
|
+
created_at: Time,
|
445
|
+
current_billing_period_end_date: T.nilable(Time),
|
446
|
+
current_billing_period_start_date: T.nilable(Time),
|
447
|
+
customer: Orb::Customer,
|
448
|
+
default_invoice_memo: T.nilable(String),
|
449
|
+
discount_intervals:
|
450
|
+
T::Array[
|
424
451
|
T.any(
|
425
452
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
|
426
453
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
|
427
454
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage
|
428
455
|
)
|
429
456
|
],
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
457
|
+
end_date: T.nilable(Time),
|
458
|
+
fixed_fee_quantity_schedule:
|
459
|
+
T::Array[
|
460
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule
|
461
|
+
],
|
462
|
+
invoicing_threshold: T.nilable(String),
|
463
|
+
maximum_intervals:
|
464
|
+
T::Array[
|
465
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval
|
466
|
+
],
|
467
|
+
metadata: T::Hash[Symbol, String],
|
468
|
+
minimum_intervals:
|
469
|
+
T::Array[
|
470
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval
|
471
|
+
],
|
472
|
+
net_terms: Integer,
|
473
|
+
pending_subscription_change:
|
474
|
+
T.nilable(
|
475
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange
|
476
|
+
),
|
477
|
+
plan: Orb::Plan,
|
478
|
+
price_intervals:
|
479
|
+
T::Array[
|
480
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval
|
481
|
+
],
|
482
|
+
redeemed_coupon:
|
483
|
+
T.nilable(
|
484
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon
|
485
|
+
),
|
486
|
+
start_date: Time,
|
487
|
+
status:
|
488
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol,
|
489
|
+
trial_info:
|
490
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo,
|
491
|
+
changed_resources:
|
492
|
+
T.nilable(
|
493
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources
|
494
|
+
)
|
495
|
+
}
|
496
|
+
)
|
497
|
+
end
|
498
|
+
def to_hash
|
447
499
|
end
|
448
|
-
def to_hash; end
|
449
500
|
|
450
501
|
class AdjustmentInterval < Orb::Internal::Type::BaseModel
|
502
|
+
OrHash =
|
503
|
+
T.type_alias do
|
504
|
+
T.any(
|
505
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval,
|
506
|
+
Orb::Internal::AnyHash
|
507
|
+
)
|
508
|
+
end
|
509
|
+
|
451
510
|
sig { returns(String) }
|
452
511
|
attr_accessor :id
|
453
512
|
|
@@ -479,19 +538,18 @@ module Orb
|
|
479
538
|
sig do
|
480
539
|
params(
|
481
540
|
id: String,
|
482
|
-
adjustment:
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
541
|
+
adjustment:
|
542
|
+
T.any(
|
543
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
|
544
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
|
545
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
|
546
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum::OrHash,
|
547
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum::OrHash
|
548
|
+
),
|
490
549
|
applies_to_price_interval_ids: T::Array[String],
|
491
550
|
end_date: T.nilable(Time),
|
492
551
|
start_date: Time
|
493
|
-
)
|
494
|
-
.returns(T.attached_class)
|
552
|
+
).returns(T.attached_class)
|
495
553
|
end
|
496
554
|
def self.new(
|
497
555
|
id:,
|
@@ -502,31 +560,53 @@ module Orb
|
|
502
560
|
end_date:,
|
503
561
|
# The start date of the adjustment interval.
|
504
562
|
start_date:
|
505
|
-
)
|
563
|
+
)
|
564
|
+
end
|
565
|
+
|
506
566
|
sig do
|
507
|
-
override
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
567
|
+
override.returns(
|
568
|
+
{
|
569
|
+
id: String,
|
570
|
+
adjustment:
|
571
|
+
T.any(
|
512
572
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
513
573
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
514
574
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
515
575
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
|
516
576
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum
|
517
577
|
),
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
578
|
+
applies_to_price_interval_ids: T::Array[String],
|
579
|
+
end_date: T.nilable(Time),
|
580
|
+
start_date: Time
|
581
|
+
}
|
582
|
+
)
|
583
|
+
end
|
584
|
+
def to_hash
|
523
585
|
end
|
524
|
-
def to_hash; end
|
525
586
|
|
526
587
|
module Adjustment
|
527
588
|
extend Orb::Internal::Type::Union
|
528
589
|
|
590
|
+
Variants =
|
591
|
+
T.type_alias do
|
592
|
+
T.any(
|
593
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
594
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
595
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
596
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
|
597
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum
|
598
|
+
)
|
599
|
+
end
|
600
|
+
|
529
601
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
602
|
+
OrHash =
|
603
|
+
T.type_alias do
|
604
|
+
T.any(
|
605
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
|
606
|
+
Orb::Internal::AnyHash
|
607
|
+
)
|
608
|
+
end
|
609
|
+
|
530
610
|
sig { returns(String) }
|
531
611
|
attr_accessor :id
|
532
612
|
|
@@ -564,8 +644,7 @@ module Orb
|
|
564
644
|
reason: T.nilable(String),
|
565
645
|
usage_discount: Float,
|
566
646
|
adjustment_type: Symbol
|
567
|
-
)
|
568
|
-
.returns(T.attached_class)
|
647
|
+
).returns(T.attached_class)
|
569
648
|
end
|
570
649
|
def self.new(
|
571
650
|
id:,
|
@@ -582,25 +661,35 @@ module Orb
|
|
582
661
|
# to in a given billing period.
|
583
662
|
usage_discount:,
|
584
663
|
adjustment_type: :usage_discount
|
585
|
-
)
|
664
|
+
)
|
665
|
+
end
|
666
|
+
|
586
667
|
sig do
|
587
|
-
override
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
668
|
+
override.returns(
|
669
|
+
{
|
670
|
+
id: String,
|
671
|
+
adjustment_type: Symbol,
|
672
|
+
applies_to_price_ids: T::Array[String],
|
673
|
+
is_invoice_level: T::Boolean,
|
674
|
+
plan_phase_order: T.nilable(Integer),
|
675
|
+
reason: T.nilable(String),
|
676
|
+
usage_discount: Float
|
677
|
+
}
|
678
|
+
)
|
679
|
+
end
|
680
|
+
def to_hash
|
599
681
|
end
|
600
|
-
def to_hash; end
|
601
682
|
end
|
602
683
|
|
603
684
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
685
|
+
OrHash =
|
686
|
+
T.type_alias do
|
687
|
+
T.any(
|
688
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
|
689
|
+
Orb::Internal::AnyHash
|
690
|
+
)
|
691
|
+
end
|
692
|
+
|
604
693
|
sig { returns(String) }
|
605
694
|
attr_accessor :id
|
606
695
|
|
@@ -638,8 +727,7 @@ module Orb
|
|
638
727
|
plan_phase_order: T.nilable(Integer),
|
639
728
|
reason: T.nilable(String),
|
640
729
|
adjustment_type: Symbol
|
641
|
-
)
|
642
|
-
.returns(T.attached_class)
|
730
|
+
).returns(T.attached_class)
|
643
731
|
end
|
644
732
|
def self.new(
|
645
733
|
id:,
|
@@ -656,25 +744,35 @@ module Orb
|
|
656
744
|
# The reason for the adjustment.
|
657
745
|
reason:,
|
658
746
|
adjustment_type: :amount_discount
|
659
|
-
)
|
747
|
+
)
|
748
|
+
end
|
749
|
+
|
660
750
|
sig do
|
661
|
-
override
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
751
|
+
override.returns(
|
752
|
+
{
|
753
|
+
id: String,
|
754
|
+
adjustment_type: Symbol,
|
755
|
+
amount_discount: String,
|
756
|
+
applies_to_price_ids: T::Array[String],
|
757
|
+
is_invoice_level: T::Boolean,
|
758
|
+
plan_phase_order: T.nilable(Integer),
|
759
|
+
reason: T.nilable(String)
|
760
|
+
}
|
761
|
+
)
|
762
|
+
end
|
763
|
+
def to_hash
|
673
764
|
end
|
674
|
-
def to_hash; end
|
675
765
|
end
|
676
766
|
|
677
767
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
768
|
+
OrHash =
|
769
|
+
T.type_alias do
|
770
|
+
T.any(
|
771
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
|
772
|
+
Orb::Internal::AnyHash
|
773
|
+
)
|
774
|
+
end
|
775
|
+
|
678
776
|
sig { returns(String) }
|
679
777
|
attr_accessor :id
|
680
778
|
|
@@ -712,8 +810,7 @@ module Orb
|
|
712
810
|
plan_phase_order: T.nilable(Integer),
|
713
811
|
reason: T.nilable(String),
|
714
812
|
adjustment_type: Symbol
|
715
|
-
)
|
716
|
-
.returns(T.attached_class)
|
813
|
+
).returns(T.attached_class)
|
717
814
|
end
|
718
815
|
def self.new(
|
719
816
|
id:,
|
@@ -730,25 +827,35 @@ module Orb
|
|
730
827
|
# The reason for the adjustment.
|
731
828
|
reason:,
|
732
829
|
adjustment_type: :percentage_discount
|
733
|
-
)
|
830
|
+
)
|
831
|
+
end
|
832
|
+
|
734
833
|
sig do
|
735
|
-
override
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
834
|
+
override.returns(
|
835
|
+
{
|
836
|
+
id: String,
|
837
|
+
adjustment_type: Symbol,
|
838
|
+
applies_to_price_ids: T::Array[String],
|
839
|
+
is_invoice_level: T::Boolean,
|
840
|
+
percentage_discount: Float,
|
841
|
+
plan_phase_order: T.nilable(Integer),
|
842
|
+
reason: T.nilable(String)
|
843
|
+
}
|
844
|
+
)
|
845
|
+
end
|
846
|
+
def to_hash
|
747
847
|
end
|
748
|
-
def to_hash; end
|
749
848
|
end
|
750
849
|
|
751
850
|
class Minimum < Orb::Internal::Type::BaseModel
|
851
|
+
OrHash =
|
852
|
+
T.type_alias do
|
853
|
+
T.any(
|
854
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
|
855
|
+
Orb::Internal::AnyHash
|
856
|
+
)
|
857
|
+
end
|
858
|
+
|
752
859
|
sig { returns(String) }
|
753
860
|
attr_accessor :id
|
754
861
|
|
@@ -791,8 +898,7 @@ module Orb
|
|
791
898
|
plan_phase_order: T.nilable(Integer),
|
792
899
|
reason: T.nilable(String),
|
793
900
|
adjustment_type: Symbol
|
794
|
-
)
|
795
|
-
.returns(T.attached_class)
|
901
|
+
).returns(T.attached_class)
|
796
902
|
end
|
797
903
|
def self.new(
|
798
904
|
id:,
|
@@ -811,26 +917,36 @@ module Orb
|
|
811
917
|
# The reason for the adjustment.
|
812
918
|
reason:,
|
813
919
|
adjustment_type: :minimum
|
814
|
-
)
|
920
|
+
)
|
921
|
+
end
|
922
|
+
|
815
923
|
sig do
|
816
|
-
override
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
924
|
+
override.returns(
|
925
|
+
{
|
926
|
+
id: String,
|
927
|
+
adjustment_type: Symbol,
|
928
|
+
applies_to_price_ids: T::Array[String],
|
929
|
+
is_invoice_level: T::Boolean,
|
930
|
+
item_id: String,
|
931
|
+
minimum_amount: String,
|
932
|
+
plan_phase_order: T.nilable(Integer),
|
933
|
+
reason: T.nilable(String)
|
934
|
+
}
|
935
|
+
)
|
936
|
+
end
|
937
|
+
def to_hash
|
829
938
|
end
|
830
|
-
def to_hash; end
|
831
939
|
end
|
832
940
|
|
833
941
|
class Maximum < Orb::Internal::Type::BaseModel
|
942
|
+
OrHash =
|
943
|
+
T.type_alias do
|
944
|
+
T.any(
|
945
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum,
|
946
|
+
Orb::Internal::AnyHash
|
947
|
+
)
|
948
|
+
end
|
949
|
+
|
834
950
|
sig { returns(String) }
|
835
951
|
attr_accessor :id
|
836
952
|
|
@@ -868,8 +984,7 @@ module Orb
|
|
868
984
|
plan_phase_order: T.nilable(Integer),
|
869
985
|
reason: T.nilable(String),
|
870
986
|
adjustment_type: Symbol
|
871
|
-
)
|
872
|
-
.returns(T.attached_class)
|
987
|
+
).returns(T.attached_class)
|
873
988
|
end
|
874
989
|
def self.new(
|
875
990
|
id:,
|
@@ -886,35 +1001,47 @@ module Orb
|
|
886
1001
|
# The reason for the adjustment.
|
887
1002
|
reason:,
|
888
1003
|
adjustment_type: :maximum
|
889
|
-
)
|
890
|
-
sig do
|
891
|
-
override
|
892
|
-
.returns(
|
893
|
-
{
|
894
|
-
id: String,
|
895
|
-
adjustment_type: Symbol,
|
896
|
-
applies_to_price_ids: T::Array[String],
|
897
|
-
is_invoice_level: T::Boolean,
|
898
|
-
maximum_amount: String,
|
899
|
-
plan_phase_order: T.nilable(Integer),
|
900
|
-
reason: T.nilable(String)
|
901
|
-
}
|
902
|
-
)
|
1004
|
+
)
|
903
1005
|
end
|
904
|
-
def to_hash; end
|
905
|
-
end
|
906
1006
|
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
1007
|
+
sig do
|
1008
|
+
override.returns(
|
1009
|
+
{
|
1010
|
+
id: String,
|
1011
|
+
adjustment_type: Symbol,
|
1012
|
+
applies_to_price_ids: T::Array[String],
|
1013
|
+
is_invoice_level: T::Boolean,
|
1014
|
+
maximum_amount: String,
|
1015
|
+
plan_phase_order: T.nilable(Integer),
|
1016
|
+
reason: T.nilable(String)
|
1017
|
+
}
|
911
1018
|
)
|
1019
|
+
end
|
1020
|
+
def to_hash
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
sig do
|
1025
|
+
override.returns(
|
1026
|
+
T::Array[
|
1027
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants
|
1028
|
+
]
|
1029
|
+
)
|
1030
|
+
end
|
1031
|
+
def self.variants
|
912
1032
|
end
|
913
|
-
def self.variants; end
|
914
1033
|
end
|
915
1034
|
end
|
916
1035
|
|
917
1036
|
class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
|
1037
|
+
OrHash =
|
1038
|
+
T.type_alias do
|
1039
|
+
T.any(
|
1040
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration,
|
1041
|
+
Orb::Internal::AnyHash
|
1042
|
+
)
|
1043
|
+
end
|
1044
|
+
|
918
1045
|
# The day of the month on which the billing cycle is anchored. If the maximum
|
919
1046
|
# number of days in a month is greater than this value, the last day of the month
|
920
1047
|
# is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
@@ -934,7 +1061,11 @@ module Orb
|
|
934
1061
|
attr_accessor :year
|
935
1062
|
|
936
1063
|
sig do
|
937
|
-
params(
|
1064
|
+
params(
|
1065
|
+
day: Integer,
|
1066
|
+
month: T.nilable(Integer),
|
1067
|
+
year: T.nilable(Integer)
|
1068
|
+
).returns(T.attached_class)
|
938
1069
|
end
|
939
1070
|
def self.new(
|
940
1071
|
# The day of the month on which the billing cycle is anchored. If the maximum
|
@@ -949,15 +1080,43 @@ module Orb
|
|
949
1080
|
# The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
950
1081
|
# anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
951
1082
|
year: nil
|
952
|
-
)
|
953
|
-
|
954
|
-
|
1083
|
+
)
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
sig do
|
1087
|
+
override.returns(
|
1088
|
+
{
|
1089
|
+
day: Integer,
|
1090
|
+
month: T.nilable(Integer),
|
1091
|
+
year: T.nilable(Integer)
|
1092
|
+
}
|
1093
|
+
)
|
1094
|
+
end
|
1095
|
+
def to_hash
|
1096
|
+
end
|
955
1097
|
end
|
956
1098
|
|
957
1099
|
module DiscountInterval
|
958
1100
|
extend Orb::Internal::Type::Union
|
959
1101
|
|
1102
|
+
Variants =
|
1103
|
+
T.type_alias do
|
1104
|
+
T.any(
|
1105
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
|
1106
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
|
1107
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage
|
1108
|
+
)
|
1109
|
+
end
|
1110
|
+
|
960
1111
|
class Amount < Orb::Internal::Type::BaseModel
|
1112
|
+
OrHash =
|
1113
|
+
T.type_alias do
|
1114
|
+
T.any(
|
1115
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
|
1116
|
+
Orb::Internal::AnyHash
|
1117
|
+
)
|
1118
|
+
end
|
1119
|
+
|
961
1120
|
# Only available if discount_type is `amount`.
|
962
1121
|
sig { returns(String) }
|
963
1122
|
attr_accessor :amount_discount
|
@@ -989,8 +1148,7 @@ module Orb
|
|
989
1148
|
end_date: T.nilable(Time),
|
990
1149
|
start_date: Time,
|
991
1150
|
discount_type: Symbol
|
992
|
-
)
|
993
|
-
.returns(T.attached_class)
|
1151
|
+
).returns(T.attached_class)
|
994
1152
|
end
|
995
1153
|
def self.new(
|
996
1154
|
# Only available if discount_type is `amount`.
|
@@ -1004,24 +1162,34 @@ module Orb
|
|
1004
1162
|
# The start date of the discount interval.
|
1005
1163
|
start_date:,
|
1006
1164
|
discount_type: :amount
|
1007
|
-
)
|
1165
|
+
)
|
1166
|
+
end
|
1167
|
+
|
1008
1168
|
sig do
|
1009
|
-
override
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1169
|
+
override.returns(
|
1170
|
+
{
|
1171
|
+
amount_discount: String,
|
1172
|
+
applies_to_price_ids: T::Array[String],
|
1173
|
+
applies_to_price_interval_ids: T::Array[String],
|
1174
|
+
discount_type: Symbol,
|
1175
|
+
end_date: T.nilable(Time),
|
1176
|
+
start_date: Time
|
1177
|
+
}
|
1178
|
+
)
|
1179
|
+
end
|
1180
|
+
def to_hash
|
1020
1181
|
end
|
1021
|
-
def to_hash; end
|
1022
1182
|
end
|
1023
1183
|
|
1024
1184
|
class Percentage < Orb::Internal::Type::BaseModel
|
1185
|
+
OrHash =
|
1186
|
+
T.type_alias do
|
1187
|
+
T.any(
|
1188
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
|
1189
|
+
Orb::Internal::AnyHash
|
1190
|
+
)
|
1191
|
+
end
|
1192
|
+
|
1025
1193
|
# The price ids that this discount interval applies to.
|
1026
1194
|
sig { returns(T::Array[String]) }
|
1027
1195
|
attr_accessor :applies_to_price_ids
|
@@ -1054,8 +1222,7 @@ module Orb
|
|
1054
1222
|
percentage_discount: Float,
|
1055
1223
|
start_date: Time,
|
1056
1224
|
discount_type: Symbol
|
1057
|
-
)
|
1058
|
-
.returns(T.attached_class)
|
1225
|
+
).returns(T.attached_class)
|
1059
1226
|
end
|
1060
1227
|
def self.new(
|
1061
1228
|
# The price ids that this discount interval applies to.
|
@@ -1070,24 +1237,34 @@ module Orb
|
|
1070
1237
|
# The start date of the discount interval.
|
1071
1238
|
start_date:,
|
1072
1239
|
discount_type: :percentage
|
1073
|
-
)
|
1240
|
+
)
|
1241
|
+
end
|
1242
|
+
|
1074
1243
|
sig do
|
1075
|
-
override
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1244
|
+
override.returns(
|
1245
|
+
{
|
1246
|
+
applies_to_price_ids: T::Array[String],
|
1247
|
+
applies_to_price_interval_ids: T::Array[String],
|
1248
|
+
discount_type: Symbol,
|
1249
|
+
end_date: T.nilable(Time),
|
1250
|
+
percentage_discount: Float,
|
1251
|
+
start_date: Time
|
1252
|
+
}
|
1253
|
+
)
|
1254
|
+
end
|
1255
|
+
def to_hash
|
1086
1256
|
end
|
1087
|
-
def to_hash; end
|
1088
1257
|
end
|
1089
1258
|
|
1090
1259
|
class Usage < Orb::Internal::Type::BaseModel
|
1260
|
+
OrHash =
|
1261
|
+
T.type_alias do
|
1262
|
+
T.any(
|
1263
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage,
|
1264
|
+
Orb::Internal::AnyHash
|
1265
|
+
)
|
1266
|
+
end
|
1267
|
+
|
1091
1268
|
# The price ids that this discount interval applies to.
|
1092
1269
|
sig { returns(T::Array[String]) }
|
1093
1270
|
attr_accessor :applies_to_price_ids
|
@@ -1120,8 +1297,7 @@ module Orb
|
|
1120
1297
|
start_date: Time,
|
1121
1298
|
usage_discount: Float,
|
1122
1299
|
discount_type: Symbol
|
1123
|
-
)
|
1124
|
-
.returns(T.attached_class)
|
1300
|
+
).returns(T.attached_class)
|
1125
1301
|
end
|
1126
1302
|
def self.new(
|
1127
1303
|
# The price ids that this discount interval applies to.
|
@@ -1136,33 +1312,45 @@ module Orb
|
|
1136
1312
|
# discount is for
|
1137
1313
|
usage_discount:,
|
1138
1314
|
discount_type: :usage
|
1139
|
-
)
|
1315
|
+
)
|
1316
|
+
end
|
1317
|
+
|
1140
1318
|
sig do
|
1141
|
-
override
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1319
|
+
override.returns(
|
1320
|
+
{
|
1321
|
+
applies_to_price_ids: T::Array[String],
|
1322
|
+
applies_to_price_interval_ids: T::Array[String],
|
1323
|
+
discount_type: Symbol,
|
1324
|
+
end_date: T.nilable(Time),
|
1325
|
+
start_date: Time,
|
1326
|
+
usage_discount: Float
|
1327
|
+
}
|
1328
|
+
)
|
1329
|
+
end
|
1330
|
+
def to_hash
|
1152
1331
|
end
|
1153
|
-
def to_hash; end
|
1154
1332
|
end
|
1155
1333
|
|
1156
1334
|
sig do
|
1157
|
-
override
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1335
|
+
override.returns(
|
1336
|
+
T::Array[
|
1337
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants
|
1338
|
+
]
|
1339
|
+
)
|
1340
|
+
end
|
1341
|
+
def self.variants
|
1161
1342
|
end
|
1162
|
-
def self.variants; end
|
1163
1343
|
end
|
1164
1344
|
|
1165
1345
|
class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
|
1346
|
+
OrHash =
|
1347
|
+
T.type_alias do
|
1348
|
+
T.any(
|
1349
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule,
|
1350
|
+
Orb::Internal::AnyHash
|
1351
|
+
)
|
1352
|
+
end
|
1353
|
+
|
1166
1354
|
sig { returns(T.nilable(Time)) }
|
1167
1355
|
attr_accessor :end_date
|
1168
1356
|
|
@@ -1176,18 +1364,39 @@ module Orb
|
|
1176
1364
|
attr_accessor :start_date
|
1177
1365
|
|
1178
1366
|
sig do
|
1179
|
-
params(
|
1180
|
-
.
|
1367
|
+
params(
|
1368
|
+
end_date: T.nilable(Time),
|
1369
|
+
price_id: String,
|
1370
|
+
quantity: Float,
|
1371
|
+
start_date: Time
|
1372
|
+
).returns(T.attached_class)
|
1373
|
+
end
|
1374
|
+
def self.new(end_date:, price_id:, quantity:, start_date:)
|
1181
1375
|
end
|
1182
|
-
def self.new(end_date:, price_id:, quantity:, start_date:); end
|
1183
1376
|
|
1184
1377
|
sig do
|
1185
|
-
override.returns(
|
1378
|
+
override.returns(
|
1379
|
+
{
|
1380
|
+
end_date: T.nilable(Time),
|
1381
|
+
price_id: String,
|
1382
|
+
quantity: Float,
|
1383
|
+
start_date: Time
|
1384
|
+
}
|
1385
|
+
)
|
1386
|
+
end
|
1387
|
+
def to_hash
|
1186
1388
|
end
|
1187
|
-
def to_hash; end
|
1188
1389
|
end
|
1189
1390
|
|
1190
1391
|
class MaximumInterval < Orb::Internal::Type::BaseModel
|
1392
|
+
OrHash =
|
1393
|
+
T.type_alias do
|
1394
|
+
T.any(
|
1395
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval,
|
1396
|
+
Orb::Internal::AnyHash
|
1397
|
+
)
|
1398
|
+
end
|
1399
|
+
|
1191
1400
|
# The price ids that this maximum interval applies to.
|
1192
1401
|
sig { returns(T::Array[String]) }
|
1193
1402
|
attr_accessor :applies_to_price_ids
|
@@ -1216,8 +1425,7 @@ module Orb
|
|
1216
1425
|
end_date: T.nilable(Time),
|
1217
1426
|
maximum_amount: String,
|
1218
1427
|
start_date: Time
|
1219
|
-
)
|
1220
|
-
.returns(T.attached_class)
|
1428
|
+
).returns(T.attached_class)
|
1221
1429
|
end
|
1222
1430
|
def self.new(
|
1223
1431
|
# The price ids that this maximum interval applies to.
|
@@ -1231,23 +1439,33 @@ module Orb
|
|
1231
1439
|
maximum_amount:,
|
1232
1440
|
# The start date of the maximum interval.
|
1233
1441
|
start_date:
|
1234
|
-
)
|
1442
|
+
)
|
1443
|
+
end
|
1444
|
+
|
1235
1445
|
sig do
|
1236
|
-
override
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1446
|
+
override.returns(
|
1447
|
+
{
|
1448
|
+
applies_to_price_ids: T::Array[String],
|
1449
|
+
applies_to_price_interval_ids: T::Array[String],
|
1450
|
+
end_date: T.nilable(Time),
|
1451
|
+
maximum_amount: String,
|
1452
|
+
start_date: Time
|
1453
|
+
}
|
1454
|
+
)
|
1455
|
+
end
|
1456
|
+
def to_hash
|
1246
1457
|
end
|
1247
|
-
def to_hash; end
|
1248
1458
|
end
|
1249
1459
|
|
1250
1460
|
class MinimumInterval < Orb::Internal::Type::BaseModel
|
1461
|
+
OrHash =
|
1462
|
+
T.type_alias do
|
1463
|
+
T.any(
|
1464
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval,
|
1465
|
+
Orb::Internal::AnyHash
|
1466
|
+
)
|
1467
|
+
end
|
1468
|
+
|
1251
1469
|
# The price ids that this minimum interval applies to.
|
1252
1470
|
sig { returns(T::Array[String]) }
|
1253
1471
|
attr_accessor :applies_to_price_ids
|
@@ -1276,8 +1494,7 @@ module Orb
|
|
1276
1494
|
end_date: T.nilable(Time),
|
1277
1495
|
minimum_amount: String,
|
1278
1496
|
start_date: Time
|
1279
|
-
)
|
1280
|
-
.returns(T.attached_class)
|
1497
|
+
).returns(T.attached_class)
|
1281
1498
|
end
|
1282
1499
|
def self.new(
|
1283
1500
|
# The price ids that this minimum interval applies to.
|
@@ -1291,35 +1508,55 @@ module Orb
|
|
1291
1508
|
minimum_amount:,
|
1292
1509
|
# The start date of the minimum interval.
|
1293
1510
|
start_date:
|
1294
|
-
)
|
1511
|
+
)
|
1512
|
+
end
|
1513
|
+
|
1295
1514
|
sig do
|
1296
|
-
override
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1515
|
+
override.returns(
|
1516
|
+
{
|
1517
|
+
applies_to_price_ids: T::Array[String],
|
1518
|
+
applies_to_price_interval_ids: T::Array[String],
|
1519
|
+
end_date: T.nilable(Time),
|
1520
|
+
minimum_amount: String,
|
1521
|
+
start_date: Time
|
1522
|
+
}
|
1523
|
+
)
|
1524
|
+
end
|
1525
|
+
def to_hash
|
1306
1526
|
end
|
1307
|
-
def to_hash; end
|
1308
1527
|
end
|
1309
1528
|
|
1310
1529
|
class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
|
1530
|
+
OrHash =
|
1531
|
+
T.type_alias do
|
1532
|
+
T.any(
|
1533
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange,
|
1534
|
+
Orb::Internal::AnyHash
|
1535
|
+
)
|
1536
|
+
end
|
1537
|
+
|
1311
1538
|
sig { returns(String) }
|
1312
1539
|
attr_accessor :id
|
1313
1540
|
|
1314
1541
|
# A pending subscription change if one exists on this subscription.
|
1315
1542
|
sig { params(id: String).returns(T.attached_class) }
|
1316
|
-
def self.new(id:)
|
1543
|
+
def self.new(id:)
|
1544
|
+
end
|
1317
1545
|
|
1318
|
-
sig { override.returns({id: String}) }
|
1319
|
-
def to_hash
|
1546
|
+
sig { override.returns({ id: String }) }
|
1547
|
+
def to_hash
|
1548
|
+
end
|
1320
1549
|
end
|
1321
1550
|
|
1322
1551
|
class PriceInterval < Orb::Internal::Type::BaseModel
|
1552
|
+
OrHash =
|
1553
|
+
T.type_alias do
|
1554
|
+
T.any(
|
1555
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval,
|
1556
|
+
Orb::Internal::AnyHash
|
1557
|
+
)
|
1558
|
+
end
|
1559
|
+
|
1323
1560
|
sig { returns(String) }
|
1324
1561
|
attr_accessor :id
|
1325
1562
|
|
@@ -1374,34 +1611,34 @@ module Orb
|
|
1374
1611
|
sig do
|
1375
1612
|
returns(
|
1376
1613
|
T.any(
|
1377
|
-
Orb::
|
1378
|
-
Orb::
|
1379
|
-
Orb::
|
1380
|
-
Orb::
|
1381
|
-
Orb::
|
1382
|
-
Orb::
|
1383
|
-
Orb::
|
1384
|
-
Orb::
|
1385
|
-
Orb::
|
1386
|
-
Orb::
|
1387
|
-
Orb::
|
1388
|
-
Orb::
|
1389
|
-
Orb::
|
1390
|
-
Orb::
|
1391
|
-
Orb::
|
1392
|
-
Orb::
|
1393
|
-
Orb::
|
1394
|
-
Orb::
|
1395
|
-
Orb::
|
1396
|
-
Orb::
|
1397
|
-
Orb::
|
1398
|
-
Orb::
|
1399
|
-
Orb::
|
1400
|
-
Orb::
|
1401
|
-
Orb::
|
1402
|
-
Orb::
|
1403
|
-
Orb::
|
1404
|
-
Orb::
|
1614
|
+
Orb::Price::Unit,
|
1615
|
+
Orb::Price::Package,
|
1616
|
+
Orb::Price::Matrix,
|
1617
|
+
Orb::Price::Tiered,
|
1618
|
+
Orb::Price::TieredBps,
|
1619
|
+
Orb::Price::Bps,
|
1620
|
+
Orb::Price::BulkBps,
|
1621
|
+
Orb::Price::Bulk,
|
1622
|
+
Orb::Price::ThresholdTotalAmount,
|
1623
|
+
Orb::Price::TieredPackage,
|
1624
|
+
Orb::Price::GroupedTiered,
|
1625
|
+
Orb::Price::TieredWithMinimum,
|
1626
|
+
Orb::Price::TieredPackageWithMinimum,
|
1627
|
+
Orb::Price::PackageWithAllocation,
|
1628
|
+
Orb::Price::UnitWithPercent,
|
1629
|
+
Orb::Price::MatrixWithAllocation,
|
1630
|
+
Orb::Price::TieredWithProration,
|
1631
|
+
Orb::Price::UnitWithProration,
|
1632
|
+
Orb::Price::GroupedAllocation,
|
1633
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1634
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1635
|
+
Orb::Price::MatrixWithDisplayName,
|
1636
|
+
Orb::Price::BulkWithProration,
|
1637
|
+
Orb::Price::GroupedTieredPackage,
|
1638
|
+
Orb::Price::MaxGroupTieredPackage,
|
1639
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1640
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1641
|
+
Orb::Price::CumulativeGroupedBulk
|
1405
1642
|
)
|
1406
1643
|
)
|
1407
1644
|
end
|
@@ -1428,49 +1665,46 @@ module Orb
|
|
1428
1665
|
current_billing_period_start_date: T.nilable(Time),
|
1429
1666
|
end_date: T.nilable(Time),
|
1430
1667
|
filter: T.nilable(String),
|
1431
|
-
fixed_fee_quantity_transitions:
|
1432
|
-
T
|
1433
|
-
T
|
1434
|
-
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
Orb::Models::Price::CumulativeGroupedBulk
|
1469
|
-
),
|
1668
|
+
fixed_fee_quantity_transitions:
|
1669
|
+
T.nilable(
|
1670
|
+
T::Array[
|
1671
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition::OrHash
|
1672
|
+
]
|
1673
|
+
),
|
1674
|
+
price:
|
1675
|
+
T.any(
|
1676
|
+
Orb::Price::Unit::OrHash,
|
1677
|
+
Orb::Price::Package::OrHash,
|
1678
|
+
Orb::Price::Matrix::OrHash,
|
1679
|
+
Orb::Price::Tiered::OrHash,
|
1680
|
+
Orb::Price::TieredBps::OrHash,
|
1681
|
+
Orb::Price::Bps::OrHash,
|
1682
|
+
Orb::Price::BulkBps::OrHash,
|
1683
|
+
Orb::Price::Bulk::OrHash,
|
1684
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
1685
|
+
Orb::Price::TieredPackage::OrHash,
|
1686
|
+
Orb::Price::GroupedTiered::OrHash,
|
1687
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
1688
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
1689
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
1690
|
+
Orb::Price::UnitWithPercent::OrHash,
|
1691
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
1692
|
+
Orb::Price::TieredWithProration::OrHash,
|
1693
|
+
Orb::Price::UnitWithProration::OrHash,
|
1694
|
+
Orb::Price::GroupedAllocation::OrHash,
|
1695
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
1696
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
1697
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
1698
|
+
Orb::Price::BulkWithProration::OrHash,
|
1699
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
1700
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
1701
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
1702
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
1703
|
+
Orb::Price::CumulativeGroupedBulk::OrHash
|
1704
|
+
),
|
1470
1705
|
start_date: Time,
|
1471
1706
|
usage_customer_ids: T.nilable(T::Array[String])
|
1472
|
-
)
|
1473
|
-
.returns(T.attached_class)
|
1707
|
+
).returns(T.attached_class)
|
1474
1708
|
end
|
1475
1709
|
def self.new(
|
1476
1710
|
id:,
|
@@ -1509,60 +1743,72 @@ module Orb
|
|
1509
1743
|
# A list of customer IDs whose usage events will be aggregated and billed under
|
1510
1744
|
# this price interval.
|
1511
1745
|
usage_customer_ids:
|
1512
|
-
)
|
1746
|
+
)
|
1747
|
+
end
|
1748
|
+
|
1513
1749
|
sig do
|
1514
|
-
override
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1750
|
+
override.returns(
|
1751
|
+
{
|
1752
|
+
id: String,
|
1753
|
+
billing_cycle_day: Integer,
|
1754
|
+
current_billing_period_end_date: T.nilable(Time),
|
1755
|
+
current_billing_period_start_date: T.nilable(Time),
|
1756
|
+
end_date: T.nilable(Time),
|
1757
|
+
filter: T.nilable(String),
|
1758
|
+
fixed_fee_quantity_transitions:
|
1759
|
+
T.nilable(
|
1524
1760
|
T::Array[
|
1525
1761
|
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition
|
1526
1762
|
]
|
1527
1763
|
),
|
1528
|
-
|
1529
|
-
|
1530
|
-
Orb::
|
1531
|
-
Orb::
|
1532
|
-
Orb::
|
1533
|
-
Orb::
|
1534
|
-
Orb::
|
1535
|
-
Orb::
|
1536
|
-
Orb::
|
1537
|
-
Orb::
|
1538
|
-
Orb::
|
1539
|
-
Orb::
|
1540
|
-
Orb::
|
1541
|
-
Orb::
|
1542
|
-
Orb::
|
1543
|
-
Orb::
|
1544
|
-
Orb::
|
1545
|
-
Orb::
|
1546
|
-
Orb::
|
1547
|
-
Orb::
|
1548
|
-
Orb::
|
1549
|
-
Orb::
|
1550
|
-
Orb::
|
1551
|
-
Orb::
|
1552
|
-
Orb::
|
1553
|
-
Orb::
|
1554
|
-
Orb::
|
1555
|
-
Orb::
|
1556
|
-
Orb::
|
1764
|
+
price:
|
1765
|
+
T.any(
|
1766
|
+
Orb::Price::Unit,
|
1767
|
+
Orb::Price::Package,
|
1768
|
+
Orb::Price::Matrix,
|
1769
|
+
Orb::Price::Tiered,
|
1770
|
+
Orb::Price::TieredBps,
|
1771
|
+
Orb::Price::Bps,
|
1772
|
+
Orb::Price::BulkBps,
|
1773
|
+
Orb::Price::Bulk,
|
1774
|
+
Orb::Price::ThresholdTotalAmount,
|
1775
|
+
Orb::Price::TieredPackage,
|
1776
|
+
Orb::Price::GroupedTiered,
|
1777
|
+
Orb::Price::TieredWithMinimum,
|
1778
|
+
Orb::Price::TieredPackageWithMinimum,
|
1779
|
+
Orb::Price::PackageWithAllocation,
|
1780
|
+
Orb::Price::UnitWithPercent,
|
1781
|
+
Orb::Price::MatrixWithAllocation,
|
1782
|
+
Orb::Price::TieredWithProration,
|
1783
|
+
Orb::Price::UnitWithProration,
|
1784
|
+
Orb::Price::GroupedAllocation,
|
1785
|
+
Orb::Price::GroupedWithProratedMinimum,
|
1786
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
1787
|
+
Orb::Price::MatrixWithDisplayName,
|
1788
|
+
Orb::Price::BulkWithProration,
|
1789
|
+
Orb::Price::GroupedTieredPackage,
|
1790
|
+
Orb::Price::MaxGroupTieredPackage,
|
1791
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
1792
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
1793
|
+
Orb::Price::CumulativeGroupedBulk
|
1557
1794
|
),
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1795
|
+
start_date: Time,
|
1796
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
1797
|
+
}
|
1798
|
+
)
|
1799
|
+
end
|
1800
|
+
def to_hash
|
1562
1801
|
end
|
1563
|
-
def to_hash; end
|
1564
1802
|
|
1565
1803
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
1804
|
+
OrHash =
|
1805
|
+
T.type_alias do
|
1806
|
+
T.any(
|
1807
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition,
|
1808
|
+
Orb::Internal::AnyHash
|
1809
|
+
)
|
1810
|
+
end
|
1811
|
+
|
1566
1812
|
sig { returns(Time) }
|
1567
1813
|
attr_accessor :effective_date
|
1568
1814
|
|
@@ -1572,15 +1818,35 @@ module Orb
|
|
1572
1818
|
sig { returns(Integer) }
|
1573
1819
|
attr_accessor :quantity
|
1574
1820
|
|
1575
|
-
sig
|
1576
|
-
|
1821
|
+
sig do
|
1822
|
+
params(
|
1823
|
+
effective_date: Time,
|
1824
|
+
price_id: String,
|
1825
|
+
quantity: Integer
|
1826
|
+
).returns(T.attached_class)
|
1827
|
+
end
|
1828
|
+
def self.new(effective_date:, price_id:, quantity:)
|
1829
|
+
end
|
1577
1830
|
|
1578
|
-
sig
|
1579
|
-
|
1831
|
+
sig do
|
1832
|
+
override.returns(
|
1833
|
+
{ effective_date: Time, price_id: String, quantity: Integer }
|
1834
|
+
)
|
1835
|
+
end
|
1836
|
+
def to_hash
|
1837
|
+
end
|
1580
1838
|
end
|
1581
1839
|
end
|
1582
1840
|
|
1583
1841
|
class RedeemedCoupon < Orb::Internal::Type::BaseModel
|
1842
|
+
OrHash =
|
1843
|
+
T.type_alias do
|
1844
|
+
T.any(
|
1845
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon,
|
1846
|
+
Orb::Internal::AnyHash
|
1847
|
+
)
|
1848
|
+
end
|
1849
|
+
|
1584
1850
|
sig { returns(String) }
|
1585
1851
|
attr_accessor :coupon_id
|
1586
1852
|
|
@@ -1591,63 +1857,107 @@ module Orb
|
|
1591
1857
|
attr_accessor :start_date
|
1592
1858
|
|
1593
1859
|
sig do
|
1594
|
-
params(
|
1860
|
+
params(
|
1861
|
+
coupon_id: String,
|
1862
|
+
end_date: T.nilable(Time),
|
1863
|
+
start_date: Time
|
1864
|
+
).returns(T.attached_class)
|
1865
|
+
end
|
1866
|
+
def self.new(coupon_id:, end_date:, start_date:)
|
1595
1867
|
end
|
1596
|
-
def self.new(coupon_id:, end_date:, start_date:); end
|
1597
1868
|
|
1598
|
-
sig
|
1599
|
-
|
1869
|
+
sig do
|
1870
|
+
override.returns(
|
1871
|
+
{ coupon_id: String, end_date: T.nilable(Time), start_date: Time }
|
1872
|
+
)
|
1873
|
+
end
|
1874
|
+
def to_hash
|
1875
|
+
end
|
1600
1876
|
end
|
1601
1877
|
|
1602
1878
|
module Status
|
1603
1879
|
extend Orb::Internal::Type::Enum
|
1604
1880
|
|
1605
1881
|
TaggedSymbol =
|
1606
|
-
T.type_alias
|
1882
|
+
T.type_alias do
|
1883
|
+
T.all(
|
1884
|
+
Symbol,
|
1885
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status
|
1886
|
+
)
|
1887
|
+
end
|
1607
1888
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1608
1889
|
|
1609
1890
|
ACTIVE =
|
1610
|
-
T.let(
|
1891
|
+
T.let(
|
1892
|
+
:active,
|
1893
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1894
|
+
)
|
1611
1895
|
ENDED =
|
1612
|
-
T.let(
|
1896
|
+
T.let(
|
1897
|
+
:ended,
|
1898
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1899
|
+
)
|
1613
1900
|
UPCOMING =
|
1614
|
-
T.let(
|
1901
|
+
T.let(
|
1902
|
+
:upcoming,
|
1903
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1904
|
+
)
|
1615
1905
|
|
1616
1906
|
sig do
|
1617
|
-
override
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1907
|
+
override.returns(
|
1908
|
+
T::Array[
|
1909
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol
|
1910
|
+
]
|
1911
|
+
)
|
1912
|
+
end
|
1913
|
+
def self.values
|
1621
1914
|
end
|
1622
|
-
def self.values; end
|
1623
1915
|
end
|
1624
1916
|
|
1625
1917
|
class TrialInfo < Orb::Internal::Type::BaseModel
|
1918
|
+
OrHash =
|
1919
|
+
T.type_alias do
|
1920
|
+
T.any(
|
1921
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo,
|
1922
|
+
Orb::Internal::AnyHash
|
1923
|
+
)
|
1924
|
+
end
|
1925
|
+
|
1626
1926
|
sig { returns(T.nilable(Time)) }
|
1627
1927
|
attr_accessor :end_date
|
1628
1928
|
|
1629
1929
|
sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
|
1630
|
-
def self.new(end_date:)
|
1930
|
+
def self.new(end_date:)
|
1931
|
+
end
|
1631
1932
|
|
1632
|
-
sig { override.returns({end_date: T.nilable(Time)}) }
|
1633
|
-
def to_hash
|
1933
|
+
sig { override.returns({ end_date: T.nilable(Time) }) }
|
1934
|
+
def to_hash
|
1935
|
+
end
|
1634
1936
|
end
|
1635
1937
|
|
1636
1938
|
class ChangedResources < Orb::Internal::Type::BaseModel
|
1939
|
+
OrHash =
|
1940
|
+
T.type_alias do
|
1941
|
+
T.any(
|
1942
|
+
Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources,
|
1943
|
+
Orb::Internal::AnyHash
|
1944
|
+
)
|
1945
|
+
end
|
1946
|
+
|
1637
1947
|
# The credit notes that were created as part of this operation.
|
1638
|
-
sig { returns(T::Array[Orb::
|
1948
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1639
1949
|
attr_accessor :created_credit_notes
|
1640
1950
|
|
1641
1951
|
# The invoices that were created as part of this operation.
|
1642
|
-
sig { returns(T::Array[Orb::
|
1952
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1643
1953
|
attr_accessor :created_invoices
|
1644
1954
|
|
1645
1955
|
# The credit notes that were voided as part of this operation.
|
1646
|
-
sig { returns(T::Array[Orb::
|
1956
|
+
sig { returns(T::Array[Orb::CreditNote]) }
|
1647
1957
|
attr_accessor :voided_credit_notes
|
1648
1958
|
|
1649
1959
|
# The invoices that were voided as part of this operation.
|
1650
|
-
sig { returns(T::Array[Orb::
|
1960
|
+
sig { returns(T::Array[Orb::Invoice]) }
|
1651
1961
|
attr_accessor :voided_invoices
|
1652
1962
|
|
1653
1963
|
# The resources that were changed as part of this operation. Only present when
|
@@ -1655,12 +1965,11 @@ module Orb
|
|
1655
1965
|
# `include_changed_resources` parameter was passed in the request.
|
1656
1966
|
sig do
|
1657
1967
|
params(
|
1658
|
-
created_credit_notes: T::Array[
|
1659
|
-
created_invoices: T::Array[
|
1660
|
-
voided_credit_notes: T::Array[
|
1661
|
-
voided_invoices: T::Array[
|
1662
|
-
)
|
1663
|
-
.returns(T.attached_class)
|
1968
|
+
created_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
1969
|
+
created_invoices: T::Array[Orb::Invoice::OrHash],
|
1970
|
+
voided_credit_notes: T::Array[Orb::CreditNote::OrHash],
|
1971
|
+
voided_invoices: T::Array[Orb::Invoice::OrHash]
|
1972
|
+
).returns(T.attached_class)
|
1664
1973
|
end
|
1665
1974
|
def self.new(
|
1666
1975
|
# The credit notes that were created as part of this operation.
|
@@ -1671,19 +1980,21 @@ module Orb
|
|
1671
1980
|
voided_credit_notes:,
|
1672
1981
|
# The invoices that were voided as part of this operation.
|
1673
1982
|
voided_invoices:
|
1674
|
-
)
|
1983
|
+
)
|
1984
|
+
end
|
1985
|
+
|
1675
1986
|
sig do
|
1676
|
-
override
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1987
|
+
override.returns(
|
1988
|
+
{
|
1989
|
+
created_credit_notes: T::Array[Orb::CreditNote],
|
1990
|
+
created_invoices: T::Array[Orb::Invoice],
|
1991
|
+
voided_credit_notes: T::Array[Orb::CreditNote],
|
1992
|
+
voided_invoices: T::Array[Orb::Invoice]
|
1993
|
+
}
|
1994
|
+
)
|
1995
|
+
end
|
1996
|
+
def to_hash
|
1685
1997
|
end
|
1686
|
-
def to_hash; end
|
1687
1998
|
end
|
1688
1999
|
end
|
1689
2000
|
end
|