mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
allow splits terminal for marketplace (#967)
* allow splits terminal for marketplace * fix: SaleToAcquirerData accept SaleToAcquirerData type or string
This commit is contained in:
@@ -854,6 +854,9 @@ export class ObjectSerializer {
|
||||
} else if (type === "Date") {
|
||||
return data.toISOString();
|
||||
} else if (type === "SaleToAcquirerData") {
|
||||
if (typeof data === 'string') {
|
||||
return data; // splits payment for terminal
|
||||
}
|
||||
const dataString = JSON.stringify(data);
|
||||
return Buffer.from(dataString).toString("base64");
|
||||
} else {
|
||||
|
||||
@@ -43,7 +43,7 @@ export class SaleData {
|
||||
'OperatorLanguage'?: string;
|
||||
'SaleReferenceID'?: string;
|
||||
'SaleTerminalData'?: SaleTerminalData;
|
||||
'SaleToAcquirerData'?: SaleToAcquirerData;
|
||||
'SaleToAcquirerData'?: SaleToAcquirerData | string;
|
||||
'SaleToIssuerData'?: SaleToIssuerData;
|
||||
'SaleToPOIData'?: string;
|
||||
'SaleTransactionID': TransactionIdentification;
|
||||
|
||||
Reference in New Issue
Block a user