Class: PaymentTradeInfo

Inherits:
Object
  • Object
show all
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

CHARGEREQUESTID =
1
CHARGEREQUESTTYPE =
2
CHARGEREQUESTYMDT =
3
TRADENUMBER =
4
AGENCYNO =
7
CONFIRMNO =
8
EXPIREYMD =
9
MONEYAMOUNT =
10
COMPLETEYMDT =
11
PAYMENTPROCESSCORP =
12
STATUS =
13
HELPURL =
14
GUIDEMESSAGE =
15
FIELDS =
{
  CHARGEREQUESTID => {:type => ::Thrift::Types::STRING, :name => 'chargeRequestId'},
  CHARGEREQUESTTYPE => {:type => ::Thrift::Types::I32, :name => 'chargeRequestType', :enum_class => ::G_a_c_u0_a_d_q7},
  CHARGEREQUESTYMDT => {:type => ::Thrift::Types::I64, :name => 'chargeRequestYmdt'},
  TRADENUMBER => {:type => ::Thrift::Types::STRING, :name => 'tradeNumber'},
  AGENCYNO => {:type => ::Thrift::Types::STRING, :name => 'agencyNo'},
  CONFIRMNO => {:type => ::Thrift::Types::STRING, :name => 'confirmNo'},
  EXPIREYMD => {:type => ::Thrift::Types::I64, :name => 'expireYmd'},
  MONEYAMOUNT => {:type => ::Thrift::Types::STRUCT, :name => 'moneyAmount', :class => ::DisplayMoney},
  COMPLETEYMDT => {:type => ::Thrift::Types::I64, :name => 'completeYmdt'},
  PAYMENTPROCESSCORP => {:type => ::Thrift::Types::STRING, :name => 'paymentProcessCorp'},
  STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::G_a_c_u0_a_d_r7},
  HELPURL => {:type => ::Thrift::Types::STRING, :name => 'helpUrl'},
  GUIDEMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'guideMessage'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



6758
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6758

def struct_fields; FIELDS; end

#validateObject



6760
6761
6762
6763
6764
6765
6766
6767
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6760

def validate
  unless @chargeRequestType.nil? || ::G_a_c_u0_a_d_q7::VALID_VALUES.include?(@chargeRequestType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field chargeRequestType!')
  end
  unless @status.nil? || ::G_a_c_u0_a_d_r7::VALID_VALUES.include?(@status)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
  end
end