@sellout/models 0.0.359 → 0.0.360
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/graphql/mutations/connectStripe.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/connectStripe.mutation.js +10 -0
- package/.dist/graphql/mutations/connectStripe.mutation.js.map +1 -0
- package/.dist/graphql/mutations/resetStripeConnection.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/resetStripeConnection.mutation.js +10 -0
- package/.dist/graphql/mutations/resetStripeConnection.mutation.js.map +1 -0
- package/.dist/sellout-proto.js +1387 -315
- package/package.json +3 -3
- package/src/graphql/mutations/connectStripe.mutation.ts +9 -0
- package/src/graphql/mutations/resetStripeConnection.mutation.ts +9 -0
- package/src/proto/organization.proto +13 -0
- package/src/proto/stripe.proto +16 -1
package/.dist/sellout-proto.js
CHANGED
|
@@ -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
|
|
|
@@ -158764,38 +159314,827 @@ $root.CreateStripeLocationIdResponse = (function() {
|
|
|
158764
159314
|
}
|
|
158765
159315
|
if (object.errors) {
|
|
158766
159316
|
if (!Array.isArray(object.errors))
|
|
158767
|
-
throw TypeError(".CreateStripeLocationIdResponse.errors: array expected");
|
|
159317
|
+
throw TypeError(".CreateStripeLocationIdResponse.errors: array expected");
|
|
159318
|
+
message.errors = [];
|
|
159319
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
159320
|
+
if (typeof object.errors[i] !== "object")
|
|
159321
|
+
throw TypeError(".CreateStripeLocationIdResponse.errors: object expected");
|
|
159322
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
159323
|
+
}
|
|
159324
|
+
}
|
|
159325
|
+
if (object.locationId != null)
|
|
159326
|
+
message.locationId = String(object.locationId);
|
|
159327
|
+
return message;
|
|
159328
|
+
};
|
|
159329
|
+
|
|
159330
|
+
/**
|
|
159331
|
+
* Creates a plain object from a CreateStripeLocationIdResponse message. Also converts values to other types if specified.
|
|
159332
|
+
* @function toObject
|
|
159333
|
+
* @memberof CreateStripeLocationIdResponse
|
|
159334
|
+
* @static
|
|
159335
|
+
* @param {CreateStripeLocationIdResponse} message CreateStripeLocationIdResponse
|
|
159336
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
159337
|
+
* @returns {Object.<string,*>} Plain object
|
|
159338
|
+
*/
|
|
159339
|
+
CreateStripeLocationIdResponse.toObject = function toObject(message, options) {
|
|
159340
|
+
if (!options)
|
|
159341
|
+
options = {};
|
|
159342
|
+
var object = {};
|
|
159343
|
+
if (options.arrays || options.defaults)
|
|
159344
|
+
object.errors = [];
|
|
159345
|
+
if (options.defaults) {
|
|
159346
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
159347
|
+
object.locationId = "";
|
|
159348
|
+
}
|
|
159349
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
159350
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
159351
|
+
if (message.errors && message.errors.length) {
|
|
159352
|
+
object.errors = [];
|
|
159353
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
159354
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
159355
|
+
}
|
|
159356
|
+
if (message.locationId != null && message.hasOwnProperty("locationId"))
|
|
159357
|
+
object.locationId = message.locationId;
|
|
159358
|
+
return object;
|
|
159359
|
+
};
|
|
159360
|
+
|
|
159361
|
+
/**
|
|
159362
|
+
* Converts this CreateStripeLocationIdResponse to JSON.
|
|
159363
|
+
* @function toJSON
|
|
159364
|
+
* @memberof CreateStripeLocationIdResponse
|
|
159365
|
+
* @instance
|
|
159366
|
+
* @returns {Object.<string,*>} JSON object
|
|
159367
|
+
*/
|
|
159368
|
+
CreateStripeLocationIdResponse.prototype.toJSON = function toJSON() {
|
|
159369
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
159370
|
+
};
|
|
159371
|
+
|
|
159372
|
+
return CreateStripeLocationIdResponse;
|
|
159373
|
+
})();
|
|
159374
|
+
|
|
159375
|
+
$root.BillingAddress = (function() {
|
|
159376
|
+
|
|
159377
|
+
/**
|
|
159378
|
+
* Properties of a BillingAddress.
|
|
159379
|
+
* @exports IBillingAddress
|
|
159380
|
+
* @interface IBillingAddress
|
|
159381
|
+
* @property {string|null} [line1] BillingAddress line1
|
|
159382
|
+
* @property {string|null} [line2] BillingAddress line2
|
|
159383
|
+
* @property {string|null} [city] BillingAddress city
|
|
159384
|
+
* @property {string|null} [state] BillingAddress state
|
|
159385
|
+
* @property {number|null} [postalCode] BillingAddress postalCode
|
|
159386
|
+
* @property {string|null} [country] BillingAddress country
|
|
159387
|
+
*/
|
|
159388
|
+
|
|
159389
|
+
/**
|
|
159390
|
+
* Constructs a new BillingAddress.
|
|
159391
|
+
* @exports BillingAddress
|
|
159392
|
+
* @classdesc Represents a BillingAddress.
|
|
159393
|
+
* @implements IBillingAddress
|
|
159394
|
+
* @constructor
|
|
159395
|
+
* @param {IBillingAddress=} [properties] Properties to set
|
|
159396
|
+
*/
|
|
159397
|
+
function BillingAddress(properties) {
|
|
159398
|
+
if (properties)
|
|
159399
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
159400
|
+
if (properties[keys[i]] != null)
|
|
159401
|
+
this[keys[i]] = properties[keys[i]];
|
|
159402
|
+
}
|
|
159403
|
+
|
|
159404
|
+
/**
|
|
159405
|
+
* BillingAddress line1.
|
|
159406
|
+
* @member {string} line1
|
|
159407
|
+
* @memberof BillingAddress
|
|
159408
|
+
* @instance
|
|
159409
|
+
*/
|
|
159410
|
+
BillingAddress.prototype.line1 = "";
|
|
159411
|
+
|
|
159412
|
+
/**
|
|
159413
|
+
* BillingAddress line2.
|
|
159414
|
+
* @member {string} line2
|
|
159415
|
+
* @memberof BillingAddress
|
|
159416
|
+
* @instance
|
|
159417
|
+
*/
|
|
159418
|
+
BillingAddress.prototype.line2 = "";
|
|
159419
|
+
|
|
159420
|
+
/**
|
|
159421
|
+
* BillingAddress city.
|
|
159422
|
+
* @member {string} city
|
|
159423
|
+
* @memberof BillingAddress
|
|
159424
|
+
* @instance
|
|
159425
|
+
*/
|
|
159426
|
+
BillingAddress.prototype.city = "";
|
|
159427
|
+
|
|
159428
|
+
/**
|
|
159429
|
+
* BillingAddress state.
|
|
159430
|
+
* @member {string} state
|
|
159431
|
+
* @memberof BillingAddress
|
|
159432
|
+
* @instance
|
|
159433
|
+
*/
|
|
159434
|
+
BillingAddress.prototype.state = "";
|
|
159435
|
+
|
|
159436
|
+
/**
|
|
159437
|
+
* BillingAddress postalCode.
|
|
159438
|
+
* @member {number} postalCode
|
|
159439
|
+
* @memberof BillingAddress
|
|
159440
|
+
* @instance
|
|
159441
|
+
*/
|
|
159442
|
+
BillingAddress.prototype.postalCode = 0;
|
|
159443
|
+
|
|
159444
|
+
/**
|
|
159445
|
+
* BillingAddress country.
|
|
159446
|
+
* @member {string} country
|
|
159447
|
+
* @memberof BillingAddress
|
|
159448
|
+
* @instance
|
|
159449
|
+
*/
|
|
159450
|
+
BillingAddress.prototype.country = "";
|
|
159451
|
+
|
|
159452
|
+
/**
|
|
159453
|
+
* Creates a new BillingAddress instance using the specified properties.
|
|
159454
|
+
* @function create
|
|
159455
|
+
* @memberof BillingAddress
|
|
159456
|
+
* @static
|
|
159457
|
+
* @param {IBillingAddress=} [properties] Properties to set
|
|
159458
|
+
* @returns {BillingAddress} BillingAddress instance
|
|
159459
|
+
*/
|
|
159460
|
+
BillingAddress.create = function create(properties) {
|
|
159461
|
+
return new BillingAddress(properties);
|
|
159462
|
+
};
|
|
159463
|
+
|
|
159464
|
+
/**
|
|
159465
|
+
* Encodes the specified BillingAddress message. Does not implicitly {@link BillingAddress.verify|verify} messages.
|
|
159466
|
+
* @function encode
|
|
159467
|
+
* @memberof BillingAddress
|
|
159468
|
+
* @static
|
|
159469
|
+
* @param {IBillingAddress} message BillingAddress message or plain object to encode
|
|
159470
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159471
|
+
* @returns {$protobuf.Writer} Writer
|
|
159472
|
+
*/
|
|
159473
|
+
BillingAddress.encode = function encode(message, writer) {
|
|
159474
|
+
if (!writer)
|
|
159475
|
+
writer = $Writer.create();
|
|
159476
|
+
if (message.line1 != null && Object.hasOwnProperty.call(message, "line1"))
|
|
159477
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.line1);
|
|
159478
|
+
if (message.line2 != null && Object.hasOwnProperty.call(message, "line2"))
|
|
159479
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.line2);
|
|
159480
|
+
if (message.city != null && Object.hasOwnProperty.call(message, "city"))
|
|
159481
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.city);
|
|
159482
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
159483
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.state);
|
|
159484
|
+
if (message.postalCode != null && Object.hasOwnProperty.call(message, "postalCode"))
|
|
159485
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.postalCode);
|
|
159486
|
+
if (message.country != null && Object.hasOwnProperty.call(message, "country"))
|
|
159487
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.country);
|
|
159488
|
+
return writer;
|
|
159489
|
+
};
|
|
159490
|
+
|
|
159491
|
+
/**
|
|
159492
|
+
* Encodes the specified BillingAddress message, length delimited. Does not implicitly {@link BillingAddress.verify|verify} messages.
|
|
159493
|
+
* @function encodeDelimited
|
|
159494
|
+
* @memberof BillingAddress
|
|
159495
|
+
* @static
|
|
159496
|
+
* @param {IBillingAddress} message BillingAddress message or plain object to encode
|
|
159497
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159498
|
+
* @returns {$protobuf.Writer} Writer
|
|
159499
|
+
*/
|
|
159500
|
+
BillingAddress.encodeDelimited = function encodeDelimited(message, writer) {
|
|
159501
|
+
return this.encode(message, writer).ldelim();
|
|
159502
|
+
};
|
|
159503
|
+
|
|
159504
|
+
/**
|
|
159505
|
+
* Decodes a BillingAddress message from the specified reader or buffer.
|
|
159506
|
+
* @function decode
|
|
159507
|
+
* @memberof BillingAddress
|
|
159508
|
+
* @static
|
|
159509
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159510
|
+
* @param {number} [length] Message length if known beforehand
|
|
159511
|
+
* @returns {BillingAddress} BillingAddress
|
|
159512
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159513
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159514
|
+
*/
|
|
159515
|
+
BillingAddress.decode = function decode(reader, length) {
|
|
159516
|
+
if (!(reader instanceof $Reader))
|
|
159517
|
+
reader = $Reader.create(reader);
|
|
159518
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BillingAddress();
|
|
159519
|
+
while (reader.pos < end) {
|
|
159520
|
+
var tag = reader.uint32();
|
|
159521
|
+
switch (tag >>> 3) {
|
|
159522
|
+
case 0:
|
|
159523
|
+
message.line1 = reader.string();
|
|
159524
|
+
break;
|
|
159525
|
+
case 1:
|
|
159526
|
+
message.line2 = reader.string();
|
|
159527
|
+
break;
|
|
159528
|
+
case 2:
|
|
159529
|
+
message.city = reader.string();
|
|
159530
|
+
break;
|
|
159531
|
+
case 3:
|
|
159532
|
+
message.state = reader.string();
|
|
159533
|
+
break;
|
|
159534
|
+
case 4:
|
|
159535
|
+
message.postalCode = reader.int32();
|
|
159536
|
+
break;
|
|
159537
|
+
case 5:
|
|
159538
|
+
message.country = reader.string();
|
|
159539
|
+
break;
|
|
159540
|
+
default:
|
|
159541
|
+
reader.skipType(tag & 7);
|
|
159542
|
+
break;
|
|
159543
|
+
}
|
|
159544
|
+
}
|
|
159545
|
+
return message;
|
|
159546
|
+
};
|
|
159547
|
+
|
|
159548
|
+
/**
|
|
159549
|
+
* Decodes a BillingAddress message from the specified reader or buffer, length delimited.
|
|
159550
|
+
* @function decodeDelimited
|
|
159551
|
+
* @memberof BillingAddress
|
|
159552
|
+
* @static
|
|
159553
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159554
|
+
* @returns {BillingAddress} BillingAddress
|
|
159555
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159556
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159557
|
+
*/
|
|
159558
|
+
BillingAddress.decodeDelimited = function decodeDelimited(reader) {
|
|
159559
|
+
if (!(reader instanceof $Reader))
|
|
159560
|
+
reader = new $Reader(reader);
|
|
159561
|
+
return this.decode(reader, reader.uint32());
|
|
159562
|
+
};
|
|
159563
|
+
|
|
159564
|
+
/**
|
|
159565
|
+
* Verifies a BillingAddress message.
|
|
159566
|
+
* @function verify
|
|
159567
|
+
* @memberof BillingAddress
|
|
159568
|
+
* @static
|
|
159569
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
159570
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
159571
|
+
*/
|
|
159572
|
+
BillingAddress.verify = function verify(message) {
|
|
159573
|
+
if (typeof message !== "object" || message === null)
|
|
159574
|
+
return "object expected";
|
|
159575
|
+
if (message.line1 != null && message.hasOwnProperty("line1"))
|
|
159576
|
+
if (!$util.isString(message.line1))
|
|
159577
|
+
return "line1: string expected";
|
|
159578
|
+
if (message.line2 != null && message.hasOwnProperty("line2"))
|
|
159579
|
+
if (!$util.isString(message.line2))
|
|
159580
|
+
return "line2: string expected";
|
|
159581
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
159582
|
+
if (!$util.isString(message.city))
|
|
159583
|
+
return "city: string expected";
|
|
159584
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
159585
|
+
if (!$util.isString(message.state))
|
|
159586
|
+
return "state: string expected";
|
|
159587
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
159588
|
+
if (!$util.isInteger(message.postalCode))
|
|
159589
|
+
return "postalCode: integer expected";
|
|
159590
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
159591
|
+
if (!$util.isString(message.country))
|
|
159592
|
+
return "country: string expected";
|
|
159593
|
+
return null;
|
|
159594
|
+
};
|
|
159595
|
+
|
|
159596
|
+
/**
|
|
159597
|
+
* Creates a BillingAddress message from a plain object. Also converts values to their respective internal types.
|
|
159598
|
+
* @function fromObject
|
|
159599
|
+
* @memberof BillingAddress
|
|
159600
|
+
* @static
|
|
159601
|
+
* @param {Object.<string,*>} object Plain object
|
|
159602
|
+
* @returns {BillingAddress} BillingAddress
|
|
159603
|
+
*/
|
|
159604
|
+
BillingAddress.fromObject = function fromObject(object) {
|
|
159605
|
+
if (object instanceof $root.BillingAddress)
|
|
159606
|
+
return object;
|
|
159607
|
+
var message = new $root.BillingAddress();
|
|
159608
|
+
if (object.line1 != null)
|
|
159609
|
+
message.line1 = String(object.line1);
|
|
159610
|
+
if (object.line2 != null)
|
|
159611
|
+
message.line2 = String(object.line2);
|
|
159612
|
+
if (object.city != null)
|
|
159613
|
+
message.city = String(object.city);
|
|
159614
|
+
if (object.state != null)
|
|
159615
|
+
message.state = String(object.state);
|
|
159616
|
+
if (object.postalCode != null)
|
|
159617
|
+
message.postalCode = object.postalCode | 0;
|
|
159618
|
+
if (object.country != null)
|
|
159619
|
+
message.country = String(object.country);
|
|
159620
|
+
return message;
|
|
159621
|
+
};
|
|
159622
|
+
|
|
159623
|
+
/**
|
|
159624
|
+
* Creates a plain object from a BillingAddress message. Also converts values to other types if specified.
|
|
159625
|
+
* @function toObject
|
|
159626
|
+
* @memberof BillingAddress
|
|
159627
|
+
* @static
|
|
159628
|
+
* @param {BillingAddress} message BillingAddress
|
|
159629
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
159630
|
+
* @returns {Object.<string,*>} Plain object
|
|
159631
|
+
*/
|
|
159632
|
+
BillingAddress.toObject = function toObject(message, options) {
|
|
159633
|
+
if (!options)
|
|
159634
|
+
options = {};
|
|
159635
|
+
var object = {};
|
|
159636
|
+
if (options.defaults) {
|
|
159637
|
+
object.line1 = "";
|
|
159638
|
+
object.line2 = "";
|
|
159639
|
+
object.city = "";
|
|
159640
|
+
object.state = "";
|
|
159641
|
+
object.postalCode = 0;
|
|
159642
|
+
object.country = "";
|
|
159643
|
+
}
|
|
159644
|
+
if (message.line1 != null && message.hasOwnProperty("line1"))
|
|
159645
|
+
object.line1 = message.line1;
|
|
159646
|
+
if (message.line2 != null && message.hasOwnProperty("line2"))
|
|
159647
|
+
object.line2 = message.line2;
|
|
159648
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
159649
|
+
object.city = message.city;
|
|
159650
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
159651
|
+
object.state = message.state;
|
|
159652
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
159653
|
+
object.postalCode = message.postalCode;
|
|
159654
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
159655
|
+
object.country = message.country;
|
|
159656
|
+
return object;
|
|
159657
|
+
};
|
|
159658
|
+
|
|
159659
|
+
/**
|
|
159660
|
+
* Converts this BillingAddress to JSON.
|
|
159661
|
+
* @function toJSON
|
|
159662
|
+
* @memberof BillingAddress
|
|
159663
|
+
* @instance
|
|
159664
|
+
* @returns {Object.<string,*>} JSON object
|
|
159665
|
+
*/
|
|
159666
|
+
BillingAddress.prototype.toJSON = function toJSON() {
|
|
159667
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
159668
|
+
};
|
|
159669
|
+
|
|
159670
|
+
return BillingAddress;
|
|
159671
|
+
})();
|
|
159672
|
+
|
|
159673
|
+
$root.ResetStripeConnectionRequest = (function() {
|
|
159674
|
+
|
|
159675
|
+
/**
|
|
159676
|
+
* Properties of a ResetStripeConnectionRequest.
|
|
159677
|
+
* @exports IResetStripeConnectionRequest
|
|
159678
|
+
* @interface IResetStripeConnectionRequest
|
|
159679
|
+
* @property {string|null} [spanContext] ResetStripeConnectionRequest spanContext
|
|
159680
|
+
* @property {string|null} [orgId] ResetStripeConnectionRequest orgId
|
|
159681
|
+
*/
|
|
159682
|
+
|
|
159683
|
+
/**
|
|
159684
|
+
* Constructs a new ResetStripeConnectionRequest.
|
|
159685
|
+
* @exports ResetStripeConnectionRequest
|
|
159686
|
+
* @classdesc Represents a ResetStripeConnectionRequest.
|
|
159687
|
+
* @implements IResetStripeConnectionRequest
|
|
159688
|
+
* @constructor
|
|
159689
|
+
* @param {IResetStripeConnectionRequest=} [properties] Properties to set
|
|
159690
|
+
*/
|
|
159691
|
+
function ResetStripeConnectionRequest(properties) {
|
|
159692
|
+
if (properties)
|
|
159693
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
159694
|
+
if (properties[keys[i]] != null)
|
|
159695
|
+
this[keys[i]] = properties[keys[i]];
|
|
159696
|
+
}
|
|
159697
|
+
|
|
159698
|
+
/**
|
|
159699
|
+
* ResetStripeConnectionRequest spanContext.
|
|
159700
|
+
* @member {string} spanContext
|
|
159701
|
+
* @memberof ResetStripeConnectionRequest
|
|
159702
|
+
* @instance
|
|
159703
|
+
*/
|
|
159704
|
+
ResetStripeConnectionRequest.prototype.spanContext = "";
|
|
159705
|
+
|
|
159706
|
+
/**
|
|
159707
|
+
* ResetStripeConnectionRequest orgId.
|
|
159708
|
+
* @member {string} orgId
|
|
159709
|
+
* @memberof ResetStripeConnectionRequest
|
|
159710
|
+
* @instance
|
|
159711
|
+
*/
|
|
159712
|
+
ResetStripeConnectionRequest.prototype.orgId = "";
|
|
159713
|
+
|
|
159714
|
+
/**
|
|
159715
|
+
* Creates a new ResetStripeConnectionRequest instance using the specified properties.
|
|
159716
|
+
* @function create
|
|
159717
|
+
* @memberof ResetStripeConnectionRequest
|
|
159718
|
+
* @static
|
|
159719
|
+
* @param {IResetStripeConnectionRequest=} [properties] Properties to set
|
|
159720
|
+
* @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest instance
|
|
159721
|
+
*/
|
|
159722
|
+
ResetStripeConnectionRequest.create = function create(properties) {
|
|
159723
|
+
return new ResetStripeConnectionRequest(properties);
|
|
159724
|
+
};
|
|
159725
|
+
|
|
159726
|
+
/**
|
|
159727
|
+
* Encodes the specified ResetStripeConnectionRequest message. Does not implicitly {@link ResetStripeConnectionRequest.verify|verify} messages.
|
|
159728
|
+
* @function encode
|
|
159729
|
+
* @memberof ResetStripeConnectionRequest
|
|
159730
|
+
* @static
|
|
159731
|
+
* @param {IResetStripeConnectionRequest} message ResetStripeConnectionRequest message or plain object to encode
|
|
159732
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159733
|
+
* @returns {$protobuf.Writer} Writer
|
|
159734
|
+
*/
|
|
159735
|
+
ResetStripeConnectionRequest.encode = function encode(message, writer) {
|
|
159736
|
+
if (!writer)
|
|
159737
|
+
writer = $Writer.create();
|
|
159738
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
159739
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
159740
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
159741
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
159742
|
+
return writer;
|
|
159743
|
+
};
|
|
159744
|
+
|
|
159745
|
+
/**
|
|
159746
|
+
* Encodes the specified ResetStripeConnectionRequest message, length delimited. Does not implicitly {@link ResetStripeConnectionRequest.verify|verify} messages.
|
|
159747
|
+
* @function encodeDelimited
|
|
159748
|
+
* @memberof ResetStripeConnectionRequest
|
|
159749
|
+
* @static
|
|
159750
|
+
* @param {IResetStripeConnectionRequest} message ResetStripeConnectionRequest message or plain object to encode
|
|
159751
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159752
|
+
* @returns {$protobuf.Writer} Writer
|
|
159753
|
+
*/
|
|
159754
|
+
ResetStripeConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
159755
|
+
return this.encode(message, writer).ldelim();
|
|
159756
|
+
};
|
|
159757
|
+
|
|
159758
|
+
/**
|
|
159759
|
+
* Decodes a ResetStripeConnectionRequest message from the specified reader or buffer.
|
|
159760
|
+
* @function decode
|
|
159761
|
+
* @memberof ResetStripeConnectionRequest
|
|
159762
|
+
* @static
|
|
159763
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159764
|
+
* @param {number} [length] Message length if known beforehand
|
|
159765
|
+
* @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest
|
|
159766
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159767
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159768
|
+
*/
|
|
159769
|
+
ResetStripeConnectionRequest.decode = function decode(reader, length) {
|
|
159770
|
+
if (!(reader instanceof $Reader))
|
|
159771
|
+
reader = $Reader.create(reader);
|
|
159772
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ResetStripeConnectionRequest();
|
|
159773
|
+
while (reader.pos < end) {
|
|
159774
|
+
var tag = reader.uint32();
|
|
159775
|
+
switch (tag >>> 3) {
|
|
159776
|
+
case 0:
|
|
159777
|
+
message.spanContext = reader.string();
|
|
159778
|
+
break;
|
|
159779
|
+
case 1:
|
|
159780
|
+
message.orgId = reader.string();
|
|
159781
|
+
break;
|
|
159782
|
+
default:
|
|
159783
|
+
reader.skipType(tag & 7);
|
|
159784
|
+
break;
|
|
159785
|
+
}
|
|
159786
|
+
}
|
|
159787
|
+
return message;
|
|
159788
|
+
};
|
|
159789
|
+
|
|
159790
|
+
/**
|
|
159791
|
+
* Decodes a ResetStripeConnectionRequest message from the specified reader or buffer, length delimited.
|
|
159792
|
+
* @function decodeDelimited
|
|
159793
|
+
* @memberof ResetStripeConnectionRequest
|
|
159794
|
+
* @static
|
|
159795
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159796
|
+
* @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest
|
|
159797
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159798
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159799
|
+
*/
|
|
159800
|
+
ResetStripeConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
159801
|
+
if (!(reader instanceof $Reader))
|
|
159802
|
+
reader = new $Reader(reader);
|
|
159803
|
+
return this.decode(reader, reader.uint32());
|
|
159804
|
+
};
|
|
159805
|
+
|
|
159806
|
+
/**
|
|
159807
|
+
* Verifies a ResetStripeConnectionRequest message.
|
|
159808
|
+
* @function verify
|
|
159809
|
+
* @memberof ResetStripeConnectionRequest
|
|
159810
|
+
* @static
|
|
159811
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
159812
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
159813
|
+
*/
|
|
159814
|
+
ResetStripeConnectionRequest.verify = function verify(message) {
|
|
159815
|
+
if (typeof message !== "object" || message === null)
|
|
159816
|
+
return "object expected";
|
|
159817
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
159818
|
+
if (!$util.isString(message.spanContext))
|
|
159819
|
+
return "spanContext: string expected";
|
|
159820
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
159821
|
+
if (!$util.isString(message.orgId))
|
|
159822
|
+
return "orgId: string expected";
|
|
159823
|
+
return null;
|
|
159824
|
+
};
|
|
159825
|
+
|
|
159826
|
+
/**
|
|
159827
|
+
* Creates a ResetStripeConnectionRequest message from a plain object. Also converts values to their respective internal types.
|
|
159828
|
+
* @function fromObject
|
|
159829
|
+
* @memberof ResetStripeConnectionRequest
|
|
159830
|
+
* @static
|
|
159831
|
+
* @param {Object.<string,*>} object Plain object
|
|
159832
|
+
* @returns {ResetStripeConnectionRequest} ResetStripeConnectionRequest
|
|
159833
|
+
*/
|
|
159834
|
+
ResetStripeConnectionRequest.fromObject = function fromObject(object) {
|
|
159835
|
+
if (object instanceof $root.ResetStripeConnectionRequest)
|
|
159836
|
+
return object;
|
|
159837
|
+
var message = new $root.ResetStripeConnectionRequest();
|
|
159838
|
+
if (object.spanContext != null)
|
|
159839
|
+
message.spanContext = String(object.spanContext);
|
|
159840
|
+
if (object.orgId != null)
|
|
159841
|
+
message.orgId = String(object.orgId);
|
|
159842
|
+
return message;
|
|
159843
|
+
};
|
|
159844
|
+
|
|
159845
|
+
/**
|
|
159846
|
+
* Creates a plain object from a ResetStripeConnectionRequest message. Also converts values to other types if specified.
|
|
159847
|
+
* @function toObject
|
|
159848
|
+
* @memberof ResetStripeConnectionRequest
|
|
159849
|
+
* @static
|
|
159850
|
+
* @param {ResetStripeConnectionRequest} message ResetStripeConnectionRequest
|
|
159851
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
159852
|
+
* @returns {Object.<string,*>} Plain object
|
|
159853
|
+
*/
|
|
159854
|
+
ResetStripeConnectionRequest.toObject = function toObject(message, options) {
|
|
159855
|
+
if (!options)
|
|
159856
|
+
options = {};
|
|
159857
|
+
var object = {};
|
|
159858
|
+
if (options.defaults) {
|
|
159859
|
+
object.spanContext = "";
|
|
159860
|
+
object.orgId = "";
|
|
159861
|
+
}
|
|
159862
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
159863
|
+
object.spanContext = message.spanContext;
|
|
159864
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
159865
|
+
object.orgId = message.orgId;
|
|
159866
|
+
return object;
|
|
159867
|
+
};
|
|
159868
|
+
|
|
159869
|
+
/**
|
|
159870
|
+
* Converts this ResetStripeConnectionRequest to JSON.
|
|
159871
|
+
* @function toJSON
|
|
159872
|
+
* @memberof ResetStripeConnectionRequest
|
|
159873
|
+
* @instance
|
|
159874
|
+
* @returns {Object.<string,*>} JSON object
|
|
159875
|
+
*/
|
|
159876
|
+
ResetStripeConnectionRequest.prototype.toJSON = function toJSON() {
|
|
159877
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
159878
|
+
};
|
|
159879
|
+
|
|
159880
|
+
return ResetStripeConnectionRequest;
|
|
159881
|
+
})();
|
|
159882
|
+
|
|
159883
|
+
$root.ResetStripeConnectionResponse = (function() {
|
|
159884
|
+
|
|
159885
|
+
/**
|
|
159886
|
+
* Properties of a ResetStripeConnectionResponse.
|
|
159887
|
+
* @exports IResetStripeConnectionResponse
|
|
159888
|
+
* @interface IResetStripeConnectionResponse
|
|
159889
|
+
* @property {StatusCode|null} [status] ResetStripeConnectionResponse status
|
|
159890
|
+
* @property {Array.<IError>|null} [errors] ResetStripeConnectionResponse errors
|
|
159891
|
+
*/
|
|
159892
|
+
|
|
159893
|
+
/**
|
|
159894
|
+
* Constructs a new ResetStripeConnectionResponse.
|
|
159895
|
+
* @exports ResetStripeConnectionResponse
|
|
159896
|
+
* @classdesc Represents a ResetStripeConnectionResponse.
|
|
159897
|
+
* @implements IResetStripeConnectionResponse
|
|
159898
|
+
* @constructor
|
|
159899
|
+
* @param {IResetStripeConnectionResponse=} [properties] Properties to set
|
|
159900
|
+
*/
|
|
159901
|
+
function ResetStripeConnectionResponse(properties) {
|
|
159902
|
+
this.errors = [];
|
|
159903
|
+
if (properties)
|
|
159904
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
159905
|
+
if (properties[keys[i]] != null)
|
|
159906
|
+
this[keys[i]] = properties[keys[i]];
|
|
159907
|
+
}
|
|
159908
|
+
|
|
159909
|
+
/**
|
|
159910
|
+
* ResetStripeConnectionResponse status.
|
|
159911
|
+
* @member {StatusCode} status
|
|
159912
|
+
* @memberof ResetStripeConnectionResponse
|
|
159913
|
+
* @instance
|
|
159914
|
+
*/
|
|
159915
|
+
ResetStripeConnectionResponse.prototype.status = 0;
|
|
159916
|
+
|
|
159917
|
+
/**
|
|
159918
|
+
* ResetStripeConnectionResponse errors.
|
|
159919
|
+
* @member {Array.<IError>} errors
|
|
159920
|
+
* @memberof ResetStripeConnectionResponse
|
|
159921
|
+
* @instance
|
|
159922
|
+
*/
|
|
159923
|
+
ResetStripeConnectionResponse.prototype.errors = $util.emptyArray;
|
|
159924
|
+
|
|
159925
|
+
/**
|
|
159926
|
+
* Creates a new ResetStripeConnectionResponse instance using the specified properties.
|
|
159927
|
+
* @function create
|
|
159928
|
+
* @memberof ResetStripeConnectionResponse
|
|
159929
|
+
* @static
|
|
159930
|
+
* @param {IResetStripeConnectionResponse=} [properties] Properties to set
|
|
159931
|
+
* @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse instance
|
|
159932
|
+
*/
|
|
159933
|
+
ResetStripeConnectionResponse.create = function create(properties) {
|
|
159934
|
+
return new ResetStripeConnectionResponse(properties);
|
|
159935
|
+
};
|
|
159936
|
+
|
|
159937
|
+
/**
|
|
159938
|
+
* Encodes the specified ResetStripeConnectionResponse message. Does not implicitly {@link ResetStripeConnectionResponse.verify|verify} messages.
|
|
159939
|
+
* @function encode
|
|
159940
|
+
* @memberof ResetStripeConnectionResponse
|
|
159941
|
+
* @static
|
|
159942
|
+
* @param {IResetStripeConnectionResponse} message ResetStripeConnectionResponse message or plain object to encode
|
|
159943
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159944
|
+
* @returns {$protobuf.Writer} Writer
|
|
159945
|
+
*/
|
|
159946
|
+
ResetStripeConnectionResponse.encode = function encode(message, writer) {
|
|
159947
|
+
if (!writer)
|
|
159948
|
+
writer = $Writer.create();
|
|
159949
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
159950
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
159951
|
+
if (message.errors != null && message.errors.length)
|
|
159952
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
159953
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
159954
|
+
return writer;
|
|
159955
|
+
};
|
|
159956
|
+
|
|
159957
|
+
/**
|
|
159958
|
+
* Encodes the specified ResetStripeConnectionResponse message, length delimited. Does not implicitly {@link ResetStripeConnectionResponse.verify|verify} messages.
|
|
159959
|
+
* @function encodeDelimited
|
|
159960
|
+
* @memberof ResetStripeConnectionResponse
|
|
159961
|
+
* @static
|
|
159962
|
+
* @param {IResetStripeConnectionResponse} message ResetStripeConnectionResponse message or plain object to encode
|
|
159963
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159964
|
+
* @returns {$protobuf.Writer} Writer
|
|
159965
|
+
*/
|
|
159966
|
+
ResetStripeConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
159967
|
+
return this.encode(message, writer).ldelim();
|
|
159968
|
+
};
|
|
159969
|
+
|
|
159970
|
+
/**
|
|
159971
|
+
* Decodes a ResetStripeConnectionResponse message from the specified reader or buffer.
|
|
159972
|
+
* @function decode
|
|
159973
|
+
* @memberof ResetStripeConnectionResponse
|
|
159974
|
+
* @static
|
|
159975
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159976
|
+
* @param {number} [length] Message length if known beforehand
|
|
159977
|
+
* @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse
|
|
159978
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159979
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159980
|
+
*/
|
|
159981
|
+
ResetStripeConnectionResponse.decode = function decode(reader, length) {
|
|
159982
|
+
if (!(reader instanceof $Reader))
|
|
159983
|
+
reader = $Reader.create(reader);
|
|
159984
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ResetStripeConnectionResponse();
|
|
159985
|
+
while (reader.pos < end) {
|
|
159986
|
+
var tag = reader.uint32();
|
|
159987
|
+
switch (tag >>> 3) {
|
|
159988
|
+
case 0:
|
|
159989
|
+
message.status = reader.int32();
|
|
159990
|
+
break;
|
|
159991
|
+
case 1:
|
|
159992
|
+
if (!(message.errors && message.errors.length))
|
|
159993
|
+
message.errors = [];
|
|
159994
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
159995
|
+
break;
|
|
159996
|
+
default:
|
|
159997
|
+
reader.skipType(tag & 7);
|
|
159998
|
+
break;
|
|
159999
|
+
}
|
|
160000
|
+
}
|
|
160001
|
+
return message;
|
|
160002
|
+
};
|
|
160003
|
+
|
|
160004
|
+
/**
|
|
160005
|
+
* Decodes a ResetStripeConnectionResponse message from the specified reader or buffer, length delimited.
|
|
160006
|
+
* @function decodeDelimited
|
|
160007
|
+
* @memberof ResetStripeConnectionResponse
|
|
160008
|
+
* @static
|
|
160009
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
160010
|
+
* @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse
|
|
160011
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
160012
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
160013
|
+
*/
|
|
160014
|
+
ResetStripeConnectionResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
160015
|
+
if (!(reader instanceof $Reader))
|
|
160016
|
+
reader = new $Reader(reader);
|
|
160017
|
+
return this.decode(reader, reader.uint32());
|
|
160018
|
+
};
|
|
160019
|
+
|
|
160020
|
+
/**
|
|
160021
|
+
* Verifies a ResetStripeConnectionResponse message.
|
|
160022
|
+
* @function verify
|
|
160023
|
+
* @memberof ResetStripeConnectionResponse
|
|
160024
|
+
* @static
|
|
160025
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
160026
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
160027
|
+
*/
|
|
160028
|
+
ResetStripeConnectionResponse.verify = function verify(message) {
|
|
160029
|
+
if (typeof message !== "object" || message === null)
|
|
160030
|
+
return "object expected";
|
|
160031
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
160032
|
+
switch (message.status) {
|
|
160033
|
+
default:
|
|
160034
|
+
return "status: enum value expected";
|
|
160035
|
+
case 0:
|
|
160036
|
+
case 200:
|
|
160037
|
+
case 400:
|
|
160038
|
+
case 401:
|
|
160039
|
+
case 403:
|
|
160040
|
+
case 422:
|
|
160041
|
+
case 404:
|
|
160042
|
+
case 500:
|
|
160043
|
+
case 504:
|
|
160044
|
+
break;
|
|
160045
|
+
}
|
|
160046
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
160047
|
+
if (!Array.isArray(message.errors))
|
|
160048
|
+
return "errors: array expected";
|
|
160049
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
160050
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
160051
|
+
if (error)
|
|
160052
|
+
return "errors." + error;
|
|
160053
|
+
}
|
|
160054
|
+
}
|
|
160055
|
+
return null;
|
|
160056
|
+
};
|
|
160057
|
+
|
|
160058
|
+
/**
|
|
160059
|
+
* Creates a ResetStripeConnectionResponse message from a plain object. Also converts values to their respective internal types.
|
|
160060
|
+
* @function fromObject
|
|
160061
|
+
* @memberof ResetStripeConnectionResponse
|
|
160062
|
+
* @static
|
|
160063
|
+
* @param {Object.<string,*>} object Plain object
|
|
160064
|
+
* @returns {ResetStripeConnectionResponse} ResetStripeConnectionResponse
|
|
160065
|
+
*/
|
|
160066
|
+
ResetStripeConnectionResponse.fromObject = function fromObject(object) {
|
|
160067
|
+
if (object instanceof $root.ResetStripeConnectionResponse)
|
|
160068
|
+
return object;
|
|
160069
|
+
var message = new $root.ResetStripeConnectionResponse();
|
|
160070
|
+
switch (object.status) {
|
|
160071
|
+
case "UNKNOWN_CODE":
|
|
160072
|
+
case 0:
|
|
160073
|
+
message.status = 0;
|
|
160074
|
+
break;
|
|
160075
|
+
case "OK":
|
|
160076
|
+
case 200:
|
|
160077
|
+
message.status = 200;
|
|
160078
|
+
break;
|
|
160079
|
+
case "BAD_REQUEST":
|
|
160080
|
+
case 400:
|
|
160081
|
+
message.status = 400;
|
|
160082
|
+
break;
|
|
160083
|
+
case "UNAUTHORIZED":
|
|
160084
|
+
case 401:
|
|
160085
|
+
message.status = 401;
|
|
160086
|
+
break;
|
|
160087
|
+
case "FORBIDDEN":
|
|
160088
|
+
case 403:
|
|
160089
|
+
message.status = 403;
|
|
160090
|
+
break;
|
|
160091
|
+
case "UNPROCESSABLE_ENTITY":
|
|
160092
|
+
case 422:
|
|
160093
|
+
message.status = 422;
|
|
160094
|
+
break;
|
|
160095
|
+
case "NOT_FOUND":
|
|
160096
|
+
case 404:
|
|
160097
|
+
message.status = 404;
|
|
160098
|
+
break;
|
|
160099
|
+
case "INTERNAL_SERVER_ERROR":
|
|
160100
|
+
case 500:
|
|
160101
|
+
message.status = 500;
|
|
160102
|
+
break;
|
|
160103
|
+
case "GATEWAY_TIMEOUT":
|
|
160104
|
+
case 504:
|
|
160105
|
+
message.status = 504;
|
|
160106
|
+
break;
|
|
160107
|
+
}
|
|
160108
|
+
if (object.errors) {
|
|
160109
|
+
if (!Array.isArray(object.errors))
|
|
160110
|
+
throw TypeError(".ResetStripeConnectionResponse.errors: array expected");
|
|
158768
160111
|
message.errors = [];
|
|
158769
160112
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
158770
160113
|
if (typeof object.errors[i] !== "object")
|
|
158771
|
-
throw TypeError(".
|
|
160114
|
+
throw TypeError(".ResetStripeConnectionResponse.errors: object expected");
|
|
158772
160115
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
158773
160116
|
}
|
|
158774
160117
|
}
|
|
158775
|
-
if (object.locationId != null)
|
|
158776
|
-
message.locationId = String(object.locationId);
|
|
158777
160118
|
return message;
|
|
158778
160119
|
};
|
|
158779
160120
|
|
|
158780
160121
|
/**
|
|
158781
|
-
* Creates a plain object from a
|
|
160122
|
+
* Creates a plain object from a ResetStripeConnectionResponse message. Also converts values to other types if specified.
|
|
158782
160123
|
* @function toObject
|
|
158783
|
-
* @memberof
|
|
160124
|
+
* @memberof ResetStripeConnectionResponse
|
|
158784
160125
|
* @static
|
|
158785
|
-
* @param {
|
|
160126
|
+
* @param {ResetStripeConnectionResponse} message ResetStripeConnectionResponse
|
|
158786
160127
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
158787
160128
|
* @returns {Object.<string,*>} Plain object
|
|
158788
160129
|
*/
|
|
158789
|
-
|
|
160130
|
+
ResetStripeConnectionResponse.toObject = function toObject(message, options) {
|
|
158790
160131
|
if (!options)
|
|
158791
160132
|
options = {};
|
|
158792
160133
|
var object = {};
|
|
158793
160134
|
if (options.arrays || options.defaults)
|
|
158794
160135
|
object.errors = [];
|
|
158795
|
-
if (options.defaults)
|
|
160136
|
+
if (options.defaults)
|
|
158796
160137
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
158797
|
-
object.locationId = "";
|
|
158798
|
-
}
|
|
158799
160138
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
158800
160139
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
158801
160140
|
if (message.errors && message.errors.length) {
|
|
@@ -158803,321 +160142,21 @@ $root.CreateStripeLocationIdResponse = (function() {
|
|
|
158803
160142
|
for (var j = 0; j < message.errors.length; ++j)
|
|
158804
160143
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
158805
160144
|
}
|
|
158806
|
-
if (message.locationId != null && message.hasOwnProperty("locationId"))
|
|
158807
|
-
object.locationId = message.locationId;
|
|
158808
160145
|
return object;
|
|
158809
160146
|
};
|
|
158810
160147
|
|
|
158811
160148
|
/**
|
|
158812
|
-
* Converts this
|
|
160149
|
+
* Converts this ResetStripeConnectionResponse to JSON.
|
|
158813
160150
|
* @function toJSON
|
|
158814
|
-
* @memberof
|
|
160151
|
+
* @memberof ResetStripeConnectionResponse
|
|
158815
160152
|
* @instance
|
|
158816
160153
|
* @returns {Object.<string,*>} JSON object
|
|
158817
160154
|
*/
|
|
158818
|
-
|
|
160155
|
+
ResetStripeConnectionResponse.prototype.toJSON = function toJSON() {
|
|
158819
160156
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
158820
160157
|
};
|
|
158821
160158
|
|
|
158822
|
-
return
|
|
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;
|
|
160159
|
+
return ResetStripeConnectionResponse;
|
|
159121
160160
|
})();
|
|
159122
160161
|
|
|
159123
160162
|
$root.StripeService = (function() {
|
|
@@ -159911,6 +160950,39 @@ $root.StripeService = (function() {
|
|
|
159911
160950
|
* @variation 2
|
|
159912
160951
|
*/
|
|
159913
160952
|
|
|
160953
|
+
/**
|
|
160954
|
+
* Callback as used by {@link StripeService#resetStripeConnection}.
|
|
160955
|
+
* @memberof StripeService
|
|
160956
|
+
* @typedef resetStripeConnectionCallback
|
|
160957
|
+
* @type {function}
|
|
160958
|
+
* @param {Error|null} error Error, if any
|
|
160959
|
+
* @param {ResetStripeConnectionResponse} [response] ResetStripeConnectionResponse
|
|
160960
|
+
*/
|
|
160961
|
+
|
|
160962
|
+
/**
|
|
160963
|
+
* Calls resetStripeConnection.
|
|
160964
|
+
* @function resetStripeConnection
|
|
160965
|
+
* @memberof StripeService
|
|
160966
|
+
* @instance
|
|
160967
|
+
* @param {IResetStripeConnectionRequest} request ResetStripeConnectionRequest message or plain object
|
|
160968
|
+
* @param {StripeService.resetStripeConnectionCallback} callback Node-style callback called with the error, if any, and ResetStripeConnectionResponse
|
|
160969
|
+
* @returns {undefined}
|
|
160970
|
+
* @variation 1
|
|
160971
|
+
*/
|
|
160972
|
+
Object.defineProperty(StripeService.prototype.resetStripeConnection = function resetStripeConnection(request, callback) {
|
|
160973
|
+
return this.rpcCall(resetStripeConnection, $root.ResetStripeConnectionRequest, $root.ResetStripeConnectionResponse, request, callback);
|
|
160974
|
+
}, "name", { value: "resetStripeConnection" });
|
|
160975
|
+
|
|
160976
|
+
/**
|
|
160977
|
+
* Calls resetStripeConnection.
|
|
160978
|
+
* @function resetStripeConnection
|
|
160979
|
+
* @memberof StripeService
|
|
160980
|
+
* @instance
|
|
160981
|
+
* @param {IResetStripeConnectionRequest} request ResetStripeConnectionRequest message or plain object
|
|
160982
|
+
* @returns {Promise<ResetStripeConnectionResponse>} Promise
|
|
160983
|
+
* @variation 2
|
|
160984
|
+
*/
|
|
160985
|
+
|
|
159914
160986
|
return StripeService;
|
|
159915
160987
|
})();
|
|
159916
160988
|
|