class Veritrans::Tercerog::Mdk::PaypalCancelResponseDto

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

@author

VeriTrans Inc.

Public Instance Methods

cust_txn() click to toggle source

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

@return

取引毎に付くID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_cancel_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_cancel_response_dto.rb, line 142
def cust_txn=(cust_txn)
  @cust_txn = cust_txn
end
get_trad_url() click to toggle source

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

@return

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

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_cancel_response_dto.rb, line 186
def get_trad_url()
  return find_trad_url()
end
march_txn() click to toggle source

電文IDを取得する

@return

電文ID

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_cancel_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_cancel_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_cancel_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_cancel_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_cancel_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_cancel_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_cancel_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_cancel_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_cancel_response_dto.rb, line 176
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_cancel_response_dto.rb, line 168
def pay_now_id_response=(pay_now_id_response)
  @pay_now_id_response = pay_now_id_response
end
service_type() click to toggle source

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

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

  • 必須項目、固定値

  • “paypal”: PayPal決済

@return

決済サービスタイプ

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_cancel_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_cancel_response_dto.rb, line 30
def service_type=(service_type)
  @service_type = service_type
end
txn_version() click to toggle source

MDK バージョンを取得する

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

@return

MDK バージョン

# File tgMdk/lib/tg_mdk/mdk_dto/paypal_cancel_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_cancel_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_cancel_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_cancel_response_dto.rb, line 71
def v_result_code=(v_result_code)
  @v_result_code = v_result_code
end