dodopayments 2.3.0 → 2.4.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 +9 -0
- data/README.md +1 -1
- data/lib/dodopayments/client.rb +0 -8
- data/lib/dodopayments/models/customer_delete_payment_method_params.rb +26 -0
- data/lib/dodopayments/models/dispute.rb +9 -1
- data/lib/dodopayments/models/dispute_list_response.rb +9 -1
- data/lib/dodopayments/models/get_dispute.rb +9 -1
- data/lib/dodopayments/models.rb +2 -18
- data/lib/dodopayments/resources/customers.rb +25 -0
- data/lib/dodopayments/resources/invoices/payments.rb +0 -18
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +4 -29
- data/rbi/dodopayments/client.rbi +0 -6
- data/rbi/dodopayments/models/credit_entitlement_cart_response.rbi +4 -4
- data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +2 -2
- data/rbi/dodopayments/models/{your_webhook_url_create_params.rbi → customer_delete_payment_method_params.rbi} +9 -19
- data/rbi/dodopayments/models/dispute.rbi +12 -4
- data/rbi/dodopayments/models/dispute_list_response.rbi +11 -3
- data/rbi/dodopayments/models/get_dispute.rbi +12 -4
- data/rbi/dodopayments/models/license_key.rbi +2 -2
- data/rbi/dodopayments/models/meter_cart_response_item.rbi +2 -2
- data/rbi/dodopayments/models/payment.rbi +12 -10
- data/rbi/dodopayments/models/refund.rbi +4 -4
- data/rbi/dodopayments/models/refund_list_item.rbi +4 -4
- data/rbi/dodopayments/models/subscription.rbi +10 -8
- data/rbi/dodopayments/models.rbi +3 -25
- data/rbi/dodopayments/resources/customers.rbi +16 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +0 -9
- data/sig/dodopayments/client.rbs +0 -4
- data/sig/dodopayments/models/{product_collection_update_images_params.rbs → customer_delete_payment_method_params.rbs} +9 -9
- data/sig/dodopayments/models/dispute.rbs +5 -0
- data/sig/dodopayments/models/dispute_list_response.rbs +8 -3
- data/sig/dodopayments/models/get_dispute.rbs +5 -0
- data/sig/dodopayments/models.rbs +2 -18
- data/sig/dodopayments/resources/customers.rbs +6 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +0 -5
- metadata +4 -79
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +0 -22
- data/lib/dodopayments/models/product_collection_create_params.rb +0 -98
- data/lib/dodopayments/models/product_collection_create_response.rb +0 -226
- data/lib/dodopayments/models/product_collection_delete_params.rb +0 -20
- data/lib/dodopayments/models/product_collection_list_params.rb +0 -46
- data/lib/dodopayments/models/product_collection_list_response.rb +0 -65
- data/lib/dodopayments/models/product_collection_retrieve_params.rb +0 -20
- data/lib/dodopayments/models/product_collection_retrieve_response.rb +0 -226
- data/lib/dodopayments/models/product_collection_unarchive_params.rb +0 -20
- data/lib/dodopayments/models/product_collection_unarchive_response.rb +0 -33
- data/lib/dodopayments/models/product_collection_update_images_params.rb +0 -29
- data/lib/dodopayments/models/product_collection_update_images_response.rb +0 -25
- data/lib/dodopayments/models/product_collection_update_params.rb +0 -61
- data/lib/dodopayments/models/product_collections/group_create_params.rb +0 -71
- data/lib/dodopayments/models/product_collections/group_create_response.rb +0 -160
- data/lib/dodopayments/models/product_collections/group_delete_params.rb +0 -28
- data/lib/dodopayments/models/product_collections/group_update_params.rb +0 -59
- data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +0 -60
- data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +0 -136
- data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +0 -36
- data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +0 -47
- data/lib/dodopayments/models/your_webhook_url_create_params.rb +0 -32
- data/lib/dodopayments/resources/product_collections/groups/items.rb +0 -111
- data/lib/dodopayments/resources/product_collections/groups.rb +0 -109
- data/lib/dodopayments/resources/product_collections.rb +0 -179
- data/lib/dodopayments/resources/your_webhook_url.rb +0 -56
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +0 -40
- data/rbi/dodopayments/models/product_collection_create_params.rbi +0 -180
- data/rbi/dodopayments/models/product_collection_create_response.rbi +0 -303
- data/rbi/dodopayments/models/product_collection_delete_params.rbi +0 -38
- data/rbi/dodopayments/models/product_collection_list_params.rbi +0 -82
- data/rbi/dodopayments/models/product_collection_list_response.rbi +0 -88
- data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +0 -38
- data/rbi/dodopayments/models/product_collection_retrieve_response.rbi +0 -305
- data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +0 -38
- data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +0 -56
- data/rbi/dodopayments/models/product_collection_update_images_params.rbi +0 -52
- data/rbi/dodopayments/models/product_collection_update_images_response.rbi +0 -40
- data/rbi/dodopayments/models/product_collection_update_params.rbi +0 -84
- data/rbi/dodopayments/models/product_collections/group_create_params.rbi +0 -123
- data/rbi/dodopayments/models/product_collections/group_create_response.rbi +0 -204
- data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +0 -48
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +0 -80
- data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +0 -113
- data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +0 -156
- data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +0 -55
- data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +0 -68
- data/rbi/dodopayments/resources/product_collections/groups/items.rbi +0 -83
- data/rbi/dodopayments/resources/product_collections/groups.rbi +0 -90
- data/rbi/dodopayments/resources/product_collections.rbi +0 -149
- data/rbi/dodopayments/resources/your_webhook_url.rbi +0 -53
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +0 -25
- data/sig/dodopayments/models/product_collection_create_params.rbs +0 -80
- data/sig/dodopayments/models/product_collection_create_response.rbs +0 -179
- data/sig/dodopayments/models/product_collection_delete_params.rbs +0 -23
- data/sig/dodopayments/models/product_collection_list_params.rbs +0 -49
- data/sig/dodopayments/models/product_collection_list_response.rbs +0 -50
- data/sig/dodopayments/models/product_collection_retrieve_params.rbs +0 -23
- data/sig/dodopayments/models/product_collection_retrieve_response.rbs +0 -179
- data/sig/dodopayments/models/product_collection_unarchive_params.rbs +0 -23
- data/sig/dodopayments/models/product_collection_unarchive_response.rbs +0 -30
- data/sig/dodopayments/models/product_collection_update_images_response.rbs +0 -16
- data/sig/dodopayments/models/product_collection_update_params.rbs +0 -51
- data/sig/dodopayments/models/product_collections/group_create_params.rbs +0 -55
- data/sig/dodopayments/models/product_collections/group_create_response.rbs +0 -129
- data/sig/dodopayments/models/product_collections/group_delete_params.rbs +0 -30
- data/sig/dodopayments/models/product_collections/group_update_params.rbs +0 -48
- data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +0 -52
- data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +0 -104
- data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +0 -36
- data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +0 -40
- data/sig/dodopayments/models/your_webhook_url_create_params.rbs +0 -42
- data/sig/dodopayments/resources/product_collections/groups/items.rbs +0 -33
- data/sig/dodopayments/resources/product_collections/groups.rbs +0 -34
- data/sig/dodopayments/resources/product_collections.rbs +0 -56
- data/sig/dodopayments/resources/your_webhook_url.rbs +0 -18
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Models
|
|
5
|
-
module ProductCollections
|
|
6
|
-
class GroupCreateResponse < Dodopayments::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Dodopayments::Models::ProductCollections::GroupCreateResponse,
|
|
11
|
-
Dodopayments::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
sig { returns(String) }
|
|
16
|
-
attr_accessor :group_id
|
|
17
|
-
|
|
18
|
-
sig do
|
|
19
|
-
returns(
|
|
20
|
-
T::Array[
|
|
21
|
-
Dodopayments::Models::ProductCollections::GroupCreateResponse::Product
|
|
22
|
-
]
|
|
23
|
-
)
|
|
24
|
-
end
|
|
25
|
-
attr_accessor :products
|
|
26
|
-
|
|
27
|
-
sig { returns(T::Boolean) }
|
|
28
|
-
attr_accessor :status
|
|
29
|
-
|
|
30
|
-
sig { returns(T.nilable(String)) }
|
|
31
|
-
attr_accessor :group_name
|
|
32
|
-
|
|
33
|
-
sig do
|
|
34
|
-
params(
|
|
35
|
-
group_id: String,
|
|
36
|
-
products:
|
|
37
|
-
T::Array[
|
|
38
|
-
Dodopayments::Models::ProductCollections::GroupCreateResponse::Product::OrHash
|
|
39
|
-
],
|
|
40
|
-
status: T::Boolean,
|
|
41
|
-
group_name: T.nilable(String)
|
|
42
|
-
).returns(T.attached_class)
|
|
43
|
-
end
|
|
44
|
-
def self.new(group_id:, products:, status:, group_name: nil)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
sig do
|
|
48
|
-
override.returns(
|
|
49
|
-
{
|
|
50
|
-
group_id: String,
|
|
51
|
-
products:
|
|
52
|
-
T::Array[
|
|
53
|
-
Dodopayments::Models::ProductCollections::GroupCreateResponse::Product
|
|
54
|
-
],
|
|
55
|
-
status: T::Boolean,
|
|
56
|
-
group_name: T.nilable(String)
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
end
|
|
60
|
-
def to_hash
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
class Product < Dodopayments::Internal::Type::BaseModel
|
|
64
|
-
OrHash =
|
|
65
|
-
T.type_alias do
|
|
66
|
-
T.any(
|
|
67
|
-
Dodopayments::Models::ProductCollections::GroupCreateResponse::Product,
|
|
68
|
-
Dodopayments::Internal::AnyHash
|
|
69
|
-
)
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
sig { returns(String) }
|
|
73
|
-
attr_accessor :id
|
|
74
|
-
|
|
75
|
-
sig { returns(Integer) }
|
|
76
|
-
attr_accessor :addons_count
|
|
77
|
-
|
|
78
|
-
sig { returns(Integer) }
|
|
79
|
-
attr_accessor :files_count
|
|
80
|
-
|
|
81
|
-
# Whether this product has any credit entitlements attached
|
|
82
|
-
sig { returns(T::Boolean) }
|
|
83
|
-
attr_accessor :has_credit_entitlements
|
|
84
|
-
|
|
85
|
-
sig { returns(T::Boolean) }
|
|
86
|
-
attr_accessor :is_recurring
|
|
87
|
-
|
|
88
|
-
sig { returns(T::Boolean) }
|
|
89
|
-
attr_accessor :license_key_enabled
|
|
90
|
-
|
|
91
|
-
sig { returns(Integer) }
|
|
92
|
-
attr_accessor :meters_count
|
|
93
|
-
|
|
94
|
-
sig { returns(String) }
|
|
95
|
-
attr_accessor :product_id
|
|
96
|
-
|
|
97
|
-
sig { returns(T::Boolean) }
|
|
98
|
-
attr_accessor :status
|
|
99
|
-
|
|
100
|
-
sig { returns(T.nilable(Dodopayments::Currency::TaggedSymbol)) }
|
|
101
|
-
attr_accessor :currency
|
|
102
|
-
|
|
103
|
-
sig { returns(T.nilable(String)) }
|
|
104
|
-
attr_accessor :description
|
|
105
|
-
|
|
106
|
-
sig { returns(T.nilable(String)) }
|
|
107
|
-
attr_accessor :name
|
|
108
|
-
|
|
109
|
-
sig { returns(T.nilable(Integer)) }
|
|
110
|
-
attr_accessor :price
|
|
111
|
-
|
|
112
|
-
# One-time price details.
|
|
113
|
-
sig { returns(T.nilable(Dodopayments::Price::Variants)) }
|
|
114
|
-
attr_accessor :price_detail
|
|
115
|
-
|
|
116
|
-
# Represents the different categories of taxation applicable to various products
|
|
117
|
-
# and services.
|
|
118
|
-
sig { returns(T.nilable(Dodopayments::TaxCategory::TaggedSymbol)) }
|
|
119
|
-
attr_accessor :tax_category
|
|
120
|
-
|
|
121
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
122
|
-
attr_accessor :tax_inclusive
|
|
123
|
-
|
|
124
|
-
sig do
|
|
125
|
-
params(
|
|
126
|
-
id: String,
|
|
127
|
-
addons_count: Integer,
|
|
128
|
-
files_count: Integer,
|
|
129
|
-
has_credit_entitlements: T::Boolean,
|
|
130
|
-
is_recurring: T::Boolean,
|
|
131
|
-
license_key_enabled: T::Boolean,
|
|
132
|
-
meters_count: Integer,
|
|
133
|
-
product_id: String,
|
|
134
|
-
status: T::Boolean,
|
|
135
|
-
currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
136
|
-
description: T.nilable(String),
|
|
137
|
-
name: T.nilable(String),
|
|
138
|
-
price: T.nilable(Integer),
|
|
139
|
-
price_detail:
|
|
140
|
-
T.nilable(
|
|
141
|
-
T.any(
|
|
142
|
-
Dodopayments::Price::OneTimePrice::OrHash,
|
|
143
|
-
Dodopayments::Price::RecurringPrice::OrHash,
|
|
144
|
-
Dodopayments::Price::UsageBasedPrice::OrHash
|
|
145
|
-
)
|
|
146
|
-
),
|
|
147
|
-
tax_category: T.nilable(Dodopayments::TaxCategory::OrSymbol),
|
|
148
|
-
tax_inclusive: T.nilable(T::Boolean)
|
|
149
|
-
).returns(T.attached_class)
|
|
150
|
-
end
|
|
151
|
-
def self.new(
|
|
152
|
-
id:,
|
|
153
|
-
addons_count:,
|
|
154
|
-
files_count:,
|
|
155
|
-
# Whether this product has any credit entitlements attached
|
|
156
|
-
has_credit_entitlements:,
|
|
157
|
-
is_recurring:,
|
|
158
|
-
license_key_enabled:,
|
|
159
|
-
meters_count:,
|
|
160
|
-
product_id:,
|
|
161
|
-
status:,
|
|
162
|
-
currency: nil,
|
|
163
|
-
description: nil,
|
|
164
|
-
name: nil,
|
|
165
|
-
price: nil,
|
|
166
|
-
# One-time price details.
|
|
167
|
-
price_detail: nil,
|
|
168
|
-
# Represents the different categories of taxation applicable to various products
|
|
169
|
-
# and services.
|
|
170
|
-
tax_category: nil,
|
|
171
|
-
tax_inclusive: nil
|
|
172
|
-
)
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
sig do
|
|
176
|
-
override.returns(
|
|
177
|
-
{
|
|
178
|
-
id: String,
|
|
179
|
-
addons_count: Integer,
|
|
180
|
-
files_count: Integer,
|
|
181
|
-
has_credit_entitlements: T::Boolean,
|
|
182
|
-
is_recurring: T::Boolean,
|
|
183
|
-
license_key_enabled: T::Boolean,
|
|
184
|
-
meters_count: Integer,
|
|
185
|
-
product_id: String,
|
|
186
|
-
status: T::Boolean,
|
|
187
|
-
currency: T.nilable(Dodopayments::Currency::TaggedSymbol),
|
|
188
|
-
description: T.nilable(String),
|
|
189
|
-
name: T.nilable(String),
|
|
190
|
-
price: T.nilable(Integer),
|
|
191
|
-
price_detail: T.nilable(Dodopayments::Price::Variants),
|
|
192
|
-
tax_category:
|
|
193
|
-
T.nilable(Dodopayments::TaxCategory::TaggedSymbol),
|
|
194
|
-
tax_inclusive: T.nilable(T::Boolean)
|
|
195
|
-
}
|
|
196
|
-
)
|
|
197
|
-
end
|
|
198
|
-
def to_hash
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
end
|
|
202
|
-
end
|
|
203
|
-
end
|
|
204
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Models
|
|
5
|
-
module ProductCollections
|
|
6
|
-
class GroupDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
OrHash =
|
|
11
|
-
T.type_alias do
|
|
12
|
-
T.any(
|
|
13
|
-
Dodopayments::ProductCollections::GroupDeleteParams,
|
|
14
|
-
Dodopayments::Internal::AnyHash
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :id
|
|
20
|
-
|
|
21
|
-
sig { returns(String) }
|
|
22
|
-
attr_accessor :group_id
|
|
23
|
-
|
|
24
|
-
sig do
|
|
25
|
-
params(
|
|
26
|
-
id: String,
|
|
27
|
-
group_id: String,
|
|
28
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
29
|
-
).returns(T.attached_class)
|
|
30
|
-
end
|
|
31
|
-
def self.new(id:, group_id:, request_options: {})
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
override.returns(
|
|
36
|
-
{
|
|
37
|
-
id: String,
|
|
38
|
-
group_id: String,
|
|
39
|
-
request_options: Dodopayments::RequestOptions
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
def to_hash
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Models
|
|
5
|
-
module ProductCollections
|
|
6
|
-
class GroupUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
OrHash =
|
|
11
|
-
T.type_alias do
|
|
12
|
-
T.any(
|
|
13
|
-
Dodopayments::ProductCollections::GroupUpdateParams,
|
|
14
|
-
Dodopayments::Internal::AnyHash
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :id
|
|
20
|
-
|
|
21
|
-
sig { returns(String) }
|
|
22
|
-
attr_accessor :group_id
|
|
23
|
-
|
|
24
|
-
# Optional group name update: Some(Some(name)) = set name, Some(None) = clear
|
|
25
|
-
# name, None = no change
|
|
26
|
-
sig { returns(T.nilable(String)) }
|
|
27
|
-
attr_accessor :group_name
|
|
28
|
-
|
|
29
|
-
# Optional new order for products in this group (array of
|
|
30
|
-
# product_collection_group_pdts UUIDs)
|
|
31
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
32
|
-
attr_accessor :product_order
|
|
33
|
-
|
|
34
|
-
# Optional status update
|
|
35
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
36
|
-
attr_accessor :status
|
|
37
|
-
|
|
38
|
-
sig do
|
|
39
|
-
params(
|
|
40
|
-
id: String,
|
|
41
|
-
group_id: String,
|
|
42
|
-
group_name: T.nilable(String),
|
|
43
|
-
product_order: T.nilable(T::Array[String]),
|
|
44
|
-
status: T.nilable(T::Boolean),
|
|
45
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
46
|
-
).returns(T.attached_class)
|
|
47
|
-
end
|
|
48
|
-
def self.new(
|
|
49
|
-
id:,
|
|
50
|
-
group_id:,
|
|
51
|
-
# Optional group name update: Some(Some(name)) = set name, Some(None) = clear
|
|
52
|
-
# name, None = no change
|
|
53
|
-
group_name: nil,
|
|
54
|
-
# Optional new order for products in this group (array of
|
|
55
|
-
# product_collection_group_pdts UUIDs)
|
|
56
|
-
product_order: nil,
|
|
57
|
-
# Optional status update
|
|
58
|
-
status: nil,
|
|
59
|
-
request_options: {}
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
sig do
|
|
64
|
-
override.returns(
|
|
65
|
-
{
|
|
66
|
-
id: String,
|
|
67
|
-
group_id: String,
|
|
68
|
-
group_name: T.nilable(String),
|
|
69
|
-
product_order: T.nilable(T::Array[String]),
|
|
70
|
-
status: T.nilable(T::Boolean),
|
|
71
|
-
request_options: Dodopayments::RequestOptions
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
def to_hash
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Models
|
|
5
|
-
module ProductCollections
|
|
6
|
-
module Groups
|
|
7
|
-
class ItemCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
OrHash =
|
|
12
|
-
T.type_alias do
|
|
13
|
-
T.any(
|
|
14
|
-
Dodopayments::ProductCollections::Groups::ItemCreateParams,
|
|
15
|
-
Dodopayments::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
sig { returns(String) }
|
|
20
|
-
attr_accessor :id
|
|
21
|
-
|
|
22
|
-
sig { returns(String) }
|
|
23
|
-
attr_accessor :group_id
|
|
24
|
-
|
|
25
|
-
# Products to add to the group
|
|
26
|
-
sig do
|
|
27
|
-
returns(
|
|
28
|
-
T::Array[
|
|
29
|
-
Dodopayments::ProductCollections::Groups::ItemCreateParams::Product
|
|
30
|
-
]
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
attr_accessor :products
|
|
34
|
-
|
|
35
|
-
sig do
|
|
36
|
-
params(
|
|
37
|
-
id: String,
|
|
38
|
-
group_id: String,
|
|
39
|
-
products:
|
|
40
|
-
T::Array[
|
|
41
|
-
Dodopayments::ProductCollections::Groups::ItemCreateParams::Product::OrHash
|
|
42
|
-
],
|
|
43
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
44
|
-
).returns(T.attached_class)
|
|
45
|
-
end
|
|
46
|
-
def self.new(
|
|
47
|
-
id:,
|
|
48
|
-
group_id:,
|
|
49
|
-
# Products to add to the group
|
|
50
|
-
products:,
|
|
51
|
-
request_options: {}
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
sig do
|
|
56
|
-
override.returns(
|
|
57
|
-
{
|
|
58
|
-
id: String,
|
|
59
|
-
group_id: String,
|
|
60
|
-
products:
|
|
61
|
-
T::Array[
|
|
62
|
-
Dodopayments::ProductCollections::Groups::ItemCreateParams::Product
|
|
63
|
-
],
|
|
64
|
-
request_options: Dodopayments::RequestOptions
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
def to_hash
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
class Product < Dodopayments::Internal::Type::BaseModel
|
|
72
|
-
OrHash =
|
|
73
|
-
T.type_alias do
|
|
74
|
-
T.any(
|
|
75
|
-
Dodopayments::ProductCollections::Groups::ItemCreateParams::Product,
|
|
76
|
-
Dodopayments::Internal::AnyHash
|
|
77
|
-
)
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# Product ID to include in the group
|
|
81
|
-
sig { returns(String) }
|
|
82
|
-
attr_accessor :product_id
|
|
83
|
-
|
|
84
|
-
# Status of the product in this group (defaults to true if not provided)
|
|
85
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
86
|
-
attr_accessor :status
|
|
87
|
-
|
|
88
|
-
sig do
|
|
89
|
-
params(product_id: String, status: T.nilable(T::Boolean)).returns(
|
|
90
|
-
T.attached_class
|
|
91
|
-
)
|
|
92
|
-
end
|
|
93
|
-
def self.new(
|
|
94
|
-
# Product ID to include in the group
|
|
95
|
-
product_id:,
|
|
96
|
-
# Status of the product in this group (defaults to true if not provided)
|
|
97
|
-
status: nil
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
sig do
|
|
102
|
-
override.returns(
|
|
103
|
-
{ product_id: String, status: T.nilable(T::Boolean) }
|
|
104
|
-
)
|
|
105
|
-
end
|
|
106
|
-
def to_hash
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
end
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Models
|
|
5
|
-
module ProductCollections
|
|
6
|
-
module Groups
|
|
7
|
-
class ItemCreateResponseItem < Dodopayments::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
Dodopayments::Models::ProductCollections::Groups::ItemCreateResponseItem,
|
|
12
|
-
Dodopayments::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
sig { returns(String) }
|
|
17
|
-
attr_accessor :id
|
|
18
|
-
|
|
19
|
-
sig { returns(Integer) }
|
|
20
|
-
attr_accessor :addons_count
|
|
21
|
-
|
|
22
|
-
sig { returns(Integer) }
|
|
23
|
-
attr_accessor :files_count
|
|
24
|
-
|
|
25
|
-
# Whether this product has any credit entitlements attached
|
|
26
|
-
sig { returns(T::Boolean) }
|
|
27
|
-
attr_accessor :has_credit_entitlements
|
|
28
|
-
|
|
29
|
-
sig { returns(T::Boolean) }
|
|
30
|
-
attr_accessor :is_recurring
|
|
31
|
-
|
|
32
|
-
sig { returns(T::Boolean) }
|
|
33
|
-
attr_accessor :license_key_enabled
|
|
34
|
-
|
|
35
|
-
sig { returns(Integer) }
|
|
36
|
-
attr_accessor :meters_count
|
|
37
|
-
|
|
38
|
-
sig { returns(String) }
|
|
39
|
-
attr_accessor :product_id
|
|
40
|
-
|
|
41
|
-
sig { returns(T::Boolean) }
|
|
42
|
-
attr_accessor :status
|
|
43
|
-
|
|
44
|
-
sig { returns(T.nilable(Dodopayments::Currency::TaggedSymbol)) }
|
|
45
|
-
attr_accessor :currency
|
|
46
|
-
|
|
47
|
-
sig { returns(T.nilable(String)) }
|
|
48
|
-
attr_accessor :description
|
|
49
|
-
|
|
50
|
-
sig { returns(T.nilable(String)) }
|
|
51
|
-
attr_accessor :name
|
|
52
|
-
|
|
53
|
-
sig { returns(T.nilable(Integer)) }
|
|
54
|
-
attr_accessor :price
|
|
55
|
-
|
|
56
|
-
# One-time price details.
|
|
57
|
-
sig { returns(T.nilable(Dodopayments::Price::Variants)) }
|
|
58
|
-
attr_accessor :price_detail
|
|
59
|
-
|
|
60
|
-
# Represents the different categories of taxation applicable to various products
|
|
61
|
-
# and services.
|
|
62
|
-
sig { returns(T.nilable(Dodopayments::TaxCategory::TaggedSymbol)) }
|
|
63
|
-
attr_accessor :tax_category
|
|
64
|
-
|
|
65
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
66
|
-
attr_accessor :tax_inclusive
|
|
67
|
-
|
|
68
|
-
sig do
|
|
69
|
-
params(
|
|
70
|
-
id: String,
|
|
71
|
-
addons_count: Integer,
|
|
72
|
-
files_count: Integer,
|
|
73
|
-
has_credit_entitlements: T::Boolean,
|
|
74
|
-
is_recurring: T::Boolean,
|
|
75
|
-
license_key_enabled: T::Boolean,
|
|
76
|
-
meters_count: Integer,
|
|
77
|
-
product_id: String,
|
|
78
|
-
status: T::Boolean,
|
|
79
|
-
currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
80
|
-
description: T.nilable(String),
|
|
81
|
-
name: T.nilable(String),
|
|
82
|
-
price: T.nilable(Integer),
|
|
83
|
-
price_detail:
|
|
84
|
-
T.nilable(
|
|
85
|
-
T.any(
|
|
86
|
-
Dodopayments::Price::OneTimePrice::OrHash,
|
|
87
|
-
Dodopayments::Price::RecurringPrice::OrHash,
|
|
88
|
-
Dodopayments::Price::UsageBasedPrice::OrHash
|
|
89
|
-
)
|
|
90
|
-
),
|
|
91
|
-
tax_category: T.nilable(Dodopayments::TaxCategory::OrSymbol),
|
|
92
|
-
tax_inclusive: T.nilable(T::Boolean)
|
|
93
|
-
).returns(T.attached_class)
|
|
94
|
-
end
|
|
95
|
-
def self.new(
|
|
96
|
-
id:,
|
|
97
|
-
addons_count:,
|
|
98
|
-
files_count:,
|
|
99
|
-
# Whether this product has any credit entitlements attached
|
|
100
|
-
has_credit_entitlements:,
|
|
101
|
-
is_recurring:,
|
|
102
|
-
license_key_enabled:,
|
|
103
|
-
meters_count:,
|
|
104
|
-
product_id:,
|
|
105
|
-
status:,
|
|
106
|
-
currency: nil,
|
|
107
|
-
description: nil,
|
|
108
|
-
name: nil,
|
|
109
|
-
price: nil,
|
|
110
|
-
# One-time price details.
|
|
111
|
-
price_detail: nil,
|
|
112
|
-
# Represents the different categories of taxation applicable to various products
|
|
113
|
-
# and services.
|
|
114
|
-
tax_category: nil,
|
|
115
|
-
tax_inclusive: nil
|
|
116
|
-
)
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
sig do
|
|
120
|
-
override.returns(
|
|
121
|
-
{
|
|
122
|
-
id: String,
|
|
123
|
-
addons_count: Integer,
|
|
124
|
-
files_count: Integer,
|
|
125
|
-
has_credit_entitlements: T::Boolean,
|
|
126
|
-
is_recurring: T::Boolean,
|
|
127
|
-
license_key_enabled: T::Boolean,
|
|
128
|
-
meters_count: Integer,
|
|
129
|
-
product_id: String,
|
|
130
|
-
status: T::Boolean,
|
|
131
|
-
currency: T.nilable(Dodopayments::Currency::TaggedSymbol),
|
|
132
|
-
description: T.nilable(String),
|
|
133
|
-
name: T.nilable(String),
|
|
134
|
-
price: T.nilable(Integer),
|
|
135
|
-
price_detail: T.nilable(Dodopayments::Price::Variants),
|
|
136
|
-
tax_category:
|
|
137
|
-
T.nilable(Dodopayments::TaxCategory::TaggedSymbol),
|
|
138
|
-
tax_inclusive: T.nilable(T::Boolean)
|
|
139
|
-
}
|
|
140
|
-
)
|
|
141
|
-
end
|
|
142
|
-
def to_hash
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
ItemCreateResponse =
|
|
147
|
-
T.let(
|
|
148
|
-
Dodopayments::Internal::Type::ArrayOf[
|
|
149
|
-
Dodopayments::Models::ProductCollections::Groups::ItemCreateResponseItem
|
|
150
|
-
],
|
|
151
|
-
Dodopayments::Internal::Type::Converter
|
|
152
|
-
)
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
end
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Models
|
|
5
|
-
module ProductCollections
|
|
6
|
-
module Groups
|
|
7
|
-
class ItemDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
OrHash =
|
|
12
|
-
T.type_alias do
|
|
13
|
-
T.any(
|
|
14
|
-
Dodopayments::ProductCollections::Groups::ItemDeleteParams,
|
|
15
|
-
Dodopayments::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
sig { returns(String) }
|
|
20
|
-
attr_accessor :id
|
|
21
|
-
|
|
22
|
-
sig { returns(String) }
|
|
23
|
-
attr_accessor :group_id
|
|
24
|
-
|
|
25
|
-
sig { returns(String) }
|
|
26
|
-
attr_accessor :item_id
|
|
27
|
-
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
id: String,
|
|
31
|
-
group_id: String,
|
|
32
|
-
item_id: String,
|
|
33
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
34
|
-
).returns(T.attached_class)
|
|
35
|
-
end
|
|
36
|
-
def self.new(id:, group_id:, item_id:, request_options: {})
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
sig do
|
|
40
|
-
override.returns(
|
|
41
|
-
{
|
|
42
|
-
id: String,
|
|
43
|
-
group_id: String,
|
|
44
|
-
item_id: String,
|
|
45
|
-
request_options: Dodopayments::RequestOptions
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
def to_hash
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|