dodopayments 2.8.0 → 2.9.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 +17 -0
- data/README.md +1 -1
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/models/attach_product_entitlement.rb +22 -0
- data/lib/dodopayments/models/cancellation_feedback.rb +21 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +12 -1
- data/lib/dodopayments/models/checkout_session_request.rb +14 -1
- data/lib/dodopayments/models/credit_entitlements/credit_ledger_entry.rb +1 -0
- data/lib/dodopayments/models/credit_overage_reset_webhook_event.rb +52 -0
- data/lib/dodopayments/models/customer_list_entitlements_params.rb +20 -0
- data/lib/dodopayments/models/customer_list_entitlements_response.rb +105 -0
- data/lib/dodopayments/models/digital_product_delivery.rb +13 -15
- data/lib/dodopayments/models/digital_product_delivery_file.rb +32 -8
- data/lib/dodopayments/models/entitlement.rb +86 -0
- data/lib/dodopayments/models/entitlement_create_params.rb +54 -0
- data/lib/dodopayments/models/entitlement_delete_params.rb +20 -0
- data/lib/dodopayments/models/entitlement_grant_created_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_grant_delivered_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_grant_failed_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_grant_revoked_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_integration_type.rb +21 -0
- data/lib/dodopayments/models/entitlement_list_params.rb +55 -0
- data/lib/dodopayments/models/entitlement_retrieve_params.rb +20 -0
- data/lib/dodopayments/models/entitlement_update_params.rb +54 -0
- data/lib/dodopayments/models/entitlements/entitlement_grant.rb +172 -0
- data/lib/dodopayments/models/entitlements/file_delete_params.rb +28 -0
- data/lib/dodopayments/models/entitlements/file_upload_params.rb +22 -0
- data/lib/dodopayments/models/entitlements/file_upload_response.rb +23 -0
- data/lib/dodopayments/models/entitlements/grant_list_params.rb +68 -0
- data/lib/dodopayments/models/entitlements/grant_revoke_params.rb +28 -0
- data/lib/dodopayments/models/entitlements/license_key_grant.rb +40 -0
- data/lib/dodopayments/models/integration_config.rb +174 -0
- data/lib/dodopayments/models/integration_config_response.rb +238 -0
- data/lib/dodopayments/models/license_key_instance_list_params.rb +9 -1
- data/lib/dodopayments/models/one_time_product_cart_item.rb +15 -1
- data/lib/dodopayments/models/payment.rb +19 -3
- data/lib/dodopayments/models/payment_create_params.rb +23 -35
- data/lib/dodopayments/models/payment_create_response.rb +3 -33
- data/lib/dodopayments/models/product.rb +12 -217
- data/lib/dodopayments/models/product_create_params.rb +25 -6
- data/lib/dodopayments/models/product_entitlement_summary.rb +57 -0
- data/lib/dodopayments/models/product_list_response.rb +3 -218
- data/lib/dodopayments/models/product_update_params.rb +21 -7
- data/lib/dodopayments/models/scheduled_plan_change.rb +99 -0
- data/lib/dodopayments/models/subscription.rb +20 -102
- data/lib/dodopayments/models/subscription_create_params.rb +27 -37
- data/lib/dodopayments/models/subscription_create_response.rb +19 -3
- data/lib/dodopayments/models/subscription_list_response.rb +3 -103
- data/lib/dodopayments/models/subscription_update_params.rb +23 -1
- data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +11 -1
- data/lib/dodopayments/models/unwrap_webhook_event.rb +11 -1
- data/lib/dodopayments/models/update_subscription_plan_req.rb +10 -1
- data/lib/dodopayments/models/webhook_event_type.rb +1 -0
- data/lib/dodopayments/models/webhook_payload.rb +2 -154
- data/lib/dodopayments/models.rb +40 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +6 -2
- data/lib/dodopayments/resources/customers.rb +20 -0
- data/lib/dodopayments/resources/entitlements/files.rb +70 -0
- data/lib/dodopayments/resources/entitlements/grants.rb +78 -0
- data/lib/dodopayments/resources/entitlements.rb +153 -0
- data/lib/dodopayments/resources/license_key_instances.rb +3 -1
- data/lib/dodopayments/resources/payments.rb +6 -2
- data/lib/dodopayments/resources/products.rb +4 -4
- data/lib/dodopayments/resources/subscriptions.rb +20 -5
- data/lib/dodopayments/resources/webhooks.rb +2 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +30 -0
- data/rbi/dodopayments/client.rbi +3 -0
- data/rbi/dodopayments/models/attach_product_entitlement.rbi +35 -0
- data/rbi/dodopayments/models/cancellation_feedback.rbi +45 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +20 -3
- data/rbi/dodopayments/models/checkout_session_request.rbi +18 -0
- data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +5 -0
- data/rbi/dodopayments/models/credit_overage_reset_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/customer_list_entitlements_params.rbi +38 -0
- data/rbi/dodopayments/models/customer_list_entitlements_response.rbi +189 -0
- data/rbi/dodopayments/models/digital_product_delivery.rbi +10 -22
- data/rbi/dodopayments/models/digital_product_delivery_file.rbi +40 -8
- data/rbi/dodopayments/models/entitlement.rbi +112 -0
- data/rbi/dodopayments/models/entitlement_create_params.rbi +112 -0
- data/rbi/dodopayments/models/entitlement_delete_params.rbi +38 -0
- data/rbi/dodopayments/models/entitlement_grant_created_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/entitlement_grant_delivered_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/entitlement_grant_failed_webhook_event.rbi +102 -0
- data/rbi/dodopayments/models/entitlement_grant_revoked_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/entitlement_integration_type.rbi +44 -0
- data/rbi/dodopayments/models/entitlement_list_params.rbi +146 -0
- data/rbi/dodopayments/models/entitlement_retrieve_params.rbi +38 -0
- data/rbi/dodopayments/models/entitlement_update_params.rbi +111 -0
- data/rbi/dodopayments/models/entitlements/entitlement_grant.rbi +235 -0
- data/rbi/dodopayments/models/entitlements/file_delete_params.rbi +48 -0
- data/rbi/dodopayments/models/entitlements/file_upload_params.rbi +40 -0
- data/rbi/dodopayments/models/entitlements/file_upload_response.rbi +34 -0
- data/rbi/dodopayments/models/entitlements/grant_list_params.rbi +145 -0
- data/rbi/dodopayments/models/entitlements/grant_revoke_params.rbi +48 -0
- data/rbi/dodopayments/models/entitlements/license_key_grant.rbi +62 -0
- data/rbi/dodopayments/models/integration_config.rbi +296 -0
- data/rbi/dodopayments/models/integration_config_response.rbi +416 -0
- data/rbi/dodopayments/models/license_key_instance_list_params.rbi +8 -0
- data/rbi/dodopayments/models/one_time_product_cart_item.rbi +24 -3
- data/rbi/dodopayments/models/payment.rbi +31 -3
- data/rbi/dodopayments/models/payment_create_params.rbi +28 -56
- data/rbi/dodopayments/models/payment_create_response.rbi +3 -68
- data/rbi/dodopayments/models/product.rbi +12 -420
- data/rbi/dodopayments/models/product_create_params.rbi +43 -7
- data/rbi/dodopayments/models/product_entitlement_summary.rbi +88 -0
- data/rbi/dodopayments/models/product_list_response.rbi +3 -430
- data/rbi/dodopayments/models/product_update_params.rbi +35 -9
- data/rbi/dodopayments/models/scheduled_plan_change.rbi +141 -0
- data/rbi/dodopayments/models/subscription.rbi +24 -149
- data/rbi/dodopayments/models/subscription_create_params.rbi +36 -68
- data/rbi/dodopayments/models/subscription_create_response.rbi +47 -3
- data/rbi/dodopayments/models/subscription_list_response.rbi +4 -167
- data/rbi/dodopayments/models/subscription_update_params.rbi +27 -0
- data/rbi/dodopayments/models/unsafe_unwrap_webhook_event.rbi +5 -0
- data/rbi/dodopayments/models/unwrap_webhook_event.rbi +5 -0
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +10 -0
- data/rbi/dodopayments/models/webhook_event_type.rbi +5 -0
- data/rbi/dodopayments/models/webhook_payload.rbi +4 -197
- data/rbi/dodopayments/models.rbi +46 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +16 -0
- data/rbi/dodopayments/resources/customers.rbi +14 -0
- data/rbi/dodopayments/resources/entitlements/files.rbi +52 -0
- data/rbi/dodopayments/resources/entitlements/grants.rbi +65 -0
- data/rbi/dodopayments/resources/entitlements.rbi +143 -0
- data/rbi/dodopayments/resources/license_key_instances.rbi +3 -0
- data/rbi/dodopayments/resources/payments.rbi +10 -2
- data/rbi/dodopayments/resources/products.rbi +34 -7
- data/rbi/dodopayments/resources/subscriptions.rbi +31 -5
- data/rbi/dodopayments/resources/webhooks.rbi +10 -0
- data/sig/dodopayments/client.rbs +2 -0
- data/sig/dodopayments/models/attach_product_entitlement.rbs +13 -0
- data/sig/dodopayments/models/cancellation_feedback.rbs +28 -0
- data/sig/dodopayments/models/checkout_session_flags.rbs +10 -3
- data/sig/dodopayments/models/checkout_session_request.rbs +5 -0
- data/sig/dodopayments/models/credit_entitlements/credit_ledger_entry.rbs +2 -0
- data/sig/dodopayments/models/credit_overage_reset_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/customer_list_entitlements_params.rbs +23 -0
- data/sig/dodopayments/models/customer_list_entitlements_response.rbs +95 -0
- data/sig/dodopayments/models/digital_product_delivery.rbs +5 -5
- data/sig/dodopayments/models/digital_product_delivery_file.rbs +32 -5
- data/sig/dodopayments/models/entitlement.rbs +67 -0
- data/sig/dodopayments/models/entitlement_create_params.rbs +46 -0
- data/sig/dodopayments/models/entitlement_delete_params.rbs +23 -0
- data/sig/dodopayments/models/entitlement_grant_created_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_grant_delivered_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_grant_failed_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_grant_revoked_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_integration_type.rbs +28 -0
- data/sig/dodopayments/models/entitlement_list_params.rbs +69 -0
- data/sig/dodopayments/models/entitlement_retrieve_params.rbs +23 -0
- data/sig/dodopayments/models/entitlement_update_params.rbs +46 -0
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +134 -0
- data/sig/dodopayments/models/entitlements/file_delete_params.rbs +30 -0
- data/sig/dodopayments/models/entitlements/file_upload_params.rbs +25 -0
- data/sig/dodopayments/models/entitlements/file_upload_response.rbs +15 -0
- data/sig/dodopayments/models/entitlements/grant_list_params.rbs +71 -0
- data/sig/dodopayments/models/entitlements/grant_revoke_params.rbs +30 -0
- data/sig/dodopayments/models/entitlements/license_key_grant.rbs +37 -0
- data/sig/dodopayments/models/integration_config.rbs +147 -0
- data/sig/dodopayments/models/integration_config_response.rbs +206 -0
- data/sig/dodopayments/models/license_key_instance_list_params.rbs +10 -1
- data/sig/dodopayments/models/one_time_product_cart_item.rbs +14 -3
- data/sig/dodopayments/models/payment.rbs +16 -4
- data/sig/dodopayments/models/payment_create_params.rbs +16 -27
- data/sig/dodopayments/models/payment_create_response.rbs +4 -27
- data/sig/dodopayments/models/product.rbs +4 -205
- data/sig/dodopayments/models/product_create_params.rbs +4 -4
- data/sig/dodopayments/models/product_entitlement_summary.rbs +40 -0
- data/sig/dodopayments/models/product_list_response.rbs +4 -205
- data/sig/dodopayments/models/product_update_params.rbs +4 -4
- data/sig/dodopayments/models/scheduled_plan_change.rbs +73 -0
- data/sig/dodopayments/models/subscription.rbs +14 -74
- data/sig/dodopayments/models/subscription_create_params.rbs +16 -27
- data/sig/dodopayments/models/subscription_create_response.rbs +16 -4
- data/sig/dodopayments/models/subscription_list_response.rbs +4 -74
- data/sig/dodopayments/models/subscription_update_params.rbs +12 -0
- data/sig/dodopayments/models/unsafe_unwrap_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/unwrap_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +5 -0
- data/sig/dodopayments/models/webhook_event_type.rbs +2 -0
- data/sig/dodopayments/models/webhook_payload.rbs +8 -134
- data/sig/dodopayments/models.rbs +40 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -0
- data/sig/dodopayments/resources/customers.rbs +5 -0
- data/sig/dodopayments/resources/entitlements/files.rbs +20 -0
- data/sig/dodopayments/resources/entitlements/grants.rbs +24 -0
- data/sig/dodopayments/resources/entitlements.rbs +46 -0
- data/sig/dodopayments/resources/license_key_instances.rbs +1 -0
- data/sig/dodopayments/resources/payments.rbs +3 -1
- data/sig/dodopayments/resources/products.rbs +2 -2
- data/sig/dodopayments/resources/subscriptions.rbs +7 -1
- data/sig/dodopayments/resources/webhooks.rbs +10 -0
- metadata +92 -2
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type integration_config_response =
|
|
4
|
+
Dodopayments::IntegrationConfigResponse::GitHubConfig
|
|
5
|
+
| Dodopayments::IntegrationConfigResponse::DiscordConfig
|
|
6
|
+
| Dodopayments::IntegrationConfigResponse::TelegramConfig
|
|
7
|
+
| Dodopayments::IntegrationConfigResponse::FigmaConfig
|
|
8
|
+
| Dodopayments::IntegrationConfigResponse::FramerConfig
|
|
9
|
+
| Dodopayments::IntegrationConfigResponse::NotionConfig
|
|
10
|
+
| Dodopayments::IntegrationConfigResponse::DigitalFilesConfig
|
|
11
|
+
| Dodopayments::IntegrationConfigResponse::LicenseKeyConfig
|
|
12
|
+
|
|
13
|
+
module IntegrationConfigResponse
|
|
14
|
+
extend Dodopayments::Internal::Type::Union
|
|
15
|
+
|
|
16
|
+
type github_config = { permission: String, target_id: String }
|
|
17
|
+
|
|
18
|
+
class GitHubConfig < Dodopayments::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor permission: String
|
|
20
|
+
|
|
21
|
+
attr_accessor target_id: String
|
|
22
|
+
|
|
23
|
+
def initialize: (permission: String, target_id: String) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { permission: String, target_id: String }
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
type discord_config = { guild_id: String, role_id: String? }
|
|
29
|
+
|
|
30
|
+
class DiscordConfig < Dodopayments::Internal::Type::BaseModel
|
|
31
|
+
attr_accessor guild_id: String
|
|
32
|
+
|
|
33
|
+
attr_accessor role_id: String?
|
|
34
|
+
|
|
35
|
+
def initialize: (guild_id: String, ?role_id: String?) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> { guild_id: String, role_id: String? }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
type telegram_config = { chat_id: String }
|
|
41
|
+
|
|
42
|
+
class TelegramConfig < Dodopayments::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor chat_id: String
|
|
44
|
+
|
|
45
|
+
def initialize: (chat_id: String) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { chat_id: String }
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
type figma_config = { figma_file_id: String }
|
|
51
|
+
|
|
52
|
+
class FigmaConfig < Dodopayments::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor figma_file_id: String
|
|
54
|
+
|
|
55
|
+
def initialize: (figma_file_id: String) -> void
|
|
56
|
+
|
|
57
|
+
def to_hash: -> { figma_file_id: String }
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
type framer_config = { framer_template_id: String }
|
|
61
|
+
|
|
62
|
+
class FramerConfig < Dodopayments::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor framer_template_id: String
|
|
64
|
+
|
|
65
|
+
def initialize: (framer_template_id: String) -> void
|
|
66
|
+
|
|
67
|
+
def to_hash: -> { framer_template_id: String }
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
type notion_config = { notion_template_id: String }
|
|
71
|
+
|
|
72
|
+
class NotionConfig < Dodopayments::Internal::Type::BaseModel
|
|
73
|
+
attr_accessor notion_template_id: String
|
|
74
|
+
|
|
75
|
+
def initialize: (notion_template_id: String) -> void
|
|
76
|
+
|
|
77
|
+
def to_hash: -> { notion_template_id: String }
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
type digital_files_config =
|
|
81
|
+
{
|
|
82
|
+
digital_files: Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
class DigitalFilesConfig < Dodopayments::Internal::Type::BaseModel
|
|
86
|
+
attr_accessor digital_files: Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles
|
|
87
|
+
|
|
88
|
+
def initialize: (
|
|
89
|
+
digital_files: Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles
|
|
90
|
+
) -> void
|
|
91
|
+
|
|
92
|
+
def to_hash: -> {
|
|
93
|
+
digital_files: Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type digital_files =
|
|
97
|
+
{
|
|
98
|
+
files: ::Array[Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles::File],
|
|
99
|
+
external_url: String?,
|
|
100
|
+
instructions: String?
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
class DigitalFiles < Dodopayments::Internal::Type::BaseModel
|
|
104
|
+
attr_accessor files: ::Array[Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles::File]
|
|
105
|
+
|
|
106
|
+
attr_accessor external_url: String?
|
|
107
|
+
|
|
108
|
+
attr_accessor instructions: String?
|
|
109
|
+
|
|
110
|
+
def initialize: (
|
|
111
|
+
files: ::Array[Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles::File],
|
|
112
|
+
?external_url: String?,
|
|
113
|
+
?instructions: String?
|
|
114
|
+
) -> void
|
|
115
|
+
|
|
116
|
+
def to_hash: -> {
|
|
117
|
+
files: ::Array[Dodopayments::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles::File],
|
|
118
|
+
external_url: String?,
|
|
119
|
+
instructions: String?
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
type file =
|
|
123
|
+
{
|
|
124
|
+
download_url: String,
|
|
125
|
+
expires_in: Integer,
|
|
126
|
+
file_id: String,
|
|
127
|
+
filename: String,
|
|
128
|
+
source: String,
|
|
129
|
+
content_type: String?,
|
|
130
|
+
file_size: Integer?
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
class File < Dodopayments::Internal::Type::BaseModel
|
|
134
|
+
attr_accessor download_url: String
|
|
135
|
+
|
|
136
|
+
attr_accessor expires_in: Integer
|
|
137
|
+
|
|
138
|
+
attr_accessor file_id: String
|
|
139
|
+
|
|
140
|
+
attr_accessor filename: String
|
|
141
|
+
|
|
142
|
+
attr_accessor source: String
|
|
143
|
+
|
|
144
|
+
attr_accessor content_type: String?
|
|
145
|
+
|
|
146
|
+
attr_accessor file_size: Integer?
|
|
147
|
+
|
|
148
|
+
def initialize: (
|
|
149
|
+
download_url: String,
|
|
150
|
+
expires_in: Integer,
|
|
151
|
+
file_id: String,
|
|
152
|
+
filename: String,
|
|
153
|
+
source: String,
|
|
154
|
+
?content_type: String?,
|
|
155
|
+
?file_size: Integer?
|
|
156
|
+
) -> void
|
|
157
|
+
|
|
158
|
+
def to_hash: -> {
|
|
159
|
+
download_url: String,
|
|
160
|
+
expires_in: Integer,
|
|
161
|
+
file_id: String,
|
|
162
|
+
filename: String,
|
|
163
|
+
source: String,
|
|
164
|
+
content_type: String?,
|
|
165
|
+
file_size: Integer?
|
|
166
|
+
}
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
type license_key_config =
|
|
172
|
+
{
|
|
173
|
+
activation_message: String?,
|
|
174
|
+
activations_limit: Integer?,
|
|
175
|
+
duration_count: Integer?,
|
|
176
|
+
duration_interval: Dodopayments::Models::time_interval?
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
class LicenseKeyConfig < Dodopayments::Internal::Type::BaseModel
|
|
180
|
+
attr_accessor activation_message: String?
|
|
181
|
+
|
|
182
|
+
attr_accessor activations_limit: Integer?
|
|
183
|
+
|
|
184
|
+
attr_accessor duration_count: Integer?
|
|
185
|
+
|
|
186
|
+
attr_accessor duration_interval: Dodopayments::Models::time_interval?
|
|
187
|
+
|
|
188
|
+
def initialize: (
|
|
189
|
+
?activation_message: String?,
|
|
190
|
+
?activations_limit: Integer?,
|
|
191
|
+
?duration_count: Integer?,
|
|
192
|
+
?duration_interval: Dodopayments::Models::time_interval?
|
|
193
|
+
) -> void
|
|
194
|
+
|
|
195
|
+
def to_hash: -> {
|
|
196
|
+
activation_message: String?,
|
|
197
|
+
activations_limit: Integer?,
|
|
198
|
+
duration_count: Integer?,
|
|
199
|
+
duration_interval: Dodopayments::Models::time_interval?
|
|
200
|
+
}
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
def self?.variants: -> ::Array[Dodopayments::Models::integration_config_response]
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type license_key_instance_list_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
grant_id: String?,
|
|
6
|
+
license_key_id: String?,
|
|
7
|
+
page_number: Integer?,
|
|
8
|
+
page_size: Integer?
|
|
9
|
+
}
|
|
5
10
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class LicenseKeyInstanceListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
13
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
14
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
15
|
|
|
16
|
+
attr_accessor grant_id: String?
|
|
17
|
+
|
|
11
18
|
attr_accessor license_key_id: String?
|
|
12
19
|
|
|
13
20
|
attr_accessor page_number: Integer?
|
|
@@ -15,6 +22,7 @@ module Dodopayments
|
|
|
15
22
|
attr_accessor page_size: Integer?
|
|
16
23
|
|
|
17
24
|
def initialize: (
|
|
25
|
+
?grant_id: String?,
|
|
18
26
|
?license_key_id: String?,
|
|
19
27
|
?page_number: Integer?,
|
|
20
28
|
?page_size: Integer?,
|
|
@@ -22,6 +30,7 @@ module Dodopayments
|
|
|
22
30
|
) -> void
|
|
23
31
|
|
|
24
32
|
def to_hash: -> {
|
|
33
|
+
grant_id: String?,
|
|
25
34
|
license_key_id: String?,
|
|
26
35
|
page_number: Integer?,
|
|
27
36
|
page_size: Integer?,
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
|
-
type one_time_product_cart_item =
|
|
3
|
+
type one_time_product_cart_item =
|
|
4
|
+
{ product_id: String, quantity: Integer, amount: Integer? }
|
|
4
5
|
|
|
5
6
|
class OneTimeProductCartItem < Dodopayments::Internal::Type::BaseModel
|
|
6
7
|
attr_accessor product_id: String
|
|
7
8
|
|
|
8
9
|
attr_accessor quantity: Integer
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor amount: Integer?
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def initialize: (
|
|
14
|
+
product_id: String,
|
|
15
|
+
quantity: Integer,
|
|
16
|
+
?amount: Integer?
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
product_id: String,
|
|
21
|
+
quantity: Integer,
|
|
22
|
+
amount: Integer?
|
|
23
|
+
}
|
|
13
24
|
end
|
|
14
25
|
end
|
|
15
26
|
end
|
|
@@ -31,7 +31,7 @@ module Dodopayments
|
|
|
31
31
|
payment_link: String?,
|
|
32
32
|
payment_method: String?,
|
|
33
33
|
payment_method_type: String?,
|
|
34
|
-
product_cart: ::Array[Dodopayments::
|
|
34
|
+
product_cart: ::Array[Dodopayments::Payment::ProductCart]?,
|
|
35
35
|
refund_status: Dodopayments::Models::payment_refund_status?,
|
|
36
36
|
settlement_tax: Integer?,
|
|
37
37
|
status: Dodopayments::Models::intent_status?,
|
|
@@ -99,7 +99,7 @@ module Dodopayments
|
|
|
99
99
|
|
|
100
100
|
attr_accessor payment_method_type: String?
|
|
101
101
|
|
|
102
|
-
attr_accessor product_cart: ::Array[Dodopayments::
|
|
102
|
+
attr_accessor product_cart: ::Array[Dodopayments::Payment::ProductCart]?
|
|
103
103
|
|
|
104
104
|
attr_accessor refund_status: Dodopayments::Models::payment_refund_status?
|
|
105
105
|
|
|
@@ -143,7 +143,7 @@ module Dodopayments
|
|
|
143
143
|
?payment_link: String?,
|
|
144
144
|
?payment_method: String?,
|
|
145
145
|
?payment_method_type: String?,
|
|
146
|
-
?product_cart: ::Array[Dodopayments::
|
|
146
|
+
?product_cart: ::Array[Dodopayments::Payment::ProductCart]?,
|
|
147
147
|
?refund_status: Dodopayments::Models::payment_refund_status?,
|
|
148
148
|
?settlement_tax: Integer?,
|
|
149
149
|
?status: Dodopayments::Models::intent_status?,
|
|
@@ -182,7 +182,7 @@ module Dodopayments
|
|
|
182
182
|
payment_link: String?,
|
|
183
183
|
payment_method: String?,
|
|
184
184
|
payment_method_type: String?,
|
|
185
|
-
product_cart: ::Array[Dodopayments::
|
|
185
|
+
product_cart: ::Array[Dodopayments::Payment::ProductCart]?,
|
|
186
186
|
refund_status: Dodopayments::Models::payment_refund_status?,
|
|
187
187
|
settlement_tax: Integer?,
|
|
188
188
|
status: Dodopayments::Models::intent_status?,
|
|
@@ -190,6 +190,18 @@ module Dodopayments
|
|
|
190
190
|
tax: Integer?,
|
|
191
191
|
updated_at: Time?
|
|
192
192
|
}
|
|
193
|
+
|
|
194
|
+
type product_cart = { product_id: String, quantity: Integer }
|
|
195
|
+
|
|
196
|
+
class ProductCart < Dodopayments::Internal::Type::BaseModel
|
|
197
|
+
attr_accessor product_id: String
|
|
198
|
+
|
|
199
|
+
attr_accessor quantity: Integer
|
|
200
|
+
|
|
201
|
+
def initialize: (product_id: String, quantity: Integer) -> void
|
|
202
|
+
|
|
203
|
+
def to_hash: -> { product_id: String, quantity: Integer }
|
|
204
|
+
end
|
|
193
205
|
end
|
|
194
206
|
end
|
|
195
207
|
end
|
|
@@ -4,7 +4,8 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
billing: Dodopayments::BillingAddress,
|
|
6
6
|
customer: Dodopayments::Models::customer_request,
|
|
7
|
-
product_cart: ::Array[Dodopayments::
|
|
7
|
+
product_cart: ::Array[Dodopayments::OneTimeProductCartItem],
|
|
8
|
+
adaptive_currency_fees_inclusive: bool?,
|
|
8
9
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
9
10
|
billing_currency: Dodopayments::Models::currency?,
|
|
10
11
|
discount_code: String?,
|
|
@@ -13,6 +14,7 @@ module Dodopayments
|
|
|
13
14
|
payment_link: bool?,
|
|
14
15
|
payment_method_id: String?,
|
|
15
16
|
redirect_immediately: bool,
|
|
17
|
+
require_phone_number: bool,
|
|
16
18
|
return_url: String?,
|
|
17
19
|
short_link: bool?,
|
|
18
20
|
show_saved_payment_methods: bool,
|
|
@@ -28,7 +30,9 @@ module Dodopayments
|
|
|
28
30
|
|
|
29
31
|
attr_accessor customer: Dodopayments::Models::customer_request
|
|
30
32
|
|
|
31
|
-
attr_accessor product_cart: ::Array[Dodopayments::
|
|
33
|
+
attr_accessor product_cart: ::Array[Dodopayments::OneTimeProductCartItem]
|
|
34
|
+
|
|
35
|
+
attr_accessor adaptive_currency_fees_inclusive: bool?
|
|
32
36
|
|
|
33
37
|
attr_accessor allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?
|
|
34
38
|
|
|
@@ -50,6 +54,10 @@ module Dodopayments
|
|
|
50
54
|
|
|
51
55
|
def redirect_immediately=: (bool) -> bool
|
|
52
56
|
|
|
57
|
+
attr_reader require_phone_number: bool?
|
|
58
|
+
|
|
59
|
+
def require_phone_number=: (bool) -> bool
|
|
60
|
+
|
|
53
61
|
attr_accessor return_url: String?
|
|
54
62
|
|
|
55
63
|
attr_accessor short_link: bool?
|
|
@@ -63,7 +71,8 @@ module Dodopayments
|
|
|
63
71
|
def initialize: (
|
|
64
72
|
billing: Dodopayments::BillingAddress,
|
|
65
73
|
customer: Dodopayments::Models::customer_request,
|
|
66
|
-
product_cart: ::Array[Dodopayments::
|
|
74
|
+
product_cart: ::Array[Dodopayments::OneTimeProductCartItem],
|
|
75
|
+
?adaptive_currency_fees_inclusive: bool?,
|
|
67
76
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
68
77
|
?billing_currency: Dodopayments::Models::currency?,
|
|
69
78
|
?discount_code: String?,
|
|
@@ -72,6 +81,7 @@ module Dodopayments
|
|
|
72
81
|
?payment_link: bool?,
|
|
73
82
|
?payment_method_id: String?,
|
|
74
83
|
?redirect_immediately: bool,
|
|
84
|
+
?require_phone_number: bool,
|
|
75
85
|
?return_url: String?,
|
|
76
86
|
?short_link: bool?,
|
|
77
87
|
?show_saved_payment_methods: bool,
|
|
@@ -82,7 +92,8 @@ module Dodopayments
|
|
|
82
92
|
def to_hash: -> {
|
|
83
93
|
billing: Dodopayments::BillingAddress,
|
|
84
94
|
customer: Dodopayments::Models::customer_request,
|
|
85
|
-
product_cart: ::Array[Dodopayments::
|
|
95
|
+
product_cart: ::Array[Dodopayments::OneTimeProductCartItem],
|
|
96
|
+
adaptive_currency_fees_inclusive: bool?,
|
|
86
97
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
87
98
|
billing_currency: Dodopayments::Models::currency?,
|
|
88
99
|
discount_code: String?,
|
|
@@ -91,35 +102,13 @@ module Dodopayments
|
|
|
91
102
|
payment_link: bool?,
|
|
92
103
|
payment_method_id: String?,
|
|
93
104
|
redirect_immediately: bool,
|
|
105
|
+
require_phone_number: bool,
|
|
94
106
|
return_url: String?,
|
|
95
107
|
short_link: bool?,
|
|
96
108
|
show_saved_payment_methods: bool,
|
|
97
109
|
tax_id: String?,
|
|
98
110
|
request_options: Dodopayments::RequestOptions
|
|
99
111
|
}
|
|
100
|
-
|
|
101
|
-
type product_cart =
|
|
102
|
-
{ product_id: String, quantity: Integer, amount: Integer? }
|
|
103
|
-
|
|
104
|
-
class ProductCart < Dodopayments::Internal::Type::BaseModel
|
|
105
|
-
attr_accessor product_id: String
|
|
106
|
-
|
|
107
|
-
attr_accessor quantity: Integer
|
|
108
|
-
|
|
109
|
-
attr_accessor amount: Integer?
|
|
110
|
-
|
|
111
|
-
def initialize: (
|
|
112
|
-
product_id: String,
|
|
113
|
-
quantity: Integer,
|
|
114
|
-
?amount: Integer?
|
|
115
|
-
) -> void
|
|
116
|
-
|
|
117
|
-
def to_hash: -> {
|
|
118
|
-
product_id: String,
|
|
119
|
-
quantity: Integer,
|
|
120
|
-
amount: Integer?
|
|
121
|
-
}
|
|
122
|
-
end
|
|
123
112
|
end
|
|
124
113
|
end
|
|
125
114
|
end
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
discount_id: String?,
|
|
11
11
|
expires_on: Time?,
|
|
12
12
|
payment_link: String?,
|
|
13
|
-
product_cart: ::Array[Dodopayments::
|
|
13
|
+
product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
class PaymentCreateResponse < Dodopayments::Internal::Type::BaseModel
|
|
@@ -30,7 +30,7 @@ module Dodopayments
|
|
|
30
30
|
|
|
31
31
|
attr_accessor payment_link: String?
|
|
32
32
|
|
|
33
|
-
attr_accessor product_cart: ::Array[Dodopayments::
|
|
33
|
+
attr_accessor product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
34
34
|
|
|
35
35
|
def initialize: (
|
|
36
36
|
client_secret: String,
|
|
@@ -41,7 +41,7 @@ module Dodopayments
|
|
|
41
41
|
?discount_id: String?,
|
|
42
42
|
?expires_on: Time?,
|
|
43
43
|
?payment_link: String?,
|
|
44
|
-
?product_cart: ::Array[Dodopayments::
|
|
44
|
+
?product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
45
45
|
) -> void
|
|
46
46
|
|
|
47
47
|
def to_hash: -> {
|
|
@@ -53,31 +53,8 @@ module Dodopayments
|
|
|
53
53
|
discount_id: String?,
|
|
54
54
|
expires_on: Time?,
|
|
55
55
|
payment_link: String?,
|
|
56
|
-
product_cart: ::Array[Dodopayments::
|
|
56
|
+
product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
type product_cart =
|
|
60
|
-
{ product_id: String, quantity: Integer, amount: Integer? }
|
|
61
|
-
|
|
62
|
-
class ProductCart < Dodopayments::Internal::Type::BaseModel
|
|
63
|
-
attr_accessor product_id: String
|
|
64
|
-
|
|
65
|
-
attr_accessor quantity: Integer
|
|
66
|
-
|
|
67
|
-
attr_accessor amount: Integer?
|
|
68
|
-
|
|
69
|
-
def initialize: (
|
|
70
|
-
product_id: String,
|
|
71
|
-
quantity: Integer,
|
|
72
|
-
?amount: Integer?
|
|
73
|
-
) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> {
|
|
76
|
-
product_id: String,
|
|
77
|
-
quantity: Integer,
|
|
78
|
-
amount: Integer?
|
|
79
|
-
}
|
|
80
|
-
end
|
|
81
58
|
end
|
|
82
59
|
end
|
|
83
60
|
end
|