@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockchyp/blockchyp-ts",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "BlockChyp Typescript Client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -69,14 +69,14 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "aes-js": "^3.1.1",
72
- "axios": "^1.7.7",
72
+ "axios": "^1.9.0",
73
73
  "base32": "^0.0.7",
74
- "bn.js": "^4.11.8",
74
+ "bn.js": "^4.12.2",
75
75
  "buffer": "^6.0.3",
76
76
  "cached-path-relative": "^1.0.2",
77
77
  "create-hmac": "^1.1.7",
78
- "crypto-browserify": "^3.12.0",
79
- "elliptic": "^6.5.5",
78
+ "crypto-browserify": "^3.12.1",
79
+ "elliptic": "^6.6.1",
80
80
  "moment": "^2.22.2",
81
81
  "npm": "^10.8.3",
82
82
  "randombytes": "^2.0.6",
package/src/models.ts CHANGED
@@ -1859,6 +1859,26 @@ 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
+
1862
1882
  /**
1863
1883
  * Models customer records associated with a payment token.
1864
1884
  */
@@ -1871,6 +1891,10 @@ export class CustomerToken {
1871
1891
  expiryMonth: string | null = null,
1872
1892
  expiryYear: string | null = null,
1873
1893
  paymentType: string | null = null,
1894
+ accountType: string | null = null,
1895
+ accountHolderType: string | null = null,
1896
+ bankName: string | null = null,
1897
+ routingNumber: string | null = null,
1874
1898
  customers: Customer[] | null = null,
1875
1899
  ) {
1876
1900
  this.token = token;
@@ -1878,6 +1902,10 @@ export class CustomerToken {
1878
1902
  this.expiryMonth = expiryMonth;
1879
1903
  this.expiryYear = expiryYear;
1880
1904
  this.paymentType = paymentType;
1905
+ this.accountType = accountType;
1906
+ this.accountHolderType = accountHolderType;
1907
+ this.bankName = bankName;
1908
+ this.routingNumber = routingNumber;
1881
1909
  this.customers = customers;
1882
1910
  }
1883
1911
  }
@@ -4811,6 +4839,21 @@ export class EnrollRequest {
4811
4839
  */
4812
4840
  cardMetadataLookup?: boolean;
4813
4841
 
4842
+ /**
4843
+ * The type of account (checking, savings, etc) for an ACH payment method.
4844
+ */
4845
+ accountType?: string;
4846
+
4847
+ /**
4848
+ * The type of account holder (personal, business, etc) for an ACH payment method.
4849
+ */
4850
+ accountHolderType?: string;
4851
+
4852
+ /**
4853
+ * The bank name for an ACH payment method.
4854
+ */
4855
+ bankName?: string;
4856
+
4814
4857
  // Constructor with default values for optional fields
4815
4858
  constructor(
4816
4859
  timeout: number | null = null,
@@ -4847,6 +4890,9 @@ export class EnrollRequest {
4847
4890
  recurring: boolean = false,
4848
4891
  subscription: boolean = false,
4849
4892
  cardMetadataLookup: boolean = false,
4893
+ accountType: string | undefined = undefined,
4894
+ accountHolderType: string | undefined = undefined,
4895
+ bankName: string | undefined = undefined,
4850
4896
  ) {
4851
4897
  this.timeout = timeout;
4852
4898
  this.test = test;
@@ -4882,6 +4928,9 @@ export class EnrollRequest {
4882
4928
  this.recurring = recurring;
4883
4929
  this.subscription = subscription;
4884
4930
  this.cardMetadataLookup = cardMetadataLookup;
4931
+ this.accountType = accountType;
4932
+ this.accountHolderType = accountHolderType;
4933
+ this.bankName = bankName;
4885
4934
  }
4886
4935
  }
4887
4936
 
@@ -5057,6 +5106,21 @@ export class EnrollResponse {
5057
5106
  */
5058
5107
  cardMetadata?: CardMetadata;
5059
5108
 
5109
+ /**
5110
+ * The type of account (checking, savings, etc) for an ACH payment method.
5111
+ */
5112
+ accountType?: string;
5113
+
5114
+ /**
5115
+ * The type of account holder (personal, business, etc) for an ACH payment method.
5116
+ */
5117
+ accountHolderType?: string;
5118
+
5119
+ /**
5120
+ * The bank name for an ACH payment method.
5121
+ */
5122
+ bankName?: string;
5123
+
5060
5124
  // Constructor with default values for optional fields
5061
5125
  constructor(
5062
5126
  success: boolean | null = null,
@@ -5091,6 +5155,9 @@ export class EnrollResponse {
5091
5155
  customers: Customer[] | null = null,
5092
5156
  sigFile: string | undefined = undefined,
5093
5157
  cardMetadata: CardMetadata | undefined = undefined,
5158
+ accountType: string | undefined = undefined,
5159
+ accountHolderType: string | undefined = undefined,
5160
+ bankName: string | undefined = undefined,
5094
5161
  ) {
5095
5162
  this.success = success;
5096
5163
  this.error = error;
@@ -5124,6 +5191,9 @@ export class EnrollResponse {
5124
5191
  this.customers = customers;
5125
5192
  this.sigFile = sigFile;
5126
5193
  this.cardMetadata = cardMetadata;
5194
+ this.accountType = accountType;
5195
+ this.accountHolderType = accountHolderType;
5196
+ this.bankName = bankName;
5127
5197
  }
5128
5198
  }
5129
5199