@blockchyp/blockchyp-ts 2.21.0 → 2.22.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,27 @@ 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;
1095
1111
  /**
1096
1112
  * Models customer records associated with a payment token.
1097
1113
  */
1098
1114
  customers: Customer[] | null;
1099
- constructor(token?: string | null, maskedPan?: string | null, expiryMonth?: string | null, expiryYear?: string | null, paymentType?: string | null, 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);
1100
1116
  }
1101
1117
  /**
1102
1118
  * The response to a text prompt request.
@@ -2861,7 +2877,19 @@ export declare class EnrollRequest {
2861
2877
  * That this transaction will include a card metadata lookup.
2862
2878
  */
2863
2879
  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);
2880
+ /**
2881
+ * The type of account (checking, savings, etc) for an ACH payment method.
2882
+ */
2883
+ accountType?: string;
2884
+ /**
2885
+ * The type of account holder (personal, business, etc) for an ACH payment method.
2886
+ */
2887
+ accountHolderType?: string;
2888
+ /**
2889
+ * The bank name for an ACH payment method.
2890
+ */
2891
+ bankName?: string;
2892
+ 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
2893
  }
2866
2894
  /**
2867
2895
  * The response to an enroll request.
@@ -3002,7 +3030,19 @@ export declare class EnrollResponse {
3002
3030
  * Details about a payment card derived from its BIN/IIN.
3003
3031
  */
3004
3032
  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);
3033
+ /**
3034
+ * The type of account (checking, savings, etc) for an ACH payment method.
3035
+ */
3036
+ accountType?: string;
3037
+ /**
3038
+ * The type of account holder (personal, business, etc) for an ACH payment method.
3039
+ */
3040
+ accountHolderType?: string;
3041
+ /**
3042
+ * The bank name for an ACH payment method.
3043
+ */
3044
+ bankName?: string;
3045
+ 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);
3006
3046
  }
3007
3047
  /**
3008
3048
  * 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, customers = null) {
909
909
  /**
910
910
  * BlockChyp assigned customer id.
911
911
  */
@@ -926,6 +926,22 @@ 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;
929
945
  /**
930
946
  * Models customer records associated with a payment token.
931
947
  */
@@ -935,6 +951,10 @@ class CustomerToken {
935
951
  this.expiryMonth = expiryMonth;
936
952
  this.expiryYear = expiryYear;
937
953
  this.paymentType = paymentType;
954
+ this.accountType = accountType;
955
+ this.accountHolderType = accountHolderType;
956
+ this.bankName = bankName;
957
+ this.routingNumber = routingNumber;
938
958
  this.customers = customers;
939
959
  }
940
960
  }
@@ -1976,7 +1996,7 @@ exports.VoidResponse = VoidResponse;
1976
1996
  */
1977
1997
  class EnrollRequest {
1978
1998
  // 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) {
1999
+ 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
2000
  /**
1981
2001
  * The request timeout in seconds.
1982
2002
  */
@@ -2039,6 +2059,9 @@ class EnrollRequest {
2039
2059
  this.recurring = recurring;
2040
2060
  this.subscription = subscription;
2041
2061
  this.cardMetadataLookup = cardMetadataLookup;
2062
+ this.accountType = accountType;
2063
+ this.accountHolderType = accountHolderType;
2064
+ this.bankName = bankName;
2042
2065
  }
2043
2066
  }
2044
2067
  exports.EnrollRequest = EnrollRequest;
@@ -2047,7 +2070,7 @@ exports.EnrollRequest = EnrollRequest;
2047
2070
  */
2048
2071
  class EnrollResponse {
2049
2072
  // 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) {
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) {
2051
2074
  /**
2052
2075
  * Whether or not the request succeeded.
2053
2076
  */
@@ -2128,6 +2151,9 @@ class EnrollResponse {
2128
2151
  this.customers = customers;
2129
2152
  this.sigFile = sigFile;
2130
2153
  this.cardMetadata = cardMetadata;
2154
+ this.accountType = accountType;
2155
+ this.accountHolderType = accountHolderType;
2156
+ this.bankName = bankName;
2131
2157
  }
2132
2158
  }
2133
2159
  exports.EnrollResponse = EnrollResponse;