@medipass/web-sdk 12.10.13-feature-web-sdk-summaries-types.5 → 12.10.13-feature-web-sdk-summaries-types.7

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.
@@ -1,4 +1,4 @@
1
- import type { InitiateBusinessSettlementExportRequestBody, MedipassRequestOpts } from '../types';
1
+ import type { GetSettlementsQuery, GetSettlementsResponse, InitiateBusinessSettlementExportRequestBody, MedipassRequestOpts } from '../types';
2
2
  import type { SettlementSummariesQuery, SettlementSummariesResponse, SettlementSummariesByPeriodQuery, SettlementSummariesByPeriodResponse, SettlementSummaryResponse } from '../types';
3
3
  /**
4
4
  *
@@ -16,7 +16,7 @@ export declare const initiateBusinessSettlementExport: (businessId: string, body
16
16
  * @param {Object} query - Query parameters
17
17
  * @param {Object} opts - Additional options
18
18
  */
19
- export declare const getBusinessSettlements: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
19
+ export declare const getBusinessSettlements: (businessId: string, query?: GetSettlementsQuery, opts?: MedipassRequestOpts) => Promise<GetSettlementsResponse>;
20
20
  /**
21
21
  * Get business settlement summaries
22
22
  * @param {String} businessId - Business ID
@@ -1,8 +1,9 @@
1
1
  export interface Practice {
2
+ abn?: string;
2
3
  settings: PracticeSettings;
3
4
  billingAddress: PracticeBillingAddress;
4
5
  settlement: {
5
- bankAccount: PracticeBankAccount;
6
+ bankAccount?: PracticeBankAccount;
6
7
  };
7
8
  staffIds: string[];
8
9
  practiceTypeIds: string[];
@@ -15,12 +16,15 @@ export interface Practice {
15
16
  _id: string;
16
17
  fullName: string;
17
18
  displayName: string;
18
- mobile: string;
19
+ logoUrl?: string;
20
+ mobile?: string;
21
+ landline?: string;
19
22
  email: string;
23
+ isManualAddress: boolean;
20
24
  lnglat: [number, number];
21
25
  gmapsPlaceId: string;
22
- address: string;
23
26
  addressPrefix?: string;
27
+ address: string;
24
28
  countryCode: string;
25
29
  country: string;
26
30
  state: string;
@@ -33,12 +37,27 @@ export interface Practice {
33
37
  organisationId: string;
34
38
  replyToEmail: string;
35
39
  businessId: string;
36
- defaultBenefitPayees: string[];
40
+ defaultBenefitPayees?: Array<{
41
+ _id: string;
42
+ funderId?: string;
43
+ staffId?: string;
44
+ providerNumber?: string;
45
+ }>;
37
46
  created: string;
38
47
  modified: string;
39
48
  locationId: string;
49
+ websiteUrl: string;
40
50
  _links: PracticeLinks;
51
+ wcqCredentials?: WcqCredentials;
52
+ isUseDefaultCredentials?: boolean;
41
53
  }
54
+ declare type WcqCredentials = {
55
+ isVerified: boolean;
56
+ b2bUsername: string;
57
+ b2bPassword: string;
58
+ accountName: string;
59
+ accountNumber: string;
60
+ };
42
61
  export declare type ShortPracticeResponse = {
43
62
  tz: string;
44
63
  _id: string;
@@ -1,3 +1,4 @@
1
+ import type { PaginatedQuery, PaginatedResponse } from '../types';
1
2
  export interface InitiateBusinessSettlementExportRequestBody {
2
3
  from?: string;
3
4
  fromFilterOptionIds?: string;
@@ -6,3 +7,70 @@ export interface InitiateBusinessSettlementExportRequestBody {
6
7
  to?: string;
7
8
  settlementSummaryIds?: string;
8
9
  }
10
+ export declare type GetSettlementsQuery = PaginatedQuery & {
11
+ tz?: string;
12
+ from?: string;
13
+ to?: string;
14
+ paymentMethod?: string;
15
+ paymentRunNumber?: string;
16
+ settlementParty?: string;
17
+ settlementSummaryId?: string;
18
+ currencyFormat?: string;
19
+ sort?: number;
20
+ };
21
+ export declare type GetSettlementsItem = {
22
+ _id: string;
23
+ settlementDateString: string;
24
+ settlementParty: string;
25
+ bankReference: string;
26
+ amountSettlementCredit: number;
27
+ amountSettlementDebit: number;
28
+ amountTransactionCredit: number;
29
+ amountTransactionDebit: number;
30
+ amountTransactionTax: number;
31
+ amountSettlementCreditString: string;
32
+ amountSettlementDebitString: string;
33
+ amountTransactionCreditString: string;
34
+ amountTransactionDebitString: string;
35
+ amountTransactionTaxString: string;
36
+ amountTransactionTotalString: string;
37
+ amountFeeCreditString: string;
38
+ amountFeeDebitString: string;
39
+ staffFullName: string;
40
+ itemCount: number;
41
+ abn: string;
42
+ accountName: string;
43
+ merchantId: string;
44
+ providerNumber: string;
45
+ transactionReference: string;
46
+ transactionDate: string;
47
+ transactionResponseCode: string;
48
+ invoiceReference: string;
49
+ invoiceFormattedReference: string;
50
+ paymentRunNumber: string;
51
+ paymentMethod: string;
52
+ patientPaymentDate: string;
53
+ funderLabel: string;
54
+ funderName: string;
55
+ membershipNumber: string;
56
+ cardRank: string;
57
+ currencyCode: string;
58
+ settlementSummaryId: string;
59
+ bankAccount: {
60
+ accountNumber: string;
61
+ bsb: string;
62
+ accountName: string;
63
+ };
64
+ settledTo: string;
65
+ transactionId: string;
66
+ type: string;
67
+ patientFullName: string;
68
+ transactionOrigination: string;
69
+ practiceLocation: string;
70
+ channelCode: string;
71
+ previousAccountReferenceId: string;
72
+ rejected: string;
73
+ created: string;
74
+ modified: string;
75
+ };
76
+ export declare type GetSettlementsResponse = PaginatedResponse<GetSettlementsItem>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "12.10.13-feature-web-sdk-summaries-types.5",
3
+ "version": "12.10.13-feature-web-sdk-summaries-types.7",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -59,5 +59,5 @@
59
59
  "resolutions": {
60
60
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
61
61
  },
62
- "gitHead": "16723bae16e65893c952cd87f8c30befd3a6d69c"
62
+ "gitHead": "f1be64ac5996de14690c335a85c561c66b0b6ff2"
63
63
  }