ynab 2.4.0 → 2.6.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 (230) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/AccountsApi.js +24 -1
  3. package/dist/apis/BudgetsApi.js +24 -1
  4. package/dist/apis/CategoriesApi.js +24 -1
  5. package/dist/apis/DeprecatedApi.js +24 -1
  6. package/dist/apis/MonthsApi.js +24 -1
  7. package/dist/apis/PayeeLocationsApi.js +24 -1
  8. package/dist/apis/PayeesApi.js +24 -1
  9. package/dist/apis/ScheduledTransactionsApi.js +24 -1
  10. package/dist/apis/TransactionsApi.js +24 -1
  11. package/dist/apis/UserApi.js +24 -1
  12. package/dist/browser/ynab.js +1 -1
  13. package/dist/esm/apis/AccountsApi.d.ts +1 -6
  14. package/dist/esm/apis/AccountsApi.js +2 -7
  15. package/dist/esm/apis/BudgetsApi.d.ts +1 -6
  16. package/dist/esm/apis/BudgetsApi.js +2 -7
  17. package/dist/esm/apis/CategoriesApi.d.ts +1 -6
  18. package/dist/esm/apis/CategoriesApi.js +2 -7
  19. package/dist/esm/apis/DeprecatedApi.js +1 -1
  20. package/dist/esm/apis/MonthsApi.d.ts +1 -6
  21. package/dist/esm/apis/MonthsApi.js +2 -7
  22. package/dist/esm/apis/PayeeLocationsApi.d.ts +1 -6
  23. package/dist/esm/apis/PayeeLocationsApi.js +2 -7
  24. package/dist/esm/apis/PayeesApi.d.ts +17 -7
  25. package/dist/esm/apis/PayeesApi.js +67 -8
  26. package/dist/esm/apis/ScheduledTransactionsApi.d.ts +16 -7
  27. package/dist/esm/apis/ScheduledTransactionsApi.js +64 -8
  28. package/dist/esm/apis/TransactionsApi.d.ts +40 -20
  29. package/dist/esm/apis/TransactionsApi.js +87 -17
  30. package/dist/esm/apis/UserApi.d.ts +1 -6
  31. package/dist/esm/apis/UserApi.js +2 -7
  32. package/dist/esm/models/Account.d.ts +2 -7
  33. package/dist/esm/models/Account.js +51 -51
  34. package/dist/esm/models/AccountResponse.d.ts +2 -7
  35. package/dist/esm/models/AccountResponse.js +8 -16
  36. package/dist/esm/models/AccountResponseData.d.ts +2 -7
  37. package/dist/esm/models/AccountResponseData.js +8 -16
  38. package/dist/esm/models/AccountType.d.ts +3 -7
  39. package/dist/esm/models/AccountType.js +11 -6
  40. package/dist/esm/models/AccountsResponse.d.ts +2 -7
  41. package/dist/esm/models/AccountsResponse.js +8 -16
  42. package/dist/esm/models/AccountsResponseData.d.ts +2 -7
  43. package/dist/esm/models/AccountsResponseData.js +11 -18
  44. package/dist/esm/models/BudgetDetail.d.ts +6 -11
  45. package/dist/esm/models/BudgetDetail.js +45 -53
  46. package/dist/esm/models/BudgetDetailResponse.d.ts +2 -7
  47. package/dist/esm/models/BudgetDetailResponse.js +8 -16
  48. package/dist/esm/models/BudgetDetailResponseData.d.ts +2 -7
  49. package/dist/esm/models/BudgetDetailResponseData.js +11 -18
  50. package/dist/esm/models/BudgetSettings.d.ts +2 -7
  51. package/dist/esm/models/BudgetSettings.js +11 -18
  52. package/dist/esm/models/BudgetSettingsResponse.d.ts +2 -7
  53. package/dist/esm/models/BudgetSettingsResponse.js +8 -16
  54. package/dist/esm/models/BudgetSettingsResponseData.d.ts +2 -7
  55. package/dist/esm/models/BudgetSettingsResponseData.js +8 -16
  56. package/dist/esm/models/BudgetSummary.d.ts +2 -7
  57. package/dist/esm/models/BudgetSummary.js +23 -31
  58. package/dist/esm/models/BudgetSummaryResponse.d.ts +2 -7
  59. package/dist/esm/models/BudgetSummaryResponse.js +8 -16
  60. package/dist/esm/models/BudgetSummaryResponseData.d.ts +2 -7
  61. package/dist/esm/models/BudgetSummaryResponseData.js +10 -19
  62. package/dist/esm/models/BulkResponse.d.ts +2 -7
  63. package/dist/esm/models/BulkResponse.js +8 -16
  64. package/dist/esm/models/BulkResponseData.d.ts +2 -7
  65. package/dist/esm/models/BulkResponseData.js +8 -16
  66. package/dist/esm/models/BulkResponseDataBulk.d.ts +2 -7
  67. package/dist/esm/models/BulkResponseDataBulk.js +11 -18
  68. package/dist/esm/models/BulkTransactions.d.ts +5 -10
  69. package/dist/esm/models/BulkTransactions.js +10 -18
  70. package/dist/esm/models/CategoriesResponse.d.ts +2 -7
  71. package/dist/esm/models/CategoriesResponse.js +8 -16
  72. package/dist/esm/models/CategoriesResponseData.d.ts +2 -7
  73. package/dist/esm/models/CategoriesResponseData.js +11 -18
  74. package/dist/esm/models/Category.d.ts +10 -9
  75. package/dist/esm/models/Category.js +61 -61
  76. package/dist/esm/models/CategoryGroup.d.ts +2 -7
  77. package/dist/esm/models/CategoryGroup.js +17 -22
  78. package/dist/esm/models/CategoryGroupWithCategories.d.ts +2 -7
  79. package/dist/esm/models/CategoryGroupWithCategories.js +20 -24
  80. package/dist/esm/models/CategoryResponse.d.ts +2 -7
  81. package/dist/esm/models/CategoryResponse.js +8 -16
  82. package/dist/esm/models/CategoryResponseData.d.ts +2 -7
  83. package/dist/esm/models/CategoryResponseData.js +8 -16
  84. package/dist/esm/models/CurrencyFormat.d.ts +2 -7
  85. package/dist/esm/models/CurrencyFormat.js +29 -30
  86. package/dist/esm/models/DateFormat.d.ts +2 -7
  87. package/dist/esm/models/DateFormat.js +8 -16
  88. package/dist/esm/models/ErrorDetail.d.ts +2 -7
  89. package/dist/esm/models/ErrorDetail.js +14 -20
  90. package/dist/esm/models/ErrorResponse.d.ts +2 -7
  91. package/dist/esm/models/ErrorResponse.js +8 -16
  92. package/dist/esm/models/ExistingTransaction.d.ts +89 -0
  93. package/dist/esm/models/ExistingTransaction.js +56 -0
  94. package/dist/esm/models/HybridTransaction.d.ts +12 -11
  95. package/dist/esm/models/HybridTransaction.js +63 -62
  96. package/dist/esm/models/HybridTransactionAllOf.d.ts +1 -1
  97. package/dist/esm/models/HybridTransactionsResponse.d.ts +2 -7
  98. package/dist/esm/models/HybridTransactionsResponse.js +8 -16
  99. package/dist/esm/models/HybridTransactionsResponseData.d.ts +2 -7
  100. package/dist/esm/models/HybridTransactionsResponseData.js +10 -19
  101. package/dist/esm/models/MonthDetail.d.ts +2 -7
  102. package/dist/esm/models/MonthDetail.js +30 -33
  103. package/dist/esm/models/MonthDetailResponse.d.ts +2 -7
  104. package/dist/esm/models/MonthDetailResponse.js +8 -16
  105. package/dist/esm/models/MonthDetailResponseData.d.ts +2 -7
  106. package/dist/esm/models/MonthDetailResponseData.js +8 -16
  107. package/dist/esm/models/MonthSummariesResponse.d.ts +2 -7
  108. package/dist/esm/models/MonthSummariesResponse.js +8 -16
  109. package/dist/esm/models/MonthSummariesResponseData.d.ts +2 -7
  110. package/dist/esm/models/MonthSummariesResponseData.js +11 -18
  111. package/dist/esm/models/MonthSummary.d.ts +2 -7
  112. package/dist/esm/models/MonthSummary.js +27 -31
  113. package/dist/esm/models/NewTransaction.d.ts +95 -0
  114. package/dist/esm/models/NewTransaction.js +58 -0
  115. package/dist/esm/models/PatchCategoryWrapper.d.ts +2 -7
  116. package/dist/esm/models/PatchCategoryWrapper.js +8 -16
  117. package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +2 -7
  118. package/dist/esm/models/PatchMonthCategoryWrapper.js +8 -16
  119. package/dist/esm/models/PatchPayeeWrapper.d.ts +27 -0
  120. package/dist/esm/models/PatchPayeeWrapper.js +36 -0
  121. package/dist/esm/models/PatchTransactionsWrapper.d.ts +5 -10
  122. package/dist/esm/models/PatchTransactionsWrapper.js +10 -18
  123. package/dist/esm/models/Payee.d.ts +2 -7
  124. package/dist/esm/models/Payee.js +16 -23
  125. package/dist/esm/models/PayeeLocation.d.ts +2 -7
  126. package/dist/esm/models/PayeeLocation.js +20 -24
  127. package/dist/esm/models/PayeeLocationResponse.d.ts +2 -7
  128. package/dist/esm/models/PayeeLocationResponse.js +8 -16
  129. package/dist/esm/models/PayeeLocationResponseData.d.ts +2 -7
  130. package/dist/esm/models/PayeeLocationResponseData.js +8 -16
  131. package/dist/esm/models/PayeeLocationsResponse.d.ts +2 -7
  132. package/dist/esm/models/PayeeLocationsResponse.js +8 -16
  133. package/dist/esm/models/PayeeLocationsResponseData.d.ts +2 -7
  134. package/dist/esm/models/PayeeLocationsResponseData.js +8 -16
  135. package/dist/esm/models/PayeeResponse.d.ts +2 -7
  136. package/dist/esm/models/PayeeResponse.js +8 -16
  137. package/dist/esm/models/PayeeResponseData.d.ts +2 -7
  138. package/dist/esm/models/PayeeResponseData.js +8 -16
  139. package/dist/esm/models/PayeesResponse.d.ts +2 -7
  140. package/dist/esm/models/PayeesResponse.js +8 -16
  141. package/dist/esm/models/PayeesResponseData.d.ts +2 -7
  142. package/dist/esm/models/PayeesResponseData.js +11 -18
  143. package/dist/esm/models/PostAccountWrapper.d.ts +2 -7
  144. package/dist/esm/models/PostAccountWrapper.js +8 -16
  145. package/dist/esm/models/PostScheduledTransactionWrapper.d.ts +27 -0
  146. package/dist/esm/models/PostScheduledTransactionWrapper.js +36 -0
  147. package/dist/esm/models/PostTransactionsWrapper.d.ts +7 -12
  148. package/dist/esm/models/PostTransactionsWrapper.js +10 -20
  149. package/dist/esm/models/PutTransactionWrapper.d.ts +5 -10
  150. package/dist/esm/models/PutTransactionWrapper.js +10 -18
  151. package/dist/esm/models/SaveAccount.d.ts +2 -7
  152. package/dist/esm/models/SaveAccount.js +14 -20
  153. package/dist/esm/models/SaveCategory.d.ts +2 -7
  154. package/dist/esm/models/SaveCategory.js +11 -21
  155. package/dist/esm/models/SaveCategoryResponse.d.ts +2 -7
  156. package/dist/esm/models/SaveCategoryResponse.js +8 -16
  157. package/dist/esm/models/SaveCategoryResponseData.d.ts +2 -7
  158. package/dist/esm/models/SaveCategoryResponseData.js +11 -18
  159. package/dist/esm/models/SaveMonthCategory.d.ts +2 -7
  160. package/dist/esm/models/SaveMonthCategory.js +8 -16
  161. package/dist/esm/models/SavePayee.d.ts +26 -0
  162. package/dist/esm/models/SavePayee.js +33 -0
  163. package/dist/esm/models/SavePayeeResponse.d.ts +27 -0
  164. package/dist/esm/models/SavePayeeResponse.js +36 -0
  165. package/dist/esm/models/SavePayeeResponseData.d.ts +33 -0
  166. package/dist/esm/models/SavePayeeResponseData.js +40 -0
  167. package/dist/esm/models/SaveScheduledTransaction.d.ts +76 -0
  168. package/dist/esm/models/SaveScheduledTransaction.js +55 -0
  169. package/dist/esm/models/SaveSubTransaction.d.ts +2 -7
  170. package/dist/esm/models/SaveSubTransaction.js +16 -25
  171. package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
  172. package/dist/esm/models/SaveTransactionWithIdOrImportId.js +60 -0
  173. package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +5 -16
  174. package/dist/esm/models/SaveTransactionWithOptionalFields.js +29 -41
  175. package/dist/esm/models/SaveTransactionsResponse.d.ts +2 -7
  176. package/dist/esm/models/SaveTransactionsResponse.js +8 -16
  177. package/dist/esm/models/SaveTransactionsResponseData.d.ts +2 -7
  178. package/dist/esm/models/SaveTransactionsResponseData.js +17 -25
  179. package/dist/esm/models/ScheduledSubTransaction.d.ts +2 -7
  180. package/dist/esm/models/ScheduledSubTransaction.js +25 -31
  181. package/dist/esm/models/ScheduledTransactionDetail.d.ts +10 -9
  182. package/dist/esm/models/ScheduledTransactionDetail.js +49 -48
  183. package/dist/esm/models/ScheduledTransactionFrequency.d.ts +30 -0
  184. package/dist/esm/models/ScheduledTransactionFrequency.js +46 -0
  185. package/dist/esm/models/ScheduledTransactionResponse.d.ts +2 -7
  186. package/dist/esm/models/ScheduledTransactionResponse.js +8 -16
  187. package/dist/esm/models/ScheduledTransactionResponseData.d.ts +2 -7
  188. package/dist/esm/models/ScheduledTransactionResponseData.js +8 -16
  189. package/dist/esm/models/ScheduledTransactionSummary.d.ts +9 -8
  190. package/dist/esm/models/ScheduledTransactionSummary.js +38 -39
  191. package/dist/esm/models/ScheduledTransactionsResponse.d.ts +2 -7
  192. package/dist/esm/models/ScheduledTransactionsResponse.js +8 -16
  193. package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +2 -7
  194. package/dist/esm/models/ScheduledTransactionsResponseData.js +11 -18
  195. package/dist/esm/models/SubTransaction.d.ts +2 -7
  196. package/dist/esm/models/SubTransaction.js +31 -37
  197. package/dist/esm/models/TransactionClearedStatus.d.ts +3 -7
  198. package/dist/esm/models/TransactionClearedStatus.js +11 -6
  199. package/dist/esm/models/TransactionDetail.d.ts +12 -11
  200. package/dist/esm/models/TransactionDetail.js +62 -61
  201. package/dist/esm/models/TransactionFlagColor.d.ts +3 -7
  202. package/dist/esm/models/TransactionFlagColor.js +11 -6
  203. package/dist/esm/models/TransactionResponse.d.ts +2 -7
  204. package/dist/esm/models/TransactionResponse.js +8 -16
  205. package/dist/esm/models/TransactionResponseData.d.ts +2 -7
  206. package/dist/esm/models/TransactionResponseData.js +8 -16
  207. package/dist/esm/models/TransactionSummary.d.ts +11 -10
  208. package/dist/esm/models/TransactionSummary.js +51 -52
  209. package/dist/esm/models/TransactionsImportResponse.d.ts +2 -7
  210. package/dist/esm/models/TransactionsImportResponse.js +8 -16
  211. package/dist/esm/models/TransactionsImportResponseData.d.ts +2 -7
  212. package/dist/esm/models/TransactionsImportResponseData.js +8 -16
  213. package/dist/esm/models/TransactionsResponse.d.ts +2 -7
  214. package/dist/esm/models/TransactionsResponse.js +8 -16
  215. package/dist/esm/models/TransactionsResponseData.d.ts +2 -7
  216. package/dist/esm/models/TransactionsResponseData.js +11 -18
  217. package/dist/esm/models/User.d.ts +2 -7
  218. package/dist/esm/models/User.js +8 -16
  219. package/dist/esm/models/UserResponse.d.ts +2 -7
  220. package/dist/esm/models/UserResponse.js +8 -16
  221. package/dist/esm/models/UserResponseData.d.ts +2 -7
  222. package/dist/esm/models/UserResponseData.js +8 -16
  223. package/dist/esm/models/index.d.ts +10 -9
  224. package/dist/esm/models/index.js +10 -9
  225. package/dist/esm/runtime.d.ts +12 -17
  226. package/dist/esm/runtime.js +43 -39
  227. package/dist/index.js +17 -2
  228. package/dist/runtime.d.ts +5 -5
  229. package/dist/runtime.js +58 -48
  230. package/package.json +1 -1
@@ -4,17 +4,11 @@
4
4
  * YNAB API Endpoints
5
5
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
- import { exists } from '../runtime';
15
- import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
16
- import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
17
9
  import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
10
+ import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
11
+ import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
18
12
  /**
19
13
  * @export
20
14
  */
@@ -32,79 +26,86 @@ export var TransactionDetailDebtTransactionTypeEnum = {
32
26
  * Check if a given object implements the TransactionDetail interface.
33
27
  */
34
28
  export function instanceOfTransactionDetail(value) {
35
- var isInstance = true;
36
- isInstance = isInstance && "id" in value;
37
- isInstance = isInstance && "date" in value;
38
- isInstance = isInstance && "amount" in value;
39
- isInstance = isInstance && "cleared" in value;
40
- isInstance = isInstance && "approved" in value;
41
- isInstance = isInstance && "account_id" in value;
42
- isInstance = isInstance && "deleted" in value;
43
- isInstance = isInstance && "account_name" in value;
44
- isInstance = isInstance && "subtransactions" in value;
45
- return isInstance;
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('date' in value) || value['date'] === undefined)
32
+ return false;
33
+ if (!('amount' in value) || value['amount'] === undefined)
34
+ return false;
35
+ if (!('cleared' in value) || value['cleared'] === undefined)
36
+ return false;
37
+ if (!('approved' in value) || value['approved'] === undefined)
38
+ return false;
39
+ if (!('account_id' in value) || value['account_id'] === undefined)
40
+ return false;
41
+ if (!('deleted' in value) || value['deleted'] === undefined)
42
+ return false;
43
+ if (!('account_name' in value) || value['account_name'] === undefined)
44
+ return false;
45
+ if (!('subtransactions' in value) || value['subtransactions'] === undefined)
46
+ return false;
47
+ return true;
46
48
  }
47
49
  export function TransactionDetailFromJSON(json) {
48
50
  return TransactionDetailFromJSONTyped(json, false);
49
51
  }
50
52
  export function TransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
51
- if ((json === undefined) || (json === null)) {
53
+ if (json == null) {
52
54
  return json;
53
55
  }
54
56
  return {
55
57
  'id': json['id'],
56
58
  'date': json['date'],
57
59
  'amount': json['amount'],
58
- 'memo': !exists(json, 'memo') ? undefined : json['memo'],
60
+ 'memo': json['memo'] == null ? undefined : json['memo'],
59
61
  'cleared': TransactionClearedStatusFromJSON(json['cleared']),
60
62
  'approved': json['approved'],
61
- 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
63
+ 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
64
+ 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
62
65
  'account_id': json['account_id'],
63
- 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'],
64
- 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'],
65
- 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
66
- 'transfer_transaction_id': !exists(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'],
67
- 'matched_transaction_id': !exists(json, 'matched_transaction_id') ? undefined : json['matched_transaction_id'],
68
- 'import_id': !exists(json, 'import_id') ? undefined : json['import_id'],
69
- 'import_payee_name': !exists(json, 'import_payee_name') ? undefined : json['import_payee_name'],
70
- 'import_payee_name_original': !exists(json, 'import_payee_name_original') ? undefined : json['import_payee_name_original'],
71
- 'debt_transaction_type': !exists(json, 'debt_transaction_type') ? undefined : json['debt_transaction_type'],
66
+ 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
67
+ 'category_id': json['category_id'] == null ? undefined : json['category_id'],
68
+ 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
69
+ 'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
70
+ 'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'],
71
+ 'import_id': json['import_id'] == null ? undefined : json['import_id'],
72
+ 'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'],
73
+ 'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'],
74
+ 'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'],
72
75
  'deleted': json['deleted'],
73
76
  'account_name': json['account_name'],
74
- 'payee_name': !exists(json, 'payee_name') ? undefined : json['payee_name'],
75
- 'category_name': !exists(json, 'category_name') ? undefined : json['category_name'],
77
+ 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
78
+ 'category_name': json['category_name'] == null ? undefined : json['category_name'],
76
79
  'subtransactions': (json['subtransactions'].map(SubTransactionFromJSON)),
77
80
  };
78
81
  }
79
82
  export function TransactionDetailToJSON(value) {
80
- if (value === undefined) {
81
- return undefined;
82
- }
83
- if (value === null) {
84
- return null;
83
+ if (value == null) {
84
+ return value;
85
85
  }
86
86
  return {
87
- 'id': value.id,
88
- 'date': value.date,
89
- 'amount': value.amount,
90
- 'memo': value.memo,
91
- 'cleared': TransactionClearedStatusToJSON(value.cleared),
92
- 'approved': value.approved,
93
- 'flag_color': TransactionFlagColorToJSON(value.flag_color),
94
- 'account_id': value.account_id,
95
- 'payee_id': value.payee_id,
96
- 'category_id': value.category_id,
97
- 'transfer_account_id': value.transfer_account_id,
98
- 'transfer_transaction_id': value.transfer_transaction_id,
99
- 'matched_transaction_id': value.matched_transaction_id,
100
- 'import_id': value.import_id,
101
- 'import_payee_name': value.import_payee_name,
102
- 'import_payee_name_original': value.import_payee_name_original,
103
- 'debt_transaction_type': value.debt_transaction_type,
104
- 'deleted': value.deleted,
105
- 'account_name': value.account_name,
106
- 'payee_name': value.payee_name,
107
- 'category_name': value.category_name,
108
- 'subtransactions': (value.subtransactions.map(SubTransactionToJSON)),
87
+ 'id': value['id'],
88
+ 'date': value['date'],
89
+ 'amount': value['amount'],
90
+ 'memo': value['memo'],
91
+ 'cleared': TransactionClearedStatusToJSON(value['cleared']),
92
+ 'approved': value['approved'],
93
+ 'flag_color': TransactionFlagColorToJSON(value['flag_color']),
94
+ 'flag_name': value['flag_name'],
95
+ 'account_id': value['account_id'],
96
+ 'payee_id': value['payee_id'],
97
+ 'category_id': value['category_id'],
98
+ 'transfer_account_id': value['transfer_account_id'],
99
+ 'transfer_transaction_id': value['transfer_transaction_id'],
100
+ 'matched_transaction_id': value['matched_transaction_id'],
101
+ 'import_id': value['import_id'],
102
+ 'import_payee_name': value['import_payee_name'],
103
+ 'import_payee_name_original': value['import_payee_name_original'],
104
+ 'debt_transaction_type': value['debt_transaction_type'],
105
+ 'deleted': value['deleted'],
106
+ 'account_name': value['account_name'],
107
+ 'payee_name': value['payee_name'],
108
+ 'category_name': value['category_name'],
109
+ 'subtransactions': (value['subtransactions'].map(SubTransactionToJSON)),
109
110
  };
110
111
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  /**
13
8
  * The transaction flag
@@ -21,7 +16,8 @@ export declare const TransactionFlagColor: {
21
16
  readonly Blue: "blue";
22
17
  readonly Purple: "purple";
23
18
  };
24
- export declare type TransactionFlagColor = typeof TransactionFlagColor[keyof typeof TransactionFlagColor];
19
+ export type TransactionFlagColor = typeof TransactionFlagColor[keyof typeof TransactionFlagColor];
20
+ export declare function instanceOfTransactionFlagColor(value: any): boolean;
25
21
  export declare function TransactionFlagColorFromJSON(json: any): TransactionFlagColor;
26
22
  export declare function TransactionFlagColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFlagColor;
27
23
  export declare function TransactionFlagColorToJSON(value?: TransactionFlagColor | null): any;
@@ -4,12 +4,7 @@
4
4
  * YNAB API Endpoints
5
5
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  /**
15
10
  * The transaction flag
@@ -23,6 +18,16 @@ export var TransactionFlagColor = {
23
18
  Blue: 'blue',
24
19
  Purple: 'purple',
25
20
  };
21
+ export function instanceOfTransactionFlagColor(value) {
22
+ for (var key in TransactionFlagColor) {
23
+ if (Object.prototype.hasOwnProperty.call(TransactionFlagColor, key)) {
24
+ if (TransactionFlagColor[key] === value) {
25
+ return true;
26
+ }
27
+ }
28
+ }
29
+ return false;
30
+ }
26
31
  export function TransactionFlagColorFromJSON(json) {
27
32
  return TransactionFlagColorFromJSONTyped(json, false);
28
33
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import type { TransactionResponseData } from './TransactionResponseData';
13
8
  /**
@@ -26,7 +21,7 @@ export interface TransactionResponse {
26
21
  /**
27
22
  * Check if a given object implements the TransactionResponse interface.
28
23
  */
29
- export declare function instanceOfTransactionResponse(value: object): boolean;
24
+ export declare function instanceOfTransactionResponse(value: object): value is TransactionResponse;
30
25
  export declare function TransactionResponseFromJSON(json: any): TransactionResponse;
31
26
  export declare function TransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponse;
32
27
  export declare function TransactionResponseToJSON(value?: TransactionResponse | null): any;
@@ -4,27 +4,22 @@
4
4
  * YNAB API Endpoints
5
5
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  import { TransactionResponseDataFromJSON, TransactionResponseDataToJSON, } from './TransactionResponseData';
15
10
  /**
16
11
  * Check if a given object implements the TransactionResponse interface.
17
12
  */
18
13
  export function instanceOfTransactionResponse(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "data" in value;
21
- return isInstance;
14
+ if (!('data' in value) || value['data'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function TransactionResponseFromJSON(json) {
24
19
  return TransactionResponseFromJSONTyped(json, false);
25
20
  }
26
21
  export function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
22
+ if (json == null) {
28
23
  return json;
29
24
  }
30
25
  return {
@@ -32,13 +27,10 @@ export function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
32
27
  };
33
28
  }
34
29
  export function TransactionResponseToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
30
+ if (value == null) {
31
+ return value;
40
32
  }
41
33
  return {
42
- 'data': TransactionResponseDataToJSON(value.data),
34
+ 'data': TransactionResponseDataToJSON(value['data']),
43
35
  };
44
36
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import type { TransactionDetail } from './TransactionDetail';
13
8
  /**
@@ -26,7 +21,7 @@ export interface TransactionResponseData {
26
21
  /**
27
22
  * Check if a given object implements the TransactionResponseData interface.
28
23
  */
29
- export declare function instanceOfTransactionResponseData(value: object): boolean;
24
+ export declare function instanceOfTransactionResponseData(value: object): value is TransactionResponseData;
30
25
  export declare function TransactionResponseDataFromJSON(json: any): TransactionResponseData;
31
26
  export declare function TransactionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponseData;
32
27
  export declare function TransactionResponseDataToJSON(value?: TransactionResponseData | null): any;
@@ -4,27 +4,22 @@
4
4
  * YNAB API Endpoints
5
5
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  import { TransactionDetailFromJSON, TransactionDetailToJSON, } from './TransactionDetail';
15
10
  /**
16
11
  * Check if a given object implements the TransactionResponseData interface.
17
12
  */
18
13
  export function instanceOfTransactionResponseData(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "transaction" in value;
21
- return isInstance;
14
+ if (!('transaction' in value) || value['transaction'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function TransactionResponseDataFromJSON(json) {
24
19
  return TransactionResponseDataFromJSONTyped(json, false);
25
20
  }
26
21
  export function TransactionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
22
+ if (json == null) {
28
23
  return json;
29
24
  }
30
25
  return {
@@ -32,13 +27,10 @@ export function TransactionResponseDataFromJSONTyped(json, ignoreDiscriminator)
32
27
  };
33
28
  }
34
29
  export function TransactionResponseDataToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
30
+ if (value == null) {
31
+ return value;
40
32
  }
41
33
  return {
42
- 'transaction': TransactionDetailToJSON(value.transaction),
34
+ 'transaction': TransactionDetailToJSON(value['transaction']),
43
35
  };
44
36
  }
@@ -2,15 +2,10 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
- import type { TransactionClearedStatus } from './TransactionClearedStatus';
13
7
  import type { TransactionFlagColor } from './TransactionFlagColor';
8
+ import type { TransactionClearedStatus } from './TransactionClearedStatus';
14
9
  /**
15
10
  *
16
11
  * @export
@@ -59,6 +54,12 @@ export interface TransactionSummary {
59
54
  * @memberof TransactionSummary
60
55
  */
61
56
  flag_color?: TransactionFlagColor | null;
57
+ /**
58
+ * The customized name of a transaction flag
59
+ * @type {string}
60
+ * @memberof TransactionSummary
61
+ */
62
+ flag_name?: string | null;
62
63
  /**
63
64
  *
64
65
  * @type {string}
@@ -118,7 +119,7 @@ export interface TransactionSummary {
118
119
  * @type {string}
119
120
  * @memberof TransactionSummary
120
121
  */
121
- debt_transaction_type?: TransactionSummaryDebtTransactionTypeEnum;
122
+ debt_transaction_type?: TransactionSummaryDebtTransactionTypeEnum | null;
122
123
  /**
123
124
  * Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
124
125
  * @type {boolean}
@@ -139,11 +140,11 @@ export declare const TransactionSummaryDebtTransactionTypeEnum: {
139
140
  readonly Credit: "credit";
140
141
  readonly Charge: "charge";
141
142
  };
142
- export declare type TransactionSummaryDebtTransactionTypeEnum = typeof TransactionSummaryDebtTransactionTypeEnum[keyof typeof TransactionSummaryDebtTransactionTypeEnum];
143
+ export type TransactionSummaryDebtTransactionTypeEnum = typeof TransactionSummaryDebtTransactionTypeEnum[keyof typeof TransactionSummaryDebtTransactionTypeEnum];
143
144
  /**
144
145
  * Check if a given object implements the TransactionSummary interface.
145
146
  */
146
- export declare function instanceOfTransactionSummary(value: object): boolean;
147
+ export declare function instanceOfTransactionSummary(value: object): value is TransactionSummary;
147
148
  export declare function TransactionSummaryFromJSON(json: any): TransactionSummary;
148
149
  export declare function TransactionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionSummary;
149
150
  export declare function TransactionSummaryToJSON(value?: TransactionSummary | null): any;
@@ -4,16 +4,10 @@
4
4
  * YNAB API Endpoints
5
5
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
- import { exists } from '../runtime';
15
- import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
16
9
  import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
10
+ import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
17
11
  /**
18
12
  * @export
19
13
  */
@@ -31,69 +25,74 @@ export var TransactionSummaryDebtTransactionTypeEnum = {
31
25
  * Check if a given object implements the TransactionSummary interface.
32
26
  */
33
27
  export function instanceOfTransactionSummary(value) {
34
- var isInstance = true;
35
- isInstance = isInstance && "id" in value;
36
- isInstance = isInstance && "date" in value;
37
- isInstance = isInstance && "amount" in value;
38
- isInstance = isInstance && "cleared" in value;
39
- isInstance = isInstance && "approved" in value;
40
- isInstance = isInstance && "account_id" in value;
41
- isInstance = isInstance && "deleted" in value;
42
- return isInstance;
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('date' in value) || value['date'] === undefined)
31
+ return false;
32
+ if (!('amount' in value) || value['amount'] === undefined)
33
+ return false;
34
+ if (!('cleared' in value) || value['cleared'] === undefined)
35
+ return false;
36
+ if (!('approved' in value) || value['approved'] === undefined)
37
+ return false;
38
+ if (!('account_id' in value) || value['account_id'] === undefined)
39
+ return false;
40
+ if (!('deleted' in value) || value['deleted'] === undefined)
41
+ return false;
42
+ return true;
43
43
  }
44
44
  export function TransactionSummaryFromJSON(json) {
45
45
  return TransactionSummaryFromJSONTyped(json, false);
46
46
  }
47
47
  export function TransactionSummaryFromJSONTyped(json, ignoreDiscriminator) {
48
- if ((json === undefined) || (json === null)) {
48
+ if (json == null) {
49
49
  return json;
50
50
  }
51
51
  return {
52
52
  'id': json['id'],
53
53
  'date': json['date'],
54
54
  'amount': json['amount'],
55
- 'memo': !exists(json, 'memo') ? undefined : json['memo'],
55
+ 'memo': json['memo'] == null ? undefined : json['memo'],
56
56
  'cleared': TransactionClearedStatusFromJSON(json['cleared']),
57
57
  'approved': json['approved'],
58
- 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
58
+ 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
59
+ 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
59
60
  'account_id': json['account_id'],
60
- 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'],
61
- 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'],
62
- 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
63
- 'transfer_transaction_id': !exists(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'],
64
- 'matched_transaction_id': !exists(json, 'matched_transaction_id') ? undefined : json['matched_transaction_id'],
65
- 'import_id': !exists(json, 'import_id') ? undefined : json['import_id'],
66
- 'import_payee_name': !exists(json, 'import_payee_name') ? undefined : json['import_payee_name'],
67
- 'import_payee_name_original': !exists(json, 'import_payee_name_original') ? undefined : json['import_payee_name_original'],
68
- 'debt_transaction_type': !exists(json, 'debt_transaction_type') ? undefined : json['debt_transaction_type'],
61
+ 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
62
+ 'category_id': json['category_id'] == null ? undefined : json['category_id'],
63
+ 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
64
+ 'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
65
+ 'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'],
66
+ 'import_id': json['import_id'] == null ? undefined : json['import_id'],
67
+ 'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'],
68
+ 'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'],
69
+ 'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'],
69
70
  'deleted': json['deleted'],
70
71
  };
71
72
  }
72
73
  export function TransactionSummaryToJSON(value) {
73
- if (value === undefined) {
74
- return undefined;
75
- }
76
- if (value === null) {
77
- return null;
74
+ if (value == null) {
75
+ return value;
78
76
  }
79
77
  return {
80
- 'id': value.id,
81
- 'date': value.date,
82
- 'amount': value.amount,
83
- 'memo': value.memo,
84
- 'cleared': TransactionClearedStatusToJSON(value.cleared),
85
- 'approved': value.approved,
86
- 'flag_color': TransactionFlagColorToJSON(value.flag_color),
87
- 'account_id': value.account_id,
88
- 'payee_id': value.payee_id,
89
- 'category_id': value.category_id,
90
- 'transfer_account_id': value.transfer_account_id,
91
- 'transfer_transaction_id': value.transfer_transaction_id,
92
- 'matched_transaction_id': value.matched_transaction_id,
93
- 'import_id': value.import_id,
94
- 'import_payee_name': value.import_payee_name,
95
- 'import_payee_name_original': value.import_payee_name_original,
96
- 'debt_transaction_type': value.debt_transaction_type,
97
- 'deleted': value.deleted,
78
+ 'id': value['id'],
79
+ 'date': value['date'],
80
+ 'amount': value['amount'],
81
+ 'memo': value['memo'],
82
+ 'cleared': TransactionClearedStatusToJSON(value['cleared']),
83
+ 'approved': value['approved'],
84
+ 'flag_color': TransactionFlagColorToJSON(value['flag_color']),
85
+ 'flag_name': value['flag_name'],
86
+ 'account_id': value['account_id'],
87
+ 'payee_id': value['payee_id'],
88
+ 'category_id': value['category_id'],
89
+ 'transfer_account_id': value['transfer_account_id'],
90
+ 'transfer_transaction_id': value['transfer_transaction_id'],
91
+ 'matched_transaction_id': value['matched_transaction_id'],
92
+ 'import_id': value['import_id'],
93
+ 'import_payee_name': value['import_payee_name'],
94
+ 'import_payee_name_original': value['import_payee_name_original'],
95
+ 'debt_transaction_type': value['debt_transaction_type'],
96
+ 'deleted': value['deleted'],
98
97
  };
99
98
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import type { TransactionsImportResponseData } from './TransactionsImportResponseData';
13
8
  /**
@@ -26,7 +21,7 @@ export interface TransactionsImportResponse {
26
21
  /**
27
22
  * Check if a given object implements the TransactionsImportResponse interface.
28
23
  */
29
- export declare function instanceOfTransactionsImportResponse(value: object): boolean;
24
+ export declare function instanceOfTransactionsImportResponse(value: object): value is TransactionsImportResponse;
30
25
  export declare function TransactionsImportResponseFromJSON(json: any): TransactionsImportResponse;
31
26
  export declare function TransactionsImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsImportResponse;
32
27
  export declare function TransactionsImportResponseToJSON(value?: TransactionsImportResponse | null): any;
@@ -4,27 +4,22 @@
4
4
  * YNAB API Endpoints
5
5
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  import { TransactionsImportResponseDataFromJSON, TransactionsImportResponseDataToJSON, } from './TransactionsImportResponseData';
15
10
  /**
16
11
  * Check if a given object implements the TransactionsImportResponse interface.
17
12
  */
18
13
  export function instanceOfTransactionsImportResponse(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "data" in value;
21
- return isInstance;
14
+ if (!('data' in value) || value['data'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function TransactionsImportResponseFromJSON(json) {
24
19
  return TransactionsImportResponseFromJSONTyped(json, false);
25
20
  }
26
21
  export function TransactionsImportResponseFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
22
+ if (json == null) {
28
23
  return json;
29
24
  }
30
25
  return {
@@ -32,13 +27,10 @@ export function TransactionsImportResponseFromJSONTyped(json, ignoreDiscriminato
32
27
  };
33
28
  }
34
29
  export function TransactionsImportResponseToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
30
+ if (value == null) {
31
+ return value;
40
32
  }
41
33
  return {
42
- 'data': TransactionsImportResponseDataToJSON(value.data),
34
+ 'data': TransactionsImportResponseDataToJSON(value['data']),
43
35
  };
44
36
  }