Skip to content

Commit a424b59

Browse files
authored
feat(Wise Node): Add XML as supported format in getStatement operation (#9193)
1 parent 1c261f8 commit a424b59

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/nodes-base/nodes/Wise/Wise.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class Wise implements INodeType {
213213

214214
const profileId = this.getNodeParameter('profileId', i);
215215
const borderlessAccountId = this.getNodeParameter('borderlessAccountId', i);
216-
const format = this.getNodeParameter('format', i) as 'json' | 'csv' | 'pdf';
216+
const format = this.getNodeParameter('format', i) as 'json' | 'csv' | 'pdf' | 'xml';
217217
const endpoint = `v3/profiles/${profileId}/borderless-accounts/${borderlessAccountId}/statement.${format}`;
218218

219219
const qs = {

packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ export const accountFields: INodeProperties[] = [
136136
name: 'PDF',
137137
value: 'pdf',
138138
},
139+
{
140+
name: 'XML (CAMT.053)',
141+
value: 'xml',
142+
},
139143
],
140144
},
141145
{
@@ -149,7 +153,7 @@ export const accountFields: INodeProperties[] = [
149153
show: {
150154
resource: ['account'],
151155
operation: ['getStatement'],
152-
format: ['csv', 'pdf'],
156+
format: ['csv', 'pdf', 'xml'],
153157
},
154158
},
155159
},
@@ -165,7 +169,7 @@ export const accountFields: INodeProperties[] = [
165169
show: {
166170
resource: ['account'],
167171
operation: ['getStatement'],
168-
format: ['csv', 'pdf'],
172+
format: ['csv', 'pdf', 'xml'],
169173
},
170174
},
171175
},

0 commit comments

Comments
 (0)