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,68 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Models
|
|
5
|
-
module ProductCollections
|
|
6
|
-
module Groups
|
|
7
|
-
class ItemUpdateParams < 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::ItemUpdateParams,
|
|
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
|
-
# Status of the product in the group
|
|
29
|
-
sig { returns(T::Boolean) }
|
|
30
|
-
attr_accessor :status
|
|
31
|
-
|
|
32
|
-
sig do
|
|
33
|
-
params(
|
|
34
|
-
id: String,
|
|
35
|
-
group_id: String,
|
|
36
|
-
item_id: String,
|
|
37
|
-
status: T::Boolean,
|
|
38
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
39
|
-
).returns(T.attached_class)
|
|
40
|
-
end
|
|
41
|
-
def self.new(
|
|
42
|
-
id:,
|
|
43
|
-
group_id:,
|
|
44
|
-
item_id:,
|
|
45
|
-
# Status of the product in the group
|
|
46
|
-
status:,
|
|
47
|
-
request_options: {}
|
|
48
|
-
)
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
sig do
|
|
52
|
-
override.returns(
|
|
53
|
-
{
|
|
54
|
-
id: String,
|
|
55
|
-
group_id: String,
|
|
56
|
-
item_id: String,
|
|
57
|
-
status: T::Boolean,
|
|
58
|
-
request_options: Dodopayments::RequestOptions
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
def to_hash
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Resources
|
|
5
|
-
class ProductCollections
|
|
6
|
-
class Groups
|
|
7
|
-
class Items
|
|
8
|
-
sig do
|
|
9
|
-
params(
|
|
10
|
-
group_id: String,
|
|
11
|
-
id: String,
|
|
12
|
-
products:
|
|
13
|
-
T::Array[
|
|
14
|
-
Dodopayments::ProductCollections::Groups::ItemCreateParams::Product::OrHash
|
|
15
|
-
],
|
|
16
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
17
|
-
).returns(
|
|
18
|
-
T::Array[
|
|
19
|
-
Dodopayments::Models::ProductCollections::Groups::ItemCreateResponseItem
|
|
20
|
-
]
|
|
21
|
-
)
|
|
22
|
-
end
|
|
23
|
-
def create(
|
|
24
|
-
# Path param: Product Collection Group Id
|
|
25
|
-
group_id,
|
|
26
|
-
# Path param: Product Collection Id
|
|
27
|
-
id:,
|
|
28
|
-
# Body param: Products to add to the group
|
|
29
|
-
products:,
|
|
30
|
-
request_options: {}
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
params(
|
|
36
|
-
item_id: String,
|
|
37
|
-
id: String,
|
|
38
|
-
group_id: String,
|
|
39
|
-
status: T::Boolean,
|
|
40
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
41
|
-
).void
|
|
42
|
-
end
|
|
43
|
-
def update(
|
|
44
|
-
# Path param: Collection item Id (product membership in group)
|
|
45
|
-
item_id,
|
|
46
|
-
# Path param: Product Collection Id
|
|
47
|
-
id:,
|
|
48
|
-
# Path param: Product Collection Group Id
|
|
49
|
-
group_id:,
|
|
50
|
-
# Body param: Status of the product in the group
|
|
51
|
-
status:,
|
|
52
|
-
request_options: {}
|
|
53
|
-
)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
sig do
|
|
57
|
-
params(
|
|
58
|
-
item_id: String,
|
|
59
|
-
id: String,
|
|
60
|
-
group_id: String,
|
|
61
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
62
|
-
).void
|
|
63
|
-
end
|
|
64
|
-
def delete(
|
|
65
|
-
# Collection item Id (product membership in group)
|
|
66
|
-
item_id,
|
|
67
|
-
# Product Collection Id
|
|
68
|
-
id:,
|
|
69
|
-
# Product Collection Group Id
|
|
70
|
-
group_id:,
|
|
71
|
-
request_options: {}
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# @api private
|
|
76
|
-
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
|
77
|
-
def self.new(client:)
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
end
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Resources
|
|
5
|
-
class ProductCollections
|
|
6
|
-
class Groups
|
|
7
|
-
sig do
|
|
8
|
-
returns(Dodopayments::Resources::ProductCollections::Groups::Items)
|
|
9
|
-
end
|
|
10
|
-
attr_reader :items
|
|
11
|
-
|
|
12
|
-
sig do
|
|
13
|
-
params(
|
|
14
|
-
id: String,
|
|
15
|
-
products:
|
|
16
|
-
T::Array[
|
|
17
|
-
Dodopayments::ProductCollections::GroupCreateParams::Product::OrHash
|
|
18
|
-
],
|
|
19
|
-
group_name: T.nilable(String),
|
|
20
|
-
status: T.nilable(T::Boolean),
|
|
21
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
22
|
-
).returns(
|
|
23
|
-
Dodopayments::Models::ProductCollections::GroupCreateResponse
|
|
24
|
-
)
|
|
25
|
-
end
|
|
26
|
-
def create(
|
|
27
|
-
# Product Collection Id
|
|
28
|
-
id,
|
|
29
|
-
# Products in this group
|
|
30
|
-
products:,
|
|
31
|
-
# Optional group name. Multiple groups can have null names, but named groups must
|
|
32
|
-
# be unique per collection
|
|
33
|
-
group_name: nil,
|
|
34
|
-
# Status of the group (defaults to true if not provided)
|
|
35
|
-
status: nil,
|
|
36
|
-
request_options: {}
|
|
37
|
-
)
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
group_id: String,
|
|
43
|
-
id: String,
|
|
44
|
-
group_name: T.nilable(String),
|
|
45
|
-
product_order: T.nilable(T::Array[String]),
|
|
46
|
-
status: T.nilable(T::Boolean),
|
|
47
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
48
|
-
).void
|
|
49
|
-
end
|
|
50
|
-
def update(
|
|
51
|
-
# Path param: Product Collection Group Id
|
|
52
|
-
group_id,
|
|
53
|
-
# Path param: Product Collection Id
|
|
54
|
-
id:,
|
|
55
|
-
# Body param: Optional group name update: Some(Some(name)) = set name, Some(None)
|
|
56
|
-
# = clear name, None = no change
|
|
57
|
-
group_name: nil,
|
|
58
|
-
# Body param: Optional new order for products in this group (array of
|
|
59
|
-
# product_collection_group_pdts UUIDs)
|
|
60
|
-
product_order: nil,
|
|
61
|
-
# Body param: Optional status update
|
|
62
|
-
status: nil,
|
|
63
|
-
request_options: {}
|
|
64
|
-
)
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
sig do
|
|
68
|
-
params(
|
|
69
|
-
group_id: String,
|
|
70
|
-
id: String,
|
|
71
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
72
|
-
).void
|
|
73
|
-
end
|
|
74
|
-
def delete(
|
|
75
|
-
# Product Collection Group Id
|
|
76
|
-
group_id,
|
|
77
|
-
# Product Collection Id
|
|
78
|
-
id:,
|
|
79
|
-
request_options: {}
|
|
80
|
-
)
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# @api private
|
|
84
|
-
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
|
85
|
-
def self.new(client:)
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Resources
|
|
5
|
-
class ProductCollections
|
|
6
|
-
sig { returns(Dodopayments::Resources::ProductCollections::Groups) }
|
|
7
|
-
attr_reader :groups
|
|
8
|
-
|
|
9
|
-
sig do
|
|
10
|
-
params(
|
|
11
|
-
groups:
|
|
12
|
-
T::Array[
|
|
13
|
-
Dodopayments::ProductCollectionCreateParams::Group::OrHash
|
|
14
|
-
],
|
|
15
|
-
name: String,
|
|
16
|
-
brand_id: T.nilable(String),
|
|
17
|
-
description: T.nilable(String),
|
|
18
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
19
|
-
).returns(Dodopayments::Models::ProductCollectionCreateResponse)
|
|
20
|
-
end
|
|
21
|
-
def create(
|
|
22
|
-
# Groups of products in this collection
|
|
23
|
-
groups:,
|
|
24
|
-
# Name of the product collection
|
|
25
|
-
name:,
|
|
26
|
-
# Brand id for the collection, if not provided will default to primary brand
|
|
27
|
-
brand_id: nil,
|
|
28
|
-
# Optional description of the product collection
|
|
29
|
-
description: nil,
|
|
30
|
-
request_options: {}
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
params(
|
|
36
|
-
id: String,
|
|
37
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
38
|
-
).returns(Dodopayments::Models::ProductCollectionRetrieveResponse)
|
|
39
|
-
end
|
|
40
|
-
def retrieve(
|
|
41
|
-
# Product Collection Id
|
|
42
|
-
id,
|
|
43
|
-
request_options: {}
|
|
44
|
-
)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
sig do
|
|
48
|
-
params(
|
|
49
|
-
id: String,
|
|
50
|
-
brand_id: T.nilable(String),
|
|
51
|
-
description: T.nilable(String),
|
|
52
|
-
group_order: T.nilable(T::Array[String]),
|
|
53
|
-
image_id: T.nilable(String),
|
|
54
|
-
name: T.nilable(String),
|
|
55
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
56
|
-
).void
|
|
57
|
-
end
|
|
58
|
-
def update(
|
|
59
|
-
# Product Collection Id
|
|
60
|
-
id,
|
|
61
|
-
# Optional brand_id update
|
|
62
|
-
brand_id: nil,
|
|
63
|
-
# Optional description update - pass null to remove, omit to keep unchanged
|
|
64
|
-
description: nil,
|
|
65
|
-
# Optional new order for groups (array of group UUIDs in desired order)
|
|
66
|
-
group_order: nil,
|
|
67
|
-
# Optional image update - pass null to remove, omit to keep unchanged
|
|
68
|
-
image_id: nil,
|
|
69
|
-
# Optional new name for the collection
|
|
70
|
-
name: nil,
|
|
71
|
-
request_options: {}
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
sig do
|
|
76
|
-
params(
|
|
77
|
-
archived: T::Boolean,
|
|
78
|
-
brand_id: String,
|
|
79
|
-
page_number: Integer,
|
|
80
|
-
page_size: Integer,
|
|
81
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
82
|
-
).returns(
|
|
83
|
-
Dodopayments::Internal::DefaultPageNumberPagination[
|
|
84
|
-
Dodopayments::Models::ProductCollectionListResponse
|
|
85
|
-
]
|
|
86
|
-
)
|
|
87
|
-
end
|
|
88
|
-
def list(
|
|
89
|
-
# List archived collections
|
|
90
|
-
archived: nil,
|
|
91
|
-
# Filter by Brand id
|
|
92
|
-
brand_id: nil,
|
|
93
|
-
# Page number default is 0
|
|
94
|
-
page_number: nil,
|
|
95
|
-
# Page size default is 10 max is 100
|
|
96
|
-
page_size: nil,
|
|
97
|
-
request_options: {}
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
sig do
|
|
102
|
-
params(
|
|
103
|
-
id: String,
|
|
104
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
105
|
-
).void
|
|
106
|
-
end
|
|
107
|
-
def delete(
|
|
108
|
-
# Product Collection Id
|
|
109
|
-
id,
|
|
110
|
-
request_options: {}
|
|
111
|
-
)
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
sig do
|
|
115
|
-
params(
|
|
116
|
-
id: String,
|
|
117
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
118
|
-
).returns(Dodopayments::Models::ProductCollectionUnarchiveResponse)
|
|
119
|
-
end
|
|
120
|
-
def unarchive(
|
|
121
|
-
# Product Collection Id
|
|
122
|
-
id,
|
|
123
|
-
request_options: {}
|
|
124
|
-
)
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
sig do
|
|
128
|
-
params(
|
|
129
|
-
id: String,
|
|
130
|
-
force_update: T.nilable(T::Boolean),
|
|
131
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
132
|
-
).returns(Dodopayments::Models::ProductCollectionUpdateImagesResponse)
|
|
133
|
-
end
|
|
134
|
-
def update_images(
|
|
135
|
-
# Product Collection Id
|
|
136
|
-
id,
|
|
137
|
-
# If true, generates a new image ID to force cache invalidation
|
|
138
|
-
force_update: nil,
|
|
139
|
-
request_options: {}
|
|
140
|
-
)
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
# @api private
|
|
144
|
-
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
|
145
|
-
def self.new(client:)
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
end
|
|
149
|
-
end
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Dodopayments
|
|
4
|
-
module Resources
|
|
5
|
-
class YourWebhookURL
|
|
6
|
-
sig do
|
|
7
|
-
params(
|
|
8
|
-
business_id: String,
|
|
9
|
-
data:
|
|
10
|
-
T.any(
|
|
11
|
-
Dodopayments::WebhookPayload::Data::Payment::OrHash,
|
|
12
|
-
Dodopayments::WebhookPayload::Data::Subscription::OrHash,
|
|
13
|
-
Dodopayments::WebhookPayload::Data::Refund::OrHash,
|
|
14
|
-
Dodopayments::WebhookPayload::Data::Dispute::OrHash,
|
|
15
|
-
Dodopayments::WebhookPayload::Data::LicenseKey::OrHash,
|
|
16
|
-
Dodopayments::WebhookPayload::Data::CreditLedgerEntry::OrHash,
|
|
17
|
-
Dodopayments::WebhookPayload::Data::CreditBalanceLow::OrHash
|
|
18
|
-
),
|
|
19
|
-
timestamp: Time,
|
|
20
|
-
type: Dodopayments::WebhookEventType::OrSymbol,
|
|
21
|
-
webhook_id: String,
|
|
22
|
-
webhook_signature: String,
|
|
23
|
-
webhook_timestamp: String,
|
|
24
|
-
request_options: Dodopayments::RequestOptions::OrHash
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
27
|
-
def create(
|
|
28
|
-
# Body param
|
|
29
|
-
business_id:,
|
|
30
|
-
# Body param: The latest data at the time of delivery attempt
|
|
31
|
-
data:,
|
|
32
|
-
# Body param: The timestamp of when the event occurred (not necessarily the same
|
|
33
|
-
# of when it was delivered)
|
|
34
|
-
timestamp:,
|
|
35
|
-
# Body param: Event types for Dodo events
|
|
36
|
-
type:,
|
|
37
|
-
# Header param: Unique identifier for the webhook
|
|
38
|
-
webhook_id:,
|
|
39
|
-
# Header param: Signature of the Webhook
|
|
40
|
-
webhook_signature:,
|
|
41
|
-
# Header param: Unix timestamp when the webhook was sent
|
|
42
|
-
webhook_timestamp:,
|
|
43
|
-
request_options: {}
|
|
44
|
-
)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# @api private
|
|
48
|
-
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
|
49
|
-
def self.new(client:)
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
module Invoices
|
|
4
|
-
type payment_retrieve_payout_params =
|
|
5
|
-
{ payout_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
6
|
-
|
|
7
|
-
class PaymentRetrievePayoutParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
attr_accessor payout_id: String
|
|
12
|
-
|
|
13
|
-
def initialize: (
|
|
14
|
-
payout_id: String,
|
|
15
|
-
?request_options: Dodopayments::request_opts
|
|
16
|
-
) -> void
|
|
17
|
-
|
|
18
|
-
def to_hash: -> {
|
|
19
|
-
payout_id: String,
|
|
20
|
-
request_options: Dodopayments::RequestOptions
|
|
21
|
-
}
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
module Dodopayments
|
|
2
|
-
module Models
|
|
3
|
-
type product_collection_create_params =
|
|
4
|
-
{
|
|
5
|
-
groups: ::Array[Dodopayments::ProductCollectionCreateParams::Group],
|
|
6
|
-
name: String,
|
|
7
|
-
brand_id: String?,
|
|
8
|
-
description: String?
|
|
9
|
-
}
|
|
10
|
-
& Dodopayments::Internal::Type::request_parameters
|
|
11
|
-
|
|
12
|
-
class ProductCollectionCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
13
|
-
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
14
|
-
include Dodopayments::Internal::Type::RequestParameters
|
|
15
|
-
|
|
16
|
-
attr_accessor groups: ::Array[Dodopayments::ProductCollectionCreateParams::Group]
|
|
17
|
-
|
|
18
|
-
attr_accessor name: String
|
|
19
|
-
|
|
20
|
-
attr_accessor brand_id: String?
|
|
21
|
-
|
|
22
|
-
attr_accessor description: String?
|
|
23
|
-
|
|
24
|
-
def initialize: (
|
|
25
|
-
groups: ::Array[Dodopayments::ProductCollectionCreateParams::Group],
|
|
26
|
-
name: String,
|
|
27
|
-
?brand_id: String?,
|
|
28
|
-
?description: String?,
|
|
29
|
-
?request_options: Dodopayments::request_opts
|
|
30
|
-
) -> void
|
|
31
|
-
|
|
32
|
-
def to_hash: -> {
|
|
33
|
-
groups: ::Array[Dodopayments::ProductCollectionCreateParams::Group],
|
|
34
|
-
name: String,
|
|
35
|
-
brand_id: String?,
|
|
36
|
-
description: String?,
|
|
37
|
-
request_options: Dodopayments::RequestOptions
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type group =
|
|
41
|
-
{
|
|
42
|
-
products: ::Array[Dodopayments::ProductCollectionCreateParams::Group::Product],
|
|
43
|
-
group_name: String?,
|
|
44
|
-
status: bool?
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
class Group < Dodopayments::Internal::Type::BaseModel
|
|
48
|
-
attr_accessor products: ::Array[Dodopayments::ProductCollectionCreateParams::Group::Product]
|
|
49
|
-
|
|
50
|
-
attr_accessor group_name: String?
|
|
51
|
-
|
|
52
|
-
attr_accessor status: bool?
|
|
53
|
-
|
|
54
|
-
def initialize: (
|
|
55
|
-
products: ::Array[Dodopayments::ProductCollectionCreateParams::Group::Product],
|
|
56
|
-
?group_name: String?,
|
|
57
|
-
?status: bool?
|
|
58
|
-
) -> void
|
|
59
|
-
|
|
60
|
-
def to_hash: -> {
|
|
61
|
-
products: ::Array[Dodopayments::ProductCollectionCreateParams::Group::Product],
|
|
62
|
-
group_name: String?,
|
|
63
|
-
status: bool?
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type product = { product_id: String, status: bool? }
|
|
67
|
-
|
|
68
|
-
class Product < Dodopayments::Internal::Type::BaseModel
|
|
69
|
-
attr_accessor product_id: String
|
|
70
|
-
|
|
71
|
-
attr_accessor status: bool?
|
|
72
|
-
|
|
73
|
-
def initialize: (product_id: String, ?status: bool?) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { product_id: String, status: bool? }
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|