orb-billing 1.43.0 → 1.44.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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +6 -0
  5. data/lib/orb/models/alert_create_for_plan_params.rb +156 -0
  6. data/lib/orb/models/dimensional_price_groups/price_create_params.rb +147 -0
  7. data/lib/orb/models/dimensional_price_groups/price_create_response.rb +19 -0
  8. data/lib/orb/models/dimensional_price_groups/price_list_params.rb +65 -0
  9. data/lib/orb/models/plan_created_webhook_event.rb +91 -0
  10. data/lib/orb/models/plan_edited_webhook_event.rb +131 -0
  11. data/lib/orb/models/tax_amount.rb +32 -1
  12. data/lib/orb/models/unwrap_webhook_event.rb +7 -1
  13. data/lib/orb/models/webhook_endpoint.rb +56 -0
  14. data/lib/orb/models/webhook_endpoint_create_params.rb +34 -0
  15. data/lib/orb/models/webhook_endpoint_delete_params.rb +20 -0
  16. data/lib/orb/models/webhook_endpoint_disable_params.rb +20 -0
  17. data/lib/orb/models/webhook_endpoint_enable_params.rb +20 -0
  18. data/lib/orb/models/webhook_endpoint_list_params.rb +34 -0
  19. data/lib/orb/models/webhook_endpoint_retrieve_params.rb +20 -0
  20. data/lib/orb/models/webhook_endpoint_update_params.rb +41 -0
  21. data/lib/orb/models/webhook_endpoint_with_secret.rb +65 -0
  22. data/lib/orb/models.rb +24 -0
  23. data/lib/orb/resources/alerts.rb +55 -0
  24. data/lib/orb/resources/dimensional_price_groups/prices.rb +87 -0
  25. data/lib/orb/resources/dimensional_price_groups.rb +4 -0
  26. data/lib/orb/resources/webhook_endpoints.rb +183 -0
  27. data/lib/orb/resources/webhooks.rb +1 -1
  28. data/lib/orb/version.rb +1 -1
  29. data/lib/orb.rb +17 -0
  30. data/rbi/orb/client.rbi +5 -0
  31. data/rbi/orb/models/alert_create_for_plan_params.rbi +290 -0
  32. data/rbi/orb/models/dimensional_price_groups/price_create_params.rbi +298 -0
  33. data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +76 -0
  34. data/rbi/orb/models/dimensional_price_groups/price_list_params.rbi +134 -0
  35. data/rbi/orb/models/plan_created_webhook_event.rbi +140 -0
  36. data/rbi/orb/models/plan_edited_webhook_event.rbi +259 -0
  37. data/rbi/orb/models/tax_amount.rbi +41 -3
  38. data/rbi/orb/models/unwrap_webhook_event.rbi +2 -0
  39. data/rbi/orb/models/webhook_endpoint.rbi +71 -0
  40. data/rbi/orb/models/webhook_endpoint_create_params.rbi +53 -0
  41. data/rbi/orb/models/webhook_endpoint_delete_params.rbi +35 -0
  42. data/rbi/orb/models/webhook_endpoint_disable_params.rbi +35 -0
  43. data/rbi/orb/models/webhook_endpoint_enable_params.rbi +35 -0
  44. data/rbi/orb/models/webhook_endpoint_list_params.rbi +56 -0
  45. data/rbi/orb/models/webhook_endpoint_retrieve_params.rbi +35 -0
  46. data/rbi/orb/models/webhook_endpoint_update_params.rbi +59 -0
  47. data/rbi/orb/models/webhook_endpoint_with_secret.rbi +83 -0
  48. data/rbi/orb/models.rbi +24 -0
  49. data/rbi/orb/resources/alerts.rbi +59 -0
  50. data/rbi/orb/resources/dimensional_price_groups/prices.rbi +82 -0
  51. data/rbi/orb/resources/dimensional_price_groups.rbi +3 -0
  52. data/rbi/orb/resources/webhook_endpoints.rbi +116 -0
  53. data/rbi/orb/resources/webhooks.rbi +2 -0
  54. data/sig/orb/client.rbs +2 -0
  55. data/sig/orb/models/alert_create_for_plan_params.rbs +126 -0
  56. data/sig/orb/models/dimensional_price_groups/price_create_params.rbs +123 -0
  57. data/sig/orb/models/dimensional_price_groups/price_create_response.rbs +15 -0
  58. data/sig/orb/models/dimensional_price_groups/price_list_params.rbs +61 -0
  59. data/sig/orb/models/plan_created_webhook_event.rbs +72 -0
  60. data/sig/orb/models/plan_edited_webhook_event.rbs +116 -0
  61. data/sig/orb/models/tax_amount.rbs +31 -3
  62. data/sig/orb/models/unwrap_webhook_event.rbs +2 -0
  63. data/sig/orb/models/webhook_endpoint.rbs +40 -0
  64. data/sig/orb/models/webhook_endpoint_create_params.rbs +28 -0
  65. data/sig/orb/models/webhook_endpoint_delete_params.rbs +23 -0
  66. data/sig/orb/models/webhook_endpoint_disable_params.rbs +23 -0
  67. data/sig/orb/models/webhook_endpoint_enable_params.rbs +23 -0
  68. data/sig/orb/models/webhook_endpoint_list_params.rbs +30 -0
  69. data/sig/orb/models/webhook_endpoint_retrieve_params.rbs +23 -0
  70. data/sig/orb/models/webhook_endpoint_update_params.rbs +36 -0
  71. data/sig/orb/models/webhook_endpoint_with_secret.rbs +45 -0
  72. data/sig/orb/models.rbs +24 -0
  73. data/sig/orb/resources/alerts.rbs +12 -0
  74. data/sig/orb/resources/dimensional_price_groups/prices.rbs +28 -0
  75. data/sig/orb/resources/dimensional_price_groups.rbs +2 -0
  76. data/sig/orb/resources/webhook_endpoints.rbs +46 -0
  77. data/sig/orb/resources/webhooks.rbs +2 -0
  78. metadata +52 -1
@@ -0,0 +1,123 @@
1
+ module Orb
2
+ module Models
3
+ module DimensionalPriceGroups
4
+ type price_create_params =
5
+ {
6
+ dimensional_price_group_id: String,
7
+ cadence: Orb::Models::DimensionalPriceGroups::PriceCreateParams::cadence,
8
+ currency: String,
9
+ item_id: String,
10
+ model_type: Orb::Models::DimensionalPriceGroups::PriceCreateParams::model_type,
11
+ prices: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Price],
12
+ tiers: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Tier]?
13
+ }
14
+ & Orb::Internal::Type::request_parameters
15
+
16
+ class PriceCreateParams < Orb::Internal::Type::BaseModel
17
+ extend Orb::Internal::Type::RequestParameters::Converter
18
+ include Orb::Internal::Type::RequestParameters
19
+
20
+ attr_accessor dimensional_price_group_id: String
21
+
22
+ attr_accessor cadence: Orb::Models::DimensionalPriceGroups::PriceCreateParams::cadence
23
+
24
+ attr_accessor currency: String
25
+
26
+ attr_accessor item_id: String
27
+
28
+ attr_accessor model_type: Orb::Models::DimensionalPriceGroups::PriceCreateParams::model_type
29
+
30
+ attr_accessor prices: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Price]
31
+
32
+ attr_accessor tiers: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Tier]?
33
+
34
+ def initialize: (
35
+ dimensional_price_group_id: String,
36
+ cadence: Orb::Models::DimensionalPriceGroups::PriceCreateParams::cadence,
37
+ currency: String,
38
+ item_id: String,
39
+ model_type: Orb::Models::DimensionalPriceGroups::PriceCreateParams::model_type,
40
+ prices: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Price],
41
+ ?tiers: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Tier]?,
42
+ ?request_options: Orb::request_opts
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ dimensional_price_group_id: String,
47
+ cadence: Orb::Models::DimensionalPriceGroups::PriceCreateParams::cadence,
48
+ currency: String,
49
+ item_id: String,
50
+ model_type: Orb::Models::DimensionalPriceGroups::PriceCreateParams::model_type,
51
+ prices: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Price],
52
+ tiers: ::Array[Orb::DimensionalPriceGroups::PriceCreateParams::Tier]?,
53
+ request_options: Orb::RequestOptions
54
+ }
55
+
56
+ type cadence =
57
+ :one_time | :monthly | :quarterly | :semi_annual | :annual
58
+
59
+ module Cadence
60
+ extend Orb::Internal::Type::Enum
61
+
62
+ ONE_TIME: :one_time
63
+ MONTHLY: :monthly
64
+ QUARTERLY: :quarterly
65
+ SEMI_ANNUAL: :semi_annual
66
+ ANNUAL: :annual
67
+
68
+ def self?.values: -> ::Array[Orb::Models::DimensionalPriceGroups::PriceCreateParams::cadence]
69
+ end
70
+
71
+ type model_type = :unit | :tiered
72
+
73
+ module ModelType
74
+ extend Orb::Internal::Type::Enum
75
+
76
+ UNIT: :unit
77
+ TIERED: :tiered
78
+
79
+ def self?.values: -> ::Array[Orb::Models::DimensionalPriceGroups::PriceCreateParams::model_type]
80
+ end
81
+
82
+ type price =
83
+ {
84
+ amounts: ::Array[Float],
85
+ dimension_values: ::Array[String],
86
+ name: String?
87
+ }
88
+
89
+ class Price < Orb::Internal::Type::BaseModel
90
+ attr_accessor amounts: ::Array[Float]
91
+
92
+ attr_accessor dimension_values: ::Array[String]
93
+
94
+ attr_accessor name: String?
95
+
96
+ def initialize: (
97
+ amounts: ::Array[Float],
98
+ dimension_values: ::Array[String],
99
+ ?name: String?
100
+ ) -> void
101
+
102
+ def to_hash: -> {
103
+ amounts: ::Array[Float],
104
+ dimension_values: ::Array[String],
105
+ name: String?
106
+ }
107
+ end
108
+
109
+ type tier = { first_unit: Float, last_unit: Float? }
110
+
111
+ class Tier < Orb::Internal::Type::BaseModel
112
+ attr_accessor first_unit: Float
113
+
114
+ attr_accessor last_unit: Float?
115
+
116
+ def initialize: (first_unit: Float, ?last_unit: Float?) -> void
117
+
118
+ def to_hash: -> { first_unit: Float, last_unit: Float? }
119
+ end
120
+ end
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,15 @@
1
+ module Orb
2
+ module Models
3
+ module DimensionalPriceGroups
4
+ type price_create_response = { data: ::Array[Orb::Models::price] }
5
+
6
+ class PriceCreateResponse < Orb::Internal::Type::BaseModel
7
+ attr_accessor data: ::Array[Orb::Models::price]
8
+
9
+ def initialize: (data: ::Array[Orb::Models::price]) -> void
10
+
11
+ def to_hash: -> { data: ::Array[Orb::Models::price] }
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,61 @@
1
+ module Orb
2
+ module Models
3
+ module DimensionalPriceGroups
4
+ type price_list_params =
5
+ {
6
+ dimensional_price_group_id: String,
7
+ cursor: String?,
8
+ limit: Integer,
9
+ status: Orb::Models::DimensionalPriceGroups::PriceListParams::status
10
+ }
11
+ & Orb::Internal::Type::request_parameters
12
+
13
+ class PriceListParams < Orb::Internal::Type::BaseModel
14
+ extend Orb::Internal::Type::RequestParameters::Converter
15
+ include Orb::Internal::Type::RequestParameters
16
+
17
+ attr_accessor dimensional_price_group_id: String
18
+
19
+ attr_accessor cursor: String?
20
+
21
+ attr_reader limit: Integer?
22
+
23
+ def limit=: (Integer) -> Integer
24
+
25
+ attr_reader status: Orb::Models::DimensionalPriceGroups::PriceListParams::status?
26
+
27
+ def status=: (
28
+ Orb::Models::DimensionalPriceGroups::PriceListParams::status
29
+ ) -> Orb::Models::DimensionalPriceGroups::PriceListParams::status
30
+
31
+ def initialize: (
32
+ dimensional_price_group_id: String,
33
+ ?cursor: String?,
34
+ ?limit: Integer,
35
+ ?status: Orb::Models::DimensionalPriceGroups::PriceListParams::status,
36
+ ?request_options: Orb::request_opts
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ dimensional_price_group_id: String,
41
+ cursor: String?,
42
+ limit: Integer,
43
+ status: Orb::Models::DimensionalPriceGroups::PriceListParams::status,
44
+ request_options: Orb::RequestOptions
45
+ }
46
+
47
+ type status = :active | :archived | :all
48
+
49
+ module Status
50
+ extend Orb::Internal::Type::Enum
51
+
52
+ ACTIVE: :active
53
+ ARCHIVED: :archived
54
+ ALL: :all
55
+
56
+ def self?.values: -> ::Array[Orb::Models::DimensionalPriceGroups::PriceListParams::status]
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,72 @@
1
+ module Orb
2
+ module Models
3
+ type plan_created_webhook_event =
4
+ {
5
+ id: String,
6
+ created_at: Time,
7
+ plan: Orb::PlanCreatedWebhookEvent::Plan,
8
+ properties: top,
9
+ type: Orb::Models::PlanCreatedWebhookEvent::type_
10
+ }
11
+
12
+ class PlanCreatedWebhookEvent < Orb::Internal::Type::BaseModel
13
+ attr_accessor id: String
14
+
15
+ attr_accessor created_at: Time
16
+
17
+ attr_accessor plan: Orb::PlanCreatedWebhookEvent::Plan
18
+
19
+ attr_accessor properties: top
20
+
21
+ attr_accessor type: Orb::Models::PlanCreatedWebhookEvent::type_
22
+
23
+ def initialize: (
24
+ id: String,
25
+ created_at: Time,
26
+ plan: Orb::PlanCreatedWebhookEvent::Plan,
27
+ properties: top,
28
+ type: Orb::Models::PlanCreatedWebhookEvent::type_
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ id: String,
33
+ created_at: Time,
34
+ plan: Orb::PlanCreatedWebhookEvent::Plan,
35
+ properties: top,
36
+ type: Orb::Models::PlanCreatedWebhookEvent::type_
37
+ }
38
+
39
+ type plan = { id: String?, external_plan_id: String?, name: String? }
40
+
41
+ class Plan < Orb::Internal::Type::BaseModel
42
+ attr_accessor id: String?
43
+
44
+ attr_accessor external_plan_id: String?
45
+
46
+ attr_accessor name: String?
47
+
48
+ def initialize: (
49
+ id: String?,
50
+ external_plan_id: String?,
51
+ name: String?
52
+ ) -> void
53
+
54
+ def to_hash: -> {
55
+ id: String?,
56
+ external_plan_id: String?,
57
+ name: String?
58
+ }
59
+ end
60
+
61
+ type type_ = :"plan.created"
62
+
63
+ module Type
64
+ extend Orb::Internal::Type::Enum
65
+
66
+ PLAN_CREATED: :"plan.created"
67
+
68
+ def self?.values: -> ::Array[Orb::Models::PlanCreatedWebhookEvent::type_]
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,116 @@
1
+ module Orb
2
+ module Models
3
+ type plan_edited_webhook_event =
4
+ {
5
+ id: String,
6
+ created_at: Time,
7
+ plan: Orb::Plan,
8
+ properties: Orb::PlanEditedWebhookEvent::Properties,
9
+ type: Orb::Models::PlanEditedWebhookEvent::type_
10
+ }
11
+
12
+ class PlanEditedWebhookEvent < Orb::Internal::Type::BaseModel
13
+ attr_accessor id: String
14
+
15
+ attr_accessor created_at: Time
16
+
17
+ attr_accessor plan: Orb::Plan
18
+
19
+ attr_accessor properties: Orb::PlanEditedWebhookEvent::Properties
20
+
21
+ attr_accessor type: Orb::Models::PlanEditedWebhookEvent::type_
22
+
23
+ def initialize: (
24
+ id: String,
25
+ created_at: Time,
26
+ plan: Orb::Plan,
27
+ properties: Orb::PlanEditedWebhookEvent::Properties,
28
+ type: Orb::Models::PlanEditedWebhookEvent::type_
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ id: String,
33
+ created_at: Time,
34
+ plan: Orb::Plan,
35
+ properties: Orb::PlanEditedWebhookEvent::Properties,
36
+ type: Orb::Models::PlanEditedWebhookEvent::type_
37
+ }
38
+
39
+ type properties =
40
+ {
41
+ previous_attributes: Orb::PlanEditedWebhookEvent::Properties::PreviousAttributes
42
+ }
43
+
44
+ class Properties < Orb::Internal::Type::BaseModel
45
+ attr_accessor previous_attributes: Orb::PlanEditedWebhookEvent::Properties::PreviousAttributes
46
+
47
+ def initialize: (
48
+ previous_attributes: Orb::PlanEditedWebhookEvent::Properties::PreviousAttributes
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ previous_attributes: Orb::PlanEditedWebhookEvent::Properties::PreviousAttributes
53
+ }
54
+
55
+ type previous_attributes =
56
+ {
57
+ description: String?,
58
+ external_plan_id: String?,
59
+ metadata: ::Hash[Symbol, String]?,
60
+ name: String?,
61
+ status: Orb::Models::PlanEditedWebhookEvent::Properties::PreviousAttributes::status?
62
+ }
63
+
64
+ class PreviousAttributes < Orb::Internal::Type::BaseModel
65
+ attr_accessor description: String?
66
+
67
+ attr_accessor external_plan_id: String?
68
+
69
+ attr_accessor metadata: ::Hash[Symbol, String]?
70
+
71
+ attr_accessor name: String?
72
+
73
+ attr_accessor status: Orb::Models::PlanEditedWebhookEvent::Properties::PreviousAttributes::status?
74
+
75
+ def initialize: (
76
+ ?description: String?,
77
+ ?external_plan_id: String?,
78
+ ?metadata: ::Hash[Symbol, String]?,
79
+ ?name: String?,
80
+ ?status: Orb::Models::PlanEditedWebhookEvent::Properties::PreviousAttributes::status?
81
+ ) -> void
82
+
83
+ def to_hash: -> {
84
+ description: String?,
85
+ external_plan_id: String?,
86
+ metadata: ::Hash[Symbol, String]?,
87
+ name: String?,
88
+ status: Orb::Models::PlanEditedWebhookEvent::Properties::PreviousAttributes::status?
89
+ }
90
+
91
+ type status = :active | :archived | :draft
92
+
93
+ module Status
94
+ extend Orb::Internal::Type::Enum
95
+
96
+ ACTIVE: :active
97
+ ARCHIVED: :archived
98
+ DRAFT: :draft
99
+
100
+ def self?.values: -> ::Array[Orb::Models::PlanEditedWebhookEvent::Properties::PreviousAttributes::status]
101
+ end
102
+ end
103
+ end
104
+
105
+ type type_ = :"plan.edited"
106
+
107
+ module Type
108
+ extend Orb::Internal::Type::Enum
109
+
110
+ PLAN_EDITED: :"plan.edited"
111
+
112
+ def self?.values: -> ::Array[Orb::Models::PlanEditedWebhookEvent::type_]
113
+ end
114
+ end
115
+ end
116
+ end
@@ -4,7 +4,8 @@ module Orb
4
4
  {
5
5
  amount: String,
6
6
  tax_rate_description: String,
7
- tax_rate_percentage: String?
7
+ tax_rate_percentage: String?,
8
+ tax_reason: Orb::Models::TaxAmount::tax_reason?
8
9
  }
9
10
 
10
11
  class TaxAmount < Orb::Internal::Type::BaseModel
@@ -14,17 +15,44 @@ module Orb
14
15
 
15
16
  attr_accessor tax_rate_percentage: String?
16
17
 
18
+ attr_accessor tax_reason: Orb::Models::TaxAmount::tax_reason?
19
+
17
20
  def initialize: (
18
21
  amount: String,
19
22
  tax_rate_description: String,
20
- tax_rate_percentage: String?
23
+ tax_rate_percentage: String?,
24
+ ?tax_reason: Orb::Models::TaxAmount::tax_reason?
21
25
  ) -> void
22
26
 
23
27
  def to_hash: -> {
24
28
  amount: String,
25
29
  tax_rate_description: String,
26
- tax_rate_percentage: String?
30
+ tax_rate_percentage: String?,
31
+ tax_reason: Orb::Models::TaxAmount::tax_reason?
27
32
  }
33
+
34
+ type tax_reason =
35
+ :taxed
36
+ | :reverse_charge
37
+ | :customer_exempt
38
+ | :product_exempt
39
+ | :not_registered
40
+ | :zero_rated
41
+ | :not_taxed_other
42
+
43
+ module TaxReason
44
+ extend Orb::Internal::Type::Enum
45
+
46
+ TAXED: :taxed
47
+ REVERSE_CHARGE: :reverse_charge
48
+ CUSTOMER_EXEMPT: :customer_exempt
49
+ PRODUCT_EXEMPT: :product_exempt
50
+ NOT_REGISTERED: :not_registered
51
+ ZERO_RATED: :zero_rated
52
+ NOT_TAXED_OTHER: :not_taxed_other
53
+
54
+ def self?.values: -> ::Array[Orb::Models::TaxAmount::tax_reason]
55
+ end
28
56
  end
29
57
  end
30
58
  end
@@ -50,7 +50,9 @@ module Orb
50
50
  | Orb::MetricEventsDroppedByWatermarkWebhookEvent
51
51
  | Orb::PaymentMethodCreatedWebhookEvent
52
52
  | Orb::PaymentMethodDeletedWebhookEvent
53
+ | Orb::PlanCreatedWebhookEvent
53
54
  | Orb::PlanDefaultVersionSetWebhookEvent
55
+ | Orb::PlanEditedWebhookEvent
54
56
  | Orb::PlanVersionCreatedWebhookEvent
55
57
  | Orb::PriceEditedWebhookEvent
56
58
  | Orb::ResourceEventTestWebhookEvent
@@ -0,0 +1,40 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint =
4
+ {
5
+ id: String,
6
+ created_at: Time,
7
+ enabled: bool,
8
+ enabled_event_types: ::Array[String]?,
9
+ url: String
10
+ }
11
+
12
+ class WebhookEndpoint < Orb::Internal::Type::BaseModel
13
+ attr_accessor id: String
14
+
15
+ attr_accessor created_at: Time
16
+
17
+ attr_accessor enabled: bool
18
+
19
+ attr_accessor enabled_event_types: ::Array[String]?
20
+
21
+ attr_accessor url: String
22
+
23
+ def initialize: (
24
+ id: String,
25
+ created_at: Time,
26
+ enabled: bool,
27
+ enabled_event_types: ::Array[String]?,
28
+ url: String
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ id: String,
33
+ created_at: Time,
34
+ enabled: bool,
35
+ enabled_event_types: ::Array[String]?,
36
+ url: String
37
+ }
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,28 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint_create_params =
4
+ { url: String, enabled_event_types: ::Array[String]? }
5
+ & Orb::Internal::Type::request_parameters
6
+
7
+ class WebhookEndpointCreateParams < Orb::Internal::Type::BaseModel
8
+ extend Orb::Internal::Type::RequestParameters::Converter
9
+ include Orb::Internal::Type::RequestParameters
10
+
11
+ attr_accessor url: String
12
+
13
+ attr_accessor enabled_event_types: ::Array[String]?
14
+
15
+ def initialize: (
16
+ url: String,
17
+ ?enabled_event_types: ::Array[String]?,
18
+ ?request_options: Orb::request_opts
19
+ ) -> void
20
+
21
+ def to_hash: -> {
22
+ url: String,
23
+ enabled_event_types: ::Array[String]?,
24
+ request_options: Orb::RequestOptions
25
+ }
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,23 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint_delete_params =
4
+ { webhook_endpoint_id: String } & Orb::Internal::Type::request_parameters
5
+
6
+ class WebhookEndpointDeleteParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ attr_accessor webhook_endpoint_id: String
11
+
12
+ def initialize: (
13
+ webhook_endpoint_id: String,
14
+ ?request_options: Orb::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ webhook_endpoint_id: String,
19
+ request_options: Orb::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint_disable_params =
4
+ { webhook_endpoint_id: String } & Orb::Internal::Type::request_parameters
5
+
6
+ class WebhookEndpointDisableParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ attr_accessor webhook_endpoint_id: String
11
+
12
+ def initialize: (
13
+ webhook_endpoint_id: String,
14
+ ?request_options: Orb::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ webhook_endpoint_id: String,
19
+ request_options: Orb::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint_enable_params =
4
+ { webhook_endpoint_id: String } & Orb::Internal::Type::request_parameters
5
+
6
+ class WebhookEndpointEnableParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ attr_accessor webhook_endpoint_id: String
11
+
12
+ def initialize: (
13
+ webhook_endpoint_id: String,
14
+ ?request_options: Orb::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ webhook_endpoint_id: String,
19
+ request_options: Orb::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,30 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint_list_params =
4
+ { cursor: String?, limit: Integer }
5
+ & Orb::Internal::Type::request_parameters
6
+
7
+ class WebhookEndpointListParams < Orb::Internal::Type::BaseModel
8
+ extend Orb::Internal::Type::RequestParameters::Converter
9
+ include Orb::Internal::Type::RequestParameters
10
+
11
+ attr_accessor cursor: String?
12
+
13
+ attr_reader limit: Integer?
14
+
15
+ def limit=: (Integer) -> Integer
16
+
17
+ def initialize: (
18
+ ?cursor: String?,
19
+ ?limit: Integer,
20
+ ?request_options: Orb::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ cursor: String?,
25
+ limit: Integer,
26
+ request_options: Orb::RequestOptions
27
+ }
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,23 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint_retrieve_params =
4
+ { webhook_endpoint_id: String } & Orb::Internal::Type::request_parameters
5
+
6
+ class WebhookEndpointRetrieveParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ attr_accessor webhook_endpoint_id: String
11
+
12
+ def initialize: (
13
+ webhook_endpoint_id: String,
14
+ ?request_options: Orb::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ webhook_endpoint_id: String,
19
+ request_options: Orb::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,36 @@
1
+ module Orb
2
+ module Models
3
+ type webhook_endpoint_update_params =
4
+ {
5
+ webhook_endpoint_id: String,
6
+ enabled_event_types: ::Array[String]?,
7
+ url: String?
8
+ }
9
+ & Orb::Internal::Type::request_parameters
10
+
11
+ class WebhookEndpointUpdateParams < Orb::Internal::Type::BaseModel
12
+ extend Orb::Internal::Type::RequestParameters::Converter
13
+ include Orb::Internal::Type::RequestParameters
14
+
15
+ attr_accessor webhook_endpoint_id: String
16
+
17
+ attr_accessor enabled_event_types: ::Array[String]?
18
+
19
+ attr_accessor url: String?
20
+
21
+ def initialize: (
22
+ webhook_endpoint_id: String,
23
+ ?enabled_event_types: ::Array[String]?,
24
+ ?url: String?,
25
+ ?request_options: Orb::request_opts
26
+ ) -> void
27
+
28
+ def to_hash: -> {
29
+ webhook_endpoint_id: String,
30
+ enabled_event_types: ::Array[String]?,
31
+ url: String?,
32
+ request_options: Orb::RequestOptions
33
+ }
34
+ end
35
+ end
36
+ end