@sellout/models 0.0.359 → 0.0.361

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.
@@ -74023,6 +74023,523 @@ $root.UpdateOrgEmailWebhookResponse = (function() {
74023
74023
  return UpdateOrgEmailWebhookResponse;
74024
74024
  })();
74025
74025
 
74026
+ $root.RemoveOrganizationStripeIdRequest = (function() {
74027
+
74028
+ /**
74029
+ * Properties of a RemoveOrganizationStripeIdRequest.
74030
+ * @exports IRemoveOrganizationStripeIdRequest
74031
+ * @interface IRemoveOrganizationStripeIdRequest
74032
+ * @property {string|null} [spanContext] RemoveOrganizationStripeIdRequest spanContext
74033
+ * @property {string|null} [orgId] RemoveOrganizationStripeIdRequest orgId
74034
+ */
74035
+
74036
+ /**
74037
+ * Constructs a new RemoveOrganizationStripeIdRequest.
74038
+ * @exports RemoveOrganizationStripeIdRequest
74039
+ * @classdesc Represents a RemoveOrganizationStripeIdRequest.
74040
+ * @implements IRemoveOrganizationStripeIdRequest
74041
+ * @constructor
74042
+ * @param {IRemoveOrganizationStripeIdRequest=} [properties] Properties to set
74043
+ */
74044
+ function RemoveOrganizationStripeIdRequest(properties) {
74045
+ if (properties)
74046
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74047
+ if (properties[keys[i]] != null)
74048
+ this[keys[i]] = properties[keys[i]];
74049
+ }
74050
+
74051
+ /**
74052
+ * RemoveOrganizationStripeIdRequest spanContext.
74053
+ * @member {string} spanContext
74054
+ * @memberof RemoveOrganizationStripeIdRequest
74055
+ * @instance
74056
+ */
74057
+ RemoveOrganizationStripeIdRequest.prototype.spanContext = "";
74058
+
74059
+ /**
74060
+ * RemoveOrganizationStripeIdRequest orgId.
74061
+ * @member {string} orgId
74062
+ * @memberof RemoveOrganizationStripeIdRequest
74063
+ * @instance
74064
+ */
74065
+ RemoveOrganizationStripeIdRequest.prototype.orgId = "";
74066
+
74067
+ /**
74068
+ * Creates a new RemoveOrganizationStripeIdRequest instance using the specified properties.
74069
+ * @function create
74070
+ * @memberof RemoveOrganizationStripeIdRequest
74071
+ * @static
74072
+ * @param {IRemoveOrganizationStripeIdRequest=} [properties] Properties to set
74073
+ * @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest instance
74074
+ */
74075
+ RemoveOrganizationStripeIdRequest.create = function create(properties) {
74076
+ return new RemoveOrganizationStripeIdRequest(properties);
74077
+ };
74078
+
74079
+ /**
74080
+ * Encodes the specified RemoveOrganizationStripeIdRequest message. Does not implicitly {@link RemoveOrganizationStripeIdRequest.verify|verify} messages.
74081
+ * @function encode
74082
+ * @memberof RemoveOrganizationStripeIdRequest
74083
+ * @static
74084
+ * @param {IRemoveOrganizationStripeIdRequest} message RemoveOrganizationStripeIdRequest message or plain object to encode
74085
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74086
+ * @returns {$protobuf.Writer} Writer
74087
+ */
74088
+ RemoveOrganizationStripeIdRequest.encode = function encode(message, writer) {
74089
+ if (!writer)
74090
+ writer = $Writer.create();
74091
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
74092
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
74093
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
74094
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
74095
+ return writer;
74096
+ };
74097
+
74098
+ /**
74099
+ * Encodes the specified RemoveOrganizationStripeIdRequest message, length delimited. Does not implicitly {@link RemoveOrganizationStripeIdRequest.verify|verify} messages.
74100
+ * @function encodeDelimited
74101
+ * @memberof RemoveOrganizationStripeIdRequest
74102
+ * @static
74103
+ * @param {IRemoveOrganizationStripeIdRequest} message RemoveOrganizationStripeIdRequest message or plain object to encode
74104
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74105
+ * @returns {$protobuf.Writer} Writer
74106
+ */
74107
+ RemoveOrganizationStripeIdRequest.encodeDelimited = function encodeDelimited(message, writer) {
74108
+ return this.encode(message, writer).ldelim();
74109
+ };
74110
+
74111
+ /**
74112
+ * Decodes a RemoveOrganizationStripeIdRequest message from the specified reader or buffer.
74113
+ * @function decode
74114
+ * @memberof RemoveOrganizationStripeIdRequest
74115
+ * @static
74116
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74117
+ * @param {number} [length] Message length if known beforehand
74118
+ * @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest
74119
+ * @throws {Error} If the payload is not a reader or valid buffer
74120
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74121
+ */
74122
+ RemoveOrganizationStripeIdRequest.decode = function decode(reader, length) {
74123
+ if (!(reader instanceof $Reader))
74124
+ reader = $Reader.create(reader);
74125
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RemoveOrganizationStripeIdRequest();
74126
+ while (reader.pos < end) {
74127
+ var tag = reader.uint32();
74128
+ switch (tag >>> 3) {
74129
+ case 0:
74130
+ message.spanContext = reader.string();
74131
+ break;
74132
+ case 1:
74133
+ message.orgId = reader.string();
74134
+ break;
74135
+ default:
74136
+ reader.skipType(tag & 7);
74137
+ break;
74138
+ }
74139
+ }
74140
+ return message;
74141
+ };
74142
+
74143
+ /**
74144
+ * Decodes a RemoveOrganizationStripeIdRequest message from the specified reader or buffer, length delimited.
74145
+ * @function decodeDelimited
74146
+ * @memberof RemoveOrganizationStripeIdRequest
74147
+ * @static
74148
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74149
+ * @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest
74150
+ * @throws {Error} If the payload is not a reader or valid buffer
74151
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74152
+ */
74153
+ RemoveOrganizationStripeIdRequest.decodeDelimited = function decodeDelimited(reader) {
74154
+ if (!(reader instanceof $Reader))
74155
+ reader = new $Reader(reader);
74156
+ return this.decode(reader, reader.uint32());
74157
+ };
74158
+
74159
+ /**
74160
+ * Verifies a RemoveOrganizationStripeIdRequest message.
74161
+ * @function verify
74162
+ * @memberof RemoveOrganizationStripeIdRequest
74163
+ * @static
74164
+ * @param {Object.<string,*>} message Plain object to verify
74165
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
74166
+ */
74167
+ RemoveOrganizationStripeIdRequest.verify = function verify(message) {
74168
+ if (typeof message !== "object" || message === null)
74169
+ return "object expected";
74170
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
74171
+ if (!$util.isString(message.spanContext))
74172
+ return "spanContext: string expected";
74173
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
74174
+ if (!$util.isString(message.orgId))
74175
+ return "orgId: string expected";
74176
+ return null;
74177
+ };
74178
+
74179
+ /**
74180
+ * Creates a RemoveOrganizationStripeIdRequest message from a plain object. Also converts values to their respective internal types.
74181
+ * @function fromObject
74182
+ * @memberof RemoveOrganizationStripeIdRequest
74183
+ * @static
74184
+ * @param {Object.<string,*>} object Plain object
74185
+ * @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest
74186
+ */
74187
+ RemoveOrganizationStripeIdRequest.fromObject = function fromObject(object) {
74188
+ if (object instanceof $root.RemoveOrganizationStripeIdRequest)
74189
+ return object;
74190
+ var message = new $root.RemoveOrganizationStripeIdRequest();
74191
+ if (object.spanContext != null)
74192
+ message.spanContext = String(object.spanContext);
74193
+ if (object.orgId != null)
74194
+ message.orgId = String(object.orgId);
74195
+ return message;
74196
+ };
74197
+
74198
+ /**
74199
+ * Creates a plain object from a RemoveOrganizationStripeIdRequest message. Also converts values to other types if specified.
74200
+ * @function toObject
74201
+ * @memberof RemoveOrganizationStripeIdRequest
74202
+ * @static
74203
+ * @param {RemoveOrganizationStripeIdRequest} message RemoveOrganizationStripeIdRequest
74204
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
74205
+ * @returns {Object.<string,*>} Plain object
74206
+ */
74207
+ RemoveOrganizationStripeIdRequest.toObject = function toObject(message, options) {
74208
+ if (!options)
74209
+ options = {};
74210
+ var object = {};
74211
+ if (options.defaults) {
74212
+ object.spanContext = "";
74213
+ object.orgId = "";
74214
+ }
74215
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
74216
+ object.spanContext = message.spanContext;
74217
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
74218
+ object.orgId = message.orgId;
74219
+ return object;
74220
+ };
74221
+
74222
+ /**
74223
+ * Converts this RemoveOrganizationStripeIdRequest to JSON.
74224
+ * @function toJSON
74225
+ * @memberof RemoveOrganizationStripeIdRequest
74226
+ * @instance
74227
+ * @returns {Object.<string,*>} JSON object
74228
+ */
74229
+ RemoveOrganizationStripeIdRequest.prototype.toJSON = function toJSON() {
74230
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74231
+ };
74232
+
74233
+ return RemoveOrganizationStripeIdRequest;
74234
+ })();
74235
+
74236
+ $root.RemoveOrganizationStripeIdResponse = (function() {
74237
+
74238
+ /**
74239
+ * Properties of a RemoveOrganizationStripeIdResponse.
74240
+ * @exports IRemoveOrganizationStripeIdResponse
74241
+ * @interface IRemoveOrganizationStripeIdResponse
74242
+ * @property {StatusCode|null} [status] RemoveOrganizationStripeIdResponse status
74243
+ * @property {Array.<IError>|null} [errors] RemoveOrganizationStripeIdResponse errors
74244
+ * @property {IOrganization|null} [organization] RemoveOrganizationStripeIdResponse organization
74245
+ */
74246
+
74247
+ /**
74248
+ * Constructs a new RemoveOrganizationStripeIdResponse.
74249
+ * @exports RemoveOrganizationStripeIdResponse
74250
+ * @classdesc Represents a RemoveOrganizationStripeIdResponse.
74251
+ * @implements IRemoveOrganizationStripeIdResponse
74252
+ * @constructor
74253
+ * @param {IRemoveOrganizationStripeIdResponse=} [properties] Properties to set
74254
+ */
74255
+ function RemoveOrganizationStripeIdResponse(properties) {
74256
+ this.errors = [];
74257
+ if (properties)
74258
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74259
+ if (properties[keys[i]] != null)
74260
+ this[keys[i]] = properties[keys[i]];
74261
+ }
74262
+
74263
+ /**
74264
+ * RemoveOrganizationStripeIdResponse status.
74265
+ * @member {StatusCode} status
74266
+ * @memberof RemoveOrganizationStripeIdResponse
74267
+ * @instance
74268
+ */
74269
+ RemoveOrganizationStripeIdResponse.prototype.status = 0;
74270
+
74271
+ /**
74272
+ * RemoveOrganizationStripeIdResponse errors.
74273
+ * @member {Array.<IError>} errors
74274
+ * @memberof RemoveOrganizationStripeIdResponse
74275
+ * @instance
74276
+ */
74277
+ RemoveOrganizationStripeIdResponse.prototype.errors = $util.emptyArray;
74278
+
74279
+ /**
74280
+ * RemoveOrganizationStripeIdResponse organization.
74281
+ * @member {IOrganization|null|undefined} organization
74282
+ * @memberof RemoveOrganizationStripeIdResponse
74283
+ * @instance
74284
+ */
74285
+ RemoveOrganizationStripeIdResponse.prototype.organization = null;
74286
+
74287
+ /**
74288
+ * Creates a new RemoveOrganizationStripeIdResponse instance using the specified properties.
74289
+ * @function create
74290
+ * @memberof RemoveOrganizationStripeIdResponse
74291
+ * @static
74292
+ * @param {IRemoveOrganizationStripeIdResponse=} [properties] Properties to set
74293
+ * @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse instance
74294
+ */
74295
+ RemoveOrganizationStripeIdResponse.create = function create(properties) {
74296
+ return new RemoveOrganizationStripeIdResponse(properties);
74297
+ };
74298
+
74299
+ /**
74300
+ * Encodes the specified RemoveOrganizationStripeIdResponse message. Does not implicitly {@link RemoveOrganizationStripeIdResponse.verify|verify} messages.
74301
+ * @function encode
74302
+ * @memberof RemoveOrganizationStripeIdResponse
74303
+ * @static
74304
+ * @param {IRemoveOrganizationStripeIdResponse} message RemoveOrganizationStripeIdResponse message or plain object to encode
74305
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74306
+ * @returns {$protobuf.Writer} Writer
74307
+ */
74308
+ RemoveOrganizationStripeIdResponse.encode = function encode(message, writer) {
74309
+ if (!writer)
74310
+ writer = $Writer.create();
74311
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
74312
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
74313
+ if (message.errors != null && message.errors.length)
74314
+ for (var i = 0; i < message.errors.length; ++i)
74315
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
74316
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
74317
+ $root.Organization.encode(message.organization, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
74318
+ return writer;
74319
+ };
74320
+
74321
+ /**
74322
+ * Encodes the specified RemoveOrganizationStripeIdResponse message, length delimited. Does not implicitly {@link RemoveOrganizationStripeIdResponse.verify|verify} messages.
74323
+ * @function encodeDelimited
74324
+ * @memberof RemoveOrganizationStripeIdResponse
74325
+ * @static
74326
+ * @param {IRemoveOrganizationStripeIdResponse} message RemoveOrganizationStripeIdResponse message or plain object to encode
74327
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74328
+ * @returns {$protobuf.Writer} Writer
74329
+ */
74330
+ RemoveOrganizationStripeIdResponse.encodeDelimited = function encodeDelimited(message, writer) {
74331
+ return this.encode(message, writer).ldelim();
74332
+ };
74333
+
74334
+ /**
74335
+ * Decodes a RemoveOrganizationStripeIdResponse message from the specified reader or buffer.
74336
+ * @function decode
74337
+ * @memberof RemoveOrganizationStripeIdResponse
74338
+ * @static
74339
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74340
+ * @param {number} [length] Message length if known beforehand
74341
+ * @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse
74342
+ * @throws {Error} If the payload is not a reader or valid buffer
74343
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74344
+ */
74345
+ RemoveOrganizationStripeIdResponse.decode = function decode(reader, length) {
74346
+ if (!(reader instanceof $Reader))
74347
+ reader = $Reader.create(reader);
74348
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RemoveOrganizationStripeIdResponse();
74349
+ while (reader.pos < end) {
74350
+ var tag = reader.uint32();
74351
+ switch (tag >>> 3) {
74352
+ case 0:
74353
+ message.status = reader.int32();
74354
+ break;
74355
+ case 1:
74356
+ if (!(message.errors && message.errors.length))
74357
+ message.errors = [];
74358
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
74359
+ break;
74360
+ case 2:
74361
+ message.organization = $root.Organization.decode(reader, reader.uint32());
74362
+ break;
74363
+ default:
74364
+ reader.skipType(tag & 7);
74365
+ break;
74366
+ }
74367
+ }
74368
+ return message;
74369
+ };
74370
+
74371
+ /**
74372
+ * Decodes a RemoveOrganizationStripeIdResponse message from the specified reader or buffer, length delimited.
74373
+ * @function decodeDelimited
74374
+ * @memberof RemoveOrganizationStripeIdResponse
74375
+ * @static
74376
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74377
+ * @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse
74378
+ * @throws {Error} If the payload is not a reader or valid buffer
74379
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74380
+ */
74381
+ RemoveOrganizationStripeIdResponse.decodeDelimited = function decodeDelimited(reader) {
74382
+ if (!(reader instanceof $Reader))
74383
+ reader = new $Reader(reader);
74384
+ return this.decode(reader, reader.uint32());
74385
+ };
74386
+
74387
+ /**
74388
+ * Verifies a RemoveOrganizationStripeIdResponse message.
74389
+ * @function verify
74390
+ * @memberof RemoveOrganizationStripeIdResponse
74391
+ * @static
74392
+ * @param {Object.<string,*>} message Plain object to verify
74393
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
74394
+ */
74395
+ RemoveOrganizationStripeIdResponse.verify = function verify(message) {
74396
+ if (typeof message !== "object" || message === null)
74397
+ return "object expected";
74398
+ if (message.status != null && message.hasOwnProperty("status"))
74399
+ switch (message.status) {
74400
+ default:
74401
+ return "status: enum value expected";
74402
+ case 0:
74403
+ case 200:
74404
+ case 400:
74405
+ case 401:
74406
+ case 403:
74407
+ case 422:
74408
+ case 404:
74409
+ case 500:
74410
+ case 504:
74411
+ break;
74412
+ }
74413
+ if (message.errors != null && message.hasOwnProperty("errors")) {
74414
+ if (!Array.isArray(message.errors))
74415
+ return "errors: array expected";
74416
+ for (var i = 0; i < message.errors.length; ++i) {
74417
+ var error = $root.Error.verify(message.errors[i]);
74418
+ if (error)
74419
+ return "errors." + error;
74420
+ }
74421
+ }
74422
+ if (message.organization != null && message.hasOwnProperty("organization")) {
74423
+ var error = $root.Organization.verify(message.organization);
74424
+ if (error)
74425
+ return "organization." + error;
74426
+ }
74427
+ return null;
74428
+ };
74429
+
74430
+ /**
74431
+ * Creates a RemoveOrganizationStripeIdResponse message from a plain object. Also converts values to their respective internal types.
74432
+ * @function fromObject
74433
+ * @memberof RemoveOrganizationStripeIdResponse
74434
+ * @static
74435
+ * @param {Object.<string,*>} object Plain object
74436
+ * @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse
74437
+ */
74438
+ RemoveOrganizationStripeIdResponse.fromObject = function fromObject(object) {
74439
+ if (object instanceof $root.RemoveOrganizationStripeIdResponse)
74440
+ return object;
74441
+ var message = new $root.RemoveOrganizationStripeIdResponse();
74442
+ switch (object.status) {
74443
+ case "UNKNOWN_CODE":
74444
+ case 0:
74445
+ message.status = 0;
74446
+ break;
74447
+ case "OK":
74448
+ case 200:
74449
+ message.status = 200;
74450
+ break;
74451
+ case "BAD_REQUEST":
74452
+ case 400:
74453
+ message.status = 400;
74454
+ break;
74455
+ case "UNAUTHORIZED":
74456
+ case 401:
74457
+ message.status = 401;
74458
+ break;
74459
+ case "FORBIDDEN":
74460
+ case 403:
74461
+ message.status = 403;
74462
+ break;
74463
+ case "UNPROCESSABLE_ENTITY":
74464
+ case 422:
74465
+ message.status = 422;
74466
+ break;
74467
+ case "NOT_FOUND":
74468
+ case 404:
74469
+ message.status = 404;
74470
+ break;
74471
+ case "INTERNAL_SERVER_ERROR":
74472
+ case 500:
74473
+ message.status = 500;
74474
+ break;
74475
+ case "GATEWAY_TIMEOUT":
74476
+ case 504:
74477
+ message.status = 504;
74478
+ break;
74479
+ }
74480
+ if (object.errors) {
74481
+ if (!Array.isArray(object.errors))
74482
+ throw TypeError(".RemoveOrganizationStripeIdResponse.errors: array expected");
74483
+ message.errors = [];
74484
+ for (var i = 0; i < object.errors.length; ++i) {
74485
+ if (typeof object.errors[i] !== "object")
74486
+ throw TypeError(".RemoveOrganizationStripeIdResponse.errors: object expected");
74487
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
74488
+ }
74489
+ }
74490
+ if (object.organization != null) {
74491
+ if (typeof object.organization !== "object")
74492
+ throw TypeError(".RemoveOrganizationStripeIdResponse.organization: object expected");
74493
+ message.organization = $root.Organization.fromObject(object.organization);
74494
+ }
74495
+ return message;
74496
+ };
74497
+
74498
+ /**
74499
+ * Creates a plain object from a RemoveOrganizationStripeIdResponse message. Also converts values to other types if specified.
74500
+ * @function toObject
74501
+ * @memberof RemoveOrganizationStripeIdResponse
74502
+ * @static
74503
+ * @param {RemoveOrganizationStripeIdResponse} message RemoveOrganizationStripeIdResponse
74504
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
74505
+ * @returns {Object.<string,*>} Plain object
74506
+ */
74507
+ RemoveOrganizationStripeIdResponse.toObject = function toObject(message, options) {
74508
+ if (!options)
74509
+ options = {};
74510
+ var object = {};
74511
+ if (options.arrays || options.defaults)
74512
+ object.errors = [];
74513
+ if (options.defaults) {
74514
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
74515
+ object.organization = null;
74516
+ }
74517
+ if (message.status != null && message.hasOwnProperty("status"))
74518
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
74519
+ if (message.errors && message.errors.length) {
74520
+ object.errors = [];
74521
+ for (var j = 0; j < message.errors.length; ++j)
74522
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
74523
+ }
74524
+ if (message.organization != null && message.hasOwnProperty("organization"))
74525
+ object.organization = $root.Organization.toObject(message.organization, options);
74526
+ return object;
74527
+ };
74528
+
74529
+ /**
74530
+ * Converts this RemoveOrganizationStripeIdResponse to JSON.
74531
+ * @function toJSON
74532
+ * @memberof RemoveOrganizationStripeIdResponse
74533
+ * @instance
74534
+ * @returns {Object.<string,*>} JSON object
74535
+ */
74536
+ RemoveOrganizationStripeIdResponse.prototype.toJSON = function toJSON() {
74537
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74538
+ };
74539
+
74540
+ return RemoveOrganizationStripeIdResponse;
74541
+ })();
74542
+
74026
74543
  $root.OrganizationService = (function() {
74027
74544
 
74028
74545
  /**
@@ -74286,6 +74803,39 @@ $root.OrganizationService = (function() {
74286
74803
  * @variation 2
74287
74804
  */
74288
74805
 
74806
+ /**
74807
+ * Callback as used by {@link OrganizationService#removeOrganizationStripeId}.
74808
+ * @memberof OrganizationService
74809
+ * @typedef removeOrganizationStripeIdCallback
74810
+ * @type {function}
74811
+ * @param {Error|null} error Error, if any
74812
+ * @param {RemoveOrganizationStripeIdResponse} [response] RemoveOrganizationStripeIdResponse
74813
+ */
74814
+
74815
+ /**
74816
+ * Calls removeOrganizationStripeId.
74817
+ * @function removeOrganizationStripeId
74818
+ * @memberof OrganizationService
74819
+ * @instance
74820
+ * @param {IRemoveOrganizationStripeIdRequest} request RemoveOrganizationStripeIdRequest message or plain object
74821
+ * @param {OrganizationService.removeOrganizationStripeIdCallback} callback Node-style callback called with the error, if any, and RemoveOrganizationStripeIdResponse
74822
+ * @returns {undefined}
74823
+ * @variation 1
74824
+ */
74825
+ Object.defineProperty(OrganizationService.prototype.removeOrganizationStripeId = function removeOrganizationStripeId(request, callback) {
74826
+ return this.rpcCall(removeOrganizationStripeId, $root.RemoveOrganizationStripeIdRequest, $root.RemoveOrganizationStripeIdResponse, request, callback);
74827
+ }, "name", { value: "removeOrganizationStripeId" });
74828
+
74829
+ /**
74830
+ * Calls removeOrganizationStripeId.
74831
+ * @function removeOrganizationStripeId
74832
+ * @memberof OrganizationService
74833
+ * @instance
74834
+ * @param {IRemoveOrganizationStripeIdRequest} request RemoveOrganizationStripeIdRequest message or plain object
74835
+ * @returns {Promise<RemoveOrganizationStripeIdResponse>} Promise
74836
+ * @variation 2
74837
+ */
74838
+
74289
74839
  return OrganizationService;
74290
74840
  })();
74291
74841
 
@@ -86799,6 +87349,7 @@ $root.Event = (function() {
86799
87349
  * @property {Array.<IWaitList>|null} [waitList] Event waitList
86800
87350
  * @property {string|null} [duplicateEventId] Event duplicateEventId
86801
87351
  * @property {string|null} [duplicateFeeId] Event duplicateFeeId
87352
+ * @property {string|null} [qrCodeUrl] Event qrCodeUrl
86802
87353
  */
86803
87354
 
86804
87355
  /**
@@ -87168,6 +87719,14 @@ $root.Event = (function() {
87168
87719
  */
87169
87720
  Event.prototype.duplicateFeeId = "";
87170
87721
 
87722
+ /**
87723
+ * Event qrCodeUrl.
87724
+ * @member {string} qrCodeUrl
87725
+ * @memberof Event
87726
+ * @instance
87727
+ */
87728
+ Event.prototype.qrCodeUrl = "";
87729
+
87171
87730
  /**
87172
87731
  * Creates a new Event instance using the specified properties.
87173
87732
  * @function create
@@ -87286,6 +87845,8 @@ $root.Event = (function() {
87286
87845
  writer.uint32(/* id 42, wireType 2 =*/338).string(message.duplicateEventId);
87287
87846
  if (message.duplicateFeeId != null && Object.hasOwnProperty.call(message, "duplicateFeeId"))
87288
87847
  writer.uint32(/* id 43, wireType 2 =*/346).string(message.duplicateFeeId);
87848
+ if (message.qrCodeUrl != null && Object.hasOwnProperty.call(message, "qrCodeUrl"))
87849
+ writer.uint32(/* id 44, wireType 2 =*/354).string(message.qrCodeUrl);
87289
87850
  return writer;
87290
87851
  };
87291
87852
 
@@ -87465,6 +88026,9 @@ $root.Event = (function() {
87465
88026
  case 43:
87466
88027
  message.duplicateFeeId = reader.string();
87467
88028
  break;
88029
+ case 44:
88030
+ message.qrCodeUrl = reader.string();
88031
+ break;
87468
88032
  default:
87469
88033
  reader.skipType(tag & 7);
87470
88034
  break;
@@ -87685,6 +88249,9 @@ $root.Event = (function() {
87685
88249
  if (message.duplicateFeeId != null && message.hasOwnProperty("duplicateFeeId"))
87686
88250
  if (!$util.isString(message.duplicateFeeId))
87687
88251
  return "duplicateFeeId: string expected";
88252
+ if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
88253
+ if (!$util.isString(message.qrCodeUrl))
88254
+ return "qrCodeUrl: string expected";
87688
88255
  return null;
87689
88256
  };
87690
88257
 
@@ -87862,6 +88429,8 @@ $root.Event = (function() {
87862
88429
  message.duplicateEventId = String(object.duplicateEventId);
87863
88430
  if (object.duplicateFeeId != null)
87864
88431
  message.duplicateFeeId = String(object.duplicateFeeId);
88432
+ if (object.qrCodeUrl != null)
88433
+ message.qrCodeUrl = String(object.qrCodeUrl);
87865
88434
  return message;
87866
88435
  };
87867
88436
 
@@ -87924,6 +88493,7 @@ $root.Event = (function() {
87924
88493
  object.stub = "";
87925
88494
  object.duplicateEventId = "";
87926
88495
  object.duplicateFeeId = "";
88496
+ object.qrCodeUrl = "";
87927
88497
  }
87928
88498
  if (message._id != null && message.hasOwnProperty("_id"))
87929
88499
  object._id = message._id;
@@ -88035,6 +88605,8 @@ $root.Event = (function() {
88035
88605
  object.duplicateEventId = message.duplicateEventId;
88036
88606
  if (message.duplicateFeeId != null && message.hasOwnProperty("duplicateFeeId"))
88037
88607
  object.duplicateFeeId = message.duplicateFeeId;
88608
+ if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
88609
+ object.qrCodeUrl = message.qrCodeUrl;
88038
88610
  return object;
88039
88611
  };
88040
88612
 
@@ -110402,6 +110974,567 @@ $root.UpdateTicketTierInventoryResponse = (function() {
110402
110974
  return UpdateTicketTierInventoryResponse;
110403
110975
  })();
110404
110976
 
110977
+ $root.DeleteTicketHoldRequest = (function() {
110978
+
110979
+ /**
110980
+ * Properties of a DeleteTicketHoldRequest.
110981
+ * @exports IDeleteTicketHoldRequest
110982
+ * @interface IDeleteTicketHoldRequest
110983
+ * @property {string|null} [spanContext] DeleteTicketHoldRequest spanContext
110984
+ * @property {string|null} [eventId] DeleteTicketHoldRequest eventId
110985
+ * @property {string|null} [orgId] DeleteTicketHoldRequest orgId
110986
+ * @property {string|null} [holdId] DeleteTicketHoldRequest holdId
110987
+ */
110988
+
110989
+ /**
110990
+ * Constructs a new DeleteTicketHoldRequest.
110991
+ * @exports DeleteTicketHoldRequest
110992
+ * @classdesc Represents a DeleteTicketHoldRequest.
110993
+ * @implements IDeleteTicketHoldRequest
110994
+ * @constructor
110995
+ * @param {IDeleteTicketHoldRequest=} [properties] Properties to set
110996
+ */
110997
+ function DeleteTicketHoldRequest(properties) {
110998
+ if (properties)
110999
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
111000
+ if (properties[keys[i]] != null)
111001
+ this[keys[i]] = properties[keys[i]];
111002
+ }
111003
+
111004
+ /**
111005
+ * DeleteTicketHoldRequest spanContext.
111006
+ * @member {string} spanContext
111007
+ * @memberof DeleteTicketHoldRequest
111008
+ * @instance
111009
+ */
111010
+ DeleteTicketHoldRequest.prototype.spanContext = "";
111011
+
111012
+ /**
111013
+ * DeleteTicketHoldRequest eventId.
111014
+ * @member {string} eventId
111015
+ * @memberof DeleteTicketHoldRequest
111016
+ * @instance
111017
+ */
111018
+ DeleteTicketHoldRequest.prototype.eventId = "";
111019
+
111020
+ /**
111021
+ * DeleteTicketHoldRequest orgId.
111022
+ * @member {string} orgId
111023
+ * @memberof DeleteTicketHoldRequest
111024
+ * @instance
111025
+ */
111026
+ DeleteTicketHoldRequest.prototype.orgId = "";
111027
+
111028
+ /**
111029
+ * DeleteTicketHoldRequest holdId.
111030
+ * @member {string} holdId
111031
+ * @memberof DeleteTicketHoldRequest
111032
+ * @instance
111033
+ */
111034
+ DeleteTicketHoldRequest.prototype.holdId = "";
111035
+
111036
+ /**
111037
+ * Creates a new DeleteTicketHoldRequest instance using the specified properties.
111038
+ * @function create
111039
+ * @memberof DeleteTicketHoldRequest
111040
+ * @static
111041
+ * @param {IDeleteTicketHoldRequest=} [properties] Properties to set
111042
+ * @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest instance
111043
+ */
111044
+ DeleteTicketHoldRequest.create = function create(properties) {
111045
+ return new DeleteTicketHoldRequest(properties);
111046
+ };
111047
+
111048
+ /**
111049
+ * Encodes the specified DeleteTicketHoldRequest message. Does not implicitly {@link DeleteTicketHoldRequest.verify|verify} messages.
111050
+ * @function encode
111051
+ * @memberof DeleteTicketHoldRequest
111052
+ * @static
111053
+ * @param {IDeleteTicketHoldRequest} message DeleteTicketHoldRequest message or plain object to encode
111054
+ * @param {$protobuf.Writer} [writer] Writer to encode to
111055
+ * @returns {$protobuf.Writer} Writer
111056
+ */
111057
+ DeleteTicketHoldRequest.encode = function encode(message, writer) {
111058
+ if (!writer)
111059
+ writer = $Writer.create();
111060
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
111061
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
111062
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
111063
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventId);
111064
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
111065
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
111066
+ if (message.holdId != null && Object.hasOwnProperty.call(message, "holdId"))
111067
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.holdId);
111068
+ return writer;
111069
+ };
111070
+
111071
+ /**
111072
+ * Encodes the specified DeleteTicketHoldRequest message, length delimited. Does not implicitly {@link DeleteTicketHoldRequest.verify|verify} messages.
111073
+ * @function encodeDelimited
111074
+ * @memberof DeleteTicketHoldRequest
111075
+ * @static
111076
+ * @param {IDeleteTicketHoldRequest} message DeleteTicketHoldRequest message or plain object to encode
111077
+ * @param {$protobuf.Writer} [writer] Writer to encode to
111078
+ * @returns {$protobuf.Writer} Writer
111079
+ */
111080
+ DeleteTicketHoldRequest.encodeDelimited = function encodeDelimited(message, writer) {
111081
+ return this.encode(message, writer).ldelim();
111082
+ };
111083
+
111084
+ /**
111085
+ * Decodes a DeleteTicketHoldRequest message from the specified reader or buffer.
111086
+ * @function decode
111087
+ * @memberof DeleteTicketHoldRequest
111088
+ * @static
111089
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
111090
+ * @param {number} [length] Message length if known beforehand
111091
+ * @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest
111092
+ * @throws {Error} If the payload is not a reader or valid buffer
111093
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
111094
+ */
111095
+ DeleteTicketHoldRequest.decode = function decode(reader, length) {
111096
+ if (!(reader instanceof $Reader))
111097
+ reader = $Reader.create(reader);
111098
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteTicketHoldRequest();
111099
+ while (reader.pos < end) {
111100
+ var tag = reader.uint32();
111101
+ switch (tag >>> 3) {
111102
+ case 0:
111103
+ message.spanContext = reader.string();
111104
+ break;
111105
+ case 1:
111106
+ message.eventId = reader.string();
111107
+ break;
111108
+ case 2:
111109
+ message.orgId = reader.string();
111110
+ break;
111111
+ case 3:
111112
+ message.holdId = reader.string();
111113
+ break;
111114
+ default:
111115
+ reader.skipType(tag & 7);
111116
+ break;
111117
+ }
111118
+ }
111119
+ return message;
111120
+ };
111121
+
111122
+ /**
111123
+ * Decodes a DeleteTicketHoldRequest message from the specified reader or buffer, length delimited.
111124
+ * @function decodeDelimited
111125
+ * @memberof DeleteTicketHoldRequest
111126
+ * @static
111127
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
111128
+ * @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest
111129
+ * @throws {Error} If the payload is not a reader or valid buffer
111130
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
111131
+ */
111132
+ DeleteTicketHoldRequest.decodeDelimited = function decodeDelimited(reader) {
111133
+ if (!(reader instanceof $Reader))
111134
+ reader = new $Reader(reader);
111135
+ return this.decode(reader, reader.uint32());
111136
+ };
111137
+
111138
+ /**
111139
+ * Verifies a DeleteTicketHoldRequest message.
111140
+ * @function verify
111141
+ * @memberof DeleteTicketHoldRequest
111142
+ * @static
111143
+ * @param {Object.<string,*>} message Plain object to verify
111144
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
111145
+ */
111146
+ DeleteTicketHoldRequest.verify = function verify(message) {
111147
+ if (typeof message !== "object" || message === null)
111148
+ return "object expected";
111149
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
111150
+ if (!$util.isString(message.spanContext))
111151
+ return "spanContext: string expected";
111152
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
111153
+ if (!$util.isString(message.eventId))
111154
+ return "eventId: string expected";
111155
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
111156
+ if (!$util.isString(message.orgId))
111157
+ return "orgId: string expected";
111158
+ if (message.holdId != null && message.hasOwnProperty("holdId"))
111159
+ if (!$util.isString(message.holdId))
111160
+ return "holdId: string expected";
111161
+ return null;
111162
+ };
111163
+
111164
+ /**
111165
+ * Creates a DeleteTicketHoldRequest message from a plain object. Also converts values to their respective internal types.
111166
+ * @function fromObject
111167
+ * @memberof DeleteTicketHoldRequest
111168
+ * @static
111169
+ * @param {Object.<string,*>} object Plain object
111170
+ * @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest
111171
+ */
111172
+ DeleteTicketHoldRequest.fromObject = function fromObject(object) {
111173
+ if (object instanceof $root.DeleteTicketHoldRequest)
111174
+ return object;
111175
+ var message = new $root.DeleteTicketHoldRequest();
111176
+ if (object.spanContext != null)
111177
+ message.spanContext = String(object.spanContext);
111178
+ if (object.eventId != null)
111179
+ message.eventId = String(object.eventId);
111180
+ if (object.orgId != null)
111181
+ message.orgId = String(object.orgId);
111182
+ if (object.holdId != null)
111183
+ message.holdId = String(object.holdId);
111184
+ return message;
111185
+ };
111186
+
111187
+ /**
111188
+ * Creates a plain object from a DeleteTicketHoldRequest message. Also converts values to other types if specified.
111189
+ * @function toObject
111190
+ * @memberof DeleteTicketHoldRequest
111191
+ * @static
111192
+ * @param {DeleteTicketHoldRequest} message DeleteTicketHoldRequest
111193
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
111194
+ * @returns {Object.<string,*>} Plain object
111195
+ */
111196
+ DeleteTicketHoldRequest.toObject = function toObject(message, options) {
111197
+ if (!options)
111198
+ options = {};
111199
+ var object = {};
111200
+ if (options.defaults) {
111201
+ object.spanContext = "";
111202
+ object.eventId = "";
111203
+ object.orgId = "";
111204
+ object.holdId = "";
111205
+ }
111206
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
111207
+ object.spanContext = message.spanContext;
111208
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
111209
+ object.eventId = message.eventId;
111210
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
111211
+ object.orgId = message.orgId;
111212
+ if (message.holdId != null && message.hasOwnProperty("holdId"))
111213
+ object.holdId = message.holdId;
111214
+ return object;
111215
+ };
111216
+
111217
+ /**
111218
+ * Converts this DeleteTicketHoldRequest to JSON.
111219
+ * @function toJSON
111220
+ * @memberof DeleteTicketHoldRequest
111221
+ * @instance
111222
+ * @returns {Object.<string,*>} JSON object
111223
+ */
111224
+ DeleteTicketHoldRequest.prototype.toJSON = function toJSON() {
111225
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
111226
+ };
111227
+
111228
+ return DeleteTicketHoldRequest;
111229
+ })();
111230
+
111231
+ $root.DeleteTicketHoldResponse = (function() {
111232
+
111233
+ /**
111234
+ * Properties of a DeleteTicketHoldResponse.
111235
+ * @exports IDeleteTicketHoldResponse
111236
+ * @interface IDeleteTicketHoldResponse
111237
+ * @property {StatusCode|null} [status] DeleteTicketHoldResponse status
111238
+ * @property {Array.<IError>|null} [errors] DeleteTicketHoldResponse errors
111239
+ * @property {IEvent|null} [event] DeleteTicketHoldResponse event
111240
+ */
111241
+
111242
+ /**
111243
+ * Constructs a new DeleteTicketHoldResponse.
111244
+ * @exports DeleteTicketHoldResponse
111245
+ * @classdesc Represents a DeleteTicketHoldResponse.
111246
+ * @implements IDeleteTicketHoldResponse
111247
+ * @constructor
111248
+ * @param {IDeleteTicketHoldResponse=} [properties] Properties to set
111249
+ */
111250
+ function DeleteTicketHoldResponse(properties) {
111251
+ this.errors = [];
111252
+ if (properties)
111253
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
111254
+ if (properties[keys[i]] != null)
111255
+ this[keys[i]] = properties[keys[i]];
111256
+ }
111257
+
111258
+ /**
111259
+ * DeleteTicketHoldResponse status.
111260
+ * @member {StatusCode} status
111261
+ * @memberof DeleteTicketHoldResponse
111262
+ * @instance
111263
+ */
111264
+ DeleteTicketHoldResponse.prototype.status = 0;
111265
+
111266
+ /**
111267
+ * DeleteTicketHoldResponse errors.
111268
+ * @member {Array.<IError>} errors
111269
+ * @memberof DeleteTicketHoldResponse
111270
+ * @instance
111271
+ */
111272
+ DeleteTicketHoldResponse.prototype.errors = $util.emptyArray;
111273
+
111274
+ /**
111275
+ * DeleteTicketHoldResponse event.
111276
+ * @member {IEvent|null|undefined} event
111277
+ * @memberof DeleteTicketHoldResponse
111278
+ * @instance
111279
+ */
111280
+ DeleteTicketHoldResponse.prototype.event = null;
111281
+
111282
+ /**
111283
+ * Creates a new DeleteTicketHoldResponse instance using the specified properties.
111284
+ * @function create
111285
+ * @memberof DeleteTicketHoldResponse
111286
+ * @static
111287
+ * @param {IDeleteTicketHoldResponse=} [properties] Properties to set
111288
+ * @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse instance
111289
+ */
111290
+ DeleteTicketHoldResponse.create = function create(properties) {
111291
+ return new DeleteTicketHoldResponse(properties);
111292
+ };
111293
+
111294
+ /**
111295
+ * Encodes the specified DeleteTicketHoldResponse message. Does not implicitly {@link DeleteTicketHoldResponse.verify|verify} messages.
111296
+ * @function encode
111297
+ * @memberof DeleteTicketHoldResponse
111298
+ * @static
111299
+ * @param {IDeleteTicketHoldResponse} message DeleteTicketHoldResponse message or plain object to encode
111300
+ * @param {$protobuf.Writer} [writer] Writer to encode to
111301
+ * @returns {$protobuf.Writer} Writer
111302
+ */
111303
+ DeleteTicketHoldResponse.encode = function encode(message, writer) {
111304
+ if (!writer)
111305
+ writer = $Writer.create();
111306
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
111307
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
111308
+ if (message.errors != null && message.errors.length)
111309
+ for (var i = 0; i < message.errors.length; ++i)
111310
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
111311
+ if (message.event != null && Object.hasOwnProperty.call(message, "event"))
111312
+ $root.Event.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
111313
+ return writer;
111314
+ };
111315
+
111316
+ /**
111317
+ * Encodes the specified DeleteTicketHoldResponse message, length delimited. Does not implicitly {@link DeleteTicketHoldResponse.verify|verify} messages.
111318
+ * @function encodeDelimited
111319
+ * @memberof DeleteTicketHoldResponse
111320
+ * @static
111321
+ * @param {IDeleteTicketHoldResponse} message DeleteTicketHoldResponse message or plain object to encode
111322
+ * @param {$protobuf.Writer} [writer] Writer to encode to
111323
+ * @returns {$protobuf.Writer} Writer
111324
+ */
111325
+ DeleteTicketHoldResponse.encodeDelimited = function encodeDelimited(message, writer) {
111326
+ return this.encode(message, writer).ldelim();
111327
+ };
111328
+
111329
+ /**
111330
+ * Decodes a DeleteTicketHoldResponse message from the specified reader or buffer.
111331
+ * @function decode
111332
+ * @memberof DeleteTicketHoldResponse
111333
+ * @static
111334
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
111335
+ * @param {number} [length] Message length if known beforehand
111336
+ * @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse
111337
+ * @throws {Error} If the payload is not a reader or valid buffer
111338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
111339
+ */
111340
+ DeleteTicketHoldResponse.decode = function decode(reader, length) {
111341
+ if (!(reader instanceof $Reader))
111342
+ reader = $Reader.create(reader);
111343
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteTicketHoldResponse();
111344
+ while (reader.pos < end) {
111345
+ var tag = reader.uint32();
111346
+ switch (tag >>> 3) {
111347
+ case 0:
111348
+ message.status = reader.int32();
111349
+ break;
111350
+ case 1:
111351
+ if (!(message.errors && message.errors.length))
111352
+ message.errors = [];
111353
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
111354
+ break;
111355
+ case 2:
111356
+ message.event = $root.Event.decode(reader, reader.uint32());
111357
+ break;
111358
+ default:
111359
+ reader.skipType(tag & 7);
111360
+ break;
111361
+ }
111362
+ }
111363
+ return message;
111364
+ };
111365
+
111366
+ /**
111367
+ * Decodes a DeleteTicketHoldResponse message from the specified reader or buffer, length delimited.
111368
+ * @function decodeDelimited
111369
+ * @memberof DeleteTicketHoldResponse
111370
+ * @static
111371
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
111372
+ * @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse
111373
+ * @throws {Error} If the payload is not a reader or valid buffer
111374
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
111375
+ */
111376
+ DeleteTicketHoldResponse.decodeDelimited = function decodeDelimited(reader) {
111377
+ if (!(reader instanceof $Reader))
111378
+ reader = new $Reader(reader);
111379
+ return this.decode(reader, reader.uint32());
111380
+ };
111381
+
111382
+ /**
111383
+ * Verifies a DeleteTicketHoldResponse message.
111384
+ * @function verify
111385
+ * @memberof DeleteTicketHoldResponse
111386
+ * @static
111387
+ * @param {Object.<string,*>} message Plain object to verify
111388
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
111389
+ */
111390
+ DeleteTicketHoldResponse.verify = function verify(message) {
111391
+ if (typeof message !== "object" || message === null)
111392
+ return "object expected";
111393
+ if (message.status != null && message.hasOwnProperty("status"))
111394
+ switch (message.status) {
111395
+ default:
111396
+ return "status: enum value expected";
111397
+ case 0:
111398
+ case 200:
111399
+ case 400:
111400
+ case 401:
111401
+ case 403:
111402
+ case 422:
111403
+ case 404:
111404
+ case 500:
111405
+ case 504:
111406
+ break;
111407
+ }
111408
+ if (message.errors != null && message.hasOwnProperty("errors")) {
111409
+ if (!Array.isArray(message.errors))
111410
+ return "errors: array expected";
111411
+ for (var i = 0; i < message.errors.length; ++i) {
111412
+ var error = $root.Error.verify(message.errors[i]);
111413
+ if (error)
111414
+ return "errors." + error;
111415
+ }
111416
+ }
111417
+ if (message.event != null && message.hasOwnProperty("event")) {
111418
+ var error = $root.Event.verify(message.event);
111419
+ if (error)
111420
+ return "event." + error;
111421
+ }
111422
+ return null;
111423
+ };
111424
+
111425
+ /**
111426
+ * Creates a DeleteTicketHoldResponse message from a plain object. Also converts values to their respective internal types.
111427
+ * @function fromObject
111428
+ * @memberof DeleteTicketHoldResponse
111429
+ * @static
111430
+ * @param {Object.<string,*>} object Plain object
111431
+ * @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse
111432
+ */
111433
+ DeleteTicketHoldResponse.fromObject = function fromObject(object) {
111434
+ if (object instanceof $root.DeleteTicketHoldResponse)
111435
+ return object;
111436
+ var message = new $root.DeleteTicketHoldResponse();
111437
+ switch (object.status) {
111438
+ case "UNKNOWN_CODE":
111439
+ case 0:
111440
+ message.status = 0;
111441
+ break;
111442
+ case "OK":
111443
+ case 200:
111444
+ message.status = 200;
111445
+ break;
111446
+ case "BAD_REQUEST":
111447
+ case 400:
111448
+ message.status = 400;
111449
+ break;
111450
+ case "UNAUTHORIZED":
111451
+ case 401:
111452
+ message.status = 401;
111453
+ break;
111454
+ case "FORBIDDEN":
111455
+ case 403:
111456
+ message.status = 403;
111457
+ break;
111458
+ case "UNPROCESSABLE_ENTITY":
111459
+ case 422:
111460
+ message.status = 422;
111461
+ break;
111462
+ case "NOT_FOUND":
111463
+ case 404:
111464
+ message.status = 404;
111465
+ break;
111466
+ case "INTERNAL_SERVER_ERROR":
111467
+ case 500:
111468
+ message.status = 500;
111469
+ break;
111470
+ case "GATEWAY_TIMEOUT":
111471
+ case 504:
111472
+ message.status = 504;
111473
+ break;
111474
+ }
111475
+ if (object.errors) {
111476
+ if (!Array.isArray(object.errors))
111477
+ throw TypeError(".DeleteTicketHoldResponse.errors: array expected");
111478
+ message.errors = [];
111479
+ for (var i = 0; i < object.errors.length; ++i) {
111480
+ if (typeof object.errors[i] !== "object")
111481
+ throw TypeError(".DeleteTicketHoldResponse.errors: object expected");
111482
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
111483
+ }
111484
+ }
111485
+ if (object.event != null) {
111486
+ if (typeof object.event !== "object")
111487
+ throw TypeError(".DeleteTicketHoldResponse.event: object expected");
111488
+ message.event = $root.Event.fromObject(object.event);
111489
+ }
111490
+ return message;
111491
+ };
111492
+
111493
+ /**
111494
+ * Creates a plain object from a DeleteTicketHoldResponse message. Also converts values to other types if specified.
111495
+ * @function toObject
111496
+ * @memberof DeleteTicketHoldResponse
111497
+ * @static
111498
+ * @param {DeleteTicketHoldResponse} message DeleteTicketHoldResponse
111499
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
111500
+ * @returns {Object.<string,*>} Plain object
111501
+ */
111502
+ DeleteTicketHoldResponse.toObject = function toObject(message, options) {
111503
+ if (!options)
111504
+ options = {};
111505
+ var object = {};
111506
+ if (options.arrays || options.defaults)
111507
+ object.errors = [];
111508
+ if (options.defaults) {
111509
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
111510
+ object.event = null;
111511
+ }
111512
+ if (message.status != null && message.hasOwnProperty("status"))
111513
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
111514
+ if (message.errors && message.errors.length) {
111515
+ object.errors = [];
111516
+ for (var j = 0; j < message.errors.length; ++j)
111517
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
111518
+ }
111519
+ if (message.event != null && message.hasOwnProperty("event"))
111520
+ object.event = $root.Event.toObject(message.event, options);
111521
+ return object;
111522
+ };
111523
+
111524
+ /**
111525
+ * Converts this DeleteTicketHoldResponse to JSON.
111526
+ * @function toJSON
111527
+ * @memberof DeleteTicketHoldResponse
111528
+ * @instance
111529
+ * @returns {Object.<string,*>} JSON object
111530
+ */
111531
+ DeleteTicketHoldResponse.prototype.toJSON = function toJSON() {
111532
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
111533
+ };
111534
+
111535
+ return DeleteTicketHoldResponse;
111536
+ })();
111537
+
110405
111538
  $root.EventService = (function() {
110406
111539
 
110407
111540
  /**
@@ -111259,6 +112392,39 @@ $root.EventService = (function() {
111259
112392
  * @variation 2
111260
112393
  */
111261
112394
 
112395
+ /**
112396
+ * Callback as used by {@link EventService#deleteTicketHold}.
112397
+ * @memberof EventService
112398
+ * @typedef deleteTicketHoldCallback
112399
+ * @type {function}
112400
+ * @param {Error|null} error Error, if any
112401
+ * @param {DeleteTicketHoldResponse} [response] DeleteTicketHoldResponse
112402
+ */
112403
+
112404
+ /**
112405
+ * Calls deleteTicketHold.
112406
+ * @function deleteTicketHold
112407
+ * @memberof EventService
112408
+ * @instance
112409
+ * @param {IDeleteTicketHoldRequest} request DeleteTicketHoldRequest message or plain object
112410
+ * @param {EventService.deleteTicketHoldCallback} callback Node-style callback called with the error, if any, and DeleteTicketHoldResponse
112411
+ * @returns {undefined}
112412
+ * @variation 1
112413
+ */
112414
+ Object.defineProperty(EventService.prototype.deleteTicketHold = function deleteTicketHold(request, callback) {
112415
+ return this.rpcCall(deleteTicketHold, $root.DeleteTicketHoldRequest, $root.DeleteTicketHoldResponse, request, callback);
112416
+ }, "name", { value: "deleteTicketHold" });
112417
+
112418
+ /**
112419
+ * Calls deleteTicketHold.
112420
+ * @function deleteTicketHold
112421
+ * @memberof EventService
112422
+ * @instance
112423
+ * @param {IDeleteTicketHoldRequest} request DeleteTicketHoldRequest message or plain object
112424
+ * @returns {Promise<DeleteTicketHoldResponse>} Promise
112425
+ * @variation 2
112426
+ */
112427
+
111262
112428
  return EventService;
111263
112429
  })();
111264
112430
 
@@ -158764,38 +159930,827 @@ $root.CreateStripeLocationIdResponse = (function() {
158764
159930
  }
158765
159931
  if (object.errors) {
158766
159932
  if (!Array.isArray(object.errors))
158767
- throw TypeError(".CreateStripeLocationIdResponse.errors: array expected");
159933
+ throw TypeError(".CreateStripeLocationIdResponse.errors: array expected");
159934
+ message.errors = [];
159935
+ for (var i = 0; i < object.errors.length; ++i) {
159936
+ if (typeof object.errors[i] !== "object")
159937
+ throw TypeError(".CreateStripeLocationIdResponse.errors: object expected");
159938
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
159939
+ }
159940
+ }
159941
+ if (object.locationId != null)
159942
+ message.locationId = String(object.locationId);
159943
+ return message;
159944
+ };
159945
+
159946
+ /**
159947
+ * Creates a plain object from a CreateStripeLocationIdResponse message. Also converts values to other types if specified.
159948
+ * @function toObject
159949
+ * @memberof CreateStripeLocationIdResponse
159950
+ * @static
159951
+ * @param {CreateStripeLocationIdResponse} message CreateStripeLocationIdResponse
159952
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
159953
+ * @returns {Object.<string,*>} Plain object
159954
+ */
159955
+ CreateStripeLocationIdResponse.toObject = function toObject(message, options) {
159956
+ if (!options)
159957
+ options = {};
159958
+ var object = {};
159959
+ if (options.arrays || options.defaults)
159960
+ object.errors = [];
159961
+ if (options.defaults) {
159962
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
159963
+ object.locationId = "";
159964
+ }
159965
+ if (message.status != null && message.hasOwnProperty("status"))
159966
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
159967
+ if (message.errors && message.errors.length) {
159968
+ object.errors = [];
159969
+ for (var j = 0; j < message.errors.length; ++j)
159970
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
159971
+ }
159972
+ if (message.locationId != null && message.hasOwnProperty("locationId"))
159973
+ object.locationId = message.locationId;
159974
+ return object;
159975
+ };
159976
+
159977
+ /**
159978
+ * Converts this CreateStripeLocationIdResponse to JSON.
159979
+ * @function toJSON
159980
+ * @memberof CreateStripeLocationIdResponse
159981
+ * @instance
159982
+ * @returns {Object.<string,*>} JSON object
159983
+ */
159984
+ CreateStripeLocationIdResponse.prototype.toJSON = function toJSON() {
159985
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
159986
+ };
159987
+
159988
+ return CreateStripeLocationIdResponse;
159989
+ })();
159990
+
159991
+ $root.BillingAddress = (function() {
159992
+
159993
+ /**
159994
+ * Properties of a BillingAddress.
159995
+ * @exports IBillingAddress
159996
+ * @interface IBillingAddress
159997
+ * @property {string|null} [line1] BillingAddress line1
159998
+ * @property {string|null} [line2] BillingAddress line2
159999
+ * @property {string|null} [city] BillingAddress city
160000
+ * @property {string|null} [state] BillingAddress state
160001
+ * @property {number|null} [postalCode] BillingAddress postalCode
160002
+ * @property {string|null} [country] BillingAddress country
160003
+ */
160004
+
160005
+ /**
160006
+ * Constructs a new BillingAddress.
160007
+ * @exports BillingAddress
160008
+ * @classdesc Represents a BillingAddress.
160009
+ * @implements IBillingAddress
160010
+ * @constructor
160011
+ * @param {IBillingAddress=} [properties] Properties to set
160012
+ */
160013
+ function BillingAddress(properties) {
160014
+ if (properties)
160015
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
160016
+ if (properties[keys[i]] != null)
160017
+ this[keys[i]] = properties[keys[i]];
160018
+ }
160019
+
160020
+ /**
160021
+ * BillingAddress line1.
160022
+ * @member {string} line1
160023
+ * @memberof BillingAddress
160024
+ * @instance
160025
+ */
160026
+ BillingAddress.prototype.line1 = "";
160027
+
160028
+ /**
160029
+ * BillingAddress line2.
160030
+ * @member {string} line2
160031
+ * @memberof BillingAddress
160032
+ * @instance
160033
+ */
160034
+ BillingAddress.prototype.line2 = "";
160035
+
160036
+ /**
160037
+ * BillingAddress city.
160038
+ * @member {string} city
160039
+ * @memberof BillingAddress
160040
+ * @instance
160041
+ */
160042
+ BillingAddress.prototype.city = "";
160043
+
160044
+ /**
160045
+ * BillingAddress state.
160046
+ * @member {string} state
160047
+ * @memberof BillingAddress
160048
+ * @instance
160049
+ */
160050
+ BillingAddress.prototype.state = "";
160051
+
160052
+ /**
160053
+ * BillingAddress postalCode.
160054
+ * @member {number} postalCode
160055
+ * @memberof BillingAddress
160056
+ * @instance
160057
+ */
160058
+ BillingAddress.prototype.postalCode = 0;
160059
+
160060
+ /**
160061
+ * BillingAddress country.
160062
+ * @member {string} country
160063
+ * @memberof BillingAddress
160064
+ * @instance
160065
+ */
160066
+ BillingAddress.prototype.country = "";
160067
+
160068
+ /**
160069
+ * Creates a new BillingAddress instance using the specified properties.
160070
+ * @function create
160071
+ * @memberof BillingAddress
160072
+ * @static
160073
+ * @param {IBillingAddress=} [properties] Properties to set
160074
+ * @returns {BillingAddress} BillingAddress instance
160075
+ */
160076
+ BillingAddress.create = function create(properties) {
160077
+ return new BillingAddress(properties);
160078
+ };
160079
+
160080
+ /**
160081
+ * Encodes the specified BillingAddress message. Does not implicitly {@link BillingAddress.verify|verify} messages.
160082
+ * @function encode
160083
+ * @memberof BillingAddress
160084
+ * @static
160085
+ * @param {IBillingAddress} message BillingAddress message or plain object to encode
160086
+ * @param {$protobuf.Writer} [writer] Writer to encode to
160087
+ * @returns {$protobuf.Writer} Writer
160088
+ */
160089
+ BillingAddress.encode = function encode(message, writer) {
160090
+ if (!writer)
160091
+ writer = $Writer.create();
160092
+ if (message.line1 != null && Object.hasOwnProperty.call(message, "line1"))
160093
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.line1);
160094
+ if (message.line2 != null && Object.hasOwnProperty.call(message, "line2"))
160095
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.line2);
160096
+ if (message.city != null && Object.hasOwnProperty.call(message, "city"))
160097
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.city);
160098
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
160099
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.state);
160100
+ if (message.postalCode != null && Object.hasOwnProperty.call(message, "postalCode"))
160101
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.postalCode);
160102
+ if (message.country != null && Object.hasOwnProperty.call(message, "country"))
160103
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.country);
160104
+ return writer;
160105
+ };
160106
+
160107
+ /**
160108
+ * Encodes the specified BillingAddress message, length delimited. Does not implicitly {@link BillingAddress.verify|verify} messages.
160109
+ * @function encodeDelimited
160110
+ * @memberof BillingAddress
160111
+ * @static
160112
+ * @param {IBillingAddress} message BillingAddress message or plain object to encode
160113
+ * @param {$protobuf.Writer} [writer] Writer to encode to
160114
+ * @returns {$protobuf.Writer} Writer
160115
+ */
160116
+ BillingAddress.encodeDelimited = function encodeDelimited(message, writer) {
160117
+ return this.encode(message, writer).ldelim();
160118
+ };
160119
+
160120
+ /**
160121
+ * Decodes a BillingAddress message from the specified reader or buffer.
160122
+ * @function decode
160123
+ * @memberof BillingAddress
160124
+ * @static
160125
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160126
+ * @param {number} [length] Message length if known beforehand
160127
+ * @returns {BillingAddress} BillingAddress
160128
+ * @throws {Error} If the payload is not a reader or valid buffer
160129
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
160130
+ */
160131
+ BillingAddress.decode = function decode(reader, length) {
160132
+ if (!(reader instanceof $Reader))
160133
+ reader = $Reader.create(reader);
160134
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BillingAddress();
160135
+ while (reader.pos < end) {
160136
+ var tag = reader.uint32();
160137
+ switch (tag >>> 3) {
160138
+ case 0:
160139
+ message.line1 = reader.string();
160140
+ break;
160141
+ case 1:
160142
+ message.line2 = reader.string();
160143
+ break;
160144
+ case 2:
160145
+ message.city = reader.string();
160146
+ break;
160147
+ case 3:
160148
+ message.state = reader.string();
160149
+ break;
160150
+ case 4:
160151
+ message.postalCode = reader.int32();
160152
+ break;
160153
+ case 5:
160154
+ message.country = reader.string();
160155
+ break;
160156
+ default:
160157
+ reader.skipType(tag & 7);
160158
+ break;
160159
+ }
160160
+ }
160161
+ return message;
160162
+ };
160163
+
160164
+ /**
160165
+ * Decodes a BillingAddress message from the specified reader or buffer, length delimited.
160166
+ * @function decodeDelimited
160167
+ * @memberof BillingAddress
160168
+ * @static
160169
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160170
+ * @returns {BillingAddress} BillingAddress
160171
+ * @throws {Error} If the payload is not a reader or valid buffer
160172
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
160173
+ */
160174
+ BillingAddress.decodeDelimited = function decodeDelimited(reader) {
160175
+ if (!(reader instanceof $Reader))
160176
+ reader = new $Reader(reader);
160177
+ return this.decode(reader, reader.uint32());
160178
+ };
160179
+
160180
+ /**
160181
+ * Verifies a BillingAddress message.
160182
+ * @function verify
160183
+ * @memberof BillingAddress
160184
+ * @static
160185
+ * @param {Object.<string,*>} message Plain object to verify
160186
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
160187
+ */
160188
+ BillingAddress.verify = function verify(message) {
160189
+ if (typeof message !== "object" || message === null)
160190
+ return "object expected";
160191
+ if (message.line1 != null && message.hasOwnProperty("line1"))
160192
+ if (!$util.isString(message.line1))
160193
+ return "line1: string expected";
160194
+ if (message.line2 != null && message.hasOwnProperty("line2"))
160195
+ if (!$util.isString(message.line2))
160196
+ return "line2: string expected";
160197
+ if (message.city != null && message.hasOwnProperty("city"))
160198
+ if (!$util.isString(message.city))
160199
+ return "city: string expected";
160200
+ if (message.state != null && message.hasOwnProperty("state"))
160201
+ if (!$util.isString(message.state))
160202
+ return "state: string expected";
160203
+ if (message.postalCode != null && message.hasOwnProperty("postalCode"))
160204
+ if (!$util.isInteger(message.postalCode))
160205
+ return "postalCode: integer expected";
160206
+ if (message.country != null && message.hasOwnProperty("country"))
160207
+ if (!$util.isString(message.country))
160208
+ return "country: string expected";
160209
+ return null;
160210
+ };
160211
+
160212
+ /**
160213
+ * Creates a BillingAddress message from a plain object. Also converts values to their respective internal types.
160214
+ * @function fromObject
160215
+ * @memberof BillingAddress
160216
+ * @static
160217
+ * @param {Object.<string,*>} object Plain object
160218
+ * @returns {BillingAddress} BillingAddress
160219
+ */
160220
+ BillingAddress.fromObject = function fromObject(object) {
160221
+ if (object instanceof $root.BillingAddress)
160222
+ return object;
160223
+ var message = new $root.BillingAddress();
160224
+ if (object.line1 != null)
160225
+ message.line1 = String(object.line1);
160226
+ if (object.line2 != null)
160227
+ message.line2 = String(object.line2);
160228
+ if (object.city != null)
160229
+ message.city = String(object.city);
160230
+ if (object.state != null)
160231
+ message.state = String(object.state);
160232
+ if (object.postalCode != null)
160233
+ message.postalCode = object.postalCode | 0;
160234
+ if (object.country != null)
160235
+ message.country = String(object.country);
160236
+ return message;
160237
+ };
160238
+
160239
+ /**
160240
+ * Creates a plain object from a BillingAddress message. Also converts values to other types if specified.
160241
+ * @function toObject
160242
+ * @memberof BillingAddress
160243
+ * @static
160244
+ * @param {BillingAddress} message BillingAddress
160245
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
160246
+ * @returns {Object.<string,*>} Plain object
160247
+ */
160248
+ BillingAddress.toObject = function toObject(message, options) {
160249
+ if (!options)
160250
+ options = {};
160251
+ var object = {};
160252
+ if (options.defaults) {
160253
+ object.line1 = "";
160254
+ object.line2 = "";
160255
+ object.city = "";
160256
+ object.state = "";
160257
+ object.postalCode = 0;
160258
+ object.country = "";
160259
+ }
160260
+ if (message.line1 != null && message.hasOwnProperty("line1"))
160261
+ object.line1 = message.line1;
160262
+ if (message.line2 != null && message.hasOwnProperty("line2"))
160263
+ object.line2 = message.line2;
160264
+ if (message.city != null && message.hasOwnProperty("city"))
160265
+ object.city = message.city;
160266
+ if (message.state != null && message.hasOwnProperty("state"))
160267
+ object.state = message.state;
160268
+ if (message.postalCode != null && message.hasOwnProperty("postalCode"))
160269
+ object.postalCode = message.postalCode;
160270
+ if (message.country != null && message.hasOwnProperty("country"))
160271
+ object.country = message.country;
160272
+ return object;
160273
+ };
160274
+
160275
+ /**
160276
+ * Converts this BillingAddress to JSON.
160277
+ * @function toJSON
160278
+ * @memberof BillingAddress
160279
+ * @instance
160280
+ * @returns {Object.<string,*>} JSON object
160281
+ */
160282
+ BillingAddress.prototype.toJSON = function toJSON() {
160283
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
160284
+ };
160285
+
160286
+ return BillingAddress;
160287
+ })();
160288
+
160289
+ $root.ResetStripeConnectionRequest = (function() {
160290
+
160291
+ /**
160292
+ * Properties of a ResetStripeConnectionRequest.
160293
+ * @exports IResetStripeConnectionRequest
160294
+ * @interface IResetStripeConnectionRequest
160295
+ * @property {string|null} [spanContext] ResetStripeConnectionRequest spanContext
160296
+ * @property {string|null} [orgId] ResetStripeConnectionRequest orgId
160297
+ */
160298
+
160299
+ /**
160300
+ * Constructs a new ResetStripeConnectionRequest.
160301
+ * @exports ResetStripeConnectionRequest
160302
+ * @classdesc Represents a ResetStripeConnectionRequest.
160303
+ * @implements IResetStripeConnectionRequest
160304
+ * @constructor
160305
+ * @param {IResetStripeConnectionRequest=} [properties] Properties to set
160306
+ */
160307
+ function ResetStripeConnectionRequest(properties) {
160308
+ if (properties)
160309
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
160310
+ if (properties[keys[i]] != null)
160311
+ this[keys[i]] = properties[keys[i]];
160312
+ }
160313
+
160314
+ /**
160315
+ * ResetStripeConnectionRequest spanContext.
160316
+ * @member {string} spanContext
160317
+ * @memberof ResetStripeConnectionRequest
160318
+ * @instance
160319
+ */
160320
+ ResetStripeConnectionRequest.prototype.spanContext = "";
160321
+
160322
+ /**
160323
+ * ResetStripeConnectionRequest orgId.
160324
+ * @member {string} orgId
160325
+ * @memberof ResetStripeConnectionRequest
160326
+ * @instance
160327
+ */
160328
+ ResetStripeConnectionRequest.prototype.orgId = "";
160329
+
160330
+ /**
160331
+ * Creates a new ResetStripeConnectionRequest instance using the specified properties.
160332
+ * @function create
160333
+ * @memberof ResetStripeConnectionRequest
160334
+ * @static
160335
+ * @param {IResetStripeConnectionRequest=} [properties] Properties to set
160336
+ * @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest instance
160337
+ */
160338
+ ResetStripeConnectionRequest.create = function create(properties) {
160339
+ return new ResetStripeConnectionRequest(properties);
160340
+ };
160341
+
160342
+ /**
160343
+ * Encodes the specified ResetStripeConnectionRequest message. Does not implicitly {@link ResetStripeConnectionRequest.verify|verify} messages.
160344
+ * @function encode
160345
+ * @memberof ResetStripeConnectionRequest
160346
+ * @static
160347
+ * @param {IResetStripeConnectionRequest} message ResetStripeConnectionRequest message or plain object to encode
160348
+ * @param {$protobuf.Writer} [writer] Writer to encode to
160349
+ * @returns {$protobuf.Writer} Writer
160350
+ */
160351
+ ResetStripeConnectionRequest.encode = function encode(message, writer) {
160352
+ if (!writer)
160353
+ writer = $Writer.create();
160354
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
160355
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
160356
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
160357
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
160358
+ return writer;
160359
+ };
160360
+
160361
+ /**
160362
+ * Encodes the specified ResetStripeConnectionRequest message, length delimited. Does not implicitly {@link ResetStripeConnectionRequest.verify|verify} messages.
160363
+ * @function encodeDelimited
160364
+ * @memberof ResetStripeConnectionRequest
160365
+ * @static
160366
+ * @param {IResetStripeConnectionRequest} message ResetStripeConnectionRequest message or plain object to encode
160367
+ * @param {$protobuf.Writer} [writer] Writer to encode to
160368
+ * @returns {$protobuf.Writer} Writer
160369
+ */
160370
+ ResetStripeConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
160371
+ return this.encode(message, writer).ldelim();
160372
+ };
160373
+
160374
+ /**
160375
+ * Decodes a ResetStripeConnectionRequest message from the specified reader or buffer.
160376
+ * @function decode
160377
+ * @memberof ResetStripeConnectionRequest
160378
+ * @static
160379
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160380
+ * @param {number} [length] Message length if known beforehand
160381
+ * @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest
160382
+ * @throws {Error} If the payload is not a reader or valid buffer
160383
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
160384
+ */
160385
+ ResetStripeConnectionRequest.decode = function decode(reader, length) {
160386
+ if (!(reader instanceof $Reader))
160387
+ reader = $Reader.create(reader);
160388
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ResetStripeConnectionRequest();
160389
+ while (reader.pos < end) {
160390
+ var tag = reader.uint32();
160391
+ switch (tag >>> 3) {
160392
+ case 0:
160393
+ message.spanContext = reader.string();
160394
+ break;
160395
+ case 1:
160396
+ message.orgId = reader.string();
160397
+ break;
160398
+ default:
160399
+ reader.skipType(tag & 7);
160400
+ break;
160401
+ }
160402
+ }
160403
+ return message;
160404
+ };
160405
+
160406
+ /**
160407
+ * Decodes a ResetStripeConnectionRequest message from the specified reader or buffer, length delimited.
160408
+ * @function decodeDelimited
160409
+ * @memberof ResetStripeConnectionRequest
160410
+ * @static
160411
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160412
+ * @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest
160413
+ * @throws {Error} If the payload is not a reader or valid buffer
160414
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
160415
+ */
160416
+ ResetStripeConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
160417
+ if (!(reader instanceof $Reader))
160418
+ reader = new $Reader(reader);
160419
+ return this.decode(reader, reader.uint32());
160420
+ };
160421
+
160422
+ /**
160423
+ * Verifies a ResetStripeConnectionRequest message.
160424
+ * @function verify
160425
+ * @memberof ResetStripeConnectionRequest
160426
+ * @static
160427
+ * @param {Object.<string,*>} message Plain object to verify
160428
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
160429
+ */
160430
+ ResetStripeConnectionRequest.verify = function verify(message) {
160431
+ if (typeof message !== "object" || message === null)
160432
+ return "object expected";
160433
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
160434
+ if (!$util.isString(message.spanContext))
160435
+ return "spanContext: string expected";
160436
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
160437
+ if (!$util.isString(message.orgId))
160438
+ return "orgId: string expected";
160439
+ return null;
160440
+ };
160441
+
160442
+ /**
160443
+ * Creates a ResetStripeConnectionRequest message from a plain object. Also converts values to their respective internal types.
160444
+ * @function fromObject
160445
+ * @memberof ResetStripeConnectionRequest
160446
+ * @static
160447
+ * @param {Object.<string,*>} object Plain object
160448
+ * @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest
160449
+ */
160450
+ ResetStripeConnectionRequest.fromObject = function fromObject(object) {
160451
+ if (object instanceof $root.ResetStripeConnectionRequest)
160452
+ return object;
160453
+ var message = new $root.ResetStripeConnectionRequest();
160454
+ if (object.spanContext != null)
160455
+ message.spanContext = String(object.spanContext);
160456
+ if (object.orgId != null)
160457
+ message.orgId = String(object.orgId);
160458
+ return message;
160459
+ };
160460
+
160461
+ /**
160462
+ * Creates a plain object from a ResetStripeConnectionRequest message. Also converts values to other types if specified.
160463
+ * @function toObject
160464
+ * @memberof ResetStripeConnectionRequest
160465
+ * @static
160466
+ * @param {ResetStripeConnectionRequest} message ResetStripeConnectionRequest
160467
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
160468
+ * @returns {Object.<string,*>} Plain object
160469
+ */
160470
+ ResetStripeConnectionRequest.toObject = function toObject(message, options) {
160471
+ if (!options)
160472
+ options = {};
160473
+ var object = {};
160474
+ if (options.defaults) {
160475
+ object.spanContext = "";
160476
+ object.orgId = "";
160477
+ }
160478
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
160479
+ object.spanContext = message.spanContext;
160480
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
160481
+ object.orgId = message.orgId;
160482
+ return object;
160483
+ };
160484
+
160485
+ /**
160486
+ * Converts this ResetStripeConnectionRequest to JSON.
160487
+ * @function toJSON
160488
+ * @memberof ResetStripeConnectionRequest
160489
+ * @instance
160490
+ * @returns {Object.<string,*>} JSON object
160491
+ */
160492
+ ResetStripeConnectionRequest.prototype.toJSON = function toJSON() {
160493
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
160494
+ };
160495
+
160496
+ return ResetStripeConnectionRequest;
160497
+ })();
160498
+
160499
+ $root.ResetStripeConnectionResponse = (function() {
160500
+
160501
+ /**
160502
+ * Properties of a ResetStripeConnectionResponse.
160503
+ * @exports IResetStripeConnectionResponse
160504
+ * @interface IResetStripeConnectionResponse
160505
+ * @property {StatusCode|null} [status] ResetStripeConnectionResponse status
160506
+ * @property {Array.<IError>|null} [errors] ResetStripeConnectionResponse errors
160507
+ */
160508
+
160509
+ /**
160510
+ * Constructs a new ResetStripeConnectionResponse.
160511
+ * @exports ResetStripeConnectionResponse
160512
+ * @classdesc Represents a ResetStripeConnectionResponse.
160513
+ * @implements IResetStripeConnectionResponse
160514
+ * @constructor
160515
+ * @param {IResetStripeConnectionResponse=} [properties] Properties to set
160516
+ */
160517
+ function ResetStripeConnectionResponse(properties) {
160518
+ this.errors = [];
160519
+ if (properties)
160520
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
160521
+ if (properties[keys[i]] != null)
160522
+ this[keys[i]] = properties[keys[i]];
160523
+ }
160524
+
160525
+ /**
160526
+ * ResetStripeConnectionResponse status.
160527
+ * @member {StatusCode} status
160528
+ * @memberof ResetStripeConnectionResponse
160529
+ * @instance
160530
+ */
160531
+ ResetStripeConnectionResponse.prototype.status = 0;
160532
+
160533
+ /**
160534
+ * ResetStripeConnectionResponse errors.
160535
+ * @member {Array.<IError>} errors
160536
+ * @memberof ResetStripeConnectionResponse
160537
+ * @instance
160538
+ */
160539
+ ResetStripeConnectionResponse.prototype.errors = $util.emptyArray;
160540
+
160541
+ /**
160542
+ * Creates a new ResetStripeConnectionResponse instance using the specified properties.
160543
+ * @function create
160544
+ * @memberof ResetStripeConnectionResponse
160545
+ * @static
160546
+ * @param {IResetStripeConnectionResponse=} [properties] Properties to set
160547
+ * @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse instance
160548
+ */
160549
+ ResetStripeConnectionResponse.create = function create(properties) {
160550
+ return new ResetStripeConnectionResponse(properties);
160551
+ };
160552
+
160553
+ /**
160554
+ * Encodes the specified ResetStripeConnectionResponse message. Does not implicitly {@link ResetStripeConnectionResponse.verify|verify} messages.
160555
+ * @function encode
160556
+ * @memberof ResetStripeConnectionResponse
160557
+ * @static
160558
+ * @param {IResetStripeConnectionResponse} message ResetStripeConnectionResponse message or plain object to encode
160559
+ * @param {$protobuf.Writer} [writer] Writer to encode to
160560
+ * @returns {$protobuf.Writer} Writer
160561
+ */
160562
+ ResetStripeConnectionResponse.encode = function encode(message, writer) {
160563
+ if (!writer)
160564
+ writer = $Writer.create();
160565
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
160566
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
160567
+ if (message.errors != null && message.errors.length)
160568
+ for (var i = 0; i < message.errors.length; ++i)
160569
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
160570
+ return writer;
160571
+ };
160572
+
160573
+ /**
160574
+ * Encodes the specified ResetStripeConnectionResponse message, length delimited. Does not implicitly {@link ResetStripeConnectionResponse.verify|verify} messages.
160575
+ * @function encodeDelimited
160576
+ * @memberof ResetStripeConnectionResponse
160577
+ * @static
160578
+ * @param {IResetStripeConnectionResponse} message ResetStripeConnectionResponse message or plain object to encode
160579
+ * @param {$protobuf.Writer} [writer] Writer to encode to
160580
+ * @returns {$protobuf.Writer} Writer
160581
+ */
160582
+ ResetStripeConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) {
160583
+ return this.encode(message, writer).ldelim();
160584
+ };
160585
+
160586
+ /**
160587
+ * Decodes a ResetStripeConnectionResponse message from the specified reader or buffer.
160588
+ * @function decode
160589
+ * @memberof ResetStripeConnectionResponse
160590
+ * @static
160591
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160592
+ * @param {number} [length] Message length if known beforehand
160593
+ * @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse
160594
+ * @throws {Error} If the payload is not a reader or valid buffer
160595
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
160596
+ */
160597
+ ResetStripeConnectionResponse.decode = function decode(reader, length) {
160598
+ if (!(reader instanceof $Reader))
160599
+ reader = $Reader.create(reader);
160600
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ResetStripeConnectionResponse();
160601
+ while (reader.pos < end) {
160602
+ var tag = reader.uint32();
160603
+ switch (tag >>> 3) {
160604
+ case 0:
160605
+ message.status = reader.int32();
160606
+ break;
160607
+ case 1:
160608
+ if (!(message.errors && message.errors.length))
160609
+ message.errors = [];
160610
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
160611
+ break;
160612
+ default:
160613
+ reader.skipType(tag & 7);
160614
+ break;
160615
+ }
160616
+ }
160617
+ return message;
160618
+ };
160619
+
160620
+ /**
160621
+ * Decodes a ResetStripeConnectionResponse message from the specified reader or buffer, length delimited.
160622
+ * @function decodeDelimited
160623
+ * @memberof ResetStripeConnectionResponse
160624
+ * @static
160625
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160626
+ * @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse
160627
+ * @throws {Error} If the payload is not a reader or valid buffer
160628
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
160629
+ */
160630
+ ResetStripeConnectionResponse.decodeDelimited = function decodeDelimited(reader) {
160631
+ if (!(reader instanceof $Reader))
160632
+ reader = new $Reader(reader);
160633
+ return this.decode(reader, reader.uint32());
160634
+ };
160635
+
160636
+ /**
160637
+ * Verifies a ResetStripeConnectionResponse message.
160638
+ * @function verify
160639
+ * @memberof ResetStripeConnectionResponse
160640
+ * @static
160641
+ * @param {Object.<string,*>} message Plain object to verify
160642
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
160643
+ */
160644
+ ResetStripeConnectionResponse.verify = function verify(message) {
160645
+ if (typeof message !== "object" || message === null)
160646
+ return "object expected";
160647
+ if (message.status != null && message.hasOwnProperty("status"))
160648
+ switch (message.status) {
160649
+ default:
160650
+ return "status: enum value expected";
160651
+ case 0:
160652
+ case 200:
160653
+ case 400:
160654
+ case 401:
160655
+ case 403:
160656
+ case 422:
160657
+ case 404:
160658
+ case 500:
160659
+ case 504:
160660
+ break;
160661
+ }
160662
+ if (message.errors != null && message.hasOwnProperty("errors")) {
160663
+ if (!Array.isArray(message.errors))
160664
+ return "errors: array expected";
160665
+ for (var i = 0; i < message.errors.length; ++i) {
160666
+ var error = $root.Error.verify(message.errors[i]);
160667
+ if (error)
160668
+ return "errors." + error;
160669
+ }
160670
+ }
160671
+ return null;
160672
+ };
160673
+
160674
+ /**
160675
+ * Creates a ResetStripeConnectionResponse message from a plain object. Also converts values to their respective internal types.
160676
+ * @function fromObject
160677
+ * @memberof ResetStripeConnectionResponse
160678
+ * @static
160679
+ * @param {Object.<string,*>} object Plain object
160680
+ * @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse
160681
+ */
160682
+ ResetStripeConnectionResponse.fromObject = function fromObject(object) {
160683
+ if (object instanceof $root.ResetStripeConnectionResponse)
160684
+ return object;
160685
+ var message = new $root.ResetStripeConnectionResponse();
160686
+ switch (object.status) {
160687
+ case "UNKNOWN_CODE":
160688
+ case 0:
160689
+ message.status = 0;
160690
+ break;
160691
+ case "OK":
160692
+ case 200:
160693
+ message.status = 200;
160694
+ break;
160695
+ case "BAD_REQUEST":
160696
+ case 400:
160697
+ message.status = 400;
160698
+ break;
160699
+ case "UNAUTHORIZED":
160700
+ case 401:
160701
+ message.status = 401;
160702
+ break;
160703
+ case "FORBIDDEN":
160704
+ case 403:
160705
+ message.status = 403;
160706
+ break;
160707
+ case "UNPROCESSABLE_ENTITY":
160708
+ case 422:
160709
+ message.status = 422;
160710
+ break;
160711
+ case "NOT_FOUND":
160712
+ case 404:
160713
+ message.status = 404;
160714
+ break;
160715
+ case "INTERNAL_SERVER_ERROR":
160716
+ case 500:
160717
+ message.status = 500;
160718
+ break;
160719
+ case "GATEWAY_TIMEOUT":
160720
+ case 504:
160721
+ message.status = 504;
160722
+ break;
160723
+ }
160724
+ if (object.errors) {
160725
+ if (!Array.isArray(object.errors))
160726
+ throw TypeError(".ResetStripeConnectionResponse.errors: array expected");
158768
160727
  message.errors = [];
158769
160728
  for (var i = 0; i < object.errors.length; ++i) {
158770
160729
  if (typeof object.errors[i] !== "object")
158771
- throw TypeError(".CreateStripeLocationIdResponse.errors: object expected");
160730
+ throw TypeError(".ResetStripeConnectionResponse.errors: object expected");
158772
160731
  message.errors[i] = $root.Error.fromObject(object.errors[i]);
158773
160732
  }
158774
160733
  }
158775
- if (object.locationId != null)
158776
- message.locationId = String(object.locationId);
158777
160734
  return message;
158778
160735
  };
158779
160736
 
158780
160737
  /**
158781
- * Creates a plain object from a CreateStripeLocationIdResponse message. Also converts values to other types if specified.
160738
+ * Creates a plain object from a ResetStripeConnectionResponse message. Also converts values to other types if specified.
158782
160739
  * @function toObject
158783
- * @memberof CreateStripeLocationIdResponse
160740
+ * @memberof ResetStripeConnectionResponse
158784
160741
  * @static
158785
- * @param {CreateStripeLocationIdResponse} message CreateStripeLocationIdResponse
160742
+ * @param {ResetStripeConnectionResponse} message ResetStripeConnectionResponse
158786
160743
  * @param {$protobuf.IConversionOptions} [options] Conversion options
158787
160744
  * @returns {Object.<string,*>} Plain object
158788
160745
  */
158789
- CreateStripeLocationIdResponse.toObject = function toObject(message, options) {
160746
+ ResetStripeConnectionResponse.toObject = function toObject(message, options) {
158790
160747
  if (!options)
158791
160748
  options = {};
158792
160749
  var object = {};
158793
160750
  if (options.arrays || options.defaults)
158794
160751
  object.errors = [];
158795
- if (options.defaults) {
160752
+ if (options.defaults)
158796
160753
  object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
158797
- object.locationId = "";
158798
- }
158799
160754
  if (message.status != null && message.hasOwnProperty("status"))
158800
160755
  object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
158801
160756
  if (message.errors && message.errors.length) {
@@ -158803,321 +160758,21 @@ $root.CreateStripeLocationIdResponse = (function() {
158803
160758
  for (var j = 0; j < message.errors.length; ++j)
158804
160759
  object.errors[j] = $root.Error.toObject(message.errors[j], options);
158805
160760
  }
158806
- if (message.locationId != null && message.hasOwnProperty("locationId"))
158807
- object.locationId = message.locationId;
158808
160761
  return object;
158809
160762
  };
158810
160763
 
158811
160764
  /**
158812
- * Converts this CreateStripeLocationIdResponse to JSON.
160765
+ * Converts this ResetStripeConnectionResponse to JSON.
158813
160766
  * @function toJSON
158814
- * @memberof CreateStripeLocationIdResponse
160767
+ * @memberof ResetStripeConnectionResponse
158815
160768
  * @instance
158816
160769
  * @returns {Object.<string,*>} JSON object
158817
160770
  */
158818
- CreateStripeLocationIdResponse.prototype.toJSON = function toJSON() {
160771
+ ResetStripeConnectionResponse.prototype.toJSON = function toJSON() {
158819
160772
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
158820
160773
  };
158821
160774
 
158822
- return CreateStripeLocationIdResponse;
158823
- })();
158824
-
158825
- $root.BillingAddress = (function() {
158826
-
158827
- /**
158828
- * Properties of a BillingAddress.
158829
- * @exports IBillingAddress
158830
- * @interface IBillingAddress
158831
- * @property {string|null} [line1] BillingAddress line1
158832
- * @property {string|null} [line2] BillingAddress line2
158833
- * @property {string|null} [city] BillingAddress city
158834
- * @property {string|null} [state] BillingAddress state
158835
- * @property {number|null} [postalCode] BillingAddress postalCode
158836
- * @property {string|null} [country] BillingAddress country
158837
- */
158838
-
158839
- /**
158840
- * Constructs a new BillingAddress.
158841
- * @exports BillingAddress
158842
- * @classdesc Represents a BillingAddress.
158843
- * @implements IBillingAddress
158844
- * @constructor
158845
- * @param {IBillingAddress=} [properties] Properties to set
158846
- */
158847
- function BillingAddress(properties) {
158848
- if (properties)
158849
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
158850
- if (properties[keys[i]] != null)
158851
- this[keys[i]] = properties[keys[i]];
158852
- }
158853
-
158854
- /**
158855
- * BillingAddress line1.
158856
- * @member {string} line1
158857
- * @memberof BillingAddress
158858
- * @instance
158859
- */
158860
- BillingAddress.prototype.line1 = "";
158861
-
158862
- /**
158863
- * BillingAddress line2.
158864
- * @member {string} line2
158865
- * @memberof BillingAddress
158866
- * @instance
158867
- */
158868
- BillingAddress.prototype.line2 = "";
158869
-
158870
- /**
158871
- * BillingAddress city.
158872
- * @member {string} city
158873
- * @memberof BillingAddress
158874
- * @instance
158875
- */
158876
- BillingAddress.prototype.city = "";
158877
-
158878
- /**
158879
- * BillingAddress state.
158880
- * @member {string} state
158881
- * @memberof BillingAddress
158882
- * @instance
158883
- */
158884
- BillingAddress.prototype.state = "";
158885
-
158886
- /**
158887
- * BillingAddress postalCode.
158888
- * @member {number} postalCode
158889
- * @memberof BillingAddress
158890
- * @instance
158891
- */
158892
- BillingAddress.prototype.postalCode = 0;
158893
-
158894
- /**
158895
- * BillingAddress country.
158896
- * @member {string} country
158897
- * @memberof BillingAddress
158898
- * @instance
158899
- */
158900
- BillingAddress.prototype.country = "";
158901
-
158902
- /**
158903
- * Creates a new BillingAddress instance using the specified properties.
158904
- * @function create
158905
- * @memberof BillingAddress
158906
- * @static
158907
- * @param {IBillingAddress=} [properties] Properties to set
158908
- * @returns {BillingAddress} BillingAddress instance
158909
- */
158910
- BillingAddress.create = function create(properties) {
158911
- return new BillingAddress(properties);
158912
- };
158913
-
158914
- /**
158915
- * Encodes the specified BillingAddress message. Does not implicitly {@link BillingAddress.verify|verify} messages.
158916
- * @function encode
158917
- * @memberof BillingAddress
158918
- * @static
158919
- * @param {IBillingAddress} message BillingAddress message or plain object to encode
158920
- * @param {$protobuf.Writer} [writer] Writer to encode to
158921
- * @returns {$protobuf.Writer} Writer
158922
- */
158923
- BillingAddress.encode = function encode(message, writer) {
158924
- if (!writer)
158925
- writer = $Writer.create();
158926
- if (message.line1 != null && Object.hasOwnProperty.call(message, "line1"))
158927
- writer.uint32(/* id 0, wireType 2 =*/2).string(message.line1);
158928
- if (message.line2 != null && Object.hasOwnProperty.call(message, "line2"))
158929
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.line2);
158930
- if (message.city != null && Object.hasOwnProperty.call(message, "city"))
158931
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.city);
158932
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
158933
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.state);
158934
- if (message.postalCode != null && Object.hasOwnProperty.call(message, "postalCode"))
158935
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.postalCode);
158936
- if (message.country != null && Object.hasOwnProperty.call(message, "country"))
158937
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.country);
158938
- return writer;
158939
- };
158940
-
158941
- /**
158942
- * Encodes the specified BillingAddress message, length delimited. Does not implicitly {@link BillingAddress.verify|verify} messages.
158943
- * @function encodeDelimited
158944
- * @memberof BillingAddress
158945
- * @static
158946
- * @param {IBillingAddress} message BillingAddress message or plain object to encode
158947
- * @param {$protobuf.Writer} [writer] Writer to encode to
158948
- * @returns {$protobuf.Writer} Writer
158949
- */
158950
- BillingAddress.encodeDelimited = function encodeDelimited(message, writer) {
158951
- return this.encode(message, writer).ldelim();
158952
- };
158953
-
158954
- /**
158955
- * Decodes a BillingAddress message from the specified reader or buffer.
158956
- * @function decode
158957
- * @memberof BillingAddress
158958
- * @static
158959
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
158960
- * @param {number} [length] Message length if known beforehand
158961
- * @returns {BillingAddress} BillingAddress
158962
- * @throws {Error} If the payload is not a reader or valid buffer
158963
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
158964
- */
158965
- BillingAddress.decode = function decode(reader, length) {
158966
- if (!(reader instanceof $Reader))
158967
- reader = $Reader.create(reader);
158968
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BillingAddress();
158969
- while (reader.pos < end) {
158970
- var tag = reader.uint32();
158971
- switch (tag >>> 3) {
158972
- case 0:
158973
- message.line1 = reader.string();
158974
- break;
158975
- case 1:
158976
- message.line2 = reader.string();
158977
- break;
158978
- case 2:
158979
- message.city = reader.string();
158980
- break;
158981
- case 3:
158982
- message.state = reader.string();
158983
- break;
158984
- case 4:
158985
- message.postalCode = reader.int32();
158986
- break;
158987
- case 5:
158988
- message.country = reader.string();
158989
- break;
158990
- default:
158991
- reader.skipType(tag & 7);
158992
- break;
158993
- }
158994
- }
158995
- return message;
158996
- };
158997
-
158998
- /**
158999
- * Decodes a BillingAddress message from the specified reader or buffer, length delimited.
159000
- * @function decodeDelimited
159001
- * @memberof BillingAddress
159002
- * @static
159003
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
159004
- * @returns {BillingAddress} BillingAddress
159005
- * @throws {Error} If the payload is not a reader or valid buffer
159006
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
159007
- */
159008
- BillingAddress.decodeDelimited = function decodeDelimited(reader) {
159009
- if (!(reader instanceof $Reader))
159010
- reader = new $Reader(reader);
159011
- return this.decode(reader, reader.uint32());
159012
- };
159013
-
159014
- /**
159015
- * Verifies a BillingAddress message.
159016
- * @function verify
159017
- * @memberof BillingAddress
159018
- * @static
159019
- * @param {Object.<string,*>} message Plain object to verify
159020
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
159021
- */
159022
- BillingAddress.verify = function verify(message) {
159023
- if (typeof message !== "object" || message === null)
159024
- return "object expected";
159025
- if (message.line1 != null && message.hasOwnProperty("line1"))
159026
- if (!$util.isString(message.line1))
159027
- return "line1: string expected";
159028
- if (message.line2 != null && message.hasOwnProperty("line2"))
159029
- if (!$util.isString(message.line2))
159030
- return "line2: string expected";
159031
- if (message.city != null && message.hasOwnProperty("city"))
159032
- if (!$util.isString(message.city))
159033
- return "city: string expected";
159034
- if (message.state != null && message.hasOwnProperty("state"))
159035
- if (!$util.isString(message.state))
159036
- return "state: string expected";
159037
- if (message.postalCode != null && message.hasOwnProperty("postalCode"))
159038
- if (!$util.isInteger(message.postalCode))
159039
- return "postalCode: integer expected";
159040
- if (message.country != null && message.hasOwnProperty("country"))
159041
- if (!$util.isString(message.country))
159042
- return "country: string expected";
159043
- return null;
159044
- };
159045
-
159046
- /**
159047
- * Creates a BillingAddress message from a plain object. Also converts values to their respective internal types.
159048
- * @function fromObject
159049
- * @memberof BillingAddress
159050
- * @static
159051
- * @param {Object.<string,*>} object Plain object
159052
- * @returns {BillingAddress} BillingAddress
159053
- */
159054
- BillingAddress.fromObject = function fromObject(object) {
159055
- if (object instanceof $root.BillingAddress)
159056
- return object;
159057
- var message = new $root.BillingAddress();
159058
- if (object.line1 != null)
159059
- message.line1 = String(object.line1);
159060
- if (object.line2 != null)
159061
- message.line2 = String(object.line2);
159062
- if (object.city != null)
159063
- message.city = String(object.city);
159064
- if (object.state != null)
159065
- message.state = String(object.state);
159066
- if (object.postalCode != null)
159067
- message.postalCode = object.postalCode | 0;
159068
- if (object.country != null)
159069
- message.country = String(object.country);
159070
- return message;
159071
- };
159072
-
159073
- /**
159074
- * Creates a plain object from a BillingAddress message. Also converts values to other types if specified.
159075
- * @function toObject
159076
- * @memberof BillingAddress
159077
- * @static
159078
- * @param {BillingAddress} message BillingAddress
159079
- * @param {$protobuf.IConversionOptions} [options] Conversion options
159080
- * @returns {Object.<string,*>} Plain object
159081
- */
159082
- BillingAddress.toObject = function toObject(message, options) {
159083
- if (!options)
159084
- options = {};
159085
- var object = {};
159086
- if (options.defaults) {
159087
- object.line1 = "";
159088
- object.line2 = "";
159089
- object.city = "";
159090
- object.state = "";
159091
- object.postalCode = 0;
159092
- object.country = "";
159093
- }
159094
- if (message.line1 != null && message.hasOwnProperty("line1"))
159095
- object.line1 = message.line1;
159096
- if (message.line2 != null && message.hasOwnProperty("line2"))
159097
- object.line2 = message.line2;
159098
- if (message.city != null && message.hasOwnProperty("city"))
159099
- object.city = message.city;
159100
- if (message.state != null && message.hasOwnProperty("state"))
159101
- object.state = message.state;
159102
- if (message.postalCode != null && message.hasOwnProperty("postalCode"))
159103
- object.postalCode = message.postalCode;
159104
- if (message.country != null && message.hasOwnProperty("country"))
159105
- object.country = message.country;
159106
- return object;
159107
- };
159108
-
159109
- /**
159110
- * Converts this BillingAddress to JSON.
159111
- * @function toJSON
159112
- * @memberof BillingAddress
159113
- * @instance
159114
- * @returns {Object.<string,*>} JSON object
159115
- */
159116
- BillingAddress.prototype.toJSON = function toJSON() {
159117
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
159118
- };
159119
-
159120
- return BillingAddress;
160775
+ return ResetStripeConnectionResponse;
159121
160776
  })();
159122
160777
 
159123
160778
  $root.StripeService = (function() {
@@ -159911,6 +161566,39 @@ $root.StripeService = (function() {
159911
161566
  * @variation 2
159912
161567
  */
159913
161568
 
161569
+ /**
161570
+ * Callback as used by {@link StripeService#resetStripeConnection}.
161571
+ * @memberof StripeService
161572
+ * @typedef resetStripeConnectionCallback
161573
+ * @type {function}
161574
+ * @param {Error|null} error Error, if any
161575
+ * @param {ResetStripeConnectionResponse} [response] ResetStripeConnectionResponse
161576
+ */
161577
+
161578
+ /**
161579
+ * Calls resetStripeConnection.
161580
+ * @function resetStripeConnection
161581
+ * @memberof StripeService
161582
+ * @instance
161583
+ * @param {IResetStripeConnectionRequest} request ResetStripeConnectionRequest message or plain object
161584
+ * @param {StripeService.resetStripeConnectionCallback} callback Node-style callback called with the error, if any, and ResetStripeConnectionResponse
161585
+ * @returns {undefined}
161586
+ * @variation 1
161587
+ */
161588
+ Object.defineProperty(StripeService.prototype.resetStripeConnection = function resetStripeConnection(request, callback) {
161589
+ return this.rpcCall(resetStripeConnection, $root.ResetStripeConnectionRequest, $root.ResetStripeConnectionResponse, request, callback);
161590
+ }, "name", { value: "resetStripeConnection" });
161591
+
161592
+ /**
161593
+ * Calls resetStripeConnection.
161594
+ * @function resetStripeConnection
161595
+ * @memberof StripeService
161596
+ * @instance
161597
+ * @param {IResetStripeConnectionRequest} request ResetStripeConnectionRequest message or plain object
161598
+ * @returns {Promise<ResetStripeConnectionResponse>} Promise
161599
+ * @variation 2
161600
+ */
161601
+
159914
161602
  return StripeService;
159915
161603
  })();
159916
161604