dodopayments 2.10.0 → 2.11.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 +10 -0
- data/README.md +9 -9
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +15 -1
- data/lib/dodopayments/models/checkout_session_request.rb +11 -1
- data/lib/dodopayments/models/checkout_session_response.rb +33 -1
- data/lib/dodopayments/models/discount_detail.rb +143 -0
- data/lib/dodopayments/models/filter_type.rb +71 -0
- data/lib/dodopayments/models/github_permission.rb +19 -0
- data/lib/dodopayments/models/integration_config.rb +3 -19
- data/lib/dodopayments/models/integration_config_response.rb +3 -19
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +22 -0
- data/lib/dodopayments/models/meter_filter.rb +3 -331
- data/lib/dodopayments/models/payment.rb +3 -141
- data/lib/dodopayments/models/payment_create_params.rb +11 -1
- data/lib/dodopayments/models/payment_method_types.rb +1 -0
- data/lib/dodopayments/models/product_collection.rb +74 -0
- data/lib/dodopayments/models/product_collection_create_params.rb +47 -0
- data/lib/dodopayments/models/product_collection_delete_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_list_params.rb +46 -0
- data/lib/dodopayments/models/product_collection_list_response.rb +65 -0
- data/lib/dodopayments/models/product_collection_retrieve_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_unarchive_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_unarchive_response.rb +33 -0
- data/lib/dodopayments/models/product_collection_update_images_params.rb +29 -0
- data/lib/dodopayments/models/product_collection_update_images_response.rb +25 -0
- data/lib/dodopayments/models/product_collection_update_params.rb +61 -0
- data/lib/dodopayments/models/product_collections/group_create_params.rb +22 -0
- data/lib/dodopayments/models/product_collections/group_delete_params.rb +28 -0
- data/lib/dodopayments/models/product_collections/group_product.rb +26 -0
- data/lib/dodopayments/models/product_collections/group_update_params.rb +59 -0
- data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +41 -0
- data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +15 -0
- data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +36 -0
- data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +47 -0
- data/lib/dodopayments/models/product_collections/groups/product_collection_product.rb +132 -0
- data/lib/dodopayments/models/product_collections/product_collection_group_details.rb +42 -0
- data/lib/dodopayments/models/product_collections/product_collection_group_response.rb +39 -0
- data/lib/dodopayments/models/subscription.rb +13 -142
- data/lib/dodopayments/models/subscription_create_params.rb +11 -1
- data/lib/dodopayments/models/subscription_list_response.rb +10 -1
- data/lib/dodopayments/models/subscription_update_params.rb +12 -1
- data/lib/dodopayments/models/subscription_update_payment_method_params.rb +9 -9
- data/lib/dodopayments/models/webhook_event_type.rb +1 -5
- data/lib/dodopayments/models.rb +24 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +6 -2
- data/lib/dodopayments/resources/invoices/payments.rb +18 -0
- data/lib/dodopayments/resources/payments.rb +3 -1
- data/lib/dodopayments/resources/product_collections/groups/items.rb +111 -0
- data/lib/dodopayments/resources/product_collections/groups.rb +109 -0
- data/lib/dodopayments/resources/product_collections.rb +179 -0
- data/lib/dodopayments/resources/subscriptions.rb +9 -5
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +29 -0
- data/rbi/dodopayments/client.rbi +3 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +23 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +12 -0
- data/rbi/dodopayments/models/checkout_session_response.rbi +43 -5
- data/rbi/dodopayments/models/discount_detail.rbi +161 -0
- data/rbi/dodopayments/models/filter_type.rbi +112 -0
- data/rbi/dodopayments/models/github_permission.rbi +26 -0
- data/rbi/dodopayments/models/integration_config.rbi +3 -59
- data/rbi/dodopayments/models/integration_config_response.rbi +3 -59
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +40 -0
- data/rbi/dodopayments/models/meter_filter.rbi +3 -572
- data/rbi/dodopayments/models/payment.rbi +3 -163
- data/rbi/dodopayments/models/payment_create_params.rbi +12 -0
- data/rbi/dodopayments/models/payment_method_types.rbi +1 -0
- data/rbi/dodopayments/models/product_collection.rbi +108 -0
- data/rbi/dodopayments/models/product_collection_create_params.rbi +82 -0
- data/rbi/dodopayments/models/product_collection_delete_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_list_params.rbi +82 -0
- data/rbi/dodopayments/models/product_collection_list_response.rbi +88 -0
- data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +56 -0
- data/rbi/dodopayments/models/product_collection_update_images_params.rbi +52 -0
- data/rbi/dodopayments/models/product_collection_update_images_response.rbi +40 -0
- data/rbi/dodopayments/models/product_collection_update_params.rbi +84 -0
- data/rbi/dodopayments/models/product_collections/group_create_params.rbi +40 -0
- data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +48 -0
- data/rbi/dodopayments/models/product_collections/group_product.rbi +46 -0
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +80 -0
- data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +68 -0
- data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +17 -0
- data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +55 -0
- data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +68 -0
- data/rbi/dodopayments/models/product_collections/groups/product_collection_product.rbi +148 -0
- data/rbi/dodopayments/models/product_collections/product_collection_group_details.rbi +67 -0
- data/rbi/dodopayments/models/product_collections/product_collection_group_response.rbi +68 -0
- data/rbi/dodopayments/models/subscription.rbi +13 -164
- data/rbi/dodopayments/models/subscription_create_params.rbi +12 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +10 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +14 -0
- data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +16 -16
- data/rbi/dodopayments/models/webhook_event_type.rbi +4 -18
- data/rbi/dodopayments/models.rbi +31 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +10 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +9 -0
- data/rbi/dodopayments/resources/payments.rbi +5 -0
- data/rbi/dodopayments/resources/product_collections/groups/items.rbi +83 -0
- data/rbi/dodopayments/resources/product_collections/groups.rbi +88 -0
- data/rbi/dodopayments/resources/product_collections.rbi +149 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +15 -4
- data/sig/dodopayments/client.rbs +2 -0
- data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +5 -0
- data/sig/dodopayments/models/checkout_session_response.rbs +27 -3
- data/sig/dodopayments/models/discount_detail.rbs +95 -0
- data/sig/dodopayments/models/filter_type.rbs +52 -0
- data/sig/dodopayments/models/github_permission.rbs +17 -0
- data/sig/dodopayments/models/integration_config.rbs +4 -18
- data/sig/dodopayments/models/integration_config_response.rbs +4 -18
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +25 -0
- data/sig/dodopayments/models/meter_filter.rbs +4 -252
- data/sig/dodopayments/models/payment.rbs +4 -96
- data/sig/dodopayments/models/payment_create_params.rbs +5 -0
- data/sig/dodopayments/models/payment_method_types.rbs +2 -0
- data/sig/dodopayments/models/product_collection.rbs +55 -0
- data/sig/dodopayments/models/product_collection_create_params.rbs +41 -0
- data/sig/dodopayments/models/product_collection_delete_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_list_params.rbs +49 -0
- data/sig/dodopayments/models/product_collection_list_response.rbs +50 -0
- data/sig/dodopayments/models/product_collection_retrieve_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_unarchive_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_unarchive_response.rbs +30 -0
- data/sig/dodopayments/models/product_collection_update_images_params.rbs +28 -0
- data/sig/dodopayments/models/product_collection_update_images_response.rbs +16 -0
- data/sig/dodopayments/models/product_collection_update_params.rbs +51 -0
- data/sig/dodopayments/models/product_collections/group_create_params.rbs +27 -0
- data/sig/dodopayments/models/product_collections/group_delete_params.rbs +30 -0
- data/sig/dodopayments/models/product_collections/group_product.rbs +17 -0
- data/sig/dodopayments/models/product_collections/group_update_params.rbs +48 -0
- data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +40 -0
- data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +12 -0
- data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +36 -0
- data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +40 -0
- data/sig/dodopayments/models/product_collections/groups/product_collection_product.rbs +99 -0
- data/sig/dodopayments/models/product_collections/product_collection_group_details.rbs +34 -0
- data/sig/dodopayments/models/product_collections/product_collection_group_response.rbs +39 -0
- data/sig/dodopayments/models/subscription.rbs +9 -96
- data/sig/dodopayments/models/subscription_create_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +9 -9
- data/sig/dodopayments/models/webhook_event_type.rbs +2 -10
- data/sig/dodopayments/models.rbs +24 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +5 -0
- data/sig/dodopayments/resources/payments.rbs +1 -0
- data/sig/dodopayments/resources/product_collections/groups/items.rbs +33 -0
- data/sig/dodopayments/resources/product_collections/groups.rbs +34 -0
- data/sig/dodopayments/resources/product_collections.rbs +56 -0
- data/sig/dodopayments/resources/subscriptions.rbs +3 -1
- metadata +89 -2
|
@@ -0,0 +1,48 @@
|
|
|
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
|
|
@@ -0,0 +1,40 @@
|
|
|
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::GroupProduct]
|
|
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::GroupProduct]
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
group_id: String,
|
|
26
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
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::GroupProduct],
|
|
34
|
+
request_options: Dodopayments::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
module Groups
|
|
5
|
+
type item_create_response =
|
|
6
|
+
::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct]
|
|
7
|
+
|
|
8
|
+
ItemCreateResponse: Dodopayments::Internal::Type::Converter
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
module Groups
|
|
5
|
+
type product_collection_product =
|
|
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 ProductCollectionProduct < 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
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
class ProductCollectionGroupDetails = ProductCollections::ProductCollectionGroupDetails
|
|
4
|
+
|
|
5
|
+
module ProductCollections
|
|
6
|
+
type product_collection_group_details =
|
|
7
|
+
{
|
|
8
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
9
|
+
group_name: String?,
|
|
10
|
+
status: bool?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class ProductCollectionGroupDetails < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor products: ::Array[Dodopayments::ProductCollections::GroupProduct]
|
|
15
|
+
|
|
16
|
+
attr_accessor group_name: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor status: bool?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
22
|
+
?group_name: String?,
|
|
23
|
+
?status: bool?
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
28
|
+
group_name: String?,
|
|
29
|
+
status: bool?
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
class ProductCollectionGroupResponse = ProductCollections::ProductCollectionGroupResponse
|
|
4
|
+
|
|
5
|
+
module ProductCollections
|
|
6
|
+
type product_collection_group_response =
|
|
7
|
+
{
|
|
8
|
+
group_id: String,
|
|
9
|
+
products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
|
|
10
|
+
status: bool,
|
|
11
|
+
group_name: String?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ProductCollectionGroupResponse < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor group_id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct]
|
|
18
|
+
|
|
19
|
+
attr_accessor status: bool
|
|
20
|
+
|
|
21
|
+
attr_accessor group_name: String?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
group_id: String,
|
|
25
|
+
products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
|
|
26
|
+
status: bool,
|
|
27
|
+
?group_name: String?
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
group_id: String,
|
|
32
|
+
products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
|
|
33
|
+
status: bool,
|
|
34
|
+
group_name: String?
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -30,9 +30,10 @@ module Dodopayments
|
|
|
30
30
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
31
31
|
cancelled_at: Time?,
|
|
32
32
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
33
|
+
customer_business_name: String?,
|
|
33
34
|
discount_cycles_remaining: Integer?,
|
|
34
35
|
discount_id: String?,
|
|
35
|
-
discounts: ::Array[Dodopayments::
|
|
36
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
36
37
|
expires_at: Time?,
|
|
37
38
|
payment_method_id: String?,
|
|
38
39
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -96,11 +97,13 @@ module Dodopayments
|
|
|
96
97
|
|
|
97
98
|
attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
|
|
98
99
|
|
|
100
|
+
attr_accessor customer_business_name: String?
|
|
101
|
+
|
|
99
102
|
attr_accessor discount_cycles_remaining: Integer?
|
|
100
103
|
|
|
101
104
|
attr_accessor discount_id: String?
|
|
102
105
|
|
|
103
|
-
attr_accessor discounts: ::Array[Dodopayments::
|
|
106
|
+
attr_accessor discounts: ::Array[Dodopayments::DiscountDetail]?
|
|
104
107
|
|
|
105
108
|
attr_accessor expires_at: Time?
|
|
106
109
|
|
|
@@ -139,9 +142,10 @@ module Dodopayments
|
|
|
139
142
|
?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
140
143
|
?cancelled_at: Time?,
|
|
141
144
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
145
|
+
?customer_business_name: String?,
|
|
142
146
|
?discount_cycles_remaining: Integer?,
|
|
143
147
|
?discount_id: String?,
|
|
144
|
-
?discounts: ::Array[Dodopayments::
|
|
148
|
+
?discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
145
149
|
?expires_at: Time?,
|
|
146
150
|
?payment_method_id: String?,
|
|
147
151
|
?scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -177,106 +181,15 @@ module Dodopayments
|
|
|
177
181
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
178
182
|
cancelled_at: Time?,
|
|
179
183
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
184
|
+
customer_business_name: String?,
|
|
180
185
|
discount_cycles_remaining: Integer?,
|
|
181
186
|
discount_id: String?,
|
|
182
|
-
discounts: ::Array[Dodopayments::
|
|
187
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
183
188
|
expires_at: Time?,
|
|
184
189
|
payment_method_id: String?,
|
|
185
190
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
186
191
|
tax_id: String?
|
|
187
192
|
}
|
|
188
|
-
|
|
189
|
-
type discount =
|
|
190
|
-
{
|
|
191
|
-
amount: Integer,
|
|
192
|
-
business_id: String,
|
|
193
|
-
code: String,
|
|
194
|
-
created_at: Time,
|
|
195
|
-
discount_id: String,
|
|
196
|
-
metadata: ::Hash[Symbol, String],
|
|
197
|
-
position: Integer,
|
|
198
|
-
preserve_on_plan_change: bool,
|
|
199
|
-
restricted_to: ::Array[String],
|
|
200
|
-
times_used: Integer,
|
|
201
|
-
type: Dodopayments::Models::discount_type,
|
|
202
|
-
cycles_remaining: Integer?,
|
|
203
|
-
expires_at: Time?,
|
|
204
|
-
name: String?,
|
|
205
|
-
subscription_cycles: Integer?,
|
|
206
|
-
usage_limit: Integer?
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
class Discount < Dodopayments::Internal::Type::BaseModel
|
|
210
|
-
attr_accessor amount: Integer
|
|
211
|
-
|
|
212
|
-
attr_accessor business_id: String
|
|
213
|
-
|
|
214
|
-
attr_accessor code: String
|
|
215
|
-
|
|
216
|
-
attr_accessor created_at: Time
|
|
217
|
-
|
|
218
|
-
attr_accessor discount_id: String
|
|
219
|
-
|
|
220
|
-
attr_accessor metadata: ::Hash[Symbol, String]
|
|
221
|
-
|
|
222
|
-
attr_accessor position: Integer
|
|
223
|
-
|
|
224
|
-
attr_accessor preserve_on_plan_change: bool
|
|
225
|
-
|
|
226
|
-
attr_accessor restricted_to: ::Array[String]
|
|
227
|
-
|
|
228
|
-
attr_accessor times_used: Integer
|
|
229
|
-
|
|
230
|
-
attr_accessor type: Dodopayments::Models::discount_type
|
|
231
|
-
|
|
232
|
-
attr_accessor cycles_remaining: Integer?
|
|
233
|
-
|
|
234
|
-
attr_accessor expires_at: Time?
|
|
235
|
-
|
|
236
|
-
attr_accessor name: String?
|
|
237
|
-
|
|
238
|
-
attr_accessor subscription_cycles: Integer?
|
|
239
|
-
|
|
240
|
-
attr_accessor usage_limit: Integer?
|
|
241
|
-
|
|
242
|
-
def initialize: (
|
|
243
|
-
amount: Integer,
|
|
244
|
-
business_id: String,
|
|
245
|
-
code: String,
|
|
246
|
-
created_at: Time,
|
|
247
|
-
discount_id: String,
|
|
248
|
-
metadata: ::Hash[Symbol, String],
|
|
249
|
-
position: Integer,
|
|
250
|
-
preserve_on_plan_change: bool,
|
|
251
|
-
restricted_to: ::Array[String],
|
|
252
|
-
times_used: Integer,
|
|
253
|
-
type: Dodopayments::Models::discount_type,
|
|
254
|
-
?cycles_remaining: Integer?,
|
|
255
|
-
?expires_at: Time?,
|
|
256
|
-
?name: String?,
|
|
257
|
-
?subscription_cycles: Integer?,
|
|
258
|
-
?usage_limit: Integer?
|
|
259
|
-
) -> void
|
|
260
|
-
|
|
261
|
-
def to_hash: -> {
|
|
262
|
-
amount: Integer,
|
|
263
|
-
business_id: String,
|
|
264
|
-
code: String,
|
|
265
|
-
created_at: Time,
|
|
266
|
-
discount_id: String,
|
|
267
|
-
metadata: ::Hash[Symbol, String],
|
|
268
|
-
position: Integer,
|
|
269
|
-
preserve_on_plan_change: bool,
|
|
270
|
-
restricted_to: ::Array[String],
|
|
271
|
-
times_used: Integer,
|
|
272
|
-
type: Dodopayments::Models::discount_type,
|
|
273
|
-
cycles_remaining: Integer?,
|
|
274
|
-
expires_at: Time?,
|
|
275
|
-
name: String?,
|
|
276
|
-
subscription_cycles: Integer?,
|
|
277
|
-
usage_limit: Integer?
|
|
278
|
-
}
|
|
279
|
-
end
|
|
280
193
|
end
|
|
281
194
|
end
|
|
282
195
|
end
|
|
@@ -9,6 +9,7 @@ module Dodopayments
|
|
|
9
9
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
10
10
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
11
11
|
billing_currency: Dodopayments::Models::currency?,
|
|
12
|
+
customer_business_name: String?,
|
|
12
13
|
discount_code: String?,
|
|
13
14
|
discount_codes: ::Array[String]?,
|
|
14
15
|
:force_3ds => bool?,
|
|
@@ -46,6 +47,8 @@ module Dodopayments
|
|
|
46
47
|
|
|
47
48
|
attr_accessor billing_currency: Dodopayments::Models::currency?
|
|
48
49
|
|
|
50
|
+
attr_accessor customer_business_name: String?
|
|
51
|
+
|
|
49
52
|
attr_accessor discount_code: String?
|
|
50
53
|
|
|
51
54
|
attr_accessor discount_codes: ::Array[String]?
|
|
@@ -94,6 +97,7 @@ module Dodopayments
|
|
|
94
97
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
95
98
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
96
99
|
?billing_currency: Dodopayments::Models::currency?,
|
|
100
|
+
?customer_business_name: String?,
|
|
97
101
|
?discount_code: String?,
|
|
98
102
|
?discount_codes: ::Array[String]?,
|
|
99
103
|
?force_3ds: bool?,
|
|
@@ -121,6 +125,7 @@ module Dodopayments
|
|
|
121
125
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
122
126
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
123
127
|
billing_currency: Dodopayments::Models::currency?,
|
|
128
|
+
customer_business_name: String?,
|
|
124
129
|
discount_code: String?,
|
|
125
130
|
discount_codes: ::Array[String]?,
|
|
126
131
|
:force_3ds => bool?,
|
|
@@ -24,6 +24,7 @@ module Dodopayments
|
|
|
24
24
|
tax_inclusive: bool,
|
|
25
25
|
trial_period_days: Integer,
|
|
26
26
|
cancelled_at: Time?,
|
|
27
|
+
customer_business_name: String?,
|
|
27
28
|
discount_cycles_remaining: Integer?,
|
|
28
29
|
discount_id: String?,
|
|
29
30
|
payment_method_id: String?,
|
|
@@ -77,6 +78,8 @@ module Dodopayments
|
|
|
77
78
|
|
|
78
79
|
attr_accessor cancelled_at: Time?
|
|
79
80
|
|
|
81
|
+
attr_accessor customer_business_name: String?
|
|
82
|
+
|
|
80
83
|
attr_accessor discount_cycles_remaining: Integer?
|
|
81
84
|
|
|
82
85
|
attr_accessor discount_id: String?
|
|
@@ -112,6 +115,7 @@ module Dodopayments
|
|
|
112
115
|
tax_inclusive: bool,
|
|
113
116
|
trial_period_days: Integer,
|
|
114
117
|
?cancelled_at: Time?,
|
|
118
|
+
?customer_business_name: String?,
|
|
115
119
|
?discount_cycles_remaining: Integer?,
|
|
116
120
|
?discount_id: String?,
|
|
117
121
|
?payment_method_id: String?,
|
|
@@ -143,6 +147,7 @@ module Dodopayments
|
|
|
143
147
|
tax_inclusive: bool,
|
|
144
148
|
trial_period_days: Integer,
|
|
145
149
|
cancelled_at: Time?,
|
|
150
|
+
customer_business_name: String?,
|
|
146
151
|
discount_cycles_remaining: Integer?,
|
|
147
152
|
discount_id: String?,
|
|
148
153
|
payment_method_id: String?,
|
|
@@ -9,6 +9,7 @@ module Dodopayments
|
|
|
9
9
|
cancellation_comment: String?,
|
|
10
10
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
11
11
|
credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
12
|
+
customer_business_name: String?,
|
|
12
13
|
customer_name: String?,
|
|
13
14
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
14
15
|
metadata: ::Hash[Symbol, String]?,
|
|
@@ -36,6 +37,8 @@ module Dodopayments
|
|
|
36
37
|
|
|
37
38
|
attr_accessor credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?
|
|
38
39
|
|
|
40
|
+
attr_accessor customer_business_name: String?
|
|
41
|
+
|
|
39
42
|
attr_accessor customer_name: String?
|
|
40
43
|
|
|
41
44
|
attr_accessor disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?
|
|
@@ -56,6 +59,7 @@ module Dodopayments
|
|
|
56
59
|
?cancellation_comment: String?,
|
|
57
60
|
?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
58
61
|
?credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
62
|
+
?customer_business_name: String?,
|
|
59
63
|
?customer_name: String?,
|
|
60
64
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
61
65
|
?metadata: ::Hash[Symbol, String]?,
|
|
@@ -73,6 +77,7 @@ module Dodopayments
|
|
|
73
77
|
cancellation_comment: String?,
|
|
74
78
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
75
79
|
credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
80
|
+
customer_business_name: String?,
|
|
76
81
|
customer_name: String?,
|
|
77
82
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
78
83
|
metadata: ::Hash[Symbol, String]?,
|
|
@@ -3,7 +3,7 @@ module Dodopayments
|
|
|
3
3
|
type subscription_update_payment_method_params =
|
|
4
4
|
{
|
|
5
5
|
subscription_id: String,
|
|
6
|
-
|
|
6
|
+
payment_method: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::payment_method
|
|
7
7
|
}
|
|
8
8
|
& Dodopayments::Internal::Type::request_parameters
|
|
9
9
|
|
|
@@ -13,25 +13,25 @@ module Dodopayments
|
|
|
13
13
|
|
|
14
14
|
attr_accessor subscription_id: String
|
|
15
15
|
|
|
16
|
-
attr_accessor
|
|
16
|
+
attr_accessor payment_method: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::payment_method
|
|
17
17
|
|
|
18
18
|
def initialize: (
|
|
19
19
|
subscription_id: String,
|
|
20
|
-
|
|
20
|
+
payment_method: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::payment_method,
|
|
21
21
|
?request_options: Dodopayments::request_opts
|
|
22
22
|
) -> void
|
|
23
23
|
|
|
24
24
|
def to_hash: -> {
|
|
25
25
|
subscription_id: String,
|
|
26
|
-
|
|
26
|
+
payment_method: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::payment_method,
|
|
27
27
|
request_options: Dodopayments::RequestOptions
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
type
|
|
31
|
-
Dodopayments::SubscriptionUpdatePaymentMethodParams::
|
|
32
|
-
| Dodopayments::SubscriptionUpdatePaymentMethodParams::
|
|
30
|
+
type payment_method =
|
|
31
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::PaymentMethod::New
|
|
32
|
+
| Dodopayments::SubscriptionUpdatePaymentMethodParams::PaymentMethod::Existing
|
|
33
33
|
|
|
34
|
-
module
|
|
34
|
+
module PaymentMethod
|
|
35
35
|
extend Dodopayments::Internal::Type::Union
|
|
36
36
|
|
|
37
37
|
type new_ = { type: :new, return_url: String? }
|
|
@@ -58,7 +58,7 @@ module Dodopayments
|
|
|
58
58
|
def to_hash: -> { payment_method_id: String, type: :existing }
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
def self?.variants: -> ::Array[Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::
|
|
61
|
+
def self?.variants: -> ::Array[Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::payment_method]
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
end
|