@randock/nameshift-api-client 0.0.477 → 0.0.478

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.477
1
+ ## @randock/nameshift-api-client@0.0.478
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.477 --save
39
+ npm install @randock/nameshift-api-client@0.0.478 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- a72adb656a4e635180141294b78db983179843d0ddbc1219d448ed096ece4b9ef4aa6653ac9c2972106d52f5e9e5d4c7
47
+ b2f3ceb4ef1cbd44cb889a755ae77a8a985ccf72e3ed633a0d25e4df1c84d61b75ca3e4153c3c68dcac779748b7d6848
@@ -58,7 +58,34 @@ export interface LedgerMutationDto {
58
58
  * @memberof LedgerMutationDto
59
59
  */
60
60
  attachments: Array<LedgerMutationAttachmentDto>;
61
+ /**
62
+ * Snelstart bank transaction the mutation was booked with, when it could be traced back to one.
63
+ * @type {string}
64
+ * @memberof LedgerMutationDto
65
+ */
66
+ snelstartBankTransactionId: string | null;
67
+ /**
68
+ * Payment provider the bank transaction was synced from, when it was synced by us.
69
+ * @type {string}
70
+ * @memberof LedgerMutationDto
71
+ */
72
+ externalTransactionSource: LedgerMutationDtoExternalTransactionSourceEnum | null;
73
+ /**
74
+ * Identifier of the record at the payment provider the bank transaction was synced from.
75
+ * @type {string}
76
+ * @memberof LedgerMutationDto
77
+ */
78
+ externalTransactionId: string | null;
61
79
  }
80
+ /**
81
+ * @export
82
+ */
83
+ export declare const LedgerMutationDtoExternalTransactionSourceEnum: {
84
+ readonly STRIPE: "stripe";
85
+ readonly AIRWALLEX: "airwallex";
86
+ readonly MOLLIE: "mollie";
87
+ };
88
+ export type LedgerMutationDtoExternalTransactionSourceEnum = typeof LedgerMutationDtoExternalTransactionSourceEnum[keyof typeof LedgerMutationDtoExternalTransactionSourceEnum];
62
89
  /**
63
90
  * Check if a given object implements the LedgerMutationDto interface.
64
91
  */
@@ -13,12 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LedgerMutationDtoExternalTransactionSourceEnum = void 0;
16
17
  exports.instanceOfLedgerMutationDto = instanceOfLedgerMutationDto;
17
18
  exports.LedgerMutationDtoFromJSON = LedgerMutationDtoFromJSON;
18
19
  exports.LedgerMutationDtoFromJSONTyped = LedgerMutationDtoFromJSONTyped;
19
20
  exports.LedgerMutationDtoToJSON = LedgerMutationDtoToJSON;
20
21
  exports.LedgerMutationDtoToJSONTyped = LedgerMutationDtoToJSONTyped;
21
22
  var LedgerMutationAttachmentDto_1 = require("./LedgerMutationAttachmentDto");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.LedgerMutationDtoExternalTransactionSourceEnum = {
27
+ STRIPE: 'stripe',
28
+ AIRWALLEX: 'airwallex',
29
+ MOLLIE: 'mollie'
30
+ };
22
31
  /**
23
32
  * Check if a given object implements the LedgerMutationDto interface.
24
33
  */
@@ -37,6 +46,12 @@ function instanceOfLedgerMutationDto(value) {
37
46
  return false;
38
47
  if (!('attachments' in value) || value['attachments'] === undefined)
39
48
  return false;
49
+ if (!('snelstartBankTransactionId' in value) || value['snelstartBankTransactionId'] === undefined)
50
+ return false;
51
+ if (!('externalTransactionSource' in value) || value['externalTransactionSource'] === undefined)
52
+ return false;
53
+ if (!('externalTransactionId' in value) || value['externalTransactionId'] === undefined)
54
+ return false;
40
55
  return true;
41
56
  }
42
57
  function LedgerMutationDtoFromJSON(json) {
@@ -54,6 +69,9 @@ function LedgerMutationDtoFromJSONTyped(json, ignoreDiscriminator) {
54
69
  'description': json['description'],
55
70
  'date': (new Date(json['date'])),
56
71
  'attachments': (json['attachments'].map(LedgerMutationAttachmentDto_1.LedgerMutationAttachmentDtoFromJSON)),
72
+ 'snelstartBankTransactionId': json['snelstartBankTransactionId'],
73
+ 'externalTransactionSource': json['externalTransactionSource'],
74
+ 'externalTransactionId': json['externalTransactionId'],
57
75
  };
58
76
  }
59
77
  function LedgerMutationDtoToJSON(json) {
@@ -72,5 +90,8 @@ function LedgerMutationDtoToJSONTyped(value, ignoreDiscriminator) {
72
90
  'description': value['description'],
73
91
  'date': ((value['date']).toISOString()),
74
92
  'attachments': (value['attachments'].map(LedgerMutationAttachmentDto_1.LedgerMutationAttachmentDtoToJSON)),
93
+ 'snelstartBankTransactionId': value['snelstartBankTransactionId'],
94
+ 'externalTransactionSource': value['externalTransactionSource'],
95
+ 'externalTransactionId': value['externalTransactionId'],
75
96
  };
76
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.477",
3
+ "version": "0.0.478",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -69,8 +69,38 @@ export interface LedgerMutationDto {
69
69
  * @memberof LedgerMutationDto
70
70
  */
71
71
  attachments: Array<LedgerMutationAttachmentDto>;
72
+ /**
73
+ * Snelstart bank transaction the mutation was booked with, when it could be traced back to one.
74
+ * @type {string}
75
+ * @memberof LedgerMutationDto
76
+ */
77
+ snelstartBankTransactionId: string | null;
78
+ /**
79
+ * Payment provider the bank transaction was synced from, when it was synced by us.
80
+ * @type {string}
81
+ * @memberof LedgerMutationDto
82
+ */
83
+ externalTransactionSource: LedgerMutationDtoExternalTransactionSourceEnum | null;
84
+ /**
85
+ * Identifier of the record at the payment provider the bank transaction was synced from.
86
+ * @type {string}
87
+ * @memberof LedgerMutationDto
88
+ */
89
+ externalTransactionId: string | null;
72
90
  }
73
91
 
92
+
93
+ /**
94
+ * @export
95
+ */
96
+ export const LedgerMutationDtoExternalTransactionSourceEnum = {
97
+ STRIPE: 'stripe',
98
+ AIRWALLEX: 'airwallex',
99
+ MOLLIE: 'mollie'
100
+ } as const;
101
+ export type LedgerMutationDtoExternalTransactionSourceEnum = typeof LedgerMutationDtoExternalTransactionSourceEnum[keyof typeof LedgerMutationDtoExternalTransactionSourceEnum];
102
+
103
+
74
104
  /**
75
105
  * Check if a given object implements the LedgerMutationDto interface.
76
106
  */
@@ -82,6 +112,9 @@ export function instanceOfLedgerMutationDto(value: object): value is LedgerMutat
82
112
  if (!('description' in value) || value['description'] === undefined) return false;
83
113
  if (!('date' in value) || value['date'] === undefined) return false;
84
114
  if (!('attachments' in value) || value['attachments'] === undefined) return false;
115
+ if (!('snelstartBankTransactionId' in value) || value['snelstartBankTransactionId'] === undefined) return false;
116
+ if (!('externalTransactionSource' in value) || value['externalTransactionSource'] === undefined) return false;
117
+ if (!('externalTransactionId' in value) || value['externalTransactionId'] === undefined) return false;
85
118
  return true;
86
119
  }
87
120
 
@@ -102,6 +135,9 @@ export function LedgerMutationDtoFromJSONTyped(json: any, ignoreDiscriminator: b
102
135
  'description': json['description'],
103
136
  'date': (new Date(json['date'])),
104
137
  'attachments': ((json['attachments'] as Array<any>).map(LedgerMutationAttachmentDtoFromJSON)),
138
+ 'snelstartBankTransactionId': json['snelstartBankTransactionId'],
139
+ 'externalTransactionSource': json['externalTransactionSource'],
140
+ 'externalTransactionId': json['externalTransactionId'],
105
141
  };
106
142
  }
107
143
 
@@ -123,6 +159,9 @@ export function LedgerMutationDtoToJSONTyped(value?: LedgerMutationDto | null, i
123
159
  'description': value['description'],
124
160
  'date': ((value['date']).toISOString()),
125
161
  'attachments': ((value['attachments'] as Array<any>).map(LedgerMutationAttachmentDtoToJSON)),
162
+ 'snelstartBankTransactionId': value['snelstartBankTransactionId'],
163
+ 'externalTransactionSource': value['externalTransactionSource'],
164
+ 'externalTransactionId': value['externalTransactionId'],
126
165
  };
127
166
  }
128
167