dodopayments 2.3.0 → 2.4.1

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 (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/dodopayments/client.rb +0 -8
  5. data/lib/dodopayments/internal/util.rb +1 -2
  6. data/lib/dodopayments/models/customer_delete_payment_method_params.rb +26 -0
  7. data/lib/dodopayments/models/dispute.rb +9 -1
  8. data/lib/dodopayments/models/dispute_list_response.rb +9 -1
  9. data/lib/dodopayments/models/get_dispute.rb +9 -1
  10. data/lib/dodopayments/models.rb +2 -18
  11. data/lib/dodopayments/resources/customers.rb +25 -0
  12. data/lib/dodopayments/resources/invoices/payments.rb +0 -18
  13. data/lib/dodopayments/version.rb +1 -1
  14. data/lib/dodopayments.rb +4 -29
  15. data/rbi/dodopayments/client.rbi +0 -6
  16. data/rbi/dodopayments/models/credit_entitlement_cart_response.rbi +4 -4
  17. data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +2 -2
  18. data/rbi/dodopayments/models/{your_webhook_url_create_params.rbi → customer_delete_payment_method_params.rbi} +9 -19
  19. data/rbi/dodopayments/models/dispute.rbi +12 -4
  20. data/rbi/dodopayments/models/dispute_list_response.rbi +11 -3
  21. data/rbi/dodopayments/models/get_dispute.rbi +12 -4
  22. data/rbi/dodopayments/models/license_key.rbi +2 -2
  23. data/rbi/dodopayments/models/meter_cart_response_item.rbi +2 -2
  24. data/rbi/dodopayments/models/payment.rbi +12 -10
  25. data/rbi/dodopayments/models/refund.rbi +4 -4
  26. data/rbi/dodopayments/models/refund_list_item.rbi +4 -4
  27. data/rbi/dodopayments/models/subscription.rbi +10 -8
  28. data/rbi/dodopayments/models.rbi +3 -25
  29. data/rbi/dodopayments/resources/customers.rbi +16 -0
  30. data/rbi/dodopayments/resources/invoices/payments.rbi +0 -9
  31. data/sig/dodopayments/client.rbs +0 -4
  32. data/sig/dodopayments/models/{product_collection_update_images_params.rbs → customer_delete_payment_method_params.rbs} +9 -9
  33. data/sig/dodopayments/models/dispute.rbs +5 -0
  34. data/sig/dodopayments/models/dispute_list_response.rbs +8 -3
  35. data/sig/dodopayments/models/get_dispute.rbs +5 -0
  36. data/sig/dodopayments/models.rbs +2 -18
  37. data/sig/dodopayments/resources/customers.rbs +6 -0
  38. data/sig/dodopayments/resources/invoices/payments.rbs +0 -5
  39. metadata +5 -80
  40. data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +0 -22
  41. data/lib/dodopayments/models/product_collection_create_params.rb +0 -98
  42. data/lib/dodopayments/models/product_collection_create_response.rb +0 -226
  43. data/lib/dodopayments/models/product_collection_delete_params.rb +0 -20
  44. data/lib/dodopayments/models/product_collection_list_params.rb +0 -46
  45. data/lib/dodopayments/models/product_collection_list_response.rb +0 -65
  46. data/lib/dodopayments/models/product_collection_retrieve_params.rb +0 -20
  47. data/lib/dodopayments/models/product_collection_retrieve_response.rb +0 -226
  48. data/lib/dodopayments/models/product_collection_unarchive_params.rb +0 -20
  49. data/lib/dodopayments/models/product_collection_unarchive_response.rb +0 -33
  50. data/lib/dodopayments/models/product_collection_update_images_params.rb +0 -29
  51. data/lib/dodopayments/models/product_collection_update_images_response.rb +0 -25
  52. data/lib/dodopayments/models/product_collection_update_params.rb +0 -61
  53. data/lib/dodopayments/models/product_collections/group_create_params.rb +0 -71
  54. data/lib/dodopayments/models/product_collections/group_create_response.rb +0 -160
  55. data/lib/dodopayments/models/product_collections/group_delete_params.rb +0 -28
  56. data/lib/dodopayments/models/product_collections/group_update_params.rb +0 -59
  57. data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +0 -60
  58. data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +0 -136
  59. data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +0 -36
  60. data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +0 -47
  61. data/lib/dodopayments/models/your_webhook_url_create_params.rb +0 -32
  62. data/lib/dodopayments/resources/product_collections/groups/items.rb +0 -111
  63. data/lib/dodopayments/resources/product_collections/groups.rb +0 -109
  64. data/lib/dodopayments/resources/product_collections.rb +0 -179
  65. data/lib/dodopayments/resources/your_webhook_url.rb +0 -56
  66. data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +0 -40
  67. data/rbi/dodopayments/models/product_collection_create_params.rbi +0 -180
  68. data/rbi/dodopayments/models/product_collection_create_response.rbi +0 -303
  69. data/rbi/dodopayments/models/product_collection_delete_params.rbi +0 -38
  70. data/rbi/dodopayments/models/product_collection_list_params.rbi +0 -82
  71. data/rbi/dodopayments/models/product_collection_list_response.rbi +0 -88
  72. data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +0 -38
  73. data/rbi/dodopayments/models/product_collection_retrieve_response.rbi +0 -305
  74. data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +0 -38
  75. data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +0 -56
  76. data/rbi/dodopayments/models/product_collection_update_images_params.rbi +0 -52
  77. data/rbi/dodopayments/models/product_collection_update_images_response.rbi +0 -40
  78. data/rbi/dodopayments/models/product_collection_update_params.rbi +0 -84
  79. data/rbi/dodopayments/models/product_collections/group_create_params.rbi +0 -123
  80. data/rbi/dodopayments/models/product_collections/group_create_response.rbi +0 -204
  81. data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +0 -48
  82. data/rbi/dodopayments/models/product_collections/group_update_params.rbi +0 -80
  83. data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +0 -113
  84. data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +0 -156
  85. data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +0 -55
  86. data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +0 -68
  87. data/rbi/dodopayments/resources/product_collections/groups/items.rbi +0 -83
  88. data/rbi/dodopayments/resources/product_collections/groups.rbi +0 -90
  89. data/rbi/dodopayments/resources/product_collections.rbi +0 -149
  90. data/rbi/dodopayments/resources/your_webhook_url.rbi +0 -53
  91. data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +0 -25
  92. data/sig/dodopayments/models/product_collection_create_params.rbs +0 -80
  93. data/sig/dodopayments/models/product_collection_create_response.rbs +0 -179
  94. data/sig/dodopayments/models/product_collection_delete_params.rbs +0 -23
  95. data/sig/dodopayments/models/product_collection_list_params.rbs +0 -49
  96. data/sig/dodopayments/models/product_collection_list_response.rbs +0 -50
  97. data/sig/dodopayments/models/product_collection_retrieve_params.rbs +0 -23
  98. data/sig/dodopayments/models/product_collection_retrieve_response.rbs +0 -179
  99. data/sig/dodopayments/models/product_collection_unarchive_params.rbs +0 -23
  100. data/sig/dodopayments/models/product_collection_unarchive_response.rbs +0 -30
  101. data/sig/dodopayments/models/product_collection_update_images_response.rbs +0 -16
  102. data/sig/dodopayments/models/product_collection_update_params.rbs +0 -51
  103. data/sig/dodopayments/models/product_collections/group_create_params.rbs +0 -55
  104. data/sig/dodopayments/models/product_collections/group_create_response.rbs +0 -129
  105. data/sig/dodopayments/models/product_collections/group_delete_params.rbs +0 -30
  106. data/sig/dodopayments/models/product_collections/group_update_params.rbs +0 -48
  107. data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +0 -52
  108. data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +0 -104
  109. data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +0 -36
  110. data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +0 -40
  111. data/sig/dodopayments/models/your_webhook_url_create_params.rbs +0 -42
  112. data/sig/dodopayments/resources/product_collections/groups/items.rbs +0 -33
  113. data/sig/dodopayments/resources/product_collections/groups.rbs +0 -34
  114. data/sig/dodopayments/resources/product_collections.rbs +0 -56
  115. data/sig/dodopayments/resources/your_webhook_url.rbs +0 -18
@@ -1,179 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_create_response =
4
- {
5
- id: String,
6
- brand_id: String,
7
- created_at: Time,
8
- groups: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group],
9
- name: String,
10
- updated_at: Time,
11
- description: String?,
12
- image: String?
13
- }
14
-
15
- class ProductCollectionCreateResponse < Dodopayments::Internal::Type::BaseModel
16
- attr_accessor id: String
17
-
18
- attr_accessor brand_id: String
19
-
20
- attr_accessor created_at: Time
21
-
22
- attr_accessor groups: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group]
23
-
24
- attr_accessor name: String
25
-
26
- attr_accessor updated_at: Time
27
-
28
- attr_accessor description: String?
29
-
30
- attr_accessor image: String?
31
-
32
- def initialize: (
33
- id: String,
34
- brand_id: String,
35
- created_at: Time,
36
- groups: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group],
37
- name: String,
38
- updated_at: Time,
39
- ?description: String?,
40
- ?image: String?
41
- ) -> void
42
-
43
- def to_hash: -> {
44
- id: String,
45
- brand_id: String,
46
- created_at: Time,
47
- groups: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group],
48
- name: String,
49
- updated_at: Time,
50
- description: String?,
51
- image: String?
52
- }
53
-
54
- type group =
55
- {
56
- group_id: String,
57
- products: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group::Product],
58
- status: bool,
59
- group_name: String?
60
- }
61
-
62
- class Group < Dodopayments::Internal::Type::BaseModel
63
- attr_accessor group_id: String
64
-
65
- attr_accessor products: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group::Product]
66
-
67
- attr_accessor status: bool
68
-
69
- attr_accessor group_name: String?
70
-
71
- def initialize: (
72
- group_id: String,
73
- products: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group::Product],
74
- status: bool,
75
- ?group_name: String?
76
- ) -> void
77
-
78
- def to_hash: -> {
79
- group_id: String,
80
- products: ::Array[Dodopayments::Models::ProductCollectionCreateResponse::Group::Product],
81
- status: bool,
82
- group_name: String?
83
- }
84
-
85
- type product =
86
- {
87
- id: String,
88
- addons_count: Integer,
89
- files_count: Integer,
90
- has_credit_entitlements: bool,
91
- is_recurring: bool,
92
- license_key_enabled: bool,
93
- meters_count: Integer,
94
- product_id: String,
95
- status: bool,
96
- currency: Dodopayments::Models::currency?,
97
- description: String?,
98
- name: String?,
99
- price: Integer?,
100
- price_detail: Dodopayments::Models::price?,
101
- tax_category: Dodopayments::Models::tax_category?,
102
- tax_inclusive: bool?
103
- }
104
-
105
- class Product < Dodopayments::Internal::Type::BaseModel
106
- attr_accessor id: String
107
-
108
- attr_accessor addons_count: Integer
109
-
110
- attr_accessor files_count: Integer
111
-
112
- attr_accessor has_credit_entitlements: bool
113
-
114
- attr_accessor is_recurring: bool
115
-
116
- attr_accessor license_key_enabled: bool
117
-
118
- attr_accessor meters_count: Integer
119
-
120
- attr_accessor product_id: String
121
-
122
- attr_accessor status: bool
123
-
124
- attr_accessor currency: Dodopayments::Models::currency?
125
-
126
- attr_accessor description: String?
127
-
128
- attr_accessor name: String?
129
-
130
- attr_accessor price: Integer?
131
-
132
- attr_accessor price_detail: Dodopayments::Models::price?
133
-
134
- attr_accessor tax_category: Dodopayments::Models::tax_category?
135
-
136
- attr_accessor tax_inclusive: bool?
137
-
138
- def initialize: (
139
- id: String,
140
- addons_count: Integer,
141
- files_count: Integer,
142
- has_credit_entitlements: bool,
143
- is_recurring: bool,
144
- license_key_enabled: bool,
145
- meters_count: Integer,
146
- product_id: String,
147
- status: bool,
148
- ?currency: Dodopayments::Models::currency?,
149
- ?description: String?,
150
- ?name: String?,
151
- ?price: Integer?,
152
- ?price_detail: Dodopayments::Models::price?,
153
- ?tax_category: Dodopayments::Models::tax_category?,
154
- ?tax_inclusive: bool?
155
- ) -> void
156
-
157
- def to_hash: -> {
158
- id: String,
159
- addons_count: Integer,
160
- files_count: Integer,
161
- has_credit_entitlements: bool,
162
- is_recurring: bool,
163
- license_key_enabled: bool,
164
- meters_count: Integer,
165
- product_id: String,
166
- status: bool,
167
- currency: Dodopayments::Models::currency?,
168
- description: String?,
169
- name: String?,
170
- price: Integer?,
171
- price_detail: Dodopayments::Models::price?,
172
- tax_category: Dodopayments::Models::tax_category?,
173
- tax_inclusive: bool?
174
- }
175
- end
176
- end
177
- end
178
- end
179
- end
@@ -1,23 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_delete_params =
4
- { id: String } & Dodopayments::Internal::Type::request_parameters
5
-
6
- class ProductCollectionDeleteParams < Dodopayments::Internal::Type::BaseModel
7
- extend Dodopayments::Internal::Type::RequestParameters::Converter
8
- include Dodopayments::Internal::Type::RequestParameters
9
-
10
- attr_accessor id: String
11
-
12
- def initialize: (
13
- id: String,
14
- ?request_options: Dodopayments::request_opts
15
- ) -> void
16
-
17
- def to_hash: -> {
18
- id: String,
19
- request_options: Dodopayments::RequestOptions
20
- }
21
- end
22
- end
23
- end
@@ -1,49 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_list_params =
4
- {
5
- archived: bool,
6
- brand_id: String,
7
- page_number: Integer,
8
- page_size: Integer
9
- }
10
- & Dodopayments::Internal::Type::request_parameters
11
-
12
- class ProductCollectionListParams < Dodopayments::Internal::Type::BaseModel
13
- extend Dodopayments::Internal::Type::RequestParameters::Converter
14
- include Dodopayments::Internal::Type::RequestParameters
15
-
16
- attr_reader archived: bool?
17
-
18
- def archived=: (bool) -> bool
19
-
20
- attr_reader brand_id: String?
21
-
22
- def brand_id=: (String) -> String
23
-
24
- attr_reader page_number: Integer?
25
-
26
- def page_number=: (Integer) -> Integer
27
-
28
- attr_reader page_size: Integer?
29
-
30
- def page_size=: (Integer) -> Integer
31
-
32
- def initialize: (
33
- ?archived: bool,
34
- ?brand_id: String,
35
- ?page_number: Integer,
36
- ?page_size: Integer,
37
- ?request_options: Dodopayments::request_opts
38
- ) -> void
39
-
40
- def to_hash: -> {
41
- archived: bool,
42
- brand_id: String,
43
- page_number: Integer,
44
- page_size: Integer,
45
- request_options: Dodopayments::RequestOptions
46
- }
47
- end
48
- end
49
- end
@@ -1,50 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_list_response =
4
- {
5
- id: String,
6
- created_at: Time,
7
- name: String,
8
- products_count: Integer,
9
- updated_at: Time,
10
- description: String?,
11
- image: String?
12
- }
13
-
14
- class ProductCollectionListResponse < Dodopayments::Internal::Type::BaseModel
15
- attr_accessor id: String
16
-
17
- attr_accessor created_at: Time
18
-
19
- attr_accessor name: String
20
-
21
- attr_accessor products_count: Integer
22
-
23
- attr_accessor updated_at: Time
24
-
25
- attr_accessor description: String?
26
-
27
- attr_accessor image: String?
28
-
29
- def initialize: (
30
- id: String,
31
- created_at: Time,
32
- name: String,
33
- products_count: Integer,
34
- updated_at: Time,
35
- ?description: String?,
36
- ?image: String?
37
- ) -> void
38
-
39
- def to_hash: -> {
40
- id: String,
41
- created_at: Time,
42
- name: String,
43
- products_count: Integer,
44
- updated_at: Time,
45
- description: String?,
46
- image: String?
47
- }
48
- end
49
- end
50
- end
@@ -1,23 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_retrieve_params =
4
- { id: String } & Dodopayments::Internal::Type::request_parameters
5
-
6
- class ProductCollectionRetrieveParams < Dodopayments::Internal::Type::BaseModel
7
- extend Dodopayments::Internal::Type::RequestParameters::Converter
8
- include Dodopayments::Internal::Type::RequestParameters
9
-
10
- attr_accessor id: String
11
-
12
- def initialize: (
13
- id: String,
14
- ?request_options: Dodopayments::request_opts
15
- ) -> void
16
-
17
- def to_hash: -> {
18
- id: String,
19
- request_options: Dodopayments::RequestOptions
20
- }
21
- end
22
- end
23
- end
@@ -1,179 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_retrieve_response =
4
- {
5
- id: String,
6
- brand_id: String,
7
- created_at: Time,
8
- groups: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group],
9
- name: String,
10
- updated_at: Time,
11
- description: String?,
12
- image: String?
13
- }
14
-
15
- class ProductCollectionRetrieveResponse < Dodopayments::Internal::Type::BaseModel
16
- attr_accessor id: String
17
-
18
- attr_accessor brand_id: String
19
-
20
- attr_accessor created_at: Time
21
-
22
- attr_accessor groups: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group]
23
-
24
- attr_accessor name: String
25
-
26
- attr_accessor updated_at: Time
27
-
28
- attr_accessor description: String?
29
-
30
- attr_accessor image: String?
31
-
32
- def initialize: (
33
- id: String,
34
- brand_id: String,
35
- created_at: Time,
36
- groups: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group],
37
- name: String,
38
- updated_at: Time,
39
- ?description: String?,
40
- ?image: String?
41
- ) -> void
42
-
43
- def to_hash: -> {
44
- id: String,
45
- brand_id: String,
46
- created_at: Time,
47
- groups: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group],
48
- name: String,
49
- updated_at: Time,
50
- description: String?,
51
- image: String?
52
- }
53
-
54
- type group =
55
- {
56
- group_id: String,
57
- products: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group::Product],
58
- status: bool,
59
- group_name: String?
60
- }
61
-
62
- class Group < Dodopayments::Internal::Type::BaseModel
63
- attr_accessor group_id: String
64
-
65
- attr_accessor products: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group::Product]
66
-
67
- attr_accessor status: bool
68
-
69
- attr_accessor group_name: String?
70
-
71
- def initialize: (
72
- group_id: String,
73
- products: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group::Product],
74
- status: bool,
75
- ?group_name: String?
76
- ) -> void
77
-
78
- def to_hash: -> {
79
- group_id: String,
80
- products: ::Array[Dodopayments::Models::ProductCollectionRetrieveResponse::Group::Product],
81
- status: bool,
82
- group_name: String?
83
- }
84
-
85
- type product =
86
- {
87
- id: String,
88
- addons_count: Integer,
89
- files_count: Integer,
90
- has_credit_entitlements: bool,
91
- is_recurring: bool,
92
- license_key_enabled: bool,
93
- meters_count: Integer,
94
- product_id: String,
95
- status: bool,
96
- currency: Dodopayments::Models::currency?,
97
- description: String?,
98
- name: String?,
99
- price: Integer?,
100
- price_detail: Dodopayments::Models::price?,
101
- tax_category: Dodopayments::Models::tax_category?,
102
- tax_inclusive: bool?
103
- }
104
-
105
- class Product < Dodopayments::Internal::Type::BaseModel
106
- attr_accessor id: String
107
-
108
- attr_accessor addons_count: Integer
109
-
110
- attr_accessor files_count: Integer
111
-
112
- attr_accessor has_credit_entitlements: bool
113
-
114
- attr_accessor is_recurring: bool
115
-
116
- attr_accessor license_key_enabled: bool
117
-
118
- attr_accessor meters_count: Integer
119
-
120
- attr_accessor product_id: String
121
-
122
- attr_accessor status: bool
123
-
124
- attr_accessor currency: Dodopayments::Models::currency?
125
-
126
- attr_accessor description: String?
127
-
128
- attr_accessor name: String?
129
-
130
- attr_accessor price: Integer?
131
-
132
- attr_accessor price_detail: Dodopayments::Models::price?
133
-
134
- attr_accessor tax_category: Dodopayments::Models::tax_category?
135
-
136
- attr_accessor tax_inclusive: bool?
137
-
138
- def initialize: (
139
- id: String,
140
- addons_count: Integer,
141
- files_count: Integer,
142
- has_credit_entitlements: bool,
143
- is_recurring: bool,
144
- license_key_enabled: bool,
145
- meters_count: Integer,
146
- product_id: String,
147
- status: bool,
148
- ?currency: Dodopayments::Models::currency?,
149
- ?description: String?,
150
- ?name: String?,
151
- ?price: Integer?,
152
- ?price_detail: Dodopayments::Models::price?,
153
- ?tax_category: Dodopayments::Models::tax_category?,
154
- ?tax_inclusive: bool?
155
- ) -> void
156
-
157
- def to_hash: -> {
158
- id: String,
159
- addons_count: Integer,
160
- files_count: Integer,
161
- has_credit_entitlements: bool,
162
- is_recurring: bool,
163
- license_key_enabled: bool,
164
- meters_count: Integer,
165
- product_id: String,
166
- status: bool,
167
- currency: Dodopayments::Models::currency?,
168
- description: String?,
169
- name: String?,
170
- price: Integer?,
171
- price_detail: Dodopayments::Models::price?,
172
- tax_category: Dodopayments::Models::tax_category?,
173
- tax_inclusive: bool?
174
- }
175
- end
176
- end
177
- end
178
- end
179
- end
@@ -1,23 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_unarchive_params =
4
- { id: String } & Dodopayments::Internal::Type::request_parameters
5
-
6
- class ProductCollectionUnarchiveParams < Dodopayments::Internal::Type::BaseModel
7
- extend Dodopayments::Internal::Type::RequestParameters::Converter
8
- include Dodopayments::Internal::Type::RequestParameters
9
-
10
- attr_accessor id: String
11
-
12
- def initialize: (
13
- id: String,
14
- ?request_options: Dodopayments::request_opts
15
- ) -> void
16
-
17
- def to_hash: -> {
18
- id: String,
19
- request_options: Dodopayments::RequestOptions
20
- }
21
- end
22
- end
23
- end
@@ -1,30 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_unarchive_response =
4
- {
5
- collection_id: String,
6
- excluded_product_ids: ::Array[String],
7
- message: String
8
- }
9
-
10
- class ProductCollectionUnarchiveResponse < Dodopayments::Internal::Type::BaseModel
11
- attr_accessor collection_id: String
12
-
13
- attr_accessor excluded_product_ids: ::Array[String]
14
-
15
- attr_accessor message: String
16
-
17
- def initialize: (
18
- collection_id: String,
19
- excluded_product_ids: ::Array[String],
20
- message: String
21
- ) -> void
22
-
23
- def to_hash: -> {
24
- collection_id: String,
25
- excluded_product_ids: ::Array[String],
26
- message: String
27
- }
28
- end
29
- end
30
- end
@@ -1,16 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_update_images_response =
4
- { url: String, image_id: String? }
5
-
6
- class ProductCollectionUpdateImagesResponse < Dodopayments::Internal::Type::BaseModel
7
- attr_accessor url: String
8
-
9
- attr_accessor image_id: String?
10
-
11
- def initialize: (url: String, ?image_id: String?) -> void
12
-
13
- def to_hash: -> { url: String, image_id: String? }
14
- end
15
- end
16
- end
@@ -1,51 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- type product_collection_update_params =
4
- {
5
- id: String,
6
- brand_id: String?,
7
- description: String?,
8
- group_order: ::Array[String]?,
9
- image_id: String?,
10
- name: String?
11
- }
12
- & Dodopayments::Internal::Type::request_parameters
13
-
14
- class ProductCollectionUpdateParams < 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 brand_id: String?
21
-
22
- attr_accessor description: String?
23
-
24
- attr_accessor group_order: ::Array[String]?
25
-
26
- attr_accessor image_id: String?
27
-
28
- attr_accessor name: String?
29
-
30
- def initialize: (
31
- id: String,
32
- ?brand_id: String?,
33
- ?description: String?,
34
- ?group_order: ::Array[String]?,
35
- ?image_id: String?,
36
- ?name: String?,
37
- ?request_options: Dodopayments::request_opts
38
- ) -> void
39
-
40
- def to_hash: -> {
41
- id: String,
42
- brand_id: String?,
43
- description: String?,
44
- group_order: ::Array[String]?,
45
- image_id: String?,
46
- name: String?,
47
- request_options: Dodopayments::RequestOptions
48
- }
49
- end
50
- end
51
- end
@@ -1,55 +0,0 @@
1
- module Dodopayments
2
- module Models
3
- module ProductCollections
4
- type group_create_params =
5
- {
6
- id: String,
7
- products: ::Array[Dodopayments::ProductCollections::GroupCreateParams::Product],
8
- group_name: String?,
9
- status: bool?
10
- }
11
- & Dodopayments::Internal::Type::request_parameters
12
-
13
- class GroupCreateParams < 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 products: ::Array[Dodopayments::ProductCollections::GroupCreateParams::Product]
20
-
21
- attr_accessor group_name: String?
22
-
23
- attr_accessor status: bool?
24
-
25
- def initialize: (
26
- id: String,
27
- products: ::Array[Dodopayments::ProductCollections::GroupCreateParams::Product],
28
- ?group_name: String?,
29
- ?status: bool?,
30
- ?request_options: Dodopayments::request_opts
31
- ) -> void
32
-
33
- def to_hash: -> {
34
- id: String,
35
- products: ::Array[Dodopayments::ProductCollections::GroupCreateParams::Product],
36
- group_name: String?,
37
- status: bool?,
38
- request_options: Dodopayments::RequestOptions
39
- }
40
-
41
- type product = { product_id: String, status: bool? }
42
-
43
- class Product < Dodopayments::Internal::Type::BaseModel
44
- attr_accessor product_id: String
45
-
46
- attr_accessor status: bool?
47
-
48
- def initialize: (product_id: String, ?status: bool?) -> void
49
-
50
- def to_hash: -> { product_id: String, status: bool? }
51
- end
52
- end
53
- end
54
- end
55
- end