class Veritrans::Tercerog::Mdk::UpopAuthorizeRequestDto

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

@author

VeriTrans Inc.

Constants

SERVICE_COMMAND

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

SERVICE_TYPE

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

Public Class Methods

new() click to toggle source

コンストラクタ

# File tgMdk/lib/tg_mdk/mdk_dto/upop_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

決済金額を取得する

決済金額(日本円)を指定します。 1 以上 999,999,999,999 以下

@return

決済金額

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

決済金額を設定する

決済金額(日本円)を指定します。 1 以上 999,999,999,999 以下

@param

amount 決済金額

# File tgMdk/lib/tg_mdk/mdk_dto/upop_authorize_request_dto.rb, line 96
def amount=(amount)
  @amount = amount
end
customer_ip() click to toggle source

消費者IPアドレスを取得する

消費者側のIPアドレスを指定します。 ※ IPV6の形式も対応しています。

@return

消費者IPアドレス

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

消費者IPアドレスを設定する

消費者側のIPアドレスを指定します。 ※ IPV6の形式も対応しています。

@param

#customer_ip 消費者IPアドレス

# File tgMdk/lib/tg_mdk/mdk_dto/upop_authorize_request_dto.rb, line 161
def customer_ip=(customer_ip)
  @customer_ip = customer_ip
end
order_id() click to toggle source

取引IDを取得する

  • マーチャント側で取引を一意に表す注文管理IDを指定します。

  • 申込処理ごとに一意である必要があります。

  • 半角英数字、“-”(ハイフン)、“_”(アンダースコア)も使用可能です。

@return

取引ID

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

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

@return

決済サービスコマンド

# File tgMdk/lib/tg_mdk/mdk_dto/upop_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/upop_authorize_request_dto.rb, line 42
def service_type
  @service_type = nil unless instance_variable_defined?(:@service_type)
  @service_type
end
term_url() click to toggle source

決済結果戻り先URLを取得する

決済完了後に、店舗側へ遷移を戻すためのURLを指定します。

  • 半角256文字以内

@return

決済結果戻り先URL

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

決済結果戻り先URLを設定する

決済完了後に、店舗側へ遷移を戻すためのURLを指定します。

  • 半角256文字以内

@param

#term_url 決済結果戻り先URL

# File tgMdk/lib/tg_mdk/mdk_dto/upop_authorize_request_dto.rb, line 140
def term_url=(term_url)
  @term_url = term_url
end
with_capture() click to toggle source

売上フラグを取得する

  • true : 与信同時売上

  • false: 与信のみ

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

@return

売上フラグ

# File tgMdk/lib/tg_mdk/mdk_dto/upop_authorize_request_dto.rb, line 107
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/upop_authorize_request_dto.rb, line 119
def with_capture=(with_capture)
  @with_capture = with_capture
end