Class: LinePayAccountInfo

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

ACCOUNTTYPE =
1
ACCOUNTID =
2
NICKNAME =
3
STATUS =
4
FINANCIALCORPORATIONNAME =
5
REALACCOUNTNO =
6
CURRENCY =
7
ACCOUNTPRODUCTTYPE =
8
BRANCHNAME =
9
WITHDRAW =
10
DEPOSIT =
11
OWNERNAME =
12
IMAGEURL =
13
PRIMARY =
14
ACCOUNTPRODUCTNAME =
15
HOLDERNAMEREGISTERED =
16
CARDBRAND =
17
DEBITIMAGEURL =
18
LINECARD =
19
LINECARDIMAGEID =
20
TEXTCOLOR =
21
PLACEHOLDERCOLOR =
22
BACKGROUNDCOLOR =
23
EXTENDEDFEATURES =
24
FIELDS =
{
  ACCOUNTTYPE => {:type => ::Thrift::Types::I32, :name => 'accountType', :enum_class => ::G_a_b_z0_a_d_q},
  ACCOUNTID => {:type => ::Thrift::Types::STRING, :name => 'accountId'},
  NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname'},
  STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::G_a_b_z0_a_d_p},
  FINANCIALCORPORATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'financialCorporationName'},
  REALACCOUNTNO => {:type => ::Thrift::Types::STRING, :name => 'realAccountNo'},
  CURRENCY => {:type => ::Thrift::Types::STRING, :name => 'currency'},
  ACCOUNTPRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'accountProductType', :enum_class => ::G_a_b_z0_a_d_c},
  BRANCHNAME => {:type => ::Thrift::Types::STRING, :name => 'branchName'},
  WITHDRAW => {:type => ::Thrift::Types::BOOL, :name => 'withdraw'},
  DEPOSIT => {:type => ::Thrift::Types::BOOL, :name => 'deposit'},
  OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName'},
  IMAGEURL => {:type => ::Thrift::Types::STRING, :name => 'imageUrl'},
  PRIMARY => {:type => ::Thrift::Types::BOOL, :name => 'primary'},
  ACCOUNTPRODUCTNAME => {:type => ::Thrift::Types::STRING, :name => 'accountProductName'},
  HOLDERNAMEREGISTERED => {:type => ::Thrift::Types::BOOL, :name => 'holderNameRegistered'},
  CARDBRAND => {:type => ::Thrift::Types::I32, :name => 'cardBrand', :enum_class => ::G_a_b_z0_a_d_k0},
  DEBITIMAGEURL => {:type => ::Thrift::Types::STRING, :name => 'debitImageUrl'},
  LINECARD => {:type => ::Thrift::Types::BOOL, :name => 'lineCard'},
  LINECARDIMAGEID => {:type => ::Thrift::Types::STRING, :name => 'lineCardImageId'},
  TEXTCOLOR => {:type => ::Thrift::Types::STRING, :name => 'textColor'},
  PLACEHOLDERCOLOR => {:type => ::Thrift::Types::STRING, :name => 'placeholderColor'},
  BACKGROUNDCOLOR => {:type => ::Thrift::Types::STRING, :name => 'backgroundColor'},
  EXTENDEDFEATURES => {:type => ::Thrift::Types::SET, :name => 'extendedFeatures', :element => {:type => ::Thrift::Types::I32, :enum_class => ::G_a_b_z0_a_d_s}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8060

def validate
  unless @accountType.nil? || ::G_a_b_z0_a_d_q::VALID_VALUES.include?(@accountType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field accountType!')
  end
  unless @status.nil? || ::G_a_b_z0_a_d_p::VALID_VALUES.include?(@status)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
  end
  unless @accountProductType.nil? || ::G_a_b_z0_a_d_c::VALID_VALUES.include?(@accountProductType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field accountProductType!')
  end
  unless @cardBrand.nil? || ::G_a_b_z0_a_d_k0::VALID_VALUES.include?(@cardBrand)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cardBrand!')
  end
end