class Veritrans::Tercerog::Mdk::CarrierCancelRequestDto

決済サービスタイプ:キャリア、コマンド名:取消の要求Dtoクラス

@author

VeriTrans Inc.

Constants

SERVICE_COMMAND

決済サービスコマンド 半角英数字 必須項目、固定値

SERVICE_TYPE

決済サービスタイプ 半角英数字 必須項目、固定値

Public Class Methods

new() click to toggle source

コンストラクタ

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 17
def initialize
  @service_type = SERVICE_TYPE
  @service_command = SERVICE_COMMAND
end

Public Instance Methods

amount() click to toggle source

返金金額を取得する

@return

返金金額

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

返金金額を設定する

返金する金額を指定します。 例)250円*4個=1000円の買い物をし1個返品した場合には、返金金額に250円を指定します。

  • 1 以上かつ 999999999999 以下

@param

amount 返金金額

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 134
def amount=(amount)
  @amount = amount
end
cancel_month() click to toggle source

課金取消月を取得する

@return

課金取消月

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

課金取消月を設定する

docomo, au, flets, sb_ktaiで、継続課金(月額)の取消時のみ指定可能。

  • YYYYMM形式

@param

#cancel_month 課金取消月

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 113
def cancel_month=(cancel_month)
  @cancel_month = cancel_month
end
order_id() click to toggle source

取引IDを取得する

@return

取引ID

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

取引IDを設定する

キャンセル対象の取引IDを指定する。

@param

#order_id 取引ID

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 70
def order_id=(order_id)
  @order_id = order_id
end
receipt_no() click to toggle source

レシート番号を取得する

@return

レシート番号

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

レシート番号を設定する

auのバーコード決済、スキャンコード決済で指定可能です。

※未指定の場合は、Authorize時と同じ値

@param

#receipt_no レシート番号

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 194
def receipt_no=(receipt_no)
  @receipt_no = receipt_no
end
service_command() click to toggle source

決済サービスコマンドを取得する

@return

決済サービスコマンド

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 51
def service_command
  @service_command = nil unless instance_variable_defined?(:@service_command)
  @service_command
end
service_option_type() click to toggle source

サービスオプションタイプを取得する

@return

サービスオプションタイプ

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

サービスオプションタイプを設定する

  • “docomo”:ドコモケータイ払い

  • “au”:auかんたん決済

  • “sb_ktai”:ソフトバンクまとめて支払い(B)

  • “flets”:フレッツまとめて支払い

以下は指定できない。

  • “sb_matomete”:ソフトバンクまとめて支払い(A)

  • “s_bikkuri”:S!まとめて支払い

@param

#service_option_type サービスオプションタイプ

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 94
def service_option_type=(service_option_type)
  @service_option_type = service_option_type
end
service_type() click to toggle source

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

@return

決済サービスタイプ

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

店舗IDを取得する

@return

店舗ID

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

店舗IDを設定する

auのバーコード決済、スキャンコード決済で指定可能です。

※未指定の場合は、Authorize時と同じ値

@param

#store_id 店舗ID

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 154
def store_id=(store_id)
  @store_id = store_id
end
term_id() click to toggle source

端末管理番号を取得する

@return

端末管理番号

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

端末管理番号を設定する

auのバーコード決済、スキャンコード決済で指定可能です。

※未指定の場合は、Authorize時と同じ値

@param

#term_id 端末管理番号

# File tgMdk/lib/tg_mdk/mdk_dto/carrier_cancel_request_dto.rb, line 174
def term_id=(term_id)
  @term_id = term_id
end