V1/Offers/Types.pm untested

filter: Statementstmt 0.0% 0 / 166 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 171 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::Channel::V1::Offers::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 'PromotionalOrderType',
11 as (Int | Str);
12  
13 declare 'PaymentPlan',
14 as (Int | Str);
15  
16 declare 'PaymentType',
17 as (Int | Str);
18  
19 declare 'ResourceType',
20 as (Int | Str);
21  
22 declare 'PeriodType',
23 as (Int | Str);
24  
25 declare 'DiscountType',
26 as (Int | Str);
27  
28 declare 'Offer',
29 as InstanceOf['Google::Cloud::Channel::V1::Offers::Offer'];
30  
31 coerce 'Offer',
32 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::Offer'->new($_) };
33  
34 declare 'RepeatedOffer',
35 as ArrayRef[Offer()];
36  
37 coerce 'RepeatedOffer',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::Offer'->new($_) } @$_ ] };
39  
40 declare 'MapStringOffer',
41 as HashRef[Offer()];
42  
43 declare 'ParameterDefinition',
44 as InstanceOf['Google::Cloud::Channel::V1::Offers::ParameterDefinition'];
45  
46 coerce 'ParameterDefinition',
47 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::ParameterDefinition'->new($_) };
48  
49 declare 'RepeatedParameterDefinition',
50 as ArrayRef[ParameterDefinition()];
51  
52 coerce 'RepeatedParameterDefinition',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::ParameterDefinition'->new($_) } @$_ ] };
54  
55 declare 'MapStringParameterDefinition',
56 as HashRef[ParameterDefinition()];
57  
58 declare 'ParameterType',
59 as (Int | Str);
60  
61 declare 'Constraints',
62 as InstanceOf['Google::Cloud::Channel::V1::Offers::Constraints'];
63  
64 coerce 'Constraints',
65 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::Constraints'->new($_) };
66  
67 declare 'RepeatedConstraints',
68 as ArrayRef[Constraints()];
69  
70 coerce 'RepeatedConstraints',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::Constraints'->new($_) } @$_ ] };
72  
73 declare 'MapStringConstraints',
74 as HashRef[Constraints()];
75  
76 declare 'CustomerConstraints',
77 as InstanceOf['Google::Cloud::Channel::V1::Offers::CustomerConstraints'];
78  
79 coerce 'CustomerConstraints',
80 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::CustomerConstraints'->new($_) };
81  
82 declare 'RepeatedCustomerConstraints',
83 as ArrayRef[CustomerConstraints()];
84  
85 coerce 'RepeatedCustomerConstraints',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::CustomerConstraints'->new($_) } @$_ ] };
87  
88 declare 'MapStringCustomerConstraints',
89 as HashRef[CustomerConstraints()];
90  
91 declare 'Plan',
92 as InstanceOf['Google::Cloud::Channel::V1::Offers::Plan'];
93  
94 coerce 'Plan',
95 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::Plan'->new($_) };
96  
97 declare 'RepeatedPlan',
98 as ArrayRef[Plan()];
99  
100 coerce 'RepeatedPlan',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::Plan'->new($_) } @$_ ] };
102  
103 declare 'MapStringPlan',
104 as HashRef[Plan()];
105  
106 declare 'PriceByResource',
107 as InstanceOf['Google::Cloud::Channel::V1::Offers::PriceByResource'];
108  
109 coerce 'PriceByResource',
110 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::PriceByResource'->new($_) };
111  
112 declare 'RepeatedPriceByResource',
113 as ArrayRef[PriceByResource()];
114  
115 coerce 'RepeatedPriceByResource',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::PriceByResource'->new($_) } @$_ ] };
117  
118 declare 'MapStringPriceByResource',
119 as HashRef[PriceByResource()];
120  
121 declare 'Price',
122 as InstanceOf['Google::Cloud::Channel::V1::Offers::Price'];
123  
124 coerce 'Price',
125 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::Price'->new($_) };
126  
127 declare 'RepeatedPrice',
128 as ArrayRef[Price()];
129  
130 coerce 'RepeatedPrice',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::Price'->new($_) } @$_ ] };
132  
133 declare 'MapStringPrice',
134 as HashRef[Price()];
135  
136 declare 'PricePhase',
137 as InstanceOf['Google::Cloud::Channel::V1::Offers::PricePhase'];
138  
139 coerce 'PricePhase',
140 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::PricePhase'->new($_) };
141  
142 declare 'RepeatedPricePhase',
143 as ArrayRef[PricePhase()];
144  
145 coerce 'RepeatedPricePhase',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::PricePhase'->new($_) } @$_ ] };
147  
148 declare 'MapStringPricePhase',
149 as HashRef[PricePhase()];
150  
151 declare 'PriceTier',
152 as InstanceOf['Google::Cloud::Channel::V1::Offers::PriceTier'];
153  
154 coerce 'PriceTier',
155 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::PriceTier'->new($_) };
156  
157 declare 'RepeatedPriceTier',
158 as ArrayRef[PriceTier()];
159  
160 coerce 'RepeatedPriceTier',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::PriceTier'->new($_) } @$_ ] };
162  
163 declare 'MapStringPriceTier',
164 as HashRef[PriceTier()];
165  
166 declare 'Period',
167 as InstanceOf['Google::Cloud::Channel::V1::Offers::Period'];
168  
169 coerce 'Period',
170 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::Period'->new($_) };
171  
172 declare 'RepeatedPeriod',
173 as ArrayRef[Period()];
174  
175 coerce 'RepeatedPeriod',
176 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::Period'->new($_) } @$_ ] };
177  
178 declare 'MapStringPeriod',
179 as HashRef[Period()];
180  
181 declare 'DiscountComponent',
182 as InstanceOf['Google::Cloud::Channel::V1::Offers::DiscountComponent'];
183  
184 coerce 'DiscountComponent',
185 from HashRef, via { 'Google::Cloud::Channel::V1::Offers::DiscountComponent'->new($_) };
186  
187 declare 'RepeatedDiscountComponent',
188 as ArrayRef[DiscountComponent()];
189  
190 coerce 'RepeatedDiscountComponent',
191 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Offers::DiscountComponent'->new($_) } @$_ ] };
192  
193 declare 'MapStringDiscountComponent',
194 as HashRef[DiscountComponent()];
195  
196 1;
197  
198 __END__