dodopayments 2.29.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 +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/models/balance_ledger_entry.rb +3 -0
- data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +3 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +12 -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_log_item.rb +3 -2
- data/lib/dodopayments/models/customers/email_policies.rb +4 -3
- 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 +15 -0
- data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +15 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +17 -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_log_item.rbi +4 -2
- data/rbi/dodopayments/models/customers/email_policies.rbi +6 -4
- 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 +6 -0
- data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +6 -0
- data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +52 -0
- 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
|
@@ -18,6 +18,7 @@ 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,
|
|
22
23
|
require_tax_id: bool,
|
|
23
24
|
single_page: bool
|
|
@@ -88,6 +89,10 @@ module Dodopayments
|
|
|
88
89
|
|
|
89
90
|
def redirect_immediately=: (bool) -> bool
|
|
90
91
|
|
|
92
|
+
attr_reader require_cardholder_name: bool?
|
|
93
|
+
|
|
94
|
+
def require_cardholder_name=: (bool) -> bool
|
|
95
|
+
|
|
91
96
|
attr_reader require_phone_number: bool?
|
|
92
97
|
|
|
93
98
|
def require_phone_number=: (bool) -> bool
|
|
@@ -117,6 +122,7 @@ module Dodopayments
|
|
|
117
122
|
?allow_tax_id: bool,
|
|
118
123
|
?always_create_new_customer: bool,
|
|
119
124
|
?redirect_immediately: bool,
|
|
125
|
+
?require_cardholder_name: bool,
|
|
120
126
|
?require_phone_number: bool,
|
|
121
127
|
?require_tax_id: bool,
|
|
122
128
|
?single_page: bool
|
|
@@ -139,6 +145,7 @@ module Dodopayments
|
|
|
139
145
|
allow_tax_id: bool,
|
|
140
146
|
always_create_new_customer: bool,
|
|
141
147
|
redirect_immediately: bool,
|
|
148
|
+
require_cardholder_name: bool,
|
|
142
149
|
require_phone_number: bool,
|
|
143
150
|
require_tax_id: bool,
|
|
144
151
|
single_page: bool
|
|
@@ -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
|
|
@@ -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
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type moderation_screen_response =
|
|
4
|
+
{
|
|
5
|
+
categories: Dodopayments::ModerationCategoryScores,
|
|
6
|
+
compound_triggered: bool,
|
|
7
|
+
decision: Dodopayments::Models::moderation_decision,
|
|
8
|
+
latency_ms: Integer,
|
|
9
|
+
normalized_applied: bool,
|
|
10
|
+
notes: ::Array[String],
|
|
11
|
+
passes: Integer,
|
|
12
|
+
provenance: Dodopayments::ModerationCategoryProvenance,
|
|
13
|
+
request_id: String?,
|
|
14
|
+
triggered: ::Array[Dodopayments::Models::moderation_category]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class ModerationScreenResponse < Dodopayments::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor categories: Dodopayments::ModerationCategoryScores
|
|
19
|
+
|
|
20
|
+
attr_accessor compound_triggered: bool
|
|
21
|
+
|
|
22
|
+
attr_accessor decision: Dodopayments::Models::moderation_decision
|
|
23
|
+
|
|
24
|
+
attr_accessor latency_ms: Integer
|
|
25
|
+
|
|
26
|
+
attr_accessor normalized_applied: bool
|
|
27
|
+
|
|
28
|
+
attr_accessor notes: ::Array[String]
|
|
29
|
+
|
|
30
|
+
attr_accessor passes: Integer
|
|
31
|
+
|
|
32
|
+
attr_accessor provenance: Dodopayments::ModerationCategoryProvenance
|
|
33
|
+
|
|
34
|
+
attr_accessor request_id: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor triggered: ::Array[Dodopayments::Models::moderation_category]
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
categories: Dodopayments::ModerationCategoryScores,
|
|
40
|
+
compound_triggered: bool,
|
|
41
|
+
decision: Dodopayments::Models::moderation_decision,
|
|
42
|
+
latency_ms: Integer,
|
|
43
|
+
normalized_applied: bool,
|
|
44
|
+
notes: ::Array[String],
|
|
45
|
+
passes: Integer,
|
|
46
|
+
provenance: Dodopayments::ModerationCategoryProvenance,
|
|
47
|
+
request_id: String?,
|
|
48
|
+
triggered: ::Array[Dodopayments::Models::moderation_category]
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
categories: Dodopayments::ModerationCategoryScores,
|
|
53
|
+
compound_triggered: bool,
|
|
54
|
+
decision: Dodopayments::Models::moderation_decision,
|
|
55
|
+
latency_ms: Integer,
|
|
56
|
+
normalized_applied: bool,
|
|
57
|
+
notes: ::Array[String],
|
|
58
|
+
passes: Integer,
|
|
59
|
+
provenance: Dodopayments::ModerationCategoryProvenance,
|
|
60
|
+
request_id: String?,
|
|
61
|
+
triggered: ::Array[Dodopayments::Models::moderation_category]
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -10,6 +10,7 @@ module Dodopayments
|
|
|
10
10
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
11
11
|
digital_products_delivered: bool,
|
|
12
12
|
disputes: ::Array[Dodopayments::Dispute],
|
|
13
|
+
is_multi_subscription: bool,
|
|
13
14
|
is_update_payment_method: bool,
|
|
14
15
|
metadata: Dodopayments::Models::metadata,
|
|
15
16
|
payment_id: String,
|
|
@@ -18,6 +19,7 @@ module Dodopayments
|
|
|
18
19
|
retry_attempt: Integer,
|
|
19
20
|
settlement_amount: Integer,
|
|
20
21
|
settlement_currency: Dodopayments::Models::currency,
|
|
22
|
+
subscription_ids: ::Array[String],
|
|
21
23
|
total_amount: Integer,
|
|
22
24
|
card_holder_name: String?,
|
|
23
25
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
@@ -62,6 +64,8 @@ module Dodopayments
|
|
|
62
64
|
|
|
63
65
|
attr_accessor disputes: ::Array[Dodopayments::Dispute]
|
|
64
66
|
|
|
67
|
+
attr_accessor is_multi_subscription: bool
|
|
68
|
+
|
|
65
69
|
attr_accessor is_update_payment_method: bool
|
|
66
70
|
|
|
67
71
|
attr_accessor metadata: Dodopayments::Models::metadata
|
|
@@ -78,6 +82,8 @@ module Dodopayments
|
|
|
78
82
|
|
|
79
83
|
attr_accessor settlement_currency: Dodopayments::Models::currency
|
|
80
84
|
|
|
85
|
+
attr_accessor subscription_ids: ::Array[String]
|
|
86
|
+
|
|
81
87
|
attr_accessor total_amount: Integer
|
|
82
88
|
|
|
83
89
|
attr_accessor card_holder_name: String?
|
|
@@ -137,6 +143,7 @@ module Dodopayments
|
|
|
137
143
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
138
144
|
digital_products_delivered: bool,
|
|
139
145
|
disputes: ::Array[Dodopayments::Dispute],
|
|
146
|
+
is_multi_subscription: bool,
|
|
140
147
|
is_update_payment_method: bool,
|
|
141
148
|
metadata: Dodopayments::Models::metadata,
|
|
142
149
|
payment_id: String,
|
|
@@ -145,6 +152,7 @@ module Dodopayments
|
|
|
145
152
|
retry_attempt: Integer,
|
|
146
153
|
settlement_amount: Integer,
|
|
147
154
|
settlement_currency: Dodopayments::Models::currency,
|
|
155
|
+
subscription_ids: ::Array[String],
|
|
148
156
|
total_amount: Integer,
|
|
149
157
|
?card_holder_name: String?,
|
|
150
158
|
?card_issuing_country: Dodopayments::Models::country_code?,
|
|
@@ -181,6 +189,7 @@ module Dodopayments
|
|
|
181
189
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
182
190
|
digital_products_delivered: bool,
|
|
183
191
|
disputes: ::Array[Dodopayments::Dispute],
|
|
192
|
+
is_multi_subscription: bool,
|
|
184
193
|
is_update_payment_method: bool,
|
|
185
194
|
metadata: Dodopayments::Models::metadata,
|
|
186
195
|
payment_id: String,
|
|
@@ -189,6 +198,7 @@ module Dodopayments
|
|
|
189
198
|
retry_attempt: Integer,
|
|
190
199
|
settlement_amount: Integer,
|
|
191
200
|
settlement_currency: Dodopayments::Models::currency,
|
|
201
|
+
subscription_ids: ::Array[String],
|
|
192
202
|
total_amount: Integer,
|
|
193
203
|
card_holder_name: String?,
|
|
194
204
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
@@ -8,9 +8,11 @@ module Dodopayments
|
|
|
8
8
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
9
9
|
digital_products_delivered: bool,
|
|
10
10
|
has_license_key: bool,
|
|
11
|
+
is_multi_subscription: bool,
|
|
11
12
|
metadata: Dodopayments::Models::metadata,
|
|
12
13
|
payment_id: String,
|
|
13
14
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
15
|
+
subscription_ids: ::Array[String],
|
|
14
16
|
total_amount: Integer,
|
|
15
17
|
card_last_four: String?,
|
|
16
18
|
card_network: String?,
|
|
@@ -37,12 +39,16 @@ module Dodopayments
|
|
|
37
39
|
|
|
38
40
|
attr_accessor has_license_key: bool
|
|
39
41
|
|
|
42
|
+
attr_accessor is_multi_subscription: bool
|
|
43
|
+
|
|
40
44
|
attr_accessor metadata: Dodopayments::Models::metadata
|
|
41
45
|
|
|
42
46
|
attr_accessor payment_id: String
|
|
43
47
|
|
|
44
48
|
attr_accessor payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider
|
|
45
49
|
|
|
50
|
+
attr_accessor subscription_ids: ::Array[String]
|
|
51
|
+
|
|
46
52
|
attr_accessor total_amount: Integer
|
|
47
53
|
|
|
48
54
|
attr_accessor card_last_four: String?
|
|
@@ -72,9 +78,11 @@ module Dodopayments
|
|
|
72
78
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
73
79
|
digital_products_delivered: bool,
|
|
74
80
|
has_license_key: bool,
|
|
81
|
+
is_multi_subscription: bool,
|
|
75
82
|
metadata: Dodopayments::Models::metadata,
|
|
76
83
|
payment_id: String,
|
|
77
84
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
85
|
+
subscription_ids: ::Array[String],
|
|
78
86
|
total_amount: Integer,
|
|
79
87
|
?card_last_four: String?,
|
|
80
88
|
?card_network: String?,
|
|
@@ -95,9 +103,11 @@ module Dodopayments
|
|
|
95
103
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
96
104
|
digital_products_delivered: bool,
|
|
97
105
|
has_license_key: bool,
|
|
106
|
+
is_multi_subscription: bool,
|
|
98
107
|
metadata: Dodopayments::Models::metadata,
|
|
99
108
|
payment_id: String,
|
|
100
109
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
110
|
+
subscription_ids: ::Array[String],
|
|
101
111
|
total_amount: Integer,
|
|
102
112
|
card_last_four: String?,
|
|
103
113
|
card_network: String?,
|