Show / Hide Table of Contents

# Class Transaction

4G MDK トランザクション実行処理管理クラス

##### Inheritance

object
Transaction

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: jp.veritrans.tercerog.mdk

###### Assembly: cg-mdk.dll

##### Syntax

    public class Transaction

### Constructors

#### Transaction(ILogger, MerchantConfig)

4G MDK トランザクション実行処理管理クラスのコンストラクタ

##### Declaration

    public Transaction(ILogger logger, MerchantConfig merchantConfig)

##### Parameters

Type | Name | Description
--- | --- | ---
ILogger | logger | ILoggerインターフェイスを実装したクラスのインスタンス
MerchantConfig | merchantConfig | 4G MDK 設定情報管理クラスのインスタンス

### Fields

#### DUMMY_SERVER

##### Declaration

    public static string DUMMY_SERVER

##### Field Value

Type | Description
--- | ---
string |

#### HYPHEN

##### Declaration

    public static string HYPHEN

##### Field Value

Type | Description
--- | ---
string |

#### METHOD_NAME_GET_SERVICE_COMMAND

##### Declaration

    public static string METHOD_NAME_GET_SERVICE_COMMAND

##### Field Value

Type | Description
--- | ---
string |

#### METHOD_NAME_GET_SERVICE_OPTION_TYPE

##### Declaration

    public static string METHOD_NAME_GET_SERVICE_OPTION_TYPE

##### Field Value

Type | Description
--- | ---
string |

#### METHOD_NAME_GET_SERVICE_TYPE

##### Declaration

    public static string METHOD_NAME_GET_SERVICE_TYPE

##### Field Value

Type | Description
--- | ---
string |

#### SEARCH_SERVER

##### Declaration

    public static string SEARCH_SERVER

##### Field Value

Type | Description
--- | ---
string |

#### SERVICE_COMMAND_SEARCH

##### Declaration

    public static string SERVICE_COMMAND_SEARCH

##### Field Value

Type | Description
--- | ---
string |

#### SLASH

##### Declaration

    public static string SLASH

##### Field Value

Type | Description
--- | ---
string |

### Methods

#### Execute(IRequestDto)

決済要求実行処理

GWに接続し、決済コマンドを発行します。

##### Declaration

    public object Execute(IRequestDto requestDto)

##### Parameters

Type | Name | Description
--- | --- | ---
IRequestDto | requestDto | 決済要求Dto

##### Returns

Type | Description
--- | ---
object | 決済応答DTO

#### Execute(IRequestDto, HttpClient)

決済要求実行処理Async

GWに接続し、決済コマンドを発行します。

##### Declaration

    public Task<object> Execute(IRequestDto requestDto, HttpClient httpClient)

##### Parameters

Type | Name | Description
--- | --- | ---
IRequestDto | requestDto | 決済要求Dto
HttpClient | httpClient | 呼び出し元アプリケーションで管理されたHttpClientインスタンス

##### Returns

Type | Description
--- | ---
Task<object> | 決済応答DTOを返す非同期操作

#### Execute<T>(IRequestDto)

決済要求実行処理

##### Declaration

    public T Execute<T>(IRequestDto requestDto) where T : IResponseDto, new()

##### Parameters

Type | Name | Description
--- | --- | ---
IRequestDto | requestDto | 決済要求DTO

##### Returns

Type | Description
--- | ---
T | 決済応答DTO

##### Type Parameters

Name | Description
--- | ---
T | 決済応答DTOの型を指定

#### Execute<T>(IRequestDto, HttpClient)

決済要求実行処理Async

##### Declaration

    public Task<T> Execute<T>(IRequestDto requestDto, HttpClient httpClient) where T : IResponseDto, new()

##### Parameters

Type | Name | Description
--- | --- | ---
IRequestDto | requestDto | 決済要求DTO
HttpClient | httpClient | 呼び出し元アプリケーションで管理されたHttpClientインスタンス

##### Returns

Type | Description
--- | ---
Task<T> | 決済応答DTOを返す非同期操作

##### Type Parameters

Name | Description
--- | ---
T | 決済応答DTOの型を指定