Class: Stigg::Models::V1::CouponListResponse::AmountsOff
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::CouponListResponse::AmountsOff
- Defined in:
- lib/stigg/models/v1/coupon_list_response.rb
Defined Under Namespace
Modules: Currency
Instance Attribute Summary collapse
-
#amount ⇒ Float
The price amount.
-
#currency ⇒ Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency
ISO 4217 currency code.
Instance Method Summary collapse
-
#initialize(amount:, currency:) ⇒ Object
constructor
Monetary amount with currency.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(amount:, currency:) ⇒ Object
Monetary amount with currency
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/stigg/models/v1/coupon_list_response.rb', line 126 class AmountsOff < Stigg::Internal::Type::BaseModel # @!attribute amount # The price amount # # @return [Float] required :amount, Float # @!attribute currency # ISO 4217 currency code # # @return [Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency] required :currency, enum: -> { Stigg::Models::V1::CouponListResponse::AmountsOff::Currency } # @!method initialize(amount:, currency:) # Monetary amount with currency # # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency] ISO 4217 currency code # ISO 4217 currency code # # @see Stigg::Models::V1::CouponListResponse::AmountsOff#currency module Currency extend Stigg::Internal::Type::Enum USD = :usd AED = :aed ALL = :all AMD = :amd ANG = :ang AUD = :aud AWG = :awg AZN = :azn BAM = :bam BBD = :bbd BDT = :bdt BGN = :bgn BIF = :bif BMD = :bmd BND = :bnd BSD = :bsd BWP = :bwp BYN = :byn BZD = :bzd BRL = :brl CAD = :cad CDF = :cdf CHF = :chf CNY = :cny CZK = :czk DKK = :dkk DOP = :dop DZD = :dzd EGP = :egp ETB = :etb EUR = :eur FJD = :fjd GBP = :gbp GEL = :gel GIP = :gip GMD = :gmd GYD = :gyd HKD = :hkd HRK = :hrk HTG = :htg IDR = :idr ILS = :ils INR = :inr ISK = :isk JMD = :jmd JPY = :jpy KES = :kes KGS = :kgs KHR = :khr KMF = :kmf KRW = :krw KYD = :kyd KZT = :kzt LBP = :lbp LKR = :lkr LRD = :lrd LSL = :lsl MAD = :mad MDL = :mdl MGA = :mga MKD = :mkd MMK = :mmk MNT = :mnt MOP = :mop MRO = :mro MVR = :mvr MWK = :mwk MXN = :mxn MYR = :myr MZN = :mzn NAD = :nad NGN = :ngn NOK = :nok NPR = :npr NZD = :nzd PGK = :pgk PHP = :php PKR = :pkr PLN = :pln QAR = :qar RON = :ron RSD = :rsd RUB = :rub RWF = :rwf SAR = :sar SBD = :sbd SCR = :scr SEK = :sek SGD = :sgd SLE = :sle SLL = :sll SOS = :sos SZL = :szl THB = :thb TJS = :tjs TOP = :top TRY = :try TTD = :ttd TZS = :tzs UAH = :uah UZS = :uzs VND = :vnd VUV = :vuv WST = :wst XAF = :xaf XCD = :xcd YER = :yer ZAR = :zar ZMW = :zmw CLP = :clp DJF = :djf GNF = :gnf UGX = :ugx PYG = :pyg XOF = :xof XPF = :xpf # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#amount ⇒ Float
The price amount
131 |
# File 'lib/stigg/models/v1/coupon_list_response.rb', line 131 required :amount, Float |
#currency ⇒ Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency
ISO 4217 currency code
137 |
# File 'lib/stigg/models/v1/coupon_list_response.rb', line 137 required :currency, enum: -> { Stigg::Models::V1::CouponListResponse::AmountsOff::Currency } |