@gobodo/gobodo-api-promise 0.1.34

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 (188) hide show
  1. package/README.md +794 -0
  2. package/dist/ApiClient.js +720 -0
  3. package/dist/api/ActionTypesApi.js +113 -0
  4. package/dist/api/AdCampaignsApi.js +500 -0
  5. package/dist/api/AdManagementApi.js +722 -0
  6. package/dist/api/AdminDataManagementApi.js +111 -0
  7. package/dist/api/AdsApi.js +384 -0
  8. package/dist/api/AttachmentsApi.js +465 -0
  9. package/dist/api/AuthenticationApi.js +418 -0
  10. package/dist/api/CategoriesApi.js +451 -0
  11. package/dist/api/CommentsApi.js +520 -0
  12. package/dist/api/ContentManagementApi.js +1491 -0
  13. package/dist/api/ConversationsApi.js +559 -0
  14. package/dist/api/DataSheetImportsApi.js +1066 -0
  15. package/dist/api/DefaultApi.js +696 -0
  16. package/dist/api/DocumentsApi.js +807 -0
  17. package/dist/api/EntryPartsApi.js +847 -0
  18. package/dist/api/FacebookApi.js +88 -0
  19. package/dist/api/FieldsApi.js +243 -0
  20. package/dist/api/FilesApi.js +116 -0
  21. package/dist/api/FormsApi.js +1136 -0
  22. package/dist/api/FunctionsApi.js +111 -0
  23. package/dist/api/GeocodeApi.js +340 -0
  24. package/dist/api/GoogleApi.js +88 -0
  25. package/dist/api/GraphActionsApi.js +674 -0
  26. package/dist/api/GraphObjectTypesApi.js +527 -0
  27. package/dist/api/GraphObjectsApi.js +4026 -0
  28. package/dist/api/GraphRelationshipTypesApi.js +1055 -0
  29. package/dist/api/GraphRelationshipsApi.js +1921 -0
  30. package/dist/api/GraphSchemasApi.js +459 -0
  31. package/dist/api/GraphTraversalApi.js +415 -0
  32. package/dist/api/GraphsApi.js +716 -0
  33. package/dist/api/GroupsApi.js +731 -0
  34. package/dist/api/IAMApi.js +268 -0
  35. package/dist/api/ImagesApi.js +535 -0
  36. package/dist/api/InvitesApi.js +339 -0
  37. package/dist/api/LikesApi.js +785 -0
  38. package/dist/api/LinkedINApi.js +88 -0
  39. package/dist/api/LiveMeetingsApi.js +175 -0
  40. package/dist/api/MeetingEventsApi.js +358 -0
  41. package/dist/api/PagesApi.js +605 -0
  42. package/dist/api/PostsApi.js +330 -0
  43. package/dist/api/PrivateMessagesApi.js +965 -0
  44. package/dist/api/PublicationsApi.js +103 -0
  45. package/dist/api/ScreensApi.js +224 -0
  46. package/dist/api/SocialIntegrationApi.js +214 -0
  47. package/dist/api/StripeAccountsApi.js +2309 -0
  48. package/dist/api/TagsApi.js +111 -0
  49. package/dist/api/TemplatesApi.js +224 -0
  50. package/dist/api/ThemeMappingsApi.js +219 -0
  51. package/dist/api/TransactionsApi.js +161 -0
  52. package/dist/api/TwitterApi.js +88 -0
  53. package/dist/api/UserTagsApi.js +592 -0
  54. package/dist/api/UsersApi.js +591 -0
  55. package/dist/api/UtilsApi.js +80 -0
  56. package/dist/api/VideosApi.js +709 -0
  57. package/dist/index.js +1301 -0
  58. package/dist/model/APIClient.js +354 -0
  59. package/dist/model/AccountSessionInput.js +222 -0
  60. package/dist/model/AccountSessionResponse.js +171 -0
  61. package/dist/model/ApplicationPaymentAccountResponse.js +185 -0
  62. package/dist/model/ApplicationPaymentAccountResponseFailureException.js +265 -0
  63. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCause.js +234 -0
  64. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseStackTraceInner.js +303 -0
  65. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseSuppressedInner.js +187 -0
  66. package/dist/model/Article.js +668 -0
  67. package/dist/model/Authorization.js +166 -0
  68. package/dist/model/Balance.js +267 -0
  69. package/dist/model/BalanceDetails.js +164 -0
  70. package/dist/model/BalanceResponse.js +139 -0
  71. package/dist/model/BankAccountInfo.js +232 -0
  72. package/dist/model/CardInfo.js +213 -0
  73. package/dist/model/Comment.js +495 -0
  74. package/dist/model/Coordinates.js +129 -0
  75. package/dist/model/CreateAccountResponse.js +233 -0
  76. package/dist/model/CreateStripeAccountInput.js +216 -0
  77. package/dist/model/CreateStripeCustomerInput.js +195 -0
  78. package/dist/model/CustomerResponse.js +168 -0
  79. package/dist/model/DataObject.js +129 -0
  80. package/dist/model/DataSheetImport.js +732 -0
  81. package/dist/model/DataSheetImportPrivacySettings.js +154 -0
  82. package/dist/model/DataSheetImportSummary.js +206 -0
  83. package/dist/model/Document.js +743 -0
  84. package/dist/model/DocumentPart.js +612 -0
  85. package/dist/model/DocumentPartType.js +358 -0
  86. package/dist/model/DocumentType.js +458 -0
  87. package/dist/model/FieldMapping.js +185 -0
  88. package/dist/model/Fields.js +737 -0
  89. package/dist/model/File.js +341 -0
  90. package/dist/model/FileAttachmentUploadObject.js +341 -0
  91. package/dist/model/Filter.js +137 -0
  92. package/dist/model/FilterManager.js +154 -0
  93. package/dist/model/Form.js +393 -0
  94. package/dist/model/FormSection.js +304 -0
  95. package/dist/model/FormSubmission.js +238 -0
  96. package/dist/model/Geocode.js +191 -0
  97. package/dist/model/GeocodePayload.js +141 -0
  98. package/dist/model/GeolocationInput.js +216 -0
  99. package/dist/model/Graph.js +499 -0
  100. package/dist/model/GraphAction.js +298 -0
  101. package/dist/model/GraphDatabaseService.js +254 -0
  102. package/dist/model/GraphGeocode.js +282 -0
  103. package/dist/model/GraphIteratorEntryPart.js +129 -0
  104. package/dist/model/GraphObject.js +454 -0
  105. package/dist/model/GraphObjectPayload.js +430 -0
  106. package/dist/model/GraphObjectSchema.js +545 -0
  107. package/dist/model/GraphObjectType.js +626 -0
  108. package/dist/model/GraphObjectTypeSchema.js +645 -0
  109. package/dist/model/GraphOwner.js +158 -0
  110. package/dist/model/GraphRelationObjectObject.js +273 -0
  111. package/dist/model/GraphRelationship.js +301 -0
  112. package/dist/model/GraphRelationshipPayload.js +214 -0
  113. package/dist/model/GraphRelationshipType.js +675 -0
  114. package/dist/model/GraphSchema.js +645 -0
  115. package/dist/model/GraphTraversalInput.js +1125 -0
  116. package/dist/model/Image.js +449 -0
  117. package/dist/model/ImageUploadObject.js +449 -0
  118. package/dist/model/InputPart.js +191 -0
  119. package/dist/model/InputPartMediaType.js +214 -0
  120. package/dist/model/Link.js +305 -0
  121. package/dist/model/LiveStreamInfo.js +167 -0
  122. package/dist/model/MeetingEvent.js +591 -0
  123. package/dist/model/MeetingEventTimezone.js +187 -0
  124. package/dist/model/MeetingInfo.js +220 -0
  125. package/dist/model/Member.js +525 -0
  126. package/dist/model/MemberGroupCategory.js +237 -0
  127. package/dist/model/MemberList.js +96 -0
  128. package/dist/model/MessageGroup.js +160 -0
  129. package/dist/model/MultipartBody.js +133 -0
  130. package/dist/model/Objecttype.js +615 -0
  131. package/dist/model/Page.js +370 -0
  132. package/dist/model/PageSchema.js +482 -0
  133. package/dist/model/Pageable.js +235 -0
  134. package/dist/model/Path.js +110 -0
  135. package/dist/model/PaymentAccountObject.js +209 -0
  136. package/dist/model/PaymentIntentInput.js +214 -0
  137. package/dist/model/PaymentIntentResponse.js +137 -0
  138. package/dist/model/PaymentMethod.js +319 -0
  139. package/dist/model/PaymentMethodInput.js +291 -0
  140. package/dist/model/PaymentMethodResponse.js +139 -0
  141. package/dist/model/PaymentMethodsResponse.js +158 -0
  142. package/dist/model/Payout.js +313 -0
  143. package/dist/model/PayoutInput.js +347 -0
  144. package/dist/model/PayoutResponse.js +142 -0
  145. package/dist/model/Post.js +368 -0
  146. package/dist/model/PrivateMessage.js +494 -0
  147. package/dist/model/PrivateMessageConversation.js +520 -0
  148. package/dist/model/PrivateMessageConversationSchema.js +268 -0
  149. package/dist/model/Profile.js +191 -0
  150. package/dist/model/Profiletype.js +210 -0
  151. package/dist/model/PropertyContainer.js +162 -0
  152. package/dist/model/PurgeDataDefaultResponseValue.js +151 -0
  153. package/dist/model/RelationshipMapping.js +264 -0
  154. package/dist/model/ScreenSchema.js +834 -0
  155. package/dist/model/SimulcastInfo.js +175 -0
  156. package/dist/model/SkinField.js +737 -0
  157. package/dist/model/SocialGroup.js +602 -0
  158. package/dist/model/SocialGroupType.js +327 -0
  159. package/dist/model/Sort.js +154 -0
  160. package/dist/model/SourceTypes.js +154 -0
  161. package/dist/model/StatusUpdate.js +312 -0
  162. package/dist/model/StreetAddress.js +224 -0
  163. package/dist/model/StripeAccount.js +272 -0
  164. package/dist/model/StripeCustomerAccount.js +212 -0
  165. package/dist/model/Template.js +272 -0
  166. package/dist/model/TemplateSchema.js +300 -0
  167. package/dist/model/ThemeMapping.js +245 -0
  168. package/dist/model/ThemeMappingPayload.js +239 -0
  169. package/dist/model/Transaction.js +137 -0
  170. package/dist/model/Transfer.js +286 -0
  171. package/dist/model/TransferInput.js +288 -0
  172. package/dist/model/TransferResponse.js +173 -0
  173. package/dist/model/TransferResponsePaymentMethodDetails.js +286 -0
  174. package/dist/model/TraversalRelationResponse.js +176 -0
  175. package/dist/model/User.js +525 -0
  176. package/dist/model/UserDataPayload.js +525 -0
  177. package/dist/model/UserDomain.js +191 -0
  178. package/dist/model/UserInvite.js +404 -0
  179. package/dist/model/UserInviteInput.js +245 -0
  180. package/dist/model/UserSchema.js +525 -0
  181. package/dist/model/UserTag.js +246 -0
  182. package/dist/model/Userid.js +133 -0
  183. package/dist/model/Video.js +632 -0
  184. package/dist/model/VideoLiveUrl.js +137 -0
  185. package/dist/model/VideoSchema.js +717 -0
  186. package/dist/model/VideoUploadObject.js +632 -0
  187. package/dist/model/ZeusPortalCategory.js +434 -0
  188. package/package.json +46 -0
@@ -0,0 +1,2309 @@
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 _AccountSessionInput = _interopRequireDefault(require("../model/AccountSessionInput"));
9
+ var _AccountSessionResponse = _interopRequireDefault(require("../model/AccountSessionResponse"));
10
+ var _ApplicationPaymentAccountResponse = _interopRequireDefault(require("../model/ApplicationPaymentAccountResponse"));
11
+ var _BalanceResponse = _interopRequireDefault(require("../model/BalanceResponse"));
12
+ var _CreateAccountResponse = _interopRequireDefault(require("../model/CreateAccountResponse"));
13
+ var _CreateStripeAccountInput = _interopRequireDefault(require("../model/CreateStripeAccountInput"));
14
+ var _CreateStripeCustomerInput = _interopRequireDefault(require("../model/CreateStripeCustomerInput"));
15
+ var _CustomerResponse = _interopRequireDefault(require("../model/CustomerResponse"));
16
+ var _PaymentIntentInput = _interopRequireDefault(require("../model/PaymentIntentInput"));
17
+ var _PaymentIntentResponse = _interopRequireDefault(require("../model/PaymentIntentResponse"));
18
+ var _PaymentMethodInput = _interopRequireDefault(require("../model/PaymentMethodInput"));
19
+ var _PaymentMethodResponse = _interopRequireDefault(require("../model/PaymentMethodResponse"));
20
+ var _PaymentMethodsResponse = _interopRequireDefault(require("../model/PaymentMethodsResponse"));
21
+ var _PayoutInput = _interopRequireDefault(require("../model/PayoutInput"));
22
+ var _PayoutResponse = _interopRequireDefault(require("../model/PayoutResponse"));
23
+ var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
24
+ var _TransferInput = _interopRequireDefault(require("../model/TransferInput"));
25
+ var _TransferResponse = _interopRequireDefault(require("../model/TransferResponse"));
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+ 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); }
28
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
+ 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); } }
30
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
32
+ 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); } /**
33
+ * gobodo-api
34
+ * REST Interface for Gobodo API
35
+ *
36
+ * The version of the OpenAPI document: 0.1.34
37
+ * Contact: info@gobodo.io
38
+ *
39
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
40
+ * https://openapi-generator.tech
41
+ * Do not edit the class manually.
42
+ *
43
+ */
44
+ /**
45
+ * StripeAccounts service.
46
+ * @module api/StripeAccountsApi
47
+ * @version 0.1.34
48
+ */
49
+ var StripeAccountsApi = exports["default"] = /*#__PURE__*/function () {
50
+ /**
51
+ * Constructs a new StripeAccountsApi.
52
+ * @alias module:api/StripeAccountsApi
53
+ * @class
54
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
55
+ * default to {@link module:ApiClient#instance} if unspecified.
56
+ */
57
+ function StripeAccountsApi(apiClient) {
58
+ _classCallCheck(this, StripeAccountsApi);
59
+ this.apiClient = apiClient || _ApiClient["default"].instance;
60
+ }
61
+
62
+ /**
63
+ * Adds payment methods for the customer stored in stripe
64
+ * Retrieves the payment methods for the customer stored in stripe
65
+ * @param {Object} opts Optional parameters
66
+ * @param {String} [authorization] The authorization token of the logged in user
67
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
68
+ * @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
69
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
70
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
71
+ * @param {module:model/PaymentMethodInput} [paymentMethodInput]
72
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
73
+ */
74
+ _createClass(StripeAccountsApi, [{
75
+ key: "addStripePaymentMethodWithHttpInfo",
76
+ value: function addStripePaymentMethodWithHttpInfo(opts) {
77
+ opts = opts || {};
78
+ var postBody = opts['paymentMethodInput'];
79
+ var pathParams = {};
80
+ var queryParams = {};
81
+ var headerParams = {
82
+ 'Authorization': opts['authorization'],
83
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
84
+ 'zeusportal-postas': opts['zeusportalPostas'],
85
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
86
+ 'transactionid': opts['transactionid']
87
+ };
88
+ var formParams = {};
89
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
90
+ var contentTypes = ['application/json'];
91
+ var accepts = ['application/json'];
92
+ var returnType = _PaymentMethodResponse["default"];
93
+ return this.apiClient.callApi('/graph/data/payments/stripe/paymentmethods', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
94
+ }
95
+
96
+ /**
97
+ * Adds payment methods for the customer stored in stripe
98
+ * Retrieves the payment methods for the customer stored in stripe
99
+ * @param {Object} opts Optional parameters
100
+ * @param {String} opts.authorization The authorization token of the logged in user
101
+ * @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
102
+ * @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
103
+ * @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
104
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
105
+ * @param {module:model/PaymentMethodInput} opts.paymentMethodInput
106
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
107
+ */
108
+ }, {
109
+ key: "addStripePaymentMethod",
110
+ value: function addStripePaymentMethod(opts) {
111
+ return this.addStripePaymentMethodWithHttpInfo(opts).then(function (response_and_data) {
112
+ return response_and_data.data;
113
+ });
114
+ }
115
+
116
+ /**
117
+ * Adds payment methods for the customer stored in stripe
118
+ * Retrieves the payment methods for the customer stored in stripe
119
+ * @param {Number} customerID The id of the customer
120
+ * @param {String} body The payment method id
121
+ * @param {Object} opts Optional parameters
122
+ * @param {String} [authorization] The authorization token of the logged in user
123
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
124
+ * @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
125
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
126
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
127
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
128
+ */
129
+ }, {
130
+ key: "attachCustomerStripePaymentMethodWithHttpInfo",
131
+ value: function attachCustomerStripePaymentMethodWithHttpInfo(customerID, body, opts) {
132
+ opts = opts || {};
133
+ var postBody = body;
134
+ // verify the required parameter 'customerID' is set
135
+ if (customerID === undefined || customerID === null) {
136
+ throw new Error("Missing the required parameter 'customerID' when calling attachCustomerStripePaymentMethod");
137
+ }
138
+ // verify the required parameter 'body' is set
139
+ if (body === undefined || body === null) {
140
+ throw new Error("Missing the required parameter 'body' when calling attachCustomerStripePaymentMethod");
141
+ }
142
+ var pathParams = {
143
+ 'customerID': customerID
144
+ };
145
+ var queryParams = {};
146
+ var headerParams = {
147
+ 'Authorization': opts['authorization'],
148
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
149
+ 'zeusportal-postas': opts['zeusportalPostas'],
150
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
151
+ 'transactionid': opts['transactionid']
152
+ };
153
+ var formParams = {};
154
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
155
+ var contentTypes = ['text/plain'];
156
+ var accepts = ['application/json'];
157
+ var returnType = _PaymentMethodResponse["default"];
158
+ return this.apiClient.callApi('/graph/data/payments/stripe/customer/{customerID}/paymentmethods', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
159
+ }
160
+
161
+ /**
162
+ * Adds payment methods for the customer stored in stripe
163
+ * Retrieves the payment methods for the customer stored in stripe
164
+ * @param {Number} customerID The id of the customer
165
+ * @param {String} body The payment method id
166
+ * @param {Object} opts Optional parameters
167
+ * @param {String} opts.authorization The authorization token of the logged in user
168
+ * @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
169
+ * @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
170
+ * @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
171
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
172
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
173
+ */
174
+ }, {
175
+ key: "attachCustomerStripePaymentMethod",
176
+ value: function attachCustomerStripePaymentMethod(customerID, body, opts) {
177
+ return this.attachCustomerStripePaymentMethodWithHttpInfo(customerID, body, opts).then(function (response_and_data) {
178
+ return response_and_data.data;
179
+ });
180
+ }
181
+
182
+ /**
183
+ * Adds payment methods for the customer stored in stripe
184
+ * Retrieves the payment methods for the customer stored in stripe
185
+ * @param {String} body The payment method id
186
+ * @param {Object} opts Optional parameters
187
+ * @param {String} [authorization] The authorization token of the logged in 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
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
193
+ */
194
+ }, {
195
+ key: "attachStripePaymentMethodWithHttpInfo",
196
+ value: function attachStripePaymentMethodWithHttpInfo(body, opts) {
197
+ opts = opts || {};
198
+ var postBody = body;
199
+ // verify the required parameter 'body' is set
200
+ if (body === undefined || body === null) {
201
+ throw new Error("Missing the required parameter 'body' when calling attachStripePaymentMethod");
202
+ }
203
+ var pathParams = {};
204
+ var queryParams = {};
205
+ var headerParams = {
206
+ 'Authorization': opts['authorization'],
207
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
208
+ 'zeusportal-postas': opts['zeusportalPostas'],
209
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
210
+ 'transactionid': opts['transactionid']
211
+ };
212
+ var formParams = {};
213
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
214
+ var contentTypes = ['text/plain'];
215
+ var accepts = ['application/json'];
216
+ var returnType = _PaymentMethodResponse["default"];
217
+ return this.apiClient.callApi('/graph/data/payments/stripe/paymentmethods', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
218
+ }
219
+
220
+ /**
221
+ * Adds payment methods for the customer stored in stripe
222
+ * Retrieves the payment methods for the customer stored in stripe
223
+ * @param {String} body The payment method id
224
+ * @param {Object} opts Optional parameters
225
+ * @param {String} opts.authorization The authorization token of the logged in user
226
+ * @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
227
+ * @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
228
+ * @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
229
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
230
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
231
+ */
232
+ }, {
233
+ key: "attachStripePaymentMethod",
234
+ value: function attachStripePaymentMethod(body, opts) {
235
+ return this.attachStripePaymentMethodWithHttpInfo(body, opts).then(function (response_and_data) {
236
+ return response_and_data.data;
237
+ });
238
+ }
239
+
240
+ /**
241
+ * Creates an Account Session which is used to integrate Stripe's connected UI components
242
+ * Creates an Account Session which is used to integrate Stripe's connected UI components
243
+ * @param {module:model/AccountSessionInput} accountSessionInput Contains the info to create the Account Session
244
+ * @param {Object} opts Optional parameters
245
+ * @param {String} [authorization] The authorization token of the logged in 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
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AccountSessionResponse} and HTTP response
251
+ */
252
+ }, {
253
+ key: "createAccountSessionWithHttpInfo",
254
+ value: function createAccountSessionWithHttpInfo(accountSessionInput, opts) {
255
+ opts = opts || {};
256
+ var postBody = accountSessionInput;
257
+ // verify the required parameter 'accountSessionInput' is set
258
+ if (accountSessionInput === undefined || accountSessionInput === null) {
259
+ throw new Error("Missing the required parameter 'accountSessionInput' when calling createAccountSession");
260
+ }
261
+ var pathParams = {};
262
+ var queryParams = {};
263
+ var headerParams = {
264
+ 'Authorization': opts['authorization'],
265
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
266
+ 'zeusportal-postas': opts['zeusportalPostas'],
267
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
268
+ 'transactionid': opts['transactionid']
269
+ };
270
+ var formParams = {};
271
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
272
+ var contentTypes = ['application/json'];
273
+ var accepts = ['application/json'];
274
+ var returnType = _AccountSessionResponse["default"];
275
+ return this.apiClient.callApi('/graph/data/payments/stripe/accountSession', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
276
+ }
277
+
278
+ /**
279
+ * Creates an Account Session which is used to integrate Stripe's connected UI components
280
+ * Creates an Account Session which is used to integrate Stripe's connected UI components
281
+ * @param {module:model/AccountSessionInput} accountSessionInput Contains the info to create the Account Session
282
+ * @param {Object} opts Optional parameters
283
+ * @param {String} opts.authorization The authorization token of the logged in user
284
+ * @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
285
+ * @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
286
+ * @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
287
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
288
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AccountSessionResponse}
289
+ */
290
+ }, {
291
+ key: "createAccountSession",
292
+ value: function createAccountSession(accountSessionInput, opts) {
293
+ return this.createAccountSessionWithHttpInfo(accountSessionInput, opts).then(function (response_and_data) {
294
+ return response_and_data.data;
295
+ });
296
+ }
297
+
298
+ /**
299
+ * Creates a Stripe account for the logged in user
300
+ * Creates a Stripe Account
301
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
302
+ * @param {Object} opts Optional parameters
303
+ * @param {String} [authorization] The authorization token of the logged in 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
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAccountResponse} and HTTP response
309
+ */
310
+ }, {
311
+ key: "createAndLinkStripeAccountWithHttpInfo",
312
+ value: function createAndLinkStripeAccountWithHttpInfo(createStripeAccountInput, opts) {
313
+ opts = opts || {};
314
+ var postBody = createStripeAccountInput;
315
+ // verify the required parameter 'createStripeAccountInput' is set
316
+ if (createStripeAccountInput === undefined || createStripeAccountInput === null) {
317
+ throw new Error("Missing the required parameter 'createStripeAccountInput' when calling createAndLinkStripeAccount");
318
+ }
319
+ var pathParams = {};
320
+ var queryParams = {};
321
+ var headerParams = {
322
+ 'Authorization': opts['authorization'],
323
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
324
+ 'zeusportal-postas': opts['zeusportalPostas'],
325
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
326
+ 'transactionid': opts['transactionid']
327
+ };
328
+ var formParams = {};
329
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
330
+ var contentTypes = ['application/json'];
331
+ var accepts = ['application/json'];
332
+ var returnType = _CreateAccountResponse["default"];
333
+ return this.apiClient.callApi('/graph/data/payments/stripe/account', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
334
+ }
335
+
336
+ /**
337
+ * Creates a Stripe account for the logged in user
338
+ * Creates a Stripe Account
339
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
340
+ * @param {Object} opts Optional parameters
341
+ * @param {String} opts.authorization The authorization token of the logged in user
342
+ * @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
343
+ * @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
344
+ * @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
345
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
346
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAccountResponse}
347
+ */
348
+ }, {
349
+ key: "createAndLinkStripeAccount",
350
+ value: function createAndLinkStripeAccount(createStripeAccountInput, opts) {
351
+ return this.createAndLinkStripeAccountWithHttpInfo(createStripeAccountInput, opts).then(function (response_and_data) {
352
+ return response_and_data.data;
353
+ });
354
+ }
355
+
356
+ /**
357
+ * Creates a Stripe customer account for the logged in user
358
+ * Creates a Stripe Customer Account
359
+ * @param {module:model/CreateStripeCustomerInput} createStripeCustomerInput Contains the info to create the Stripe Account
360
+ * @param {Object} opts Optional parameters
361
+ * @param {String} [authorization] The authorization token of the logged in 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
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerResponse} and HTTP response
367
+ */
368
+ }, {
369
+ key: "createAndLinkStripeCustomerAccountWithHttpInfo",
370
+ value: function createAndLinkStripeCustomerAccountWithHttpInfo(createStripeCustomerInput, opts) {
371
+ opts = opts || {};
372
+ var postBody = createStripeCustomerInput;
373
+ // verify the required parameter 'createStripeCustomerInput' is set
374
+ if (createStripeCustomerInput === undefined || createStripeCustomerInput === null) {
375
+ throw new Error("Missing the required parameter 'createStripeCustomerInput' when calling createAndLinkStripeCustomerAccount");
376
+ }
377
+ var pathParams = {};
378
+ var queryParams = {};
379
+ var headerParams = {
380
+ 'Authorization': opts['authorization'],
381
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
382
+ 'zeusportal-postas': opts['zeusportalPostas'],
383
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
384
+ 'transactionid': opts['transactionid']
385
+ };
386
+ var formParams = {};
387
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
388
+ var contentTypes = ['application/json'];
389
+ var accepts = ['application/json'];
390
+ var returnType = _CustomerResponse["default"];
391
+ return this.apiClient.callApi('/graph/data/payments/stripe/customer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
392
+ }
393
+
394
+ /**
395
+ * Creates a Stripe customer account for the logged in user
396
+ * Creates a Stripe Customer Account
397
+ * @param {module:model/CreateStripeCustomerInput} createStripeCustomerInput Contains the info to create the Stripe Account
398
+ * @param {Object} opts Optional parameters
399
+ * @param {String} opts.authorization The authorization token of the logged in user
400
+ * @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
401
+ * @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
402
+ * @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
403
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
404
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerResponse}
405
+ */
406
+ }, {
407
+ key: "createAndLinkStripeCustomerAccount",
408
+ value: function createAndLinkStripeCustomerAccount(createStripeCustomerInput, opts) {
409
+ return this.createAndLinkStripeCustomerAccountWithHttpInfo(createStripeCustomerInput, opts).then(function (response_and_data) {
410
+ return response_and_data.data;
411
+ });
412
+ }
413
+
414
+ /**
415
+ * Creates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
416
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
417
+ * @param {Number} applicationid
418
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
419
+ * @param {Object} opts Optional parameters
420
+ * @param {String} [authorization] The authorization token of the logged in user
421
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
422
+ * @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
423
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
424
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
425
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApplicationPaymentAccountResponse} and HTTP response
426
+ */
427
+ }, {
428
+ key: "createApplicationStripePaymentAccountWithHttpInfo",
429
+ value: function createApplicationStripePaymentAccountWithHttpInfo(applicationid, createStripeAccountInput, opts) {
430
+ opts = opts || {};
431
+ var postBody = createStripeAccountInput;
432
+ // verify the required parameter 'applicationid' is set
433
+ if (applicationid === undefined || applicationid === null) {
434
+ throw new Error("Missing the required parameter 'applicationid' when calling createApplicationStripePaymentAccount");
435
+ }
436
+ // verify the required parameter 'createStripeAccountInput' is set
437
+ if (createStripeAccountInput === undefined || createStripeAccountInput === null) {
438
+ throw new Error("Missing the required parameter 'createStripeAccountInput' when calling createApplicationStripePaymentAccount");
439
+ }
440
+ var pathParams = {
441
+ 'applicationid': applicationid
442
+ };
443
+ var queryParams = {};
444
+ var headerParams = {
445
+ 'Authorization': opts['authorization'],
446
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
447
+ 'zeusportal-postas': opts['zeusportalPostas'],
448
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
449
+ 'transactionid': opts['transactionid']
450
+ };
451
+ var formParams = {};
452
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
453
+ var contentTypes = [];
454
+ var accepts = ['application/json'];
455
+ var returnType = _ApplicationPaymentAccountResponse["default"];
456
+ return this.apiClient.callApi('/graph/data/payments/stripe/site/{applicationid}/paymentaccount', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
457
+ }
458
+
459
+ /**
460
+ * Creates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
461
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
462
+ * @param {Number} applicationid
463
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
464
+ * @param {Object} opts Optional parameters
465
+ * @param {String} opts.authorization The authorization token of the logged in user
466
+ * @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
467
+ * @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
468
+ * @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
469
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
470
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApplicationPaymentAccountResponse}
471
+ */
472
+ }, {
473
+ key: "createApplicationStripePaymentAccount",
474
+ value: function createApplicationStripePaymentAccount(applicationid, createStripeAccountInput, opts) {
475
+ return this.createApplicationStripePaymentAccountWithHttpInfo(applicationid, createStripeAccountInput, opts).then(function (response_and_data) {
476
+ return response_and_data.data;
477
+ });
478
+ }
479
+
480
+ /**
481
+ * Creates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
482
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
483
+ * @param {Number} siteid
484
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
485
+ * @param {Object} opts Optional parameters
486
+ * @param {String} [authorization] The authorization token of the logged in user
487
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
488
+ * @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
489
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
490
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
491
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApplicationPaymentAccountResponse} and HTTP response
492
+ */
493
+ }, {
494
+ key: "createSiteStripePaymentAccountWithHttpInfo",
495
+ value: function createSiteStripePaymentAccountWithHttpInfo(siteid, createStripeAccountInput, opts) {
496
+ opts = opts || {};
497
+ var postBody = createStripeAccountInput;
498
+ // verify the required parameter 'siteid' is set
499
+ if (siteid === undefined || siteid === null) {
500
+ throw new Error("Missing the required parameter 'siteid' when calling createSiteStripePaymentAccount");
501
+ }
502
+ // verify the required parameter 'createStripeAccountInput' is set
503
+ if (createStripeAccountInput === undefined || createStripeAccountInput === null) {
504
+ throw new Error("Missing the required parameter 'createStripeAccountInput' when calling createSiteStripePaymentAccount");
505
+ }
506
+ var pathParams = {
507
+ 'siteid': siteid
508
+ };
509
+ var queryParams = {};
510
+ var headerParams = {
511
+ 'Authorization': opts['authorization'],
512
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
513
+ 'zeusportal-postas': opts['zeusportalPostas'],
514
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
515
+ 'transactionid': opts['transactionid']
516
+ };
517
+ var formParams = {};
518
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
519
+ var contentTypes = [];
520
+ var accepts = ['application/json'];
521
+ var returnType = _ApplicationPaymentAccountResponse["default"];
522
+ return this.apiClient.callApi('/graph/data/payments/stripe/site/{siteid}/paymentaccount', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
523
+ }
524
+
525
+ /**
526
+ * Creates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
527
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
528
+ * @param {Number} siteid
529
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
530
+ * @param {Object} opts Optional parameters
531
+ * @param {String} opts.authorization The authorization token of the logged in user
532
+ * @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
533
+ * @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
534
+ * @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
535
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
536
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApplicationPaymentAccountResponse}
537
+ */
538
+ }, {
539
+ key: "createSiteStripePaymentAccount",
540
+ value: function createSiteStripePaymentAccount(siteid, createStripeAccountInput, opts) {
541
+ return this.createSiteStripePaymentAccountWithHttpInfo(siteid, createStripeAccountInput, opts).then(function (response_and_data) {
542
+ return response_and_data.data;
543
+ });
544
+ }
545
+
546
+ /**
547
+ * Creates a Payment Intent to initate a Stripe payment
548
+ * Creates a Payment Intent to initate a Stripe payment
549
+ * @param {module:model/PaymentIntentInput} paymentIntentInput Contains the info to create the Stripe Payment Intent
550
+ * @param {Object} opts Optional parameters
551
+ * @param {String} [authorization] The authorization token of the logged in user
552
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
553
+ * @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
554
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
555
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
556
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentIntentResponse} and HTTP response
557
+ */
558
+ }, {
559
+ key: "createStripePaymentIntentWithHttpInfo",
560
+ value: function createStripePaymentIntentWithHttpInfo(paymentIntentInput, opts) {
561
+ opts = opts || {};
562
+ var postBody = paymentIntentInput;
563
+ // verify the required parameter 'paymentIntentInput' is set
564
+ if (paymentIntentInput === undefined || paymentIntentInput === null) {
565
+ throw new Error("Missing the required parameter 'paymentIntentInput' when calling createStripePaymentIntent");
566
+ }
567
+ var pathParams = {};
568
+ var queryParams = {};
569
+ var headerParams = {
570
+ 'Authorization': opts['authorization'],
571
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
572
+ 'zeusportal-postas': opts['zeusportalPostas'],
573
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
574
+ 'transactionid': opts['transactionid']
575
+ };
576
+ var formParams = {};
577
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
578
+ var contentTypes = ['application/json'];
579
+ var accepts = ['application/json'];
580
+ var returnType = _PaymentIntentResponse["default"];
581
+ return this.apiClient.callApi('/graph/data/payments/stripe/payment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
582
+ }
583
+
584
+ /**
585
+ * Creates a Payment Intent to initate a Stripe payment
586
+ * Creates a Payment Intent to initate a Stripe payment
587
+ * @param {module:model/PaymentIntentInput} paymentIntentInput Contains the info to create the Stripe Payment Intent
588
+ * @param {Object} opts Optional parameters
589
+ * @param {String} opts.authorization The authorization token of the logged in user
590
+ * @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
591
+ * @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
592
+ * @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
593
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
594
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentIntentResponse}
595
+ */
596
+ }, {
597
+ key: "createStripePaymentIntent",
598
+ value: function createStripePaymentIntent(paymentIntentInput, opts) {
599
+ return this.createStripePaymentIntentWithHttpInfo(paymentIntentInput, opts).then(function (response_and_data) {
600
+ return response_and_data.data;
601
+ });
602
+ }
603
+
604
+ /**
605
+ * @param {Object} opts Optional parameters
606
+ * @param {String} [authorization] The authorization token of the logged in user
607
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
608
+ * @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
609
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
610
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
611
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
612
+ */
613
+ }, {
614
+ key: "deleteAccountWithHttpInfo",
615
+ value: function deleteAccountWithHttpInfo(opts) {
616
+ opts = opts || {};
617
+ var postBody = null;
618
+ var pathParams = {};
619
+ var queryParams = {};
620
+ var headerParams = {
621
+ 'Authorization': opts['authorization'],
622
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
623
+ 'zeusportal-postas': opts['zeusportalPostas'],
624
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
625
+ 'transactionid': opts['transactionid']
626
+ };
627
+ var formParams = {};
628
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
629
+ var contentTypes = [];
630
+ var accepts = ['application/json'];
631
+ var returnType = Object;
632
+ return this.apiClient.callApi('/graph/data/payments/stripe/account', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
633
+ }
634
+
635
+ /**
636
+ * @param {Object} opts Optional parameters
637
+ * @param {String} opts.authorization The authorization token of the logged in user
638
+ * @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
639
+ * @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
640
+ * @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
641
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
642
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
643
+ */
644
+ }, {
645
+ key: "deleteAccount",
646
+ value: function deleteAccount(opts) {
647
+ return this.deleteAccountWithHttpInfo(opts).then(function (response_and_data) {
648
+ return response_and_data.data;
649
+ });
650
+ }
651
+
652
+ /**
653
+ * Adds payment methods for the customer stored in stripe
654
+ * Retrieves the payment methods for the customer stored in stripe
655
+ * @param {String} paymentMethodID The id of the payment method to delete
656
+ * @param {Object} opts Optional parameters
657
+ * @param {String} [authorization] The authorization token of the logged in user
658
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
659
+ * @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
660
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
661
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
662
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
663
+ */
664
+ }, {
665
+ key: "deleteStripePaymentMethodWithHttpInfo",
666
+ value: function deleteStripePaymentMethodWithHttpInfo(paymentMethodID, opts) {
667
+ opts = opts || {};
668
+ var postBody = null;
669
+ // verify the required parameter 'paymentMethodID' is set
670
+ if (paymentMethodID === undefined || paymentMethodID === null) {
671
+ throw new Error("Missing the required parameter 'paymentMethodID' when calling deleteStripePaymentMethod");
672
+ }
673
+ var pathParams = {
674
+ 'paymentMethodID': paymentMethodID
675
+ };
676
+ var queryParams = {};
677
+ var headerParams = {
678
+ 'Authorization': opts['authorization'],
679
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
680
+ 'zeusportal-postas': opts['zeusportalPostas'],
681
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
682
+ 'transactionid': opts['transactionid']
683
+ };
684
+ var formParams = {};
685
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
686
+ var contentTypes = [];
687
+ var accepts = ['application/json'];
688
+ var returnType = _PaymentMethodResponse["default"];
689
+ return this.apiClient.callApi('/graph/data/payments/stripe/paymentmethods/{paymentMethodID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
690
+ }
691
+
692
+ /**
693
+ * Adds payment methods for the customer stored in stripe
694
+ * Retrieves the payment methods for the customer stored in stripe
695
+ * @param {String} paymentMethodID The id of the payment method to delete
696
+ * @param {Object} opts Optional parameters
697
+ * @param {String} opts.authorization The authorization token of the logged in user
698
+ * @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
699
+ * @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
700
+ * @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
701
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
702
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
703
+ */
704
+ }, {
705
+ key: "deleteStripePaymentMethod",
706
+ value: function deleteStripePaymentMethod(paymentMethodID, opts) {
707
+ return this.deleteStripePaymentMethodWithHttpInfo(paymentMethodID, opts).then(function (response_and_data) {
708
+ return response_and_data.data;
709
+ });
710
+ }
711
+
712
+ /**
713
+ * Root for the API
714
+ * @param {Object} opts Optional parameters
715
+ * @param {String} [authorization] The authorization token of the logged in user
716
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
717
+ * @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
718
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
719
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
720
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
721
+ */
722
+ }, {
723
+ key: "getWithHttpInfo",
724
+ value: function getWithHttpInfo(opts) {
725
+ opts = opts || {};
726
+ var postBody = null;
727
+ var pathParams = {};
728
+ var queryParams = {};
729
+ var headerParams = {
730
+ 'Authorization': opts['authorization'],
731
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
732
+ 'zeusportal-postas': opts['zeusportalPostas'],
733
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
734
+ 'transactionid': opts['transactionid']
735
+ };
736
+ var formParams = {};
737
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
738
+ var contentTypes = [];
739
+ var accepts = ['application/json'];
740
+ var returnType = null;
741
+ return this.apiClient.callApi('/graph/data/payments/stripe', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
742
+ }
743
+
744
+ /**
745
+ * Root for the API
746
+ * @param {Object} opts Optional parameters
747
+ * @param {String} opts.authorization The authorization token of the logged in user
748
+ * @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
749
+ * @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
750
+ * @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
751
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
752
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
753
+ */
754
+ }, {
755
+ key: "get",
756
+ value: function get(opts) {
757
+ return this.getWithHttpInfo(opts).then(function (response_and_data) {
758
+ return response_and_data.data;
759
+ });
760
+ }
761
+
762
+ /**
763
+ * Gets and object by id
764
+ * @param {Number} id
765
+ * @param {Object} opts Optional parameters
766
+ * @param {String} [authorization] The authorization token of the logged in user
767
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
768
+ * @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
769
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
770
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
771
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} and HTTP response
772
+ */
773
+ }, {
774
+ key: "get1WithHttpInfo",
775
+ value: function get1WithHttpInfo(id, opts) {
776
+ opts = opts || {};
777
+ var postBody = null;
778
+ // verify the required parameter 'id' is set
779
+ if (id === undefined || id === null) {
780
+ throw new Error("Missing the required parameter 'id' when calling get1");
781
+ }
782
+ var pathParams = {
783
+ 'id': id
784
+ };
785
+ var queryParams = {};
786
+ var headerParams = {
787
+ 'Authorization': opts['authorization'],
788
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
789
+ 'zeusportal-postas': opts['zeusportalPostas'],
790
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
791
+ 'transactionid': opts['transactionid']
792
+ };
793
+ var formParams = {};
794
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
795
+ var contentTypes = [];
796
+ var accepts = ['application/json'];
797
+ var returnType = {
798
+ 'String': _PurgeDataDefaultResponseValue["default"]
799
+ };
800
+ return this.apiClient.callApi('/graph/data/payments/stripe/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
801
+ }
802
+
803
+ /**
804
+ * Gets and object by id
805
+ * @param {Number} id
806
+ * @param {Object} opts Optional parameters
807
+ * @param {String} opts.authorization The authorization token of the logged in user
808
+ * @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
809
+ * @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
810
+ * @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
811
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
812
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
813
+ */
814
+ }, {
815
+ key: "get1",
816
+ value: function get1(id, opts) {
817
+ return this.get1WithHttpInfo(id, opts).then(function (response_and_data) {
818
+ return response_and_data.data;
819
+ });
820
+ }
821
+
822
+ /**
823
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
824
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
825
+ * @param {Number} applicationid
826
+ * @param {Object} opts Optional parameters
827
+ * @param {String} [authorization] The authorization token of the logged in user
828
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
829
+ * @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
830
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
831
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
832
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApplicationPaymentAccountResponse} and HTTP response
833
+ */
834
+ }, {
835
+ key: "getApplicationStripePaymentAccountWithHttpInfo",
836
+ value: function getApplicationStripePaymentAccountWithHttpInfo(applicationid, opts) {
837
+ opts = opts || {};
838
+ var postBody = null;
839
+ // verify the required parameter 'applicationid' is set
840
+ if (applicationid === undefined || applicationid === null) {
841
+ throw new Error("Missing the required parameter 'applicationid' when calling getApplicationStripePaymentAccount");
842
+ }
843
+ var pathParams = {
844
+ 'applicationid': applicationid
845
+ };
846
+ var queryParams = {};
847
+ var headerParams = {
848
+ 'Authorization': opts['authorization'],
849
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
850
+ 'zeusportal-postas': opts['zeusportalPostas'],
851
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
852
+ 'transactionid': opts['transactionid']
853
+ };
854
+ var formParams = {};
855
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
856
+ var contentTypes = [];
857
+ var accepts = ['application/json'];
858
+ var returnType = _ApplicationPaymentAccountResponse["default"];
859
+ return this.apiClient.callApi('/graph/data/payments/stripe/application/{applicationid}/paymentaccount', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
860
+ }
861
+
862
+ /**
863
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
864
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
865
+ * @param {Number} applicationid
866
+ * @param {Object} opts Optional parameters
867
+ * @param {String} opts.authorization The authorization token of the logged in user
868
+ * @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
869
+ * @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
870
+ * @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
871
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
872
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApplicationPaymentAccountResponse}
873
+ */
874
+ }, {
875
+ key: "getApplicationStripePaymentAccount",
876
+ value: function getApplicationStripePaymentAccount(applicationid, opts) {
877
+ return this.getApplicationStripePaymentAccountWithHttpInfo(applicationid, opts).then(function (response_and_data) {
878
+ return response_and_data.data;
879
+ });
880
+ }
881
+
882
+ /**
883
+ * Gets the default payment method
884
+ * Retrieves the default payment for the customer stored in stripe
885
+ * @param {Number} customerID The id of the customer
886
+ * @param {Object} opts Optional parameters
887
+ * @param {String} [authorization] The authorization token of the logged in user
888
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
889
+ * @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
890
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
891
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
892
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
893
+ */
894
+ }, {
895
+ key: "getDefaultCustomerStripePaymentMethodWithHttpInfo",
896
+ value: function getDefaultCustomerStripePaymentMethodWithHttpInfo(customerID, opts) {
897
+ opts = opts || {};
898
+ var postBody = null;
899
+ // verify the required parameter 'customerID' is set
900
+ if (customerID === undefined || customerID === null) {
901
+ throw new Error("Missing the required parameter 'customerID' when calling getDefaultCustomerStripePaymentMethod");
902
+ }
903
+ var pathParams = {
904
+ 'customerID': customerID
905
+ };
906
+ var queryParams = {};
907
+ var headerParams = {
908
+ 'Authorization': opts['authorization'],
909
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
910
+ 'zeusportal-postas': opts['zeusportalPostas'],
911
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
912
+ 'transactionid': opts['transactionid']
913
+ };
914
+ var formParams = {};
915
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
916
+ var contentTypes = [];
917
+ var accepts = ['application/json'];
918
+ var returnType = _PaymentMethodResponse["default"];
919
+ return this.apiClient.callApi('/graph/data/payments/stripe/customer/{customerID}/paymentmethods/default', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
920
+ }
921
+
922
+ /**
923
+ * Gets the default payment method
924
+ * Retrieves the default payment for the customer stored in stripe
925
+ * @param {Number} customerID The id of the customer
926
+ * @param {Object} opts Optional parameters
927
+ * @param {String} opts.authorization The authorization token of the logged in user
928
+ * @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
929
+ * @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
930
+ * @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
931
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
932
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
933
+ */
934
+ }, {
935
+ key: "getDefaultCustomerStripePaymentMethod",
936
+ value: function getDefaultCustomerStripePaymentMethod(customerID, opts) {
937
+ return this.getDefaultCustomerStripePaymentMethodWithHttpInfo(customerID, opts).then(function (response_and_data) {
938
+ return response_and_data.data;
939
+ });
940
+ }
941
+
942
+ /**
943
+ * Gets the default payment method
944
+ * Retrieves the default payment for the customer stored in stripe
945
+ * @param {Object} opts Optional parameters
946
+ * @param {String} [authorization] The authorization token of the logged in user
947
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
948
+ * @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
949
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
950
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
951
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
952
+ */
953
+ }, {
954
+ key: "getDefaultStripePaymentMethodWithHttpInfo",
955
+ value: function getDefaultStripePaymentMethodWithHttpInfo(opts) {
956
+ opts = opts || {};
957
+ var postBody = null;
958
+ var pathParams = {};
959
+ var queryParams = {};
960
+ var headerParams = {
961
+ 'Authorization': opts['authorization'],
962
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
963
+ 'zeusportal-postas': opts['zeusportalPostas'],
964
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
965
+ 'transactionid': opts['transactionid']
966
+ };
967
+ var formParams = {};
968
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
969
+ var contentTypes = [];
970
+ var accepts = ['application/json'];
971
+ var returnType = _PaymentMethodResponse["default"];
972
+ return this.apiClient.callApi('/graph/data/payments/stripe/paymentmethods/default', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
973
+ }
974
+
975
+ /**
976
+ * Gets the default payment method
977
+ * Retrieves the default payment for the customer stored in stripe
978
+ * @param {Object} opts Optional parameters
979
+ * @param {String} opts.authorization The authorization token of the logged in user
980
+ * @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
981
+ * @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
982
+ * @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
983
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
984
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
985
+ */
986
+ }, {
987
+ key: "getDefaultStripePaymentMethod",
988
+ value: function getDefaultStripePaymentMethod(opts) {
989
+ return this.getDefaultStripePaymentMethodWithHttpInfo(opts).then(function (response_and_data) {
990
+ return response_and_data.data;
991
+ });
992
+ }
993
+
994
+ /**
995
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
996
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
997
+ * @param {Number} siteid
998
+ * @param {Object} opts Optional parameters
999
+ * @param {String} [authorization] The authorization token of the logged in user
1000
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1001
+ * @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
1002
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1003
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1004
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApplicationPaymentAccountResponse} and HTTP response
1005
+ */
1006
+ }, {
1007
+ key: "getSiteStripePaymentAccountWithHttpInfo",
1008
+ value: function getSiteStripePaymentAccountWithHttpInfo(siteid, opts) {
1009
+ opts = opts || {};
1010
+ var postBody = null;
1011
+ // verify the required parameter 'siteid' is set
1012
+ if (siteid === undefined || siteid === null) {
1013
+ throw new Error("Missing the required parameter 'siteid' when calling getSiteStripePaymentAccount");
1014
+ }
1015
+ var pathParams = {
1016
+ 'siteid': siteid
1017
+ };
1018
+ var queryParams = {};
1019
+ var headerParams = {
1020
+ 'Authorization': opts['authorization'],
1021
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1022
+ 'zeusportal-postas': opts['zeusportalPostas'],
1023
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1024
+ 'transactionid': opts['transactionid']
1025
+ };
1026
+ var formParams = {};
1027
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1028
+ var contentTypes = [];
1029
+ var accepts = ['application/json'];
1030
+ var returnType = _ApplicationPaymentAccountResponse["default"];
1031
+ return this.apiClient.callApi('/graph/data/payments/stripe/site/{siteid}/paymentaccount', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1032
+ }
1033
+
1034
+ /**
1035
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1036
+ * Retrieves the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1037
+ * @param {Number} siteid
1038
+ * @param {Object} opts Optional parameters
1039
+ * @param {String} opts.authorization The authorization token of the logged in user
1040
+ * @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
1041
+ * @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
1042
+ * @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
1043
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1044
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApplicationPaymentAccountResponse}
1045
+ */
1046
+ }, {
1047
+ key: "getSiteStripePaymentAccount",
1048
+ value: function getSiteStripePaymentAccount(siteid, opts) {
1049
+ return this.getSiteStripePaymentAccountWithHttpInfo(siteid, opts).then(function (response_and_data) {
1050
+ return response_and_data.data;
1051
+ });
1052
+ }
1053
+
1054
+ /**
1055
+ * Retrieves the Stripe Account For the Logged In User
1056
+ * Retrieves the Stripe Customer Account
1057
+ * @param {Object} opts Optional parameters
1058
+ * @param {String} [authorization] The authorization token of the logged in user
1059
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1060
+ * @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
1061
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1062
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1063
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAccountResponse} and HTTP response
1064
+ */
1065
+ }, {
1066
+ key: "getStripeAccountWithHttpInfo",
1067
+ value: function getStripeAccountWithHttpInfo(opts) {
1068
+ opts = opts || {};
1069
+ var postBody = null;
1070
+ var pathParams = {};
1071
+ var queryParams = {};
1072
+ var headerParams = {
1073
+ 'Authorization': opts['authorization'],
1074
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1075
+ 'zeusportal-postas': opts['zeusportalPostas'],
1076
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1077
+ 'transactionid': opts['transactionid']
1078
+ };
1079
+ var formParams = {};
1080
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1081
+ var contentTypes = [];
1082
+ var accepts = ['application/json'];
1083
+ var returnType = _CreateAccountResponse["default"];
1084
+ return this.apiClient.callApi('/graph/data/payments/stripe/account', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1085
+ }
1086
+
1087
+ /**
1088
+ * Retrieves the Stripe Account For the Logged In User
1089
+ * Retrieves the Stripe Customer Account
1090
+ * @param {Object} opts Optional parameters
1091
+ * @param {String} opts.authorization The authorization token of the logged in user
1092
+ * @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
1093
+ * @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
1094
+ * @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
1095
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1096
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAccountResponse}
1097
+ */
1098
+ }, {
1099
+ key: "getStripeAccount",
1100
+ value: function getStripeAccount(opts) {
1101
+ return this.getStripeAccountWithHttpInfo(opts).then(function (response_and_data) {
1102
+ return response_and_data.data;
1103
+ });
1104
+ }
1105
+
1106
+ /**
1107
+ * Gets the balance of the logged in user
1108
+ * Gets the balance of the logged in user
1109
+ * @param {Number} accountID The id of the account we are getting the balance for
1110
+ * @param {Object} opts Optional parameters
1111
+ * @param {String} [authorization] The authorization token of the logged in user
1112
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1113
+ * @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
1114
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1115
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1116
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BalanceResponse} and HTTP response
1117
+ */
1118
+ }, {
1119
+ key: "getStripeAccountBalanceWithHttpInfo",
1120
+ value: function getStripeAccountBalanceWithHttpInfo(accountID, opts) {
1121
+ opts = opts || {};
1122
+ var postBody = null;
1123
+ // verify the required parameter 'accountID' is set
1124
+ if (accountID === undefined || accountID === null) {
1125
+ throw new Error("Missing the required parameter 'accountID' when calling getStripeAccountBalance");
1126
+ }
1127
+ var pathParams = {
1128
+ 'accountID': accountID
1129
+ };
1130
+ var queryParams = {};
1131
+ var headerParams = {
1132
+ 'Authorization': opts['authorization'],
1133
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1134
+ 'zeusportal-postas': opts['zeusportalPostas'],
1135
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1136
+ 'transactionid': opts['transactionid']
1137
+ };
1138
+ var formParams = {};
1139
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1140
+ var contentTypes = [];
1141
+ var accepts = ['application/json'];
1142
+ var returnType = _BalanceResponse["default"];
1143
+ return this.apiClient.callApi('/graph/data/payments/stripe/account/{accountID}/balance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1144
+ }
1145
+
1146
+ /**
1147
+ * Gets the balance of the logged in user
1148
+ * Gets the balance of the logged in user
1149
+ * @param {Number} accountID The id of the account we are getting the balance for
1150
+ * @param {Object} opts Optional parameters
1151
+ * @param {String} opts.authorization The authorization token of the logged in user
1152
+ * @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
1153
+ * @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
1154
+ * @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
1155
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1156
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BalanceResponse}
1157
+ */
1158
+ }, {
1159
+ key: "getStripeAccountBalance",
1160
+ value: function getStripeAccountBalance(accountID, opts) {
1161
+ return this.getStripeAccountBalanceWithHttpInfo(accountID, opts).then(function (response_and_data) {
1162
+ return response_and_data.data;
1163
+ });
1164
+ }
1165
+
1166
+ /**
1167
+ * Returns the publishable API key for Stripe
1168
+ * Returns the publishable API key for Stripe
1169
+ * @param {Object} opts Optional parameters
1170
+ * @param {String} [authorization] The authorization token of the logged in user
1171
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1172
+ * @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
1173
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1174
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1175
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
1176
+ */
1177
+ }, {
1178
+ key: "getStripeApiKeyWithHttpInfo",
1179
+ value: function getStripeApiKeyWithHttpInfo(opts) {
1180
+ opts = opts || {};
1181
+ var postBody = null;
1182
+ var pathParams = {};
1183
+ var queryParams = {};
1184
+ var headerParams = {
1185
+ 'Authorization': opts['authorization'],
1186
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1187
+ 'zeusportal-postas': opts['zeusportalPostas'],
1188
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1189
+ 'transactionid': opts['transactionid']
1190
+ };
1191
+ var formParams = {};
1192
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1193
+ var contentTypes = [];
1194
+ var accepts = ['text/plain'];
1195
+ var returnType = 'String';
1196
+ return this.apiClient.callApi('/graph/data/payments/stripe/apikey', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1197
+ }
1198
+
1199
+ /**
1200
+ * Returns the publishable API key for Stripe
1201
+ * Returns the publishable API key for Stripe
1202
+ * @param {Object} opts Optional parameters
1203
+ * @param {String} opts.authorization The authorization token of the logged in user
1204
+ * @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
1205
+ * @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
1206
+ * @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
1207
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1208
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String}
1209
+ */
1210
+ }, {
1211
+ key: "getStripeApiKey",
1212
+ value: function getStripeApiKey(opts) {
1213
+ return this.getStripeApiKeyWithHttpInfo(opts).then(function (response_and_data) {
1214
+ return response_and_data.data;
1215
+ });
1216
+ }
1217
+
1218
+ /**
1219
+ * Gets the balance of the logged in user
1220
+ * Gets the balance of the logged in user
1221
+ * @param {Object} opts Optional parameters
1222
+ * @param {String} [authorization] The authorization token of the logged in user
1223
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1224
+ * @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
1225
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1226
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1227
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BalanceResponse} and HTTP response
1228
+ */
1229
+ }, {
1230
+ key: "getStripeBalanceWithHttpInfo",
1231
+ value: function getStripeBalanceWithHttpInfo(opts) {
1232
+ opts = opts || {};
1233
+ var postBody = null;
1234
+ var pathParams = {};
1235
+ var queryParams = {};
1236
+ var headerParams = {
1237
+ 'Authorization': opts['authorization'],
1238
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1239
+ 'zeusportal-postas': opts['zeusportalPostas'],
1240
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1241
+ 'transactionid': opts['transactionid']
1242
+ };
1243
+ var formParams = {};
1244
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1245
+ var contentTypes = [];
1246
+ var accepts = ['application/json'];
1247
+ var returnType = _BalanceResponse["default"];
1248
+ return this.apiClient.callApi('/graph/data/payments/stripe/balance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1249
+ }
1250
+
1251
+ /**
1252
+ * Gets the balance of the logged in user
1253
+ * Gets the balance of the logged in user
1254
+ * @param {Object} opts Optional parameters
1255
+ * @param {String} opts.authorization The authorization token of the logged in user
1256
+ * @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
1257
+ * @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
1258
+ * @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
1259
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1260
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BalanceResponse}
1261
+ */
1262
+ }, {
1263
+ key: "getStripeBalance",
1264
+ value: function getStripeBalance(opts) {
1265
+ return this.getStripeBalanceWithHttpInfo(opts).then(function (response_and_data) {
1266
+ return response_and_data.data;
1267
+ });
1268
+ }
1269
+
1270
+ /**
1271
+ * Retrieves the Stripe Customer Account For the Logged In User
1272
+ * Retrieves the Stripe Customer Account
1273
+ * @param {Object} opts Optional parameters
1274
+ * @param {String} [authorization] The authorization token of the logged in user
1275
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1276
+ * @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
1277
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1278
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1279
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerResponse} and HTTP response
1280
+ */
1281
+ }, {
1282
+ key: "getStripeCustomerAccountWithHttpInfo",
1283
+ value: function getStripeCustomerAccountWithHttpInfo(opts) {
1284
+ opts = opts || {};
1285
+ var postBody = null;
1286
+ var pathParams = {};
1287
+ var queryParams = {};
1288
+ var headerParams = {
1289
+ 'Authorization': opts['authorization'],
1290
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1291
+ 'zeusportal-postas': opts['zeusportalPostas'],
1292
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1293
+ 'transactionid': opts['transactionid']
1294
+ };
1295
+ var formParams = {};
1296
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1297
+ var contentTypes = [];
1298
+ var accepts = ['application/json'];
1299
+ var returnType = _CustomerResponse["default"];
1300
+ return this.apiClient.callApi('/graph/data/payments/stripe/customer', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1301
+ }
1302
+
1303
+ /**
1304
+ * Retrieves the Stripe Customer Account For the Logged In User
1305
+ * Retrieves the Stripe Customer Account
1306
+ * @param {Object} opts Optional parameters
1307
+ * @param {String} opts.authorization The authorization token of the logged in user
1308
+ * @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
1309
+ * @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
1310
+ * @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
1311
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1312
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerResponse}
1313
+ */
1314
+ }, {
1315
+ key: "getStripeCustomerAccount",
1316
+ value: function getStripeCustomerAccount(opts) {
1317
+ return this.getStripeCustomerAccountWithHttpInfo(opts).then(function (response_and_data) {
1318
+ return response_and_data.data;
1319
+ });
1320
+ }
1321
+
1322
+ /**
1323
+ * Retrieves the payment methods for the customer stored in stripe
1324
+ * Retrieves the payment methods for the customer stored in stripe
1325
+ * @param {Number} customerID The customerid to update
1326
+ * @param {Object} opts Optional parameters
1327
+ * @param {String} [authorization] The authorization token of the logged in user
1328
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1329
+ * @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
1330
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1331
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1332
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodsResponse} and HTTP response
1333
+ */
1334
+ }, {
1335
+ key: "getStripeCustomerPaymentMethodsWithHttpInfo",
1336
+ value: function getStripeCustomerPaymentMethodsWithHttpInfo(customerID, opts) {
1337
+ opts = opts || {};
1338
+ var postBody = null;
1339
+ // verify the required parameter 'customerID' is set
1340
+ if (customerID === undefined || customerID === null) {
1341
+ throw new Error("Missing the required parameter 'customerID' when calling getStripeCustomerPaymentMethods");
1342
+ }
1343
+ var pathParams = {
1344
+ 'customerID': customerID
1345
+ };
1346
+ var queryParams = {};
1347
+ var headerParams = {
1348
+ 'Authorization': opts['authorization'],
1349
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1350
+ 'zeusportal-postas': opts['zeusportalPostas'],
1351
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1352
+ 'transactionid': opts['transactionid']
1353
+ };
1354
+ var formParams = {};
1355
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1356
+ var contentTypes = [];
1357
+ var accepts = ['application/json'];
1358
+ var returnType = _PaymentMethodsResponse["default"];
1359
+ return this.apiClient.callApi('/graph/data/payments/stripe/customer/{customerID}/paymentmethods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1360
+ }
1361
+
1362
+ /**
1363
+ * Retrieves the payment methods for the customer stored in stripe
1364
+ * Retrieves the payment methods for the customer stored in stripe
1365
+ * @param {Number} customerID The customerid to update
1366
+ * @param {Object} opts Optional parameters
1367
+ * @param {String} opts.authorization The authorization token of the logged in user
1368
+ * @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
1369
+ * @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
1370
+ * @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
1371
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1372
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodsResponse}
1373
+ */
1374
+ }, {
1375
+ key: "getStripeCustomerPaymentMethods",
1376
+ value: function getStripeCustomerPaymentMethods(customerID, opts) {
1377
+ return this.getStripeCustomerPaymentMethodsWithHttpInfo(customerID, opts).then(function (response_and_data) {
1378
+ return response_and_data.data;
1379
+ });
1380
+ }
1381
+
1382
+ /**
1383
+ * Retrieves the payment methods for the customer stored in stripe
1384
+ * Retrieves the payment methods for the customer stored in stripe
1385
+ * @param {Object} opts Optional parameters
1386
+ * @param {String} [authorization] The authorization token of the logged in user
1387
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1388
+ * @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
1389
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1390
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1391
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodsResponse} and HTTP response
1392
+ */
1393
+ }, {
1394
+ key: "getStripePaymentMethodsWithHttpInfo",
1395
+ value: function getStripePaymentMethodsWithHttpInfo(opts) {
1396
+ opts = opts || {};
1397
+ var postBody = null;
1398
+ var pathParams = {};
1399
+ var queryParams = {};
1400
+ var headerParams = {
1401
+ 'Authorization': opts['authorization'],
1402
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1403
+ 'zeusportal-postas': opts['zeusportalPostas'],
1404
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1405
+ 'transactionid': opts['transactionid']
1406
+ };
1407
+ var formParams = {};
1408
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1409
+ var contentTypes = [];
1410
+ var accepts = ['application/json'];
1411
+ var returnType = _PaymentMethodsResponse["default"];
1412
+ return this.apiClient.callApi('/graph/data/payments/stripe/paymentmethods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1413
+ }
1414
+
1415
+ /**
1416
+ * Retrieves the payment methods for the customer stored in stripe
1417
+ * Retrieves the payment methods for the customer stored in stripe
1418
+ * @param {Object} opts Optional parameters
1419
+ * @param {String} opts.authorization The authorization token of the logged in user
1420
+ * @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
1421
+ * @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
1422
+ * @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
1423
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1424
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodsResponse}
1425
+ */
1426
+ }, {
1427
+ key: "getStripePaymentMethods",
1428
+ value: function getStripePaymentMethods(opts) {
1429
+ return this.getStripePaymentMethodsWithHttpInfo(opts).then(function (response_and_data) {
1430
+ return response_and_data.data;
1431
+ });
1432
+ }
1433
+
1434
+ /**
1435
+ * Retrieves the transfer payment with the given transferId
1436
+ * Retrieves the transfer payment with the given transferId
1437
+ * @param {String} transferID The id of the transfer
1438
+ * @param {Object} opts Optional parameters
1439
+ * @param {String} [authorization] The authorization token of the logged in user
1440
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1441
+ * @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
1442
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1443
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1444
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransferResponse} and HTTP response
1445
+ */
1446
+ }, {
1447
+ key: "getStripeTransferWithHttpInfo",
1448
+ value: function getStripeTransferWithHttpInfo(transferID, opts) {
1449
+ opts = opts || {};
1450
+ var postBody = null;
1451
+ // verify the required parameter 'transferID' is set
1452
+ if (transferID === undefined || transferID === null) {
1453
+ throw new Error("Missing the required parameter 'transferID' when calling getStripeTransfer");
1454
+ }
1455
+ var pathParams = {
1456
+ 'transferID': transferID
1457
+ };
1458
+ var queryParams = {};
1459
+ var headerParams = {
1460
+ 'Authorization': opts['authorization'],
1461
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1462
+ 'zeusportal-postas': opts['zeusportalPostas'],
1463
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1464
+ 'transactionid': opts['transactionid']
1465
+ };
1466
+ var formParams = {};
1467
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1468
+ var contentTypes = [];
1469
+ var accepts = ['application/json'];
1470
+ var returnType = _TransferResponse["default"];
1471
+ return this.apiClient.callApi('/graph/data/payments/stripe/transfer/{transferID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1472
+ }
1473
+
1474
+ /**
1475
+ * Retrieves the transfer payment with the given transferId
1476
+ * Retrieves the transfer payment with the given transferId
1477
+ * @param {String} transferID The id of the transfer
1478
+ * @param {Object} opts Optional parameters
1479
+ * @param {String} opts.authorization The authorization token of the logged in user
1480
+ * @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
1481
+ * @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
1482
+ * @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
1483
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1484
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransferResponse}
1485
+ */
1486
+ }, {
1487
+ key: "getStripeTransfer",
1488
+ value: function getStripeTransfer(transferID, opts) {
1489
+ return this.getStripeTransferWithHttpInfo(transferID, opts).then(function (response_and_data) {
1490
+ return response_and_data.data;
1491
+ });
1492
+ }
1493
+
1494
+ /**
1495
+ * Retrieves the transfer payment details with the given transferId
1496
+ * Retrieves the transfer payment with the given transferId
1497
+ * @param {String} transferID The id of the transfer
1498
+ * @param {Object} opts Optional parameters
1499
+ * @param {String} [authorization] The authorization token of the logged in user
1500
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1501
+ * @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
1502
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1503
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1504
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransferResponse} and HTTP response
1505
+ */
1506
+ }, {
1507
+ key: "getStripeTransferPaymentMethodDetailsWithHttpInfo",
1508
+ value: function getStripeTransferPaymentMethodDetailsWithHttpInfo(transferID, opts) {
1509
+ opts = opts || {};
1510
+ var postBody = null;
1511
+ // verify the required parameter 'transferID' is set
1512
+ if (transferID === undefined || transferID === null) {
1513
+ throw new Error("Missing the required parameter 'transferID' when calling getStripeTransferPaymentMethodDetails");
1514
+ }
1515
+ var pathParams = {
1516
+ 'transferID': transferID
1517
+ };
1518
+ var queryParams = {};
1519
+ var headerParams = {
1520
+ 'Authorization': opts['authorization'],
1521
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1522
+ 'zeusportal-postas': opts['zeusportalPostas'],
1523
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1524
+ 'transactionid': opts['transactionid']
1525
+ };
1526
+ var formParams = {};
1527
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1528
+ var contentTypes = [];
1529
+ var accepts = ['application/json'];
1530
+ var returnType = _TransferResponse["default"];
1531
+ return this.apiClient.callApi('/graph/data/payments/stripe/transfer/{transferID}/paymentMethodDetails', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1532
+ }
1533
+
1534
+ /**
1535
+ * Retrieves the transfer payment details with the given transferId
1536
+ * Retrieves the transfer payment with the given transferId
1537
+ * @param {String} transferID The id of the transfer
1538
+ * @param {Object} opts Optional parameters
1539
+ * @param {String} opts.authorization The authorization token of the logged in user
1540
+ * @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
1541
+ * @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
1542
+ * @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
1543
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1544
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransferResponse}
1545
+ */
1546
+ }, {
1547
+ key: "getStripeTransferPaymentMethodDetails",
1548
+ value: function getStripeTransferPaymentMethodDetails(transferID, opts) {
1549
+ return this.getStripeTransferPaymentMethodDetailsWithHttpInfo(transferID, opts).then(function (response_and_data) {
1550
+ return response_and_data.data;
1551
+ });
1552
+ }
1553
+
1554
+ /**
1555
+ * Retrieves the Stripe Account For the Specified User
1556
+ * Retrieves the Stripe Account
1557
+ * @param {Number} userID The id of the user to retrieve the account for
1558
+ * @param {Object} opts Optional parameters
1559
+ * @param {String} [authorization] The authorization token of the logged in user
1560
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1561
+ * @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
1562
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1563
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1564
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAccountResponse} and HTTP response
1565
+ */
1566
+ }, {
1567
+ key: "getUserStripeAccountWithHttpInfo",
1568
+ value: function getUserStripeAccountWithHttpInfo(userID, opts) {
1569
+ opts = opts || {};
1570
+ var postBody = null;
1571
+ // verify the required parameter 'userID' is set
1572
+ if (userID === undefined || userID === null) {
1573
+ throw new Error("Missing the required parameter 'userID' when calling getUserStripeAccount");
1574
+ }
1575
+ var pathParams = {
1576
+ 'userID': userID
1577
+ };
1578
+ var queryParams = {};
1579
+ var headerParams = {
1580
+ 'Authorization': opts['authorization'],
1581
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1582
+ 'zeusportal-postas': opts['zeusportalPostas'],
1583
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1584
+ 'transactionid': opts['transactionid']
1585
+ };
1586
+ var formParams = {};
1587
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1588
+ var contentTypes = [];
1589
+ var accepts = ['application/json'];
1590
+ var returnType = _CreateAccountResponse["default"];
1591
+ return this.apiClient.callApi('/graph/data/payments/stripe/user/{userID}/account', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1592
+ }
1593
+
1594
+ /**
1595
+ * Retrieves the Stripe Account For the Specified User
1596
+ * Retrieves the Stripe Account
1597
+ * @param {Number} userID The id of the user to retrieve the account for
1598
+ * @param {Object} opts Optional parameters
1599
+ * @param {String} opts.authorization The authorization token of the logged in user
1600
+ * @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
1601
+ * @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
1602
+ * @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
1603
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1604
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAccountResponse}
1605
+ */
1606
+ }, {
1607
+ key: "getUserStripeAccount",
1608
+ value: function getUserStripeAccount(userID, opts) {
1609
+ return this.getUserStripeAccountWithHttpInfo(userID, opts).then(function (response_and_data) {
1610
+ return response_and_data.data;
1611
+ });
1612
+ }
1613
+
1614
+ /**
1615
+ * Retrieves the Stripe Customer Account For the Logged In User
1616
+ * Retrieves the Stripe Customer Account
1617
+ * @param {Number} userID The id of the user to retrieve the account for
1618
+ * @param {Object} opts Optional parameters
1619
+ * @param {String} [authorization] The authorization token of the logged in user
1620
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1621
+ * @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
1622
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1623
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1624
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerResponse} and HTTP response
1625
+ */
1626
+ }, {
1627
+ key: "getUserStripeCustomerAccountWithHttpInfo",
1628
+ value: function getUserStripeCustomerAccountWithHttpInfo(userID, opts) {
1629
+ opts = opts || {};
1630
+ var postBody = null;
1631
+ // verify the required parameter 'userID' is set
1632
+ if (userID === undefined || userID === null) {
1633
+ throw new Error("Missing the required parameter 'userID' when calling getUserStripeCustomerAccount");
1634
+ }
1635
+ var pathParams = {
1636
+ 'userID': userID
1637
+ };
1638
+ var queryParams = {};
1639
+ var headerParams = {
1640
+ 'Authorization': opts['authorization'],
1641
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1642
+ 'zeusportal-postas': opts['zeusportalPostas'],
1643
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1644
+ 'transactionid': opts['transactionid']
1645
+ };
1646
+ var formParams = {};
1647
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1648
+ var contentTypes = [];
1649
+ var accepts = ['application/json'];
1650
+ var returnType = _CustomerResponse["default"];
1651
+ return this.apiClient.callApi('/graph/data/payments/stripe/user/{userID}/customer', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1652
+ }
1653
+
1654
+ /**
1655
+ * Retrieves the Stripe Customer Account For the Logged In User
1656
+ * Retrieves the Stripe Customer Account
1657
+ * @param {Number} userID The id of the user to retrieve the account for
1658
+ * @param {Object} opts Optional parameters
1659
+ * @param {String} opts.authorization The authorization token of the logged in user
1660
+ * @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
1661
+ * @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
1662
+ * @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
1663
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1664
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerResponse}
1665
+ */
1666
+ }, {
1667
+ key: "getUserStripeCustomerAccount",
1668
+ value: function getUserStripeCustomerAccount(userID, opts) {
1669
+ return this.getUserStripeCustomerAccountWithHttpInfo(userID, opts).then(function (response_and_data) {
1670
+ return response_and_data.data;
1671
+ });
1672
+ }
1673
+
1674
+ /**
1675
+ * Pays out the specified account
1676
+ * Pays out the specified account
1677
+ * @param {Number} accountID The id of the account we are paying out
1678
+ * @param {module:model/PayoutInput} payoutInput Contains the info to create the Payout
1679
+ * @param {Object} opts Optional parameters
1680
+ * @param {String} [authorization] The authorization token of the logged in user
1681
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1682
+ * @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
1683
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1684
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1685
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PayoutResponse} and HTTP response
1686
+ */
1687
+ }, {
1688
+ key: "payoutStripeAccountWithHttpInfo",
1689
+ value: function payoutStripeAccountWithHttpInfo(accountID, payoutInput, opts) {
1690
+ opts = opts || {};
1691
+ var postBody = payoutInput;
1692
+ // verify the required parameter 'accountID' is set
1693
+ if (accountID === undefined || accountID === null) {
1694
+ throw new Error("Missing the required parameter 'accountID' when calling payoutStripeAccount");
1695
+ }
1696
+ // verify the required parameter 'payoutInput' is set
1697
+ if (payoutInput === undefined || payoutInput === null) {
1698
+ throw new Error("Missing the required parameter 'payoutInput' when calling payoutStripeAccount");
1699
+ }
1700
+ var pathParams = {
1701
+ 'accountID': accountID
1702
+ };
1703
+ var queryParams = {};
1704
+ var headerParams = {
1705
+ 'Authorization': opts['authorization'],
1706
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1707
+ 'zeusportal-postas': opts['zeusportalPostas'],
1708
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1709
+ 'transactionid': opts['transactionid']
1710
+ };
1711
+ var formParams = {};
1712
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1713
+ var contentTypes = ['application/json'];
1714
+ var accepts = ['application/json'];
1715
+ var returnType = _PayoutResponse["default"];
1716
+ return this.apiClient.callApi('/graph/data/payments/stripe/account/{accountID}/payout', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1717
+ }
1718
+
1719
+ /**
1720
+ * Pays out the specified account
1721
+ * Pays out the specified account
1722
+ * @param {Number} accountID The id of the account we are paying out
1723
+ * @param {module:model/PayoutInput} payoutInput Contains the info to create the Payout
1724
+ * @param {Object} opts Optional parameters
1725
+ * @param {String} opts.authorization The authorization token of the logged in user
1726
+ * @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
1727
+ * @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
1728
+ * @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
1729
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1730
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PayoutResponse}
1731
+ */
1732
+ }, {
1733
+ key: "payoutStripeAccount",
1734
+ value: function payoutStripeAccount(accountID, payoutInput, opts) {
1735
+ return this.payoutStripeAccountWithHttpInfo(accountID, payoutInput, opts).then(function (response_and_data) {
1736
+ return response_and_data.data;
1737
+ });
1738
+ }
1739
+
1740
+ /**
1741
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1742
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1743
+ * @param {Number} applicationid
1744
+ * @param {Number} accountid
1745
+ * @param {Object} opts Optional parameters
1746
+ * @param {String} [authorization] The authorization token of the logged in user
1747
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1748
+ * @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
1749
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1750
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1751
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApplicationPaymentAccountResponse} and HTTP response
1752
+ */
1753
+ }, {
1754
+ key: "setApplicationStripePaymentAccountWithHttpInfo",
1755
+ value: function setApplicationStripePaymentAccountWithHttpInfo(applicationid, accountid, opts) {
1756
+ opts = opts || {};
1757
+ var postBody = null;
1758
+ // verify the required parameter 'applicationid' is set
1759
+ if (applicationid === undefined || applicationid === null) {
1760
+ throw new Error("Missing the required parameter 'applicationid' when calling setApplicationStripePaymentAccount");
1761
+ }
1762
+ // verify the required parameter 'accountid' is set
1763
+ if (accountid === undefined || accountid === null) {
1764
+ throw new Error("Missing the required parameter 'accountid' when calling setApplicationStripePaymentAccount");
1765
+ }
1766
+ var pathParams = {
1767
+ 'applicationid': applicationid,
1768
+ 'accountid': accountid
1769
+ };
1770
+ var queryParams = {};
1771
+ var headerParams = {
1772
+ 'Authorization': opts['authorization'],
1773
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1774
+ 'zeusportal-postas': opts['zeusportalPostas'],
1775
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1776
+ 'transactionid': opts['transactionid']
1777
+ };
1778
+ var formParams = {};
1779
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1780
+ var contentTypes = [];
1781
+ var accepts = ['application/json'];
1782
+ var returnType = _ApplicationPaymentAccountResponse["default"];
1783
+ return this.apiClient.callApi('/graph/data/payments/stripe/application/{applicationid}/{accountId}/paymentaccount', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1784
+ }
1785
+
1786
+ /**
1787
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1788
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1789
+ * @param {Number} applicationid
1790
+ * @param {Number} accountid
1791
+ * @param {Object} opts Optional parameters
1792
+ * @param {String} opts.authorization The authorization token of the logged in user
1793
+ * @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
1794
+ * @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
1795
+ * @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
1796
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1797
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApplicationPaymentAccountResponse}
1798
+ */
1799
+ }, {
1800
+ key: "setApplicationStripePaymentAccount",
1801
+ value: function setApplicationStripePaymentAccount(applicationid, accountid, opts) {
1802
+ return this.setApplicationStripePaymentAccountWithHttpInfo(applicationid, accountid, opts).then(function (response_and_data) {
1803
+ return response_and_data.data;
1804
+ });
1805
+ }
1806
+
1807
+ /**
1808
+ * Adds payment methods for the customer stored in stripe
1809
+ * Retrieves the payment methods for the customer stored in stripe
1810
+ * @param {Number} customerID The id of the customer
1811
+ * @param {String} body The id of the payment method
1812
+ * @param {Object} opts Optional parameters
1813
+ * @param {String} [authorization] The authorization token of the logged in user
1814
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1815
+ * @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
1816
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1817
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1818
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
1819
+ */
1820
+ }, {
1821
+ key: "setDefaultCustomerStripePaymentMethodWithHttpInfo",
1822
+ value: function setDefaultCustomerStripePaymentMethodWithHttpInfo(customerID, body, opts) {
1823
+ opts = opts || {};
1824
+ var postBody = body;
1825
+ // verify the required parameter 'customerID' is set
1826
+ if (customerID === undefined || customerID === null) {
1827
+ throw new Error("Missing the required parameter 'customerID' when calling setDefaultCustomerStripePaymentMethod");
1828
+ }
1829
+ // verify the required parameter 'body' is set
1830
+ if (body === undefined || body === null) {
1831
+ throw new Error("Missing the required parameter 'body' when calling setDefaultCustomerStripePaymentMethod");
1832
+ }
1833
+ var pathParams = {
1834
+ 'customerID': customerID
1835
+ };
1836
+ var queryParams = {};
1837
+ var headerParams = {
1838
+ 'Authorization': opts['authorization'],
1839
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1840
+ 'zeusportal-postas': opts['zeusportalPostas'],
1841
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1842
+ 'transactionid': opts['transactionid']
1843
+ };
1844
+ var formParams = {};
1845
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1846
+ var contentTypes = ['text/plain'];
1847
+ var accepts = ['application/json'];
1848
+ var returnType = _PaymentMethodResponse["default"];
1849
+ return this.apiClient.callApi('/graph/data/payments/stripe/customer/{customerID}/paymentmethods/default', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1850
+ }
1851
+
1852
+ /**
1853
+ * Adds payment methods for the customer stored in stripe
1854
+ * Retrieves the payment methods for the customer stored in stripe
1855
+ * @param {Number} customerID The id of the customer
1856
+ * @param {String} body The id of the payment method
1857
+ * @param {Object} opts Optional parameters
1858
+ * @param {String} opts.authorization The authorization token of the logged in user
1859
+ * @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
1860
+ * @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
1861
+ * @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
1862
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1863
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
1864
+ */
1865
+ }, {
1866
+ key: "setDefaultCustomerStripePaymentMethod",
1867
+ value: function setDefaultCustomerStripePaymentMethod(customerID, body, opts) {
1868
+ return this.setDefaultCustomerStripePaymentMethodWithHttpInfo(customerID, body, opts).then(function (response_and_data) {
1869
+ return response_and_data.data;
1870
+ });
1871
+ }
1872
+
1873
+ /**
1874
+ * Sets the default payment method for the customer stored in stripe
1875
+ * Retrieves the payment methods for the customer stored in stripe
1876
+ * @param {String} body The id of the payment method
1877
+ * @param {Object} opts Optional parameters
1878
+ * @param {String} [authorization] The authorization token of the logged in user
1879
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1880
+ * @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
1881
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1882
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1883
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
1884
+ */
1885
+ }, {
1886
+ key: "setDefaultStripePaymentMethodWithHttpInfo",
1887
+ value: function setDefaultStripePaymentMethodWithHttpInfo(body, opts) {
1888
+ opts = opts || {};
1889
+ var postBody = body;
1890
+ // verify the required parameter 'body' is set
1891
+ if (body === undefined || body === null) {
1892
+ throw new Error("Missing the required parameter 'body' when calling setDefaultStripePaymentMethod");
1893
+ }
1894
+ var pathParams = {};
1895
+ var queryParams = {};
1896
+ var headerParams = {
1897
+ 'Authorization': opts['authorization'],
1898
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1899
+ 'zeusportal-postas': opts['zeusportalPostas'],
1900
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1901
+ 'transactionid': opts['transactionid']
1902
+ };
1903
+ var formParams = {};
1904
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1905
+ var contentTypes = ['text/plain'];
1906
+ var accepts = ['application/json'];
1907
+ var returnType = _PaymentMethodResponse["default"];
1908
+ return this.apiClient.callApi('/graph/data/payments/stripe/paymentmethods/default', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1909
+ }
1910
+
1911
+ /**
1912
+ * Sets the default payment method for the customer stored in stripe
1913
+ * Retrieves the payment methods for the customer stored in stripe
1914
+ * @param {String} body The id of the payment method
1915
+ * @param {Object} opts Optional parameters
1916
+ * @param {String} opts.authorization The authorization token of the logged in user
1917
+ * @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
1918
+ * @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
1919
+ * @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
1920
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1921
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
1922
+ */
1923
+ }, {
1924
+ key: "setDefaultStripePaymentMethod",
1925
+ value: function setDefaultStripePaymentMethod(body, opts) {
1926
+ return this.setDefaultStripePaymentMethodWithHttpInfo(body, opts).then(function (response_and_data) {
1927
+ return response_and_data.data;
1928
+ });
1929
+ }
1930
+
1931
+ /**
1932
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1933
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1934
+ * @param {Number} siteid
1935
+ * @param {Number} accountid
1936
+ * @param {Object} opts Optional parameters
1937
+ * @param {String} [authorization] The authorization token of the logged in user
1938
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1939
+ * @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
1940
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1941
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1942
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApplicationPaymentAccountResponse} and HTTP response
1943
+ */
1944
+ }, {
1945
+ key: "setSiteStripePaymentAccountWithHttpInfo",
1946
+ value: function setSiteStripePaymentAccountWithHttpInfo(siteid, accountid, opts) {
1947
+ opts = opts || {};
1948
+ var postBody = null;
1949
+ // verify the required parameter 'siteid' is set
1950
+ if (siteid === undefined || siteid === null) {
1951
+ throw new Error("Missing the required parameter 'siteid' when calling setSiteStripePaymentAccount");
1952
+ }
1953
+ // verify the required parameter 'accountid' is set
1954
+ if (accountid === undefined || accountid === null) {
1955
+ throw new Error("Missing the required parameter 'accountid' when calling setSiteStripePaymentAccount");
1956
+ }
1957
+ var pathParams = {
1958
+ 'siteid': siteid,
1959
+ 'accountid': accountid
1960
+ };
1961
+ var queryParams = {};
1962
+ var headerParams = {
1963
+ 'Authorization': opts['authorization'],
1964
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1965
+ 'zeusportal-postas': opts['zeusportalPostas'],
1966
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1967
+ 'transactionid': opts['transactionid']
1968
+ };
1969
+ var formParams = {};
1970
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1971
+ var contentTypes = [];
1972
+ var accepts = ['application/json'];
1973
+ var returnType = _ApplicationPaymentAccountResponse["default"];
1974
+ return this.apiClient.callApi('/graph/data/payments/stripe/site/{siteid}/{accountId}/paymentaccount', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1975
+ }
1976
+
1977
+ /**
1978
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1979
+ * Updates the Stripe account that is used to pay for the app/site instance and for recieving payments from end users
1980
+ * @param {Number} siteid
1981
+ * @param {Number} accountid
1982
+ * @param {Object} opts Optional parameters
1983
+ * @param {String} opts.authorization The authorization token of the logged in user
1984
+ * @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
1985
+ * @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
1986
+ * @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
1987
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1988
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApplicationPaymentAccountResponse}
1989
+ */
1990
+ }, {
1991
+ key: "setSiteStripePaymentAccount",
1992
+ value: function setSiteStripePaymentAccount(siteid, accountid, opts) {
1993
+ return this.setSiteStripePaymentAccountWithHttpInfo(siteid, accountid, opts).then(function (response_and_data) {
1994
+ return response_and_data.data;
1995
+ });
1996
+ }
1997
+
1998
+ /**
1999
+ * Pays out the account of the logged in user
2000
+ * Pays out the account of the logged in user
2001
+ * @param {module:model/PayoutInput} payoutInput Contains the info to create the Payout
2002
+ * @param {Object} opts Optional parameters
2003
+ * @param {String} [authorization] The authorization token of the logged in user
2004
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2005
+ * @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
2006
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2007
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2008
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PayoutResponse} and HTTP response
2009
+ */
2010
+ }, {
2011
+ key: "stripePayoutWithHttpInfo",
2012
+ value: function stripePayoutWithHttpInfo(payoutInput, opts) {
2013
+ opts = opts || {};
2014
+ var postBody = payoutInput;
2015
+ // verify the required parameter 'payoutInput' is set
2016
+ if (payoutInput === undefined || payoutInput === null) {
2017
+ throw new Error("Missing the required parameter 'payoutInput' when calling stripePayout");
2018
+ }
2019
+ var pathParams = {};
2020
+ var queryParams = {};
2021
+ var headerParams = {
2022
+ 'Authorization': opts['authorization'],
2023
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2024
+ 'zeusportal-postas': opts['zeusportalPostas'],
2025
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2026
+ 'transactionid': opts['transactionid']
2027
+ };
2028
+ var formParams = {};
2029
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2030
+ var contentTypes = [];
2031
+ var accepts = ['application/json'];
2032
+ var returnType = _PayoutResponse["default"];
2033
+ return this.apiClient.callApi('/graph/data/payments/stripe/payout', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2034
+ }
2035
+
2036
+ /**
2037
+ * Pays out the account of the logged in user
2038
+ * Pays out the account of the logged in user
2039
+ * @param {module:model/PayoutInput} payoutInput Contains the info to create the Payout
2040
+ * @param {Object} opts Optional parameters
2041
+ * @param {String} opts.authorization The authorization token of the logged in user
2042
+ * @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
2043
+ * @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
2044
+ * @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
2045
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2046
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PayoutResponse}
2047
+ */
2048
+ }, {
2049
+ key: "stripePayout",
2050
+ value: function stripePayout(payoutInput, opts) {
2051
+ return this.stripePayoutWithHttpInfo(payoutInput, opts).then(function (response_and_data) {
2052
+ return response_and_data.data;
2053
+ });
2054
+ }
2055
+
2056
+ /**
2057
+ * Sends a transfer payment from the logged in user to the recipient specified in the TransferInput
2058
+ * Sends a transfer payment from the logged in user to the recipient specified in the TransferInput
2059
+ * @param {module:model/TransferInput} transferInput Contains the info to create the Transfer
2060
+ * @param {Object} opts Optional parameters
2061
+ * @param {String} [authorization] The authorization token of the logged in user
2062
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2063
+ * @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
2064
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2065
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2066
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransferResponse} and HTTP response
2067
+ */
2068
+ }, {
2069
+ key: "stripeTransferWithHttpInfo",
2070
+ value: function stripeTransferWithHttpInfo(transferInput, opts) {
2071
+ opts = opts || {};
2072
+ var postBody = transferInput;
2073
+ // verify the required parameter 'transferInput' is set
2074
+ if (transferInput === undefined || transferInput === null) {
2075
+ throw new Error("Missing the required parameter 'transferInput' when calling stripeTransfer");
2076
+ }
2077
+ var pathParams = {};
2078
+ var queryParams = {};
2079
+ var headerParams = {
2080
+ 'Authorization': opts['authorization'],
2081
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2082
+ 'zeusportal-postas': opts['zeusportalPostas'],
2083
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2084
+ 'transactionid': opts['transactionid']
2085
+ };
2086
+ var formParams = {};
2087
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2088
+ var contentTypes = ['application/json'];
2089
+ var accepts = ['application/json'];
2090
+ var returnType = _TransferResponse["default"];
2091
+ return this.apiClient.callApi('/graph/data/payments/stripe/transfer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2092
+ }
2093
+
2094
+ /**
2095
+ * Sends a transfer payment from the logged in user to the recipient specified in the TransferInput
2096
+ * Sends a transfer payment from the logged in user to the recipient specified in the TransferInput
2097
+ * @param {module:model/TransferInput} transferInput Contains the info to create the Transfer
2098
+ * @param {Object} opts Optional parameters
2099
+ * @param {String} opts.authorization The authorization token of the logged in user
2100
+ * @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
2101
+ * @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
2102
+ * @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
2103
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2104
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransferResponse}
2105
+ */
2106
+ }, {
2107
+ key: "stripeTransfer",
2108
+ value: function stripeTransfer(transferInput, opts) {
2109
+ return this.stripeTransferWithHttpInfo(transferInput, opts).then(function (response_and_data) {
2110
+ return response_and_data.data;
2111
+ });
2112
+ }
2113
+
2114
+ /**
2115
+ * Creates an Account Link which enables the user to update their Stripe account details
2116
+ * Creates an Account Link which enables the user to update their Stripe account details
2117
+ * @param {Number} accountID The accountid to update
2118
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
2119
+ * @param {Object} opts Optional parameters
2120
+ * @param {String} [authorization] The authorization token of the logged in user
2121
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2122
+ * @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
2123
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2124
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2125
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAccountResponse} and HTTP response
2126
+ */
2127
+ }, {
2128
+ key: "updateAccountLinkWithHttpInfo",
2129
+ value: function updateAccountLinkWithHttpInfo(accountID, createStripeAccountInput, opts) {
2130
+ opts = opts || {};
2131
+ var postBody = createStripeAccountInput;
2132
+ // verify the required parameter 'accountID' is set
2133
+ if (accountID === undefined || accountID === null) {
2134
+ throw new Error("Missing the required parameter 'accountID' when calling updateAccountLink");
2135
+ }
2136
+ // verify the required parameter 'createStripeAccountInput' is set
2137
+ if (createStripeAccountInput === undefined || createStripeAccountInput === null) {
2138
+ throw new Error("Missing the required parameter 'createStripeAccountInput' when calling updateAccountLink");
2139
+ }
2140
+ var pathParams = {
2141
+ 'accountID': accountID
2142
+ };
2143
+ var queryParams = {};
2144
+ var headerParams = {
2145
+ 'Authorization': opts['authorization'],
2146
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2147
+ 'zeusportal-postas': opts['zeusportalPostas'],
2148
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2149
+ 'transactionid': opts['transactionid']
2150
+ };
2151
+ var formParams = {};
2152
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2153
+ var contentTypes = ['application/json'];
2154
+ var accepts = ['application/json'];
2155
+ var returnType = _CreateAccountResponse["default"];
2156
+ return this.apiClient.callApi('/graph/data/payments/stripe/account/{accountID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2157
+ }
2158
+
2159
+ /**
2160
+ * Creates an Account Link which enables the user to update their Stripe account details
2161
+ * Creates an Account Link which enables the user to update their Stripe account details
2162
+ * @param {Number} accountID The accountid to update
2163
+ * @param {module:model/CreateStripeAccountInput} createStripeAccountInput Contains the info to create the Stripe Account
2164
+ * @param {Object} opts Optional parameters
2165
+ * @param {String} opts.authorization The authorization token of the logged in user
2166
+ * @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
2167
+ * @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
2168
+ * @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
2169
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2170
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAccountResponse}
2171
+ */
2172
+ }, {
2173
+ key: "updateAccountLink",
2174
+ value: function updateAccountLink(accountID, createStripeAccountInput, opts) {
2175
+ return this.updateAccountLinkWithHttpInfo(accountID, createStripeAccountInput, opts).then(function (response_and_data) {
2176
+ return response_and_data.data;
2177
+ });
2178
+ }
2179
+
2180
+ /**
2181
+ * Updates the customer account and returns a client secret to enable user to update their details on Stripe
2182
+ * Creates a client secret to enable user to update their Stripe details
2183
+ * @param {Number} customerID The customerid to update
2184
+ * @param {module:model/CreateStripeCustomerInput} createStripeCustomerInput Contains the info to update the Stripe Customer Account including a client secret to pass into Stripe Payment Elements
2185
+ * @param {Object} opts Optional parameters
2186
+ * @param {String} [authorization] The authorization token of the logged in user
2187
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2188
+ * @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
2189
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2190
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2191
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerResponse} and HTTP response
2192
+ */
2193
+ }, {
2194
+ key: "updateCustomerWithHttpInfo",
2195
+ value: function updateCustomerWithHttpInfo(customerID, createStripeCustomerInput, opts) {
2196
+ opts = opts || {};
2197
+ var postBody = createStripeCustomerInput;
2198
+ // verify the required parameter 'customerID' is set
2199
+ if (customerID === undefined || customerID === null) {
2200
+ throw new Error("Missing the required parameter 'customerID' when calling updateCustomer");
2201
+ }
2202
+ // verify the required parameter 'createStripeCustomerInput' is set
2203
+ if (createStripeCustomerInput === undefined || createStripeCustomerInput === null) {
2204
+ throw new Error("Missing the required parameter 'createStripeCustomerInput' when calling updateCustomer");
2205
+ }
2206
+ var pathParams = {
2207
+ 'customerID': customerID
2208
+ };
2209
+ var queryParams = {};
2210
+ var headerParams = {
2211
+ 'Authorization': opts['authorization'],
2212
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2213
+ 'zeusportal-postas': opts['zeusportalPostas'],
2214
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2215
+ 'transactionid': opts['transactionid']
2216
+ };
2217
+ var formParams = {};
2218
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2219
+ var contentTypes = ['application/json'];
2220
+ var accepts = ['application/json'];
2221
+ var returnType = _CustomerResponse["default"];
2222
+ return this.apiClient.callApi('/graph/data/payments/stripe/customer/{customerID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2223
+ }
2224
+
2225
+ /**
2226
+ * Updates the customer account and returns a client secret to enable user to update their details on Stripe
2227
+ * Creates a client secret to enable user to update their Stripe details
2228
+ * @param {Number} customerID The customerid to update
2229
+ * @param {module:model/CreateStripeCustomerInput} createStripeCustomerInput Contains the info to update the Stripe Customer Account including a client secret to pass into Stripe Payment Elements
2230
+ * @param {Object} opts Optional parameters
2231
+ * @param {String} opts.authorization The authorization token of the logged in user
2232
+ * @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
2233
+ * @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
2234
+ * @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
2235
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2236
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerResponse}
2237
+ */
2238
+ }, {
2239
+ key: "updateCustomer",
2240
+ value: function updateCustomer(customerID, createStripeCustomerInput, opts) {
2241
+ return this.updateCustomerWithHttpInfo(customerID, createStripeCustomerInput, opts).then(function (response_and_data) {
2242
+ return response_and_data.data;
2243
+ });
2244
+ }
2245
+
2246
+ /**
2247
+ * Adds payment methods for the customer stored in stripe
2248
+ * Retrieves the payment methods for the customer stored in stripe
2249
+ * @param {String} paymentMethodID The id of the payment method to update
2250
+ * @param {Object} opts Optional parameters
2251
+ * @param {String} [authorization] The authorization token of the logged in user
2252
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2253
+ * @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
2254
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2255
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2256
+ * @param {module:model/PaymentMethodInput} [paymentMethodInput] The payment method data
2257
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentMethodResponse} and HTTP response
2258
+ */
2259
+ }, {
2260
+ key: "updateStripePaymentMethodWithHttpInfo",
2261
+ value: function updateStripePaymentMethodWithHttpInfo(paymentMethodID, opts) {
2262
+ opts = opts || {};
2263
+ var postBody = opts['paymentMethodInput'];
2264
+ // verify the required parameter 'paymentMethodID' is set
2265
+ if (paymentMethodID === undefined || paymentMethodID === null) {
2266
+ throw new Error("Missing the required parameter 'paymentMethodID' when calling updateStripePaymentMethod");
2267
+ }
2268
+ var pathParams = {
2269
+ 'paymentMethodID': paymentMethodID
2270
+ };
2271
+ var queryParams = {};
2272
+ var headerParams = {
2273
+ 'Authorization': opts['authorization'],
2274
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2275
+ 'zeusportal-postas': opts['zeusportalPostas'],
2276
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2277
+ 'transactionid': opts['transactionid']
2278
+ };
2279
+ var formParams = {};
2280
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2281
+ var contentTypes = ['application/json'];
2282
+ var accepts = ['application/json'];
2283
+ var returnType = _PaymentMethodResponse["default"];
2284
+ return this.apiClient.callApi('/graph/data/payments/stripe/paymentmethods/{paymentMethodID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2285
+ }
2286
+
2287
+ /**
2288
+ * Adds payment methods for the customer stored in stripe
2289
+ * Retrieves the payment methods for the customer stored in stripe
2290
+ * @param {String} paymentMethodID The id of the payment method to update
2291
+ * @param {Object} opts Optional parameters
2292
+ * @param {String} opts.authorization The authorization token of the logged in user
2293
+ * @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
2294
+ * @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
2295
+ * @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
2296
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2297
+ * @param {module:model/PaymentMethodInput} opts.paymentMethodInput The payment method data
2298
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentMethodResponse}
2299
+ */
2300
+ }, {
2301
+ key: "updateStripePaymentMethod",
2302
+ value: function updateStripePaymentMethod(paymentMethodID, opts) {
2303
+ return this.updateStripePaymentMethodWithHttpInfo(paymentMethodID, opts).then(function (response_and_data) {
2304
+ return response_and_data.data;
2305
+ });
2306
+ }
2307
+ }]);
2308
+ return StripeAccountsApi;
2309
+ }();