class Veritrans::Tercerog::Mdk::MasterpassAuthorizeRequestDto

決済サービスタイプ:MasterPass、コマンド名:与信の要求Dtoクラス

@author

VeriTrans Inc.

Constants

SERVICE_COMMAND

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

SERVICE_TYPE

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

Public Class Methods

new() click to toggle source

コンストラクタ

# File tgMdk/lib/tg_mdk/mdk_dto/masterpass_authorize_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/masterpass_authorize_request_dto.rb, line 80
def amount
  @amount = nil unless instance_variable_defined?(:@amount)
  @amount
end
amount=(amount) click to toggle source

決済金額を設定する

決済金額を指定します。

  • 1 以上かつ 99999999(8桁) 以下

@param

amount 決済金額

# File tgMdk/lib/tg_mdk/mdk_dto/masterpass_authorize_request_dto.rb, line 91
def amount=(amount)
  @amount = amount
end
bonus_first_payment() click to toggle source

ボーナス初回年月を取得する

@return

ボーナス初回年月

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

ボーナス初回年月を設定する

JPOが24,34で与信同時売上フラグ=trueの場合にボーナス初回月をYYMM形式で指定します。JPOが上記以外、または与信同時売上フラグがfalseの場合は設定されているとエラーになります。 指定がない場合にはボーナス初回月を指定せずに売上を行います(JPOパラメータ内の数値で補完されません)。

@param

#bonus_first_payment ボーナス初回年月

# File tgMdk/lib/tg_mdk/mdk_dto/masterpass_authorize_request_dto.rb, line 173
def bonus_first_payment=(bonus_first_payment)
  @bonus_first_payment = bonus_first_payment
end
first_payment() click to toggle source

初回請求年月を取得する

@return

初回請求年月

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

初回請求年月を設定する

JPOが31,34,61で与信同時売上フラグ=trueの場合に初回請求月をYYMM形式で指定します。JPOが上記以外、または与信同時売上フラグがfalseの場合は設定されているとエラーになります。 指定がない場合には初回請求年月を指定せずに売上を行います(JPOパラメータ内の数値で補完されません)。

@param

#first_payment 初回請求年月

# File tgMdk/lib/tg_mdk/mdk_dto/masterpass_authorize_request_dto.rb, line 153
def first_payment=(first_payment)
  @first_payment = first_payment
end
jpo() click to toggle source

支払い種別を取得する

@return

支払い種別

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

支払い種別を設定する

“10” (一括払い) “21” (ボーナス一括) “61Cxx” (分割払い、xxに分割回数指定) “80” (リボルビング払い) ※指定が無い場合は、“10”(一括払い)が適用されます。

@param

jpo 支払い種別

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

取引IDを取得する

@return

取引ID

# File tgMdk/lib/tg_mdk/mdk_dto/masterpass_authorize_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/masterpass_authorize_request_dto.rb, line 72
def order_id=(order_id)
  @order_id = order_id
end
service_command() click to toggle source

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

@return

決済サービスコマンド

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

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

@return

決済サービスタイプ

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

与信同時売上フラグを取得する

@return

与信同時売上フラグ

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

与信同時売上フラグを設定する

  • true : 与信同時売上

  • false: 与信のみ

※ 未指定の場合は、false:与信のみ。

@param

#with_capture 与信同時売上フラグ

# File tgMdk/lib/tg_mdk/mdk_dto/masterpass_authorize_request_dto.rb, line 133
def with_capture=(with_capture)
  @with_capture = with_capture
end