Merge pull request #704 from Adyen/PW-4817/update_terminalApi

updated saleToAcquirerData type
This commit is contained in:
Wouter Boereboom
2021-06-04 16:00:57 +02:00
committed by GitHub
2 changed files with 59 additions and 63 deletions

View File

@@ -83,7 +83,11 @@ const saleData: SaleData = {
version: "1",
name: "test"
}
}
},
metadata: {
someMetaDataKey1: "YOUR_VALUE",
someMetaDataKey2: "YOUR_VALUE"
},
}
};

View File

@@ -1,58 +1,75 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/**
* Terminal API
* Definition of Terminal API Schema
*
* The version of the OpenAPI document: 1.0.0
* Adyen Terminal API
* Adyen Terminal API description
*
* The version of the OpenAPI document: 3
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApplicationInfo } from "./applicationInfo";
import { ApplicationInfo } from './applicationInfo';
export class SaleToAcquirerData {
"applicationInfo"?: ApplicationInfo;
"shopperEmail"?: string;
"shopperReference"?: string;
"recurringContract"?: string;
"shopperStatement"?: string;
"recurringDetailName"?: string;
"store"?: string;
"merchantAccount"?: string;
"currency"?: string;
"tenderOption"?: string;
"additionalData"?: object;
'additionalData'?: { [key: string]: string; };
'applicationInfo'?: ApplicationInfo;
'currency'?: string;
'merchantAccount'?: string;
'metadata'?: { [key: string]: string; };
'recurringContract'?: string;
'recurringDetailName'?: string;
'recurringTokenService'?: string;
'shopperEmail'?: string;
'shopperReference'?: string;
'shopperStatement'?: string;
'store'?: string;
'tenderOption'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "additionalData",
"baseName": "additionalData",
"type": "{ [key: string]: string; }"
},
{
"name": "applicationInfo",
"baseName": "applicationInfo",
"type": "ApplicationInfo"
},
{
"name": "currency",
"baseName": "currency",
"type": "string"
},
{
"name": "merchantAccount",
"baseName": "merchantAccount",
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }"
},
{
"name": "recurringContract",
"baseName": "recurringContract",
"type": "string"
},
{
"name": "recurringDetailName",
"baseName": "recurringDetailName",
"type": "string"
},
{
"name": "recurringTokenService",
"baseName": "recurringTokenService",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
@@ -63,45 +80,20 @@ export class SaleToAcquirerData {
"baseName": "shopperReference",
"type": "string"
},
{
"name": "recurringContract",
"baseName": "recurringContract",
"type": "string"
},
{
"name": "shopperStatement",
"baseName": "shopperStatement",
"type": "string"
},
{
"name": "recurringDetailName",
"baseName": "recurringDetailName",
"type": "string"
},
{
"name": "store",
"baseName": "store",
"type": "string"
},
{
"name": "merchantAccount",
"baseName": "merchantAccount",
"type": "string"
},
{
"name": "currency",
"baseName": "currency",
"type": "string"
},
{
"name": "tenderOption",
"baseName": "tenderOption",
"type": "string"
},
{
"name": "additionalData",
"baseName": "additionalData",
"type": "object"
} ];
static getAttributeTypeMap() {