| 1 | package Google::Cloud::Commerceproducer::V1beta::Service::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 'Service', | ||
| 11 | as InstanceOf['Google::Cloud::Commerceproducer::V1beta::Service::Service']; | ||
| 12 | |||
| 13 | coerce 'Service', | ||
| 14 | from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::Service::Service'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedService', | ||
| 17 | as ArrayRef[Service()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedService', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::Service::Service'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringService', | ||
| 23 | as HashRef[Service()]; | ||
| 24 | |||
| 25 | declare 'ProductType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'DocumentRequirement', | ||
| 29 | as InstanceOf['Google::Cloud::Commerceproducer::V1beta::Service::Service::DocumentRequirement']; | ||
| 30 | |||
| 31 | coerce 'DocumentRequirement', | ||
| 32 | from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::Service::Service::DocumentRequirement'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedDocumentRequirement', | ||
| 35 | as ArrayRef[DocumentRequirement()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedDocumentRequirement', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::Service::Service::DocumentRequirement'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringDocumentRequirement', | ||
| 41 | as HashRef[DocumentRequirement()]; | ||
| 42 | |||
| 43 | declare 'DocumentTypeRequirement', | ||
| 44 | as InstanceOf['Google::Cloud::Commerceproducer::V1beta::Service::Service::DocumentRequirement::DocumentTypeRequirement']; | ||
| 45 | |||
| 46 | coerce 'DocumentTypeRequirement', | ||
| 47 | from HashRef, via { 'Google::Cloud::Commerceproducer::V1beta::Service::Service::DocumentRequirement::DocumentTypeRequirement'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedDocumentTypeRequirement', | ||
| 50 | as ArrayRef[DocumentTypeRequirement()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedDocumentTypeRequirement', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Commerceproducer::V1beta::Service::Service::DocumentRequirement::DocumentTypeRequirement'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringDocumentTypeRequirement', | ||
| 56 | as HashRef[DocumentTypeRequirement()]; | ||
| 57 | |||
| 58 | declare 'RequirementLevel', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | 1; | ||
| 62 | |||
| 63 | __END__ |