mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat(Wise Node): Add XML as supported format in getStatement operation (#9193)
This commit is contained in:
@@ -213,7 +213,7 @@ export class Wise implements INodeType {
|
|||||||
|
|
||||||
const profileId = this.getNodeParameter('profileId', i);
|
const profileId = this.getNodeParameter('profileId', i);
|
||||||
const borderlessAccountId = this.getNodeParameter('borderlessAccountId', i);
|
const borderlessAccountId = this.getNodeParameter('borderlessAccountId', i);
|
||||||
const format = this.getNodeParameter('format', i) as 'json' | 'csv' | 'pdf';
|
const format = this.getNodeParameter('format', i) as 'json' | 'csv' | 'pdf' | 'xml';
|
||||||
const endpoint = `v3/profiles/${profileId}/borderless-accounts/${borderlessAccountId}/statement.${format}`;
|
const endpoint = `v3/profiles/${profileId}/borderless-accounts/${borderlessAccountId}/statement.${format}`;
|
||||||
|
|
||||||
const qs = {
|
const qs = {
|
||||||
|
|||||||
@@ -136,6 +136,10 @@ export const accountFields: INodeProperties[] = [
|
|||||||
name: 'PDF',
|
name: 'PDF',
|
||||||
value: 'pdf',
|
value: 'pdf',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'XML (CAMT.053)',
|
||||||
|
value: 'xml',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -149,7 +153,7 @@ export const accountFields: INodeProperties[] = [
|
|||||||
show: {
|
show: {
|
||||||
resource: ['account'],
|
resource: ['account'],
|
||||||
operation: ['getStatement'],
|
operation: ['getStatement'],
|
||||||
format: ['csv', 'pdf'],
|
format: ['csv', 'pdf', 'xml'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -165,7 +169,7 @@ export const accountFields: INodeProperties[] = [
|
|||||||
show: {
|
show: {
|
||||||
resource: ['account'],
|
resource: ['account'],
|
||||||
operation: ['getStatement'],
|
operation: ['getStatement'],
|
||||||
format: ['csv', 'pdf'],
|
format: ['csv', 'pdf', 'xml'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user