dodopayments 2.13.0 → 2.15.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 +4 -3
- data/README.md +1 -1
- data/lib/dodopayments/models/abandoned_checkout_detected_webhook_event.rb +14 -1
- data/lib/dodopayments/models/abandoned_checkout_recovered_webhook_event.rb +14 -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/checkout_session_preview_response.rb +15 -1
- data/lib/dodopayments/models/credit_balance_low_webhook_event.rb +16 -1
- data/lib/dodopayments/models/credit_entitlements/credit_ledger_entry.rb +24 -1
- data/lib/dodopayments/models/dispute_list_response.rb +27 -1
- data/lib/dodopayments/models/dunning_recovered_webhook_event.rb +14 -1
- data/lib/dodopayments/models/dunning_started_webhook_event.rb +14 -1
- data/lib/dodopayments/models/entitlements/entitlement_grant.rb +17 -1
- data/lib/dodopayments/models/get_dispute.rb +35 -1
- data/lib/dodopayments/models/integration_config.rb +28 -1
- data/lib/dodopayments/models/integration_config_response.rb +28 -1
- data/lib/dodopayments/models/license_key.rb +10 -1
- data/lib/dodopayments/models/license_key_list_params.rb +1 -0
- data/lib/dodopayments/models/payment.rb +34 -6
- data/lib/dodopayments/models/payment_create_response.rb +3 -2
- data/lib/dodopayments/models/payment_list_response.rb +43 -1
- data/lib/dodopayments/models/payouts/breakup/detail_list_response.rb +7 -6
- data/lib/dodopayments/models/payouts/breakup_retrieve_response.rb +3 -3
- data/lib/dodopayments/models/product.rb +24 -1
- data/lib/dodopayments/models/product_create_params.rb +28 -5
- data/lib/dodopayments/models/product_update_params.rb +24 -1
- data/lib/dodopayments/models/refund.rb +9 -1
- data/lib/dodopayments/models/subscription.rb +12 -4
- data/lib/dodopayments/models/subscription_list_response.rb +3 -3
- data/lib/dodopayments/models/subscription_preview_change_plan_response.rb +16 -1
- data/lib/dodopayments/models/subscription_retrieve_usage_history_response.rb +7 -2
- data/lib/dodopayments/models/subscription_update_payment_method_params.rb +21 -1
- data/lib/dodopayments/models/webhook_payload.rb +47 -3
- data/lib/dodopayments/resources/products.rb +8 -4
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/abandoned_checkout_detected_webhook_event.rbi +8 -0
- data/rbi/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbi +8 -0
- 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/checkout_session_preview_response.rbi +14 -0
- data/rbi/dodopayments/models/credit_balance_low_webhook_event.rbi +8 -0
- data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +8 -0
- data/rbi/dodopayments/models/dispute_list_response.rbi +60 -0
- data/rbi/dodopayments/models/dunning_recovered_webhook_event.rbi +8 -0
- data/rbi/dodopayments/models/dunning_started_webhook_event.rbi +8 -0
- data/rbi/dodopayments/models/entitlements/entitlement_grant.rbi +18 -0
- data/rbi/dodopayments/models/get_dispute.rbi +52 -0
- data/rbi/dodopayments/models/integration_config.rbi +65 -3
- data/rbi/dodopayments/models/integration_config_response.rbi +64 -3
- data/rbi/dodopayments/models/license_key.rbi +9 -0
- data/rbi/dodopayments/models/license_key_list_params.rbi +5 -0
- data/rbi/dodopayments/models/payment.rbi +49 -6
- data/rbi/dodopayments/models/payment_create_response.rbi +4 -2
- data/rbi/dodopayments/models/payment_list_response.rbi +76 -0
- data/rbi/dodopayments/models/payouts/breakup/detail_list_response.rbi +10 -8
- data/rbi/dodopayments/models/payouts/breakup_retrieve_response.rbi +4 -4
- data/rbi/dodopayments/models/product.rbi +36 -0
- data/rbi/dodopayments/models/product_create_params.rbi +58 -4
- data/rbi/dodopayments/models/product_update_params.rbi +54 -0
- data/rbi/dodopayments/models/refund.rbi +8 -0
- data/rbi/dodopayments/models/subscription.rbi +12 -4
- data/rbi/dodopayments/models/subscription_list_response.rbi +4 -4
- data/rbi/dodopayments/models/subscription_preview_change_plan_response.rbi +10 -0
- data/rbi/dodopayments/models/subscription_retrieve_usage_history_response.rbi +4 -2
- data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +40 -5
- data/rbi/dodopayments/models/webhook_payload.rbi +24 -0
- data/rbi/dodopayments/resources/products.rbi +14 -2
- data/sig/dodopayments/models/abandoned_checkout_detected_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbs +5 -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/checkout_session_preview_response.rbs +5 -0
- data/sig/dodopayments/models/credit_balance_low_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/credit_entitlements/credit_ledger_entry.rbs +5 -0
- data/sig/dodopayments/models/dispute_list_response.rbs +17 -0
- data/sig/dodopayments/models/dunning_recovered_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/dunning_started_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +10 -0
- data/sig/dodopayments/models/get_dispute.rbs +22 -0
- data/sig/dodopayments/models/integration_config.rbs +19 -3
- data/sig/dodopayments/models/integration_config_response.rbs +19 -3
- data/sig/dodopayments/models/license_key.rbs +7 -1
- data/sig/dodopayments/models/license_key_list_params.rbs +2 -1
- data/sig/dodopayments/models/payment.rbs +17 -0
- data/sig/dodopayments/models/payment_list_response.rbs +27 -0
- data/sig/dodopayments/models/product.rbs +16 -0
- data/sig/dodopayments/models/product_create_params.rbs +17 -1
- data/sig/dodopayments/models/product_update_params.rbs +16 -0
- data/sig/dodopayments/models/refund.rbs +5 -0
- data/sig/dodopayments/models/subscription.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +19 -4
- data/sig/dodopayments/models/webhook_payload.rbs +15 -0
- data/sig/dodopayments/resources/products.rbs +2 -0
- metadata +2 -2
|
@@ -10,7 +10,10 @@ module Dodopayments
|
|
|
10
10
|
has_license_key: bool,
|
|
11
11
|
metadata: ::Hash[Symbol, String],
|
|
12
12
|
payment_id: String,
|
|
13
|
+
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
13
14
|
total_amount: Integer,
|
|
15
|
+
card_last_four: String?,
|
|
16
|
+
card_network: String?,
|
|
14
17
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
15
18
|
invoice_id: String?,
|
|
16
19
|
invoice_url: String?,
|
|
@@ -38,8 +41,14 @@ module Dodopayments
|
|
|
38
41
|
|
|
39
42
|
attr_accessor payment_id: String
|
|
40
43
|
|
|
44
|
+
attr_accessor payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider
|
|
45
|
+
|
|
41
46
|
attr_accessor total_amount: Integer
|
|
42
47
|
|
|
48
|
+
attr_accessor card_last_four: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor card_network: String?
|
|
51
|
+
|
|
43
52
|
attr_accessor dispute_status: Dodopayments::Models::dispute_status?
|
|
44
53
|
|
|
45
54
|
attr_accessor invoice_id: String?
|
|
@@ -65,7 +74,10 @@ module Dodopayments
|
|
|
65
74
|
has_license_key: bool,
|
|
66
75
|
metadata: ::Hash[Symbol, String],
|
|
67
76
|
payment_id: String,
|
|
77
|
+
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
68
78
|
total_amount: Integer,
|
|
79
|
+
?card_last_four: String?,
|
|
80
|
+
?card_network: String?,
|
|
69
81
|
?dispute_status: Dodopayments::Models::dispute_status?,
|
|
70
82
|
?invoice_id: String?,
|
|
71
83
|
?invoice_url: String?,
|
|
@@ -85,7 +97,10 @@ module Dodopayments
|
|
|
85
97
|
has_license_key: bool,
|
|
86
98
|
metadata: ::Hash[Symbol, String],
|
|
87
99
|
payment_id: String,
|
|
100
|
+
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
88
101
|
total_amount: Integer,
|
|
102
|
+
card_last_four: String?,
|
|
103
|
+
card_network: String?,
|
|
89
104
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
90
105
|
invoice_id: String?,
|
|
91
106
|
invoice_url: String?,
|
|
@@ -95,6 +110,18 @@ module Dodopayments
|
|
|
95
110
|
status: Dodopayments::Models::intent_status?,
|
|
96
111
|
subscription_id: String?
|
|
97
112
|
}
|
|
113
|
+
|
|
114
|
+
type payment_provider = :stripe | :adyen | :dodo
|
|
115
|
+
|
|
116
|
+
module PaymentProvider
|
|
117
|
+
extend Dodopayments::Internal::Type::Enum
|
|
118
|
+
|
|
119
|
+
STRIPE: :stripe
|
|
120
|
+
ADYEN: :adyen
|
|
121
|
+
DODO: :dodo
|
|
122
|
+
|
|
123
|
+
def self?.values: -> ::Array[Dodopayments::Models::PaymentListResponse::payment_provider]
|
|
124
|
+
end
|
|
98
125
|
end
|
|
99
126
|
end
|
|
100
127
|
end
|
|
@@ -22,6 +22,7 @@ module Dodopayments
|
|
|
22
22
|
license_key_activations_limit: Integer?,
|
|
23
23
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
24
24
|
name: String?,
|
|
25
|
+
pricing_mode: Dodopayments::Models::Product::pricing_mode?,
|
|
25
26
|
product_collection_id: String?
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -66,6 +67,8 @@ module Dodopayments
|
|
|
66
67
|
|
|
67
68
|
attr_accessor name: String?
|
|
68
69
|
|
|
70
|
+
attr_accessor pricing_mode: Dodopayments::Models::Product::pricing_mode?
|
|
71
|
+
|
|
69
72
|
attr_accessor product_collection_id: String?
|
|
70
73
|
|
|
71
74
|
def initialize: (
|
|
@@ -89,6 +92,7 @@ module Dodopayments
|
|
|
89
92
|
?license_key_activations_limit: Integer?,
|
|
90
93
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
91
94
|
?name: String?,
|
|
95
|
+
?pricing_mode: Dodopayments::Models::Product::pricing_mode?,
|
|
92
96
|
?product_collection_id: String?
|
|
93
97
|
) -> void
|
|
94
98
|
|
|
@@ -113,8 +117,20 @@ module Dodopayments
|
|
|
113
117
|
license_key_activations_limit: Integer?,
|
|
114
118
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
115
119
|
name: String?,
|
|
120
|
+
pricing_mode: Dodopayments::Models::Product::pricing_mode?,
|
|
116
121
|
product_collection_id: String?
|
|
117
122
|
}
|
|
123
|
+
|
|
124
|
+
type pricing_mode = :by_currency | :by_country
|
|
125
|
+
|
|
126
|
+
module PricingMode
|
|
127
|
+
extend Dodopayments::Internal::Type::Enum
|
|
128
|
+
|
|
129
|
+
BY_CURRENCY: :by_currency
|
|
130
|
+
BY_COUNTRY: :by_country
|
|
131
|
+
|
|
132
|
+
def self?.values: -> ::Array[Dodopayments::Models::Product::pricing_mode]
|
|
133
|
+
end
|
|
118
134
|
end
|
|
119
135
|
end
|
|
120
136
|
end
|
|
@@ -15,7 +15,8 @@ module Dodopayments
|
|
|
15
15
|
license_key_activations_limit: Integer?,
|
|
16
16
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
17
17
|
license_key_enabled: bool?,
|
|
18
|
-
metadata: ::Hash[Symbol, String]
|
|
18
|
+
metadata: ::Hash[Symbol, String],
|
|
19
|
+
pricing_mode: Dodopayments::Models::ProductCreateParams::pricing_mode?
|
|
19
20
|
}
|
|
20
21
|
& Dodopayments::Internal::Type::request_parameters
|
|
21
22
|
|
|
@@ -53,6 +54,8 @@ module Dodopayments
|
|
|
53
54
|
|
|
54
55
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
55
56
|
|
|
57
|
+
attr_accessor pricing_mode: Dodopayments::Models::ProductCreateParams::pricing_mode?
|
|
58
|
+
|
|
56
59
|
def initialize: (
|
|
57
60
|
name: String,
|
|
58
61
|
price: Dodopayments::Models::price,
|
|
@@ -68,6 +71,7 @@ module Dodopayments
|
|
|
68
71
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
69
72
|
?license_key_enabled: bool?,
|
|
70
73
|
?metadata: ::Hash[Symbol, String],
|
|
74
|
+
?pricing_mode: Dodopayments::Models::ProductCreateParams::pricing_mode?,
|
|
71
75
|
?request_options: Dodopayments::request_opts
|
|
72
76
|
) -> void
|
|
73
77
|
|
|
@@ -86,6 +90,7 @@ module Dodopayments
|
|
|
86
90
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
87
91
|
license_key_enabled: bool?,
|
|
88
92
|
metadata: ::Hash[Symbol, String],
|
|
93
|
+
pricing_mode: Dodopayments::Models::ProductCreateParams::pricing_mode?,
|
|
89
94
|
request_options: Dodopayments::RequestOptions
|
|
90
95
|
}
|
|
91
96
|
|
|
@@ -101,6 +106,17 @@ module Dodopayments
|
|
|
101
106
|
|
|
102
107
|
def to_hash: -> { external_url: String?, instructions: String? }
|
|
103
108
|
end
|
|
109
|
+
|
|
110
|
+
type pricing_mode = :by_currency | :by_country
|
|
111
|
+
|
|
112
|
+
module PricingMode
|
|
113
|
+
extend Dodopayments::Internal::Type::Enum
|
|
114
|
+
|
|
115
|
+
BY_CURRENCY: :by_currency
|
|
116
|
+
BY_COUNTRY: :by_country
|
|
117
|
+
|
|
118
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductCreateParams::pricing_mode]
|
|
119
|
+
end
|
|
104
120
|
end
|
|
105
121
|
end
|
|
106
122
|
end
|
|
@@ -17,6 +17,7 @@ module Dodopayments
|
|
|
17
17
|
metadata: ::Hash[Symbol, String]?,
|
|
18
18
|
name: String?,
|
|
19
19
|
price: Dodopayments::Models::price?,
|
|
20
|
+
pricing_mode: Dodopayments::Models::ProductUpdateParams::pricing_mode?,
|
|
20
21
|
tax_category: Dodopayments::Models::tax_category?
|
|
21
22
|
}
|
|
22
23
|
& Dodopayments::Internal::Type::request_parameters
|
|
@@ -55,6 +56,8 @@ module Dodopayments
|
|
|
55
56
|
|
|
56
57
|
attr_accessor price: Dodopayments::Models::price?
|
|
57
58
|
|
|
59
|
+
attr_accessor pricing_mode: Dodopayments::Models::ProductUpdateParams::pricing_mode?
|
|
60
|
+
|
|
58
61
|
attr_accessor tax_category: Dodopayments::Models::tax_category?
|
|
59
62
|
|
|
60
63
|
def initialize: (
|
|
@@ -73,6 +76,7 @@ module Dodopayments
|
|
|
73
76
|
?metadata: ::Hash[Symbol, String]?,
|
|
74
77
|
?name: String?,
|
|
75
78
|
?price: Dodopayments::Models::price?,
|
|
79
|
+
?pricing_mode: Dodopayments::Models::ProductUpdateParams::pricing_mode?,
|
|
76
80
|
?tax_category: Dodopayments::Models::tax_category?,
|
|
77
81
|
?request_options: Dodopayments::request_opts
|
|
78
82
|
) -> void
|
|
@@ -93,6 +97,7 @@ module Dodopayments
|
|
|
93
97
|
metadata: ::Hash[Symbol, String]?,
|
|
94
98
|
name: String?,
|
|
95
99
|
price: Dodopayments::Models::price?,
|
|
100
|
+
pricing_mode: Dodopayments::Models::ProductUpdateParams::pricing_mode?,
|
|
96
101
|
tax_category: Dodopayments::Models::tax_category?,
|
|
97
102
|
request_options: Dodopayments::RequestOptions
|
|
98
103
|
}
|
|
@@ -123,6 +128,17 @@ module Dodopayments
|
|
|
123
128
|
instructions: String?
|
|
124
129
|
}
|
|
125
130
|
end
|
|
131
|
+
|
|
132
|
+
type pricing_mode = :by_currency | :by_country
|
|
133
|
+
|
|
134
|
+
module PricingMode
|
|
135
|
+
extend Dodopayments::Internal::Type::Enum
|
|
136
|
+
|
|
137
|
+
BY_CURRENCY: :by_currency
|
|
138
|
+
BY_COUNTRY: :by_country
|
|
139
|
+
|
|
140
|
+
def self?.values: -> ::Array[Dodopayments::Models::ProductUpdateParams::pricing_mode]
|
|
141
|
+
end
|
|
126
142
|
end
|
|
127
143
|
end
|
|
128
144
|
end
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type refund =
|
|
4
4
|
{
|
|
5
|
+
brand_id: String,
|
|
5
6
|
business_id: String,
|
|
6
7
|
created_at: Time,
|
|
7
8
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
@@ -16,6 +17,8 @@ module Dodopayments
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
class Refund < Dodopayments::Internal::Type::BaseModel
|
|
20
|
+
attr_accessor brand_id: String
|
|
21
|
+
|
|
19
22
|
attr_accessor business_id: String
|
|
20
23
|
|
|
21
24
|
attr_accessor created_at: Time
|
|
@@ -39,6 +42,7 @@ module Dodopayments
|
|
|
39
42
|
attr_accessor reason: String?
|
|
40
43
|
|
|
41
44
|
def initialize: (
|
|
45
|
+
brand_id: String,
|
|
42
46
|
business_id: String,
|
|
43
47
|
created_at: Time,
|
|
44
48
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
@@ -53,6 +57,7 @@ module Dodopayments
|
|
|
53
57
|
) -> void
|
|
54
58
|
|
|
55
59
|
def to_hash: -> {
|
|
60
|
+
brand_id: String,
|
|
56
61
|
business_id: String,
|
|
57
62
|
created_at: Time,
|
|
58
63
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
addons: ::Array[Dodopayments::AddonCartResponseItem],
|
|
6
6
|
billing: Dodopayments::BillingAddress,
|
|
7
|
+
brand_id: String,
|
|
7
8
|
cancel_at_next_billing_date: bool,
|
|
8
9
|
created_at: Time,
|
|
9
10
|
credit_entitlement_cart: ::Array[Dodopayments::CreditEntitlementCartResponse],
|
|
@@ -45,6 +46,8 @@ module Dodopayments
|
|
|
45
46
|
|
|
46
47
|
attr_accessor billing: Dodopayments::BillingAddress
|
|
47
48
|
|
|
49
|
+
attr_accessor brand_id: String
|
|
50
|
+
|
|
48
51
|
attr_accessor cancel_at_next_billing_date: bool
|
|
49
52
|
|
|
50
53
|
attr_accessor created_at: Time
|
|
@@ -116,6 +119,7 @@ module Dodopayments
|
|
|
116
119
|
def initialize: (
|
|
117
120
|
addons: ::Array[Dodopayments::AddonCartResponseItem],
|
|
118
121
|
billing: Dodopayments::BillingAddress,
|
|
122
|
+
brand_id: String,
|
|
119
123
|
cancel_at_next_billing_date: bool,
|
|
120
124
|
created_at: Time,
|
|
121
125
|
credit_entitlement_cart: ::Array[Dodopayments::CreditEntitlementCartResponse],
|
|
@@ -155,6 +159,7 @@ module Dodopayments
|
|
|
155
159
|
def to_hash: -> {
|
|
156
160
|
addons: ::Array[Dodopayments::AddonCartResponseItem],
|
|
157
161
|
billing: Dodopayments::BillingAddress,
|
|
162
|
+
brand_id: String,
|
|
158
163
|
cancel_at_next_billing_date: bool,
|
|
159
164
|
created_at: Time,
|
|
160
165
|
credit_entitlement_cart: ::Array[Dodopayments::CreditEntitlementCartResponse],
|
|
@@ -34,16 +34,31 @@ module Dodopayments
|
|
|
34
34
|
module PaymentMethod
|
|
35
35
|
extend Dodopayments::Internal::Type::Union
|
|
36
36
|
|
|
37
|
-
type new_ =
|
|
37
|
+
type new_ =
|
|
38
|
+
{
|
|
39
|
+
type: :new,
|
|
40
|
+
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
41
|
+
return_url: String?
|
|
42
|
+
}
|
|
38
43
|
|
|
39
44
|
class New < Dodopayments::Internal::Type::BaseModel
|
|
40
45
|
attr_accessor type: :new
|
|
41
46
|
|
|
42
|
-
attr_accessor
|
|
47
|
+
attr_accessor allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
attr_accessor return_url: String?
|
|
45
50
|
|
|
46
|
-
def
|
|
51
|
+
def initialize: (
|
|
52
|
+
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
53
|
+
?return_url: String?,
|
|
54
|
+
?type: :new
|
|
55
|
+
) -> void
|
|
56
|
+
|
|
57
|
+
def to_hash: -> {
|
|
58
|
+
type: :new,
|
|
59
|
+
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
60
|
+
return_url: String?
|
|
61
|
+
}
|
|
47
62
|
end
|
|
48
63
|
|
|
49
64
|
type existing = { payment_method_id: String, type: :existing }
|
|
@@ -121,6 +121,7 @@ module Dodopayments
|
|
|
121
121
|
type credit_balance_low =
|
|
122
122
|
{
|
|
123
123
|
available_balance: String,
|
|
124
|
+
brand_id: String,
|
|
124
125
|
credit_entitlement_id: String,
|
|
125
126
|
credit_entitlement_name: String,
|
|
126
127
|
customer_id: String,
|
|
@@ -134,6 +135,8 @@ module Dodopayments
|
|
|
134
135
|
class CreditBalanceLow < Dodopayments::Internal::Type::BaseModel
|
|
135
136
|
attr_accessor available_balance: String
|
|
136
137
|
|
|
138
|
+
attr_accessor brand_id: String
|
|
139
|
+
|
|
137
140
|
attr_accessor credit_entitlement_id: String
|
|
138
141
|
|
|
139
142
|
attr_accessor credit_entitlement_name: String
|
|
@@ -152,6 +155,7 @@ module Dodopayments
|
|
|
152
155
|
|
|
153
156
|
def initialize: (
|
|
154
157
|
available_balance: String,
|
|
158
|
+
brand_id: String,
|
|
155
159
|
credit_entitlement_id: String,
|
|
156
160
|
credit_entitlement_name: String,
|
|
157
161
|
customer_id: String,
|
|
@@ -164,6 +168,7 @@ module Dodopayments
|
|
|
164
168
|
|
|
165
169
|
def to_hash: -> {
|
|
166
170
|
available_balance: String,
|
|
171
|
+
brand_id: String,
|
|
167
172
|
credit_entitlement_id: String,
|
|
168
173
|
credit_entitlement_name: String,
|
|
169
174
|
customer_id: String,
|
|
@@ -179,6 +184,7 @@ module Dodopayments
|
|
|
179
184
|
{
|
|
180
185
|
abandoned_at: Time,
|
|
181
186
|
abandonment_reason: Dodopayments::Models::WebhookPayload::Data::AbandonedCheckout::abandonment_reason,
|
|
187
|
+
brand_id: String,
|
|
182
188
|
customer_id: String,
|
|
183
189
|
payload_type: :AbandonedCheckout,
|
|
184
190
|
payment_id: String,
|
|
@@ -191,6 +197,8 @@ module Dodopayments
|
|
|
191
197
|
|
|
192
198
|
attr_accessor abandonment_reason: Dodopayments::Models::WebhookPayload::Data::AbandonedCheckout::abandonment_reason
|
|
193
199
|
|
|
200
|
+
attr_accessor brand_id: String
|
|
201
|
+
|
|
194
202
|
attr_accessor customer_id: String
|
|
195
203
|
|
|
196
204
|
attr_accessor payload_type: :AbandonedCheckout
|
|
@@ -204,6 +212,7 @@ module Dodopayments
|
|
|
204
212
|
def initialize: (
|
|
205
213
|
abandoned_at: Time,
|
|
206
214
|
abandonment_reason: Dodopayments::Models::WebhookPayload::Data::AbandonedCheckout::abandonment_reason,
|
|
215
|
+
brand_id: String,
|
|
207
216
|
customer_id: String,
|
|
208
217
|
payment_id: String,
|
|
209
218
|
status: Dodopayments::Models::WebhookPayload::Data::AbandonedCheckout::status,
|
|
@@ -214,6 +223,7 @@ module Dodopayments
|
|
|
214
223
|
def to_hash: -> {
|
|
215
224
|
abandoned_at: Time,
|
|
216
225
|
abandonment_reason: Dodopayments::Models::WebhookPayload::Data::AbandonedCheckout::abandonment_reason,
|
|
226
|
+
brand_id: String,
|
|
217
227
|
customer_id: String,
|
|
218
228
|
payload_type: :AbandonedCheckout,
|
|
219
229
|
payment_id: String,
|
|
@@ -250,6 +260,7 @@ module Dodopayments
|
|
|
250
260
|
|
|
251
261
|
type dunning_attempt =
|
|
252
262
|
{
|
|
263
|
+
brand_id: String,
|
|
253
264
|
created_at: Time,
|
|
254
265
|
customer_id: String,
|
|
255
266
|
payload_type: :DunningAttempt,
|
|
@@ -260,6 +271,8 @@ module Dodopayments
|
|
|
260
271
|
}
|
|
261
272
|
|
|
262
273
|
class DunningAttempt < Dodopayments::Internal::Type::BaseModel
|
|
274
|
+
attr_accessor brand_id: String
|
|
275
|
+
|
|
263
276
|
attr_accessor created_at: Time
|
|
264
277
|
|
|
265
278
|
attr_accessor customer_id: String
|
|
@@ -275,6 +288,7 @@ module Dodopayments
|
|
|
275
288
|
attr_accessor payment_id: String?
|
|
276
289
|
|
|
277
290
|
def initialize: (
|
|
291
|
+
brand_id: String,
|
|
278
292
|
created_at: Time,
|
|
279
293
|
customer_id: String,
|
|
280
294
|
status: Dodopayments::Models::WebhookPayload::Data::DunningAttempt::status,
|
|
@@ -285,6 +299,7 @@ module Dodopayments
|
|
|
285
299
|
) -> void
|
|
286
300
|
|
|
287
301
|
def to_hash: -> {
|
|
302
|
+
brand_id: String,
|
|
288
303
|
created_at: Time,
|
|
289
304
|
customer_id: String,
|
|
290
305
|
payload_type: :DunningAttempt,
|
|
@@ -20,6 +20,7 @@ module Dodopayments
|
|
|
20
20
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
21
21
|
?license_key_enabled: bool?,
|
|
22
22
|
?metadata: ::Hash[Symbol, String],
|
|
23
|
+
?pricing_mode: Dodopayments::Models::ProductCreateParams::pricing_mode?,
|
|
23
24
|
?request_options: Dodopayments::request_opts
|
|
24
25
|
) -> Dodopayments::Product
|
|
25
26
|
|
|
@@ -44,6 +45,7 @@ module Dodopayments
|
|
|
44
45
|
?metadata: ::Hash[Symbol, String]?,
|
|
45
46
|
?name: String?,
|
|
46
47
|
?price: Dodopayments::Models::price?,
|
|
48
|
+
?pricing_mode: Dodopayments::Models::ProductUpdateParams::pricing_mode?,
|
|
47
49
|
?tax_category: Dodopayments::Models::tax_category?,
|
|
48
50
|
?request_options: Dodopayments::request_opts
|
|
49
51
|
) -> nil
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dodopayments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dodo Payments
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|