@blockchyp/blockchyp-ts 2.22.0 → 2.23.0
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/_bundles/blockchyp.js +14 -2
- package/_bundles/blockchyp.js.map +1 -1
- package/_bundles/blockchyp.min.js +1 -1
- package/_bundles/blockchyp.min.js.map +1 -1
- package/lib/src/models.d.ts +19 -2
- package/lib/src/models.js +14 -2
- package/lib/src/models.js.map +1 -1
- package/package.json +1 -1
- package/src/models.ts +29 -0
package/package.json
CHANGED
package/src/models.ts
CHANGED
|
@@ -1879,6 +1879,16 @@ export class CustomerToken {
|
|
|
1879
1879
|
*/
|
|
1880
1880
|
routingNumber: string | null = null;
|
|
1881
1881
|
|
|
1882
|
+
/**
|
|
1883
|
+
* Token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
|
|
1884
|
+
*/
|
|
1885
|
+
tokenHash: string | null = null;
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* Card bin.
|
|
1889
|
+
*/
|
|
1890
|
+
bin: string | null = null;
|
|
1891
|
+
|
|
1882
1892
|
/**
|
|
1883
1893
|
* Models customer records associated with a payment token.
|
|
1884
1894
|
*/
|
|
@@ -1895,6 +1905,8 @@ export class CustomerToken {
|
|
|
1895
1905
|
accountHolderType: string | null = null,
|
|
1896
1906
|
bankName: string | null = null,
|
|
1897
1907
|
routingNumber: string | null = null,
|
|
1908
|
+
tokenHash: string | null = null,
|
|
1909
|
+
bin: string | null = null,
|
|
1898
1910
|
customers: Customer[] | null = null,
|
|
1899
1911
|
) {
|
|
1900
1912
|
this.token = token;
|
|
@@ -1906,6 +1918,8 @@ export class CustomerToken {
|
|
|
1906
1918
|
this.accountHolderType = accountHolderType;
|
|
1907
1919
|
this.bankName = bankName;
|
|
1908
1920
|
this.routingNumber = routingNumber;
|
|
1921
|
+
this.tokenHash = tokenHash;
|
|
1922
|
+
this.bin = bin;
|
|
1909
1923
|
this.customers = customers;
|
|
1910
1924
|
}
|
|
1911
1925
|
}
|
|
@@ -5121,6 +5135,17 @@ export class EnrollResponse {
|
|
|
5121
5135
|
*/
|
|
5122
5136
|
bankName?: string;
|
|
5123
5137
|
|
|
5138
|
+
/**
|
|
5139
|
+
* The token hash (generated with a static salt, Merchant ID, Registration Date and
|
|
5140
|
+
* PAN).
|
|
5141
|
+
*/
|
|
5142
|
+
tokenHash?: string;
|
|
5143
|
+
|
|
5144
|
+
/**
|
|
5145
|
+
* The first 8 digits of the card aka the BIN.
|
|
5146
|
+
*/
|
|
5147
|
+
bin?: string;
|
|
5148
|
+
|
|
5124
5149
|
// Constructor with default values for optional fields
|
|
5125
5150
|
constructor(
|
|
5126
5151
|
success: boolean | null = null,
|
|
@@ -5158,6 +5183,8 @@ export class EnrollResponse {
|
|
|
5158
5183
|
accountType: string | undefined = undefined,
|
|
5159
5184
|
accountHolderType: string | undefined = undefined,
|
|
5160
5185
|
bankName: string | undefined = undefined,
|
|
5186
|
+
tokenHash: string | undefined = undefined,
|
|
5187
|
+
bin: string | undefined = undefined,
|
|
5161
5188
|
) {
|
|
5162
5189
|
this.success = success;
|
|
5163
5190
|
this.error = error;
|
|
@@ -5194,6 +5221,8 @@ export class EnrollResponse {
|
|
|
5194
5221
|
this.accountType = accountType;
|
|
5195
5222
|
this.accountHolderType = accountHolderType;
|
|
5196
5223
|
this.bankName = bankName;
|
|
5224
|
+
this.tokenHash = tokenHash;
|
|
5225
|
+
this.bin = bin;
|
|
5197
5226
|
}
|
|
5198
5227
|
}
|
|
5199
5228
|
|