@gobodo/gobodo-api-promise 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.
- package/README.md +41 -3
- package/dist/ApiClient.js +3 -3
- package/dist/api/ActionTypesApi.js +2 -2
- package/dist/api/AdCampaignsApi.js +2 -2
- package/dist/api/AdManagementApi.js +2 -2
- package/dist/api/AdminDataManagementApi.js +2 -2
- package/dist/api/AdsApi.js +2 -2
- package/dist/api/AttachmentsApi.js +2 -2
- package/dist/api/AuthenticationApi.js +2 -2
- package/dist/api/CategoriesApi.js +2 -2
- package/dist/api/CommentsApi.js +2 -2
- package/dist/api/ContentManagementApi.js +268 -2
- package/dist/api/ConversationsApi.js +2 -2
- package/dist/api/CurrencyApi.js +322 -0
- package/dist/api/DataSheetImportsApi.js +2 -2
- package/dist/api/DefaultApi.js +2 -2
- package/dist/api/DocumentPartTypesApi.js +178 -0
- package/dist/api/DocumentTypesApi.js +178 -0
- package/dist/api/DocumentsApi.js +2 -2
- package/dist/api/EmailsApi.js +2 -2
- package/dist/api/EntryPartsApi.js +2 -2
- package/dist/api/FacebookApi.js +2 -2
- package/dist/api/FieldsApi.js +2 -2
- package/dist/api/FilesApi.js +2 -2
- package/dist/api/FormsApi.js +2 -2
- package/dist/api/FunctionsApi.js +2 -2
- package/dist/api/GeocodeApi.js +2 -2
- package/dist/api/GoogleApi.js +2 -2
- package/dist/api/GraphActionTypesApi.js +2 -2
- package/dist/api/GraphActionsApi.js +2 -2
- package/dist/api/GraphObjectTypesApi.js +2 -2
- package/dist/api/GraphObjectsApi.js +2 -2
- package/dist/api/GraphRelationshipTypesApi.js +2 -2
- package/dist/api/GraphRelationshipsApi.js +2 -2
- package/dist/api/GraphSchemasApi.js +2 -2
- package/dist/api/GraphTraversalApi.js +2 -2
- package/dist/api/GraphsApi.js +2 -2
- package/dist/api/GroupsApi.js +2 -2
- package/dist/api/IAMApi.js +2 -2
- package/dist/api/ImagesApi.js +2 -2
- package/dist/api/InvitesApi.js +2 -2
- package/dist/api/LikesApi.js +2 -2
- package/dist/api/LinkedINApi.js +2 -2
- package/dist/api/LiveMeetingsApi.js +2 -2
- package/dist/api/MeetingEventsApi.js +2 -2
- package/dist/api/NotificationsApi.js +2 -2
- package/dist/api/PagesApi.js +2 -2
- package/dist/api/PhoneNumbersApi.js +2 -2
- package/dist/api/PostsApi.js +2 -2
- package/dist/api/PrivateMessagesApi.js +2 -2
- package/dist/api/PublicationsApi.js +2 -2
- package/dist/api/RestApplicationsApi.js +2 -2
- package/dist/api/ScreensApi.js +2 -2
- package/dist/api/SitesApi.js +2 -2
- package/dist/api/SocialIntegrationApi.js +2 -2
- package/dist/api/StripeAccountsApi.js +2 -2
- package/dist/api/TagsApi.js +2 -2
- package/dist/api/TemplatesApi.js +2 -2
- package/dist/api/ThemeMappingsApi.js +2 -2
- package/dist/api/TopicsApi.js +77 -2
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/TwitterApi.js +2 -2
- package/dist/api/UserTagsApi.js +2 -2
- package/dist/api/UsersApi.js +2 -2
- package/dist/api/UtilsApi.js +2 -2
- package/dist/api/VideosApi.js +2 -2
- package/dist/api/WalletsApi.js +884 -0
- package/dist/index.js +126 -7
- package/dist/model/APIClient.js +2 -2
- package/dist/model/AccountSessionInput.js +2 -2
- package/dist/model/AccountSessionResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponse.js +31 -2
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +8 -8
- package/dist/model/Article.js +2 -2
- package/dist/model/AuthResponse.js +2 -2
- package/dist/model/AwsSettings.js +2 -2
- package/dist/model/Balance.js +48 -2
- package/dist/model/BalanceDetails.js +2 -2
- package/dist/model/BalanceResponse.js +2 -2
- package/dist/model/BankAccountInfo.js +2 -2
- package/dist/model/CardInfo.js +2 -2
- package/dist/model/Comment.js +30 -30
- package/dist/model/Coordinates.js +2 -2
- package/dist/model/CreateAccountResponse.js +2 -2
- package/dist/model/CreateFunctionInput.js +2 -2
- package/dist/model/CreateStripeAccountInput.js +2 -2
- package/dist/model/CreateStripeCustomerInput.js +2 -2
- package/dist/model/CreateTopicInput.js +2 -2
- package/dist/model/CreateTopicListenerInput.js +2 -2
- package/dist/model/Currency.js +262 -0
- package/dist/model/CurrencyGrantInput.js +280 -0
- package/dist/model/CurrencyGrantResponse.js +369 -0
- package/dist/model/CurrencyInput.js +268 -0
- package/dist/model/CurrencyMinterRegistrationInput.js +208 -0
- package/dist/model/CurrencyResponse.js +301 -0
- package/dist/model/CurrencySettings.js +2 -2
- package/dist/model/CustomerResponse.js +2 -2
- package/dist/model/DataObject.js +2 -2
- package/dist/model/DataSheetImport.js +2 -2
- package/dist/model/DataSheetImportPrivacySettings.js +2 -2
- package/dist/model/DataSheetImportSummary.js +2 -2
- package/dist/model/DeviceRegistrationRequest.js +2 -2
- package/dist/model/Document.js +2 -2
- package/dist/model/DocumentPart.js +2 -2
- package/dist/model/DocumentPartType.js +73 -73
- package/dist/model/DocumentType.js +117 -117
- package/dist/model/EmailAddress.js +2 -2
- package/dist/model/FieldMapping.js +2 -2
- package/dist/model/Fields.js +25 -25
- package/dist/model/File.js +2 -2
- package/dist/model/FileAttachmentUploadObject.js +2 -2
- package/dist/model/Filter.js +2 -2
- package/dist/model/FilterManager.js +2 -2
- package/dist/model/Form.js +2 -2
- package/dist/model/FormSection.js +2 -2
- package/dist/model/FormSubmission.js +2 -2
- package/dist/model/FunctionConfigInput.js +2 -2
- package/dist/model/FunctionEnvironmentConfig.js +2 -2
- package/dist/model/FunctionInput.js +2 -2
- package/dist/model/FunctionOutput.js +2 -2
- package/dist/model/Geocode.js +2 -2
- package/dist/model/GeocodePayload.js +2 -2
- package/dist/model/GeolocationInput.js +2 -2
- package/dist/model/GetFunctionConfig.js +2 -2
- package/dist/model/GetFunctionEnvironmentConfig.js +2 -2
- package/dist/model/GetFunctionResponse.js +2 -2
- package/dist/model/GoogleCloudSettings.js +2 -2
- package/dist/model/Graph.js +2 -2
- package/dist/model/GraphAction.js +2 -2
- package/dist/model/GraphDatabaseService.js +2 -2
- package/dist/model/GraphGeocode.js +2 -2
- package/dist/model/GraphIteratorEntryPart.js +8 -8
- package/dist/model/GraphIteratorEntryPartStackTraceInner.js +303 -0
- package/dist/model/GraphObject.js +2 -2
- package/dist/model/GraphObjectPayload.js +2 -2
- package/dist/model/GraphObjectSchema.js +2 -2
- package/dist/model/GraphObjectType.js +2 -2
- package/dist/model/GraphObjectTypeResponse.js +2 -2
- package/dist/model/GraphObjectTypeSchema.js +2 -2
- package/dist/model/GraphOwner.js +2 -2
- package/dist/model/GraphRelationship.js +2 -2
- package/dist/model/GraphRelationshipPayload.js +2 -2
- package/dist/model/GraphRelationshipType.js +31 -31
- package/dist/model/GraphRelationshipTypeResponse.js +2 -2
- package/dist/model/GraphSchema.js +2 -2
- package/dist/model/GraphTraversalInput.js +2 -2
- package/dist/model/Image.js +2 -2
- package/dist/model/ImageUploadObject.js +2 -2
- package/dist/model/InputPart.js +2 -2
- package/dist/model/InputPartMediaType.js +2 -2
- package/dist/model/KafkaSettings.js +2 -2
- package/dist/model/Link.js +2 -2
- package/dist/model/LiveStreamInfo.js +2 -2
- package/dist/model/MeetingEvent.js +79 -79
- package/dist/model/MeetingEventTimezone.js +2 -2
- package/dist/model/MeetingInfo.js +2 -2
- package/dist/model/Member.js +2 -2
- package/dist/model/MemberGroupCategory.js +2 -2
- package/dist/model/MemberList.js +2 -2
- package/dist/model/MessageGroup.js +2 -2
- package/dist/model/MultipartBody.js +2 -2
- package/dist/model/NotificationInput.js +2 -2
- package/dist/model/NotificationResponse.js +2 -2
- package/dist/model/NumberSettings.js +2 -2
- package/dist/model/ObjectSettings.js +2 -2
- package/dist/model/Objecttype.js +2 -2
- package/dist/model/OutParameter.js +2 -2
- package/dist/model/Page.js +25 -25
- package/dist/model/PageSchema.js +2 -2
- package/dist/model/Pageable.js +2 -2
- package/dist/model/Parameter.js +2 -2
- package/dist/model/Path.js +2 -2
- package/dist/model/PaymentAccountObject.js +2 -2
- package/dist/model/PaymentIntentInput.js +2 -2
- package/dist/model/PaymentIntentResponse.js +2 -2
- package/dist/model/PaymentMethod.js +2 -2
- package/dist/model/PaymentMethodInput.js +2 -2
- package/dist/model/PaymentMethodResponse.js +2 -2
- package/dist/model/PaymentMethodsResponse.js +2 -2
- package/dist/model/Payout.js +30 -30
- package/dist/model/PayoutInput.js +2 -2
- package/dist/model/PayoutResponse.js +2 -2
- package/dist/model/PhoneNumber.js +2 -2
- package/dist/model/Post.js +2 -2
- package/dist/model/PrivateMessage.js +2 -2
- package/dist/model/PrivateMessageConversation.js +2 -2
- package/dist/model/PrivateMessageConversationSchema.js +2 -2
- package/dist/model/Profile.js +2 -2
- package/dist/model/Profiletype.js +2 -2
- package/dist/model/PropertyContainer.js +2 -2
- package/dist/model/PurchaseInput.js +229 -0
- package/dist/model/PurchaseResponse.js +320 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
- package/dist/model/RelationshipMapping.js +2 -2
- package/dist/model/RestApplicationInput.js +2 -2
- package/dist/model/RestApplicationResponse.js +2 -2
- package/dist/model/ScreenSchema.js +2 -2
- package/dist/model/SimulcastInfo.js +2 -2
- package/dist/model/SiteInput.js +2 -2
- package/dist/model/SiteResponse.js +2 -2
- package/dist/model/SiteTypeInput.js +2 -2
- package/dist/model/SiteTypeResponse.js +2 -2
- package/dist/model/SkinField.js +25 -25
- package/dist/model/SkinFieldResponse.js +2 -2
- package/dist/model/SocialGroup.js +2 -2
- package/dist/model/SocialGroupType.js +56 -56
- package/dist/model/Sort.js +2 -2
- package/dist/model/SourceTypes.js +2 -2
- package/dist/model/StatusUpdate.js +2 -2
- package/dist/model/StreetAddress.js +2 -2
- package/dist/model/StripeAccount.js +143 -2
- package/dist/model/StripeCustomerAccount.js +2 -2
- package/dist/model/Template.js +30 -30
- package/dist/model/TemplateResponse.js +2 -2
- package/dist/model/TemplateSchema.js +30 -30
- package/dist/model/ThemeMapping.js +2 -2
- package/dist/model/ThemeMappingPayload.js +2 -2
- package/dist/model/TopicInfoResponse.js +2 -2
- package/dist/model/TopicMessageInput.js +2 -2
- package/dist/model/TopicSubscriptionResponse.js +2 -2
- package/dist/model/Transaction.js +2 -2
- package/dist/model/Transfer.js +32 -32
- package/dist/model/TransferInput.js +95 -6
- package/dist/model/TransferResponse.js +2 -2
- package/dist/model/TransferResponsePaymentMethodDetails.js +32 -32
- package/dist/model/TraversalRelationResponse.js +2 -2
- package/dist/model/User.js +2 -2
- package/dist/model/UserDataPayload.js +2 -2
- package/dist/model/UserDomain.js +2 -2
- package/dist/model/UserInvite.js +31 -31
- package/dist/model/UserInviteInput.js +2 -2
- package/dist/model/UserSchema.js +2 -2
- package/dist/model/UserTag.js +2 -2
- package/dist/model/Userid.js +2 -2
- package/dist/model/Video.js +52 -52
- package/dist/model/VideoLiveUrl.js +2 -2
- package/dist/model/VideoSchema.js +79 -79
- package/dist/model/VideoUploadObject.js +52 -52
- package/dist/model/WalletHoldInput.js +235 -0
- package/dist/model/WalletHoldResponse.js +293 -0
- package/dist/model/WalletPayoutInput.js +206 -0
- package/dist/model/WalletPayoutResponse.js +235 -0
- package/dist/model/WalletResponse.js +239 -0
- package/dist/model/ZeusPortalCategory.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,884 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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
|
+
* Hold currency for a user
|
|
53
|
+
* @param {Object} opts Optional parameters
|
|
54
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
55
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
56
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
57
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
58
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
59
|
+
* @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)
|
|
60
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
61
|
+
* @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
|
|
62
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
63
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
64
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletHoldResponse} and HTTP response
|
|
65
|
+
*/
|
|
66
|
+
_createClass(WalletsApi, [{
|
|
67
|
+
key: "createHoldWithHttpInfo",
|
|
68
|
+
value: function createHoldWithHttpInfo(opts) {
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
var postBody = null;
|
|
71
|
+
var pathParams = {};
|
|
72
|
+
var queryParams = {};
|
|
73
|
+
var headerParams = {
|
|
74
|
+
'Authorization': opts['authorization'],
|
|
75
|
+
'cacheduration': opts['cacheduration'],
|
|
76
|
+
'cachegroup': opts['cachegroup'],
|
|
77
|
+
'cachekey': opts['cachekey'],
|
|
78
|
+
'cachescope': opts['cachescope'],
|
|
79
|
+
'cacheuser': opts['cacheuser'],
|
|
80
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
81
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
82
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
83
|
+
'transactionid': opts['transactionid']
|
|
84
|
+
};
|
|
85
|
+
var formParams = {};
|
|
86
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
87
|
+
var contentTypes = [];
|
|
88
|
+
var accepts = ['application/json'];
|
|
89
|
+
var returnType = _WalletHoldResponse["default"];
|
|
90
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/hold', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Hold currency for a user
|
|
95
|
+
* @param {Object} opts Optional parameters
|
|
96
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
97
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
98
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
99
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
100
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
101
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
102
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
103
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
104
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
105
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
106
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletHoldResponse}
|
|
107
|
+
*/
|
|
108
|
+
}, {
|
|
109
|
+
key: "createHold",
|
|
110
|
+
value: function createHold(opts) {
|
|
111
|
+
return this.createHoldWithHttpInfo(opts).then(function (response_and_data) {
|
|
112
|
+
return response_and_data.data;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Get a grant by id
|
|
118
|
+
* @param {Number} grantId
|
|
119
|
+
* @param {Object} opts Optional parameters
|
|
120
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
121
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
122
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
123
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
124
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
125
|
+
* @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)
|
|
126
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
127
|
+
* @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
|
|
128
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
129
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
130
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CurrencyGrantResponse} and HTTP response
|
|
131
|
+
*/
|
|
132
|
+
}, {
|
|
133
|
+
key: "getGrantByIdWithHttpInfo",
|
|
134
|
+
value: function getGrantByIdWithHttpInfo(grantId, opts) {
|
|
135
|
+
opts = opts || {};
|
|
136
|
+
var postBody = null;
|
|
137
|
+
// verify the required parameter 'grantId' is set
|
|
138
|
+
if (grantId === undefined || grantId === null) {
|
|
139
|
+
throw new Error("Missing the required parameter 'grantId' when calling getGrantById");
|
|
140
|
+
}
|
|
141
|
+
var pathParams = {
|
|
142
|
+
'grantId': grantId
|
|
143
|
+
};
|
|
144
|
+
var queryParams = {};
|
|
145
|
+
var headerParams = {
|
|
146
|
+
'Authorization': opts['authorization'],
|
|
147
|
+
'cacheduration': opts['cacheduration'],
|
|
148
|
+
'cachegroup': opts['cachegroup'],
|
|
149
|
+
'cachekey': opts['cachekey'],
|
|
150
|
+
'cachescope': opts['cachescope'],
|
|
151
|
+
'cacheuser': opts['cacheuser'],
|
|
152
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
153
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
154
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
155
|
+
'transactionid': opts['transactionid']
|
|
156
|
+
};
|
|
157
|
+
var formParams = {};
|
|
158
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
159
|
+
var contentTypes = [];
|
|
160
|
+
var accepts = ['application/json'];
|
|
161
|
+
var returnType = _CurrencyGrantResponse["default"];
|
|
162
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/grant/{grantId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Get a grant by id
|
|
167
|
+
* @param {Number} grantId
|
|
168
|
+
* @param {Object} opts Optional parameters
|
|
169
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
170
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
171
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
172
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
173
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
174
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
175
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
176
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
177
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
178
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
179
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CurrencyGrantResponse}
|
|
180
|
+
*/
|
|
181
|
+
}, {
|
|
182
|
+
key: "getGrantById",
|
|
183
|
+
value: function getGrantById(grantId, opts) {
|
|
184
|
+
return this.getGrantByIdWithHttpInfo(grantId, opts).then(function (response_and_data) {
|
|
185
|
+
return response_and_data.data;
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Get a hold by id
|
|
191
|
+
* @param {Number} holdId
|
|
192
|
+
* @param {Object} opts Optional parameters
|
|
193
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
194
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
195
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
196
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
197
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
198
|
+
* @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)
|
|
199
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
200
|
+
* @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
|
|
201
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
202
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
203
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletHoldResponse} and HTTP response
|
|
204
|
+
*/
|
|
205
|
+
}, {
|
|
206
|
+
key: "getHoldByIdWithHttpInfo",
|
|
207
|
+
value: function getHoldByIdWithHttpInfo(holdId, opts) {
|
|
208
|
+
opts = opts || {};
|
|
209
|
+
var postBody = null;
|
|
210
|
+
// verify the required parameter 'holdId' is set
|
|
211
|
+
if (holdId === undefined || holdId === null) {
|
|
212
|
+
throw new Error("Missing the required parameter 'holdId' when calling getHoldById");
|
|
213
|
+
}
|
|
214
|
+
var pathParams = {
|
|
215
|
+
'holdId': holdId
|
|
216
|
+
};
|
|
217
|
+
var queryParams = {};
|
|
218
|
+
var headerParams = {
|
|
219
|
+
'Authorization': opts['authorization'],
|
|
220
|
+
'cacheduration': opts['cacheduration'],
|
|
221
|
+
'cachegroup': opts['cachegroup'],
|
|
222
|
+
'cachekey': opts['cachekey'],
|
|
223
|
+
'cachescope': opts['cachescope'],
|
|
224
|
+
'cacheuser': opts['cacheuser'],
|
|
225
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
226
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
227
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
228
|
+
'transactionid': opts['transactionid']
|
|
229
|
+
};
|
|
230
|
+
var formParams = {};
|
|
231
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
232
|
+
var contentTypes = [];
|
|
233
|
+
var accepts = ['application/json'];
|
|
234
|
+
var returnType = _WalletHoldResponse["default"];
|
|
235
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/hold/{holdId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Get a hold by id
|
|
240
|
+
* @param {Number} holdId
|
|
241
|
+
* @param {Object} opts Optional parameters
|
|
242
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
243
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
244
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
245
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
246
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
247
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
248
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
249
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
250
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
251
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
252
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletHoldResponse}
|
|
253
|
+
*/
|
|
254
|
+
}, {
|
|
255
|
+
key: "getHoldById",
|
|
256
|
+
value: function getHoldById(holdId, opts) {
|
|
257
|
+
return this.getHoldByIdWithHttpInfo(holdId, opts).then(function (response_and_data) {
|
|
258
|
+
return response_and_data.data;
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Get a purchase by id
|
|
264
|
+
* @param {Number} purchaseId
|
|
265
|
+
* @param {Object} opts Optional parameters
|
|
266
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
267
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
268
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
269
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
270
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
271
|
+
* @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)
|
|
272
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
273
|
+
* @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
|
|
274
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
275
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
276
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurchaseResponse} and HTTP response
|
|
277
|
+
*/
|
|
278
|
+
}, {
|
|
279
|
+
key: "getPurchaseByIdWithHttpInfo",
|
|
280
|
+
value: function getPurchaseByIdWithHttpInfo(purchaseId, opts) {
|
|
281
|
+
opts = opts || {};
|
|
282
|
+
var postBody = null;
|
|
283
|
+
// verify the required parameter 'purchaseId' is set
|
|
284
|
+
if (purchaseId === undefined || purchaseId === null) {
|
|
285
|
+
throw new Error("Missing the required parameter 'purchaseId' when calling getPurchaseById");
|
|
286
|
+
}
|
|
287
|
+
var pathParams = {
|
|
288
|
+
'purchaseId': purchaseId
|
|
289
|
+
};
|
|
290
|
+
var queryParams = {};
|
|
291
|
+
var headerParams = {
|
|
292
|
+
'Authorization': opts['authorization'],
|
|
293
|
+
'cacheduration': opts['cacheduration'],
|
|
294
|
+
'cachegroup': opts['cachegroup'],
|
|
295
|
+
'cachekey': opts['cachekey'],
|
|
296
|
+
'cachescope': opts['cachescope'],
|
|
297
|
+
'cacheuser': opts['cacheuser'],
|
|
298
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
299
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
300
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
301
|
+
'transactionid': opts['transactionid']
|
|
302
|
+
};
|
|
303
|
+
var formParams = {};
|
|
304
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
305
|
+
var contentTypes = [];
|
|
306
|
+
var accepts = ['application/json'];
|
|
307
|
+
var returnType = _PurchaseResponse["default"];
|
|
308
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/purchase/{purchaseId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Get a purchase by id
|
|
313
|
+
* @param {Number} purchaseId
|
|
314
|
+
* @param {Object} opts Optional parameters
|
|
315
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
316
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
317
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
318
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
319
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
320
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
321
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
322
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
323
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
324
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
325
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurchaseResponse}
|
|
326
|
+
*/
|
|
327
|
+
}, {
|
|
328
|
+
key: "getPurchaseById",
|
|
329
|
+
value: function getPurchaseById(purchaseId, opts) {
|
|
330
|
+
return this.getPurchaseByIdWithHttpInfo(purchaseId, opts).then(function (response_and_data) {
|
|
331
|
+
return response_and_data.data;
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Get a transfer by id
|
|
337
|
+
* @param {Number} transferId
|
|
338
|
+
* @param {Object} opts Optional parameters
|
|
339
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
340
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
341
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
342
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
343
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
344
|
+
* @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)
|
|
345
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
346
|
+
* @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
|
|
347
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
348
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
349
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransferResponse} and HTTP response
|
|
350
|
+
*/
|
|
351
|
+
}, {
|
|
352
|
+
key: "getTransferByIdWithHttpInfo",
|
|
353
|
+
value: function getTransferByIdWithHttpInfo(transferId, opts) {
|
|
354
|
+
opts = opts || {};
|
|
355
|
+
var postBody = null;
|
|
356
|
+
// verify the required parameter 'transferId' is set
|
|
357
|
+
if (transferId === undefined || transferId === null) {
|
|
358
|
+
throw new Error("Missing the required parameter 'transferId' when calling getTransferById");
|
|
359
|
+
}
|
|
360
|
+
var pathParams = {
|
|
361
|
+
'transferId': transferId
|
|
362
|
+
};
|
|
363
|
+
var queryParams = {};
|
|
364
|
+
var headerParams = {
|
|
365
|
+
'Authorization': opts['authorization'],
|
|
366
|
+
'cacheduration': opts['cacheduration'],
|
|
367
|
+
'cachegroup': opts['cachegroup'],
|
|
368
|
+
'cachekey': opts['cachekey'],
|
|
369
|
+
'cachescope': opts['cachescope'],
|
|
370
|
+
'cacheuser': opts['cacheuser'],
|
|
371
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
372
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
373
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
374
|
+
'transactionid': opts['transactionid']
|
|
375
|
+
};
|
|
376
|
+
var formParams = {};
|
|
377
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
378
|
+
var contentTypes = [];
|
|
379
|
+
var accepts = ['application/json'];
|
|
380
|
+
var returnType = _TransferResponse["default"];
|
|
381
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/transfer/{transferId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Get a transfer by id
|
|
386
|
+
* @param {Number} transferId
|
|
387
|
+
* @param {Object} opts Optional parameters
|
|
388
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
389
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
390
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
391
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
392
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
393
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
394
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
395
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
396
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
397
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
398
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransferResponse}
|
|
399
|
+
*/
|
|
400
|
+
}, {
|
|
401
|
+
key: "getTransferById",
|
|
402
|
+
value: function getTransferById(transferId, opts) {
|
|
403
|
+
return this.getTransferByIdWithHttpInfo(transferId, opts).then(function (response_and_data) {
|
|
404
|
+
return response_and_data.data;
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Get the balance of a wallet
|
|
410
|
+
* @param {Number} walletId
|
|
411
|
+
* @param {Object} opts Optional parameters
|
|
412
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
413
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
414
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
415
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
416
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
417
|
+
* @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)
|
|
418
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
419
|
+
* @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
|
|
420
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
421
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
422
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BalanceResponse} and HTTP response
|
|
423
|
+
*/
|
|
424
|
+
}, {
|
|
425
|
+
key: "getWalletBalanceWithHttpInfo",
|
|
426
|
+
value: function getWalletBalanceWithHttpInfo(walletId, opts) {
|
|
427
|
+
opts = opts || {};
|
|
428
|
+
var postBody = null;
|
|
429
|
+
// verify the required parameter 'walletId' is set
|
|
430
|
+
if (walletId === undefined || walletId === null) {
|
|
431
|
+
throw new Error("Missing the required parameter 'walletId' when calling getWalletBalance");
|
|
432
|
+
}
|
|
433
|
+
var pathParams = {
|
|
434
|
+
'walletId': walletId
|
|
435
|
+
};
|
|
436
|
+
var queryParams = {};
|
|
437
|
+
var headerParams = {
|
|
438
|
+
'Authorization': opts['authorization'],
|
|
439
|
+
'cacheduration': opts['cacheduration'],
|
|
440
|
+
'cachegroup': opts['cachegroup'],
|
|
441
|
+
'cachekey': opts['cachekey'],
|
|
442
|
+
'cachescope': opts['cachescope'],
|
|
443
|
+
'cacheuser': opts['cacheuser'],
|
|
444
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
445
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
446
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
447
|
+
'transactionid': opts['transactionid']
|
|
448
|
+
};
|
|
449
|
+
var formParams = {};
|
|
450
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
451
|
+
var contentTypes = [];
|
|
452
|
+
var accepts = ['application/json'];
|
|
453
|
+
var returnType = _BalanceResponse["default"];
|
|
454
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/wallet/{walletId}/balance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Get the balance of a wallet
|
|
459
|
+
* @param {Number} walletId
|
|
460
|
+
* @param {Object} opts Optional parameters
|
|
461
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
462
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
463
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
464
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
465
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
466
|
+
* @param {Array.<String>} opts.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} opts.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} opts.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} opts.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} opts.transactionid The id of the transaction this operation is being run in
|
|
471
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BalanceResponse}
|
|
472
|
+
*/
|
|
473
|
+
}, {
|
|
474
|
+
key: "getWalletBalance",
|
|
475
|
+
value: function getWalletBalance(walletId, opts) {
|
|
476
|
+
return this.getWalletBalanceWithHttpInfo(walletId, opts).then(function (response_and_data) {
|
|
477
|
+
return response_and_data.data;
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Get a wallet by id
|
|
483
|
+
* @param {Number} walletId
|
|
484
|
+
* @param {Object} opts Optional parameters
|
|
485
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
486
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
487
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
488
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
489
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
490
|
+
* @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)
|
|
491
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
492
|
+
* @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
|
|
493
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
494
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
495
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletResponse} and HTTP response
|
|
496
|
+
*/
|
|
497
|
+
}, {
|
|
498
|
+
key: "getWalletByIdWithHttpInfo",
|
|
499
|
+
value: function getWalletByIdWithHttpInfo(walletId, opts) {
|
|
500
|
+
opts = opts || {};
|
|
501
|
+
var postBody = null;
|
|
502
|
+
// verify the required parameter 'walletId' is set
|
|
503
|
+
if (walletId === undefined || walletId === null) {
|
|
504
|
+
throw new Error("Missing the required parameter 'walletId' when calling getWalletById");
|
|
505
|
+
}
|
|
506
|
+
var pathParams = {
|
|
507
|
+
'walletId': walletId
|
|
508
|
+
};
|
|
509
|
+
var queryParams = {};
|
|
510
|
+
var headerParams = {
|
|
511
|
+
'Authorization': opts['authorization'],
|
|
512
|
+
'cacheduration': opts['cacheduration'],
|
|
513
|
+
'cachegroup': opts['cachegroup'],
|
|
514
|
+
'cachekey': opts['cachekey'],
|
|
515
|
+
'cachescope': opts['cachescope'],
|
|
516
|
+
'cacheuser': opts['cacheuser'],
|
|
517
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
518
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
519
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
520
|
+
'transactionid': opts['transactionid']
|
|
521
|
+
};
|
|
522
|
+
var formParams = {};
|
|
523
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
524
|
+
var contentTypes = [];
|
|
525
|
+
var accepts = ['application/json'];
|
|
526
|
+
var returnType = _WalletResponse["default"];
|
|
527
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/wallet/{walletId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Get a wallet by id
|
|
532
|
+
* @param {Number} walletId
|
|
533
|
+
* @param {Object} opts Optional parameters
|
|
534
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
535
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
536
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
537
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
538
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
539
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
540
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
541
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
542
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
543
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
544
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletResponse}
|
|
545
|
+
*/
|
|
546
|
+
}, {
|
|
547
|
+
key: "getWalletById",
|
|
548
|
+
value: function getWalletById(walletId, opts) {
|
|
549
|
+
return this.getWalletByIdWithHttpInfo(walletId, opts).then(function (response_and_data) {
|
|
550
|
+
return response_and_data.data;
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Get all wallets
|
|
556
|
+
* @param {Object} opts Optional parameters
|
|
557
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
558
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
559
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
560
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
561
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
562
|
+
* @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)
|
|
563
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
564
|
+
* @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
|
|
565
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
566
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
567
|
+
* @param {Number} [currencyid]
|
|
568
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/WalletResponse>} and HTTP response
|
|
569
|
+
*/
|
|
570
|
+
}, {
|
|
571
|
+
key: "getWalletsWithHttpInfo",
|
|
572
|
+
value: function getWalletsWithHttpInfo(opts) {
|
|
573
|
+
opts = opts || {};
|
|
574
|
+
var postBody = null;
|
|
575
|
+
var pathParams = {};
|
|
576
|
+
var queryParams = {
|
|
577
|
+
'currencyid': opts['currencyid']
|
|
578
|
+
};
|
|
579
|
+
var headerParams = {
|
|
580
|
+
'Authorization': opts['authorization'],
|
|
581
|
+
'cacheduration': opts['cacheduration'],
|
|
582
|
+
'cachegroup': opts['cachegroup'],
|
|
583
|
+
'cachekey': opts['cachekey'],
|
|
584
|
+
'cachescope': opts['cachescope'],
|
|
585
|
+
'cacheuser': opts['cacheuser'],
|
|
586
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
587
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
588
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
589
|
+
'transactionid': opts['transactionid']
|
|
590
|
+
};
|
|
591
|
+
var formParams = {};
|
|
592
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
593
|
+
var contentTypes = [];
|
|
594
|
+
var accepts = ['application/json'];
|
|
595
|
+
var returnType = [_WalletResponse["default"]];
|
|
596
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/wallet', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Get all wallets
|
|
601
|
+
* @param {Object} opts Optional parameters
|
|
602
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
603
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
604
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
605
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
606
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
607
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
608
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
609
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
610
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
611
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
612
|
+
* @param {Number} opts.currencyid
|
|
613
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/WalletResponse>}
|
|
614
|
+
*/
|
|
615
|
+
}, {
|
|
616
|
+
key: "getWallets",
|
|
617
|
+
value: function getWallets(opts) {
|
|
618
|
+
return this.getWalletsWithHttpInfo(opts).then(function (response_and_data) {
|
|
619
|
+
return response_and_data.data;
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Grant currency to a user
|
|
625
|
+
* @param {Object} opts Optional parameters
|
|
626
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
627
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
628
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
629
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
630
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
631
|
+
* @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)
|
|
632
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
633
|
+
* @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
|
|
634
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
635
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
636
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CurrencyGrantResponse} and HTTP response
|
|
637
|
+
*/
|
|
638
|
+
}, {
|
|
639
|
+
key: "grantCurrencyWithHttpInfo",
|
|
640
|
+
value: function grantCurrencyWithHttpInfo(opts) {
|
|
641
|
+
opts = opts || {};
|
|
642
|
+
var postBody = null;
|
|
643
|
+
var pathParams = {};
|
|
644
|
+
var queryParams = {};
|
|
645
|
+
var headerParams = {
|
|
646
|
+
'Authorization': opts['authorization'],
|
|
647
|
+
'cacheduration': opts['cacheduration'],
|
|
648
|
+
'cachegroup': opts['cachegroup'],
|
|
649
|
+
'cachekey': opts['cachekey'],
|
|
650
|
+
'cachescope': opts['cachescope'],
|
|
651
|
+
'cacheuser': opts['cacheuser'],
|
|
652
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
653
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
654
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
655
|
+
'transactionid': opts['transactionid']
|
|
656
|
+
};
|
|
657
|
+
var formParams = {};
|
|
658
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
659
|
+
var contentTypes = [];
|
|
660
|
+
var accepts = ['application/json'];
|
|
661
|
+
var returnType = _CurrencyGrantResponse["default"];
|
|
662
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/grant', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Grant currency to a user
|
|
667
|
+
* @param {Object} opts Optional parameters
|
|
668
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
669
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
670
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
671
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
672
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
673
|
+
* @param {Array.<String>} opts.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} opts.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} opts.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} opts.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} opts.transactionid The id of the transaction this operation is being run in
|
|
678
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CurrencyGrantResponse}
|
|
679
|
+
*/
|
|
680
|
+
}, {
|
|
681
|
+
key: "grantCurrency",
|
|
682
|
+
value: function grantCurrency(opts) {
|
|
683
|
+
return this.grantCurrencyWithHttpInfo(opts).then(function (response_and_data) {
|
|
684
|
+
return response_and_data.data;
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Payout to the wallet to the logged in user's cash balance
|
|
690
|
+
* @param {Object} opts Optional parameters
|
|
691
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
692
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
693
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
694
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
695
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
696
|
+
* @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)
|
|
697
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
698
|
+
* @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
|
|
699
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
700
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
701
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletPayoutResponse} and HTTP response
|
|
702
|
+
*/
|
|
703
|
+
}, {
|
|
704
|
+
key: "payoutWalletWithHttpInfo",
|
|
705
|
+
value: function payoutWalletWithHttpInfo(opts) {
|
|
706
|
+
opts = opts || {};
|
|
707
|
+
var postBody = null;
|
|
708
|
+
var pathParams = {};
|
|
709
|
+
var queryParams = {};
|
|
710
|
+
var headerParams = {
|
|
711
|
+
'Authorization': opts['authorization'],
|
|
712
|
+
'cacheduration': opts['cacheduration'],
|
|
713
|
+
'cachegroup': opts['cachegroup'],
|
|
714
|
+
'cachekey': opts['cachekey'],
|
|
715
|
+
'cachescope': opts['cachescope'],
|
|
716
|
+
'cacheuser': opts['cacheuser'],
|
|
717
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
718
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
719
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
720
|
+
'transactionid': opts['transactionid']
|
|
721
|
+
};
|
|
722
|
+
var formParams = {};
|
|
723
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
724
|
+
var contentTypes = [];
|
|
725
|
+
var accepts = ['application/json'];
|
|
726
|
+
var returnType = _WalletPayoutResponse["default"];
|
|
727
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/payout', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Payout to the wallet to the logged in user's cash balance
|
|
732
|
+
* @param {Object} opts Optional parameters
|
|
733
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
734
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
735
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
736
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
737
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
738
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
739
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
740
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
741
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
742
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
743
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletPayoutResponse}
|
|
744
|
+
*/
|
|
745
|
+
}, {
|
|
746
|
+
key: "payoutWallet",
|
|
747
|
+
value: function payoutWallet(opts) {
|
|
748
|
+
return this.payoutWalletWithHttpInfo(opts).then(function (response_and_data) {
|
|
749
|
+
return response_and_data.data;
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Purchase an item
|
|
755
|
+
* @param {Object} opts Optional parameters
|
|
756
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
757
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
758
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
759
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
760
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
761
|
+
* @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)
|
|
762
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
763
|
+
* @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
|
|
764
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
765
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
766
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurchaseResponse} and HTTP response
|
|
767
|
+
*/
|
|
768
|
+
}, {
|
|
769
|
+
key: "purchaseCurrencyWithHttpInfo",
|
|
770
|
+
value: function purchaseCurrencyWithHttpInfo(opts) {
|
|
771
|
+
opts = opts || {};
|
|
772
|
+
var postBody = null;
|
|
773
|
+
var pathParams = {};
|
|
774
|
+
var queryParams = {};
|
|
775
|
+
var headerParams = {
|
|
776
|
+
'Authorization': opts['authorization'],
|
|
777
|
+
'cacheduration': opts['cacheduration'],
|
|
778
|
+
'cachegroup': opts['cachegroup'],
|
|
779
|
+
'cachekey': opts['cachekey'],
|
|
780
|
+
'cachescope': opts['cachescope'],
|
|
781
|
+
'cacheuser': opts['cacheuser'],
|
|
782
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
783
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
784
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
785
|
+
'transactionid': opts['transactionid']
|
|
786
|
+
};
|
|
787
|
+
var formParams = {};
|
|
788
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
789
|
+
var contentTypes = [];
|
|
790
|
+
var accepts = ['application/json'];
|
|
791
|
+
var returnType = _PurchaseResponse["default"];
|
|
792
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/purchase', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Purchase an item
|
|
797
|
+
* @param {Object} opts Optional parameters
|
|
798
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
799
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
800
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
801
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
802
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
803
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
804
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
805
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
806
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
807
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
808
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurchaseResponse}
|
|
809
|
+
*/
|
|
810
|
+
}, {
|
|
811
|
+
key: "purchaseCurrency",
|
|
812
|
+
value: function purchaseCurrency(opts) {
|
|
813
|
+
return this.purchaseCurrencyWithHttpInfo(opts).then(function (response_and_data) {
|
|
814
|
+
return response_and_data.data;
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Transfer funds between wallets
|
|
820
|
+
* @param {Object} opts Optional parameters
|
|
821
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
822
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
823
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
824
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
825
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
826
|
+
* @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)
|
|
827
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
828
|
+
* @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
|
|
829
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
830
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
831
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransferResponse} and HTTP response
|
|
832
|
+
*/
|
|
833
|
+
}, {
|
|
834
|
+
key: "walletTransferWithHttpInfo",
|
|
835
|
+
value: function walletTransferWithHttpInfo(opts) {
|
|
836
|
+
opts = opts || {};
|
|
837
|
+
var postBody = null;
|
|
838
|
+
var pathParams = {};
|
|
839
|
+
var queryParams = {};
|
|
840
|
+
var headerParams = {
|
|
841
|
+
'Authorization': opts['authorization'],
|
|
842
|
+
'cacheduration': opts['cacheduration'],
|
|
843
|
+
'cachegroup': opts['cachegroup'],
|
|
844
|
+
'cachekey': opts['cachekey'],
|
|
845
|
+
'cachescope': opts['cachescope'],
|
|
846
|
+
'cacheuser': opts['cacheuser'],
|
|
847
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
848
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
849
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
850
|
+
'transactionid': opts['transactionid']
|
|
851
|
+
};
|
|
852
|
+
var formParams = {};
|
|
853
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
854
|
+
var contentTypes = [];
|
|
855
|
+
var accepts = ['application/json'];
|
|
856
|
+
var returnType = _TransferResponse["default"];
|
|
857
|
+
return this.apiClient.callApi('/graph/data/payments/wallets/transfer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Transfer funds between wallets
|
|
862
|
+
* @param {Object} opts Optional parameters
|
|
863
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
864
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
865
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
866
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
867
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
868
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
869
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
870
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
871
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
872
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
873
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransferResponse}
|
|
874
|
+
*/
|
|
875
|
+
}, {
|
|
876
|
+
key: "walletTransfer",
|
|
877
|
+
value: function walletTransfer(opts) {
|
|
878
|
+
return this.walletTransferWithHttpInfo(opts).then(function (response_and_data) {
|
|
879
|
+
return response_and_data.data;
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
}]);
|
|
883
|
+
return WalletsApi;
|
|
884
|
+
}();
|