@channelpayments/node-sdk 1.176.0 → 1.178.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 (31) hide show
  1. package/dist/cjs/apis/ChannelPaymentsApi.d.ts +9 -23
  2. package/dist/cjs/apis/ChannelPaymentsApi.js +3 -222
  3. package/dist/cjs/models/ConnectorServiceTokenEntity.d.ts +18 -2
  4. package/dist/cjs/models/ConnectorServiceTokenEntity.js +13 -0
  5. package/dist/cjs/models/CreateProvisionedCardTokenByMerchantDto.d.ts +59 -0
  6. package/dist/cjs/models/CreateProvisionedCardTokenByMerchantDto.js +65 -0
  7. package/dist/cjs/models/TransactionEntity.d.ts +7 -0
  8. package/dist/cjs/models/TransactionEntity.js +3 -0
  9. package/dist/cjs/models/index.d.ts +1 -2
  10. package/dist/cjs/models/index.js +1 -2
  11. package/dist/cjs/runtime.js +1 -1
  12. package/dist/mjs/apis/ChannelPaymentsApi.d.ts +9 -23
  13. package/dist/mjs/apis/ChannelPaymentsApi.js +4 -217
  14. package/dist/mjs/models/ConnectorServiceTokenEntity.d.ts +18 -2
  15. package/dist/mjs/models/ConnectorServiceTokenEntity.js +12 -0
  16. package/dist/mjs/models/CreateProvisionedCardTokenByMerchantDto.d.ts +59 -0
  17. package/dist/mjs/models/CreateProvisionedCardTokenByMerchantDto.js +58 -0
  18. package/dist/mjs/models/TransactionEntity.d.ts +7 -0
  19. package/dist/mjs/models/TransactionEntity.js +3 -0
  20. package/dist/mjs/models/index.d.ts +1 -2
  21. package/dist/mjs/models/index.js +1 -2
  22. package/dist/mjs/runtime.js +1 -1
  23. package/package.json +1 -1
  24. package/dist/cjs/models/CreateTransactionNoteDto.d.ts +0 -32
  25. package/dist/cjs/models/CreateTransactionNoteDto.js +0 -49
  26. package/dist/cjs/models/UpdateTransactionNoteDto.d.ts +0 -32
  27. package/dist/cjs/models/UpdateTransactionNoteDto.js +0 -49
  28. package/dist/mjs/models/CreateTransactionNoteDto.d.ts +0 -32
  29. package/dist/mjs/models/CreateTransactionNoteDto.js +0 -43
  30. package/dist/mjs/models/UpdateTransactionNoteDto.d.ts +0 -32
  31. package/dist/mjs/models/UpdateTransactionNoteDto.js +0 -43
@@ -64,7 +64,7 @@ export class BaseAPI {
64
64
  }
65
65
  async createFetchParams(context) {
66
66
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
67
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.176.0";
67
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.178.0";
68
68
  const token = this.generateAuthToken();
69
69
  context.headers['Authorization'] = `Bearer ${token}`;
70
70
  let url = this.url + context.path;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@channelpayments/node-sdk",
3
3
  "description": "Channel Payments nodejs sdk",
4
- "version": "1.176.0",
4
+ "version": "1.178.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",
@@ -1,32 +0,0 @@
1
- /**
2
- * Channel Payments API
3
- *
4
- * NOTE: This class is auto generated. Do not edit the class manually.
5
- *
6
- */
7
- /**
8
- *
9
- * @export
10
- * @interface CreateTransactionNoteDto
11
- */
12
- export interface CreateTransactionNoteDto {
13
- /**
14
- * The id of the document the note is associated with.
15
- * @type {string}
16
- * @memberof CreateTransactionNoteDto
17
- */
18
- documentId: string;
19
- /**
20
- * The content of the transaction note.
21
- * @type {string}
22
- * @memberof CreateTransactionNoteDto
23
- */
24
- content: string;
25
- }
26
- /**
27
- * Check if a given object implements the CreateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfCreateTransactionNoteDto(value: object): boolean;
30
- export declare function CreateTransactionNoteDtoFromJSON(json: any): CreateTransactionNoteDto;
31
- export declare function CreateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionNoteDto;
32
- export declare function CreateTransactionNoteDtoToJSON(value?: CreateTransactionNoteDto | null): any;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Channel Payments API
6
- *
7
- * NOTE: This class is auto generated. Do not edit the class manually.
8
- *
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.instanceOfCreateTransactionNoteDto = instanceOfCreateTransactionNoteDto;
12
- exports.CreateTransactionNoteDtoFromJSON = CreateTransactionNoteDtoFromJSON;
13
- exports.CreateTransactionNoteDtoFromJSONTyped = CreateTransactionNoteDtoFromJSONTyped;
14
- exports.CreateTransactionNoteDtoToJSON = CreateTransactionNoteDtoToJSON;
15
- const runtime_1 = require("../runtime");
16
- /**
17
- * Check if a given object implements the CreateTransactionNoteDto interface.
18
- */
19
- function instanceOfCreateTransactionNoteDto(value) {
20
- let isInstance = true;
21
- isInstance = isInstance && "documentId" in value;
22
- isInstance = isInstance && "content" in value;
23
- return isInstance;
24
- }
25
- function CreateTransactionNoteDtoFromJSON(json) {
26
- return CreateTransactionNoteDtoFromJSONTyped(json, false);
27
- }
28
- function CreateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
29
- if ((json === undefined) || (json === null)) {
30
- return json;
31
- }
32
- const typed = {
33
- 'documentId': json['documentId'],
34
- 'content': json['content'],
35
- };
36
- return (0, runtime_1.removeNullUndefined)(typed);
37
- }
38
- function CreateTransactionNoteDtoToJSON(value) {
39
- if (value === undefined) {
40
- return undefined;
41
- }
42
- if (value === null) {
43
- return null;
44
- }
45
- return {
46
- 'documentId': value.documentId,
47
- 'content': value.content,
48
- };
49
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * Channel Payments API
3
- *
4
- * NOTE: This class is auto generated. Do not edit the class manually.
5
- *
6
- */
7
- /**
8
- *
9
- * @export
10
- * @interface UpdateTransactionNoteDto
11
- */
12
- export interface UpdateTransactionNoteDto {
13
- /**
14
- * The content of the transaction note.
15
- * @type {string}
16
- * @memberof UpdateTransactionNoteDto
17
- */
18
- content: string;
19
- /**
20
- * The id of the note to update.
21
- * @type {string}
22
- * @memberof UpdateTransactionNoteDto
23
- */
24
- noteId: string;
25
- }
26
- /**
27
- * Check if a given object implements the UpdateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfUpdateTransactionNoteDto(value: object): boolean;
30
- export declare function UpdateTransactionNoteDtoFromJSON(json: any): UpdateTransactionNoteDto;
31
- export declare function UpdateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTransactionNoteDto;
32
- export declare function UpdateTransactionNoteDtoToJSON(value?: UpdateTransactionNoteDto | null): any;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Channel Payments API
6
- *
7
- * NOTE: This class is auto generated. Do not edit the class manually.
8
- *
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.instanceOfUpdateTransactionNoteDto = instanceOfUpdateTransactionNoteDto;
12
- exports.UpdateTransactionNoteDtoFromJSON = UpdateTransactionNoteDtoFromJSON;
13
- exports.UpdateTransactionNoteDtoFromJSONTyped = UpdateTransactionNoteDtoFromJSONTyped;
14
- exports.UpdateTransactionNoteDtoToJSON = UpdateTransactionNoteDtoToJSON;
15
- const runtime_1 = require("../runtime");
16
- /**
17
- * Check if a given object implements the UpdateTransactionNoteDto interface.
18
- */
19
- function instanceOfUpdateTransactionNoteDto(value) {
20
- let isInstance = true;
21
- isInstance = isInstance && "content" in value;
22
- isInstance = isInstance && "noteId" in value;
23
- return isInstance;
24
- }
25
- function UpdateTransactionNoteDtoFromJSON(json) {
26
- return UpdateTransactionNoteDtoFromJSONTyped(json, false);
27
- }
28
- function UpdateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
29
- if ((json === undefined) || (json === null)) {
30
- return json;
31
- }
32
- const typed = {
33
- 'content': json['content'],
34
- 'noteId': json['noteId'],
35
- };
36
- return (0, runtime_1.removeNullUndefined)(typed);
37
- }
38
- function UpdateTransactionNoteDtoToJSON(value) {
39
- if (value === undefined) {
40
- return undefined;
41
- }
42
- if (value === null) {
43
- return null;
44
- }
45
- return {
46
- 'content': value.content,
47
- 'noteId': value.noteId,
48
- };
49
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * Channel Payments API
3
- *
4
- * NOTE: This class is auto generated. Do not edit the class manually.
5
- *
6
- */
7
- /**
8
- *
9
- * @export
10
- * @interface CreateTransactionNoteDto
11
- */
12
- export interface CreateTransactionNoteDto {
13
- /**
14
- * The id of the document the note is associated with.
15
- * @type {string}
16
- * @memberof CreateTransactionNoteDto
17
- */
18
- documentId: string;
19
- /**
20
- * The content of the transaction note.
21
- * @type {string}
22
- * @memberof CreateTransactionNoteDto
23
- */
24
- content: string;
25
- }
26
- /**
27
- * Check if a given object implements the CreateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfCreateTransactionNoteDto(value: object): boolean;
30
- export declare function CreateTransactionNoteDtoFromJSON(json: any): CreateTransactionNoteDto;
31
- export declare function CreateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionNoteDto;
32
- export declare function CreateTransactionNoteDtoToJSON(value?: CreateTransactionNoteDto | null): any;
@@ -1,43 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Channel Payments API
5
- *
6
- * NOTE: This class is auto generated. Do not edit the class manually.
7
- *
8
- */
9
- import { removeNullUndefined } from '../runtime';
10
- /**
11
- * Check if a given object implements the CreateTransactionNoteDto interface.
12
- */
13
- export function instanceOfCreateTransactionNoteDto(value) {
14
- let isInstance = true;
15
- isInstance = isInstance && "documentId" in value;
16
- isInstance = isInstance && "content" in value;
17
- return isInstance;
18
- }
19
- export function CreateTransactionNoteDtoFromJSON(json) {
20
- return CreateTransactionNoteDtoFromJSONTyped(json, false);
21
- }
22
- export function CreateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- const typed = {
27
- 'documentId': json['documentId'],
28
- 'content': json['content'],
29
- };
30
- return removeNullUndefined(typed);
31
- }
32
- export function CreateTransactionNoteDtoToJSON(value) {
33
- if (value === undefined) {
34
- return undefined;
35
- }
36
- if (value === null) {
37
- return null;
38
- }
39
- return {
40
- 'documentId': value.documentId,
41
- 'content': value.content,
42
- };
43
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * Channel Payments API
3
- *
4
- * NOTE: This class is auto generated. Do not edit the class manually.
5
- *
6
- */
7
- /**
8
- *
9
- * @export
10
- * @interface UpdateTransactionNoteDto
11
- */
12
- export interface UpdateTransactionNoteDto {
13
- /**
14
- * The content of the transaction note.
15
- * @type {string}
16
- * @memberof UpdateTransactionNoteDto
17
- */
18
- content: string;
19
- /**
20
- * The id of the note to update.
21
- * @type {string}
22
- * @memberof UpdateTransactionNoteDto
23
- */
24
- noteId: string;
25
- }
26
- /**
27
- * Check if a given object implements the UpdateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfUpdateTransactionNoteDto(value: object): boolean;
30
- export declare function UpdateTransactionNoteDtoFromJSON(json: any): UpdateTransactionNoteDto;
31
- export declare function UpdateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTransactionNoteDto;
32
- export declare function UpdateTransactionNoteDtoToJSON(value?: UpdateTransactionNoteDto | null): any;
@@ -1,43 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Channel Payments API
5
- *
6
- * NOTE: This class is auto generated. Do not edit the class manually.
7
- *
8
- */
9
- import { removeNullUndefined } from '../runtime';
10
- /**
11
- * Check if a given object implements the UpdateTransactionNoteDto interface.
12
- */
13
- export function instanceOfUpdateTransactionNoteDto(value) {
14
- let isInstance = true;
15
- isInstance = isInstance && "content" in value;
16
- isInstance = isInstance && "noteId" in value;
17
- return isInstance;
18
- }
19
- export function UpdateTransactionNoteDtoFromJSON(json) {
20
- return UpdateTransactionNoteDtoFromJSONTyped(json, false);
21
- }
22
- export function UpdateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- const typed = {
27
- 'content': json['content'],
28
- 'noteId': json['noteId'],
29
- };
30
- return removeNullUndefined(typed);
31
- }
32
- export function UpdateTransactionNoteDtoToJSON(value) {
33
- if (value === undefined) {
34
- return undefined;
35
- }
36
- if (value === null) {
37
- return null;
38
- }
39
- return {
40
- 'content': value.content,
41
- 'noteId': value.noteId,
42
- };
43
- }