@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,319 @@
|
|
|
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 PaymentMethod model module.
|
|
28
|
+
* @module model/PaymentMethod
|
|
29
|
+
* @version 0.1.34
|
|
30
|
+
*/
|
|
31
|
+
var PaymentMethod = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>PaymentMethod</code>.
|
|
34
|
+
* @alias module:model/PaymentMethod
|
|
35
|
+
*/
|
|
36
|
+
function PaymentMethod() {
|
|
37
|
+
_classCallCheck(this, PaymentMethod);
|
|
38
|
+
PaymentMethod.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(PaymentMethod, [{
|
|
47
|
+
key: "getName",
|
|
48
|
+
value:
|
|
49
|
+
/**
|
|
50
|
+
* @return {String}
|
|
51
|
+
*/
|
|
52
|
+
function getName() {
|
|
53
|
+
return this.name;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {String} name
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "setName",
|
|
61
|
+
value: function setName(name) {
|
|
62
|
+
this['name'] = name;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @return {Object}
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "getId",
|
|
69
|
+
value: function getId() {
|
|
70
|
+
return this.id;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {Object} id
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "setId",
|
|
78
|
+
value: function setId(id) {
|
|
79
|
+
this['id'] = id;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @return {module:model/PaymentMethod.TypeEnum}
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "getType",
|
|
86
|
+
value: function getType() {
|
|
87
|
+
return this.type;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @param {module:model/PaymentMethod.TypeEnum} type
|
|
92
|
+
*/
|
|
93
|
+
}, {
|
|
94
|
+
key: "setType",
|
|
95
|
+
value: function setType(type) {
|
|
96
|
+
this['type'] = type;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @return {String}
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "getObject",
|
|
103
|
+
value: function getObject() {
|
|
104
|
+
return this.object;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @param {String} object
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setObject",
|
|
112
|
+
value: function setObject(object) {
|
|
113
|
+
this['object'] = object;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @return {Boolean}
|
|
117
|
+
*/
|
|
118
|
+
}, {
|
|
119
|
+
key: "getLivemode",
|
|
120
|
+
value: function getLivemode() {
|
|
121
|
+
return this.livemode;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @param {Boolean} livemode
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "setLivemode",
|
|
129
|
+
value: function setLivemode(livemode) {
|
|
130
|
+
this['livemode'] = livemode;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @return {Object}
|
|
134
|
+
*/
|
|
135
|
+
}, {
|
|
136
|
+
key: "getBankAccount",
|
|
137
|
+
value: function getBankAccount() {
|
|
138
|
+
return this.bankAccount;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @param {Object} bankAccount
|
|
143
|
+
*/
|
|
144
|
+
}, {
|
|
145
|
+
key: "setBankAccount",
|
|
146
|
+
value: function setBankAccount(bankAccount) {
|
|
147
|
+
this['bankAccount'] = bankAccount;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @return {Object}
|
|
151
|
+
*/
|
|
152
|
+
}, {
|
|
153
|
+
key: "getCard",
|
|
154
|
+
value: function getCard() {
|
|
155
|
+
return this.card;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @param {Object} card
|
|
160
|
+
*/
|
|
161
|
+
}, {
|
|
162
|
+
key: "setCard",
|
|
163
|
+
value: function setCard(card) {
|
|
164
|
+
this['card'] = card;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @return {Number}
|
|
168
|
+
*/
|
|
169
|
+
}, {
|
|
170
|
+
key: "getCreated",
|
|
171
|
+
value: function getCreated() {
|
|
172
|
+
return this.created;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @param {Number} created
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "setCreated",
|
|
180
|
+
value: function setCreated(created) {
|
|
181
|
+
this['created'] = created;
|
|
182
|
+
}
|
|
183
|
+
}], [{
|
|
184
|
+
key: "initialize",
|
|
185
|
+
value: function initialize(obj) {}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Constructs a <code>PaymentMethod</code> from a plain JavaScript object, optionally creating a new instance.
|
|
189
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
190
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
191
|
+
* @param {module:model/PaymentMethod} obj Optional instance to populate.
|
|
192
|
+
* @return {module:model/PaymentMethod} The populated <code>PaymentMethod</code> instance.
|
|
193
|
+
*/
|
|
194
|
+
}, {
|
|
195
|
+
key: "constructFromObject",
|
|
196
|
+
value: function constructFromObject(data, obj) {
|
|
197
|
+
if (data) {
|
|
198
|
+
obj = obj || new PaymentMethod();
|
|
199
|
+
if (data.hasOwnProperty('name')) {
|
|
200
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
201
|
+
}
|
|
202
|
+
if (data.hasOwnProperty('id')) {
|
|
203
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], Object);
|
|
204
|
+
}
|
|
205
|
+
if (data.hasOwnProperty('type')) {
|
|
206
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
207
|
+
}
|
|
208
|
+
if (data.hasOwnProperty('object')) {
|
|
209
|
+
obj['object'] = _ApiClient["default"].convertToType(data['object'], 'String');
|
|
210
|
+
}
|
|
211
|
+
if (data.hasOwnProperty('livemode')) {
|
|
212
|
+
obj['livemode'] = _ApiClient["default"].convertToType(data['livemode'], 'Boolean');
|
|
213
|
+
}
|
|
214
|
+
if (data.hasOwnProperty('bankAccount')) {
|
|
215
|
+
obj['bankAccount'] = _ApiClient["default"].convertToType(data['bankAccount'], Object);
|
|
216
|
+
}
|
|
217
|
+
if (data.hasOwnProperty('card')) {
|
|
218
|
+
obj['card'] = _ApiClient["default"].convertToType(data['card'], Object);
|
|
219
|
+
}
|
|
220
|
+
if (data.hasOwnProperty('created')) {
|
|
221
|
+
obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Number');
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return obj;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Validates the JSON data with respect to <code>PaymentMethod</code>.
|
|
229
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
230
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentMethod</code>.
|
|
231
|
+
*/
|
|
232
|
+
}, {
|
|
233
|
+
key: "validateJSON",
|
|
234
|
+
value: function validateJSON(data) {
|
|
235
|
+
// ensure the json data is a string
|
|
236
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
237
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
238
|
+
}
|
|
239
|
+
// ensure the json data is a string
|
|
240
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
241
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
242
|
+
}
|
|
243
|
+
// ensure the json data is a string
|
|
244
|
+
if (data['object'] && !(typeof data['object'] === 'string' || data['object'] instanceof String)) {
|
|
245
|
+
throw new Error("Expected the field `object` to be a primitive type in the JSON string but got " + data['object']);
|
|
246
|
+
}
|
|
247
|
+
return true;
|
|
248
|
+
}
|
|
249
|
+
}]);
|
|
250
|
+
return PaymentMethod;
|
|
251
|
+
}();
|
|
252
|
+
/**
|
|
253
|
+
* @member {String} name
|
|
254
|
+
*/
|
|
255
|
+
PaymentMethod.prototype['name'] = undefined;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @member {Object} id
|
|
259
|
+
*/
|
|
260
|
+
PaymentMethod.prototype['id'] = undefined;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @member {module:model/PaymentMethod.TypeEnum} type
|
|
264
|
+
*/
|
|
265
|
+
PaymentMethod.prototype['type'] = undefined;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @member {String} object
|
|
269
|
+
*/
|
|
270
|
+
PaymentMethod.prototype['object'] = undefined;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @member {Boolean} livemode
|
|
274
|
+
*/
|
|
275
|
+
PaymentMethod.prototype['livemode'] = undefined;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @member {Object} bankAccount
|
|
279
|
+
*/
|
|
280
|
+
PaymentMethod.prototype['bankAccount'] = undefined;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @member {Object} card
|
|
284
|
+
*/
|
|
285
|
+
PaymentMethod.prototype['card'] = undefined;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @member {Number} created
|
|
289
|
+
*/
|
|
290
|
+
PaymentMethod.prototype['created'] = undefined;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Allowed values for the <code>type</code> property.
|
|
294
|
+
* @enum {String}
|
|
295
|
+
* @readonly
|
|
296
|
+
*/
|
|
297
|
+
PaymentMethod['TypeEnum'] = {
|
|
298
|
+
/**
|
|
299
|
+
* value: "CARD"
|
|
300
|
+
* @const
|
|
301
|
+
*/
|
|
302
|
+
"CARD": "CARD",
|
|
303
|
+
/**
|
|
304
|
+
* value: "CASHAPP"
|
|
305
|
+
* @const
|
|
306
|
+
*/
|
|
307
|
+
"CASHAPP": "CASHAPP",
|
|
308
|
+
/**
|
|
309
|
+
* value: "PAYPAL"
|
|
310
|
+
* @const
|
|
311
|
+
*/
|
|
312
|
+
"PAYPAL": "PAYPAL",
|
|
313
|
+
/**
|
|
314
|
+
* value: "US_BANK_ACCOUNT"
|
|
315
|
+
* @const
|
|
316
|
+
*/
|
|
317
|
+
"US_BANK_ACCOUNT": "US_BANK_ACCOUNT"
|
|
318
|
+
};
|
|
319
|
+
var _default = exports["default"] = PaymentMethod;
|
|
@@ -0,0 +1,291 @@
|
|
|
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 _BankAccountInfo = _interopRequireDefault(require("./BankAccountInfo"));
|
|
9
|
+
var _CardInfo = _interopRequireDefault(require("./CardInfo"));
|
|
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 PaymentMethodInput model module.
|
|
30
|
+
* @module model/PaymentMethodInput
|
|
31
|
+
* @version 0.1.34
|
|
32
|
+
*/
|
|
33
|
+
var PaymentMethodInput = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>PaymentMethodInput</code>.
|
|
36
|
+
* @alias module:model/PaymentMethodInput
|
|
37
|
+
*/
|
|
38
|
+
function PaymentMethodInput() {
|
|
39
|
+
_classCallCheck(this, PaymentMethodInput);
|
|
40
|
+
PaymentMethodInput.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(PaymentMethodInput, [{
|
|
49
|
+
key: "getName",
|
|
50
|
+
value:
|
|
51
|
+
/**
|
|
52
|
+
* Returns The name of the payment method
|
|
53
|
+
* @return {String}
|
|
54
|
+
*/
|
|
55
|
+
function getName() {
|
|
56
|
+
return this.name;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Sets The name of the payment method
|
|
61
|
+
* @param {String} name The name of the payment method
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "setName",
|
|
65
|
+
value: function setName(name) {
|
|
66
|
+
this['name'] = name;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns The type of payment method
|
|
70
|
+
* @return {module:model/PaymentMethodInput.TypeEnum}
|
|
71
|
+
*/
|
|
72
|
+
}, {
|
|
73
|
+
key: "getType",
|
|
74
|
+
value: function getType() {
|
|
75
|
+
return this.type;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Sets The type of payment method
|
|
80
|
+
* @param {module:model/PaymentMethodInput.TypeEnum} type The type of payment method
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "setType",
|
|
84
|
+
value: function setType(type) {
|
|
85
|
+
this['type'] = type;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @return {module:model/CardInfo}
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "getCardInfo",
|
|
92
|
+
value: function getCardInfo() {
|
|
93
|
+
return this.cardInfo;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {module:model/CardInfo} cardInfo
|
|
98
|
+
*/
|
|
99
|
+
}, {
|
|
100
|
+
key: "setCardInfo",
|
|
101
|
+
value: function setCardInfo(cardInfo) {
|
|
102
|
+
this['cardInfo'] = cardInfo;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @return {module:model/BankAccountInfo}
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "getBankInfo",
|
|
109
|
+
value: function getBankInfo() {
|
|
110
|
+
return this.bankInfo;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {module:model/BankAccountInfo} bankInfo
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "setBankInfo",
|
|
118
|
+
value: function setBankInfo(bankInfo) {
|
|
119
|
+
this['bankInfo'] = bankInfo;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Returns The customer id this payment method will be associated with (either userId or customerId are required)
|
|
123
|
+
* @return {Number}
|
|
124
|
+
*/
|
|
125
|
+
}, {
|
|
126
|
+
key: "getCustomerId",
|
|
127
|
+
value: function getCustomerId() {
|
|
128
|
+
return this.customerId;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Sets The customer id this payment method will be associated with (either userId or customerId are required)
|
|
133
|
+
* @param {Number} customerId The customer id this payment method will be associated with (either userId or customerId are required)
|
|
134
|
+
*/
|
|
135
|
+
}, {
|
|
136
|
+
key: "setCustomerId",
|
|
137
|
+
value: function setCustomerId(customerId) {
|
|
138
|
+
this['customerId'] = customerId;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Returns Additional meta data for this payment method
|
|
142
|
+
* @return {Object.<String, Object>}
|
|
143
|
+
*/
|
|
144
|
+
}, {
|
|
145
|
+
key: "getMetadata",
|
|
146
|
+
value: function getMetadata() {
|
|
147
|
+
return this.metadata;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Sets Additional meta data for this payment method
|
|
152
|
+
* @param {Object.<String, Object>} metadata Additional meta data for this payment method
|
|
153
|
+
*/
|
|
154
|
+
}, {
|
|
155
|
+
key: "setMetadata",
|
|
156
|
+
value: function setMetadata(metadata) {
|
|
157
|
+
this['metadata'] = metadata;
|
|
158
|
+
}
|
|
159
|
+
}], [{
|
|
160
|
+
key: "initialize",
|
|
161
|
+
value: function initialize(obj) {}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Constructs a <code>PaymentMethodInput</code> from a plain JavaScript object, optionally creating a new instance.
|
|
165
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
166
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
167
|
+
* @param {module:model/PaymentMethodInput} obj Optional instance to populate.
|
|
168
|
+
* @return {module:model/PaymentMethodInput} The populated <code>PaymentMethodInput</code> instance.
|
|
169
|
+
*/
|
|
170
|
+
}, {
|
|
171
|
+
key: "constructFromObject",
|
|
172
|
+
value: function constructFromObject(data, obj) {
|
|
173
|
+
if (data) {
|
|
174
|
+
obj = obj || new PaymentMethodInput();
|
|
175
|
+
if (data.hasOwnProperty('name')) {
|
|
176
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
177
|
+
}
|
|
178
|
+
if (data.hasOwnProperty('type')) {
|
|
179
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
180
|
+
}
|
|
181
|
+
if (data.hasOwnProperty('cardInfo')) {
|
|
182
|
+
obj['cardInfo'] = _CardInfo["default"].constructFromObject(data['cardInfo']);
|
|
183
|
+
}
|
|
184
|
+
if (data.hasOwnProperty('bankInfo')) {
|
|
185
|
+
obj['bankInfo'] = _BankAccountInfo["default"].constructFromObject(data['bankInfo']);
|
|
186
|
+
}
|
|
187
|
+
if (data.hasOwnProperty('customerId')) {
|
|
188
|
+
obj['customerId'] = _ApiClient["default"].convertToType(data['customerId'], 'Number');
|
|
189
|
+
}
|
|
190
|
+
if (data.hasOwnProperty('metadata')) {
|
|
191
|
+
obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], {
|
|
192
|
+
'String': Object
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return obj;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Validates the JSON data with respect to <code>PaymentMethodInput</code>.
|
|
201
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
202
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentMethodInput</code>.
|
|
203
|
+
*/
|
|
204
|
+
}, {
|
|
205
|
+
key: "validateJSON",
|
|
206
|
+
value: function validateJSON(data) {
|
|
207
|
+
// ensure the json data is a string
|
|
208
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
209
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
210
|
+
}
|
|
211
|
+
// ensure the json data is a string
|
|
212
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
213
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
214
|
+
}
|
|
215
|
+
// validate the optional field `cardInfo`
|
|
216
|
+
if (data['cardInfo']) {
|
|
217
|
+
// data not null
|
|
218
|
+
_CardInfo["default"].validateJSON(data['cardInfo']);
|
|
219
|
+
}
|
|
220
|
+
// validate the optional field `bankInfo`
|
|
221
|
+
if (data['bankInfo']) {
|
|
222
|
+
// data not null
|
|
223
|
+
_BankAccountInfo["default"].validateJSON(data['bankInfo']);
|
|
224
|
+
}
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
}]);
|
|
228
|
+
return PaymentMethodInput;
|
|
229
|
+
}();
|
|
230
|
+
/**
|
|
231
|
+
* The name of the payment method
|
|
232
|
+
* @member {String} name
|
|
233
|
+
*/
|
|
234
|
+
PaymentMethodInput.prototype['name'] = undefined;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The type of payment method
|
|
238
|
+
* @member {module:model/PaymentMethodInput.TypeEnum} type
|
|
239
|
+
*/
|
|
240
|
+
PaymentMethodInput.prototype['type'] = undefined;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @member {module:model/CardInfo} cardInfo
|
|
244
|
+
*/
|
|
245
|
+
PaymentMethodInput.prototype['cardInfo'] = undefined;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @member {module:model/BankAccountInfo} bankInfo
|
|
249
|
+
*/
|
|
250
|
+
PaymentMethodInput.prototype['bankInfo'] = undefined;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The customer id this payment method will be associated with (either userId or customerId are required)
|
|
254
|
+
* @member {Number} customerId
|
|
255
|
+
*/
|
|
256
|
+
PaymentMethodInput.prototype['customerId'] = undefined;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Additional meta data for this payment method
|
|
260
|
+
* @member {Object.<String, Object>} metadata
|
|
261
|
+
*/
|
|
262
|
+
PaymentMethodInput.prototype['metadata'] = undefined;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Allowed values for the <code>type</code> property.
|
|
266
|
+
* @enum {String}
|
|
267
|
+
* @readonly
|
|
268
|
+
*/
|
|
269
|
+
PaymentMethodInput['TypeEnum'] = {
|
|
270
|
+
/**
|
|
271
|
+
* value: "CARD"
|
|
272
|
+
* @const
|
|
273
|
+
*/
|
|
274
|
+
"CARD": "CARD",
|
|
275
|
+
/**
|
|
276
|
+
* value: "CASHAPP"
|
|
277
|
+
* @const
|
|
278
|
+
*/
|
|
279
|
+
"CASHAPP": "CASHAPP",
|
|
280
|
+
/**
|
|
281
|
+
* value: "PAYPAL"
|
|
282
|
+
* @const
|
|
283
|
+
*/
|
|
284
|
+
"PAYPAL": "PAYPAL",
|
|
285
|
+
/**
|
|
286
|
+
* value: "US_BANK_ACCOUNT"
|
|
287
|
+
* @const
|
|
288
|
+
*/
|
|
289
|
+
"US_BANK_ACCOUNT": "US_BANK_ACCOUNT"
|
|
290
|
+
};
|
|
291
|
+
var _default = exports["default"] = PaymentMethodInput;
|