wallet 1.1.3 → 1.1.6

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 (319) hide show
  1. package/.openapi-generator/FILES +309 -309
  2. package/.openapi-generator-ignore +23 -23
  3. package/README.md +13 -1
  4. package/api/advertisementCreditsApi.ts +589 -589
  5. package/api/analyticsApi.ts +5953 -5953
  6. package/api/apis.ts +86 -86
  7. package/api/appleWalletSubscribersApi.ts +235 -235
  8. package/api/billingApi.ts +680 -680
  9. package/api/clubMembersPointsApi.ts +798 -798
  10. package/api/configurationApi.ts +225 -225
  11. package/api/countriesApi.ts +155 -155
  12. package/api/customerApi.ts +737 -737
  13. package/api/dashboardApi.ts +1553 -1553
  14. package/api/dynamicVouchersApi.ts +603 -603
  15. package/api/employeeAccessApi.ts +165 -165
  16. package/api/employeesApi.ts +2933 -2933
  17. package/api/industriesApi.ts +155 -155
  18. package/api/infoGenesisReportsApi.ts +2023 -2023
  19. package/api/integratedTerminalsApi.ts +447 -447
  20. package/api/interactionsApi.ts +678 -678
  21. package/api/linkBookApi.ts +447 -447
  22. package/api/linkBookSectionApi.ts +447 -447
  23. package/api/loginAndLogoutApi.ts +296 -296
  24. package/api/membershipTiersApi.ts +729 -729
  25. package/api/merchantApi.ts +1534 -1534
  26. package/api/merchantCreditsApi.ts +798 -798
  27. package/api/merchantURLsApi.ts +586 -586
  28. package/api/mobileTerminalApi.ts +323 -323
  29. package/api/newsApi.ts +447 -447
  30. package/api/paymentDesignsApi.ts +519 -519
  31. package/api/performancesApi.ts +447 -447
  32. package/api/promoCodesApi.ts +447 -447
  33. package/api/sMSApi.ts +1999 -1999
  34. package/api/settingsApi.ts +220 -220
  35. package/api/staticVoucherCampaignGroupsApi.ts +165 -165
  36. package/api/staticVoucherCampaignsApi.ts +1484 -1484
  37. package/api/staticVouchersApi.ts +535 -535
  38. package/api/systemApi.ts +604 -604
  39. package/api/transactionLedgerApi.ts +203 -203
  40. package/api/utilitiesApi.ts +157 -157
  41. package/api/webTerminalApi.ts +309 -309
  42. package/api.ts +2 -2
  43. package/examples/advertisementcredits.example.ts +50 -50
  44. package/examples/clubmembers.example.ts +50 -50
  45. package/examples/linkbook.example.ts +50 -50
  46. package/examples/membershiptiers.example.ts +49 -49
  47. package/examples/merchanturls.example.ts +47 -47
  48. package/examples/news.example.ts +51 -51
  49. package/examples/paymentdesigns.example.ts +56 -56
  50. package/git_push.sh +57 -57
  51. package/model/advertisementCredit.ts +103 -103
  52. package/model/advertisementCreditBroadcast.ts +154 -154
  53. package/model/advertisementCreditScan.ts +170 -170
  54. package/model/agreement.ts +133 -133
  55. package/model/alert.ts +79 -79
  56. package/model/announcement.ts +67 -67
  57. package/model/applicableTerminals.ts +30 -30
  58. package/model/applicableTerminalsAnyOf.ts +17 -17
  59. package/model/applicableTerminalsAnyOf1.ts +17 -17
  60. package/model/applicableTerminalsAnyOf2.ts +17 -17
  61. package/model/applicableTerminalsAnyOf3.ts +17 -17
  62. package/model/authError.ts +55 -55
  63. package/model/availablePhoneNumbersRequest.ts +43 -43
  64. package/model/clickFunnelAmount.ts +37 -37
  65. package/model/clickFunnelContact.ts +248 -248
  66. package/model/clickFunnelContactProfile.ts +235 -235
  67. package/model/clickFunnelEvent.ts +38 -38
  68. package/model/clickFunnelOriginalAmount.ts +37 -37
  69. package/model/clickFunnelProduct.ts +194 -194
  70. package/model/clickFunnelPurchase.ts +178 -178
  71. package/model/createStaticVoucherCampaign.ts +109 -109
  72. package/model/createStaticVoucherCampaignWithVoucher.ts +109 -109
  73. package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +109 -109
  74. package/model/dashboardWidget.ts +115 -115
  75. package/model/duplicateRowFound.ts +55 -55
  76. package/model/dynamicVoucher.ts +224 -224
  77. package/model/dynamicVoucherBroadcast.ts +154 -154
  78. package/model/employee.ts +109 -109
  79. package/model/employeeActivityLog.ts +67 -67
  80. package/model/employeeAlert.ts +79 -79
  81. package/model/exportDataFile.ts +85 -85
  82. package/model/falsumError.ts +41 -41
  83. package/model/falsumField.ts +55 -55
  84. package/model/feature.ts +79 -79
  85. package/model/forbiddenRequest.ts +55 -55
  86. package/model/foreignKeyDoesNotExist.ts +55 -55
  87. package/model/helpDeskRequest.ts +85 -85
  88. package/model/importedList.ts +73 -73
  89. package/model/importedListRecipient.ts +73 -73
  90. package/model/inlineObject.ts +31 -31
  91. package/model/inlineObject1.ts +31 -31
  92. package/model/inlineObject10.ts +37 -37
  93. package/model/inlineObject11.ts +37 -37
  94. package/model/inlineObject12.ts +37 -37
  95. package/model/inlineObject13.ts +37 -37
  96. package/model/inlineObject14.ts +37 -37
  97. package/model/inlineObject15.ts +67 -67
  98. package/model/inlineObject16.ts +61 -61
  99. package/model/inlineObject17.ts +55 -55
  100. package/model/inlineObject18.ts +61 -61
  101. package/model/inlineObject19.ts +55 -55
  102. package/model/inlineObject2.ts +31 -31
  103. package/model/inlineObject20.ts +61 -61
  104. package/model/inlineObject21.ts +73 -73
  105. package/model/inlineObject22.ts +31 -31
  106. package/model/inlineObject23.ts +31 -31
  107. package/model/inlineObject24.ts +43 -43
  108. package/model/inlineObject25.ts +55 -55
  109. package/model/inlineObject26.ts +31 -31
  110. package/model/inlineObject27.ts +31 -31
  111. package/model/inlineObject28.ts +43 -43
  112. package/model/inlineObject29.ts +49 -49
  113. package/model/inlineObject3.ts +31 -31
  114. package/model/inlineObject30.ts +43 -43
  115. package/model/inlineObject31.ts +31 -31
  116. package/model/inlineObject32.ts +31 -31
  117. package/model/inlineObject33.ts +31 -31
  118. package/model/inlineObject34.ts +43 -43
  119. package/model/inlineObject35.ts +43 -43
  120. package/model/inlineObject36.ts +43 -43
  121. package/model/inlineObject37.ts +43 -43
  122. package/model/inlineObject38.ts +43 -43
  123. package/model/inlineObject39.ts +43 -43
  124. package/model/inlineObject4.ts +37 -37
  125. package/model/inlineObject40.ts +43 -43
  126. package/model/inlineObject41.ts +43 -43
  127. package/model/inlineObject42.ts +43 -43
  128. package/model/inlineObject43.ts +43 -43
  129. package/model/inlineObject44.ts +43 -43
  130. package/model/inlineObject45.ts +43 -43
  131. package/model/inlineObject46.ts +43 -43
  132. package/model/inlineObject47.ts +43 -43
  133. package/model/inlineObject48.ts +43 -43
  134. package/model/inlineObject49.ts +43 -43
  135. package/model/inlineObject5.ts +31 -31
  136. package/model/inlineObject50.ts +43 -43
  137. package/model/inlineObject51.ts +97 -97
  138. package/model/inlineObject52.ts +31 -31
  139. package/model/inlineObject53.ts +97 -97
  140. package/model/inlineObject54.ts +97 -97
  141. package/model/inlineObject55.ts +91 -91
  142. package/model/inlineObject56.ts +37 -37
  143. package/model/inlineObject57.ts +37 -37
  144. package/model/inlineObject58.ts +37 -37
  145. package/model/inlineObject59.ts +43 -43
  146. package/model/inlineObject6.ts +31 -31
  147. package/model/inlineObject60.ts +43 -43
  148. package/model/inlineObject61.ts +43 -43
  149. package/model/inlineObject62.ts +37 -37
  150. package/model/inlineObject63.ts +37 -37
  151. package/model/inlineObject64.ts +37 -37
  152. package/model/inlineObject65.ts +205 -205
  153. package/model/inlineObject66.ts +49 -49
  154. package/model/inlineObject67.ts +49 -49
  155. package/model/inlineObject68.ts +37 -37
  156. package/model/inlineObject69.ts +121 -121
  157. package/model/inlineObject7.ts +31 -31
  158. package/model/inlineObject8.ts +43 -43
  159. package/model/inlineObject9.ts +37 -37
  160. package/model/inlineResponse200.ts +37 -37
  161. package/model/inlineResponse2001.ts +56 -56
  162. package/model/inlineResponse20010.ts +109 -109
  163. package/model/inlineResponse20011.ts +43 -43
  164. package/model/inlineResponse2002.ts +31 -31
  165. package/model/inlineResponse2003.ts +31 -31
  166. package/model/inlineResponse2004.ts +43 -43
  167. package/model/inlineResponse2005.ts +38 -38
  168. package/model/inlineResponse2006.ts +97 -97
  169. package/model/inlineResponse2007.ts +44 -44
  170. package/model/inlineResponse2008.ts +31 -31
  171. package/model/inlineResponse2009.ts +98 -98
  172. package/model/internalServerError.ts +55 -55
  173. package/model/ledgerEntry.ts +176 -176
  174. package/model/linkBook.ts +85 -85
  175. package/model/linkBookSection.ts +61 -61
  176. package/model/mSMemberHistory.ts +112 -112
  177. package/model/mSMemberHistoryPagination.ts +53 -53
  178. package/model/mSMemberRedemption.ts +109 -109
  179. package/model/mSMemberRedemptionPagination.ts +53 -53
  180. package/model/mSMembershipTierHistory.ts +106 -106
  181. package/model/mSMembershipTierHistoryPagination.ts +53 -53
  182. package/model/mSMembershipTierRedemption.ts +121 -121
  183. package/model/mSMembershipTierRedemptionPagination.ts +53 -53
  184. package/model/mSMerchantCreditHistory.ts +88 -88
  185. package/model/mSMerchantCreditHistoryPagination.ts +53 -53
  186. package/model/mSMerchantCreditRedemption.ts +109 -109
  187. package/model/mSMerchantCreditRedemptionPagination.ts +53 -53
  188. package/model/mediaFile.ts +85 -85
  189. package/model/member.ts +118 -118
  190. package/model/memberSearch.ts +61 -61
  191. package/model/merchant.ts +133 -133
  192. package/model/merchantCreditSearch.ts +61 -61
  193. package/model/merchantNotInitialized.ts +55 -55
  194. package/model/merchantURL.ts +67 -67
  195. package/model/message.ts +74 -74
  196. package/model/models.ts +1015 -1015
  197. package/model/moduleError.ts +157 -157
  198. package/model/newsArticle.ts +85 -85
  199. package/model/optInList.ts +121 -121
  200. package/model/optInListSource.ts +73 -73
  201. package/model/optInListSubscriber.ts +104 -104
  202. package/model/outboundSMS.ts +157 -157
  203. package/model/paginatedWTMembers.ts +53 -53
  204. package/model/paginatedWTMerchantCredits.ts +53 -53
  205. package/model/paginationRequestWithSortOptions.ts +75 -75
  206. package/model/paymentDesign.ts +139 -139
  207. package/model/performance.ts +100 -100
  208. package/model/phoneNumber.ts +157 -157
  209. package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +106 -106
  210. package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +67 -67
  211. package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +106 -106
  212. package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +43 -43
  213. package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +82 -82
  214. package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +46 -46
  215. package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +52 -52
  216. package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +100 -100
  217. package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.ts +94 -94
  218. package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +100 -100
  219. package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +46 -46
  220. package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +154 -154
  221. package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +137 -137
  222. package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +58 -58
  223. package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +106 -106
  224. package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +142 -142
  225. package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.ts +94 -94
  226. package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +106 -106
  227. package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +167 -167
  228. package/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.ts +58 -58
  229. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +58 -58
  230. package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.ts +76 -76
  231. package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +52 -52
  232. package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +40 -40
  233. package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +58 -58
  234. package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +138 -138
  235. package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +112 -112
  236. package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +46 -46
  237. package/model/plan.ts +62 -62
  238. package/model/portalPage.ts +67 -67
  239. package/model/presignedPost.ts +41 -41
  240. package/model/presignedPostFields.ts +43 -43
  241. package/model/product.ts +74 -74
  242. package/model/promoCode.ts +97 -97
  243. package/model/reachPerformanceStats.ts +70 -70
  244. package/model/request.ts +349 -349
  245. package/model/response.ts +67 -67
  246. package/model/role.ts +117 -117
  247. package/model/roleAuditLog.ts +97 -97
  248. package/model/sSOptInSource.ts +73 -73
  249. package/model/simpleSMSBroadcast.ts +147 -147
  250. package/model/staticVoucher.ts +224 -224
  251. package/model/staticVoucherCampaign.ts +175 -175
  252. package/model/staticVoucherCampaignBroadcast.ts +142 -142
  253. package/model/staticVoucherCampaignGroup.ts +85 -85
  254. package/model/staticVoucherCampaignUpdate.ts +85 -85
  255. package/model/status.ts +30 -30
  256. package/model/statusAnyOf.ts +17 -17
  257. package/model/statusAnyOf1.ts +17 -17
  258. package/model/statusAnyOf2.ts +17 -17
  259. package/model/statusAnyOf3.ts +17 -17
  260. package/model/subscriptionFeature.ts +79 -79
  261. package/model/subscriptionPlan.ts +69 -69
  262. package/model/subscriptionProduct.ts +81 -81
  263. package/model/tcpa.ts +67 -67
  264. package/model/updateStaticVoucherCampaignWithVoucher.ts +109 -109
  265. package/model/vSCampaignGeneratedMessage.ts +43 -43
  266. package/model/vSCampaignGeneratedMessagePagination.ts +53 -53
  267. package/model/vSDynamicVoucherStatus.ts +28 -28
  268. package/model/wTAdvertisementCredit.ts +103 -103
  269. package/model/wTAdvertisementCreditScan.ts +170 -170
  270. package/model/wTAdvertisementCreditUpdateParams.ts +55 -55
  271. package/model/wTDynamicVoucher.ts +224 -224
  272. package/model/wTDynamicVoucherCreateParams.ts +103 -103
  273. package/model/wTDynamicVoucherRedemption.ts +164 -164
  274. package/model/wTDynamicVoucherSummary.ts +169 -169
  275. package/model/wTDynamicVoucherUpdateParams.ts +103 -103
  276. package/model/wTEmployee.ts +109 -109
  277. package/model/wTEmployeeCreate.ts +61 -61
  278. package/model/wTEmployeeUpdate.ts +55 -55
  279. package/model/wTImportedList.ts +73 -73
  280. package/model/wTLinkBookCreateParams.ts +55 -55
  281. package/model/wTLinkBookSectionCreateParams.ts +31 -31
  282. package/model/wTLinkBookSectionUpdateParams.ts +31 -31
  283. package/model/wTLinkBookUpdateParams.ts +55 -55
  284. package/model/wTMember.ts +118 -118
  285. package/model/wTMemberCreationParams.ts +73 -73
  286. package/model/wTMembershipTier.ts +106 -106
  287. package/model/wTMembershipTierCreationParams.ts +64 -64
  288. package/model/wTMembershipTierUpdateParams.ts +64 -64
  289. package/model/wTMembershipTierWithMemberCount.ts +115 -115
  290. package/model/wTMerchantCredit.ts +106 -106
  291. package/model/wTMerchantCreditCreationParams.ts +49 -49
  292. package/model/wTMerchantURLCreate.ts +37 -37
  293. package/model/wTMerchantURLUpdate.ts +37 -37
  294. package/model/wTNewsArticleCreateParams.ts +55 -55
  295. package/model/wTNewsArticleUpdateParams.ts +55 -55
  296. package/model/wTOptInList.ts +121 -121
  297. package/model/wTOptInListCreationParams.ts +91 -91
  298. package/model/wTPaymentDesign.ts +139 -139
  299. package/model/wTPaymentDesignCreateParams.ts +115 -115
  300. package/model/wTPaymentDesignUpdateParams.ts +115 -115
  301. package/model/wTPerformanceCreateParams.ts +70 -70
  302. package/model/wTPerformanceUpdateParams.ts +70 -70
  303. package/model/wTPosMachine.ts +88 -88
  304. package/model/wTPosMachineCreateParams.ts +58 -58
  305. package/model/wTPosMachineUpdateParams.ts +58 -58
  306. package/model/wTPromoCodeCreateParams.ts +67 -67
  307. package/model/wTPromoCodeUpdateParams.ts +67 -67
  308. package/model/wTRole.ts +116 -116
  309. package/model/wTStaticVoucher.ts +224 -224
  310. package/model/wTStaticVoucherCampaign.ts +175 -175
  311. package/model/wTStaticVoucherCreateParams.ts +49 -49
  312. package/model/wTStaticVoucherUpdateParams.ts +43 -43
  313. package/model/wTWalletPageView.ts +251 -251
  314. package/model/wTWalletPageViewGeoPoint.ts +37 -37
  315. package/model/walletPageView.ts +251 -251
  316. package/model/webpage.ts +85 -85
  317. package/package.json +1 -26
  318. package/readme-generator.py +54 -42
  319. package/tsconfig.json +25 -25
@@ -1,2023 +1,2023 @@
1
- /**
2
- * wallet-api
3
- * API
4
- *
5
- * The version of the OpenAPI document: 1.1.3
6
- * Contact: development@wallet.inc
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.
11
- */
12
-
13
-
14
- import localVarRequest from 'request';
15
- import http from 'http';
16
-
17
- /* tslint:disable:no-unused-locals */
18
- import { AuthError } from '../model/authError';
19
- import { FalsumError } from '../model/falsumError';
20
- import { InlineObject26 } from '../model/inlineObject26';
21
- import { InlineObject27 } from '../model/inlineObject27';
22
- import { InlineObject28 } from '../model/inlineObject28';
23
- import { InlineObject29 } from '../model/inlineObject29';
24
- import { InlineObject30 } from '../model/inlineObject30';
25
- import { InlineObject31 } from '../model/inlineObject31';
26
- import { InlineObject32 } from '../model/inlineObject32';
27
- import { InlineObject33 } from '../model/inlineObject33';
28
- import { InlineObject34 } from '../model/inlineObject34';
29
- import { InlineObject35 } from '../model/inlineObject35';
30
- import { InlineObject36 } from '../model/inlineObject36';
31
- import { InlineObject37 } from '../model/inlineObject37';
32
- import { InlineObject38 } from '../model/inlineObject38';
33
- import { InlineObject39 } from '../model/inlineObject39';
34
- import { InlineObject40 } from '../model/inlineObject40';
35
- import { InlineObject41 } from '../model/inlineObject41';
36
- import { InlineObject42 } from '../model/inlineObject42';
37
- import { InlineObject43 } from '../model/inlineObject43';
38
- import { InlineObject44 } from '../model/inlineObject44';
39
- import { InlineObject45 } from '../model/inlineObject45';
40
- import { InlineObject46 } from '../model/inlineObject46';
41
- import { InlineObject47 } from '../model/inlineObject47';
42
- import { InlineObject48 } from '../model/inlineObject48';
43
- import { InlineResponse2003 } from '../model/inlineResponse2003';
44
- import { InternalServerError } from '../model/internalServerError';
45
- import { Request } from '../model/request';
46
- import { Response } from '../model/response';
47
- import { StaticVoucher } from '../model/staticVoucher';
48
-
49
- import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
50
- import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
51
-
52
- import { HttpError, RequestFile } from './apis';
53
-
54
- let defaultBasePath = 'https://api.wall.et';
55
-
56
- // ===============================================
57
- // This file is autogenerated - Please do not edit
58
- // ===============================================
59
-
60
- export enum InfoGenesisReportsApiApiKeys {
61
- api_key,
62
- }
63
-
64
- export class InfoGenesisReportsApi {
65
- protected _basePath = defaultBasePath;
66
- protected _defaultHeaders : any = {};
67
- protected _useQuerystring : boolean = false;
68
-
69
- protected authentications = {
70
- 'default': <Authentication>new VoidAuth(),
71
- 'api_key': new ApiKeyAuth('header', 'access-token'),
72
- }
73
-
74
- protected interceptors: Interceptor[] = [];
75
-
76
- constructor(basePath?: string);
77
- constructor(basePathOrUsername: string, password?: string, basePath?: string) {
78
- if (password) {
79
- if (basePath) {
80
- this.basePath = basePath;
81
- }
82
- } else {
83
- if (basePathOrUsername) {
84
- this.basePath = basePathOrUsername
85
- }
86
- }
87
- }
88
-
89
- set useQuerystring(value: boolean) {
90
- this._useQuerystring = value;
91
- }
92
-
93
- set basePath(basePath: string) {
94
- this._basePath = basePath;
95
- }
96
-
97
- set defaultHeaders(defaultHeaders: any) {
98
- this._defaultHeaders = defaultHeaders;
99
- }
100
-
101
- get defaultHeaders() {
102
- return this._defaultHeaders;
103
- }
104
-
105
- get basePath() {
106
- return this._basePath;
107
- }
108
-
109
- public setDefaultAuthentication(auth: Authentication) {
110
- this.authentications.default = auth;
111
- }
112
-
113
- public setApiKey(key: InfoGenesisReportsApiApiKeys, value: string) {
114
- (this.authentications as any)[InfoGenesisReportsApiApiKeys[key]].apiKey = value;
115
- }
116
-
117
- public addInterceptor(interceptor: Interceptor) {
118
- this.interceptors.push(interceptor);
119
- }
120
-
121
- /**
122
- *
123
- * @summary Count redeemed ad credits
124
- * @param inlineObject37
125
- */
126
- public async countAdCreditsRedemptions (inlineObject37: InlineObject37, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
127
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/adCredits/redemptions';
128
- let localVarQueryParameters: any = {};
129
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
130
- const produces = ['application/json'];
131
- // give precedence to 'application/json'
132
- if (produces.indexOf('application/json') >= 0) {
133
- localVarHeaderParams.Accept = 'application/json';
134
- } else {
135
- localVarHeaderParams.Accept = produces.join(',');
136
- }
137
- let localVarFormParams: any = {};
138
-
139
- // verify required parameter 'inlineObject37' is not null or undefined
140
- if (inlineObject37 === null || inlineObject37 === undefined) {
141
- throw new Error('Required parameter inlineObject37 was null or undefined when calling countAdCreditsRedemptions.');
142
- }
143
-
144
- (<any>Object).assign(localVarHeaderParams, options.headers);
145
-
146
- let localVarUseFormData = false;
147
-
148
- let localVarRequestOptions: localVarRequest.Options = {
149
- method: 'POST',
150
- qs: localVarQueryParameters,
151
- headers: localVarHeaderParams,
152
- uri: localVarPath,
153
- useQuerystring: this._useQuerystring,
154
- json: true,
155
- body: ObjectSerializer.serialize(inlineObject37, "InlineObject37")
156
- };
157
-
158
- let authenticationPromise = Promise.resolve();
159
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
160
-
161
- let interceptorPromise = authenticationPromise;
162
- for (const interceptor of this.interceptors) {
163
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
164
- }
165
-
166
- return interceptorPromise.then(() => {
167
- if (Object.keys(localVarFormParams).length) {
168
- if (localVarUseFormData) {
169
- (<any>localVarRequestOptions).formData = localVarFormParams;
170
- } else {
171
- localVarRequestOptions.form = localVarFormParams;
172
- }
173
- }
174
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
175
- localVarRequest(localVarRequestOptions, (error, response, body) => {
176
- if (error) {
177
- reject(error);
178
- } else {
179
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
180
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
181
- resolve({ response: response, body: body });
182
- } else {
183
- reject(new HttpError(response, body, response.statusCode));
184
- }
185
- }
186
- });
187
- });
188
- });
189
- }
190
- /**
191
- *
192
- * @summary Count refunded ad credits
193
- * @param inlineObject38
194
- */
195
- public async countAdCreditsRefunds (inlineObject38: InlineObject38, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
196
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/adCredits/refunds';
197
- let localVarQueryParameters: any = {};
198
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
199
- const produces = ['application/json'];
200
- // give precedence to 'application/json'
201
- if (produces.indexOf('application/json') >= 0) {
202
- localVarHeaderParams.Accept = 'application/json';
203
- } else {
204
- localVarHeaderParams.Accept = produces.join(',');
205
- }
206
- let localVarFormParams: any = {};
207
-
208
- // verify required parameter 'inlineObject38' is not null or undefined
209
- if (inlineObject38 === null || inlineObject38 === undefined) {
210
- throw new Error('Required parameter inlineObject38 was null or undefined when calling countAdCreditsRefunds.');
211
- }
212
-
213
- (<any>Object).assign(localVarHeaderParams, options.headers);
214
-
215
- let localVarUseFormData = false;
216
-
217
- let localVarRequestOptions: localVarRequest.Options = {
218
- method: 'POST',
219
- qs: localVarQueryParameters,
220
- headers: localVarHeaderParams,
221
- uri: localVarPath,
222
- useQuerystring: this._useQuerystring,
223
- json: true,
224
- body: ObjectSerializer.serialize(inlineObject38, "InlineObject38")
225
- };
226
-
227
- let authenticationPromise = Promise.resolve();
228
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
229
-
230
- let interceptorPromise = authenticationPromise;
231
- for (const interceptor of this.interceptors) {
232
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
233
- }
234
-
235
- return interceptorPromise.then(() => {
236
- if (Object.keys(localVarFormParams).length) {
237
- if (localVarUseFormData) {
238
- (<any>localVarRequestOptions).formData = localVarFormParams;
239
- } else {
240
- localVarRequestOptions.form = localVarFormParams;
241
- }
242
- }
243
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
244
- localVarRequest(localVarRequestOptions, (error, response, body) => {
245
- if (error) {
246
- reject(error);
247
- } else {
248
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
249
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
250
- resolve({ response: response, body: body });
251
- } else {
252
- reject(new HttpError(response, body, response.statusCode));
253
- }
254
- }
255
- });
256
- });
257
- });
258
- }
259
- /**
260
- *
261
- * @summary Count dynamic voucher redemptions
262
- * @param inlineObject45
263
- */
264
- public async countDynamicVoucherRedemptions (inlineObject45: InlineObject45, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
265
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/dynamicVoucher/redemptions';
266
- let localVarQueryParameters: any = {};
267
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
268
- const produces = ['application/json'];
269
- // give precedence to 'application/json'
270
- if (produces.indexOf('application/json') >= 0) {
271
- localVarHeaderParams.Accept = 'application/json';
272
- } else {
273
- localVarHeaderParams.Accept = produces.join(',');
274
- }
275
- let localVarFormParams: any = {};
276
-
277
- // verify required parameter 'inlineObject45' is not null or undefined
278
- if (inlineObject45 === null || inlineObject45 === undefined) {
279
- throw new Error('Required parameter inlineObject45 was null or undefined when calling countDynamicVoucherRedemptions.');
280
- }
281
-
282
- (<any>Object).assign(localVarHeaderParams, options.headers);
283
-
284
- let localVarUseFormData = false;
285
-
286
- let localVarRequestOptions: localVarRequest.Options = {
287
- method: 'POST',
288
- qs: localVarQueryParameters,
289
- headers: localVarHeaderParams,
290
- uri: localVarPath,
291
- useQuerystring: this._useQuerystring,
292
- json: true,
293
- body: ObjectSerializer.serialize(inlineObject45, "InlineObject45")
294
- };
295
-
296
- let authenticationPromise = Promise.resolve();
297
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
298
-
299
- let interceptorPromise = authenticationPromise;
300
- for (const interceptor of this.interceptors) {
301
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
302
- }
303
-
304
- return interceptorPromise.then(() => {
305
- if (Object.keys(localVarFormParams).length) {
306
- if (localVarUseFormData) {
307
- (<any>localVarRequestOptions).formData = localVarFormParams;
308
- } else {
309
- localVarRequestOptions.form = localVarFormParams;
310
- }
311
- }
312
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
313
- localVarRequest(localVarRequestOptions, (error, response, body) => {
314
- if (error) {
315
- reject(error);
316
- } else {
317
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
318
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
319
- resolve({ response: response, body: body });
320
- } else {
321
- reject(new HttpError(response, body, response.statusCode));
322
- }
323
- }
324
- });
325
- });
326
- });
327
- }
328
- /**
329
- *
330
- * @summary Count dynamic voucher refunds
331
- * @param inlineObject46
332
- */
333
- public async countDynamicVoucherRefunds (inlineObject46: InlineObject46, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
334
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/dynamicVoucher/refunds';
335
- let localVarQueryParameters: any = {};
336
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
337
- const produces = ['application/json'];
338
- // give precedence to 'application/json'
339
- if (produces.indexOf('application/json') >= 0) {
340
- localVarHeaderParams.Accept = 'application/json';
341
- } else {
342
- localVarHeaderParams.Accept = produces.join(',');
343
- }
344
- let localVarFormParams: any = {};
345
-
346
- // verify required parameter 'inlineObject46' is not null or undefined
347
- if (inlineObject46 === null || inlineObject46 === undefined) {
348
- throw new Error('Required parameter inlineObject46 was null or undefined when calling countDynamicVoucherRefunds.');
349
- }
350
-
351
- (<any>Object).assign(localVarHeaderParams, options.headers);
352
-
353
- let localVarUseFormData = false;
354
-
355
- let localVarRequestOptions: localVarRequest.Options = {
356
- method: 'POST',
357
- qs: localVarQueryParameters,
358
- headers: localVarHeaderParams,
359
- uri: localVarPath,
360
- useQuerystring: this._useQuerystring,
361
- json: true,
362
- body: ObjectSerializer.serialize(inlineObject46, "InlineObject46")
363
- };
364
-
365
- let authenticationPromise = Promise.resolve();
366
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
367
-
368
- let interceptorPromise = authenticationPromise;
369
- for (const interceptor of this.interceptors) {
370
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
371
- }
372
-
373
- return interceptorPromise.then(() => {
374
- if (Object.keys(localVarFormParams).length) {
375
- if (localVarUseFormData) {
376
- (<any>localVarRequestOptions).formData = localVarFormParams;
377
- } else {
378
- localVarRequestOptions.form = localVarFormParams;
379
- }
380
- }
381
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
382
- localVarRequest(localVarRequestOptions, (error, response, body) => {
383
- if (error) {
384
- reject(error);
385
- } else {
386
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
387
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
388
- resolve({ response: response, body: body });
389
- } else {
390
- reject(new HttpError(response, body, response.statusCode));
391
- }
392
- }
393
- });
394
- });
395
- });
396
- }
397
- /**
398
- *
399
- * @summary Count redeemed membership points
400
- * @param inlineObject41
401
- */
402
- public async countMembershipPointsRedemptions (inlineObject41: InlineObject41, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
403
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipPoints/redemptions';
404
- let localVarQueryParameters: any = {};
405
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
406
- const produces = ['application/json'];
407
- // give precedence to 'application/json'
408
- if (produces.indexOf('application/json') >= 0) {
409
- localVarHeaderParams.Accept = 'application/json';
410
- } else {
411
- localVarHeaderParams.Accept = produces.join(',');
412
- }
413
- let localVarFormParams: any = {};
414
-
415
- // verify required parameter 'inlineObject41' is not null or undefined
416
- if (inlineObject41 === null || inlineObject41 === undefined) {
417
- throw new Error('Required parameter inlineObject41 was null or undefined when calling countMembershipPointsRedemptions.');
418
- }
419
-
420
- (<any>Object).assign(localVarHeaderParams, options.headers);
421
-
422
- let localVarUseFormData = false;
423
-
424
- let localVarRequestOptions: localVarRequest.Options = {
425
- method: 'POST',
426
- qs: localVarQueryParameters,
427
- headers: localVarHeaderParams,
428
- uri: localVarPath,
429
- useQuerystring: this._useQuerystring,
430
- json: true,
431
- body: ObjectSerializer.serialize(inlineObject41, "InlineObject41")
432
- };
433
-
434
- let authenticationPromise = Promise.resolve();
435
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
436
-
437
- let interceptorPromise = authenticationPromise;
438
- for (const interceptor of this.interceptors) {
439
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
440
- }
441
-
442
- return interceptorPromise.then(() => {
443
- if (Object.keys(localVarFormParams).length) {
444
- if (localVarUseFormData) {
445
- (<any>localVarRequestOptions).formData = localVarFormParams;
446
- } else {
447
- localVarRequestOptions.form = localVarFormParams;
448
- }
449
- }
450
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
451
- localVarRequest(localVarRequestOptions, (error, response, body) => {
452
- if (error) {
453
- reject(error);
454
- } else {
455
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
456
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
457
- resolve({ response: response, body: body });
458
- } else {
459
- reject(new HttpError(response, body, response.statusCode));
460
- }
461
- }
462
- });
463
- });
464
- });
465
- }
466
- /**
467
- *
468
- * @summary Count refunded membership points
469
- * @param inlineObject42
470
- */
471
- public async countMembershipPointsRefunds (inlineObject42: InlineObject42, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
472
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipPoints/refunds';
473
- let localVarQueryParameters: any = {};
474
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
475
- const produces = ['application/json'];
476
- // give precedence to 'application/json'
477
- if (produces.indexOf('application/json') >= 0) {
478
- localVarHeaderParams.Accept = 'application/json';
479
- } else {
480
- localVarHeaderParams.Accept = produces.join(',');
481
- }
482
- let localVarFormParams: any = {};
483
-
484
- // verify required parameter 'inlineObject42' is not null or undefined
485
- if (inlineObject42 === null || inlineObject42 === undefined) {
486
- throw new Error('Required parameter inlineObject42 was null or undefined when calling countMembershipPointsRefunds.');
487
- }
488
-
489
- (<any>Object).assign(localVarHeaderParams, options.headers);
490
-
491
- let localVarUseFormData = false;
492
-
493
- let localVarRequestOptions: localVarRequest.Options = {
494
- method: 'POST',
495
- qs: localVarQueryParameters,
496
- headers: localVarHeaderParams,
497
- uri: localVarPath,
498
- useQuerystring: this._useQuerystring,
499
- json: true,
500
- body: ObjectSerializer.serialize(inlineObject42, "InlineObject42")
501
- };
502
-
503
- let authenticationPromise = Promise.resolve();
504
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
505
-
506
- let interceptorPromise = authenticationPromise;
507
- for (const interceptor of this.interceptors) {
508
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
509
- }
510
-
511
- return interceptorPromise.then(() => {
512
- if (Object.keys(localVarFormParams).length) {
513
- if (localVarUseFormData) {
514
- (<any>localVarRequestOptions).formData = localVarFormParams;
515
- } else {
516
- localVarRequestOptions.form = localVarFormParams;
517
- }
518
- }
519
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
520
- localVarRequest(localVarRequestOptions, (error, response, body) => {
521
- if (error) {
522
- reject(error);
523
- } else {
524
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
525
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
526
- resolve({ response: response, body: body });
527
- } else {
528
- reject(new HttpError(response, body, response.statusCode));
529
- }
530
- }
531
- });
532
- });
533
- });
534
- }
535
- /**
536
- *
537
- * @summary Count tier redemptions
538
- * @param inlineObject43
539
- */
540
- public async countMembershipTierRedemptions (inlineObject43: InlineObject43, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
541
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipTier/redemptions';
542
- let localVarQueryParameters: any = {};
543
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
544
- const produces = ['application/json'];
545
- // give precedence to 'application/json'
546
- if (produces.indexOf('application/json') >= 0) {
547
- localVarHeaderParams.Accept = 'application/json';
548
- } else {
549
- localVarHeaderParams.Accept = produces.join(',');
550
- }
551
- let localVarFormParams: any = {};
552
-
553
- // verify required parameter 'inlineObject43' is not null or undefined
554
- if (inlineObject43 === null || inlineObject43 === undefined) {
555
- throw new Error('Required parameter inlineObject43 was null or undefined when calling countMembershipTierRedemptions.');
556
- }
557
-
558
- (<any>Object).assign(localVarHeaderParams, options.headers);
559
-
560
- let localVarUseFormData = false;
561
-
562
- let localVarRequestOptions: localVarRequest.Options = {
563
- method: 'POST',
564
- qs: localVarQueryParameters,
565
- headers: localVarHeaderParams,
566
- uri: localVarPath,
567
- useQuerystring: this._useQuerystring,
568
- json: true,
569
- body: ObjectSerializer.serialize(inlineObject43, "InlineObject43")
570
- };
571
-
572
- let authenticationPromise = Promise.resolve();
573
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
574
-
575
- let interceptorPromise = authenticationPromise;
576
- for (const interceptor of this.interceptors) {
577
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
578
- }
579
-
580
- return interceptorPromise.then(() => {
581
- if (Object.keys(localVarFormParams).length) {
582
- if (localVarUseFormData) {
583
- (<any>localVarRequestOptions).formData = localVarFormParams;
584
- } else {
585
- localVarRequestOptions.form = localVarFormParams;
586
- }
587
- }
588
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
589
- localVarRequest(localVarRequestOptions, (error, response, body) => {
590
- if (error) {
591
- reject(error);
592
- } else {
593
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
594
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
595
- resolve({ response: response, body: body });
596
- } else {
597
- reject(new HttpError(response, body, response.statusCode));
598
- }
599
- }
600
- });
601
- });
602
- });
603
- }
604
- /**
605
- *
606
- * @summary Count tier refunds
607
- * @param inlineObject44
608
- */
609
- public async countMembershipTierRefunds (inlineObject44: InlineObject44, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
610
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipTier/refunds';
611
- let localVarQueryParameters: any = {};
612
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
613
- const produces = ['application/json'];
614
- // give precedence to 'application/json'
615
- if (produces.indexOf('application/json') >= 0) {
616
- localVarHeaderParams.Accept = 'application/json';
617
- } else {
618
- localVarHeaderParams.Accept = produces.join(',');
619
- }
620
- let localVarFormParams: any = {};
621
-
622
- // verify required parameter 'inlineObject44' is not null or undefined
623
- if (inlineObject44 === null || inlineObject44 === undefined) {
624
- throw new Error('Required parameter inlineObject44 was null or undefined when calling countMembershipTierRefunds.');
625
- }
626
-
627
- (<any>Object).assign(localVarHeaderParams, options.headers);
628
-
629
- let localVarUseFormData = false;
630
-
631
- let localVarRequestOptions: localVarRequest.Options = {
632
- method: 'POST',
633
- qs: localVarQueryParameters,
634
- headers: localVarHeaderParams,
635
- uri: localVarPath,
636
- useQuerystring: this._useQuerystring,
637
- json: true,
638
- body: ObjectSerializer.serialize(inlineObject44, "InlineObject44")
639
- };
640
-
641
- let authenticationPromise = Promise.resolve();
642
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
643
-
644
- let interceptorPromise = authenticationPromise;
645
- for (const interceptor of this.interceptors) {
646
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
647
- }
648
-
649
- return interceptorPromise.then(() => {
650
- if (Object.keys(localVarFormParams).length) {
651
- if (localVarUseFormData) {
652
- (<any>localVarRequestOptions).formData = localVarFormParams;
653
- } else {
654
- localVarRequestOptions.form = localVarFormParams;
655
- }
656
- }
657
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
658
- localVarRequest(localVarRequestOptions, (error, response, body) => {
659
- if (error) {
660
- reject(error);
661
- } else {
662
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
663
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
664
- resolve({ response: response, body: body });
665
- } else {
666
- reject(new HttpError(response, body, response.statusCode));
667
- }
668
- }
669
- });
670
- });
671
- });
672
- }
673
- /**
674
- *
675
- * @summary Count redeemed merchant credits
676
- * @param inlineObject39
677
- */
678
- public async countMerchantCreditRedemptions (inlineObject39: InlineObject39, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
679
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/merchantCredit/redemptions';
680
- let localVarQueryParameters: any = {};
681
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
682
- const produces = ['application/json'];
683
- // give precedence to 'application/json'
684
- if (produces.indexOf('application/json') >= 0) {
685
- localVarHeaderParams.Accept = 'application/json';
686
- } else {
687
- localVarHeaderParams.Accept = produces.join(',');
688
- }
689
- let localVarFormParams: any = {};
690
-
691
- // verify required parameter 'inlineObject39' is not null or undefined
692
- if (inlineObject39 === null || inlineObject39 === undefined) {
693
- throw new Error('Required parameter inlineObject39 was null or undefined when calling countMerchantCreditRedemptions.');
694
- }
695
-
696
- (<any>Object).assign(localVarHeaderParams, options.headers);
697
-
698
- let localVarUseFormData = false;
699
-
700
- let localVarRequestOptions: localVarRequest.Options = {
701
- method: 'POST',
702
- qs: localVarQueryParameters,
703
- headers: localVarHeaderParams,
704
- uri: localVarPath,
705
- useQuerystring: this._useQuerystring,
706
- json: true,
707
- body: ObjectSerializer.serialize(inlineObject39, "InlineObject39")
708
- };
709
-
710
- let authenticationPromise = Promise.resolve();
711
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
712
-
713
- let interceptorPromise = authenticationPromise;
714
- for (const interceptor of this.interceptors) {
715
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
716
- }
717
-
718
- return interceptorPromise.then(() => {
719
- if (Object.keys(localVarFormParams).length) {
720
- if (localVarUseFormData) {
721
- (<any>localVarRequestOptions).formData = localVarFormParams;
722
- } else {
723
- localVarRequestOptions.form = localVarFormParams;
724
- }
725
- }
726
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
727
- localVarRequest(localVarRequestOptions, (error, response, body) => {
728
- if (error) {
729
- reject(error);
730
- } else {
731
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
732
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
733
- resolve({ response: response, body: body });
734
- } else {
735
- reject(new HttpError(response, body, response.statusCode));
736
- }
737
- }
738
- });
739
- });
740
- });
741
- }
742
- /**
743
- *
744
- * @summary Count refunded merchant credits
745
- * @param inlineObject40
746
- */
747
- public async countMerchantCreditRefunds (inlineObject40: InlineObject40, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
748
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/merchantCredit/refunds';
749
- let localVarQueryParameters: any = {};
750
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
751
- const produces = ['application/json'];
752
- // give precedence to 'application/json'
753
- if (produces.indexOf('application/json') >= 0) {
754
- localVarHeaderParams.Accept = 'application/json';
755
- } else {
756
- localVarHeaderParams.Accept = produces.join(',');
757
- }
758
- let localVarFormParams: any = {};
759
-
760
- // verify required parameter 'inlineObject40' is not null or undefined
761
- if (inlineObject40 === null || inlineObject40 === undefined) {
762
- throw new Error('Required parameter inlineObject40 was null or undefined when calling countMerchantCreditRefunds.');
763
- }
764
-
765
- (<any>Object).assign(localVarHeaderParams, options.headers);
766
-
767
- let localVarUseFormData = false;
768
-
769
- let localVarRequestOptions: localVarRequest.Options = {
770
- method: 'POST',
771
- qs: localVarQueryParameters,
772
- headers: localVarHeaderParams,
773
- uri: localVarPath,
774
- useQuerystring: this._useQuerystring,
775
- json: true,
776
- body: ObjectSerializer.serialize(inlineObject40, "InlineObject40")
777
- };
778
-
779
- let authenticationPromise = Promise.resolve();
780
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
781
-
782
- let interceptorPromise = authenticationPromise;
783
- for (const interceptor of this.interceptors) {
784
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
785
- }
786
-
787
- return interceptorPromise.then(() => {
788
- if (Object.keys(localVarFormParams).length) {
789
- if (localVarUseFormData) {
790
- (<any>localVarRequestOptions).formData = localVarFormParams;
791
- } else {
792
- localVarRequestOptions.form = localVarFormParams;
793
- }
794
- }
795
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
796
- localVarRequest(localVarRequestOptions, (error, response, body) => {
797
- if (error) {
798
- reject(error);
799
- } else {
800
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
801
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
802
- resolve({ response: response, body: body });
803
- } else {
804
- reject(new HttpError(response, body, response.statusCode));
805
- }
806
- }
807
- });
808
- });
809
- });
810
- }
811
- /**
812
- *
813
- * @summary Count static voucher redemptions
814
- * @param inlineObject47
815
- */
816
- public async countStaticVoucherRedemptions (inlineObject47: InlineObject47, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
817
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/staticVoucher/redemptions';
818
- let localVarQueryParameters: any = {};
819
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
820
- const produces = ['application/json'];
821
- // give precedence to 'application/json'
822
- if (produces.indexOf('application/json') >= 0) {
823
- localVarHeaderParams.Accept = 'application/json';
824
- } else {
825
- localVarHeaderParams.Accept = produces.join(',');
826
- }
827
- let localVarFormParams: any = {};
828
-
829
- // verify required parameter 'inlineObject47' is not null or undefined
830
- if (inlineObject47 === null || inlineObject47 === undefined) {
831
- throw new Error('Required parameter inlineObject47 was null or undefined when calling countStaticVoucherRedemptions.');
832
- }
833
-
834
- (<any>Object).assign(localVarHeaderParams, options.headers);
835
-
836
- let localVarUseFormData = false;
837
-
838
- let localVarRequestOptions: localVarRequest.Options = {
839
- method: 'POST',
840
- qs: localVarQueryParameters,
841
- headers: localVarHeaderParams,
842
- uri: localVarPath,
843
- useQuerystring: this._useQuerystring,
844
- json: true,
845
- body: ObjectSerializer.serialize(inlineObject47, "InlineObject47")
846
- };
847
-
848
- let authenticationPromise = Promise.resolve();
849
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
850
-
851
- let interceptorPromise = authenticationPromise;
852
- for (const interceptor of this.interceptors) {
853
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
854
- }
855
-
856
- return interceptorPromise.then(() => {
857
- if (Object.keys(localVarFormParams).length) {
858
- if (localVarUseFormData) {
859
- (<any>localVarRequestOptions).formData = localVarFormParams;
860
- } else {
861
- localVarRequestOptions.form = localVarFormParams;
862
- }
863
- }
864
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
865
- localVarRequest(localVarRequestOptions, (error, response, body) => {
866
- if (error) {
867
- reject(error);
868
- } else {
869
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
870
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
871
- resolve({ response: response, body: body });
872
- } else {
873
- reject(new HttpError(response, body, response.statusCode));
874
- }
875
- }
876
- });
877
- });
878
- });
879
- }
880
- /**
881
- *
882
- * @summary Count static voucher refunds
883
- * @param inlineObject48
884
- */
885
- public async countStaticVoucherRefunds (inlineObject48: InlineObject48, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
886
- const localVarPath = this.basePath + '/v1/pos/infogenesis/count/staticVoucher/refunds';
887
- let localVarQueryParameters: any = {};
888
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
889
- const produces = ['application/json'];
890
- // give precedence to 'application/json'
891
- if (produces.indexOf('application/json') >= 0) {
892
- localVarHeaderParams.Accept = 'application/json';
893
- } else {
894
- localVarHeaderParams.Accept = produces.join(',');
895
- }
896
- let localVarFormParams: any = {};
897
-
898
- // verify required parameter 'inlineObject48' is not null or undefined
899
- if (inlineObject48 === null || inlineObject48 === undefined) {
900
- throw new Error('Required parameter inlineObject48 was null or undefined when calling countStaticVoucherRefunds.');
901
- }
902
-
903
- (<any>Object).assign(localVarHeaderParams, options.headers);
904
-
905
- let localVarUseFormData = false;
906
-
907
- let localVarRequestOptions: localVarRequest.Options = {
908
- method: 'POST',
909
- qs: localVarQueryParameters,
910
- headers: localVarHeaderParams,
911
- uri: localVarPath,
912
- useQuerystring: this._useQuerystring,
913
- json: true,
914
- body: ObjectSerializer.serialize(inlineObject48, "InlineObject48")
915
- };
916
-
917
- let authenticationPromise = Promise.resolve();
918
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
919
-
920
- let interceptorPromise = authenticationPromise;
921
- for (const interceptor of this.interceptors) {
922
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
923
- }
924
-
925
- return interceptorPromise.then(() => {
926
- if (Object.keys(localVarFormParams).length) {
927
- if (localVarUseFormData) {
928
- (<any>localVarRequestOptions).formData = localVarFormParams;
929
- } else {
930
- localVarRequestOptions.form = localVarFormParams;
931
- }
932
- }
933
- return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
934
- localVarRequest(localVarRequestOptions, (error, response, body) => {
935
- if (error) {
936
- reject(error);
937
- } else {
938
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
939
- body = ObjectSerializer.deserialize(body, "InlineResponse2003");
940
- resolve({ response: response, body: body });
941
- } else {
942
- reject(new HttpError(response, body, response.statusCode));
943
- }
944
- }
945
- });
946
- });
947
- });
948
- }
949
- /**
950
- *
951
- * @summary Fetch InfoGenesis authorizations
952
- * @param inlineObject35
953
- */
954
- public async fetchInfoGenesisAuthorizations (inlineObject35: InlineObject35, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
955
- const localVarPath = this.basePath + '/v1/pos/infogenesis/authorizations';
956
- let localVarQueryParameters: any = {};
957
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
958
- const produces = ['application/json'];
959
- // give precedence to 'application/json'
960
- if (produces.indexOf('application/json') >= 0) {
961
- localVarHeaderParams.Accept = 'application/json';
962
- } else {
963
- localVarHeaderParams.Accept = produces.join(',');
964
- }
965
- let localVarFormParams: any = {};
966
-
967
- // verify required parameter 'inlineObject35' is not null or undefined
968
- if (inlineObject35 === null || inlineObject35 === undefined) {
969
- throw new Error('Required parameter inlineObject35 was null or undefined when calling fetchInfoGenesisAuthorizations.');
970
- }
971
-
972
- (<any>Object).assign(localVarHeaderParams, options.headers);
973
-
974
- let localVarUseFormData = false;
975
-
976
- let localVarRequestOptions: localVarRequest.Options = {
977
- method: 'POST',
978
- qs: localVarQueryParameters,
979
- headers: localVarHeaderParams,
980
- uri: localVarPath,
981
- useQuerystring: this._useQuerystring,
982
- json: true,
983
- body: ObjectSerializer.serialize(inlineObject35, "InlineObject35")
984
- };
985
-
986
- let authenticationPromise = Promise.resolve();
987
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
988
-
989
- let interceptorPromise = authenticationPromise;
990
- for (const interceptor of this.interceptors) {
991
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
992
- }
993
-
994
- return interceptorPromise.then(() => {
995
- if (Object.keys(localVarFormParams).length) {
996
- if (localVarUseFormData) {
997
- (<any>localVarRequestOptions).formData = localVarFormParams;
998
- } else {
999
- localVarRequestOptions.form = localVarFormParams;
1000
- }
1001
- }
1002
- return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1003
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1004
- if (error) {
1005
- reject(error);
1006
- } else {
1007
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1008
- body = ObjectSerializer.deserialize(body, "Array<Request>");
1009
- resolve({ response: response, body: body });
1010
- } else {
1011
- reject(new HttpError(response, body, response.statusCode));
1012
- }
1013
- }
1014
- });
1015
- });
1016
- });
1017
- }
1018
- /**
1019
- *
1020
- * @summary Fetch campaign information
1021
- * @param inlineObject36
1022
- */
1023
- public async fetchInfoGenesisCampaignData (inlineObject36: InlineObject36, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
1024
- const localVarPath = this.basePath + '/v1/pos/infogenesis/campaign';
1025
- let localVarQueryParameters: any = {};
1026
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1027
- const produces = ['application/json'];
1028
- // give precedence to 'application/json'
1029
- if (produces.indexOf('application/json') >= 0) {
1030
- localVarHeaderParams.Accept = 'application/json';
1031
- } else {
1032
- localVarHeaderParams.Accept = produces.join(',');
1033
- }
1034
- let localVarFormParams: any = {};
1035
-
1036
- // verify required parameter 'inlineObject36' is not null or undefined
1037
- if (inlineObject36 === null || inlineObject36 === undefined) {
1038
- throw new Error('Required parameter inlineObject36 was null or undefined when calling fetchInfoGenesisCampaignData.');
1039
- }
1040
-
1041
- (<any>Object).assign(localVarHeaderParams, options.headers);
1042
-
1043
- let localVarUseFormData = false;
1044
-
1045
- let localVarRequestOptions: localVarRequest.Options = {
1046
- method: 'POST',
1047
- qs: localVarQueryParameters,
1048
- headers: localVarHeaderParams,
1049
- uri: localVarPath,
1050
- useQuerystring: this._useQuerystring,
1051
- json: true,
1052
- body: ObjectSerializer.serialize(inlineObject36, "InlineObject36")
1053
- };
1054
-
1055
- let authenticationPromise = Promise.resolve();
1056
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1057
-
1058
- let interceptorPromise = authenticationPromise;
1059
- for (const interceptor of this.interceptors) {
1060
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1061
- }
1062
-
1063
- return interceptorPromise.then(() => {
1064
- if (Object.keys(localVarFormParams).length) {
1065
- if (localVarUseFormData) {
1066
- (<any>localVarRequestOptions).formData = localVarFormParams;
1067
- } else {
1068
- localVarRequestOptions.form = localVarFormParams;
1069
- }
1070
- }
1071
- return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
1072
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1073
- if (error) {
1074
- reject(error);
1075
- } else {
1076
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1077
- body = ObjectSerializer.deserialize(body, "boolean");
1078
- resolve({ response: response, body: body });
1079
- } else {
1080
- reject(new HttpError(response, body, response.statusCode));
1081
- }
1082
- }
1083
- });
1084
- });
1085
- });
1086
- }
1087
- /**
1088
- *
1089
- * @summary Fetch InfoGenesis lookup requests
1090
- * @param inlineObject28
1091
- */
1092
- public async fetchInfoGenesisLookupRequests (inlineObject28: InlineObject28, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1093
- const localVarPath = this.basePath + '/v1/pos/infogenesis/requests/lookup';
1094
- let localVarQueryParameters: any = {};
1095
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1096
- const produces = ['application/json'];
1097
- // give precedence to 'application/json'
1098
- if (produces.indexOf('application/json') >= 0) {
1099
- localVarHeaderParams.Accept = 'application/json';
1100
- } else {
1101
- localVarHeaderParams.Accept = produces.join(',');
1102
- }
1103
- let localVarFormParams: any = {};
1104
-
1105
- // verify required parameter 'inlineObject28' is not null or undefined
1106
- if (inlineObject28 === null || inlineObject28 === undefined) {
1107
- throw new Error('Required parameter inlineObject28 was null or undefined when calling fetchInfoGenesisLookupRequests.');
1108
- }
1109
-
1110
- (<any>Object).assign(localVarHeaderParams, options.headers);
1111
-
1112
- let localVarUseFormData = false;
1113
-
1114
- let localVarRequestOptions: localVarRequest.Options = {
1115
- method: 'POST',
1116
- qs: localVarQueryParameters,
1117
- headers: localVarHeaderParams,
1118
- uri: localVarPath,
1119
- useQuerystring: this._useQuerystring,
1120
- json: true,
1121
- body: ObjectSerializer.serialize(inlineObject28, "InlineObject28")
1122
- };
1123
-
1124
- let authenticationPromise = Promise.resolve();
1125
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1126
-
1127
- let interceptorPromise = authenticationPromise;
1128
- for (const interceptor of this.interceptors) {
1129
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1130
- }
1131
-
1132
- return interceptorPromise.then(() => {
1133
- if (Object.keys(localVarFormParams).length) {
1134
- if (localVarUseFormData) {
1135
- (<any>localVarRequestOptions).formData = localVarFormParams;
1136
- } else {
1137
- localVarRequestOptions.form = localVarFormParams;
1138
- }
1139
- }
1140
- return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1141
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1142
- if (error) {
1143
- reject(error);
1144
- } else {
1145
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1146
- body = ObjectSerializer.deserialize(body, "Array<Request>");
1147
- resolve({ response: response, body: body });
1148
- } else {
1149
- reject(new HttpError(response, body, response.statusCode));
1150
- }
1151
- }
1152
- });
1153
- });
1154
- });
1155
- }
1156
- /**
1157
- *
1158
- * @summary Fetch InfoGenesis lookup request errors
1159
- * @param inlineObject29
1160
- */
1161
- public async fetchInfoGenesisLookupRequestsErrors (inlineObject29: InlineObject29, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1162
- const localVarPath = this.basePath + '/v1/pos/infogenesis/requests/lookup/errors';
1163
- let localVarQueryParameters: any = {};
1164
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1165
- const produces = ['application/json'];
1166
- // give precedence to 'application/json'
1167
- if (produces.indexOf('application/json') >= 0) {
1168
- localVarHeaderParams.Accept = 'application/json';
1169
- } else {
1170
- localVarHeaderParams.Accept = produces.join(',');
1171
- }
1172
- let localVarFormParams: any = {};
1173
-
1174
- // verify required parameter 'inlineObject29' is not null or undefined
1175
- if (inlineObject29 === null || inlineObject29 === undefined) {
1176
- throw new Error('Required parameter inlineObject29 was null or undefined when calling fetchInfoGenesisLookupRequestsErrors.');
1177
- }
1178
-
1179
- (<any>Object).assign(localVarHeaderParams, options.headers);
1180
-
1181
- let localVarUseFormData = false;
1182
-
1183
- let localVarRequestOptions: localVarRequest.Options = {
1184
- method: 'POST',
1185
- qs: localVarQueryParameters,
1186
- headers: localVarHeaderParams,
1187
- uri: localVarPath,
1188
- useQuerystring: this._useQuerystring,
1189
- json: true,
1190
- body: ObjectSerializer.serialize(inlineObject29, "InlineObject29")
1191
- };
1192
-
1193
- let authenticationPromise = Promise.resolve();
1194
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1195
-
1196
- let interceptorPromise = authenticationPromise;
1197
- for (const interceptor of this.interceptors) {
1198
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1199
- }
1200
-
1201
- return interceptorPromise.then(() => {
1202
- if (Object.keys(localVarFormParams).length) {
1203
- if (localVarUseFormData) {
1204
- (<any>localVarRequestOptions).formData = localVarFormParams;
1205
- } else {
1206
- localVarRequestOptions.form = localVarFormParams;
1207
- }
1208
- }
1209
- return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1210
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1211
- if (error) {
1212
- reject(error);
1213
- } else {
1214
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1215
- body = ObjectSerializer.deserialize(body, "Array<Request>");
1216
- resolve({ response: response, body: body });
1217
- } else {
1218
- reject(new HttpError(response, body, response.statusCode));
1219
- }
1220
- }
1221
- });
1222
- });
1223
- });
1224
- }
1225
- /**
1226
- *
1227
- * @summary Fetch redeemed static vouchers
1228
- * @param inlineObject32
1229
- */
1230
- public async fetchInfoGenesisRedeemedStaticVouchers (inlineObject32: InlineObject32, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }> {
1231
- const localVarPath = this.basePath + '/v1/pos/infogenesis/staticVouchers/redeemed';
1232
- let localVarQueryParameters: any = {};
1233
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1234
- const produces = ['application/json'];
1235
- // give precedence to 'application/json'
1236
- if (produces.indexOf('application/json') >= 0) {
1237
- localVarHeaderParams.Accept = 'application/json';
1238
- } else {
1239
- localVarHeaderParams.Accept = produces.join(',');
1240
- }
1241
- let localVarFormParams: any = {};
1242
-
1243
- // verify required parameter 'inlineObject32' is not null or undefined
1244
- if (inlineObject32 === null || inlineObject32 === undefined) {
1245
- throw new Error('Required parameter inlineObject32 was null or undefined when calling fetchInfoGenesisRedeemedStaticVouchers.');
1246
- }
1247
-
1248
- (<any>Object).assign(localVarHeaderParams, options.headers);
1249
-
1250
- let localVarUseFormData = false;
1251
-
1252
- let localVarRequestOptions: localVarRequest.Options = {
1253
- method: 'POST',
1254
- qs: localVarQueryParameters,
1255
- headers: localVarHeaderParams,
1256
- uri: localVarPath,
1257
- useQuerystring: this._useQuerystring,
1258
- json: true,
1259
- body: ObjectSerializer.serialize(inlineObject32, "InlineObject32")
1260
- };
1261
-
1262
- let authenticationPromise = Promise.resolve();
1263
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1264
-
1265
- let interceptorPromise = authenticationPromise;
1266
- for (const interceptor of this.interceptors) {
1267
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1268
- }
1269
-
1270
- return interceptorPromise.then(() => {
1271
- if (Object.keys(localVarFormParams).length) {
1272
- if (localVarUseFormData) {
1273
- (<any>localVarRequestOptions).formData = localVarFormParams;
1274
- } else {
1275
- localVarRequestOptions.form = localVarFormParams;
1276
- }
1277
- }
1278
- return new Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }>((resolve, reject) => {
1279
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1280
- if (error) {
1281
- reject(error);
1282
- } else {
1283
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1284
- body = ObjectSerializer.deserialize(body, "Array<StaticVoucher>");
1285
- resolve({ response: response, body: body });
1286
- } else {
1287
- reject(new HttpError(response, body, response.statusCode));
1288
- }
1289
- }
1290
- });
1291
- });
1292
- });
1293
- }
1294
- /**
1295
- *
1296
- * @summary Fetch redeemed InfoGenesis unique posting IDs
1297
- * @param startDateTime
1298
- * @param endDateTime
1299
- */
1300
- public async fetchInfoGenesisRedeemedUniquePostingIDs (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
1301
- const localVarPath = this.basePath + '/v1/pos/infogenesis/postingIDs/redeemed';
1302
- let localVarQueryParameters: any = {};
1303
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1304
- const produces = ['application/json'];
1305
- // give precedence to 'application/json'
1306
- if (produces.indexOf('application/json') >= 0) {
1307
- localVarHeaderParams.Accept = 'application/json';
1308
- } else {
1309
- localVarHeaderParams.Accept = produces.join(',');
1310
- }
1311
- let localVarFormParams: any = {};
1312
-
1313
- // verify required parameter 'startDateTime' is not null or undefined
1314
- if (startDateTime === null || startDateTime === undefined) {
1315
- throw new Error('Required parameter startDateTime was null or undefined when calling fetchInfoGenesisRedeemedUniquePostingIDs.');
1316
- }
1317
-
1318
- // verify required parameter 'endDateTime' is not null or undefined
1319
- if (endDateTime === null || endDateTime === undefined) {
1320
- throw new Error('Required parameter endDateTime was null or undefined when calling fetchInfoGenesisRedeemedUniquePostingIDs.');
1321
- }
1322
-
1323
- if (startDateTime !== undefined) {
1324
- localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
1325
- }
1326
-
1327
- if (endDateTime !== undefined) {
1328
- localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
1329
- }
1330
-
1331
- (<any>Object).assign(localVarHeaderParams, options.headers);
1332
-
1333
- let localVarUseFormData = false;
1334
-
1335
- let localVarRequestOptions: localVarRequest.Options = {
1336
- method: 'GET',
1337
- qs: localVarQueryParameters,
1338
- headers: localVarHeaderParams,
1339
- uri: localVarPath,
1340
- useQuerystring: this._useQuerystring,
1341
- json: true,
1342
- };
1343
-
1344
- let authenticationPromise = Promise.resolve();
1345
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1346
-
1347
- let interceptorPromise = authenticationPromise;
1348
- for (const interceptor of this.interceptors) {
1349
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1350
- }
1351
-
1352
- return interceptorPromise.then(() => {
1353
- if (Object.keys(localVarFormParams).length) {
1354
- if (localVarUseFormData) {
1355
- (<any>localVarRequestOptions).formData = localVarFormParams;
1356
- } else {
1357
- localVarRequestOptions.form = localVarFormParams;
1358
- }
1359
- }
1360
- return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
1361
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1362
- if (error) {
1363
- reject(error);
1364
- } else {
1365
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1366
- body = ObjectSerializer.deserialize(body, "Array<any>");
1367
- resolve({ response: response, body: body });
1368
- } else {
1369
- reject(new HttpError(response, body, response.statusCode));
1370
- }
1371
- }
1372
- });
1373
- });
1374
- });
1375
- }
1376
- /**
1377
- *
1378
- * @summary Fetch InfoGenesis redemptions
1379
- * @param inlineObject30
1380
- */
1381
- public async fetchInfoGenesisRedemptions (inlineObject30: InlineObject30, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1382
- const localVarPath = this.basePath + '/v1/pos/infogenesis/redemptions';
1383
- let localVarQueryParameters: any = {};
1384
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1385
- const produces = ['application/json'];
1386
- // give precedence to 'application/json'
1387
- if (produces.indexOf('application/json') >= 0) {
1388
- localVarHeaderParams.Accept = 'application/json';
1389
- } else {
1390
- localVarHeaderParams.Accept = produces.join(',');
1391
- }
1392
- let localVarFormParams: any = {};
1393
-
1394
- // verify required parameter 'inlineObject30' is not null or undefined
1395
- if (inlineObject30 === null || inlineObject30 === undefined) {
1396
- throw new Error('Required parameter inlineObject30 was null or undefined when calling fetchInfoGenesisRedemptions.');
1397
- }
1398
-
1399
- (<any>Object).assign(localVarHeaderParams, options.headers);
1400
-
1401
- let localVarUseFormData = false;
1402
-
1403
- let localVarRequestOptions: localVarRequest.Options = {
1404
- method: 'POST',
1405
- qs: localVarQueryParameters,
1406
- headers: localVarHeaderParams,
1407
- uri: localVarPath,
1408
- useQuerystring: this._useQuerystring,
1409
- json: true,
1410
- body: ObjectSerializer.serialize(inlineObject30, "InlineObject30")
1411
- };
1412
-
1413
- let authenticationPromise = Promise.resolve();
1414
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1415
-
1416
- let interceptorPromise = authenticationPromise;
1417
- for (const interceptor of this.interceptors) {
1418
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1419
- }
1420
-
1421
- return interceptorPromise.then(() => {
1422
- if (Object.keys(localVarFormParams).length) {
1423
- if (localVarUseFormData) {
1424
- (<any>localVarRequestOptions).formData = localVarFormParams;
1425
- } else {
1426
- localVarRequestOptions.form = localVarFormParams;
1427
- }
1428
- }
1429
- return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1430
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1431
- if (error) {
1432
- reject(error);
1433
- } else {
1434
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1435
- body = ObjectSerializer.deserialize(body, "Array<Request>");
1436
- resolve({ response: response, body: body });
1437
- } else {
1438
- reject(new HttpError(response, body, response.statusCode));
1439
- }
1440
- }
1441
- });
1442
- });
1443
- });
1444
- }
1445
- /**
1446
- *
1447
- * @summary Fetch refunded InfoGenesis unique posting IDs
1448
- * @param startDateTime
1449
- * @param endDateTime
1450
- */
1451
- public async fetchInfoGenesisRefundedRoutingIDs (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
1452
- const localVarPath = this.basePath + '/v1/pos/infogenesis/routingIDs/refunded';
1453
- let localVarQueryParameters: any = {};
1454
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1455
- const produces = ['application/json'];
1456
- // give precedence to 'application/json'
1457
- if (produces.indexOf('application/json') >= 0) {
1458
- localVarHeaderParams.Accept = 'application/json';
1459
- } else {
1460
- localVarHeaderParams.Accept = produces.join(',');
1461
- }
1462
- let localVarFormParams: any = {};
1463
-
1464
- // verify required parameter 'startDateTime' is not null or undefined
1465
- if (startDateTime === null || startDateTime === undefined) {
1466
- throw new Error('Required parameter startDateTime was null or undefined when calling fetchInfoGenesisRefundedRoutingIDs.');
1467
- }
1468
-
1469
- // verify required parameter 'endDateTime' is not null or undefined
1470
- if (endDateTime === null || endDateTime === undefined) {
1471
- throw new Error('Required parameter endDateTime was null or undefined when calling fetchInfoGenesisRefundedRoutingIDs.');
1472
- }
1473
-
1474
- if (startDateTime !== undefined) {
1475
- localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
1476
- }
1477
-
1478
- if (endDateTime !== undefined) {
1479
- localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
1480
- }
1481
-
1482
- (<any>Object).assign(localVarHeaderParams, options.headers);
1483
-
1484
- let localVarUseFormData = false;
1485
-
1486
- let localVarRequestOptions: localVarRequest.Options = {
1487
- method: 'POST',
1488
- qs: localVarQueryParameters,
1489
- headers: localVarHeaderParams,
1490
- uri: localVarPath,
1491
- useQuerystring: this._useQuerystring,
1492
- json: true,
1493
- };
1494
-
1495
- let authenticationPromise = Promise.resolve();
1496
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1497
-
1498
- let interceptorPromise = authenticationPromise;
1499
- for (const interceptor of this.interceptors) {
1500
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1501
- }
1502
-
1503
- return interceptorPromise.then(() => {
1504
- if (Object.keys(localVarFormParams).length) {
1505
- if (localVarUseFormData) {
1506
- (<any>localVarRequestOptions).formData = localVarFormParams;
1507
- } else {
1508
- localVarRequestOptions.form = localVarFormParams;
1509
- }
1510
- }
1511
- return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
1512
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1513
- if (error) {
1514
- reject(error);
1515
- } else {
1516
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1517
- body = ObjectSerializer.deserialize(body, "Array<any>");
1518
- resolve({ response: response, body: body });
1519
- } else {
1520
- reject(new HttpError(response, body, response.statusCode));
1521
- }
1522
- }
1523
- });
1524
- });
1525
- });
1526
- }
1527
- /**
1528
- *
1529
- * @summary Fetch refunded static vouchers
1530
- * @param inlineObject33
1531
- */
1532
- public async fetchInfoGenesisRefundedStaticVouchers (inlineObject33: InlineObject33, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }> {
1533
- const localVarPath = this.basePath + '/v1/pos/infogenesis/staticVouchers/refunded';
1534
- let localVarQueryParameters: any = {};
1535
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1536
- const produces = ['application/json'];
1537
- // give precedence to 'application/json'
1538
- if (produces.indexOf('application/json') >= 0) {
1539
- localVarHeaderParams.Accept = 'application/json';
1540
- } else {
1541
- localVarHeaderParams.Accept = produces.join(',');
1542
- }
1543
- let localVarFormParams: any = {};
1544
-
1545
- // verify required parameter 'inlineObject33' is not null or undefined
1546
- if (inlineObject33 === null || inlineObject33 === undefined) {
1547
- throw new Error('Required parameter inlineObject33 was null or undefined when calling fetchInfoGenesisRefundedStaticVouchers.');
1548
- }
1549
-
1550
- (<any>Object).assign(localVarHeaderParams, options.headers);
1551
-
1552
- let localVarUseFormData = false;
1553
-
1554
- let localVarRequestOptions: localVarRequest.Options = {
1555
- method: 'POST',
1556
- qs: localVarQueryParameters,
1557
- headers: localVarHeaderParams,
1558
- uri: localVarPath,
1559
- useQuerystring: this._useQuerystring,
1560
- json: true,
1561
- body: ObjectSerializer.serialize(inlineObject33, "InlineObject33")
1562
- };
1563
-
1564
- let authenticationPromise = Promise.resolve();
1565
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1566
-
1567
- let interceptorPromise = authenticationPromise;
1568
- for (const interceptor of this.interceptors) {
1569
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1570
- }
1571
-
1572
- return interceptorPromise.then(() => {
1573
- if (Object.keys(localVarFormParams).length) {
1574
- if (localVarUseFormData) {
1575
- (<any>localVarRequestOptions).formData = localVarFormParams;
1576
- } else {
1577
- localVarRequestOptions.form = localVarFormParams;
1578
- }
1579
- }
1580
- return new Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }>((resolve, reject) => {
1581
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1582
- if (error) {
1583
- reject(error);
1584
- } else {
1585
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1586
- body = ObjectSerializer.deserialize(body, "Array<StaticVoucher>");
1587
- resolve({ response: response, body: body });
1588
- } else {
1589
- reject(new HttpError(response, body, response.statusCode));
1590
- }
1591
- }
1592
- });
1593
- });
1594
- });
1595
- }
1596
- /**
1597
- *
1598
- * @summary Fetch InfoGenesis refunds
1599
- * @param inlineObject34
1600
- */
1601
- public async fetchInfoGenesisRefunds (inlineObject34: InlineObject34, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1602
- const localVarPath = this.basePath + '/v1/pos/infogenesis/refunds';
1603
- let localVarQueryParameters: any = {};
1604
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1605
- const produces = ['application/json'];
1606
- // give precedence to 'application/json'
1607
- if (produces.indexOf('application/json') >= 0) {
1608
- localVarHeaderParams.Accept = 'application/json';
1609
- } else {
1610
- localVarHeaderParams.Accept = produces.join(',');
1611
- }
1612
- let localVarFormParams: any = {};
1613
-
1614
- // verify required parameter 'inlineObject34' is not null or undefined
1615
- if (inlineObject34 === null || inlineObject34 === undefined) {
1616
- throw new Error('Required parameter inlineObject34 was null or undefined when calling fetchInfoGenesisRefunds.');
1617
- }
1618
-
1619
- (<any>Object).assign(localVarHeaderParams, options.headers);
1620
-
1621
- let localVarUseFormData = false;
1622
-
1623
- let localVarRequestOptions: localVarRequest.Options = {
1624
- method: 'POST',
1625
- qs: localVarQueryParameters,
1626
- headers: localVarHeaderParams,
1627
- uri: localVarPath,
1628
- useQuerystring: this._useQuerystring,
1629
- json: true,
1630
- body: ObjectSerializer.serialize(inlineObject34, "InlineObject34")
1631
- };
1632
-
1633
- let authenticationPromise = Promise.resolve();
1634
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1635
-
1636
- let interceptorPromise = authenticationPromise;
1637
- for (const interceptor of this.interceptors) {
1638
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1639
- }
1640
-
1641
- return interceptorPromise.then(() => {
1642
- if (Object.keys(localVarFormParams).length) {
1643
- if (localVarUseFormData) {
1644
- (<any>localVarRequestOptions).formData = localVarFormParams;
1645
- } else {
1646
- localVarRequestOptions.form = localVarFormParams;
1647
- }
1648
- }
1649
- return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1650
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1651
- if (error) {
1652
- reject(error);
1653
- } else {
1654
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1655
- body = ObjectSerializer.deserialize(body, "Array<Request>");
1656
- resolve({ response: response, body: body });
1657
- } else {
1658
- reject(new HttpError(response, body, response.statusCode));
1659
- }
1660
- }
1661
- });
1662
- });
1663
- });
1664
- }
1665
- /**
1666
- *
1667
- * @summary Fetch InfoGenesis request with transaction ID
1668
- * @param transactionID
1669
- */
1670
- public async fetchInfoGenesisRequest (transactionID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Request; }> {
1671
- const localVarPath = this.basePath + '/v1/pos/infogenesis/request/{transactionID}'
1672
- .replace('{' + 'transactionID' + '}', encodeURIComponent(String(transactionID)));
1673
- let localVarQueryParameters: any = {};
1674
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1675
- const produces = ['application/json'];
1676
- // give precedence to 'application/json'
1677
- if (produces.indexOf('application/json') >= 0) {
1678
- localVarHeaderParams.Accept = 'application/json';
1679
- } else {
1680
- localVarHeaderParams.Accept = produces.join(',');
1681
- }
1682
- let localVarFormParams: any = {};
1683
-
1684
- // verify required parameter 'transactionID' is not null or undefined
1685
- if (transactionID === null || transactionID === undefined) {
1686
- throw new Error('Required parameter transactionID was null or undefined when calling fetchInfoGenesisRequest.');
1687
- }
1688
-
1689
- (<any>Object).assign(localVarHeaderParams, options.headers);
1690
-
1691
- let localVarUseFormData = false;
1692
-
1693
- let localVarRequestOptions: localVarRequest.Options = {
1694
- method: 'GET',
1695
- qs: localVarQueryParameters,
1696
- headers: localVarHeaderParams,
1697
- uri: localVarPath,
1698
- useQuerystring: this._useQuerystring,
1699
- json: true,
1700
- };
1701
-
1702
- let authenticationPromise = Promise.resolve();
1703
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1704
-
1705
- let interceptorPromise = authenticationPromise;
1706
- for (const interceptor of this.interceptors) {
1707
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1708
- }
1709
-
1710
- return interceptorPromise.then(() => {
1711
- if (Object.keys(localVarFormParams).length) {
1712
- if (localVarUseFormData) {
1713
- (<any>localVarRequestOptions).formData = localVarFormParams;
1714
- } else {
1715
- localVarRequestOptions.form = localVarFormParams;
1716
- }
1717
- }
1718
- return new Promise<{ response: http.IncomingMessage; body: Request; }>((resolve, reject) => {
1719
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1720
- if (error) {
1721
- reject(error);
1722
- } else {
1723
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1724
- body = ObjectSerializer.deserialize(body, "Request");
1725
- resolve({ response: response, body: body });
1726
- } else {
1727
- reject(new HttpError(response, body, response.statusCode));
1728
- }
1729
- }
1730
- });
1731
- });
1732
- });
1733
- }
1734
- /**
1735
- *
1736
- * @summary Fetch InfoGenesis requests with routing IDs
1737
- * @param inlineObject26
1738
- */
1739
- public async fetchInfoGenesisRequests (inlineObject26: InlineObject26, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1740
- const localVarPath = this.basePath + '/v1/pos/infogenesis/requests';
1741
- let localVarQueryParameters: any = {};
1742
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1743
- const produces = ['application/json'];
1744
- // give precedence to 'application/json'
1745
- if (produces.indexOf('application/json') >= 0) {
1746
- localVarHeaderParams.Accept = 'application/json';
1747
- } else {
1748
- localVarHeaderParams.Accept = produces.join(',');
1749
- }
1750
- let localVarFormParams: any = {};
1751
-
1752
- // verify required parameter 'inlineObject26' is not null or undefined
1753
- if (inlineObject26 === null || inlineObject26 === undefined) {
1754
- throw new Error('Required parameter inlineObject26 was null or undefined when calling fetchInfoGenesisRequests.');
1755
- }
1756
-
1757
- (<any>Object).assign(localVarHeaderParams, options.headers);
1758
-
1759
- let localVarUseFormData = false;
1760
-
1761
- let localVarRequestOptions: localVarRequest.Options = {
1762
- method: 'POST',
1763
- qs: localVarQueryParameters,
1764
- headers: localVarHeaderParams,
1765
- uri: localVarPath,
1766
- useQuerystring: this._useQuerystring,
1767
- json: true,
1768
- body: ObjectSerializer.serialize(inlineObject26, "InlineObject26")
1769
- };
1770
-
1771
- let authenticationPromise = Promise.resolve();
1772
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1773
-
1774
- let interceptorPromise = authenticationPromise;
1775
- for (const interceptor of this.interceptors) {
1776
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1777
- }
1778
-
1779
- return interceptorPromise.then(() => {
1780
- if (Object.keys(localVarFormParams).length) {
1781
- if (localVarUseFormData) {
1782
- (<any>localVarRequestOptions).formData = localVarFormParams;
1783
- } else {
1784
- localVarRequestOptions.form = localVarFormParams;
1785
- }
1786
- }
1787
- return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1788
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1789
- if (error) {
1790
- reject(error);
1791
- } else {
1792
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1793
- body = ObjectSerializer.deserialize(body, "Array<Request>");
1794
- resolve({ response: response, body: body });
1795
- } else {
1796
- reject(new HttpError(response, body, response.statusCode));
1797
- }
1798
- }
1799
- });
1800
- });
1801
- });
1802
- }
1803
- /**
1804
- *
1805
- * @summary Fetch InfoGenesis response errors
1806
- * @param startDateTime
1807
- * @param endDateTime
1808
- */
1809
- public async fetchInfoGenesisResponseErrors (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Response>; }> {
1810
- const localVarPath = this.basePath + '/v1/pos/infogenesis/responses/errors';
1811
- let localVarQueryParameters: any = {};
1812
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1813
- const produces = ['application/json'];
1814
- // give precedence to 'application/json'
1815
- if (produces.indexOf('application/json') >= 0) {
1816
- localVarHeaderParams.Accept = 'application/json';
1817
- } else {
1818
- localVarHeaderParams.Accept = produces.join(',');
1819
- }
1820
- let localVarFormParams: any = {};
1821
-
1822
- // verify required parameter 'startDateTime' is not null or undefined
1823
- if (startDateTime === null || startDateTime === undefined) {
1824
- throw new Error('Required parameter startDateTime was null or undefined when calling fetchInfoGenesisResponseErrors.');
1825
- }
1826
-
1827
- // verify required parameter 'endDateTime' is not null or undefined
1828
- if (endDateTime === null || endDateTime === undefined) {
1829
- throw new Error('Required parameter endDateTime was null or undefined when calling fetchInfoGenesisResponseErrors.');
1830
- }
1831
-
1832
- if (startDateTime !== undefined) {
1833
- localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
1834
- }
1835
-
1836
- if (endDateTime !== undefined) {
1837
- localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
1838
- }
1839
-
1840
- (<any>Object).assign(localVarHeaderParams, options.headers);
1841
-
1842
- let localVarUseFormData = false;
1843
-
1844
- let localVarRequestOptions: localVarRequest.Options = {
1845
- method: 'GET',
1846
- qs: localVarQueryParameters,
1847
- headers: localVarHeaderParams,
1848
- uri: localVarPath,
1849
- useQuerystring: this._useQuerystring,
1850
- json: true,
1851
- };
1852
-
1853
- let authenticationPromise = Promise.resolve();
1854
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1855
-
1856
- let interceptorPromise = authenticationPromise;
1857
- for (const interceptor of this.interceptors) {
1858
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1859
- }
1860
-
1861
- return interceptorPromise.then(() => {
1862
- if (Object.keys(localVarFormParams).length) {
1863
- if (localVarUseFormData) {
1864
- (<any>localVarRequestOptions).formData = localVarFormParams;
1865
- } else {
1866
- localVarRequestOptions.form = localVarFormParams;
1867
- }
1868
- }
1869
- return new Promise<{ response: http.IncomingMessage; body: Array<Response>; }>((resolve, reject) => {
1870
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1871
- if (error) {
1872
- reject(error);
1873
- } else {
1874
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1875
- body = ObjectSerializer.deserialize(body, "Array<Response>");
1876
- resolve({ response: response, body: body });
1877
- } else {
1878
- reject(new HttpError(response, body, response.statusCode));
1879
- }
1880
- }
1881
- });
1882
- });
1883
- });
1884
- }
1885
- /**
1886
- *
1887
- * @summary Fetch InfoGenesis responses with routing IDs
1888
- * @param inlineObject27
1889
- */
1890
- public async fetchInfoGenesisResponses (inlineObject27: InlineObject27, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Response>; }> {
1891
- const localVarPath = this.basePath + '/v1/pos/infogenesis/responses';
1892
- let localVarQueryParameters: any = {};
1893
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1894
- const produces = ['application/json'];
1895
- // give precedence to 'application/json'
1896
- if (produces.indexOf('application/json') >= 0) {
1897
- localVarHeaderParams.Accept = 'application/json';
1898
- } else {
1899
- localVarHeaderParams.Accept = produces.join(',');
1900
- }
1901
- let localVarFormParams: any = {};
1902
-
1903
- // verify required parameter 'inlineObject27' is not null or undefined
1904
- if (inlineObject27 === null || inlineObject27 === undefined) {
1905
- throw new Error('Required parameter inlineObject27 was null or undefined when calling fetchInfoGenesisResponses.');
1906
- }
1907
-
1908
- (<any>Object).assign(localVarHeaderParams, options.headers);
1909
-
1910
- let localVarUseFormData = false;
1911
-
1912
- let localVarRequestOptions: localVarRequest.Options = {
1913
- method: 'POST',
1914
- qs: localVarQueryParameters,
1915
- headers: localVarHeaderParams,
1916
- uri: localVarPath,
1917
- useQuerystring: this._useQuerystring,
1918
- json: true,
1919
- body: ObjectSerializer.serialize(inlineObject27, "InlineObject27")
1920
- };
1921
-
1922
- let authenticationPromise = Promise.resolve();
1923
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1924
-
1925
- let interceptorPromise = authenticationPromise;
1926
- for (const interceptor of this.interceptors) {
1927
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1928
- }
1929
-
1930
- return interceptorPromise.then(() => {
1931
- if (Object.keys(localVarFormParams).length) {
1932
- if (localVarUseFormData) {
1933
- (<any>localVarRequestOptions).formData = localVarFormParams;
1934
- } else {
1935
- localVarRequestOptions.form = localVarFormParams;
1936
- }
1937
- }
1938
- return new Promise<{ response: http.IncomingMessage; body: Array<Response>; }>((resolve, reject) => {
1939
- localVarRequest(localVarRequestOptions, (error, response, body) => {
1940
- if (error) {
1941
- reject(error);
1942
- } else {
1943
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1944
- body = ObjectSerializer.deserialize(body, "Array<Response>");
1945
- resolve({ response: response, body: body });
1946
- } else {
1947
- reject(new HttpError(response, body, response.statusCode));
1948
- }
1949
- }
1950
- });
1951
- });
1952
- });
1953
- }
1954
- /**
1955
- *
1956
- * @summary Fetch InfoGenesis transactions
1957
- * @param inlineObject31
1958
- */
1959
- public async fetchInfoGenesisTransactionsWithUniquePostingIDs (inlineObject31: InlineObject31, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1960
- const localVarPath = this.basePath + '/v1/pos/infogenesis/transactions';
1961
- let localVarQueryParameters: any = {};
1962
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1963
- const produces = ['application/json'];
1964
- // give precedence to 'application/json'
1965
- if (produces.indexOf('application/json') >= 0) {
1966
- localVarHeaderParams.Accept = 'application/json';
1967
- } else {
1968
- localVarHeaderParams.Accept = produces.join(',');
1969
- }
1970
- let localVarFormParams: any = {};
1971
-
1972
- // verify required parameter 'inlineObject31' is not null or undefined
1973
- if (inlineObject31 === null || inlineObject31 === undefined) {
1974
- throw new Error('Required parameter inlineObject31 was null or undefined when calling fetchInfoGenesisTransactionsWithUniquePostingIDs.');
1975
- }
1976
-
1977
- (<any>Object).assign(localVarHeaderParams, options.headers);
1978
-
1979
- let localVarUseFormData = false;
1980
-
1981
- let localVarRequestOptions: localVarRequest.Options = {
1982
- method: 'POST',
1983
- qs: localVarQueryParameters,
1984
- headers: localVarHeaderParams,
1985
- uri: localVarPath,
1986
- useQuerystring: this._useQuerystring,
1987
- json: true,
1988
- body: ObjectSerializer.serialize(inlineObject31, "InlineObject31")
1989
- };
1990
-
1991
- let authenticationPromise = Promise.resolve();
1992
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1993
-
1994
- let interceptorPromise = authenticationPromise;
1995
- for (const interceptor of this.interceptors) {
1996
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1997
- }
1998
-
1999
- return interceptorPromise.then(() => {
2000
- if (Object.keys(localVarFormParams).length) {
2001
- if (localVarUseFormData) {
2002
- (<any>localVarRequestOptions).formData = localVarFormParams;
2003
- } else {
2004
- localVarRequestOptions.form = localVarFormParams;
2005
- }
2006
- }
2007
- return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
2008
- localVarRequest(localVarRequestOptions, (error, response, body) => {
2009
- if (error) {
2010
- reject(error);
2011
- } else {
2012
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2013
- body = ObjectSerializer.deserialize(body, "Array<Request>");
2014
- resolve({ response: response, body: body });
2015
- } else {
2016
- reject(new HttpError(response, body, response.statusCode));
2017
- }
2018
- }
2019
- });
2020
- });
2021
- });
2022
- }
2023
- }
1
+ /**
2
+ * wallet-api
3
+ * API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.6
6
+ * Contact: development@wallet.inc
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.
11
+ */
12
+
13
+
14
+ import localVarRequest from 'request';
15
+ import http from 'http';
16
+
17
+ /* tslint:disable:no-unused-locals */
18
+ import { AuthError } from '../model/authError';
19
+ import { FalsumError } from '../model/falsumError';
20
+ import { InlineObject26 } from '../model/inlineObject26';
21
+ import { InlineObject27 } from '../model/inlineObject27';
22
+ import { InlineObject28 } from '../model/inlineObject28';
23
+ import { InlineObject29 } from '../model/inlineObject29';
24
+ import { InlineObject30 } from '../model/inlineObject30';
25
+ import { InlineObject31 } from '../model/inlineObject31';
26
+ import { InlineObject32 } from '../model/inlineObject32';
27
+ import { InlineObject33 } from '../model/inlineObject33';
28
+ import { InlineObject34 } from '../model/inlineObject34';
29
+ import { InlineObject35 } from '../model/inlineObject35';
30
+ import { InlineObject36 } from '../model/inlineObject36';
31
+ import { InlineObject37 } from '../model/inlineObject37';
32
+ import { InlineObject38 } from '../model/inlineObject38';
33
+ import { InlineObject39 } from '../model/inlineObject39';
34
+ import { InlineObject40 } from '../model/inlineObject40';
35
+ import { InlineObject41 } from '../model/inlineObject41';
36
+ import { InlineObject42 } from '../model/inlineObject42';
37
+ import { InlineObject43 } from '../model/inlineObject43';
38
+ import { InlineObject44 } from '../model/inlineObject44';
39
+ import { InlineObject45 } from '../model/inlineObject45';
40
+ import { InlineObject46 } from '../model/inlineObject46';
41
+ import { InlineObject47 } from '../model/inlineObject47';
42
+ import { InlineObject48 } from '../model/inlineObject48';
43
+ import { InlineResponse2003 } from '../model/inlineResponse2003';
44
+ import { InternalServerError } from '../model/internalServerError';
45
+ import { Request } from '../model/request';
46
+ import { Response } from '../model/response';
47
+ import { StaticVoucher } from '../model/staticVoucher';
48
+
49
+ import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
50
+ import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
51
+
52
+ import { HttpError, RequestFile } from './apis';
53
+
54
+ let defaultBasePath = 'https://api.wall.et';
55
+
56
+ // ===============================================
57
+ // This file is autogenerated - Please do not edit
58
+ // ===============================================
59
+
60
+ export enum InfoGenesisReportsApiApiKeys {
61
+ api_key,
62
+ }
63
+
64
+ export class InfoGenesisReportsApi {
65
+ protected _basePath = defaultBasePath;
66
+ protected _defaultHeaders : any = {};
67
+ protected _useQuerystring : boolean = false;
68
+
69
+ protected authentications = {
70
+ 'default': <Authentication>new VoidAuth(),
71
+ 'api_key': new ApiKeyAuth('header', 'access-token'),
72
+ }
73
+
74
+ protected interceptors: Interceptor[] = [];
75
+
76
+ constructor(basePath?: string);
77
+ constructor(basePathOrUsername: string, password?: string, basePath?: string) {
78
+ if (password) {
79
+ if (basePath) {
80
+ this.basePath = basePath;
81
+ }
82
+ } else {
83
+ if (basePathOrUsername) {
84
+ this.basePath = basePathOrUsername
85
+ }
86
+ }
87
+ }
88
+
89
+ set useQuerystring(value: boolean) {
90
+ this._useQuerystring = value;
91
+ }
92
+
93
+ set basePath(basePath: string) {
94
+ this._basePath = basePath;
95
+ }
96
+
97
+ set defaultHeaders(defaultHeaders: any) {
98
+ this._defaultHeaders = defaultHeaders;
99
+ }
100
+
101
+ get defaultHeaders() {
102
+ return this._defaultHeaders;
103
+ }
104
+
105
+ get basePath() {
106
+ return this._basePath;
107
+ }
108
+
109
+ public setDefaultAuthentication(auth: Authentication) {
110
+ this.authentications.default = auth;
111
+ }
112
+
113
+ public setApiKey(key: InfoGenesisReportsApiApiKeys, value: string) {
114
+ (this.authentications as any)[InfoGenesisReportsApiApiKeys[key]].apiKey = value;
115
+ }
116
+
117
+ public addInterceptor(interceptor: Interceptor) {
118
+ this.interceptors.push(interceptor);
119
+ }
120
+
121
+ /**
122
+ *
123
+ * @summary Count redeemed ad credits
124
+ * @param inlineObject37
125
+ */
126
+ public async countAdCreditsRedemptions (inlineObject37: InlineObject37, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
127
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/adCredits/redemptions';
128
+ let localVarQueryParameters: any = {};
129
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
130
+ const produces = ['application/json'];
131
+ // give precedence to 'application/json'
132
+ if (produces.indexOf('application/json') >= 0) {
133
+ localVarHeaderParams.Accept = 'application/json';
134
+ } else {
135
+ localVarHeaderParams.Accept = produces.join(',');
136
+ }
137
+ let localVarFormParams: any = {};
138
+
139
+ // verify required parameter 'inlineObject37' is not null or undefined
140
+ if (inlineObject37 === null || inlineObject37 === undefined) {
141
+ throw new Error('Required parameter inlineObject37 was null or undefined when calling countAdCreditsRedemptions.');
142
+ }
143
+
144
+ (<any>Object).assign(localVarHeaderParams, options.headers);
145
+
146
+ let localVarUseFormData = false;
147
+
148
+ let localVarRequestOptions: localVarRequest.Options = {
149
+ method: 'POST',
150
+ qs: localVarQueryParameters,
151
+ headers: localVarHeaderParams,
152
+ uri: localVarPath,
153
+ useQuerystring: this._useQuerystring,
154
+ json: true,
155
+ body: ObjectSerializer.serialize(inlineObject37, "InlineObject37")
156
+ };
157
+
158
+ let authenticationPromise = Promise.resolve();
159
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
160
+
161
+ let interceptorPromise = authenticationPromise;
162
+ for (const interceptor of this.interceptors) {
163
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
164
+ }
165
+
166
+ return interceptorPromise.then(() => {
167
+ if (Object.keys(localVarFormParams).length) {
168
+ if (localVarUseFormData) {
169
+ (<any>localVarRequestOptions).formData = localVarFormParams;
170
+ } else {
171
+ localVarRequestOptions.form = localVarFormParams;
172
+ }
173
+ }
174
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
175
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
176
+ if (error) {
177
+ reject(error);
178
+ } else {
179
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
180
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
181
+ resolve({ response: response, body: body });
182
+ } else {
183
+ reject(new HttpError(response, body, response.statusCode));
184
+ }
185
+ }
186
+ });
187
+ });
188
+ });
189
+ }
190
+ /**
191
+ *
192
+ * @summary Count refunded ad credits
193
+ * @param inlineObject38
194
+ */
195
+ public async countAdCreditsRefunds (inlineObject38: InlineObject38, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
196
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/adCredits/refunds';
197
+ let localVarQueryParameters: any = {};
198
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
199
+ const produces = ['application/json'];
200
+ // give precedence to 'application/json'
201
+ if (produces.indexOf('application/json') >= 0) {
202
+ localVarHeaderParams.Accept = 'application/json';
203
+ } else {
204
+ localVarHeaderParams.Accept = produces.join(',');
205
+ }
206
+ let localVarFormParams: any = {};
207
+
208
+ // verify required parameter 'inlineObject38' is not null or undefined
209
+ if (inlineObject38 === null || inlineObject38 === undefined) {
210
+ throw new Error('Required parameter inlineObject38 was null or undefined when calling countAdCreditsRefunds.');
211
+ }
212
+
213
+ (<any>Object).assign(localVarHeaderParams, options.headers);
214
+
215
+ let localVarUseFormData = false;
216
+
217
+ let localVarRequestOptions: localVarRequest.Options = {
218
+ method: 'POST',
219
+ qs: localVarQueryParameters,
220
+ headers: localVarHeaderParams,
221
+ uri: localVarPath,
222
+ useQuerystring: this._useQuerystring,
223
+ json: true,
224
+ body: ObjectSerializer.serialize(inlineObject38, "InlineObject38")
225
+ };
226
+
227
+ let authenticationPromise = Promise.resolve();
228
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
229
+
230
+ let interceptorPromise = authenticationPromise;
231
+ for (const interceptor of this.interceptors) {
232
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
233
+ }
234
+
235
+ return interceptorPromise.then(() => {
236
+ if (Object.keys(localVarFormParams).length) {
237
+ if (localVarUseFormData) {
238
+ (<any>localVarRequestOptions).formData = localVarFormParams;
239
+ } else {
240
+ localVarRequestOptions.form = localVarFormParams;
241
+ }
242
+ }
243
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
244
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
245
+ if (error) {
246
+ reject(error);
247
+ } else {
248
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
249
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
250
+ resolve({ response: response, body: body });
251
+ } else {
252
+ reject(new HttpError(response, body, response.statusCode));
253
+ }
254
+ }
255
+ });
256
+ });
257
+ });
258
+ }
259
+ /**
260
+ *
261
+ * @summary Count dynamic voucher redemptions
262
+ * @param inlineObject45
263
+ */
264
+ public async countDynamicVoucherRedemptions (inlineObject45: InlineObject45, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
265
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/dynamicVoucher/redemptions';
266
+ let localVarQueryParameters: any = {};
267
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
268
+ const produces = ['application/json'];
269
+ // give precedence to 'application/json'
270
+ if (produces.indexOf('application/json') >= 0) {
271
+ localVarHeaderParams.Accept = 'application/json';
272
+ } else {
273
+ localVarHeaderParams.Accept = produces.join(',');
274
+ }
275
+ let localVarFormParams: any = {};
276
+
277
+ // verify required parameter 'inlineObject45' is not null or undefined
278
+ if (inlineObject45 === null || inlineObject45 === undefined) {
279
+ throw new Error('Required parameter inlineObject45 was null or undefined when calling countDynamicVoucherRedemptions.');
280
+ }
281
+
282
+ (<any>Object).assign(localVarHeaderParams, options.headers);
283
+
284
+ let localVarUseFormData = false;
285
+
286
+ let localVarRequestOptions: localVarRequest.Options = {
287
+ method: 'POST',
288
+ qs: localVarQueryParameters,
289
+ headers: localVarHeaderParams,
290
+ uri: localVarPath,
291
+ useQuerystring: this._useQuerystring,
292
+ json: true,
293
+ body: ObjectSerializer.serialize(inlineObject45, "InlineObject45")
294
+ };
295
+
296
+ let authenticationPromise = Promise.resolve();
297
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
298
+
299
+ let interceptorPromise = authenticationPromise;
300
+ for (const interceptor of this.interceptors) {
301
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
302
+ }
303
+
304
+ return interceptorPromise.then(() => {
305
+ if (Object.keys(localVarFormParams).length) {
306
+ if (localVarUseFormData) {
307
+ (<any>localVarRequestOptions).formData = localVarFormParams;
308
+ } else {
309
+ localVarRequestOptions.form = localVarFormParams;
310
+ }
311
+ }
312
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
313
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
314
+ if (error) {
315
+ reject(error);
316
+ } else {
317
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
318
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
319
+ resolve({ response: response, body: body });
320
+ } else {
321
+ reject(new HttpError(response, body, response.statusCode));
322
+ }
323
+ }
324
+ });
325
+ });
326
+ });
327
+ }
328
+ /**
329
+ *
330
+ * @summary Count dynamic voucher refunds
331
+ * @param inlineObject46
332
+ */
333
+ public async countDynamicVoucherRefunds (inlineObject46: InlineObject46, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
334
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/dynamicVoucher/refunds';
335
+ let localVarQueryParameters: any = {};
336
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
337
+ const produces = ['application/json'];
338
+ // give precedence to 'application/json'
339
+ if (produces.indexOf('application/json') >= 0) {
340
+ localVarHeaderParams.Accept = 'application/json';
341
+ } else {
342
+ localVarHeaderParams.Accept = produces.join(',');
343
+ }
344
+ let localVarFormParams: any = {};
345
+
346
+ // verify required parameter 'inlineObject46' is not null or undefined
347
+ if (inlineObject46 === null || inlineObject46 === undefined) {
348
+ throw new Error('Required parameter inlineObject46 was null or undefined when calling countDynamicVoucherRefunds.');
349
+ }
350
+
351
+ (<any>Object).assign(localVarHeaderParams, options.headers);
352
+
353
+ let localVarUseFormData = false;
354
+
355
+ let localVarRequestOptions: localVarRequest.Options = {
356
+ method: 'POST',
357
+ qs: localVarQueryParameters,
358
+ headers: localVarHeaderParams,
359
+ uri: localVarPath,
360
+ useQuerystring: this._useQuerystring,
361
+ json: true,
362
+ body: ObjectSerializer.serialize(inlineObject46, "InlineObject46")
363
+ };
364
+
365
+ let authenticationPromise = Promise.resolve();
366
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
367
+
368
+ let interceptorPromise = authenticationPromise;
369
+ for (const interceptor of this.interceptors) {
370
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
371
+ }
372
+
373
+ return interceptorPromise.then(() => {
374
+ if (Object.keys(localVarFormParams).length) {
375
+ if (localVarUseFormData) {
376
+ (<any>localVarRequestOptions).formData = localVarFormParams;
377
+ } else {
378
+ localVarRequestOptions.form = localVarFormParams;
379
+ }
380
+ }
381
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
382
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
383
+ if (error) {
384
+ reject(error);
385
+ } else {
386
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
387
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
388
+ resolve({ response: response, body: body });
389
+ } else {
390
+ reject(new HttpError(response, body, response.statusCode));
391
+ }
392
+ }
393
+ });
394
+ });
395
+ });
396
+ }
397
+ /**
398
+ *
399
+ * @summary Count redeemed membership points
400
+ * @param inlineObject41
401
+ */
402
+ public async countMembershipPointsRedemptions (inlineObject41: InlineObject41, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
403
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipPoints/redemptions';
404
+ let localVarQueryParameters: any = {};
405
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
406
+ const produces = ['application/json'];
407
+ // give precedence to 'application/json'
408
+ if (produces.indexOf('application/json') >= 0) {
409
+ localVarHeaderParams.Accept = 'application/json';
410
+ } else {
411
+ localVarHeaderParams.Accept = produces.join(',');
412
+ }
413
+ let localVarFormParams: any = {};
414
+
415
+ // verify required parameter 'inlineObject41' is not null or undefined
416
+ if (inlineObject41 === null || inlineObject41 === undefined) {
417
+ throw new Error('Required parameter inlineObject41 was null or undefined when calling countMembershipPointsRedemptions.');
418
+ }
419
+
420
+ (<any>Object).assign(localVarHeaderParams, options.headers);
421
+
422
+ let localVarUseFormData = false;
423
+
424
+ let localVarRequestOptions: localVarRequest.Options = {
425
+ method: 'POST',
426
+ qs: localVarQueryParameters,
427
+ headers: localVarHeaderParams,
428
+ uri: localVarPath,
429
+ useQuerystring: this._useQuerystring,
430
+ json: true,
431
+ body: ObjectSerializer.serialize(inlineObject41, "InlineObject41")
432
+ };
433
+
434
+ let authenticationPromise = Promise.resolve();
435
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
436
+
437
+ let interceptorPromise = authenticationPromise;
438
+ for (const interceptor of this.interceptors) {
439
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
440
+ }
441
+
442
+ return interceptorPromise.then(() => {
443
+ if (Object.keys(localVarFormParams).length) {
444
+ if (localVarUseFormData) {
445
+ (<any>localVarRequestOptions).formData = localVarFormParams;
446
+ } else {
447
+ localVarRequestOptions.form = localVarFormParams;
448
+ }
449
+ }
450
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
451
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
452
+ if (error) {
453
+ reject(error);
454
+ } else {
455
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
456
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
457
+ resolve({ response: response, body: body });
458
+ } else {
459
+ reject(new HttpError(response, body, response.statusCode));
460
+ }
461
+ }
462
+ });
463
+ });
464
+ });
465
+ }
466
+ /**
467
+ *
468
+ * @summary Count refunded membership points
469
+ * @param inlineObject42
470
+ */
471
+ public async countMembershipPointsRefunds (inlineObject42: InlineObject42, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
472
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipPoints/refunds';
473
+ let localVarQueryParameters: any = {};
474
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
475
+ const produces = ['application/json'];
476
+ // give precedence to 'application/json'
477
+ if (produces.indexOf('application/json') >= 0) {
478
+ localVarHeaderParams.Accept = 'application/json';
479
+ } else {
480
+ localVarHeaderParams.Accept = produces.join(',');
481
+ }
482
+ let localVarFormParams: any = {};
483
+
484
+ // verify required parameter 'inlineObject42' is not null or undefined
485
+ if (inlineObject42 === null || inlineObject42 === undefined) {
486
+ throw new Error('Required parameter inlineObject42 was null or undefined when calling countMembershipPointsRefunds.');
487
+ }
488
+
489
+ (<any>Object).assign(localVarHeaderParams, options.headers);
490
+
491
+ let localVarUseFormData = false;
492
+
493
+ let localVarRequestOptions: localVarRequest.Options = {
494
+ method: 'POST',
495
+ qs: localVarQueryParameters,
496
+ headers: localVarHeaderParams,
497
+ uri: localVarPath,
498
+ useQuerystring: this._useQuerystring,
499
+ json: true,
500
+ body: ObjectSerializer.serialize(inlineObject42, "InlineObject42")
501
+ };
502
+
503
+ let authenticationPromise = Promise.resolve();
504
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
505
+
506
+ let interceptorPromise = authenticationPromise;
507
+ for (const interceptor of this.interceptors) {
508
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
509
+ }
510
+
511
+ return interceptorPromise.then(() => {
512
+ if (Object.keys(localVarFormParams).length) {
513
+ if (localVarUseFormData) {
514
+ (<any>localVarRequestOptions).formData = localVarFormParams;
515
+ } else {
516
+ localVarRequestOptions.form = localVarFormParams;
517
+ }
518
+ }
519
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
520
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
521
+ if (error) {
522
+ reject(error);
523
+ } else {
524
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
525
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
526
+ resolve({ response: response, body: body });
527
+ } else {
528
+ reject(new HttpError(response, body, response.statusCode));
529
+ }
530
+ }
531
+ });
532
+ });
533
+ });
534
+ }
535
+ /**
536
+ *
537
+ * @summary Count tier redemptions
538
+ * @param inlineObject43
539
+ */
540
+ public async countMembershipTierRedemptions (inlineObject43: InlineObject43, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
541
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipTier/redemptions';
542
+ let localVarQueryParameters: any = {};
543
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
544
+ const produces = ['application/json'];
545
+ // give precedence to 'application/json'
546
+ if (produces.indexOf('application/json') >= 0) {
547
+ localVarHeaderParams.Accept = 'application/json';
548
+ } else {
549
+ localVarHeaderParams.Accept = produces.join(',');
550
+ }
551
+ let localVarFormParams: any = {};
552
+
553
+ // verify required parameter 'inlineObject43' is not null or undefined
554
+ if (inlineObject43 === null || inlineObject43 === undefined) {
555
+ throw new Error('Required parameter inlineObject43 was null or undefined when calling countMembershipTierRedemptions.');
556
+ }
557
+
558
+ (<any>Object).assign(localVarHeaderParams, options.headers);
559
+
560
+ let localVarUseFormData = false;
561
+
562
+ let localVarRequestOptions: localVarRequest.Options = {
563
+ method: 'POST',
564
+ qs: localVarQueryParameters,
565
+ headers: localVarHeaderParams,
566
+ uri: localVarPath,
567
+ useQuerystring: this._useQuerystring,
568
+ json: true,
569
+ body: ObjectSerializer.serialize(inlineObject43, "InlineObject43")
570
+ };
571
+
572
+ let authenticationPromise = Promise.resolve();
573
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
574
+
575
+ let interceptorPromise = authenticationPromise;
576
+ for (const interceptor of this.interceptors) {
577
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
578
+ }
579
+
580
+ return interceptorPromise.then(() => {
581
+ if (Object.keys(localVarFormParams).length) {
582
+ if (localVarUseFormData) {
583
+ (<any>localVarRequestOptions).formData = localVarFormParams;
584
+ } else {
585
+ localVarRequestOptions.form = localVarFormParams;
586
+ }
587
+ }
588
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
589
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
590
+ if (error) {
591
+ reject(error);
592
+ } else {
593
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
594
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
595
+ resolve({ response: response, body: body });
596
+ } else {
597
+ reject(new HttpError(response, body, response.statusCode));
598
+ }
599
+ }
600
+ });
601
+ });
602
+ });
603
+ }
604
+ /**
605
+ *
606
+ * @summary Count tier refunds
607
+ * @param inlineObject44
608
+ */
609
+ public async countMembershipTierRefunds (inlineObject44: InlineObject44, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
610
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/membershipTier/refunds';
611
+ let localVarQueryParameters: any = {};
612
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
613
+ const produces = ['application/json'];
614
+ // give precedence to 'application/json'
615
+ if (produces.indexOf('application/json') >= 0) {
616
+ localVarHeaderParams.Accept = 'application/json';
617
+ } else {
618
+ localVarHeaderParams.Accept = produces.join(',');
619
+ }
620
+ let localVarFormParams: any = {};
621
+
622
+ // verify required parameter 'inlineObject44' is not null or undefined
623
+ if (inlineObject44 === null || inlineObject44 === undefined) {
624
+ throw new Error('Required parameter inlineObject44 was null or undefined when calling countMembershipTierRefunds.');
625
+ }
626
+
627
+ (<any>Object).assign(localVarHeaderParams, options.headers);
628
+
629
+ let localVarUseFormData = false;
630
+
631
+ let localVarRequestOptions: localVarRequest.Options = {
632
+ method: 'POST',
633
+ qs: localVarQueryParameters,
634
+ headers: localVarHeaderParams,
635
+ uri: localVarPath,
636
+ useQuerystring: this._useQuerystring,
637
+ json: true,
638
+ body: ObjectSerializer.serialize(inlineObject44, "InlineObject44")
639
+ };
640
+
641
+ let authenticationPromise = Promise.resolve();
642
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
643
+
644
+ let interceptorPromise = authenticationPromise;
645
+ for (const interceptor of this.interceptors) {
646
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
647
+ }
648
+
649
+ return interceptorPromise.then(() => {
650
+ if (Object.keys(localVarFormParams).length) {
651
+ if (localVarUseFormData) {
652
+ (<any>localVarRequestOptions).formData = localVarFormParams;
653
+ } else {
654
+ localVarRequestOptions.form = localVarFormParams;
655
+ }
656
+ }
657
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
658
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
659
+ if (error) {
660
+ reject(error);
661
+ } else {
662
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
663
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
664
+ resolve({ response: response, body: body });
665
+ } else {
666
+ reject(new HttpError(response, body, response.statusCode));
667
+ }
668
+ }
669
+ });
670
+ });
671
+ });
672
+ }
673
+ /**
674
+ *
675
+ * @summary Count redeemed merchant credits
676
+ * @param inlineObject39
677
+ */
678
+ public async countMerchantCreditRedemptions (inlineObject39: InlineObject39, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
679
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/merchantCredit/redemptions';
680
+ let localVarQueryParameters: any = {};
681
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
682
+ const produces = ['application/json'];
683
+ // give precedence to 'application/json'
684
+ if (produces.indexOf('application/json') >= 0) {
685
+ localVarHeaderParams.Accept = 'application/json';
686
+ } else {
687
+ localVarHeaderParams.Accept = produces.join(',');
688
+ }
689
+ let localVarFormParams: any = {};
690
+
691
+ // verify required parameter 'inlineObject39' is not null or undefined
692
+ if (inlineObject39 === null || inlineObject39 === undefined) {
693
+ throw new Error('Required parameter inlineObject39 was null or undefined when calling countMerchantCreditRedemptions.');
694
+ }
695
+
696
+ (<any>Object).assign(localVarHeaderParams, options.headers);
697
+
698
+ let localVarUseFormData = false;
699
+
700
+ let localVarRequestOptions: localVarRequest.Options = {
701
+ method: 'POST',
702
+ qs: localVarQueryParameters,
703
+ headers: localVarHeaderParams,
704
+ uri: localVarPath,
705
+ useQuerystring: this._useQuerystring,
706
+ json: true,
707
+ body: ObjectSerializer.serialize(inlineObject39, "InlineObject39")
708
+ };
709
+
710
+ let authenticationPromise = Promise.resolve();
711
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
712
+
713
+ let interceptorPromise = authenticationPromise;
714
+ for (const interceptor of this.interceptors) {
715
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
716
+ }
717
+
718
+ return interceptorPromise.then(() => {
719
+ if (Object.keys(localVarFormParams).length) {
720
+ if (localVarUseFormData) {
721
+ (<any>localVarRequestOptions).formData = localVarFormParams;
722
+ } else {
723
+ localVarRequestOptions.form = localVarFormParams;
724
+ }
725
+ }
726
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
727
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
728
+ if (error) {
729
+ reject(error);
730
+ } else {
731
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
732
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
733
+ resolve({ response: response, body: body });
734
+ } else {
735
+ reject(new HttpError(response, body, response.statusCode));
736
+ }
737
+ }
738
+ });
739
+ });
740
+ });
741
+ }
742
+ /**
743
+ *
744
+ * @summary Count refunded merchant credits
745
+ * @param inlineObject40
746
+ */
747
+ public async countMerchantCreditRefunds (inlineObject40: InlineObject40, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
748
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/merchantCredit/refunds';
749
+ let localVarQueryParameters: any = {};
750
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
751
+ const produces = ['application/json'];
752
+ // give precedence to 'application/json'
753
+ if (produces.indexOf('application/json') >= 0) {
754
+ localVarHeaderParams.Accept = 'application/json';
755
+ } else {
756
+ localVarHeaderParams.Accept = produces.join(',');
757
+ }
758
+ let localVarFormParams: any = {};
759
+
760
+ // verify required parameter 'inlineObject40' is not null or undefined
761
+ if (inlineObject40 === null || inlineObject40 === undefined) {
762
+ throw new Error('Required parameter inlineObject40 was null or undefined when calling countMerchantCreditRefunds.');
763
+ }
764
+
765
+ (<any>Object).assign(localVarHeaderParams, options.headers);
766
+
767
+ let localVarUseFormData = false;
768
+
769
+ let localVarRequestOptions: localVarRequest.Options = {
770
+ method: 'POST',
771
+ qs: localVarQueryParameters,
772
+ headers: localVarHeaderParams,
773
+ uri: localVarPath,
774
+ useQuerystring: this._useQuerystring,
775
+ json: true,
776
+ body: ObjectSerializer.serialize(inlineObject40, "InlineObject40")
777
+ };
778
+
779
+ let authenticationPromise = Promise.resolve();
780
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
781
+
782
+ let interceptorPromise = authenticationPromise;
783
+ for (const interceptor of this.interceptors) {
784
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
785
+ }
786
+
787
+ return interceptorPromise.then(() => {
788
+ if (Object.keys(localVarFormParams).length) {
789
+ if (localVarUseFormData) {
790
+ (<any>localVarRequestOptions).formData = localVarFormParams;
791
+ } else {
792
+ localVarRequestOptions.form = localVarFormParams;
793
+ }
794
+ }
795
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
796
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
797
+ if (error) {
798
+ reject(error);
799
+ } else {
800
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
801
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
802
+ resolve({ response: response, body: body });
803
+ } else {
804
+ reject(new HttpError(response, body, response.statusCode));
805
+ }
806
+ }
807
+ });
808
+ });
809
+ });
810
+ }
811
+ /**
812
+ *
813
+ * @summary Count static voucher redemptions
814
+ * @param inlineObject47
815
+ */
816
+ public async countStaticVoucherRedemptions (inlineObject47: InlineObject47, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
817
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/staticVoucher/redemptions';
818
+ let localVarQueryParameters: any = {};
819
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
820
+ const produces = ['application/json'];
821
+ // give precedence to 'application/json'
822
+ if (produces.indexOf('application/json') >= 0) {
823
+ localVarHeaderParams.Accept = 'application/json';
824
+ } else {
825
+ localVarHeaderParams.Accept = produces.join(',');
826
+ }
827
+ let localVarFormParams: any = {};
828
+
829
+ // verify required parameter 'inlineObject47' is not null or undefined
830
+ if (inlineObject47 === null || inlineObject47 === undefined) {
831
+ throw new Error('Required parameter inlineObject47 was null or undefined when calling countStaticVoucherRedemptions.');
832
+ }
833
+
834
+ (<any>Object).assign(localVarHeaderParams, options.headers);
835
+
836
+ let localVarUseFormData = false;
837
+
838
+ let localVarRequestOptions: localVarRequest.Options = {
839
+ method: 'POST',
840
+ qs: localVarQueryParameters,
841
+ headers: localVarHeaderParams,
842
+ uri: localVarPath,
843
+ useQuerystring: this._useQuerystring,
844
+ json: true,
845
+ body: ObjectSerializer.serialize(inlineObject47, "InlineObject47")
846
+ };
847
+
848
+ let authenticationPromise = Promise.resolve();
849
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
850
+
851
+ let interceptorPromise = authenticationPromise;
852
+ for (const interceptor of this.interceptors) {
853
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
854
+ }
855
+
856
+ return interceptorPromise.then(() => {
857
+ if (Object.keys(localVarFormParams).length) {
858
+ if (localVarUseFormData) {
859
+ (<any>localVarRequestOptions).formData = localVarFormParams;
860
+ } else {
861
+ localVarRequestOptions.form = localVarFormParams;
862
+ }
863
+ }
864
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
865
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
866
+ if (error) {
867
+ reject(error);
868
+ } else {
869
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
870
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
871
+ resolve({ response: response, body: body });
872
+ } else {
873
+ reject(new HttpError(response, body, response.statusCode));
874
+ }
875
+ }
876
+ });
877
+ });
878
+ });
879
+ }
880
+ /**
881
+ *
882
+ * @summary Count static voucher refunds
883
+ * @param inlineObject48
884
+ */
885
+ public async countStaticVoucherRefunds (inlineObject48: InlineObject48, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
886
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/count/staticVoucher/refunds';
887
+ let localVarQueryParameters: any = {};
888
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
889
+ const produces = ['application/json'];
890
+ // give precedence to 'application/json'
891
+ if (produces.indexOf('application/json') >= 0) {
892
+ localVarHeaderParams.Accept = 'application/json';
893
+ } else {
894
+ localVarHeaderParams.Accept = produces.join(',');
895
+ }
896
+ let localVarFormParams: any = {};
897
+
898
+ // verify required parameter 'inlineObject48' is not null or undefined
899
+ if (inlineObject48 === null || inlineObject48 === undefined) {
900
+ throw new Error('Required parameter inlineObject48 was null or undefined when calling countStaticVoucherRefunds.');
901
+ }
902
+
903
+ (<any>Object).assign(localVarHeaderParams, options.headers);
904
+
905
+ let localVarUseFormData = false;
906
+
907
+ let localVarRequestOptions: localVarRequest.Options = {
908
+ method: 'POST',
909
+ qs: localVarQueryParameters,
910
+ headers: localVarHeaderParams,
911
+ uri: localVarPath,
912
+ useQuerystring: this._useQuerystring,
913
+ json: true,
914
+ body: ObjectSerializer.serialize(inlineObject48, "InlineObject48")
915
+ };
916
+
917
+ let authenticationPromise = Promise.resolve();
918
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
919
+
920
+ let interceptorPromise = authenticationPromise;
921
+ for (const interceptor of this.interceptors) {
922
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
923
+ }
924
+
925
+ return interceptorPromise.then(() => {
926
+ if (Object.keys(localVarFormParams).length) {
927
+ if (localVarUseFormData) {
928
+ (<any>localVarRequestOptions).formData = localVarFormParams;
929
+ } else {
930
+ localVarRequestOptions.form = localVarFormParams;
931
+ }
932
+ }
933
+ return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
934
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
935
+ if (error) {
936
+ reject(error);
937
+ } else {
938
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
939
+ body = ObjectSerializer.deserialize(body, "InlineResponse2003");
940
+ resolve({ response: response, body: body });
941
+ } else {
942
+ reject(new HttpError(response, body, response.statusCode));
943
+ }
944
+ }
945
+ });
946
+ });
947
+ });
948
+ }
949
+ /**
950
+ *
951
+ * @summary Fetch InfoGenesis authorizations
952
+ * @param inlineObject35
953
+ */
954
+ public async fetchInfoGenesisAuthorizations (inlineObject35: InlineObject35, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
955
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/authorizations';
956
+ let localVarQueryParameters: any = {};
957
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
958
+ const produces = ['application/json'];
959
+ // give precedence to 'application/json'
960
+ if (produces.indexOf('application/json') >= 0) {
961
+ localVarHeaderParams.Accept = 'application/json';
962
+ } else {
963
+ localVarHeaderParams.Accept = produces.join(',');
964
+ }
965
+ let localVarFormParams: any = {};
966
+
967
+ // verify required parameter 'inlineObject35' is not null or undefined
968
+ if (inlineObject35 === null || inlineObject35 === undefined) {
969
+ throw new Error('Required parameter inlineObject35 was null or undefined when calling fetchInfoGenesisAuthorizations.');
970
+ }
971
+
972
+ (<any>Object).assign(localVarHeaderParams, options.headers);
973
+
974
+ let localVarUseFormData = false;
975
+
976
+ let localVarRequestOptions: localVarRequest.Options = {
977
+ method: 'POST',
978
+ qs: localVarQueryParameters,
979
+ headers: localVarHeaderParams,
980
+ uri: localVarPath,
981
+ useQuerystring: this._useQuerystring,
982
+ json: true,
983
+ body: ObjectSerializer.serialize(inlineObject35, "InlineObject35")
984
+ };
985
+
986
+ let authenticationPromise = Promise.resolve();
987
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
988
+
989
+ let interceptorPromise = authenticationPromise;
990
+ for (const interceptor of this.interceptors) {
991
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
992
+ }
993
+
994
+ return interceptorPromise.then(() => {
995
+ if (Object.keys(localVarFormParams).length) {
996
+ if (localVarUseFormData) {
997
+ (<any>localVarRequestOptions).formData = localVarFormParams;
998
+ } else {
999
+ localVarRequestOptions.form = localVarFormParams;
1000
+ }
1001
+ }
1002
+ return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1003
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1004
+ if (error) {
1005
+ reject(error);
1006
+ } else {
1007
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1008
+ body = ObjectSerializer.deserialize(body, "Array<Request>");
1009
+ resolve({ response: response, body: body });
1010
+ } else {
1011
+ reject(new HttpError(response, body, response.statusCode));
1012
+ }
1013
+ }
1014
+ });
1015
+ });
1016
+ });
1017
+ }
1018
+ /**
1019
+ *
1020
+ * @summary Fetch campaign information
1021
+ * @param inlineObject36
1022
+ */
1023
+ public async fetchInfoGenesisCampaignData (inlineObject36: InlineObject36, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
1024
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/campaign';
1025
+ let localVarQueryParameters: any = {};
1026
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1027
+ const produces = ['application/json'];
1028
+ // give precedence to 'application/json'
1029
+ if (produces.indexOf('application/json') >= 0) {
1030
+ localVarHeaderParams.Accept = 'application/json';
1031
+ } else {
1032
+ localVarHeaderParams.Accept = produces.join(',');
1033
+ }
1034
+ let localVarFormParams: any = {};
1035
+
1036
+ // verify required parameter 'inlineObject36' is not null or undefined
1037
+ if (inlineObject36 === null || inlineObject36 === undefined) {
1038
+ throw new Error('Required parameter inlineObject36 was null or undefined when calling fetchInfoGenesisCampaignData.');
1039
+ }
1040
+
1041
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1042
+
1043
+ let localVarUseFormData = false;
1044
+
1045
+ let localVarRequestOptions: localVarRequest.Options = {
1046
+ method: 'POST',
1047
+ qs: localVarQueryParameters,
1048
+ headers: localVarHeaderParams,
1049
+ uri: localVarPath,
1050
+ useQuerystring: this._useQuerystring,
1051
+ json: true,
1052
+ body: ObjectSerializer.serialize(inlineObject36, "InlineObject36")
1053
+ };
1054
+
1055
+ let authenticationPromise = Promise.resolve();
1056
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1057
+
1058
+ let interceptorPromise = authenticationPromise;
1059
+ for (const interceptor of this.interceptors) {
1060
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1061
+ }
1062
+
1063
+ return interceptorPromise.then(() => {
1064
+ if (Object.keys(localVarFormParams).length) {
1065
+ if (localVarUseFormData) {
1066
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1067
+ } else {
1068
+ localVarRequestOptions.form = localVarFormParams;
1069
+ }
1070
+ }
1071
+ return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
1072
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1073
+ if (error) {
1074
+ reject(error);
1075
+ } else {
1076
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1077
+ body = ObjectSerializer.deserialize(body, "boolean");
1078
+ resolve({ response: response, body: body });
1079
+ } else {
1080
+ reject(new HttpError(response, body, response.statusCode));
1081
+ }
1082
+ }
1083
+ });
1084
+ });
1085
+ });
1086
+ }
1087
+ /**
1088
+ *
1089
+ * @summary Fetch InfoGenesis lookup requests
1090
+ * @param inlineObject28
1091
+ */
1092
+ public async fetchInfoGenesisLookupRequests (inlineObject28: InlineObject28, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1093
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/requests/lookup';
1094
+ let localVarQueryParameters: any = {};
1095
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1096
+ const produces = ['application/json'];
1097
+ // give precedence to 'application/json'
1098
+ if (produces.indexOf('application/json') >= 0) {
1099
+ localVarHeaderParams.Accept = 'application/json';
1100
+ } else {
1101
+ localVarHeaderParams.Accept = produces.join(',');
1102
+ }
1103
+ let localVarFormParams: any = {};
1104
+
1105
+ // verify required parameter 'inlineObject28' is not null or undefined
1106
+ if (inlineObject28 === null || inlineObject28 === undefined) {
1107
+ throw new Error('Required parameter inlineObject28 was null or undefined when calling fetchInfoGenesisLookupRequests.');
1108
+ }
1109
+
1110
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1111
+
1112
+ let localVarUseFormData = false;
1113
+
1114
+ let localVarRequestOptions: localVarRequest.Options = {
1115
+ method: 'POST',
1116
+ qs: localVarQueryParameters,
1117
+ headers: localVarHeaderParams,
1118
+ uri: localVarPath,
1119
+ useQuerystring: this._useQuerystring,
1120
+ json: true,
1121
+ body: ObjectSerializer.serialize(inlineObject28, "InlineObject28")
1122
+ };
1123
+
1124
+ let authenticationPromise = Promise.resolve();
1125
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1126
+
1127
+ let interceptorPromise = authenticationPromise;
1128
+ for (const interceptor of this.interceptors) {
1129
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1130
+ }
1131
+
1132
+ return interceptorPromise.then(() => {
1133
+ if (Object.keys(localVarFormParams).length) {
1134
+ if (localVarUseFormData) {
1135
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1136
+ } else {
1137
+ localVarRequestOptions.form = localVarFormParams;
1138
+ }
1139
+ }
1140
+ return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1141
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1142
+ if (error) {
1143
+ reject(error);
1144
+ } else {
1145
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1146
+ body = ObjectSerializer.deserialize(body, "Array<Request>");
1147
+ resolve({ response: response, body: body });
1148
+ } else {
1149
+ reject(new HttpError(response, body, response.statusCode));
1150
+ }
1151
+ }
1152
+ });
1153
+ });
1154
+ });
1155
+ }
1156
+ /**
1157
+ *
1158
+ * @summary Fetch InfoGenesis lookup request errors
1159
+ * @param inlineObject29
1160
+ */
1161
+ public async fetchInfoGenesisLookupRequestsErrors (inlineObject29: InlineObject29, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1162
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/requests/lookup/errors';
1163
+ let localVarQueryParameters: any = {};
1164
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1165
+ const produces = ['application/json'];
1166
+ // give precedence to 'application/json'
1167
+ if (produces.indexOf('application/json') >= 0) {
1168
+ localVarHeaderParams.Accept = 'application/json';
1169
+ } else {
1170
+ localVarHeaderParams.Accept = produces.join(',');
1171
+ }
1172
+ let localVarFormParams: any = {};
1173
+
1174
+ // verify required parameter 'inlineObject29' is not null or undefined
1175
+ if (inlineObject29 === null || inlineObject29 === undefined) {
1176
+ throw new Error('Required parameter inlineObject29 was null or undefined when calling fetchInfoGenesisLookupRequestsErrors.');
1177
+ }
1178
+
1179
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1180
+
1181
+ let localVarUseFormData = false;
1182
+
1183
+ let localVarRequestOptions: localVarRequest.Options = {
1184
+ method: 'POST',
1185
+ qs: localVarQueryParameters,
1186
+ headers: localVarHeaderParams,
1187
+ uri: localVarPath,
1188
+ useQuerystring: this._useQuerystring,
1189
+ json: true,
1190
+ body: ObjectSerializer.serialize(inlineObject29, "InlineObject29")
1191
+ };
1192
+
1193
+ let authenticationPromise = Promise.resolve();
1194
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1195
+
1196
+ let interceptorPromise = authenticationPromise;
1197
+ for (const interceptor of this.interceptors) {
1198
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1199
+ }
1200
+
1201
+ return interceptorPromise.then(() => {
1202
+ if (Object.keys(localVarFormParams).length) {
1203
+ if (localVarUseFormData) {
1204
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1205
+ } else {
1206
+ localVarRequestOptions.form = localVarFormParams;
1207
+ }
1208
+ }
1209
+ return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1210
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1211
+ if (error) {
1212
+ reject(error);
1213
+ } else {
1214
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1215
+ body = ObjectSerializer.deserialize(body, "Array<Request>");
1216
+ resolve({ response: response, body: body });
1217
+ } else {
1218
+ reject(new HttpError(response, body, response.statusCode));
1219
+ }
1220
+ }
1221
+ });
1222
+ });
1223
+ });
1224
+ }
1225
+ /**
1226
+ *
1227
+ * @summary Fetch redeemed static vouchers
1228
+ * @param inlineObject32
1229
+ */
1230
+ public async fetchInfoGenesisRedeemedStaticVouchers (inlineObject32: InlineObject32, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }> {
1231
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/staticVouchers/redeemed';
1232
+ let localVarQueryParameters: any = {};
1233
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1234
+ const produces = ['application/json'];
1235
+ // give precedence to 'application/json'
1236
+ if (produces.indexOf('application/json') >= 0) {
1237
+ localVarHeaderParams.Accept = 'application/json';
1238
+ } else {
1239
+ localVarHeaderParams.Accept = produces.join(',');
1240
+ }
1241
+ let localVarFormParams: any = {};
1242
+
1243
+ // verify required parameter 'inlineObject32' is not null or undefined
1244
+ if (inlineObject32 === null || inlineObject32 === undefined) {
1245
+ throw new Error('Required parameter inlineObject32 was null or undefined when calling fetchInfoGenesisRedeemedStaticVouchers.');
1246
+ }
1247
+
1248
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1249
+
1250
+ let localVarUseFormData = false;
1251
+
1252
+ let localVarRequestOptions: localVarRequest.Options = {
1253
+ method: 'POST',
1254
+ qs: localVarQueryParameters,
1255
+ headers: localVarHeaderParams,
1256
+ uri: localVarPath,
1257
+ useQuerystring: this._useQuerystring,
1258
+ json: true,
1259
+ body: ObjectSerializer.serialize(inlineObject32, "InlineObject32")
1260
+ };
1261
+
1262
+ let authenticationPromise = Promise.resolve();
1263
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1264
+
1265
+ let interceptorPromise = authenticationPromise;
1266
+ for (const interceptor of this.interceptors) {
1267
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1268
+ }
1269
+
1270
+ return interceptorPromise.then(() => {
1271
+ if (Object.keys(localVarFormParams).length) {
1272
+ if (localVarUseFormData) {
1273
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1274
+ } else {
1275
+ localVarRequestOptions.form = localVarFormParams;
1276
+ }
1277
+ }
1278
+ return new Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }>((resolve, reject) => {
1279
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1280
+ if (error) {
1281
+ reject(error);
1282
+ } else {
1283
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1284
+ body = ObjectSerializer.deserialize(body, "Array<StaticVoucher>");
1285
+ resolve({ response: response, body: body });
1286
+ } else {
1287
+ reject(new HttpError(response, body, response.statusCode));
1288
+ }
1289
+ }
1290
+ });
1291
+ });
1292
+ });
1293
+ }
1294
+ /**
1295
+ *
1296
+ * @summary Fetch redeemed InfoGenesis unique posting IDs
1297
+ * @param startDateTime
1298
+ * @param endDateTime
1299
+ */
1300
+ public async fetchInfoGenesisRedeemedUniquePostingIDs (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
1301
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/postingIDs/redeemed';
1302
+ let localVarQueryParameters: any = {};
1303
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1304
+ const produces = ['application/json'];
1305
+ // give precedence to 'application/json'
1306
+ if (produces.indexOf('application/json') >= 0) {
1307
+ localVarHeaderParams.Accept = 'application/json';
1308
+ } else {
1309
+ localVarHeaderParams.Accept = produces.join(',');
1310
+ }
1311
+ let localVarFormParams: any = {};
1312
+
1313
+ // verify required parameter 'startDateTime' is not null or undefined
1314
+ if (startDateTime === null || startDateTime === undefined) {
1315
+ throw new Error('Required parameter startDateTime was null or undefined when calling fetchInfoGenesisRedeemedUniquePostingIDs.');
1316
+ }
1317
+
1318
+ // verify required parameter 'endDateTime' is not null or undefined
1319
+ if (endDateTime === null || endDateTime === undefined) {
1320
+ throw new Error('Required parameter endDateTime was null or undefined when calling fetchInfoGenesisRedeemedUniquePostingIDs.');
1321
+ }
1322
+
1323
+ if (startDateTime !== undefined) {
1324
+ localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
1325
+ }
1326
+
1327
+ if (endDateTime !== undefined) {
1328
+ localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
1329
+ }
1330
+
1331
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1332
+
1333
+ let localVarUseFormData = false;
1334
+
1335
+ let localVarRequestOptions: localVarRequest.Options = {
1336
+ method: 'GET',
1337
+ qs: localVarQueryParameters,
1338
+ headers: localVarHeaderParams,
1339
+ uri: localVarPath,
1340
+ useQuerystring: this._useQuerystring,
1341
+ json: true,
1342
+ };
1343
+
1344
+ let authenticationPromise = Promise.resolve();
1345
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1346
+
1347
+ let interceptorPromise = authenticationPromise;
1348
+ for (const interceptor of this.interceptors) {
1349
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1350
+ }
1351
+
1352
+ return interceptorPromise.then(() => {
1353
+ if (Object.keys(localVarFormParams).length) {
1354
+ if (localVarUseFormData) {
1355
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1356
+ } else {
1357
+ localVarRequestOptions.form = localVarFormParams;
1358
+ }
1359
+ }
1360
+ return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
1361
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1362
+ if (error) {
1363
+ reject(error);
1364
+ } else {
1365
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1366
+ body = ObjectSerializer.deserialize(body, "Array<any>");
1367
+ resolve({ response: response, body: body });
1368
+ } else {
1369
+ reject(new HttpError(response, body, response.statusCode));
1370
+ }
1371
+ }
1372
+ });
1373
+ });
1374
+ });
1375
+ }
1376
+ /**
1377
+ *
1378
+ * @summary Fetch InfoGenesis redemptions
1379
+ * @param inlineObject30
1380
+ */
1381
+ public async fetchInfoGenesisRedemptions (inlineObject30: InlineObject30, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1382
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/redemptions';
1383
+ let localVarQueryParameters: any = {};
1384
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1385
+ const produces = ['application/json'];
1386
+ // give precedence to 'application/json'
1387
+ if (produces.indexOf('application/json') >= 0) {
1388
+ localVarHeaderParams.Accept = 'application/json';
1389
+ } else {
1390
+ localVarHeaderParams.Accept = produces.join(',');
1391
+ }
1392
+ let localVarFormParams: any = {};
1393
+
1394
+ // verify required parameter 'inlineObject30' is not null or undefined
1395
+ if (inlineObject30 === null || inlineObject30 === undefined) {
1396
+ throw new Error('Required parameter inlineObject30 was null or undefined when calling fetchInfoGenesisRedemptions.');
1397
+ }
1398
+
1399
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1400
+
1401
+ let localVarUseFormData = false;
1402
+
1403
+ let localVarRequestOptions: localVarRequest.Options = {
1404
+ method: 'POST',
1405
+ qs: localVarQueryParameters,
1406
+ headers: localVarHeaderParams,
1407
+ uri: localVarPath,
1408
+ useQuerystring: this._useQuerystring,
1409
+ json: true,
1410
+ body: ObjectSerializer.serialize(inlineObject30, "InlineObject30")
1411
+ };
1412
+
1413
+ let authenticationPromise = Promise.resolve();
1414
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1415
+
1416
+ let interceptorPromise = authenticationPromise;
1417
+ for (const interceptor of this.interceptors) {
1418
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1419
+ }
1420
+
1421
+ return interceptorPromise.then(() => {
1422
+ if (Object.keys(localVarFormParams).length) {
1423
+ if (localVarUseFormData) {
1424
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1425
+ } else {
1426
+ localVarRequestOptions.form = localVarFormParams;
1427
+ }
1428
+ }
1429
+ return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1430
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1431
+ if (error) {
1432
+ reject(error);
1433
+ } else {
1434
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1435
+ body = ObjectSerializer.deserialize(body, "Array<Request>");
1436
+ resolve({ response: response, body: body });
1437
+ } else {
1438
+ reject(new HttpError(response, body, response.statusCode));
1439
+ }
1440
+ }
1441
+ });
1442
+ });
1443
+ });
1444
+ }
1445
+ /**
1446
+ *
1447
+ * @summary Fetch refunded InfoGenesis unique posting IDs
1448
+ * @param startDateTime
1449
+ * @param endDateTime
1450
+ */
1451
+ public async fetchInfoGenesisRefundedRoutingIDs (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
1452
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/routingIDs/refunded';
1453
+ let localVarQueryParameters: any = {};
1454
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1455
+ const produces = ['application/json'];
1456
+ // give precedence to 'application/json'
1457
+ if (produces.indexOf('application/json') >= 0) {
1458
+ localVarHeaderParams.Accept = 'application/json';
1459
+ } else {
1460
+ localVarHeaderParams.Accept = produces.join(',');
1461
+ }
1462
+ let localVarFormParams: any = {};
1463
+
1464
+ // verify required parameter 'startDateTime' is not null or undefined
1465
+ if (startDateTime === null || startDateTime === undefined) {
1466
+ throw new Error('Required parameter startDateTime was null or undefined when calling fetchInfoGenesisRefundedRoutingIDs.');
1467
+ }
1468
+
1469
+ // verify required parameter 'endDateTime' is not null or undefined
1470
+ if (endDateTime === null || endDateTime === undefined) {
1471
+ throw new Error('Required parameter endDateTime was null or undefined when calling fetchInfoGenesisRefundedRoutingIDs.');
1472
+ }
1473
+
1474
+ if (startDateTime !== undefined) {
1475
+ localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
1476
+ }
1477
+
1478
+ if (endDateTime !== undefined) {
1479
+ localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
1480
+ }
1481
+
1482
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1483
+
1484
+ let localVarUseFormData = false;
1485
+
1486
+ let localVarRequestOptions: localVarRequest.Options = {
1487
+ method: 'POST',
1488
+ qs: localVarQueryParameters,
1489
+ headers: localVarHeaderParams,
1490
+ uri: localVarPath,
1491
+ useQuerystring: this._useQuerystring,
1492
+ json: true,
1493
+ };
1494
+
1495
+ let authenticationPromise = Promise.resolve();
1496
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1497
+
1498
+ let interceptorPromise = authenticationPromise;
1499
+ for (const interceptor of this.interceptors) {
1500
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1501
+ }
1502
+
1503
+ return interceptorPromise.then(() => {
1504
+ if (Object.keys(localVarFormParams).length) {
1505
+ if (localVarUseFormData) {
1506
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1507
+ } else {
1508
+ localVarRequestOptions.form = localVarFormParams;
1509
+ }
1510
+ }
1511
+ return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
1512
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1513
+ if (error) {
1514
+ reject(error);
1515
+ } else {
1516
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1517
+ body = ObjectSerializer.deserialize(body, "Array<any>");
1518
+ resolve({ response: response, body: body });
1519
+ } else {
1520
+ reject(new HttpError(response, body, response.statusCode));
1521
+ }
1522
+ }
1523
+ });
1524
+ });
1525
+ });
1526
+ }
1527
+ /**
1528
+ *
1529
+ * @summary Fetch refunded static vouchers
1530
+ * @param inlineObject33
1531
+ */
1532
+ public async fetchInfoGenesisRefundedStaticVouchers (inlineObject33: InlineObject33, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }> {
1533
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/staticVouchers/refunded';
1534
+ let localVarQueryParameters: any = {};
1535
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1536
+ const produces = ['application/json'];
1537
+ // give precedence to 'application/json'
1538
+ if (produces.indexOf('application/json') >= 0) {
1539
+ localVarHeaderParams.Accept = 'application/json';
1540
+ } else {
1541
+ localVarHeaderParams.Accept = produces.join(',');
1542
+ }
1543
+ let localVarFormParams: any = {};
1544
+
1545
+ // verify required parameter 'inlineObject33' is not null or undefined
1546
+ if (inlineObject33 === null || inlineObject33 === undefined) {
1547
+ throw new Error('Required parameter inlineObject33 was null or undefined when calling fetchInfoGenesisRefundedStaticVouchers.');
1548
+ }
1549
+
1550
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1551
+
1552
+ let localVarUseFormData = false;
1553
+
1554
+ let localVarRequestOptions: localVarRequest.Options = {
1555
+ method: 'POST',
1556
+ qs: localVarQueryParameters,
1557
+ headers: localVarHeaderParams,
1558
+ uri: localVarPath,
1559
+ useQuerystring: this._useQuerystring,
1560
+ json: true,
1561
+ body: ObjectSerializer.serialize(inlineObject33, "InlineObject33")
1562
+ };
1563
+
1564
+ let authenticationPromise = Promise.resolve();
1565
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1566
+
1567
+ let interceptorPromise = authenticationPromise;
1568
+ for (const interceptor of this.interceptors) {
1569
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1570
+ }
1571
+
1572
+ return interceptorPromise.then(() => {
1573
+ if (Object.keys(localVarFormParams).length) {
1574
+ if (localVarUseFormData) {
1575
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1576
+ } else {
1577
+ localVarRequestOptions.form = localVarFormParams;
1578
+ }
1579
+ }
1580
+ return new Promise<{ response: http.IncomingMessage; body: Array<StaticVoucher>; }>((resolve, reject) => {
1581
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1582
+ if (error) {
1583
+ reject(error);
1584
+ } else {
1585
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1586
+ body = ObjectSerializer.deserialize(body, "Array<StaticVoucher>");
1587
+ resolve({ response: response, body: body });
1588
+ } else {
1589
+ reject(new HttpError(response, body, response.statusCode));
1590
+ }
1591
+ }
1592
+ });
1593
+ });
1594
+ });
1595
+ }
1596
+ /**
1597
+ *
1598
+ * @summary Fetch InfoGenesis refunds
1599
+ * @param inlineObject34
1600
+ */
1601
+ public async fetchInfoGenesisRefunds (inlineObject34: InlineObject34, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1602
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/refunds';
1603
+ let localVarQueryParameters: any = {};
1604
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1605
+ const produces = ['application/json'];
1606
+ // give precedence to 'application/json'
1607
+ if (produces.indexOf('application/json') >= 0) {
1608
+ localVarHeaderParams.Accept = 'application/json';
1609
+ } else {
1610
+ localVarHeaderParams.Accept = produces.join(',');
1611
+ }
1612
+ let localVarFormParams: any = {};
1613
+
1614
+ // verify required parameter 'inlineObject34' is not null or undefined
1615
+ if (inlineObject34 === null || inlineObject34 === undefined) {
1616
+ throw new Error('Required parameter inlineObject34 was null or undefined when calling fetchInfoGenesisRefunds.');
1617
+ }
1618
+
1619
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1620
+
1621
+ let localVarUseFormData = false;
1622
+
1623
+ let localVarRequestOptions: localVarRequest.Options = {
1624
+ method: 'POST',
1625
+ qs: localVarQueryParameters,
1626
+ headers: localVarHeaderParams,
1627
+ uri: localVarPath,
1628
+ useQuerystring: this._useQuerystring,
1629
+ json: true,
1630
+ body: ObjectSerializer.serialize(inlineObject34, "InlineObject34")
1631
+ };
1632
+
1633
+ let authenticationPromise = Promise.resolve();
1634
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1635
+
1636
+ let interceptorPromise = authenticationPromise;
1637
+ for (const interceptor of this.interceptors) {
1638
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1639
+ }
1640
+
1641
+ return interceptorPromise.then(() => {
1642
+ if (Object.keys(localVarFormParams).length) {
1643
+ if (localVarUseFormData) {
1644
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1645
+ } else {
1646
+ localVarRequestOptions.form = localVarFormParams;
1647
+ }
1648
+ }
1649
+ return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1650
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1651
+ if (error) {
1652
+ reject(error);
1653
+ } else {
1654
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1655
+ body = ObjectSerializer.deserialize(body, "Array<Request>");
1656
+ resolve({ response: response, body: body });
1657
+ } else {
1658
+ reject(new HttpError(response, body, response.statusCode));
1659
+ }
1660
+ }
1661
+ });
1662
+ });
1663
+ });
1664
+ }
1665
+ /**
1666
+ *
1667
+ * @summary Fetch InfoGenesis request with transaction ID
1668
+ * @param transactionID
1669
+ */
1670
+ public async fetchInfoGenesisRequest (transactionID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Request; }> {
1671
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/request/{transactionID}'
1672
+ .replace('{' + 'transactionID' + '}', encodeURIComponent(String(transactionID)));
1673
+ let localVarQueryParameters: any = {};
1674
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1675
+ const produces = ['application/json'];
1676
+ // give precedence to 'application/json'
1677
+ if (produces.indexOf('application/json') >= 0) {
1678
+ localVarHeaderParams.Accept = 'application/json';
1679
+ } else {
1680
+ localVarHeaderParams.Accept = produces.join(',');
1681
+ }
1682
+ let localVarFormParams: any = {};
1683
+
1684
+ // verify required parameter 'transactionID' is not null or undefined
1685
+ if (transactionID === null || transactionID === undefined) {
1686
+ throw new Error('Required parameter transactionID was null or undefined when calling fetchInfoGenesisRequest.');
1687
+ }
1688
+
1689
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1690
+
1691
+ let localVarUseFormData = false;
1692
+
1693
+ let localVarRequestOptions: localVarRequest.Options = {
1694
+ method: 'GET',
1695
+ qs: localVarQueryParameters,
1696
+ headers: localVarHeaderParams,
1697
+ uri: localVarPath,
1698
+ useQuerystring: this._useQuerystring,
1699
+ json: true,
1700
+ };
1701
+
1702
+ let authenticationPromise = Promise.resolve();
1703
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1704
+
1705
+ let interceptorPromise = authenticationPromise;
1706
+ for (const interceptor of this.interceptors) {
1707
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1708
+ }
1709
+
1710
+ return interceptorPromise.then(() => {
1711
+ if (Object.keys(localVarFormParams).length) {
1712
+ if (localVarUseFormData) {
1713
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1714
+ } else {
1715
+ localVarRequestOptions.form = localVarFormParams;
1716
+ }
1717
+ }
1718
+ return new Promise<{ response: http.IncomingMessage; body: Request; }>((resolve, reject) => {
1719
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1720
+ if (error) {
1721
+ reject(error);
1722
+ } else {
1723
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1724
+ body = ObjectSerializer.deserialize(body, "Request");
1725
+ resolve({ response: response, body: body });
1726
+ } else {
1727
+ reject(new HttpError(response, body, response.statusCode));
1728
+ }
1729
+ }
1730
+ });
1731
+ });
1732
+ });
1733
+ }
1734
+ /**
1735
+ *
1736
+ * @summary Fetch InfoGenesis requests with routing IDs
1737
+ * @param inlineObject26
1738
+ */
1739
+ public async fetchInfoGenesisRequests (inlineObject26: InlineObject26, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1740
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/requests';
1741
+ let localVarQueryParameters: any = {};
1742
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1743
+ const produces = ['application/json'];
1744
+ // give precedence to 'application/json'
1745
+ if (produces.indexOf('application/json') >= 0) {
1746
+ localVarHeaderParams.Accept = 'application/json';
1747
+ } else {
1748
+ localVarHeaderParams.Accept = produces.join(',');
1749
+ }
1750
+ let localVarFormParams: any = {};
1751
+
1752
+ // verify required parameter 'inlineObject26' is not null or undefined
1753
+ if (inlineObject26 === null || inlineObject26 === undefined) {
1754
+ throw new Error('Required parameter inlineObject26 was null or undefined when calling fetchInfoGenesisRequests.');
1755
+ }
1756
+
1757
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1758
+
1759
+ let localVarUseFormData = false;
1760
+
1761
+ let localVarRequestOptions: localVarRequest.Options = {
1762
+ method: 'POST',
1763
+ qs: localVarQueryParameters,
1764
+ headers: localVarHeaderParams,
1765
+ uri: localVarPath,
1766
+ useQuerystring: this._useQuerystring,
1767
+ json: true,
1768
+ body: ObjectSerializer.serialize(inlineObject26, "InlineObject26")
1769
+ };
1770
+
1771
+ let authenticationPromise = Promise.resolve();
1772
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1773
+
1774
+ let interceptorPromise = authenticationPromise;
1775
+ for (const interceptor of this.interceptors) {
1776
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1777
+ }
1778
+
1779
+ return interceptorPromise.then(() => {
1780
+ if (Object.keys(localVarFormParams).length) {
1781
+ if (localVarUseFormData) {
1782
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1783
+ } else {
1784
+ localVarRequestOptions.form = localVarFormParams;
1785
+ }
1786
+ }
1787
+ return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
1788
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1789
+ if (error) {
1790
+ reject(error);
1791
+ } else {
1792
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1793
+ body = ObjectSerializer.deserialize(body, "Array<Request>");
1794
+ resolve({ response: response, body: body });
1795
+ } else {
1796
+ reject(new HttpError(response, body, response.statusCode));
1797
+ }
1798
+ }
1799
+ });
1800
+ });
1801
+ });
1802
+ }
1803
+ /**
1804
+ *
1805
+ * @summary Fetch InfoGenesis response errors
1806
+ * @param startDateTime
1807
+ * @param endDateTime
1808
+ */
1809
+ public async fetchInfoGenesisResponseErrors (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Response>; }> {
1810
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/responses/errors';
1811
+ let localVarQueryParameters: any = {};
1812
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1813
+ const produces = ['application/json'];
1814
+ // give precedence to 'application/json'
1815
+ if (produces.indexOf('application/json') >= 0) {
1816
+ localVarHeaderParams.Accept = 'application/json';
1817
+ } else {
1818
+ localVarHeaderParams.Accept = produces.join(',');
1819
+ }
1820
+ let localVarFormParams: any = {};
1821
+
1822
+ // verify required parameter 'startDateTime' is not null or undefined
1823
+ if (startDateTime === null || startDateTime === undefined) {
1824
+ throw new Error('Required parameter startDateTime was null or undefined when calling fetchInfoGenesisResponseErrors.');
1825
+ }
1826
+
1827
+ // verify required parameter 'endDateTime' is not null or undefined
1828
+ if (endDateTime === null || endDateTime === undefined) {
1829
+ throw new Error('Required parameter endDateTime was null or undefined when calling fetchInfoGenesisResponseErrors.');
1830
+ }
1831
+
1832
+ if (startDateTime !== undefined) {
1833
+ localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
1834
+ }
1835
+
1836
+ if (endDateTime !== undefined) {
1837
+ localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
1838
+ }
1839
+
1840
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1841
+
1842
+ let localVarUseFormData = false;
1843
+
1844
+ let localVarRequestOptions: localVarRequest.Options = {
1845
+ method: 'GET',
1846
+ qs: localVarQueryParameters,
1847
+ headers: localVarHeaderParams,
1848
+ uri: localVarPath,
1849
+ useQuerystring: this._useQuerystring,
1850
+ json: true,
1851
+ };
1852
+
1853
+ let authenticationPromise = Promise.resolve();
1854
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1855
+
1856
+ let interceptorPromise = authenticationPromise;
1857
+ for (const interceptor of this.interceptors) {
1858
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1859
+ }
1860
+
1861
+ return interceptorPromise.then(() => {
1862
+ if (Object.keys(localVarFormParams).length) {
1863
+ if (localVarUseFormData) {
1864
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1865
+ } else {
1866
+ localVarRequestOptions.form = localVarFormParams;
1867
+ }
1868
+ }
1869
+ return new Promise<{ response: http.IncomingMessage; body: Array<Response>; }>((resolve, reject) => {
1870
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1871
+ if (error) {
1872
+ reject(error);
1873
+ } else {
1874
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1875
+ body = ObjectSerializer.deserialize(body, "Array<Response>");
1876
+ resolve({ response: response, body: body });
1877
+ } else {
1878
+ reject(new HttpError(response, body, response.statusCode));
1879
+ }
1880
+ }
1881
+ });
1882
+ });
1883
+ });
1884
+ }
1885
+ /**
1886
+ *
1887
+ * @summary Fetch InfoGenesis responses with routing IDs
1888
+ * @param inlineObject27
1889
+ */
1890
+ public async fetchInfoGenesisResponses (inlineObject27: InlineObject27, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Response>; }> {
1891
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/responses';
1892
+ let localVarQueryParameters: any = {};
1893
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1894
+ const produces = ['application/json'];
1895
+ // give precedence to 'application/json'
1896
+ if (produces.indexOf('application/json') >= 0) {
1897
+ localVarHeaderParams.Accept = 'application/json';
1898
+ } else {
1899
+ localVarHeaderParams.Accept = produces.join(',');
1900
+ }
1901
+ let localVarFormParams: any = {};
1902
+
1903
+ // verify required parameter 'inlineObject27' is not null or undefined
1904
+ if (inlineObject27 === null || inlineObject27 === undefined) {
1905
+ throw new Error('Required parameter inlineObject27 was null or undefined when calling fetchInfoGenesisResponses.');
1906
+ }
1907
+
1908
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1909
+
1910
+ let localVarUseFormData = false;
1911
+
1912
+ let localVarRequestOptions: localVarRequest.Options = {
1913
+ method: 'POST',
1914
+ qs: localVarQueryParameters,
1915
+ headers: localVarHeaderParams,
1916
+ uri: localVarPath,
1917
+ useQuerystring: this._useQuerystring,
1918
+ json: true,
1919
+ body: ObjectSerializer.serialize(inlineObject27, "InlineObject27")
1920
+ };
1921
+
1922
+ let authenticationPromise = Promise.resolve();
1923
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1924
+
1925
+ let interceptorPromise = authenticationPromise;
1926
+ for (const interceptor of this.interceptors) {
1927
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1928
+ }
1929
+
1930
+ return interceptorPromise.then(() => {
1931
+ if (Object.keys(localVarFormParams).length) {
1932
+ if (localVarUseFormData) {
1933
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1934
+ } else {
1935
+ localVarRequestOptions.form = localVarFormParams;
1936
+ }
1937
+ }
1938
+ return new Promise<{ response: http.IncomingMessage; body: Array<Response>; }>((resolve, reject) => {
1939
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1940
+ if (error) {
1941
+ reject(error);
1942
+ } else {
1943
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1944
+ body = ObjectSerializer.deserialize(body, "Array<Response>");
1945
+ resolve({ response: response, body: body });
1946
+ } else {
1947
+ reject(new HttpError(response, body, response.statusCode));
1948
+ }
1949
+ }
1950
+ });
1951
+ });
1952
+ });
1953
+ }
1954
+ /**
1955
+ *
1956
+ * @summary Fetch InfoGenesis transactions
1957
+ * @param inlineObject31
1958
+ */
1959
+ public async fetchInfoGenesisTransactionsWithUniquePostingIDs (inlineObject31: InlineObject31, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Request>; }> {
1960
+ const localVarPath = this.basePath + '/v1/pos/infogenesis/transactions';
1961
+ let localVarQueryParameters: any = {};
1962
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1963
+ const produces = ['application/json'];
1964
+ // give precedence to 'application/json'
1965
+ if (produces.indexOf('application/json') >= 0) {
1966
+ localVarHeaderParams.Accept = 'application/json';
1967
+ } else {
1968
+ localVarHeaderParams.Accept = produces.join(',');
1969
+ }
1970
+ let localVarFormParams: any = {};
1971
+
1972
+ // verify required parameter 'inlineObject31' is not null or undefined
1973
+ if (inlineObject31 === null || inlineObject31 === undefined) {
1974
+ throw new Error('Required parameter inlineObject31 was null or undefined when calling fetchInfoGenesisTransactionsWithUniquePostingIDs.');
1975
+ }
1976
+
1977
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1978
+
1979
+ let localVarUseFormData = false;
1980
+
1981
+ let localVarRequestOptions: localVarRequest.Options = {
1982
+ method: 'POST',
1983
+ qs: localVarQueryParameters,
1984
+ headers: localVarHeaderParams,
1985
+ uri: localVarPath,
1986
+ useQuerystring: this._useQuerystring,
1987
+ json: true,
1988
+ body: ObjectSerializer.serialize(inlineObject31, "InlineObject31")
1989
+ };
1990
+
1991
+ let authenticationPromise = Promise.resolve();
1992
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1993
+
1994
+ let interceptorPromise = authenticationPromise;
1995
+ for (const interceptor of this.interceptors) {
1996
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1997
+ }
1998
+
1999
+ return interceptorPromise.then(() => {
2000
+ if (Object.keys(localVarFormParams).length) {
2001
+ if (localVarUseFormData) {
2002
+ (<any>localVarRequestOptions).formData = localVarFormParams;
2003
+ } else {
2004
+ localVarRequestOptions.form = localVarFormParams;
2005
+ }
2006
+ }
2007
+ return new Promise<{ response: http.IncomingMessage; body: Array<Request>; }>((resolve, reject) => {
2008
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
2009
+ if (error) {
2010
+ reject(error);
2011
+ } else {
2012
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2013
+ body = ObjectSerializer.deserialize(body, "Array<Request>");
2014
+ resolve({ response: response, body: body });
2015
+ } else {
2016
+ reject(new HttpError(response, body, response.statusCode));
2017
+ }
2018
+ }
2019
+ });
2020
+ });
2021
+ });
2022
+ }
2023
+ }