| 1 | package Google::Cloud::Channel::V1::Repricing::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 'RebillingBasis', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'CustomerRepricingConfig', | ||
| 14 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::CustomerRepricingConfig']; | ||
| 15 | |||
| 16 | coerce 'CustomerRepricingConfig', | ||
| 17 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::CustomerRepricingConfig'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedCustomerRepricingConfig', | ||
| 20 | as ArrayRef[CustomerRepricingConfig()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedCustomerRepricingConfig', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::CustomerRepricingConfig'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringCustomerRepricingConfig', | ||
| 26 | as HashRef[CustomerRepricingConfig()]; | ||
| 27 | |||
| 28 | declare 'ChannelPartnerRepricingConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::ChannelPartnerRepricingConfig']; | ||
| 30 | |||
| 31 | coerce 'ChannelPartnerRepricingConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::ChannelPartnerRepricingConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedChannelPartnerRepricingConfig', | ||
| 35 | as ArrayRef[ChannelPartnerRepricingConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedChannelPartnerRepricingConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::ChannelPartnerRepricingConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringChannelPartnerRepricingConfig', | ||
| 41 | as HashRef[ChannelPartnerRepricingConfig()]; | ||
| 42 | |||
| 43 | declare 'RepricingConfig', | ||
| 44 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::RepricingConfig']; | ||
| 45 | |||
| 46 | coerce 'RepricingConfig', | ||
| 47 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::RepricingConfig'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedRepricingConfig', | ||
| 50 | as ArrayRef[RepricingConfig()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedRepricingConfig', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::RepricingConfig'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringRepricingConfig', | ||
| 56 | as HashRef[RepricingConfig()]; | ||
| 57 | |||
| 58 | declare 'EntitlementGranularity', | ||
| 59 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::RepricingConfig::EntitlementGranularity']; | ||
| 60 | |||
| 61 | coerce 'EntitlementGranularity', | ||
| 62 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::RepricingConfig::EntitlementGranularity'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedEntitlementGranularity', | ||
| 65 | as ArrayRef[EntitlementGranularity()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedEntitlementGranularity', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::RepricingConfig::EntitlementGranularity'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringEntitlementGranularity', | ||
| 71 | as HashRef[EntitlementGranularity()]; | ||
| 72 | |||
| 73 | declare 'ChannelPartnerGranularity', | ||
| 74 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::RepricingConfig::ChannelPartnerGranularity']; | ||
| 75 | |||
| 76 | coerce 'ChannelPartnerGranularity', | ||
| 77 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::RepricingConfig::ChannelPartnerGranularity'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedChannelPartnerGranularity', | ||
| 80 | as ArrayRef[ChannelPartnerGranularity()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedChannelPartnerGranularity', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::RepricingConfig::ChannelPartnerGranularity'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringChannelPartnerGranularity', | ||
| 86 | as HashRef[ChannelPartnerGranularity()]; | ||
| 87 | |||
| 88 | declare 'RepricingAdjustment', | ||
| 89 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::RepricingAdjustment']; | ||
| 90 | |||
| 91 | coerce 'RepricingAdjustment', | ||
| 92 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::RepricingAdjustment'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedRepricingAdjustment', | ||
| 95 | as ArrayRef[RepricingAdjustment()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedRepricingAdjustment', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::RepricingAdjustment'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringRepricingAdjustment', | ||
| 101 | as HashRef[RepricingAdjustment()]; | ||
| 102 | |||
| 103 | declare 'PercentageAdjustment', | ||
| 104 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::PercentageAdjustment']; | ||
| 105 | |||
| 106 | coerce 'PercentageAdjustment', | ||
| 107 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::PercentageAdjustment'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedPercentageAdjustment', | ||
| 110 | as ArrayRef[PercentageAdjustment()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedPercentageAdjustment', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::PercentageAdjustment'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringPercentageAdjustment', | ||
| 116 | as HashRef[PercentageAdjustment()]; | ||
| 117 | |||
| 118 | declare 'ConditionalOverride', | ||
| 119 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::ConditionalOverride']; | ||
| 120 | |||
| 121 | coerce 'ConditionalOverride', | ||
| 122 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::ConditionalOverride'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedConditionalOverride', | ||
| 125 | as ArrayRef[ConditionalOverride()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedConditionalOverride', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::ConditionalOverride'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringConditionalOverride', | ||
| 131 | as HashRef[ConditionalOverride()]; | ||
| 132 | |||
| 133 | declare 'RepricingCondition', | ||
| 134 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::RepricingCondition']; | ||
| 135 | |||
| 136 | coerce 'RepricingCondition', | ||
| 137 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::RepricingCondition'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedRepricingCondition', | ||
| 140 | as ArrayRef[RepricingCondition()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedRepricingCondition', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::RepricingCondition'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringRepricingCondition', | ||
| 146 | as HashRef[RepricingCondition()]; | ||
| 147 | |||
| 148 | declare 'SkuGroupCondition', | ||
| 149 | as InstanceOf['Google::Cloud::Channel::V1::Repricing::SkuGroupCondition']; | ||
| 150 | |||
| 151 | coerce 'SkuGroupCondition', | ||
| 152 | from HashRef, via { 'Google::Cloud::Channel::V1::Repricing::SkuGroupCondition'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedSkuGroupCondition', | ||
| 155 | as ArrayRef[SkuGroupCondition()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedSkuGroupCondition', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Repricing::SkuGroupCondition'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringSkuGroupCondition', | ||
| 161 | as HashRef[SkuGroupCondition()]; | ||
| 162 | |||
| 163 | 1; | ||
| 164 | |||
| 165 | __END__ |