@sniipwebmaster/payment-methods-client-grpcweb-ts 24.9.5664 → 24.10.5690

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.
@@ -4,6 +4,58 @@ import * as google_api_annotations_pb from './google/api/annotations_pb';
4
4
  import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
5
5
 
6
6
 
7
+ export class FileUploadRequest extends jspb.Message {
8
+ getName(): string;
9
+ setName(value: string): FileUploadRequest;
10
+
11
+ getOriginalfilename(): string;
12
+ setOriginalfilename(value: string): FileUploadRequest;
13
+
14
+ getContenttype(): string;
15
+ setContenttype(value: string): FileUploadRequest;
16
+
17
+ getFile(): File | undefined;
18
+ setFile(value?: File): FileUploadRequest;
19
+ hasFile(): boolean;
20
+ clearFile(): FileUploadRequest;
21
+
22
+ serializeBinary(): Uint8Array;
23
+ toObject(includeInstance?: boolean): FileUploadRequest.AsObject;
24
+ static toObject(includeInstance: boolean, msg: FileUploadRequest): FileUploadRequest.AsObject;
25
+ static serializeBinaryToWriter(message: FileUploadRequest, writer: jspb.BinaryWriter): void;
26
+ static deserializeBinary(bytes: Uint8Array): FileUploadRequest;
27
+ static deserializeBinaryFromReader(message: FileUploadRequest, reader: jspb.BinaryReader): FileUploadRequest;
28
+ }
29
+
30
+ export namespace FileUploadRequest {
31
+ export type AsObject = {
32
+ name: string,
33
+ originalfilename: string,
34
+ contenttype: string,
35
+ file?: File.AsObject,
36
+ }
37
+ }
38
+
39
+ export class File extends jspb.Message {
40
+ getContent(): Uint8Array | string;
41
+ getContent_asU8(): Uint8Array;
42
+ getContent_asB64(): string;
43
+ setContent(value: Uint8Array | string): File;
44
+
45
+ serializeBinary(): Uint8Array;
46
+ toObject(includeInstance?: boolean): File.AsObject;
47
+ static toObject(includeInstance: boolean, msg: File): File.AsObject;
48
+ static serializeBinaryToWriter(message: File, writer: jspb.BinaryWriter): void;
49
+ static deserializeBinary(bytes: Uint8Array): File;
50
+ static deserializeBinaryFromReader(message: File, reader: jspb.BinaryReader): File;
51
+ }
52
+
53
+ export namespace File {
54
+ export type AsObject = {
55
+ content: Uint8Array | string,
56
+ }
57
+ }
58
+
7
59
  export class AcceptedPaymentMethod extends jspb.Message {
8
60
  getPaymenttype(): string;
9
61
  setPaymenttype(value: string): AcceptedPaymentMethod;
@@ -43,6 +43,8 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreatePaymentMethodGroupR
43
43
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCard', null, global);
44
44
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest', null, global);
45
45
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardVerifyRequest', null, global);
46
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.File', null, global);
47
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.FileUploadRequest', null, global);
46
48
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.Gateway', null, global);
47
49
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest', null, global);
48
50
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest', null, global);
@@ -106,6 +108,48 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsReque
106
108
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse', null, global);
107
109
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest', null, global);
108
110
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse', null, global);
111
+ /**
112
+ * Generated by JsPbCodeGenerator.
113
+ * @param {Array=} opt_data Optional initial data array, typically from a
114
+ * server response, or constructed directly in Javascript. The array is used
115
+ * in place and becomes part of the constructed object. It is not cloned.
116
+ * If no data is provided, the constructed object will be empty, but still
117
+ * valid.
118
+ * @extends {jspb.Message}
119
+ * @constructor
120
+ */
121
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest = function(opt_data) {
122
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
123
+ };
124
+ goog.inherits(proto.sniippaymentmethodsserviceapi.FileUploadRequest, jspb.Message);
125
+ if (goog.DEBUG && !COMPILED) {
126
+ /**
127
+ * @public
128
+ * @override
129
+ */
130
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.displayName = 'proto.sniippaymentmethodsserviceapi.FileUploadRequest';
131
+ }
132
+ /**
133
+ * Generated by JsPbCodeGenerator.
134
+ * @param {Array=} opt_data Optional initial data array, typically from a
135
+ * server response, or constructed directly in Javascript. The array is used
136
+ * in place and becomes part of the constructed object. It is not cloned.
137
+ * If no data is provided, the constructed object will be empty, but still
138
+ * valid.
139
+ * @extends {jspb.Message}
140
+ * @constructor
141
+ */
142
+ proto.sniippaymentmethodsserviceapi.File = function(opt_data) {
143
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
144
+ };
145
+ goog.inherits(proto.sniippaymentmethodsserviceapi.File, jspb.Message);
146
+ if (goog.DEBUG && !COMPILED) {
147
+ /**
148
+ * @public
149
+ * @override
150
+ */
151
+ proto.sniippaymentmethodsserviceapi.File.displayName = 'proto.sniippaymentmethodsserviceapi.File';
152
+ }
109
153
  /**
110
154
  * Generated by JsPbCodeGenerator.
111
155
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1978,6 +2022,401 @@ if (goog.DEBUG && !COMPILED) {
1978
2022
 
1979
2023
 
1980
2024
 
2025
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2026
+ /**
2027
+ * Creates an object representation of this proto.
2028
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2029
+ * Optional fields that are not set will be set to undefined.
2030
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2031
+ * For the list of reserved names please see:
2032
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2033
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2034
+ * JSPB instance for transitional soy proto support:
2035
+ * http://goto/soy-param-migration
2036
+ * @return {!Object}
2037
+ */
2038
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.toObject = function(opt_includeInstance) {
2039
+ return proto.sniippaymentmethodsserviceapi.FileUploadRequest.toObject(opt_includeInstance, this);
2040
+ };
2041
+
2042
+
2043
+ /**
2044
+ * Static version of the {@see toObject} method.
2045
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2046
+ * the JSPB instance for transitional soy proto support:
2047
+ * http://goto/soy-param-migration
2048
+ * @param {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} msg The msg instance to transform.
2049
+ * @return {!Object}
2050
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2051
+ */
2052
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.toObject = function(includeInstance, msg) {
2053
+ var f, obj = {
2054
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2055
+ originalfilename: jspb.Message.getFieldWithDefault(msg, 2, ""),
2056
+ contenttype: jspb.Message.getFieldWithDefault(msg, 3, ""),
2057
+ file: (f = msg.getFile()) && proto.sniippaymentmethodsserviceapi.File.toObject(includeInstance, f)
2058
+ };
2059
+
2060
+ if (includeInstance) {
2061
+ obj.$jspbMessageInstance = msg;
2062
+ }
2063
+ return obj;
2064
+ };
2065
+ }
2066
+
2067
+
2068
+ /**
2069
+ * Deserializes binary data (in protobuf wire format).
2070
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2071
+ * @return {!proto.sniippaymentmethodsserviceapi.FileUploadRequest}
2072
+ */
2073
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.deserializeBinary = function(bytes) {
2074
+ var reader = new jspb.BinaryReader(bytes);
2075
+ var msg = new proto.sniippaymentmethodsserviceapi.FileUploadRequest;
2076
+ return proto.sniippaymentmethodsserviceapi.FileUploadRequest.deserializeBinaryFromReader(msg, reader);
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * Deserializes binary data (in protobuf wire format) from the
2082
+ * given reader into the given message object.
2083
+ * @param {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} msg The message object to deserialize into.
2084
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2085
+ * @return {!proto.sniippaymentmethodsserviceapi.FileUploadRequest}
2086
+ */
2087
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
2088
+ while (reader.nextField()) {
2089
+ if (reader.isEndGroup()) {
2090
+ break;
2091
+ }
2092
+ var field = reader.getFieldNumber();
2093
+ switch (field) {
2094
+ case 1:
2095
+ var value = /** @type {string} */ (reader.readString());
2096
+ msg.setName(value);
2097
+ break;
2098
+ case 2:
2099
+ var value = /** @type {string} */ (reader.readString());
2100
+ msg.setOriginalfilename(value);
2101
+ break;
2102
+ case 3:
2103
+ var value = /** @type {string} */ (reader.readString());
2104
+ msg.setContenttype(value);
2105
+ break;
2106
+ case 4:
2107
+ var value = new proto.sniippaymentmethodsserviceapi.File;
2108
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.File.deserializeBinaryFromReader);
2109
+ msg.setFile(value);
2110
+ break;
2111
+ default:
2112
+ reader.skipField();
2113
+ break;
2114
+ }
2115
+ }
2116
+ return msg;
2117
+ };
2118
+
2119
+
2120
+ /**
2121
+ * Serializes the message to binary data (in protobuf wire format).
2122
+ * @return {!Uint8Array}
2123
+ */
2124
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.serializeBinary = function() {
2125
+ var writer = new jspb.BinaryWriter();
2126
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.serializeBinaryToWriter(this, writer);
2127
+ return writer.getResultBuffer();
2128
+ };
2129
+
2130
+
2131
+ /**
2132
+ * Serializes the given message to binary data (in protobuf wire
2133
+ * format), writing to the given BinaryWriter.
2134
+ * @param {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} message
2135
+ * @param {!jspb.BinaryWriter} writer
2136
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2137
+ */
2138
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.serializeBinaryToWriter = function(message, writer) {
2139
+ var f = undefined;
2140
+ f = message.getName();
2141
+ if (f.length > 0) {
2142
+ writer.writeString(
2143
+ 1,
2144
+ f
2145
+ );
2146
+ }
2147
+ f = message.getOriginalfilename();
2148
+ if (f.length > 0) {
2149
+ writer.writeString(
2150
+ 2,
2151
+ f
2152
+ );
2153
+ }
2154
+ f = message.getContenttype();
2155
+ if (f.length > 0) {
2156
+ writer.writeString(
2157
+ 3,
2158
+ f
2159
+ );
2160
+ }
2161
+ f = message.getFile();
2162
+ if (f != null) {
2163
+ writer.writeMessage(
2164
+ 4,
2165
+ f,
2166
+ proto.sniippaymentmethodsserviceapi.File.serializeBinaryToWriter
2167
+ );
2168
+ }
2169
+ };
2170
+
2171
+
2172
+ /**
2173
+ * optional string name = 1;
2174
+ * @return {string}
2175
+ */
2176
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.getName = function() {
2177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * @param {string} value
2183
+ * @return {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} returns this
2184
+ */
2185
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.setName = function(value) {
2186
+ return jspb.Message.setProto3StringField(this, 1, value);
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * optional string originalFilename = 2;
2192
+ * @return {string}
2193
+ */
2194
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.getOriginalfilename = function() {
2195
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * @param {string} value
2201
+ * @return {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} returns this
2202
+ */
2203
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.setOriginalfilename = function(value) {
2204
+ return jspb.Message.setProto3StringField(this, 2, value);
2205
+ };
2206
+
2207
+
2208
+ /**
2209
+ * optional string contentType = 3;
2210
+ * @return {string}
2211
+ */
2212
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.getContenttype = function() {
2213
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * @param {string} value
2219
+ * @return {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} returns this
2220
+ */
2221
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.setContenttype = function(value) {
2222
+ return jspb.Message.setProto3StringField(this, 3, value);
2223
+ };
2224
+
2225
+
2226
+ /**
2227
+ * optional File file = 4;
2228
+ * @return {?proto.sniippaymentmethodsserviceapi.File}
2229
+ */
2230
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.getFile = function() {
2231
+ return /** @type{?proto.sniippaymentmethodsserviceapi.File} */ (
2232
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.File, 4));
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * @param {?proto.sniippaymentmethodsserviceapi.File|undefined} value
2238
+ * @return {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} returns this
2239
+ */
2240
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.setFile = function(value) {
2241
+ return jspb.Message.setWrapperField(this, 4, value);
2242
+ };
2243
+
2244
+
2245
+ /**
2246
+ * Clears the message field making it undefined.
2247
+ * @return {!proto.sniippaymentmethodsserviceapi.FileUploadRequest} returns this
2248
+ */
2249
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.clearFile = function() {
2250
+ return this.setFile(undefined);
2251
+ };
2252
+
2253
+
2254
+ /**
2255
+ * Returns whether this field is set.
2256
+ * @return {boolean}
2257
+ */
2258
+ proto.sniippaymentmethodsserviceapi.FileUploadRequest.prototype.hasFile = function() {
2259
+ return jspb.Message.getField(this, 4) != null;
2260
+ };
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2267
+ /**
2268
+ * Creates an object representation of this proto.
2269
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2270
+ * Optional fields that are not set will be set to undefined.
2271
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2272
+ * For the list of reserved names please see:
2273
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2274
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2275
+ * JSPB instance for transitional soy proto support:
2276
+ * http://goto/soy-param-migration
2277
+ * @return {!Object}
2278
+ */
2279
+ proto.sniippaymentmethodsserviceapi.File.prototype.toObject = function(opt_includeInstance) {
2280
+ return proto.sniippaymentmethodsserviceapi.File.toObject(opt_includeInstance, this);
2281
+ };
2282
+
2283
+
2284
+ /**
2285
+ * Static version of the {@see toObject} method.
2286
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2287
+ * the JSPB instance for transitional soy proto support:
2288
+ * http://goto/soy-param-migration
2289
+ * @param {!proto.sniippaymentmethodsserviceapi.File} msg The msg instance to transform.
2290
+ * @return {!Object}
2291
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2292
+ */
2293
+ proto.sniippaymentmethodsserviceapi.File.toObject = function(includeInstance, msg) {
2294
+ var f, obj = {
2295
+ content: msg.getContent_asB64()
2296
+ };
2297
+
2298
+ if (includeInstance) {
2299
+ obj.$jspbMessageInstance = msg;
2300
+ }
2301
+ return obj;
2302
+ };
2303
+ }
2304
+
2305
+
2306
+ /**
2307
+ * Deserializes binary data (in protobuf wire format).
2308
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2309
+ * @return {!proto.sniippaymentmethodsserviceapi.File}
2310
+ */
2311
+ proto.sniippaymentmethodsserviceapi.File.deserializeBinary = function(bytes) {
2312
+ var reader = new jspb.BinaryReader(bytes);
2313
+ var msg = new proto.sniippaymentmethodsserviceapi.File;
2314
+ return proto.sniippaymentmethodsserviceapi.File.deserializeBinaryFromReader(msg, reader);
2315
+ };
2316
+
2317
+
2318
+ /**
2319
+ * Deserializes binary data (in protobuf wire format) from the
2320
+ * given reader into the given message object.
2321
+ * @param {!proto.sniippaymentmethodsserviceapi.File} msg The message object to deserialize into.
2322
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2323
+ * @return {!proto.sniippaymentmethodsserviceapi.File}
2324
+ */
2325
+ proto.sniippaymentmethodsserviceapi.File.deserializeBinaryFromReader = function(msg, reader) {
2326
+ while (reader.nextField()) {
2327
+ if (reader.isEndGroup()) {
2328
+ break;
2329
+ }
2330
+ var field = reader.getFieldNumber();
2331
+ switch (field) {
2332
+ case 1:
2333
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2334
+ msg.setContent(value);
2335
+ break;
2336
+ default:
2337
+ reader.skipField();
2338
+ break;
2339
+ }
2340
+ }
2341
+ return msg;
2342
+ };
2343
+
2344
+
2345
+ /**
2346
+ * Serializes the message to binary data (in protobuf wire format).
2347
+ * @return {!Uint8Array}
2348
+ */
2349
+ proto.sniippaymentmethodsserviceapi.File.prototype.serializeBinary = function() {
2350
+ var writer = new jspb.BinaryWriter();
2351
+ proto.sniippaymentmethodsserviceapi.File.serializeBinaryToWriter(this, writer);
2352
+ return writer.getResultBuffer();
2353
+ };
2354
+
2355
+
2356
+ /**
2357
+ * Serializes the given message to binary data (in protobuf wire
2358
+ * format), writing to the given BinaryWriter.
2359
+ * @param {!proto.sniippaymentmethodsserviceapi.File} message
2360
+ * @param {!jspb.BinaryWriter} writer
2361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2362
+ */
2363
+ proto.sniippaymentmethodsserviceapi.File.serializeBinaryToWriter = function(message, writer) {
2364
+ var f = undefined;
2365
+ f = message.getContent_asU8();
2366
+ if (f.length > 0) {
2367
+ writer.writeBytes(
2368
+ 1,
2369
+ f
2370
+ );
2371
+ }
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * optional bytes content = 1;
2377
+ * @return {!(string|Uint8Array)}
2378
+ */
2379
+ proto.sniippaymentmethodsserviceapi.File.prototype.getContent = function() {
2380
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * optional bytes content = 1;
2386
+ * This is a type-conversion wrapper around `getContent()`
2387
+ * @return {string}
2388
+ */
2389
+ proto.sniippaymentmethodsserviceapi.File.prototype.getContent_asB64 = function() {
2390
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2391
+ this.getContent()));
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * optional bytes content = 1;
2397
+ * Note that Uint8Array is not supported on all browsers.
2398
+ * @see http://caniuse.com/Uint8Array
2399
+ * This is a type-conversion wrapper around `getContent()`
2400
+ * @return {!Uint8Array}
2401
+ */
2402
+ proto.sniippaymentmethodsserviceapi.File.prototype.getContent_asU8 = function() {
2403
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2404
+ this.getContent()));
2405
+ };
2406
+
2407
+
2408
+ /**
2409
+ * @param {!(string|Uint8Array)} value
2410
+ * @return {!proto.sniippaymentmethodsserviceapi.File} returns this
2411
+ */
2412
+ proto.sniippaymentmethodsserviceapi.File.prototype.setContent = function(value) {
2413
+ return jspb.Message.setProto3BytesField(this, 1, value);
2414
+ };
2415
+
2416
+
2417
+
2418
+
2419
+
1981
2420
  if (jspb.Message.GENERATE_TO_OBJECT) {
1982
2421
  /**
1983
2422
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/payment-methods-client-grpcweb-ts",
3
- "version": "24.9.5664",
3
+ "version": "24.10.5690",
4
4
  "description": "payment-methods-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",