@payabli/sdk-node 0.0.110 → 0.0.114

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 (193) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +33 -28
  4. package/dist/cjs/api/resources/bill/types/BillResponse.d.ts +1 -1
  5. package/dist/cjs/api/resources/bill/types/EditBillResponse.d.ts +1 -1
  6. package/dist/cjs/api/resources/bill/types/GetBillResponse.d.ts +1 -1
  7. package/dist/cjs/api/{types → resources/chargeBacks/types}/ChargeBackResponse.d.ts +1 -1
  8. package/dist/cjs/api/resources/chargeBacks/types/ChargebackMessage.d.ts +21 -0
  9. package/dist/cjs/api/resources/chargeBacks/types/ChargebackQueryRecords.d.ts +69 -0
  10. package/dist/cjs/api/resources/chargeBacks/types/ChargebackQueryRecords.js +5 -0
  11. package/dist/cjs/api/resources/chargeBacks/types/index.d.ts +3 -0
  12. package/dist/cjs/api/resources/chargeBacks/types/index.js +3 -0
  13. package/dist/cjs/api/resources/index.d.ts +3 -0
  14. package/dist/cjs/api/resources/index.js +4 -1
  15. package/dist/cjs/api/resources/lineItem/types/DeleteItemResponse.d.ts +2 -2
  16. package/dist/cjs/api/resources/moneyIn/types/ReceiptResponse.d.ts +1 -1
  17. package/dist/cjs/api/resources/moneyOutTypes/types/CaptureAllOutResponse.d.ts +1 -1
  18. package/dist/cjs/api/resources/moneyOutTypes/types/VCardGetResponse.d.ts +2 -0
  19. package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +118 -0
  20. package/dist/cjs/api/resources/notificationlogs/client/Client.js +370 -0
  21. package/dist/cjs/api/resources/notificationlogs/client/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/notificationlogs/client/index.js +17 -0
  23. package/dist/cjs/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.d.ts +23 -0
  24. package/dist/cjs/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.js +5 -0
  25. package/dist/cjs/api/resources/notificationlogs/client/requests/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/notificationlogs/client/requests/index.js +2 -0
  27. package/dist/cjs/api/resources/notificationlogs/index.d.ts +2 -0
  28. package/dist/cjs/api/resources/notificationlogs/index.js +18 -0
  29. package/dist/cjs/api/resources/notificationlogs/types/BulkRetryRequest.d.ts +7 -0
  30. package/dist/cjs/api/resources/notificationlogs/types/BulkRetryRequest.js +5 -0
  31. package/dist/cjs/api/resources/notificationlogs/types/KeyValueArray.d.ts +7 -0
  32. package/dist/cjs/api/resources/notificationlogs/types/KeyValueArray.js +5 -0
  33. package/dist/cjs/api/resources/notificationlogs/types/NotificationLog.d.ts +29 -0
  34. package/dist/cjs/api/resources/notificationlogs/types/NotificationLog.js +5 -0
  35. package/dist/cjs/api/resources/notificationlogs/types/NotificationLogDetail.d.ts +9 -0
  36. package/dist/cjs/api/resources/notificationlogs/types/NotificationLogDetail.js +5 -0
  37. package/dist/cjs/api/resources/notificationlogs/types/NotificationLogSearchRequest.d.ts +17 -0
  38. package/dist/cjs/api/resources/notificationlogs/types/NotificationLogSearchRequest.js +5 -0
  39. package/dist/cjs/api/resources/notificationlogs/types/StringStringKeyValuePair.d.ts +7 -0
  40. package/dist/cjs/api/resources/notificationlogs/types/StringStringKeyValuePair.js +5 -0
  41. package/dist/cjs/api/resources/notificationlogs/types/index.d.ts +6 -0
  42. package/dist/cjs/api/resources/notificationlogs/types/index.js +22 -0
  43. package/dist/cjs/api/resources/ocr/types/PayabliApiResponseOcr.d.ts +3 -3
  44. package/dist/cjs/api/resources/organization/types/AddOrganizationResponse.d.ts +1 -1
  45. package/dist/cjs/api/resources/organization/types/DeleteOrganizationResponse.d.ts +1 -1
  46. package/dist/cjs/api/resources/organization/types/EditOrganizationResponse.d.ts +2 -2
  47. package/dist/cjs/api/resources/paymentLink/types/PayabliApiResponsePaymentLinks.d.ts +2 -2
  48. package/dist/cjs/api/resources/paypoint/types/GetBasicEntryByIdResponse.d.ts +2 -2
  49. package/dist/cjs/api/resources/paypoint/types/GetBasicEntryResponse.d.ts +2 -2
  50. package/dist/cjs/api/resources/paypoint/types/GetEntryConfigResponse.d.ts +2 -2
  51. package/dist/cjs/api/resources/paypoint/types/MigratePaypointResponse.d.ts +2 -2
  52. package/dist/cjs/api/resources/subscription/types/AddSubscriptionResponse.d.ts +1 -1
  53. package/dist/cjs/api/resources/subscription/types/RemoveSubscriptionResponse.d.ts +1 -1
  54. package/dist/cjs/api/resources/subscription/types/UpdateSubscriptionResponse.d.ts +1 -1
  55. package/dist/cjs/api/resources/tokenStorage/types/AddMethodResponse.d.ts +5 -5
  56. package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +1 -1
  57. package/dist/cjs/api/resources/user/types/AddUserResponse.d.ts +1 -1
  58. package/dist/cjs/api/resources/user/types/AuthResetUserResponse.d.ts +1 -1
  59. package/dist/cjs/api/resources/user/types/ChangePswUserResponse.d.ts +1 -1
  60. package/dist/cjs/api/resources/user/types/DeleteUserResponse.d.ts +1 -1
  61. package/dist/cjs/api/resources/user/types/EditMfaUserResponse.d.ts +1 -1
  62. package/dist/cjs/api/resources/user/types/LogoutUserResponse.d.ts +1 -1
  63. package/dist/cjs/api/types/BoardingLinkApiResponse.d.ts +1 -1
  64. package/dist/cjs/api/types/CloudQueryApiResponse.d.ts +1 -1
  65. package/dist/cjs/api/types/ConfigureApplePayOrganizationApiResponse.d.ts +1 -1
  66. package/dist/cjs/api/types/ConfigureApplePaypointApiResponse.d.ts +1 -1
  67. package/dist/cjs/api/types/NotificationStandardRequest.d.ts +75 -1
  68. package/dist/cjs/api/types/NotificationStandardRequest.js +74 -0
  69. package/dist/cjs/api/types/PayabliApiResponse.d.ts +1 -1
  70. package/dist/cjs/api/types/PayabliApiResponse0.d.ts +1 -1
  71. package/dist/cjs/api/types/PayabliApiResponse00.d.ts +1 -1
  72. package/dist/cjs/api/types/PayabliApiResponse0000.d.ts +1 -1
  73. package/dist/cjs/api/types/PayabliApiResponse00Responsedatanonobject.d.ts +1 -1
  74. package/dist/cjs/api/types/PayabliApiResponse6.d.ts +1 -1
  75. package/dist/cjs/api/types/PayabliApiResponseCustomerQuery.d.ts +1 -1
  76. package/dist/cjs/api/types/PayabliApiResponseGeneric2Part.d.ts +1 -1
  77. package/dist/cjs/api/types/PayabliApiResponseImport.d.ts +1 -1
  78. package/dist/cjs/api/types/PayabliApiResponseMfaBasic.d.ts +1 -1
  79. package/dist/cjs/api/types/PayabliApiResponseNotifications.d.ts +1 -1
  80. package/dist/cjs/api/types/PayabliApiResponsePaymethodDelete.d.ts +1 -1
  81. package/dist/cjs/api/types/PayabliApiResponseTemplateId.d.ts +1 -1
  82. package/dist/cjs/api/types/PayabliApiResponseUserMfa.d.ts +1 -1
  83. package/dist/cjs/api/types/PayabliApiResponseVendors.d.ts +1 -1
  84. package/dist/cjs/api/types/PaymentMethodDomainGeneralResponse.d.ts +1 -1
  85. package/dist/cjs/api/types/Transfer.d.ts +18 -15
  86. package/dist/cjs/api/types/TransferMessage.d.ts +8 -8
  87. package/dist/cjs/api/types/TransferMessageProperties.d.ts +2 -2
  88. package/dist/cjs/api/types/TransferQueryResponse.d.ts +2 -1
  89. package/dist/cjs/api/types/VCardRecord.d.ts +43 -0
  90. package/dist/cjs/api/types/index.d.ts +3 -5
  91. package/dist/cjs/api/types/index.js +3 -5
  92. package/dist/cjs/version.d.ts +1 -1
  93. package/dist/cjs/version.js +1 -1
  94. package/dist/esm/Client.d.mts +3 -0
  95. package/dist/esm/Client.mjs +7 -2
  96. package/dist/esm/api/resources/bill/types/BillResponse.d.mts +1 -1
  97. package/dist/esm/api/resources/bill/types/EditBillResponse.d.mts +1 -1
  98. package/dist/esm/api/resources/bill/types/GetBillResponse.d.mts +1 -1
  99. package/dist/esm/api/{types → resources/chargeBacks/types}/ChargeBackResponse.d.mts +1 -1
  100. package/dist/esm/api/resources/chargeBacks/types/ChargebackMessage.d.mts +21 -0
  101. package/dist/esm/api/resources/chargeBacks/types/ChargebackQueryRecords.d.mts +69 -0
  102. package/dist/esm/api/resources/chargeBacks/types/ChargebackQueryRecords.mjs +4 -0
  103. package/dist/esm/api/resources/chargeBacks/types/index.d.mts +3 -0
  104. package/dist/esm/api/resources/chargeBacks/types/index.mjs +3 -0
  105. package/dist/esm/api/resources/index.d.mts +3 -0
  106. package/dist/esm/api/resources/index.mjs +3 -0
  107. package/dist/esm/api/resources/lineItem/types/DeleteItemResponse.d.mts +2 -2
  108. package/dist/esm/api/resources/moneyIn/types/ReceiptResponse.d.mts +1 -1
  109. package/dist/esm/api/resources/moneyOutTypes/types/CaptureAllOutResponse.d.mts +1 -1
  110. package/dist/esm/api/resources/moneyOutTypes/types/VCardGetResponse.d.mts +2 -0
  111. package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +118 -0
  112. package/dist/esm/api/resources/notificationlogs/client/Client.mjs +333 -0
  113. package/dist/esm/api/resources/notificationlogs/client/index.d.mts +2 -0
  114. package/dist/esm/api/resources/notificationlogs/client/index.mjs +1 -0
  115. package/dist/esm/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.d.mts +23 -0
  116. package/dist/esm/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.mjs +4 -0
  117. package/dist/esm/api/resources/notificationlogs/client/requests/index.d.mts +1 -0
  118. package/dist/esm/api/resources/notificationlogs/client/requests/index.mjs +1 -0
  119. package/dist/esm/api/resources/notificationlogs/index.d.mts +2 -0
  120. package/dist/esm/api/resources/notificationlogs/index.mjs +2 -0
  121. package/dist/esm/api/resources/notificationlogs/types/BulkRetryRequest.d.mts +7 -0
  122. package/dist/esm/api/resources/notificationlogs/types/BulkRetryRequest.mjs +4 -0
  123. package/dist/esm/api/resources/notificationlogs/types/KeyValueArray.d.mts +7 -0
  124. package/dist/esm/api/resources/notificationlogs/types/KeyValueArray.mjs +4 -0
  125. package/dist/esm/api/resources/notificationlogs/types/NotificationLog.d.mts +29 -0
  126. package/dist/esm/api/resources/notificationlogs/types/NotificationLog.mjs +4 -0
  127. package/dist/esm/api/resources/notificationlogs/types/NotificationLogDetail.d.mts +9 -0
  128. package/dist/esm/api/resources/notificationlogs/types/NotificationLogDetail.mjs +4 -0
  129. package/dist/esm/api/resources/notificationlogs/types/NotificationLogSearchRequest.d.mts +17 -0
  130. package/dist/esm/api/resources/notificationlogs/types/NotificationLogSearchRequest.mjs +4 -0
  131. package/dist/esm/api/resources/notificationlogs/types/StringStringKeyValuePair.d.mts +7 -0
  132. package/dist/esm/api/resources/notificationlogs/types/StringStringKeyValuePair.mjs +4 -0
  133. package/dist/esm/api/resources/notificationlogs/types/index.d.mts +6 -0
  134. package/dist/esm/api/resources/notificationlogs/types/index.mjs +6 -0
  135. package/dist/esm/api/resources/ocr/types/PayabliApiResponseOcr.d.mts +3 -3
  136. package/dist/esm/api/resources/organization/types/AddOrganizationResponse.d.mts +1 -1
  137. package/dist/esm/api/resources/organization/types/DeleteOrganizationResponse.d.mts +1 -1
  138. package/dist/esm/api/resources/organization/types/EditOrganizationResponse.d.mts +2 -2
  139. package/dist/esm/api/resources/paymentLink/types/PayabliApiResponsePaymentLinks.d.mts +2 -2
  140. package/dist/esm/api/resources/paypoint/types/GetBasicEntryByIdResponse.d.mts +2 -2
  141. package/dist/esm/api/resources/paypoint/types/GetBasicEntryResponse.d.mts +2 -2
  142. package/dist/esm/api/resources/paypoint/types/GetEntryConfigResponse.d.mts +2 -2
  143. package/dist/esm/api/resources/paypoint/types/MigratePaypointResponse.d.mts +2 -2
  144. package/dist/esm/api/resources/subscription/types/AddSubscriptionResponse.d.mts +1 -1
  145. package/dist/esm/api/resources/subscription/types/RemoveSubscriptionResponse.d.mts +1 -1
  146. package/dist/esm/api/resources/subscription/types/UpdateSubscriptionResponse.d.mts +1 -1
  147. package/dist/esm/api/resources/tokenStorage/types/AddMethodResponse.d.mts +5 -5
  148. package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +1 -1
  149. package/dist/esm/api/resources/user/types/AddUserResponse.d.mts +1 -1
  150. package/dist/esm/api/resources/user/types/AuthResetUserResponse.d.mts +1 -1
  151. package/dist/esm/api/resources/user/types/ChangePswUserResponse.d.mts +1 -1
  152. package/dist/esm/api/resources/user/types/DeleteUserResponse.d.mts +1 -1
  153. package/dist/esm/api/resources/user/types/EditMfaUserResponse.d.mts +1 -1
  154. package/dist/esm/api/resources/user/types/LogoutUserResponse.d.mts +1 -1
  155. package/dist/esm/api/types/BoardingLinkApiResponse.d.mts +1 -1
  156. package/dist/esm/api/types/CloudQueryApiResponse.d.mts +1 -1
  157. package/dist/esm/api/types/ConfigureApplePayOrganizationApiResponse.d.mts +1 -1
  158. package/dist/esm/api/types/ConfigureApplePaypointApiResponse.d.mts +1 -1
  159. package/dist/esm/api/types/NotificationStandardRequest.d.mts +75 -1
  160. package/dist/esm/api/types/NotificationStandardRequest.mjs +74 -0
  161. package/dist/esm/api/types/PayabliApiResponse.d.mts +1 -1
  162. package/dist/esm/api/types/PayabliApiResponse0.d.mts +1 -1
  163. package/dist/esm/api/types/PayabliApiResponse00.d.mts +1 -1
  164. package/dist/esm/api/types/PayabliApiResponse0000.d.mts +1 -1
  165. package/dist/esm/api/types/PayabliApiResponse00Responsedatanonobject.d.mts +1 -1
  166. package/dist/esm/api/types/PayabliApiResponse6.d.mts +1 -1
  167. package/dist/esm/api/types/PayabliApiResponseCustomerQuery.d.mts +1 -1
  168. package/dist/esm/api/types/PayabliApiResponseGeneric2Part.d.mts +1 -1
  169. package/dist/esm/api/types/PayabliApiResponseImport.d.mts +1 -1
  170. package/dist/esm/api/types/PayabliApiResponseMfaBasic.d.mts +1 -1
  171. package/dist/esm/api/types/PayabliApiResponseNotifications.d.mts +1 -1
  172. package/dist/esm/api/types/PayabliApiResponsePaymethodDelete.d.mts +1 -1
  173. package/dist/esm/api/types/PayabliApiResponseTemplateId.d.mts +1 -1
  174. package/dist/esm/api/types/PayabliApiResponseUserMfa.d.mts +1 -1
  175. package/dist/esm/api/types/PayabliApiResponseVendors.d.mts +1 -1
  176. package/dist/esm/api/types/PaymentMethodDomainGeneralResponse.d.mts +1 -1
  177. package/dist/esm/api/types/Transfer.d.mts +18 -15
  178. package/dist/esm/api/types/TransferMessage.d.mts +8 -8
  179. package/dist/esm/api/types/TransferMessageProperties.d.mts +2 -2
  180. package/dist/esm/api/types/TransferQueryResponse.d.mts +2 -1
  181. package/dist/esm/api/types/VCardRecord.d.mts +43 -0
  182. package/dist/esm/api/types/index.d.mts +3 -5
  183. package/dist/esm/api/types/index.mjs +3 -5
  184. package/dist/esm/version.d.mts +1 -1
  185. package/dist/esm/version.mjs +1 -1
  186. package/package.json +1 -1
  187. package/reference.md +278 -0
  188. package/dist/cjs/api/types/ChargebackQueryRecords.d.ts +0 -54
  189. package/dist/esm/api/types/ChargebackQueryRecords.d.mts +0 -54
  190. /package/dist/cjs/api/{types → resources/chargeBacks/types}/ChargeBackResponse.js +0 -0
  191. /package/dist/cjs/api/{types/ChargebackQueryRecords.js → resources/chargeBacks/types/ChargebackMessage.js} +0 -0
  192. /package/dist/esm/api/{types → resources/chargeBacks/types}/ChargeBackResponse.mjs +0 -0
  193. /package/dist/esm/api/{types/ChargebackQueryRecords.mjs → resources/chargeBacks/types/ChargebackMessage.mjs} +0 -0
@@ -0,0 +1,370 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Notificationlogs = void 0;
49
+ const environments = __importStar(require("../../../../environments.js"));
50
+ const core = __importStar(require("../../../../core/index.js"));
51
+ const Payabli = __importStar(require("../../../index.js"));
52
+ const headers_js_1 = require("../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../errors/index.js"));
54
+ class Notificationlogs {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Search notification logs with filtering and pagination.
60
+ * - Start date and end date cannot be more than 30 days apart
61
+ * - Either `orgId` or `paypointId` must be provided
62
+ *
63
+ * This endpoint requires the `notifications_create` OR `notifications_read` permission.
64
+ *
65
+ * @param {Payabli.SearchNotificationLogsRequest} request
66
+ * @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Payabli.BadRequestError}
69
+ * @throws {@link Payabli.UnauthorizedError}
70
+ * @throws {@link Payabli.InternalServerError}
71
+ * @throws {@link Payabli.ServiceUnavailableError}
72
+ *
73
+ * @example
74
+ * await client.notificationlogs.searchNotificationLogs({
75
+ * PageSize: 20,
76
+ * body: {
77
+ * startDate: "2024-01-01T00:00:00Z",
78
+ * endDate: "2024-01-31T23:59:59Z",
79
+ * orgId: 12345,
80
+ * notificationEvent: "ActivatedMerchant",
81
+ * succeeded: true
82
+ * }
83
+ * })
84
+ */
85
+ searchNotificationLogs(request, requestOptions) {
86
+ return core.HttpResponsePromise.fromPromise(this.__searchNotificationLogs(request, requestOptions));
87
+ }
88
+ __searchNotificationLogs(request, requestOptions) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ var _a, _b, _c;
91
+ const { PageSize: pageSize, Skip: skip, body: _body } = request;
92
+ const _queryParams = {};
93
+ if (pageSize != null) {
94
+ _queryParams["PageSize"] = pageSize.toString();
95
+ }
96
+ if (skip != null) {
97
+ _queryParams["Skip"] = skip.toString();
98
+ }
99
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
100
+ const _response = yield core.fetcher({
101
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, "/v2/notificationlogs"),
102
+ method: "POST",
103
+ headers: _headers,
104
+ contentType: "application/json",
105
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
106
+ requestType: "json",
107
+ body: _body,
108
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
109
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
110
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
111
+ });
112
+ if (_response.ok) {
113
+ return { data: _response.body, rawResponse: _response.rawResponse };
114
+ }
115
+ if (_response.error.reason === "status-code") {
116
+ switch (_response.error.statusCode) {
117
+ case 400:
118
+ throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
119
+ case 401:
120
+ throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
121
+ case 500:
122
+ throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
123
+ case 503:
124
+ throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
125
+ default:
126
+ throw new errors.PayabliError({
127
+ statusCode: _response.error.statusCode,
128
+ body: _response.error.body,
129
+ rawResponse: _response.rawResponse,
130
+ });
131
+ }
132
+ }
133
+ switch (_response.error.reason) {
134
+ case "non-json":
135
+ throw new errors.PayabliError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.rawBody,
138
+ rawResponse: _response.rawResponse,
139
+ });
140
+ case "timeout":
141
+ throw new errors.PayabliTimeoutError("Timeout exceeded when calling POST /v2/notificationlogs.");
142
+ case "unknown":
143
+ throw new errors.PayabliError({
144
+ message: _response.error.errorMessage,
145
+ rawResponse: _response.rawResponse,
146
+ });
147
+ }
148
+ });
149
+ }
150
+ /**
151
+ * Get detailed information for a specific notification log entry.
152
+ * This endpoint requires the `notifications_create` OR `notifications_read` permission.
153
+ *
154
+ * @param {string} uuid - The notification log entry.
155
+ * @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
156
+ *
157
+ * @throws {@link Payabli.BadRequestError}
158
+ * @throws {@link Payabli.UnauthorizedError}
159
+ * @throws {@link Payabli.InternalServerError}
160
+ * @throws {@link Payabli.ServiceUnavailableError}
161
+ *
162
+ * @example
163
+ * await client.notificationlogs.getNotificationLog("550e8400-e29b-41d4-a716-446655440000")
164
+ */
165
+ getNotificationLog(uuid, requestOptions) {
166
+ return core.HttpResponsePromise.fromPromise(this.__getNotificationLog(uuid, requestOptions));
167
+ }
168
+ __getNotificationLog(uuid, requestOptions) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ var _a, _b, _c;
171
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
172
+ const _response = yield core.fetcher({
173
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `/v2/notificationlogs/${encodeURIComponent(uuid)}`),
174
+ method: "GET",
175
+ headers: _headers,
176
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
177
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
178
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
179
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
180
+ });
181
+ if (_response.ok) {
182
+ return { data: _response.body, rawResponse: _response.rawResponse };
183
+ }
184
+ if (_response.error.reason === "status-code") {
185
+ switch (_response.error.statusCode) {
186
+ case 400:
187
+ throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
188
+ case 401:
189
+ throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
190
+ case 500:
191
+ throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
192
+ case 503:
193
+ throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
194
+ default:
195
+ throw new errors.PayabliError({
196
+ statusCode: _response.error.statusCode,
197
+ body: _response.error.body,
198
+ rawResponse: _response.rawResponse,
199
+ });
200
+ }
201
+ }
202
+ switch (_response.error.reason) {
203
+ case "non-json":
204
+ throw new errors.PayabliError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.rawBody,
207
+ rawResponse: _response.rawResponse,
208
+ });
209
+ case "timeout":
210
+ throw new errors.PayabliTimeoutError("Timeout exceeded when calling GET /v2/notificationlogs/{uuid}.");
211
+ case "unknown":
212
+ throw new errors.PayabliError({
213
+ message: _response.error.errorMessage,
214
+ rawResponse: _response.rawResponse,
215
+ });
216
+ }
217
+ });
218
+ }
219
+ /**
220
+ * Retry sending a specific notification.
221
+ *
222
+ * **Permissions:** notifications_create
223
+ *
224
+ * @param {string} uuid - Unique id
225
+ * @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
226
+ *
227
+ * @throws {@link Payabli.BadRequestError}
228
+ * @throws {@link Payabli.UnauthorizedError}
229
+ * @throws {@link Payabli.InternalServerError}
230
+ * @throws {@link Payabli.ServiceUnavailableError}
231
+ *
232
+ * @example
233
+ * await client.notificationlogs.retryNotificationLog("550e8400-e29b-41d4-a716-446655440000")
234
+ */
235
+ retryNotificationLog(uuid, requestOptions) {
236
+ return core.HttpResponsePromise.fromPromise(this.__retryNotificationLog(uuid, requestOptions));
237
+ }
238
+ __retryNotificationLog(uuid, requestOptions) {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ var _a, _b, _c;
241
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
242
+ const _response = yield core.fetcher({
243
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `/v2/notificationlogs/${encodeURIComponent(uuid)}/retry`),
244
+ method: "GET",
245
+ headers: _headers,
246
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
247
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
248
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
249
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
+ });
251
+ if (_response.ok) {
252
+ return { data: _response.body, rawResponse: _response.rawResponse };
253
+ }
254
+ if (_response.error.reason === "status-code") {
255
+ switch (_response.error.statusCode) {
256
+ case 400:
257
+ throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
258
+ case 401:
259
+ throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
260
+ case 500:
261
+ throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
262
+ case 503:
263
+ throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
264
+ default:
265
+ throw new errors.PayabliError({
266
+ statusCode: _response.error.statusCode,
267
+ body: _response.error.body,
268
+ rawResponse: _response.rawResponse,
269
+ });
270
+ }
271
+ }
272
+ switch (_response.error.reason) {
273
+ case "non-json":
274
+ throw new errors.PayabliError({
275
+ statusCode: _response.error.statusCode,
276
+ body: _response.error.rawBody,
277
+ rawResponse: _response.rawResponse,
278
+ });
279
+ case "timeout":
280
+ throw new errors.PayabliTimeoutError("Timeout exceeded when calling GET /v2/notificationlogs/{uuid}/retry.");
281
+ case "unknown":
282
+ throw new errors.PayabliError({
283
+ message: _response.error.errorMessage,
284
+ rawResponse: _response.rawResponse,
285
+ });
286
+ }
287
+ });
288
+ }
289
+ /**
290
+ * Retry sending multiple notifications (maximum 50 IDs).
291
+ * This is an async process, so use the search endpoint again to check the notification status.
292
+ *
293
+ * This endpoint requires the `notifications_create` permission.
294
+ *
295
+ * @param {Payabli.BulkRetryRequest} request
296
+ * @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
297
+ *
298
+ * @throws {@link Payabli.BadRequestError}
299
+ * @throws {@link Payabli.UnauthorizedError}
300
+ * @throws {@link Payabli.InternalServerError}
301
+ * @throws {@link Payabli.ServiceUnavailableError}
302
+ *
303
+ * @example
304
+ * await client.notificationlogs.bulkRetryNotificationLogs(["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"])
305
+ */
306
+ bulkRetryNotificationLogs(request, requestOptions) {
307
+ return core.HttpResponsePromise.fromPromise(this.__bulkRetryNotificationLogs(request, requestOptions));
308
+ }
309
+ __bulkRetryNotificationLogs(request, requestOptions) {
310
+ return __awaiter(this, void 0, void 0, function* () {
311
+ var _a, _b, _c;
312
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
313
+ const _response = yield core.fetcher({
314
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, "/v2/notificationlogs/retry"),
315
+ method: "POST",
316
+ headers: _headers,
317
+ contentType: "application/json",
318
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
319
+ requestType: "json",
320
+ body: request,
321
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
322
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
323
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
324
+ });
325
+ if (_response.ok) {
326
+ return { data: undefined, rawResponse: _response.rawResponse };
327
+ }
328
+ if (_response.error.reason === "status-code") {
329
+ switch (_response.error.statusCode) {
330
+ case 400:
331
+ throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
332
+ case 401:
333
+ throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
334
+ case 500:
335
+ throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
336
+ case 503:
337
+ throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
338
+ default:
339
+ throw new errors.PayabliError({
340
+ statusCode: _response.error.statusCode,
341
+ body: _response.error.body,
342
+ rawResponse: _response.rawResponse,
343
+ });
344
+ }
345
+ }
346
+ switch (_response.error.reason) {
347
+ case "non-json":
348
+ throw new errors.PayabliError({
349
+ statusCode: _response.error.statusCode,
350
+ body: _response.error.rawBody,
351
+ rawResponse: _response.rawResponse,
352
+ });
353
+ case "timeout":
354
+ throw new errors.PayabliTimeoutError("Timeout exceeded when calling POST /v2/notificationlogs/retry.");
355
+ case "unknown":
356
+ throw new errors.PayabliError({
357
+ message: _response.error.errorMessage,
358
+ rawResponse: _response.rawResponse,
359
+ });
360
+ }
361
+ });
362
+ }
363
+ _getCustomAuthorizationHeaders() {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
366
+ return { requestToken: apiKeyValue };
367
+ });
368
+ }
369
+ }
370
+ exports.Notificationlogs = Notificationlogs;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Payabli from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * PageSize: 20,
9
+ * body: {
10
+ * startDate: "2024-01-01T00:00:00Z",
11
+ * endDate: "2024-01-31T23:59:59Z",
12
+ * orgId: 12345,
13
+ * notificationEvent: "ActivatedMerchant",
14
+ * succeeded: true
15
+ * }
16
+ * }
17
+ */
18
+ export interface SearchNotificationLogsRequest {
19
+ PageSize?: Payabli.Pagesize;
20
+ /** The number of records to skip before starting to collect the result set. */
21
+ Skip?: number;
22
+ body: Payabli.NotificationLogSearchRequest;
23
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type SearchNotificationLogsRequest } from "./SearchNotificationLogsRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types/index.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types/index.js"), exports);
18
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A list of notification log IDs to retry. The maximum number of IDs that can be retried in a single request is 50.
6
+ */
7
+ export type BulkRetryRequest = string[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface KeyValueArray {
5
+ key?: string;
6
+ value?: string[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface NotificationLog {
5
+ /** The unique identifier for the notification. */
6
+ id: string;
7
+ /** The ID of the organization that the notification belongs to. */
8
+ orgId: number | null;
9
+ /** The ID of the paypoint that the notification is related to. */
10
+ paypointId: number | null;
11
+ /** The event that triggered the notification. */
12
+ notificationEvent: string | null;
13
+ /** The target URL for the notification. */
14
+ target: string | null;
15
+ /** The HTTP response status of the notification. */
16
+ responseStatus: string | null;
17
+ /** Indicates whether the notification was successful. */
18
+ success: boolean;
19
+ /** Contains the body of the notification. */
20
+ jobData: string | null;
21
+ /** The date and time when the notification was created. */
22
+ createdDate: string;
23
+ /** The date and time when the notification was successfully delivered. */
24
+ successDate: string | null;
25
+ /** The date and time when the notification last failed. */
26
+ lastFailedDate: string | null;
27
+ /** Indicates whether the notification is currently in progress. */
28
+ isInProgress: boolean;
29
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Payabli from "../../../index.js";
5
+ export interface NotificationLogDetail extends Payabli.NotificationLog {
6
+ webHeaders?: Payabli.StringStringKeyValuePair[];
7
+ responseHeaders?: Payabli.KeyValueArray[];
8
+ responseContent?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface NotificationLogSearchRequest {
5
+ /** The start date for the search. */
6
+ startDate: string;
7
+ /** The end date for the search. */
8
+ endDate: string;
9
+ /** The type of notification event to filter by. */
10
+ notificationEvent?: string;
11
+ /** Indicates whether the notification was successful. */
12
+ succeeded?: boolean;
13
+ /** The ID of the organization to filter by. */
14
+ orgId?: number;
15
+ /** The ID of the paypoint to filter by. */
16
+ paypointId?: number;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface StringStringKeyValuePair {
5
+ key?: string;
6
+ value?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export * from "./NotificationLog.js";
2
+ export * from "./NotificationLogDetail.js";
3
+ export * from "./StringStringKeyValuePair.js";
4
+ export * from "./KeyValueArray.js";
5
+ export * from "./NotificationLogSearchRequest.js";
6
+ export * from "./BulkRetryRequest.js";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./NotificationLog.js"), exports);
18
+ __exportStar(require("./NotificationLogDetail.js"), exports);
19
+ __exportStar(require("./StringStringKeyValuePair.js"), exports);
20
+ __exportStar(require("./KeyValueArray.js"), exports);
21
+ __exportStar(require("./NotificationLogSearchRequest.js"), exports);
22
+ __exportStar(require("./BulkRetryRequest.js"), exports);
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Payabli from "../../../index.js";
5
5
  export interface PayabliApiResponseOcr {
6
- isSuccess?: Payabli.IsSuccess;
7
- responseText?: Payabli.ResponseText;
8
- responseCode?: Payabli.Responsecode;
6
+ isSuccess: Payabli.IsSuccess;
7
+ responseText: Payabli.ResponseText;
8
+ responseCode: Payabli.Responsecode;
9
9
  /** Details of the OCR processing result */
10
10
  responseData?: Payabli.OcrResponseData;
11
11
  }
@@ -6,5 +6,5 @@ export interface AddOrganizationResponse {
6
6
  isSuccess?: Payabli.IsSuccess;
7
7
  /** Returns the organization ID. */
8
8
  responseData?: Payabli.Responsedatanonobject;
9
- responseText?: Payabli.ResponseText;
9
+ responseText: Payabli.ResponseText;
10
10
  }
@@ -6,5 +6,5 @@ export interface DeleteOrganizationResponse {
6
6
  isSuccess?: Payabli.IsSuccess;
7
7
  /** Returns the organization ID. */
8
8
  responseData?: Payabli.Responsedatanonobject;
9
- responseText?: Payabli.ResponseText;
9
+ responseText: Payabli.ResponseText;
10
10
  }