V1beta/PrivateOffer/Types.pm untested

filter: Statementstmt 0.0% 0 / 282 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 287 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Commerceproducer::V1beta::PrivateOffer::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'PrivateOffer',
11 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer'];
12  
13 coerce 'PrivateOffer',
14 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer'->new($_) };
15  
16 declare 'RepeatedPrivateOffer',
17 as ArrayRef[PrivateOffer()];
18  
19 coerce 'RepeatedPrivateOffer',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer'->new($_) } @$_ ] };
21  
22 declare 'MapStringPrivateOffer',
23 as HashRef[PrivateOffer()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'OfferDealType',
29 as (Int | Str);
30  
31 declare 'PublishRequirementGoogleReview',
32 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PublishRequirementGoogleReview'];
33  
34 coerce 'PublishRequirementGoogleReview',
35 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PublishRequirementGoogleReview'->new($_) };
36  
37 declare 'RepeatedPublishRequirementGoogleReview',
38 as ArrayRef[PublishRequirementGoogleReview()];
39  
40 coerce 'RepeatedPublishRequirementGoogleReview',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PublishRequirementGoogleReview'->new($_) } @$_ ] };
42  
43 declare 'MapStringPublishRequirementGoogleReview',
44 as HashRef[PublishRequirementGoogleReview()];
45  
46 declare 'ResellerContact',
47 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::ResellerContact'];
48  
49 coerce 'ResellerContact',
50 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::ResellerContact'->new($_) };
51  
52 declare 'RepeatedResellerContact',
53 as ArrayRef[ResellerContact()];
54  
55 coerce 'RepeatedResellerContact',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::ResellerContact'->new($_) } @$_ ] };
57  
58 declare 'MapStringResellerContact',
59 as HashRef[ResellerContact()];
60  
61 declare 'PartnerContact',
62 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PartnerContact'];
63  
64 coerce 'PartnerContact',
65 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PartnerContact'->new($_) };
66  
67 declare 'RepeatedPartnerContact',
68 as ArrayRef[PartnerContact()];
69  
70 coerce 'RepeatedPartnerContact',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PartnerContact'->new($_) } @$_ ] };
72  
73 declare 'MapStringPartnerContact',
74 as HashRef[PartnerContact()];
75  
76 declare 'Customer',
77 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Customer'];
78  
79 coerce 'Customer',
80 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Customer'->new($_) };
81  
82 declare 'RepeatedCustomer',
83 as ArrayRef[Customer()];
84  
85 coerce 'RepeatedCustomer',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Customer'->new($_) } @$_ ] };
87  
88 declare 'MapStringCustomer',
89 as HashRef[Customer()];
90  
91 declare 'Term',
92 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Term'];
93  
94 coerce 'Term',
95 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Term'->new($_) };
96  
97 declare 'RepeatedTerm',
98 as ArrayRef[Term()];
99  
100 coerce 'RepeatedTerm',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Term'->new($_) } @$_ ] };
102  
103 declare 'MapStringTerm',
104 as HashRef[Term()];
105  
106 declare 'StartPolicy',
107 as (Int | Str);
108  
109 declare 'EndPolicy',
110 as (Int | Str);
111  
112 declare 'SingleProductOffer',
113 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer'];
114  
115 coerce 'SingleProductOffer',
116 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer'->new($_) };
117  
118 declare 'RepeatedSingleProductOffer',
119 as ArrayRef[SingleProductOffer()];
120  
121 coerce 'RepeatedSingleProductOffer',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer'->new($_) } @$_ ] };
123  
124 declare 'MapStringSingleProductOffer',
125 as HashRef[SingleProductOffer()];
126  
127 declare 'Feature',
128 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::Feature'];
129  
130 coerce 'Feature',
131 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::Feature'->new($_) };
132  
133 declare 'RepeatedFeature',
134 as ArrayRef[Feature()];
135  
136 coerce 'RepeatedFeature',
137 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::Feature'->new($_) } @$_ ] };
138  
139 declare 'MapStringFeature',
140 as HashRef[Feature()];
141  
142 declare 'PriceModel',
143 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel'];
144  
145 coerce 'PriceModel',
146 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel'->new($_) };
147  
148 declare 'RepeatedPriceModel',
149 as ArrayRef[PriceModel()];
150  
151 coerce 'RepeatedPriceModel',
152 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel'->new($_) } @$_ ] };
153  
154 declare 'MapStringPriceModel',
155 as HashRef[PriceModel()];
156  
157 declare 'SkuDiscount',
158 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::SkuDiscount'];
159  
160 coerce 'SkuDiscount',
161 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::SkuDiscount'->new($_) };
162  
163 declare 'RepeatedSkuDiscount',
164 as ArrayRef[SkuDiscount()];
165  
166 coerce 'RepeatedSkuDiscount',
167 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::SkuDiscount'->new($_) } @$_ ] };
168  
169 declare 'MapStringSkuDiscount',
170 as HashRef[SkuDiscount()];
171  
172 declare 'Usage',
173 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::Usage'];
174  
175 coerce 'Usage',
176 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::Usage'->new($_) };
177  
178 declare 'RepeatedUsage',
179 as ArrayRef[Usage()];
180  
181 coerce 'RepeatedUsage',
182 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::Usage'->new($_) } @$_ ] };
183  
184 declare 'MapStringUsage',
185 as HashRef[Usage()];
186  
187 declare 'FlatFee',
188 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::FlatFee'];
189  
190 coerce 'FlatFee',
191 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::FlatFee'->new($_) };
192  
193 declare 'RepeatedFlatFee',
194 as ArrayRef[FlatFee()];
195  
196 coerce 'RepeatedFlatFee',
197 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::FlatFee'->new($_) } @$_ ] };
198  
199 declare 'MapStringFlatFee',
200 as HashRef[FlatFee()];
201  
202 declare 'Commitment',
203 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::Commitment'];
204  
205 coerce 'Commitment',
206 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::Commitment'->new($_) };
207  
208 declare 'RepeatedCommitment',
209 as ArrayRef[Commitment()];
210  
211 coerce 'RepeatedCommitment',
212 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::PriceModel::Commitment'->new($_) } @$_ ] };
213  
214 declare 'MapStringCommitment',
215 as HashRef[Commitment()];
216  
217 declare 'StandardIntervalPrice',
218 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::StandardIntervalPrice'];
219  
220 coerce 'StandardIntervalPrice',
221 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::StandardIntervalPrice'->new($_) };
222  
223 declare 'RepeatedStandardIntervalPrice',
224 as ArrayRef[StandardIntervalPrice()];
225  
226 coerce 'RepeatedStandardIntervalPrice',
227 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::StandardIntervalPrice'->new($_) } @$_ ] };
228  
229 declare 'MapStringStandardIntervalPrice',
230 as HashRef[StandardIntervalPrice()];
231  
232 declare 'StandardInterval',
233 as (Int | Str);
234  
235 declare 'Installment',
236 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::Installment'];
237  
238 coerce 'Installment',
239 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::Installment'->new($_) };
240  
241 declare 'RepeatedInstallment',
242 as ArrayRef[Installment()];
243  
244 coerce 'RepeatedInstallment',
245 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::Installment'->new($_) } @$_ ] };
246  
247 declare 'MapStringInstallment',
248 as HashRef[Installment()];
249  
250 declare 'CustomIntervalPrice',
251 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::CustomIntervalPrice'];
252  
253 coerce 'CustomIntervalPrice',
254 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::CustomIntervalPrice'->new($_) };
255  
256 declare 'RepeatedCustomIntervalPrice',
257 as ArrayRef[CustomIntervalPrice()];
258  
259 coerce 'RepeatedCustomIntervalPrice',
260 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::CustomIntervalPrice'->new($_) } @$_ ] };
261  
262 declare 'MapStringCustomIntervalPrice',
263 as HashRef[CustomIntervalPrice()];
264  
265 declare 'ContractValue',
266 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::ContractValue'];
267  
268 coerce 'ContractValue',
269 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::ContractValue'->new($_) };
270  
271 declare 'RepeatedContractValue',
272 as ArrayRef[ContractValue()];
273  
274 coerce 'RepeatedContractValue',
275 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::ContractValue'->new($_) } @$_ ] };
276  
277 declare 'MapStringContractValue',
278 as HashRef[ContractValue()];
279  
280 declare 'RevenueShare',
281 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::RevenueShare'];
282  
283 coerce 'RevenueShare',
284 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::RevenueShare'->new($_) };
285  
286 declare 'RepeatedRevenueShare',
287 as ArrayRef[RevenueShare()];
288  
289 coerce 'RepeatedRevenueShare',
290 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::RevenueShare'->new($_) } @$_ ] };
291  
292 declare 'MapStringRevenueShare',
293 as HashRef[RevenueShare()];
294  
295 declare 'AdditionalContractValue',
296 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::AdditionalContractValue'];
297  
298 coerce 'AdditionalContractValue',
299 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::AdditionalContractValue'->new($_) };
300  
301 declare 'RepeatedAdditionalContractValue',
302 as ArrayRef[AdditionalContractValue()];
303  
304 coerce 'RepeatedAdditionalContractValue',
305 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer::AdditionalContractValue'->new($_) } @$_ ] };
306  
307 declare 'MapStringAdditionalContractValue',
308 as HashRef[AdditionalContractValue()];
309  
310 declare 'PrivateOfferDocument',
311 as InstanceOf['Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOfferDocument'];
312  
313 coerce 'PrivateOfferDocument',
314 from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOfferDocument'->new($_) };
315  
316 declare 'RepeatedPrivateOfferDocument',
317 as ArrayRef[PrivateOfferDocument()];
318  
319 coerce 'RepeatedPrivateOfferDocument',
320 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOfferDocument'->new($_) } @$_ ] };
321  
322 declare 'MapStringPrivateOfferDocument',
323 as HashRef[PrivateOfferDocument()];
324  
325 declare 'DocumentType',
326 as (Int | Str);
327  
328 1;
329  
330 __END__