Class: PaymentDetailInfo

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

TRANSACTIONID =
1
TRANSACTIONDATE =
2
TRANSACTIONTYPE =
3
PRODUCTNAME =
4
PAYMETHOD =
6
CARDCORPORATION =
7
MASKEDCARDNUMBER =
8
MERCHANTNAME =
9
MERCHANTTELNO =
10
MERCHANTREPRESENTATIVE =
11
CANCELLIST =
12
MONEYAMOUNT =
13
ACCOUNTNICKNAME =
14
MERCHANTEMAIL =
15
CONFIRMDATE =
16
MERCHANTLABEL =
17
FIELDS =
{
  TRANSACTIONID => {:type => ::Thrift::Types::STRING, :name => 'transactionId'},
  TRANSACTIONDATE => {:type => ::Thrift::Types::I64, :name => 'transactionDate'},
  TRANSACTIONTYPE => {:type => ::Thrift::Types::I32, :name => 'transactionType', :enum_class => ::G_a_b_z0_a_d_i8},
  PRODUCTNAME => {:type => ::Thrift::Types::STRING, :name => 'productName'},
  PAYMETHOD => {:type => ::Thrift::Types::I32, :name => 'paymethod', :enum_class => ::G_a_b_z0_a_d_p1},
  CARDCORPORATION => {:type => ::Thrift::Types::STRING, :name => 'cardCorporation'},
  MASKEDCARDNUMBER => {:type => ::Thrift::Types::STRING, :name => 'maskedCardNumber'},
  MERCHANTNAME => {:type => ::Thrift::Types::STRING, :name => 'merchantName'},
  MERCHANTTELNO => {:type => ::Thrift::Types::STRING, :name => 'merchantTelNo'},
  MERCHANTREPRESENTATIVE => {:type => ::Thrift::Types::STRING, :name => 'merchantRepresentative'},
  CANCELLIST => {:type => ::Thrift::Types::LIST, :name => 'cancelList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::PaymentCancellationInfo}},
  MONEYAMOUNT => {:type => ::Thrift::Types::STRUCT, :name => 'moneyAmount', :class => ::DisplayMoney},
  ACCOUNTNICKNAME => {:type => ::Thrift::Types::STRING, :name => 'accountNickname'},
  MERCHANTEMAIL => {:type => ::Thrift::Types::STRING, :name => 'merchantEmail'},
  CONFIRMDATE => {:type => ::Thrift::Types::I64, :name => 'confirmDate'},
  MERCHANTLABEL => {:type => ::Thrift::Types::STRING, :name => 'merchantLabel'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



8200
8201
8202
8203
8204
8205
8206
8207
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8200

def validate
  unless @transactionType.nil? || ::G_a_b_z0_a_d_i8::VALID_VALUES.include?(@transactionType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field transactionType!')
  end
  unless @paymethod.nil? || ::G_a_b_z0_a_d_p1::VALID_VALUES.include?(@paymethod)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field paymethod!')
  end
end