@naturalpay/sdk 1.6.10 → 1.6.11

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 (44) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +8 -8
  3. package/dist/cjs/Client.js +16 -16
  4. package/dist/cjs/api/resources/externalParties/client/requests/NewExtPartyParams.d.ts +1 -1
  5. package/dist/cjs/api/resources/externalParties/types/NewExtPartyParamsAddress.d.ts +7 -4
  6. package/dist/cjs/api/resources/transactions/types/ListTransactionsRequestType.d.ts +1 -0
  7. package/dist/cjs/api/resources/transactions/types/ListTransactionsRequestType.js +1 -0
  8. package/dist/cjs/api/resources/transactions/types/TxnDetailTransactionType.d.ts +1 -0
  9. package/dist/cjs/api/resources/transactions/types/TxnDetailTransactionType.js +1 -0
  10. package/dist/cjs/api/resources/transactions/types/TxnTransactionType.d.ts +1 -0
  11. package/dist/cjs/api/resources/transactions/types/TxnTransactionType.js +1 -0
  12. package/dist/cjs/serialization/resources/externalParties/types/NewExtPartyParamsAddress.d.ts +3 -3
  13. package/dist/cjs/serialization/resources/externalParties/types/NewExtPartyParamsAddress.js +3 -3
  14. package/dist/cjs/serialization/resources/transactions/types/ListTransactionsRequestType.d.ts +1 -1
  15. package/dist/cjs/serialization/resources/transactions/types/ListTransactionsRequestType.js +1 -1
  16. package/dist/cjs/serialization/resources/transactions/types/TxnDetailTransactionType.d.ts +1 -1
  17. package/dist/cjs/serialization/resources/transactions/types/TxnDetailTransactionType.js +1 -1
  18. package/dist/cjs/serialization/resources/transactions/types/TxnTransactionType.d.ts +1 -1
  19. package/dist/cjs/serialization/resources/transactions/types/TxnTransactionType.js +1 -1
  20. package/dist/cjs/version.d.ts +1 -1
  21. package/dist/cjs/version.js +1 -1
  22. package/dist/esm/BaseClient.mjs +2 -2
  23. package/dist/esm/Client.d.mts +8 -8
  24. package/dist/esm/Client.mjs +16 -16
  25. package/dist/esm/api/resources/externalParties/client/requests/NewExtPartyParams.d.mts +1 -1
  26. package/dist/esm/api/resources/externalParties/types/NewExtPartyParamsAddress.d.mts +7 -4
  27. package/dist/esm/api/resources/transactions/types/ListTransactionsRequestType.d.mts +1 -0
  28. package/dist/esm/api/resources/transactions/types/ListTransactionsRequestType.mjs +1 -0
  29. package/dist/esm/api/resources/transactions/types/TxnDetailTransactionType.d.mts +1 -0
  30. package/dist/esm/api/resources/transactions/types/TxnDetailTransactionType.mjs +1 -0
  31. package/dist/esm/api/resources/transactions/types/TxnTransactionType.d.mts +1 -0
  32. package/dist/esm/api/resources/transactions/types/TxnTransactionType.mjs +1 -0
  33. package/dist/esm/serialization/resources/externalParties/types/NewExtPartyParamsAddress.d.mts +3 -3
  34. package/dist/esm/serialization/resources/externalParties/types/NewExtPartyParamsAddress.mjs +3 -3
  35. package/dist/esm/serialization/resources/transactions/types/ListTransactionsRequestType.d.mts +1 -1
  36. package/dist/esm/serialization/resources/transactions/types/ListTransactionsRequestType.mjs +1 -1
  37. package/dist/esm/serialization/resources/transactions/types/TxnDetailTransactionType.d.mts +1 -1
  38. package/dist/esm/serialization/resources/transactions/types/TxnDetailTransactionType.mjs +1 -1
  39. package/dist/esm/serialization/resources/transactions/types/TxnTransactionType.d.mts +1 -1
  40. package/dist/esm/serialization/resources/transactions/types/TxnTransactionType.mjs +1 -1
  41. package/dist/esm/version.d.mts +1 -1
  42. package/dist/esm/version.mjs +1 -1
  43. package/package.json +45 -45
  44. package/reference.md +573 -573
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@naturalpay/sdk",
46
- "X-Fern-SDK-Version": "1.6.10",
47
- "User-Agent": "@naturalpay/sdk/1.6.10",
46
+ "X-Fern-SDK-Version": "1.6.11",
47
+ "User-Agent": "@naturalpay/sdk/1.6.11",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -33,6 +33,10 @@ export declare class NaturalClient {
33
33
  protected _customers: CustomersClient | undefined;
34
34
  protected _invitationLinks: InvitationLinksClient | undefined;
35
35
  protected _payments: PaymentsClient | undefined;
36
+ protected _externalParties: ExternalPartiesClient | undefined;
37
+ protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
38
+ protected _ach: AchClient | undefined;
39
+ protected _realtime: RealtimeClient | undefined;
36
40
  protected _transactions: TransactionsClient | undefined;
37
41
  protected _transfers: TransfersClient | undefined;
38
42
  protected _paymentRequests: PaymentRequestsClient | undefined;
@@ -41,10 +45,6 @@ export declare class NaturalClient {
41
45
  protected _parties: PartiesClient | undefined;
42
46
  protected _wallets: WalletsClient | undefined;
43
47
  protected _externalAccounts: ExternalAccountsClient | undefined;
44
- protected _externalParties: ExternalPartiesClient | undefined;
45
- protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
46
- protected _ach: AchClient | undefined;
47
- protected _realtime: RealtimeClient | undefined;
48
48
  protected _apiKeys: ApiKeysClient | undefined;
49
49
  protected _agentKeys: AgentKeysClient | undefined;
50
50
  protected _webhooks: WebhooksClient | undefined;
@@ -55,6 +55,10 @@ export declare class NaturalClient {
55
55
  get customers(): CustomersClient;
56
56
  get invitationLinks(): InvitationLinksClient;
57
57
  get payments(): PaymentsClient;
58
+ get externalParties(): ExternalPartiesClient;
59
+ get externalPartyAccounts(): ExternalPartyAccountsClient;
60
+ get ach(): AchClient;
61
+ get realtime(): RealtimeClient;
58
62
  get transactions(): TransactionsClient;
59
63
  get transfers(): TransfersClient;
60
64
  get paymentRequests(): PaymentRequestsClient;
@@ -63,10 +67,6 @@ export declare class NaturalClient {
63
67
  get parties(): PartiesClient;
64
68
  get wallets(): WalletsClient;
65
69
  get externalAccounts(): ExternalAccountsClient;
66
- get externalParties(): ExternalPartiesClient;
67
- get externalPartyAccounts(): ExternalPartyAccountsClient;
68
- get ach(): AchClient;
69
- get realtime(): RealtimeClient;
70
70
  get apiKeys(): ApiKeysClient;
71
71
  get agentKeys(): AgentKeysClient;
72
72
  get webhooks(): WebhooksClient;
@@ -87,6 +87,22 @@ class NaturalClient {
87
87
  var _a;
88
88
  return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_15.PaymentsClient(this._options)));
89
89
  }
90
+ get externalParties() {
91
+ var _a;
92
+ return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new Client_js_9.ExternalPartiesClient(this._options)));
93
+ }
94
+ get externalPartyAccounts() {
95
+ var _a;
96
+ return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new Client_js_10.ExternalPartyAccountsClient(this._options)));
97
+ }
98
+ get ach() {
99
+ var _a;
100
+ return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new Client_js_1.AchClient(this._options)));
101
+ }
102
+ get realtime() {
103
+ var _a;
104
+ return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new Client_js_16.RealtimeClient(this._options)));
105
+ }
90
106
  get transactions() {
91
107
  var _a;
92
108
  return ((_a = this._transactions) !== null && _a !== void 0 ? _a : (this._transactions = new Client_js_18.TransactionsClient(this._options)));
@@ -119,22 +135,6 @@ class NaturalClient {
119
135
  var _a;
120
136
  return ((_a = this._externalAccounts) !== null && _a !== void 0 ? _a : (this._externalAccounts = new Client_js_8.ExternalAccountsClient(this._options)));
121
137
  }
122
- get externalParties() {
123
- var _a;
124
- return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new Client_js_9.ExternalPartiesClient(this._options)));
125
- }
126
- get externalPartyAccounts() {
127
- var _a;
128
- return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new Client_js_10.ExternalPartyAccountsClient(this._options)));
129
- }
130
- get ach() {
131
- var _a;
132
- return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new Client_js_1.AchClient(this._options)));
133
- }
134
- get realtime() {
135
- var _a;
136
- return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new Client_js_16.RealtimeClient(this._options)));
137
- }
138
138
  get apiKeys() {
139
139
  var _a;
140
140
  return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_4.ApiKeysClient(this._options)));
@@ -29,6 +29,6 @@ export interface NewExtPartyParams {
29
29
  email?: string;
30
30
  /** External party phone number. It is normalized to E.164. */
31
31
  phone?: string;
32
- /** External party address. */
32
+ /** Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode. */
33
33
  address?: Natural.NewExtPartyParamsAddress;
34
34
  }
@@ -1,11 +1,14 @@
1
1
  /**
2
- * External party address.
2
+ * Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode.
3
3
  */
4
4
  export interface NewExtPartyParamsAddress {
5
- line1?: string;
5
+ line1: string;
6
6
  line2?: string;
7
- city?: string;
7
+ city: string;
8
+ /** State or province. Required for US addresses. */
8
9
  state?: string;
10
+ /** Postal or ZIP code. Required for US addresses. */
9
11
  postalCode?: string;
10
- countryCode?: string;
12
+ /** ISO 3166-1 alpha-2 country code. */
13
+ countryCode: string;
11
14
  }
@@ -2,6 +2,7 @@
2
2
  export declare const ListTransactionsRequestType: {
3
3
  readonly Payment: "payment";
4
4
  readonly Transfer: "transfer";
5
+ readonly Refund: "refund";
5
6
  readonly All: "all";
6
7
  };
7
8
  export type ListTransactionsRequestType = (typeof ListTransactionsRequestType)[keyof typeof ListTransactionsRequestType];
@@ -6,5 +6,6 @@ exports.ListTransactionsRequestType = void 0;
6
6
  exports.ListTransactionsRequestType = {
7
7
  Payment: "payment",
8
8
  Transfer: "transfer",
9
+ Refund: "refund",
9
10
  All: "all",
10
11
  };
@@ -2,5 +2,6 @@
2
2
  export declare const TxnDetailTransactionType: {
3
3
  readonly Payment: "payment";
4
4
  readonly Transfer: "transfer";
5
+ readonly Refund: "refund";
5
6
  };
6
7
  export type TxnDetailTransactionType = (typeof TxnDetailTransactionType)[keyof typeof TxnDetailTransactionType];
@@ -6,4 +6,5 @@ exports.TxnDetailTransactionType = void 0;
6
6
  exports.TxnDetailTransactionType = {
7
7
  Payment: "payment",
8
8
  Transfer: "transfer",
9
+ Refund: "refund",
9
10
  };
@@ -2,5 +2,6 @@
2
2
  export declare const TxnTransactionType: {
3
3
  readonly Payment: "payment";
4
4
  readonly Transfer: "transfer";
5
+ readonly Refund: "refund";
5
6
  };
6
7
  export type TxnTransactionType = (typeof TxnTransactionType)[keyof typeof TxnTransactionType];
@@ -6,4 +6,5 @@ exports.TxnTransactionType = void 0;
6
6
  exports.TxnTransactionType = {
7
7
  Payment: "payment",
8
8
  Transfer: "transfer",
9
+ Refund: "refund",
9
10
  };
@@ -4,11 +4,11 @@ import type * as serializers from "../../../index.js";
4
4
  export declare const NewExtPartyParamsAddress: core.serialization.ObjectSchema<serializers.NewExtPartyParamsAddress.Raw, Natural.NewExtPartyParamsAddress>;
5
5
  export declare namespace NewExtPartyParamsAddress {
6
6
  interface Raw {
7
- line1?: string | null;
7
+ line1: string;
8
8
  line2?: string | null;
9
- city?: string | null;
9
+ city: string;
10
10
  state?: string | null;
11
11
  postalCode?: string | null;
12
- countryCode?: string | null;
12
+ countryCode: string;
13
13
  }
14
14
  }
@@ -37,10 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.NewExtPartyParamsAddress = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  exports.NewExtPartyParamsAddress = core.serialization.object({
40
- line1: core.serialization.string().optional(),
40
+ line1: core.serialization.string(),
41
41
  line2: core.serialization.string().optional(),
42
- city: core.serialization.string().optional(),
42
+ city: core.serialization.string(),
43
43
  state: core.serialization.string().optional(),
44
44
  postalCode: core.serialization.string().optional(),
45
- countryCode: core.serialization.string().optional(),
45
+ countryCode: core.serialization.string(),
46
46
  });
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const ListTransactionsRequestType: core.serialization.Schema<serializers.ListTransactionsRequestType.Raw, Natural.ListTransactionsRequestType>;
5
5
  export declare namespace ListTransactionsRequestType {
6
- type Raw = "payment" | "transfer" | "all";
6
+ type Raw = "payment" | "transfer" | "refund" | "all";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ListTransactionsRequestType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "all"]);
39
+ exports.ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "refund", "all"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const TxnDetailTransactionType: core.serialization.Schema<serializers.TxnDetailTransactionType.Raw, Natural.TxnDetailTransactionType>;
5
5
  export declare namespace TxnDetailTransactionType {
6
- type Raw = "payment" | "transfer";
6
+ type Raw = "payment" | "transfer" | "refund";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TxnDetailTransactionType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer"]);
39
+ exports.TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const TxnTransactionType: core.serialization.Schema<serializers.TxnTransactionType.Raw, Natural.TxnTransactionType>;
5
5
  export declare namespace TxnTransactionType {
6
- type Raw = "payment" | "transfer";
6
+ type Raw = "payment" | "transfer" | "refund";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TxnTransactionType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.TxnTransactionType = core.serialization.enum_(["payment", "transfer"]);
39
+ exports.TxnTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.10";
1
+ export declare const SDK_VERSION = "1.6.11";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.6.10";
4
+ exports.SDK_VERSION = "1.6.11";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@naturalpay/sdk",
9
- "X-Fern-SDK-Version": "1.6.10",
10
- "User-Agent": "@naturalpay/sdk/1.6.10",
9
+ "X-Fern-SDK-Version": "1.6.11",
10
+ "User-Agent": "@naturalpay/sdk/1.6.11",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -33,6 +33,10 @@ export declare class NaturalClient {
33
33
  protected _customers: CustomersClient | undefined;
34
34
  protected _invitationLinks: InvitationLinksClient | undefined;
35
35
  protected _payments: PaymentsClient | undefined;
36
+ protected _externalParties: ExternalPartiesClient | undefined;
37
+ protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
38
+ protected _ach: AchClient | undefined;
39
+ protected _realtime: RealtimeClient | undefined;
36
40
  protected _transactions: TransactionsClient | undefined;
37
41
  protected _transfers: TransfersClient | undefined;
38
42
  protected _paymentRequests: PaymentRequestsClient | undefined;
@@ -41,10 +45,6 @@ export declare class NaturalClient {
41
45
  protected _parties: PartiesClient | undefined;
42
46
  protected _wallets: WalletsClient | undefined;
43
47
  protected _externalAccounts: ExternalAccountsClient | undefined;
44
- protected _externalParties: ExternalPartiesClient | undefined;
45
- protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
46
- protected _ach: AchClient | undefined;
47
- protected _realtime: RealtimeClient | undefined;
48
48
  protected _apiKeys: ApiKeysClient | undefined;
49
49
  protected _agentKeys: AgentKeysClient | undefined;
50
50
  protected _webhooks: WebhooksClient | undefined;
@@ -55,6 +55,10 @@ export declare class NaturalClient {
55
55
  get customers(): CustomersClient;
56
56
  get invitationLinks(): InvitationLinksClient;
57
57
  get payments(): PaymentsClient;
58
+ get externalParties(): ExternalPartiesClient;
59
+ get externalPartyAccounts(): ExternalPartyAccountsClient;
60
+ get ach(): AchClient;
61
+ get realtime(): RealtimeClient;
58
62
  get transactions(): TransactionsClient;
59
63
  get transfers(): TransfersClient;
60
64
  get paymentRequests(): PaymentRequestsClient;
@@ -63,10 +67,6 @@ export declare class NaturalClient {
63
67
  get parties(): PartiesClient;
64
68
  get wallets(): WalletsClient;
65
69
  get externalAccounts(): ExternalAccountsClient;
66
- get externalParties(): ExternalPartiesClient;
67
- get externalPartyAccounts(): ExternalPartyAccountsClient;
68
- get ach(): AchClient;
69
- get realtime(): RealtimeClient;
70
70
  get apiKeys(): ApiKeysClient;
71
71
  get agentKeys(): AgentKeysClient;
72
72
  get webhooks(): WebhooksClient;
@@ -51,6 +51,22 @@ export class NaturalClient {
51
51
  var _a;
52
52
  return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new PaymentsClient(this._options)));
53
53
  }
54
+ get externalParties() {
55
+ var _a;
56
+ return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new ExternalPartiesClient(this._options)));
57
+ }
58
+ get externalPartyAccounts() {
59
+ var _a;
60
+ return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new ExternalPartyAccountsClient(this._options)));
61
+ }
62
+ get ach() {
63
+ var _a;
64
+ return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new AchClient(this._options)));
65
+ }
66
+ get realtime() {
67
+ var _a;
68
+ return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new RealtimeClient(this._options)));
69
+ }
54
70
  get transactions() {
55
71
  var _a;
56
72
  return ((_a = this._transactions) !== null && _a !== void 0 ? _a : (this._transactions = new TransactionsClient(this._options)));
@@ -83,22 +99,6 @@ export class NaturalClient {
83
99
  var _a;
84
100
  return ((_a = this._externalAccounts) !== null && _a !== void 0 ? _a : (this._externalAccounts = new ExternalAccountsClient(this._options)));
85
101
  }
86
- get externalParties() {
87
- var _a;
88
- return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new ExternalPartiesClient(this._options)));
89
- }
90
- get externalPartyAccounts() {
91
- var _a;
92
- return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new ExternalPartyAccountsClient(this._options)));
93
- }
94
- get ach() {
95
- var _a;
96
- return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new AchClient(this._options)));
97
- }
98
- get realtime() {
99
- var _a;
100
- return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new RealtimeClient(this._options)));
101
- }
102
102
  get apiKeys() {
103
103
  var _a;
104
104
  return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
@@ -29,6 +29,6 @@ export interface NewExtPartyParams {
29
29
  email?: string;
30
30
  /** External party phone number. It is normalized to E.164. */
31
31
  phone?: string;
32
- /** External party address. */
32
+ /** Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode. */
33
33
  address?: Natural.NewExtPartyParamsAddress;
34
34
  }
@@ -1,11 +1,14 @@
1
1
  /**
2
- * External party address.
2
+ * Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode.
3
3
  */
4
4
  export interface NewExtPartyParamsAddress {
5
- line1?: string;
5
+ line1: string;
6
6
  line2?: string;
7
- city?: string;
7
+ city: string;
8
+ /** State or province. Required for US addresses. */
8
9
  state?: string;
10
+ /** Postal or ZIP code. Required for US addresses. */
9
11
  postalCode?: string;
10
- countryCode?: string;
12
+ /** ISO 3166-1 alpha-2 country code. */
13
+ countryCode: string;
11
14
  }
@@ -2,6 +2,7 @@
2
2
  export declare const ListTransactionsRequestType: {
3
3
  readonly Payment: "payment";
4
4
  readonly Transfer: "transfer";
5
+ readonly Refund: "refund";
5
6
  readonly All: "all";
6
7
  };
7
8
  export type ListTransactionsRequestType = (typeof ListTransactionsRequestType)[keyof typeof ListTransactionsRequestType];
@@ -3,5 +3,6 @@
3
3
  export const ListTransactionsRequestType = {
4
4
  Payment: "payment",
5
5
  Transfer: "transfer",
6
+ Refund: "refund",
6
7
  All: "all",
7
8
  };
@@ -2,5 +2,6 @@
2
2
  export declare const TxnDetailTransactionType: {
3
3
  readonly Payment: "payment";
4
4
  readonly Transfer: "transfer";
5
+ readonly Refund: "refund";
5
6
  };
6
7
  export type TxnDetailTransactionType = (typeof TxnDetailTransactionType)[keyof typeof TxnDetailTransactionType];
@@ -3,4 +3,5 @@
3
3
  export const TxnDetailTransactionType = {
4
4
  Payment: "payment",
5
5
  Transfer: "transfer",
6
+ Refund: "refund",
6
7
  };
@@ -2,5 +2,6 @@
2
2
  export declare const TxnTransactionType: {
3
3
  readonly Payment: "payment";
4
4
  readonly Transfer: "transfer";
5
+ readonly Refund: "refund";
5
6
  };
6
7
  export type TxnTransactionType = (typeof TxnTransactionType)[keyof typeof TxnTransactionType];
@@ -3,4 +3,5 @@
3
3
  export const TxnTransactionType = {
4
4
  Payment: "payment",
5
5
  Transfer: "transfer",
6
+ Refund: "refund",
6
7
  };
@@ -4,11 +4,11 @@ import type * as serializers from "../../../index.mjs";
4
4
  export declare const NewExtPartyParamsAddress: core.serialization.ObjectSchema<serializers.NewExtPartyParamsAddress.Raw, Natural.NewExtPartyParamsAddress>;
5
5
  export declare namespace NewExtPartyParamsAddress {
6
6
  interface Raw {
7
- line1?: string | null;
7
+ line1: string;
8
8
  line2?: string | null;
9
- city?: string | null;
9
+ city: string;
10
10
  state?: string | null;
11
11
  postalCode?: string | null;
12
- countryCode?: string | null;
12
+ countryCode: string;
13
13
  }
14
14
  }
@@ -1,10 +1,10 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  export const NewExtPartyParamsAddress = core.serialization.object({
4
- line1: core.serialization.string().optional(),
4
+ line1: core.serialization.string(),
5
5
  line2: core.serialization.string().optional(),
6
- city: core.serialization.string().optional(),
6
+ city: core.serialization.string(),
7
7
  state: core.serialization.string().optional(),
8
8
  postalCode: core.serialization.string().optional(),
9
- countryCode: core.serialization.string().optional(),
9
+ countryCode: core.serialization.string(),
10
10
  });
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  export declare const ListTransactionsRequestType: core.serialization.Schema<serializers.ListTransactionsRequestType.Raw, Natural.ListTransactionsRequestType>;
5
5
  export declare namespace ListTransactionsRequestType {
6
- type Raw = "payment" | "transfer" | "all";
6
+ type Raw = "payment" | "transfer" | "refund" | "all";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
- export const ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "all"]);
3
+ export const ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "refund", "all"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  export declare const TxnDetailTransactionType: core.serialization.Schema<serializers.TxnDetailTransactionType.Raw, Natural.TxnDetailTransactionType>;
5
5
  export declare namespace TxnDetailTransactionType {
6
- type Raw = "payment" | "transfer";
6
+ type Raw = "payment" | "transfer" | "refund";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
- export const TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer"]);
3
+ export const TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  export declare const TxnTransactionType: core.serialization.Schema<serializers.TxnTransactionType.Raw, Natural.TxnTransactionType>;
5
5
  export declare namespace TxnTransactionType {
6
- type Raw = "payment" | "transfer";
6
+ type Raw = "payment" | "transfer" | "refund";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
- export const TxnTransactionType = core.serialization.enum_(["payment", "transfer"]);
3
+ export const TxnTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.10";
1
+ export declare const SDK_VERSION = "1.6.11";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.10";
1
+ export const SDK_VERSION = "1.6.11";