Skip to content

Commit

Permalink
feat(Wise Node): Add XML as supported format in getStatement operation (
Browse files Browse the repository at this point in the history
  • Loading branch information
webkp committed Apr 29, 2024
1 parent 1c261f8 commit a424b59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Wise/Wise.node.ts
Expand Up @@ -213,7 +213,7 @@ export class Wise implements INodeType {

const profileId = this.getNodeParameter('profileId', 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 qs = {
Expand Down
Expand Up @@ -136,6 +136,10 @@ export const accountFields: INodeProperties[] = [
name: 'PDF',
value: 'pdf',
},
{
name: 'XML (CAMT.053)',
value: 'xml',
},
],
},
{
Expand All @@ -149,7 +153,7 @@ export const accountFields: INodeProperties[] = [
show: {
resource: ['account'],
operation: ['getStatement'],
format: ['csv', 'pdf'],
format: ['csv', 'pdf', 'xml'],
},
},
},
Expand All @@ -165,7 +169,7 @@ export const accountFields: INodeProperties[] = [
show: {
resource: ['account'],
operation: ['getStatement'],
format: ['csv', 'pdf'],
format: ['csv', 'pdf', 'xml'],
},
},
},
Expand Down

0 comments on commit a424b59

Please sign in to comment.