class Veritrans::Tercerog::Mdk::MpiAuthorizeRequestDto

決済サービスタイプ:3Dセキュアカード連携、コマンド名:申込の要求Dtoクラス

@author

VeriTrans Inc.

Constants

SERVICE_COMMAND

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

SERVICE_TYPE

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

Public Class Methods

new() click to toggle source

コンストラクタ

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

Public Instance Methods

acquirer_code() click to toggle source

仕向け先コードを取得する

@return

仕向け先コード

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

仕向け先コードを設定する

  • 仕向け先カード会社コードを指定します。

  • (店舗が加盟店契約をしているカード会社)

  • ※ 最終的に決済を行うカード発行会社ではなく、決済要求電文が最初に仕向けられる加盟店管理会社となります。

  • 01 シティカードジャパン株式会社(ダイナースカード)

  • 02 株式会社 ジェーシービー

  • 03 三菱UFJニコス株式会社(旧DCカード)

  • 04 三井住友カード株式会社(りそなカード株式会社などVISAジャパングループ)

  • 05 三菱UFJニコス株式会社(旧UFJカード)

  • 06 ユーシーカード株式会社

  • 07 アメリカン・

@param

#acquirer_code 仕向け先コード

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 201
def acquirer_code=(acquirer_code)
  @acquirer_code = acquirer_code
end
amount() click to toggle source

決済金額を取得する

@return

決済金額

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

決済金額を設定する

  • 決済金額を指定します。

  • 1 以上かつ 99999999 以下である必要があります。

@param

amount 決済金額

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 112
def amount=(amount)
  @amount = amount
end
birthday() click to toggle source

誕生日を取得する

@return

誕生日

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

誕生日を設定する

  • 誕生日 を指定します。

  • カード接続センターがjcnと設定しているときは利用できません。

@param

birthday 誕生日

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 317
def birthday=(birthday)
  @birthday = birthday
end
bonus_first_payment() click to toggle source

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

@return

ボーナス初回年月

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 474
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

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

  • ボーナス初回年月を指定します。

  • YYMM (年月)の形式

  • 例) “1312”

@param

#bonus_first_payment ボーナス初回年月

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 486
def bonus_first_payment=(bonus_first_payment)
  @bonus_first_payment = bonus_first_payment
end
browser_device_category() click to toggle source

端末種別を取得する

@return

端末種別

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

端末種別を設定する

  • 端末種別を指定します。

  • “0”: PC

  • “1”: mobile

@param

#browser_device_category 端末種別

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 544
def browser_device_category=(browser_device_category)
  @browser_device_category = browser_device_category
end
card_center() click to toggle source

カード接続センターを取得する

@return

カード接続センター

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

カード接続センターを設定する

  • カード接続センターを指定します。(任意指定)

  • “sln”: Sln接続“

  • “jcn”: Jcn接続

  • ※ 指定が無い場合は、デフォルトの接続センターを検証

@param

#card_center カード接続センター

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 174
def card_center=(card_center)
  @card_center = card_center
end
card_expire() click to toggle source

カード有効期限を取得する

@return

カード有効期限

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

カード有効期限を設定する

  • クレジットカードの有効期限を指定します。

  • MM/YY (月 + “/” + 年)の形式

  • 例) “11/09”

@param

#card_expire カード有効期限

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 153
def card_expire=(card_expire)
  @card_expire = card_expire
end
card_number() click to toggle source

カード番号を取得する

@return

カード番号

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

カード番号を設定する

  • クレジットカード番号を指定します。

  • 例) クレジットカード番号は19桁まで処理が可能。

  • (ハイフンを含んでも含まなくても同様に処理が可能)

  • 戻り値としては、上2桁/下4桁の計6桁が返ります。

@param

#card_number カード番号

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 133
def card_number=(card_number)
  @card_number = card_number
end
currency_unit() click to toggle source

通貨単位を取得する

@return

通貨単位

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

通貨単位を設定する

  • “jpy”のみ

@param

#currency_unit 通貨単位

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 392
def currency_unit=(currency_unit)
  @currency_unit = currency_unit
end
first_kana_name() click to toggle source

名前(名)カナを取得する

@return

名前(名)カナ

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

名前(名)カナを設定する

  • 名前(名)カナ を指定します。

  • カード接続センターがjcnと設定しているときは利用できません。

@param

#first_kana_name 名前(名)カナ

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 355
def first_kana_name=(first_kana_name)
  @first_kana_name = first_kana_name
end
first_payment() click to toggle source

初回請求年月を取得する

@return

初回請求年月

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

初回請求年月を設定する

  • 初回請求年月を指定します。

  • YYMM (年月)の形式

  • 例) “1310”

@param

#first_payment 初回請求年月

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 466
def first_payment=(first_payment)
  @first_payment = first_payment
end
http_accept() click to toggle source

HTTPアセプトを取得する

@return

HTTPアセプト

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

HTTPアセプトを設定する

  • コンシューマのブラウザ情報でアプリケーションサーバから取得して設定します。

@param

#http_accept HTTPアセプト

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 446
def http_accept=(http_accept)
  @http_accept = http_accept
end
http_user_agent() click to toggle source

HTTPユーザエージェントを取得する

@return

HTTPユーザエージェント

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

HTTPユーザエージェントを設定する

  • コンシューマのブラウザ情報でアプリケーションサーバから取得して設定します。

@param

#http_user_agent HTTPユーザエージェント

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 428
def http_user_agent=(http_user_agent)
  @http_user_agent = http_user_agent
end
item_code() click to toggle source

商品コードを取得する

@return

商品コード

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

商品コードを設定する

  • 商品コードを指定します。(任意指定)

  • ※ 指定が無い場合は、デフォルトの商品コード

@param

#item_code 商品コード

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 280
def item_code=(item_code)
  @item_code = item_code
end
jpo() click to toggle source

JPOを取得する

@return

JPO

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

JPOを設定する

  • JPOを指定します。(任意指定)

@param

jpo JPO

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 219
def jpo=(jpo)
  @jpo = jpo
end
last_kana_name() click to toggle source

名前(姓)カナを取得する

@return

名前(姓)カナ

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

名前(姓)カナを設定する

  • 名前(姓)カナ を指定します。

  • カード接続センターがjcnと設定しているときは利用できません。

@param

#last_kana_name 名前(姓)カナ

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 374
def last_kana_name=(last_kana_name)
  @last_kana_name = last_kana_name
end
mc_amount() click to toggle source

決済金額(多通貨)を取得する

@return

決済金額(多通貨)

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

決済金額(多通貨)を設定する

  • 決済金額(多通貨)を指定します。

  • 0 より大きくかつ 99999999 以下である必要があります。

@param

#mc_amount 決済金額(多通貨)

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 505
def mc_amount=(mc_amount)
  @mc_amount = mc_amount
end
option_params() click to toggle source

拡張パラメータリストを取得する

@return

拡張パラメータリスト

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

拡張パラメータリストを設定する

@param

#option_params 拡張パラメータリスト

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 561
def option_params=(option_params)
  @option_params = option_params
end
order_id() click to toggle source

取引IDを取得する

@return

取引ID

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 81
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/mpi_authorize_request_dto.rb, line 93
def order_id=(order_id)
  @order_id = order_id
end
push_url() click to toggle source

プッシュURLを取得する

@return

プッシュURL

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

プッシュURLを設定する

  • プッシュURLを指定します。

  • ※ 未指定の場合は、マーチャント登録時に設定した値を使用

@param

#push_url プッシュURL

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 524
def push_url=(push_url)
  @push_url = push_url
end
redirection_uri() click to toggle source

リダイレクションURIを取得する

@return

リダイレクションURI

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

リダイレクションURIを設定する

  • 検証結果を返すURIを指定します。指定がない場合には予め登録されたURIを用います。

@param

#redirection_uri リダイレクションURI

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 410
def redirection_uri=(redirection_uri)
  @redirection_uri = redirection_uri
end
sales_day() click to toggle source

売上日を取得する

@return

売上日

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

売上日を設定する

  • 売上日を指定します。(任意指定)

  • YYYYMMDD の形式

  • 例) “20090905”

  • ※ 指定が無い場合は、売上日(取引日:与信のとき無視)

@param

#sales_day 売上日

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 261
def sales_day=(sales_day)
  @sales_day = sales_day
end
security_code() click to toggle source

セキュリティコードを取得する

@return

セキュリティコード

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

セキュリティコードを設定する

  • セキュリティコードを指定します。

@param

#security_code セキュリティコード

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 298
def security_code=(security_code)
  @security_code = security_code
end
service_command() click to toggle source

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

@return

決済サービスコマンド

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 49
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/mpi_authorize_request_dto.rb, line 58
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

決済サービスオプションを設定する

  • 決済サービスオプションの区分を指定します。

  • 必須項目

  • “mpi-none”: MPI単体サービス

  • “mpi-complete”: 完全認証

  • “mpi-company”: 通常認証(カード会社リスク負担)

  • “mpi-merchant”: 通常認証(カード会社、加盟店リスク負担)

@param

#service_option_type 決済サービスオプション

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

電話番号を取得する

@return

電話番号

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

電話番号を設定する

  • 電話番号 を指定します。

  • カード接続センターがjcnと設定しているときは利用できません。

@param

tel 電話番号

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 336
def tel=(tel)
  @tel = tel
end
with_capture() click to toggle source

売上フラグを取得する

@return

売上フラグ

# File tgMdk/lib/tg_mdk/mdk_dto/mpi_authorize_request_dto.rb, line 227
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”: 与信のみ

  • ※ 指定が無い場合は、デフォルトの売上フラグ(与信のみ)

@param

#with_capture 売上フラグ

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