Class: LinePayInfo
- Inherits:
-
Object
- Object
- LinePayInfo
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb
Constant Summary collapse
- BALANCEAMOUNT =
1
- CURRENCYPROPERTY =
2
- PAYMEMBERSTATUS =
3
- APPLICATIONURL =
4
- CHARGEURL =
5
- PAYMEMBERGRADE =
6
- COUNTRY =
7
- REFERENCENUMBER =
8
- IPASSTOKENPROPERTY =
9
- FIELDS =
{ BALANCEAMOUNT => {:type => ::Thrift::Types::STRING, :name => 'balanceAmount'}, CURRENCYPROPERTY => {:type => ::Thrift::Types::STRUCT, :name => 'currencyProperty', :class => ::CurrencyProperty}, PAYMEMBERSTATUS => {:type => ::Thrift::Types::I32, :name => 'payMemberStatus', :enum_class => ::G_a_m_a0_w}, APPLICATIONURL => {:type => ::Thrift::Types::STRING, :name => 'applicationUrl'}, CHARGEURL => {:type => ::Thrift::Types::STRING, :name => 'chargeUrl'}, PAYMEMBERGRADE => {:type => ::Thrift::Types::I32, :name => 'payMemberGrade', :enum_class => ::G_a_m_a0_v}, COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'}, REFERENCENUMBER => {:type => ::Thrift::Types::STRING, :name => 'referenceNumber'}, IPASSTOKENPROPERTY => {:type => ::Thrift::Types::STRUCT, :name => 'ipassTokenProperty', :class => ::IpassTokenProperty} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
12455 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12455 def struct_fields; FIELDS; end |
#validate ⇒ Object
12457 12458 12459 12460 12461 12462 12463 12464 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12457 def validate unless @payMemberStatus.nil? || ::G_a_m_a0_w::VALID_VALUES.include?(@payMemberStatus) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field payMemberStatus!') end unless @payMemberGrade.nil? || ::G_a_m_a0_v::VALID_VALUES.include?(@payMemberGrade) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field payMemberGrade!') end end |