@vantagepay/vantagepay 0.15.4 → 0.15.6

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>;
@@ -1,8 +1,8 @@
1
1
  import { Country } from '../lookups/types';
2
2
  import { Gender } from '../lookups/types';
3
3
  import { Language } from '../lookups/types';
4
- import { Bank } from '../lookups/types';
5
4
  import { BankAccountType } from '../common/types';
5
+ import { Bank } from '../lookups/types';
6
6
  import { Currency } from '../lookups/types';
7
7
  import { Month } from '../lookups/types';
8
8
  import { MobileWalletOperator } from '../lookups/types';
@@ -66,13 +66,14 @@ export declare class BeneficiaryBankAccount {
66
66
  /** The bank account token that was generated by the system. */
67
67
  token?: string;
68
68
  accountNumber: string;
69
- bank: Bank;
70
- bankName: string;
71
69
  /** The bank account type. */
72
70
  bankAccountType: BankAccountType;
73
71
  bankAccountTypeName: string;
72
+ bank: Bank;
73
+ bankName: 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,23 @@ 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;
251
+ bankAccountTypeName?: string;
242
252
  bank: Bank;
253
+ bankName: string;
243
254
  branchName?: string;
244
255
  /** The branch code associated with the bank which holds the bank account. */
245
256
  routingCode?: string;
246
- isActive: boolean;
257
+ hasActiveCard: boolean;
258
+ createdDate: Date;
247
259
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
248
260
  reference?: string;
249
261
  /** A 3 character ISO currency code. */
250
262
  currency: Currency;
251
263
  /** The details which add sufficient context behind the account to the consumer. */
252
264
  accountName: string;
265
+ isActive: boolean;
253
266
  iconUrl?: string;
254
267
  }
255
268
  export declare class ConsumerCard {
@@ -266,13 +279,14 @@ export declare class ConsumerCard {
266
279
  expiryMonth: Month;
267
280
  /** The year in which the card expires. */
268
281
  expiryYear: number;
269
- isActive: boolean;
282
+ createdDate: Date;
270
283
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
271
284
  reference?: string;
272
285
  /** A 3 character ISO currency code. */
273
286
  currency: Currency;
274
287
  /** The details which add sufficient context behind the account to the consumer. */
275
288
  accountName: string;
289
+ isActive: boolean;
276
290
  iconUrl?: string;
277
291
  }
278
292
  export declare class ConsumerFile {
@@ -286,6 +300,50 @@ export declare class ConsumerFile {
286
300
  createdDate: Date;
287
301
  lastUpdatedDate?: Date;
288
302
  }
303
+ export declare class ConsumerInsurancePolicy {
304
+ policyNumber: string;
305
+ coverAmountInCents: number;
306
+ premiumAmountInCents: number;
307
+ description?: string;
308
+ beneficiaryName?: string;
309
+ createdDate: Date;
310
+ /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
311
+ reference?: string;
312
+ /** A 3 character ISO currency code. */
313
+ currency: Currency;
314
+ /** The details which add sufficient context behind the account to the consumer. */
315
+ accountName: string;
316
+ isActive: boolean;
317
+ iconUrl?: string;
318
+ }
319
+ export declare class ConsumerLoanAccount {
320
+ contractNumber: string;
321
+ originalCapitalInCents: number;
322
+ settlementAmountInCents: number;
323
+ outstandingBalanceInCents: number;
324
+ installmentAmountInCents: number;
325
+ arrearsAmountInCents: number;
326
+ installmentsRemaining: number;
327
+ annualInterestRatePercentage: number;
328
+ nextInstallmentDate: Date;
329
+ startDate: Date;
330
+ endDate: Date;
331
+ /** Whether the loan is currently in arrears (past due). */
332
+ isInArrears: boolean;
333
+ /** Whether the loan has been fully paid. */
334
+ isFullyPaid: boolean;
335
+ /** Percentage of loan that has been repaid. */
336
+ repaymentPercentage: number;
337
+ createdDate: Date;
338
+ /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
339
+ reference?: string;
340
+ /** A 3 character ISO currency code. */
341
+ currency: Currency;
342
+ /** The details which add sufficient context behind the account to the consumer. */
343
+ accountName: string;
344
+ isActive: boolean;
345
+ iconUrl?: string;
346
+ }
289
347
  export declare class ConsumerMobileWallet {
290
348
  /**
291
349
  * Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally.
@@ -294,13 +352,14 @@ export declare class ConsumerMobileWallet {
294
352
  msisdn: string;
295
353
  /** The mobile wallet operator that owns the mobile money account. */
296
354
  mobileWalletOperator: MobileWalletOperator;
297
- isActive: boolean;
355
+ createdDate: Date;
298
356
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
299
357
  reference?: string;
300
358
  /** A 3 character ISO currency code. */
301
359
  currency: Currency;
302
360
  /** The details which add sufficient context behind the account to the consumer. */
303
361
  accountName: string;
362
+ isActive: boolean;
304
363
  iconUrl?: string;
305
364
  }
306
365
  export declare class Feedback {