@blockchyp/blockchyp-ts 2.21.2 → 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.
@@ -1092,11 +1092,35 @@ export declare class CustomerToken {
1092
1092
  * Payment type.
1093
1093
  */
1094
1094
  paymentType: string | null;
1095
+ /**
1096
+ * Bank account type (checking, saving).
1097
+ */
1098
+ accountType: string | null;
1099
+ /**
1100
+ * Bank account holder type (personal, business).
1101
+ */
1102
+ accountHolderType: string | null;
1103
+ /**
1104
+ * Bank name.
1105
+ */
1106
+ bankName: string | null;
1107
+ /**
1108
+ * Routing number.
1109
+ */
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;
1095
1119
  /**
1096
1120
  * Models customer records associated with a payment token.
1097
1121
  */
1098
1122
  customers: Customer[] | null;
1099
- constructor(token?: string | null, maskedPan?: string | null, expiryMonth?: string | null, expiryYear?: string | null, paymentType?: 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);
1100
1124
  }
1101
1125
  /**
1102
1126
  * The response to a text prompt request.
@@ -2861,7 +2885,19 @@ export declare class EnrollRequest {
2861
2885
  * That this transaction will include a card metadata lookup.
2862
2886
  */
2863
2887
  cardMetadataLookup?: boolean;
2864
- constructor(timeout?: number | null, test?: boolean | null, transactionRef?: string | undefined, autogeneratedRef?: boolean | null, async?: boolean | null, queue?: boolean | null, waitForRemovedCard?: boolean, force?: boolean, orderRef?: string | undefined, destinationAccount?: string | undefined, testCase?: string | undefined, token?: string | undefined, track1?: string | undefined, track2?: string | undefined, pan?: string | undefined, routingNumber?: string | undefined, cardholderName?: string | undefined, expMonth?: string | undefined, expYear?: string | undefined, cvv?: string | undefined, address?: string | undefined, postalCode?: string | undefined, manualEntry?: boolean, ksn?: string | undefined, pinBlock?: string | undefined, cardType?: CardType | undefined, paymentType?: string | undefined, terminalName?: string | undefined, resetConnection?: boolean | null, entryMethod?: string | undefined, customer?: Customer | undefined, recurring?: boolean, subscription?: boolean, cardMetadataLookup?: boolean);
2888
+ /**
2889
+ * The type of account (checking, savings, etc) for an ACH payment method.
2890
+ */
2891
+ accountType?: string;
2892
+ /**
2893
+ * The type of account holder (personal, business, etc) for an ACH payment method.
2894
+ */
2895
+ accountHolderType?: string;
2896
+ /**
2897
+ * The bank name for an ACH payment method.
2898
+ */
2899
+ bankName?: string;
2900
+ constructor(timeout?: number | null, test?: boolean | null, transactionRef?: string | undefined, autogeneratedRef?: boolean | null, async?: boolean | null, queue?: boolean | null, waitForRemovedCard?: boolean, force?: boolean, orderRef?: string | undefined, destinationAccount?: string | undefined, testCase?: string | undefined, token?: string | undefined, track1?: string | undefined, track2?: string | undefined, pan?: string | undefined, routingNumber?: string | undefined, cardholderName?: string | undefined, expMonth?: string | undefined, expYear?: string | undefined, cvv?: string | undefined, address?: string | undefined, postalCode?: string | undefined, manualEntry?: boolean, ksn?: string | undefined, pinBlock?: string | undefined, cardType?: CardType | undefined, paymentType?: string | undefined, terminalName?: string | undefined, resetConnection?: boolean | null, entryMethod?: string | undefined, customer?: Customer | undefined, recurring?: boolean, subscription?: boolean, cardMetadataLookup?: boolean, accountType?: string | undefined, accountHolderType?: string | undefined, bankName?: string | undefined);
2865
2901
  }
2866
2902
  /**
2867
2903
  * The response to an enroll request.
@@ -3002,7 +3038,28 @@ export declare class EnrollResponse {
3002
3038
  * Details about a payment card derived from its BIN/IIN.
3003
3039
  */
3004
3040
  cardMetadata?: CardMetadata;
3005
- 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);
3041
+ /**
3042
+ * The type of account (checking, savings, etc) for an ACH payment method.
3043
+ */
3044
+ accountType?: string;
3045
+ /**
3046
+ * The type of account holder (personal, business, etc) for an ACH payment method.
3047
+ */
3048
+ accountHolderType?: string;
3049
+ /**
3050
+ * The bank name for an ACH payment method.
3051
+ */
3052
+ bankName?: string;
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);
3006
3063
  }
3007
3064
  /**
3008
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, 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
  */
@@ -926,6 +926,30 @@ class CustomerToken {
926
926
  * Payment type.
927
927
  */
928
928
  this.paymentType = null;
929
+ /**
930
+ * Bank account type (checking, saving).
931
+ */
932
+ this.accountType = null;
933
+ /**
934
+ * Bank account holder type (personal, business).
935
+ */
936
+ this.accountHolderType = null;
937
+ /**
938
+ * Bank name.
939
+ */
940
+ this.bankName = null;
941
+ /**
942
+ * Routing number.
943
+ */
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;
929
953
  /**
930
954
  * Models customer records associated with a payment token.
931
955
  */
@@ -935,6 +959,12 @@ class CustomerToken {
935
959
  this.expiryMonth = expiryMonth;
936
960
  this.expiryYear = expiryYear;
937
961
  this.paymentType = paymentType;
962
+ this.accountType = accountType;
963
+ this.accountHolderType = accountHolderType;
964
+ this.bankName = bankName;
965
+ this.routingNumber = routingNumber;
966
+ this.tokenHash = tokenHash;
967
+ this.bin = bin;
938
968
  this.customers = customers;
939
969
  }
940
970
  }
@@ -1976,7 +2006,7 @@ exports.VoidResponse = VoidResponse;
1976
2006
  */
1977
2007
  class EnrollRequest {
1978
2008
  // Constructor with default values for optional fields
1979
- constructor(timeout = null, test = null, transactionRef = undefined, autogeneratedRef = null, async = null, queue = null, waitForRemovedCard = false, force = false, orderRef = undefined, destinationAccount = undefined, testCase = undefined, token = undefined, track1 = undefined, track2 = undefined, pan = undefined, routingNumber = undefined, cardholderName = undefined, expMonth = undefined, expYear = undefined, cvv = undefined, address = undefined, postalCode = undefined, manualEntry = false, ksn = undefined, pinBlock = undefined, cardType = undefined, paymentType = undefined, terminalName = undefined, resetConnection = null, entryMethod = undefined, customer = undefined, recurring = false, subscription = false, cardMetadataLookup = false) {
2009
+ constructor(timeout = null, test = null, transactionRef = undefined, autogeneratedRef = null, async = null, queue = null, waitForRemovedCard = false, force = false, orderRef = undefined, destinationAccount = undefined, testCase = undefined, token = undefined, track1 = undefined, track2 = undefined, pan = undefined, routingNumber = undefined, cardholderName = undefined, expMonth = undefined, expYear = undefined, cvv = undefined, address = undefined, postalCode = undefined, manualEntry = false, ksn = undefined, pinBlock = undefined, cardType = undefined, paymentType = undefined, terminalName = undefined, resetConnection = null, entryMethod = undefined, customer = undefined, recurring = false, subscription = false, cardMetadataLookup = false, accountType = undefined, accountHolderType = undefined, bankName = undefined) {
1980
2010
  /**
1981
2011
  * The request timeout in seconds.
1982
2012
  */
@@ -2039,6 +2069,9 @@ class EnrollRequest {
2039
2069
  this.recurring = recurring;
2040
2070
  this.subscription = subscription;
2041
2071
  this.cardMetadataLookup = cardMetadataLookup;
2072
+ this.accountType = accountType;
2073
+ this.accountHolderType = accountHolderType;
2074
+ this.bankName = bankName;
2042
2075
  }
2043
2076
  }
2044
2077
  exports.EnrollRequest = EnrollRequest;
@@ -2047,7 +2080,7 @@ exports.EnrollRequest = EnrollRequest;
2047
2080
  */
2048
2081
  class EnrollResponse {
2049
2082
  // Constructor with default values for optional fields
2050
- 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) {
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) {
2051
2084
  /**
2052
2085
  * Whether or not the request succeeded.
2053
2086
  */
@@ -2128,6 +2161,11 @@ class EnrollResponse {
2128
2161
  this.customers = customers;
2129
2162
  this.sigFile = sigFile;
2130
2163
  this.cardMetadata = cardMetadata;
2164
+ this.accountType = accountType;
2165
+ this.accountHolderType = accountHolderType;
2166
+ this.bankName = bankName;
2167
+ this.tokenHash = tokenHash;
2168
+ this.bin = bin;
2131
2169
  }
2132
2170
  }
2133
2171
  exports.EnrollResponse = EnrollResponse;