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_r1_x_r}, 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_r1_x_q}, 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
11539 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11539 def struct_fields; FIELDS; end |
#validate ⇒ Object
11541 11542 11543 11544 11545 11546 11547 11548 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11541 def validate unless @payMemberStatus.nil? || ::G_a_r1_x_r::VALID_VALUES.include?(@payMemberStatus) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field payMemberStatus!') end unless @payMemberGrade.nil? || ::G_a_r1_x_q::VALID_VALUES.include?(@payMemberGrade) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field payMemberGrade!') end end |