@gobodo/gobodo-api 0.1.68 → 0.1.72

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 +32 -2
  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 +2 -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 +2 -2
  18. package/dist/api/DocumentTypesApi.js +2 -2
  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 +738 -0
  68. package/dist/index.js +105 -0
  69. package/dist/model/APIClient.js +9 -9
  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 +2 -2
  74. package/dist/model/Article.js +9 -9
  75. package/dist/model/AuthResponse.js +2 -2
  76. package/dist/model/AwsSettings.js +2 -2
  77. package/dist/model/Balance.js +63 -34
  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 +9 -9
  104. package/dist/model/DocumentPart.js +10 -10
  105. package/dist/model/DocumentPartType.js +14 -14
  106. package/dist/model/DocumentType.js +14 -14
  107. package/dist/model/EmailAddress.js +24 -24
  108. package/dist/model/FieldMapping.js +2 -2
  109. package/dist/model/Fields.js +16 -16
  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 +9 -9
  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 +2 -2
  133. package/dist/model/GraphIteratorEntryPartStackTraceInner.js +2 -2
  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 +10 -10
  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 +2 -2
  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 +16 -16
  204. package/dist/model/SkinFieldResponse.js +2 -2
  205. package/dist/model/SocialGroup.js +17 -17
  206. package/dist/model/SocialGroupType.js +2 -2
  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 +2 -2
  214. package/dist/model/TemplateResponse.js +2 -2
  215. package/dist/model/TemplateSchema.js +2 -2
  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 +2 -2
  223. package/dist/model/TransferInput.js +55 -4
  224. package/dist/model/TransferResponse.js +2 -2
  225. package/dist/model/TransferResponsePaymentMethodDetails.js +2 -2
  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 +2 -2
  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 +2 -2
  236. package/dist/model/VideoLiveUrl.js +2 -2
  237. package/dist/model/VideoSchema.js +2 -2
  238. package/dist/model/VideoUploadObject.js +2 -2
  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,738 @@
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 _CurrencyGrantInput = _interopRequireDefault(require("../model/CurrencyGrantInput"));
10
+ var _CurrencyGrantResponse = _interopRequireDefault(require("../model/CurrencyGrantResponse"));
11
+ var _PurchaseInput = _interopRequireDefault(require("../model/PurchaseInput"));
12
+ var _PurchaseResponse = _interopRequireDefault(require("../model/PurchaseResponse"));
13
+ var _TransferInput = _interopRequireDefault(require("../model/TransferInput"));
14
+ var _TransferResponse = _interopRequireDefault(require("../model/TransferResponse"));
15
+ var _WalletHoldInput = _interopRequireDefault(require("../model/WalletHoldInput"));
16
+ var _WalletHoldResponse = _interopRequireDefault(require("../model/WalletHoldResponse"));
17
+ var _WalletPayoutInput = _interopRequireDefault(require("../model/WalletPayoutInput"));
18
+ var _WalletPayoutResponse = _interopRequireDefault(require("../model/WalletPayoutResponse"));
19
+ var _WalletResponse = _interopRequireDefault(require("../model/WalletResponse"));
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
21
+ 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); }
22
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
23
+ 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); } }
24
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
25
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
26
+ 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); } /**
27
+ * gobodo-api
28
+ * REST Interface for Gobodo API
29
+ *
30
+ * The version of the OpenAPI document: 0.1.72
31
+ * Contact: info@gobodo.io
32
+ *
33
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
34
+ * https://openapi-generator.tech
35
+ * Do not edit the class manually.
36
+ *
37
+ */
38
+ /**
39
+ * Wallets service.
40
+ * @module api/WalletsApi
41
+ * @version 0.1.72
42
+ */
43
+ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
44
+ /**
45
+ * Constructs a new WalletsApi.
46
+ * @alias module:api/WalletsApi
47
+ * @class
48
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
49
+ * default to {@link module:ApiClient#instance} if unspecified.
50
+ */
51
+ function WalletsApi(apiClient) {
52
+ _classCallCheck(this, WalletsApi);
53
+ this.apiClient = apiClient || _ApiClient["default"].instance;
54
+ }
55
+
56
+ /**
57
+ * Callback function to receive the result of the createHold operation.
58
+ * @callback module:api/WalletsApi~createHoldCallback
59
+ * @param {String} error Error message, if any.
60
+ * @param {module:model/WalletHoldResponse} data The data returned by the service call.
61
+ * @param {String} response The complete HTTP response.
62
+ */
63
+
64
+ /**
65
+ * Hold currency for a user
66
+ * @param {module:model/WalletHoldInput} walletHoldInput Contains the hold details
67
+ * @param {Object} opts Optional parameters
68
+ * @param {String} [authorization] The authorization token of the logged in user
69
+ * @param {Number} [cacheduration] The how long the cache entry should persist
70
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
71
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
72
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
73
+ * @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)
74
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
75
+ * @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
76
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
77
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
78
+ * @param {module:api/WalletsApi~createHoldCallback} callback The callback function, accepting three arguments: error, data, response
79
+ * data is of type: {@link module:model/WalletHoldResponse}
80
+ */
81
+ return _createClass(WalletsApi, [{
82
+ key: "createHold",
83
+ value: function createHold(walletHoldInput, opts, callback) {
84
+ opts = opts || {};
85
+ var postBody = walletHoldInput;
86
+ // verify the required parameter 'walletHoldInput' is set
87
+ if (walletHoldInput === undefined || walletHoldInput === null) {
88
+ throw new Error("Missing the required parameter 'walletHoldInput' when calling createHold");
89
+ }
90
+ var pathParams = {};
91
+ var queryParams = {};
92
+ var headerParams = {
93
+ 'Authorization': opts['authorization'],
94
+ 'cacheduration': opts['cacheduration'],
95
+ 'cachegroup': opts['cachegroup'],
96
+ 'cachekey': opts['cachekey'],
97
+ 'cachescope': opts['cachescope'],
98
+ 'cacheuser': opts['cacheuser'],
99
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
100
+ 'zeusportal-postas': opts['zeusportalPostas'],
101
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
102
+ 'transactionid': opts['transactionid']
103
+ };
104
+ var formParams = {};
105
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
106
+ var contentTypes = [];
107
+ var accepts = ['application/json'];
108
+ var returnType = _WalletHoldResponse["default"];
109
+ return this.apiClient.callApi('/graph/data/payments/wallets/hold', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
110
+ }
111
+
112
+ /**
113
+ * Callback function to receive the result of the getGrantById operation.
114
+ * @callback module:api/WalletsApi~getGrantByIdCallback
115
+ * @param {String} error Error message, if any.
116
+ * @param {module:model/CurrencyGrantResponse} data The data returned by the service call.
117
+ * @param {String} response The complete HTTP response.
118
+ */
119
+
120
+ /**
121
+ * Get a grant by id
122
+ * @param {Number} grantId
123
+ * @param {Object} opts Optional parameters
124
+ * @param {String} [authorization] The authorization token of the logged in user
125
+ * @param {Number} [cacheduration] The how long the cache entry should persist
126
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
127
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
128
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
129
+ * @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)
130
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
131
+ * @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
132
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
133
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
134
+ * @param {module:api/WalletsApi~getGrantByIdCallback} callback The callback function, accepting three arguments: error, data, response
135
+ * data is of type: {@link module:model/CurrencyGrantResponse}
136
+ */
137
+ }, {
138
+ key: "getGrantById",
139
+ value: function getGrantById(grantId, opts, callback) {
140
+ opts = opts || {};
141
+ var postBody = null;
142
+ // verify the required parameter 'grantId' is set
143
+ if (grantId === undefined || grantId === null) {
144
+ throw new Error("Missing the required parameter 'grantId' when calling getGrantById");
145
+ }
146
+ var pathParams = {
147
+ 'grantId': grantId
148
+ };
149
+ var queryParams = {};
150
+ var headerParams = {
151
+ 'Authorization': opts['authorization'],
152
+ 'cacheduration': opts['cacheduration'],
153
+ 'cachegroup': opts['cachegroup'],
154
+ 'cachekey': opts['cachekey'],
155
+ 'cachescope': opts['cachescope'],
156
+ 'cacheuser': opts['cacheuser'],
157
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
158
+ 'zeusportal-postas': opts['zeusportalPostas'],
159
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
160
+ 'transactionid': opts['transactionid']
161
+ };
162
+ var formParams = {};
163
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
164
+ var contentTypes = [];
165
+ var accepts = ['application/json'];
166
+ var returnType = _CurrencyGrantResponse["default"];
167
+ return this.apiClient.callApi('/graph/data/payments/wallets/grant/{grantId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
168
+ }
169
+
170
+ /**
171
+ * Callback function to receive the result of the getHoldById operation.
172
+ * @callback module:api/WalletsApi~getHoldByIdCallback
173
+ * @param {String} error Error message, if any.
174
+ * @param {module:model/WalletHoldResponse} data The data returned by the service call.
175
+ * @param {String} response The complete HTTP response.
176
+ */
177
+
178
+ /**
179
+ * Get a hold by id
180
+ * @param {Number} holdId
181
+ * @param {Object} opts Optional parameters
182
+ * @param {String} [authorization] The authorization token of the logged in user
183
+ * @param {Number} [cacheduration] The how long the cache entry should persist
184
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
185
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
186
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
187
+ * @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)
188
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
189
+ * @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
190
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
191
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
192
+ * @param {module:api/WalletsApi~getHoldByIdCallback} callback The callback function, accepting three arguments: error, data, response
193
+ * data is of type: {@link module:model/WalletHoldResponse}
194
+ */
195
+ }, {
196
+ key: "getHoldById",
197
+ value: function getHoldById(holdId, opts, callback) {
198
+ opts = opts || {};
199
+ var postBody = null;
200
+ // verify the required parameter 'holdId' is set
201
+ if (holdId === undefined || holdId === null) {
202
+ throw new Error("Missing the required parameter 'holdId' when calling getHoldById");
203
+ }
204
+ var pathParams = {
205
+ 'holdId': holdId
206
+ };
207
+ var queryParams = {};
208
+ var headerParams = {
209
+ 'Authorization': opts['authorization'],
210
+ 'cacheduration': opts['cacheduration'],
211
+ 'cachegroup': opts['cachegroup'],
212
+ 'cachekey': opts['cachekey'],
213
+ 'cachescope': opts['cachescope'],
214
+ 'cacheuser': opts['cacheuser'],
215
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
216
+ 'zeusportal-postas': opts['zeusportalPostas'],
217
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
218
+ 'transactionid': opts['transactionid']
219
+ };
220
+ var formParams = {};
221
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
222
+ var contentTypes = [];
223
+ var accepts = ['application/json'];
224
+ var returnType = _WalletHoldResponse["default"];
225
+ return this.apiClient.callApi('/graph/data/payments/wallets/hold/{holdId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
226
+ }
227
+
228
+ /**
229
+ * Callback function to receive the result of the getPurchaseById operation.
230
+ * @callback module:api/WalletsApi~getPurchaseByIdCallback
231
+ * @param {String} error Error message, if any.
232
+ * @param {module:model/PurchaseResponse} data The data returned by the service call.
233
+ * @param {String} response The complete HTTP response.
234
+ */
235
+
236
+ /**
237
+ * Get a purchase by id
238
+ * @param {Number} purchaseId
239
+ * @param {Object} opts Optional parameters
240
+ * @param {String} [authorization] The authorization token of the logged in user
241
+ * @param {Number} [cacheduration] The how long the cache entry should persist
242
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
243
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
244
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
245
+ * @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)
246
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
247
+ * @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
248
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
249
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
250
+ * @param {module:api/WalletsApi~getPurchaseByIdCallback} callback The callback function, accepting three arguments: error, data, response
251
+ * data is of type: {@link module:model/PurchaseResponse}
252
+ */
253
+ }, {
254
+ key: "getPurchaseById",
255
+ value: function getPurchaseById(purchaseId, opts, callback) {
256
+ opts = opts || {};
257
+ var postBody = null;
258
+ // verify the required parameter 'purchaseId' is set
259
+ if (purchaseId === undefined || purchaseId === null) {
260
+ throw new Error("Missing the required parameter 'purchaseId' when calling getPurchaseById");
261
+ }
262
+ var pathParams = {
263
+ 'purchaseId': purchaseId
264
+ };
265
+ var queryParams = {};
266
+ var headerParams = {
267
+ 'Authorization': opts['authorization'],
268
+ 'cacheduration': opts['cacheduration'],
269
+ 'cachegroup': opts['cachegroup'],
270
+ 'cachekey': opts['cachekey'],
271
+ 'cachescope': opts['cachescope'],
272
+ 'cacheuser': opts['cacheuser'],
273
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
274
+ 'zeusportal-postas': opts['zeusportalPostas'],
275
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
276
+ 'transactionid': opts['transactionid']
277
+ };
278
+ var formParams = {};
279
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
280
+ var contentTypes = [];
281
+ var accepts = ['application/json'];
282
+ var returnType = _PurchaseResponse["default"];
283
+ return this.apiClient.callApi('/graph/data/payments/wallets/purchase/{purchaseId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
284
+ }
285
+
286
+ /**
287
+ * Callback function to receive the result of the getTransferById operation.
288
+ * @callback module:api/WalletsApi~getTransferByIdCallback
289
+ * @param {String} error Error message, if any.
290
+ * @param {module:model/TransferResponse} data The data returned by the service call.
291
+ * @param {String} response The complete HTTP response.
292
+ */
293
+
294
+ /**
295
+ * Get a transfer by id
296
+ * @param {Number} transferId
297
+ * @param {Object} opts Optional parameters
298
+ * @param {String} [authorization] The authorization token of the logged in user
299
+ * @param {Number} [cacheduration] The how long the cache entry should persist
300
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
301
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
302
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
303
+ * @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)
304
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
305
+ * @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
306
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
307
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
308
+ * @param {module:api/WalletsApi~getTransferByIdCallback} callback The callback function, accepting three arguments: error, data, response
309
+ * data is of type: {@link module:model/TransferResponse}
310
+ */
311
+ }, {
312
+ key: "getTransferById",
313
+ value: function getTransferById(transferId, opts, callback) {
314
+ opts = opts || {};
315
+ var postBody = null;
316
+ // verify the required parameter 'transferId' is set
317
+ if (transferId === undefined || transferId === null) {
318
+ throw new Error("Missing the required parameter 'transferId' when calling getTransferById");
319
+ }
320
+ var pathParams = {
321
+ 'transferId': transferId
322
+ };
323
+ var queryParams = {};
324
+ var headerParams = {
325
+ 'Authorization': opts['authorization'],
326
+ 'cacheduration': opts['cacheduration'],
327
+ 'cachegroup': opts['cachegroup'],
328
+ 'cachekey': opts['cachekey'],
329
+ 'cachescope': opts['cachescope'],
330
+ 'cacheuser': opts['cacheuser'],
331
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
332
+ 'zeusportal-postas': opts['zeusportalPostas'],
333
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
334
+ 'transactionid': opts['transactionid']
335
+ };
336
+ var formParams = {};
337
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
338
+ var contentTypes = [];
339
+ var accepts = ['application/json'];
340
+ var returnType = _TransferResponse["default"];
341
+ return this.apiClient.callApi('/graph/data/payments/wallets/transfer/{transferId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
342
+ }
343
+
344
+ /**
345
+ * Callback function to receive the result of the getWalletBalance operation.
346
+ * @callback module:api/WalletsApi~getWalletBalanceCallback
347
+ * @param {String} error Error message, if any.
348
+ * @param {module:model/BalanceResponse} data The data returned by the service call.
349
+ * @param {String} response The complete HTTP response.
350
+ */
351
+
352
+ /**
353
+ * Get the balance of a wallet
354
+ * @param {Number} walletId
355
+ * @param {Object} opts Optional parameters
356
+ * @param {String} [authorization] The authorization token of the logged in user
357
+ * @param {Number} [cacheduration] The how long the cache entry should persist
358
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
359
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
360
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
361
+ * @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)
362
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
363
+ * @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
364
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
365
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
366
+ * @param {module:api/WalletsApi~getWalletBalanceCallback} callback The callback function, accepting three arguments: error, data, response
367
+ * data is of type: {@link module:model/BalanceResponse}
368
+ */
369
+ }, {
370
+ key: "getWalletBalance",
371
+ value: function getWalletBalance(walletId, opts, callback) {
372
+ opts = opts || {};
373
+ var postBody = null;
374
+ // verify the required parameter 'walletId' is set
375
+ if (walletId === undefined || walletId === null) {
376
+ throw new Error("Missing the required parameter 'walletId' when calling getWalletBalance");
377
+ }
378
+ var pathParams = {
379
+ 'walletId': walletId
380
+ };
381
+ var queryParams = {};
382
+ var headerParams = {
383
+ 'Authorization': opts['authorization'],
384
+ 'cacheduration': opts['cacheduration'],
385
+ 'cachegroup': opts['cachegroup'],
386
+ 'cachekey': opts['cachekey'],
387
+ 'cachescope': opts['cachescope'],
388
+ 'cacheuser': opts['cacheuser'],
389
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
390
+ 'zeusportal-postas': opts['zeusportalPostas'],
391
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
392
+ 'transactionid': opts['transactionid']
393
+ };
394
+ var formParams = {};
395
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
396
+ var contentTypes = [];
397
+ var accepts = ['application/json'];
398
+ var returnType = _BalanceResponse["default"];
399
+ return this.apiClient.callApi('/graph/data/payments/wallets/wallet/{walletId}/balance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
400
+ }
401
+
402
+ /**
403
+ * Callback function to receive the result of the getWalletById operation.
404
+ * @callback module:api/WalletsApi~getWalletByIdCallback
405
+ * @param {String} error Error message, if any.
406
+ * @param {module:model/WalletResponse} data The data returned by the service call.
407
+ * @param {String} response The complete HTTP response.
408
+ */
409
+
410
+ /**
411
+ * Get a wallet by id
412
+ * @param {Number} walletId
413
+ * @param {Object} opts Optional parameters
414
+ * @param {String} [authorization] The authorization token of the logged in user
415
+ * @param {Number} [cacheduration] The how long the cache entry should persist
416
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
417
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
418
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
419
+ * @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)
420
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
421
+ * @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
422
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
423
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
424
+ * @param {module:api/WalletsApi~getWalletByIdCallback} callback The callback function, accepting three arguments: error, data, response
425
+ * data is of type: {@link module:model/WalletResponse}
426
+ */
427
+ }, {
428
+ key: "getWalletById",
429
+ value: function getWalletById(walletId, opts, callback) {
430
+ opts = opts || {};
431
+ var postBody = null;
432
+ // verify the required parameter 'walletId' is set
433
+ if (walletId === undefined || walletId === null) {
434
+ throw new Error("Missing the required parameter 'walletId' when calling getWalletById");
435
+ }
436
+ var pathParams = {
437
+ 'walletId': walletId
438
+ };
439
+ var queryParams = {};
440
+ var headerParams = {
441
+ 'Authorization': opts['authorization'],
442
+ 'cacheduration': opts['cacheduration'],
443
+ 'cachegroup': opts['cachegroup'],
444
+ 'cachekey': opts['cachekey'],
445
+ 'cachescope': opts['cachescope'],
446
+ 'cacheuser': opts['cacheuser'],
447
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
448
+ 'zeusportal-postas': opts['zeusportalPostas'],
449
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
450
+ 'transactionid': opts['transactionid']
451
+ };
452
+ var formParams = {};
453
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
454
+ var contentTypes = [];
455
+ var accepts = ['application/json'];
456
+ var returnType = _WalletResponse["default"];
457
+ return this.apiClient.callApi('/graph/data/payments/wallets/wallet/{walletId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
458
+ }
459
+
460
+ /**
461
+ * Callback function to receive the result of the getWallets operation.
462
+ * @callback module:api/WalletsApi~getWalletsCallback
463
+ * @param {String} error Error message, if any.
464
+ * @param {Array.<module:model/WalletResponse>} data The data returned by the service call.
465
+ * @param {String} response The complete HTTP response.
466
+ */
467
+
468
+ /**
469
+ * Get all wallets
470
+ * @param {Object} opts Optional parameters
471
+ * @param {String} [authorization] The authorization token of the logged in user
472
+ * @param {Number} [cacheduration] The how long the cache entry should persist
473
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
474
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
475
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
476
+ * @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)
477
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
478
+ * @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
479
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
480
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
481
+ * @param {Number} [currencyid]
482
+ * @param {module:api/WalletsApi~getWalletsCallback} callback The callback function, accepting three arguments: error, data, response
483
+ * data is of type: {@link Array.<module:model/WalletResponse>}
484
+ */
485
+ }, {
486
+ key: "getWallets",
487
+ value: function getWallets(opts, callback) {
488
+ opts = opts || {};
489
+ var postBody = null;
490
+ var pathParams = {};
491
+ var queryParams = {
492
+ 'currencyid': opts['currencyid']
493
+ };
494
+ var headerParams = {
495
+ 'Authorization': opts['authorization'],
496
+ 'cacheduration': opts['cacheduration'],
497
+ 'cachegroup': opts['cachegroup'],
498
+ 'cachekey': opts['cachekey'],
499
+ 'cachescope': opts['cachescope'],
500
+ 'cacheuser': opts['cacheuser'],
501
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
502
+ 'zeusportal-postas': opts['zeusportalPostas'],
503
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
504
+ 'transactionid': opts['transactionid']
505
+ };
506
+ var formParams = {};
507
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
508
+ var contentTypes = [];
509
+ var accepts = ['application/json'];
510
+ var returnType = [_WalletResponse["default"]];
511
+ return this.apiClient.callApi('/graph/data/payments/wallets/wallet', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
512
+ }
513
+
514
+ /**
515
+ * Callback function to receive the result of the grantCurrency operation.
516
+ * @callback module:api/WalletsApi~grantCurrencyCallback
517
+ * @param {String} error Error message, if any.
518
+ * @param {module:model/CurrencyGrantResponse} data The data returned by the service call.
519
+ * @param {String} response The complete HTTP response.
520
+ */
521
+
522
+ /**
523
+ * Grant currency to a user
524
+ * @param {module:model/CurrencyGrantInput} currencyGrantInput
525
+ * @param {Object} opts Optional parameters
526
+ * @param {String} [authorization] The authorization token of the logged in user
527
+ * @param {Number} [cacheduration] The how long the cache entry should persist
528
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
529
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
530
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
531
+ * @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)
532
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
533
+ * @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
534
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
535
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
536
+ * @param {module:api/WalletsApi~grantCurrencyCallback} callback The callback function, accepting three arguments: error, data, response
537
+ * data is of type: {@link module:model/CurrencyGrantResponse}
538
+ */
539
+ }, {
540
+ key: "grantCurrency",
541
+ value: function grantCurrency(currencyGrantInput, opts, callback) {
542
+ opts = opts || {};
543
+ var postBody = currencyGrantInput;
544
+ // verify the required parameter 'currencyGrantInput' is set
545
+ if (currencyGrantInput === undefined || currencyGrantInput === null) {
546
+ throw new Error("Missing the required parameter 'currencyGrantInput' when calling grantCurrency");
547
+ }
548
+ var pathParams = {};
549
+ var queryParams = {};
550
+ var headerParams = {
551
+ 'Authorization': opts['authorization'],
552
+ 'cacheduration': opts['cacheduration'],
553
+ 'cachegroup': opts['cachegroup'],
554
+ 'cachekey': opts['cachekey'],
555
+ 'cachescope': opts['cachescope'],
556
+ 'cacheuser': opts['cacheuser'],
557
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
558
+ 'zeusportal-postas': opts['zeusportalPostas'],
559
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
560
+ 'transactionid': opts['transactionid']
561
+ };
562
+ var formParams = {};
563
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
564
+ var contentTypes = [];
565
+ var accepts = ['application/json'];
566
+ var returnType = _CurrencyGrantResponse["default"];
567
+ return this.apiClient.callApi('/graph/data/payments/wallets/grant', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
568
+ }
569
+
570
+ /**
571
+ * Callback function to receive the result of the payoutWallet operation.
572
+ * @callback module:api/WalletsApi~payoutWalletCallback
573
+ * @param {String} error Error message, if any.
574
+ * @param {module:model/WalletPayoutResponse} data The data returned by the service call.
575
+ * @param {String} response The complete HTTP response.
576
+ */
577
+
578
+ /**
579
+ * Payout to the wallet to the logged in user's cash balance
580
+ * @param {module:model/WalletPayoutInput} walletPayoutInput
581
+ * @param {Object} opts Optional parameters
582
+ * @param {String} [authorization] The authorization token of the logged in user
583
+ * @param {Number} [cacheduration] The how long the cache entry should persist
584
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
585
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
586
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
587
+ * @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)
588
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
589
+ * @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
590
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
591
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
592
+ * @param {module:api/WalletsApi~payoutWalletCallback} callback The callback function, accepting three arguments: error, data, response
593
+ * data is of type: {@link module:model/WalletPayoutResponse}
594
+ */
595
+ }, {
596
+ key: "payoutWallet",
597
+ value: function payoutWallet(walletPayoutInput, opts, callback) {
598
+ opts = opts || {};
599
+ var postBody = walletPayoutInput;
600
+ // verify the required parameter 'walletPayoutInput' is set
601
+ if (walletPayoutInput === undefined || walletPayoutInput === null) {
602
+ throw new Error("Missing the required parameter 'walletPayoutInput' when calling payoutWallet");
603
+ }
604
+ var pathParams = {};
605
+ var queryParams = {};
606
+ var headerParams = {
607
+ 'Authorization': opts['authorization'],
608
+ 'cacheduration': opts['cacheduration'],
609
+ 'cachegroup': opts['cachegroup'],
610
+ 'cachekey': opts['cachekey'],
611
+ 'cachescope': opts['cachescope'],
612
+ 'cacheuser': opts['cacheuser'],
613
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
614
+ 'zeusportal-postas': opts['zeusportalPostas'],
615
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
616
+ 'transactionid': opts['transactionid']
617
+ };
618
+ var formParams = {};
619
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
620
+ var contentTypes = [];
621
+ var accepts = ['application/json'];
622
+ var returnType = _WalletPayoutResponse["default"];
623
+ return this.apiClient.callApi('/graph/data/payments/wallets/payout', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
624
+ }
625
+
626
+ /**
627
+ * Callback function to receive the result of the purchaseCurrency operation.
628
+ * @callback module:api/WalletsApi~purchaseCurrencyCallback
629
+ * @param {String} error Error message, if any.
630
+ * @param {module:model/PurchaseResponse} data The data returned by the service call.
631
+ * @param {String} response The complete HTTP response.
632
+ */
633
+
634
+ /**
635
+ * Purchase an item
636
+ * @param {module:model/PurchaseInput} purchaseInput
637
+ * @param {Object} opts Optional parameters
638
+ * @param {String} [authorization] The authorization token of the logged in user
639
+ * @param {Number} [cacheduration] The how long the cache entry should persist
640
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
641
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
642
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
643
+ * @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)
644
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
645
+ * @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
646
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
647
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
648
+ * @param {module:api/WalletsApi~purchaseCurrencyCallback} callback The callback function, accepting three arguments: error, data, response
649
+ * data is of type: {@link module:model/PurchaseResponse}
650
+ */
651
+ }, {
652
+ key: "purchaseCurrency",
653
+ value: function purchaseCurrency(purchaseInput, opts, callback) {
654
+ opts = opts || {};
655
+ var postBody = purchaseInput;
656
+ // verify the required parameter 'purchaseInput' is set
657
+ if (purchaseInput === undefined || purchaseInput === null) {
658
+ throw new Error("Missing the required parameter 'purchaseInput' when calling purchaseCurrency");
659
+ }
660
+ var pathParams = {};
661
+ var queryParams = {};
662
+ var headerParams = {
663
+ 'Authorization': opts['authorization'],
664
+ 'cacheduration': opts['cacheduration'],
665
+ 'cachegroup': opts['cachegroup'],
666
+ 'cachekey': opts['cachekey'],
667
+ 'cachescope': opts['cachescope'],
668
+ 'cacheuser': opts['cacheuser'],
669
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
670
+ 'zeusportal-postas': opts['zeusportalPostas'],
671
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
672
+ 'transactionid': opts['transactionid']
673
+ };
674
+ var formParams = {};
675
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
676
+ var contentTypes = [];
677
+ var accepts = ['application/json'];
678
+ var returnType = _PurchaseResponse["default"];
679
+ return this.apiClient.callApi('/graph/data/payments/wallets/purchase', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
680
+ }
681
+
682
+ /**
683
+ * Callback function to receive the result of the walletTransfer operation.
684
+ * @callback module:api/WalletsApi~walletTransferCallback
685
+ * @param {String} error Error message, if any.
686
+ * @param {module:model/TransferResponse} data The data returned by the service call.
687
+ * @param {String} response The complete HTTP response.
688
+ */
689
+
690
+ /**
691
+ * Transfer funds between wallets
692
+ * @param {module:model/TransferInput} transferInput
693
+ * @param {Object} opts Optional parameters
694
+ * @param {String} [authorization] The authorization token of the logged in user
695
+ * @param {Number} [cacheduration] The how long the cache entry should persist
696
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
697
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
698
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
699
+ * @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)
700
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
701
+ * @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
702
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
703
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
704
+ * @param {module:api/WalletsApi~walletTransferCallback} callback The callback function, accepting three arguments: error, data, response
705
+ * data is of type: {@link module:model/TransferResponse}
706
+ */
707
+ }, {
708
+ key: "walletTransfer",
709
+ value: function walletTransfer(transferInput, opts, callback) {
710
+ opts = opts || {};
711
+ var postBody = transferInput;
712
+ // verify the required parameter 'transferInput' is set
713
+ if (transferInput === undefined || transferInput === null) {
714
+ throw new Error("Missing the required parameter 'transferInput' when calling walletTransfer");
715
+ }
716
+ var pathParams = {};
717
+ var queryParams = {};
718
+ var headerParams = {
719
+ 'Authorization': opts['authorization'],
720
+ 'cacheduration': opts['cacheduration'],
721
+ 'cachegroup': opts['cachegroup'],
722
+ 'cachekey': opts['cachekey'],
723
+ 'cachescope': opts['cachescope'],
724
+ 'cacheuser': opts['cacheuser'],
725
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
726
+ 'zeusportal-postas': opts['zeusportalPostas'],
727
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
728
+ 'transactionid': opts['transactionid']
729
+ };
730
+ var formParams = {};
731
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
732
+ var contentTypes = [];
733
+ var accepts = ['application/json'];
734
+ var returnType = _TransferResponse["default"];
735
+ return this.apiClient.callApi('/graph/data/payments/wallets/transfer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
736
+ }
737
+ }]);
738
+ }();