You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: types/consumer-data-standards/README.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This fork of the [DefinitelyTyped](https://github.com/DefinitelyTyped/Definitely
6
6
7
7
## Using the Type Definitions
8
8
9
-
The Data Standards Body publishes the Type Definitions as a [npm package](https://www.npmjs.com/package/@types/consumer-data-standards). To use these type definitions in your TypeScript projects, you can install them via npm as part of your development dependencies. Please refer to the [Quick Start Guide](#quick-start-guide) section below for more information.
9
+
The Data Standards Body publishes the Type Definitions as a [npm package](https://www.npmjs.com/package/@types/consumer-data-standards). To use these type definitions in your TypeScript projects, you can install them via npm as part of your development dependencies. Please refer to the [Quick Start Guide](#quick-start-guide) section below for more information.
10
10
11
11
This tool:
12
12
@@ -18,29 +18,28 @@ This tool:
18
18
Please follow these steps to integrate the CDR-specific type definitions into your TypeScript projects:
19
19
20
20
1.**Install** via npm or Yarn: Depending on your preference, you can use npm or Yarn to install the CDS type definitions package published to npm.
21
-
22
-
```bash
23
-
npm install @types/consumer-data-standards
24
-
```
25
-
26
-
Or
27
-
28
-
```bash
29
-
yarn install @types/consumer-data-standards
30
-
```
31
-
21
+
22
+
```bash
23
+
npm install @types/consumer-data-standards
24
+
```
25
+
26
+
Or
27
+
28
+
```bash
29
+
yarn install @types/consumer-data-standards
30
+
```
31
+
32
32
2.**Usage**: Utilise the types in your TypeScript code as needed:
33
-
34
-
```tsx
35
-
import { YourType } from 'your-package';
36
-
37
-
functionprocessData(data: YourType) {
38
-
// your code here
39
-
}
40
-
```
41
-
42
-
3. **Stay Updated**: Regularly check for updates to ensure you have the latest type definitions.
43
33
34
+
```tsx
35
+
import { YourType } from"your-package";
36
+
37
+
function processData(data:YourType) {
38
+
// your code here
39
+
}
40
+
```
41
+
42
+
3.**Stay Updated**: Regularly check for updates to ensure you have the latest type definitions.
/* These are the schema definitions stipulated by the Data Standards Body for the banking api. */
879
879
880
+
/* These are the schema definitions stipulated by the Data Standards Body for the banking api. */
881
+
882
+
exportinterfaceBankingProductConstraintV2{
883
+
/**
884
+
* Display text providing more information on the constraint.
885
+
*/
886
+
additionalInfo?: string|null;
887
+
/**
888
+
* Link to a web page with more information on the constraint.
889
+
*/
890
+
additionalInfoUri?: string|null;
891
+
/**
892
+
* Generic field containing additional information relevant to the [_constraintType_](#tocSproductconstrainttypedoc) specified. Whether mandatory or not is dependent on the value of [_constraintType_](#tocSproductconstrainttypedoc).
893
+
*/
894
+
additionalValue?: string|null;
895
+
/**
896
+
* The type of constraint described. For further details, refer to [Product Constraint Types](#tocSproductconstrainttypedoc).
897
+
*/
898
+
constraintType:
899
+
|"MAX_BALANCE"
900
+
|"MAX_LIMIT"
901
+
|"MAX_LVR"
902
+
|"MIN_BALANCE"
903
+
|"MIN_LIMIT"
904
+
|"MIN_LVR"
905
+
|"OPENING_BALANCE";
906
+
[k: string]: unknown;
907
+
}
880
908
exportinterfaceBankingProductDepositRate{
881
909
/**
882
910
* Display text providing more information on the rate.
* An array of bundles that this product participates in. Each bundle is described by free form information but also by a list of product IDs of the other products that are included in the bundle. It is assumed that the current product is included in the bundle also.
1480
+
*/
1481
+
bundles?: BankingProductBundle[]|null;
1482
+
/**
1483
+
* Array of features available for the product.
1484
+
*/
1485
+
features?: BankingProductFeatureV2[]|null;
1486
+
/**
1487
+
* Constraints on the application for or operation of the product such as minimum balances or limit thresholds.
1488
+
*/
1489
+
constraints?: BankingProductConstraintV2[]|null;
1490
+
/**
1491
+
* Eligibility criteria for the product.
1492
+
*/
1493
+
eligibility?: BankingProductEligibility[]|null;
1494
+
/**
1495
+
* Fees applicable for the product.
1496
+
*/
1497
+
fees?: BankingProductFee[]|null;
1498
+
/**
1499
+
* Interest rates available for deposits.
1500
+
*/
1501
+
depositRates?: BankingProductDepositRate[]|null;
1502
+
/**
1503
+
* Interest rates charged against lending balances.
* Label of the originating payer. Mandatory for inbound payment.
2945
+
*/
2946
+
payer?: string;
2947
+
/**
2948
+
* Label of the target PayID. Mandatory for an outbound payment. The name assigned to the BSB/Account Number or PayID (by the owner of the PayID).
2949
+
*/
2950
+
payee?: string;
2951
+
/**
2952
+
* Optional extended data specific to transactions. Currently extended data is supported for NPP service overlays.
2953
+
*/
2954
+
extensionUType?: "nppPayload";
2955
+
/**
2956
+
* Required if the _extensionUType_ value is `nppPayload`.
2957
+
*/
2958
+
nppPayload?: {
2959
+
/**
2960
+
* An extended string description. Required if the _extensionUType_ value is `nppPayload`.
2961
+
*/
2962
+
extendedDescription?: string;
2963
+
/**
2964
+
* An end to end ID for the payment created at initiation.
2965
+
*/
2966
+
endToEndId?: string;
2967
+
/**
2968
+
* Purpose of the payment. Format is defined by the NPP standards for the NPP overlay services including Osko (X2P1).
2969
+
*/
2970
+
purposeCode?: string;
2971
+
/**
2972
+
* Identifier of the applicable overlay service. The _service_ is used in conjunction with the _serviceVersion_. See [here](#npp-services) for more details.
2973
+
*/
2974
+
service: "X2P1"|"IFTI"|"BSCT"|"CATSCT";
2975
+
/**
2976
+
* Two-digit NPP service overlay version with leading zero.
2977
+
*/
2978
+
serviceVersion: string;
2979
+
[k: string]: unknown;
2980
+
};
2981
+
[k: string]: unknown;
2982
+
};
2983
+
[k: string]: unknown;
2984
+
};
2879
2985
/**
2880
2986
* Australian address formatted according to the file format defined by the [PAF file format](https://auspost.com.au/content/dam/auspost_corp/media/documents/australia-post-data-guide.pdf).
* Identifier of the applicable overlay service. The _service_ is used in conjunction with the _serviceVersion_. See [here](#npp-services) for more details.
/* These are the schema definitions stipulated by the Data Standards Body for the banking api. */
5414
5528
5529
+
/* These are the schema definitions stipulated by the Data Standards Body for the banking api. */
5530
+
5531
+
exportinterfaceResponseBankingProductByIdV5{
5532
+
data: BankingProductV4&{
5533
+
/**
5534
+
* An array of bundles that this product participates in. Each bundle is described by free form information but also by a list of product IDs of the other products that are included in the bundle. It is assumed that the current product is included in the bundle also.
5535
+
*/
5536
+
bundles?: BankingProductBundle[]|null;
5537
+
/**
5538
+
* Array of features available for the product.
5539
+
*/
5540
+
features?: BankingProductFeatureV2[]|null;
5541
+
/**
5542
+
* Constraints on the application for or operation of the product such as minimum balances or limit thresholds.
5543
+
*/
5544
+
constraints?: BankingProductConstraintV2[]|null;
5545
+
/**
5546
+
* Eligibility criteria for the product.
5547
+
*/
5548
+
eligibility?: BankingProductEligibility[]|null;
5549
+
/**
5550
+
* Fees applicable for the product.
5551
+
*/
5552
+
fees?: BankingProductFee[]|null;
5553
+
/**
5554
+
* Interest rates available for deposits.
5555
+
*/
5556
+
depositRates?: BankingProductDepositRate[]|null;
5557
+
/**
5558
+
* Interest rates charged against lending balances.
/* These are the schema definitions stipulated by the Data Standards Body for the banking api. */
6462
6615
6616
+
/* These are the schema definitions stipulated by the Data Standards Body for the banking api. */
6617
+
6618
+
exportinterfaceResponseBankingTransactionByIdV2{
6619
+
data: BankingTransaction&{
6620
+
extendedData: {
6621
+
/**
6622
+
* Label of the originating payer. Mandatory for inbound payment.
6623
+
*/
6624
+
payer?: string;
6625
+
/**
6626
+
* Label of the target PayID. Mandatory for an outbound payment. The name assigned to the BSB/Account Number or PayID (by the owner of the PayID).
6627
+
*/
6628
+
payee?: string;
6629
+
/**
6630
+
* Optional extended data specific to transactions. Currently extended data is supported for NPP service overlays.
6631
+
*/
6632
+
extensionUType?: "nppPayload";
6633
+
/**
6634
+
* Required if the _extensionUType_ value is `nppPayload`.
6635
+
*/
6636
+
nppPayload?: {
6637
+
/**
6638
+
* An extended string description. Required if the _extensionUType_ value is `nppPayload`.
6639
+
*/
6640
+
extendedDescription?: string;
6641
+
/**
6642
+
* An end to end ID for the payment created at initiation.
6643
+
*/
6644
+
endToEndId?: string;
6645
+
/**
6646
+
* Purpose of the payment. Format is defined by the NPP standards for the NPP overlay services including Osko (X2P1).
6647
+
*/
6648
+
purposeCode?: string;
6649
+
/**
6650
+
* Identifier of the applicable overlay service. The _service_ is used in conjunction with the _serviceVersion_. See [here](#npp-services) for more details.
6651
+
*/
6652
+
service: "X2P1"|"IFTI"|"BSCT"|"CATSCT";
6653
+
/**
6654
+
* Two-digit NPP service overlay version with leading zero.
0 commit comments