class Veritrans::Tercerog::Mdk::PaypalAuthorizeResponseDto

決済サービスタイプ:Paypal、コマンド名:与信の応答Dtoクラス

@author

VeriTrans Inc.

Public Instance Methods

amount() click to toggle source

取引金額を取得する

  • 取引金額が格納されます。

@return

取引金額

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 241
def amount
  @amount = nil unless instance_variable_defined?(:@amount)
  @amount
end
amount=(amount) click to toggle source

取引金額を設定する

@param

amount 取引金額

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 250
def amount=(amount)
  @amount = amount
end
center_auth_id() click to toggle source

決済センタ承認IDを取得する

  • PayPalが発番するユニークなIDが格納されます。

@return

決済センタ承認ID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 350
def center_auth_id
  @center_auth_id = nil unless instance_variable_defined?(:@center_auth_id)
  @center_auth_id
end
center_auth_id=(center_authId) click to toggle source

決済センタ承認IDを設定する

@param

center_authId 決済センタ承認ID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 359
def center_auth_id=(center_authId)
  @center_auth_id = center_authId
end
cust_txn() click to toggle source

取引毎に付くIDを取得する

@return

取引毎に付くID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 133
def cust_txn
  @cust_txn = nil unless instance_variable_defined?(:@cust_txn)
  @cust_txn
end
cust_txn=(cust_txn) click to toggle source

取引毎に付くIDを設定する

@param

#cust_txn 取引毎に付くID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 142
def cust_txn=(cust_txn)
  @cust_txn = cust_txn
end
exchange_rate() click to toggle source

外貨換算レートを取得する

  • 外貨換算レートが格納されます。

@return

外貨換算レート

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 295
def exchange_rate
  @exchange_rate = nil unless instance_variable_defined?(:@exchange_rate)
  @exchange_rate
end
exchange_rate=(exchange_rate) click to toggle source

外貨換算レートを設定する

@param

#exchange_rate 外貨換算レート

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 304
def exchange_rate=(exchange_rate)
  @exchange_rate = exchange_rate
end
fee_amount() click to toggle source

手数料を取得する

  • 手数料が格納されます。

@return

手数料

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 259
def fee_amount
  @fee_amount = nil unless instance_variable_defined?(:@fee_amount)
  @fee_amount
end
fee_amount=(fee_amount) click to toggle source

手数料を設定する

@param

#fee_amount 手数料

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 268
def fee_amount=(fee_amount)
  @fee_amount = fee_amount
end
get_trad_url() click to toggle source

レスポンスからTradURLを取得する

@return

レスポンスに含まれていた広告用(Trad)URL。 エレメントが無いか、エレメントに内容が無ければ nil を返す。

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 529
def get_trad_url()
  return find_trad_url()
end
invoice_id() click to toggle source

請求番号を取得する

  • GWが発番するオーダー単位でユニークとなるIDが格納されます。

@return

請求番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 205
def invoice_id
  @invoice_id = nil unless instance_variable_defined?(:@invoice_id)
  @invoice_id
end
invoice_id=(invoice_id) click to toggle source

請求番号を設定する

@param

#invoice_id 請求番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 214
def invoice_id=(invoice_id)
  @invoice_id = invoice_id
end
login_url() click to toggle source

ログインURLを取得する

  • PayPalログイン画面のURLが格納されます。

@return

ログインURL

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 169
def login_url
  @login_url = nil unless instance_variable_defined?(:@login_url)
  @login_url
end
login_url=(login_url) click to toggle source

ログインURLを設定する

@param

#login_url ログインURL

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 178
def login_url=(login_url)
  @login_url = login_url
end
march_txn() click to toggle source

電文IDを取得する

@return

電文ID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 97
def march_txn
  @march_txn = nil unless instance_variable_defined?(:@march_txn)
  @march_txn
end
march_txn=(march_txn) click to toggle source

電文IDを設定する

@param

#march_txn 電文ID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 106
def march_txn=(march_txn)
  @march_txn = march_txn
end
merr_msg() click to toggle source

エラーメッセージを取得する

  • エラーメッセージ

@return

エラーメッセージ

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 80
def merr_msg
  @merr_msg = nil unless instance_variable_defined?(:@merr_msg)
  @merr_msg
end
merr_msg=(merr_msg) click to toggle source

エラーメッセージを設定する

@param

#merr_msg エラーメッセージ

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 89
def merr_msg=(merr_msg)
  @merr_msg = merr_msg
end
mstatus() click to toggle source

処理結果コードを取得する

  • 取消請求処理後、応答電文に含まれる値。

  • 以下の処理結果のいずれかが格納される

  • ・success:正常終了

  • ・failure:異常終了

  • ・pending:保留状態

@return

処理結果コード

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 43
def mstatus
  @mstatus = nil unless instance_variable_defined?(:@mstatus)
  @mstatus
end
mstatus=(mstatus) click to toggle source

処理結果コードを設定する

@param

mstatus 処理結果コード

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 52
def mstatus=(mstatus)
  @mstatus = mstatus
end
order_id() click to toggle source

取引IDを取得する

  • 返金を行った取引IDが格納されます。

  • “.”(ドット)、“-”(ハイフン)、“_”(アンダースコア)も使用できます。

@return

取引ID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 116
def order_id
  @order_id = nil unless instance_variable_defined?(:@order_id)
  @order_id
end
order_id=(order_id) click to toggle source

取引IDを設定する

@param

#order_id 取引ID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 125
def order_id=(order_id)
  @order_id = order_id
end
pay_now_id_response() click to toggle source

PayNowIDオブジェクトを取得する

@return

PayNowIDオブジェクト

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 519
def pay_now_id_response
  @pay_now_id_response = nil unless instance_variable_defined?(:@pay_now_id_response)
  @pay_now_id_response
end
pay_now_id_response=(pay_now_id_response) click to toggle source

PayNowIDオブジェクトを設定する

@param

#pay_now_id_response PayNowIDオブジェクト

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 511
def pay_now_id_response=(pay_now_id_response)
  @pay_now_id_response = pay_now_id_response
end
payer_id() click to toggle source

顧客番号を取得する

  • 顧客番号が格納されます。

@return

顧客番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 223
def payer_id
  @payer_id = nil unless instance_variable_defined?(:@payer_id)
  @payer_id
end
payer_id=(payer_id) click to toggle source

顧客番号を設定する

@param

#payer_id 顧客番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 232
def payer_id=(payer_id)
  @payer_id = payer_id
end
payment_date() click to toggle source

支払時刻を取得する

  • 支払時刻が格納されます。

  • 形式は“yyyyMMddHHmmss”です。

@return

支払時刻

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 314
def payment_date
  @payment_date = nil unless instance_variable_defined?(:@payment_date)
  @payment_date
end
payment_date=(payment_date) click to toggle source

支払時刻を設定する

@param

#payment_date 支払時刻

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 323
def payment_date=(payment_date)
  @payment_date = payment_date
end
payment_status() click to toggle source

支払ステータスを取得する

  • 支払ステータスが格納されます。

@return

支払ステータス

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 332
def payment_status
  @payment_status = nil unless instance_variable_defined?(:@payment_status)
  @payment_status
end
payment_status=(payment_status) click to toggle source

支払ステータスを設定する

@param

#payment_status 支払ステータス

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 341
def payment_status=(payment_status)
  @payment_status = payment_status
end
service_type() click to toggle source

決済サービスタイプを取得する

  • 決済サービスの区分を指定します。

  • 必須項目、固定値

  • “paypal”: PayPal決済

@return

決済サービスタイプ

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 21
def service_type
  @service_type = nil unless instance_variable_defined?(:@service_type)
  @service_type
end
service_type=(service_type) click to toggle source

決済サービスタイプを設定する

@param

#service_type 決済サービスタイプ

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 30
def service_type=(service_type)
  @service_type = service_type
end
settle_amount() click to toggle source

決済金額を取得する

  • 決済金額が格納されます。

@return

決済金額

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 277
def settle_amount
  @settle_amount = nil unless instance_variable_defined?(:@settle_amount)
  @settle_amount
end
settle_amount=(settle_amount) click to toggle source

決済金額を設定する

@param

#settle_amount 決済金額

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 286
def settle_amount=(settle_amount)
  @settle_amount = settle_amount
end
ship_city() click to toggle source

配送先市区町村名を取得する

  • 配送先市区町村名が格納されます。

@return

配送先市区町村名

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 422
def ship_city
  @ship_city = nil unless instance_variable_defined?(:@ship_city)
  @ship_city
end
ship_city=(ship_city) click to toggle source

配送先市区町村名を設定する

@param

#ship_city 配送先市区町村名

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 431
def ship_city=(ship_city)
  @ship_city = ship_city
end
ship_country() click to toggle source

配送先国コードを取得する

  • 配送先国コードが格納されます。

@return

配送先国コード

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 458
def ship_country
  @ship_country = nil unless instance_variable_defined?(:@ship_country)
  @ship_country
end
ship_country=(ship_country) click to toggle source

配送先国コードを設定する

@param

#ship_country 配送先国コード

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 467
def ship_country=(ship_country)
  @ship_country = ship_country
end
ship_name() click to toggle source

配送先氏名を取得する

  • 配送先氏名が格納されます。

@return

配送先氏名

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 368
def ship_name
  @ship_name = nil unless instance_variable_defined?(:@ship_name)
  @ship_name
end
ship_name=(ship_name) click to toggle source

配送先氏名を設定する

@param

#ship_name 配送先氏名

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 377
def ship_name=(ship_name)
  @ship_name = ship_name
end
ship_phone() click to toggle source

配送先電話番号を取得する

  • 配送先電話番号が格納されます。

@return

配送先電話番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 494
def ship_phone
  @ship_phone = nil unless instance_variable_defined?(:@ship_phone)
  @ship_phone
end
ship_phone=(ship_phone) click to toggle source

配送先電話番号を設定する

@param

#ship_phone 配送先電話番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 503
def ship_phone=(ship_phone)
  @ship_phone = ship_phone
end
ship_postal_code() click to toggle source

配送先郵便番号を取得する

  • 配送先郵便番号が格納されます。

@return

配送先郵便番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 476
def ship_postal_code
  @ship_postal_code = nil unless instance_variable_defined?(:@ship_postal_code)
  @ship_postal_code
end
ship_postal_code=(ship_postal_code) click to toggle source

配送先郵便番号を設定する

@param

#ship_postal_code 配送先郵便番号

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 485
def ship_postal_code=(ship_postal_code)
  @ship_postal_code = ship_postal_code
end
ship_state() click to toggle source

配送先州名を取得する

  • 配送先州名が格納されます。

@return

配送先州名

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 440
def ship_state
  @ship_state = nil unless instance_variable_defined?(:@ship_state)
  @ship_state
end
ship_state=(ship_state) click to toggle source

配送先州名を設定する

@param

#ship_state 配送先州名

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 449
def ship_state=(ship_state)
  @ship_state = ship_state
end
ship_street1() click to toggle source

配送先住所1を取得する

  • 配送先住所1が格納されます。

@return

配送先住所1

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 386
def ship_street1
  @ship_street1 = nil unless instance_variable_defined?(:@ship_street1)
  @ship_street1
end
ship_street1=(ship_street1) click to toggle source

配送先住所1を設定する

@param

#ship_street1 配送先住所1

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 395
def ship_street1=(ship_street1)
  @ship_street1 = ship_street1
end
ship_street2() click to toggle source

配送先住所2を取得する

  • 配送先住所2が格納されます。

@return

配送先住所2

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 404
def ship_street2
  @ship_street2 = nil unless instance_variable_defined?(:@ship_street2)
  @ship_street2
end
ship_street2=(ship_street2) click to toggle source

配送先住所2を設定する

@param

#ship_street2 配送先住所2

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 413
def ship_street2=(ship_street2)
  @ship_street2 = ship_street2
end
token() click to toggle source

トークンを取得する

  • トークンが格納されます。

@return

トークン

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 187
def token
  @token = nil unless instance_variable_defined?(:@token)
  @token
end
token=(token) click to toggle source

トークンを設定する

@param

token トークン

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 196
def token=(token)
  @token = token
end
txn_version() click to toggle source

MDK バージョンを取得する

  • 電文のバージョン番号。

@return

MDK バージョン

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 151
def txn_version
  @txn_version = nil unless instance_variable_defined?(:@txn_version)
  @txn_version
end
txn_version=(txn_version) click to toggle source

MDK バージョンを設定する

@param

#txn_version MDK バージョン

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 160
def txn_version=(txn_version)
  @txn_version = txn_version
end
v_result_code() click to toggle source

詳細結果コードを取得する

  • 結果コード

  • 例) L001000100000000

@return

詳細結果コード

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 62
def v_result_code
  @v_result_code = nil unless instance_variable_defined?(:@v_result_code)
  @v_result_code
end
v_result_code=(v_result_code) click to toggle source

詳細結果コードを設定する

@param

#v_result_code 詳細結果コード

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_authorize_response_dto.rb, line 71
def v_result_code=(v_result_code)
  @v_result_code = v_result_code
end