@gobodo/gobodo-api 0.1.67 → 0.1.71

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 (245) hide show
  1. package/README.md +41 -3
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/ActionTypesApi.js +2 -2
  4. package/dist/api/AdCampaignsApi.js +2 -2
  5. package/dist/api/AdManagementApi.js +2 -2
  6. package/dist/api/AdminDataManagementApi.js +2 -2
  7. package/dist/api/AdsApi.js +2 -2
  8. package/dist/api/AttachmentsApi.js +2 -2
  9. package/dist/api/AuthenticationApi.js +2 -2
  10. package/dist/api/CategoriesApi.js +2 -2
  11. package/dist/api/CommentsApi.js +2 -2
  12. package/dist/api/ContentManagementApi.js +210 -2
  13. package/dist/api/ConversationsApi.js +2 -2
  14. package/dist/api/CurrencyApi.js +262 -0
  15. package/dist/api/DataSheetImportsApi.js +2 -2
  16. package/dist/api/DefaultApi.js +2 -2
  17. package/dist/api/DocumentPartTypesApi.js +148 -0
  18. package/dist/api/DocumentTypesApi.js +148 -0
  19. package/dist/api/DocumentsApi.js +2 -2
  20. package/dist/api/EmailsApi.js +2 -2
  21. package/dist/api/EntryPartsApi.js +2 -2
  22. package/dist/api/FacebookApi.js +2 -2
  23. package/dist/api/FieldsApi.js +2 -2
  24. package/dist/api/FilesApi.js +2 -2
  25. package/dist/api/FormsApi.js +2 -2
  26. package/dist/api/FunctionsApi.js +2 -2
  27. package/dist/api/GeocodeApi.js +2 -2
  28. package/dist/api/GoogleApi.js +2 -2
  29. package/dist/api/GraphActionTypesApi.js +2 -2
  30. package/dist/api/GraphActionsApi.js +2 -2
  31. package/dist/api/GraphObjectTypesApi.js +2 -2
  32. package/dist/api/GraphObjectsApi.js +2 -2
  33. package/dist/api/GraphRelationshipTypesApi.js +2 -2
  34. package/dist/api/GraphRelationshipsApi.js +2 -2
  35. package/dist/api/GraphSchemasApi.js +2 -2
  36. package/dist/api/GraphTraversalApi.js +2 -2
  37. package/dist/api/GraphsApi.js +2 -2
  38. package/dist/api/GroupsApi.js +2 -2
  39. package/dist/api/IAMApi.js +2 -2
  40. package/dist/api/ImagesApi.js +2 -2
  41. package/dist/api/InvitesApi.js +2 -2
  42. package/dist/api/LikesApi.js +2 -2
  43. package/dist/api/LinkedINApi.js +2 -2
  44. package/dist/api/LiveMeetingsApi.js +2 -2
  45. package/dist/api/MeetingEventsApi.js +2 -2
  46. package/dist/api/NotificationsApi.js +2 -2
  47. package/dist/api/PagesApi.js +2 -2
  48. package/dist/api/PhoneNumbersApi.js +2 -2
  49. package/dist/api/PostsApi.js +2 -2
  50. package/dist/api/PrivateMessagesApi.js +2 -2
  51. package/dist/api/PublicationsApi.js +2 -2
  52. package/dist/api/RestApplicationsApi.js +2 -2
  53. package/dist/api/ScreensApi.js +2 -2
  54. package/dist/api/SitesApi.js +2 -2
  55. package/dist/api/SocialIntegrationApi.js +2 -2
  56. package/dist/api/StripeAccountsApi.js +2 -2
  57. package/dist/api/TagsApi.js +2 -2
  58. package/dist/api/TemplatesApi.js +2 -2
  59. package/dist/api/ThemeMappingsApi.js +2 -2
  60. package/dist/api/TopicsApi.js +61 -2
  61. package/dist/api/TransactionsApi.js +2 -2
  62. package/dist/api/TwitterApi.js +2 -2
  63. package/dist/api/UserTagsApi.js +2 -2
  64. package/dist/api/UsersApi.js +2 -2
  65. package/dist/api/UtilsApi.js +2 -2
  66. package/dist/api/VideosApi.js +2 -2
  67. package/dist/api/WalletsApi.js +708 -0
  68. package/dist/index.js +126 -7
  69. package/dist/model/APIClient.js +2 -2
  70. package/dist/model/AccountSessionInput.js +2 -2
  71. package/dist/model/AccountSessionResponse.js +2 -2
  72. package/dist/model/ApplicationPaymentAccountResponse.js +14 -2
  73. package/dist/model/ApplicationPaymentAccountResponseFailureException.js +6 -6
  74. package/dist/model/Article.js +2 -2
  75. package/dist/model/AuthResponse.js +2 -2
  76. package/dist/model/AwsSettings.js +2 -2
  77. package/dist/model/Balance.js +31 -2
  78. package/dist/model/BalanceDetails.js +2 -2
  79. package/dist/model/BalanceResponse.js +2 -2
  80. package/dist/model/BankAccountInfo.js +2 -2
  81. package/dist/model/CardInfo.js +2 -2
  82. package/dist/model/Comment.js +14 -14
  83. package/dist/model/Coordinates.js +2 -2
  84. package/dist/model/CreateAccountResponse.js +2 -2
  85. package/dist/model/CreateFunctionInput.js +2 -2
  86. package/dist/model/CreateStripeAccountInput.js +2 -2
  87. package/dist/model/CreateStripeCustomerInput.js +2 -2
  88. package/dist/model/CreateTopicInput.js +2 -2
  89. package/dist/model/CreateTopicListenerInput.js +2 -2
  90. package/dist/model/Currency.js +141 -0
  91. package/dist/model/CurrencyGrantInput.js +176 -0
  92. package/dist/model/CurrencyGrantResponse.js +214 -0
  93. package/dist/model/CurrencyInput.js +164 -0
  94. package/dist/model/CurrencyMinterRegistrationInput.js +138 -0
  95. package/dist/model/CurrencyResponse.js +180 -0
  96. package/dist/model/CurrencySettings.js +2 -2
  97. package/dist/model/CustomerResponse.js +2 -2
  98. package/dist/model/DataObject.js +2 -2
  99. package/dist/model/DataSheetImport.js +2 -2
  100. package/dist/model/DataSheetImportPrivacySettings.js +2 -2
  101. package/dist/model/DataSheetImportSummary.js +2 -2
  102. package/dist/model/DeviceRegistrationRequest.js +2 -2
  103. package/dist/model/Document.js +2 -2
  104. package/dist/model/DocumentPart.js +2 -2
  105. package/dist/model/DocumentPartType.js +27 -27
  106. package/dist/model/DocumentType.js +41 -41
  107. package/dist/model/EmailAddress.js +2 -2
  108. package/dist/model/FieldMapping.js +2 -2
  109. package/dist/model/Fields.js +9 -9
  110. package/dist/model/File.js +2 -2
  111. package/dist/model/FileAttachmentUploadObject.js +2 -2
  112. package/dist/model/Filter.js +2 -2
  113. package/dist/model/FilterManager.js +2 -2
  114. package/dist/model/Form.js +2 -2
  115. package/dist/model/FormSection.js +2 -2
  116. package/dist/model/FormSubmission.js +2 -2
  117. package/dist/model/FunctionConfigInput.js +2 -2
  118. package/dist/model/FunctionEnvironmentConfig.js +2 -2
  119. package/dist/model/FunctionInput.js +2 -2
  120. package/dist/model/FunctionOutput.js +2 -2
  121. package/dist/model/Geocode.js +2 -2
  122. package/dist/model/GeocodePayload.js +2 -2
  123. package/dist/model/GeolocationInput.js +2 -2
  124. package/dist/model/GetFunctionConfig.js +2 -2
  125. package/dist/model/GetFunctionEnvironmentConfig.js +2 -2
  126. package/dist/model/GetFunctionResponse.js +2 -2
  127. package/dist/model/GoogleCloudSettings.js +2 -2
  128. package/dist/model/Graph.js +2 -2
  129. package/dist/model/GraphAction.js +2 -2
  130. package/dist/model/GraphDatabaseService.js +2 -2
  131. package/dist/model/GraphGeocode.js +2 -2
  132. package/dist/model/GraphIteratorEntryPart.js +6 -6
  133. package/dist/model/GraphIteratorEntryPartStackTraceInner.js +165 -0
  134. package/dist/model/GraphObject.js +2 -2
  135. package/dist/model/GraphObjectPayload.js +2 -2
  136. package/dist/model/GraphObjectSchema.js +2 -2
  137. package/dist/model/GraphObjectType.js +2 -2
  138. package/dist/model/GraphObjectTypeResponse.js +2 -2
  139. package/dist/model/GraphObjectTypeSchema.js +2 -2
  140. package/dist/model/GraphOwner.js +2 -2
  141. package/dist/model/GraphRelationship.js +2 -2
  142. package/dist/model/GraphRelationshipPayload.js +2 -2
  143. package/dist/model/GraphRelationshipType.js +14 -14
  144. package/dist/model/GraphRelationshipTypeResponse.js +2 -2
  145. package/dist/model/GraphSchema.js +2 -2
  146. package/dist/model/GraphTraversalInput.js +2 -2
  147. package/dist/model/Image.js +2 -2
  148. package/dist/model/ImageUploadObject.js +2 -2
  149. package/dist/model/InputPart.js +2 -2
  150. package/dist/model/InputPartMediaType.js +2 -2
  151. package/dist/model/KafkaSettings.js +2 -2
  152. package/dist/model/Link.js +2 -2
  153. package/dist/model/LiveStreamInfo.js +2 -2
  154. package/dist/model/MeetingEvent.js +29 -29
  155. package/dist/model/MeetingEventTimezone.js +2 -2
  156. package/dist/model/MeetingInfo.js +2 -2
  157. package/dist/model/Member.js +2 -2
  158. package/dist/model/MemberGroupCategory.js +2 -2
  159. package/dist/model/MemberList.js +2 -2
  160. package/dist/model/MessageGroup.js +2 -2
  161. package/dist/model/MultipartBody.js +2 -2
  162. package/dist/model/NotificationInput.js +2 -2
  163. package/dist/model/NotificationResponse.js +2 -2
  164. package/dist/model/NumberSettings.js +2 -2
  165. package/dist/model/ObjectSettings.js +2 -2
  166. package/dist/model/Objecttype.js +2 -2
  167. package/dist/model/OutParameter.js +2 -2
  168. package/dist/model/Page.js +9 -9
  169. package/dist/model/PageSchema.js +2 -2
  170. package/dist/model/Pageable.js +2 -2
  171. package/dist/model/Parameter.js +2 -2
  172. package/dist/model/Path.js +2 -2
  173. package/dist/model/PaymentAccountObject.js +2 -2
  174. package/dist/model/PaymentIntentInput.js +2 -2
  175. package/dist/model/PaymentIntentResponse.js +2 -2
  176. package/dist/model/PaymentMethod.js +2 -2
  177. package/dist/model/PaymentMethodInput.js +2 -2
  178. package/dist/model/PaymentMethodResponse.js +2 -2
  179. package/dist/model/PaymentMethodsResponse.js +2 -2
  180. package/dist/model/Payout.js +11 -11
  181. package/dist/model/PayoutInput.js +2 -2
  182. package/dist/model/PayoutResponse.js +2 -2
  183. package/dist/model/PhoneNumber.js +2 -2
  184. package/dist/model/Post.js +2 -2
  185. package/dist/model/PrivateMessage.js +2 -2
  186. package/dist/model/PrivateMessageConversation.js +2 -2
  187. package/dist/model/PrivateMessageConversationSchema.js +2 -2
  188. package/dist/model/Profile.js +2 -2
  189. package/dist/model/Profiletype.js +2 -2
  190. package/dist/model/PropertyContainer.js +2 -2
  191. package/dist/model/PurchaseInput.js +142 -0
  192. package/dist/model/PurchaseResponse.js +182 -0
  193. package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
  194. package/dist/model/RelationshipMapping.js +2 -2
  195. package/dist/model/RestApplicationInput.js +2 -2
  196. package/dist/model/RestApplicationResponse.js +2 -2
  197. package/dist/model/ScreenSchema.js +2 -2
  198. package/dist/model/SimulcastInfo.js +2 -2
  199. package/dist/model/SiteInput.js +2 -2
  200. package/dist/model/SiteResponse.js +2 -2
  201. package/dist/model/SiteTypeInput.js +2 -2
  202. package/dist/model/SiteTypeResponse.js +2 -2
  203. package/dist/model/SkinField.js +9 -9
  204. package/dist/model/SkinFieldResponse.js +2 -2
  205. package/dist/model/SocialGroup.js +2 -2
  206. package/dist/model/SocialGroupType.js +22 -22
  207. package/dist/model/Sort.js +2 -2
  208. package/dist/model/SourceTypes.js +2 -2
  209. package/dist/model/StatusUpdate.js +2 -2
  210. package/dist/model/StreetAddress.js +2 -2
  211. package/dist/model/StripeAccount.js +58 -2
  212. package/dist/model/StripeCustomerAccount.js +2 -2
  213. package/dist/model/Template.js +11 -11
  214. package/dist/model/TemplateResponse.js +2 -2
  215. package/dist/model/TemplateSchema.js +11 -11
  216. package/dist/model/ThemeMapping.js +2 -2
  217. package/dist/model/ThemeMappingPayload.js +2 -2
  218. package/dist/model/TopicInfoResponse.js +2 -2
  219. package/dist/model/TopicMessageInput.js +2 -2
  220. package/dist/model/TopicSubscriptionResponse.js +2 -2
  221. package/dist/model/Transaction.js +2 -2
  222. package/dist/model/Transfer.js +13 -13
  223. package/dist/model/TransferInput.js +55 -4
  224. package/dist/model/TransferResponse.js +2 -2
  225. package/dist/model/TransferResponsePaymentMethodDetails.js +13 -13
  226. package/dist/model/TraversalRelationResponse.js +2 -2
  227. package/dist/model/User.js +2 -2
  228. package/dist/model/UserDataPayload.js +2 -2
  229. package/dist/model/UserDomain.js +2 -2
  230. package/dist/model/UserInvite.js +14 -14
  231. package/dist/model/UserInviteInput.js +2 -2
  232. package/dist/model/UserSchema.js +2 -2
  233. package/dist/model/UserTag.js +2 -2
  234. package/dist/model/Userid.js +2 -2
  235. package/dist/model/Video.js +18 -18
  236. package/dist/model/VideoLiveUrl.js +2 -2
  237. package/dist/model/VideoSchema.js +26 -26
  238. package/dist/model/VideoUploadObject.js +18 -18
  239. package/dist/model/WalletHoldInput.js +148 -0
  240. package/dist/model/WalletHoldResponse.js +172 -0
  241. package/dist/model/WalletPayoutInput.js +136 -0
  242. package/dist/model/WalletPayoutResponse.js +148 -0
  243. package/dist/model/WalletResponse.js +152 -0
  244. package/dist/model/ZeusPortalCategory.js +2 -2
  245. package/package.json +1 -1
@@ -0,0 +1,708 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _BalanceResponse = _interopRequireDefault(require("../model/BalanceResponse"));
9
+ var _CurrencyGrantResponse = _interopRequireDefault(require("../model/CurrencyGrantResponse"));
10
+ var _PurchaseResponse = _interopRequireDefault(require("../model/PurchaseResponse"));
11
+ var _TransferResponse = _interopRequireDefault(require("../model/TransferResponse"));
12
+ var _WalletHoldResponse = _interopRequireDefault(require("../model/WalletHoldResponse"));
13
+ var _WalletPayoutResponse = _interopRequireDefault(require("../model/WalletPayoutResponse"));
14
+ var _WalletResponse = _interopRequireDefault(require("../model/WalletResponse"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
17
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
18
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
19
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
22
+ * gobodo-api
23
+ * REST Interface for Gobodo API
24
+ *
25
+ * The version of the OpenAPI document: 0.1.71
26
+ * Contact: info@gobodo.io
27
+ *
28
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
29
+ * https://openapi-generator.tech
30
+ * Do not edit the class manually.
31
+ *
32
+ */
33
+ /**
34
+ * Wallets service.
35
+ * @module api/WalletsApi
36
+ * @version 0.1.71
37
+ */
38
+ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
39
+ /**
40
+ * Constructs a new WalletsApi.
41
+ * @alias module:api/WalletsApi
42
+ * @class
43
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
44
+ * default to {@link module:ApiClient#instance} if unspecified.
45
+ */
46
+ function WalletsApi(apiClient) {
47
+ _classCallCheck(this, WalletsApi);
48
+ this.apiClient = apiClient || _ApiClient["default"].instance;
49
+ }
50
+
51
+ /**
52
+ * Callback function to receive the result of the createHold operation.
53
+ * @callback module:api/WalletsApi~createHoldCallback
54
+ * @param {String} error Error message, if any.
55
+ * @param {module:model/WalletHoldResponse} data The data returned by the service call.
56
+ * @param {String} response The complete HTTP response.
57
+ */
58
+
59
+ /**
60
+ * Hold currency for a user
61
+ * @param {Object} opts Optional parameters
62
+ * @param {String} [authorization] The authorization token of the logged in user
63
+ * @param {Number} [cacheduration] The how long the cache entry should persist
64
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
65
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
66
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
67
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
68
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
69
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
70
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
71
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
72
+ * @param {module:api/WalletsApi~createHoldCallback} callback The callback function, accepting three arguments: error, data, response
73
+ * data is of type: {@link module:model/WalletHoldResponse}
74
+ */
75
+ return _createClass(WalletsApi, [{
76
+ key: "createHold",
77
+ value: function createHold(opts, callback) {
78
+ opts = opts || {};
79
+ var postBody = null;
80
+ var pathParams = {};
81
+ var queryParams = {};
82
+ var headerParams = {
83
+ 'Authorization': opts['authorization'],
84
+ 'cacheduration': opts['cacheduration'],
85
+ 'cachegroup': opts['cachegroup'],
86
+ 'cachekey': opts['cachekey'],
87
+ 'cachescope': opts['cachescope'],
88
+ 'cacheuser': opts['cacheuser'],
89
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
90
+ 'zeusportal-postas': opts['zeusportalPostas'],
91
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
92
+ 'transactionid': opts['transactionid']
93
+ };
94
+ var formParams = {};
95
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
96
+ var contentTypes = [];
97
+ var accepts = ['application/json'];
98
+ var returnType = _WalletHoldResponse["default"];
99
+ return this.apiClient.callApi('/graph/data/payments/wallets/hold', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
100
+ }
101
+
102
+ /**
103
+ * Callback function to receive the result of the getGrantById operation.
104
+ * @callback module:api/WalletsApi~getGrantByIdCallback
105
+ * @param {String} error Error message, if any.
106
+ * @param {module:model/CurrencyGrantResponse} data The data returned by the service call.
107
+ * @param {String} response The complete HTTP response.
108
+ */
109
+
110
+ /**
111
+ * Get a grant by id
112
+ * @param {Number} grantId
113
+ * @param {Object} opts Optional parameters
114
+ * @param {String} [authorization] The authorization token of the logged in user
115
+ * @param {Number} [cacheduration] The how long the cache entry should persist
116
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
117
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
118
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
119
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
120
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
121
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
122
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
123
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
124
+ * @param {module:api/WalletsApi~getGrantByIdCallback} callback The callback function, accepting three arguments: error, data, response
125
+ * data is of type: {@link module:model/CurrencyGrantResponse}
126
+ */
127
+ }, {
128
+ key: "getGrantById",
129
+ value: function getGrantById(grantId, opts, callback) {
130
+ opts = opts || {};
131
+ var postBody = null;
132
+ // verify the required parameter 'grantId' is set
133
+ if (grantId === undefined || grantId === null) {
134
+ throw new Error("Missing the required parameter 'grantId' when calling getGrantById");
135
+ }
136
+ var pathParams = {
137
+ 'grantId': grantId
138
+ };
139
+ var queryParams = {};
140
+ var headerParams = {
141
+ 'Authorization': opts['authorization'],
142
+ 'cacheduration': opts['cacheduration'],
143
+ 'cachegroup': opts['cachegroup'],
144
+ 'cachekey': opts['cachekey'],
145
+ 'cachescope': opts['cachescope'],
146
+ 'cacheuser': opts['cacheuser'],
147
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
148
+ 'zeusportal-postas': opts['zeusportalPostas'],
149
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
150
+ 'transactionid': opts['transactionid']
151
+ };
152
+ var formParams = {};
153
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
154
+ var contentTypes = [];
155
+ var accepts = ['application/json'];
156
+ var returnType = _CurrencyGrantResponse["default"];
157
+ return this.apiClient.callApi('/graph/data/payments/wallets/grant/{grantId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
158
+ }
159
+
160
+ /**
161
+ * Callback function to receive the result of the getHoldById operation.
162
+ * @callback module:api/WalletsApi~getHoldByIdCallback
163
+ * @param {String} error Error message, if any.
164
+ * @param {module:model/WalletHoldResponse} data The data returned by the service call.
165
+ * @param {String} response The complete HTTP response.
166
+ */
167
+
168
+ /**
169
+ * Get a hold by id
170
+ * @param {Number} holdId
171
+ * @param {Object} opts Optional parameters
172
+ * @param {String} [authorization] The authorization token of the logged in user
173
+ * @param {Number} [cacheduration] The how long the cache entry should persist
174
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
175
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
176
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
177
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
178
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
179
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
180
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
181
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
182
+ * @param {module:api/WalletsApi~getHoldByIdCallback} callback The callback function, accepting three arguments: error, data, response
183
+ * data is of type: {@link module:model/WalletHoldResponse}
184
+ */
185
+ }, {
186
+ key: "getHoldById",
187
+ value: function getHoldById(holdId, opts, callback) {
188
+ opts = opts || {};
189
+ var postBody = null;
190
+ // verify the required parameter 'holdId' is set
191
+ if (holdId === undefined || holdId === null) {
192
+ throw new Error("Missing the required parameter 'holdId' when calling getHoldById");
193
+ }
194
+ var pathParams = {
195
+ 'holdId': holdId
196
+ };
197
+ var queryParams = {};
198
+ var headerParams = {
199
+ 'Authorization': opts['authorization'],
200
+ 'cacheduration': opts['cacheduration'],
201
+ 'cachegroup': opts['cachegroup'],
202
+ 'cachekey': opts['cachekey'],
203
+ 'cachescope': opts['cachescope'],
204
+ 'cacheuser': opts['cacheuser'],
205
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
206
+ 'zeusportal-postas': opts['zeusportalPostas'],
207
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
208
+ 'transactionid': opts['transactionid']
209
+ };
210
+ var formParams = {};
211
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
212
+ var contentTypes = [];
213
+ var accepts = ['application/json'];
214
+ var returnType = _WalletHoldResponse["default"];
215
+ return this.apiClient.callApi('/graph/data/payments/wallets/hold/{holdId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
216
+ }
217
+
218
+ /**
219
+ * Callback function to receive the result of the getPurchaseById operation.
220
+ * @callback module:api/WalletsApi~getPurchaseByIdCallback
221
+ * @param {String} error Error message, if any.
222
+ * @param {module:model/PurchaseResponse} data The data returned by the service call.
223
+ * @param {String} response The complete HTTP response.
224
+ */
225
+
226
+ /**
227
+ * Get a purchase by id
228
+ * @param {Number} purchaseId
229
+ * @param {Object} opts Optional parameters
230
+ * @param {String} [authorization] The authorization token of the logged in user
231
+ * @param {Number} [cacheduration] The how long the cache entry should persist
232
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
233
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
234
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
235
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
236
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
237
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
238
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
239
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
240
+ * @param {module:api/WalletsApi~getPurchaseByIdCallback} callback The callback function, accepting three arguments: error, data, response
241
+ * data is of type: {@link module:model/PurchaseResponse}
242
+ */
243
+ }, {
244
+ key: "getPurchaseById",
245
+ value: function getPurchaseById(purchaseId, opts, callback) {
246
+ opts = opts || {};
247
+ var postBody = null;
248
+ // verify the required parameter 'purchaseId' is set
249
+ if (purchaseId === undefined || purchaseId === null) {
250
+ throw new Error("Missing the required parameter 'purchaseId' when calling getPurchaseById");
251
+ }
252
+ var pathParams = {
253
+ 'purchaseId': purchaseId
254
+ };
255
+ var queryParams = {};
256
+ var headerParams = {
257
+ 'Authorization': opts['authorization'],
258
+ 'cacheduration': opts['cacheduration'],
259
+ 'cachegroup': opts['cachegroup'],
260
+ 'cachekey': opts['cachekey'],
261
+ 'cachescope': opts['cachescope'],
262
+ 'cacheuser': opts['cacheuser'],
263
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
264
+ 'zeusportal-postas': opts['zeusportalPostas'],
265
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
266
+ 'transactionid': opts['transactionid']
267
+ };
268
+ var formParams = {};
269
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
270
+ var contentTypes = [];
271
+ var accepts = ['application/json'];
272
+ var returnType = _PurchaseResponse["default"];
273
+ return this.apiClient.callApi('/graph/data/payments/wallets/purchase/{purchaseId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
274
+ }
275
+
276
+ /**
277
+ * Callback function to receive the result of the getTransferById operation.
278
+ * @callback module:api/WalletsApi~getTransferByIdCallback
279
+ * @param {String} error Error message, if any.
280
+ * @param {module:model/TransferResponse} data The data returned by the service call.
281
+ * @param {String} response The complete HTTP response.
282
+ */
283
+
284
+ /**
285
+ * Get a transfer by id
286
+ * @param {Number} transferId
287
+ * @param {Object} opts Optional parameters
288
+ * @param {String} [authorization] The authorization token of the logged in user
289
+ * @param {Number} [cacheduration] The how long the cache entry should persist
290
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
291
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
292
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
293
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
294
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
295
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
296
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
297
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
298
+ * @param {module:api/WalletsApi~getTransferByIdCallback} callback The callback function, accepting three arguments: error, data, response
299
+ * data is of type: {@link module:model/TransferResponse}
300
+ */
301
+ }, {
302
+ key: "getTransferById",
303
+ value: function getTransferById(transferId, opts, callback) {
304
+ opts = opts || {};
305
+ var postBody = null;
306
+ // verify the required parameter 'transferId' is set
307
+ if (transferId === undefined || transferId === null) {
308
+ throw new Error("Missing the required parameter 'transferId' when calling getTransferById");
309
+ }
310
+ var pathParams = {
311
+ 'transferId': transferId
312
+ };
313
+ var queryParams = {};
314
+ var headerParams = {
315
+ 'Authorization': opts['authorization'],
316
+ 'cacheduration': opts['cacheduration'],
317
+ 'cachegroup': opts['cachegroup'],
318
+ 'cachekey': opts['cachekey'],
319
+ 'cachescope': opts['cachescope'],
320
+ 'cacheuser': opts['cacheuser'],
321
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
322
+ 'zeusportal-postas': opts['zeusportalPostas'],
323
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
324
+ 'transactionid': opts['transactionid']
325
+ };
326
+ var formParams = {};
327
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
328
+ var contentTypes = [];
329
+ var accepts = ['application/json'];
330
+ var returnType = _TransferResponse["default"];
331
+ return this.apiClient.callApi('/graph/data/payments/wallets/transfer/{transferId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
332
+ }
333
+
334
+ /**
335
+ * Callback function to receive the result of the getWalletBalance operation.
336
+ * @callback module:api/WalletsApi~getWalletBalanceCallback
337
+ * @param {String} error Error message, if any.
338
+ * @param {module:model/BalanceResponse} data The data returned by the service call.
339
+ * @param {String} response The complete HTTP response.
340
+ */
341
+
342
+ /**
343
+ * Get the balance of a wallet
344
+ * @param {Number} walletId
345
+ * @param {Object} opts Optional parameters
346
+ * @param {String} [authorization] The authorization token of the logged in user
347
+ * @param {Number} [cacheduration] The how long the cache entry should persist
348
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
349
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
350
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
351
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
352
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
353
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
354
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
355
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
356
+ * @param {module:api/WalletsApi~getWalletBalanceCallback} callback The callback function, accepting three arguments: error, data, response
357
+ * data is of type: {@link module:model/BalanceResponse}
358
+ */
359
+ }, {
360
+ key: "getWalletBalance",
361
+ value: function getWalletBalance(walletId, opts, callback) {
362
+ opts = opts || {};
363
+ var postBody = null;
364
+ // verify the required parameter 'walletId' is set
365
+ if (walletId === undefined || walletId === null) {
366
+ throw new Error("Missing the required parameter 'walletId' when calling getWalletBalance");
367
+ }
368
+ var pathParams = {
369
+ 'walletId': walletId
370
+ };
371
+ var queryParams = {};
372
+ var headerParams = {
373
+ 'Authorization': opts['authorization'],
374
+ 'cacheduration': opts['cacheduration'],
375
+ 'cachegroup': opts['cachegroup'],
376
+ 'cachekey': opts['cachekey'],
377
+ 'cachescope': opts['cachescope'],
378
+ 'cacheuser': opts['cacheuser'],
379
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
380
+ 'zeusportal-postas': opts['zeusportalPostas'],
381
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
382
+ 'transactionid': opts['transactionid']
383
+ };
384
+ var formParams = {};
385
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
386
+ var contentTypes = [];
387
+ var accepts = ['application/json'];
388
+ var returnType = _BalanceResponse["default"];
389
+ return this.apiClient.callApi('/graph/data/payments/wallets/wallet/{walletId}/balance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
390
+ }
391
+
392
+ /**
393
+ * Callback function to receive the result of the getWalletById operation.
394
+ * @callback module:api/WalletsApi~getWalletByIdCallback
395
+ * @param {String} error Error message, if any.
396
+ * @param {module:model/WalletResponse} data The data returned by the service call.
397
+ * @param {String} response The complete HTTP response.
398
+ */
399
+
400
+ /**
401
+ * Get a wallet by id
402
+ * @param {Number} walletId
403
+ * @param {Object} opts Optional parameters
404
+ * @param {String} [authorization] The authorization token of the logged in user
405
+ * @param {Number} [cacheduration] The how long the cache entry should persist
406
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
407
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
408
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
409
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
410
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
411
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
412
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
413
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
414
+ * @param {module:api/WalletsApi~getWalletByIdCallback} callback The callback function, accepting three arguments: error, data, response
415
+ * data is of type: {@link module:model/WalletResponse}
416
+ */
417
+ }, {
418
+ key: "getWalletById",
419
+ value: function getWalletById(walletId, opts, callback) {
420
+ opts = opts || {};
421
+ var postBody = null;
422
+ // verify the required parameter 'walletId' is set
423
+ if (walletId === undefined || walletId === null) {
424
+ throw new Error("Missing the required parameter 'walletId' when calling getWalletById");
425
+ }
426
+ var pathParams = {
427
+ 'walletId': walletId
428
+ };
429
+ var queryParams = {};
430
+ var headerParams = {
431
+ 'Authorization': opts['authorization'],
432
+ 'cacheduration': opts['cacheduration'],
433
+ 'cachegroup': opts['cachegroup'],
434
+ 'cachekey': opts['cachekey'],
435
+ 'cachescope': opts['cachescope'],
436
+ 'cacheuser': opts['cacheuser'],
437
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
438
+ 'zeusportal-postas': opts['zeusportalPostas'],
439
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
440
+ 'transactionid': opts['transactionid']
441
+ };
442
+ var formParams = {};
443
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
444
+ var contentTypes = [];
445
+ var accepts = ['application/json'];
446
+ var returnType = _WalletResponse["default"];
447
+ return this.apiClient.callApi('/graph/data/payments/wallets/wallet/{walletId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
448
+ }
449
+
450
+ /**
451
+ * Callback function to receive the result of the getWallets operation.
452
+ * @callback module:api/WalletsApi~getWalletsCallback
453
+ * @param {String} error Error message, if any.
454
+ * @param {Array.<module:model/WalletResponse>} data The data returned by the service call.
455
+ * @param {String} response The complete HTTP response.
456
+ */
457
+
458
+ /**
459
+ * Get all wallets
460
+ * @param {Object} opts Optional parameters
461
+ * @param {String} [authorization] The authorization token of the logged in user
462
+ * @param {Number} [cacheduration] The how long the cache entry should persist
463
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
464
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
465
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
466
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
467
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
468
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
469
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
470
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
471
+ * @param {Number} [currencyid]
472
+ * @param {module:api/WalletsApi~getWalletsCallback} callback The callback function, accepting three arguments: error, data, response
473
+ * data is of type: {@link Array.<module:model/WalletResponse>}
474
+ */
475
+ }, {
476
+ key: "getWallets",
477
+ value: function getWallets(opts, callback) {
478
+ opts = opts || {};
479
+ var postBody = null;
480
+ var pathParams = {};
481
+ var queryParams = {
482
+ 'currencyid': opts['currencyid']
483
+ };
484
+ var headerParams = {
485
+ 'Authorization': opts['authorization'],
486
+ 'cacheduration': opts['cacheduration'],
487
+ 'cachegroup': opts['cachegroup'],
488
+ 'cachekey': opts['cachekey'],
489
+ 'cachescope': opts['cachescope'],
490
+ 'cacheuser': opts['cacheuser'],
491
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
492
+ 'zeusportal-postas': opts['zeusportalPostas'],
493
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
494
+ 'transactionid': opts['transactionid']
495
+ };
496
+ var formParams = {};
497
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
498
+ var contentTypes = [];
499
+ var accepts = ['application/json'];
500
+ var returnType = [_WalletResponse["default"]];
501
+ return this.apiClient.callApi('/graph/data/payments/wallets/wallet', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
502
+ }
503
+
504
+ /**
505
+ * Callback function to receive the result of the grantCurrency operation.
506
+ * @callback module:api/WalletsApi~grantCurrencyCallback
507
+ * @param {String} error Error message, if any.
508
+ * @param {module:model/CurrencyGrantResponse} data The data returned by the service call.
509
+ * @param {String} response The complete HTTP response.
510
+ */
511
+
512
+ /**
513
+ * Grant currency to a user
514
+ * @param {Object} opts Optional parameters
515
+ * @param {String} [authorization] The authorization token of the logged in user
516
+ * @param {Number} [cacheduration] The how long the cache entry should persist
517
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
518
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
519
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
520
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
521
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
522
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
523
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
524
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
525
+ * @param {module:api/WalletsApi~grantCurrencyCallback} callback The callback function, accepting three arguments: error, data, response
526
+ * data is of type: {@link module:model/CurrencyGrantResponse}
527
+ */
528
+ }, {
529
+ key: "grantCurrency",
530
+ value: function grantCurrency(opts, callback) {
531
+ opts = opts || {};
532
+ var postBody = null;
533
+ var pathParams = {};
534
+ var queryParams = {};
535
+ var headerParams = {
536
+ 'Authorization': opts['authorization'],
537
+ 'cacheduration': opts['cacheduration'],
538
+ 'cachegroup': opts['cachegroup'],
539
+ 'cachekey': opts['cachekey'],
540
+ 'cachescope': opts['cachescope'],
541
+ 'cacheuser': opts['cacheuser'],
542
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
543
+ 'zeusportal-postas': opts['zeusportalPostas'],
544
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
545
+ 'transactionid': opts['transactionid']
546
+ };
547
+ var formParams = {};
548
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
549
+ var contentTypes = [];
550
+ var accepts = ['application/json'];
551
+ var returnType = _CurrencyGrantResponse["default"];
552
+ return this.apiClient.callApi('/graph/data/payments/wallets/grant', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
553
+ }
554
+
555
+ /**
556
+ * Callback function to receive the result of the payoutWallet operation.
557
+ * @callback module:api/WalletsApi~payoutWalletCallback
558
+ * @param {String} error Error message, if any.
559
+ * @param {module:model/WalletPayoutResponse} data The data returned by the service call.
560
+ * @param {String} response The complete HTTP response.
561
+ */
562
+
563
+ /**
564
+ * Payout to the wallet to the logged in user's cash balance
565
+ * @param {Object} opts Optional parameters
566
+ * @param {String} [authorization] The authorization token of the logged in user
567
+ * @param {Number} [cacheduration] The how long the cache entry should persist
568
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
569
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
570
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
571
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
572
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
573
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
574
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
575
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
576
+ * @param {module:api/WalletsApi~payoutWalletCallback} callback The callback function, accepting three arguments: error, data, response
577
+ * data is of type: {@link module:model/WalletPayoutResponse}
578
+ */
579
+ }, {
580
+ key: "payoutWallet",
581
+ value: function payoutWallet(opts, callback) {
582
+ opts = opts || {};
583
+ var postBody = null;
584
+ var pathParams = {};
585
+ var queryParams = {};
586
+ var headerParams = {
587
+ 'Authorization': opts['authorization'],
588
+ 'cacheduration': opts['cacheduration'],
589
+ 'cachegroup': opts['cachegroup'],
590
+ 'cachekey': opts['cachekey'],
591
+ 'cachescope': opts['cachescope'],
592
+ 'cacheuser': opts['cacheuser'],
593
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
594
+ 'zeusportal-postas': opts['zeusportalPostas'],
595
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
596
+ 'transactionid': opts['transactionid']
597
+ };
598
+ var formParams = {};
599
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
600
+ var contentTypes = [];
601
+ var accepts = ['application/json'];
602
+ var returnType = _WalletPayoutResponse["default"];
603
+ return this.apiClient.callApi('/graph/data/payments/wallets/payout', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
604
+ }
605
+
606
+ /**
607
+ * Callback function to receive the result of the purchaseCurrency operation.
608
+ * @callback module:api/WalletsApi~purchaseCurrencyCallback
609
+ * @param {String} error Error message, if any.
610
+ * @param {module:model/PurchaseResponse} data The data returned by the service call.
611
+ * @param {String} response The complete HTTP response.
612
+ */
613
+
614
+ /**
615
+ * Purchase an item
616
+ * @param {Object} opts Optional parameters
617
+ * @param {String} [authorization] The authorization token of the logged in user
618
+ * @param {Number} [cacheduration] The how long the cache entry should persist
619
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
620
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
621
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
622
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
623
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
624
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
625
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
626
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
627
+ * @param {module:api/WalletsApi~purchaseCurrencyCallback} callback The callback function, accepting three arguments: error, data, response
628
+ * data is of type: {@link module:model/PurchaseResponse}
629
+ */
630
+ }, {
631
+ key: "purchaseCurrency",
632
+ value: function purchaseCurrency(opts, callback) {
633
+ opts = opts || {};
634
+ var postBody = null;
635
+ var pathParams = {};
636
+ var queryParams = {};
637
+ var headerParams = {
638
+ 'Authorization': opts['authorization'],
639
+ 'cacheduration': opts['cacheduration'],
640
+ 'cachegroup': opts['cachegroup'],
641
+ 'cachekey': opts['cachekey'],
642
+ 'cachescope': opts['cachescope'],
643
+ 'cacheuser': opts['cacheuser'],
644
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
645
+ 'zeusportal-postas': opts['zeusportalPostas'],
646
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
647
+ 'transactionid': opts['transactionid']
648
+ };
649
+ var formParams = {};
650
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
651
+ var contentTypes = [];
652
+ var accepts = ['application/json'];
653
+ var returnType = _PurchaseResponse["default"];
654
+ return this.apiClient.callApi('/graph/data/payments/wallets/purchase', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
655
+ }
656
+
657
+ /**
658
+ * Callback function to receive the result of the walletTransfer operation.
659
+ * @callback module:api/WalletsApi~walletTransferCallback
660
+ * @param {String} error Error message, if any.
661
+ * @param {module:model/TransferResponse} data The data returned by the service call.
662
+ * @param {String} response The complete HTTP response.
663
+ */
664
+
665
+ /**
666
+ * Transfer funds between wallets
667
+ * @param {Object} opts Optional parameters
668
+ * @param {String} [authorization] The authorization token of the logged in user
669
+ * @param {Number} [cacheduration] The how long the cache entry should persist
670
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
671
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
672
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
673
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
674
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
675
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
676
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
677
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
678
+ * @param {module:api/WalletsApi~walletTransferCallback} callback The callback function, accepting three arguments: error, data, response
679
+ * data is of type: {@link module:model/TransferResponse}
680
+ */
681
+ }, {
682
+ key: "walletTransfer",
683
+ value: function walletTransfer(opts, callback) {
684
+ opts = opts || {};
685
+ var postBody = null;
686
+ var pathParams = {};
687
+ var queryParams = {};
688
+ var headerParams = {
689
+ 'Authorization': opts['authorization'],
690
+ 'cacheduration': opts['cacheduration'],
691
+ 'cachegroup': opts['cachegroup'],
692
+ 'cachekey': opts['cachekey'],
693
+ 'cachescope': opts['cachescope'],
694
+ 'cacheuser': opts['cacheuser'],
695
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
696
+ 'zeusportal-postas': opts['zeusportalPostas'],
697
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
698
+ 'transactionid': opts['transactionid']
699
+ };
700
+ var formParams = {};
701
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
702
+ var contentTypes = [];
703
+ var accepts = ['application/json'];
704
+ var returnType = _TransferResponse["default"];
705
+ return this.apiClient.callApi('/graph/data/payments/wallets/transfer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
706
+ }
707
+ }]);
708
+ }();