dodopayments 2.28.0 → 2.30.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 +21 -0
- data/README.md +1 -1
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/models/balance_ledger_entry.rb +7 -0
- data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +7 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +30 -1
- data/lib/dodopayments/models/checkout_session_preview_response.rb +86 -4
- data/lib/dodopayments/models/checkout_session_request.rb +4 -1
- data/lib/dodopayments/models/customers/email_failure_code.rb +1 -0
- data/lib/dodopayments/models/customers/email_log_item.rb +4 -12
- data/lib/dodopayments/models/customers/email_policies.rb +14 -1
- data/lib/dodopayments/models/discount_create_params.rb +11 -8
- data/lib/dodopayments/models/discount_update_params.rb +6 -5
- data/lib/dodopayments/models/moderation_category.rb +31 -0
- data/lib/dodopayments/models/moderation_category_provenance.rb +150 -0
- data/lib/dodopayments/models/moderation_category_scores.rb +150 -0
- data/lib/dodopayments/models/moderation_decision.rb +18 -0
- data/lib/dodopayments/models/moderation_provenance.rb +18 -0
- data/lib/dodopayments/models/moderation_retrieve_usage_params.rb +14 -0
- data/lib/dodopayments/models/moderation_retrieve_usage_response.rb +61 -0
- data/lib/dodopayments/models/moderation_screen_params.rb +44 -0
- data/lib/dodopayments/models/moderation_screen_response.rb +99 -0
- data/lib/dodopayments/models/payment.rb +25 -3
- data/lib/dodopayments/models/payment_list_response.rb +21 -1
- data/lib/dodopayments/models/payouts/breakup/detail_list_response.rb +5 -4
- data/lib/dodopayments/models/payouts/breakup_retrieve_response.rb +17 -1
- data/lib/dodopayments/models.rb +14 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +2 -2
- data/lib/dodopayments/resources/moderation.rb +81 -0
- data/lib/dodopayments/resources/payouts/breakup/details.rb +4 -4
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +10 -0
- data/rbi/dodopayments/client.rbi +3 -0
- data/rbi/dodopayments/models/balance_ledger_entry.rbi +35 -0
- data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +35 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +48 -0
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +130 -6
- data/rbi/dodopayments/models/checkout_session_request.rbi +6 -0
- data/rbi/dodopayments/models/customers/email_failure_code.rbi +5 -0
- data/rbi/dodopayments/models/customers/email_log_item.rbi +4 -12
- data/rbi/dodopayments/models/customers/email_policies.rbi +15 -3
- data/rbi/dodopayments/models/discount_create_params.rbi +18 -12
- data/rbi/dodopayments/models/discount_update_params.rbi +8 -6
- data/rbi/dodopayments/models/moderation_category.rbi +88 -0
- data/rbi/dodopayments/models/moderation_category_provenance.rbi +184 -0
- data/rbi/dodopayments/models/moderation_category_scores.rbi +171 -0
- data/rbi/dodopayments/models/moderation_decision.rbi +27 -0
- data/rbi/dodopayments/models/moderation_provenance.rbi +28 -0
- data/rbi/dodopayments/models/moderation_retrieve_usage_params.rbi +32 -0
- data/rbi/dodopayments/models/moderation_retrieve_usage_response.rbi +104 -0
- data/rbi/dodopayments/models/moderation_screen_params.rbi +68 -0
- data/rbi/dodopayments/models/moderation_screen_response.rbi +135 -0
- data/rbi/dodopayments/models/payment.rbi +30 -2
- data/rbi/dodopayments/models/payment_list_response.rbi +24 -0
- data/rbi/dodopayments/models/payouts/breakup/detail_list_response.rbi +8 -6
- data/rbi/dodopayments/models/payouts/breakup_retrieve_response.rbi +19 -2
- data/rbi/dodopayments/models.rbi +16 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +6 -0
- data/rbi/dodopayments/resources/discounts.rbi +5 -3
- data/rbi/dodopayments/resources/moderation.rbi +64 -0
- data/rbi/dodopayments/resources/payouts/breakup/details.rbi +4 -4
- data/sig/dodopayments/client.rbs +2 -0
- data/sig/dodopayments/models/balance_ledger_entry.rbs +14 -0
- data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +14 -0
- data/sig/dodopayments/models/checkout_session_flags.rbs +14 -0
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +52 -0
- data/sig/dodopayments/models/customers/email_failure_code.rbs +2 -0
- data/sig/dodopayments/models/customers/email_log_item.rbs +0 -5
- data/sig/dodopayments/models/customers/email_policies.rbs +8 -3
- data/sig/dodopayments/models/moderation_category.rbs +46 -0
- data/sig/dodopayments/models/moderation_category_provenance.rbs +100 -0
- data/sig/dodopayments/models/moderation_category_scores.rbs +100 -0
- data/sig/dodopayments/models/moderation_decision.rbs +15 -0
- data/sig/dodopayments/models/moderation_provenance.rbs +14 -0
- data/sig/dodopayments/models/moderation_retrieve_usage_params.rbs +15 -0
- data/sig/dodopayments/models/moderation_retrieve_usage_response.rbs +42 -0
- data/sig/dodopayments/models/moderation_screen_params.rbs +32 -0
- data/sig/dodopayments/models/moderation_screen_response.rbs +65 -0
- data/sig/dodopayments/models/payment.rbs +10 -0
- data/sig/dodopayments/models/payment_list_response.rbs +10 -0
- data/sig/dodopayments/models.rbs +14 -0
- data/sig/dodopayments/resources/moderation.rbs +18 -0
- metadata +32 -2
|
@@ -5,10 +5,10 @@ module Dodopayments
|
|
|
5
5
|
class Payouts
|
|
6
6
|
class Breakup
|
|
7
7
|
class Details
|
|
8
|
-
# Returns paginated individual balance ledger entries for a payout
|
|
9
|
-
#
|
|
10
|
-
# `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
11
|
-
# parameters.
|
|
8
|
+
# Returns paginated individual balance ledger entries for a payout. Each entry is
|
|
9
|
+
# converted into the payout's currency at the rate the payout settled at. Supports
|
|
10
|
+
# pagination via `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
11
|
+
# query parameters.
|
|
12
12
|
sig do
|
|
13
13
|
params(
|
|
14
14
|
payout_id: String,
|
data/sig/dodopayments/client.rbs
CHANGED
|
@@ -101,6 +101,13 @@ module Dodopayments
|
|
|
101
101
|
| :byop_fee
|
|
102
102
|
| :ethoca_fees
|
|
103
103
|
| :ethoca_fees_reversal
|
|
104
|
+
| :visa_rdr_fee
|
|
105
|
+
| :dispute_fees_reversal
|
|
106
|
+
| :deflection_fees
|
|
107
|
+
| :deflection_fees_reversal
|
|
108
|
+
| :reserve_hold
|
|
109
|
+
| :reserve_release
|
|
110
|
+
| :moderation_fees
|
|
104
111
|
|
|
105
112
|
module EventType
|
|
106
113
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -129,6 +136,13 @@ module Dodopayments
|
|
|
129
136
|
BYOP_FEE: :byop_fee
|
|
130
137
|
ETHOCA_FEES: :ethoca_fees
|
|
131
138
|
ETHOCA_FEES_REVERSAL: :ethoca_fees_reversal
|
|
139
|
+
VISA_RDR_FEE: :visa_rdr_fee
|
|
140
|
+
DISPUTE_FEES_REVERSAL: :dispute_fees_reversal
|
|
141
|
+
DEFLECTION_FEES: :deflection_fees
|
|
142
|
+
DEFLECTION_FEES_REVERSAL: :deflection_fees_reversal
|
|
143
|
+
RESERVE_HOLD: :reserve_hold
|
|
144
|
+
RESERVE_RELEASE: :reserve_release
|
|
145
|
+
MODERATION_FEES: :moderation_fees
|
|
132
146
|
|
|
133
147
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceLedgerEntry::event_type]
|
|
134
148
|
end
|
|
@@ -401,6 +401,13 @@ module Dodopayments
|
|
|
401
401
|
| :byop_fee
|
|
402
402
|
| :ethoca_fees
|
|
403
403
|
| :ethoca_fees_reversal
|
|
404
|
+
| :visa_rdr_fee
|
|
405
|
+
| :dispute_fees_reversal
|
|
406
|
+
| :deflection_fees
|
|
407
|
+
| :deflection_fees_reversal
|
|
408
|
+
| :reserve_hold
|
|
409
|
+
| :reserve_release
|
|
410
|
+
| :moderation_fees
|
|
404
411
|
|
|
405
412
|
module EventType
|
|
406
413
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -429,6 +436,13 @@ module Dodopayments
|
|
|
429
436
|
BYOP_FEE: :byop_fee
|
|
430
437
|
ETHOCA_FEES: :ethoca_fees
|
|
431
438
|
ETHOCA_FEES_REVERSAL: :ethoca_fees_reversal
|
|
439
|
+
VISA_RDR_FEE: :visa_rdr_fee
|
|
440
|
+
DISPUTE_FEES_REVERSAL: :dispute_fees_reversal
|
|
441
|
+
DEFLECTION_FEES: :deflection_fees
|
|
442
|
+
DEFLECTION_FEES_REVERSAL: :deflection_fees_reversal
|
|
443
|
+
RESERVE_HOLD: :reserve_hold
|
|
444
|
+
RESERVE_RELEASE: :reserve_release
|
|
445
|
+
MODERATION_FEES: :moderation_fees
|
|
432
446
|
|
|
433
447
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceRetrieveLedgerParams::event_type]
|
|
434
448
|
end
|
|
@@ -18,7 +18,9 @@ module Dodopayments
|
|
|
18
18
|
allow_tax_id: bool,
|
|
19
19
|
always_create_new_customer: bool,
|
|
20
20
|
redirect_immediately: bool,
|
|
21
|
+
require_cardholder_name: bool,
|
|
21
22
|
require_phone_number: bool,
|
|
23
|
+
require_tax_id: bool,
|
|
22
24
|
single_page: bool
|
|
23
25
|
}
|
|
24
26
|
|
|
@@ -87,10 +89,18 @@ module Dodopayments
|
|
|
87
89
|
|
|
88
90
|
def redirect_immediately=: (bool) -> bool
|
|
89
91
|
|
|
92
|
+
attr_reader require_cardholder_name: bool?
|
|
93
|
+
|
|
94
|
+
def require_cardholder_name=: (bool) -> bool
|
|
95
|
+
|
|
90
96
|
attr_reader require_phone_number: bool?
|
|
91
97
|
|
|
92
98
|
def require_phone_number=: (bool) -> bool
|
|
93
99
|
|
|
100
|
+
attr_reader require_tax_id: bool?
|
|
101
|
+
|
|
102
|
+
def require_tax_id=: (bool) -> bool
|
|
103
|
+
|
|
94
104
|
attr_reader single_page: bool?
|
|
95
105
|
|
|
96
106
|
def single_page=: (bool) -> bool
|
|
@@ -112,7 +122,9 @@ module Dodopayments
|
|
|
112
122
|
?allow_tax_id: bool,
|
|
113
123
|
?always_create_new_customer: bool,
|
|
114
124
|
?redirect_immediately: bool,
|
|
125
|
+
?require_cardholder_name: bool,
|
|
115
126
|
?require_phone_number: bool,
|
|
127
|
+
?require_tax_id: bool,
|
|
116
128
|
?single_page: bool
|
|
117
129
|
) -> void
|
|
118
130
|
|
|
@@ -133,7 +145,9 @@ module Dodopayments
|
|
|
133
145
|
allow_tax_id: bool,
|
|
134
146
|
always_create_new_customer: bool,
|
|
135
147
|
redirect_immediately: bool,
|
|
148
|
+
require_cardholder_name: bool,
|
|
136
149
|
require_phone_number: bool,
|
|
150
|
+
require_tax_id: bool,
|
|
137
151
|
single_page: bool
|
|
138
152
|
}
|
|
139
153
|
end
|
|
@@ -11,6 +11,7 @@ module Dodopayments
|
|
|
11
11
|
total_price: Integer,
|
|
12
12
|
next_billing_date: Time?,
|
|
13
13
|
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
14
|
+
subscriptions: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::Subscription]?,
|
|
14
15
|
tax_id_business_name: String?,
|
|
15
16
|
tax_id_err_msg: String?,
|
|
16
17
|
tax_id_format_name: String?,
|
|
@@ -38,6 +39,8 @@ module Dodopayments
|
|
|
38
39
|
|
|
39
40
|
attr_accessor recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?
|
|
40
41
|
|
|
42
|
+
attr_accessor subscriptions: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::Subscription]?
|
|
43
|
+
|
|
41
44
|
attr_accessor tax_id_business_name: String?
|
|
42
45
|
|
|
43
46
|
attr_accessor tax_id_err_msg: String?
|
|
@@ -60,6 +63,7 @@ module Dodopayments
|
|
|
60
63
|
total_price: Integer,
|
|
61
64
|
?next_billing_date: Time?,
|
|
62
65
|
?recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
66
|
+
?subscriptions: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::Subscription]?,
|
|
63
67
|
?tax_id_business_name: String?,
|
|
64
68
|
?tax_id_err_msg: String?,
|
|
65
69
|
?tax_id_format_name: String?,
|
|
@@ -78,6 +82,7 @@ module Dodopayments
|
|
|
78
82
|
total_price: Integer,
|
|
79
83
|
next_billing_date: Time?,
|
|
80
84
|
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
85
|
+
subscriptions: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::Subscription]?,
|
|
81
86
|
tax_id_business_name: String?,
|
|
82
87
|
tax_id_err_msg: String?,
|
|
83
88
|
tax_id_format_name: String?,
|
|
@@ -407,6 +412,53 @@ module Dodopayments
|
|
|
407
412
|
tax: Integer?
|
|
408
413
|
}
|
|
409
414
|
end
|
|
415
|
+
|
|
416
|
+
type subscription =
|
|
417
|
+
{
|
|
418
|
+
amount_due_now: Integer,
|
|
419
|
+
product_id: String,
|
|
420
|
+
recurring_amount: Integer,
|
|
421
|
+
next_billing_date: Time?,
|
|
422
|
+
recurring_tax: Integer?,
|
|
423
|
+
tax_due_now: Integer?,
|
|
424
|
+
trial_period_days: Integer?
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
class Subscription < Dodopayments::Internal::Type::BaseModel
|
|
428
|
+
attr_accessor amount_due_now: Integer
|
|
429
|
+
|
|
430
|
+
attr_accessor product_id: String
|
|
431
|
+
|
|
432
|
+
attr_accessor recurring_amount: Integer
|
|
433
|
+
|
|
434
|
+
attr_accessor next_billing_date: Time?
|
|
435
|
+
|
|
436
|
+
attr_accessor recurring_tax: Integer?
|
|
437
|
+
|
|
438
|
+
attr_accessor tax_due_now: Integer?
|
|
439
|
+
|
|
440
|
+
attr_accessor trial_period_days: Integer?
|
|
441
|
+
|
|
442
|
+
def initialize: (
|
|
443
|
+
amount_due_now: Integer,
|
|
444
|
+
product_id: String,
|
|
445
|
+
recurring_amount: Integer,
|
|
446
|
+
?next_billing_date: Time?,
|
|
447
|
+
?recurring_tax: Integer?,
|
|
448
|
+
?tax_due_now: Integer?,
|
|
449
|
+
?trial_period_days: Integer?
|
|
450
|
+
) -> void
|
|
451
|
+
|
|
452
|
+
def to_hash: -> {
|
|
453
|
+
amount_due_now: Integer,
|
|
454
|
+
product_id: String,
|
|
455
|
+
recurring_amount: Integer,
|
|
456
|
+
next_billing_date: Time?,
|
|
457
|
+
recurring_tax: Integer?,
|
|
458
|
+
tax_due_now: Integer?,
|
|
459
|
+
trial_period_days: Integer?
|
|
460
|
+
}
|
|
461
|
+
end
|
|
410
462
|
end
|
|
411
463
|
end
|
|
412
464
|
end
|
|
@@ -10,6 +10,7 @@ module Dodopayments
|
|
|
10
10
|
| :message_too_large
|
|
11
11
|
| :marked_as_spam
|
|
12
12
|
| :send_failed
|
|
13
|
+
| :test_mode_quota_spent
|
|
13
14
|
|
|
14
15
|
module EmailFailureCode
|
|
15
16
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -22,6 +23,7 @@ module Dodopayments
|
|
|
22
23
|
MESSAGE_TOO_LARGE: :message_too_large
|
|
23
24
|
MARKED_AS_SPAM: :marked_as_spam
|
|
24
25
|
SEND_FAILED: :send_failed
|
|
26
|
+
TEST_MODE_QUOTA_SPENT: :test_mode_quota_spent
|
|
25
27
|
|
|
26
28
|
def self?.values: -> ::Array[Dodopayments::Models::Customers::email_failure_code]
|
|
27
29
|
end
|
|
@@ -13,7 +13,6 @@ module Dodopayments
|
|
|
13
13
|
failure_code: Dodopayments::Models::Customers::email_failure_code?,
|
|
14
14
|
failure_reason: String?,
|
|
15
15
|
from: String?,
|
|
16
|
-
intended_recipient: String?,
|
|
17
16
|
recipient: String?,
|
|
18
17
|
subject: String?
|
|
19
18
|
}
|
|
@@ -39,8 +38,6 @@ module Dodopayments
|
|
|
39
38
|
|
|
40
39
|
attr_accessor from: String?
|
|
41
40
|
|
|
42
|
-
attr_accessor intended_recipient: String?
|
|
43
|
-
|
|
44
41
|
attr_accessor recipient: String?
|
|
45
42
|
|
|
46
43
|
attr_accessor subject: String?
|
|
@@ -56,7 +53,6 @@ module Dodopayments
|
|
|
56
53
|
?failure_code: Dodopayments::Models::Customers::email_failure_code?,
|
|
57
54
|
?failure_reason: String?,
|
|
58
55
|
?from: String?,
|
|
59
|
-
?intended_recipient: String?,
|
|
60
56
|
?recipient: String?,
|
|
61
57
|
?subject: String?
|
|
62
58
|
) -> void
|
|
@@ -72,7 +68,6 @@ module Dodopayments
|
|
|
72
68
|
failure_code: Dodopayments::Models::Customers::email_failure_code?,
|
|
73
69
|
failure_reason: String?,
|
|
74
70
|
from: String?,
|
|
75
|
-
intended_recipient: String?,
|
|
76
71
|
recipient: String?,
|
|
77
72
|
subject: String?
|
|
78
73
|
}
|
|
@@ -6,7 +6,8 @@ module Dodopayments
|
|
|
6
6
|
requires_different_address: bool,
|
|
7
7
|
resend_allowed: bool,
|
|
8
8
|
resends_remaining: Integer,
|
|
9
|
-
retry_allowed: bool
|
|
9
|
+
retry_allowed: bool,
|
|
10
|
+
superseded: bool
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
class EmailPolicies < Dodopayments::Internal::Type::BaseModel
|
|
@@ -18,18 +19,22 @@ module Dodopayments
|
|
|
18
19
|
|
|
19
20
|
attr_accessor retry_allowed: bool
|
|
20
21
|
|
|
22
|
+
attr_accessor superseded: bool
|
|
23
|
+
|
|
21
24
|
def initialize: (
|
|
22
25
|
requires_different_address: bool,
|
|
23
26
|
resend_allowed: bool,
|
|
24
27
|
resends_remaining: Integer,
|
|
25
|
-
retry_allowed: bool
|
|
28
|
+
retry_allowed: bool,
|
|
29
|
+
superseded: bool
|
|
26
30
|
) -> void
|
|
27
31
|
|
|
28
32
|
def to_hash: -> {
|
|
29
33
|
requires_different_address: bool,
|
|
30
34
|
resend_allowed: bool,
|
|
31
35
|
resends_remaining: Integer,
|
|
32
|
-
retry_allowed: bool
|
|
36
|
+
retry_allowed: bool,
|
|
37
|
+
superseded: bool
|
|
33
38
|
}
|
|
34
39
|
end
|
|
35
40
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_category =
|
|
4
|
+
:violent_crimes
|
|
5
|
+
| :sex_related_crimes
|
|
6
|
+
| :child_sexual_exploitation
|
|
7
|
+
| :suicide_and_self_harm
|
|
8
|
+
| :indiscriminate_weapons
|
|
9
|
+
| :intellectual_property
|
|
10
|
+
| :defamation
|
|
11
|
+
| :non_violent_crimes
|
|
12
|
+
| :hate
|
|
13
|
+
| :privacy
|
|
14
|
+
| :specialized_advice
|
|
15
|
+
| :sexual_content
|
|
16
|
+
| :non_consensual_intimate_imagery
|
|
17
|
+
| :minor_coded_language
|
|
18
|
+
| :real_person_likeness
|
|
19
|
+
| :living_artist_style
|
|
20
|
+
| :prompt_injection
|
|
21
|
+
|
|
22
|
+
module ModerationCategory
|
|
23
|
+
extend Dodopayments::Internal::Type::Enum
|
|
24
|
+
|
|
25
|
+
VIOLENT_CRIMES: :violent_crimes
|
|
26
|
+
SEX_RELATED_CRIMES: :sex_related_crimes
|
|
27
|
+
CHILD_SEXUAL_EXPLOITATION: :child_sexual_exploitation
|
|
28
|
+
SUICIDE_AND_SELF_HARM: :suicide_and_self_harm
|
|
29
|
+
INDISCRIMINATE_WEAPONS: :indiscriminate_weapons
|
|
30
|
+
INTELLECTUAL_PROPERTY: :intellectual_property
|
|
31
|
+
DEFAMATION: :defamation
|
|
32
|
+
NON_VIOLENT_CRIMES: :non_violent_crimes
|
|
33
|
+
HATE: :hate
|
|
34
|
+
PRIVACY: :privacy
|
|
35
|
+
SPECIALIZED_ADVICE: :specialized_advice
|
|
36
|
+
SEXUAL_CONTENT: :sexual_content
|
|
37
|
+
NON_CONSENSUAL_INTIMATE_IMAGERY: :non_consensual_intimate_imagery
|
|
38
|
+
MINOR_CODED_LANGUAGE: :minor_coded_language
|
|
39
|
+
REAL_PERSON_LIKENESS: :real_person_likeness
|
|
40
|
+
LIVING_ARTIST_STYLE: :living_artist_style
|
|
41
|
+
PROMPT_INJECTION: :prompt_injection
|
|
42
|
+
|
|
43
|
+
def self?.values: -> ::Array[Dodopayments::Models::moderation_category]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_category_provenance =
|
|
4
|
+
{
|
|
5
|
+
child_sexual_exploitation: Dodopayments::Models::moderation_provenance,
|
|
6
|
+
defamation: Dodopayments::Models::moderation_provenance,
|
|
7
|
+
hate: Dodopayments::Models::moderation_provenance,
|
|
8
|
+
indiscriminate_weapons: Dodopayments::Models::moderation_provenance,
|
|
9
|
+
intellectual_property: Dodopayments::Models::moderation_provenance,
|
|
10
|
+
living_artist_style: Dodopayments::Models::moderation_provenance,
|
|
11
|
+
minor_coded_language: Dodopayments::Models::moderation_provenance,
|
|
12
|
+
non_consensual_intimate_imagery: Dodopayments::Models::moderation_provenance,
|
|
13
|
+
non_violent_crimes: Dodopayments::Models::moderation_provenance,
|
|
14
|
+
privacy: Dodopayments::Models::moderation_provenance,
|
|
15
|
+
prompt_injection: Dodopayments::Models::moderation_provenance,
|
|
16
|
+
real_person_likeness: Dodopayments::Models::moderation_provenance,
|
|
17
|
+
sex_related_crimes: Dodopayments::Models::moderation_provenance,
|
|
18
|
+
sexual_content: Dodopayments::Models::moderation_provenance,
|
|
19
|
+
specialized_advice: Dodopayments::Models::moderation_provenance,
|
|
20
|
+
suicide_and_self_harm: Dodopayments::Models::moderation_provenance,
|
|
21
|
+
violent_crimes: Dodopayments::Models::moderation_provenance
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class ModerationCategoryProvenance < Dodopayments::Internal::Type::BaseModel
|
|
25
|
+
attr_accessor child_sexual_exploitation: Dodopayments::Models::moderation_provenance
|
|
26
|
+
|
|
27
|
+
attr_accessor defamation: Dodopayments::Models::moderation_provenance
|
|
28
|
+
|
|
29
|
+
attr_accessor hate: Dodopayments::Models::moderation_provenance
|
|
30
|
+
|
|
31
|
+
attr_accessor indiscriminate_weapons: Dodopayments::Models::moderation_provenance
|
|
32
|
+
|
|
33
|
+
attr_accessor intellectual_property: Dodopayments::Models::moderation_provenance
|
|
34
|
+
|
|
35
|
+
attr_accessor living_artist_style: Dodopayments::Models::moderation_provenance
|
|
36
|
+
|
|
37
|
+
attr_accessor minor_coded_language: Dodopayments::Models::moderation_provenance
|
|
38
|
+
|
|
39
|
+
attr_accessor non_consensual_intimate_imagery: Dodopayments::Models::moderation_provenance
|
|
40
|
+
|
|
41
|
+
attr_accessor non_violent_crimes: Dodopayments::Models::moderation_provenance
|
|
42
|
+
|
|
43
|
+
attr_accessor privacy: Dodopayments::Models::moderation_provenance
|
|
44
|
+
|
|
45
|
+
attr_accessor prompt_injection: Dodopayments::Models::moderation_provenance
|
|
46
|
+
|
|
47
|
+
attr_accessor real_person_likeness: Dodopayments::Models::moderation_provenance
|
|
48
|
+
|
|
49
|
+
attr_accessor sex_related_crimes: Dodopayments::Models::moderation_provenance
|
|
50
|
+
|
|
51
|
+
attr_accessor sexual_content: Dodopayments::Models::moderation_provenance
|
|
52
|
+
|
|
53
|
+
attr_accessor specialized_advice: Dodopayments::Models::moderation_provenance
|
|
54
|
+
|
|
55
|
+
attr_accessor suicide_and_self_harm: Dodopayments::Models::moderation_provenance
|
|
56
|
+
|
|
57
|
+
attr_accessor violent_crimes: Dodopayments::Models::moderation_provenance
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
child_sexual_exploitation: Dodopayments::Models::moderation_provenance,
|
|
61
|
+
defamation: Dodopayments::Models::moderation_provenance,
|
|
62
|
+
hate: Dodopayments::Models::moderation_provenance,
|
|
63
|
+
indiscriminate_weapons: Dodopayments::Models::moderation_provenance,
|
|
64
|
+
intellectual_property: Dodopayments::Models::moderation_provenance,
|
|
65
|
+
living_artist_style: Dodopayments::Models::moderation_provenance,
|
|
66
|
+
minor_coded_language: Dodopayments::Models::moderation_provenance,
|
|
67
|
+
non_consensual_intimate_imagery: Dodopayments::Models::moderation_provenance,
|
|
68
|
+
non_violent_crimes: Dodopayments::Models::moderation_provenance,
|
|
69
|
+
privacy: Dodopayments::Models::moderation_provenance,
|
|
70
|
+
prompt_injection: Dodopayments::Models::moderation_provenance,
|
|
71
|
+
real_person_likeness: Dodopayments::Models::moderation_provenance,
|
|
72
|
+
sex_related_crimes: Dodopayments::Models::moderation_provenance,
|
|
73
|
+
sexual_content: Dodopayments::Models::moderation_provenance,
|
|
74
|
+
specialized_advice: Dodopayments::Models::moderation_provenance,
|
|
75
|
+
suicide_and_self_harm: Dodopayments::Models::moderation_provenance,
|
|
76
|
+
violent_crimes: Dodopayments::Models::moderation_provenance
|
|
77
|
+
) -> void
|
|
78
|
+
|
|
79
|
+
def to_hash: -> {
|
|
80
|
+
child_sexual_exploitation: Dodopayments::Models::moderation_provenance,
|
|
81
|
+
defamation: Dodopayments::Models::moderation_provenance,
|
|
82
|
+
hate: Dodopayments::Models::moderation_provenance,
|
|
83
|
+
indiscriminate_weapons: Dodopayments::Models::moderation_provenance,
|
|
84
|
+
intellectual_property: Dodopayments::Models::moderation_provenance,
|
|
85
|
+
living_artist_style: Dodopayments::Models::moderation_provenance,
|
|
86
|
+
minor_coded_language: Dodopayments::Models::moderation_provenance,
|
|
87
|
+
non_consensual_intimate_imagery: Dodopayments::Models::moderation_provenance,
|
|
88
|
+
non_violent_crimes: Dodopayments::Models::moderation_provenance,
|
|
89
|
+
privacy: Dodopayments::Models::moderation_provenance,
|
|
90
|
+
prompt_injection: Dodopayments::Models::moderation_provenance,
|
|
91
|
+
real_person_likeness: Dodopayments::Models::moderation_provenance,
|
|
92
|
+
sex_related_crimes: Dodopayments::Models::moderation_provenance,
|
|
93
|
+
sexual_content: Dodopayments::Models::moderation_provenance,
|
|
94
|
+
specialized_advice: Dodopayments::Models::moderation_provenance,
|
|
95
|
+
suicide_and_self_harm: Dodopayments::Models::moderation_provenance,
|
|
96
|
+
violent_crimes: Dodopayments::Models::moderation_provenance
|
|
97
|
+
}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_category_scores =
|
|
4
|
+
{
|
|
5
|
+
child_sexual_exploitation: Float,
|
|
6
|
+
defamation: Float,
|
|
7
|
+
hate: Float,
|
|
8
|
+
indiscriminate_weapons: Float,
|
|
9
|
+
intellectual_property: Float,
|
|
10
|
+
living_artist_style: Float,
|
|
11
|
+
minor_coded_language: Float,
|
|
12
|
+
non_consensual_intimate_imagery: Float,
|
|
13
|
+
non_violent_crimes: Float,
|
|
14
|
+
privacy: Float,
|
|
15
|
+
prompt_injection: Float,
|
|
16
|
+
real_person_likeness: Float,
|
|
17
|
+
sex_related_crimes: Float,
|
|
18
|
+
sexual_content: Float,
|
|
19
|
+
specialized_advice: Float,
|
|
20
|
+
suicide_and_self_harm: Float,
|
|
21
|
+
violent_crimes: Float
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class ModerationCategoryScores < Dodopayments::Internal::Type::BaseModel
|
|
25
|
+
attr_accessor child_sexual_exploitation: Float
|
|
26
|
+
|
|
27
|
+
attr_accessor defamation: Float
|
|
28
|
+
|
|
29
|
+
attr_accessor hate: Float
|
|
30
|
+
|
|
31
|
+
attr_accessor indiscriminate_weapons: Float
|
|
32
|
+
|
|
33
|
+
attr_accessor intellectual_property: Float
|
|
34
|
+
|
|
35
|
+
attr_accessor living_artist_style: Float
|
|
36
|
+
|
|
37
|
+
attr_accessor minor_coded_language: Float
|
|
38
|
+
|
|
39
|
+
attr_accessor non_consensual_intimate_imagery: Float
|
|
40
|
+
|
|
41
|
+
attr_accessor non_violent_crimes: Float
|
|
42
|
+
|
|
43
|
+
attr_accessor privacy: Float
|
|
44
|
+
|
|
45
|
+
attr_accessor prompt_injection: Float
|
|
46
|
+
|
|
47
|
+
attr_accessor real_person_likeness: Float
|
|
48
|
+
|
|
49
|
+
attr_accessor sex_related_crimes: Float
|
|
50
|
+
|
|
51
|
+
attr_accessor sexual_content: Float
|
|
52
|
+
|
|
53
|
+
attr_accessor specialized_advice: Float
|
|
54
|
+
|
|
55
|
+
attr_accessor suicide_and_self_harm: Float
|
|
56
|
+
|
|
57
|
+
attr_accessor violent_crimes: Float
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
child_sexual_exploitation: Float,
|
|
61
|
+
defamation: Float,
|
|
62
|
+
hate: Float,
|
|
63
|
+
indiscriminate_weapons: Float,
|
|
64
|
+
intellectual_property: Float,
|
|
65
|
+
living_artist_style: Float,
|
|
66
|
+
minor_coded_language: Float,
|
|
67
|
+
non_consensual_intimate_imagery: Float,
|
|
68
|
+
non_violent_crimes: Float,
|
|
69
|
+
privacy: Float,
|
|
70
|
+
prompt_injection: Float,
|
|
71
|
+
real_person_likeness: Float,
|
|
72
|
+
sex_related_crimes: Float,
|
|
73
|
+
sexual_content: Float,
|
|
74
|
+
specialized_advice: Float,
|
|
75
|
+
suicide_and_self_harm: Float,
|
|
76
|
+
violent_crimes: Float
|
|
77
|
+
) -> void
|
|
78
|
+
|
|
79
|
+
def to_hash: -> {
|
|
80
|
+
child_sexual_exploitation: Float,
|
|
81
|
+
defamation: Float,
|
|
82
|
+
hate: Float,
|
|
83
|
+
indiscriminate_weapons: Float,
|
|
84
|
+
intellectual_property: Float,
|
|
85
|
+
living_artist_style: Float,
|
|
86
|
+
minor_coded_language: Float,
|
|
87
|
+
non_consensual_intimate_imagery: Float,
|
|
88
|
+
non_violent_crimes: Float,
|
|
89
|
+
privacy: Float,
|
|
90
|
+
prompt_injection: Float,
|
|
91
|
+
real_person_likeness: Float,
|
|
92
|
+
sex_related_crimes: Float,
|
|
93
|
+
sexual_content: Float,
|
|
94
|
+
specialized_advice: Float,
|
|
95
|
+
suicide_and_self_harm: Float,
|
|
96
|
+
violent_crimes: Float
|
|
97
|
+
}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_decision = :allow | :flag | :deny
|
|
4
|
+
|
|
5
|
+
module ModerationDecision
|
|
6
|
+
extend Dodopayments::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
ALLOW: :allow
|
|
9
|
+
FLAG: :flag
|
|
10
|
+
DENY: :deny
|
|
11
|
+
|
|
12
|
+
def self?.values: -> ::Array[Dodopayments::Models::moderation_decision]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_provenance = :targeted | :broad
|
|
4
|
+
|
|
5
|
+
module ModerationProvenance
|
|
6
|
+
extend Dodopayments::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
TARGETED: :targeted
|
|
9
|
+
BROAD: :broad
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Dodopayments::Models::moderation_provenance]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_retrieve_usage_params =
|
|
4
|
+
{ } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ModerationRetrieveUsageParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Dodopayments::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Dodopayments::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_retrieve_usage_response =
|
|
4
|
+
{
|
|
5
|
+
daily: ::Array[Dodopayments::Models::ModerationRetrieveUsageResponse::Daily],
|
|
6
|
+
screens_to_next_block: Integer,
|
|
7
|
+
unbilled_screens: Integer
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ModerationRetrieveUsageResponse < Dodopayments::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor daily: ::Array[Dodopayments::Models::ModerationRetrieveUsageResponse::Daily]
|
|
12
|
+
|
|
13
|
+
attr_accessor screens_to_next_block: Integer
|
|
14
|
+
|
|
15
|
+
attr_accessor unbilled_screens: Integer
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
daily: ::Array[Dodopayments::Models::ModerationRetrieveUsageResponse::Daily],
|
|
19
|
+
screens_to_next_block: Integer,
|
|
20
|
+
unbilled_screens: Integer
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
daily: ::Array[Dodopayments::Models::ModerationRetrieveUsageResponse::Daily],
|
|
25
|
+
screens_to_next_block: Integer,
|
|
26
|
+
unbilled_screens: Integer
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type daily = { date: Date, screens: Integer }
|
|
30
|
+
|
|
31
|
+
class Daily < Dodopayments::Internal::Type::BaseModel
|
|
32
|
+
attr_accessor date: Date
|
|
33
|
+
|
|
34
|
+
attr_accessor screens: Integer
|
|
35
|
+
|
|
36
|
+
def initialize: (date: Date, screens: Integer) -> void
|
|
37
|
+
|
|
38
|
+
def to_hash: -> { date: Date, screens: Integer }
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_screen_params =
|
|
4
|
+
{ image: String?, request_id: String?, text: String? }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class ModerationScreenParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor image: String?
|
|
12
|
+
|
|
13
|
+
attr_accessor request_id: String?
|
|
14
|
+
|
|
15
|
+
attr_accessor text: String?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
?image: String?,
|
|
19
|
+
?request_id: String?,
|
|
20
|
+
?text: String?,
|
|
21
|
+
?request_options: Dodopayments::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
image: String?,
|
|
26
|
+
request_id: String?,
|
|
27
|
+
text: String?,
|
|
28
|
+
request_options: Dodopayments::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|