dodopayments 2.25.0 → 2.27.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 +16 -0
- data/README.md +1 -1
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/models/balance_ledger_entry.rb +7 -1
- data/lib/dodopayments/models/blocklist/block_by_customer_id.rb +18 -0
- data/lib/dodopayments/models/blocklist/block_by_email.rb +18 -0
- data/lib/dodopayments/models/blocklist/block_identifier.rb +21 -0
- data/lib/dodopayments/models/blocklist/blocked_customer.rb +128 -0
- data/lib/dodopayments/models/blocklist/blocked_customer_source.rb +22 -0
- data/lib/dodopayments/models/blocklist/create_blocked_customer_request.rb +66 -0
- data/lib/dodopayments/models/blocklist/customer_create_params.rb +16 -0
- data/lib/dodopayments/models/blocklist/customer_delete_params.rb +22 -0
- data/lib/dodopayments/models/blocklist/customer_list_params.rb +64 -0
- data/lib/dodopayments/models/blocklist/customer_retrieve_params.rb +22 -0
- data/lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb +44 -0
- data/lib/dodopayments/models/blocklist/customers/note_create_params.rb +24 -0
- data/lib/dodopayments/models/blocklist/customers/note_request.rb +19 -0
- data/lib/dodopayments/models/blocklist/customers/note_update_params.rb +30 -0
- data/lib/dodopayments/models/customer.rb +22 -1
- data/lib/dodopayments/models/dunning_recovered_webhook_event.rb +1 -0
- data/lib/dodopayments/models/dunning_started_webhook_event.rb +1 -0
- data/lib/dodopayments/models/entitlements/license_key_grant.rb +24 -3
- data/lib/dodopayments/models/manual_retry.rb +76 -0
- data/lib/dodopayments/models/manual_retry_state.rb +50 -0
- data/lib/dodopayments/models/payment_retrieve_retry_state_params.rb +20 -0
- data/lib/dodopayments/models/payment_retry_params.rb +20 -0
- data/lib/dodopayments/models/price.rb +34 -30
- data/lib/dodopayments/models/subscription_active_webhook_event.rb +32 -4
- data/lib/dodopayments/models/subscription_cancelled_webhook_event.rb +33 -4
- data/lib/dodopayments/models/subscription_change_plan_response.rb +47 -0
- data/lib/dodopayments/models/subscription_expired_webhook_event.rb +32 -4
- data/lib/dodopayments/models/subscription_failed_webhook_event.rb +32 -4
- data/lib/dodopayments/models/subscription_list_params.rb +1 -0
- data/lib/dodopayments/models/subscription_on_hold_webhook_event.rb +32 -4
- data/lib/dodopayments/models/subscription_past_due_webhook_event.rb +68 -0
- data/lib/dodopayments/models/subscription_paused_webhook_event.rb +32 -4
- data/lib/dodopayments/models/subscription_plan_changed_webhook_event.rb +33 -4
- data/lib/dodopayments/models/subscription_renewed_webhook_event.rb +32 -4
- data/lib/dodopayments/models/subscription_status.rb +1 -0
- data/lib/dodopayments/models/subscription_unpaused_webhook_event.rb +32 -4
- data/lib/dodopayments/models/subscription_update_params.rb +17 -4
- data/lib/dodopayments/models/subscription_update_payment_method_webhook_event.rb +34 -4
- data/lib/dodopayments/models/subscription_updated_webhook_event.rb +32 -4
- data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +3 -1
- data/lib/dodopayments/models/unwrap_webhook_event.rb +3 -1
- data/lib/dodopayments/models/update_subscription_plan_req.rb +35 -1
- data/lib/dodopayments/models/webhook_event_type.rb +1 -0
- data/lib/dodopayments/models/webhook_payload.rb +19 -1
- data/lib/dodopayments/models.rb +12 -0
- data/lib/dodopayments/resources/blocklist/customers/notes.rb +68 -0
- data/lib/dodopayments/resources/blocklist/customers.rb +107 -0
- data/lib/dodopayments/resources/blocklist.rb +18 -0
- data/lib/dodopayments/resources/payments.rb +36 -0
- data/lib/dodopayments/resources/subscriptions.rb +14 -6
- data/lib/dodopayments/resources/webhooks.rb +2 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +24 -1
- data/rbi/dodopayments/client.rbi +3 -0
- data/rbi/dodopayments/models/balance_ledger_entry.rbi +6 -0
- data/rbi/dodopayments/models/blocklist/block_by_customer_id.rbi +32 -0
- data/rbi/dodopayments/models/blocklist/block_by_email.rbi +32 -0
- data/rbi/dodopayments/models/blocklist/block_identifier.rbi +30 -0
- data/rbi/dodopayments/models/blocklist/blocked_customer.rbi +161 -0
- data/rbi/dodopayments/models/blocklist/blocked_customer_source.rbi +55 -0
- data/rbi/dodopayments/models/blocklist/create_blocked_customer_request.rbi +143 -0
- data/rbi/dodopayments/models/blocklist/customer_create_params.rbi +34 -0
- data/rbi/dodopayments/models/blocklist/customer_delete_params.rbi +40 -0
- data/rbi/dodopayments/models/blocklist/customer_list_params.rbi +88 -0
- data/rbi/dodopayments/models/blocklist/customer_retrieve_params.rbi +40 -0
- data/rbi/dodopayments/models/blocklist/customers/blocked_customer_note.rbi +66 -0
- data/rbi/dodopayments/models/blocklist/customers/note_create_params.rbi +45 -0
- data/rbi/dodopayments/models/blocklist/customers/note_request.rbi +30 -0
- data/rbi/dodopayments/models/blocklist/customers/note_update_params.rbi +50 -0
- data/rbi/dodopayments/models/customer.rbi +20 -0
- data/rbi/dodopayments/models/dunning_recovered_webhook_event.rbi +5 -0
- data/rbi/dodopayments/models/dunning_started_webhook_event.rbi +5 -0
- data/rbi/dodopayments/models/entitlements/license_key_grant.rbi +22 -2
- data/rbi/dodopayments/models/manual_retry.rbi +93 -0
- data/rbi/dodopayments/models/manual_retry_state.rbi +65 -0
- data/rbi/dodopayments/models/payment_retrieve_retry_state_params.rbi +38 -0
- data/rbi/dodopayments/models/payment_retry_params.rbi +38 -0
- data/rbi/dodopayments/models/price.rbi +47 -30
- data/rbi/dodopayments/models/subscription_active_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_change_plan_response.rbi +69 -0
- data/rbi/dodopayments/models/subscription_expired_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_failed_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_list_params.rbi +5 -0
- data/rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_past_due_webhook_event.rbi +114 -0
- data/rbi/dodopayments/models/subscription_paused_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_renewed_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_status.rbi +2 -0
- data/rbi/dodopayments/models/subscription_unpaused_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/subscription_update_params.rbi +33 -4
- data/rbi/dodopayments/models/subscription_update_payment_method_webhook_event.rbi +58 -6
- data/rbi/dodopayments/models/subscription_updated_webhook_event.rbi +53 -6
- data/rbi/dodopayments/models/unsafe_unwrap_webhook_event.rbi +1 -0
- data/rbi/dodopayments/models/unwrap_webhook_event.rbi +1 -0
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +58 -0
- data/rbi/dodopayments/models/webhook_event_type.rbi +5 -0
- data/rbi/dodopayments/models/webhook_payload.rbi +37 -3
- data/rbi/dodopayments/models.rbi +14 -0
- data/rbi/dodopayments/resources/blocklist/customers/notes.rbi +50 -0
- data/rbi/dodopayments/resources/blocklist/customers.rbi +88 -0
- data/rbi/dodopayments/resources/blocklist.rbi +15 -0
- data/rbi/dodopayments/resources/payments.rbi +26 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +63 -3
- data/rbi/dodopayments/resources/webhooks.rbi +2 -0
- data/sig/dodopayments/client.rbs +2 -0
- data/sig/dodopayments/models/balance_ledger_entry.rbs +5 -0
- data/sig/dodopayments/models/blocklist/block_by_customer_id.rbs +15 -0
- data/sig/dodopayments/models/blocklist/block_by_email.rbs +15 -0
- data/sig/dodopayments/models/blocklist/block_identifier.rbs +15 -0
- data/sig/dodopayments/models/blocklist/blocked_customer.rbs +87 -0
- data/sig/dodopayments/models/blocklist/blocked_customer_source.rbs +20 -0
- data/sig/dodopayments/models/blocklist/create_blocked_customer_request.rbs +71 -0
- data/sig/dodopayments/models/blocklist/customer_create_params.rbs +17 -0
- data/sig/dodopayments/models/blocklist/customer_delete_params.rbs +25 -0
- data/sig/dodopayments/models/blocklist/customer_list_params.rbs +53 -0
- data/sig/dodopayments/models/blocklist/customer_retrieve_params.rbs +25 -0
- data/sig/dodopayments/models/blocklist/customers/blocked_customer_note.rbs +44 -0
- data/sig/dodopayments/models/blocklist/customers/note_create_params.rbs +30 -0
- data/sig/dodopayments/models/blocklist/customers/note_request.rbs +17 -0
- data/sig/dodopayments/models/blocklist/customers/note_update_params.rbs +36 -0
- data/sig/dodopayments/models/customer.rbs +10 -0
- data/sig/dodopayments/models/dunning_recovered_webhook_event.rbs +2 -1
- data/sig/dodopayments/models/dunning_started_webhook_event.rbs +2 -1
- data/sig/dodopayments/models/entitlements/license_key_grant.rbs +10 -0
- data/sig/dodopayments/models/manual_retry.rbs +55 -0
- data/sig/dodopayments/models/manual_retry_state.rbs +40 -0
- data/sig/dodopayments/models/payment_retrieve_retry_state_params.rbs +23 -0
- data/sig/dodopayments/models/payment_retry_params.rbs +23 -0
- data/sig/dodopayments/models/price.rbs +21 -15
- data/sig/dodopayments/models/subscription_active_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_cancelled_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_change_plan_response.rbs +35 -0
- data/sig/dodopayments/models/subscription_expired_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_failed_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_list_params.rbs +2 -0
- data/sig/dodopayments/models/subscription_on_hold_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_past_due_webhook_event.rbs +47 -0
- data/sig/dodopayments/models/subscription_paused_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_renewed_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_status.rbs +9 -1
- data/sig/dodopayments/models/subscription_unpaused_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_update_params.rbs +2 -0
- data/sig/dodopayments/models/subscription_update_payment_method_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/subscription_updated_webhook_event.rbs +16 -4
- data/sig/dodopayments/models/unsafe_unwrap_webhook_event.rbs +1 -0
- data/sig/dodopayments/models/unwrap_webhook_event.rbs +1 -0
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +14 -0
- data/sig/dodopayments/models/webhook_event_type.rbs +2 -0
- data/sig/dodopayments/models/webhook_payload.rbs +16 -4
- data/sig/dodopayments/models.rbs +12 -0
- data/sig/dodopayments/resources/blocklist/customers/notes.rbs +24 -0
- data/sig/dodopayments/resources/blocklist/customers.rbs +36 -0
- data/sig/dodopayments/resources/blocklist.rbs +9 -0
- data/sig/dodopayments/resources/payments.rbs +10 -0
- data/sig/dodopayments/resources/subscriptions.rbs +5 -1
- data/sig/dodopayments/resources/webhooks.rbs +2 -0
- metadata +71 -2
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
type blocked_customer =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
customer_email: String,
|
|
9
|
+
customer_id: String,
|
|
10
|
+
customer_name: String,
|
|
11
|
+
identifier: String,
|
|
12
|
+
source: Dodopayments::Models::Blocklist::blocked_customer_source,
|
|
13
|
+
blocked_by_email: String?,
|
|
14
|
+
cancelled_subscription_ids: ::Array[String]?,
|
|
15
|
+
notes: ::Array[Dodopayments::Blocklist::Customers::BlockedCustomerNote]?,
|
|
16
|
+
reason: String?,
|
|
17
|
+
remaining_subscription_ids: ::Array[String]?,
|
|
18
|
+
subscriptions_swept: bool?,
|
|
19
|
+
unblocked_at: Time?
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class BlockedCustomer < Dodopayments::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor id: String
|
|
24
|
+
|
|
25
|
+
attr_accessor created_at: Time
|
|
26
|
+
|
|
27
|
+
attr_accessor customer_email: String
|
|
28
|
+
|
|
29
|
+
attr_accessor customer_id: String
|
|
30
|
+
|
|
31
|
+
attr_accessor customer_name: String
|
|
32
|
+
|
|
33
|
+
attr_accessor identifier: String
|
|
34
|
+
|
|
35
|
+
attr_accessor source: Dodopayments::Models::Blocklist::blocked_customer_source
|
|
36
|
+
|
|
37
|
+
attr_accessor blocked_by_email: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor cancelled_subscription_ids: ::Array[String]?
|
|
40
|
+
|
|
41
|
+
attr_accessor notes: ::Array[Dodopayments::Blocklist::Customers::BlockedCustomerNote]?
|
|
42
|
+
|
|
43
|
+
attr_accessor reason: String?
|
|
44
|
+
|
|
45
|
+
attr_accessor remaining_subscription_ids: ::Array[String]?
|
|
46
|
+
|
|
47
|
+
attr_accessor subscriptions_swept: bool?
|
|
48
|
+
|
|
49
|
+
attr_accessor unblocked_at: Time?
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
id: String,
|
|
53
|
+
created_at: Time,
|
|
54
|
+
customer_email: String,
|
|
55
|
+
customer_id: String,
|
|
56
|
+
customer_name: String,
|
|
57
|
+
identifier: String,
|
|
58
|
+
source: Dodopayments::Models::Blocklist::blocked_customer_source,
|
|
59
|
+
?blocked_by_email: String?,
|
|
60
|
+
?cancelled_subscription_ids: ::Array[String]?,
|
|
61
|
+
?notes: ::Array[Dodopayments::Blocklist::Customers::BlockedCustomerNote]?,
|
|
62
|
+
?reason: String?,
|
|
63
|
+
?remaining_subscription_ids: ::Array[String]?,
|
|
64
|
+
?subscriptions_swept: bool?,
|
|
65
|
+
?unblocked_at: Time?
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
id: String,
|
|
70
|
+
created_at: Time,
|
|
71
|
+
customer_email: String,
|
|
72
|
+
customer_id: String,
|
|
73
|
+
customer_name: String,
|
|
74
|
+
identifier: String,
|
|
75
|
+
source: Dodopayments::Models::Blocklist::blocked_customer_source,
|
|
76
|
+
blocked_by_email: String?,
|
|
77
|
+
cancelled_subscription_ids: ::Array[String]?,
|
|
78
|
+
notes: ::Array[Dodopayments::Blocklist::Customers::BlockedCustomerNote]?,
|
|
79
|
+
reason: String?,
|
|
80
|
+
remaining_subscription_ids: ::Array[String]?,
|
|
81
|
+
subscriptions_swept: bool?,
|
|
82
|
+
unblocked_at: Time?
|
|
83
|
+
}
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
type blocked_customer_source =
|
|
5
|
+
:blocklist_page | :customer_page | :payment_page | :dispute_page | :api
|
|
6
|
+
|
|
7
|
+
module BlockedCustomerSource
|
|
8
|
+
extend Dodopayments::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
BLOCKLIST_PAGE: :blocklist_page
|
|
11
|
+
CUSTOMER_PAGE: :customer_page
|
|
12
|
+
PAYMENT_PAGE: :payment_page
|
|
13
|
+
DISPUTE_PAGE: :dispute_page
|
|
14
|
+
API: :api
|
|
15
|
+
|
|
16
|
+
def self?.values: -> ::Array[Dodopayments::Models::Blocklist::blocked_customer_source]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
type create_blocked_customer_request =
|
|
5
|
+
Dodopayments::Blocklist::CreateBlockedCustomerRequest::BlocklistCustomersBlockByCustomerID
|
|
6
|
+
| Dodopayments::Blocklist::CreateBlockedCustomerRequest::BlocklistCustomersBlockByEmail
|
|
7
|
+
|
|
8
|
+
module CreateBlockedCustomerRequest
|
|
9
|
+
extend Dodopayments::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
type blocklist_customers_block_by_customer_id =
|
|
12
|
+
{
|
|
13
|
+
reason: String?,
|
|
14
|
+
source: Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class BlocklistCustomersBlockByCustomerID < Dodopayments::Models::Blocklist::BlockByCustomerID
|
|
18
|
+
def reason: -> String?
|
|
19
|
+
|
|
20
|
+
def reason=: (String? _) -> String?
|
|
21
|
+
|
|
22
|
+
def source: -> Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
23
|
+
|
|
24
|
+
def source=: (
|
|
25
|
+
Dodopayments::Models::Blocklist::blocked_customer_source? _
|
|
26
|
+
) -> Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
27
|
+
|
|
28
|
+
def initialize: (
|
|
29
|
+
?reason: String?,
|
|
30
|
+
?source: Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
reason: String?,
|
|
35
|
+
source: Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
type blocklist_customers_block_by_email =
|
|
40
|
+
{
|
|
41
|
+
reason: String?,
|
|
42
|
+
source: Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
class BlocklistCustomersBlockByEmail < Dodopayments::Models::Blocklist::BlockByEmail
|
|
46
|
+
def reason: -> String?
|
|
47
|
+
|
|
48
|
+
def reason=: (String? _) -> String?
|
|
49
|
+
|
|
50
|
+
def source: -> Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
51
|
+
|
|
52
|
+
def source=: (
|
|
53
|
+
Dodopayments::Models::Blocklist::blocked_customer_source? _
|
|
54
|
+
) -> Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
?reason: String?,
|
|
58
|
+
?source: Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
reason: String?,
|
|
63
|
+
source: Dodopayments::Models::Blocklist::blocked_customer_source?
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def self?.variants: -> ::Array[Dodopayments::Models::Blocklist::create_blocked_customer_request]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
type customer_create_params =
|
|
5
|
+
{ } & Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CustomerCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def initialize: (?request_options: Dodopayments::request_opts) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { request_options: Dodopayments::RequestOptions }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
type customer_delete_params =
|
|
5
|
+
{ entry_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CustomerDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor entry_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
entry_id: String,
|
|
15
|
+
?request_options: Dodopayments::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
entry_id: String,
|
|
20
|
+
request_options: Dodopayments::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
type customer_list_params =
|
|
5
|
+
{
|
|
6
|
+
blocked_by_email: String?,
|
|
7
|
+
created_at_gte: Time?,
|
|
8
|
+
created_at_lte: Time?,
|
|
9
|
+
identifier: String?,
|
|
10
|
+
page_number: Integer?,
|
|
11
|
+
page_size: Integer?
|
|
12
|
+
}
|
|
13
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class CustomerListParams < Dodopayments::Internal::Type::BaseModel
|
|
16
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_accessor blocked_by_email: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor created_at_gte: Time?
|
|
22
|
+
|
|
23
|
+
attr_accessor created_at_lte: Time?
|
|
24
|
+
|
|
25
|
+
attr_accessor identifier: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor page_number: Integer?
|
|
28
|
+
|
|
29
|
+
attr_accessor page_size: Integer?
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
?blocked_by_email: String?,
|
|
33
|
+
?created_at_gte: Time?,
|
|
34
|
+
?created_at_lte: Time?,
|
|
35
|
+
?identifier: String?,
|
|
36
|
+
?page_number: Integer?,
|
|
37
|
+
?page_size: Integer?,
|
|
38
|
+
?request_options: Dodopayments::request_opts
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
blocked_by_email: String?,
|
|
43
|
+
created_at_gte: Time?,
|
|
44
|
+
created_at_lte: Time?,
|
|
45
|
+
identifier: String?,
|
|
46
|
+
page_number: Integer?,
|
|
47
|
+
page_size: Integer?,
|
|
48
|
+
request_options: Dodopayments::RequestOptions
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
type customer_retrieve_params =
|
|
5
|
+
{ entry_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CustomerRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor entry_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
entry_id: String,
|
|
15
|
+
?request_options: Dodopayments::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
entry_id: String,
|
|
20
|
+
request_options: Dodopayments::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
module Customers
|
|
5
|
+
type blocked_customer_note =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
note: String,
|
|
10
|
+
author_email: String?,
|
|
11
|
+
updated_at: Time?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class BlockedCustomerNote < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor created_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor note: String
|
|
20
|
+
|
|
21
|
+
attr_accessor author_email: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor updated_at: Time?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
id: String,
|
|
27
|
+
created_at: Time,
|
|
28
|
+
note: String,
|
|
29
|
+
?author_email: String?,
|
|
30
|
+
?updated_at: Time?
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
id: String,
|
|
35
|
+
created_at: Time,
|
|
36
|
+
note: String,
|
|
37
|
+
author_email: String?,
|
|
38
|
+
updated_at: Time?
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
module Customers
|
|
5
|
+
type note_create_params =
|
|
6
|
+
{ entry_id: String }
|
|
7
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class NoteCreateParams < Dodopayments::Models::Blocklist::Customers::NoteRequest
|
|
10
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
def entry_id: -> String
|
|
14
|
+
|
|
15
|
+
def entry_id=: (String _) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
entry_id: String,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
entry_id: String,
|
|
24
|
+
request_options: Dodopayments::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
module Customers
|
|
5
|
+
type note_request = { note: String }
|
|
6
|
+
|
|
7
|
+
class NoteRequest < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor note: String
|
|
9
|
+
|
|
10
|
+
def initialize: (note: String) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { note: String }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Blocklist
|
|
4
|
+
module Customers
|
|
5
|
+
type note_update_params =
|
|
6
|
+
{ entry_id: String, note_id: String }
|
|
7
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class NoteUpdateParams < Dodopayments::Models::Blocklist::Customers::NoteRequest
|
|
10
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
def entry_id: -> String
|
|
14
|
+
|
|
15
|
+
def entry_id=: (String _) -> String
|
|
16
|
+
|
|
17
|
+
def note_id: -> String
|
|
18
|
+
|
|
19
|
+
def note_id=: (String _) -> String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
entry_id: String,
|
|
23
|
+
note_id: String,
|
|
24
|
+
?request_options: Dodopayments::request_opts
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
entry_id: String,
|
|
29
|
+
note_id: String,
|
|
30
|
+
request_options: Dodopayments::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -7,6 +7,8 @@ module Dodopayments
|
|
|
7
7
|
customer_id: String,
|
|
8
8
|
email: String,
|
|
9
9
|
name: String,
|
|
10
|
+
blocked_at: Time?,
|
|
11
|
+
blocklist_entry_id: String?,
|
|
10
12
|
metadata: Dodopayments::Models::metadata,
|
|
11
13
|
phone_number: String?
|
|
12
14
|
}
|
|
@@ -22,6 +24,10 @@ module Dodopayments
|
|
|
22
24
|
|
|
23
25
|
attr_accessor name: String
|
|
24
26
|
|
|
27
|
+
attr_accessor blocked_at: Time?
|
|
28
|
+
|
|
29
|
+
attr_accessor blocklist_entry_id: String?
|
|
30
|
+
|
|
25
31
|
attr_reader metadata: Dodopayments::Models::metadata?
|
|
26
32
|
|
|
27
33
|
def metadata=: (
|
|
@@ -36,6 +42,8 @@ module Dodopayments
|
|
|
36
42
|
customer_id: String,
|
|
37
43
|
email: String,
|
|
38
44
|
name: String,
|
|
45
|
+
?blocked_at: Time?,
|
|
46
|
+
?blocklist_entry_id: String?,
|
|
39
47
|
?metadata: Dodopayments::Models::metadata,
|
|
40
48
|
?phone_number: String?
|
|
41
49
|
) -> void
|
|
@@ -46,6 +54,8 @@ module Dodopayments
|
|
|
46
54
|
customer_id: String,
|
|
47
55
|
email: String,
|
|
48
56
|
name: String,
|
|
57
|
+
blocked_at: Time?,
|
|
58
|
+
blocklist_entry_id: String?,
|
|
49
59
|
metadata: Dodopayments::Models::metadata,
|
|
50
60
|
phone_number: String?
|
|
51
61
|
}
|
|
@@ -89,13 +89,14 @@ module Dodopayments
|
|
|
89
89
|
def self?.values: -> ::Array[Dodopayments::Models::DunningRecoveredWebhookEvent::Data::status]
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
type trigger_state = :on_hold | :cancelled
|
|
92
|
+
type trigger_state = :on_hold | :cancelled | :past_due
|
|
93
93
|
|
|
94
94
|
module TriggerState
|
|
95
95
|
extend Dodopayments::Internal::Type::Enum
|
|
96
96
|
|
|
97
97
|
ON_HOLD: :on_hold
|
|
98
98
|
CANCELLED: :cancelled
|
|
99
|
+
PAST_DUE: :past_due
|
|
99
100
|
|
|
100
101
|
def self?.values: -> ::Array[Dodopayments::Models::DunningRecoveredWebhookEvent::Data::trigger_state]
|
|
101
102
|
end
|
|
@@ -89,13 +89,14 @@ module Dodopayments
|
|
|
89
89
|
def self?.values: -> ::Array[Dodopayments::Models::DunningStartedWebhookEvent::Data::status]
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
type trigger_state = :on_hold | :cancelled
|
|
92
|
+
type trigger_state = :on_hold | :cancelled | :past_due
|
|
93
93
|
|
|
94
94
|
module TriggerState
|
|
95
95
|
extend Dodopayments::Internal::Type::Enum
|
|
96
96
|
|
|
97
97
|
ON_HOLD: :on_hold
|
|
98
98
|
CANCELLED: :cancelled
|
|
99
|
+
PAST_DUE: :past_due
|
|
99
100
|
|
|
100
101
|
def self?.values: -> ::Array[Dodopayments::Models::DunningStartedWebhookEvent::Data::trigger_state]
|
|
101
102
|
end
|
|
@@ -3,31 +3,41 @@ module Dodopayments
|
|
|
3
3
|
module Entitlements
|
|
4
4
|
type license_key_grant =
|
|
5
5
|
{
|
|
6
|
+
id: String,
|
|
6
7
|
activations_used: Integer,
|
|
7
8
|
key: String,
|
|
9
|
+
status: Dodopayments::Models::license_key_status,
|
|
8
10
|
activations_limit: Integer?,
|
|
9
11
|
expires_at: Time?
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
class LicenseKeyGrant < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
13
17
|
attr_accessor activations_used: Integer
|
|
14
18
|
|
|
15
19
|
attr_accessor key: String
|
|
16
20
|
|
|
21
|
+
attr_accessor status: Dodopayments::Models::license_key_status
|
|
22
|
+
|
|
17
23
|
attr_accessor activations_limit: Integer?
|
|
18
24
|
|
|
19
25
|
attr_accessor expires_at: Time?
|
|
20
26
|
|
|
21
27
|
def initialize: (
|
|
28
|
+
id: String,
|
|
22
29
|
activations_used: Integer,
|
|
23
30
|
key: String,
|
|
31
|
+
status: Dodopayments::Models::license_key_status,
|
|
24
32
|
?activations_limit: Integer?,
|
|
25
33
|
?expires_at: Time?
|
|
26
34
|
) -> void
|
|
27
35
|
|
|
28
36
|
def to_hash: -> {
|
|
37
|
+
id: String,
|
|
29
38
|
activations_used: Integer,
|
|
30
39
|
key: String,
|
|
40
|
+
status: Dodopayments::Models::license_key_status,
|
|
31
41
|
activations_limit: Integer?,
|
|
32
42
|
expires_at: Time?
|
|
33
43
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type manual_retry =
|
|
4
|
+
{
|
|
5
|
+
invoice_id: String,
|
|
6
|
+
is_manual_retry: bool,
|
|
7
|
+
payment_id: String,
|
|
8
|
+
retry_attempt: Integer,
|
|
9
|
+
sends_allowed: Integer,
|
|
10
|
+
sends_used: Integer,
|
|
11
|
+
retry_available_at: Time?,
|
|
12
|
+
status: Dodopayments::Models::intent_status?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class ManualRetry < Dodopayments::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor invoice_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor is_manual_retry: bool
|
|
19
|
+
|
|
20
|
+
attr_accessor payment_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor retry_attempt: Integer
|
|
23
|
+
|
|
24
|
+
attr_accessor sends_allowed: Integer
|
|
25
|
+
|
|
26
|
+
attr_accessor sends_used: Integer
|
|
27
|
+
|
|
28
|
+
attr_accessor retry_available_at: Time?
|
|
29
|
+
|
|
30
|
+
attr_accessor status: Dodopayments::Models::intent_status?
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
invoice_id: String,
|
|
34
|
+
is_manual_retry: bool,
|
|
35
|
+
payment_id: String,
|
|
36
|
+
retry_attempt: Integer,
|
|
37
|
+
sends_allowed: Integer,
|
|
38
|
+
sends_used: Integer,
|
|
39
|
+
?retry_available_at: Time?,
|
|
40
|
+
?status: Dodopayments::Models::intent_status?
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
invoice_id: String,
|
|
45
|
+
is_manual_retry: bool,
|
|
46
|
+
payment_id: String,
|
|
47
|
+
retry_attempt: Integer,
|
|
48
|
+
sends_allowed: Integer,
|
|
49
|
+
sends_used: Integer,
|
|
50
|
+
retry_available_at: Time?,
|
|
51
|
+
status: Dodopayments::Models::intent_status?
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type manual_retry_state =
|
|
4
|
+
{
|
|
5
|
+
can_retry: bool,
|
|
6
|
+
sends_allowed: Integer,
|
|
7
|
+
sends_used: Integer,
|
|
8
|
+
reason: String?,
|
|
9
|
+
retry_available_at: Time?
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class ManualRetryState < Dodopayments::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor can_retry: bool
|
|
14
|
+
|
|
15
|
+
attr_accessor sends_allowed: Integer
|
|
16
|
+
|
|
17
|
+
attr_accessor sends_used: Integer
|
|
18
|
+
|
|
19
|
+
attr_accessor reason: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor retry_available_at: Time?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
can_retry: bool,
|
|
25
|
+
sends_allowed: Integer,
|
|
26
|
+
sends_used: Integer,
|
|
27
|
+
?reason: String?,
|
|
28
|
+
?retry_available_at: Time?
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
can_retry: bool,
|
|
33
|
+
sends_allowed: Integer,
|
|
34
|
+
sends_used: Integer,
|
|
35
|
+
reason: String?,
|
|
36
|
+
retry_available_at: Time?
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type payment_retrieve_retry_state_params =
|
|
4
|
+
{ payment_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PaymentRetrieveRetryStateParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor payment_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
payment_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
payment_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|