Weenect/Preferences.pm untested

filter: Statementstmt 0.0% 0 / 130 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 134 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #! perl
2  
3 use v5.36;
4 use Object::Pad;
5 use Class::JSON_Object;
6 use utf8;
7  
8 =head1 NAME
9  
10 Weenect::Preferences - Preferences data
11  
12 =head1 DESCRIPTION
13  
14 These are data classes for the preferences. Read the source for details.
15  
16 =cut
17  
18 class Weenect::Preferences :does(Class::JSON_Object) {
19 field @account_option_offers :Class(Weenect::Preferences_account_option_offers); #
20 field @account_options :Class(Weenect::Preferences_account_options); #
21 field $address; #
22 field $city; #
23 field $connection_date; #
24 field $contact_mail; #
25 field $country; #
26 field $creation_date; #
27 field $default_payment_mean; #
28 field $disable_history; #
29 field $emailpref; #
30 field $firstname; #
31 field $id; #
32 field $is_admin; #
33 field $is_b2b; #
34 field $is_premium; #
35 field $is_security; #
36 field $language; #
37 field $last_connection_date; #
38 field $lastname; #
39 field $mail; #
40 field $mail_pref; #
41 field $need_subscription; #
42 field $optin; #
43 field $phone; #
44 field $postal_code; #
45 field $preferred_metric_system; #
46 field $review_link; #
47 field $role_retailer_id; #
48 field $role_site; #
49 field $short_code; #
50 field $site; #
51 field $sms; #
52 field $user_notation; #
53 field $valid; #
54 field $white_label; #
55 }
56  
57 class Weenect::Preferences_account_option_offers :does(Class::JSON_Object) {
58 field $code; #
59 field $created_at; #
60 field $id; #
61 field $price_offer; #
62 field $site; #
63 field $sms; #
64 field $updated_at; #
65 }
66  
67 class Weenect::Preferences_account_option_offers_price_offer :does(Class::JSON_Object) {
68 field $code; #
69 field $de; #
70 field $en; #
71 field $es; #
72 field $fr; #
73 field $id; #
74 field $it; #
75 field $nl; #
76 }
77  
78 class Weenect::Preferences_account_option_offers_price_offer_de :does(Class::JSON_Object) {
79 field $amount; #
80 field $currency; #
81 }
82  
83 class Weenect::Preferences_account_option_offers_price_offer_en :does(Class::JSON_Object) {
84 field $amount; #
85 field $currency; #
86 }
87  
88 class Weenect::Preferences_account_option_offers_price_offer_es :does(Class::JSON_Object) {
89 field $amount; #
90 field $currency; #
91 }
92  
93 class Weenect::Preferences_account_option_offers_price_offer_fr :does(Class::JSON_Object) {
94 field $amount; #
95 field $currency; #
96 }
97  
98 class Weenect::Preferences_account_option_offers_price_offer_it :does(Class::JSON_Object) {
99 field $amount; #
100 field $currency; #
101 }
102  
103 class Weenect::Preferences_account_option_offers_price_offer_nl :does(Class::JSON_Object) {
104 field $amount; #
105 field $currency; #
106 }
107  
108 class Weenect::Preferences_account_options :does(Class::JSON_Object) {
109 field $activated; #
110 field $activation_date; #
111 field $amount; #
112 field $cancel_date; #
113 field $cancel_reason; #
114 field $code; #
115 field $created_at; #
116 field $currency; #
117 field $id; #
118 field $is_running; #
119 field $next_charge_at; #
120 field $sms; #
121 field $subscription_id; #
122 field $updated_at; #
123 field $user_id; #
124 }
125  
126 class Weenect::Preferences_default_payment_mean :does(Class::JSON_Object) {
127 field $bank_account; #
128 field $card_expiry; #
129 field $card_pan; #
130 field $count_option_payment_error; #
131 field $count_subscription_payment_error; #
132 field $country; #
133 field $created_at; #
134 field $customer_id; #
135 field $has_card_expired; #
136 field $has_insufficient_funds; #
137 field $id; #
138 field $ipaddress; #
139 field $is_activated; #
140 field $payment_additional_id; #
141 field $payment_id; #
142 field $payment_mean; #
143 field $payment_product; #
144 field $updated_at; #
145 field $user_id; #
146 }
147  
148 class Weenect::Preferences_mail_pref :does(Class::JSON_Object) {
149 field $company_news; #
150 field $new_features; #
151 field $offers; #
152 field $surveys_and_tests; #
153 }
154  
155 class Weenect::Preferences_user_notation :does(Class::JSON_Object) {
156 field $amazon_review_link; #
157 field $created_at; #
158 field $id; #
159 field $notation_in_app; #
160 field $trustpilot_product_review_link; #
161 field $trustpilot_service_review_link; #
162 field $updated_at; #
163 field $user_id; #
164 }
165  
166 class Weenect::Preferences_white_label :does(Class::JSON_Object) {
167 field $code; #
168 field $display_header; #
169 field $display_logo; #
170 field $display_splashscreen; #
171 field $logo; #
172 field $logo_header; #
173 field $logo_splashscreen; #
174 field $name; #
175 }
176  
177 1;