dodopayments 2.14.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/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/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 +9 -1
- data/lib/dodopayments/models/entitlements/grant_list_params.rb +1 -26
- data/lib/dodopayments/models/get_dispute.rb +35 -1
- data/lib/dodopayments/models/integration_config.rb +7 -7
- data/lib/dodopayments/models/integration_config_response.rb +7 -11
- data/lib/dodopayments/models/license_key.rb +9 -1
- data/lib/dodopayments/models/payment.rb +7 -5
- data/lib/dodopayments/models/payment_create_response.rb +3 -2
- 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/theme_config.rb +1 -1
- data/lib/dodopayments/models/webhook_payload.rb +47 -3
- data/lib/dodopayments/resources/entitlements/grants.rb +1 -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/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/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 +8 -0
- data/rbi/dodopayments/models/entitlements/grant_list_params.rbi +0 -89
- data/rbi/dodopayments/models/get_dispute.rbi +52 -0
- data/rbi/dodopayments/models/integration_config.rbi +9 -9
- data/rbi/dodopayments/models/integration_config_response.rbi +9 -15
- data/rbi/dodopayments/models/license_key.rbi +8 -0
- data/rbi/dodopayments/models/payment.rbi +10 -6
- data/rbi/dodopayments/models/payment_create_response.rbi +4 -2
- 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/theme_config.rbi +1 -1
- data/rbi/dodopayments/models/webhook_payload.rbi +24 -0
- data/rbi/dodopayments/resources/entitlements/grants.rbi +0 -4
- 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/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/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 +5 -0
- data/sig/dodopayments/models/entitlements/grant_list_params.rbs +0 -34
- data/sig/dodopayments/models/get_dispute.rbs +22 -0
- data/sig/dodopayments/models/license_key.rbs +5 -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/theme_config.rbs +1 -1
- data/sig/dodopayments/models/webhook_payload.rbs +15 -0
- data/sig/dodopayments/resources/entitlements/grants.rbs +0 -1
- data/sig/dodopayments/resources/products.rbs +2 -0
- metadata +2 -2
|
@@ -36,6 +36,8 @@ module Dodopayments
|
|
|
36
36
|
T.nilable(Dodopayments::LicenseKeyDuration::OrHash),
|
|
37
37
|
license_key_enabled: T.nilable(T::Boolean),
|
|
38
38
|
metadata: T::Hash[Symbol, String],
|
|
39
|
+
pricing_mode:
|
|
40
|
+
T.nilable(Dodopayments::ProductCreateParams::PricingMode::OrSymbol),
|
|
39
41
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
40
42
|
).returns(Dodopayments::Product)
|
|
41
43
|
end
|
|
@@ -50,7 +52,7 @@ module Dodopayments
|
|
|
50
52
|
addons: nil,
|
|
51
53
|
# Brand id for the product, if not provided will default to primary brand
|
|
52
54
|
brand_id: nil,
|
|
53
|
-
# Optional credit entitlements to attach (max
|
|
55
|
+
# Optional credit entitlements to attach (max 5)
|
|
54
56
|
credit_entitlements: nil,
|
|
55
57
|
# Optional description of the product
|
|
56
58
|
description: nil,
|
|
@@ -58,7 +60,7 @@ module Dodopayments
|
|
|
58
60
|
#
|
|
59
61
|
# deprecated: use entitlements instead
|
|
60
62
|
digital_product_delivery: nil,
|
|
61
|
-
# Optional entitlements to attach to this product (max
|
|
63
|
+
# Optional entitlements to attach to this product (max 50)
|
|
62
64
|
entitlements: nil,
|
|
63
65
|
# Optional message displayed during license key activation
|
|
64
66
|
#
|
|
@@ -85,6 +87,10 @@ module Dodopayments
|
|
|
85
87
|
license_key_enabled: nil,
|
|
86
88
|
# Additional metadata for the product
|
|
87
89
|
metadata: nil,
|
|
90
|
+
# Pricing mode for localized pricing. When set, rules from
|
|
91
|
+
# /products/{id}/localized-prices apply at checkout. NULL means base-only
|
|
92
|
+
# (existing behavior).
|
|
93
|
+
pricing_mode: nil,
|
|
88
94
|
request_options: {}
|
|
89
95
|
)
|
|
90
96
|
end
|
|
@@ -132,6 +138,8 @@ module Dodopayments
|
|
|
132
138
|
Dodopayments::Price::UsageBasedPrice::OrHash
|
|
133
139
|
)
|
|
134
140
|
),
|
|
141
|
+
pricing_mode:
|
|
142
|
+
T.nilable(Dodopayments::ProductUpdateParams::PricingMode::OrSymbol),
|
|
135
143
|
tax_category: T.nilable(Dodopayments::TaxCategory::OrSymbol),
|
|
136
144
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
137
145
|
).void
|
|
@@ -189,6 +197,10 @@ module Dodopayments
|
|
|
189
197
|
name: nil,
|
|
190
198
|
# Price details of the product.
|
|
191
199
|
price: nil,
|
|
200
|
+
# Update the pricing mode. Omit to leave unchanged; set to null to clear (which
|
|
201
|
+
# archives all active localized rules for this product). Changing to a different
|
|
202
|
+
# non-null mode also archives any rules whose mode doesn't match the new mode.
|
|
203
|
+
pricing_mode: nil,
|
|
192
204
|
# Tax category of the product.
|
|
193
205
|
tax_category: nil,
|
|
194
206
|
request_options: {}
|
|
@@ -35,6 +35,7 @@ module Dodopayments
|
|
|
35
35
|
{
|
|
36
36
|
abandoned_at: Time,
|
|
37
37
|
abandonment_reason: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::abandonment_reason,
|
|
38
|
+
brand_id: String,
|
|
38
39
|
customer_id: String,
|
|
39
40
|
payment_id: String,
|
|
40
41
|
status: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::status,
|
|
@@ -46,6 +47,8 @@ module Dodopayments
|
|
|
46
47
|
|
|
47
48
|
attr_accessor abandonment_reason: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::abandonment_reason
|
|
48
49
|
|
|
50
|
+
attr_accessor brand_id: String
|
|
51
|
+
|
|
49
52
|
attr_accessor customer_id: String
|
|
50
53
|
|
|
51
54
|
attr_accessor payment_id: String
|
|
@@ -57,6 +60,7 @@ module Dodopayments
|
|
|
57
60
|
def initialize: (
|
|
58
61
|
abandoned_at: Time,
|
|
59
62
|
abandonment_reason: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::abandonment_reason,
|
|
63
|
+
brand_id: String,
|
|
60
64
|
customer_id: String,
|
|
61
65
|
payment_id: String,
|
|
62
66
|
status: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::status,
|
|
@@ -66,6 +70,7 @@ module Dodopayments
|
|
|
66
70
|
def to_hash: -> {
|
|
67
71
|
abandoned_at: Time,
|
|
68
72
|
abandonment_reason: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::abandonment_reason,
|
|
73
|
+
brand_id: String,
|
|
69
74
|
customer_id: String,
|
|
70
75
|
payment_id: String,
|
|
71
76
|
status: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::status,
|
|
@@ -35,6 +35,7 @@ module Dodopayments
|
|
|
35
35
|
{
|
|
36
36
|
abandoned_at: Time,
|
|
37
37
|
abandonment_reason: Dodopayments::Models::AbandonedCheckoutRecoveredWebhookEvent::Data::abandonment_reason,
|
|
38
|
+
brand_id: String,
|
|
38
39
|
customer_id: String,
|
|
39
40
|
payment_id: String,
|
|
40
41
|
status: Dodopayments::Models::AbandonedCheckoutRecoveredWebhookEvent::Data::status,
|
|
@@ -46,6 +47,8 @@ module Dodopayments
|
|
|
46
47
|
|
|
47
48
|
attr_accessor abandonment_reason: Dodopayments::Models::AbandonedCheckoutRecoveredWebhookEvent::Data::abandonment_reason
|
|
48
49
|
|
|
50
|
+
attr_accessor brand_id: String
|
|
51
|
+
|
|
49
52
|
attr_accessor customer_id: String
|
|
50
53
|
|
|
51
54
|
attr_accessor payment_id: String
|
|
@@ -57,6 +60,7 @@ module Dodopayments
|
|
|
57
60
|
def initialize: (
|
|
58
61
|
abandoned_at: Time,
|
|
59
62
|
abandonment_reason: Dodopayments::Models::AbandonedCheckoutRecoveredWebhookEvent::Data::abandonment_reason,
|
|
63
|
+
brand_id: String,
|
|
60
64
|
customer_id: String,
|
|
61
65
|
payment_id: String,
|
|
62
66
|
status: Dodopayments::Models::AbandonedCheckoutRecoveredWebhookEvent::Data::status,
|
|
@@ -66,6 +70,7 @@ module Dodopayments
|
|
|
66
70
|
def to_hash: -> {
|
|
67
71
|
abandoned_at: Time,
|
|
68
72
|
abandonment_reason: Dodopayments::Models::AbandonedCheckoutRecoveredWebhookEvent::Data::abandonment_reason,
|
|
73
|
+
brand_id: String,
|
|
69
74
|
customer_id: String,
|
|
70
75
|
payment_id: String,
|
|
71
76
|
status: Dodopayments::Models::AbandonedCheckoutRecoveredWebhookEvent::Data::status,
|
|
@@ -5,6 +5,7 @@ module Dodopayments
|
|
|
5
5
|
billing_country: Dodopayments::Models::country_code,
|
|
6
6
|
currency: Dodopayments::Models::currency,
|
|
7
7
|
current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup,
|
|
8
|
+
is_byop: bool,
|
|
8
9
|
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
9
10
|
total_price: Integer,
|
|
10
11
|
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
@@ -19,6 +20,8 @@ module Dodopayments
|
|
|
19
20
|
|
|
20
21
|
attr_accessor current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup
|
|
21
22
|
|
|
23
|
+
attr_accessor is_byop: bool
|
|
24
|
+
|
|
22
25
|
attr_accessor product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart]
|
|
23
26
|
|
|
24
27
|
attr_accessor total_price: Integer
|
|
@@ -33,6 +36,7 @@ module Dodopayments
|
|
|
33
36
|
billing_country: Dodopayments::Models::country_code,
|
|
34
37
|
currency: Dodopayments::Models::currency,
|
|
35
38
|
current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup,
|
|
39
|
+
is_byop: bool,
|
|
36
40
|
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
37
41
|
total_price: Integer,
|
|
38
42
|
?recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
@@ -44,6 +48,7 @@ module Dodopayments
|
|
|
44
48
|
billing_country: Dodopayments::Models::country_code,
|
|
45
49
|
currency: Dodopayments::Models::currency,
|
|
46
50
|
current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup,
|
|
51
|
+
is_byop: bool,
|
|
47
52
|
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
48
53
|
total_price: Integer,
|
|
49
54
|
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
@@ -34,6 +34,7 @@ module Dodopayments
|
|
|
34
34
|
type data =
|
|
35
35
|
{
|
|
36
36
|
available_balance: String,
|
|
37
|
+
brand_id: String,
|
|
37
38
|
credit_entitlement_id: String,
|
|
38
39
|
credit_entitlement_name: String,
|
|
39
40
|
customer_id: String,
|
|
@@ -46,6 +47,8 @@ module Dodopayments
|
|
|
46
47
|
class Data < Dodopayments::Internal::Type::BaseModel
|
|
47
48
|
attr_accessor available_balance: String
|
|
48
49
|
|
|
50
|
+
attr_accessor brand_id: String
|
|
51
|
+
|
|
49
52
|
attr_accessor credit_entitlement_id: String
|
|
50
53
|
|
|
51
54
|
attr_accessor credit_entitlement_name: String
|
|
@@ -62,6 +65,7 @@ module Dodopayments
|
|
|
62
65
|
|
|
63
66
|
def initialize: (
|
|
64
67
|
available_balance: String,
|
|
68
|
+
brand_id: String,
|
|
65
69
|
credit_entitlement_id: String,
|
|
66
70
|
credit_entitlement_name: String,
|
|
67
71
|
customer_id: String,
|
|
@@ -73,6 +77,7 @@ module Dodopayments
|
|
|
73
77
|
|
|
74
78
|
def to_hash: -> {
|
|
75
79
|
available_balance: String,
|
|
80
|
+
brand_id: String,
|
|
76
81
|
credit_entitlement_id: String,
|
|
77
82
|
credit_entitlement_name: String,
|
|
78
83
|
customer_id: String,
|
|
@@ -7,6 +7,7 @@ module Dodopayments
|
|
|
7
7
|
amount: String,
|
|
8
8
|
balance_after: String,
|
|
9
9
|
balance_before: String,
|
|
10
|
+
brand_id: String,
|
|
10
11
|
business_id: String,
|
|
11
12
|
created_at: Time,
|
|
12
13
|
credit_entitlement_id: String,
|
|
@@ -30,6 +31,8 @@ module Dodopayments
|
|
|
30
31
|
|
|
31
32
|
attr_accessor balance_before: String
|
|
32
33
|
|
|
34
|
+
attr_accessor brand_id: String
|
|
35
|
+
|
|
33
36
|
attr_accessor business_id: String
|
|
34
37
|
|
|
35
38
|
attr_accessor created_at: Time
|
|
@@ -59,6 +62,7 @@ module Dodopayments
|
|
|
59
62
|
amount: String,
|
|
60
63
|
balance_after: String,
|
|
61
64
|
balance_before: String,
|
|
65
|
+
brand_id: String,
|
|
62
66
|
business_id: String,
|
|
63
67
|
created_at: Time,
|
|
64
68
|
credit_entitlement_id: String,
|
|
@@ -78,6 +82,7 @@ module Dodopayments
|
|
|
78
82
|
amount: String,
|
|
79
83
|
balance_after: String,
|
|
80
84
|
balance_before: String,
|
|
85
|
+
brand_id: String,
|
|
81
86
|
business_id: String,
|
|
82
87
|
created_at: Time,
|
|
83
88
|
credit_entitlement_id: String,
|
|
@@ -33,6 +33,7 @@ module Dodopayments
|
|
|
33
33
|
|
|
34
34
|
type data =
|
|
35
35
|
{
|
|
36
|
+
brand_id: String,
|
|
36
37
|
created_at: Time,
|
|
37
38
|
customer_id: String,
|
|
38
39
|
status: Dodopayments::Models::DunningRecoveredWebhookEvent::Data::status,
|
|
@@ -42,6 +43,8 @@ module Dodopayments
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
class Data < Dodopayments::Internal::Type::BaseModel
|
|
46
|
+
attr_accessor brand_id: String
|
|
47
|
+
|
|
45
48
|
attr_accessor created_at: Time
|
|
46
49
|
|
|
47
50
|
attr_accessor customer_id: String
|
|
@@ -55,6 +58,7 @@ module Dodopayments
|
|
|
55
58
|
attr_accessor payment_id: String?
|
|
56
59
|
|
|
57
60
|
def initialize: (
|
|
61
|
+
brand_id: String,
|
|
58
62
|
created_at: Time,
|
|
59
63
|
customer_id: String,
|
|
60
64
|
status: Dodopayments::Models::DunningRecoveredWebhookEvent::Data::status,
|
|
@@ -64,6 +68,7 @@ module Dodopayments
|
|
|
64
68
|
) -> void
|
|
65
69
|
|
|
66
70
|
def to_hash: -> {
|
|
71
|
+
brand_id: String,
|
|
67
72
|
created_at: Time,
|
|
68
73
|
customer_id: String,
|
|
69
74
|
status: Dodopayments::Models::DunningRecoveredWebhookEvent::Data::status,
|
|
@@ -33,6 +33,7 @@ module Dodopayments
|
|
|
33
33
|
|
|
34
34
|
type data =
|
|
35
35
|
{
|
|
36
|
+
brand_id: String,
|
|
36
37
|
created_at: Time,
|
|
37
38
|
customer_id: String,
|
|
38
39
|
status: Dodopayments::Models::DunningStartedWebhookEvent::Data::status,
|
|
@@ -42,6 +43,8 @@ module Dodopayments
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
class Data < Dodopayments::Internal::Type::BaseModel
|
|
46
|
+
attr_accessor brand_id: String
|
|
47
|
+
|
|
45
48
|
attr_accessor created_at: Time
|
|
46
49
|
|
|
47
50
|
attr_accessor customer_id: String
|
|
@@ -55,6 +58,7 @@ module Dodopayments
|
|
|
55
58
|
attr_accessor payment_id: String?
|
|
56
59
|
|
|
57
60
|
def initialize: (
|
|
61
|
+
brand_id: String,
|
|
58
62
|
created_at: Time,
|
|
59
63
|
customer_id: String,
|
|
60
64
|
status: Dodopayments::Models::DunningStartedWebhookEvent::Data::status,
|
|
@@ -64,6 +68,7 @@ module Dodopayments
|
|
|
64
68
|
) -> void
|
|
65
69
|
|
|
66
70
|
def to_hash: -> {
|
|
71
|
+
brand_id: String,
|
|
67
72
|
created_at: Time,
|
|
68
73
|
customer_id: String,
|
|
69
74
|
status: Dodopayments::Models::DunningStartedWebhookEvent::Data::status,
|
|
@@ -6,6 +6,7 @@ module Dodopayments
|
|
|
6
6
|
type entitlement_grant =
|
|
7
7
|
{
|
|
8
8
|
id: String,
|
|
9
|
+
brand_id: String,
|
|
9
10
|
business_id: String,
|
|
10
11
|
created_at: Time,
|
|
11
12
|
customer_id: String,
|
|
@@ -30,6 +31,8 @@ module Dodopayments
|
|
|
30
31
|
class EntitlementGrant < Dodopayments::Internal::Type::BaseModel
|
|
31
32
|
attr_accessor id: String
|
|
32
33
|
|
|
34
|
+
attr_accessor brand_id: String
|
|
35
|
+
|
|
33
36
|
attr_accessor business_id: String
|
|
34
37
|
|
|
35
38
|
attr_accessor created_at: Time
|
|
@@ -70,6 +73,7 @@ module Dodopayments
|
|
|
70
73
|
|
|
71
74
|
def initialize: (
|
|
72
75
|
id: String,
|
|
76
|
+
brand_id: String,
|
|
73
77
|
business_id: String,
|
|
74
78
|
created_at: Time,
|
|
75
79
|
customer_id: String,
|
|
@@ -93,6 +97,7 @@ module Dodopayments
|
|
|
93
97
|
|
|
94
98
|
def to_hash: -> {
|
|
95
99
|
id: String,
|
|
100
|
+
brand_id: String,
|
|
96
101
|
business_id: String,
|
|
97
102
|
created_at: Time,
|
|
98
103
|
customer_id: String,
|
|
@@ -5,7 +5,6 @@ module Dodopayments
|
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
customer_id: String,
|
|
8
|
-
integration_type: Dodopayments::Models::Entitlements::GrantListParams::integration_type,
|
|
9
8
|
page_number: Integer,
|
|
10
9
|
page_size: Integer,
|
|
11
10
|
status: Dodopayments::Models::Entitlements::GrantListParams::status
|
|
@@ -22,12 +21,6 @@ module Dodopayments
|
|
|
22
21
|
|
|
23
22
|
def customer_id=: (String) -> String
|
|
24
23
|
|
|
25
|
-
attr_reader integration_type: Dodopayments::Models::Entitlements::GrantListParams::integration_type?
|
|
26
|
-
|
|
27
|
-
def integration_type=: (
|
|
28
|
-
Dodopayments::Models::Entitlements::GrantListParams::integration_type
|
|
29
|
-
) -> Dodopayments::Models::Entitlements::GrantListParams::integration_type
|
|
30
|
-
|
|
31
24
|
attr_reader page_number: Integer?
|
|
32
25
|
|
|
33
26
|
def page_number=: (Integer) -> Integer
|
|
@@ -45,7 +38,6 @@ module Dodopayments
|
|
|
45
38
|
def initialize: (
|
|
46
39
|
id: String,
|
|
47
40
|
?customer_id: String,
|
|
48
|
-
?integration_type: Dodopayments::Models::Entitlements::GrantListParams::integration_type,
|
|
49
41
|
?page_number: Integer,
|
|
50
42
|
?page_size: Integer,
|
|
51
43
|
?status: Dodopayments::Models::Entitlements::GrantListParams::status,
|
|
@@ -55,38 +47,12 @@ module Dodopayments
|
|
|
55
47
|
def to_hash: -> {
|
|
56
48
|
id: String,
|
|
57
49
|
customer_id: String,
|
|
58
|
-
integration_type: Dodopayments::Models::Entitlements::GrantListParams::integration_type,
|
|
59
50
|
page_number: Integer,
|
|
60
51
|
page_size: Integer,
|
|
61
52
|
status: Dodopayments::Models::Entitlements::GrantListParams::status,
|
|
62
53
|
request_options: Dodopayments::RequestOptions
|
|
63
54
|
}
|
|
64
55
|
|
|
65
|
-
type integration_type =
|
|
66
|
-
:discord
|
|
67
|
-
| :telegram
|
|
68
|
-
| :github
|
|
69
|
-
| :figma
|
|
70
|
-
| :framer
|
|
71
|
-
| :notion
|
|
72
|
-
| :digital_files
|
|
73
|
-
| :license_key
|
|
74
|
-
|
|
75
|
-
module IntegrationType
|
|
76
|
-
extend Dodopayments::Internal::Type::Enum
|
|
77
|
-
|
|
78
|
-
DISCORD: :discord
|
|
79
|
-
TELEGRAM: :telegram
|
|
80
|
-
GITHUB: :github
|
|
81
|
-
FIGMA: :figma
|
|
82
|
-
FRAMER: :framer
|
|
83
|
-
NOTION: :notion
|
|
84
|
-
DIGITAL_FILES: :digital_files
|
|
85
|
-
LICENSE_KEY: :license_key
|
|
86
|
-
|
|
87
|
-
def self?.values: -> ::Array[Dodopayments::Models::Entitlements::GrantListParams::integration_type]
|
|
88
|
-
end
|
|
89
|
-
|
|
90
56
|
type status = :Pending | :Delivered | :Failed | :Revoked
|
|
91
57
|
|
|
92
58
|
module Status
|
|
@@ -3,6 +3,7 @@ module Dodopayments
|
|
|
3
3
|
type get_dispute =
|
|
4
4
|
{
|
|
5
5
|
amount: String,
|
|
6
|
+
brand_id: String,
|
|
6
7
|
business_id: String,
|
|
7
8
|
created_at: Time,
|
|
8
9
|
currency: String,
|
|
@@ -11,6 +12,7 @@ module Dodopayments
|
|
|
11
12
|
dispute_stage: Dodopayments::Models::dispute_stage,
|
|
12
13
|
dispute_status: Dodopayments::Models::dispute_status,
|
|
13
14
|
payment_id: String,
|
|
15
|
+
payment_provider: Dodopayments::Models::GetDispute::payment_provider,
|
|
14
16
|
is_resolved_by_rdr: bool?,
|
|
15
17
|
reason: String?,
|
|
16
18
|
remarks: String?
|
|
@@ -19,6 +21,8 @@ module Dodopayments
|
|
|
19
21
|
class GetDispute < Dodopayments::Internal::Type::BaseModel
|
|
20
22
|
attr_accessor amount: String
|
|
21
23
|
|
|
24
|
+
attr_accessor brand_id: String
|
|
25
|
+
|
|
22
26
|
attr_accessor business_id: String
|
|
23
27
|
|
|
24
28
|
attr_accessor created_at: Time
|
|
@@ -35,6 +39,8 @@ module Dodopayments
|
|
|
35
39
|
|
|
36
40
|
attr_accessor payment_id: String
|
|
37
41
|
|
|
42
|
+
attr_accessor payment_provider: Dodopayments::Models::GetDispute::payment_provider
|
|
43
|
+
|
|
38
44
|
attr_accessor is_resolved_by_rdr: bool?
|
|
39
45
|
|
|
40
46
|
attr_accessor reason: String?
|
|
@@ -43,6 +49,7 @@ module Dodopayments
|
|
|
43
49
|
|
|
44
50
|
def initialize: (
|
|
45
51
|
amount: String,
|
|
52
|
+
brand_id: String,
|
|
46
53
|
business_id: String,
|
|
47
54
|
created_at: Time,
|
|
48
55
|
currency: String,
|
|
@@ -51,6 +58,7 @@ module Dodopayments
|
|
|
51
58
|
dispute_stage: Dodopayments::Models::dispute_stage,
|
|
52
59
|
dispute_status: Dodopayments::Models::dispute_status,
|
|
53
60
|
payment_id: String,
|
|
61
|
+
payment_provider: Dodopayments::Models::GetDispute::payment_provider,
|
|
54
62
|
?is_resolved_by_rdr: bool?,
|
|
55
63
|
?reason: String?,
|
|
56
64
|
?remarks: String?
|
|
@@ -58,6 +66,7 @@ module Dodopayments
|
|
|
58
66
|
|
|
59
67
|
def to_hash: -> {
|
|
60
68
|
amount: String,
|
|
69
|
+
brand_id: String,
|
|
61
70
|
business_id: String,
|
|
62
71
|
created_at: Time,
|
|
63
72
|
currency: String,
|
|
@@ -66,10 +75,23 @@ module Dodopayments
|
|
|
66
75
|
dispute_stage: Dodopayments::Models::dispute_stage,
|
|
67
76
|
dispute_status: Dodopayments::Models::dispute_status,
|
|
68
77
|
payment_id: String,
|
|
78
|
+
payment_provider: Dodopayments::Models::GetDispute::payment_provider,
|
|
69
79
|
is_resolved_by_rdr: bool?,
|
|
70
80
|
reason: String?,
|
|
71
81
|
remarks: String?
|
|
72
82
|
}
|
|
83
|
+
|
|
84
|
+
type payment_provider = :stripe | :adyen | :dodo
|
|
85
|
+
|
|
86
|
+
module PaymentProvider
|
|
87
|
+
extend Dodopayments::Internal::Type::Enum
|
|
88
|
+
|
|
89
|
+
STRIPE: :stripe
|
|
90
|
+
ADYEN: :adyen
|
|
91
|
+
DODO: :dodo
|
|
92
|
+
|
|
93
|
+
def self?.values: -> ::Array[Dodopayments::Models::GetDispute::payment_provider]
|
|
94
|
+
end
|
|
73
95
|
end
|
|
74
96
|
end
|
|
75
97
|
end
|
|
@@ -3,6 +3,7 @@ module Dodopayments
|
|
|
3
3
|
type license_key =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
brand_id: String,
|
|
6
7
|
business_id: String,
|
|
7
8
|
created_at: Time,
|
|
8
9
|
customer_id: String,
|
|
@@ -20,6 +21,8 @@ module Dodopayments
|
|
|
20
21
|
class LicenseKey < Dodopayments::Internal::Type::BaseModel
|
|
21
22
|
attr_accessor id: String
|
|
22
23
|
|
|
24
|
+
attr_accessor brand_id: String
|
|
25
|
+
|
|
23
26
|
attr_accessor business_id: String
|
|
24
27
|
|
|
25
28
|
attr_accessor created_at: Time
|
|
@@ -46,6 +49,7 @@ module Dodopayments
|
|
|
46
49
|
|
|
47
50
|
def initialize: (
|
|
48
51
|
id: String,
|
|
52
|
+
brand_id: String,
|
|
49
53
|
business_id: String,
|
|
50
54
|
created_at: Time,
|
|
51
55
|
customer_id: String,
|
|
@@ -62,6 +66,7 @@ module Dodopayments
|
|
|
62
66
|
|
|
63
67
|
def to_hash: -> {
|
|
64
68
|
id: String,
|
|
69
|
+
brand_id: String,
|
|
65
70
|
business_id: String,
|
|
66
71
|
created_at: Time,
|
|
67
72
|
customer_id: String,
|
|
@@ -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,
|