orb-billing 0.3.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/README.md +95 -55
- data/lib/orb/client.rb +4 -4
- data/lib/orb/errors.rb +1 -1
- data/lib/orb/internal/transport/base_client.rb +74 -5
- data/lib/orb/internal/transport/pooled_net_requester.rb +17 -1
- data/lib/orb/internal/type/array_of.rb +1 -1
- data/lib/orb/internal/type/base_model.rb +70 -30
- data/lib/orb/internal/type/converter.rb +18 -0
- data/lib/orb/internal/type/enum.rb +1 -0
- data/lib/orb/internal/type/hash_of.rb +1 -1
- data/lib/orb/internal/type/union.rb +1 -0
- data/lib/orb/internal/util.rb +56 -0
- data/lib/orb/internal.rb +6 -0
- data/lib/orb/models/coupon.rb +4 -0
- data/lib/orb/models/coupon_create_params.rb +6 -0
- data/lib/orb/models/customer_create_params.rb +9 -0
- data/lib/orb/models/customer_update_by_external_id_params.rb +9 -0
- data/lib/orb/models/customer_update_params.rb +9 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +14 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +14 -0
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +14 -0
- data/lib/orb/models/customers/credits/ledger_list_response.rb +14 -0
- data/lib/orb/models/discount.rb +6 -0
- data/lib/orb/models/evaluate_price_group.rb +4 -0
- data/lib/orb/models/invoice.rb +22 -0
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +22 -0
- data/lib/orb/models/invoice_level_discount.rb +4 -0
- data/lib/orb/models/invoice_line_item_create_response.rb +22 -0
- data/lib/orb/models/plan.rb +12 -0
- data/lib/orb/models/plan_create_params.rb +32 -0
- data/lib/orb/models/price.rb +35 -0
- data/lib/orb/models/subscription.rb +22 -0
- data/lib/orb/models/subscription_cancel_response.rb +22 -0
- data/lib/orb/models/subscription_change_apply_response.rb +22 -0
- data/lib/orb/models/subscription_change_cancel_response.rb +22 -0
- data/lib/orb/models/subscription_change_retrieve_response.rb +22 -0
- data/lib/orb/models/subscription_create_params.rb +88 -0
- data/lib/orb/models/subscription_create_response.rb +22 -0
- data/lib/orb/models/subscription_price_intervals_params.rb +89 -0
- data/lib/orb/models/subscription_price_intervals_response.rb +22 -0
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +88 -0
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +22 -0
- data/lib/orb/models/subscription_trigger_phase_response.rb +22 -0
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +22 -0
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +22 -0
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +22 -0
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +22 -0
- data/lib/orb/models/subscription_update_trial_params.rb +4 -0
- data/lib/orb/models/subscription_update_trial_response.rb +22 -0
- data/lib/orb/models/subscription_usage.rb +9 -0
- data/lib/orb/models.rb +24 -0
- data/lib/orb/request_options.rb +4 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +2 -0
- data/rbi/orb/internal/page.rbi +2 -1
- data/rbi/orb/internal/transport/base_client.rbi +31 -8
- data/rbi/orb/internal/transport/pooled_net_requester.rbi +10 -5
- data/rbi/orb/internal/type/base_model.rbi +31 -15
- data/rbi/orb/internal/type/base_page.rbi +1 -1
- data/rbi/orb/internal/type/converter.rbi +2 -0
- data/rbi/orb/internal/type/enum.rbi +1 -0
- data/rbi/orb/internal/type/union.rbi +1 -0
- data/rbi/orb/internal/util.rbi +28 -7
- data/rbi/orb/internal.rbi +2 -0
- data/rbi/orb/models/alert.rbi +13 -6
- data/rbi/orb/models/alert_create_for_customer_params.rbi +11 -2
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +14 -2
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +11 -2
- data/rbi/orb/models/alert_disable_params.rbi +2 -1
- data/rbi/orb/models/alert_enable_params.rbi +2 -1
- data/rbi/orb/models/alert_list_params.rbi +2 -1
- data/rbi/orb/models/alert_retrieve_params.rbi +2 -1
- data/rbi/orb/models/alert_update_params.rbi +6 -2
- data/rbi/orb/models/amount_discount.rbi +2 -1
- data/rbi/orb/models/billable_metric.rbi +2 -1
- data/rbi/orb/models/coupon.rbi +1 -1
- data/rbi/orb/models/coupon_archive_params.rbi +2 -1
- data/rbi/orb/models/coupon_create_params.rbi +16 -3
- data/rbi/orb/models/coupon_fetch_params.rbi +2 -1
- data/rbi/orb/models/coupon_list_params.rbi +2 -1
- data/rbi/orb/models/coupons/subscription_list_params.rbi +4 -1
- data/rbi/orb/models/credit_note.rbi +45 -9
- data/rbi/orb/models/credit_note_create_params.rbi +8 -2
- data/rbi/orb/models/credit_note_fetch_params.rbi +4 -1
- data/rbi/orb/models/credit_note_list_params.rbi +4 -1
- data/rbi/orb/models/customer.rbi +41 -10
- data/rbi/orb/models/customer_create_params.rbi +61 -10
- data/rbi/orb/models/customer_delete_params.rbi +4 -1
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +4 -1
- data/rbi/orb/models/customer_fetch_params.rbi +2 -1
- data/rbi/orb/models/customer_list_params.rbi +2 -1
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +7 -1
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +7 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +67 -10
- data/rbi/orb/models/customer_update_params.rbi +61 -10
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +7 -1
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +21 -3
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +7 -1
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +21 -3
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +21 -3
- data/rbi/orb/models/customers/cost_list_params.rbi +4 -1
- data/rbi/orb/models/customers/cost_list_response.rbi +21 -3
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +7 -1
- data/rbi/orb/models/customers/credit_list_params.rbi +4 -1
- data/rbi/orb/models/customers/credit_list_response.rbi +7 -1
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +14 -2
- data/rbi/orb/models/dimensional_price_group.rbi +4 -1
- data/rbi/orb/models/dimensional_price_group_create_params.rbi +4 -1
- data/rbi/orb/models/dimensional_price_group_list_params.rbi +4 -1
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +7 -1
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +7 -1
- data/rbi/orb/models/dimensional_price_groups.rbi +4 -1
- data/rbi/orb/models/evaluate_price_group.rbi +2 -1
- data/rbi/orb/models/event_deprecate_params.rbi +4 -1
- data/rbi/orb/models/event_deprecate_response.rbi +4 -1
- data/rbi/orb/models/event_ingest_params.rbi +6 -2
- data/rbi/orb/models/event_ingest_response.rbi +18 -3
- data/rbi/orb/models/event_search_params.rbi +2 -1
- data/rbi/orb/models/event_search_response.rbi +11 -2
- data/rbi/orb/models/event_update_params.rbi +2 -1
- data/rbi/orb/models/event_update_response.rbi +4 -1
- data/rbi/orb/models/events/backfill_close_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_close_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_create_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_create_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_fetch_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_fetch_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_list_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_list_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_revert_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_revert_response.rbi +7 -1
- data/rbi/orb/models/events/event_volumes.rbi +8 -2
- data/rbi/orb/models/events/volume_list_params.rbi +4 -1
- data/rbi/orb/models/invoice.rbi +156 -31
- data/rbi/orb/models/invoice_create_params.rbi +13 -3
- data/rbi/orb/models/invoice_fetch_params.rbi +2 -1
- data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +4 -1
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +212 -31
- data/rbi/orb/models/invoice_issue_params.rbi +2 -1
- data/rbi/orb/models/invoice_line_item_create_params.rbi +4 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +119 -17
- data/rbi/orb/models/invoice_list_params.rbi +2 -1
- data/rbi/orb/models/invoice_mark_paid_params.rbi +4 -1
- data/rbi/orb/models/invoice_pay_params.rbi +2 -1
- data/rbi/orb/models/invoice_update_params.rbi +2 -1
- data/rbi/orb/models/invoice_void_params.rbi +2 -1
- data/rbi/orb/models/item.rbi +5 -2
- data/rbi/orb/models/item_create_params.rbi +2 -1
- data/rbi/orb/models/item_fetch_params.rbi +2 -1
- data/rbi/orb/models/item_list_params.rbi +2 -1
- data/rbi/orb/models/item_update_params.rbi +9 -2
- data/rbi/orb/models/metric_create_params.rbi +2 -1
- data/rbi/orb/models/metric_fetch_params.rbi +2 -1
- data/rbi/orb/models/metric_list_params.rbi +2 -1
- data/rbi/orb/models/metric_update_params.rbi +2 -1
- data/rbi/orb/models/pagination_metadata.rbi +2 -1
- data/rbi/orb/models/percentage_discount.rbi +2 -1
- data/rbi/orb/models/plan.rbi +50 -14
- data/rbi/orb/models/plan_create_params.rbi +604 -89
- data/rbi/orb/models/plan_fetch_params.rbi +2 -1
- data/rbi/orb/models/plan_list_params.rbi +2 -1
- data/rbi/orb/models/plan_update_params.rbi +2 -1
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +4 -1
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +7 -1
- data/rbi/orb/models/price.rbi +1624 -270
- data/rbi/orb/models/price_create_params.rbi +100 -18
- data/rbi/orb/models/price_evaluate_params.rbi +2 -1
- data/rbi/orb/models/price_evaluate_response.rbi +4 -1
- data/rbi/orb/models/price_fetch_params.rbi +2 -1
- data/rbi/orb/models/price_list_params.rbi +2 -1
- data/rbi/orb/models/price_update_params.rbi +2 -1
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +7 -1
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +7 -1
- data/rbi/orb/models/subscription.rbi +109 -19
- data/rbi/orb/models/subscription_cancel_params.rbi +4 -1
- data/rbi/orb/models/subscription_cancel_response.rbi +137 -20
- data/rbi/orb/models/subscription_change_apply_params.rbi +4 -1
- data/rbi/orb/models/subscription_change_apply_response.rbi +142 -21
- data/rbi/orb/models/subscription_change_cancel_params.rbi +4 -1
- data/rbi/orb/models/subscription_change_cancel_response.rbi +142 -21
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +4 -1
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +142 -21
- data/rbi/orb/models/subscription_create_params.rbi +1257 -198
- data/rbi/orb/models/subscription_create_response.rbi +137 -20
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +4 -1
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +21 -3
- data/rbi/orb/models/subscription_fetch_params.rbi +4 -1
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +4 -1
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +14 -2
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +4 -1
- data/rbi/orb/models/subscription_list_params.rbi +4 -1
- data/rbi/orb/models/subscription_price_intervals_params.rbi +731 -115
- data/rbi/orb/models/subscription_price_intervals_response.rbi +140 -20
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +1260 -198
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +140 -20
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +4 -1
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +140 -20
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +7 -1
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +140 -20
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +7 -1
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +140 -20
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +7 -1
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +140 -20
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +7 -1
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +140 -20
- data/rbi/orb/models/subscription_update_params.rbi +4 -1
- data/rbi/orb/models/subscription_update_trial_params.rbi +4 -1
- data/rbi/orb/models/subscription_update_trial_response.rbi +140 -20
- data/rbi/orb/models/subscription_usage.rbi +63 -9
- data/rbi/orb/models/subscriptions.rbi +2 -1
- data/rbi/orb/models/top_level_ping_params.rbi +2 -1
- data/rbi/orb/models/top_level_ping_response.rbi +4 -1
- data/rbi/orb/models/trial_discount.rbi +2 -1
- data/rbi/orb/models/usage_discount.rbi +2 -1
- data/rbi/orb/request_options.rbi +1 -1
- data/sig/orb/internal/transport/base_client.rbs +16 -1
- data/sig/orb/internal/transport/pooled_net_requester.rbs +4 -0
- data/sig/orb/internal/type/base_model.rbs +11 -5
- data/sig/orb/internal/type/base_page.rbs +1 -1
- data/sig/orb/internal/type/converter.rbs +2 -0
- data/sig/orb/internal/type/enum.rbs +1 -0
- data/sig/orb/internal/type/union.rbs +1 -0
- data/sig/orb/internal/util.rbs +13 -0
- data/sig/orb/internal.rbs +2 -0
- metadata +2 -2
@@ -6,7 +6,8 @@ module Orb
|
|
6
6
|
extend Orb::Internal::Type::RequestParameters::Converter
|
7
7
|
include Orb::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias { T.any(Orb::EventIngestParams, Orb::Internal::AnyHash) }
|
10
11
|
|
11
12
|
sig { returns(T::Array[Orb::EventIngestParams::Event]) }
|
12
13
|
attr_accessor :events
|
@@ -56,7 +57,10 @@ module Orb
|
|
56
57
|
end
|
57
58
|
|
58
59
|
class Event < Orb::Internal::Type::BaseModel
|
59
|
-
OrHash =
|
60
|
+
OrHash =
|
61
|
+
T.type_alias do
|
62
|
+
T.any(Orb::EventIngestParams::Event, Orb::Internal::AnyHash)
|
63
|
+
end
|
60
64
|
|
61
65
|
# A name to meaningfully identify the action or event type.
|
62
66
|
sig { returns(String) }
|
@@ -3,7 +3,10 @@
|
|
3
3
|
module Orb
|
4
4
|
module Models
|
5
5
|
class EventIngestResponse < Orb::Internal::Type::BaseModel
|
6
|
-
OrHash =
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(Orb::Models::EventIngestResponse, Orb::Internal::AnyHash)
|
9
|
+
end
|
7
10
|
|
8
11
|
# Contains all failing validation events. In the case of a 200, this array will
|
9
12
|
# always be empty. This field will always be present.
|
@@ -56,7 +59,13 @@ module Orb
|
|
56
59
|
end
|
57
60
|
|
58
61
|
class ValidationFailed < Orb::Internal::Type::BaseModel
|
59
|
-
OrHash =
|
62
|
+
OrHash =
|
63
|
+
T.type_alias do
|
64
|
+
T.any(
|
65
|
+
Orb::Models::EventIngestResponse::ValidationFailed,
|
66
|
+
Orb::Internal::AnyHash
|
67
|
+
)
|
68
|
+
end
|
60
69
|
|
61
70
|
# The passed idempotency_key corresponding to the validation_errors
|
62
71
|
sig { returns(String) }
|
@@ -92,7 +101,13 @@ module Orb
|
|
92
101
|
end
|
93
102
|
|
94
103
|
class Debug < Orb::Internal::Type::BaseModel
|
95
|
-
OrHash =
|
104
|
+
OrHash =
|
105
|
+
T.type_alias do
|
106
|
+
T.any(
|
107
|
+
Orb::Models::EventIngestResponse::Debug,
|
108
|
+
Orb::Internal::AnyHash
|
109
|
+
)
|
110
|
+
end
|
96
111
|
|
97
112
|
sig { returns(T::Array[String]) }
|
98
113
|
attr_accessor :duplicate
|
@@ -6,7 +6,8 @@ module Orb
|
|
6
6
|
extend Orb::Internal::Type::RequestParameters::Converter
|
7
7
|
include Orb::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias { T.any(Orb::EventSearchParams, Orb::Internal::AnyHash) }
|
10
11
|
|
11
12
|
# This is an explicit array of IDs to filter by. Note that an event's ID is the
|
12
13
|
# idempotency_key that was originally used for ingestion, and this only supports
|
@@ -3,7 +3,10 @@
|
|
3
3
|
module Orb
|
4
4
|
module Models
|
5
5
|
class EventSearchResponse < Orb::Internal::Type::BaseModel
|
6
|
-
OrHash =
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(Orb::Models::EventSearchResponse, Orb::Internal::AnyHash)
|
9
|
+
end
|
7
10
|
|
8
11
|
sig { returns(T::Array[Orb::Models::EventSearchResponse::Data]) }
|
9
12
|
attr_accessor :data
|
@@ -25,7 +28,13 @@ module Orb
|
|
25
28
|
end
|
26
29
|
|
27
30
|
class Data < Orb::Internal::Type::BaseModel
|
28
|
-
OrHash =
|
31
|
+
OrHash =
|
32
|
+
T.type_alias do
|
33
|
+
T.any(
|
34
|
+
Orb::Models::EventSearchResponse::Data,
|
35
|
+
Orb::Internal::AnyHash
|
36
|
+
)
|
37
|
+
end
|
29
38
|
|
30
39
|
# A unique value, generated by the client, that is used to de-duplicate events.
|
31
40
|
# Exactly one event with a given idempotency key will be ingested, which allows
|
@@ -6,7 +6,8 @@ module Orb
|
|
6
6
|
extend Orb::Internal::Type::RequestParameters::Converter
|
7
7
|
include Orb::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias { T.any(Orb::EventUpdateParams, Orb::Internal::AnyHash) }
|
10
11
|
|
11
12
|
# A name to meaningfully identify the action or event type.
|
12
13
|
sig { returns(String) }
|
@@ -3,7 +3,10 @@
|
|
3
3
|
module Orb
|
4
4
|
module Models
|
5
5
|
class EventUpdateResponse < Orb::Internal::Type::BaseModel
|
6
|
-
OrHash =
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(Orb::Models::EventUpdateResponse, Orb::Internal::AnyHash)
|
9
|
+
end
|
7
10
|
|
8
11
|
# event_id of the amended event, if successfully ingested
|
9
12
|
sig { returns(String) }
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Events::BackfillCloseParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
sig do
|
13
16
|
params(request_options: Orb::RequestOptions::OrHash).returns(
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Events
|
6
6
|
class BackfillCloseResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Events::BackfillCloseResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig { returns(String) }
|
10
16
|
attr_accessor :id
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Events::BackfillCreateParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
# The (exclusive) end of the usage timeframe affected by this backfill. By
|
13
16
|
# default, Orb allows backfills up to 10 days in duration at a time. Reach out to
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Events
|
6
6
|
class BackfillCreateResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Events::BackfillCreateResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig { returns(String) }
|
10
16
|
attr_accessor :id
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Events::BackfillFetchParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
sig do
|
13
16
|
params(request_options: Orb::RequestOptions::OrHash).returns(
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Events
|
6
6
|
class BackfillFetchResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Events::BackfillFetchResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig { returns(String) }
|
10
16
|
attr_accessor :id
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Events::BackfillListParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
13
16
|
# from the initial request.
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Events
|
6
6
|
class BackfillListResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Events::BackfillListResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig { returns(String) }
|
10
16
|
attr_accessor :id
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Events::BackfillRevertParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
sig do
|
13
16
|
params(request_options: Orb::RequestOptions::OrHash).returns(
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Events
|
6
6
|
class BackfillRevertResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Events::BackfillRevertResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig { returns(String) }
|
10
16
|
attr_accessor :id
|
@@ -6,7 +6,10 @@ module Orb
|
|
6
6
|
|
7
7
|
module Events
|
8
8
|
class EventVolumes < Orb::Internal::Type::BaseModel
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Orb::Events::EventVolumes, Orb::Internal::AnyHash)
|
12
|
+
end
|
10
13
|
|
11
14
|
sig { returns(T::Array[Orb::Events::EventVolumes::Data]) }
|
12
15
|
attr_accessor :data
|
@@ -26,7 +29,10 @@ module Orb
|
|
26
29
|
end
|
27
30
|
|
28
31
|
class Data < Orb::Internal::Type::BaseModel
|
29
|
-
OrHash =
|
32
|
+
OrHash =
|
33
|
+
T.type_alias do
|
34
|
+
T.any(Orb::Events::EventVolumes::Data, Orb::Internal::AnyHash)
|
35
|
+
end
|
30
36
|
|
31
37
|
# The number of events ingested with a timestamp between the timeframe
|
32
38
|
sig { returns(Integer) }
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Events::VolumeListParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
# The start of the timeframe, inclusive, in which to return event volume. All
|
13
16
|
# datetime values are converted to UTC time. If the specified time isn't
|