@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockchyp/blockchyp-ts",
3
- "version": "2.21.2",
3
+ "version": "2.23.0",
4
4
  "description": "BlockChyp Typescript Client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/models.ts CHANGED
@@ -1859,6 +1859,36 @@ export class CustomerToken {
1859
1859
  */
1860
1860
  paymentType: string | null = null;
1861
1861
 
1862
+ /**
1863
+ * Bank account type (checking, saving).
1864
+ */
1865
+ accountType: string | null = null;
1866
+
1867
+ /**
1868
+ * Bank account holder type (personal, business).
1869
+ */
1870
+ accountHolderType: string | null = null;
1871
+
1872
+ /**
1873
+ * Bank name.
1874
+ */
1875
+ bankName: string | null = null;
1876
+
1877
+ /**
1878
+ * Routing number.
1879
+ */
1880
+ routingNumber: string | null = null;
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
+
1862
1892
  /**
1863
1893
  * Models customer records associated with a payment token.
1864
1894
  */
@@ -1871,6 +1901,12 @@ export class CustomerToken {
1871
1901
  expiryMonth: string | null = null,
1872
1902
  expiryYear: string | null = null,
1873
1903
  paymentType: string | null = null,
1904
+ accountType: string | null = null,
1905
+ accountHolderType: string | null = null,
1906
+ bankName: string | null = null,
1907
+ routingNumber: string | null = null,
1908
+ tokenHash: string | null = null,
1909
+ bin: string | null = null,
1874
1910
  customers: Customer[] | null = null,
1875
1911
  ) {
1876
1912
  this.token = token;
@@ -1878,6 +1914,12 @@ export class CustomerToken {
1878
1914
  this.expiryMonth = expiryMonth;
1879
1915
  this.expiryYear = expiryYear;
1880
1916
  this.paymentType = paymentType;
1917
+ this.accountType = accountType;
1918
+ this.accountHolderType = accountHolderType;
1919
+ this.bankName = bankName;
1920
+ this.routingNumber = routingNumber;
1921
+ this.tokenHash = tokenHash;
1922
+ this.bin = bin;
1881
1923
  this.customers = customers;
1882
1924
  }
1883
1925
  }
@@ -4811,6 +4853,21 @@ export class EnrollRequest {
4811
4853
  */
4812
4854
  cardMetadataLookup?: boolean;
4813
4855
 
4856
+ /**
4857
+ * The type of account (checking, savings, etc) for an ACH payment method.
4858
+ */
4859
+ accountType?: string;
4860
+
4861
+ /**
4862
+ * The type of account holder (personal, business, etc) for an ACH payment method.
4863
+ */
4864
+ accountHolderType?: string;
4865
+
4866
+ /**
4867
+ * The bank name for an ACH payment method.
4868
+ */
4869
+ bankName?: string;
4870
+
4814
4871
  // Constructor with default values for optional fields
4815
4872
  constructor(
4816
4873
  timeout: number | null = null,
@@ -4847,6 +4904,9 @@ export class EnrollRequest {
4847
4904
  recurring: boolean = false,
4848
4905
  subscription: boolean = false,
4849
4906
  cardMetadataLookup: boolean = false,
4907
+ accountType: string | undefined = undefined,
4908
+ accountHolderType: string | undefined = undefined,
4909
+ bankName: string | undefined = undefined,
4850
4910
  ) {
4851
4911
  this.timeout = timeout;
4852
4912
  this.test = test;
@@ -4882,6 +4942,9 @@ export class EnrollRequest {
4882
4942
  this.recurring = recurring;
4883
4943
  this.subscription = subscription;
4884
4944
  this.cardMetadataLookup = cardMetadataLookup;
4945
+ this.accountType = accountType;
4946
+ this.accountHolderType = accountHolderType;
4947
+ this.bankName = bankName;
4885
4948
  }
4886
4949
  }
4887
4950
 
@@ -5057,6 +5120,32 @@ export class EnrollResponse {
5057
5120
  */
5058
5121
  cardMetadata?: CardMetadata;
5059
5122
 
5123
+ /**
5124
+ * The type of account (checking, savings, etc) for an ACH payment method.
5125
+ */
5126
+ accountType?: string;
5127
+
5128
+ /**
5129
+ * The type of account holder (personal, business, etc) for an ACH payment method.
5130
+ */
5131
+ accountHolderType?: string;
5132
+
5133
+ /**
5134
+ * The bank name for an ACH payment method.
5135
+ */
5136
+ bankName?: string;
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
+
5060
5149
  // Constructor with default values for optional fields
5061
5150
  constructor(
5062
5151
  success: boolean | null = null,
@@ -5091,6 +5180,11 @@ export class EnrollResponse {
5091
5180
  customers: Customer[] | null = null,
5092
5181
  sigFile: string | undefined = undefined,
5093
5182
  cardMetadata: CardMetadata | undefined = undefined,
5183
+ accountType: string | undefined = undefined,
5184
+ accountHolderType: string | undefined = undefined,
5185
+ bankName: string | undefined = undefined,
5186
+ tokenHash: string | undefined = undefined,
5187
+ bin: string | undefined = undefined,
5094
5188
  ) {
5095
5189
  this.success = success;
5096
5190
  this.error = error;
@@ -5124,6 +5218,11 @@ export class EnrollResponse {
5124
5218
  this.customers = customers;
5125
5219
  this.sigFile = sigFile;
5126
5220
  this.cardMetadata = cardMetadata;
5221
+ this.accountType = accountType;
5222
+ this.accountHolderType = accountHolderType;
5223
+ this.bankName = bankName;
5224
+ this.tokenHash = tokenHash;
5225
+ this.bin = bin;
5127
5226
  }
5128
5227
  }
5129
5228