@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,347 @@
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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ 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); }
10
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ 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); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
17
+ 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); } /**
18
+ * gobodo-api
19
+ * REST Interface for Gobodo API
20
+ *
21
+ * The version of the OpenAPI document: 0.1.34
22
+ * Contact: info@gobodo.io
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The PayoutInput model module.
31
+ * @module model/PayoutInput
32
+ * @version 0.1.34
33
+ */
34
+ var PayoutInput = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>PayoutInput</code>.
37
+ * @alias module:model/PayoutInput
38
+ * @param currency {String} The currency of the payout
39
+ * @param amount {Number} The amount of the payout
40
+ * @param sourceType {module:model/PayoutInput.SourceTypeEnum} The source balance this payout came from, which can be one of the following: card, fpx, or bank_account.
41
+ */
42
+ function PayoutInput(currency, amount, sourceType) {
43
+ _classCallCheck(this, PayoutInput);
44
+ PayoutInput.initialize(this, currency, amount, sourceType);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ _createClass(PayoutInput, [{
53
+ key: "getCurrency",
54
+ value:
55
+ /**
56
+ * Returns The currency of the payout
57
+ * @return {String}
58
+ */
59
+ function getCurrency() {
60
+ return this.currency;
61
+ }
62
+
63
+ /**
64
+ * Sets The currency of the payout
65
+ * @param {String} currency The currency of the payout
66
+ */
67
+ }, {
68
+ key: "setCurrency",
69
+ value: function setCurrency(currency) {
70
+ this['currency'] = currency;
71
+ }
72
+ /**
73
+ * Returns The amount of the payout
74
+ * @return {Number}
75
+ */
76
+ }, {
77
+ key: "getAmount",
78
+ value: function getAmount() {
79
+ return this.amount;
80
+ }
81
+
82
+ /**
83
+ * Sets The amount of the payout
84
+ * @param {Number} amount The amount of the payout
85
+ */
86
+ }, {
87
+ key: "setAmount",
88
+ value: function setAmount(amount) {
89
+ this['amount'] = amount;
90
+ }
91
+ /**
92
+ * Returns The source balance this payout came from, which can be one of the following: card, fpx, or bank_account.
93
+ * @return {module:model/PayoutInput.SourceTypeEnum}
94
+ */
95
+ }, {
96
+ key: "getSourceType",
97
+ value: function getSourceType() {
98
+ return this.sourceType;
99
+ }
100
+
101
+ /**
102
+ * Sets The source balance this payout came from, which can be one of the following: card, fpx, or bank_account.
103
+ * @param {module:model/PayoutInput.SourceTypeEnum} sourceType The source balance this payout came from, which can be one of the following: card, fpx, or bank_account.
104
+ */
105
+ }, {
106
+ key: "setSourceType",
107
+ value: function setSourceType(sourceType) {
108
+ this['sourceType'] = sourceType;
109
+ }
110
+ /**
111
+ * Returns An arbitrary string attached to the object. Often useful for displaying to users.
112
+ * @return {String}
113
+ */
114
+ }, {
115
+ key: "getDescription",
116
+ value: function getDescription() {
117
+ return this.description;
118
+ }
119
+
120
+ /**
121
+ * Sets An arbitrary string attached to the object. Often useful for displaying to users.
122
+ * @param {String} description An arbitrary string attached to the object. Often useful for displaying to users.
123
+ */
124
+ }, {
125
+ key: "setDescription",
126
+ value: function setDescription(description) {
127
+ this['description'] = description;
128
+ }
129
+ /**
130
+ * Returns Extra information about a payout that displays on the user’s bank statement.
131
+ * @return {String}
132
+ */
133
+ }, {
134
+ key: "getStatementDescriptor",
135
+ value: function getStatementDescriptor() {
136
+ return this.statementDescriptor;
137
+ }
138
+
139
+ /**
140
+ * Sets Extra information about a payout that displays on the user’s bank statement.
141
+ * @param {String} statementDescriptor Extra information about a payout that displays on the user’s bank statement.
142
+ */
143
+ }, {
144
+ key: "setStatementDescriptor",
145
+ value: function setStatementDescriptor(statementDescriptor) {
146
+ this['statementDescriptor'] = statementDescriptor;
147
+ }
148
+ /**
149
+ * Returns The ID of a bank account or a card to send the payout to. If you don’t provide a destination, we use the default external account for the specified currency.
150
+ * @return {String}
151
+ */
152
+ }, {
153
+ key: "getDestination",
154
+ value: function getDestination() {
155
+ return this.destination;
156
+ }
157
+
158
+ /**
159
+ * Sets The ID of a bank account or a card to send the payout to. If you don’t provide a destination, we use the default external account for the specified currency.
160
+ * @param {String} destination The ID of a bank account or a card to send the payout to. If you don’t provide a destination, we use the default external account for the specified currency.
161
+ */
162
+ }, {
163
+ key: "setDestination",
164
+ value: function setDestination(destination) {
165
+ this['destination'] = destination;
166
+ }
167
+ /**
168
+ * Returns Optional metadata associated with the transfer
169
+ * @return {Object.<String, String>}
170
+ */
171
+ }, {
172
+ key: "getMetaData",
173
+ value: function getMetaData() {
174
+ return this.metaData;
175
+ }
176
+
177
+ /**
178
+ * Sets Optional metadata associated with the transfer
179
+ * @param {Object.<String, String>} metaData Optional metadata associated with the transfer
180
+ */
181
+ }, {
182
+ key: "setMetaData",
183
+ value: function setMetaData(metaData) {
184
+ this['metaData'] = metaData;
185
+ }
186
+ }], [{
187
+ key: "initialize",
188
+ value: function initialize(obj, currency, amount, sourceType) {
189
+ obj['currency'] = currency;
190
+ obj['amount'] = amount;
191
+ obj['sourceType'] = sourceType;
192
+ }
193
+
194
+ /**
195
+ * Constructs a <code>PayoutInput</code> from a plain JavaScript object, optionally creating a new instance.
196
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
197
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
198
+ * @param {module:model/PayoutInput} obj Optional instance to populate.
199
+ * @return {module:model/PayoutInput} The populated <code>PayoutInput</code> instance.
200
+ */
201
+ }, {
202
+ key: "constructFromObject",
203
+ value: function constructFromObject(data, obj) {
204
+ if (data) {
205
+ obj = obj || new PayoutInput();
206
+ if (data.hasOwnProperty('currency')) {
207
+ obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
208
+ }
209
+ if (data.hasOwnProperty('amount')) {
210
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
211
+ }
212
+ if (data.hasOwnProperty('sourceType')) {
213
+ obj['sourceType'] = _ApiClient["default"].convertToType(data['sourceType'], 'String');
214
+ }
215
+ if (data.hasOwnProperty('description')) {
216
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
217
+ }
218
+ if (data.hasOwnProperty('statementDescriptor')) {
219
+ obj['statementDescriptor'] = _ApiClient["default"].convertToType(data['statementDescriptor'], 'String');
220
+ }
221
+ if (data.hasOwnProperty('destination')) {
222
+ obj['destination'] = _ApiClient["default"].convertToType(data['destination'], 'String');
223
+ }
224
+ if (data.hasOwnProperty('metaData')) {
225
+ obj['metaData'] = _ApiClient["default"].convertToType(data['metaData'], {
226
+ 'String': 'String'
227
+ });
228
+ }
229
+ }
230
+ return obj;
231
+ }
232
+
233
+ /**
234
+ * Validates the JSON data with respect to <code>PayoutInput</code>.
235
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
236
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PayoutInput</code>.
237
+ */
238
+ }, {
239
+ key: "validateJSON",
240
+ value: function validateJSON(data) {
241
+ // check to make sure all required properties are present in the JSON string
242
+ var _iterator = _createForOfIteratorHelper(PayoutInput.RequiredProperties),
243
+ _step;
244
+ try {
245
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
246
+ var property = _step.value;
247
+ if (!data[property]) {
248
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
249
+ }
250
+ }
251
+ // ensure the json data is a string
252
+ } catch (err) {
253
+ _iterator.e(err);
254
+ } finally {
255
+ _iterator.f();
256
+ }
257
+ if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
258
+ throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
259
+ }
260
+ // ensure the json data is a string
261
+ if (data['sourceType'] && !(typeof data['sourceType'] === 'string' || data['sourceType'] instanceof String)) {
262
+ throw new Error("Expected the field `sourceType` to be a primitive type in the JSON string but got " + data['sourceType']);
263
+ }
264
+ // ensure the json data is a string
265
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
266
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
267
+ }
268
+ // ensure the json data is a string
269
+ if (data['statementDescriptor'] && !(typeof data['statementDescriptor'] === 'string' || data['statementDescriptor'] instanceof String)) {
270
+ throw new Error("Expected the field `statementDescriptor` to be a primitive type in the JSON string but got " + data['statementDescriptor']);
271
+ }
272
+ // ensure the json data is a string
273
+ if (data['destination'] && !(typeof data['destination'] === 'string' || data['destination'] instanceof String)) {
274
+ throw new Error("Expected the field `destination` to be a primitive type in the JSON string but got " + data['destination']);
275
+ }
276
+ return true;
277
+ }
278
+ }]);
279
+ return PayoutInput;
280
+ }();
281
+ PayoutInput.RequiredProperties = ["currency", "amount", "sourceType"];
282
+
283
+ /**
284
+ * The currency of the payout
285
+ * @member {String} currency
286
+ */
287
+ PayoutInput.prototype['currency'] = undefined;
288
+
289
+ /**
290
+ * The amount of the payout
291
+ * @member {Number} amount
292
+ */
293
+ PayoutInput.prototype['amount'] = undefined;
294
+
295
+ /**
296
+ * The source balance this payout came from, which can be one of the following: card, fpx, or bank_account.
297
+ * @member {module:model/PayoutInput.SourceTypeEnum} sourceType
298
+ */
299
+ PayoutInput.prototype['sourceType'] = undefined;
300
+
301
+ /**
302
+ * An arbitrary string attached to the object. Often useful for displaying to users.
303
+ * @member {String} description
304
+ */
305
+ PayoutInput.prototype['description'] = undefined;
306
+
307
+ /**
308
+ * Extra information about a payout that displays on the user’s bank statement.
309
+ * @member {String} statementDescriptor
310
+ */
311
+ PayoutInput.prototype['statementDescriptor'] = undefined;
312
+
313
+ /**
314
+ * The ID of a bank account or a card to send the payout to. If you don’t provide a destination, we use the default external account for the specified currency.
315
+ * @member {String} destination
316
+ */
317
+ PayoutInput.prototype['destination'] = undefined;
318
+
319
+ /**
320
+ * Optional metadata associated with the transfer
321
+ * @member {Object.<String, String>} metaData
322
+ */
323
+ PayoutInput.prototype['metaData'] = undefined;
324
+
325
+ /**
326
+ * Allowed values for the <code>sourceType</code> property.
327
+ * @enum {String}
328
+ * @readonly
329
+ */
330
+ PayoutInput['SourceTypeEnum'] = {
331
+ /**
332
+ * value: "CARD"
333
+ * @const
334
+ */
335
+ "CARD": "CARD",
336
+ /**
337
+ * value: "BANK_ACCOUNT"
338
+ * @const
339
+ */
340
+ "BANK_ACCOUNT": "BANK_ACCOUNT",
341
+ /**
342
+ * value: "FPX"
343
+ * @const
344
+ */
345
+ "FPX": "FPX"
346
+ };
347
+ var _default = exports["default"] = PayoutInput;
@@ -0,0 +1,142 @@
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 _Payout = _interopRequireDefault(require("./Payout"));
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ 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); }
11
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
+ 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); } }
13
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
+ 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); } /**
16
+ * gobodo-api
17
+ * REST Interface for Gobodo API
18
+ *
19
+ * The version of the OpenAPI document: 0.1.34
20
+ * Contact: info@gobodo.io
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The PayoutResponse model module.
29
+ * @module model/PayoutResponse
30
+ * @version 0.1.34
31
+ */
32
+ var PayoutResponse = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>PayoutResponse</code>.
35
+ * @alias module:model/PayoutResponse
36
+ */
37
+ function PayoutResponse() {
38
+ _classCallCheck(this, PayoutResponse);
39
+ PayoutResponse.initialize(this);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ _createClass(PayoutResponse, [{
48
+ key: "getPayout",
49
+ value:
50
+ /**
51
+ * @return {module:model/Payout}
52
+ */
53
+ function getPayout() {
54
+ return this.payout;
55
+ }
56
+
57
+ /**
58
+ * @param {module:model/Payout} payout
59
+ */
60
+ }, {
61
+ key: "setPayout",
62
+ value: function setPayout(payout) {
63
+ this['payout'] = payout;
64
+ }
65
+ /**
66
+ * Returns The reason the payout action failed
67
+ * @return {String}
68
+ */
69
+ }, {
70
+ key: "getFailureException",
71
+ value: function getFailureException() {
72
+ return this.failureException;
73
+ }
74
+
75
+ /**
76
+ * Sets The reason the payout action failed
77
+ * @param {String} failureException The reason the payout action failed
78
+ */
79
+ }, {
80
+ key: "setFailureException",
81
+ value: function setFailureException(failureException) {
82
+ this['failureException'] = failureException;
83
+ }
84
+ }], [{
85
+ key: "initialize",
86
+ value: function initialize(obj) {}
87
+
88
+ /**
89
+ * Constructs a <code>PayoutResponse</code> from a plain JavaScript object, optionally creating a new instance.
90
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
91
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
92
+ * @param {module:model/PayoutResponse} obj Optional instance to populate.
93
+ * @return {module:model/PayoutResponse} The populated <code>PayoutResponse</code> instance.
94
+ */
95
+ }, {
96
+ key: "constructFromObject",
97
+ value: function constructFromObject(data, obj) {
98
+ if (data) {
99
+ obj = obj || new PayoutResponse();
100
+ if (data.hasOwnProperty('payout')) {
101
+ obj['payout'] = _Payout["default"].constructFromObject(data['payout']);
102
+ }
103
+ if (data.hasOwnProperty('failureException')) {
104
+ obj['failureException'] = _ApiClient["default"].convertToType(data['failureException'], 'String');
105
+ }
106
+ }
107
+ return obj;
108
+ }
109
+
110
+ /**
111
+ * Validates the JSON data with respect to <code>PayoutResponse</code>.
112
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
113
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PayoutResponse</code>.
114
+ */
115
+ }, {
116
+ key: "validateJSON",
117
+ value: function validateJSON(data) {
118
+ // validate the optional field `payout`
119
+ if (data['payout']) {
120
+ // data not null
121
+ _Payout["default"].validateJSON(data['payout']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['failureException'] && !(typeof data['failureException'] === 'string' || data['failureException'] instanceof String)) {
125
+ throw new Error("Expected the field `failureException` to be a primitive type in the JSON string but got " + data['failureException']);
126
+ }
127
+ return true;
128
+ }
129
+ }]);
130
+ return PayoutResponse;
131
+ }();
132
+ /**
133
+ * @member {module:model/Payout} payout
134
+ */
135
+ PayoutResponse.prototype['payout'] = undefined;
136
+
137
+ /**
138
+ * The reason the payout action failed
139
+ * @member {String} failureException
140
+ */
141
+ PayoutResponse.prototype['failureException'] = undefined;
142
+ var _default = exports["default"] = PayoutResponse;