increase 0.261.0 → 0.262.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.d.mts +9 -0
  3. package/index.d.ts +9 -0
  4. package/index.d.ts.map +1 -1
  5. package/index.js +12 -0
  6. package/index.js.map +1 -1
  7. package/index.mjs +12 -0
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/card-push-transfers.d.ts +633 -0
  11. package/resources/card-push-transfers.d.ts.map +1 -0
  12. package/resources/card-push-transfers.js +94 -0
  13. package/resources/card-push-transfers.js.map +1 -0
  14. package/resources/card-push-transfers.mjs +89 -0
  15. package/resources/card-push-transfers.mjs.map +1 -0
  16. package/resources/card-tokens.d.ts +154 -0
  17. package/resources/card-tokens.d.ts.map +1 -0
  18. package/resources/card-tokens.js +50 -0
  19. package/resources/card-tokens.js.map +1 -0
  20. package/resources/card-tokens.mjs +45 -0
  21. package/resources/card-tokens.mjs.map +1 -0
  22. package/resources/card-validations.d.ts +508 -0
  23. package/resources/card-validations.d.ts.map +1 -0
  24. package/resources/card-validations.js +54 -0
  25. package/resources/card-validations.js.map +1 -0
  26. package/resources/card-validations.mjs +49 -0
  27. package/resources/card-validations.mjs.map +1 -0
  28. package/resources/index.d.ts +3 -0
  29. package/resources/index.d.ts.map +1 -1
  30. package/resources/index.js +12 -2
  31. package/resources/index.js.map +1 -1
  32. package/resources/index.mjs +3 -0
  33. package/resources/index.mjs.map +1 -1
  34. package/resources/simulations/card-tokens.d.ts +66 -0
  35. package/resources/simulations/card-tokens.d.ts.map +1 -0
  36. package/resources/simulations/card-tokens.js +21 -0
  37. package/resources/simulations/card-tokens.js.map +1 -0
  38. package/resources/simulations/card-tokens.mjs +17 -0
  39. package/resources/simulations/card-tokens.mjs.map +1 -0
  40. package/resources/simulations/index.d.ts +1 -0
  41. package/resources/simulations/index.d.ts.map +1 -1
  42. package/resources/simulations/index.js +3 -1
  43. package/resources/simulations/index.js.map +1 -1
  44. package/resources/simulations/index.mjs +1 -0
  45. package/resources/simulations/index.mjs.map +1 -1
  46. package/resources/simulations/simulations.d.ts +4 -0
  47. package/resources/simulations/simulations.d.ts.map +1 -1
  48. package/resources/simulations/simulations.js +4 -0
  49. package/resources/simulations/simulations.js.map +1 -1
  50. package/resources/simulations/simulations.mjs +4 -0
  51. package/resources/simulations/simulations.mjs.map +1 -1
  52. package/src/index.ts +54 -0
  53. package/src/resources/card-push-transfers.ts +834 -0
  54. package/src/resources/card-tokens.ts +200 -0
  55. package/src/resources/card-validations.ts +643 -0
  56. package/src/resources/index.ts +21 -0
  57. package/src/resources/simulations/card-tokens.ts +82 -0
  58. package/src/resources/simulations/index.ts +1 -0
  59. package/src/resources/simulations/simulations.ts +6 -0
  60. package/src/version.ts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
@@ -0,0 +1,82 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import * as CardTokensAPI from '../card-tokens';
6
+
7
+ export class CardTokens extends APIResource {
8
+ /**
9
+ * Simulates tokenizing a card in the sandbox environment.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const cardToken =
14
+ * await client.simulations.cardTokens.create();
15
+ * ```
16
+ */
17
+ create(
18
+ body: CardTokenCreateParams,
19
+ options?: Core.RequestOptions,
20
+ ): Core.APIPromise<CardTokensAPI.CardToken> {
21
+ return this._client.post('/simulations/card_tokens', { body, ...options });
22
+ }
23
+ }
24
+
25
+ export interface CardTokenCreateParams {
26
+ /**
27
+ * The capabilities of the outbound card token.
28
+ */
29
+ capabilities?: Array<CardTokenCreateParams.Capability>;
30
+
31
+ /**
32
+ * The expiration date of the card.
33
+ */
34
+ expiration?: string;
35
+
36
+ /**
37
+ * The last 4 digits of the card number.
38
+ */
39
+ last4?: string;
40
+
41
+ /**
42
+ * The prefix of the card number, usually the first 8 digits.
43
+ */
44
+ prefix?: string;
45
+
46
+ /**
47
+ * The total length of the card number, including prefix and last4.
48
+ */
49
+ primary_account_number_length?: number;
50
+ }
51
+
52
+ export namespace CardTokenCreateParams {
53
+ export interface Capability {
54
+ /**
55
+ * The cross-border push transfers capability.
56
+ *
57
+ * - `supported` - The capability is supported.
58
+ * - `not_supported` - The capability is not supported.
59
+ */
60
+ cross_border_push_transfers: 'supported' | 'not_supported';
61
+
62
+ /**
63
+ * The domestic push transfers capability.
64
+ *
65
+ * - `supported` - The capability is supported.
66
+ * - `not_supported` - The capability is not supported.
67
+ */
68
+ domestic_push_transfers: 'supported' | 'not_supported';
69
+
70
+ /**
71
+ * The route of the capability.
72
+ *
73
+ * - `visa` - Visa and Interlink
74
+ * - `mastercard` - Mastercard and Maestro
75
+ */
76
+ route: 'visa' | 'mastercard';
77
+ }
78
+ }
79
+
80
+ export declare namespace CardTokens {
81
+ export { type CardTokenCreateParams as CardTokenCreateParams };
82
+ }
@@ -22,6 +22,7 @@ export { CardIncrements, type CardIncrementCreateParams } from './card-increment
22
22
  export { CardRefunds, type CardRefundCreateParams } from './card-refunds';
23
23
  export { CardReversals, type CardReversalCreateParams } from './card-reversals';
24
24
  export { CardSettlements, type CardSettlementCreateParams } from './card-settlements';
25
+ export { CardTokens, type CardTokenCreateParams } from './card-tokens';
25
26
  export { CheckDeposits } from './check-deposits';
26
27
  export { CheckTransfers } from './check-transfers';
27
28
  export {
@@ -34,6 +34,8 @@ import * as CardReversalsAPI from './card-reversals';
34
34
  import { CardReversalCreateParams, CardReversals } from './card-reversals';
35
35
  import * as CardSettlementsAPI from './card-settlements';
36
36
  import { CardSettlementCreateParams, CardSettlements } from './card-settlements';
37
+ import * as CardTokensAPI from './card-tokens';
38
+ import { CardTokenCreateParams, CardTokens } from './card-tokens';
37
39
  import * as CheckDepositsAPI from './check-deposits';
38
40
  import { CheckDeposits } from './check-deposits';
39
41
  import * as CheckTransfersAPI from './check-transfers';
@@ -137,6 +139,7 @@ export class Simulations extends APIResource {
137
139
  this._client,
138
140
  );
139
141
  documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this._client);
142
+ cardTokens: CardTokensAPI.CardTokens = new CardTokensAPI.CardTokens(this._client);
140
143
  }
141
144
 
142
145
  Simulations.InterestPayments = InterestPayments;
@@ -167,6 +170,7 @@ Simulations.InboundMailItems = InboundMailItems;
167
170
  Simulations.Programs = Programs;
168
171
  Simulations.AccountStatements = AccountStatements;
169
172
  Simulations.Documents = Documents;
173
+ Simulations.CardTokens = CardTokens;
170
174
 
171
175
  export declare namespace Simulations {
172
176
  export {
@@ -279,4 +283,6 @@ export declare namespace Simulations {
279
283
  };
280
284
 
281
285
  export { Documents as Documents, type DocumentCreateParams as DocumentCreateParams };
286
+
287
+ export { CardTokens as CardTokens, type CardTokenCreateParams as CardTokenCreateParams };
282
288
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.261.0'; // x-release-please-version
1
+ export const VERSION = '0.262.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.261.0";
1
+ export declare const VERSION = "0.262.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.261.0'; // x-release-please-version
4
+ exports.VERSION = '0.262.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.261.0'; // x-release-please-version
1
+ export const VERSION = '0.262.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map