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,129 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module ProductCollections
|
|
4
|
-
type group_create_response =
|
|
5
|
-
{
|
|
6
|
-
group_id: String,
|
|
7
|
-
products: ::Array[Dodopayments::Models::ProductCollections::GroupCreateResponse::Product],
|
|
8
|
-
status: bool,
|
|
9
|
-
group_name: String?
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class GroupCreateResponse < Dodopayments::Internal::Type::BaseModel
|
|
13
|
-
attr_accessor group_id: String
|
|
14
|
-
|
|
15
|
-
attr_accessor products: ::Array[Dodopayments::Models::ProductCollections::GroupCreateResponse::Product]
|
|
16
|
-
|
|
17
|
-
attr_accessor status: bool
|
|
18
|
-
|
|
19
|
-
attr_accessor group_name: String?
|
|
20
|
-
|
|
21
|
-
def initialize: (
|
|
22
|
-
group_id: String,
|
|
23
|
-
products: ::Array[Dodopayments::Models::ProductCollections::GroupCreateResponse::Product],
|
|
24
|
-
status: bool,
|
|
25
|
-
?group_name: String?
|
|
26
|
-
) -> void
|
|
27
|
-
|
|
28
|
-
def to_hash: -> {
|
|
29
|
-
group_id: String,
|
|
30
|
-
products: ::Array[Dodopayments::Models::ProductCollections::GroupCreateResponse::Product],
|
|
31
|
-
status: bool,
|
|
32
|
-
group_name: String?
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
type product =
|
|
36
|
-
{
|
|
37
|
-
id: String,
|
|
38
|
-
addons_count: Integer,
|
|
39
|
-
files_count: Integer,
|
|
40
|
-
has_credit_entitlements: bool,
|
|
41
|
-
is_recurring: bool,
|
|
42
|
-
license_key_enabled: bool,
|
|
43
|
-
meters_count: Integer,
|
|
44
|
-
product_id: String,
|
|
45
|
-
status: bool,
|
|
46
|
-
currency: Dodopayments::Models::currency?,
|
|
47
|
-
description: String?,
|
|
48
|
-
name: String?,
|
|
49
|
-
price: Integer?,
|
|
50
|
-
price_detail: Dodopayments::Models::price?,
|
|
51
|
-
tax_category: Dodopayments::Models::tax_category?,
|
|
52
|
-
tax_inclusive: bool?
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
class Product < Dodopayments::Internal::Type::BaseModel
|
|
56
|
-
attr_accessor id: String
|
|
57
|
-
|
|
58
|
-
attr_accessor addons_count: Integer
|
|
59
|
-
|
|
60
|
-
attr_accessor files_count: Integer
|
|
61
|
-
|
|
62
|
-
attr_accessor has_credit_entitlements: bool
|
|
63
|
-
|
|
64
|
-
attr_accessor is_recurring: bool
|
|
65
|
-
|
|
66
|
-
attr_accessor license_key_enabled: bool
|
|
67
|
-
|
|
68
|
-
attr_accessor meters_count: Integer
|
|
69
|
-
|
|
70
|
-
attr_accessor product_id: String
|
|
71
|
-
|
|
72
|
-
attr_accessor status: bool
|
|
73
|
-
|
|
74
|
-
attr_accessor currency: Dodopayments::Models::currency?
|
|
75
|
-
|
|
76
|
-
attr_accessor description: String?
|
|
77
|
-
|
|
78
|
-
attr_accessor name: String?
|
|
79
|
-
|
|
80
|
-
attr_accessor price: Integer?
|
|
81
|
-
|
|
82
|
-
attr_accessor price_detail: Dodopayments::Models::price?
|
|
83
|
-
|
|
84
|
-
attr_accessor tax_category: Dodopayments::Models::tax_category?
|
|
85
|
-
|
|
86
|
-
attr_accessor tax_inclusive: bool?
|
|
87
|
-
|
|
88
|
-
def initialize: (
|
|
89
|
-
id: String,
|
|
90
|
-
addons_count: Integer,
|
|
91
|
-
files_count: Integer,
|
|
92
|
-
has_credit_entitlements: bool,
|
|
93
|
-
is_recurring: bool,
|
|
94
|
-
license_key_enabled: bool,
|
|
95
|
-
meters_count: Integer,
|
|
96
|
-
product_id: String,
|
|
97
|
-
status: bool,
|
|
98
|
-
?currency: Dodopayments::Models::currency?,
|
|
99
|
-
?description: String?,
|
|
100
|
-
?name: String?,
|
|
101
|
-
?price: Integer?,
|
|
102
|
-
?price_detail: Dodopayments::Models::price?,
|
|
103
|
-
?tax_category: Dodopayments::Models::tax_category?,
|
|
104
|
-
?tax_inclusive: bool?
|
|
105
|
-
) -> void
|
|
106
|
-
|
|
107
|
-
def to_hash: -> {
|
|
108
|
-
id: String,
|
|
109
|
-
addons_count: Integer,
|
|
110
|
-
files_count: Integer,
|
|
111
|
-
has_credit_entitlements: bool,
|
|
112
|
-
is_recurring: bool,
|
|
113
|
-
license_key_enabled: bool,
|
|
114
|
-
meters_count: Integer,
|
|
115
|
-
product_id: String,
|
|
116
|
-
status: bool,
|
|
117
|
-
currency: Dodopayments::Models::currency?,
|
|
118
|
-
description: String?,
|
|
119
|
-
name: String?,
|
|
120
|
-
price: Integer?,
|
|
121
|
-
price_detail: Dodopayments::Models::price?,
|
|
122
|
-
tax_category: Dodopayments::Models::tax_category?,
|
|
123
|
-
tax_inclusive: bool?
|
|
124
|
-
}
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module ProductCollections
|
|
4
|
-
type group_delete_params =
|
|
5
|
-
{ id: String, group_id: String }
|
|
6
|
-
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
-
|
|
8
|
-
class GroupDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
attr_accessor id: String
|
|
13
|
-
|
|
14
|
-
attr_accessor group_id: String
|
|
15
|
-
|
|
16
|
-
def initialize: (
|
|
17
|
-
id: String,
|
|
18
|
-
group_id: String,
|
|
19
|
-
?request_options: Dodopayments::request_opts
|
|
20
|
-
) -> void
|
|
21
|
-
|
|
22
|
-
def to_hash: -> {
|
|
23
|
-
id: String,
|
|
24
|
-
group_id: String,
|
|
25
|
-
request_options: Dodopayments::RequestOptions
|
|
26
|
-
}
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module ProductCollections
|
|
4
|
-
type group_update_params =
|
|
5
|
-
{
|
|
6
|
-
id: String,
|
|
7
|
-
group_id: String,
|
|
8
|
-
group_name: String?,
|
|
9
|
-
product_order: ::Array[String]?,
|
|
10
|
-
status: bool?
|
|
11
|
-
}
|
|
12
|
-
& Dodopayments::Internal::Type::request_parameters
|
|
13
|
-
|
|
14
|
-
class GroupUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
15
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
16
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
17
|
-
|
|
18
|
-
attr_accessor id: String
|
|
19
|
-
|
|
20
|
-
attr_accessor group_id: String
|
|
21
|
-
|
|
22
|
-
attr_accessor group_name: String?
|
|
23
|
-
|
|
24
|
-
attr_accessor product_order: ::Array[String]?
|
|
25
|
-
|
|
26
|
-
attr_accessor status: bool?
|
|
27
|
-
|
|
28
|
-
def initialize: (
|
|
29
|
-
id: String,
|
|
30
|
-
group_id: String,
|
|
31
|
-
?group_name: String?,
|
|
32
|
-
?product_order: ::Array[String]?,
|
|
33
|
-
?status: bool?,
|
|
34
|
-
?request_options: Dodopayments::request_opts
|
|
35
|
-
) -> void
|
|
36
|
-
|
|
37
|
-
def to_hash: -> {
|
|
38
|
-
id: String,
|
|
39
|
-
group_id: String,
|
|
40
|
-
group_name: String?,
|
|
41
|
-
product_order: ::Array[String]?,
|
|
42
|
-
status: bool?,
|
|
43
|
-
request_options: Dodopayments::RequestOptions
|
|
44
|
-
}
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module ProductCollections
|
|
4
|
-
module Groups
|
|
5
|
-
type item_create_params =
|
|
6
|
-
{
|
|
7
|
-
id: String,
|
|
8
|
-
group_id: String,
|
|
9
|
-
products: ::Array[Dodopayments::ProductCollections::Groups::ItemCreateParams::Product]
|
|
10
|
-
}
|
|
11
|
-
& Dodopayments::Internal::Type::request_parameters
|
|
12
|
-
|
|
13
|
-
class ItemCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
14
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
16
|
-
|
|
17
|
-
attr_accessor id: String
|
|
18
|
-
|
|
19
|
-
attr_accessor group_id: String
|
|
20
|
-
|
|
21
|
-
attr_accessor products: ::Array[Dodopayments::ProductCollections::Groups::ItemCreateParams::Product]
|
|
22
|
-
|
|
23
|
-
def initialize: (
|
|
24
|
-
id: String,
|
|
25
|
-
group_id: String,
|
|
26
|
-
products: ::Array[Dodopayments::ProductCollections::Groups::ItemCreateParams::Product],
|
|
27
|
-
?request_options: Dodopayments::request_opts
|
|
28
|
-
) -> void
|
|
29
|
-
|
|
30
|
-
def to_hash: -> {
|
|
31
|
-
id: String,
|
|
32
|
-
group_id: String,
|
|
33
|
-
products: ::Array[Dodopayments::ProductCollections::Groups::ItemCreateParams::Product],
|
|
34
|
-
request_options: Dodopayments::RequestOptions
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
type product = { product_id: String, status: bool? }
|
|
38
|
-
|
|
39
|
-
class Product < Dodopayments::Internal::Type::BaseModel
|
|
40
|
-
attr_accessor product_id: String
|
|
41
|
-
|
|
42
|
-
attr_accessor status: bool?
|
|
43
|
-
|
|
44
|
-
def initialize: (product_id: String, ?status: bool?) -> void
|
|
45
|
-
|
|
46
|
-
def to_hash: -> { product_id: String, status: bool? }
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module ProductCollections
|
|
4
|
-
module Groups
|
|
5
|
-
type item_create_response_item =
|
|
6
|
-
{
|
|
7
|
-
id: String,
|
|
8
|
-
addons_count: Integer,
|
|
9
|
-
files_count: Integer,
|
|
10
|
-
has_credit_entitlements: bool,
|
|
11
|
-
is_recurring: bool,
|
|
12
|
-
license_key_enabled: bool,
|
|
13
|
-
meters_count: Integer,
|
|
14
|
-
product_id: String,
|
|
15
|
-
status: bool,
|
|
16
|
-
currency: Dodopayments::Models::currency?,
|
|
17
|
-
description: String?,
|
|
18
|
-
name: String?,
|
|
19
|
-
price: Integer?,
|
|
20
|
-
price_detail: Dodopayments::Models::price?,
|
|
21
|
-
tax_category: Dodopayments::Models::tax_category?,
|
|
22
|
-
tax_inclusive: bool?
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
class ItemCreateResponseItem < Dodopayments::Internal::Type::BaseModel
|
|
26
|
-
attr_accessor id: String
|
|
27
|
-
|
|
28
|
-
attr_accessor addons_count: Integer
|
|
29
|
-
|
|
30
|
-
attr_accessor files_count: Integer
|
|
31
|
-
|
|
32
|
-
attr_accessor has_credit_entitlements: bool
|
|
33
|
-
|
|
34
|
-
attr_accessor is_recurring: bool
|
|
35
|
-
|
|
36
|
-
attr_accessor license_key_enabled: bool
|
|
37
|
-
|
|
38
|
-
attr_accessor meters_count: Integer
|
|
39
|
-
|
|
40
|
-
attr_accessor product_id: String
|
|
41
|
-
|
|
42
|
-
attr_accessor status: bool
|
|
43
|
-
|
|
44
|
-
attr_accessor currency: Dodopayments::Models::currency?
|
|
45
|
-
|
|
46
|
-
attr_accessor description: String?
|
|
47
|
-
|
|
48
|
-
attr_accessor name: String?
|
|
49
|
-
|
|
50
|
-
attr_accessor price: Integer?
|
|
51
|
-
|
|
52
|
-
attr_accessor price_detail: Dodopayments::Models::price?
|
|
53
|
-
|
|
54
|
-
attr_accessor tax_category: Dodopayments::Models::tax_category?
|
|
55
|
-
|
|
56
|
-
attr_accessor tax_inclusive: bool?
|
|
57
|
-
|
|
58
|
-
def initialize: (
|
|
59
|
-
id: String,
|
|
60
|
-
addons_count: Integer,
|
|
61
|
-
files_count: Integer,
|
|
62
|
-
has_credit_entitlements: bool,
|
|
63
|
-
is_recurring: bool,
|
|
64
|
-
license_key_enabled: bool,
|
|
65
|
-
meters_count: Integer,
|
|
66
|
-
product_id: String,
|
|
67
|
-
status: bool,
|
|
68
|
-
?currency: Dodopayments::Models::currency?,
|
|
69
|
-
?description: String?,
|
|
70
|
-
?name: String?,
|
|
71
|
-
?price: Integer?,
|
|
72
|
-
?price_detail: Dodopayments::Models::price?,
|
|
73
|
-
?tax_category: Dodopayments::Models::tax_category?,
|
|
74
|
-
?tax_inclusive: bool?
|
|
75
|
-
) -> void
|
|
76
|
-
|
|
77
|
-
def to_hash: -> {
|
|
78
|
-
id: String,
|
|
79
|
-
addons_count: Integer,
|
|
80
|
-
files_count: Integer,
|
|
81
|
-
has_credit_entitlements: bool,
|
|
82
|
-
is_recurring: bool,
|
|
83
|
-
license_key_enabled: bool,
|
|
84
|
-
meters_count: Integer,
|
|
85
|
-
product_id: String,
|
|
86
|
-
status: bool,
|
|
87
|
-
currency: Dodopayments::Models::currency?,
|
|
88
|
-
description: String?,
|
|
89
|
-
name: String?,
|
|
90
|
-
price: Integer?,
|
|
91
|
-
price_detail: Dodopayments::Models::price?,
|
|
92
|
-
tax_category: Dodopayments::Models::tax_category?,
|
|
93
|
-
tax_inclusive: bool?
|
|
94
|
-
}
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
type item_create_response =
|
|
98
|
-
::Array[Dodopayments::Models::ProductCollections::Groups::ItemCreateResponseItem]
|
|
99
|
-
|
|
100
|
-
ItemCreateResponse: Dodopayments::Internal::Type::Converter
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module ProductCollections
|
|
4
|
-
module Groups
|
|
5
|
-
type item_delete_params =
|
|
6
|
-
{ id: String, group_id: String, item_id: String }
|
|
7
|
-
& Dodopayments::Internal::Type::request_parameters
|
|
8
|
-
|
|
9
|
-
class ItemDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
10
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
attr_accessor id: String
|
|
14
|
-
|
|
15
|
-
attr_accessor group_id: String
|
|
16
|
-
|
|
17
|
-
attr_accessor item_id: String
|
|
18
|
-
|
|
19
|
-
def initialize: (
|
|
20
|
-
id: String,
|
|
21
|
-
group_id: String,
|
|
22
|
-
item_id: String,
|
|
23
|
-
?request_options: Dodopayments::request_opts
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
id: String,
|
|
28
|
-
group_id: String,
|
|
29
|
-
item_id: String,
|
|
30
|
-
request_options: Dodopayments::RequestOptions
|
|
31
|
-
}
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module ProductCollections
|
|
4
|
-
module Groups
|
|
5
|
-
type item_update_params =
|
|
6
|
-
{ id: String, group_id: String, item_id: String, status: bool }
|
|
7
|
-
& Dodopayments::Internal::Type::request_parameters
|
|
8
|
-
|
|
9
|
-
class ItemUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
10
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
attr_accessor id: String
|
|
14
|
-
|
|
15
|
-
attr_accessor group_id: String
|
|
16
|
-
|
|
17
|
-
attr_accessor item_id: String
|
|
18
|
-
|
|
19
|
-
attr_accessor status: bool
|
|
20
|
-
|
|
21
|
-
def initialize: (
|
|
22
|
-
id: String,
|
|
23
|
-
group_id: String,
|
|
24
|
-
item_id: String,
|
|
25
|
-
status: bool,
|
|
26
|
-
?request_options: Dodopayments::request_opts
|
|
27
|
-
) -> void
|
|
28
|
-
|
|
29
|
-
def to_hash: -> {
|
|
30
|
-
id: String,
|
|
31
|
-
group_id: String,
|
|
32
|
-
item_id: String,
|
|
33
|
-
status: bool,
|
|
34
|
-
request_options: Dodopayments::RequestOptions
|
|
35
|
-
}
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
type your_webhook_url_create_params =
|
|
4
|
-
{
|
|
5
|
-
webhook_id: String,
|
|
6
|
-
webhook_signature: String,
|
|
7
|
-
webhook_timestamp: String
|
|
8
|
-
}
|
|
9
|
-
& Dodopayments::Internal::Type::request_parameters
|
|
10
|
-
|
|
11
|
-
class YourWebhookURLCreateParams < Dodopayments::Models::WebhookPayload
|
|
12
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
13
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
14
|
-
|
|
15
|
-
def webhook_id: -> String
|
|
16
|
-
|
|
17
|
-
def webhook_id=: (String _) -> String
|
|
18
|
-
|
|
19
|
-
def webhook_signature: -> String
|
|
20
|
-
|
|
21
|
-
def webhook_signature=: (String _) -> String
|
|
22
|
-
|
|
23
|
-
def webhook_timestamp: -> String
|
|
24
|
-
|
|
25
|
-
def webhook_timestamp=: (String _) -> String
|
|
26
|
-
|
|
27
|
-
def initialize: (
|
|
28
|
-
webhook_id: String,
|
|
29
|
-
webhook_signature: String,
|
|
30
|
-
webhook_timestamp: String,
|
|
31
|
-
?request_options: Dodopayments::request_opts
|
|
32
|
-
) -> void
|
|
33
|
-
|
|
34
|
-
def to_hash: -> {
|
|
35
|
-
webhook_id: String,
|
|
36
|
-
webhook_signature: String,
|
|
37
|
-
webhook_timestamp: String,
|
|
38
|
-
request_options: Dodopayments::RequestOptions
|
|
39
|
-
}
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Resources
|
|
3
|
-
class ProductCollections
|
|
4
|
-
class Groups
|
|
5
|
-
class Items
|
|
6
|
-
def create: (
|
|
7
|
-
String group_id,
|
|
8
|
-
id: String,
|
|
9
|
-
products: ::Array[Dodopayments::ProductCollections::Groups::ItemCreateParams::Product],
|
|
10
|
-
?request_options: Dodopayments::request_opts
|
|
11
|
-
) -> Dodopayments::Models::ProductCollections::Groups::item_create_response
|
|
12
|
-
|
|
13
|
-
def update: (
|
|
14
|
-
String item_id,
|
|
15
|
-
id: String,
|
|
16
|
-
group_id: String,
|
|
17
|
-
status: bool,
|
|
18
|
-
?request_options: Dodopayments::request_opts
|
|
19
|
-
) -> nil
|
|
20
|
-
|
|
21
|
-
def delete: (
|
|
22
|
-
String item_id,
|
|
23
|
-
id: String,
|
|
24
|
-
group_id: String,
|
|
25
|
-
?request_options: Dodopayments::request_opts
|
|
26
|
-
) -> nil
|
|
27
|
-
|
|
28
|
-
def initialize: (client: Dodopayments::Client) -> void
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Resources
|
|
3
|
-
class ProductCollections
|
|
4
|
-
class Groups
|
|
5
|
-
attr_reader items: Dodopayments::Resources::ProductCollections::Groups::Items
|
|
6
|
-
|
|
7
|
-
def create: (
|
|
8
|
-
String id,
|
|
9
|
-
products: ::Array[Dodopayments::ProductCollections::GroupCreateParams::Product],
|
|
10
|
-
?group_name: String?,
|
|
11
|
-
?status: bool?,
|
|
12
|
-
?request_options: Dodopayments::request_opts
|
|
13
|
-
) -> Dodopayments::Models::ProductCollections::GroupCreateResponse
|
|
14
|
-
|
|
15
|
-
def update: (
|
|
16
|
-
String group_id,
|
|
17
|
-
id: String,
|
|
18
|
-
?group_name: String?,
|
|
19
|
-
?product_order: ::Array[String]?,
|
|
20
|
-
?status: bool?,
|
|
21
|
-
?request_options: Dodopayments::request_opts
|
|
22
|
-
) -> nil
|
|
23
|
-
|
|
24
|
-
def delete: (
|
|
25
|
-
String group_id,
|
|
26
|
-
id: String,
|
|
27
|
-
?request_options: Dodopayments::request_opts
|
|
28
|
-
) -> nil
|
|
29
|
-
|
|
30
|
-
def initialize: (client: Dodopayments::Client) -> void
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Resources
|
|
3
|
-
class ProductCollections
|
|
4
|
-
attr_reader groups: Dodopayments::Resources::ProductCollections::Groups
|
|
5
|
-
|
|
6
|
-
def create: (
|
|
7
|
-
groups: ::Array[Dodopayments::ProductCollectionCreateParams::Group],
|
|
8
|
-
name: String,
|
|
9
|
-
?brand_id: String?,
|
|
10
|
-
?description: String?,
|
|
11
|
-
?request_options: Dodopayments::request_opts
|
|
12
|
-
) -> Dodopayments::Models::ProductCollectionCreateResponse
|
|
13
|
-
|
|
14
|
-
def retrieve: (
|
|
15
|
-
String id,
|
|
16
|
-
?request_options: Dodopayments::request_opts
|
|
17
|
-
) -> Dodopayments::Models::ProductCollectionRetrieveResponse
|
|
18
|
-
|
|
19
|
-
def update: (
|
|
20
|
-
String id,
|
|
21
|
-
?brand_id: String?,
|
|
22
|
-
?description: String?,
|
|
23
|
-
?group_order: ::Array[String]?,
|
|
24
|
-
?image_id: String?,
|
|
25
|
-
?name: String?,
|
|
26
|
-
?request_options: Dodopayments::request_opts
|
|
27
|
-
) -> nil
|
|
28
|
-
|
|
29
|
-
def list: (
|
|
30
|
-
?archived: bool,
|
|
31
|
-
?brand_id: String,
|
|
32
|
-
?page_number: Integer,
|
|
33
|
-
?page_size: Integer,
|
|
34
|
-
?request_options: Dodopayments::request_opts
|
|
35
|
-
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Models::ProductCollectionListResponse]
|
|
36
|
-
|
|
37
|
-
def delete: (
|
|
38
|
-
String id,
|
|
39
|
-
?request_options: Dodopayments::request_opts
|
|
40
|
-
) -> nil
|
|
41
|
-
|
|
42
|
-
def unarchive: (
|
|
43
|
-
String id,
|
|
44
|
-
?request_options: Dodopayments::request_opts
|
|
45
|
-
) -> Dodopayments::Models::ProductCollectionUnarchiveResponse
|
|
46
|
-
|
|
47
|
-
def update_images: (
|
|
48
|
-
String id,
|
|
49
|
-
?force_update: bool?,
|
|
50
|
-
?request_options: Dodopayments::request_opts
|
|
51
|
-
) -> Dodopayments::Models::ProductCollectionUpdateImagesResponse
|
|
52
|
-
|
|
53
|
-
def initialize: (client: Dodopayments::Client) -> void
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Resources
|
|
3
|
-
class YourWebhookURL
|
|
4
|
-
def create: (
|
|
5
|
-
business_id: String,
|
|
6
|
-
data: Dodopayments::Models::WebhookPayload::data,
|
|
7
|
-
timestamp: Time,
|
|
8
|
-
type: Dodopayments::Models::webhook_event_type,
|
|
9
|
-
webhook_id: String,
|
|
10
|
-
webhook_signature: String,
|
|
11
|
-
webhook_timestamp: String,
|
|
12
|
-
?request_options: Dodopayments::request_opts
|
|
13
|
-
) -> nil
|
|
14
|
-
|
|
15
|
-
def initialize: (client: Dodopayments::Client) -> void
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|