orb-billing 0.3.1 → 0.3.2
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 +14 -0
- data/README.md +3 -3
- data/lib/orb/file_part.rb +2 -2
- data/lib/orb/internal/type/enum.rb +3 -3
- data/lib/orb/internal/type/request_parameters.rb +4 -4
- data/lib/orb/internal/type/union.rb +4 -4
- data/lib/orb/internal/util.rb +1 -1
- 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 +9 -12
- data/lib/orb/models/coupon_create_params.rb +6 -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 +41 -53
- data/lib/orb/models/customer_list_params.rb +0 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +41 -53
- data/lib/orb/models/customer_update_params.rb +41 -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 +0 -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 +0 -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 +0 -7
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
- data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -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 +5 -5
- data/lib/orb/models/evaluate_price_group.rb +1 -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 +157 -202
- data/lib/orb/models/invoice_create_params.rb +14 -21
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +9 -54
- data/lib/orb/models/invoice_issue_params.rb +0 -1
- data/lib/orb/models/invoice_level_discount.rb +4 -4
- data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +6 -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 +78 -103
- data/lib/orb/models/plan_create_params.rb +727 -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 +1671 -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 +86 -122
- data/lib/orb/models/subscription_cancel_params.rb +3 -5
- data/lib/orb/models/subscription_cancel_response.rb +21 -57
- data/lib/orb/models/subscription_change_apply_response.rb +21 -58
- data/lib/orb/models/subscription_change_cancel_response.rb +21 -58
- data/lib/orb/models/subscription_change_retrieve_response.rb +21 -58
- data/lib/orb/models/subscription_create_params.rb +1865 -1815
- data/lib/orb/models/subscription_create_response.rb +21 -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 +1105 -1017
- data/lib/orb/models/subscription_price_intervals_response.rb +21 -57
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1906 -1791
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +21 -57
- data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
- data/lib/orb/models/subscription_trigger_phase_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +21 -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 +21 -57
- data/lib/orb/models/subscription_update_params.rb +0 -5
- data/lib/orb/models/subscription_update_trial_params.rb +4 -6
- data/lib/orb/models/subscription_update_trial_response.rb +21 -57
- data/lib/orb/models/subscription_usage.rb +46 -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/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 +1 -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 +19 -6
- data/rbi/orb/internal/transport/base_client.rbi +131 -73
- data/rbi/orb/internal/transport/pooled_net_requester.rbi +25 -12
- data/rbi/orb/internal/type/array_of.rbi +42 -34
- data/rbi/orb/internal/type/base_model.rbi +124 -65
- data/rbi/orb/internal/type/base_page.rbi +11 -7
- data/rbi/orb/internal/type/boolean.rbi +16 -10
- data/rbi/orb/internal/type/converter.rbi +66 -31
- data/rbi/orb/internal/type/enum.rbi +27 -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 +60 -25
- data/rbi/orb/internal/type/unknown.rbi +20 -12
- data/rbi/orb/internal/util.rbi +210 -89
- data/rbi/orb/models/alert.rbi +107 -70
- data/rbi/orb/models/alert_create_for_customer_params.rbi +60 -27
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +68 -29
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +53 -26
- data/rbi/orb/models/alert_disable_params.rbi +17 -6
- data/rbi/orb/models/alert_enable_params.rbi +17 -6
- data/rbi/orb/models/alert_list_params.rbi +23 -20
- data/rbi/orb/models/alert_retrieve_params.rbi +10 -4
- data/rbi/orb/models/alert_update_params.rbi +25 -14
- data/rbi/orb/models/amount_discount.rbi +28 -19
- data/rbi/orb/models/billable_metric.rbi +33 -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 +10 -4
- data/rbi/orb/models/coupon_create_params.rbi +72 -38
- data/rbi/orb/models/coupon_fetch_params.rbi +10 -4
- data/rbi/orb/models/coupon_list_params.rbi +18 -15
- data/rbi/orb/models/coupons/subscription_list_params.rbi +16 -6
- data/rbi/orb/models/credit_note.rbi +293 -158
- data/rbi/orb/models/credit_note_create_params.rbi +58 -29
- data/rbi/orb/models/credit_note_fetch_params.rbi +10 -4
- data/rbi/orb/models/credit_note_list_params.rbi +20 -17
- data/rbi/orb/models/customer.rbi +430 -329
- data/rbi/orb/models/customer_create_params.rbi +662 -325
- data/rbi/orb/models/customer_delete_params.rbi +10 -4
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +10 -4
- data/rbi/orb/models/customer_fetch_params.rbi +10 -4
- data/rbi/orb/models/customer_list_params.rbi +20 -17
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +10 -4
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +10 -4
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +1136 -336
- data/rbi/orb/models/customer_update_params.rbi +661 -324
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +50 -21
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +154 -61
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +20 -17
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +164 -59
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +56 -22
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +162 -124
- data/rbi/orb/models/customers/cost_list_params.rbi +45 -22
- data/rbi/orb/models/customers/cost_list_response.rbi +154 -123
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +18 -15
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +48 -22
- data/rbi/orb/models/customers/credit_list_params.rbi +18 -15
- data/rbi/orb/models/customers/credit_list_response.rbi +44 -21
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +106 -68
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +643 -434
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +117 -59
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +700 -425
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +102 -44
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +681 -432
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +123 -40
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +735 -389
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +74 -53
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +65 -48
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +84 -45
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +83 -43
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +16 -6
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +15 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +9 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +70 -49
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +9 -5
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +84 -43
- data/rbi/orb/models/dimensional_price_group.rbi +18 -15
- data/rbi/orb/models/dimensional_price_group_create_params.rbi +19 -16
- data/rbi/orb/models/dimensional_price_group_list_params.rbi +16 -6
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +10 -4
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +10 -9
- data/rbi/orb/models/dimensional_price_groups.rbi +18 -13
- data/rbi/orb/models/discount.rbi +11 -5
- data/rbi/orb/models/evaluate_price_group.rbi +28 -12
- data/rbi/orb/models/event_deprecate_params.rbi +10 -4
- data/rbi/orb/models/event_deprecate_response.rbi +8 -3
- data/rbi/orb/models/event_ingest_params.rbi +37 -31
- data/rbi/orb/models/event_ingest_response.rbi +63 -23
- data/rbi/orb/models/event_search_params.rbi +17 -14
- data/rbi/orb/models/event_search_response.rbi +33 -21
- data/rbi/orb/models/event_update_params.rbi +19 -16
- data/rbi/orb/models/event_update_response.rbi +8 -3
- data/rbi/orb/models/events/backfill_close_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_close_response.rbi +64 -29
- data/rbi/orb/models/events/backfill_create_params.rbi +21 -18
- data/rbi/orb/models/events/backfill_create_response.rbi +63 -29
- data/rbi/orb/models/events/backfill_fetch_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_fetch_response.rbi +64 -29
- data/rbi/orb/models/events/backfill_list_params.rbi +16 -6
- data/rbi/orb/models/events/backfill_list_response.rbi +62 -28
- data/rbi/orb/models/events/backfill_revert_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_revert_response.rbi +63 -29
- data/rbi/orb/models/events/event_volumes.rbi +32 -10
- data/rbi/orb/models/events/volume_list_params.rbi +18 -15
- data/rbi/orb/models/invoice.rbi +1286 -805
- data/rbi/orb/models/invoice_create_params.rbi +97 -69
- data/rbi/orb/models/invoice_fetch_params.rbi +10 -4
- data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +15 -5
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1991 -861
- data/rbi/orb/models/invoice_issue_params.rbi +16 -5
- data/rbi/orb/models/invoice_level_discount.rbi +11 -4
- data/rbi/orb/models/invoice_line_item_create_params.rbi +20 -17
- data/rbi/orb/models/invoice_line_item_create_response.rbi +573 -376
- data/rbi/orb/models/invoice_list_params.rbi +67 -47
- data/rbi/orb/models/invoice_mark_paid_params.rbi +17 -14
- data/rbi/orb/models/invoice_pay_params.rbi +10 -4
- data/rbi/orb/models/invoice_update_params.rbi +15 -10
- data/rbi/orb/models/invoice_void_params.rbi +10 -4
- data/rbi/orb/models/item.rbi +87 -39
- data/rbi/orb/models/item_create_params.rbi +14 -5
- data/rbi/orb/models/item_fetch_params.rbi +10 -4
- data/rbi/orb/models/item_list_params.rbi +16 -6
- data/rbi/orb/models/item_update_params.rbi +79 -39
- data/rbi/orb/models/metric_create_params.rbi +19 -16
- data/rbi/orb/models/metric_fetch_params.rbi +10 -4
- data/rbi/orb/models/metric_list_params.rbi +20 -17
- data/rbi/orb/models/metric_update_params.rbi +15 -10
- data/rbi/orb/models/pagination_metadata.rbi +16 -4
- data/rbi/orb/models/percentage_discount.rbi +32 -19
- data/rbi/orb/models/plan.rbi +496 -365
- data/rbi/orb/models/plan_create_params.rbi +4785 -2875
- data/rbi/orb/models/plan_fetch_params.rbi +10 -4
- data/rbi/orb/models/plan_list_params.rbi +34 -27
- data/rbi/orb/models/plan_update_params.rbi +16 -13
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +10 -9
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +16 -13
- data/rbi/orb/models/price.rbi +9969 -5024
- data/rbi/orb/models/price_create_params.rbi +501 -245
- data/rbi/orb/models/price_evaluate_params.rbi +20 -17
- data/rbi/orb/models/price_evaluate_response.rbi +11 -6
- data/rbi/orb/models/price_fetch_params.rbi +10 -4
- data/rbi/orb/models/price_list_params.rbi +16 -6
- data/rbi/orb/models/price_update_params.rbi +15 -10
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +10 -9
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +15 -10
- data/rbi/orb/models/subscription.rbi +578 -420
- data/rbi/orb/models/subscription_cancel_params.rbi +44 -22
- data/rbi/orb/models/subscription_cancel_response.rbi +700 -438
- data/rbi/orb/models/subscription_change_apply_params.rbi +16 -13
- data/rbi/orb/models/subscription_change_apply_response.rbi +784 -504
- data/rbi/orb/models/subscription_change_cancel_params.rbi +10 -4
- data/rbi/orb/models/subscription_change_cancel_response.rbi +783 -514
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +10 -4
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +782 -524
- data/rbi/orb/models/subscription_create_params.rbi +9021 -6730
- data/rbi/orb/models/subscription_create_response.rbi +700 -438
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +47 -22
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +154 -123
- data/rbi/orb/models/subscription_fetch_params.rbi +10 -4
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +20 -17
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +33 -19
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +81 -34
- data/rbi/orb/models/subscription_list_params.rbi +39 -28
- data/rbi/orb/models/subscription_price_intervals_params.rbi +5181 -3822
- data/rbi/orb/models/subscription_price_intervals_response.rbi +720 -453
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +8602 -6910
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +718 -467
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +16 -13
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +712 -448
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +10 -4
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +719 -467
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +16 -5
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +693 -502
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +10 -4
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +708 -497
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +57 -26
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +719 -467
- data/rbi/orb/models/subscription_update_params.rbi +19 -16
- data/rbi/orb/models/subscription_update_trial_params.rbi +57 -19
- data/rbi/orb/models/subscription_update_trial_response.rbi +712 -447
- data/rbi/orb/models/subscription_usage.rbi +271 -121
- data/rbi/orb/models/subscriptions.rbi +18 -11
- data/rbi/orb/models/top_level_ping_params.rbi +10 -4
- data/rbi/orb/models/top_level_ping_response.rbi +7 -3
- data/rbi/orb/models/trial_discount.rbi +29 -20
- data/rbi/orb/models/usage_discount.rbi +28 -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/type/request_parameters.rbs +3 -1
- 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
@@ -265,85 +265,67 @@ module Orb
|
|
265
265
|
#
|
266
266
|
# @overload create(add_adjustments: nil, add_prices: nil, align_billing_with_subscription_start_date: nil, auto_collection: nil, aws_region: nil, billing_cycle_anchor_configuration: nil, coupon_redemption_code: nil, credits_overage_rate: nil, customer_id: nil, default_invoice_memo: nil, end_date: nil, external_customer_id: nil, external_marketplace: nil, external_marketplace_reporting_id: nil, external_plan_id: nil, filter: nil, initial_phase_order: nil, invoicing_threshold: nil, metadata: nil, net_terms: nil, per_credit_overage_amount: nil, plan_id: nil, plan_version_number: nil, price_overrides: nil, remove_adjustments: nil, remove_prices: nil, replace_adjustments: nil, replace_prices: nil, start_date: nil, trial_duration_days: nil, usage_customer_ids: nil, request_options: {})
|
267
267
|
#
|
268
|
-
# @param add_adjustments [Array<Orb::
|
269
|
-
# ...
|
268
|
+
# @param add_adjustments [Array<Orb::SubscriptionCreateParams::AddAdjustment>, nil] Additional adjustments to be added to the subscription. (Only available for acco
|
270
269
|
#
|
271
|
-
# @param add_prices [Array<Orb::
|
272
|
-
# ...
|
270
|
+
# @param add_prices [Array<Orb::SubscriptionCreateParams::AddPrice>, nil] Additional prices to be added to the subscription. (Only available for accounts
|
273
271
|
#
|
274
272
|
# @param align_billing_with_subscription_start_date [Boolean]
|
275
273
|
#
|
276
274
|
# @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c
|
277
|
-
# ...
|
278
275
|
#
|
279
276
|
# @param aws_region [String, nil]
|
280
277
|
#
|
281
|
-
# @param billing_cycle_anchor_configuration [Orb::
|
278
|
+
# @param billing_cycle_anchor_configuration [Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil]
|
282
279
|
#
|
283
280
|
# @param coupon_redemption_code [String, nil] Redemption code to be used for this subscription. If the coupon cannot be found
|
284
|
-
# ...
|
285
281
|
#
|
286
282
|
# @param credits_overage_rate [Float, nil]
|
287
283
|
#
|
288
284
|
# @param customer_id [String, nil]
|
289
285
|
#
|
290
286
|
# @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i
|
291
|
-
# ...
|
292
287
|
#
|
293
288
|
# @param end_date [Time, nil]
|
294
289
|
#
|
295
290
|
# @param external_customer_id [String, nil]
|
296
291
|
#
|
297
|
-
# @param external_marketplace [Symbol, Orb::
|
292
|
+
# @param external_marketplace [Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace, nil]
|
298
293
|
#
|
299
294
|
# @param external_marketplace_reporting_id [String, nil]
|
300
295
|
#
|
301
296
|
# @param external_plan_id [String, nil] The external_plan_id of the plan that the given subscription should be switched
|
302
|
-
# ...
|
303
297
|
#
|
304
298
|
# @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as
|
305
|
-
# ...
|
306
299
|
#
|
307
300
|
# @param initial_phase_order [Integer, nil] The phase of the plan to start with
|
308
301
|
#
|
309
302
|
# @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b
|
310
|
-
# ...
|
311
303
|
#
|
312
304
|
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
313
|
-
# ...
|
314
305
|
#
|
315
306
|
# @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d
|
316
|
-
# ...
|
317
307
|
#
|
318
308
|
# @param per_credit_overage_amount [Float, nil]
|
319
309
|
#
|
320
310
|
# @param plan_id [String, nil] The plan that the given subscription should be switched to. Note that either thi
|
321
|
-
# ...
|
322
311
|
#
|
323
312
|
# @param plan_version_number [Integer, nil] Specifies which version of the plan to subscribe to. If null, the default versio
|
324
|
-
# ...
|
325
313
|
#
|
326
314
|
# @param price_overrides [Array<Object>, nil] Optionally provide a list of overrides for prices on the plan
|
327
315
|
#
|
328
|
-
# @param remove_adjustments [Array<Orb::
|
329
|
-
# ...
|
316
|
+
# @param remove_adjustments [Array<Orb::SubscriptionCreateParams::RemoveAdjustment>, nil] Plan adjustments to be removed from the subscription. (Only available for accoun
|
330
317
|
#
|
331
|
-
# @param remove_prices [Array<Orb::
|
332
|
-
# ...
|
318
|
+
# @param remove_prices [Array<Orb::SubscriptionCreateParams::RemovePrice>, nil] Plan prices to be removed from the subscription. (Only available for accounts th
|
333
319
|
#
|
334
|
-
# @param replace_adjustments [Array<Orb::
|
335
|
-
# ...
|
320
|
+
# @param replace_adjustments [Array<Orb::SubscriptionCreateParams::ReplaceAdjustment>, nil] Plan adjustments to be replaced with additional adjustments on the subscription.
|
336
321
|
#
|
337
|
-
# @param replace_prices [Array<Orb::
|
338
|
-
# ...
|
322
|
+
# @param replace_prices [Array<Orb::SubscriptionCreateParams::ReplacePrice>, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava
|
339
323
|
#
|
340
324
|
# @param start_date [Time, nil]
|
341
325
|
#
|
342
326
|
# @param trial_duration_days [Integer, nil] The duration of the trial period in days. If not provided, this defaults to the
|
343
|
-
# ...
|
344
327
|
#
|
345
328
|
# @param usage_customer_ids [Array<String>, nil] A list of customer IDs whose usage events will be aggregated and billed under th
|
346
|
-
# ...
|
347
329
|
#
|
348
330
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
349
331
|
#
|
@@ -351,7 +333,7 @@ module Orb
|
|
351
333
|
#
|
352
334
|
# @see Orb::Models::SubscriptionCreateParams
|
353
335
|
def create(params = {})
|
354
|
-
parsed, options = Orb::
|
336
|
+
parsed, options = Orb::SubscriptionCreateParams.dump_request(params)
|
355
337
|
@client.request(
|
356
338
|
method: :post,
|
357
339
|
path: "subscriptions",
|
@@ -373,32 +355,27 @@ module Orb
|
|
373
355
|
# @param subscription_id [String]
|
374
356
|
#
|
375
357
|
# @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c
|
376
|
-
# ...
|
377
358
|
#
|
378
359
|
# @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i
|
379
|
-
# ...
|
380
360
|
#
|
381
361
|
# @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b
|
382
|
-
# ...
|
383
362
|
#
|
384
363
|
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
385
|
-
# ...
|
386
364
|
#
|
387
365
|
# @param net_terms [Integer, nil] Determines the difference between the invoice issue date for subscription invoic
|
388
|
-
# ...
|
389
366
|
#
|
390
367
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
391
368
|
#
|
392
|
-
# @return [Orb::
|
369
|
+
# @return [Orb::Subscription]
|
393
370
|
#
|
394
371
|
# @see Orb::Models::SubscriptionUpdateParams
|
395
372
|
def update(subscription_id, params = {})
|
396
|
-
parsed, options = Orb::
|
373
|
+
parsed, options = Orb::SubscriptionUpdateParams.dump_request(params)
|
397
374
|
@client.request(
|
398
375
|
method: :put,
|
399
376
|
path: ["subscriptions/%1$s", subscription_id],
|
400
377
|
body: parsed,
|
401
|
-
model: Orb::
|
378
|
+
model: Orb::Subscription,
|
402
379
|
options: options
|
403
380
|
)
|
404
381
|
end
|
@@ -427,7 +404,6 @@ module Orb
|
|
427
404
|
# @param created_at_lte [Time, nil]
|
428
405
|
#
|
429
406
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
430
|
-
# ...
|
431
407
|
#
|
432
408
|
# @param customer_id [Array<String>, nil]
|
433
409
|
#
|
@@ -435,15 +411,15 @@ module Orb
|
|
435
411
|
#
|
436
412
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
437
413
|
#
|
438
|
-
# @param status [Symbol, Orb::
|
414
|
+
# @param status [Symbol, Orb::SubscriptionListParams::Status, nil]
|
439
415
|
#
|
440
416
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
441
417
|
#
|
442
|
-
# @return [Orb::Internal::Page<Orb::
|
418
|
+
# @return [Orb::Internal::Page<Orb::Subscription>]
|
443
419
|
#
|
444
420
|
# @see Orb::Models::SubscriptionListParams
|
445
421
|
def list(params = {})
|
446
|
-
parsed, options = Orb::
|
422
|
+
parsed, options = Orb::SubscriptionListParams.dump_request(params)
|
447
423
|
@client.request(
|
448
424
|
method: :get,
|
449
425
|
path: "subscriptions",
|
@@ -454,7 +430,7 @@ module Orb
|
|
454
430
|
created_at_lte: "created_at[lte]"
|
455
431
|
),
|
456
432
|
page: Orb::Internal::Page,
|
457
|
-
model: Orb::
|
433
|
+
model: Orb::Subscription,
|
458
434
|
options: options
|
459
435
|
)
|
460
436
|
end
|
@@ -528,13 +504,11 @@ module Orb
|
|
528
504
|
#
|
529
505
|
# @param subscription_id [String]
|
530
506
|
#
|
531
|
-
# @param cancel_option [Symbol, Orb::
|
507
|
+
# @param cancel_option [Symbol, Orb::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation
|
532
508
|
#
|
533
509
|
# @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
|
534
|
-
# ...
|
535
510
|
#
|
536
511
|
# @param cancellation_date [Time, nil] The date that the cancellation should take effect. This parameter can only be pa
|
537
|
-
# ...
|
538
512
|
#
|
539
513
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
540
514
|
#
|
@@ -542,7 +516,7 @@ module Orb
|
|
542
516
|
#
|
543
517
|
# @see Orb::Models::SubscriptionCancelParams
|
544
518
|
def cancel(subscription_id, params)
|
545
|
-
parsed, options = Orb::
|
519
|
+
parsed, options = Orb::SubscriptionCancelParams.dump_request(params)
|
546
520
|
@client.request(
|
547
521
|
method: :post,
|
548
522
|
path: ["subscriptions/%1$s/cancel", subscription_id],
|
@@ -560,14 +534,14 @@ module Orb
|
|
560
534
|
# @param subscription_id [String]
|
561
535
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
562
536
|
#
|
563
|
-
# @return [Orb::
|
537
|
+
# @return [Orb::Subscription]
|
564
538
|
#
|
565
539
|
# @see Orb::Models::SubscriptionFetchParams
|
566
540
|
def fetch(subscription_id, params = {})
|
567
541
|
@client.request(
|
568
542
|
method: :get,
|
569
543
|
path: ["subscriptions/%1$s", subscription_id],
|
570
|
-
model: Orb::
|
544
|
+
model: Orb::Subscription,
|
571
545
|
options: params[:request_options]
|
572
546
|
)
|
573
547
|
end
|
@@ -596,8 +570,7 @@ module Orb
|
|
596
570
|
#
|
597
571
|
# @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`.
|
598
572
|
#
|
599
|
-
# @param view_mode [Symbol, Orb::
|
600
|
-
# ...
|
573
|
+
# @param view_mode [Symbol, Orb::SubscriptionFetchCostsParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per
|
601
574
|
#
|
602
575
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
603
576
|
#
|
@@ -605,7 +578,7 @@ module Orb
|
|
605
578
|
#
|
606
579
|
# @see Orb::Models::SubscriptionFetchCostsParams
|
607
580
|
def fetch_costs(subscription_id, params = {})
|
608
|
-
parsed, options = Orb::
|
581
|
+
parsed, options = Orb::SubscriptionFetchCostsParams.dump_request(params)
|
609
582
|
@client.request(
|
610
583
|
method: :get,
|
611
584
|
path: ["subscriptions/%1$s/costs", subscription_id],
|
@@ -628,7 +601,6 @@ module Orb
|
|
628
601
|
# @param subscription_id [String]
|
629
602
|
#
|
630
603
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
631
|
-
# ...
|
632
604
|
#
|
633
605
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
634
606
|
#
|
@@ -646,7 +618,7 @@ module Orb
|
|
646
618
|
#
|
647
619
|
# @see Orb::Models::SubscriptionFetchScheduleParams
|
648
620
|
def fetch_schedule(subscription_id, params = {})
|
649
|
-
parsed, options = Orb::
|
621
|
+
parsed, options = Orb::SubscriptionFetchScheduleParams.dump_request(params)
|
650
622
|
@client.request(
|
651
623
|
method: :get,
|
652
624
|
path: ["subscriptions/%1$s/schedule", subscription_id],
|
@@ -865,13 +837,12 @@ module Orb
|
|
865
837
|
# @param subscription_id [String]
|
866
838
|
#
|
867
839
|
# @param billable_metric_id [String, nil] When specified in conjunction with `group_by`, this parameter filters usage to a
|
868
|
-
# ...
|
869
840
|
#
|
870
841
|
# @param first_dimension_key [String, nil]
|
871
842
|
#
|
872
843
|
# @param first_dimension_value [String, nil]
|
873
844
|
#
|
874
|
-
# @param granularity [Symbol, Orb::
|
845
|
+
# @param granularity [Symbol, Orb::SubscriptionFetchUsageParams::Granularity, nil] This determines the windowing of usage reporting.
|
875
846
|
#
|
876
847
|
# @param group_by [String, nil] Groups per-price usage by the key provided.
|
877
848
|
#
|
@@ -883,21 +854,20 @@ module Orb
|
|
883
854
|
#
|
884
855
|
# @param timeframe_start [Time, nil] Usage returned is inclusive of `timeframe_start`.
|
885
856
|
#
|
886
|
-
# @param view_mode [Symbol, Orb::
|
887
|
-
# ...
|
857
|
+
# @param view_mode [Symbol, Orb::SubscriptionFetchUsageParams::ViewMode, nil] Controls whether Orb returns cumulative usage since the start of the billing per
|
888
858
|
#
|
889
859
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
890
860
|
#
|
891
|
-
# @return [Orb::
|
861
|
+
# @return [Orb::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::SubscriptionUsage::GroupedSubscriptionUsage]
|
892
862
|
#
|
893
863
|
# @see Orb::Models::SubscriptionFetchUsageParams
|
894
864
|
def fetch_usage(subscription_id, params = {})
|
895
|
-
parsed, options = Orb::
|
865
|
+
parsed, options = Orb::SubscriptionFetchUsageParams.dump_request(params)
|
896
866
|
@client.request(
|
897
867
|
method: :get,
|
898
868
|
path: ["subscriptions/%1$s/usage", subscription_id],
|
899
869
|
query: parsed,
|
900
|
-
model: Orb::
|
870
|
+
model: Orb::SubscriptionUsage,
|
901
871
|
options: options
|
902
872
|
)
|
903
873
|
end
|
@@ -982,16 +952,15 @@ module Orb
|
|
982
952
|
#
|
983
953
|
# @param subscription_id [String]
|
984
954
|
#
|
985
|
-
# @param add [Array<Orb::
|
955
|
+
# @param add [Array<Orb::SubscriptionPriceIntervalsParams::Add>] A list of price intervals to add to the subscription.
|
986
956
|
#
|
987
|
-
# @param add_adjustments [Array<Orb::
|
957
|
+
# @param add_adjustments [Array<Orb::SubscriptionPriceIntervalsParams::AddAdjustment>] A list of adjustments to add to the subscription.
|
988
958
|
#
|
989
959
|
# @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
|
990
|
-
# ...
|
991
960
|
#
|
992
|
-
# @param edit [Array<Orb::
|
961
|
+
# @param edit [Array<Orb::SubscriptionPriceIntervalsParams::Edit>] A list of price intervals to edit on the subscription.
|
993
962
|
#
|
994
|
-
# @param edit_adjustments [Array<Orb::
|
963
|
+
# @param edit_adjustments [Array<Orb::SubscriptionPriceIntervalsParams::EditAdjustment>] A list of adjustments to edit on the subscription.
|
995
964
|
#
|
996
965
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
997
966
|
#
|
@@ -999,7 +968,7 @@ module Orb
|
|
999
968
|
#
|
1000
969
|
# @see Orb::Models::SubscriptionPriceIntervalsParams
|
1001
970
|
def price_intervals(subscription_id, params = {})
|
1002
|
-
parsed, options = Orb::
|
971
|
+
parsed, options = Orb::SubscriptionPriceIntervalsParams.dump_request(params)
|
1003
972
|
@client.request(
|
1004
973
|
method: :post,
|
1005
974
|
path: ["subscriptions/%1$s/price_intervals", subscription_id],
|
@@ -1200,77 +1169,57 @@ module Orb
|
|
1200
1169
|
#
|
1201
1170
|
# @param subscription_id [String]
|
1202
1171
|
#
|
1203
|
-
# @param change_option [Symbol, Orb::
|
1172
|
+
# @param change_option [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ChangeOption]
|
1204
1173
|
#
|
1205
|
-
# @param add_adjustments [Array<Orb::
|
1206
|
-
# ...
|
1174
|
+
# @param add_adjustments [Array<Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment>, nil] Additional adjustments to be added to the subscription. (Only available for acco
|
1207
1175
|
#
|
1208
|
-
# @param add_prices [Array<Orb::
|
1209
|
-
# ...
|
1176
|
+
# @param add_prices [Array<Orb::SubscriptionSchedulePlanChangeParams::AddPrice>, nil] Additional prices to be added to the subscription. (Only available for accounts
|
1210
1177
|
#
|
1211
1178
|
# @param align_billing_with_plan_change_date [Boolean, nil] [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be al
|
1212
|
-
# ...
|
1213
1179
|
#
|
1214
1180
|
# @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c
|
1215
|
-
# ...
|
1216
1181
|
#
|
1217
|
-
# @param billing_cycle_alignment [Symbol, Orb::
|
1218
|
-
# ...
|
1182
|
+
# @param billing_cycle_alignment [Symbol, Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] Reset billing periods to be aligned with the plan change's effective date or sta
|
1219
1183
|
#
|
1220
|
-
# @param billing_cycle_anchor_configuration [Orb::
|
1184
|
+
# @param billing_cycle_anchor_configuration [Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil]
|
1221
1185
|
#
|
1222
1186
|
# @param change_date [Time, nil] The date that the plan change should take effect. This parameter can only be pas
|
1223
|
-
# ...
|
1224
1187
|
#
|
1225
1188
|
# @param coupon_redemption_code [String, nil] Redemption code to be used for this subscription. If the coupon cannot be found
|
1226
|
-
# ...
|
1227
1189
|
#
|
1228
1190
|
# @param credits_overage_rate [Float, nil]
|
1229
1191
|
#
|
1230
1192
|
# @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i
|
1231
|
-
# ...
|
1232
1193
|
#
|
1233
1194
|
# @param external_plan_id [String, nil] The external_plan_id of the plan that the given subscription should be switched
|
1234
|
-
# ...
|
1235
1195
|
#
|
1236
1196
|
# @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as
|
1237
|
-
# ...
|
1238
1197
|
#
|
1239
1198
|
# @param initial_phase_order [Integer, nil] The phase of the plan to start with
|
1240
1199
|
#
|
1241
1200
|
# @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b
|
1242
|
-
# ...
|
1243
1201
|
#
|
1244
1202
|
# @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d
|
1245
|
-
# ...
|
1246
1203
|
#
|
1247
1204
|
# @param per_credit_overage_amount [Float, nil]
|
1248
1205
|
#
|
1249
1206
|
# @param plan_id [String, nil] The plan that the given subscription should be switched to. Note that either thi
|
1250
|
-
# ...
|
1251
1207
|
#
|
1252
1208
|
# @param plan_version_number [Integer, nil] Specifies which version of the plan to change to. If null, the default version w
|
1253
|
-
# ...
|
1254
1209
|
#
|
1255
1210
|
# @param price_overrides [Array<Object>, nil] Optionally provide a list of overrides for prices on the plan
|
1256
1211
|
#
|
1257
|
-
# @param remove_adjustments [Array<Orb::
|
1258
|
-
# ...
|
1212
|
+
# @param remove_adjustments [Array<Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment>, nil] Plan adjustments to be removed from the subscription. (Only available for accoun
|
1259
1213
|
#
|
1260
|
-
# @param remove_prices [Array<Orb::
|
1261
|
-
# ...
|
1214
|
+
# @param remove_prices [Array<Orb::SubscriptionSchedulePlanChangeParams::RemovePrice>, nil] Plan prices to be removed from the subscription. (Only available for accounts th
|
1262
1215
|
#
|
1263
|
-
# @param replace_adjustments [Array<Orb::
|
1264
|
-
# ...
|
1216
|
+
# @param replace_adjustments [Array<Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment>, nil] Plan adjustments to be replaced with additional adjustments on the subscription.
|
1265
1217
|
#
|
1266
|
-
# @param replace_prices [Array<Orb::
|
1267
|
-
# ...
|
1218
|
+
# @param replace_prices [Array<Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice>, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava
|
1268
1219
|
#
|
1269
1220
|
# @param trial_duration_days [Integer, nil] The duration of the trial period in days. If not provided, this defaults to the
|
1270
|
-
# ...
|
1271
1221
|
#
|
1272
1222
|
# @param usage_customer_ids [Array<String>, nil] A list of customer IDs whose usage events will be aggregated and billed under th
|
1273
|
-
# ...
|
1274
1223
|
#
|
1275
1224
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
1276
1225
|
#
|
@@ -1278,7 +1227,7 @@ module Orb
|
|
1278
1227
|
#
|
1279
1228
|
# @see Orb::Models::SubscriptionSchedulePlanChangeParams
|
1280
1229
|
def schedule_plan_change(subscription_id, params)
|
1281
|
-
parsed, options = Orb::
|
1230
|
+
parsed, options = Orb::SubscriptionSchedulePlanChangeParams.dump_request(params)
|
1282
1231
|
@client.request(
|
1283
1232
|
method: :post,
|
1284
1233
|
path: ["subscriptions/%1$s/schedule_plan_change", subscription_id],
|
@@ -1299,10 +1248,8 @@ module Orb
|
|
1299
1248
|
# @param subscription_id [String]
|
1300
1249
|
#
|
1301
1250
|
# @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
|
1302
|
-
# ...
|
1303
1251
|
#
|
1304
1252
|
# @param effective_date [Date, nil] The date on which the phase change should take effect. If not provided, defaults
|
1305
|
-
# ...
|
1306
1253
|
#
|
1307
1254
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
1308
1255
|
#
|
@@ -1310,7 +1257,7 @@ module Orb
|
|
1310
1257
|
#
|
1311
1258
|
# @see Orb::Models::SubscriptionTriggerPhaseParams
|
1312
1259
|
def trigger_phase(subscription_id, params = {})
|
1313
|
-
parsed, options = Orb::
|
1260
|
+
parsed, options = Orb::SubscriptionTriggerPhaseParams.dump_request(params)
|
1314
1261
|
@client.request(
|
1315
1262
|
method: :post,
|
1316
1263
|
path: ["subscriptions/%1$s/trigger_phase", subscription_id],
|
@@ -1362,7 +1309,7 @@ module Orb
|
|
1362
1309
|
#
|
1363
1310
|
# @see Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams
|
1364
1311
|
def unschedule_fixed_fee_quantity_updates(subscription_id, params)
|
1365
|
-
parsed, options = Orb::
|
1312
|
+
parsed, options = Orb::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.dump_request(params)
|
1366
1313
|
@client.request(
|
1367
1314
|
method: :post,
|
1368
1315
|
path: ["subscriptions/%1$s/unschedule_fixed_fee_quantity_updates", subscription_id],
|
@@ -1419,13 +1366,10 @@ module Orb
|
|
1419
1366
|
# @param quantity [Float]
|
1420
1367
|
#
|
1421
1368
|
# @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
|
1422
|
-
# ...
|
1423
1369
|
#
|
1424
|
-
# @param change_option [Symbol, Orb::
|
1425
|
-
# ...
|
1370
|
+
# @param change_option [Symbol, Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] Determines when the change takes effect. Note that if `effective_date` is specif
|
1426
1371
|
#
|
1427
1372
|
# @param effective_date [Date, nil] The date that the quantity change should take effect, localized to the customer'
|
1428
|
-
# ...
|
1429
1373
|
#
|
1430
1374
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
1431
1375
|
#
|
@@ -1433,7 +1377,7 @@ module Orb
|
|
1433
1377
|
#
|
1434
1378
|
# @see Orb::Models::SubscriptionUpdateFixedFeeQuantityParams
|
1435
1379
|
def update_fixed_fee_quantity(subscription_id, params)
|
1436
|
-
parsed, options = Orb::
|
1380
|
+
parsed, options = Orb::SubscriptionUpdateFixedFeeQuantityParams.dump_request(params)
|
1437
1381
|
@client.request(
|
1438
1382
|
method: :post,
|
1439
1383
|
path: ["subscriptions/%1$s/update_fixed_fee_quantity", subscription_id],
|
@@ -1469,11 +1413,9 @@ module Orb
|
|
1469
1413
|
#
|
1470
1414
|
# @param subscription_id [String]
|
1471
1415
|
#
|
1472
|
-
# @param trial_end_date [Time, Symbol, Orb::
|
1473
|
-
# ...
|
1416
|
+
# @param trial_end_date [Time, Symbol, Orb::SubscriptionUpdateTrialParams::TrialEndDate] The new date that the trial should end, or the literal string `immediate` to end
|
1474
1417
|
#
|
1475
1418
|
# @param shift [Boolean] If true, shifts subsequent price and adjustment intervals (preserving their dura
|
1476
|
-
# ...
|
1477
1419
|
#
|
1478
1420
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
1479
1421
|
#
|
@@ -1481,7 +1423,7 @@ module Orb
|
|
1481
1423
|
#
|
1482
1424
|
# @see Orb::Models::SubscriptionUpdateTrialParams
|
1483
1425
|
def update_trial(subscription_id, params)
|
1484
|
-
parsed, options = Orb::
|
1426
|
+
parsed, options = Orb::SubscriptionUpdateTrialParams.dump_request(params)
|
1485
1427
|
@client.request(
|
1486
1428
|
method: :post,
|
1487
1429
|
path: ["subscriptions/%1$s/update_trial", subscription_id],
|
data/lib/orb/version.rb
CHANGED
data/lib/orb.rb
CHANGED
@@ -219,6 +219,7 @@ require_relative "orb/models/top_level_ping_params"
|
|
219
219
|
require_relative "orb/models/top_level_ping_response"
|
220
220
|
require_relative "orb/models/trial_discount"
|
221
221
|
require_relative "orb/models/usage_discount"
|
222
|
+
require_relative "orb/models"
|
222
223
|
require_relative "orb/resources/alerts"
|
223
224
|
require_relative "orb/resources/coupons"
|
224
225
|
require_relative "orb/resources/coupons/subscriptions"
|
data/rbi/orb/client.rbi
CHANGED
@@ -60,7 +60,8 @@ module Orb
|
|
60
60
|
|
61
61
|
# @api private
|
62
62
|
sig { override.returns(T::Hash[String, String]) }
|
63
|
-
private def auth_headers
|
63
|
+
private def auth_headers
|
64
|
+
end
|
64
65
|
|
65
66
|
# Creates and returns a new client for interacting with the API.
|
66
67
|
sig do
|
@@ -72,8 +73,7 @@ module Orb
|
|
72
73
|
initial_retry_delay: Float,
|
73
74
|
max_retry_delay: Float,
|
74
75
|
idempotency_header: String
|
75
|
-
)
|
76
|
-
.returns(T.attached_class)
|
76
|
+
).returns(T.attached_class)
|
77
77
|
end
|
78
78
|
def self.new(
|
79
79
|
# Defaults to `ENV["ORB_API_KEY"]`
|
@@ -87,6 +87,7 @@ module Orb
|
|
87
87
|
initial_retry_delay: Orb::Client::DEFAULT_INITIAL_RETRY_DELAY,
|
88
88
|
max_retry_delay: Orb::Client::DEFAULT_MAX_RETRY_DELAY,
|
89
89
|
idempotency_header: "Idempotency-Key"
|
90
|
-
)
|
90
|
+
)
|
91
|
+
end
|
91
92
|
end
|
92
93
|
end
|