@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.
- package/README.md +794 -0
- package/dist/ApiClient.js +720 -0
- package/dist/api/ActionTypesApi.js +113 -0
- package/dist/api/AdCampaignsApi.js +500 -0
- package/dist/api/AdManagementApi.js +722 -0
- package/dist/api/AdminDataManagementApi.js +111 -0
- package/dist/api/AdsApi.js +384 -0
- package/dist/api/AttachmentsApi.js +465 -0
- package/dist/api/AuthenticationApi.js +418 -0
- package/dist/api/CategoriesApi.js +451 -0
- package/dist/api/CommentsApi.js +520 -0
- package/dist/api/ContentManagementApi.js +1491 -0
- package/dist/api/ConversationsApi.js +559 -0
- package/dist/api/DataSheetImportsApi.js +1066 -0
- package/dist/api/DefaultApi.js +696 -0
- package/dist/api/DocumentsApi.js +807 -0
- package/dist/api/EntryPartsApi.js +847 -0
- package/dist/api/FacebookApi.js +88 -0
- package/dist/api/FieldsApi.js +243 -0
- package/dist/api/FilesApi.js +116 -0
- package/dist/api/FormsApi.js +1136 -0
- package/dist/api/FunctionsApi.js +111 -0
- package/dist/api/GeocodeApi.js +340 -0
- package/dist/api/GoogleApi.js +88 -0
- package/dist/api/GraphActionsApi.js +674 -0
- package/dist/api/GraphObjectTypesApi.js +527 -0
- package/dist/api/GraphObjectsApi.js +4026 -0
- package/dist/api/GraphRelationshipTypesApi.js +1055 -0
- package/dist/api/GraphRelationshipsApi.js +1921 -0
- package/dist/api/GraphSchemasApi.js +459 -0
- package/dist/api/GraphTraversalApi.js +415 -0
- package/dist/api/GraphsApi.js +716 -0
- package/dist/api/GroupsApi.js +731 -0
- package/dist/api/IAMApi.js +268 -0
- package/dist/api/ImagesApi.js +535 -0
- package/dist/api/InvitesApi.js +339 -0
- package/dist/api/LikesApi.js +785 -0
- package/dist/api/LinkedINApi.js +88 -0
- package/dist/api/LiveMeetingsApi.js +175 -0
- package/dist/api/MeetingEventsApi.js +358 -0
- package/dist/api/PagesApi.js +605 -0
- package/dist/api/PostsApi.js +330 -0
- package/dist/api/PrivateMessagesApi.js +965 -0
- package/dist/api/PublicationsApi.js +103 -0
- package/dist/api/ScreensApi.js +224 -0
- package/dist/api/SocialIntegrationApi.js +214 -0
- package/dist/api/StripeAccountsApi.js +2309 -0
- package/dist/api/TagsApi.js +111 -0
- package/dist/api/TemplatesApi.js +224 -0
- package/dist/api/ThemeMappingsApi.js +219 -0
- package/dist/api/TransactionsApi.js +161 -0
- package/dist/api/TwitterApi.js +88 -0
- package/dist/api/UserTagsApi.js +592 -0
- package/dist/api/UsersApi.js +591 -0
- package/dist/api/UtilsApi.js +80 -0
- package/dist/api/VideosApi.js +709 -0
- package/dist/index.js +1301 -0
- package/dist/model/APIClient.js +354 -0
- package/dist/model/AccountSessionInput.js +222 -0
- package/dist/model/AccountSessionResponse.js +171 -0
- package/dist/model/ApplicationPaymentAccountResponse.js +185 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +265 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCause.js +234 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseStackTraceInner.js +303 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseSuppressedInner.js +187 -0
- package/dist/model/Article.js +668 -0
- package/dist/model/Authorization.js +166 -0
- package/dist/model/Balance.js +267 -0
- package/dist/model/BalanceDetails.js +164 -0
- package/dist/model/BalanceResponse.js +139 -0
- package/dist/model/BankAccountInfo.js +232 -0
- package/dist/model/CardInfo.js +213 -0
- package/dist/model/Comment.js +495 -0
- package/dist/model/Coordinates.js +129 -0
- package/dist/model/CreateAccountResponse.js +233 -0
- package/dist/model/CreateStripeAccountInput.js +216 -0
- package/dist/model/CreateStripeCustomerInput.js +195 -0
- package/dist/model/CustomerResponse.js +168 -0
- package/dist/model/DataObject.js +129 -0
- package/dist/model/DataSheetImport.js +732 -0
- package/dist/model/DataSheetImportPrivacySettings.js +154 -0
- package/dist/model/DataSheetImportSummary.js +206 -0
- package/dist/model/Document.js +743 -0
- package/dist/model/DocumentPart.js +612 -0
- package/dist/model/DocumentPartType.js +358 -0
- package/dist/model/DocumentType.js +458 -0
- package/dist/model/FieldMapping.js +185 -0
- package/dist/model/Fields.js +737 -0
- package/dist/model/File.js +341 -0
- package/dist/model/FileAttachmentUploadObject.js +341 -0
- package/dist/model/Filter.js +137 -0
- package/dist/model/FilterManager.js +154 -0
- package/dist/model/Form.js +393 -0
- package/dist/model/FormSection.js +304 -0
- package/dist/model/FormSubmission.js +238 -0
- package/dist/model/Geocode.js +191 -0
- package/dist/model/GeocodePayload.js +141 -0
- package/dist/model/GeolocationInput.js +216 -0
- package/dist/model/Graph.js +499 -0
- package/dist/model/GraphAction.js +298 -0
- package/dist/model/GraphDatabaseService.js +254 -0
- package/dist/model/GraphGeocode.js +282 -0
- package/dist/model/GraphIteratorEntryPart.js +129 -0
- package/dist/model/GraphObject.js +454 -0
- package/dist/model/GraphObjectPayload.js +430 -0
- package/dist/model/GraphObjectSchema.js +545 -0
- package/dist/model/GraphObjectType.js +626 -0
- package/dist/model/GraphObjectTypeSchema.js +645 -0
- package/dist/model/GraphOwner.js +158 -0
- package/dist/model/GraphRelationObjectObject.js +273 -0
- package/dist/model/GraphRelationship.js +301 -0
- package/dist/model/GraphRelationshipPayload.js +214 -0
- package/dist/model/GraphRelationshipType.js +675 -0
- package/dist/model/GraphSchema.js +645 -0
- package/dist/model/GraphTraversalInput.js +1125 -0
- package/dist/model/Image.js +449 -0
- package/dist/model/ImageUploadObject.js +449 -0
- package/dist/model/InputPart.js +191 -0
- package/dist/model/InputPartMediaType.js +214 -0
- package/dist/model/Link.js +305 -0
- package/dist/model/LiveStreamInfo.js +167 -0
- package/dist/model/MeetingEvent.js +591 -0
- package/dist/model/MeetingEventTimezone.js +187 -0
- package/dist/model/MeetingInfo.js +220 -0
- package/dist/model/Member.js +525 -0
- package/dist/model/MemberGroupCategory.js +237 -0
- package/dist/model/MemberList.js +96 -0
- package/dist/model/MessageGroup.js +160 -0
- package/dist/model/MultipartBody.js +133 -0
- package/dist/model/Objecttype.js +615 -0
- package/dist/model/Page.js +370 -0
- package/dist/model/PageSchema.js +482 -0
- package/dist/model/Pageable.js +235 -0
- package/dist/model/Path.js +110 -0
- package/dist/model/PaymentAccountObject.js +209 -0
- package/dist/model/PaymentIntentInput.js +214 -0
- package/dist/model/PaymentIntentResponse.js +137 -0
- package/dist/model/PaymentMethod.js +319 -0
- package/dist/model/PaymentMethodInput.js +291 -0
- package/dist/model/PaymentMethodResponse.js +139 -0
- package/dist/model/PaymentMethodsResponse.js +158 -0
- package/dist/model/Payout.js +313 -0
- package/dist/model/PayoutInput.js +347 -0
- package/dist/model/PayoutResponse.js +142 -0
- package/dist/model/Post.js +368 -0
- package/dist/model/PrivateMessage.js +494 -0
- package/dist/model/PrivateMessageConversation.js +520 -0
- package/dist/model/PrivateMessageConversationSchema.js +268 -0
- package/dist/model/Profile.js +191 -0
- package/dist/model/Profiletype.js +210 -0
- package/dist/model/PropertyContainer.js +162 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +151 -0
- package/dist/model/RelationshipMapping.js +264 -0
- package/dist/model/ScreenSchema.js +834 -0
- package/dist/model/SimulcastInfo.js +175 -0
- package/dist/model/SkinField.js +737 -0
- package/dist/model/SocialGroup.js +602 -0
- package/dist/model/SocialGroupType.js +327 -0
- package/dist/model/Sort.js +154 -0
- package/dist/model/SourceTypes.js +154 -0
- package/dist/model/StatusUpdate.js +312 -0
- package/dist/model/StreetAddress.js +224 -0
- package/dist/model/StripeAccount.js +272 -0
- package/dist/model/StripeCustomerAccount.js +212 -0
- package/dist/model/Template.js +272 -0
- package/dist/model/TemplateSchema.js +300 -0
- package/dist/model/ThemeMapping.js +245 -0
- package/dist/model/ThemeMappingPayload.js +239 -0
- package/dist/model/Transaction.js +137 -0
- package/dist/model/Transfer.js +286 -0
- package/dist/model/TransferInput.js +288 -0
- package/dist/model/TransferResponse.js +173 -0
- package/dist/model/TransferResponsePaymentMethodDetails.js +286 -0
- package/dist/model/TraversalRelationResponse.js +176 -0
- package/dist/model/User.js +525 -0
- package/dist/model/UserDataPayload.js +525 -0
- package/dist/model/UserDomain.js +191 -0
- package/dist/model/UserInvite.js +404 -0
- package/dist/model/UserInviteInput.js +245 -0
- package/dist/model/UserSchema.js +525 -0
- package/dist/model/UserTag.js +246 -0
- package/dist/model/Userid.js +133 -0
- package/dist/model/Video.js +632 -0
- package/dist/model/VideoLiveUrl.js +137 -0
- package/dist/model/VideoSchema.js +717 -0
- package/dist/model/VideoUploadObject.js +632 -0
- package/dist/model/ZeusPortalCategory.js +434 -0
- package/package.json +46 -0
|
@@ -0,0 +1,233 @@
|
|
|
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 _CustomerResponse = _interopRequireDefault(require("./CustomerResponse"));
|
|
9
|
+
var _StripeAccount = _interopRequireDefault(require("./StripeAccount"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
16
|
+
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); } /**
|
|
17
|
+
* gobodo-api
|
|
18
|
+
* REST Interface for Gobodo API
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 0.1.34
|
|
21
|
+
* Contact: info@gobodo.io
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The CreateAccountResponse model module.
|
|
30
|
+
* @module model/CreateAccountResponse
|
|
31
|
+
* @version 0.1.34
|
|
32
|
+
*/
|
|
33
|
+
var CreateAccountResponse = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>CreateAccountResponse</code>.
|
|
36
|
+
* @alias module:model/CreateAccountResponse
|
|
37
|
+
*/
|
|
38
|
+
function CreateAccountResponse() {
|
|
39
|
+
_classCallCheck(this, CreateAccountResponse);
|
|
40
|
+
CreateAccountResponse.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
_createClass(CreateAccountResponse, [{
|
|
49
|
+
key: "getUrl",
|
|
50
|
+
value:
|
|
51
|
+
/**
|
|
52
|
+
* Returns The url to redirect users to on the client side to complete their account details
|
|
53
|
+
* @return {String}
|
|
54
|
+
*/
|
|
55
|
+
function getUrl() {
|
|
56
|
+
return this.url;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Sets The url to redirect users to on the client side to complete their account details
|
|
61
|
+
* @param {String} url The url to redirect users to on the client side to complete their account details
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "setUrl",
|
|
65
|
+
value: function setUrl(url) {
|
|
66
|
+
this['url'] = url;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns Whether the account is enabled, as in it's set up with all the requirements to receive and make payments
|
|
70
|
+
* @return {Boolean}
|
|
71
|
+
*/
|
|
72
|
+
}, {
|
|
73
|
+
key: "getEnabled",
|
|
74
|
+
value: function getEnabled() {
|
|
75
|
+
return this.enabled;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Sets Whether the account is enabled, as in it's set up with all the requirements to receive and make payments
|
|
80
|
+
* @param {Boolean} enabled Whether the account is enabled, as in it's set up with all the requirements to receive and make payments
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "setEnabled",
|
|
84
|
+
value: function setEnabled(enabled) {
|
|
85
|
+
this['enabled'] = enabled;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @return {module:model/StripeAccount}
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "getAccount",
|
|
92
|
+
value: function getAccount() {
|
|
93
|
+
return this.account;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {module:model/StripeAccount} account
|
|
98
|
+
*/
|
|
99
|
+
}, {
|
|
100
|
+
key: "setAccount",
|
|
101
|
+
value: function setAccount(account) {
|
|
102
|
+
this['account'] = account;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @return {module:model/CustomerResponse}
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "getCustomerDetails",
|
|
109
|
+
value: function getCustomerDetails() {
|
|
110
|
+
return this.customerDetails;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {module:model/CustomerResponse} customerDetails
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "setCustomerDetails",
|
|
118
|
+
value: function setCustomerDetails(customerDetails) {
|
|
119
|
+
this['customerDetails'] = customerDetails;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Returns Details of the failure exception if an account operation has failed
|
|
123
|
+
* @return {String}
|
|
124
|
+
*/
|
|
125
|
+
}, {
|
|
126
|
+
key: "getFailureException",
|
|
127
|
+
value: function getFailureException() {
|
|
128
|
+
return this.failureException;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Sets Details of the failure exception if an account operation has failed
|
|
133
|
+
* @param {String} failureException Details of the failure exception if an account operation has failed
|
|
134
|
+
*/
|
|
135
|
+
}, {
|
|
136
|
+
key: "setFailureException",
|
|
137
|
+
value: function setFailureException(failureException) {
|
|
138
|
+
this['failureException'] = failureException;
|
|
139
|
+
}
|
|
140
|
+
}], [{
|
|
141
|
+
key: "initialize",
|
|
142
|
+
value: function initialize(obj) {}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Constructs a <code>CreateAccountResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
146
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
147
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
148
|
+
* @param {module:model/CreateAccountResponse} obj Optional instance to populate.
|
|
149
|
+
* @return {module:model/CreateAccountResponse} The populated <code>CreateAccountResponse</code> instance.
|
|
150
|
+
*/
|
|
151
|
+
}, {
|
|
152
|
+
key: "constructFromObject",
|
|
153
|
+
value: function constructFromObject(data, obj) {
|
|
154
|
+
if (data) {
|
|
155
|
+
obj = obj || new CreateAccountResponse();
|
|
156
|
+
if (data.hasOwnProperty('url')) {
|
|
157
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
158
|
+
}
|
|
159
|
+
if (data.hasOwnProperty('enabled')) {
|
|
160
|
+
obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean');
|
|
161
|
+
}
|
|
162
|
+
if (data.hasOwnProperty('account')) {
|
|
163
|
+
obj['account'] = _StripeAccount["default"].constructFromObject(data['account']);
|
|
164
|
+
}
|
|
165
|
+
if (data.hasOwnProperty('customerDetails')) {
|
|
166
|
+
obj['customerDetails'] = _CustomerResponse["default"].constructFromObject(data['customerDetails']);
|
|
167
|
+
}
|
|
168
|
+
if (data.hasOwnProperty('failureException')) {
|
|
169
|
+
obj['failureException'] = _ApiClient["default"].convertToType(data['failureException'], 'String');
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return obj;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Validates the JSON data with respect to <code>CreateAccountResponse</code>.
|
|
177
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
178
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateAccountResponse</code>.
|
|
179
|
+
*/
|
|
180
|
+
}, {
|
|
181
|
+
key: "validateJSON",
|
|
182
|
+
value: function validateJSON(data) {
|
|
183
|
+
// ensure the json data is a string
|
|
184
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
185
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
186
|
+
}
|
|
187
|
+
// validate the optional field `account`
|
|
188
|
+
if (data['account']) {
|
|
189
|
+
// data not null
|
|
190
|
+
_StripeAccount["default"].validateJSON(data['account']);
|
|
191
|
+
}
|
|
192
|
+
// validate the optional field `customerDetails`
|
|
193
|
+
if (data['customerDetails']) {
|
|
194
|
+
// data not null
|
|
195
|
+
_CustomerResponse["default"].validateJSON(data['customerDetails']);
|
|
196
|
+
}
|
|
197
|
+
// ensure the json data is a string
|
|
198
|
+
if (data['failureException'] && !(typeof data['failureException'] === 'string' || data['failureException'] instanceof String)) {
|
|
199
|
+
throw new Error("Expected the field `failureException` to be a primitive type in the JSON string but got " + data['failureException']);
|
|
200
|
+
}
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
}]);
|
|
204
|
+
return CreateAccountResponse;
|
|
205
|
+
}();
|
|
206
|
+
/**
|
|
207
|
+
* The url to redirect users to on the client side to complete their account details
|
|
208
|
+
* @member {String} url
|
|
209
|
+
*/
|
|
210
|
+
CreateAccountResponse.prototype['url'] = undefined;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Whether the account is enabled, as in it's set up with all the requirements to receive and make payments
|
|
214
|
+
* @member {Boolean} enabled
|
|
215
|
+
*/
|
|
216
|
+
CreateAccountResponse.prototype['enabled'] = undefined;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @member {module:model/StripeAccount} account
|
|
220
|
+
*/
|
|
221
|
+
CreateAccountResponse.prototype['account'] = undefined;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @member {module:model/CustomerResponse} customerDetails
|
|
225
|
+
*/
|
|
226
|
+
CreateAccountResponse.prototype['customerDetails'] = undefined;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Details of the failure exception if an account operation has failed
|
|
230
|
+
* @member {String} failureException
|
|
231
|
+
*/
|
|
232
|
+
CreateAccountResponse.prototype['failureException'] = undefined;
|
|
233
|
+
var _default = exports["default"] = CreateAccountResponse;
|
|
@@ -0,0 +1,216 @@
|
|
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
|
+
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); } /**
|
|
15
|
+
* gobodo-api
|
|
16
|
+
* REST Interface for Gobodo API
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 0.1.34
|
|
19
|
+
* Contact: info@gobodo.io
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The CreateStripeAccountInput model module.
|
|
28
|
+
* @module model/CreateStripeAccountInput
|
|
29
|
+
* @version 0.1.34
|
|
30
|
+
*/
|
|
31
|
+
var CreateStripeAccountInput = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>CreateStripeAccountInput</code>.
|
|
34
|
+
* @alias module:model/CreateStripeAccountInput
|
|
35
|
+
*/
|
|
36
|
+
function CreateStripeAccountInput() {
|
|
37
|
+
_classCallCheck(this, CreateStripeAccountInput);
|
|
38
|
+
CreateStripeAccountInput.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
_createClass(CreateStripeAccountInput, [{
|
|
47
|
+
key: "getAccountType",
|
|
48
|
+
value:
|
|
49
|
+
/**
|
|
50
|
+
* @return {module:model/CreateStripeAccountInput.AccountTypeEnum}
|
|
51
|
+
*/
|
|
52
|
+
function getAccountType() {
|
|
53
|
+
return this.accountType;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {module:model/CreateStripeAccountInput.AccountTypeEnum} accountType
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "setAccountType",
|
|
61
|
+
value: function setAccountType(accountType) {
|
|
62
|
+
this['accountType'] = accountType;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @return {String}
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "getRefreshUrl",
|
|
69
|
+
value: function getRefreshUrl() {
|
|
70
|
+
return this.refreshUrl;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {String} refreshUrl
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "setRefreshUrl",
|
|
78
|
+
value: function setRefreshUrl(refreshUrl) {
|
|
79
|
+
this['refreshUrl'] = refreshUrl;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @return {String}
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "getReturnUrl",
|
|
86
|
+
value: function getReturnUrl() {
|
|
87
|
+
return this.returnUrl;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @param {String} returnUrl
|
|
92
|
+
*/
|
|
93
|
+
}, {
|
|
94
|
+
key: "setReturnUrl",
|
|
95
|
+
value: function setReturnUrl(returnUrl) {
|
|
96
|
+
this['returnUrl'] = returnUrl;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @return {Object.<String, Object>}
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "getProperties",
|
|
103
|
+
value: function getProperties() {
|
|
104
|
+
return this.properties;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @param {Object.<String, Object>} properties
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setProperties",
|
|
112
|
+
value: function setProperties(properties) {
|
|
113
|
+
this['properties'] = properties;
|
|
114
|
+
}
|
|
115
|
+
}], [{
|
|
116
|
+
key: "initialize",
|
|
117
|
+
value: function initialize(obj) {}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Constructs a <code>CreateStripeAccountInput</code> from a plain JavaScript object, optionally creating a new instance.
|
|
121
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
122
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
123
|
+
* @param {module:model/CreateStripeAccountInput} obj Optional instance to populate.
|
|
124
|
+
* @return {module:model/CreateStripeAccountInput} The populated <code>CreateStripeAccountInput</code> instance.
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
127
|
+
key: "constructFromObject",
|
|
128
|
+
value: function constructFromObject(data, obj) {
|
|
129
|
+
if (data) {
|
|
130
|
+
obj = obj || new CreateStripeAccountInput();
|
|
131
|
+
if (data.hasOwnProperty('accountType')) {
|
|
132
|
+
obj['accountType'] = _ApiClient["default"].convertToType(data['accountType'], 'String');
|
|
133
|
+
}
|
|
134
|
+
if (data.hasOwnProperty('refreshUrl')) {
|
|
135
|
+
obj['refreshUrl'] = _ApiClient["default"].convertToType(data['refreshUrl'], 'String');
|
|
136
|
+
}
|
|
137
|
+
if (data.hasOwnProperty('returnUrl')) {
|
|
138
|
+
obj['returnUrl'] = _ApiClient["default"].convertToType(data['returnUrl'], 'String');
|
|
139
|
+
}
|
|
140
|
+
if (data.hasOwnProperty('properties')) {
|
|
141
|
+
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], {
|
|
142
|
+
'String': Object
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return obj;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Validates the JSON data with respect to <code>CreateStripeAccountInput</code>.
|
|
151
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
152
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateStripeAccountInput</code>.
|
|
153
|
+
*/
|
|
154
|
+
}, {
|
|
155
|
+
key: "validateJSON",
|
|
156
|
+
value: function validateJSON(data) {
|
|
157
|
+
// ensure the json data is a string
|
|
158
|
+
if (data['accountType'] && !(typeof data['accountType'] === 'string' || data['accountType'] instanceof String)) {
|
|
159
|
+
throw new Error("Expected the field `accountType` to be a primitive type in the JSON string but got " + data['accountType']);
|
|
160
|
+
}
|
|
161
|
+
// ensure the json data is a string
|
|
162
|
+
if (data['refreshUrl'] && !(typeof data['refreshUrl'] === 'string' || data['refreshUrl'] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `refreshUrl` to be a primitive type in the JSON string but got " + data['refreshUrl']);
|
|
164
|
+
}
|
|
165
|
+
// ensure the json data is a string
|
|
166
|
+
if (data['returnUrl'] && !(typeof data['returnUrl'] === 'string' || data['returnUrl'] instanceof String)) {
|
|
167
|
+
throw new Error("Expected the field `returnUrl` to be a primitive type in the JSON string but got " + data['returnUrl']);
|
|
168
|
+
}
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
}]);
|
|
172
|
+
return CreateStripeAccountInput;
|
|
173
|
+
}();
|
|
174
|
+
/**
|
|
175
|
+
* @member {module:model/CreateStripeAccountInput.AccountTypeEnum} accountType
|
|
176
|
+
*/
|
|
177
|
+
CreateStripeAccountInput.prototype['accountType'] = undefined;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @member {String} refreshUrl
|
|
181
|
+
*/
|
|
182
|
+
CreateStripeAccountInput.prototype['refreshUrl'] = undefined;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @member {String} returnUrl
|
|
186
|
+
*/
|
|
187
|
+
CreateStripeAccountInput.prototype['returnUrl'] = undefined;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @member {Object.<String, Object>} properties
|
|
191
|
+
*/
|
|
192
|
+
CreateStripeAccountInput.prototype['properties'] = undefined;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Allowed values for the <code>accountType</code> property.
|
|
196
|
+
* @enum {String}
|
|
197
|
+
* @readonly
|
|
198
|
+
*/
|
|
199
|
+
CreateStripeAccountInput['AccountTypeEnum'] = {
|
|
200
|
+
/**
|
|
201
|
+
* value: "CUSTOM"
|
|
202
|
+
* @const
|
|
203
|
+
*/
|
|
204
|
+
"CUSTOM": "CUSTOM",
|
|
205
|
+
/**
|
|
206
|
+
* value: "EXPRESS"
|
|
207
|
+
* @const
|
|
208
|
+
*/
|
|
209
|
+
"EXPRESS": "EXPRESS",
|
|
210
|
+
/**
|
|
211
|
+
* value: "STANDARD"
|
|
212
|
+
* @const
|
|
213
|
+
*/
|
|
214
|
+
"STANDARD": "STANDARD"
|
|
215
|
+
};
|
|
216
|
+
var _default = exports["default"] = CreateStripeAccountInput;
|
|
@@ -0,0 +1,195 @@
|
|
|
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 _PaymentMethodInput = _interopRequireDefault(require("./PaymentMethodInput"));
|
|
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 CreateStripeCustomerInput model module.
|
|
29
|
+
* @module model/CreateStripeCustomerInput
|
|
30
|
+
* @version 0.1.34
|
|
31
|
+
*/
|
|
32
|
+
var CreateStripeCustomerInput = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>CreateStripeCustomerInput</code>.
|
|
35
|
+
* @alias module:model/CreateStripeCustomerInput
|
|
36
|
+
*/
|
|
37
|
+
function CreateStripeCustomerInput() {
|
|
38
|
+
_classCallCheck(this, CreateStripeCustomerInput);
|
|
39
|
+
CreateStripeCustomerInput.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(CreateStripeCustomerInput, [{
|
|
48
|
+
key: "getRefreshUrl",
|
|
49
|
+
value:
|
|
50
|
+
/**
|
|
51
|
+
* @return {String}
|
|
52
|
+
*/
|
|
53
|
+
function getRefreshUrl() {
|
|
54
|
+
return this.refreshUrl;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @param {String} refreshUrl
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "setRefreshUrl",
|
|
62
|
+
value: function setRefreshUrl(refreshUrl) {
|
|
63
|
+
this['refreshUrl'] = refreshUrl;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @return {String}
|
|
67
|
+
*/
|
|
68
|
+
}, {
|
|
69
|
+
key: "getReturnUrl",
|
|
70
|
+
value: function getReturnUrl() {
|
|
71
|
+
return this.returnUrl;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @param {String} returnUrl
|
|
76
|
+
*/
|
|
77
|
+
}, {
|
|
78
|
+
key: "setReturnUrl",
|
|
79
|
+
value: function setReturnUrl(returnUrl) {
|
|
80
|
+
this['returnUrl'] = returnUrl;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @return {module:model/PaymentMethodInput}
|
|
84
|
+
*/
|
|
85
|
+
}, {
|
|
86
|
+
key: "getPaymentMethods",
|
|
87
|
+
value: function getPaymentMethods() {
|
|
88
|
+
return this.paymentMethods;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @param {module:model/PaymentMethodInput} paymentMethods
|
|
93
|
+
*/
|
|
94
|
+
}, {
|
|
95
|
+
key: "setPaymentMethods",
|
|
96
|
+
value: function setPaymentMethods(paymentMethods) {
|
|
97
|
+
this['paymentMethods'] = paymentMethods;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @return {Object.<String, Object>}
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
103
|
+
key: "getProperties",
|
|
104
|
+
value: function getProperties() {
|
|
105
|
+
return this.properties;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @param {Object.<String, Object>} properties
|
|
110
|
+
*/
|
|
111
|
+
}, {
|
|
112
|
+
key: "setProperties",
|
|
113
|
+
value: function setProperties(properties) {
|
|
114
|
+
this['properties'] = properties;
|
|
115
|
+
}
|
|
116
|
+
}], [{
|
|
117
|
+
key: "initialize",
|
|
118
|
+
value: function initialize(obj) {}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Constructs a <code>CreateStripeCustomerInput</code> from a plain JavaScript object, optionally creating a new instance.
|
|
122
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
123
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
124
|
+
* @param {module:model/CreateStripeCustomerInput} obj Optional instance to populate.
|
|
125
|
+
* @return {module:model/CreateStripeCustomerInput} The populated <code>CreateStripeCustomerInput</code> instance.
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "constructFromObject",
|
|
129
|
+
value: function constructFromObject(data, obj) {
|
|
130
|
+
if (data) {
|
|
131
|
+
obj = obj || new CreateStripeCustomerInput();
|
|
132
|
+
if (data.hasOwnProperty('refreshUrl')) {
|
|
133
|
+
obj['refreshUrl'] = _ApiClient["default"].convertToType(data['refreshUrl'], 'String');
|
|
134
|
+
}
|
|
135
|
+
if (data.hasOwnProperty('returnUrl')) {
|
|
136
|
+
obj['returnUrl'] = _ApiClient["default"].convertToType(data['returnUrl'], 'String');
|
|
137
|
+
}
|
|
138
|
+
if (data.hasOwnProperty('paymentMethods')) {
|
|
139
|
+
obj['paymentMethods'] = _PaymentMethodInput["default"].constructFromObject(data['paymentMethods']);
|
|
140
|
+
}
|
|
141
|
+
if (data.hasOwnProperty('properties')) {
|
|
142
|
+
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], {
|
|
143
|
+
'String': Object
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return obj;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Validates the JSON data with respect to <code>CreateStripeCustomerInput</code>.
|
|
152
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
153
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateStripeCustomerInput</code>.
|
|
154
|
+
*/
|
|
155
|
+
}, {
|
|
156
|
+
key: "validateJSON",
|
|
157
|
+
value: function validateJSON(data) {
|
|
158
|
+
// ensure the json data is a string
|
|
159
|
+
if (data['refreshUrl'] && !(typeof data['refreshUrl'] === 'string' || data['refreshUrl'] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `refreshUrl` to be a primitive type in the JSON string but got " + data['refreshUrl']);
|
|
161
|
+
}
|
|
162
|
+
// ensure the json data is a string
|
|
163
|
+
if (data['returnUrl'] && !(typeof data['returnUrl'] === 'string' || data['returnUrl'] instanceof String)) {
|
|
164
|
+
throw new Error("Expected the field `returnUrl` to be a primitive type in the JSON string but got " + data['returnUrl']);
|
|
165
|
+
}
|
|
166
|
+
// validate the optional field `paymentMethods`
|
|
167
|
+
if (data['paymentMethods']) {
|
|
168
|
+
// data not null
|
|
169
|
+
_PaymentMethodInput["default"].validateJSON(data['paymentMethods']);
|
|
170
|
+
}
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
}]);
|
|
174
|
+
return CreateStripeCustomerInput;
|
|
175
|
+
}();
|
|
176
|
+
/**
|
|
177
|
+
* @member {String} refreshUrl
|
|
178
|
+
*/
|
|
179
|
+
CreateStripeCustomerInput.prototype['refreshUrl'] = undefined;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @member {String} returnUrl
|
|
183
|
+
*/
|
|
184
|
+
CreateStripeCustomerInput.prototype['returnUrl'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @member {module:model/PaymentMethodInput} paymentMethods
|
|
188
|
+
*/
|
|
189
|
+
CreateStripeCustomerInput.prototype['paymentMethods'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @member {Object.<String, Object>} properties
|
|
193
|
+
*/
|
|
194
|
+
CreateStripeCustomerInput.prototype['properties'] = undefined;
|
|
195
|
+
var _default = exports["default"] = CreateStripeCustomerInput;
|