@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/lib/src/models.d.ts
CHANGED
|
@@ -1108,11 +1108,19 @@ export declare class CustomerToken {
|
|
|
1108
1108
|
* Routing number.
|
|
1109
1109
|
*/
|
|
1110
1110
|
routingNumber: string | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
|
|
1113
|
+
*/
|
|
1114
|
+
tokenHash: string | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* Card bin.
|
|
1117
|
+
*/
|
|
1118
|
+
bin: string | null;
|
|
1111
1119
|
/**
|
|
1112
1120
|
* Models customer records associated with a payment token.
|
|
1113
1121
|
*/
|
|
1114
1122
|
customers: Customer[] | null;
|
|
1115
|
-
constructor(token?: string | null, maskedPan?: string | null, expiryMonth?: string | null, expiryYear?: string | null, paymentType?: string | null, accountType?: string | null, accountHolderType?: string | null, bankName?: string | null, routingNumber?: string | null, customers?: Customer[] | null);
|
|
1123
|
+
constructor(token?: string | null, maskedPan?: string | null, expiryMonth?: string | null, expiryYear?: string | null, paymentType?: string | null, accountType?: string | null, accountHolderType?: string | null, bankName?: string | null, routingNumber?: string | null, tokenHash?: string | null, bin?: string | null, customers?: Customer[] | null);
|
|
1116
1124
|
}
|
|
1117
1125
|
/**
|
|
1118
1126
|
* The response to a text prompt request.
|
|
@@ -3042,7 +3050,16 @@ export declare class EnrollResponse {
|
|
|
3042
3050
|
* The bank name for an ACH payment method.
|
|
3043
3051
|
*/
|
|
3044
3052
|
bankName?: string;
|
|
3045
|
-
|
|
3053
|
+
/**
|
|
3054
|
+
* The token hash (generated with a static salt, Merchant ID, Registration Date and
|
|
3055
|
+
* PAN).
|
|
3056
|
+
*/
|
|
3057
|
+
tokenHash?: string;
|
|
3058
|
+
/**
|
|
3059
|
+
* The first 8 digits of the card aka the BIN.
|
|
3060
|
+
*/
|
|
3061
|
+
bin?: string;
|
|
3062
|
+
constructor(success?: boolean | null, error?: string | null, responseDescription?: string | null, approved?: boolean | null, authCode?: string | undefined, authResponseCode?: string | undefined, transactionId?: string | null, batchId?: string | undefined, transactionRef?: string | undefined, transactionType?: string | null, timestamp?: string | null, tickBlock?: string | null, test?: boolean | null, destinationAccount?: string | undefined, sig?: string | undefined, token?: string | undefined, entryMethod?: string | undefined, paymentType?: string | undefined, network?: string | undefined, logo?: string | undefined, maskedPan?: string | undefined, publicKey?: string | undefined, ScopeAlert?: boolean, cardHolder?: string | undefined, expMonth?: string | undefined, expYear?: string | undefined, avsResponse?: AVSResponse | null, receiptSuggestions?: ReceiptSuggestions | null, customer?: Customer | undefined, customers?: Customer[] | null, sigFile?: string | undefined, cardMetadata?: CardMetadata | undefined, accountType?: string | undefined, accountHolderType?: string | undefined, bankName?: string | undefined, tokenHash?: string | undefined, bin?: string | undefined);
|
|
3046
3063
|
}
|
|
3047
3064
|
/**
|
|
3048
3065
|
* The information needed to enroll a new payment method in the token vault.
|
package/lib/src/models.js
CHANGED
|
@@ -905,7 +905,7 @@ exports.TokenMetadataResponse = TokenMetadataResponse;
|
|
|
905
905
|
*/
|
|
906
906
|
class CustomerToken {
|
|
907
907
|
// Constructor with default values for optional fields
|
|
908
|
-
constructor(token = null, maskedPan = null, expiryMonth = null, expiryYear = null, paymentType = null, accountType = null, accountHolderType = null, bankName = null, routingNumber = null, customers = null) {
|
|
908
|
+
constructor(token = null, maskedPan = null, expiryMonth = null, expiryYear = null, paymentType = null, accountType = null, accountHolderType = null, bankName = null, routingNumber = null, tokenHash = null, bin = null, customers = null) {
|
|
909
909
|
/**
|
|
910
910
|
* BlockChyp assigned customer id.
|
|
911
911
|
*/
|
|
@@ -942,6 +942,14 @@ class CustomerToken {
|
|
|
942
942
|
* Routing number.
|
|
943
943
|
*/
|
|
944
944
|
this.routingNumber = null;
|
|
945
|
+
/**
|
|
946
|
+
* Token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
|
|
947
|
+
*/
|
|
948
|
+
this.tokenHash = null;
|
|
949
|
+
/**
|
|
950
|
+
* Card bin.
|
|
951
|
+
*/
|
|
952
|
+
this.bin = null;
|
|
945
953
|
/**
|
|
946
954
|
* Models customer records associated with a payment token.
|
|
947
955
|
*/
|
|
@@ -955,6 +963,8 @@ class CustomerToken {
|
|
|
955
963
|
this.accountHolderType = accountHolderType;
|
|
956
964
|
this.bankName = bankName;
|
|
957
965
|
this.routingNumber = routingNumber;
|
|
966
|
+
this.tokenHash = tokenHash;
|
|
967
|
+
this.bin = bin;
|
|
958
968
|
this.customers = customers;
|
|
959
969
|
}
|
|
960
970
|
}
|
|
@@ -2070,7 +2080,7 @@ exports.EnrollRequest = EnrollRequest;
|
|
|
2070
2080
|
*/
|
|
2071
2081
|
class EnrollResponse {
|
|
2072
2082
|
// Constructor with default values for optional fields
|
|
2073
|
-
constructor(success = null, error = null, responseDescription = null, approved = null, authCode = undefined, authResponseCode = undefined, transactionId = null, batchId = undefined, transactionRef = undefined, transactionType = null, timestamp = null, tickBlock = null, test = null, destinationAccount = undefined, sig = undefined, token = undefined, entryMethod = undefined, paymentType = undefined, network = undefined, logo = undefined, maskedPan = undefined, publicKey = undefined, ScopeAlert = false, cardHolder = undefined, expMonth = undefined, expYear = undefined, avsResponse = null, receiptSuggestions = null, customer = undefined, customers = null, sigFile = undefined, cardMetadata = undefined, accountType = undefined, accountHolderType = undefined, bankName = undefined) {
|
|
2083
|
+
constructor(success = null, error = null, responseDescription = null, approved = null, authCode = undefined, authResponseCode = undefined, transactionId = null, batchId = undefined, transactionRef = undefined, transactionType = null, timestamp = null, tickBlock = null, test = null, destinationAccount = undefined, sig = undefined, token = undefined, entryMethod = undefined, paymentType = undefined, network = undefined, logo = undefined, maskedPan = undefined, publicKey = undefined, ScopeAlert = false, cardHolder = undefined, expMonth = undefined, expYear = undefined, avsResponse = null, receiptSuggestions = null, customer = undefined, customers = null, sigFile = undefined, cardMetadata = undefined, accountType = undefined, accountHolderType = undefined, bankName = undefined, tokenHash = undefined, bin = undefined) {
|
|
2074
2084
|
/**
|
|
2075
2085
|
* Whether or not the request succeeded.
|
|
2076
2086
|
*/
|
|
@@ -2154,6 +2164,8 @@ class EnrollResponse {
|
|
|
2154
2164
|
this.accountType = accountType;
|
|
2155
2165
|
this.accountHolderType = accountHolderType;
|
|
2156
2166
|
this.bankName = bankName;
|
|
2167
|
+
this.tokenHash = tokenHash;
|
|
2168
|
+
this.bin = bin;
|
|
2157
2169
|
}
|
|
2158
2170
|
}
|
|
2159
2171
|
exports.EnrollResponse = EnrollResponse;
|