orb-billing 0.3.0 → 0.3.1
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 +33 -0
- data/README.md +5 -5
- data/lib/orb/errors.rb +9 -9
- data/lib/orb/internal/page.rb +3 -3
- data/lib/orb/internal/transport/base_client.rb +3 -3
- data/lib/orb/internal/type/base_model.rb +1 -9
- data/lib/orb/internal/type/boolean.rb +10 -11
- data/lib/orb/internal/type/enum.rb +10 -11
- data/lib/orb/internal/type/request_parameters.rb +2 -8
- data/lib/orb/internal/type/unknown.rb +10 -11
- data/lib/orb/internal/util.rb +20 -4
- data/lib/orb/models/coupon_create_params.rb +7 -7
- data/lib/orb/models/customer_create_params.rb +7 -7
- data/lib/orb/models/customer_update_by_external_id_params.rb +7 -9
- data/lib/orb/models/customer_update_params.rb +7 -7
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
- data/lib/orb/models/customers/cost_list_response.rb +2 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +106 -107
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +111 -119
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +110 -114
- data/lib/orb/models/customers/credits/ledger_list_response.rb +112 -124
- data/lib/orb/models/invoice.rb +50 -64
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +51 -55
- data/lib/orb/models/invoice_line_item_create_response.rb +54 -57
- data/lib/orb/models/plan.rb +20 -23
- data/lib/orb/models/plan_create_params.rb +635 -670
- data/lib/orb/models/price.rb +1547 -1599
- data/lib/orb/models/subscription.rb +35 -41
- data/lib/orb/models/subscription_cancel_response.rb +33 -36
- data/lib/orb/models/subscription_change_apply_response.rb +31 -32
- data/lib/orb/models/subscription_change_cancel_response.rb +31 -31
- data/lib/orb/models/subscription_change_retrieve_response.rb +31 -31
- data/lib/orb/models/subscription_create_params.rb +1316 -1367
- data/lib/orb/models/subscription_create_response.rb +33 -36
- data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
- data/lib/orb/models/subscription_price_intervals_params.rb +748 -774
- data/lib/orb/models/subscription_price_intervals_response.rb +32 -35
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1299 -1354
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +31 -33
- data/lib/orb/models/subscription_trigger_phase_response.rb +32 -35
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +31 -33
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +31 -31
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +31 -31
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +31 -33
- data/lib/orb/models/subscription_update_trial_response.rb +33 -36
- data/lib/orb/models.rb +220 -0
- data/lib/orb/request_options.rb +4 -5
- data/lib/orb/resources/coupons.rb +1 -1
- data/lib/orb/resources/customers/credits/ledger.rb +4 -4
- data/lib/orb/resources/customers.rb +3 -3
- data/lib/orb/resources/plans.rb +1 -1
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +4 -4
- data/lib/orb/version.rb +1 -1
- data/rbi/{lib/orb → orb}/errors.rbi +1 -1
- data/rbi/{lib/orb → orb}/internal/transport/base_client.rbi +2 -2
- data/rbi/{lib/orb → orb}/internal/type/request_parameters.rbi +1 -1
- data/rbi/{lib/orb → orb}/internal/util.rbi +5 -1
- data/rbi/{lib/orb → orb}/models/coupon_create_params.rbi +9 -9
- data/rbi/{lib/orb → orb}/models/customer_create_params.rbi +9 -9
- data/rbi/{lib/orb → orb}/models/customer_update_by_external_id_params.rbi +9 -9
- data/rbi/{lib/orb → orb}/models/customer_update_params.rbi +9 -9
- data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_response.rbi +84 -84
- data/rbi/{lib/orb → orb}/models/customers/cost_list_response.rbi +84 -84
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_response.rbi → orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi} +122 -114
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi → orb/models/customers/credits/ledger_create_entry_response.rbi} +114 -216
- data/rbi/{lib/orb/models/customers/credits/ledger_list_response.rbi → orb/models/customers/credits/ledger_list_by_external_id_response.rbi} +114 -114
- data/rbi/{lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi → orb/models/customers/credits/ledger_list_response.rbi} +114 -271
- data/rbi/{lib/orb → orb}/models/invoice.rbi +138 -156
- data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_response.rbi +138 -150
- data/rbi/{lib/orb → orb}/models/invoice_line_item_create_response.rbi +138 -162
- data/rbi/{lib/orb → orb}/models/plan.rbi +105 -105
- data/rbi/{lib/orb → orb}/models/plan_create_params.rbi +973 -1734
- data/rbi/{lib/orb → orb}/models/price.rbi +1875 -2267
- data/rbi/{lib/orb → orb}/models/subscription.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_cancel_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_change_apply_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_change_cancel_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_create_params.rbi +1988 -2733
- data/rbi/{lib/orb → orb}/models/subscription_create_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_response.rbi +84 -84
- data/rbi/{lib/orb → orb}/models/subscription_price_intervals_params.rbi +1125 -1455
- data/rbi/{lib/orb → orb}/models/subscription_price_intervals_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_params.rbi +1988 -2210
- data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_response.rbi +118 -118
- data/rbi/{lib/orb → orb}/models/subscription_update_trial_response.rbi +118 -118
- data/rbi/orb/models.rbi +220 -0
- data/rbi/{lib/orb → orb}/request_options.rbi +2 -0
- data/rbi/{lib/orb → orb}/resources/alerts.rbi +8 -14
- data/rbi/{lib/orb → orb}/resources/coupons/subscriptions.rbi +1 -1
- data/rbi/{lib/orb → orb}/resources/coupons.rbi +6 -18
- data/rbi/{lib/orb → orb}/resources/credit_notes.rbi +3 -9
- data/rbi/{lib/orb → orb}/resources/customers/balance_transactions.rbi +2 -2
- data/rbi/{lib/orb → orb}/resources/customers/costs.rbi +2 -2
- data/rbi/{lib/orb → orb}/resources/customers/credits/ledger.rbi +32 -32
- data/rbi/{lib/orb → orb}/resources/customers/credits/top_ups.rbi +6 -18
- data/rbi/{lib/orb → orb}/resources/customers/credits.rbi +2 -2
- data/rbi/{lib/orb → orb}/resources/customers.rbi +15 -45
- data/rbi/{lib/orb → orb}/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +1 -4
- data/rbi/{lib/orb → orb}/resources/dimensional_price_groups.rbi +3 -10
- data/rbi/{lib/orb → orb}/resources/events/backfills.rbi +5 -18
- data/rbi/{lib/orb → orb}/resources/events/volume.rbi +1 -1
- data/rbi/{lib/orb → orb}/resources/events.rbi +4 -10
- data/rbi/{lib/orb → orb}/resources/invoice_line_items.rbi +1 -1
- data/rbi/{lib/orb → orb}/resources/invoices.rbi +9 -34
- data/rbi/{lib/orb → orb}/resources/items.rbi +4 -17
- data/rbi/{lib/orb → orb}/resources/metrics.rbi +4 -10
- data/rbi/{lib/orb → orb}/resources/plans/external_plan_id.rbi +2 -8
- data/rbi/{lib/orb → orb}/resources/plans.rbi +29 -35
- data/rbi/orb/resources/prices/external_price_id.rbi +103 -0
- data/rbi/{lib/orb → orb}/resources/prices.rbi +117 -124
- data/rbi/{lib/orb → orb}/resources/subscription_changes.rbi +3 -9
- data/rbi/{lib/orb → orb}/resources/subscriptions.rbi +16 -32
- data/rbi/{lib/orb → orb}/resources/top_level.rbi +1 -4
- data/sig/orb/internal/util.rbs +2 -0
- data/sig/orb/models/coupon_create_params.rbs +9 -10
- data/sig/orb/models/customer_create_params.rbs +9 -10
- data/sig/orb/models/customer_update_by_external_id_params.rbs +9 -10
- data/sig/orb/models/customer_update_params.rbs +9 -10
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +113 -113
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +113 -113
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +113 -113
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +113 -113
- data/sig/orb/models/invoice.rbs +54 -54
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -54
- data/sig/orb/models/invoice_line_item_create_response.rbs +54 -54
- data/sig/orb/models/plan.rbs +21 -21
- data/sig/orb/models/plan_create_params.rbs +653 -653
- data/sig/orb/models/price.rbs +1517 -1521
- data/sig/orb/models/subscription.rbs +34 -34
- data/sig/orb/models/subscription_cancel_response.rbs +34 -34
- data/sig/orb/models/subscription_change_apply_response.rbs +34 -34
- data/sig/orb/models/subscription_change_cancel_response.rbs +34 -34
- data/sig/orb/models/subscription_change_retrieve_response.rbs +34 -34
- data/sig/orb/models/subscription_create_params.rbs +1348 -1348
- data/sig/orb/models/subscription_create_response.rbs +34 -34
- data/sig/orb/models/subscription_price_intervals_params.rbs +767 -769
- data/sig/orb/models/subscription_price_intervals_response.rbs +34 -34
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1348 -1348
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +34 -34
- data/sig/orb/models/subscription_trigger_phase_response.rbs +34 -34
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +34 -34
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +34 -34
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +34 -34
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +34 -34
- data/sig/orb/models/subscription_update_trial_response.rbs +34 -34
- data/sig/orb/models.rbs +215 -0
- metadata +226 -223
- data/rbi/lib/orb/resources/prices/external_price_id.rbi +0 -106
- data/rbi/{lib/orb → orb}/client.rbi +0 -0
- data/rbi/{lib/orb → orb}/file_part.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/page.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/transport/pooled_net_requester.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/array_of.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/base_model.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/base_page.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/boolean.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/converter.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/enum.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/file_input.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/hash_of.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/union.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal/type/unknown.rbi +0 -0
- data/rbi/{lib/orb → orb}/internal.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_create_for_customer_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_create_for_external_customer_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_create_for_subscription_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_disable_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_enable_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_retrieve_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/alert_update_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/amount_discount.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/billable_metric.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/billing_cycle_relative_date.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/coupon.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/coupon_archive_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/coupon_fetch_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/coupon_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/coupons/subscription_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/credit_note.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/credit_note_create_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/credit_note_fetch_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/credit_note_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customer.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customer_delete_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customer_fetch_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customer_fetch_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customer_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/cost_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credit_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credit_list_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/dimensional_price_group.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/dimensional_price_group_create_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/dimensional_price_group_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/dimensional_price_group_retrieve_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/dimensional_price_groups.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/discount.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/evaluate_price_group.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_deprecate_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_deprecate_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_ingest_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_ingest_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_search_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_search_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_update_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/event_update_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_close_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_close_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_create_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_create_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_fetch_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_fetch_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_list_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_list_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_revert_params.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_revert_response.rbi +0 -0
- data/rbi/{lib/orb → orb}/models/events/event_volumes.rbi +2 -2
- /data/rbi/{lib/orb → orb}/models/events/volume_list_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_create_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_issue_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_level_discount.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_line_item_create_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_list_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_mark_paid_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_pay_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_void_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/item.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/item_create_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/item_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/item_list_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/item_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/metric_create_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/metric_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/metric_list_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/metric_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/pagination_metadata.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/percentage_discount.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/plan_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/plan_list_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/plan_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_create_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_evaluate_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_evaluate_response.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_list_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/prices/external_price_id_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/prices/external_price_id_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_cancel_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_change_apply_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_change_cancel_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_response.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_fetch_usage_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_list_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_update_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_update_trial_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_usage.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscriptions.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/top_level_ping_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/top_level_ping_response.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/trial_discount.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/usage_discount.rbi +0 -0
- /data/rbi/{lib/orb → orb}/version.rbi +0 -0
@@ -145,16 +145,16 @@ module Orb
|
|
145
145
|
def to_hash: -> Orb::Models::Subscription::adjustment_interval
|
146
146
|
|
147
147
|
type adjustment =
|
148
|
-
Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
149
|
-
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
150
|
-
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
151
|
-
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
152
|
-
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
148
|
+
Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount
|
149
|
+
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount
|
150
|
+
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount
|
151
|
+
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum
|
152
|
+
| Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum
|
153
153
|
|
154
154
|
module Adjustment
|
155
155
|
extend Orb::Internal::Type::Union
|
156
156
|
|
157
|
-
type
|
157
|
+
type usage_discount =
|
158
158
|
{
|
159
159
|
id: String,
|
160
160
|
adjustment_type: :usage_discount,
|
@@ -165,7 +165,7 @@ module Orb
|
|
165
165
|
usage_discount: Float
|
166
166
|
}
|
167
167
|
|
168
|
-
class
|
168
|
+
class UsageDiscount < Orb::Internal::Type::BaseModel
|
169
169
|
attr_accessor id: String
|
170
170
|
|
171
171
|
attr_accessor adjustment_type: :usage_discount
|
@@ -190,10 +190,10 @@ module Orb
|
|
190
190
|
?adjustment_type: :usage_discount
|
191
191
|
) -> void
|
192
192
|
|
193
|
-
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
193
|
+
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::usage_discount
|
194
194
|
end
|
195
195
|
|
196
|
-
type
|
196
|
+
type amount_discount =
|
197
197
|
{
|
198
198
|
id: String,
|
199
199
|
adjustment_type: :amount_discount,
|
@@ -204,7 +204,7 @@ module Orb
|
|
204
204
|
reason: String?
|
205
205
|
}
|
206
206
|
|
207
|
-
class
|
207
|
+
class AmountDiscount < Orb::Internal::Type::BaseModel
|
208
208
|
attr_accessor id: String
|
209
209
|
|
210
210
|
attr_accessor adjustment_type: :amount_discount
|
@@ -229,10 +229,10 @@ module Orb
|
|
229
229
|
?adjustment_type: :amount_discount
|
230
230
|
) -> void
|
231
231
|
|
232
|
-
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
232
|
+
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::amount_discount
|
233
233
|
end
|
234
234
|
|
235
|
-
type
|
235
|
+
type percentage_discount =
|
236
236
|
{
|
237
237
|
id: String,
|
238
238
|
adjustment_type: :percentage_discount,
|
@@ -243,7 +243,7 @@ module Orb
|
|
243
243
|
reason: String?
|
244
244
|
}
|
245
245
|
|
246
|
-
class
|
246
|
+
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
247
247
|
attr_accessor id: String
|
248
248
|
|
249
249
|
attr_accessor adjustment_type: :percentage_discount
|
@@ -268,10 +268,10 @@ module Orb
|
|
268
268
|
?adjustment_type: :percentage_discount
|
269
269
|
) -> void
|
270
270
|
|
271
|
-
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
271
|
+
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::percentage_discount
|
272
272
|
end
|
273
273
|
|
274
|
-
type
|
274
|
+
type minimum =
|
275
275
|
{
|
276
276
|
id: String,
|
277
277
|
adjustment_type: :minimum,
|
@@ -283,7 +283,7 @@ module Orb
|
|
283
283
|
reason: String?
|
284
284
|
}
|
285
285
|
|
286
|
-
class
|
286
|
+
class Minimum < Orb::Internal::Type::BaseModel
|
287
287
|
attr_accessor id: String
|
288
288
|
|
289
289
|
attr_accessor adjustment_type: :minimum
|
@@ -311,10 +311,10 @@ module Orb
|
|
311
311
|
?adjustment_type: :minimum
|
312
312
|
) -> void
|
313
313
|
|
314
|
-
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
314
|
+
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::minimum
|
315
315
|
end
|
316
316
|
|
317
|
-
type
|
317
|
+
type maximum =
|
318
318
|
{
|
319
319
|
id: String,
|
320
320
|
adjustment_type: :maximum,
|
@@ -325,7 +325,7 @@ module Orb
|
|
325
325
|
reason: String?
|
326
326
|
}
|
327
327
|
|
328
|
-
class
|
328
|
+
class Maximum < Orb::Internal::Type::BaseModel
|
329
329
|
attr_accessor id: String
|
330
330
|
|
331
331
|
attr_accessor adjustment_type: :maximum
|
@@ -350,10 +350,10 @@ module Orb
|
|
350
350
|
?adjustment_type: :maximum
|
351
351
|
) -> void
|
352
352
|
|
353
|
-
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
353
|
+
def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::maximum
|
354
354
|
end
|
355
355
|
|
356
|
-
def self?.variants: -> [Orb::Models::Subscription::AdjustmentInterval::Adjustment::
|
356
|
+
def self?.variants: -> [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum]
|
357
357
|
end
|
358
358
|
end
|
359
359
|
|
@@ -377,14 +377,14 @@ module Orb
|
|
377
377
|
end
|
378
378
|
|
379
379
|
type discount_interval =
|
380
|
-
Orb::Models::Subscription::DiscountInterval::
|
381
|
-
| Orb::Models::Subscription::DiscountInterval::
|
382
|
-
| Orb::Models::Subscription::DiscountInterval::
|
380
|
+
Orb::Models::Subscription::DiscountInterval::Amount
|
381
|
+
| Orb::Models::Subscription::DiscountInterval::Percentage
|
382
|
+
| Orb::Models::Subscription::DiscountInterval::Usage
|
383
383
|
|
384
384
|
module DiscountInterval
|
385
385
|
extend Orb::Internal::Type::Union
|
386
386
|
|
387
|
-
type
|
387
|
+
type amount =
|
388
388
|
{
|
389
389
|
amount_discount: String,
|
390
390
|
applies_to_price_ids: ::Array[String],
|
@@ -394,7 +394,7 @@ module Orb
|
|
394
394
|
start_date: Time
|
395
395
|
}
|
396
396
|
|
397
|
-
class
|
397
|
+
class Amount < Orb::Internal::Type::BaseModel
|
398
398
|
attr_accessor amount_discount: String
|
399
399
|
|
400
400
|
attr_accessor applies_to_price_ids: ::Array[String]
|
@@ -416,10 +416,10 @@ module Orb
|
|
416
416
|
?discount_type: :amount
|
417
417
|
) -> void
|
418
418
|
|
419
|
-
def to_hash: -> Orb::Models::Subscription::DiscountInterval::
|
419
|
+
def to_hash: -> Orb::Models::Subscription::DiscountInterval::amount
|
420
420
|
end
|
421
421
|
|
422
|
-
type
|
422
|
+
type percentage =
|
423
423
|
{
|
424
424
|
applies_to_price_ids: ::Array[String],
|
425
425
|
applies_to_price_interval_ids: ::Array[String],
|
@@ -429,7 +429,7 @@ module Orb
|
|
429
429
|
start_date: Time
|
430
430
|
}
|
431
431
|
|
432
|
-
class
|
432
|
+
class Percentage < Orb::Internal::Type::BaseModel
|
433
433
|
attr_accessor applies_to_price_ids: ::Array[String]
|
434
434
|
|
435
435
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
@@ -451,10 +451,10 @@ module Orb
|
|
451
451
|
?discount_type: :percentage
|
452
452
|
) -> void
|
453
453
|
|
454
|
-
def to_hash: -> Orb::Models::Subscription::DiscountInterval::
|
454
|
+
def to_hash: -> Orb::Models::Subscription::DiscountInterval::percentage
|
455
455
|
end
|
456
456
|
|
457
|
-
type
|
457
|
+
type usage =
|
458
458
|
{
|
459
459
|
applies_to_price_ids: ::Array[String],
|
460
460
|
applies_to_price_interval_ids: ::Array[String],
|
@@ -464,7 +464,7 @@ module Orb
|
|
464
464
|
usage_discount: Float
|
465
465
|
}
|
466
466
|
|
467
|
-
class
|
467
|
+
class Usage < Orb::Internal::Type::BaseModel
|
468
468
|
attr_accessor applies_to_price_ids: ::Array[String]
|
469
469
|
|
470
470
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
@@ -486,10 +486,10 @@ module Orb
|
|
486
486
|
?discount_type: :usage
|
487
487
|
) -> void
|
488
488
|
|
489
|
-
def to_hash: -> Orb::Models::Subscription::DiscountInterval::
|
489
|
+
def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage
|
490
490
|
end
|
491
491
|
|
492
|
-
def self?.variants: -> [Orb::Models::Subscription::DiscountInterval::
|
492
|
+
def self?.variants: -> [Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage]
|
493
493
|
end
|
494
494
|
|
495
495
|
type fixed_fee_quantity_schedule =
|
@@ -149,16 +149,16 @@ module Orb
|
|
149
149
|
def to_hash: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval
|
150
150
|
|
151
151
|
type adjustment =
|
152
|
-
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
153
|
-
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
154
|
-
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
155
|
-
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
156
|
-
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
152
|
+
Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount
|
153
|
+
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount
|
154
|
+
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount
|
155
|
+
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum
|
156
|
+
| Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum
|
157
157
|
|
158
158
|
module Adjustment
|
159
159
|
extend Orb::Internal::Type::Union
|
160
160
|
|
161
|
-
type
|
161
|
+
type usage_discount =
|
162
162
|
{
|
163
163
|
id: String,
|
164
164
|
adjustment_type: :usage_discount,
|
@@ -169,7 +169,7 @@ module Orb
|
|
169
169
|
usage_discount: Float
|
170
170
|
}
|
171
171
|
|
172
|
-
class
|
172
|
+
class UsageDiscount < Orb::Internal::Type::BaseModel
|
173
173
|
attr_accessor id: String
|
174
174
|
|
175
175
|
attr_accessor adjustment_type: :usage_discount
|
@@ -194,10 +194,10 @@ module Orb
|
|
194
194
|
?adjustment_type: :usage_discount
|
195
195
|
) -> void
|
196
196
|
|
197
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
197
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::usage_discount
|
198
198
|
end
|
199
199
|
|
200
|
-
type
|
200
|
+
type amount_discount =
|
201
201
|
{
|
202
202
|
id: String,
|
203
203
|
adjustment_type: :amount_discount,
|
@@ -208,7 +208,7 @@ module Orb
|
|
208
208
|
reason: String?
|
209
209
|
}
|
210
210
|
|
211
|
-
class
|
211
|
+
class AmountDiscount < Orb::Internal::Type::BaseModel
|
212
212
|
attr_accessor id: String
|
213
213
|
|
214
214
|
attr_accessor adjustment_type: :amount_discount
|
@@ -233,10 +233,10 @@ module Orb
|
|
233
233
|
?adjustment_type: :amount_discount
|
234
234
|
) -> void
|
235
235
|
|
236
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
236
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::amount_discount
|
237
237
|
end
|
238
238
|
|
239
|
-
type
|
239
|
+
type percentage_discount =
|
240
240
|
{
|
241
241
|
id: String,
|
242
242
|
adjustment_type: :percentage_discount,
|
@@ -247,7 +247,7 @@ module Orb
|
|
247
247
|
reason: String?
|
248
248
|
}
|
249
249
|
|
250
|
-
class
|
250
|
+
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
251
251
|
attr_accessor id: String
|
252
252
|
|
253
253
|
attr_accessor adjustment_type: :percentage_discount
|
@@ -272,10 +272,10 @@ module Orb
|
|
272
272
|
?adjustment_type: :percentage_discount
|
273
273
|
) -> void
|
274
274
|
|
275
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
275
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::percentage_discount
|
276
276
|
end
|
277
277
|
|
278
|
-
type
|
278
|
+
type minimum =
|
279
279
|
{
|
280
280
|
id: String,
|
281
281
|
adjustment_type: :minimum,
|
@@ -287,7 +287,7 @@ module Orb
|
|
287
287
|
reason: String?
|
288
288
|
}
|
289
289
|
|
290
|
-
class
|
290
|
+
class Minimum < Orb::Internal::Type::BaseModel
|
291
291
|
attr_accessor id: String
|
292
292
|
|
293
293
|
attr_accessor adjustment_type: :minimum
|
@@ -315,10 +315,10 @@ module Orb
|
|
315
315
|
?adjustment_type: :minimum
|
316
316
|
) -> void
|
317
317
|
|
318
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
318
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::minimum
|
319
319
|
end
|
320
320
|
|
321
|
-
type
|
321
|
+
type maximum =
|
322
322
|
{
|
323
323
|
id: String,
|
324
324
|
adjustment_type: :maximum,
|
@@ -329,7 +329,7 @@ module Orb
|
|
329
329
|
reason: String?
|
330
330
|
}
|
331
331
|
|
332
|
-
class
|
332
|
+
class Maximum < Orb::Internal::Type::BaseModel
|
333
333
|
attr_accessor id: String
|
334
334
|
|
335
335
|
attr_accessor adjustment_type: :maximum
|
@@ -354,10 +354,10 @@ module Orb
|
|
354
354
|
?adjustment_type: :maximum
|
355
355
|
) -> void
|
356
356
|
|
357
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
357
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::maximum
|
358
358
|
end
|
359
359
|
|
360
|
-
def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::
|
360
|
+
def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum]
|
361
361
|
end
|
362
362
|
end
|
363
363
|
|
@@ -381,14 +381,14 @@ module Orb
|
|
381
381
|
end
|
382
382
|
|
383
383
|
type discount_interval =
|
384
|
-
Orb::Models::SubscriptionCancelResponse::DiscountInterval::
|
385
|
-
| Orb::Models::SubscriptionCancelResponse::DiscountInterval::
|
386
|
-
| Orb::Models::SubscriptionCancelResponse::DiscountInterval::
|
384
|
+
Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount
|
385
|
+
| Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage
|
386
|
+
| Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage
|
387
387
|
|
388
388
|
module DiscountInterval
|
389
389
|
extend Orb::Internal::Type::Union
|
390
390
|
|
391
|
-
type
|
391
|
+
type amount =
|
392
392
|
{
|
393
393
|
amount_discount: String,
|
394
394
|
applies_to_price_ids: ::Array[String],
|
@@ -398,7 +398,7 @@ module Orb
|
|
398
398
|
start_date: Time
|
399
399
|
}
|
400
400
|
|
401
|
-
class
|
401
|
+
class Amount < Orb::Internal::Type::BaseModel
|
402
402
|
attr_accessor amount_discount: String
|
403
403
|
|
404
404
|
attr_accessor applies_to_price_ids: ::Array[String]
|
@@ -420,10 +420,10 @@ module Orb
|
|
420
420
|
?discount_type: :amount
|
421
421
|
) -> void
|
422
422
|
|
423
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::
|
423
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount
|
424
424
|
end
|
425
425
|
|
426
|
-
type
|
426
|
+
type percentage =
|
427
427
|
{
|
428
428
|
applies_to_price_ids: ::Array[String],
|
429
429
|
applies_to_price_interval_ids: ::Array[String],
|
@@ -433,7 +433,7 @@ module Orb
|
|
433
433
|
start_date: Time
|
434
434
|
}
|
435
435
|
|
436
|
-
class
|
436
|
+
class Percentage < Orb::Internal::Type::BaseModel
|
437
437
|
attr_accessor applies_to_price_ids: ::Array[String]
|
438
438
|
|
439
439
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
@@ -455,10 +455,10 @@ module Orb
|
|
455
455
|
?discount_type: :percentage
|
456
456
|
) -> void
|
457
457
|
|
458
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::
|
458
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage
|
459
459
|
end
|
460
460
|
|
461
|
-
type
|
461
|
+
type usage =
|
462
462
|
{
|
463
463
|
applies_to_price_ids: ::Array[String],
|
464
464
|
applies_to_price_interval_ids: ::Array[String],
|
@@ -468,7 +468,7 @@ module Orb
|
|
468
468
|
usage_discount: Float
|
469
469
|
}
|
470
470
|
|
471
|
-
class
|
471
|
+
class Usage < Orb::Internal::Type::BaseModel
|
472
472
|
attr_accessor applies_to_price_ids: ::Array[String]
|
473
473
|
|
474
474
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
@@ -490,10 +490,10 @@ module Orb
|
|
490
490
|
?discount_type: :usage
|
491
491
|
) -> void
|
492
492
|
|
493
|
-
def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::
|
493
|
+
def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage
|
494
494
|
end
|
495
495
|
|
496
|
-
def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::
|
496
|
+
def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage]
|
497
497
|
end
|
498
498
|
|
499
499
|
type fixed_fee_quantity_schedule =
|
@@ -195,16 +195,16 @@ module Orb
|
|
195
195
|
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::adjustment_interval
|
196
196
|
|
197
197
|
type adjustment =
|
198
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
199
|
-
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
200
|
-
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
201
|
-
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
202
|
-
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
198
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount
|
199
|
+
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount
|
200
|
+
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount
|
201
|
+
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum
|
202
|
+
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
|
203
203
|
|
204
204
|
module Adjustment
|
205
205
|
extend Orb::Internal::Type::Union
|
206
206
|
|
207
|
-
type
|
207
|
+
type usage_discount =
|
208
208
|
{
|
209
209
|
id: String,
|
210
210
|
adjustment_type: :usage_discount,
|
@@ -215,7 +215,7 @@ module Orb
|
|
215
215
|
usage_discount: Float
|
216
216
|
}
|
217
217
|
|
218
|
-
class
|
218
|
+
class UsageDiscount < Orb::Internal::Type::BaseModel
|
219
219
|
attr_accessor id: String
|
220
220
|
|
221
221
|
attr_accessor adjustment_type: :usage_discount
|
@@ -240,10 +240,10 @@ module Orb
|
|
240
240
|
?adjustment_type: :usage_discount
|
241
241
|
) -> void
|
242
242
|
|
243
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
243
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::usage_discount
|
244
244
|
end
|
245
245
|
|
246
|
-
type
|
246
|
+
type amount_discount =
|
247
247
|
{
|
248
248
|
id: String,
|
249
249
|
adjustment_type: :amount_discount,
|
@@ -254,7 +254,7 @@ module Orb
|
|
254
254
|
reason: String?
|
255
255
|
}
|
256
256
|
|
257
|
-
class
|
257
|
+
class AmountDiscount < Orb::Internal::Type::BaseModel
|
258
258
|
attr_accessor id: String
|
259
259
|
|
260
260
|
attr_accessor adjustment_type: :amount_discount
|
@@ -279,10 +279,10 @@ module Orb
|
|
279
279
|
?adjustment_type: :amount_discount
|
280
280
|
) -> void
|
281
281
|
|
282
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
282
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::amount_discount
|
283
283
|
end
|
284
284
|
|
285
|
-
type
|
285
|
+
type percentage_discount =
|
286
286
|
{
|
287
287
|
id: String,
|
288
288
|
adjustment_type: :percentage_discount,
|
@@ -293,7 +293,7 @@ module Orb
|
|
293
293
|
reason: String?
|
294
294
|
}
|
295
295
|
|
296
|
-
class
|
296
|
+
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
297
297
|
attr_accessor id: String
|
298
298
|
|
299
299
|
attr_accessor adjustment_type: :percentage_discount
|
@@ -318,10 +318,10 @@ module Orb
|
|
318
318
|
?adjustment_type: :percentage_discount
|
319
319
|
) -> void
|
320
320
|
|
321
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
321
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::percentage_discount
|
322
322
|
end
|
323
323
|
|
324
|
-
type
|
324
|
+
type minimum =
|
325
325
|
{
|
326
326
|
id: String,
|
327
327
|
adjustment_type: :minimum,
|
@@ -333,7 +333,7 @@ module Orb
|
|
333
333
|
reason: String?
|
334
334
|
}
|
335
335
|
|
336
|
-
class
|
336
|
+
class Minimum < Orb::Internal::Type::BaseModel
|
337
337
|
attr_accessor id: String
|
338
338
|
|
339
339
|
attr_accessor adjustment_type: :minimum
|
@@ -361,10 +361,10 @@ module Orb
|
|
361
361
|
?adjustment_type: :minimum
|
362
362
|
) -> void
|
363
363
|
|
364
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
364
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::minimum
|
365
365
|
end
|
366
366
|
|
367
|
-
type
|
367
|
+
type maximum =
|
368
368
|
{
|
369
369
|
id: String,
|
370
370
|
adjustment_type: :maximum,
|
@@ -375,7 +375,7 @@ module Orb
|
|
375
375
|
reason: String?
|
376
376
|
}
|
377
377
|
|
378
|
-
class
|
378
|
+
class Maximum < Orb::Internal::Type::BaseModel
|
379
379
|
attr_accessor id: String
|
380
380
|
|
381
381
|
attr_accessor adjustment_type: :maximum
|
@@ -400,10 +400,10 @@ module Orb
|
|
400
400
|
?adjustment_type: :maximum
|
401
401
|
) -> void
|
402
402
|
|
403
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
403
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::maximum
|
404
404
|
end
|
405
405
|
|
406
|
-
def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::
|
406
|
+
def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum]
|
407
407
|
end
|
408
408
|
end
|
409
409
|
|
@@ -427,14 +427,14 @@ module Orb
|
|
427
427
|
end
|
428
428
|
|
429
429
|
type discount_interval =
|
430
|
-
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::
|
431
|
-
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::
|
432
|
-
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::
|
430
|
+
Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount
|
431
|
+
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage
|
432
|
+
| Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
|
433
433
|
|
434
434
|
module DiscountInterval
|
435
435
|
extend Orb::Internal::Type::Union
|
436
436
|
|
437
|
-
type
|
437
|
+
type amount =
|
438
438
|
{
|
439
439
|
amount_discount: String,
|
440
440
|
applies_to_price_ids: ::Array[String],
|
@@ -444,7 +444,7 @@ module Orb
|
|
444
444
|
start_date: Time
|
445
445
|
}
|
446
446
|
|
447
|
-
class
|
447
|
+
class Amount < Orb::Internal::Type::BaseModel
|
448
448
|
attr_accessor amount_discount: String
|
449
449
|
|
450
450
|
attr_accessor applies_to_price_ids: ::Array[String]
|
@@ -466,10 +466,10 @@ module Orb
|
|
466
466
|
?discount_type: :amount
|
467
467
|
) -> void
|
468
468
|
|
469
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::
|
469
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::amount
|
470
470
|
end
|
471
471
|
|
472
|
-
type
|
472
|
+
type percentage =
|
473
473
|
{
|
474
474
|
applies_to_price_ids: ::Array[String],
|
475
475
|
applies_to_price_interval_ids: ::Array[String],
|
@@ -479,7 +479,7 @@ module Orb
|
|
479
479
|
start_date: Time
|
480
480
|
}
|
481
481
|
|
482
|
-
class
|
482
|
+
class Percentage < Orb::Internal::Type::BaseModel
|
483
483
|
attr_accessor applies_to_price_ids: ::Array[String]
|
484
484
|
|
485
485
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
@@ -501,10 +501,10 @@ module Orb
|
|
501
501
|
?discount_type: :percentage
|
502
502
|
) -> void
|
503
503
|
|
504
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::
|
504
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::percentage
|
505
505
|
end
|
506
506
|
|
507
|
-
type
|
507
|
+
type usage =
|
508
508
|
{
|
509
509
|
applies_to_price_ids: ::Array[String],
|
510
510
|
applies_to_price_interval_ids: ::Array[String],
|
@@ -514,7 +514,7 @@ module Orb
|
|
514
514
|
usage_discount: Float
|
515
515
|
}
|
516
516
|
|
517
|
-
class
|
517
|
+
class Usage < Orb::Internal::Type::BaseModel
|
518
518
|
attr_accessor applies_to_price_ids: ::Array[String]
|
519
519
|
|
520
520
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
@@ -536,10 +536,10 @@ module Orb
|
|
536
536
|
?discount_type: :usage
|
537
537
|
) -> void
|
538
538
|
|
539
|
-
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::
|
539
|
+
def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::usage
|
540
540
|
end
|
541
541
|
|
542
|
-
def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::
|
542
|
+
def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage]
|
543
543
|
end
|
544
544
|
|
545
545
|
type fixed_fee_quantity_schedule =
|