@vantagepay/vantagepay 0.15.3 → 0.15.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.
@@ -7,6 +7,7 @@ export declare class Consumers extends BaseApi {
7
7
  deleteConsumer(): Promise<void>;
8
8
  getConsumer(): Promise<Consumer>;
9
9
  submitFeedback(description: string): Promise<void>;
10
+ getAllMessages(): Promise<Message[]>;
10
11
  getMessage(messageReference: string): Promise<Message>;
11
12
  deleteMessage(messageReference: string): Promise<void>;
12
13
  contactSupport(request: ContactDetails): Promise<void>;
@@ -73,6 +73,7 @@ export declare class BeneficiaryBankAccount {
73
73
  bankAccountTypeName: string;
74
74
  /** The branch code associated with the bank which holds the bank account. */
75
75
  routingCode?: string;
76
+ createdDate: Date;
76
77
  /** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
77
78
  reference: string;
78
79
  /** A 3 character ISO currency code. */
@@ -102,6 +103,7 @@ export declare class BeneficiaryCard {
102
103
  /** The year in which the card expires. */
103
104
  expiryYear: number;
104
105
  cardIssuer: string;
106
+ createdDate: Date;
105
107
  /** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
106
108
  reference: string;
107
109
  /** A 3 character ISO currency code. */
@@ -128,6 +130,7 @@ export declare class BeneficiaryMobileWallet {
128
130
  /** The mobile wallet operator that owns the mobile money account. */
129
131
  mobileWalletOperator: MobileWalletOperator;
130
132
  mobileWalletOperatorName: string;
133
+ createdDate: Date;
131
134
  /** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
132
135
  reference: string;
133
136
  /** A 3 character ISO currency code. */
@@ -216,6 +219,10 @@ export declare class ConsumerAccounts {
216
219
  bankAccounts: ConsumerBankAccount[];
217
220
  /** A list of mobile money / wallet accounts associated with a consumer. */
218
221
  mobileWallets: ConsumerMobileWallet[];
222
+ /** A list of locan accounts associated with a consumer. */
223
+ loanAccounts: ConsumerLoanAccount[];
224
+ /** A list of locan accounts associated with a consumer. */
225
+ insurancePolicies: ConsumerInsurancePolicy[];
219
226
  /** A list of cards associated with a consumer. */
220
227
  cards: ConsumerCard[];
221
228
  }
@@ -239,17 +246,21 @@ export declare class ConsumerBankAccount {
239
246
  /** The bank account token that was generated by the system. */
240
247
  token?: string;
241
248
  accountNumber: string;
249
+ /** The bank account type. */
250
+ bankAccountType?: BankAccountType;
242
251
  bank: Bank;
243
252
  branchName?: string;
244
253
  /** The branch code associated with the bank which holds the bank account. */
245
254
  routingCode?: string;
246
- isActive: boolean;
255
+ hasActiveCard: boolean;
256
+ createdDate: Date;
247
257
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
248
258
  reference?: string;
249
259
  /** A 3 character ISO currency code. */
250
260
  currency: Currency;
251
261
  /** The details which add sufficient context behind the account to the consumer. */
252
262
  accountName: string;
263
+ isActive: boolean;
253
264
  iconUrl?: string;
254
265
  }
255
266
  export declare class ConsumerCard {
@@ -266,13 +277,14 @@ export declare class ConsumerCard {
266
277
  expiryMonth: Month;
267
278
  /** The year in which the card expires. */
268
279
  expiryYear: number;
269
- isActive: boolean;
280
+ createdDate: Date;
270
281
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
271
282
  reference?: string;
272
283
  /** A 3 character ISO currency code. */
273
284
  currency: Currency;
274
285
  /** The details which add sufficient context behind the account to the consumer. */
275
286
  accountName: string;
287
+ isActive: boolean;
276
288
  iconUrl?: string;
277
289
  }
278
290
  export declare class ConsumerFile {
@@ -286,6 +298,50 @@ export declare class ConsumerFile {
286
298
  createdDate: Date;
287
299
  lastUpdatedDate?: Date;
288
300
  }
301
+ export declare class ConsumerInsurancePolicy {
302
+ policyNumber: string;
303
+ coverAmountInCents: number;
304
+ premiumAmountInCents: number;
305
+ description?: string;
306
+ beneficiaryName?: string;
307
+ createdDate: Date;
308
+ /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
309
+ reference?: string;
310
+ /** A 3 character ISO currency code. */
311
+ currency: Currency;
312
+ /** The details which add sufficient context behind the account to the consumer. */
313
+ accountName: string;
314
+ isActive: boolean;
315
+ iconUrl?: string;
316
+ }
317
+ export declare class ConsumerLoanAccount {
318
+ contractNumber: string;
319
+ originalCapitalInCents: number;
320
+ settlementAmountInCents: number;
321
+ outstandingBalanceInCents: number;
322
+ installmentAmountInCents: number;
323
+ arrearsAmountInCents: number;
324
+ installmentsRemaining: number;
325
+ annualInterestRatePercentage: number;
326
+ nextInstallmentDate: Date;
327
+ startDate: Date;
328
+ endDate: Date;
329
+ /** Whether the loan is currently in arrears (past due). */
330
+ isInArrears: boolean;
331
+ /** Whether the loan has been fully paid. */
332
+ isFullyPaid: boolean;
333
+ /** Percentage of loan that has been repaid. */
334
+ repaymentPercentage: number;
335
+ createdDate: Date;
336
+ /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
337
+ reference?: string;
338
+ /** A 3 character ISO currency code. */
339
+ currency: Currency;
340
+ /** The details which add sufficient context behind the account to the consumer. */
341
+ accountName: string;
342
+ isActive: boolean;
343
+ iconUrl?: string;
344
+ }
289
345
  export declare class ConsumerMobileWallet {
290
346
  /**
291
347
  * Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally.
@@ -294,13 +350,14 @@ export declare class ConsumerMobileWallet {
294
350
  msisdn: string;
295
351
  /** The mobile wallet operator that owns the mobile money account. */
296
352
  mobileWalletOperator: MobileWalletOperator;
297
- isActive: boolean;
353
+ createdDate: Date;
298
354
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
299
355
  reference?: string;
300
356
  /** A 3 character ISO currency code. */
301
357
  currency: Currency;
302
358
  /** The details which add sufficient context behind the account to the consumer. */
303
359
  accountName: string;
360
+ isActive: boolean;
304
361
  iconUrl?: string;
305
362
  }
306
363
  export declare class Feedback {