dodopayments 2.11.1 → 2.12.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 +13 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/balance_ledger_entry.rb +1 -0
- data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +1 -0
- data/lib/dodopayments/models/discount.rb +4 -8
- data/lib/dodopayments/models/discount_create_params.rb +5 -9
- data/lib/dodopayments/models/discount_detail.rb +2 -2
- data/lib/dodopayments/models/discount_list_params.rb +2 -2
- data/lib/dodopayments/models/discount_update_params.rb +5 -8
- data/lib/dodopayments/models/payment.rb +11 -1
- data/lib/dodopayments/models/product_collection.rb +131 -1
- data/lib/dodopayments/models/product_collection_create_params.rb +123 -1
- data/lib/dodopayments/models/product_collection_update_params.rb +123 -1
- data/lib/dodopayments/resources/discounts.rb +5 -5
- data/lib/dodopayments/resources/product_collections.rb +28 -2
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/balance_ledger_entry.rbi +5 -0
- data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +5 -0
- data/rbi/dodopayments/models/discount.rbi +4 -12
- data/rbi/dodopayments/models/discount_create_params.rbi +6 -14
- data/rbi/dodopayments/models/discount_detail.rbi +2 -2
- data/rbi/dodopayments/models/discount_list_params.rbi +2 -2
- data/rbi/dodopayments/models/discount_update_params.rbi +6 -12
- data/rbi/dodopayments/models/payment.rbi +12 -0
- data/rbi/dodopayments/models/product_collection.rbi +307 -3
- data/rbi/dodopayments/models/product_collection_create_params.rbi +310 -0
- data/rbi/dodopayments/models/product_collection_update_params.rbi +310 -0
- data/rbi/dodopayments/resources/discounts.rbi +7 -14
- data/rbi/dodopayments/resources/product_collections.rbi +70 -0
- data/sig/dodopayments/models/balance_ledger_entry.rbs +2 -0
- data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +2 -0
- data/sig/dodopayments/models/payment.rbs +5 -0
- data/sig/dodopayments/models/product_collection.rbs +95 -3
- data/sig/dodopayments/models/product_collection_create_params.rbs +93 -1
- data/sig/dodopayments/models/product_collection_update_params.rbs +93 -1
- data/sig/dodopayments/resources/product_collections.rbs +10 -0
- metadata +1 -1
|
@@ -9,7 +9,12 @@ module Dodopayments
|
|
|
9
9
|
name: String,
|
|
10
10
|
updated_at: Time,
|
|
11
11
|
description: String?,
|
|
12
|
-
|
|
12
|
+
effective_at_on_downgrade: Dodopayments::Models::ProductCollection::effective_at_on_downgrade?,
|
|
13
|
+
effective_at_on_upgrade: Dodopayments::Models::ProductCollection::effective_at_on_upgrade?,
|
|
14
|
+
image: String?,
|
|
15
|
+
on_payment_failure: Dodopayments::Models::ProductCollection::on_payment_failure?,
|
|
16
|
+
proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_downgrade?,
|
|
17
|
+
proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_upgrade?
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
class ProductCollection < Dodopayments::Internal::Type::BaseModel
|
|
@@ -27,8 +32,18 @@ module Dodopayments
|
|
|
27
32
|
|
|
28
33
|
attr_accessor description: String?
|
|
29
34
|
|
|
35
|
+
attr_accessor effective_at_on_downgrade: Dodopayments::Models::ProductCollection::effective_at_on_downgrade?
|
|
36
|
+
|
|
37
|
+
attr_accessor effective_at_on_upgrade: Dodopayments::Models::ProductCollection::effective_at_on_upgrade?
|
|
38
|
+
|
|
30
39
|
attr_accessor image: String?
|
|
31
40
|
|
|
41
|
+
attr_accessor on_payment_failure: Dodopayments::Models::ProductCollection::on_payment_failure?
|
|
42
|
+
|
|
43
|
+
attr_accessor proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_downgrade?
|
|
44
|
+
|
|
45
|
+
attr_accessor proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_upgrade?
|
|
46
|
+
|
|
32
47
|
def initialize: (
|
|
33
48
|
id: String,
|
|
34
49
|
brand_id: String,
|
|
@@ -37,7 +52,12 @@ module Dodopayments
|
|
|
37
52
|
name: String,
|
|
38
53
|
updated_at: Time,
|
|
39
54
|
?description: String?,
|
|
40
|
-
?
|
|
55
|
+
?effective_at_on_downgrade: Dodopayments::Models::ProductCollection::effective_at_on_downgrade?,
|
|
56
|
+
?effective_at_on_upgrade: Dodopayments::Models::ProductCollection::effective_at_on_upgrade?,
|
|
57
|
+
?image: String?,
|
|
58
|
+
?on_payment_failure: Dodopayments::Models::ProductCollection::on_payment_failure?,
|
|
59
|
+
?proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_downgrade?,
|
|
60
|
+
?proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_upgrade?
|
|
41
61
|
) -> void
|
|
42
62
|
|
|
43
63
|
def to_hash: -> {
|
|
@@ -48,8 +68,80 @@ module Dodopayments
|
|
|
48
68
|
name: String,
|
|
49
69
|
updated_at: Time,
|
|
50
70
|
description: String?,
|
|
51
|
-
|
|
71
|
+
effective_at_on_downgrade: Dodopayments::Models::ProductCollection::effective_at_on_downgrade?,
|
|
72
|
+
effective_at_on_upgrade: Dodopayments::Models::ProductCollection::effective_at_on_upgrade?,
|
|
73
|
+
image: String?,
|
|
74
|
+
on_payment_failure: Dodopayments::Models::ProductCollection::on_payment_failure?,
|
|
75
|
+
proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_downgrade?,
|
|
76
|
+
proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollection::proration_billing_mode_on_upgrade?
|
|
52
77
|
}
|
|
78
|
+
|
|
79
|
+
type effective_at_on_downgrade = :immediately | :next_billing_date
|
|
80
|
+
|
|
81
|
+
module EffectiveAtOnDowngrade
|
|
82
|
+
extend Dodopayments::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
IMMEDIATELY: :immediately
|
|
85
|
+
NEXT_BILLING_DATE: :next_billing_date
|
|
86
|
+
|
|
87
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollection::effective_at_on_downgrade]
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
type effective_at_on_upgrade = :immediately | :next_billing_date
|
|
91
|
+
|
|
92
|
+
module EffectiveAtOnUpgrade
|
|
93
|
+
extend Dodopayments::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
IMMEDIATELY: :immediately
|
|
96
|
+
NEXT_BILLING_DATE: :next_billing_date
|
|
97
|
+
|
|
98
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollection::effective_at_on_upgrade]
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
type on_payment_failure = :prevent_change | :apply_change
|
|
102
|
+
|
|
103
|
+
module OnPaymentFailure
|
|
104
|
+
extend Dodopayments::Internal::Type::Enum
|
|
105
|
+
|
|
106
|
+
PREVENT_CHANGE: :prevent_change
|
|
107
|
+
APPLY_CHANGE: :apply_change
|
|
108
|
+
|
|
109
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollection::on_payment_failure]
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
type proration_billing_mode_on_downgrade =
|
|
113
|
+
:prorated_immediately
|
|
114
|
+
| :full_immediately
|
|
115
|
+
| :difference_immediately
|
|
116
|
+
| :do_not_bill
|
|
117
|
+
|
|
118
|
+
module ProrationBillingModeOnDowngrade
|
|
119
|
+
extend Dodopayments::Internal::Type::Enum
|
|
120
|
+
|
|
121
|
+
PRORATED_IMMEDIATELY: :prorated_immediately
|
|
122
|
+
FULL_IMMEDIATELY: :full_immediately
|
|
123
|
+
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
124
|
+
DO_NOT_BILL: :do_not_bill
|
|
125
|
+
|
|
126
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollection::proration_billing_mode_on_downgrade]
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
type proration_billing_mode_on_upgrade =
|
|
130
|
+
:prorated_immediately
|
|
131
|
+
| :full_immediately
|
|
132
|
+
| :difference_immediately
|
|
133
|
+
| :do_not_bill
|
|
134
|
+
|
|
135
|
+
module ProrationBillingModeOnUpgrade
|
|
136
|
+
extend Dodopayments::Internal::Type::Enum
|
|
137
|
+
|
|
138
|
+
PRORATED_IMMEDIATELY: :prorated_immediately
|
|
139
|
+
FULL_IMMEDIATELY: :full_immediately
|
|
140
|
+
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
141
|
+
DO_NOT_BILL: :do_not_bill
|
|
142
|
+
|
|
143
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollection::proration_billing_mode_on_upgrade]
|
|
144
|
+
end
|
|
53
145
|
end
|
|
54
146
|
end
|
|
55
147
|
end
|
|
@@ -5,7 +5,12 @@ module Dodopayments
|
|
|
5
5
|
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupDetails],
|
|
6
6
|
name: String,
|
|
7
7
|
brand_id: String?,
|
|
8
|
-
description: String
|
|
8
|
+
description: String?,
|
|
9
|
+
effective_at_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_downgrade?,
|
|
10
|
+
effective_at_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_upgrade?,
|
|
11
|
+
on_payment_failure: Dodopayments::Models::ProductCollectionCreateParams::on_payment_failure?,
|
|
12
|
+
proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_downgrade?,
|
|
13
|
+
proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_upgrade?
|
|
9
14
|
}
|
|
10
15
|
& Dodopayments::Internal::Type::request_parameters
|
|
11
16
|
|
|
@@ -21,11 +26,26 @@ module Dodopayments
|
|
|
21
26
|
|
|
22
27
|
attr_accessor description: String?
|
|
23
28
|
|
|
29
|
+
attr_accessor effective_at_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_downgrade?
|
|
30
|
+
|
|
31
|
+
attr_accessor effective_at_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_upgrade?
|
|
32
|
+
|
|
33
|
+
attr_accessor on_payment_failure: Dodopayments::Models::ProductCollectionCreateParams::on_payment_failure?
|
|
34
|
+
|
|
35
|
+
attr_accessor proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_downgrade?
|
|
36
|
+
|
|
37
|
+
attr_accessor proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_upgrade?
|
|
38
|
+
|
|
24
39
|
def initialize: (
|
|
25
40
|
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupDetails],
|
|
26
41
|
name: String,
|
|
27
42
|
?brand_id: String?,
|
|
28
43
|
?description: String?,
|
|
44
|
+
?effective_at_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_downgrade?,
|
|
45
|
+
?effective_at_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_upgrade?,
|
|
46
|
+
?on_payment_failure: Dodopayments::Models::ProductCollectionCreateParams::on_payment_failure?,
|
|
47
|
+
?proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_downgrade?,
|
|
48
|
+
?proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_upgrade?,
|
|
29
49
|
?request_options: Dodopayments::request_opts
|
|
30
50
|
) -> void
|
|
31
51
|
|
|
@@ -34,8 +54,80 @@ module Dodopayments
|
|
|
34
54
|
name: String,
|
|
35
55
|
brand_id: String?,
|
|
36
56
|
description: String?,
|
|
57
|
+
effective_at_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_downgrade?,
|
|
58
|
+
effective_at_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_upgrade?,
|
|
59
|
+
on_payment_failure: Dodopayments::Models::ProductCollectionCreateParams::on_payment_failure?,
|
|
60
|
+
proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_downgrade?,
|
|
61
|
+
proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_upgrade?,
|
|
37
62
|
request_options: Dodopayments::RequestOptions
|
|
38
63
|
}
|
|
64
|
+
|
|
65
|
+
type effective_at_on_downgrade = :immediately | :next_billing_date
|
|
66
|
+
|
|
67
|
+
module EffectiveAtOnDowngrade
|
|
68
|
+
extend Dodopayments::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
IMMEDIATELY: :immediately
|
|
71
|
+
NEXT_BILLING_DATE: :next_billing_date
|
|
72
|
+
|
|
73
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_downgrade]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
type effective_at_on_upgrade = :immediately | :next_billing_date
|
|
77
|
+
|
|
78
|
+
module EffectiveAtOnUpgrade
|
|
79
|
+
extend Dodopayments::Internal::Type::Enum
|
|
80
|
+
|
|
81
|
+
IMMEDIATELY: :immediately
|
|
82
|
+
NEXT_BILLING_DATE: :next_billing_date
|
|
83
|
+
|
|
84
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_upgrade]
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
type on_payment_failure = :prevent_change | :apply_change
|
|
88
|
+
|
|
89
|
+
module OnPaymentFailure
|
|
90
|
+
extend Dodopayments::Internal::Type::Enum
|
|
91
|
+
|
|
92
|
+
PREVENT_CHANGE: :prevent_change
|
|
93
|
+
APPLY_CHANGE: :apply_change
|
|
94
|
+
|
|
95
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionCreateParams::on_payment_failure]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
type proration_billing_mode_on_downgrade =
|
|
99
|
+
:prorated_immediately
|
|
100
|
+
| :full_immediately
|
|
101
|
+
| :difference_immediately
|
|
102
|
+
| :do_not_bill
|
|
103
|
+
|
|
104
|
+
module ProrationBillingModeOnDowngrade
|
|
105
|
+
extend Dodopayments::Internal::Type::Enum
|
|
106
|
+
|
|
107
|
+
PRORATED_IMMEDIATELY: :prorated_immediately
|
|
108
|
+
FULL_IMMEDIATELY: :full_immediately
|
|
109
|
+
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
110
|
+
DO_NOT_BILL: :do_not_bill
|
|
111
|
+
|
|
112
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_downgrade]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
type proration_billing_mode_on_upgrade =
|
|
116
|
+
:prorated_immediately
|
|
117
|
+
| :full_immediately
|
|
118
|
+
| :difference_immediately
|
|
119
|
+
| :do_not_bill
|
|
120
|
+
|
|
121
|
+
module ProrationBillingModeOnUpgrade
|
|
122
|
+
extend Dodopayments::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
PRORATED_IMMEDIATELY: :prorated_immediately
|
|
125
|
+
FULL_IMMEDIATELY: :full_immediately
|
|
126
|
+
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
127
|
+
DO_NOT_BILL: :do_not_bill
|
|
128
|
+
|
|
129
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_upgrade]
|
|
130
|
+
end
|
|
39
131
|
end
|
|
40
132
|
end
|
|
41
133
|
end
|
|
@@ -5,9 +5,14 @@ module Dodopayments
|
|
|
5
5
|
id: String,
|
|
6
6
|
brand_id: String?,
|
|
7
7
|
description: String?,
|
|
8
|
+
effective_at_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_downgrade?,
|
|
9
|
+
effective_at_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_upgrade?,
|
|
8
10
|
group_order: ::Array[String]?,
|
|
9
11
|
image_id: String?,
|
|
10
|
-
name: String
|
|
12
|
+
name: String?,
|
|
13
|
+
on_payment_failure: Dodopayments::Models::ProductCollectionUpdateParams::on_payment_failure?,
|
|
14
|
+
proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_downgrade?,
|
|
15
|
+
proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_upgrade?
|
|
11
16
|
}
|
|
12
17
|
& Dodopayments::Internal::Type::request_parameters
|
|
13
18
|
|
|
@@ -21,19 +26,34 @@ module Dodopayments
|
|
|
21
26
|
|
|
22
27
|
attr_accessor description: String?
|
|
23
28
|
|
|
29
|
+
attr_accessor effective_at_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_downgrade?
|
|
30
|
+
|
|
31
|
+
attr_accessor effective_at_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_upgrade?
|
|
32
|
+
|
|
24
33
|
attr_accessor group_order: ::Array[String]?
|
|
25
34
|
|
|
26
35
|
attr_accessor image_id: String?
|
|
27
36
|
|
|
28
37
|
attr_accessor name: String?
|
|
29
38
|
|
|
39
|
+
attr_accessor on_payment_failure: Dodopayments::Models::ProductCollectionUpdateParams::on_payment_failure?
|
|
40
|
+
|
|
41
|
+
attr_accessor proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_downgrade?
|
|
42
|
+
|
|
43
|
+
attr_accessor proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_upgrade?
|
|
44
|
+
|
|
30
45
|
def initialize: (
|
|
31
46
|
id: String,
|
|
32
47
|
?brand_id: String?,
|
|
33
48
|
?description: String?,
|
|
49
|
+
?effective_at_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_downgrade?,
|
|
50
|
+
?effective_at_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_upgrade?,
|
|
34
51
|
?group_order: ::Array[String]?,
|
|
35
52
|
?image_id: String?,
|
|
36
53
|
?name: String?,
|
|
54
|
+
?on_payment_failure: Dodopayments::Models::ProductCollectionUpdateParams::on_payment_failure?,
|
|
55
|
+
?proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_downgrade?,
|
|
56
|
+
?proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_upgrade?,
|
|
37
57
|
?request_options: Dodopayments::request_opts
|
|
38
58
|
) -> void
|
|
39
59
|
|
|
@@ -41,11 +61,83 @@ module Dodopayments
|
|
|
41
61
|
id: String,
|
|
42
62
|
brand_id: String?,
|
|
43
63
|
description: String?,
|
|
64
|
+
effective_at_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_downgrade?,
|
|
65
|
+
effective_at_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_upgrade?,
|
|
44
66
|
group_order: ::Array[String]?,
|
|
45
67
|
image_id: String?,
|
|
46
68
|
name: String?,
|
|
69
|
+
on_payment_failure: Dodopayments::Models::ProductCollectionUpdateParams::on_payment_failure?,
|
|
70
|
+
proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_downgrade?,
|
|
71
|
+
proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_upgrade?,
|
|
47
72
|
request_options: Dodopayments::RequestOptions
|
|
48
73
|
}
|
|
74
|
+
|
|
75
|
+
type effective_at_on_downgrade = :immediately | :next_billing_date
|
|
76
|
+
|
|
77
|
+
module EffectiveAtOnDowngrade
|
|
78
|
+
extend Dodopayments::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
IMMEDIATELY: :immediately
|
|
81
|
+
NEXT_BILLING_DATE: :next_billing_date
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_downgrade]
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
type effective_at_on_upgrade = :immediately | :next_billing_date
|
|
87
|
+
|
|
88
|
+
module EffectiveAtOnUpgrade
|
|
89
|
+
extend Dodopayments::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
IMMEDIATELY: :immediately
|
|
92
|
+
NEXT_BILLING_DATE: :next_billing_date
|
|
93
|
+
|
|
94
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_upgrade]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
type on_payment_failure = :prevent_change | :apply_change
|
|
98
|
+
|
|
99
|
+
module OnPaymentFailure
|
|
100
|
+
extend Dodopayments::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
PREVENT_CHANGE: :prevent_change
|
|
103
|
+
APPLY_CHANGE: :apply_change
|
|
104
|
+
|
|
105
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionUpdateParams::on_payment_failure]
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
type proration_billing_mode_on_downgrade =
|
|
109
|
+
:prorated_immediately
|
|
110
|
+
| :full_immediately
|
|
111
|
+
| :difference_immediately
|
|
112
|
+
| :do_not_bill
|
|
113
|
+
|
|
114
|
+
module ProrationBillingModeOnDowngrade
|
|
115
|
+
extend Dodopayments::Internal::Type::Enum
|
|
116
|
+
|
|
117
|
+
PRORATED_IMMEDIATELY: :prorated_immediately
|
|
118
|
+
FULL_IMMEDIATELY: :full_immediately
|
|
119
|
+
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
120
|
+
DO_NOT_BILL: :do_not_bill
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_downgrade]
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
type proration_billing_mode_on_upgrade =
|
|
126
|
+
:prorated_immediately
|
|
127
|
+
| :full_immediately
|
|
128
|
+
| :difference_immediately
|
|
129
|
+
| :do_not_bill
|
|
130
|
+
|
|
131
|
+
module ProrationBillingModeOnUpgrade
|
|
132
|
+
extend Dodopayments::Internal::Type::Enum
|
|
133
|
+
|
|
134
|
+
PRORATED_IMMEDIATELY: :prorated_immediately
|
|
135
|
+
FULL_IMMEDIATELY: :full_immediately
|
|
136
|
+
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
137
|
+
DO_NOT_BILL: :do_not_bill
|
|
138
|
+
|
|
139
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_upgrade]
|
|
140
|
+
end
|
|
49
141
|
end
|
|
50
142
|
end
|
|
51
143
|
end
|
|
@@ -8,6 +8,11 @@ module Dodopayments
|
|
|
8
8
|
name: String,
|
|
9
9
|
?brand_id: String?,
|
|
10
10
|
?description: String?,
|
|
11
|
+
?effective_at_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_downgrade?,
|
|
12
|
+
?effective_at_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::effective_at_on_upgrade?,
|
|
13
|
+
?on_payment_failure: Dodopayments::Models::ProductCollectionCreateParams::on_payment_failure?,
|
|
14
|
+
?proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_downgrade?,
|
|
15
|
+
?proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_upgrade?,
|
|
11
16
|
?request_options: Dodopayments::request_opts
|
|
12
17
|
) -> Dodopayments::ProductCollection
|
|
13
18
|
|
|
@@ -20,9 +25,14 @@ module Dodopayments
|
|
|
20
25
|
String id,
|
|
21
26
|
?brand_id: String?,
|
|
22
27
|
?description: String?,
|
|
28
|
+
?effective_at_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_downgrade?,
|
|
29
|
+
?effective_at_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::effective_at_on_upgrade?,
|
|
23
30
|
?group_order: ::Array[String]?,
|
|
24
31
|
?image_id: String?,
|
|
25
32
|
?name: String?,
|
|
33
|
+
?on_payment_failure: Dodopayments::Models::ProductCollectionUpdateParams::on_payment_failure?,
|
|
34
|
+
?proration_billing_mode_on_downgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_downgrade?,
|
|
35
|
+
?proration_billing_mode_on_upgrade: Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_upgrade?,
|
|
26
36
|
?request_options: Dodopayments::request_opts
|
|
27
37
|
) -> nil
|
|
28
38
|
|