dodopayments 2.17.1 → 2.18.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 +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/credit_entitlements/credit_ledger_entry.rb +14 -1
- data/lib/dodopayments/models/entitlements/grant_fulfill_license_key_params.rb +53 -0
- data/lib/dodopayments/models/metadata.rb +8 -0
- data/lib/dodopayments/models/payment_method_types.rb +1 -0
- data/lib/dodopayments/models/product.rb +3 -17
- data/lib/dodopayments/models/product_create_params.rb +3 -16
- data/lib/dodopayments/models/product_list_response.rb +3 -17
- data/lib/dodopayments/models/product_update_params.rb +3 -16
- data/lib/dodopayments/models/products/list_localized_prices_response.rb +18 -0
- data/lib/dodopayments/models/products/localized_price.rb +75 -0
- data/lib/dodopayments/models/products/localized_price_archive_params.rb +28 -0
- data/lib/dodopayments/models/products/localized_price_create_params.rb +51 -0
- data/lib/dodopayments/models/products/localized_price_list_params.rb +22 -0
- data/lib/dodopayments/models/products/localized_price_retrieve_params.rb +28 -0
- data/lib/dodopayments/models/products/localized_price_update_params.rb +42 -0
- data/lib/dodopayments/models/products/pricing_mode.rb +17 -0
- data/lib/dodopayments/models.rb +3 -0
- data/lib/dodopayments/resources/entitlements/grants.rb +35 -0
- data/lib/dodopayments/resources/products/localized_prices.rb +144 -0
- data/lib/dodopayments/resources/products.rb +6 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +11 -0
- data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +12 -0
- data/rbi/dodopayments/models/entitlements/grant_fulfill_license_key_params.rbi +74 -0
- data/rbi/dodopayments/models/metadata.rbi +11 -0
- data/rbi/dodopayments/models/payment_method_types.rbi +2 -0
- data/rbi/dodopayments/models/product.rbi +4 -26
- data/rbi/dodopayments/models/product_create_params.rbi +3 -43
- data/rbi/dodopayments/models/product_list_response.rbi +3 -47
- data/rbi/dodopayments/models/product_update_params.rbi +3 -43
- data/rbi/dodopayments/models/products/list_localized_prices_response.rbi +36 -0
- data/rbi/dodopayments/models/products/localized_price.rbi +98 -0
- data/rbi/dodopayments/models/products/localized_price_archive_params.rbi +48 -0
- data/rbi/dodopayments/models/products/localized_price_create_params.rbi +72 -0
- data/rbi/dodopayments/models/products/localized_price_list_params.rbi +43 -0
- data/rbi/dodopayments/models/products/localized_price_retrieve_params.rbi +48 -0
- data/rbi/dodopayments/models/products/localized_price_update_params.rbi +62 -0
- data/rbi/dodopayments/models/products/pricing_mode.rbi +28 -0
- data/rbi/dodopayments/models.rbi +6 -0
- data/rbi/dodopayments/resources/entitlements/grants.rbi +28 -0
- data/rbi/dodopayments/resources/products/localized_prices.rbi +103 -0
- data/rbi/dodopayments/resources/products.rbi +5 -2
- data/sig/dodopayments/models/checkout_session_request.rbs +4 -4
- data/sig/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rbs +4 -4
- data/sig/dodopayments/models/credit_entitlements/balance_list_grants_response.rbs +4 -4
- data/sig/dodopayments/models/credit_entitlements/credit_ledger_entry.rbs +5 -0
- data/sig/dodopayments/models/customer.rbs +7 -5
- data/sig/dodopayments/models/customer_create_params.rbs +7 -5
- data/sig/dodopayments/models/customer_limited_details.rbs +7 -5
- data/sig/dodopayments/models/customer_update_params.rbs +4 -4
- data/sig/dodopayments/models/discount.rbs +4 -4
- data/sig/dodopayments/models/discount_create_params.rbs +7 -5
- data/sig/dodopayments/models/discount_detail.rbs +4 -4
- data/sig/dodopayments/models/discount_update_params.rbs +4 -4
- data/sig/dodopayments/models/entitlement.rbs +4 -4
- data/sig/dodopayments/models/entitlement_create_params.rbs +7 -5
- data/sig/dodopayments/models/entitlement_update_params.rbs +4 -4
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +4 -4
- data/sig/dodopayments/models/entitlements/grant_fulfill_license_key_params.rbs +43 -0
- data/sig/dodopayments/models/metadata.rbs +7 -0
- data/sig/dodopayments/models/payment.rbs +4 -4
- data/sig/dodopayments/models/payment_create_params.rbs +7 -5
- data/sig/dodopayments/models/payment_create_response.rbs +4 -4
- data/sig/dodopayments/models/payment_list_response.rbs +4 -4
- data/sig/dodopayments/models/payment_method_types.rbs +2 -0
- data/sig/dodopayments/models/product.rbs +8 -19
- data/sig/dodopayments/models/product_create_params.rbs +11 -20
- data/sig/dodopayments/models/product_list_response.rbs +8 -19
- data/sig/dodopayments/models/product_update_params.rbs +8 -19
- data/sig/dodopayments/models/products/list_localized_prices_response.rbs +20 -0
- data/sig/dodopayments/models/products/localized_price.rbs +57 -0
- data/sig/dodopayments/models/products/localized_price_archive_params.rbs +30 -0
- data/sig/dodopayments/models/products/localized_price_create_params.rbs +43 -0
- data/sig/dodopayments/models/products/localized_price_list_params.rbs +26 -0
- data/sig/dodopayments/models/products/localized_price_retrieve_params.rbs +30 -0
- data/sig/dodopayments/models/products/localized_price_update_params.rbs +34 -0
- data/sig/dodopayments/models/products/pricing_mode.rbs +16 -0
- data/sig/dodopayments/models/refund.rbs +4 -4
- data/sig/dodopayments/models/refund_create_params.rbs +7 -5
- data/sig/dodopayments/models/subscription.rbs +4 -4
- data/sig/dodopayments/models/subscription_charge_params.rbs +4 -4
- data/sig/dodopayments/models/subscription_create_params.rbs +7 -5
- data/sig/dodopayments/models/subscription_create_response.rbs +4 -4
- data/sig/dodopayments/models/subscription_list_response.rbs +4 -4
- data/sig/dodopayments/models/subscription_update_params.rbs +4 -4
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +4 -4
- data/sig/dodopayments/models.rbs +2 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -2
- data/sig/dodopayments/resources/credit_entitlements/balances.rbs +1 -1
- data/sig/dodopayments/resources/customers.rbs +2 -2
- data/sig/dodopayments/resources/discounts.rbs +2 -2
- data/sig/dodopayments/resources/entitlements/grants.rbs +8 -0
- data/sig/dodopayments/resources/entitlements.rbs +2 -2
- data/sig/dodopayments/resources/payments.rbs +1 -1
- data/sig/dodopayments/resources/products/localized_prices.rbs +41 -0
- data/sig/dodopayments/resources/products.rbs +6 -4
- data/sig/dodopayments/resources/refunds.rbs +1 -1
- data/sig/dodopayments/resources/subscriptions.rbs +5 -5
- metadata +35 -2
|
@@ -13,6 +13,7 @@ module Dodopayments
|
|
|
13
13
|
credit_entitlement_id: String,
|
|
14
14
|
customer_id: String,
|
|
15
15
|
is_credit: bool,
|
|
16
|
+
metadata: Dodopayments::Models::metadata,
|
|
16
17
|
overage_after: String,
|
|
17
18
|
overage_before: String,
|
|
18
19
|
transaction_type: Dodopayments::Models::CreditEntitlements::CreditLedgerEntry::transaction_type,
|
|
@@ -43,6 +44,8 @@ module Dodopayments
|
|
|
43
44
|
|
|
44
45
|
attr_accessor is_credit: bool
|
|
45
46
|
|
|
47
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
48
|
+
|
|
46
49
|
attr_accessor overage_after: String
|
|
47
50
|
|
|
48
51
|
attr_accessor overage_before: String
|
|
@@ -68,6 +71,7 @@ module Dodopayments
|
|
|
68
71
|
credit_entitlement_id: String,
|
|
69
72
|
customer_id: String,
|
|
70
73
|
is_credit: bool,
|
|
74
|
+
metadata: Dodopayments::Models::metadata,
|
|
71
75
|
overage_after: String,
|
|
72
76
|
overage_before: String,
|
|
73
77
|
transaction_type: Dodopayments::Models::CreditEntitlements::CreditLedgerEntry::transaction_type,
|
|
@@ -88,6 +92,7 @@ module Dodopayments
|
|
|
88
92
|
credit_entitlement_id: String,
|
|
89
93
|
customer_id: String,
|
|
90
94
|
is_credit: bool,
|
|
95
|
+
metadata: Dodopayments::Models::metadata,
|
|
91
96
|
overage_after: String,
|
|
92
97
|
overage_before: String,
|
|
93
98
|
transaction_type: Dodopayments::Models::CreditEntitlements::CreditLedgerEntry::transaction_type,
|
|
@@ -7,7 +7,7 @@ module Dodopayments
|
|
|
7
7
|
customer_id: String,
|
|
8
8
|
email: String,
|
|
9
9
|
name: String,
|
|
10
|
-
metadata: ::
|
|
10
|
+
metadata: Dodopayments::Models::metadata,
|
|
11
11
|
phone_number: String?
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -22,9 +22,11 @@ module Dodopayments
|
|
|
22
22
|
|
|
23
23
|
attr_accessor name: String
|
|
24
24
|
|
|
25
|
-
attr_reader metadata: ::
|
|
25
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
26
26
|
|
|
27
|
-
def metadata=: (
|
|
27
|
+
def metadata=: (
|
|
28
|
+
Dodopayments::Models::metadata
|
|
29
|
+
) -> Dodopayments::Models::metadata
|
|
28
30
|
|
|
29
31
|
attr_accessor phone_number: String?
|
|
30
32
|
|
|
@@ -34,7 +36,7 @@ module Dodopayments
|
|
|
34
36
|
customer_id: String,
|
|
35
37
|
email: String,
|
|
36
38
|
name: String,
|
|
37
|
-
?metadata: ::
|
|
39
|
+
?metadata: Dodopayments::Models::metadata,
|
|
38
40
|
?phone_number: String?
|
|
39
41
|
) -> void
|
|
40
42
|
|
|
@@ -44,7 +46,7 @@ module Dodopayments
|
|
|
44
46
|
customer_id: String,
|
|
45
47
|
email: String,
|
|
46
48
|
name: String,
|
|
47
|
-
metadata: ::
|
|
49
|
+
metadata: Dodopayments::Models::metadata,
|
|
48
50
|
phone_number: String?
|
|
49
51
|
}
|
|
50
52
|
end
|
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
email: String,
|
|
6
6
|
name: String,
|
|
7
|
-
metadata: ::
|
|
7
|
+
metadata: Dodopayments::Models::metadata,
|
|
8
8
|
phone_number: String?
|
|
9
9
|
}
|
|
10
10
|
& Dodopayments::Internal::Type::request_parameters
|
|
@@ -17,16 +17,18 @@ module Dodopayments
|
|
|
17
17
|
|
|
18
18
|
attr_accessor name: String
|
|
19
19
|
|
|
20
|
-
attr_reader metadata: ::
|
|
20
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
21
21
|
|
|
22
|
-
def metadata=: (
|
|
22
|
+
def metadata=: (
|
|
23
|
+
Dodopayments::Models::metadata
|
|
24
|
+
) -> Dodopayments::Models::metadata
|
|
23
25
|
|
|
24
26
|
attr_accessor phone_number: String?
|
|
25
27
|
|
|
26
28
|
def initialize: (
|
|
27
29
|
email: String,
|
|
28
30
|
name: String,
|
|
29
|
-
?metadata: ::
|
|
31
|
+
?metadata: Dodopayments::Models::metadata,
|
|
30
32
|
?phone_number: String?,
|
|
31
33
|
?request_options: Dodopayments::request_opts
|
|
32
34
|
) -> void
|
|
@@ -34,7 +36,7 @@ module Dodopayments
|
|
|
34
36
|
def to_hash: -> {
|
|
35
37
|
email: String,
|
|
36
38
|
name: String,
|
|
37
|
-
metadata: ::
|
|
39
|
+
metadata: Dodopayments::Models::metadata,
|
|
38
40
|
phone_number: String?,
|
|
39
41
|
request_options: Dodopayments::RequestOptions
|
|
40
42
|
}
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
customer_id: String,
|
|
6
6
|
email: String,
|
|
7
7
|
name: String,
|
|
8
|
-
metadata: ::
|
|
8
|
+
metadata: Dodopayments::Models::metadata,
|
|
9
9
|
phone_number: String?
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -16,9 +16,11 @@ module Dodopayments
|
|
|
16
16
|
|
|
17
17
|
attr_accessor name: String
|
|
18
18
|
|
|
19
|
-
attr_reader metadata: ::
|
|
19
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
20
20
|
|
|
21
|
-
def metadata=: (
|
|
21
|
+
def metadata=: (
|
|
22
|
+
Dodopayments::Models::metadata
|
|
23
|
+
) -> Dodopayments::Models::metadata
|
|
22
24
|
|
|
23
25
|
attr_accessor phone_number: String?
|
|
24
26
|
|
|
@@ -26,7 +28,7 @@ module Dodopayments
|
|
|
26
28
|
customer_id: String,
|
|
27
29
|
email: String,
|
|
28
30
|
name: String,
|
|
29
|
-
?metadata: ::
|
|
31
|
+
?metadata: Dodopayments::Models::metadata,
|
|
30
32
|
?phone_number: String?
|
|
31
33
|
) -> void
|
|
32
34
|
|
|
@@ -34,7 +36,7 @@ module Dodopayments
|
|
|
34
36
|
customer_id: String,
|
|
35
37
|
email: String,
|
|
36
38
|
name: String,
|
|
37
|
-
metadata: ::
|
|
39
|
+
metadata: Dodopayments::Models::metadata,
|
|
38
40
|
phone_number: String?
|
|
39
41
|
}
|
|
40
42
|
end
|
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
customer_id: String,
|
|
6
6
|
email: String?,
|
|
7
|
-
metadata: ::
|
|
7
|
+
metadata: Dodopayments::Models::metadata?,
|
|
8
8
|
name: String?,
|
|
9
9
|
phone_number: String?
|
|
10
10
|
}
|
|
@@ -18,7 +18,7 @@ module Dodopayments
|
|
|
18
18
|
|
|
19
19
|
attr_accessor email: String?
|
|
20
20
|
|
|
21
|
-
attr_accessor metadata: ::
|
|
21
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
22
22
|
|
|
23
23
|
attr_accessor name: String?
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ module Dodopayments
|
|
|
27
27
|
def initialize: (
|
|
28
28
|
customer_id: String,
|
|
29
29
|
?email: String?,
|
|
30
|
-
?metadata: ::
|
|
30
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
31
31
|
?name: String?,
|
|
32
32
|
?phone_number: String?,
|
|
33
33
|
?request_options: Dodopayments::request_opts
|
|
@@ -36,7 +36,7 @@ module Dodopayments
|
|
|
36
36
|
def to_hash: -> {
|
|
37
37
|
customer_id: String,
|
|
38
38
|
email: String?,
|
|
39
|
-
metadata: ::
|
|
39
|
+
metadata: Dodopayments::Models::metadata?,
|
|
40
40
|
name: String?,
|
|
41
41
|
phone_number: String?,
|
|
42
42
|
request_options: Dodopayments::RequestOptions
|
|
@@ -7,7 +7,7 @@ module Dodopayments
|
|
|
7
7
|
code: String,
|
|
8
8
|
created_at: Time,
|
|
9
9
|
discount_id: String,
|
|
10
|
-
metadata: ::
|
|
10
|
+
metadata: Dodopayments::Models::metadata,
|
|
11
11
|
preserve_on_plan_change: bool,
|
|
12
12
|
restricted_to: ::Array[String],
|
|
13
13
|
times_used: Integer,
|
|
@@ -29,7 +29,7 @@ module Dodopayments
|
|
|
29
29
|
|
|
30
30
|
attr_accessor discount_id: String
|
|
31
31
|
|
|
32
|
-
attr_accessor metadata: ::
|
|
32
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
33
33
|
|
|
34
34
|
attr_accessor preserve_on_plan_change: bool
|
|
35
35
|
|
|
@@ -53,7 +53,7 @@ module Dodopayments
|
|
|
53
53
|
code: String,
|
|
54
54
|
created_at: Time,
|
|
55
55
|
discount_id: String,
|
|
56
|
-
metadata: ::
|
|
56
|
+
metadata: Dodopayments::Models::metadata,
|
|
57
57
|
preserve_on_plan_change: bool,
|
|
58
58
|
restricted_to: ::Array[String],
|
|
59
59
|
times_used: Integer,
|
|
@@ -70,7 +70,7 @@ module Dodopayments
|
|
|
70
70
|
code: String,
|
|
71
71
|
created_at: Time,
|
|
72
72
|
discount_id: String,
|
|
73
|
-
metadata: ::
|
|
73
|
+
metadata: Dodopayments::Models::metadata,
|
|
74
74
|
preserve_on_plan_change: bool,
|
|
75
75
|
restricted_to: ::Array[String],
|
|
76
76
|
times_used: Integer,
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
type: Dodopayments::Models::discount_type,
|
|
7
7
|
code: String?,
|
|
8
8
|
expires_at: Time?,
|
|
9
|
-
metadata: ::
|
|
9
|
+
metadata: Dodopayments::Models::metadata,
|
|
10
10
|
name: String?,
|
|
11
11
|
preserve_on_plan_change: bool,
|
|
12
12
|
restricted_to: ::Array[String]?,
|
|
@@ -27,9 +27,11 @@ module Dodopayments
|
|
|
27
27
|
|
|
28
28
|
attr_accessor expires_at: Time?
|
|
29
29
|
|
|
30
|
-
attr_reader metadata: ::
|
|
30
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
31
31
|
|
|
32
|
-
def metadata=: (
|
|
32
|
+
def metadata=: (
|
|
33
|
+
Dodopayments::Models::metadata
|
|
34
|
+
) -> Dodopayments::Models::metadata
|
|
33
35
|
|
|
34
36
|
attr_accessor name: String?
|
|
35
37
|
|
|
@@ -48,7 +50,7 @@ module Dodopayments
|
|
|
48
50
|
type: Dodopayments::Models::discount_type,
|
|
49
51
|
?code: String?,
|
|
50
52
|
?expires_at: Time?,
|
|
51
|
-
?metadata: ::
|
|
53
|
+
?metadata: Dodopayments::Models::metadata,
|
|
52
54
|
?name: String?,
|
|
53
55
|
?preserve_on_plan_change: bool,
|
|
54
56
|
?restricted_to: ::Array[String]?,
|
|
@@ -62,7 +64,7 @@ module Dodopayments
|
|
|
62
64
|
type: Dodopayments::Models::discount_type,
|
|
63
65
|
code: String?,
|
|
64
66
|
expires_at: Time?,
|
|
65
|
-
metadata: ::
|
|
67
|
+
metadata: Dodopayments::Models::metadata,
|
|
66
68
|
name: String?,
|
|
67
69
|
preserve_on_plan_change: bool,
|
|
68
70
|
restricted_to: ::Array[String]?,
|
|
@@ -7,7 +7,7 @@ module Dodopayments
|
|
|
7
7
|
code: String,
|
|
8
8
|
created_at: Time,
|
|
9
9
|
discount_id: String,
|
|
10
|
-
metadata: ::
|
|
10
|
+
metadata: Dodopayments::Models::metadata,
|
|
11
11
|
position: Integer,
|
|
12
12
|
preserve_on_plan_change: bool,
|
|
13
13
|
restricted_to: ::Array[String],
|
|
@@ -31,7 +31,7 @@ module Dodopayments
|
|
|
31
31
|
|
|
32
32
|
attr_accessor discount_id: String
|
|
33
33
|
|
|
34
|
-
attr_accessor metadata: ::
|
|
34
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
35
35
|
|
|
36
36
|
attr_accessor position: Integer
|
|
37
37
|
|
|
@@ -59,7 +59,7 @@ module Dodopayments
|
|
|
59
59
|
code: String,
|
|
60
60
|
created_at: Time,
|
|
61
61
|
discount_id: String,
|
|
62
|
-
metadata: ::
|
|
62
|
+
metadata: Dodopayments::Models::metadata,
|
|
63
63
|
position: Integer,
|
|
64
64
|
preserve_on_plan_change: bool,
|
|
65
65
|
restricted_to: ::Array[String],
|
|
@@ -78,7 +78,7 @@ module Dodopayments
|
|
|
78
78
|
code: String,
|
|
79
79
|
created_at: Time,
|
|
80
80
|
discount_id: String,
|
|
81
|
-
metadata: ::
|
|
81
|
+
metadata: Dodopayments::Models::metadata,
|
|
82
82
|
position: Integer,
|
|
83
83
|
preserve_on_plan_change: bool,
|
|
84
84
|
restricted_to: ::Array[String],
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
amount: Integer?,
|
|
7
7
|
code: String?,
|
|
8
8
|
expires_at: Time?,
|
|
9
|
-
metadata: ::
|
|
9
|
+
metadata: Dodopayments::Models::metadata?,
|
|
10
10
|
name: String?,
|
|
11
11
|
preserve_on_plan_change: bool?,
|
|
12
12
|
restricted_to: ::Array[String]?,
|
|
@@ -28,7 +28,7 @@ module Dodopayments
|
|
|
28
28
|
|
|
29
29
|
attr_accessor expires_at: Time?
|
|
30
30
|
|
|
31
|
-
attr_accessor metadata: ::
|
|
31
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
32
32
|
|
|
33
33
|
attr_accessor name: String?
|
|
34
34
|
|
|
@@ -47,7 +47,7 @@ module Dodopayments
|
|
|
47
47
|
?amount: Integer?,
|
|
48
48
|
?code: String?,
|
|
49
49
|
?expires_at: Time?,
|
|
50
|
-
?metadata: ::
|
|
50
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
51
51
|
?name: String?,
|
|
52
52
|
?preserve_on_plan_change: bool?,
|
|
53
53
|
?restricted_to: ::Array[String]?,
|
|
@@ -62,7 +62,7 @@ module Dodopayments
|
|
|
62
62
|
amount: Integer?,
|
|
63
63
|
code: String?,
|
|
64
64
|
expires_at: Time?,
|
|
65
|
-
metadata: ::
|
|
65
|
+
metadata: Dodopayments::Models::metadata?,
|
|
66
66
|
name: String?,
|
|
67
67
|
preserve_on_plan_change: bool?,
|
|
68
68
|
restricted_to: ::Array[String]?,
|
|
@@ -8,7 +8,7 @@ module Dodopayments
|
|
|
8
8
|
integration_config: Dodopayments::Models::integration_config_response,
|
|
9
9
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
10
10
|
is_active: bool,
|
|
11
|
-
metadata: ::
|
|
11
|
+
metadata: Dodopayments::Models::metadata,
|
|
12
12
|
name: String,
|
|
13
13
|
updated_at: Time,
|
|
14
14
|
description: String?
|
|
@@ -27,7 +27,7 @@ module Dodopayments
|
|
|
27
27
|
|
|
28
28
|
attr_accessor is_active: bool
|
|
29
29
|
|
|
30
|
-
attr_accessor metadata: ::
|
|
30
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
31
31
|
|
|
32
32
|
attr_accessor name: String
|
|
33
33
|
|
|
@@ -42,7 +42,7 @@ module Dodopayments
|
|
|
42
42
|
integration_config: Dodopayments::Models::integration_config_response,
|
|
43
43
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
44
44
|
is_active: bool,
|
|
45
|
-
metadata: ::
|
|
45
|
+
metadata: Dodopayments::Models::metadata,
|
|
46
46
|
name: String,
|
|
47
47
|
updated_at: Time,
|
|
48
48
|
?description: String?
|
|
@@ -55,7 +55,7 @@ module Dodopayments
|
|
|
55
55
|
integration_config: Dodopayments::Models::integration_config_response,
|
|
56
56
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
57
57
|
is_active: bool,
|
|
58
|
-
metadata: ::
|
|
58
|
+
metadata: Dodopayments::Models::metadata,
|
|
59
59
|
name: String,
|
|
60
60
|
updated_at: Time,
|
|
61
61
|
description: String?
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
7
7
|
name: String,
|
|
8
8
|
description: String?,
|
|
9
|
-
metadata: ::
|
|
9
|
+
metadata: Dodopayments::Models::metadata
|
|
10
10
|
}
|
|
11
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
12
12
|
|
|
@@ -22,16 +22,18 @@ module Dodopayments
|
|
|
22
22
|
|
|
23
23
|
attr_accessor description: String?
|
|
24
24
|
|
|
25
|
-
attr_reader metadata: ::
|
|
25
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
26
26
|
|
|
27
|
-
def metadata=: (
|
|
27
|
+
def metadata=: (
|
|
28
|
+
Dodopayments::Models::metadata
|
|
29
|
+
) -> Dodopayments::Models::metadata
|
|
28
30
|
|
|
29
31
|
def initialize: (
|
|
30
32
|
integration_config: Dodopayments::Models::integration_config,
|
|
31
33
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
32
34
|
name: String,
|
|
33
35
|
?description: String?,
|
|
34
|
-
?metadata: ::
|
|
36
|
+
?metadata: Dodopayments::Models::metadata,
|
|
35
37
|
?request_options: Dodopayments::request_opts
|
|
36
38
|
) -> void
|
|
37
39
|
|
|
@@ -40,7 +42,7 @@ module Dodopayments
|
|
|
40
42
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
41
43
|
name: String,
|
|
42
44
|
description: String?,
|
|
43
|
-
metadata: ::
|
|
45
|
+
metadata: Dodopayments::Models::metadata,
|
|
44
46
|
request_options: Dodopayments::RequestOptions
|
|
45
47
|
}
|
|
46
48
|
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
id: String,
|
|
6
6
|
description: String?,
|
|
7
7
|
integration_config: Dodopayments::Models::integration_config?,
|
|
8
|
-
metadata: ::
|
|
8
|
+
metadata: Dodopayments::Models::metadata?,
|
|
9
9
|
name: String?
|
|
10
10
|
}
|
|
11
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
@@ -20,7 +20,7 @@ module Dodopayments
|
|
|
20
20
|
|
|
21
21
|
attr_accessor integration_config: Dodopayments::Models::integration_config?
|
|
22
22
|
|
|
23
|
-
attr_accessor metadata: ::
|
|
23
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
24
24
|
|
|
25
25
|
attr_accessor name: String?
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ module Dodopayments
|
|
|
28
28
|
id: String,
|
|
29
29
|
?description: String?,
|
|
30
30
|
?integration_config: Dodopayments::Models::integration_config?,
|
|
31
|
-
?metadata: ::
|
|
31
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
32
32
|
?name: String?,
|
|
33
33
|
?request_options: Dodopayments::request_opts
|
|
34
34
|
) -> void
|
|
@@ -37,7 +37,7 @@ module Dodopayments
|
|
|
37
37
|
id: String,
|
|
38
38
|
description: String?,
|
|
39
39
|
integration_config: Dodopayments::Models::integration_config?,
|
|
40
|
-
metadata: ::
|
|
40
|
+
metadata: Dodopayments::Models::metadata?,
|
|
41
41
|
name: String?,
|
|
42
42
|
request_options: Dodopayments::RequestOptions
|
|
43
43
|
}
|
|
@@ -12,7 +12,7 @@ module Dodopayments
|
|
|
12
12
|
customer_id: String,
|
|
13
13
|
entitlement_id: String,
|
|
14
14
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
15
|
-
metadata: ::
|
|
15
|
+
metadata: Dodopayments::Models::metadata,
|
|
16
16
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
17
17
|
updated_at: Time,
|
|
18
18
|
delivered_at: Time?,
|
|
@@ -43,7 +43,7 @@ module Dodopayments
|
|
|
43
43
|
|
|
44
44
|
attr_accessor integration_type: Dodopayments::Models::entitlement_integration_type
|
|
45
45
|
|
|
46
|
-
attr_accessor metadata: ::
|
|
46
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
47
47
|
|
|
48
48
|
attr_accessor status: Dodopayments::Models::Entitlements::EntitlementGrant::status
|
|
49
49
|
|
|
@@ -79,7 +79,7 @@ module Dodopayments
|
|
|
79
79
|
customer_id: String,
|
|
80
80
|
entitlement_id: String,
|
|
81
81
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
82
|
-
metadata: ::
|
|
82
|
+
metadata: Dodopayments::Models::metadata,
|
|
83
83
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
84
84
|
updated_at: Time,
|
|
85
85
|
?delivered_at: Time?,
|
|
@@ -103,7 +103,7 @@ module Dodopayments
|
|
|
103
103
|
customer_id: String,
|
|
104
104
|
entitlement_id: String,
|
|
105
105
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
106
|
-
metadata: ::
|
|
106
|
+
metadata: Dodopayments::Models::metadata,
|
|
107
107
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
108
108
|
updated_at: Time,
|
|
109
109
|
delivered_at: Time?,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Entitlements
|
|
4
|
+
type grant_fulfill_license_key_params =
|
|
5
|
+
{
|
|
6
|
+
grant_id: String,
|
|
7
|
+
key: String,
|
|
8
|
+
activations_limit: Integer?,
|
|
9
|
+
expires_at: Time?
|
|
10
|
+
}
|
|
11
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class GrantFulfillLicenseKeyParams < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor grant_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor key: String
|
|
20
|
+
|
|
21
|
+
attr_accessor activations_limit: Integer?
|
|
22
|
+
|
|
23
|
+
attr_accessor expires_at: Time?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
grant_id: String,
|
|
27
|
+
key: String,
|
|
28
|
+
?activations_limit: Integer?,
|
|
29
|
+
?expires_at: Time?,
|
|
30
|
+
?request_options: Dodopayments::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
grant_id: String,
|
|
35
|
+
key: String,
|
|
36
|
+
activations_limit: Integer?,
|
|
37
|
+
expires_at: Time?,
|
|
38
|
+
request_options: Dodopayments::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
11
11
|
digital_products_delivered: bool,
|
|
12
12
|
disputes: ::Array[Dodopayments::Dispute],
|
|
13
|
-
metadata: ::
|
|
13
|
+
metadata: Dodopayments::Models::metadata,
|
|
14
14
|
payment_id: String,
|
|
15
15
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
16
16
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
@@ -60,7 +60,7 @@ module Dodopayments
|
|
|
60
60
|
|
|
61
61
|
attr_accessor disputes: ::Array[Dodopayments::Dispute]
|
|
62
62
|
|
|
63
|
-
attr_accessor metadata: ::
|
|
63
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
64
64
|
|
|
65
65
|
attr_accessor payment_id: String
|
|
66
66
|
|
|
@@ -131,7 +131,7 @@ module Dodopayments
|
|
|
131
131
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
132
132
|
digital_products_delivered: bool,
|
|
133
133
|
disputes: ::Array[Dodopayments::Dispute],
|
|
134
|
-
metadata: ::
|
|
134
|
+
metadata: Dodopayments::Models::metadata,
|
|
135
135
|
payment_id: String,
|
|
136
136
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
137
137
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
@@ -173,7 +173,7 @@ module Dodopayments
|
|
|
173
173
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
174
174
|
digital_products_delivered: bool,
|
|
175
175
|
disputes: ::Array[Dodopayments::Dispute],
|
|
176
|
-
metadata: ::
|
|
176
|
+
metadata: Dodopayments::Models::metadata,
|
|
177
177
|
payment_id: String,
|
|
178
178
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
179
179
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
@@ -12,7 +12,7 @@ module Dodopayments
|
|
|
12
12
|
discount_code: String?,
|
|
13
13
|
discount_codes: ::Array[String]?,
|
|
14
14
|
:force_3ds => bool?,
|
|
15
|
-
metadata: ::
|
|
15
|
+
metadata: Dodopayments::Models::metadata,
|
|
16
16
|
payment_link: bool?,
|
|
17
17
|
payment_method_id: String?,
|
|
18
18
|
redirect_immediately: bool,
|
|
@@ -48,9 +48,11 @@ module Dodopayments
|
|
|
48
48
|
|
|
49
49
|
attr_accessor force_3ds: bool?
|
|
50
50
|
|
|
51
|
-
attr_reader metadata: ::
|
|
51
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
52
52
|
|
|
53
|
-
def metadata=: (
|
|
53
|
+
def metadata=: (
|
|
54
|
+
Dodopayments::Models::metadata
|
|
55
|
+
) -> Dodopayments::Models::metadata
|
|
54
56
|
|
|
55
57
|
attr_accessor payment_link: bool?
|
|
56
58
|
|
|
@@ -85,7 +87,7 @@ module Dodopayments
|
|
|
85
87
|
?discount_code: String?,
|
|
86
88
|
?discount_codes: ::Array[String]?,
|
|
87
89
|
?force_3ds: bool?,
|
|
88
|
-
?metadata: ::
|
|
90
|
+
?metadata: Dodopayments::Models::metadata,
|
|
89
91
|
?payment_link: bool?,
|
|
90
92
|
?payment_method_id: String?,
|
|
91
93
|
?redirect_immediately: bool,
|
|
@@ -108,7 +110,7 @@ module Dodopayments
|
|
|
108
110
|
discount_code: String?,
|
|
109
111
|
discount_codes: ::Array[String]?,
|
|
110
112
|
:force_3ds => bool?,
|
|
111
|
-
metadata: ::
|
|
113
|
+
metadata: Dodopayments::Models::metadata,
|
|
112
114
|
payment_link: bool?,
|
|
113
115
|
payment_method_id: String?,
|
|
114
116
|
redirect_immediately: bool,
|
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
client_secret: String,
|
|
6
6
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
7
|
-
metadata: ::
|
|
7
|
+
metadata: Dodopayments::Models::metadata,
|
|
8
8
|
payment_id: String,
|
|
9
9
|
total_amount: Integer,
|
|
10
10
|
discount_id: String?,
|
|
@@ -19,7 +19,7 @@ module Dodopayments
|
|
|
19
19
|
|
|
20
20
|
attr_accessor customer: Dodopayments::CustomerLimitedDetails
|
|
21
21
|
|
|
22
|
-
attr_accessor metadata: ::
|
|
22
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
23
23
|
|
|
24
24
|
attr_accessor payment_id: String
|
|
25
25
|
|
|
@@ -38,7 +38,7 @@ module Dodopayments
|
|
|
38
38
|
def initialize: (
|
|
39
39
|
client_secret: String,
|
|
40
40
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
41
|
-
metadata: ::
|
|
41
|
+
metadata: Dodopayments::Models::metadata,
|
|
42
42
|
payment_id: String,
|
|
43
43
|
total_amount: Integer,
|
|
44
44
|
?discount_id: String?,
|
|
@@ -51,7 +51,7 @@ module Dodopayments
|
|
|
51
51
|
def to_hash: -> {
|
|
52
52
|
client_secret: String,
|
|
53
53
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
54
|
-
metadata: ::
|
|
54
|
+
metadata: Dodopayments::Models::metadata,
|
|
55
55
|
payment_id: String,
|
|
56
56
|
total_amount: Integer,
|
|
57
57
|
discount_id: String?,
|