Class: Stigg::Models::V1::CouponCreateParams::AmountsOff
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::CouponCreateParams::AmountsOff
- Defined in:
- lib/stigg/models/v1/coupon_create_params.rb
Defined Under Namespace
Modules: Currency
Instance Attribute Summary collapse
-
#amount ⇒ Float
The price amount.
-
#currency ⇒ Symbol, Stigg::Models::V1::CouponCreateParams::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
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 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 |
# File 'lib/stigg/models/v1/coupon_create_params.rb', line 73 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::CouponCreateParams::AmountsOff::Currency] required :currency, enum: -> { Stigg::V1::CouponCreateParams::AmountsOff::Currency } # @!method initialize(amount:, currency:) # Monetary amount with currency # # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::CouponCreateParams::AmountsOff::Currency] ISO 4217 currency code # ISO 4217 currency code # # @see Stigg::Models::V1::CouponCreateParams::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
78 |
# File 'lib/stigg/models/v1/coupon_create_params.rb', line 78 required :amount, Float |
#currency ⇒ Symbol, Stigg::Models::V1::CouponCreateParams::AmountsOff::Currency
ISO 4217 currency code
84 |
# File 'lib/stigg/models/v1/coupon_create_params.rb', line 84 required :currency, enum: -> { Stigg::V1::CouponCreateParams::AmountsOff::Currency } |