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.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -1
  3. data/README.md +1 -1
  4. data/lib/orb/models/invoice_issue_summary_response.rb +2 -1
  5. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +5 -3
  6. data/lib/orb/models/invoice_list_summary_response.rb +2 -1
  7. data/lib/orb/models/metric_list_params.rb +21 -1
  8. data/lib/orb/models/metric_update_params.rb +17 -1
  9. data/lib/orb/models/plan_update_params.rb +9 -1
  10. data/lib/orb/models/plans/external_plan_id_update_params.rb +9 -1
  11. data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +5 -9
  12. data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +5 -9
  13. data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +5 -9
  14. data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +5 -9
  15. data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +5 -9
  16. data/lib/orb/models/webhook_endpoint.rb +28 -1
  17. data/lib/orb/models/webhook_endpoint_create_params.rb +22 -1
  18. data/lib/orb/models/webhook_endpoint_update_params.rb +22 -1
  19. data/lib/orb/models/webhook_endpoint_with_secret.rb +28 -1
  20. data/lib/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +5 -3
  21. data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +5 -3
  22. data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +5 -3
  23. data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +5 -3
  24. data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +5 -3
  25. data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +5 -3
  26. data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +5 -3
  27. data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +5 -3
  28. data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +5 -3
  29. data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +5 -3
  30. data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +5 -3
  31. data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +5 -3
  32. data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +5 -3
  33. data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +5 -3
  34. data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +5 -3
  35. data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +5 -3
  36. data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +5 -3
  37. data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +5 -3
  38. data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +5 -3
  39. data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +5 -3
  40. data/lib/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rb +7 -7
  41. data/lib/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rb +7 -7
  42. data/lib/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rb +5 -9
  43. data/lib/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rb +7 -7
  44. data/lib/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rb +7 -7
  45. data/lib/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rb +7 -7
  46. data/lib/orb/models/webhooks/subscription_created_standard_webhook_event.rb +7 -7
  47. data/lib/orb/models/webhooks/subscription_edited_standard_webhook_event.rb +7 -7
  48. data/lib/orb/models/webhooks/subscription_ended_standard_webhook_event.rb +7 -7
  49. data/lib/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rb +7 -7
  50. data/lib/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rb +5 -9
  51. data/lib/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rb +5 -9
  52. data/lib/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rb +5 -9
  53. data/lib/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rb +5 -9
  54. data/lib/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rb +7 -7
  55. data/lib/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rb +7 -7
  56. data/lib/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rb +7 -7
  57. data/lib/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rb +7 -7
  58. data/lib/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rb +7 -7
  59. data/lib/orb/models/webhooks/subscription_started_standard_webhook_event.rb +7 -7
  60. data/lib/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rb +7 -7
  61. data/lib/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rb +7 -7
  62. data/lib/orb/resources/metrics.rb +15 -5
  63. data/lib/orb/resources/plans/external_plan_id.rb +6 -3
  64. data/lib/orb/resources/plans.rb +6 -3
  65. data/lib/orb/resources/webhook_endpoints.rb +6 -2
  66. data/lib/orb/version.rb +1 -1
  67. data/rbi/orb/models/invoice_issue_summary_response.rbi +2 -1
  68. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +6 -3
  69. data/rbi/orb/models/invoice_list_summary_response.rbi +2 -1
  70. data/rbi/orb/models/metric_list_params.rbi +29 -0
  71. data/rbi/orb/models/metric_update_params.rbi +16 -0
  72. data/rbi/orb/models/plan_update_params.rbi +8 -0
  73. data/rbi/orb/models/plans/external_plan_id_update_params.rbi +8 -0
  74. data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +6 -12
  75. data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +6 -12
  76. data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +6 -12
  77. data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +6 -12
  78. data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +6 -12
  79. data/rbi/orb/models/webhook_endpoint.rbi +39 -0
  80. data/rbi/orb/models/webhook_endpoint_create_params.rbi +51 -0
  81. data/rbi/orb/models/webhook_endpoint_update_params.rbi +51 -0
  82. data/rbi/orb/models/webhook_endpoint_with_secret.rbi +50 -0
  83. data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +6 -3
  84. data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +6 -3
  85. data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +6 -3
  86. data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +6 -3
  87. data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +6 -3
  88. data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +6 -3
  89. data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +6 -3
  90. data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +6 -3
  91. data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +6 -3
  92. data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +6 -3
  93. data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +6 -3
  94. data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +6 -3
  95. data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +6 -3
  96. data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +6 -3
  97. data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +6 -3
  98. data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +6 -3
  99. data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +6 -3
  100. data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +6 -3
  101. data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +6 -3
  102. data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +6 -3
  103. data/rbi/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbi +9 -9
  104. data/rbi/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbi +9 -9
  105. data/rbi/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbi +6 -12
  106. data/rbi/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbi +9 -9
  107. data/rbi/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbi +9 -9
  108. data/rbi/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbi +9 -9
  109. data/rbi/orb/models/webhooks/subscription_created_standard_webhook_event.rbi +9 -9
  110. data/rbi/orb/models/webhooks/subscription_edited_standard_webhook_event.rbi +9 -9
  111. data/rbi/orb/models/webhooks/subscription_ended_standard_webhook_event.rbi +9 -9
  112. data/rbi/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbi +9 -9
  113. data/rbi/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbi +6 -12
  114. data/rbi/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbi +6 -12
  115. data/rbi/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbi +6 -12
  116. data/rbi/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbi +6 -12
  117. data/rbi/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbi +9 -9
  118. data/rbi/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbi +9 -9
  119. data/rbi/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbi +9 -9
  120. data/rbi/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbi +9 -9
  121. data/rbi/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbi +9 -9
  122. data/rbi/orb/models/webhooks/subscription_started_standard_webhook_event.rbi +9 -9
  123. data/rbi/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbi +9 -9
  124. data/rbi/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbi +9 -9
  125. data/rbi/orb/resources/metrics.rbi +16 -3
  126. data/rbi/orb/resources/plans/external_plan_id.rbi +6 -2
  127. data/rbi/orb/resources/plans.rbi +6 -2
  128. data/rbi/orb/resources/webhook_endpoints.rbi +10 -0
  129. data/sig/orb/models/metric_list_params.rbs +18 -1
  130. data/sig/orb/models/metric_update_params.rbs +14 -1
  131. data/sig/orb/models/plan_update_params.rbs +6 -1
  132. data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -1
  133. data/sig/orb/models/webhook_endpoint.rbs +16 -0
  134. data/sig/orb/models/webhook_endpoint_create_params.rbs +20 -1
  135. data/sig/orb/models/webhook_endpoint_update_params.rbs +16 -0
  136. data/sig/orb/models/webhook_endpoint_with_secret.rbs +16 -0
  137. data/sig/orb/resources/metrics.rbs +3 -0
  138. data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
  139. data/sig/orb/resources/plans.rbs +1 -0
  140. data/sig/orb/resources/webhook_endpoints.rbs +2 -0
  141. metadata +1 -1
@@ -8,8 +8,9 @@ module Orb
8
8
  # subscription. You can see more about how to configure prices in the
9
9
  # [Price resource](/reference/price).
10
10
  class ExternalPlanID
11
- # This endpoint can be used to update the `external_plan_id`, `description`, and
12
- # `metadata` of an existing plan.
11
+ # This endpoint can be used to update the `name`, `external_plan_id`,
12
+ # `description`, and `metadata` of an existing plan. A plan's `name` cannot be
13
+ # empty.
13
14
  #
14
15
  # Other fields on a plan are currently immutable.
15
16
  sig do
@@ -18,6 +19,7 @@ module Orb
18
19
  description: T.nilable(String),
19
20
  external_plan_id: T.nilable(String),
20
21
  metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
22
+ name: T.nilable(String),
21
23
  request_options: Orb::RequestOptions::OrHash
22
24
  ).returns(Orb::Plan)
23
25
  end
@@ -33,6 +35,8 @@ module Orb
33
35
  # by setting the value to `null`, and the entire metadata mapping can be cleared
34
36
  # by setting `metadata` to `null`.
35
37
  metadata: nil,
38
+ # The name of the plan.
39
+ name: nil,
36
40
  request_options: {}
37
41
  )
38
42
  end
@@ -74,8 +74,9 @@ module Orb
74
74
  )
75
75
  end
76
76
 
77
- # This endpoint can be used to update the `external_plan_id`, `description`, and
78
- # `metadata` of an existing plan.
77
+ # This endpoint can be used to update the `name`, `external_plan_id`,
78
+ # `description`, and `metadata` of an existing plan. A plan's `name` cannot be
79
+ # empty.
79
80
  #
80
81
  # Other fields on a plan are currently immutable.
81
82
  sig do
@@ -84,6 +85,7 @@ module Orb
84
85
  description: T.nilable(String),
85
86
  external_plan_id: T.nilable(String),
86
87
  metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
88
+ name: T.nilable(String),
87
89
  request_options: Orb::RequestOptions::OrHash
88
90
  ).returns(Orb::Plan)
89
91
  end
@@ -99,6 +101,8 @@ module Orb
99
101
  # by setting the value to `null`, and the entire metadata mapping can be cleared
100
102
  # by setting `metadata` to `null`.
101
103
  metadata: nil,
104
+ # The name of the plan.
105
+ name: nil,
102
106
  request_options: {}
103
107
  )
104
108
  end
@@ -12,6 +12,8 @@ module Orb
12
12
  params(
13
13
  url: String,
14
14
  enabled_event_types: T.nilable(T::Array[String]),
15
+ payload_style:
16
+ T.nilable(Orb::WebhookEndpointCreateParams::PayloadStyle::OrSymbol),
15
17
  request_options: Orb::RequestOptions::OrHash
16
18
  ).returns(Orb::WebhookEndpointWithSecret)
17
19
  end
@@ -21,6 +23,9 @@ module Orb
21
23
  # The webhook event types to send to this endpoint. If omitted or null, all event
22
24
  # types are sent.
23
25
  enabled_event_types: nil,
26
+ # The payload style of the webhook events sent to this endpoint. If omitted or
27
+ # null, the account's default style is used.
28
+ payload_style: nil,
24
29
  request_options: {}
25
30
  )
26
31
  end
@@ -40,6 +45,8 @@ module Orb
40
45
  params(
41
46
  webhook_endpoint_id: String,
42
47
  enabled_event_types: T.nilable(T::Array[String]),
48
+ payload_style:
49
+ T.nilable(Orb::WebhookEndpointUpdateParams::PayloadStyle::OrSymbol),
43
50
  url: T.nilable(String),
44
51
  request_options: Orb::RequestOptions::OrHash
45
52
  ).returns(Orb::WebhookEndpoint)
@@ -49,6 +56,9 @@ module Orb
49
56
  # The webhook event types to send to this endpoint. Null sends all event types;
50
57
  # omit to leave them unchanged.
51
58
  enabled_event_types: nil,
59
+ # The payload style of the webhook events sent to this endpoint. Applies to events
60
+ # created after the change; omit to leave it unchanged.
61
+ payload_style: nil,
52
62
  # The HTTPS URL that Orb sends webhook events to.
53
63
  url: nil,
54
64
  request_options: {}
@@ -7,7 +7,8 @@ module Orb
7
7
  created_at_lt: Time?,
8
8
  created_at_lte: Time?,
9
9
  cursor: String?,
10
- limit: Integer
10
+ limit: Integer,
11
+ status: Orb::Models::MetricListParams::status?
11
12
  }
12
13
  & Orb::Internal::Type::request_parameters
13
14
 
@@ -29,6 +30,8 @@ module Orb
29
30
 
30
31
  def limit=: (Integer) -> Integer
31
32
 
33
+ attr_accessor status: Orb::Models::MetricListParams::status?
34
+
32
35
  def initialize: (
33
36
  ?created_at_gt: Time?,
34
37
  ?created_at_gte: Time?,
@@ -36,6 +39,7 @@ module Orb
36
39
  ?created_at_lte: Time?,
37
40
  ?cursor: String?,
38
41
  ?limit: Integer,
42
+ ?status: Orb::Models::MetricListParams::status?,
39
43
  ?request_options: Orb::request_opts
40
44
  ) -> void
41
45
 
@@ -46,8 +50,21 @@ module Orb
46
50
  created_at_lte: Time?,
47
51
  cursor: String?,
48
52
  limit: Integer,
53
+ status: Orb::Models::MetricListParams::status?,
49
54
  request_options: Orb::RequestOptions
50
55
  }
56
+
57
+ type status = :active | :archived | :draft
58
+
59
+ module Status
60
+ extend Orb::Internal::Type::Enum
61
+
62
+ ACTIVE: :active
63
+ ARCHIVED: :archived
64
+ DRAFT: :draft
65
+
66
+ def self?.values: -> ::Array[Orb::Models::MetricListParams::status]
67
+ end
51
68
  end
52
69
  end
53
70
  end
@@ -1,7 +1,12 @@
1
1
  module Orb
2
2
  module Models
3
3
  type metric_update_params =
4
- { metric_id: String, metadata: ::Hash[Symbol, String?]? }
4
+ {
5
+ metric_id: String,
6
+ description: String?,
7
+ metadata: ::Hash[Symbol, String?]?,
8
+ name: String?
9
+ }
5
10
  & Orb::Internal::Type::request_parameters
6
11
 
7
12
  class MetricUpdateParams < Orb::Internal::Type::BaseModel
@@ -10,17 +15,25 @@ module Orb
10
15
 
11
16
  attr_accessor metric_id: String
12
17
 
18
+ attr_accessor description: String?
19
+
13
20
  attr_accessor metadata: ::Hash[Symbol, String?]?
14
21
 
22
+ attr_accessor name: String?
23
+
15
24
  def initialize: (
16
25
  metric_id: String,
26
+ ?description: String?,
17
27
  ?metadata: ::Hash[Symbol, String?]?,
28
+ ?name: String?,
18
29
  ?request_options: Orb::request_opts
19
30
  ) -> void
20
31
 
21
32
  def to_hash: -> {
22
33
  metric_id: String,
34
+ description: String?,
23
35
  metadata: ::Hash[Symbol, String?]?,
36
+ name: String?,
24
37
  request_options: Orb::RequestOptions
25
38
  }
26
39
  end
@@ -5,7 +5,8 @@ module Orb
5
5
  plan_id: String,
6
6
  description: String?,
7
7
  external_plan_id: String?,
8
- metadata: ::Hash[Symbol, String?]?
8
+ metadata: ::Hash[Symbol, String?]?,
9
+ name: String?
9
10
  }
10
11
  & Orb::Internal::Type::request_parameters
11
12
 
@@ -21,11 +22,14 @@ module Orb
21
22
 
22
23
  attr_accessor metadata: ::Hash[Symbol, String?]?
23
24
 
25
+ attr_accessor name: String?
26
+
24
27
  def initialize: (
25
28
  plan_id: String,
26
29
  ?description: String?,
27
30
  ?external_plan_id: String?,
28
31
  ?metadata: ::Hash[Symbol, String?]?,
32
+ ?name: String?,
29
33
  ?request_options: Orb::request_opts
30
34
  ) -> void
31
35
 
@@ -34,6 +38,7 @@ module Orb
34
38
  description: String?,
35
39
  external_plan_id: String?,
36
40
  metadata: ::Hash[Symbol, String?]?,
41
+ name: String?,
37
42
  request_options: Orb::RequestOptions
38
43
  }
39
44
  end
@@ -6,7 +6,8 @@ module Orb
6
6
  other_external_plan_id: String,
7
7
  description: String?,
8
8
  external_plan_id: String?,
9
- metadata: ::Hash[Symbol, String?]?
9
+ metadata: ::Hash[Symbol, String?]?,
10
+ name: String?
10
11
  }
11
12
  & Orb::Internal::Type::request_parameters
12
13
 
@@ -22,11 +23,14 @@ module Orb
22
23
 
23
24
  attr_accessor metadata: ::Hash[Symbol, String?]?
24
25
 
26
+ attr_accessor name: String?
27
+
25
28
  def initialize: (
26
29
  other_external_plan_id: String,
27
30
  ?description: String?,
28
31
  ?external_plan_id: String?,
29
32
  ?metadata: ::Hash[Symbol, String?]?,
33
+ ?name: String?,
30
34
  ?request_options: Orb::request_opts
31
35
  ) -> void
32
36
 
@@ -35,6 +39,7 @@ module Orb
35
39
  description: String?,
36
40
  external_plan_id: String?,
37
41
  metadata: ::Hash[Symbol, String?]?,
42
+ name: String?,
38
43
  request_options: Orb::RequestOptions
39
44
  }
40
45
  end
@@ -6,6 +6,7 @@ module Orb
6
6
  created_at: Time,
7
7
  enabled: bool,
8
8
  enabled_event_types: ::Array[String]?,
9
+ payload_style: Orb::Models::WebhookEndpoint::payload_style,
9
10
  url: String
10
11
  }
11
12
 
@@ -18,6 +19,8 @@ module Orb
18
19
 
19
20
  attr_accessor enabled_event_types: ::Array[String]?
20
21
 
22
+ attr_accessor payload_style: Orb::Models::WebhookEndpoint::payload_style
23
+
21
24
  attr_accessor url: String
22
25
 
23
26
  def initialize: (
@@ -25,6 +28,7 @@ module Orb
25
28
  created_at: Time,
26
29
  enabled: bool,
27
30
  enabled_event_types: ::Array[String]?,
31
+ payload_style: Orb::Models::WebhookEndpoint::payload_style,
28
32
  url: String
29
33
  ) -> void
30
34
 
@@ -33,8 +37,20 @@ module Orb
33
37
  created_at: Time,
34
38
  enabled: bool,
35
39
  enabled_event_types: ::Array[String]?,
40
+ payload_style: Orb::Models::WebhookEndpoint::payload_style,
36
41
  url: String
37
42
  }
43
+
44
+ type payload_style = :expanded | :standard
45
+
46
+ module PayloadStyle
47
+ extend Orb::Internal::Type::Enum
48
+
49
+ EXPANDED: :expanded
50
+ STANDARD: :standard
51
+
52
+ def self?.values: -> ::Array[Orb::Models::WebhookEndpoint::payload_style]
53
+ end
38
54
  end
39
55
  end
40
56
  end
@@ -1,7 +1,11 @@
1
1
  module Orb
2
2
  module Models
3
3
  type webhook_endpoint_create_params =
4
- { url: String, enabled_event_types: ::Array[String]? }
4
+ {
5
+ url: String,
6
+ enabled_event_types: ::Array[String]?,
7
+ payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?
8
+ }
5
9
  & Orb::Internal::Type::request_parameters
6
10
 
7
11
  class WebhookEndpointCreateParams < Orb::Internal::Type::BaseModel
@@ -12,17 +16,32 @@ module Orb
12
16
 
13
17
  attr_accessor enabled_event_types: ::Array[String]?
14
18
 
19
+ attr_accessor payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?
20
+
15
21
  def initialize: (
16
22
  url: String,
17
23
  ?enabled_event_types: ::Array[String]?,
24
+ ?payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?,
18
25
  ?request_options: Orb::request_opts
19
26
  ) -> void
20
27
 
21
28
  def to_hash: -> {
22
29
  url: String,
23
30
  enabled_event_types: ::Array[String]?,
31
+ payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?,
24
32
  request_options: Orb::RequestOptions
25
33
  }
34
+
35
+ type payload_style = :expanded | :standard
36
+
37
+ module PayloadStyle
38
+ extend Orb::Internal::Type::Enum
39
+
40
+ EXPANDED: :expanded
41
+ STANDARD: :standard
42
+
43
+ def self?.values: -> ::Array[Orb::Models::WebhookEndpointCreateParams::payload_style]
44
+ end
26
45
  end
27
46
  end
28
47
  end
@@ -4,6 +4,7 @@ module Orb
4
4
  {
5
5
  webhook_endpoint_id: String,
6
6
  enabled_event_types: ::Array[String]?,
7
+ payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?,
7
8
  url: String?
8
9
  }
9
10
  & Orb::Internal::Type::request_parameters
@@ -16,11 +17,14 @@ module Orb
16
17
 
17
18
  attr_accessor enabled_event_types: ::Array[String]?
18
19
 
20
+ attr_accessor payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?
21
+
19
22
  attr_accessor url: String?
20
23
 
21
24
  def initialize: (
22
25
  webhook_endpoint_id: String,
23
26
  ?enabled_event_types: ::Array[String]?,
27
+ ?payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?,
24
28
  ?url: String?,
25
29
  ?request_options: Orb::request_opts
26
30
  ) -> void
@@ -28,9 +32,21 @@ module Orb
28
32
  def to_hash: -> {
29
33
  webhook_endpoint_id: String,
30
34
  enabled_event_types: ::Array[String]?,
35
+ payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?,
31
36
  url: String?,
32
37
  request_options: Orb::RequestOptions
33
38
  }
39
+
40
+ type payload_style = :expanded | :standard
41
+
42
+ module PayloadStyle
43
+ extend Orb::Internal::Type::Enum
44
+
45
+ EXPANDED: :expanded
46
+ STANDARD: :standard
47
+
48
+ def self?.values: -> ::Array[Orb::Models::WebhookEndpointUpdateParams::payload_style]
49
+ end
34
50
  end
35
51
  end
36
52
  end
@@ -6,6 +6,7 @@ module Orb
6
6
  created_at: Time,
7
7
  enabled: bool,
8
8
  enabled_event_types: ::Array[String]?,
9
+ payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style,
9
10
  secret: String,
10
11
  url: String
11
12
  }
@@ -19,6 +20,8 @@ module Orb
19
20
 
20
21
  attr_accessor enabled_event_types: ::Array[String]?
21
22
 
23
+ attr_accessor payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style
24
+
22
25
  attr_accessor secret: String
23
26
 
24
27
  attr_accessor url: String
@@ -28,6 +31,7 @@ module Orb
28
31
  created_at: Time,
29
32
  enabled: bool,
30
33
  enabled_event_types: ::Array[String]?,
34
+ payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style,
31
35
  secret: String,
32
36
  url: String
33
37
  ) -> void
@@ -37,9 +41,21 @@ module Orb
37
41
  created_at: Time,
38
42
  enabled: bool,
39
43
  enabled_event_types: ::Array[String]?,
44
+ payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style,
40
45
  secret: String,
41
46
  url: String
42
47
  }
48
+
49
+ type payload_style = :expanded | :standard
50
+
51
+ module PayloadStyle
52
+ extend Orb::Internal::Type::Enum
53
+
54
+ EXPANDED: :expanded
55
+ STANDARD: :standard
56
+
57
+ def self?.values: -> ::Array[Orb::Models::WebhookEndpointWithSecret::payload_style]
58
+ end
43
59
  end
44
60
  end
45
61
  end
@@ -12,7 +12,9 @@ module Orb
12
12
 
13
13
  def update: (
14
14
  String metric_id,
15
+ ?description: String?,
15
16
  ?metadata: ::Hash[Symbol, String?]?,
17
+ ?name: String?,
16
18
  ?request_options: Orb::request_opts
17
19
  ) -> Orb::BillableMetric
18
20
 
@@ -23,6 +25,7 @@ module Orb
23
25
  ?created_at_lte: Time?,
24
26
  ?cursor: String?,
25
27
  ?limit: Integer,
28
+ ?status: Orb::Models::MetricListParams::status?,
26
29
  ?request_options: Orb::request_opts
27
30
  ) -> Orb::Internal::Page[Orb::BillableMetric]
28
31
 
@@ -7,6 +7,7 @@ module Orb
7
7
  ?description: String?,
8
8
  ?external_plan_id: String?,
9
9
  ?metadata: ::Hash[Symbol, String?]?,
10
+ ?name: String?,
10
11
  ?request_options: Orb::request_opts
11
12
  ) -> Orb::Plan
12
13
 
@@ -25,6 +25,7 @@ module Orb
25
25
  ?description: String?,
26
26
  ?external_plan_id: String?,
27
27
  ?metadata: ::Hash[Symbol, String?]?,
28
+ ?name: String?,
28
29
  ?request_options: Orb::request_opts
29
30
  ) -> Orb::Plan
30
31
 
@@ -4,6 +4,7 @@ module Orb
4
4
  def create: (
5
5
  url: String,
6
6
  ?enabled_event_types: ::Array[String]?,
7
+ ?payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?,
7
8
  ?request_options: Orb::request_opts
8
9
  ) -> Orb::WebhookEndpointWithSecret
9
10
 
@@ -15,6 +16,7 @@ module Orb
15
16
  def update: (
16
17
  String webhook_endpoint_id,
17
18
  ?enabled_event_types: ::Array[String]?,
19
+ ?payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?,
18
20
  ?url: String?,
19
21
  ?request_options: Orb::request_opts
20
22
  ) -> Orb::WebhookEndpoint
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orb-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.46.0
4
+ version: 1.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb