@vqnguyen1/piece-fis-ibs-cards 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/project.json +22 -0
- package/src/index.ts +244 -0
- package/src/lib/actions/bank-control.ts +378 -0
- package/src/lib/actions/cards.ts +1732 -0
- package/src/lib/actions/security.ts +170 -0
- package/tsconfig.json +19 -0
- package/tsconfig.lib.json +10 -0
- package/src/index.d.ts +0 -16
- package/src/index.js +0 -166
- package/src/index.js.map +0 -1
- package/src/lib/actions/bank-control.d.ts +0 -110
- package/src/lib/actions/bank-control.js +0 -371
- package/src/lib/actions/bank-control.js.map +0 -1
- package/src/lib/actions/cards.d.ts +0 -565
- package/src/lib/actions/cards.js +0 -1733
- package/src/lib/actions/cards.js.map +0 -1
- package/src/lib/actions/security.d.ts +0 -38
- package/src/lib/actions/security.js +0 -173
- package/src/lib/actions/security.js.map +0 -1
package/src/lib/actions/cards.js
DELETED
|
@@ -1,1733 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cards_get_history_transaction_detail = exports.cards_ach_transfer = exports.cards_get_pending_transactions = exports.cards_get_history_transactions = exports.cards_get_transactions = exports.cards_prepaid_unload = exports.cards_prepaid_load = exports.cards_get_transaction_detail = exports.cards_dda_sav_transfer = exports.cards_prepaid_debit_adjustment = exports.cards_prepaid_credit_adjustment = exports.cards_search = exports.cards_get_prefix_issuer_ids = exports.cards_get_prefix_fee_info = exports.cards_send_pin_reminder = exports.cards_get_pin_info = exports.cards_change_pin = exports.cards_validate_pin_ivr = exports.cards_change_pin_ivr = exports.cards_negative_file_ivr = exports.cards_get_negative_file_replace_card = exports.cards_update_negative_file_replace_card = exports.cards_get_negative_file = exports.cards_update_negative_file = exports.cards_get_holds_v3 = exports.cards_get_fraud_exclusion = exports.cards_update_fraud_exclusion = exports.cards_delete_fraud_exclusion = exports.cards_get_fraud_exclusion_codes = exports.cards_get_alert_contact_info = exports.cards_update_alert_contact_info = exports.cards_get_alert_preferences = exports.cards_update_alert_preferences = exports.cards_get_by_dda_account = exports.cards_delete_multiple_accounts = exports.cards_add_multiple_accounts = exports.cards_update_multiple_accounts = exports.cards_get_multiple_accounts = exports.cards_update_primary_accounts = exports.cards_generate_number = exports.cards_reset_failure_counters = exports.cards_get_details = exports.cards_update_cardholder_address = exports.cards_get_cardholders = exports.cards_activate = exports.cards_update_personal_limits = exports.cards_link_unlink = exports.cards_authenticate = exports.cards_get_holds = exports.cards_single_commit = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
// Helper function to build headers
|
|
9
|
-
function buildHeaders(auth, ibsAuthorization) {
|
|
10
|
-
const headers = {
|
|
11
|
-
'Content-Type': 'application/json',
|
|
12
|
-
'organization-id': auth.organizationId,
|
|
13
|
-
'source-id': auth.sourceId,
|
|
14
|
-
'application-id': auth.applicationId,
|
|
15
|
-
'uuid': crypto.randomUUID(),
|
|
16
|
-
'ibs-authorization': ibsAuthorization || auth.ibsAuthorization,
|
|
17
|
-
};
|
|
18
|
-
if (auth.securityTokenType) {
|
|
19
|
-
headers['security-token-type'] = auth.securityTokenType;
|
|
20
|
-
}
|
|
21
|
-
return headers;
|
|
22
|
-
}
|
|
23
|
-
// ============================================
|
|
24
|
-
// IBS-Cards.json - Card Management Functions
|
|
25
|
-
// ============================================
|
|
26
|
-
exports.cards_single_commit = (0, pieces_framework_1.createAction)({
|
|
27
|
-
auth: __1.fisIbsCardsAuth,
|
|
28
|
-
name: 'cards_single_commit',
|
|
29
|
-
displayName: 'Cards - Single Commit',
|
|
30
|
-
description: 'Execute multiple host services as supported by Cardbase Single Commit',
|
|
31
|
-
props: {
|
|
32
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
33
|
-
displayName: 'IBS Authorization',
|
|
34
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
requestBody: pieces_framework_1.Property.Object({
|
|
38
|
-
displayName: 'Request Body',
|
|
39
|
-
description: 'Single commit request data with up to 20 services',
|
|
40
|
-
required: true,
|
|
41
|
-
}),
|
|
42
|
-
},
|
|
43
|
-
run(context) {
|
|
44
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const auth = context.auth;
|
|
46
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
47
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
48
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
49
|
-
url: `${auth.baseUrl}/IBSCB/v4/cardbase-single-commit`,
|
|
50
|
-
headers,
|
|
51
|
-
body: context.propsValue.requestBody,
|
|
52
|
-
});
|
|
53
|
-
return response.body;
|
|
54
|
-
});
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
exports.cards_get_holds = (0, pieces_framework_1.createAction)({
|
|
58
|
-
auth: __1.fisIbsCardsAuth,
|
|
59
|
-
name: 'cards_get_holds',
|
|
60
|
-
displayName: 'Cards - Get Holds',
|
|
61
|
-
description: 'Return a list of all holds for the specified card',
|
|
62
|
-
props: {
|
|
63
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
64
|
-
displayName: 'IBS Authorization',
|
|
65
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
66
|
-
required: false,
|
|
67
|
-
}),
|
|
68
|
-
cardData: pieces_framework_1.Property.Object({
|
|
69
|
-
displayName: 'Card Data',
|
|
70
|
-
description: 'Card number or card alias',
|
|
71
|
-
required: true,
|
|
72
|
-
}),
|
|
73
|
-
},
|
|
74
|
-
run(context) {
|
|
75
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
const auth = context.auth;
|
|
77
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
78
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
79
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
80
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/holds`,
|
|
81
|
-
headers,
|
|
82
|
-
body: context.propsValue.cardData,
|
|
83
|
-
});
|
|
84
|
-
return response.body;
|
|
85
|
-
});
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
exports.cards_authenticate = (0, pieces_framework_1.createAction)({
|
|
89
|
-
auth: __1.fisIbsCardsAuth,
|
|
90
|
-
name: 'cards_authenticate',
|
|
91
|
-
displayName: 'Cards - Authenticate Cardholder',
|
|
92
|
-
description: 'Authenticate a cardholder by comparing input data to stored data',
|
|
93
|
-
props: {
|
|
94
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
95
|
-
displayName: 'IBS Authorization',
|
|
96
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
97
|
-
required: false,
|
|
98
|
-
}),
|
|
99
|
-
authenticationData: pieces_framework_1.Property.Object({
|
|
100
|
-
displayName: 'Authentication Data',
|
|
101
|
-
description: 'Card number and authentication fields (phone, SSN, PIN, etc.)',
|
|
102
|
-
required: true,
|
|
103
|
-
}),
|
|
104
|
-
},
|
|
105
|
-
run(context) {
|
|
106
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
const auth = context.auth;
|
|
108
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
109
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
110
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
111
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/authentication`,
|
|
112
|
-
headers,
|
|
113
|
-
body: context.propsValue.authenticationData,
|
|
114
|
-
});
|
|
115
|
-
return response.body;
|
|
116
|
-
});
|
|
117
|
-
},
|
|
118
|
-
});
|
|
119
|
-
exports.cards_link_unlink = (0, pieces_framework_1.createAction)({
|
|
120
|
-
auth: __1.fisIbsCardsAuth,
|
|
121
|
-
name: 'cards_link_unlink',
|
|
122
|
-
displayName: 'Cards - Link/Unlink Cards',
|
|
123
|
-
description: 'Create link or unlink between new and old card',
|
|
124
|
-
props: {
|
|
125
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
126
|
-
displayName: 'IBS Authorization',
|
|
127
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
128
|
-
required: false,
|
|
129
|
-
}),
|
|
130
|
-
linkData: pieces_framework_1.Property.Object({
|
|
131
|
-
displayName: 'Link Data',
|
|
132
|
-
description: 'Old card number, new card number, and link/unlink indicator',
|
|
133
|
-
required: true,
|
|
134
|
-
}),
|
|
135
|
-
},
|
|
136
|
-
run(context) {
|
|
137
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
138
|
-
const auth = context.auth;
|
|
139
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
140
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
141
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
142
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/link-unlink`,
|
|
143
|
-
headers,
|
|
144
|
-
body: context.propsValue.linkData,
|
|
145
|
-
});
|
|
146
|
-
return response.body;
|
|
147
|
-
});
|
|
148
|
-
},
|
|
149
|
-
});
|
|
150
|
-
exports.cards_update_personal_limits = (0, pieces_framework_1.createAction)({
|
|
151
|
-
auth: __1.fisIbsCardsAuth,
|
|
152
|
-
name: 'cards_update_personal_limits',
|
|
153
|
-
displayName: 'Cards - Update Personal Limits',
|
|
154
|
-
description: 'Change the personal limits on a card',
|
|
155
|
-
props: {
|
|
156
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
157
|
-
displayName: 'IBS Authorization',
|
|
158
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
159
|
-
required: false,
|
|
160
|
-
}),
|
|
161
|
-
limitsData: pieces_framework_1.Property.Object({
|
|
162
|
-
displayName: 'Limits Data',
|
|
163
|
-
description: 'Card number and personal limits settings',
|
|
164
|
-
required: true,
|
|
165
|
-
}),
|
|
166
|
-
},
|
|
167
|
-
run(context) {
|
|
168
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
169
|
-
const auth = context.auth;
|
|
170
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
171
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
172
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
173
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/personal-limits`,
|
|
174
|
-
headers,
|
|
175
|
-
body: context.propsValue.limitsData,
|
|
176
|
-
});
|
|
177
|
-
return response.body;
|
|
178
|
-
});
|
|
179
|
-
},
|
|
180
|
-
});
|
|
181
|
-
exports.cards_activate = (0, pieces_framework_1.createAction)({
|
|
182
|
-
auth: __1.fisIbsCardsAuth,
|
|
183
|
-
name: 'cards_activate',
|
|
184
|
-
displayName: 'Cards - Activate Card',
|
|
185
|
-
description: 'Activate a new card',
|
|
186
|
-
props: {
|
|
187
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
188
|
-
displayName: 'IBS Authorization',
|
|
189
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
190
|
-
required: false,
|
|
191
|
-
}),
|
|
192
|
-
activationData: pieces_framework_1.Property.Object({
|
|
193
|
-
displayName: 'Activation Data',
|
|
194
|
-
description: 'Card number or card alias for activation',
|
|
195
|
-
required: true,
|
|
196
|
-
}),
|
|
197
|
-
},
|
|
198
|
-
run(context) {
|
|
199
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
200
|
-
const auth = context.auth;
|
|
201
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
202
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
203
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
204
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/activation`,
|
|
205
|
-
headers,
|
|
206
|
-
body: context.propsValue.activationData,
|
|
207
|
-
});
|
|
208
|
-
return response.body;
|
|
209
|
-
});
|
|
210
|
-
},
|
|
211
|
-
});
|
|
212
|
-
exports.cards_get_cardholders = (0, pieces_framework_1.createAction)({
|
|
213
|
-
auth: __1.fisIbsCardsAuth,
|
|
214
|
-
name: 'cards_get_cardholders',
|
|
215
|
-
displayName: 'Cards - Get Cardholder Info',
|
|
216
|
-
description: 'Retrieve cardholder information for specified card',
|
|
217
|
-
props: {
|
|
218
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
219
|
-
displayName: 'IBS Authorization',
|
|
220
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
221
|
-
required: false,
|
|
222
|
-
}),
|
|
223
|
-
cardData: pieces_framework_1.Property.Object({
|
|
224
|
-
displayName: 'Card Data',
|
|
225
|
-
description: 'Card number or card alias',
|
|
226
|
-
required: true,
|
|
227
|
-
}),
|
|
228
|
-
},
|
|
229
|
-
run(context) {
|
|
230
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
const auth = context.auth;
|
|
232
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
233
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
234
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
235
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/cardholders`,
|
|
236
|
-
headers,
|
|
237
|
-
body: context.propsValue.cardData,
|
|
238
|
-
});
|
|
239
|
-
return response.body;
|
|
240
|
-
});
|
|
241
|
-
},
|
|
242
|
-
});
|
|
243
|
-
exports.cards_update_cardholder_address = (0, pieces_framework_1.createAction)({
|
|
244
|
-
auth: __1.fisIbsCardsAuth,
|
|
245
|
-
name: 'cards_update_cardholder_address',
|
|
246
|
-
displayName: 'Cards - Update Cardholder Address',
|
|
247
|
-
description: 'Update cardholder name, address, and other customer demographics',
|
|
248
|
-
props: {
|
|
249
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
250
|
-
displayName: 'IBS Authorization',
|
|
251
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
252
|
-
required: false,
|
|
253
|
-
}),
|
|
254
|
-
addressData: pieces_framework_1.Property.Object({
|
|
255
|
-
displayName: 'Address Data',
|
|
256
|
-
description: 'Card number and address information to update',
|
|
257
|
-
required: true,
|
|
258
|
-
}),
|
|
259
|
-
},
|
|
260
|
-
run(context) {
|
|
261
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
262
|
-
const auth = context.auth;
|
|
263
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
264
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
265
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
266
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/cardholder-address`,
|
|
267
|
-
headers,
|
|
268
|
-
body: context.propsValue.addressData,
|
|
269
|
-
});
|
|
270
|
-
return response.body;
|
|
271
|
-
});
|
|
272
|
-
},
|
|
273
|
-
});
|
|
274
|
-
exports.cards_get_details = (0, pieces_framework_1.createAction)({
|
|
275
|
-
auth: __1.fisIbsCardsAuth,
|
|
276
|
-
name: 'cards_get_details',
|
|
277
|
-
displayName: 'Cards - Get Card Details',
|
|
278
|
-
description: 'Retrieve information for specified card',
|
|
279
|
-
props: {
|
|
280
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
281
|
-
displayName: 'IBS Authorization',
|
|
282
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
283
|
-
required: false,
|
|
284
|
-
}),
|
|
285
|
-
cardData: pieces_framework_1.Property.Object({
|
|
286
|
-
displayName: 'Card Data',
|
|
287
|
-
description: 'Card number or card alias',
|
|
288
|
-
required: true,
|
|
289
|
-
}),
|
|
290
|
-
},
|
|
291
|
-
run(context) {
|
|
292
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
293
|
-
const auth = context.auth;
|
|
294
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
295
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
296
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
297
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/details`,
|
|
298
|
-
headers,
|
|
299
|
-
body: context.propsValue.cardData,
|
|
300
|
-
});
|
|
301
|
-
return response.body;
|
|
302
|
-
});
|
|
303
|
-
},
|
|
304
|
-
});
|
|
305
|
-
exports.cards_reset_failure_counters = (0, pieces_framework_1.createAction)({
|
|
306
|
-
auth: __1.fisIbsCardsAuth,
|
|
307
|
-
name: 'cards_reset_failure_counters',
|
|
308
|
-
displayName: 'Cards - Reset Failure Counters',
|
|
309
|
-
description: 'Reset the counters for consecutive rejected transactions or PIN failures',
|
|
310
|
-
props: {
|
|
311
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
312
|
-
displayName: 'IBS Authorization',
|
|
313
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
314
|
-
required: false,
|
|
315
|
-
}),
|
|
316
|
-
resetData: pieces_framework_1.Property.Object({
|
|
317
|
-
displayName: 'Reset Data',
|
|
318
|
-
description: 'Card number and reset indicators',
|
|
319
|
-
required: true,
|
|
320
|
-
}),
|
|
321
|
-
},
|
|
322
|
-
run(context) {
|
|
323
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
const auth = context.auth;
|
|
325
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
326
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
327
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
328
|
-
url: `${auth.baseUrl}/IBSCB/v4/cards/failure-counters`,
|
|
329
|
-
headers,
|
|
330
|
-
body: context.propsValue.resetData,
|
|
331
|
-
});
|
|
332
|
-
return response.body;
|
|
333
|
-
});
|
|
334
|
-
},
|
|
335
|
-
});
|
|
336
|
-
exports.cards_generate_number = (0, pieces_framework_1.createAction)({
|
|
337
|
-
auth: __1.fisIbsCardsAuth,
|
|
338
|
-
name: 'cards_generate_number',
|
|
339
|
-
displayName: 'Cards - Generate Card Number',
|
|
340
|
-
description: 'Generate a Cardbase System account number',
|
|
341
|
-
props: {
|
|
342
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
343
|
-
displayName: 'IBS Authorization',
|
|
344
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
345
|
-
required: false,
|
|
346
|
-
}),
|
|
347
|
-
requestData: pieces_framework_1.Property.Object({
|
|
348
|
-
displayName: 'Request Data',
|
|
349
|
-
description: 'Prefix number and other parameters for card generation',
|
|
350
|
-
required: true,
|
|
351
|
-
}),
|
|
352
|
-
},
|
|
353
|
-
run(context) {
|
|
354
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
355
|
-
const auth = context.auth;
|
|
356
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
357
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
358
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
359
|
-
url: `${auth.baseUrl}/IBSCB/v4/card-numbers`,
|
|
360
|
-
headers,
|
|
361
|
-
body: context.propsValue.requestData,
|
|
362
|
-
});
|
|
363
|
-
return response.body;
|
|
364
|
-
});
|
|
365
|
-
},
|
|
366
|
-
});
|
|
367
|
-
// ============================================
|
|
368
|
-
// IBS-Cards-Account.json - Account Management
|
|
369
|
-
// ============================================
|
|
370
|
-
exports.cards_update_primary_accounts = (0, pieces_framework_1.createAction)({
|
|
371
|
-
auth: __1.fisIbsCardsAuth,
|
|
372
|
-
name: 'cards_update_primary_accounts',
|
|
373
|
-
displayName: 'Cards - Update Primary Accounts',
|
|
374
|
-
description: 'Update primary accounts associated with the debit card',
|
|
375
|
-
props: {
|
|
376
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
377
|
-
displayName: 'IBS Authorization',
|
|
378
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
379
|
-
required: false,
|
|
380
|
-
}),
|
|
381
|
-
accountData: pieces_framework_1.Property.Object({
|
|
382
|
-
displayName: 'Account Data',
|
|
383
|
-
description: 'Card number and primary account information',
|
|
384
|
-
required: true,
|
|
385
|
-
}),
|
|
386
|
-
},
|
|
387
|
-
run(context) {
|
|
388
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
389
|
-
const auth = context.auth;
|
|
390
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
391
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
392
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
393
|
-
url: `${auth.baseUrl}/IBSCBACCT/v4/cards/primary-accounts`,
|
|
394
|
-
headers,
|
|
395
|
-
body: context.propsValue.accountData,
|
|
396
|
-
});
|
|
397
|
-
return response.body;
|
|
398
|
-
});
|
|
399
|
-
},
|
|
400
|
-
});
|
|
401
|
-
exports.cards_get_multiple_accounts = (0, pieces_framework_1.createAction)({
|
|
402
|
-
auth: __1.fisIbsCardsAuth,
|
|
403
|
-
name: 'cards_get_multiple_accounts',
|
|
404
|
-
displayName: 'Cards - Get Multiple Accounts',
|
|
405
|
-
description: 'Retrieve multiple account information for specified card',
|
|
406
|
-
props: {
|
|
407
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
408
|
-
displayName: 'IBS Authorization',
|
|
409
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
410
|
-
required: false,
|
|
411
|
-
}),
|
|
412
|
-
cardData: pieces_framework_1.Property.Object({
|
|
413
|
-
displayName: 'Card Data',
|
|
414
|
-
description: 'Card number or card alias',
|
|
415
|
-
required: true,
|
|
416
|
-
}),
|
|
417
|
-
},
|
|
418
|
-
run(context) {
|
|
419
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
420
|
-
const auth = context.auth;
|
|
421
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
422
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
423
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
424
|
-
url: `${auth.baseUrl}/IBSCBACCT/v4/multiple-accounts/inquiry`,
|
|
425
|
-
headers,
|
|
426
|
-
body: context.propsValue.cardData,
|
|
427
|
-
});
|
|
428
|
-
return response.body;
|
|
429
|
-
});
|
|
430
|
-
},
|
|
431
|
-
});
|
|
432
|
-
exports.cards_update_multiple_accounts = (0, pieces_framework_1.createAction)({
|
|
433
|
-
auth: __1.fisIbsCardsAuth,
|
|
434
|
-
name: 'cards_update_multiple_accounts',
|
|
435
|
-
displayName: 'Cards - Update Multiple Accounts',
|
|
436
|
-
description: 'Change data for one or more existing multiple accounts',
|
|
437
|
-
props: {
|
|
438
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
439
|
-
displayName: 'IBS Authorization',
|
|
440
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
441
|
-
required: false,
|
|
442
|
-
}),
|
|
443
|
-
accountData: pieces_framework_1.Property.Object({
|
|
444
|
-
displayName: 'Account Data',
|
|
445
|
-
description: 'Card number and multiple account changes',
|
|
446
|
-
required: true,
|
|
447
|
-
}),
|
|
448
|
-
},
|
|
449
|
-
run(context) {
|
|
450
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
451
|
-
const auth = context.auth;
|
|
452
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
453
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
454
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
455
|
-
url: `${auth.baseUrl}/IBSCBACCT/v4/multiple-accounts`,
|
|
456
|
-
headers,
|
|
457
|
-
body: context.propsValue.accountData,
|
|
458
|
-
});
|
|
459
|
-
return response.body;
|
|
460
|
-
});
|
|
461
|
-
},
|
|
462
|
-
});
|
|
463
|
-
exports.cards_add_multiple_accounts = (0, pieces_framework_1.createAction)({
|
|
464
|
-
auth: __1.fisIbsCardsAuth,
|
|
465
|
-
name: 'cards_add_multiple_accounts',
|
|
466
|
-
displayName: 'Cards - Add Multiple Accounts',
|
|
467
|
-
description: 'Add up to four multiple accounts for a primary account',
|
|
468
|
-
props: {
|
|
469
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
470
|
-
displayName: 'IBS Authorization',
|
|
471
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
472
|
-
required: false,
|
|
473
|
-
}),
|
|
474
|
-
accountData: pieces_framework_1.Property.Object({
|
|
475
|
-
displayName: 'Account Data',
|
|
476
|
-
description: 'Card number and new multiple accounts',
|
|
477
|
-
required: true,
|
|
478
|
-
}),
|
|
479
|
-
},
|
|
480
|
-
run(context) {
|
|
481
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
482
|
-
const auth = context.auth;
|
|
483
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
484
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
485
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
486
|
-
url: `${auth.baseUrl}/IBSCBACCT/v4/multiple-accounts`,
|
|
487
|
-
headers,
|
|
488
|
-
body: context.propsValue.accountData,
|
|
489
|
-
});
|
|
490
|
-
return response.body;
|
|
491
|
-
});
|
|
492
|
-
},
|
|
493
|
-
});
|
|
494
|
-
exports.cards_delete_multiple_accounts = (0, pieces_framework_1.createAction)({
|
|
495
|
-
auth: __1.fisIbsCardsAuth,
|
|
496
|
-
name: 'cards_delete_multiple_accounts',
|
|
497
|
-
displayName: 'Cards - Delete Multiple Accounts',
|
|
498
|
-
description: 'Delete multiple accounts from a primary account',
|
|
499
|
-
props: {
|
|
500
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
501
|
-
displayName: 'IBS Authorization',
|
|
502
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
503
|
-
required: false,
|
|
504
|
-
}),
|
|
505
|
-
accountData: pieces_framework_1.Property.Object({
|
|
506
|
-
displayName: 'Account Data',
|
|
507
|
-
description: 'Card number and accounts to delete',
|
|
508
|
-
required: true,
|
|
509
|
-
}),
|
|
510
|
-
},
|
|
511
|
-
run(context) {
|
|
512
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
513
|
-
const auth = context.auth;
|
|
514
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
515
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
516
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
517
|
-
url: `${auth.baseUrl}/IBSCBACCT/v4/multiple-accounts/deletion`,
|
|
518
|
-
headers,
|
|
519
|
-
body: context.propsValue.accountData,
|
|
520
|
-
});
|
|
521
|
-
return response.body;
|
|
522
|
-
});
|
|
523
|
-
},
|
|
524
|
-
});
|
|
525
|
-
exports.cards_get_by_dda_account = (0, pieces_framework_1.createAction)({
|
|
526
|
-
auth: __1.fisIbsCardsAuth,
|
|
527
|
-
name: 'cards_get_by_dda_account',
|
|
528
|
-
displayName: 'Cards - Get Cards by DDA Account',
|
|
529
|
-
description: 'Retrieve information regarding cards related to the specified DDA account',
|
|
530
|
-
props: {
|
|
531
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
532
|
-
displayName: 'IBS Authorization',
|
|
533
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
534
|
-
required: false,
|
|
535
|
-
}),
|
|
536
|
-
accountData: pieces_framework_1.Property.Object({
|
|
537
|
-
displayName: 'Account Data',
|
|
538
|
-
description: 'DDA account number',
|
|
539
|
-
required: true,
|
|
540
|
-
}),
|
|
541
|
-
},
|
|
542
|
-
run(context) {
|
|
543
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
544
|
-
const auth = context.auth;
|
|
545
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
546
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
547
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
548
|
-
url: `${auth.baseUrl}/IBSCBACCT/v4/dda-accounts/cards`,
|
|
549
|
-
headers,
|
|
550
|
-
body: context.propsValue.accountData,
|
|
551
|
-
});
|
|
552
|
-
return response.body;
|
|
553
|
-
});
|
|
554
|
-
},
|
|
555
|
-
});
|
|
556
|
-
// ============================================
|
|
557
|
-
// IBS-Cards-Alert.json - Card Alerts
|
|
558
|
-
// ============================================
|
|
559
|
-
exports.cards_update_alert_preferences = (0, pieces_framework_1.createAction)({
|
|
560
|
-
auth: __1.fisIbsCardsAuth,
|
|
561
|
-
name: 'cards_update_alert_preferences',
|
|
562
|
-
displayName: 'Cards - Update Alert Preferences',
|
|
563
|
-
description: 'Maintain alert preference for the specified card',
|
|
564
|
-
props: {
|
|
565
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
566
|
-
displayName: 'IBS Authorization',
|
|
567
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
568
|
-
required: false,
|
|
569
|
-
}),
|
|
570
|
-
alertData: pieces_framework_1.Property.Object({
|
|
571
|
-
displayName: 'Alert Data',
|
|
572
|
-
description: 'Card number and alert preferences',
|
|
573
|
-
required: true,
|
|
574
|
-
}),
|
|
575
|
-
},
|
|
576
|
-
run(context) {
|
|
577
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
578
|
-
const auth = context.auth;
|
|
579
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
580
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
581
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
582
|
-
url: `${auth.baseUrl}/IBSCBALERT/v4/cards/alert-preferences`,
|
|
583
|
-
headers,
|
|
584
|
-
body: context.propsValue.alertData,
|
|
585
|
-
});
|
|
586
|
-
return response.body;
|
|
587
|
-
});
|
|
588
|
-
},
|
|
589
|
-
});
|
|
590
|
-
exports.cards_get_alert_preferences = (0, pieces_framework_1.createAction)({
|
|
591
|
-
auth: __1.fisIbsCardsAuth,
|
|
592
|
-
name: 'cards_get_alert_preferences',
|
|
593
|
-
displayName: 'Cards - Get Alert Preferences',
|
|
594
|
-
description: 'Retrieve alert preferences for the specified card',
|
|
595
|
-
props: {
|
|
596
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
597
|
-
displayName: 'IBS Authorization',
|
|
598
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
599
|
-
required: false,
|
|
600
|
-
}),
|
|
601
|
-
cardData: pieces_framework_1.Property.Object({
|
|
602
|
-
displayName: 'Card Data',
|
|
603
|
-
description: 'Card number or card alias',
|
|
604
|
-
required: true,
|
|
605
|
-
}),
|
|
606
|
-
},
|
|
607
|
-
run(context) {
|
|
608
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
609
|
-
const auth = context.auth;
|
|
610
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
611
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
612
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
613
|
-
url: `${auth.baseUrl}/IBSCBALERT/v4/cards/alert-preferences`,
|
|
614
|
-
headers,
|
|
615
|
-
body: context.propsValue.cardData,
|
|
616
|
-
});
|
|
617
|
-
return response.body;
|
|
618
|
-
});
|
|
619
|
-
},
|
|
620
|
-
});
|
|
621
|
-
exports.cards_update_alert_contact_info = (0, pieces_framework_1.createAction)({
|
|
622
|
-
auth: __1.fisIbsCardsAuth,
|
|
623
|
-
name: 'cards_update_alert_contact_info',
|
|
624
|
-
displayName: 'Cards - Update Alert Contact Info',
|
|
625
|
-
description: 'Maintain alert contact information for the specified card',
|
|
626
|
-
props: {
|
|
627
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
628
|
-
displayName: 'IBS Authorization',
|
|
629
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
630
|
-
required: false,
|
|
631
|
-
}),
|
|
632
|
-
contactData: pieces_framework_1.Property.Object({
|
|
633
|
-
displayName: 'Contact Data',
|
|
634
|
-
description: 'Card number and alert contact information (mobile, email)',
|
|
635
|
-
required: true,
|
|
636
|
-
}),
|
|
637
|
-
},
|
|
638
|
-
run(context) {
|
|
639
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
640
|
-
const auth = context.auth;
|
|
641
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
642
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
643
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
644
|
-
url: `${auth.baseUrl}/IBSCBALERT/v4/cards/alert-contact-info`,
|
|
645
|
-
headers,
|
|
646
|
-
body: context.propsValue.contactData,
|
|
647
|
-
});
|
|
648
|
-
return response.body;
|
|
649
|
-
});
|
|
650
|
-
},
|
|
651
|
-
});
|
|
652
|
-
exports.cards_get_alert_contact_info = (0, pieces_framework_1.createAction)({
|
|
653
|
-
auth: __1.fisIbsCardsAuth,
|
|
654
|
-
name: 'cards_get_alert_contact_info',
|
|
655
|
-
displayName: 'Cards - Get Alert Contact Info',
|
|
656
|
-
description: 'Retrieve alert contact information for the specified card',
|
|
657
|
-
props: {
|
|
658
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
659
|
-
displayName: 'IBS Authorization',
|
|
660
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
661
|
-
required: false,
|
|
662
|
-
}),
|
|
663
|
-
cardData: pieces_framework_1.Property.Object({
|
|
664
|
-
displayName: 'Card Data',
|
|
665
|
-
description: 'Card number or card alias',
|
|
666
|
-
required: true,
|
|
667
|
-
}),
|
|
668
|
-
},
|
|
669
|
-
run(context) {
|
|
670
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
671
|
-
const auth = context.auth;
|
|
672
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
673
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
674
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
675
|
-
url: `${auth.baseUrl}/IBSCBALERT/v4/cards/alert-contact-info`,
|
|
676
|
-
headers,
|
|
677
|
-
body: context.propsValue.cardData,
|
|
678
|
-
});
|
|
679
|
-
return response.body;
|
|
680
|
-
});
|
|
681
|
-
},
|
|
682
|
-
});
|
|
683
|
-
// ============================================
|
|
684
|
-
// IBS-Cards-Fraud.json - Fraud Management
|
|
685
|
-
// ============================================
|
|
686
|
-
exports.cards_get_fraud_exclusion_codes = (0, pieces_framework_1.createAction)({
|
|
687
|
-
auth: __1.fisIbsCardsAuth,
|
|
688
|
-
name: 'cards_get_fraud_exclusion_codes',
|
|
689
|
-
displayName: 'Cards - Get Fraud Exclusion Codes',
|
|
690
|
-
description: 'Retrieve list of fraud or travel exclusion codes with description',
|
|
691
|
-
props: {
|
|
692
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
693
|
-
displayName: 'IBS Authorization',
|
|
694
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
695
|
-
required: false,
|
|
696
|
-
}),
|
|
697
|
-
cardData: pieces_framework_1.Property.Object({
|
|
698
|
-
displayName: 'Card Data',
|
|
699
|
-
description: 'Card number',
|
|
700
|
-
required: true,
|
|
701
|
-
}),
|
|
702
|
-
},
|
|
703
|
-
run(context) {
|
|
704
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
705
|
-
const auth = context.auth;
|
|
706
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
707
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
708
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
709
|
-
url: `${auth.baseUrl}/IBSCBFRAUD/v4/cards/fraud-exclusion-codes`,
|
|
710
|
-
headers,
|
|
711
|
-
body: context.propsValue.cardData,
|
|
712
|
-
});
|
|
713
|
-
return response.body;
|
|
714
|
-
});
|
|
715
|
-
},
|
|
716
|
-
});
|
|
717
|
-
exports.cards_delete_fraud_exclusion = (0, pieces_framework_1.createAction)({
|
|
718
|
-
auth: __1.fisIbsCardsAuth,
|
|
719
|
-
name: 'cards_delete_fraud_exclusion',
|
|
720
|
-
displayName: 'Cards - Delete Fraud Exclusion',
|
|
721
|
-
description: 'Delete fraud exclusion information for the specified card',
|
|
722
|
-
props: {
|
|
723
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
724
|
-
displayName: 'IBS Authorization',
|
|
725
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
726
|
-
required: false,
|
|
727
|
-
}),
|
|
728
|
-
cardData: pieces_framework_1.Property.Object({
|
|
729
|
-
displayName: 'Card Data',
|
|
730
|
-
description: 'Card number',
|
|
731
|
-
required: true,
|
|
732
|
-
}),
|
|
733
|
-
},
|
|
734
|
-
run(context) {
|
|
735
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
736
|
-
const auth = context.auth;
|
|
737
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
738
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
739
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
740
|
-
url: `${auth.baseUrl}/IBSCBFRAUD/v4/cards/fraud-exclusions/deletion`,
|
|
741
|
-
headers,
|
|
742
|
-
body: context.propsValue.cardData,
|
|
743
|
-
});
|
|
744
|
-
return response.body;
|
|
745
|
-
});
|
|
746
|
-
},
|
|
747
|
-
});
|
|
748
|
-
exports.cards_update_fraud_exclusion = (0, pieces_framework_1.createAction)({
|
|
749
|
-
auth: __1.fisIbsCardsAuth,
|
|
750
|
-
name: 'cards_update_fraud_exclusion',
|
|
751
|
-
displayName: 'Cards - Update Fraud Exclusion',
|
|
752
|
-
description: 'Add or update fraud exclusion information for the specified card',
|
|
753
|
-
props: {
|
|
754
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
755
|
-
displayName: 'IBS Authorization',
|
|
756
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
757
|
-
required: false,
|
|
758
|
-
}),
|
|
759
|
-
fraudData: pieces_framework_1.Property.Object({
|
|
760
|
-
displayName: 'Fraud Data',
|
|
761
|
-
description: 'Card number, exclusion code, start/end dates, VIP indicator',
|
|
762
|
-
required: true,
|
|
763
|
-
}),
|
|
764
|
-
},
|
|
765
|
-
run(context) {
|
|
766
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
767
|
-
const auth = context.auth;
|
|
768
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
769
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
770
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
771
|
-
url: `${auth.baseUrl}/IBSCBFRAUD/v4/cards/fraud-exclusions`,
|
|
772
|
-
headers,
|
|
773
|
-
body: context.propsValue.fraudData,
|
|
774
|
-
});
|
|
775
|
-
return response.body;
|
|
776
|
-
});
|
|
777
|
-
},
|
|
778
|
-
});
|
|
779
|
-
exports.cards_get_fraud_exclusion = (0, pieces_framework_1.createAction)({
|
|
780
|
-
auth: __1.fisIbsCardsAuth,
|
|
781
|
-
name: 'cards_get_fraud_exclusion',
|
|
782
|
-
displayName: 'Cards - Get Fraud Exclusion',
|
|
783
|
-
description: 'Retrieve current fraud exclusion information for the specified card',
|
|
784
|
-
props: {
|
|
785
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
786
|
-
displayName: 'IBS Authorization',
|
|
787
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
788
|
-
required: false,
|
|
789
|
-
}),
|
|
790
|
-
cardData: pieces_framework_1.Property.Object({
|
|
791
|
-
displayName: 'Card Data',
|
|
792
|
-
description: 'Card number',
|
|
793
|
-
required: true,
|
|
794
|
-
}),
|
|
795
|
-
},
|
|
796
|
-
run(context) {
|
|
797
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
798
|
-
const auth = context.auth;
|
|
799
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
800
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
801
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
802
|
-
url: `${auth.baseUrl}/IBSCBFRAUD/v4/cards/fraud-exclusions`,
|
|
803
|
-
headers,
|
|
804
|
-
body: context.propsValue.cardData,
|
|
805
|
-
});
|
|
806
|
-
return response.body;
|
|
807
|
-
});
|
|
808
|
-
},
|
|
809
|
-
});
|
|
810
|
-
// ============================================
|
|
811
|
-
// IBS-Cards-Holds.json - Holds (v3 API)
|
|
812
|
-
// ============================================
|
|
813
|
-
exports.cards_get_holds_v3 = (0, pieces_framework_1.createAction)({
|
|
814
|
-
auth: __1.fisIbsCardsAuth,
|
|
815
|
-
name: 'cards_get_holds_v3',
|
|
816
|
-
displayName: 'Cards - Get Holds (v3)',
|
|
817
|
-
description: 'Get Cardbase Hold List Inquiry (v3 API with path parameter)',
|
|
818
|
-
props: {
|
|
819
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
820
|
-
displayName: 'IBS Authorization',
|
|
821
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
822
|
-
required: false,
|
|
823
|
-
}),
|
|
824
|
-
cardNumber: pieces_framework_1.Property.ShortText({
|
|
825
|
-
displayName: 'Card Number',
|
|
826
|
-
description: 'Cardholder account number',
|
|
827
|
-
required: true,
|
|
828
|
-
}),
|
|
829
|
-
filter: pieces_framework_1.Property.StaticDropdown({
|
|
830
|
-
displayName: 'Filter',
|
|
831
|
-
description: 'Indicates which holds to return',
|
|
832
|
-
required: true,
|
|
833
|
-
options: {
|
|
834
|
-
options: [
|
|
835
|
-
{ label: '01 - Return all holds and Credit Notifications', value: '01' },
|
|
836
|
-
{ label: '02 - Return only active holds and Credit Notifications', value: '02' },
|
|
837
|
-
{ label: '08 - Return all holds & CR Notifications (internal)', value: '08' },
|
|
838
|
-
{ label: '09 - Return only active holds & CR Notifications (internal)', value: '09' },
|
|
839
|
-
],
|
|
840
|
-
},
|
|
841
|
-
}),
|
|
842
|
-
nextPageCursor: pieces_framework_1.Property.ShortText({
|
|
843
|
-
displayName: 'Next Page Cursor',
|
|
844
|
-
description: 'Cursor for pagination',
|
|
845
|
-
required: false,
|
|
846
|
-
}),
|
|
847
|
-
},
|
|
848
|
-
run(context) {
|
|
849
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
850
|
-
const auth = context.auth;
|
|
851
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
852
|
-
let url = `${auth.baseUrl}/IBSCBHOLDS/v3/cards/${context.propsValue.cardNumber}/holds?Fltr=${context.propsValue.filter}`;
|
|
853
|
-
if (context.propsValue.nextPageCursor) {
|
|
854
|
-
url += `&NextPageCursor=${context.propsValue.nextPageCursor}`;
|
|
855
|
-
}
|
|
856
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
857
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
858
|
-
url,
|
|
859
|
-
headers,
|
|
860
|
-
});
|
|
861
|
-
return response.body;
|
|
862
|
-
});
|
|
863
|
-
},
|
|
864
|
-
});
|
|
865
|
-
// ============================================
|
|
866
|
-
// IBS-Cards-Negative-File.json - Negative File
|
|
867
|
-
// ============================================
|
|
868
|
-
exports.cards_update_negative_file = (0, pieces_framework_1.createAction)({
|
|
869
|
-
auth: __1.fisIbsCardsAuth,
|
|
870
|
-
name: 'cards_update_negative_file',
|
|
871
|
-
displayName: 'Cards - Update Negative File',
|
|
872
|
-
description: 'Add, maintain, or remove card on negative file',
|
|
873
|
-
props: {
|
|
874
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
875
|
-
displayName: 'IBS Authorization',
|
|
876
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
877
|
-
required: false,
|
|
878
|
-
}),
|
|
879
|
-
negFileData: pieces_framework_1.Property.Object({
|
|
880
|
-
displayName: 'Negative File Data',
|
|
881
|
-
description: 'Card number, action (add/maintain/remove), status, and reason codes',
|
|
882
|
-
required: true,
|
|
883
|
-
}),
|
|
884
|
-
},
|
|
885
|
-
run(context) {
|
|
886
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
887
|
-
const auth = context.auth;
|
|
888
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
889
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
890
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
891
|
-
url: `${auth.baseUrl}/IBSCBNEGFILE/v4/cards/negative-file`,
|
|
892
|
-
headers,
|
|
893
|
-
body: context.propsValue.negFileData,
|
|
894
|
-
});
|
|
895
|
-
return response.body;
|
|
896
|
-
});
|
|
897
|
-
},
|
|
898
|
-
});
|
|
899
|
-
exports.cards_get_negative_file = (0, pieces_framework_1.createAction)({
|
|
900
|
-
auth: __1.fisIbsCardsAuth,
|
|
901
|
-
name: 'cards_get_negative_file',
|
|
902
|
-
displayName: 'Cards - Get Negative File',
|
|
903
|
-
description: 'Retrieve negative file information for specified card',
|
|
904
|
-
props: {
|
|
905
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
906
|
-
displayName: 'IBS Authorization',
|
|
907
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
908
|
-
required: false,
|
|
909
|
-
}),
|
|
910
|
-
cardData: pieces_framework_1.Property.Object({
|
|
911
|
-
displayName: 'Card Data',
|
|
912
|
-
description: 'Card number or card proxy ID',
|
|
913
|
-
required: true,
|
|
914
|
-
}),
|
|
915
|
-
},
|
|
916
|
-
run(context) {
|
|
917
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
918
|
-
const auth = context.auth;
|
|
919
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
920
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
921
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
922
|
-
url: `${auth.baseUrl}/IBSCBNEGFILE/v4/cards/negative-file`,
|
|
923
|
-
headers,
|
|
924
|
-
body: context.propsValue.cardData,
|
|
925
|
-
});
|
|
926
|
-
return response.body;
|
|
927
|
-
});
|
|
928
|
-
},
|
|
929
|
-
});
|
|
930
|
-
exports.cards_update_negative_file_replace_card = (0, pieces_framework_1.createAction)({
|
|
931
|
-
auth: __1.fisIbsCardsAuth,
|
|
932
|
-
name: 'cards_update_negative_file_replace_card',
|
|
933
|
-
displayName: 'Cards - Negative File with Replace Card',
|
|
934
|
-
description: 'Add, maintain, or remove card on negative file with card replacement',
|
|
935
|
-
props: {
|
|
936
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
937
|
-
displayName: 'IBS Authorization',
|
|
938
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
939
|
-
required: false,
|
|
940
|
-
}),
|
|
941
|
-
negFileReplaceData: pieces_framework_1.Property.Object({
|
|
942
|
-
displayName: 'Negative File Replace Data',
|
|
943
|
-
description: 'Card data with replacement options and negative file settings',
|
|
944
|
-
required: true,
|
|
945
|
-
}),
|
|
946
|
-
},
|
|
947
|
-
run(context) {
|
|
948
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
949
|
-
const auth = context.auth;
|
|
950
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
951
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
952
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
953
|
-
url: `${auth.baseUrl}/IBSCBNEGFILE/v4/cards/negative-file-replace-card`,
|
|
954
|
-
headers,
|
|
955
|
-
body: context.propsValue.negFileReplaceData,
|
|
956
|
-
});
|
|
957
|
-
return response.body;
|
|
958
|
-
});
|
|
959
|
-
},
|
|
960
|
-
});
|
|
961
|
-
exports.cards_get_negative_file_replace_card = (0, pieces_framework_1.createAction)({
|
|
962
|
-
auth: __1.fisIbsCardsAuth,
|
|
963
|
-
name: 'cards_get_negative_file_replace_card',
|
|
964
|
-
displayName: 'Cards - Get Negative File with Replace Details',
|
|
965
|
-
description: 'Retrieve negative file information with card replacement details',
|
|
966
|
-
props: {
|
|
967
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
968
|
-
displayName: 'IBS Authorization',
|
|
969
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
970
|
-
required: false,
|
|
971
|
-
}),
|
|
972
|
-
cardData: pieces_framework_1.Property.Object({
|
|
973
|
-
displayName: 'Card Data',
|
|
974
|
-
description: 'Card number',
|
|
975
|
-
required: true,
|
|
976
|
-
}),
|
|
977
|
-
},
|
|
978
|
-
run(context) {
|
|
979
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
980
|
-
const auth = context.auth;
|
|
981
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
982
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
983
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
984
|
-
url: `${auth.baseUrl}/IBSCBNEGFILE/v4/cards/negative-file-replace-card`,
|
|
985
|
-
headers,
|
|
986
|
-
body: context.propsValue.cardData,
|
|
987
|
-
});
|
|
988
|
-
return response.body;
|
|
989
|
-
});
|
|
990
|
-
},
|
|
991
|
-
});
|
|
992
|
-
exports.cards_negative_file_ivr = (0, pieces_framework_1.createAction)({
|
|
993
|
-
auth: __1.fisIbsCardsAuth,
|
|
994
|
-
name: 'cards_negative_file_ivr',
|
|
995
|
-
displayName: 'Cards - Negative File IVR',
|
|
996
|
-
description: 'Place a card on negative file with status of hot',
|
|
997
|
-
props: {
|
|
998
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
999
|
-
displayName: 'IBS Authorization',
|
|
1000
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1001
|
-
required: false,
|
|
1002
|
-
}),
|
|
1003
|
-
ivrData: pieces_framework_1.Property.Object({
|
|
1004
|
-
displayName: 'IVR Data',
|
|
1005
|
-
description: 'Card number and IVR parameters',
|
|
1006
|
-
required: true,
|
|
1007
|
-
}),
|
|
1008
|
-
},
|
|
1009
|
-
run(context) {
|
|
1010
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1011
|
-
const auth = context.auth;
|
|
1012
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1013
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1014
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
1015
|
-
url: `${auth.baseUrl}/IBSCBNEGFILE/v4/cards/negative-file-ivr`,
|
|
1016
|
-
headers,
|
|
1017
|
-
body: context.propsValue.ivrData,
|
|
1018
|
-
});
|
|
1019
|
-
return response.body;
|
|
1020
|
-
});
|
|
1021
|
-
},
|
|
1022
|
-
});
|
|
1023
|
-
// ============================================
|
|
1024
|
-
// IBS-Cards-PIN.json - PIN Management
|
|
1025
|
-
// ============================================
|
|
1026
|
-
exports.cards_change_pin_ivr = (0, pieces_framework_1.createAction)({
|
|
1027
|
-
auth: __1.fisIbsCardsAuth,
|
|
1028
|
-
name: 'cards_change_pin_ivr',
|
|
1029
|
-
displayName: 'Cards - Change PIN (IVR)',
|
|
1030
|
-
description: 'Change the PIN for the specified card via IVR',
|
|
1031
|
-
props: {
|
|
1032
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1033
|
-
displayName: 'IBS Authorization',
|
|
1034
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1035
|
-
required: false,
|
|
1036
|
-
}),
|
|
1037
|
-
pinData: pieces_framework_1.Property.Object({
|
|
1038
|
-
displayName: 'PIN Data',
|
|
1039
|
-
description: 'Card number, current PIN, new PIN, and originator',
|
|
1040
|
-
required: true,
|
|
1041
|
-
}),
|
|
1042
|
-
},
|
|
1043
|
-
run(context) {
|
|
1044
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1045
|
-
const auth = context.auth;
|
|
1046
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1047
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1048
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
1049
|
-
url: `${auth.baseUrl}/IBSCBPIN/v4/cards/pins-ivr`,
|
|
1050
|
-
headers,
|
|
1051
|
-
body: context.propsValue.pinData,
|
|
1052
|
-
});
|
|
1053
|
-
return response.body;
|
|
1054
|
-
});
|
|
1055
|
-
},
|
|
1056
|
-
});
|
|
1057
|
-
exports.cards_validate_pin_ivr = (0, pieces_framework_1.createAction)({
|
|
1058
|
-
auth: __1.fisIbsCardsAuth,
|
|
1059
|
-
name: 'cards_validate_pin_ivr',
|
|
1060
|
-
displayName: 'Cards - Validate PIN (IVR)',
|
|
1061
|
-
description: 'Validate PIN for specified card via IVR',
|
|
1062
|
-
props: {
|
|
1063
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1064
|
-
displayName: 'IBS Authorization',
|
|
1065
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1066
|
-
required: false,
|
|
1067
|
-
}),
|
|
1068
|
-
pinData: pieces_framework_1.Property.Object({
|
|
1069
|
-
displayName: 'PIN Data',
|
|
1070
|
-
description: 'Card number, PIN, and originator',
|
|
1071
|
-
required: true,
|
|
1072
|
-
}),
|
|
1073
|
-
},
|
|
1074
|
-
run(context) {
|
|
1075
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1076
|
-
const auth = context.auth;
|
|
1077
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1078
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1079
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1080
|
-
url: `${auth.baseUrl}/IBSCBPIN/v4/cards/pins-ivr`,
|
|
1081
|
-
headers,
|
|
1082
|
-
body: context.propsValue.pinData,
|
|
1083
|
-
});
|
|
1084
|
-
return response.body;
|
|
1085
|
-
});
|
|
1086
|
-
},
|
|
1087
|
-
});
|
|
1088
|
-
exports.cards_change_pin = (0, pieces_framework_1.createAction)({
|
|
1089
|
-
auth: __1.fisIbsCardsAuth,
|
|
1090
|
-
name: 'cards_change_pin',
|
|
1091
|
-
displayName: 'Cards - Change PIN/Offset',
|
|
1092
|
-
description: 'Change PIN or PIN offset for specified card',
|
|
1093
|
-
props: {
|
|
1094
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1095
|
-
displayName: 'IBS Authorization',
|
|
1096
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1097
|
-
required: false,
|
|
1098
|
-
}),
|
|
1099
|
-
pinData: pieces_framework_1.Property.Object({
|
|
1100
|
-
displayName: 'PIN Data',
|
|
1101
|
-
description: 'Card number, PIN or PIN offset',
|
|
1102
|
-
required: true,
|
|
1103
|
-
}),
|
|
1104
|
-
},
|
|
1105
|
-
run(context) {
|
|
1106
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1107
|
-
const auth = context.auth;
|
|
1108
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1109
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1110
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
1111
|
-
url: `${auth.baseUrl}/IBSCBPIN/v4/cards/pins`,
|
|
1112
|
-
headers,
|
|
1113
|
-
body: context.propsValue.pinData,
|
|
1114
|
-
});
|
|
1115
|
-
return response.body;
|
|
1116
|
-
});
|
|
1117
|
-
},
|
|
1118
|
-
});
|
|
1119
|
-
exports.cards_get_pin_info = (0, pieces_framework_1.createAction)({
|
|
1120
|
-
auth: __1.fisIbsCardsAuth,
|
|
1121
|
-
name: 'cards_get_pin_info',
|
|
1122
|
-
displayName: 'Cards - Get PIN Info',
|
|
1123
|
-
description: 'Retrieve PIN-related information for specified card',
|
|
1124
|
-
props: {
|
|
1125
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1126
|
-
displayName: 'IBS Authorization',
|
|
1127
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1128
|
-
required: false,
|
|
1129
|
-
}),
|
|
1130
|
-
cardData: pieces_framework_1.Property.Object({
|
|
1131
|
-
displayName: 'Card Data',
|
|
1132
|
-
description: 'Card number',
|
|
1133
|
-
required: true,
|
|
1134
|
-
}),
|
|
1135
|
-
},
|
|
1136
|
-
run(context) {
|
|
1137
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1138
|
-
const auth = context.auth;
|
|
1139
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1140
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1141
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1142
|
-
url: `${auth.baseUrl}/IBSCBPIN/v4/cards/pins`,
|
|
1143
|
-
headers,
|
|
1144
|
-
body: context.propsValue.cardData,
|
|
1145
|
-
});
|
|
1146
|
-
return response.body;
|
|
1147
|
-
});
|
|
1148
|
-
},
|
|
1149
|
-
});
|
|
1150
|
-
exports.cards_send_pin_reminder = (0, pieces_framework_1.createAction)({
|
|
1151
|
-
auth: __1.fisIbsCardsAuth,
|
|
1152
|
-
name: 'cards_send_pin_reminder',
|
|
1153
|
-
displayName: 'Cards - Send PIN Reminder',
|
|
1154
|
-
description: 'Send PIN reminder for the account or expedite PIN reminders',
|
|
1155
|
-
props: {
|
|
1156
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1157
|
-
displayName: 'IBS Authorization',
|
|
1158
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1159
|
-
required: false,
|
|
1160
|
-
}),
|
|
1161
|
-
reminderData: pieces_framework_1.Property.Object({
|
|
1162
|
-
displayName: 'Reminder Data',
|
|
1163
|
-
description: 'Card number and optional expedited address',
|
|
1164
|
-
required: true,
|
|
1165
|
-
}),
|
|
1166
|
-
},
|
|
1167
|
-
run(context) {
|
|
1168
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1169
|
-
const auth = context.auth;
|
|
1170
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1171
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1172
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1173
|
-
url: `${auth.baseUrl}/IBSCBPIN/v4/cards/pin-reminders`,
|
|
1174
|
-
headers,
|
|
1175
|
-
body: context.propsValue.reminderData,
|
|
1176
|
-
});
|
|
1177
|
-
return response.body;
|
|
1178
|
-
});
|
|
1179
|
-
},
|
|
1180
|
-
});
|
|
1181
|
-
// ============================================
|
|
1182
|
-
// IBS-Cards-Prefix.json - Prefix Information
|
|
1183
|
-
// ============================================
|
|
1184
|
-
exports.cards_get_prefix_fee_info = (0, pieces_framework_1.createAction)({
|
|
1185
|
-
auth: __1.fisIbsCardsAuth,
|
|
1186
|
-
name: 'cards_get_prefix_fee_info',
|
|
1187
|
-
displayName: 'Cards - Get Prefix Fee Info',
|
|
1188
|
-
description: 'Retrieve effective dates, transaction fees and fee groups for a specific prefix',
|
|
1189
|
-
props: {
|
|
1190
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1191
|
-
displayName: 'IBS Authorization',
|
|
1192
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1193
|
-
required: false,
|
|
1194
|
-
}),
|
|
1195
|
-
cbInstnNbr: pieces_framework_1.Property.ShortText({
|
|
1196
|
-
displayName: 'CB Institution Number',
|
|
1197
|
-
description: 'FIS host system bank number (5 digits)',
|
|
1198
|
-
required: false,
|
|
1199
|
-
}),
|
|
1200
|
-
prfxNbr: pieces_framework_1.Property.ShortText({
|
|
1201
|
-
displayName: 'Prefix Number',
|
|
1202
|
-
description: 'Prefix number (not needed if Card Number is entered)',
|
|
1203
|
-
required: false,
|
|
1204
|
-
}),
|
|
1205
|
-
prodID: pieces_framework_1.Property.ShortText({
|
|
1206
|
-
displayName: 'Product ID',
|
|
1207
|
-
description: 'Product ID',
|
|
1208
|
-
required: false,
|
|
1209
|
-
}),
|
|
1210
|
-
crdNum: pieces_framework_1.Property.ShortText({
|
|
1211
|
-
displayName: 'Card Number',
|
|
1212
|
-
description: 'Card number (not needed if Prefix Number is entered)',
|
|
1213
|
-
required: false,
|
|
1214
|
-
}),
|
|
1215
|
-
mthdInd: pieces_framework_1.Property.StaticDropdown({
|
|
1216
|
-
displayName: 'Method Indicator',
|
|
1217
|
-
description: 'Type of data to return',
|
|
1218
|
-
required: true,
|
|
1219
|
-
options: {
|
|
1220
|
-
options: [
|
|
1221
|
-
{ label: '01 - Effective dates', value: '01' },
|
|
1222
|
-
{ label: '02 - Fee detail', value: '02' },
|
|
1223
|
-
{ label: '03 - Free groups', value: '03' },
|
|
1224
|
-
],
|
|
1225
|
-
},
|
|
1226
|
-
}),
|
|
1227
|
-
effDte: pieces_framework_1.Property.ShortText({
|
|
1228
|
-
displayName: 'Effective Date',
|
|
1229
|
-
description: 'Prefix level effective date (CCYY-MM-DD)',
|
|
1230
|
-
required: false,
|
|
1231
|
-
}),
|
|
1232
|
-
svcChgCatCde1: pieces_framework_1.Property.ShortText({
|
|
1233
|
-
displayName: 'Service Charge Category Code',
|
|
1234
|
-
description: 'S1I, S2I, S3I, VRI, CAI, SPI, or ALL',
|
|
1235
|
-
required: false,
|
|
1236
|
-
}),
|
|
1237
|
-
},
|
|
1238
|
-
run(context) {
|
|
1239
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1240
|
-
const auth = context.auth;
|
|
1241
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1242
|
-
const params = new URLSearchParams();
|
|
1243
|
-
params.append('MthdInd', context.propsValue.mthdInd);
|
|
1244
|
-
if (context.propsValue.cbInstnNbr)
|
|
1245
|
-
params.append('CBInstnNbr', context.propsValue.cbInstnNbr);
|
|
1246
|
-
if (context.propsValue.prfxNbr)
|
|
1247
|
-
params.append('PrfxNbr', context.propsValue.prfxNbr);
|
|
1248
|
-
if (context.propsValue.prodID)
|
|
1249
|
-
params.append('ProdID', context.propsValue.prodID);
|
|
1250
|
-
if (context.propsValue.crdNum)
|
|
1251
|
-
params.append('CrdNum', context.propsValue.crdNum);
|
|
1252
|
-
if (context.propsValue.effDte)
|
|
1253
|
-
params.append('EffDte', context.propsValue.effDte);
|
|
1254
|
-
if (context.propsValue.svcChgCatCde1)
|
|
1255
|
-
params.append('SvcChgCatCde1', context.propsValue.svcChgCatCde1);
|
|
1256
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1257
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
1258
|
-
url: `${auth.baseUrl}/IBSCBPREFIX/v3/prefixes/fee-info?${params.toString()}`,
|
|
1259
|
-
headers,
|
|
1260
|
-
});
|
|
1261
|
-
return response.body;
|
|
1262
|
-
});
|
|
1263
|
-
},
|
|
1264
|
-
});
|
|
1265
|
-
exports.cards_get_prefix_issuer_ids = (0, pieces_framework_1.createAction)({
|
|
1266
|
-
auth: __1.fisIbsCardsAuth,
|
|
1267
|
-
name: 'cards_get_prefix_issuer_ids',
|
|
1268
|
-
displayName: 'Cards - Get Prefix Issuer IDs',
|
|
1269
|
-
description: 'Retrieve issuer ID(s) assigned to a prefix',
|
|
1270
|
-
props: {
|
|
1271
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1272
|
-
displayName: 'IBS Authorization',
|
|
1273
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1274
|
-
required: false,
|
|
1275
|
-
}),
|
|
1276
|
-
prfxNum: pieces_framework_1.Property.ShortText({
|
|
1277
|
-
displayName: 'Prefix Number',
|
|
1278
|
-
description: 'Prefix number',
|
|
1279
|
-
required: true,
|
|
1280
|
-
}),
|
|
1281
|
-
prodID: pieces_framework_1.Property.ShortText({
|
|
1282
|
-
displayName: 'Product ID',
|
|
1283
|
-
description: 'Product ID valid within the prefix',
|
|
1284
|
-
required: false,
|
|
1285
|
-
}),
|
|
1286
|
-
nextPageCursor: pieces_framework_1.Property.ShortText({
|
|
1287
|
-
displayName: 'Next Page Cursor',
|
|
1288
|
-
description: 'Cursor for pagination',
|
|
1289
|
-
required: false,
|
|
1290
|
-
}),
|
|
1291
|
-
},
|
|
1292
|
-
run(context) {
|
|
1293
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1294
|
-
const auth = context.auth;
|
|
1295
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1296
|
-
const params = new URLSearchParams();
|
|
1297
|
-
if (context.propsValue.prodID)
|
|
1298
|
-
params.append('ProdID', context.propsValue.prodID);
|
|
1299
|
-
if (context.propsValue.nextPageCursor)
|
|
1300
|
-
params.append('NextPageCursor', context.propsValue.nextPageCursor);
|
|
1301
|
-
const queryString = params.toString();
|
|
1302
|
-
const url = `${auth.baseUrl}/IBSCBPREFIX/v3/prefixes/${context.propsValue.prfxNum}/issuer-ids${queryString ? '?' + queryString : ''}`;
|
|
1303
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1304
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
1305
|
-
url,
|
|
1306
|
-
headers,
|
|
1307
|
-
});
|
|
1308
|
-
return response.body;
|
|
1309
|
-
});
|
|
1310
|
-
},
|
|
1311
|
-
});
|
|
1312
|
-
// ============================================
|
|
1313
|
-
// IBS-Cards-Search.json - Card Search
|
|
1314
|
-
// ============================================
|
|
1315
|
-
exports.cards_search = (0, pieces_framework_1.createAction)({
|
|
1316
|
-
auth: __1.fisIbsCardsAuth,
|
|
1317
|
-
name: 'cards_search',
|
|
1318
|
-
displayName: 'Cards - Search Cards',
|
|
1319
|
-
description: 'Retrieve card number and details using cardholder name, SSN, customer number or related account',
|
|
1320
|
-
props: {
|
|
1321
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1322
|
-
displayName: 'IBS Authorization',
|
|
1323
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1324
|
-
required: false,
|
|
1325
|
-
}),
|
|
1326
|
-
cbInstnNbr: pieces_framework_1.Property.ShortText({
|
|
1327
|
-
displayName: 'CB Institution Number',
|
|
1328
|
-
description: 'FIS host system bank number (5 digits)',
|
|
1329
|
-
required: false,
|
|
1330
|
-
}),
|
|
1331
|
-
methodInd: pieces_framework_1.Property.StaticDropdown({
|
|
1332
|
-
displayName: 'Method Indicator',
|
|
1333
|
-
description: 'Type of search to perform',
|
|
1334
|
-
required: true,
|
|
1335
|
-
options: {
|
|
1336
|
-
options: [
|
|
1337
|
-
{ label: '01 - Name', value: '01' },
|
|
1338
|
-
{ label: '02 - Account', value: '02' },
|
|
1339
|
-
{ label: '03 - Customer number', value: '03' },
|
|
1340
|
-
{ label: '04 - SSN', value: '04' },
|
|
1341
|
-
],
|
|
1342
|
-
},
|
|
1343
|
-
}),
|
|
1344
|
-
searchCriteria1: pieces_framework_1.Property.ShortText({
|
|
1345
|
-
displayName: 'Search Criteria 1',
|
|
1346
|
-
description: 'Last name, account number, customer number, or SSN',
|
|
1347
|
-
required: true,
|
|
1348
|
-
}),
|
|
1349
|
-
searchCriteria2: pieces_framework_1.Property.ShortText({
|
|
1350
|
-
displayName: 'Search Criteria 2',
|
|
1351
|
-
description: 'First name (for name search) or account type (for account search: C, D, L, S)',
|
|
1352
|
-
required: false,
|
|
1353
|
-
}),
|
|
1354
|
-
holdingComp: pieces_framework_1.Property.ShortText({
|
|
1355
|
-
displayName: 'Holding Company',
|
|
1356
|
-
description: 'Holding company number (5 digits)',
|
|
1357
|
-
required: false,
|
|
1358
|
-
}),
|
|
1359
|
-
nextPageCursor: pieces_framework_1.Property.ShortText({
|
|
1360
|
-
displayName: 'Next Page Cursor',
|
|
1361
|
-
description: 'Cursor for pagination',
|
|
1362
|
-
required: false,
|
|
1363
|
-
}),
|
|
1364
|
-
},
|
|
1365
|
-
run(context) {
|
|
1366
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1367
|
-
const auth = context.auth;
|
|
1368
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1369
|
-
const params = new URLSearchParams();
|
|
1370
|
-
params.append('MethodInd', context.propsValue.methodInd);
|
|
1371
|
-
params.append('SearchCriteria1', context.propsValue.searchCriteria1);
|
|
1372
|
-
if (context.propsValue.cbInstnNbr)
|
|
1373
|
-
params.append('CBInstnNbr', context.propsValue.cbInstnNbr);
|
|
1374
|
-
if (context.propsValue.searchCriteria2)
|
|
1375
|
-
params.append('SearchCriteria2', context.propsValue.searchCriteria2);
|
|
1376
|
-
if (context.propsValue.holdingComp)
|
|
1377
|
-
params.append('HoldingComp', context.propsValue.holdingComp);
|
|
1378
|
-
if (context.propsValue.nextPageCursor)
|
|
1379
|
-
params.append('NextPageCursor', context.propsValue.nextPageCursor);
|
|
1380
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1381
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
1382
|
-
url: `${auth.baseUrl}/IBSCBSRH/v3/cards/search?${params.toString()}`,
|
|
1383
|
-
headers,
|
|
1384
|
-
});
|
|
1385
|
-
return response.body;
|
|
1386
|
-
});
|
|
1387
|
-
},
|
|
1388
|
-
});
|
|
1389
|
-
// ============================================
|
|
1390
|
-
// IBS-Cards-Transactions.json - Transactions
|
|
1391
|
-
// ============================================
|
|
1392
|
-
exports.cards_prepaid_credit_adjustment = (0, pieces_framework_1.createAction)({
|
|
1393
|
-
auth: __1.fisIbsCardsAuth,
|
|
1394
|
-
name: 'cards_prepaid_credit_adjustment',
|
|
1395
|
-
displayName: 'Cards - Prepaid Credit Adjustment',
|
|
1396
|
-
description: 'Perform credit adjustments on a prepaid debit card',
|
|
1397
|
-
props: {
|
|
1398
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1399
|
-
displayName: 'IBS Authorization',
|
|
1400
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1401
|
-
required: false,
|
|
1402
|
-
}),
|
|
1403
|
-
adjustmentData: pieces_framework_1.Property.Object({
|
|
1404
|
-
displayName: 'Adjustment Data',
|
|
1405
|
-
description: 'Card number and credit adjustment amount',
|
|
1406
|
-
required: true,
|
|
1407
|
-
}),
|
|
1408
|
-
},
|
|
1409
|
-
run(context) {
|
|
1410
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1411
|
-
const auth = context.auth;
|
|
1412
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1413
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1414
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
1415
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/prepaid-credit-adjustments`,
|
|
1416
|
-
headers,
|
|
1417
|
-
body: context.propsValue.adjustmentData,
|
|
1418
|
-
});
|
|
1419
|
-
return response.body;
|
|
1420
|
-
});
|
|
1421
|
-
},
|
|
1422
|
-
});
|
|
1423
|
-
exports.cards_prepaid_debit_adjustment = (0, pieces_framework_1.createAction)({
|
|
1424
|
-
auth: __1.fisIbsCardsAuth,
|
|
1425
|
-
name: 'cards_prepaid_debit_adjustment',
|
|
1426
|
-
displayName: 'Cards - Prepaid Debit Adjustment',
|
|
1427
|
-
description: 'Perform debit adjustments on a prepaid debit card',
|
|
1428
|
-
props: {
|
|
1429
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1430
|
-
displayName: 'IBS Authorization',
|
|
1431
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1432
|
-
required: false,
|
|
1433
|
-
}),
|
|
1434
|
-
adjustmentData: pieces_framework_1.Property.Object({
|
|
1435
|
-
displayName: 'Adjustment Data',
|
|
1436
|
-
description: 'Card number and debit adjustment amount',
|
|
1437
|
-
required: true,
|
|
1438
|
-
}),
|
|
1439
|
-
},
|
|
1440
|
-
run(context) {
|
|
1441
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1442
|
-
const auth = context.auth;
|
|
1443
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1444
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1445
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
1446
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/prepaid-debit-adjustments`,
|
|
1447
|
-
headers,
|
|
1448
|
-
body: context.propsValue.adjustmentData,
|
|
1449
|
-
});
|
|
1450
|
-
return response.body;
|
|
1451
|
-
});
|
|
1452
|
-
},
|
|
1453
|
-
});
|
|
1454
|
-
exports.cards_dda_sav_transfer = (0, pieces_framework_1.createAction)({
|
|
1455
|
-
auth: __1.fisIbsCardsAuth,
|
|
1456
|
-
name: 'cards_dda_sav_transfer',
|
|
1457
|
-
displayName: 'Cards - DDA/Savings Transfer',
|
|
1458
|
-
description: 'Perform a funds transfer between DDA and Savings accounts',
|
|
1459
|
-
props: {
|
|
1460
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1461
|
-
displayName: 'IBS Authorization',
|
|
1462
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1463
|
-
required: false,
|
|
1464
|
-
}),
|
|
1465
|
-
transferData: pieces_framework_1.Property.Object({
|
|
1466
|
-
displayName: 'Transfer Data',
|
|
1467
|
-
description: 'Card number, transfer amount, and direction',
|
|
1468
|
-
required: true,
|
|
1469
|
-
}),
|
|
1470
|
-
},
|
|
1471
|
-
run(context) {
|
|
1472
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1473
|
-
const auth = context.auth;
|
|
1474
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1475
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1476
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1477
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/dda-sav-transfers`,
|
|
1478
|
-
headers,
|
|
1479
|
-
body: context.propsValue.transferData,
|
|
1480
|
-
});
|
|
1481
|
-
return response.body;
|
|
1482
|
-
});
|
|
1483
|
-
},
|
|
1484
|
-
});
|
|
1485
|
-
exports.cards_get_transaction_detail = (0, pieces_framework_1.createAction)({
|
|
1486
|
-
auth: __1.fisIbsCardsAuth,
|
|
1487
|
-
name: 'cards_get_transaction_detail',
|
|
1488
|
-
displayName: 'Cards - Get Transaction Detail',
|
|
1489
|
-
description: 'Retrieve detailed information about a specific transaction',
|
|
1490
|
-
props: {
|
|
1491
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1492
|
-
displayName: 'IBS Authorization',
|
|
1493
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1494
|
-
required: false,
|
|
1495
|
-
}),
|
|
1496
|
-
transactionData: pieces_framework_1.Property.Object({
|
|
1497
|
-
displayName: 'Transaction Data',
|
|
1498
|
-
description: 'Card number and transaction identifiers',
|
|
1499
|
-
required: true,
|
|
1500
|
-
}),
|
|
1501
|
-
},
|
|
1502
|
-
run(context) {
|
|
1503
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1504
|
-
const auth = context.auth;
|
|
1505
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1506
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1507
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1508
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/transactions/detail`,
|
|
1509
|
-
headers,
|
|
1510
|
-
body: context.propsValue.transactionData,
|
|
1511
|
-
});
|
|
1512
|
-
return response.body;
|
|
1513
|
-
});
|
|
1514
|
-
},
|
|
1515
|
-
});
|
|
1516
|
-
exports.cards_prepaid_load = (0, pieces_framework_1.createAction)({
|
|
1517
|
-
auth: __1.fisIbsCardsAuth,
|
|
1518
|
-
name: 'cards_prepaid_load',
|
|
1519
|
-
displayName: 'Cards - Prepaid Load Transaction',
|
|
1520
|
-
description: 'Create load transaction to the specified prepaid debit card',
|
|
1521
|
-
props: {
|
|
1522
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1523
|
-
displayName: 'IBS Authorization',
|
|
1524
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1525
|
-
required: false,
|
|
1526
|
-
}),
|
|
1527
|
-
loadData: pieces_framework_1.Property.Object({
|
|
1528
|
-
displayName: 'Load Data',
|
|
1529
|
-
description: 'Card number and load amount',
|
|
1530
|
-
required: true,
|
|
1531
|
-
}),
|
|
1532
|
-
},
|
|
1533
|
-
run(context) {
|
|
1534
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1535
|
-
const auth = context.auth;
|
|
1536
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1537
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1538
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1539
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/prepaid-load-transactions`,
|
|
1540
|
-
headers,
|
|
1541
|
-
body: context.propsValue.loadData,
|
|
1542
|
-
});
|
|
1543
|
-
return response.body;
|
|
1544
|
-
});
|
|
1545
|
-
},
|
|
1546
|
-
});
|
|
1547
|
-
exports.cards_prepaid_unload = (0, pieces_framework_1.createAction)({
|
|
1548
|
-
auth: __1.fisIbsCardsAuth,
|
|
1549
|
-
name: 'cards_prepaid_unload',
|
|
1550
|
-
displayName: 'Cards - Prepaid Unload Transaction',
|
|
1551
|
-
description: 'Create unload transaction to the specified prepaid debit card',
|
|
1552
|
-
props: {
|
|
1553
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1554
|
-
displayName: 'IBS Authorization',
|
|
1555
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1556
|
-
required: false,
|
|
1557
|
-
}),
|
|
1558
|
-
unloadData: pieces_framework_1.Property.Object({
|
|
1559
|
-
displayName: 'Unload Data',
|
|
1560
|
-
description: 'Card number and unload amount',
|
|
1561
|
-
required: true,
|
|
1562
|
-
}),
|
|
1563
|
-
},
|
|
1564
|
-
run(context) {
|
|
1565
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1566
|
-
const auth = context.auth;
|
|
1567
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1568
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1569
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1570
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/prepaid-unload-transactions`,
|
|
1571
|
-
headers,
|
|
1572
|
-
body: context.propsValue.unloadData,
|
|
1573
|
-
});
|
|
1574
|
-
return response.body;
|
|
1575
|
-
});
|
|
1576
|
-
},
|
|
1577
|
-
});
|
|
1578
|
-
exports.cards_get_transactions = (0, pieces_framework_1.createAction)({
|
|
1579
|
-
auth: __1.fisIbsCardsAuth,
|
|
1580
|
-
name: 'cards_get_transactions',
|
|
1581
|
-
displayName: 'Cards - Get Transactions',
|
|
1582
|
-
description: 'Retrieve information about transactions for specified card',
|
|
1583
|
-
props: {
|
|
1584
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1585
|
-
displayName: 'IBS Authorization',
|
|
1586
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1587
|
-
required: false,
|
|
1588
|
-
}),
|
|
1589
|
-
cardData: pieces_framework_1.Property.Object({
|
|
1590
|
-
displayName: 'Card Data',
|
|
1591
|
-
description: 'Card number and optional filters',
|
|
1592
|
-
required: true,
|
|
1593
|
-
}),
|
|
1594
|
-
},
|
|
1595
|
-
run(context) {
|
|
1596
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1597
|
-
const auth = context.auth;
|
|
1598
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1599
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1600
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1601
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/transactions`,
|
|
1602
|
-
headers,
|
|
1603
|
-
body: context.propsValue.cardData,
|
|
1604
|
-
});
|
|
1605
|
-
return response.body;
|
|
1606
|
-
});
|
|
1607
|
-
},
|
|
1608
|
-
});
|
|
1609
|
-
exports.cards_get_history_transactions = (0, pieces_framework_1.createAction)({
|
|
1610
|
-
auth: __1.fisIbsCardsAuth,
|
|
1611
|
-
name: 'cards_get_history_transactions',
|
|
1612
|
-
displayName: 'Cards - Get History Transactions',
|
|
1613
|
-
description: 'Retrieve information about history transactions for specified card',
|
|
1614
|
-
props: {
|
|
1615
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1616
|
-
displayName: 'IBS Authorization',
|
|
1617
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1618
|
-
required: false,
|
|
1619
|
-
}),
|
|
1620
|
-
cardData: pieces_framework_1.Property.Object({
|
|
1621
|
-
displayName: 'Card Data',
|
|
1622
|
-
description: 'Card number and optional date range',
|
|
1623
|
-
required: true,
|
|
1624
|
-
}),
|
|
1625
|
-
},
|
|
1626
|
-
run(context) {
|
|
1627
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1628
|
-
const auth = context.auth;
|
|
1629
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1630
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1631
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1632
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/history-transactions`,
|
|
1633
|
-
headers,
|
|
1634
|
-
body: context.propsValue.cardData,
|
|
1635
|
-
});
|
|
1636
|
-
return response.body;
|
|
1637
|
-
});
|
|
1638
|
-
},
|
|
1639
|
-
});
|
|
1640
|
-
exports.cards_get_pending_transactions = (0, pieces_framework_1.createAction)({
|
|
1641
|
-
auth: __1.fisIbsCardsAuth,
|
|
1642
|
-
name: 'cards_get_pending_transactions',
|
|
1643
|
-
displayName: 'Cards - Get Pending Transactions',
|
|
1644
|
-
description: 'Retrieve information about pending transactions for specified card',
|
|
1645
|
-
props: {
|
|
1646
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1647
|
-
displayName: 'IBS Authorization',
|
|
1648
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1649
|
-
required: false,
|
|
1650
|
-
}),
|
|
1651
|
-
cardData: pieces_framework_1.Property.Object({
|
|
1652
|
-
displayName: 'Card Data',
|
|
1653
|
-
description: 'Card number',
|
|
1654
|
-
required: true,
|
|
1655
|
-
}),
|
|
1656
|
-
},
|
|
1657
|
-
run(context) {
|
|
1658
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1659
|
-
const auth = context.auth;
|
|
1660
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1661
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1662
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1663
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/pending-transactions`,
|
|
1664
|
-
headers,
|
|
1665
|
-
body: context.propsValue.cardData,
|
|
1666
|
-
});
|
|
1667
|
-
return response.body;
|
|
1668
|
-
});
|
|
1669
|
-
},
|
|
1670
|
-
});
|
|
1671
|
-
exports.cards_ach_transfer = (0, pieces_framework_1.createAction)({
|
|
1672
|
-
auth: __1.fisIbsCardsAuth,
|
|
1673
|
-
name: 'cards_ach_transfer',
|
|
1674
|
-
displayName: 'Cards - ACH Transfer',
|
|
1675
|
-
description: 'Perform an ACH funds transfer between cards and/or accounts',
|
|
1676
|
-
props: {
|
|
1677
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1678
|
-
displayName: 'IBS Authorization',
|
|
1679
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1680
|
-
required: false,
|
|
1681
|
-
}),
|
|
1682
|
-
transferData: pieces_framework_1.Property.Object({
|
|
1683
|
-
displayName: 'Transfer Data',
|
|
1684
|
-
description: 'Source/destination cards or accounts and transfer amount',
|
|
1685
|
-
required: true,
|
|
1686
|
-
}),
|
|
1687
|
-
},
|
|
1688
|
-
run(context) {
|
|
1689
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1690
|
-
const auth = context.auth;
|
|
1691
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1692
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1693
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1694
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/ach-transfers`,
|
|
1695
|
-
headers,
|
|
1696
|
-
body: context.propsValue.transferData,
|
|
1697
|
-
});
|
|
1698
|
-
return response.body;
|
|
1699
|
-
});
|
|
1700
|
-
},
|
|
1701
|
-
});
|
|
1702
|
-
exports.cards_get_history_transaction_detail = (0, pieces_framework_1.createAction)({
|
|
1703
|
-
auth: __1.fisIbsCardsAuth,
|
|
1704
|
-
name: 'cards_get_history_transaction_detail',
|
|
1705
|
-
displayName: 'Cards - Get History Transaction Detail',
|
|
1706
|
-
description: 'Retrieve detailed information about a specific history transaction',
|
|
1707
|
-
props: {
|
|
1708
|
-
ibsAuthorization: pieces_framework_1.Property.ShortText({
|
|
1709
|
-
displayName: 'IBS Authorization',
|
|
1710
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
1711
|
-
required: false,
|
|
1712
|
-
}),
|
|
1713
|
-
transactionData: pieces_framework_1.Property.Object({
|
|
1714
|
-
displayName: 'Transaction Data',
|
|
1715
|
-
description: 'Card number and transaction identifiers',
|
|
1716
|
-
required: true,
|
|
1717
|
-
}),
|
|
1718
|
-
},
|
|
1719
|
-
run(context) {
|
|
1720
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1721
|
-
const auth = context.auth;
|
|
1722
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
1723
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
1724
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
1725
|
-
url: `${auth.baseUrl}/IBSCBTRAN/v4/cards/history-transactions/detail`,
|
|
1726
|
-
headers,
|
|
1727
|
-
body: context.propsValue.transactionData,
|
|
1728
|
-
});
|
|
1729
|
-
return response.body;
|
|
1730
|
-
});
|
|
1731
|
-
},
|
|
1732
|
-
});
|
|
1733
|
-
//# sourceMappingURL=cards.js.map
|