@sellout/models 0.0.121 → 0.0.124
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/queries/stripeCardDetail.query.d.ts +2 -0
- package/.dist/graphql/queries/stripeCardDetail.query.js +22 -0
- package/.dist/graphql/queries/stripeCardDetail.query.js.map +1 -0
- package/.dist/sellout-proto.js +1470 -0
- package/package.json +3 -3
- package/src/graphql/queries/stripeCardDetail.query.ts +18 -0
- package/src/proto/event.proto +14 -0
- package/src/proto/stripe.proto +22 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -38867,6 +38867,556 @@ $root.QueryEventsResponse = (function() {
|
|
|
38867
38867
|
return QueryEventsResponse;
|
|
38868
38868
|
})();
|
|
38869
38869
|
|
|
38870
|
+
$root.EventTicketsRequest = (function() {
|
|
38871
|
+
|
|
38872
|
+
/**
|
|
38873
|
+
* Properties of an EventTicketsRequest.
|
|
38874
|
+
* @exports IEventTicketsRequest
|
|
38875
|
+
* @interface IEventTicketsRequest
|
|
38876
|
+
* @property {string|null} [spanContext] EventTicketsRequest spanContext
|
|
38877
|
+
* @property {string|null} [eventId] EventTicketsRequest eventId
|
|
38878
|
+
* @property {string|null} [promoCode] EventTicketsRequest promoCode
|
|
38879
|
+
*/
|
|
38880
|
+
|
|
38881
|
+
/**
|
|
38882
|
+
* Constructs a new EventTicketsRequest.
|
|
38883
|
+
* @exports EventTicketsRequest
|
|
38884
|
+
* @classdesc Represents an EventTicketsRequest.
|
|
38885
|
+
* @implements IEventTicketsRequest
|
|
38886
|
+
* @constructor
|
|
38887
|
+
* @param {IEventTicketsRequest=} [properties] Properties to set
|
|
38888
|
+
*/
|
|
38889
|
+
function EventTicketsRequest(properties) {
|
|
38890
|
+
if (properties)
|
|
38891
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38892
|
+
if (properties[keys[i]] != null)
|
|
38893
|
+
this[keys[i]] = properties[keys[i]];
|
|
38894
|
+
}
|
|
38895
|
+
|
|
38896
|
+
/**
|
|
38897
|
+
* EventTicketsRequest spanContext.
|
|
38898
|
+
* @member {string} spanContext
|
|
38899
|
+
* @memberof EventTicketsRequest
|
|
38900
|
+
* @instance
|
|
38901
|
+
*/
|
|
38902
|
+
EventTicketsRequest.prototype.spanContext = "";
|
|
38903
|
+
|
|
38904
|
+
/**
|
|
38905
|
+
* EventTicketsRequest eventId.
|
|
38906
|
+
* @member {string} eventId
|
|
38907
|
+
* @memberof EventTicketsRequest
|
|
38908
|
+
* @instance
|
|
38909
|
+
*/
|
|
38910
|
+
EventTicketsRequest.prototype.eventId = "";
|
|
38911
|
+
|
|
38912
|
+
/**
|
|
38913
|
+
* EventTicketsRequest promoCode.
|
|
38914
|
+
* @member {string} promoCode
|
|
38915
|
+
* @memberof EventTicketsRequest
|
|
38916
|
+
* @instance
|
|
38917
|
+
*/
|
|
38918
|
+
EventTicketsRequest.prototype.promoCode = "";
|
|
38919
|
+
|
|
38920
|
+
/**
|
|
38921
|
+
* Creates a new EventTicketsRequest instance using the specified properties.
|
|
38922
|
+
* @function create
|
|
38923
|
+
* @memberof EventTicketsRequest
|
|
38924
|
+
* @static
|
|
38925
|
+
* @param {IEventTicketsRequest=} [properties] Properties to set
|
|
38926
|
+
* @returns {EventTicketsRequest} EventTicketsRequest instance
|
|
38927
|
+
*/
|
|
38928
|
+
EventTicketsRequest.create = function create(properties) {
|
|
38929
|
+
return new EventTicketsRequest(properties);
|
|
38930
|
+
};
|
|
38931
|
+
|
|
38932
|
+
/**
|
|
38933
|
+
* Encodes the specified EventTicketsRequest message. Does not implicitly {@link EventTicketsRequest.verify|verify} messages.
|
|
38934
|
+
* @function encode
|
|
38935
|
+
* @memberof EventTicketsRequest
|
|
38936
|
+
* @static
|
|
38937
|
+
* @param {IEventTicketsRequest} message EventTicketsRequest message or plain object to encode
|
|
38938
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38939
|
+
* @returns {$protobuf.Writer} Writer
|
|
38940
|
+
*/
|
|
38941
|
+
EventTicketsRequest.encode = function encode(message, writer) {
|
|
38942
|
+
if (!writer)
|
|
38943
|
+
writer = $Writer.create();
|
|
38944
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
38945
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
38946
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
38947
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventId);
|
|
38948
|
+
if (message.promoCode != null && Object.hasOwnProperty.call(message, "promoCode"))
|
|
38949
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.promoCode);
|
|
38950
|
+
return writer;
|
|
38951
|
+
};
|
|
38952
|
+
|
|
38953
|
+
/**
|
|
38954
|
+
* Encodes the specified EventTicketsRequest message, length delimited. Does not implicitly {@link EventTicketsRequest.verify|verify} messages.
|
|
38955
|
+
* @function encodeDelimited
|
|
38956
|
+
* @memberof EventTicketsRequest
|
|
38957
|
+
* @static
|
|
38958
|
+
* @param {IEventTicketsRequest} message EventTicketsRequest message or plain object to encode
|
|
38959
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38960
|
+
* @returns {$protobuf.Writer} Writer
|
|
38961
|
+
*/
|
|
38962
|
+
EventTicketsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
38963
|
+
return this.encode(message, writer).ldelim();
|
|
38964
|
+
};
|
|
38965
|
+
|
|
38966
|
+
/**
|
|
38967
|
+
* Decodes an EventTicketsRequest message from the specified reader or buffer.
|
|
38968
|
+
* @function decode
|
|
38969
|
+
* @memberof EventTicketsRequest
|
|
38970
|
+
* @static
|
|
38971
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38972
|
+
* @param {number} [length] Message length if known beforehand
|
|
38973
|
+
* @returns {EventTicketsRequest} EventTicketsRequest
|
|
38974
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38975
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38976
|
+
*/
|
|
38977
|
+
EventTicketsRequest.decode = function decode(reader, length) {
|
|
38978
|
+
if (!(reader instanceof $Reader))
|
|
38979
|
+
reader = $Reader.create(reader);
|
|
38980
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventTicketsRequest();
|
|
38981
|
+
while (reader.pos < end) {
|
|
38982
|
+
var tag = reader.uint32();
|
|
38983
|
+
switch (tag >>> 3) {
|
|
38984
|
+
case 0:
|
|
38985
|
+
message.spanContext = reader.string();
|
|
38986
|
+
break;
|
|
38987
|
+
case 1:
|
|
38988
|
+
message.eventId = reader.string();
|
|
38989
|
+
break;
|
|
38990
|
+
case 2:
|
|
38991
|
+
message.promoCode = reader.string();
|
|
38992
|
+
break;
|
|
38993
|
+
default:
|
|
38994
|
+
reader.skipType(tag & 7);
|
|
38995
|
+
break;
|
|
38996
|
+
}
|
|
38997
|
+
}
|
|
38998
|
+
return message;
|
|
38999
|
+
};
|
|
39000
|
+
|
|
39001
|
+
/**
|
|
39002
|
+
* Decodes an EventTicketsRequest message from the specified reader or buffer, length delimited.
|
|
39003
|
+
* @function decodeDelimited
|
|
39004
|
+
* @memberof EventTicketsRequest
|
|
39005
|
+
* @static
|
|
39006
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39007
|
+
* @returns {EventTicketsRequest} EventTicketsRequest
|
|
39008
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39009
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39010
|
+
*/
|
|
39011
|
+
EventTicketsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
39012
|
+
if (!(reader instanceof $Reader))
|
|
39013
|
+
reader = new $Reader(reader);
|
|
39014
|
+
return this.decode(reader, reader.uint32());
|
|
39015
|
+
};
|
|
39016
|
+
|
|
39017
|
+
/**
|
|
39018
|
+
* Verifies an EventTicketsRequest message.
|
|
39019
|
+
* @function verify
|
|
39020
|
+
* @memberof EventTicketsRequest
|
|
39021
|
+
* @static
|
|
39022
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39023
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39024
|
+
*/
|
|
39025
|
+
EventTicketsRequest.verify = function verify(message) {
|
|
39026
|
+
if (typeof message !== "object" || message === null)
|
|
39027
|
+
return "object expected";
|
|
39028
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
39029
|
+
if (!$util.isString(message.spanContext))
|
|
39030
|
+
return "spanContext: string expected";
|
|
39031
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
39032
|
+
if (!$util.isString(message.eventId))
|
|
39033
|
+
return "eventId: string expected";
|
|
39034
|
+
if (message.promoCode != null && message.hasOwnProperty("promoCode"))
|
|
39035
|
+
if (!$util.isString(message.promoCode))
|
|
39036
|
+
return "promoCode: string expected";
|
|
39037
|
+
return null;
|
|
39038
|
+
};
|
|
39039
|
+
|
|
39040
|
+
/**
|
|
39041
|
+
* Creates an EventTicketsRequest message from a plain object. Also converts values to their respective internal types.
|
|
39042
|
+
* @function fromObject
|
|
39043
|
+
* @memberof EventTicketsRequest
|
|
39044
|
+
* @static
|
|
39045
|
+
* @param {Object.<string,*>} object Plain object
|
|
39046
|
+
* @returns {EventTicketsRequest} EventTicketsRequest
|
|
39047
|
+
*/
|
|
39048
|
+
EventTicketsRequest.fromObject = function fromObject(object) {
|
|
39049
|
+
if (object instanceof $root.EventTicketsRequest)
|
|
39050
|
+
return object;
|
|
39051
|
+
var message = new $root.EventTicketsRequest();
|
|
39052
|
+
if (object.spanContext != null)
|
|
39053
|
+
message.spanContext = String(object.spanContext);
|
|
39054
|
+
if (object.eventId != null)
|
|
39055
|
+
message.eventId = String(object.eventId);
|
|
39056
|
+
if (object.promoCode != null)
|
|
39057
|
+
message.promoCode = String(object.promoCode);
|
|
39058
|
+
return message;
|
|
39059
|
+
};
|
|
39060
|
+
|
|
39061
|
+
/**
|
|
39062
|
+
* Creates a plain object from an EventTicketsRequest message. Also converts values to other types if specified.
|
|
39063
|
+
* @function toObject
|
|
39064
|
+
* @memberof EventTicketsRequest
|
|
39065
|
+
* @static
|
|
39066
|
+
* @param {EventTicketsRequest} message EventTicketsRequest
|
|
39067
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39068
|
+
* @returns {Object.<string,*>} Plain object
|
|
39069
|
+
*/
|
|
39070
|
+
EventTicketsRequest.toObject = function toObject(message, options) {
|
|
39071
|
+
if (!options)
|
|
39072
|
+
options = {};
|
|
39073
|
+
var object = {};
|
|
39074
|
+
if (options.defaults) {
|
|
39075
|
+
object.spanContext = "";
|
|
39076
|
+
object.eventId = "";
|
|
39077
|
+
object.promoCode = "";
|
|
39078
|
+
}
|
|
39079
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
39080
|
+
object.spanContext = message.spanContext;
|
|
39081
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
39082
|
+
object.eventId = message.eventId;
|
|
39083
|
+
if (message.promoCode != null && message.hasOwnProperty("promoCode"))
|
|
39084
|
+
object.promoCode = message.promoCode;
|
|
39085
|
+
return object;
|
|
39086
|
+
};
|
|
39087
|
+
|
|
39088
|
+
/**
|
|
39089
|
+
* Converts this EventTicketsRequest to JSON.
|
|
39090
|
+
* @function toJSON
|
|
39091
|
+
* @memberof EventTicketsRequest
|
|
39092
|
+
* @instance
|
|
39093
|
+
* @returns {Object.<string,*>} JSON object
|
|
39094
|
+
*/
|
|
39095
|
+
EventTicketsRequest.prototype.toJSON = function toJSON() {
|
|
39096
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39097
|
+
};
|
|
39098
|
+
|
|
39099
|
+
return EventTicketsRequest;
|
|
39100
|
+
})();
|
|
39101
|
+
|
|
39102
|
+
$root.EventTicketsResponse = (function() {
|
|
39103
|
+
|
|
39104
|
+
/**
|
|
39105
|
+
* Properties of an EventTicketsResponse.
|
|
39106
|
+
* @exports IEventTicketsResponse
|
|
39107
|
+
* @interface IEventTicketsResponse
|
|
39108
|
+
* @property {StatusCode|null} [status] EventTicketsResponse status
|
|
39109
|
+
* @property {Array.<IError>|null} [errors] EventTicketsResponse errors
|
|
39110
|
+
* @property {Array.<ITicketType>|null} [tickets] EventTicketsResponse tickets
|
|
39111
|
+
*/
|
|
39112
|
+
|
|
39113
|
+
/**
|
|
39114
|
+
* Constructs a new EventTicketsResponse.
|
|
39115
|
+
* @exports EventTicketsResponse
|
|
39116
|
+
* @classdesc Represents an EventTicketsResponse.
|
|
39117
|
+
* @implements IEventTicketsResponse
|
|
39118
|
+
* @constructor
|
|
39119
|
+
* @param {IEventTicketsResponse=} [properties] Properties to set
|
|
39120
|
+
*/
|
|
39121
|
+
function EventTicketsResponse(properties) {
|
|
39122
|
+
this.errors = [];
|
|
39123
|
+
this.tickets = [];
|
|
39124
|
+
if (properties)
|
|
39125
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39126
|
+
if (properties[keys[i]] != null)
|
|
39127
|
+
this[keys[i]] = properties[keys[i]];
|
|
39128
|
+
}
|
|
39129
|
+
|
|
39130
|
+
/**
|
|
39131
|
+
* EventTicketsResponse status.
|
|
39132
|
+
* @member {StatusCode} status
|
|
39133
|
+
* @memberof EventTicketsResponse
|
|
39134
|
+
* @instance
|
|
39135
|
+
*/
|
|
39136
|
+
EventTicketsResponse.prototype.status = 0;
|
|
39137
|
+
|
|
39138
|
+
/**
|
|
39139
|
+
* EventTicketsResponse errors.
|
|
39140
|
+
* @member {Array.<IError>} errors
|
|
39141
|
+
* @memberof EventTicketsResponse
|
|
39142
|
+
* @instance
|
|
39143
|
+
*/
|
|
39144
|
+
EventTicketsResponse.prototype.errors = $util.emptyArray;
|
|
39145
|
+
|
|
39146
|
+
/**
|
|
39147
|
+
* EventTicketsResponse tickets.
|
|
39148
|
+
* @member {Array.<ITicketType>} tickets
|
|
39149
|
+
* @memberof EventTicketsResponse
|
|
39150
|
+
* @instance
|
|
39151
|
+
*/
|
|
39152
|
+
EventTicketsResponse.prototype.tickets = $util.emptyArray;
|
|
39153
|
+
|
|
39154
|
+
/**
|
|
39155
|
+
* Creates a new EventTicketsResponse instance using the specified properties.
|
|
39156
|
+
* @function create
|
|
39157
|
+
* @memberof EventTicketsResponse
|
|
39158
|
+
* @static
|
|
39159
|
+
* @param {IEventTicketsResponse=} [properties] Properties to set
|
|
39160
|
+
* @returns {EventTicketsResponse} EventTicketsResponse instance
|
|
39161
|
+
*/
|
|
39162
|
+
EventTicketsResponse.create = function create(properties) {
|
|
39163
|
+
return new EventTicketsResponse(properties);
|
|
39164
|
+
};
|
|
39165
|
+
|
|
39166
|
+
/**
|
|
39167
|
+
* Encodes the specified EventTicketsResponse message. Does not implicitly {@link EventTicketsResponse.verify|verify} messages.
|
|
39168
|
+
* @function encode
|
|
39169
|
+
* @memberof EventTicketsResponse
|
|
39170
|
+
* @static
|
|
39171
|
+
* @param {IEventTicketsResponse} message EventTicketsResponse message or plain object to encode
|
|
39172
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39173
|
+
* @returns {$protobuf.Writer} Writer
|
|
39174
|
+
*/
|
|
39175
|
+
EventTicketsResponse.encode = function encode(message, writer) {
|
|
39176
|
+
if (!writer)
|
|
39177
|
+
writer = $Writer.create();
|
|
39178
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
39179
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
39180
|
+
if (message.errors != null && message.errors.length)
|
|
39181
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
39182
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
39183
|
+
if (message.tickets != null && message.tickets.length)
|
|
39184
|
+
for (var i = 0; i < message.tickets.length; ++i)
|
|
39185
|
+
$root.TicketType.encode(message.tickets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
39186
|
+
return writer;
|
|
39187
|
+
};
|
|
39188
|
+
|
|
39189
|
+
/**
|
|
39190
|
+
* Encodes the specified EventTicketsResponse message, length delimited. Does not implicitly {@link EventTicketsResponse.verify|verify} messages.
|
|
39191
|
+
* @function encodeDelimited
|
|
39192
|
+
* @memberof EventTicketsResponse
|
|
39193
|
+
* @static
|
|
39194
|
+
* @param {IEventTicketsResponse} message EventTicketsResponse message or plain object to encode
|
|
39195
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39196
|
+
* @returns {$protobuf.Writer} Writer
|
|
39197
|
+
*/
|
|
39198
|
+
EventTicketsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39199
|
+
return this.encode(message, writer).ldelim();
|
|
39200
|
+
};
|
|
39201
|
+
|
|
39202
|
+
/**
|
|
39203
|
+
* Decodes an EventTicketsResponse message from the specified reader or buffer.
|
|
39204
|
+
* @function decode
|
|
39205
|
+
* @memberof EventTicketsResponse
|
|
39206
|
+
* @static
|
|
39207
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39208
|
+
* @param {number} [length] Message length if known beforehand
|
|
39209
|
+
* @returns {EventTicketsResponse} EventTicketsResponse
|
|
39210
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39211
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39212
|
+
*/
|
|
39213
|
+
EventTicketsResponse.decode = function decode(reader, length) {
|
|
39214
|
+
if (!(reader instanceof $Reader))
|
|
39215
|
+
reader = $Reader.create(reader);
|
|
39216
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventTicketsResponse();
|
|
39217
|
+
while (reader.pos < end) {
|
|
39218
|
+
var tag = reader.uint32();
|
|
39219
|
+
switch (tag >>> 3) {
|
|
39220
|
+
case 0:
|
|
39221
|
+
message.status = reader.int32();
|
|
39222
|
+
break;
|
|
39223
|
+
case 1:
|
|
39224
|
+
if (!(message.errors && message.errors.length))
|
|
39225
|
+
message.errors = [];
|
|
39226
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
39227
|
+
break;
|
|
39228
|
+
case 2:
|
|
39229
|
+
if (!(message.tickets && message.tickets.length))
|
|
39230
|
+
message.tickets = [];
|
|
39231
|
+
message.tickets.push($root.TicketType.decode(reader, reader.uint32()));
|
|
39232
|
+
break;
|
|
39233
|
+
default:
|
|
39234
|
+
reader.skipType(tag & 7);
|
|
39235
|
+
break;
|
|
39236
|
+
}
|
|
39237
|
+
}
|
|
39238
|
+
return message;
|
|
39239
|
+
};
|
|
39240
|
+
|
|
39241
|
+
/**
|
|
39242
|
+
* Decodes an EventTicketsResponse message from the specified reader or buffer, length delimited.
|
|
39243
|
+
* @function decodeDelimited
|
|
39244
|
+
* @memberof EventTicketsResponse
|
|
39245
|
+
* @static
|
|
39246
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39247
|
+
* @returns {EventTicketsResponse} EventTicketsResponse
|
|
39248
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39249
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39250
|
+
*/
|
|
39251
|
+
EventTicketsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
39252
|
+
if (!(reader instanceof $Reader))
|
|
39253
|
+
reader = new $Reader(reader);
|
|
39254
|
+
return this.decode(reader, reader.uint32());
|
|
39255
|
+
};
|
|
39256
|
+
|
|
39257
|
+
/**
|
|
39258
|
+
* Verifies an EventTicketsResponse message.
|
|
39259
|
+
* @function verify
|
|
39260
|
+
* @memberof EventTicketsResponse
|
|
39261
|
+
* @static
|
|
39262
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39263
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39264
|
+
*/
|
|
39265
|
+
EventTicketsResponse.verify = function verify(message) {
|
|
39266
|
+
if (typeof message !== "object" || message === null)
|
|
39267
|
+
return "object expected";
|
|
39268
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
39269
|
+
switch (message.status) {
|
|
39270
|
+
default:
|
|
39271
|
+
return "status: enum value expected";
|
|
39272
|
+
case 0:
|
|
39273
|
+
case 200:
|
|
39274
|
+
case 400:
|
|
39275
|
+
case 401:
|
|
39276
|
+
case 403:
|
|
39277
|
+
case 422:
|
|
39278
|
+
case 500:
|
|
39279
|
+
case 504:
|
|
39280
|
+
break;
|
|
39281
|
+
}
|
|
39282
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
39283
|
+
if (!Array.isArray(message.errors))
|
|
39284
|
+
return "errors: array expected";
|
|
39285
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
39286
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
39287
|
+
if (error)
|
|
39288
|
+
return "errors." + error;
|
|
39289
|
+
}
|
|
39290
|
+
}
|
|
39291
|
+
if (message.tickets != null && message.hasOwnProperty("tickets")) {
|
|
39292
|
+
if (!Array.isArray(message.tickets))
|
|
39293
|
+
return "tickets: array expected";
|
|
39294
|
+
for (var i = 0; i < message.tickets.length; ++i) {
|
|
39295
|
+
var error = $root.TicketType.verify(message.tickets[i]);
|
|
39296
|
+
if (error)
|
|
39297
|
+
return "tickets." + error;
|
|
39298
|
+
}
|
|
39299
|
+
}
|
|
39300
|
+
return null;
|
|
39301
|
+
};
|
|
39302
|
+
|
|
39303
|
+
/**
|
|
39304
|
+
* Creates an EventTicketsResponse message from a plain object. Also converts values to their respective internal types.
|
|
39305
|
+
* @function fromObject
|
|
39306
|
+
* @memberof EventTicketsResponse
|
|
39307
|
+
* @static
|
|
39308
|
+
* @param {Object.<string,*>} object Plain object
|
|
39309
|
+
* @returns {EventTicketsResponse} EventTicketsResponse
|
|
39310
|
+
*/
|
|
39311
|
+
EventTicketsResponse.fromObject = function fromObject(object) {
|
|
39312
|
+
if (object instanceof $root.EventTicketsResponse)
|
|
39313
|
+
return object;
|
|
39314
|
+
var message = new $root.EventTicketsResponse();
|
|
39315
|
+
switch (object.status) {
|
|
39316
|
+
case "UNKNOWN_CODE":
|
|
39317
|
+
case 0:
|
|
39318
|
+
message.status = 0;
|
|
39319
|
+
break;
|
|
39320
|
+
case "OK":
|
|
39321
|
+
case 200:
|
|
39322
|
+
message.status = 200;
|
|
39323
|
+
break;
|
|
39324
|
+
case "BAD_REQUEST":
|
|
39325
|
+
case 400:
|
|
39326
|
+
message.status = 400;
|
|
39327
|
+
break;
|
|
39328
|
+
case "UNAUTHORIZED":
|
|
39329
|
+
case 401:
|
|
39330
|
+
message.status = 401;
|
|
39331
|
+
break;
|
|
39332
|
+
case "FORBIDDEN":
|
|
39333
|
+
case 403:
|
|
39334
|
+
message.status = 403;
|
|
39335
|
+
break;
|
|
39336
|
+
case "UNPROCESSABLE_ENTITY":
|
|
39337
|
+
case 422:
|
|
39338
|
+
message.status = 422;
|
|
39339
|
+
break;
|
|
39340
|
+
case "INTERNAL_SERVER_ERROR":
|
|
39341
|
+
case 500:
|
|
39342
|
+
message.status = 500;
|
|
39343
|
+
break;
|
|
39344
|
+
case "GATEWAY_TIMEOUT":
|
|
39345
|
+
case 504:
|
|
39346
|
+
message.status = 504;
|
|
39347
|
+
break;
|
|
39348
|
+
}
|
|
39349
|
+
if (object.errors) {
|
|
39350
|
+
if (!Array.isArray(object.errors))
|
|
39351
|
+
throw TypeError(".EventTicketsResponse.errors: array expected");
|
|
39352
|
+
message.errors = [];
|
|
39353
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
39354
|
+
if (typeof object.errors[i] !== "object")
|
|
39355
|
+
throw TypeError(".EventTicketsResponse.errors: object expected");
|
|
39356
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
39357
|
+
}
|
|
39358
|
+
}
|
|
39359
|
+
if (object.tickets) {
|
|
39360
|
+
if (!Array.isArray(object.tickets))
|
|
39361
|
+
throw TypeError(".EventTicketsResponse.tickets: array expected");
|
|
39362
|
+
message.tickets = [];
|
|
39363
|
+
for (var i = 0; i < object.tickets.length; ++i) {
|
|
39364
|
+
if (typeof object.tickets[i] !== "object")
|
|
39365
|
+
throw TypeError(".EventTicketsResponse.tickets: object expected");
|
|
39366
|
+
message.tickets[i] = $root.TicketType.fromObject(object.tickets[i]);
|
|
39367
|
+
}
|
|
39368
|
+
}
|
|
39369
|
+
return message;
|
|
39370
|
+
};
|
|
39371
|
+
|
|
39372
|
+
/**
|
|
39373
|
+
* Creates a plain object from an EventTicketsResponse message. Also converts values to other types if specified.
|
|
39374
|
+
* @function toObject
|
|
39375
|
+
* @memberof EventTicketsResponse
|
|
39376
|
+
* @static
|
|
39377
|
+
* @param {EventTicketsResponse} message EventTicketsResponse
|
|
39378
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39379
|
+
* @returns {Object.<string,*>} Plain object
|
|
39380
|
+
*/
|
|
39381
|
+
EventTicketsResponse.toObject = function toObject(message, options) {
|
|
39382
|
+
if (!options)
|
|
39383
|
+
options = {};
|
|
39384
|
+
var object = {};
|
|
39385
|
+
if (options.arrays || options.defaults) {
|
|
39386
|
+
object.errors = [];
|
|
39387
|
+
object.tickets = [];
|
|
39388
|
+
}
|
|
39389
|
+
if (options.defaults)
|
|
39390
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
39391
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
39392
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
39393
|
+
if (message.errors && message.errors.length) {
|
|
39394
|
+
object.errors = [];
|
|
39395
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
39396
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
39397
|
+
}
|
|
39398
|
+
if (message.tickets && message.tickets.length) {
|
|
39399
|
+
object.tickets = [];
|
|
39400
|
+
for (var j = 0; j < message.tickets.length; ++j)
|
|
39401
|
+
object.tickets[j] = $root.TicketType.toObject(message.tickets[j], options);
|
|
39402
|
+
}
|
|
39403
|
+
return object;
|
|
39404
|
+
};
|
|
39405
|
+
|
|
39406
|
+
/**
|
|
39407
|
+
* Converts this EventTicketsResponse to JSON.
|
|
39408
|
+
* @function toJSON
|
|
39409
|
+
* @memberof EventTicketsResponse
|
|
39410
|
+
* @instance
|
|
39411
|
+
* @returns {Object.<string,*>} JSON object
|
|
39412
|
+
*/
|
|
39413
|
+
EventTicketsResponse.prototype.toJSON = function toJSON() {
|
|
39414
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39415
|
+
};
|
|
39416
|
+
|
|
39417
|
+
return EventTicketsResponse;
|
|
39418
|
+
})();
|
|
39419
|
+
|
|
38870
39420
|
$root.FindEventByIdRequest = (function() {
|
|
38871
39421
|
|
|
38872
39422
|
/**
|
|
@@ -42358,6 +42908,39 @@ $root.EventService = (function() {
|
|
|
42358
42908
|
* @variation 2
|
|
42359
42909
|
*/
|
|
42360
42910
|
|
|
42911
|
+
/**
|
|
42912
|
+
* Callback as used by {@link EventService#eventTickets}.
|
|
42913
|
+
* @memberof EventService
|
|
42914
|
+
* @typedef eventTicketsCallback
|
|
42915
|
+
* @type {function}
|
|
42916
|
+
* @param {Error|null} error Error, if any
|
|
42917
|
+
* @param {EventTicketsResponse} [response] EventTicketsResponse
|
|
42918
|
+
*/
|
|
42919
|
+
|
|
42920
|
+
/**
|
|
42921
|
+
* Calls eventTickets.
|
|
42922
|
+
* @function eventTickets
|
|
42923
|
+
* @memberof EventService
|
|
42924
|
+
* @instance
|
|
42925
|
+
* @param {IEventTicketsRequest} request EventTicketsRequest message or plain object
|
|
42926
|
+
* @param {EventService.eventTicketsCallback} callback Node-style callback called with the error, if any, and EventTicketsResponse
|
|
42927
|
+
* @returns {undefined}
|
|
42928
|
+
* @variation 1
|
|
42929
|
+
*/
|
|
42930
|
+
Object.defineProperty(EventService.prototype.eventTickets = function eventTickets(request, callback) {
|
|
42931
|
+
return this.rpcCall(eventTickets, $root.EventTicketsRequest, $root.EventTicketsResponse, request, callback);
|
|
42932
|
+
}, "name", { value: "eventTickets" });
|
|
42933
|
+
|
|
42934
|
+
/**
|
|
42935
|
+
* Calls eventTickets.
|
|
42936
|
+
* @function eventTickets
|
|
42937
|
+
* @memberof EventService
|
|
42938
|
+
* @instance
|
|
42939
|
+
* @param {IEventTicketsRequest} request EventTicketsRequest message or plain object
|
|
42940
|
+
* @returns {Promise<EventTicketsResponse>} Promise
|
|
42941
|
+
* @variation 2
|
|
42942
|
+
*/
|
|
42943
|
+
|
|
42361
42944
|
/**
|
|
42362
42945
|
* Callback as used by {@link EventService#findEventById}.
|
|
42363
42946
|
* @memberof EventService
|
|
@@ -65321,6 +65904,348 @@ $root.StripePaymentMethod = (function() {
|
|
|
65321
65904
|
return StripePaymentMethod;
|
|
65322
65905
|
})();
|
|
65323
65906
|
|
|
65907
|
+
$root.Card = (function() {
|
|
65908
|
+
|
|
65909
|
+
/**
|
|
65910
|
+
* Properties of a Card.
|
|
65911
|
+
* @exports ICard
|
|
65912
|
+
* @interface ICard
|
|
65913
|
+
* @property {string|null} [brand] Card brand
|
|
65914
|
+
* @property {string|null} [last4] Card last4
|
|
65915
|
+
* @property {number|null} [expMonth] Card expMonth
|
|
65916
|
+
* @property {number|null} [expYear] Card expYear
|
|
65917
|
+
* @property {string|null} [funding] Card funding
|
|
65918
|
+
* @property {string|null} [country] Card country
|
|
65919
|
+
* @property {string|null} [paymentMethodId] Card paymentMethodId
|
|
65920
|
+
* @property {string|null} [type] Card type
|
|
65921
|
+
*/
|
|
65922
|
+
|
|
65923
|
+
/**
|
|
65924
|
+
* Constructs a new Card.
|
|
65925
|
+
* @exports Card
|
|
65926
|
+
* @classdesc Represents a Card.
|
|
65927
|
+
* @implements ICard
|
|
65928
|
+
* @constructor
|
|
65929
|
+
* @param {ICard=} [properties] Properties to set
|
|
65930
|
+
*/
|
|
65931
|
+
function Card(properties) {
|
|
65932
|
+
if (properties)
|
|
65933
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65934
|
+
if (properties[keys[i]] != null)
|
|
65935
|
+
this[keys[i]] = properties[keys[i]];
|
|
65936
|
+
}
|
|
65937
|
+
|
|
65938
|
+
/**
|
|
65939
|
+
* Card brand.
|
|
65940
|
+
* @member {string} brand
|
|
65941
|
+
* @memberof Card
|
|
65942
|
+
* @instance
|
|
65943
|
+
*/
|
|
65944
|
+
Card.prototype.brand = "";
|
|
65945
|
+
|
|
65946
|
+
/**
|
|
65947
|
+
* Card last4.
|
|
65948
|
+
* @member {string} last4
|
|
65949
|
+
* @memberof Card
|
|
65950
|
+
* @instance
|
|
65951
|
+
*/
|
|
65952
|
+
Card.prototype.last4 = "";
|
|
65953
|
+
|
|
65954
|
+
/**
|
|
65955
|
+
* Card expMonth.
|
|
65956
|
+
* @member {number} expMonth
|
|
65957
|
+
* @memberof Card
|
|
65958
|
+
* @instance
|
|
65959
|
+
*/
|
|
65960
|
+
Card.prototype.expMonth = 0;
|
|
65961
|
+
|
|
65962
|
+
/**
|
|
65963
|
+
* Card expYear.
|
|
65964
|
+
* @member {number} expYear
|
|
65965
|
+
* @memberof Card
|
|
65966
|
+
* @instance
|
|
65967
|
+
*/
|
|
65968
|
+
Card.prototype.expYear = 0;
|
|
65969
|
+
|
|
65970
|
+
/**
|
|
65971
|
+
* Card funding.
|
|
65972
|
+
* @member {string} funding
|
|
65973
|
+
* @memberof Card
|
|
65974
|
+
* @instance
|
|
65975
|
+
*/
|
|
65976
|
+
Card.prototype.funding = "";
|
|
65977
|
+
|
|
65978
|
+
/**
|
|
65979
|
+
* Card country.
|
|
65980
|
+
* @member {string} country
|
|
65981
|
+
* @memberof Card
|
|
65982
|
+
* @instance
|
|
65983
|
+
*/
|
|
65984
|
+
Card.prototype.country = "";
|
|
65985
|
+
|
|
65986
|
+
/**
|
|
65987
|
+
* Card paymentMethodId.
|
|
65988
|
+
* @member {string} paymentMethodId
|
|
65989
|
+
* @memberof Card
|
|
65990
|
+
* @instance
|
|
65991
|
+
*/
|
|
65992
|
+
Card.prototype.paymentMethodId = "";
|
|
65993
|
+
|
|
65994
|
+
/**
|
|
65995
|
+
* Card type.
|
|
65996
|
+
* @member {string} type
|
|
65997
|
+
* @memberof Card
|
|
65998
|
+
* @instance
|
|
65999
|
+
*/
|
|
66000
|
+
Card.prototype.type = "";
|
|
66001
|
+
|
|
66002
|
+
/**
|
|
66003
|
+
* Creates a new Card instance using the specified properties.
|
|
66004
|
+
* @function create
|
|
66005
|
+
* @memberof Card
|
|
66006
|
+
* @static
|
|
66007
|
+
* @param {ICard=} [properties] Properties to set
|
|
66008
|
+
* @returns {Card} Card instance
|
|
66009
|
+
*/
|
|
66010
|
+
Card.create = function create(properties) {
|
|
66011
|
+
return new Card(properties);
|
|
66012
|
+
};
|
|
66013
|
+
|
|
66014
|
+
/**
|
|
66015
|
+
* Encodes the specified Card message. Does not implicitly {@link Card.verify|verify} messages.
|
|
66016
|
+
* @function encode
|
|
66017
|
+
* @memberof Card
|
|
66018
|
+
* @static
|
|
66019
|
+
* @param {ICard} message Card message or plain object to encode
|
|
66020
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66021
|
+
* @returns {$protobuf.Writer} Writer
|
|
66022
|
+
*/
|
|
66023
|
+
Card.encode = function encode(message, writer) {
|
|
66024
|
+
if (!writer)
|
|
66025
|
+
writer = $Writer.create();
|
|
66026
|
+
if (message.brand != null && Object.hasOwnProperty.call(message, "brand"))
|
|
66027
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.brand);
|
|
66028
|
+
if (message.last4 != null && Object.hasOwnProperty.call(message, "last4"))
|
|
66029
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.last4);
|
|
66030
|
+
if (message.expMonth != null && Object.hasOwnProperty.call(message, "expMonth"))
|
|
66031
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.expMonth);
|
|
66032
|
+
if (message.expYear != null && Object.hasOwnProperty.call(message, "expYear"))
|
|
66033
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.expYear);
|
|
66034
|
+
if (message.funding != null && Object.hasOwnProperty.call(message, "funding"))
|
|
66035
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.funding);
|
|
66036
|
+
if (message.country != null && Object.hasOwnProperty.call(message, "country"))
|
|
66037
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.country);
|
|
66038
|
+
if (message.paymentMethodId != null && Object.hasOwnProperty.call(message, "paymentMethodId"))
|
|
66039
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.paymentMethodId);
|
|
66040
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
66041
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.type);
|
|
66042
|
+
return writer;
|
|
66043
|
+
};
|
|
66044
|
+
|
|
66045
|
+
/**
|
|
66046
|
+
* Encodes the specified Card message, length delimited. Does not implicitly {@link Card.verify|verify} messages.
|
|
66047
|
+
* @function encodeDelimited
|
|
66048
|
+
* @memberof Card
|
|
66049
|
+
* @static
|
|
66050
|
+
* @param {ICard} message Card message or plain object to encode
|
|
66051
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66052
|
+
* @returns {$protobuf.Writer} Writer
|
|
66053
|
+
*/
|
|
66054
|
+
Card.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66055
|
+
return this.encode(message, writer).ldelim();
|
|
66056
|
+
};
|
|
66057
|
+
|
|
66058
|
+
/**
|
|
66059
|
+
* Decodes a Card message from the specified reader or buffer.
|
|
66060
|
+
* @function decode
|
|
66061
|
+
* @memberof Card
|
|
66062
|
+
* @static
|
|
66063
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66064
|
+
* @param {number} [length] Message length if known beforehand
|
|
66065
|
+
* @returns {Card} Card
|
|
66066
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66067
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66068
|
+
*/
|
|
66069
|
+
Card.decode = function decode(reader, length) {
|
|
66070
|
+
if (!(reader instanceof $Reader))
|
|
66071
|
+
reader = $Reader.create(reader);
|
|
66072
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Card();
|
|
66073
|
+
while (reader.pos < end) {
|
|
66074
|
+
var tag = reader.uint32();
|
|
66075
|
+
switch (tag >>> 3) {
|
|
66076
|
+
case 1:
|
|
66077
|
+
message.brand = reader.string();
|
|
66078
|
+
break;
|
|
66079
|
+
case 2:
|
|
66080
|
+
message.last4 = reader.string();
|
|
66081
|
+
break;
|
|
66082
|
+
case 3:
|
|
66083
|
+
message.expMonth = reader.int32();
|
|
66084
|
+
break;
|
|
66085
|
+
case 4:
|
|
66086
|
+
message.expYear = reader.int32();
|
|
66087
|
+
break;
|
|
66088
|
+
case 5:
|
|
66089
|
+
message.funding = reader.string();
|
|
66090
|
+
break;
|
|
66091
|
+
case 6:
|
|
66092
|
+
message.country = reader.string();
|
|
66093
|
+
break;
|
|
66094
|
+
case 7:
|
|
66095
|
+
message.paymentMethodId = reader.string();
|
|
66096
|
+
break;
|
|
66097
|
+
case 8:
|
|
66098
|
+
message.type = reader.string();
|
|
66099
|
+
break;
|
|
66100
|
+
default:
|
|
66101
|
+
reader.skipType(tag & 7);
|
|
66102
|
+
break;
|
|
66103
|
+
}
|
|
66104
|
+
}
|
|
66105
|
+
return message;
|
|
66106
|
+
};
|
|
66107
|
+
|
|
66108
|
+
/**
|
|
66109
|
+
* Decodes a Card message from the specified reader or buffer, length delimited.
|
|
66110
|
+
* @function decodeDelimited
|
|
66111
|
+
* @memberof Card
|
|
66112
|
+
* @static
|
|
66113
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66114
|
+
* @returns {Card} Card
|
|
66115
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66116
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66117
|
+
*/
|
|
66118
|
+
Card.decodeDelimited = function decodeDelimited(reader) {
|
|
66119
|
+
if (!(reader instanceof $Reader))
|
|
66120
|
+
reader = new $Reader(reader);
|
|
66121
|
+
return this.decode(reader, reader.uint32());
|
|
66122
|
+
};
|
|
66123
|
+
|
|
66124
|
+
/**
|
|
66125
|
+
* Verifies a Card message.
|
|
66126
|
+
* @function verify
|
|
66127
|
+
* @memberof Card
|
|
66128
|
+
* @static
|
|
66129
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66130
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66131
|
+
*/
|
|
66132
|
+
Card.verify = function verify(message) {
|
|
66133
|
+
if (typeof message !== "object" || message === null)
|
|
66134
|
+
return "object expected";
|
|
66135
|
+
if (message.brand != null && message.hasOwnProperty("brand"))
|
|
66136
|
+
if (!$util.isString(message.brand))
|
|
66137
|
+
return "brand: string expected";
|
|
66138
|
+
if (message.last4 != null && message.hasOwnProperty("last4"))
|
|
66139
|
+
if (!$util.isString(message.last4))
|
|
66140
|
+
return "last4: string expected";
|
|
66141
|
+
if (message.expMonth != null && message.hasOwnProperty("expMonth"))
|
|
66142
|
+
if (!$util.isInteger(message.expMonth))
|
|
66143
|
+
return "expMonth: integer expected";
|
|
66144
|
+
if (message.expYear != null && message.hasOwnProperty("expYear"))
|
|
66145
|
+
if (!$util.isInteger(message.expYear))
|
|
66146
|
+
return "expYear: integer expected";
|
|
66147
|
+
if (message.funding != null && message.hasOwnProperty("funding"))
|
|
66148
|
+
if (!$util.isString(message.funding))
|
|
66149
|
+
return "funding: string expected";
|
|
66150
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
66151
|
+
if (!$util.isString(message.country))
|
|
66152
|
+
return "country: string expected";
|
|
66153
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
66154
|
+
if (!$util.isString(message.paymentMethodId))
|
|
66155
|
+
return "paymentMethodId: string expected";
|
|
66156
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
66157
|
+
if (!$util.isString(message.type))
|
|
66158
|
+
return "type: string expected";
|
|
66159
|
+
return null;
|
|
66160
|
+
};
|
|
66161
|
+
|
|
66162
|
+
/**
|
|
66163
|
+
* Creates a Card message from a plain object. Also converts values to their respective internal types.
|
|
66164
|
+
* @function fromObject
|
|
66165
|
+
* @memberof Card
|
|
66166
|
+
* @static
|
|
66167
|
+
* @param {Object.<string,*>} object Plain object
|
|
66168
|
+
* @returns {Card} Card
|
|
66169
|
+
*/
|
|
66170
|
+
Card.fromObject = function fromObject(object) {
|
|
66171
|
+
if (object instanceof $root.Card)
|
|
66172
|
+
return object;
|
|
66173
|
+
var message = new $root.Card();
|
|
66174
|
+
if (object.brand != null)
|
|
66175
|
+
message.brand = String(object.brand);
|
|
66176
|
+
if (object.last4 != null)
|
|
66177
|
+
message.last4 = String(object.last4);
|
|
66178
|
+
if (object.expMonth != null)
|
|
66179
|
+
message.expMonth = object.expMonth | 0;
|
|
66180
|
+
if (object.expYear != null)
|
|
66181
|
+
message.expYear = object.expYear | 0;
|
|
66182
|
+
if (object.funding != null)
|
|
66183
|
+
message.funding = String(object.funding);
|
|
66184
|
+
if (object.country != null)
|
|
66185
|
+
message.country = String(object.country);
|
|
66186
|
+
if (object.paymentMethodId != null)
|
|
66187
|
+
message.paymentMethodId = String(object.paymentMethodId);
|
|
66188
|
+
if (object.type != null)
|
|
66189
|
+
message.type = String(object.type);
|
|
66190
|
+
return message;
|
|
66191
|
+
};
|
|
66192
|
+
|
|
66193
|
+
/**
|
|
66194
|
+
* Creates a plain object from a Card message. Also converts values to other types if specified.
|
|
66195
|
+
* @function toObject
|
|
66196
|
+
* @memberof Card
|
|
66197
|
+
* @static
|
|
66198
|
+
* @param {Card} message Card
|
|
66199
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66200
|
+
* @returns {Object.<string,*>} Plain object
|
|
66201
|
+
*/
|
|
66202
|
+
Card.toObject = function toObject(message, options) {
|
|
66203
|
+
if (!options)
|
|
66204
|
+
options = {};
|
|
66205
|
+
var object = {};
|
|
66206
|
+
if (options.defaults) {
|
|
66207
|
+
object.brand = "";
|
|
66208
|
+
object.last4 = "";
|
|
66209
|
+
object.expMonth = 0;
|
|
66210
|
+
object.expYear = 0;
|
|
66211
|
+
object.funding = "";
|
|
66212
|
+
object.country = "";
|
|
66213
|
+
object.paymentMethodId = "";
|
|
66214
|
+
object.type = "";
|
|
66215
|
+
}
|
|
66216
|
+
if (message.brand != null && message.hasOwnProperty("brand"))
|
|
66217
|
+
object.brand = message.brand;
|
|
66218
|
+
if (message.last4 != null && message.hasOwnProperty("last4"))
|
|
66219
|
+
object.last4 = message.last4;
|
|
66220
|
+
if (message.expMonth != null && message.hasOwnProperty("expMonth"))
|
|
66221
|
+
object.expMonth = message.expMonth;
|
|
66222
|
+
if (message.expYear != null && message.hasOwnProperty("expYear"))
|
|
66223
|
+
object.expYear = message.expYear;
|
|
66224
|
+
if (message.funding != null && message.hasOwnProperty("funding"))
|
|
66225
|
+
object.funding = message.funding;
|
|
66226
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
66227
|
+
object.country = message.country;
|
|
66228
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
66229
|
+
object.paymentMethodId = message.paymentMethodId;
|
|
66230
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
66231
|
+
object.type = message.type;
|
|
66232
|
+
return object;
|
|
66233
|
+
};
|
|
66234
|
+
|
|
66235
|
+
/**
|
|
66236
|
+
* Converts this Card to JSON.
|
|
66237
|
+
* @function toJSON
|
|
66238
|
+
* @memberof Card
|
|
66239
|
+
* @instance
|
|
66240
|
+
* @returns {Object.<string,*>} JSON object
|
|
66241
|
+
*/
|
|
66242
|
+
Card.prototype.toJSON = function toJSON() {
|
|
66243
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66244
|
+
};
|
|
66245
|
+
|
|
66246
|
+
return Card;
|
|
66247
|
+
})();
|
|
66248
|
+
|
|
65324
66249
|
$root.ConnectStripeUserRequest = (function() {
|
|
65325
66250
|
|
|
65326
66251
|
/**
|
|
@@ -71719,6 +72644,518 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
71719
72644
|
return AttachStripePaymentMethodResponse;
|
|
71720
72645
|
})();
|
|
71721
72646
|
|
|
72647
|
+
$root.GetStripeCardByMethodRequest = (function() {
|
|
72648
|
+
|
|
72649
|
+
/**
|
|
72650
|
+
* Properties of a GetStripeCardByMethodRequest.
|
|
72651
|
+
* @exports IGetStripeCardByMethodRequest
|
|
72652
|
+
* @interface IGetStripeCardByMethodRequest
|
|
72653
|
+
* @property {string|null} [spanContext] GetStripeCardByMethodRequest spanContext
|
|
72654
|
+
* @property {string|null} [paymentMethodId] GetStripeCardByMethodRequest paymentMethodId
|
|
72655
|
+
*/
|
|
72656
|
+
|
|
72657
|
+
/**
|
|
72658
|
+
* Constructs a new GetStripeCardByMethodRequest.
|
|
72659
|
+
* @exports GetStripeCardByMethodRequest
|
|
72660
|
+
* @classdesc Represents a GetStripeCardByMethodRequest.
|
|
72661
|
+
* @implements IGetStripeCardByMethodRequest
|
|
72662
|
+
* @constructor
|
|
72663
|
+
* @param {IGetStripeCardByMethodRequest=} [properties] Properties to set
|
|
72664
|
+
*/
|
|
72665
|
+
function GetStripeCardByMethodRequest(properties) {
|
|
72666
|
+
if (properties)
|
|
72667
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
72668
|
+
if (properties[keys[i]] != null)
|
|
72669
|
+
this[keys[i]] = properties[keys[i]];
|
|
72670
|
+
}
|
|
72671
|
+
|
|
72672
|
+
/**
|
|
72673
|
+
* GetStripeCardByMethodRequest spanContext.
|
|
72674
|
+
* @member {string} spanContext
|
|
72675
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72676
|
+
* @instance
|
|
72677
|
+
*/
|
|
72678
|
+
GetStripeCardByMethodRequest.prototype.spanContext = "";
|
|
72679
|
+
|
|
72680
|
+
/**
|
|
72681
|
+
* GetStripeCardByMethodRequest paymentMethodId.
|
|
72682
|
+
* @member {string} paymentMethodId
|
|
72683
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72684
|
+
* @instance
|
|
72685
|
+
*/
|
|
72686
|
+
GetStripeCardByMethodRequest.prototype.paymentMethodId = "";
|
|
72687
|
+
|
|
72688
|
+
/**
|
|
72689
|
+
* Creates a new GetStripeCardByMethodRequest instance using the specified properties.
|
|
72690
|
+
* @function create
|
|
72691
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72692
|
+
* @static
|
|
72693
|
+
* @param {IGetStripeCardByMethodRequest=} [properties] Properties to set
|
|
72694
|
+
* @returns {GetStripeCardByMethodRequest} GetStripeCardByMethodRequest instance
|
|
72695
|
+
*/
|
|
72696
|
+
GetStripeCardByMethodRequest.create = function create(properties) {
|
|
72697
|
+
return new GetStripeCardByMethodRequest(properties);
|
|
72698
|
+
};
|
|
72699
|
+
|
|
72700
|
+
/**
|
|
72701
|
+
* Encodes the specified GetStripeCardByMethodRequest message. Does not implicitly {@link GetStripeCardByMethodRequest.verify|verify} messages.
|
|
72702
|
+
* @function encode
|
|
72703
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72704
|
+
* @static
|
|
72705
|
+
* @param {IGetStripeCardByMethodRequest} message GetStripeCardByMethodRequest message or plain object to encode
|
|
72706
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72707
|
+
* @returns {$protobuf.Writer} Writer
|
|
72708
|
+
*/
|
|
72709
|
+
GetStripeCardByMethodRequest.encode = function encode(message, writer) {
|
|
72710
|
+
if (!writer)
|
|
72711
|
+
writer = $Writer.create();
|
|
72712
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
72713
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
72714
|
+
if (message.paymentMethodId != null && Object.hasOwnProperty.call(message, "paymentMethodId"))
|
|
72715
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.paymentMethodId);
|
|
72716
|
+
return writer;
|
|
72717
|
+
};
|
|
72718
|
+
|
|
72719
|
+
/**
|
|
72720
|
+
* Encodes the specified GetStripeCardByMethodRequest message, length delimited. Does not implicitly {@link GetStripeCardByMethodRequest.verify|verify} messages.
|
|
72721
|
+
* @function encodeDelimited
|
|
72722
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72723
|
+
* @static
|
|
72724
|
+
* @param {IGetStripeCardByMethodRequest} message GetStripeCardByMethodRequest message or plain object to encode
|
|
72725
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72726
|
+
* @returns {$protobuf.Writer} Writer
|
|
72727
|
+
*/
|
|
72728
|
+
GetStripeCardByMethodRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
72729
|
+
return this.encode(message, writer).ldelim();
|
|
72730
|
+
};
|
|
72731
|
+
|
|
72732
|
+
/**
|
|
72733
|
+
* Decodes a GetStripeCardByMethodRequest message from the specified reader or buffer.
|
|
72734
|
+
* @function decode
|
|
72735
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72736
|
+
* @static
|
|
72737
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72738
|
+
* @param {number} [length] Message length if known beforehand
|
|
72739
|
+
* @returns {GetStripeCardByMethodRequest} GetStripeCardByMethodRequest
|
|
72740
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72741
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72742
|
+
*/
|
|
72743
|
+
GetStripeCardByMethodRequest.decode = function decode(reader, length) {
|
|
72744
|
+
if (!(reader instanceof $Reader))
|
|
72745
|
+
reader = $Reader.create(reader);
|
|
72746
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GetStripeCardByMethodRequest();
|
|
72747
|
+
while (reader.pos < end) {
|
|
72748
|
+
var tag = reader.uint32();
|
|
72749
|
+
switch (tag >>> 3) {
|
|
72750
|
+
case 0:
|
|
72751
|
+
message.spanContext = reader.string();
|
|
72752
|
+
break;
|
|
72753
|
+
case 1:
|
|
72754
|
+
message.paymentMethodId = reader.string();
|
|
72755
|
+
break;
|
|
72756
|
+
default:
|
|
72757
|
+
reader.skipType(tag & 7);
|
|
72758
|
+
break;
|
|
72759
|
+
}
|
|
72760
|
+
}
|
|
72761
|
+
return message;
|
|
72762
|
+
};
|
|
72763
|
+
|
|
72764
|
+
/**
|
|
72765
|
+
* Decodes a GetStripeCardByMethodRequest message from the specified reader or buffer, length delimited.
|
|
72766
|
+
* @function decodeDelimited
|
|
72767
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72768
|
+
* @static
|
|
72769
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72770
|
+
* @returns {GetStripeCardByMethodRequest} GetStripeCardByMethodRequest
|
|
72771
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72772
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72773
|
+
*/
|
|
72774
|
+
GetStripeCardByMethodRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
72775
|
+
if (!(reader instanceof $Reader))
|
|
72776
|
+
reader = new $Reader(reader);
|
|
72777
|
+
return this.decode(reader, reader.uint32());
|
|
72778
|
+
};
|
|
72779
|
+
|
|
72780
|
+
/**
|
|
72781
|
+
* Verifies a GetStripeCardByMethodRequest message.
|
|
72782
|
+
* @function verify
|
|
72783
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72784
|
+
* @static
|
|
72785
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
72786
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
72787
|
+
*/
|
|
72788
|
+
GetStripeCardByMethodRequest.verify = function verify(message) {
|
|
72789
|
+
if (typeof message !== "object" || message === null)
|
|
72790
|
+
return "object expected";
|
|
72791
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
72792
|
+
if (!$util.isString(message.spanContext))
|
|
72793
|
+
return "spanContext: string expected";
|
|
72794
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
72795
|
+
if (!$util.isString(message.paymentMethodId))
|
|
72796
|
+
return "paymentMethodId: string expected";
|
|
72797
|
+
return null;
|
|
72798
|
+
};
|
|
72799
|
+
|
|
72800
|
+
/**
|
|
72801
|
+
* Creates a GetStripeCardByMethodRequest message from a plain object. Also converts values to their respective internal types.
|
|
72802
|
+
* @function fromObject
|
|
72803
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72804
|
+
* @static
|
|
72805
|
+
* @param {Object.<string,*>} object Plain object
|
|
72806
|
+
* @returns {GetStripeCardByMethodRequest} GetStripeCardByMethodRequest
|
|
72807
|
+
*/
|
|
72808
|
+
GetStripeCardByMethodRequest.fromObject = function fromObject(object) {
|
|
72809
|
+
if (object instanceof $root.GetStripeCardByMethodRequest)
|
|
72810
|
+
return object;
|
|
72811
|
+
var message = new $root.GetStripeCardByMethodRequest();
|
|
72812
|
+
if (object.spanContext != null)
|
|
72813
|
+
message.spanContext = String(object.spanContext);
|
|
72814
|
+
if (object.paymentMethodId != null)
|
|
72815
|
+
message.paymentMethodId = String(object.paymentMethodId);
|
|
72816
|
+
return message;
|
|
72817
|
+
};
|
|
72818
|
+
|
|
72819
|
+
/**
|
|
72820
|
+
* Creates a plain object from a GetStripeCardByMethodRequest message. Also converts values to other types if specified.
|
|
72821
|
+
* @function toObject
|
|
72822
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72823
|
+
* @static
|
|
72824
|
+
* @param {GetStripeCardByMethodRequest} message GetStripeCardByMethodRequest
|
|
72825
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
72826
|
+
* @returns {Object.<string,*>} Plain object
|
|
72827
|
+
*/
|
|
72828
|
+
GetStripeCardByMethodRequest.toObject = function toObject(message, options) {
|
|
72829
|
+
if (!options)
|
|
72830
|
+
options = {};
|
|
72831
|
+
var object = {};
|
|
72832
|
+
if (options.defaults) {
|
|
72833
|
+
object.spanContext = "";
|
|
72834
|
+
object.paymentMethodId = "";
|
|
72835
|
+
}
|
|
72836
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
72837
|
+
object.spanContext = message.spanContext;
|
|
72838
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
72839
|
+
object.paymentMethodId = message.paymentMethodId;
|
|
72840
|
+
return object;
|
|
72841
|
+
};
|
|
72842
|
+
|
|
72843
|
+
/**
|
|
72844
|
+
* Converts this GetStripeCardByMethodRequest to JSON.
|
|
72845
|
+
* @function toJSON
|
|
72846
|
+
* @memberof GetStripeCardByMethodRequest
|
|
72847
|
+
* @instance
|
|
72848
|
+
* @returns {Object.<string,*>} JSON object
|
|
72849
|
+
*/
|
|
72850
|
+
GetStripeCardByMethodRequest.prototype.toJSON = function toJSON() {
|
|
72851
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
72852
|
+
};
|
|
72853
|
+
|
|
72854
|
+
return GetStripeCardByMethodRequest;
|
|
72855
|
+
})();
|
|
72856
|
+
|
|
72857
|
+
$root.GetStripeCardByMethodResponse = (function() {
|
|
72858
|
+
|
|
72859
|
+
/**
|
|
72860
|
+
* Properties of a GetStripeCardByMethodResponse.
|
|
72861
|
+
* @exports IGetStripeCardByMethodResponse
|
|
72862
|
+
* @interface IGetStripeCardByMethodResponse
|
|
72863
|
+
* @property {StatusCode|null} [status] GetStripeCardByMethodResponse status
|
|
72864
|
+
* @property {Array.<IError>|null} [errors] GetStripeCardByMethodResponse errors
|
|
72865
|
+
* @property {ICard|null} [card] GetStripeCardByMethodResponse card
|
|
72866
|
+
*/
|
|
72867
|
+
|
|
72868
|
+
/**
|
|
72869
|
+
* Constructs a new GetStripeCardByMethodResponse.
|
|
72870
|
+
* @exports GetStripeCardByMethodResponse
|
|
72871
|
+
* @classdesc Represents a GetStripeCardByMethodResponse.
|
|
72872
|
+
* @implements IGetStripeCardByMethodResponse
|
|
72873
|
+
* @constructor
|
|
72874
|
+
* @param {IGetStripeCardByMethodResponse=} [properties] Properties to set
|
|
72875
|
+
*/
|
|
72876
|
+
function GetStripeCardByMethodResponse(properties) {
|
|
72877
|
+
this.errors = [];
|
|
72878
|
+
if (properties)
|
|
72879
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
72880
|
+
if (properties[keys[i]] != null)
|
|
72881
|
+
this[keys[i]] = properties[keys[i]];
|
|
72882
|
+
}
|
|
72883
|
+
|
|
72884
|
+
/**
|
|
72885
|
+
* GetStripeCardByMethodResponse status.
|
|
72886
|
+
* @member {StatusCode} status
|
|
72887
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72888
|
+
* @instance
|
|
72889
|
+
*/
|
|
72890
|
+
GetStripeCardByMethodResponse.prototype.status = 0;
|
|
72891
|
+
|
|
72892
|
+
/**
|
|
72893
|
+
* GetStripeCardByMethodResponse errors.
|
|
72894
|
+
* @member {Array.<IError>} errors
|
|
72895
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72896
|
+
* @instance
|
|
72897
|
+
*/
|
|
72898
|
+
GetStripeCardByMethodResponse.prototype.errors = $util.emptyArray;
|
|
72899
|
+
|
|
72900
|
+
/**
|
|
72901
|
+
* GetStripeCardByMethodResponse card.
|
|
72902
|
+
* @member {ICard|null|undefined} card
|
|
72903
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72904
|
+
* @instance
|
|
72905
|
+
*/
|
|
72906
|
+
GetStripeCardByMethodResponse.prototype.card = null;
|
|
72907
|
+
|
|
72908
|
+
/**
|
|
72909
|
+
* Creates a new GetStripeCardByMethodResponse instance using the specified properties.
|
|
72910
|
+
* @function create
|
|
72911
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72912
|
+
* @static
|
|
72913
|
+
* @param {IGetStripeCardByMethodResponse=} [properties] Properties to set
|
|
72914
|
+
* @returns {GetStripeCardByMethodResponse} GetStripeCardByMethodResponse instance
|
|
72915
|
+
*/
|
|
72916
|
+
GetStripeCardByMethodResponse.create = function create(properties) {
|
|
72917
|
+
return new GetStripeCardByMethodResponse(properties);
|
|
72918
|
+
};
|
|
72919
|
+
|
|
72920
|
+
/**
|
|
72921
|
+
* Encodes the specified GetStripeCardByMethodResponse message. Does not implicitly {@link GetStripeCardByMethodResponse.verify|verify} messages.
|
|
72922
|
+
* @function encode
|
|
72923
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72924
|
+
* @static
|
|
72925
|
+
* @param {IGetStripeCardByMethodResponse} message GetStripeCardByMethodResponse message or plain object to encode
|
|
72926
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72927
|
+
* @returns {$protobuf.Writer} Writer
|
|
72928
|
+
*/
|
|
72929
|
+
GetStripeCardByMethodResponse.encode = function encode(message, writer) {
|
|
72930
|
+
if (!writer)
|
|
72931
|
+
writer = $Writer.create();
|
|
72932
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
72933
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
72934
|
+
if (message.errors != null && message.errors.length)
|
|
72935
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
72936
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
72937
|
+
if (message.card != null && Object.hasOwnProperty.call(message, "card"))
|
|
72938
|
+
$root.Card.encode(message.card, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
72939
|
+
return writer;
|
|
72940
|
+
};
|
|
72941
|
+
|
|
72942
|
+
/**
|
|
72943
|
+
* Encodes the specified GetStripeCardByMethodResponse message, length delimited. Does not implicitly {@link GetStripeCardByMethodResponse.verify|verify} messages.
|
|
72944
|
+
* @function encodeDelimited
|
|
72945
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72946
|
+
* @static
|
|
72947
|
+
* @param {IGetStripeCardByMethodResponse} message GetStripeCardByMethodResponse message or plain object to encode
|
|
72948
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72949
|
+
* @returns {$protobuf.Writer} Writer
|
|
72950
|
+
*/
|
|
72951
|
+
GetStripeCardByMethodResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
72952
|
+
return this.encode(message, writer).ldelim();
|
|
72953
|
+
};
|
|
72954
|
+
|
|
72955
|
+
/**
|
|
72956
|
+
* Decodes a GetStripeCardByMethodResponse message from the specified reader or buffer.
|
|
72957
|
+
* @function decode
|
|
72958
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72959
|
+
* @static
|
|
72960
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72961
|
+
* @param {number} [length] Message length if known beforehand
|
|
72962
|
+
* @returns {GetStripeCardByMethodResponse} GetStripeCardByMethodResponse
|
|
72963
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72964
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72965
|
+
*/
|
|
72966
|
+
GetStripeCardByMethodResponse.decode = function decode(reader, length) {
|
|
72967
|
+
if (!(reader instanceof $Reader))
|
|
72968
|
+
reader = $Reader.create(reader);
|
|
72969
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GetStripeCardByMethodResponse();
|
|
72970
|
+
while (reader.pos < end) {
|
|
72971
|
+
var tag = reader.uint32();
|
|
72972
|
+
switch (tag >>> 3) {
|
|
72973
|
+
case 0:
|
|
72974
|
+
message.status = reader.int32();
|
|
72975
|
+
break;
|
|
72976
|
+
case 1:
|
|
72977
|
+
if (!(message.errors && message.errors.length))
|
|
72978
|
+
message.errors = [];
|
|
72979
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
72980
|
+
break;
|
|
72981
|
+
case 2:
|
|
72982
|
+
message.card = $root.Card.decode(reader, reader.uint32());
|
|
72983
|
+
break;
|
|
72984
|
+
default:
|
|
72985
|
+
reader.skipType(tag & 7);
|
|
72986
|
+
break;
|
|
72987
|
+
}
|
|
72988
|
+
}
|
|
72989
|
+
return message;
|
|
72990
|
+
};
|
|
72991
|
+
|
|
72992
|
+
/**
|
|
72993
|
+
* Decodes a GetStripeCardByMethodResponse message from the specified reader or buffer, length delimited.
|
|
72994
|
+
* @function decodeDelimited
|
|
72995
|
+
* @memberof GetStripeCardByMethodResponse
|
|
72996
|
+
* @static
|
|
72997
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72998
|
+
* @returns {GetStripeCardByMethodResponse} GetStripeCardByMethodResponse
|
|
72999
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73000
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73001
|
+
*/
|
|
73002
|
+
GetStripeCardByMethodResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
73003
|
+
if (!(reader instanceof $Reader))
|
|
73004
|
+
reader = new $Reader(reader);
|
|
73005
|
+
return this.decode(reader, reader.uint32());
|
|
73006
|
+
};
|
|
73007
|
+
|
|
73008
|
+
/**
|
|
73009
|
+
* Verifies a GetStripeCardByMethodResponse message.
|
|
73010
|
+
* @function verify
|
|
73011
|
+
* @memberof GetStripeCardByMethodResponse
|
|
73012
|
+
* @static
|
|
73013
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
73014
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
73015
|
+
*/
|
|
73016
|
+
GetStripeCardByMethodResponse.verify = function verify(message) {
|
|
73017
|
+
if (typeof message !== "object" || message === null)
|
|
73018
|
+
return "object expected";
|
|
73019
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
73020
|
+
switch (message.status) {
|
|
73021
|
+
default:
|
|
73022
|
+
return "status: enum value expected";
|
|
73023
|
+
case 0:
|
|
73024
|
+
case 200:
|
|
73025
|
+
case 400:
|
|
73026
|
+
case 401:
|
|
73027
|
+
case 403:
|
|
73028
|
+
case 422:
|
|
73029
|
+
case 500:
|
|
73030
|
+
case 504:
|
|
73031
|
+
break;
|
|
73032
|
+
}
|
|
73033
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
73034
|
+
if (!Array.isArray(message.errors))
|
|
73035
|
+
return "errors: array expected";
|
|
73036
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
73037
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
73038
|
+
if (error)
|
|
73039
|
+
return "errors." + error;
|
|
73040
|
+
}
|
|
73041
|
+
}
|
|
73042
|
+
if (message.card != null && message.hasOwnProperty("card")) {
|
|
73043
|
+
var error = $root.Card.verify(message.card);
|
|
73044
|
+
if (error)
|
|
73045
|
+
return "card." + error;
|
|
73046
|
+
}
|
|
73047
|
+
return null;
|
|
73048
|
+
};
|
|
73049
|
+
|
|
73050
|
+
/**
|
|
73051
|
+
* Creates a GetStripeCardByMethodResponse message from a plain object. Also converts values to their respective internal types.
|
|
73052
|
+
* @function fromObject
|
|
73053
|
+
* @memberof GetStripeCardByMethodResponse
|
|
73054
|
+
* @static
|
|
73055
|
+
* @param {Object.<string,*>} object Plain object
|
|
73056
|
+
* @returns {GetStripeCardByMethodResponse} GetStripeCardByMethodResponse
|
|
73057
|
+
*/
|
|
73058
|
+
GetStripeCardByMethodResponse.fromObject = function fromObject(object) {
|
|
73059
|
+
if (object instanceof $root.GetStripeCardByMethodResponse)
|
|
73060
|
+
return object;
|
|
73061
|
+
var message = new $root.GetStripeCardByMethodResponse();
|
|
73062
|
+
switch (object.status) {
|
|
73063
|
+
case "UNKNOWN_CODE":
|
|
73064
|
+
case 0:
|
|
73065
|
+
message.status = 0;
|
|
73066
|
+
break;
|
|
73067
|
+
case "OK":
|
|
73068
|
+
case 200:
|
|
73069
|
+
message.status = 200;
|
|
73070
|
+
break;
|
|
73071
|
+
case "BAD_REQUEST":
|
|
73072
|
+
case 400:
|
|
73073
|
+
message.status = 400;
|
|
73074
|
+
break;
|
|
73075
|
+
case "UNAUTHORIZED":
|
|
73076
|
+
case 401:
|
|
73077
|
+
message.status = 401;
|
|
73078
|
+
break;
|
|
73079
|
+
case "FORBIDDEN":
|
|
73080
|
+
case 403:
|
|
73081
|
+
message.status = 403;
|
|
73082
|
+
break;
|
|
73083
|
+
case "UNPROCESSABLE_ENTITY":
|
|
73084
|
+
case 422:
|
|
73085
|
+
message.status = 422;
|
|
73086
|
+
break;
|
|
73087
|
+
case "INTERNAL_SERVER_ERROR":
|
|
73088
|
+
case 500:
|
|
73089
|
+
message.status = 500;
|
|
73090
|
+
break;
|
|
73091
|
+
case "GATEWAY_TIMEOUT":
|
|
73092
|
+
case 504:
|
|
73093
|
+
message.status = 504;
|
|
73094
|
+
break;
|
|
73095
|
+
}
|
|
73096
|
+
if (object.errors) {
|
|
73097
|
+
if (!Array.isArray(object.errors))
|
|
73098
|
+
throw TypeError(".GetStripeCardByMethodResponse.errors: array expected");
|
|
73099
|
+
message.errors = [];
|
|
73100
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
73101
|
+
if (typeof object.errors[i] !== "object")
|
|
73102
|
+
throw TypeError(".GetStripeCardByMethodResponse.errors: object expected");
|
|
73103
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
73104
|
+
}
|
|
73105
|
+
}
|
|
73106
|
+
if (object.card != null) {
|
|
73107
|
+
if (typeof object.card !== "object")
|
|
73108
|
+
throw TypeError(".GetStripeCardByMethodResponse.card: object expected");
|
|
73109
|
+
message.card = $root.Card.fromObject(object.card);
|
|
73110
|
+
}
|
|
73111
|
+
return message;
|
|
73112
|
+
};
|
|
73113
|
+
|
|
73114
|
+
/**
|
|
73115
|
+
* Creates a plain object from a GetStripeCardByMethodResponse message. Also converts values to other types if specified.
|
|
73116
|
+
* @function toObject
|
|
73117
|
+
* @memberof GetStripeCardByMethodResponse
|
|
73118
|
+
* @static
|
|
73119
|
+
* @param {GetStripeCardByMethodResponse} message GetStripeCardByMethodResponse
|
|
73120
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73121
|
+
* @returns {Object.<string,*>} Plain object
|
|
73122
|
+
*/
|
|
73123
|
+
GetStripeCardByMethodResponse.toObject = function toObject(message, options) {
|
|
73124
|
+
if (!options)
|
|
73125
|
+
options = {};
|
|
73126
|
+
var object = {};
|
|
73127
|
+
if (options.arrays || options.defaults)
|
|
73128
|
+
object.errors = [];
|
|
73129
|
+
if (options.defaults) {
|
|
73130
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
73131
|
+
object.card = null;
|
|
73132
|
+
}
|
|
73133
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
73134
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
73135
|
+
if (message.errors && message.errors.length) {
|
|
73136
|
+
object.errors = [];
|
|
73137
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
73138
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
73139
|
+
}
|
|
73140
|
+
if (message.card != null && message.hasOwnProperty("card"))
|
|
73141
|
+
object.card = $root.Card.toObject(message.card, options);
|
|
73142
|
+
return object;
|
|
73143
|
+
};
|
|
73144
|
+
|
|
73145
|
+
/**
|
|
73146
|
+
* Converts this GetStripeCardByMethodResponse to JSON.
|
|
73147
|
+
* @function toJSON
|
|
73148
|
+
* @memberof GetStripeCardByMethodResponse
|
|
73149
|
+
* @instance
|
|
73150
|
+
* @returns {Object.<string,*>} JSON object
|
|
73151
|
+
*/
|
|
73152
|
+
GetStripeCardByMethodResponse.prototype.toJSON = function toJSON() {
|
|
73153
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73154
|
+
};
|
|
73155
|
+
|
|
73156
|
+
return GetStripeCardByMethodResponse;
|
|
73157
|
+
})();
|
|
73158
|
+
|
|
71722
73159
|
$root.CreateStripePaymentIntentRequest = (function() {
|
|
71723
73160
|
|
|
71724
73161
|
/**
|
|
@@ -76492,6 +77929,39 @@ $root.StripeService = (function() {
|
|
|
76492
77929
|
* @variation 2
|
|
76493
77930
|
*/
|
|
76494
77931
|
|
|
77932
|
+
/**
|
|
77933
|
+
* Callback as used by {@link StripeService#getStripeCardByMethod}.
|
|
77934
|
+
* @memberof StripeService
|
|
77935
|
+
* @typedef getStripeCardByMethodCallback
|
|
77936
|
+
* @type {function}
|
|
77937
|
+
* @param {Error|null} error Error, if any
|
|
77938
|
+
* @param {GetStripeCardByMethodResponse} [response] GetStripeCardByMethodResponse
|
|
77939
|
+
*/
|
|
77940
|
+
|
|
77941
|
+
/**
|
|
77942
|
+
* Calls getStripeCardByMethod.
|
|
77943
|
+
* @function getStripeCardByMethod
|
|
77944
|
+
* @memberof StripeService
|
|
77945
|
+
* @instance
|
|
77946
|
+
* @param {IGetStripeCardByMethodRequest} request GetStripeCardByMethodRequest message or plain object
|
|
77947
|
+
* @param {StripeService.getStripeCardByMethodCallback} callback Node-style callback called with the error, if any, and GetStripeCardByMethodResponse
|
|
77948
|
+
* @returns {undefined}
|
|
77949
|
+
* @variation 1
|
|
77950
|
+
*/
|
|
77951
|
+
Object.defineProperty(StripeService.prototype.getStripeCardByMethod = function getStripeCardByMethod(request, callback) {
|
|
77952
|
+
return this.rpcCall(getStripeCardByMethod, $root.GetStripeCardByMethodRequest, $root.GetStripeCardByMethodResponse, request, callback);
|
|
77953
|
+
}, "name", { value: "getStripeCardByMethod" });
|
|
77954
|
+
|
|
77955
|
+
/**
|
|
77956
|
+
* Calls getStripeCardByMethod.
|
|
77957
|
+
* @function getStripeCardByMethod
|
|
77958
|
+
* @memberof StripeService
|
|
77959
|
+
* @instance
|
|
77960
|
+
* @param {IGetStripeCardByMethodRequest} request GetStripeCardByMethodRequest message or plain object
|
|
77961
|
+
* @returns {Promise<GetStripeCardByMethodResponse>} Promise
|
|
77962
|
+
* @variation 2
|
|
77963
|
+
*/
|
|
77964
|
+
|
|
76495
77965
|
/**
|
|
76496
77966
|
* Callback as used by {@link StripeService#registerStripeTerminalReader}.
|
|
76497
77967
|
* @memberof StripeService
|