dodopayments 2.29.0 → 2.31.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 +3 -0
- data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +3 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +14 -1
- data/lib/dodopayments/models/checkout_session_preview_response.rb +86 -4
- data/lib/dodopayments/models/checkout_session_request.rb +18 -5
- data/lib/dodopayments/models/customers/email_log_item.rb +3 -2
- data/lib/dodopayments/models/customers/email_policies.rb +7 -5
- 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/refund.rb +22 -1
- data/lib/dodopayments/models/refund_list_item.rb +22 -1
- data/lib/dodopayments/models/refund_network_reference_type.rb +19 -0
- data/lib/dodopayments/models/subscription.rb +10 -1
- data/lib/dodopayments/models/subscription_cancelled_by.rb +54 -0
- data/lib/dodopayments/models/subscription_list_response.rb +10 -1
- data/lib/dodopayments/models/subscription_preview_change_plan_response.rb +18 -7
- data/lib/dodopayments/models.rb +18 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +6 -6
- 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 +12 -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 +21 -0
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +130 -6
- data/rbi/dodopayments/models/checkout_session_request.rbi +31 -8
- data/rbi/dodopayments/models/customers/email_log_item.rbi +4 -2
- data/rbi/dodopayments/models/customers/email_policies.rbi +10 -6
- 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/refund.rbi +26 -0
- data/rbi/dodopayments/models/refund_list_item.rbi +26 -0
- data/rbi/dodopayments/models/refund_network_reference_type.rbi +41 -0
- data/rbi/dodopayments/models/subscription.rbi +18 -0
- data/rbi/dodopayments/models/subscription_cancelled_by.rbi +107 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +18 -0
- data/rbi/dodopayments/models/subscription_preview_change_plan_response.rbi +24 -10
- data/rbi/dodopayments/models.rbi +20 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +30 -4
- 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/checkout_session_request.rbs +4 -6
- 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/refund.rbs +10 -0
- data/sig/dodopayments/models/refund_list_item.rbs +10 -0
- data/sig/dodopayments/models/refund_network_reference_type.rbs +20 -0
- data/sig/dodopayments/models/subscription.rbs +5 -0
- data/sig/dodopayments/models/subscription_cancelled_by.rbs +43 -0
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_preview_change_plan_response.rbs +5 -0
- data/sig/dodopayments/models.rbs +18 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -2
- data/sig/dodopayments/resources/moderation.rbs +18 -0
- metadata +38 -2
|
@@ -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?,
|
|
@@ -13,6 +13,8 @@ module Dodopayments
|
|
|
13
13
|
status: Dodopayments::Models::refund_status,
|
|
14
14
|
amount: Integer?,
|
|
15
15
|
currency: Dodopayments::Models::currency?,
|
|
16
|
+
network_reference: String?,
|
|
17
|
+
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
16
18
|
reason: String?
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -39,6 +41,10 @@ module Dodopayments
|
|
|
39
41
|
|
|
40
42
|
attr_accessor currency: Dodopayments::Models::currency?
|
|
41
43
|
|
|
44
|
+
attr_accessor network_reference: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor network_reference_type: Dodopayments::Models::refund_network_reference_type?
|
|
47
|
+
|
|
42
48
|
attr_accessor reason: String?
|
|
43
49
|
|
|
44
50
|
def initialize: (
|
|
@@ -53,6 +59,8 @@ module Dodopayments
|
|
|
53
59
|
status: Dodopayments::Models::refund_status,
|
|
54
60
|
?amount: Integer?,
|
|
55
61
|
?currency: Dodopayments::Models::currency?,
|
|
62
|
+
?network_reference: String?,
|
|
63
|
+
?network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
56
64
|
?reason: String?
|
|
57
65
|
) -> void
|
|
58
66
|
|
|
@@ -68,6 +76,8 @@ module Dodopayments
|
|
|
68
76
|
status: Dodopayments::Models::refund_status,
|
|
69
77
|
amount: Integer?,
|
|
70
78
|
currency: Dodopayments::Models::currency?,
|
|
79
|
+
network_reference: String?,
|
|
80
|
+
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
71
81
|
reason: String?
|
|
72
82
|
}
|
|
73
83
|
end
|
|
@@ -10,6 +10,8 @@ module Dodopayments
|
|
|
10
10
|
status: Dodopayments::Models::refund_status,
|
|
11
11
|
amount: Integer?,
|
|
12
12
|
currency: Dodopayments::Models::currency?,
|
|
13
|
+
network_reference: String?,
|
|
14
|
+
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
13
15
|
reason: String?
|
|
14
16
|
}
|
|
15
17
|
|
|
@@ -30,6 +32,10 @@ module Dodopayments
|
|
|
30
32
|
|
|
31
33
|
attr_accessor currency: Dodopayments::Models::currency?
|
|
32
34
|
|
|
35
|
+
attr_accessor network_reference: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor network_reference_type: Dodopayments::Models::refund_network_reference_type?
|
|
38
|
+
|
|
33
39
|
attr_accessor reason: String?
|
|
34
40
|
|
|
35
41
|
def initialize: (
|
|
@@ -41,6 +47,8 @@ module Dodopayments
|
|
|
41
47
|
status: Dodopayments::Models::refund_status,
|
|
42
48
|
?amount: Integer?,
|
|
43
49
|
?currency: Dodopayments::Models::currency?,
|
|
50
|
+
?network_reference: String?,
|
|
51
|
+
?network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
44
52
|
?reason: String?
|
|
45
53
|
) -> void
|
|
46
54
|
|
|
@@ -53,6 +61,8 @@ module Dodopayments
|
|
|
53
61
|
status: Dodopayments::Models::refund_status,
|
|
54
62
|
amount: Integer?,
|
|
55
63
|
currency: Dodopayments::Models::currency?,
|
|
64
|
+
network_reference: String?,
|
|
65
|
+
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
56
66
|
reason: String?
|
|
57
67
|
}
|
|
58
68
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type refund_network_reference_type =
|
|
4
|
+
:acquirer_reference_number
|
|
5
|
+
| :system_trace_audit_number
|
|
6
|
+
| :retrieval_reference_number
|
|
7
|
+
| :other
|
|
8
|
+
|
|
9
|
+
module RefundNetworkReferenceType
|
|
10
|
+
extend Dodopayments::Internal::Type::Enum
|
|
11
|
+
|
|
12
|
+
ACQUIRER_REFERENCE_NUMBER: :acquirer_reference_number
|
|
13
|
+
SYSTEM_TRACE_AUDIT_NUMBER: :system_trace_audit_number
|
|
14
|
+
RETRIEVAL_REFERENCE_NUMBER: :retrieval_reference_number
|
|
15
|
+
OTHER: :other
|
|
16
|
+
|
|
17
|
+
def self?.values: -> ::Array[Dodopayments::Models::refund_network_reference_type]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -31,6 +31,7 @@ module Dodopayments
|
|
|
31
31
|
cancellation_comment: String?,
|
|
32
32
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
33
33
|
cancelled_at: Time?,
|
|
34
|
+
cancelled_by: Dodopayments::SubscriptionCancelledBy?,
|
|
34
35
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
35
36
|
customer_business_name: String?,
|
|
36
37
|
discount_cycles_remaining: Integer?,
|
|
@@ -103,6 +104,8 @@ module Dodopayments
|
|
|
103
104
|
|
|
104
105
|
attr_accessor cancelled_at: Time?
|
|
105
106
|
|
|
107
|
+
attr_accessor cancelled_by: Dodopayments::SubscriptionCancelledBy?
|
|
108
|
+
|
|
106
109
|
attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
|
|
107
110
|
|
|
108
111
|
attr_accessor customer_business_name: String?
|
|
@@ -155,6 +158,7 @@ module Dodopayments
|
|
|
155
158
|
?cancellation_comment: String?,
|
|
156
159
|
?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
157
160
|
?cancelled_at: Time?,
|
|
161
|
+
?cancelled_by: Dodopayments::SubscriptionCancelledBy?,
|
|
158
162
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
159
163
|
?customer_business_name: String?,
|
|
160
164
|
?discount_cycles_remaining: Integer?,
|
|
@@ -198,6 +202,7 @@ module Dodopayments
|
|
|
198
202
|
cancellation_comment: String?,
|
|
199
203
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
200
204
|
cancelled_at: Time?,
|
|
205
|
+
cancelled_by: Dodopayments::SubscriptionCancelledBy?,
|
|
201
206
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
202
207
|
customer_business_name: String?,
|
|
203
208
|
discount_cycles_remaining: Integer?,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_cancelled_by =
|
|
4
|
+
{
|
|
5
|
+
actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type,
|
|
6
|
+
email: String?,
|
|
7
|
+
name: String?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SubscriptionCancelledBy < Dodopayments::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type
|
|
12
|
+
|
|
13
|
+
attr_accessor email: String?
|
|
14
|
+
|
|
15
|
+
attr_accessor name: String?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type,
|
|
19
|
+
?email: String?,
|
|
20
|
+
?name: String?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type,
|
|
25
|
+
email: String?,
|
|
26
|
+
name: String?
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type actor_type = :customer | :merchant_user | :api_key | :dodo_team
|
|
30
|
+
|
|
31
|
+
module ActorType
|
|
32
|
+
extend Dodopayments::Internal::Type::Enum
|
|
33
|
+
|
|
34
|
+
CUSTOMER: :customer
|
|
35
|
+
MERCHANT_USER: :merchant_user
|
|
36
|
+
API_KEY: :api_key
|
|
37
|
+
DODO_TEAM: :dodo_team
|
|
38
|
+
|
|
39
|
+
def self?.values: -> ::Array[Dodopayments::Models::SubscriptionCancelledBy::actor_type]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|