orb-billing 1.46.0 → 1.47.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 +17 -1
- data/README.md +1 -1
- data/lib/orb/models/invoice_issue_summary_response.rb +2 -1
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +5 -3
- data/lib/orb/models/invoice_list_summary_response.rb +2 -1
- data/lib/orb/models/metric_list_params.rb +21 -1
- data/lib/orb/models/metric_update_params.rb +17 -1
- data/lib/orb/models/plan_update_params.rb +9 -1
- data/lib/orb/models/plans/external_plan_id_update_params.rb +9 -1
- data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +5 -9
- data/lib/orb/models/webhook_endpoint.rb +28 -1
- data/lib/orb/models/webhook_endpoint_create_params.rb +22 -1
- data/lib/orb/models/webhook_endpoint_update_params.rb +22 -1
- data/lib/orb/models/webhook_endpoint_with_secret.rb +28 -1
- data/lib/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +5 -3
- data/lib/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rb +5 -9
- data/lib/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_created_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_edited_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_ended_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rb +5 -9
- data/lib/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rb +5 -9
- data/lib/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rb +5 -9
- data/lib/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rb +5 -9
- data/lib/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_started_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rb +7 -7
- data/lib/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rb +7 -7
- data/lib/orb/resources/metrics.rb +15 -5
- data/lib/orb/resources/plans/external_plan_id.rb +6 -3
- data/lib/orb/resources/plans.rb +6 -3
- data/lib/orb/resources/webhook_endpoints.rb +6 -2
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/invoice_issue_summary_response.rbi +2 -1
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +6 -3
- data/rbi/orb/models/invoice_list_summary_response.rbi +2 -1
- data/rbi/orb/models/metric_list_params.rbi +29 -0
- data/rbi/orb/models/metric_update_params.rbi +16 -0
- data/rbi/orb/models/plan_update_params.rbi +8 -0
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +8 -0
- data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +6 -12
- data/rbi/orb/models/webhook_endpoint.rbi +39 -0
- data/rbi/orb/models/webhook_endpoint_create_params.rbi +51 -0
- data/rbi/orb/models/webhook_endpoint_update_params.rbi +51 -0
- data/rbi/orb/models/webhook_endpoint_with_secret.rbi +50 -0
- data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +6 -3
- data/rbi/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbi +6 -12
- data/rbi/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_created_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_edited_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_ended_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbi +6 -12
- data/rbi/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbi +6 -12
- data/rbi/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbi +6 -12
- data/rbi/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbi +6 -12
- data/rbi/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_started_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbi +9 -9
- data/rbi/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbi +9 -9
- data/rbi/orb/resources/metrics.rbi +16 -3
- data/rbi/orb/resources/plans/external_plan_id.rbi +6 -2
- data/rbi/orb/resources/plans.rbi +6 -2
- data/rbi/orb/resources/webhook_endpoints.rbi +10 -0
- data/sig/orb/models/metric_list_params.rbs +18 -1
- data/sig/orb/models/metric_update_params.rbs +14 -1
- data/sig/orb/models/plan_update_params.rbs +6 -1
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -1
- data/sig/orb/models/webhook_endpoint.rbs +16 -0
- data/sig/orb/models/webhook_endpoint_create_params.rbs +20 -1
- data/sig/orb/models/webhook_endpoint_update_params.rbs +16 -0
- data/sig/orb/models/webhook_endpoint_with_secret.rbs +16 -0
- data/sig/orb/resources/metrics.rbs +3 -0
- data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
- data/sig/orb/resources/plans.rbs +1 -0
- data/sig/orb/resources/webhook_endpoints.rbs +2 -0
- metadata +1 -1
|
@@ -45,10 +45,8 @@ module Orb
|
|
|
45
45
|
end
|
|
46
46
|
attr_writer :properties
|
|
47
47
|
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
# This avoids the expensive to_subscription_params() call required for full
|
|
51
|
-
# serialization.
|
|
48
|
+
# The subscription in a license or grouped cost webhook payload: its status,
|
|
49
|
+
# dates, plan and customer.
|
|
52
50
|
sig do
|
|
53
51
|
returns(
|
|
54
52
|
Orb::SubscriptionLicenseBalanceThresholdReachedWebhookEvent::Subscription
|
|
@@ -98,10 +96,8 @@ module Orb
|
|
|
98
96
|
# Every license that crossed a threshold for one alert, batched into a single
|
|
99
97
|
# message. For account-wide alerts the licenses may span several license types.
|
|
100
98
|
properties:,
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
# This avoids the expensive to_subscription_params() call required for full
|
|
104
|
-
# serialization.
|
|
99
|
+
# The subscription in a license or grouped cost webhook payload: its status,
|
|
100
|
+
# dates, plan and customer.
|
|
105
101
|
subscription:,
|
|
106
102
|
# The event this payload describes.
|
|
107
103
|
type:
|
|
@@ -1152,10 +1148,8 @@ module Orb
|
|
|
1152
1148
|
end
|
|
1153
1149
|
attr_accessor :status
|
|
1154
1150
|
|
|
1155
|
-
#
|
|
1156
|
-
#
|
|
1157
|
-
# This avoids the expensive to_subscription_params() call required for full
|
|
1158
|
-
# serialization.
|
|
1151
|
+
# The subscription in a license or grouped cost webhook payload: its status,
|
|
1152
|
+
# dates, plan and customer.
|
|
1159
1153
|
sig do
|
|
1160
1154
|
params(
|
|
1161
1155
|
id: String,
|
|
@@ -23,6 +23,13 @@ module Orb
|
|
|
23
23
|
sig { returns(T.nilable(T::Array[String])) }
|
|
24
24
|
attr_accessor :enabled_event_types
|
|
25
25
|
|
|
26
|
+
# The payload style of the webhook events sent to this endpoint. `standard`
|
|
27
|
+
# payloads include each object's own fields and references to related objects,
|
|
28
|
+
# without invoice line items or subscription price intervals. `expanded` payloads
|
|
29
|
+
# include every object fully expanded.
|
|
30
|
+
sig { returns(Orb::WebhookEndpoint::PayloadStyle::TaggedSymbol) }
|
|
31
|
+
attr_accessor :payload_style
|
|
32
|
+
|
|
26
33
|
# The HTTPS URL that Orb sends webhook events to.
|
|
27
34
|
sig { returns(String) }
|
|
28
35
|
attr_accessor :url
|
|
@@ -35,6 +42,7 @@ module Orb
|
|
|
35
42
|
created_at: Time,
|
|
36
43
|
enabled: T::Boolean,
|
|
37
44
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
45
|
+
payload_style: Orb::WebhookEndpoint::PayloadStyle::OrSymbol,
|
|
38
46
|
url: String
|
|
39
47
|
).returns(T.attached_class)
|
|
40
48
|
end
|
|
@@ -48,6 +56,11 @@ module Orb
|
|
|
48
56
|
# The webhook event types sent to this endpoint. If null, all event types are
|
|
49
57
|
# sent.
|
|
50
58
|
enabled_event_types:,
|
|
59
|
+
# The payload style of the webhook events sent to this endpoint. `standard`
|
|
60
|
+
# payloads include each object's own fields and references to related objects,
|
|
61
|
+
# without invoice line items or subscription price intervals. `expanded` payloads
|
|
62
|
+
# include every object fully expanded.
|
|
63
|
+
payload_style:,
|
|
51
64
|
# The HTTPS URL that Orb sends webhook events to.
|
|
52
65
|
url:
|
|
53
66
|
)
|
|
@@ -60,12 +73,38 @@ module Orb
|
|
|
60
73
|
created_at: Time,
|
|
61
74
|
enabled: T::Boolean,
|
|
62
75
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
76
|
+
payload_style: Orb::WebhookEndpoint::PayloadStyle::TaggedSymbol,
|
|
63
77
|
url: String
|
|
64
78
|
}
|
|
65
79
|
)
|
|
66
80
|
end
|
|
67
81
|
def to_hash
|
|
68
82
|
end
|
|
83
|
+
|
|
84
|
+
# The payload style of the webhook events sent to this endpoint. `standard`
|
|
85
|
+
# payloads include each object's own fields and references to related objects,
|
|
86
|
+
# without invoice line items or subscription price intervals. `expanded` payloads
|
|
87
|
+
# include every object fully expanded.
|
|
88
|
+
module PayloadStyle
|
|
89
|
+
extend Orb::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
TaggedSymbol =
|
|
92
|
+
T.type_alias { T.all(Symbol, Orb::WebhookEndpoint::PayloadStyle) }
|
|
93
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
94
|
+
|
|
95
|
+
EXPANDED =
|
|
96
|
+
T.let(:expanded, Orb::WebhookEndpoint::PayloadStyle::TaggedSymbol)
|
|
97
|
+
STANDARD =
|
|
98
|
+
T.let(:standard, Orb::WebhookEndpoint::PayloadStyle::TaggedSymbol)
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
override.returns(
|
|
102
|
+
T::Array[Orb::WebhookEndpoint::PayloadStyle::TaggedSymbol]
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
def self.values
|
|
106
|
+
end
|
|
107
|
+
end
|
|
69
108
|
end
|
|
70
109
|
end
|
|
71
110
|
end
|
|
@@ -20,10 +20,21 @@ module Orb
|
|
|
20
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
21
21
|
attr_accessor :enabled_event_types
|
|
22
22
|
|
|
23
|
+
# The payload style of the webhook events sent to this endpoint. If omitted or
|
|
24
|
+
# null, the account's default style is used.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
T.nilable(Orb::WebhookEndpointCreateParams::PayloadStyle::OrSymbol)
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :payload_style
|
|
31
|
+
|
|
23
32
|
sig do
|
|
24
33
|
params(
|
|
25
34
|
url: String,
|
|
26
35
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
36
|
+
payload_style:
|
|
37
|
+
T.nilable(Orb::WebhookEndpointCreateParams::PayloadStyle::OrSymbol),
|
|
27
38
|
request_options: Orb::RequestOptions::OrHash
|
|
28
39
|
).returns(T.attached_class)
|
|
29
40
|
end
|
|
@@ -33,6 +44,9 @@ module Orb
|
|
|
33
44
|
# The webhook event types to send to this endpoint. If omitted or null, all event
|
|
34
45
|
# types are sent.
|
|
35
46
|
enabled_event_types: nil,
|
|
47
|
+
# The payload style of the webhook events sent to this endpoint. If omitted or
|
|
48
|
+
# null, the account's default style is used.
|
|
49
|
+
payload_style: nil,
|
|
36
50
|
request_options: {}
|
|
37
51
|
)
|
|
38
52
|
end
|
|
@@ -42,12 +56,49 @@ module Orb
|
|
|
42
56
|
{
|
|
43
57
|
url: String,
|
|
44
58
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
59
|
+
payload_style:
|
|
60
|
+
T.nilable(
|
|
61
|
+
Orb::WebhookEndpointCreateParams::PayloadStyle::OrSymbol
|
|
62
|
+
),
|
|
45
63
|
request_options: Orb::RequestOptions
|
|
46
64
|
}
|
|
47
65
|
)
|
|
48
66
|
end
|
|
49
67
|
def to_hash
|
|
50
68
|
end
|
|
69
|
+
|
|
70
|
+
# The payload style of the webhook events sent to this endpoint. If omitted or
|
|
71
|
+
# null, the account's default style is used.
|
|
72
|
+
module PayloadStyle
|
|
73
|
+
extend Orb::Internal::Type::Enum
|
|
74
|
+
|
|
75
|
+
TaggedSymbol =
|
|
76
|
+
T.type_alias do
|
|
77
|
+
T.all(Symbol, Orb::WebhookEndpointCreateParams::PayloadStyle)
|
|
78
|
+
end
|
|
79
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
80
|
+
|
|
81
|
+
EXPANDED =
|
|
82
|
+
T.let(
|
|
83
|
+
:expanded,
|
|
84
|
+
Orb::WebhookEndpointCreateParams::PayloadStyle::TaggedSymbol
|
|
85
|
+
)
|
|
86
|
+
STANDARD =
|
|
87
|
+
T.let(
|
|
88
|
+
:standard,
|
|
89
|
+
Orb::WebhookEndpointCreateParams::PayloadStyle::TaggedSymbol
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
sig do
|
|
93
|
+
override.returns(
|
|
94
|
+
T::Array[
|
|
95
|
+
Orb::WebhookEndpointCreateParams::PayloadStyle::TaggedSymbol
|
|
96
|
+
]
|
|
97
|
+
)
|
|
98
|
+
end
|
|
99
|
+
def self.values
|
|
100
|
+
end
|
|
101
|
+
end
|
|
51
102
|
end
|
|
52
103
|
end
|
|
53
104
|
end
|
|
@@ -19,6 +19,15 @@ module Orb
|
|
|
19
19
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
20
|
attr_accessor :enabled_event_types
|
|
21
21
|
|
|
22
|
+
# The payload style of the webhook events sent to this endpoint. Applies to events
|
|
23
|
+
# created after the change; omit to leave it unchanged.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
T.nilable(Orb::WebhookEndpointUpdateParams::PayloadStyle::OrSymbol)
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :payload_style
|
|
30
|
+
|
|
22
31
|
# The HTTPS URL that Orb sends webhook events to.
|
|
23
32
|
sig { returns(T.nilable(String)) }
|
|
24
33
|
attr_accessor :url
|
|
@@ -27,6 +36,8 @@ module Orb
|
|
|
27
36
|
params(
|
|
28
37
|
webhook_endpoint_id: String,
|
|
29
38
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
39
|
+
payload_style:
|
|
40
|
+
T.nilable(Orb::WebhookEndpointUpdateParams::PayloadStyle::OrSymbol),
|
|
30
41
|
url: T.nilable(String),
|
|
31
42
|
request_options: Orb::RequestOptions::OrHash
|
|
32
43
|
).returns(T.attached_class)
|
|
@@ -36,6 +47,9 @@ module Orb
|
|
|
36
47
|
# The webhook event types to send to this endpoint. Null sends all event types;
|
|
37
48
|
# omit to leave them unchanged.
|
|
38
49
|
enabled_event_types: nil,
|
|
50
|
+
# The payload style of the webhook events sent to this endpoint. Applies to events
|
|
51
|
+
# created after the change; omit to leave it unchanged.
|
|
52
|
+
payload_style: nil,
|
|
39
53
|
# The HTTPS URL that Orb sends webhook events to.
|
|
40
54
|
url: nil,
|
|
41
55
|
request_options: {}
|
|
@@ -47,6 +61,10 @@ module Orb
|
|
|
47
61
|
{
|
|
48
62
|
webhook_endpoint_id: String,
|
|
49
63
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
64
|
+
payload_style:
|
|
65
|
+
T.nilable(
|
|
66
|
+
Orb::WebhookEndpointUpdateParams::PayloadStyle::OrSymbol
|
|
67
|
+
),
|
|
50
68
|
url: T.nilable(String),
|
|
51
69
|
request_options: Orb::RequestOptions
|
|
52
70
|
}
|
|
@@ -54,6 +72,39 @@ module Orb
|
|
|
54
72
|
end
|
|
55
73
|
def to_hash
|
|
56
74
|
end
|
|
75
|
+
|
|
76
|
+
# The payload style of the webhook events sent to this endpoint. Applies to events
|
|
77
|
+
# created after the change; omit to leave it unchanged.
|
|
78
|
+
module PayloadStyle
|
|
79
|
+
extend Orb::Internal::Type::Enum
|
|
80
|
+
|
|
81
|
+
TaggedSymbol =
|
|
82
|
+
T.type_alias do
|
|
83
|
+
T.all(Symbol, Orb::WebhookEndpointUpdateParams::PayloadStyle)
|
|
84
|
+
end
|
|
85
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
86
|
+
|
|
87
|
+
EXPANDED =
|
|
88
|
+
T.let(
|
|
89
|
+
:expanded,
|
|
90
|
+
Orb::WebhookEndpointUpdateParams::PayloadStyle::TaggedSymbol
|
|
91
|
+
)
|
|
92
|
+
STANDARD =
|
|
93
|
+
T.let(
|
|
94
|
+
:standard,
|
|
95
|
+
Orb::WebhookEndpointUpdateParams::PayloadStyle::TaggedSymbol
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
sig do
|
|
99
|
+
override.returns(
|
|
100
|
+
T::Array[
|
|
101
|
+
Orb::WebhookEndpointUpdateParams::PayloadStyle::TaggedSymbol
|
|
102
|
+
]
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
def self.values
|
|
106
|
+
end
|
|
107
|
+
end
|
|
57
108
|
end
|
|
58
109
|
end
|
|
59
110
|
end
|
|
@@ -25,6 +25,15 @@ module Orb
|
|
|
25
25
|
sig { returns(T.nilable(T::Array[String])) }
|
|
26
26
|
attr_accessor :enabled_event_types
|
|
27
27
|
|
|
28
|
+
# The payload style of the webhook events sent to this endpoint. `standard`
|
|
29
|
+
# payloads include each object's own fields and references to related objects,
|
|
30
|
+
# without invoice line items or subscription price intervals. `expanded` payloads
|
|
31
|
+
# include every object fully expanded.
|
|
32
|
+
sig do
|
|
33
|
+
returns(Orb::WebhookEndpointWithSecret::PayloadStyle::TaggedSymbol)
|
|
34
|
+
end
|
|
35
|
+
attr_accessor :payload_style
|
|
36
|
+
|
|
28
37
|
# The secret used to sign the webhook events sent to this endpoint. Only returned
|
|
29
38
|
# when the endpoint is created.
|
|
30
39
|
sig { returns(String) }
|
|
@@ -42,6 +51,7 @@ module Orb
|
|
|
42
51
|
created_at: Time,
|
|
43
52
|
enabled: T::Boolean,
|
|
44
53
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
54
|
+
payload_style: Orb::WebhookEndpointWithSecret::PayloadStyle::OrSymbol,
|
|
45
55
|
secret: String,
|
|
46
56
|
url: String
|
|
47
57
|
).returns(T.attached_class)
|
|
@@ -56,6 +66,11 @@ module Orb
|
|
|
56
66
|
# The webhook event types sent to this endpoint. If null, all event types are
|
|
57
67
|
# sent.
|
|
58
68
|
enabled_event_types:,
|
|
69
|
+
# The payload style of the webhook events sent to this endpoint. `standard`
|
|
70
|
+
# payloads include each object's own fields and references to related objects,
|
|
71
|
+
# without invoice line items or subscription price intervals. `expanded` payloads
|
|
72
|
+
# include every object fully expanded.
|
|
73
|
+
payload_style:,
|
|
59
74
|
# The secret used to sign the webhook events sent to this endpoint. Only returned
|
|
60
75
|
# when the endpoint is created.
|
|
61
76
|
secret:,
|
|
@@ -71,6 +86,8 @@ module Orb
|
|
|
71
86
|
created_at: Time,
|
|
72
87
|
enabled: T::Boolean,
|
|
73
88
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
89
|
+
payload_style:
|
|
90
|
+
Orb::WebhookEndpointWithSecret::PayloadStyle::TaggedSymbol,
|
|
74
91
|
secret: String,
|
|
75
92
|
url: String
|
|
76
93
|
}
|
|
@@ -78,6 +95,39 @@ module Orb
|
|
|
78
95
|
end
|
|
79
96
|
def to_hash
|
|
80
97
|
end
|
|
98
|
+
|
|
99
|
+
# The payload style of the webhook events sent to this endpoint. `standard`
|
|
100
|
+
# payloads include each object's own fields and references to related objects,
|
|
101
|
+
# without invoice line items or subscription price intervals. `expanded` payloads
|
|
102
|
+
# include every object fully expanded.
|
|
103
|
+
module PayloadStyle
|
|
104
|
+
extend Orb::Internal::Type::Enum
|
|
105
|
+
|
|
106
|
+
TaggedSymbol =
|
|
107
|
+
T.type_alias do
|
|
108
|
+
T.all(Symbol, Orb::WebhookEndpointWithSecret::PayloadStyle)
|
|
109
|
+
end
|
|
110
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
111
|
+
|
|
112
|
+
EXPANDED =
|
|
113
|
+
T.let(
|
|
114
|
+
:expanded,
|
|
115
|
+
Orb::WebhookEndpointWithSecret::PayloadStyle::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
STANDARD =
|
|
118
|
+
T.let(
|
|
119
|
+
:standard,
|
|
120
|
+
Orb::WebhookEndpointWithSecret::PayloadStyle::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
sig do
|
|
124
|
+
override.returns(
|
|
125
|
+
T::Array[Orb::WebhookEndpointWithSecret::PayloadStyle::TaggedSymbol]
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
def self.values
|
|
129
|
+
end
|
|
130
|
+
end
|
|
81
131
|
end
|
|
82
132
|
end
|
|
83
133
|
end
|
|
@@ -35,7 +35,8 @@ module Orb
|
|
|
35
35
|
sig { returns(Time) }
|
|
36
36
|
attr_accessor :created_at
|
|
37
37
|
|
|
38
|
-
#
|
|
38
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
39
|
+
# Fetch the invoice for those.
|
|
39
40
|
sig do
|
|
40
41
|
returns(
|
|
41
42
|
Orb::Webhooks::InvoiceAccountingSyncFailedStandardWebhookEvent::Invoice
|
|
@@ -106,7 +107,8 @@ module Orb
|
|
|
106
107
|
accounting_sync_record:,
|
|
107
108
|
# The time at which this event was created, to the second.
|
|
108
109
|
created_at:,
|
|
109
|
-
#
|
|
110
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
111
|
+
# Fetch the invoice for those.
|
|
110
112
|
invoice:,
|
|
111
113
|
# The serialization style this payload was rendered in, as configured on the
|
|
112
114
|
# endpoint.
|
|
@@ -653,7 +655,8 @@ module Orb
|
|
|
653
655
|
sig { returns(T::Boolean) }
|
|
654
656
|
attr_accessor :will_auto_issue
|
|
655
657
|
|
|
656
|
-
#
|
|
658
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
659
|
+
# Fetch the invoice for those.
|
|
657
660
|
sig do
|
|
658
661
|
params(
|
|
659
662
|
id: String,
|
|
@@ -35,7 +35,8 @@ module Orb
|
|
|
35
35
|
sig { returns(Time) }
|
|
36
36
|
attr_accessor :created_at
|
|
37
37
|
|
|
38
|
-
#
|
|
38
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
39
|
+
# Fetch the invoice for those.
|
|
39
40
|
sig do
|
|
40
41
|
returns(
|
|
41
42
|
Orb::Webhooks::InvoiceAccountingSyncSucceededStandardWebhookEvent::Invoice
|
|
@@ -106,7 +107,8 @@ module Orb
|
|
|
106
107
|
accounting_sync_record:,
|
|
107
108
|
# The time at which this event was created, to the second.
|
|
108
109
|
created_at:,
|
|
109
|
-
#
|
|
110
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
111
|
+
# Fetch the invoice for those.
|
|
110
112
|
invoice:,
|
|
111
113
|
# The serialization style this payload was rendered in, as configured on the
|
|
112
114
|
# endpoint.
|
|
@@ -653,7 +655,8 @@ module Orb
|
|
|
653
655
|
sig { returns(T::Boolean) }
|
|
654
656
|
attr_accessor :will_auto_issue
|
|
655
657
|
|
|
656
|
-
#
|
|
658
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
659
|
+
# Fetch the invoice for those.
|
|
657
660
|
sig do
|
|
658
661
|
params(
|
|
659
662
|
id: String,
|
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(
|
|
26
27
|
Orb::Webhooks::InvoiceDunningScheduleCreatedStandardWebhookEvent::Invoice
|
|
@@ -88,7 +89,8 @@ module Orb
|
|
|
88
89
|
id:,
|
|
89
90
|
# The time at which this event was created, to the second.
|
|
90
91
|
created_at:,
|
|
91
|
-
#
|
|
92
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
93
|
+
# Fetch the invoice for those.
|
|
92
94
|
invoice:,
|
|
93
95
|
# The serialization style this payload was rendered in, as configured on the
|
|
94
96
|
# endpoint.
|
|
@@ -488,7 +490,8 @@ module Orb
|
|
|
488
490
|
sig { returns(T::Boolean) }
|
|
489
491
|
attr_accessor :will_auto_issue
|
|
490
492
|
|
|
491
|
-
#
|
|
493
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
494
|
+
# Fetch the invoice for those.
|
|
492
495
|
sig do
|
|
493
496
|
params(
|
|
494
497
|
id: String,
|
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(
|
|
26
27
|
Orb::Webhooks::InvoiceDunningScheduleEndedStandardWebhookEvent::Invoice
|
|
@@ -88,7 +89,8 @@ module Orb
|
|
|
88
89
|
id:,
|
|
89
90
|
# The time at which this event was created, to the second.
|
|
90
91
|
created_at:,
|
|
91
|
-
#
|
|
92
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
93
|
+
# Fetch the invoice for those.
|
|
92
94
|
invoice:,
|
|
93
95
|
# The serialization style this payload was rendered in, as configured on the
|
|
94
96
|
# endpoint.
|
|
@@ -488,7 +490,8 @@ module Orb
|
|
|
488
490
|
sig { returns(T::Boolean) }
|
|
489
491
|
attr_accessor :will_auto_issue
|
|
490
492
|
|
|
491
|
-
#
|
|
493
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
494
|
+
# Fetch the invoice for those.
|
|
492
495
|
sig do
|
|
493
496
|
params(
|
|
494
497
|
id: String,
|
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(
|
|
26
27
|
Orb::Webhooks::InvoiceDunningScheduleResetStandardWebhookEvent::Invoice
|
|
@@ -88,7 +89,8 @@ module Orb
|
|
|
88
89
|
id:,
|
|
89
90
|
# The time at which this event was created, to the second.
|
|
90
91
|
created_at:,
|
|
91
|
-
#
|
|
92
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
93
|
+
# Fetch the invoice for those.
|
|
92
94
|
invoice:,
|
|
93
95
|
# The serialization style this payload was rendered in, as configured on the
|
|
94
96
|
# endpoint.
|
|
@@ -488,7 +490,8 @@ module Orb
|
|
|
488
490
|
sig { returns(T::Boolean) }
|
|
489
491
|
attr_accessor :will_auto_issue
|
|
490
492
|
|
|
491
|
-
#
|
|
493
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
494
|
+
# Fetch the invoice for those.
|
|
492
495
|
sig do
|
|
493
496
|
params(
|
|
494
497
|
id: String,
|
data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi
CHANGED
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(
|
|
26
27
|
Orb::Webhooks::InvoiceDunningScheduleStepExecutedStandardWebhookEvent::Invoice
|
|
@@ -88,7 +89,8 @@ module Orb
|
|
|
88
89
|
id:,
|
|
89
90
|
# The time at which this event was created, to the second.
|
|
90
91
|
created_at:,
|
|
91
|
-
#
|
|
92
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
93
|
+
# Fetch the invoice for those.
|
|
92
94
|
invoice:,
|
|
93
95
|
# The serialization style this payload was rendered in, as configured on the
|
|
94
96
|
# endpoint.
|
|
@@ -488,7 +490,8 @@ module Orb
|
|
|
488
490
|
sig { returns(T::Boolean) }
|
|
489
491
|
attr_accessor :will_auto_issue
|
|
490
492
|
|
|
491
|
-
#
|
|
493
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
494
|
+
# Fetch the invoice for those.
|
|
492
495
|
sig do
|
|
493
496
|
params(
|
|
494
497
|
id: String,
|
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(Orb::Webhooks::InvoiceEditedStandardWebhookEvent::Invoice)
|
|
26
27
|
end
|
|
@@ -84,7 +85,8 @@ module Orb
|
|
|
84
85
|
id:,
|
|
85
86
|
# The time at which this event was created, to the second.
|
|
86
87
|
created_at:,
|
|
87
|
-
#
|
|
88
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
89
|
+
# Fetch the invoice for those.
|
|
88
90
|
invoice:,
|
|
89
91
|
# The serialization style this payload was rendered in, as configured on the
|
|
90
92
|
# endpoint.
|
|
@@ -484,7 +486,8 @@ module Orb
|
|
|
484
486
|
sig { returns(T::Boolean) }
|
|
485
487
|
attr_accessor :will_auto_issue
|
|
486
488
|
|
|
487
|
-
#
|
|
489
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
490
|
+
# Fetch the invoice for those.
|
|
488
491
|
sig do
|
|
489
492
|
params(
|
|
490
493
|
id: String,
|
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(
|
|
26
27
|
Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice
|
|
@@ -88,7 +89,8 @@ module Orb
|
|
|
88
89
|
id:,
|
|
89
90
|
# The time at which this event was created, to the second.
|
|
90
91
|
created_at:,
|
|
91
|
-
#
|
|
92
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
93
|
+
# Fetch the invoice for those.
|
|
92
94
|
invoice:,
|
|
93
95
|
# The serialization style this payload was rendered in, as configured on the
|
|
94
96
|
# endpoint.
|
|
@@ -488,7 +490,8 @@ module Orb
|
|
|
488
490
|
sig { returns(T::Boolean) }
|
|
489
491
|
attr_accessor :will_auto_issue
|
|
490
492
|
|
|
491
|
-
#
|
|
493
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
494
|
+
# Fetch the invoice for those.
|
|
492
495
|
sig do
|
|
493
496
|
params(
|
|
494
497
|
id: String,
|
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(Orb::Webhooks::InvoiceIssuedStandardWebhookEvent::Invoice)
|
|
26
27
|
end
|
|
@@ -84,7 +85,8 @@ module Orb
|
|
|
84
85
|
id:,
|
|
85
86
|
# The time at which this event was created, to the second.
|
|
86
87
|
created_at:,
|
|
87
|
-
#
|
|
88
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
89
|
+
# Fetch the invoice for those.
|
|
88
90
|
invoice:,
|
|
89
91
|
# The serialization style this payload was rendered in, as configured on the
|
|
90
92
|
# endpoint.
|
|
@@ -484,7 +486,8 @@ module Orb
|
|
|
484
486
|
sig { returns(T::Boolean) }
|
|
485
487
|
attr_accessor :will_auto_issue
|
|
486
488
|
|
|
487
|
-
#
|
|
489
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
490
|
+
# Fetch the invoice for those.
|
|
488
491
|
sig do
|
|
489
492
|
params(
|
|
490
493
|
id: String,
|
|
@@ -20,7 +20,8 @@ module Orb
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
24
|
+
# Fetch the invoice for those.
|
|
24
25
|
sig do
|
|
25
26
|
returns(
|
|
26
27
|
Orb::Webhooks::InvoiceIssuedSummaryStandardWebhookEvent::Invoice
|
|
@@ -89,7 +90,8 @@ module Orb
|
|
|
89
90
|
id:,
|
|
90
91
|
# The time at which this event was created, to the second.
|
|
91
92
|
created_at:,
|
|
92
|
-
#
|
|
93
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
94
|
+
# Fetch the invoice for those.
|
|
93
95
|
invoice:,
|
|
94
96
|
# The serialization style this payload was rendered in, as configured on the
|
|
95
97
|
# endpoint.
|
|
@@ -489,7 +491,8 @@ module Orb
|
|
|
489
491
|
sig { returns(T::Boolean) }
|
|
490
492
|
attr_accessor :will_auto_issue
|
|
491
493
|
|
|
492
|
-
#
|
|
494
|
+
# An invoice without its line items, subtotal, discounts, minimums or maximums.
|
|
495
|
+
# Fetch the invoice for those.
|
|
493
496
|
sig do
|
|
494
497
|
params(
|
|
495
498
|
id: String,
|