Class: Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff
- Defined in:
- lib/stigg/models/v1/subscription_preview_params.rb
Defined Under Namespace
Modules: Currency
Instance Attribute Summary collapse
-
#amount ⇒ Float
The price amount.
-
#currency ⇒ Symbol, Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::Currency
ISO 4217 currency code.
Instance Method Summary collapse
- #initialize(amount:, currency:) ⇒ Object constructor
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
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/stigg/models/v1/subscription_preview_params.rb', line 285 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::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::Currency] required :currency, enum: -> { Stigg::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::Currency } # @!method initialize(amount:, currency:) # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::Currency] ISO 4217 currency code # ISO 4217 currency code # # @see Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::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
290 |
# File 'lib/stigg/models/v1/subscription_preview_params.rb', line 290 required :amount, Float |
#currency ⇒ Symbol, Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::Currency
ISO 4217 currency code
296 297 |
# File 'lib/stigg/models/v1/subscription_preview_params.rb', line 296 required :currency, enum: -> { Stigg::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::Currency } |