Class: Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff
- Defined in:
- lib/stigg/models/v1/contract_create_params.rb,
sig/stigg/models/v1/contract_create_params.rbs
Defined Under Namespace
Modules: Currency
Instance Attribute Summary collapse
-
#amount ⇒ Float
The price amount.
-
#currency ⇒ Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency
ISO 4217 currency code.
Instance Method Summary collapse
- #initialize(amount:, currency:) ⇒ Object constructor
- #to_hash ⇒ {
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
509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'lib/stigg/models/v1/contract_create_params.rb', line 509 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::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency] required :currency, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency } # @!method initialize(amount:, currency:) # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency] ISO 4217 currency code # ISO 4217 currency code # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::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
514 |
# File 'lib/stigg/models/v1/contract_create_params.rb', line 514 required :amount, Float |
#currency ⇒ Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency
ISO 4217 currency code
520 521 |
# File 'lib/stigg/models/v1/contract_create_params.rb', line 520 required :currency, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency } |
Instance Method Details
#to_hash ⇒ {
443 |
# File 'sig/stigg/models/v1/contract_create_params.rbs', line 443
def to_hash: -> {
|