@sniipwebmaster/payment-methods-client-grpcweb 0.1.1 → 0.2.2
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/package.json +1 -1
- package/dependancies/service_grpc_web_pb.js +0 -248
- package/dependancies/service_pb.js +0 -1437
package/package.json
CHANGED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview gRPC-Web generated client stub for sniippaymentgatewayapi
|
|
3
|
-
* @enhanceable
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const grpc = {};
|
|
12
|
-
grpc.web = require('grpc-web');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var google_api_annotations_pb = require('./google/api/annotations_pb.js')
|
|
16
|
-
|
|
17
|
-
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
18
|
-
const proto = {};
|
|
19
|
-
proto.sniippaymentgatewayapi = require('./service_pb.js');
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @param {string} hostname
|
|
23
|
-
* @param {?Object} credentials
|
|
24
|
-
* @param {?Object} options
|
|
25
|
-
* @constructor
|
|
26
|
-
* @struct
|
|
27
|
-
* @final
|
|
28
|
-
*/
|
|
29
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServiceClient =
|
|
30
|
-
function(hostname, credentials, options) {
|
|
31
|
-
if (!options) options = {};
|
|
32
|
-
options['format'] = 'text';
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
36
|
-
*/
|
|
37
|
-
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @private @const {string} The hostname
|
|
41
|
-
*/
|
|
42
|
-
this.hostname_ = hostname;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @private @const {?Object} The credentials to be used to connect
|
|
46
|
-
* to the server
|
|
47
|
-
*/
|
|
48
|
-
this.credentials_ = credentials;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @private @const {?Object} Options for the client
|
|
52
|
-
*/
|
|
53
|
-
this.options_ = options;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @param {string} hostname
|
|
59
|
-
* @param {?Object} credentials
|
|
60
|
-
* @param {?Object} options
|
|
61
|
-
* @constructor
|
|
62
|
-
* @struct
|
|
63
|
-
* @final
|
|
64
|
-
*/
|
|
65
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServicePromiseClient =
|
|
66
|
-
function(hostname, credentials, options) {
|
|
67
|
-
if (!options) options = {};
|
|
68
|
-
options['format'] = 'text';
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @private @const {!proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServiceClient} The delegate callback based client
|
|
72
|
-
*/
|
|
73
|
-
this.delegateClient_ = new proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServiceClient(
|
|
74
|
-
hostname, credentials, options);
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @const
|
|
81
|
-
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
82
|
-
* !proto.sniippaymentgatewayapi.AddPaymentGatewayRequest,
|
|
83
|
-
* !proto.sniippaymentgatewayapi.ResponseCode>}
|
|
84
|
-
*/
|
|
85
|
-
const methodInfo_SniipPaymentGatewayAPIService_AddPaymentGateway = new grpc.web.AbstractClientBase.MethodInfo(
|
|
86
|
-
proto.sniippaymentgatewayapi.ResponseCode,
|
|
87
|
-
/** @param {!proto.sniippaymentgatewayapi.AddPaymentGatewayRequest} request */
|
|
88
|
-
function(request) {
|
|
89
|
-
return request.serializeBinary();
|
|
90
|
-
},
|
|
91
|
-
proto.sniippaymentgatewayapi.ResponseCode.deserializeBinary
|
|
92
|
-
);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @param {!proto.sniippaymentgatewayapi.AddPaymentGatewayRequest} request The
|
|
97
|
-
* request proto
|
|
98
|
-
* @param {!Object<string, string>} metadata User defined
|
|
99
|
-
* call metadata
|
|
100
|
-
* @param {function(?grpc.web.Error, ?proto.sniippaymentgatewayapi.ResponseCode)}
|
|
101
|
-
* callback The callback function(error, response)
|
|
102
|
-
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentgatewayapi.ResponseCode>|undefined}
|
|
103
|
-
* The XHR Node Readable Stream
|
|
104
|
-
*/
|
|
105
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServiceClient.prototype.addPaymentGateway =
|
|
106
|
-
function(request, metadata, callback) {
|
|
107
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
108
|
-
'/sniippaymentgatewayapi.SniipPaymentGatewayAPIService/AddPaymentGateway',
|
|
109
|
-
request,
|
|
110
|
-
metadata,
|
|
111
|
-
methodInfo_SniipPaymentGatewayAPIService_AddPaymentGateway,
|
|
112
|
-
callback);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @param {!proto.sniippaymentgatewayapi.AddPaymentGatewayRequest} request The
|
|
118
|
-
* request proto
|
|
119
|
-
* @param {!Object<string, string>} metadata User defined
|
|
120
|
-
* call metadata
|
|
121
|
-
* @return {!Promise<!proto.sniippaymentgatewayapi.ResponseCode>}
|
|
122
|
-
* The XHR Node Readable Stream
|
|
123
|
-
*/
|
|
124
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServicePromiseClient.prototype.addPaymentGateway =
|
|
125
|
-
function(request, metadata) {
|
|
126
|
-
return new Promise((resolve, reject) => {
|
|
127
|
-
this.delegateClient_.addPaymentGateway(
|
|
128
|
-
request, metadata, (error, response) => {
|
|
129
|
-
error ? reject(error) : resolve(response);
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @const
|
|
137
|
-
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
138
|
-
* !proto.sniippaymentgatewayapi.GetPaymentGatewayRequest,
|
|
139
|
-
* !proto.sniippaymentgatewayapi.GetPaymentGatewayResponse>}
|
|
140
|
-
*/
|
|
141
|
-
const methodInfo_SniipPaymentGatewayAPIService_GetPaymentGateway = new grpc.web.AbstractClientBase.MethodInfo(
|
|
142
|
-
proto.sniippaymentgatewayapi.GetPaymentGatewayResponse,
|
|
143
|
-
/** @param {!proto.sniippaymentgatewayapi.GetPaymentGatewayRequest} request */
|
|
144
|
-
function(request) {
|
|
145
|
-
return request.serializeBinary();
|
|
146
|
-
},
|
|
147
|
-
proto.sniippaymentgatewayapi.GetPaymentGatewayResponse.deserializeBinary
|
|
148
|
-
);
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @param {!proto.sniippaymentgatewayapi.GetPaymentGatewayRequest} request The
|
|
153
|
-
* request proto
|
|
154
|
-
* @param {!Object<string, string>} metadata User defined
|
|
155
|
-
* call metadata
|
|
156
|
-
* @param {function(?grpc.web.Error, ?proto.sniippaymentgatewayapi.GetPaymentGatewayResponse)}
|
|
157
|
-
* callback The callback function(error, response)
|
|
158
|
-
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentgatewayapi.GetPaymentGatewayResponse>|undefined}
|
|
159
|
-
* The XHR Node Readable Stream
|
|
160
|
-
*/
|
|
161
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServiceClient.prototype.getPaymentGateway =
|
|
162
|
-
function(request, metadata, callback) {
|
|
163
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
164
|
-
'/sniippaymentgatewayapi.SniipPaymentGatewayAPIService/GetPaymentGateway',
|
|
165
|
-
request,
|
|
166
|
-
metadata,
|
|
167
|
-
methodInfo_SniipPaymentGatewayAPIService_GetPaymentGateway,
|
|
168
|
-
callback);
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @param {!proto.sniippaymentgatewayapi.GetPaymentGatewayRequest} request The
|
|
174
|
-
* request proto
|
|
175
|
-
* @param {!Object<string, string>} metadata User defined
|
|
176
|
-
* call metadata
|
|
177
|
-
* @return {!Promise<!proto.sniippaymentgatewayapi.GetPaymentGatewayResponse>}
|
|
178
|
-
* The XHR Node Readable Stream
|
|
179
|
-
*/
|
|
180
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServicePromiseClient.prototype.getPaymentGateway =
|
|
181
|
-
function(request, metadata) {
|
|
182
|
-
return new Promise((resolve, reject) => {
|
|
183
|
-
this.delegateClient_.getPaymentGateway(
|
|
184
|
-
request, metadata, (error, response) => {
|
|
185
|
-
error ? reject(error) : resolve(response);
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @const
|
|
193
|
-
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
194
|
-
* !proto.google.protobuf.Empty,
|
|
195
|
-
* !proto.sniippaymentgatewayapi.PaymentMethodsResponse>}
|
|
196
|
-
*/
|
|
197
|
-
const methodInfo_SniipPaymentGatewayAPIService_GetPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo(
|
|
198
|
-
proto.sniippaymentgatewayapi.PaymentMethodsResponse,
|
|
199
|
-
/** @param {!proto.google.protobuf.Empty} request */
|
|
200
|
-
function(request) {
|
|
201
|
-
return request.serializeBinary();
|
|
202
|
-
},
|
|
203
|
-
proto.sniippaymentgatewayapi.PaymentMethodsResponse.deserializeBinary
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @param {!proto.google.protobuf.Empty} request The
|
|
209
|
-
* request proto
|
|
210
|
-
* @param {!Object<string, string>} metadata User defined
|
|
211
|
-
* call metadata
|
|
212
|
-
* @param {function(?grpc.web.Error, ?proto.sniippaymentgatewayapi.PaymentMethodsResponse)}
|
|
213
|
-
* callback The callback function(error, response)
|
|
214
|
-
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentgatewayapi.PaymentMethodsResponse>|undefined}
|
|
215
|
-
* The XHR Node Readable Stream
|
|
216
|
-
*/
|
|
217
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServiceClient.prototype.getPaymentMethods =
|
|
218
|
-
function(request, metadata, callback) {
|
|
219
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
220
|
-
'/sniippaymentgatewayapi.SniipPaymentGatewayAPIService/GetPaymentMethods',
|
|
221
|
-
request,
|
|
222
|
-
metadata,
|
|
223
|
-
methodInfo_SniipPaymentGatewayAPIService_GetPaymentMethods,
|
|
224
|
-
callback);
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* @param {!proto.google.protobuf.Empty} request The
|
|
230
|
-
* request proto
|
|
231
|
-
* @param {!Object<string, string>} metadata User defined
|
|
232
|
-
* call metadata
|
|
233
|
-
* @return {!Promise<!proto.sniippaymentgatewayapi.PaymentMethodsResponse>}
|
|
234
|
-
* The XHR Node Readable Stream
|
|
235
|
-
*/
|
|
236
|
-
proto.sniippaymentgatewayapi.SniipPaymentGatewayAPIServicePromiseClient.prototype.getPaymentMethods =
|
|
237
|
-
function(request, metadata) {
|
|
238
|
-
return new Promise((resolve, reject) => {
|
|
239
|
-
this.delegateClient_.getPaymentMethods(
|
|
240
|
-
request, metadata, (error, response) => {
|
|
241
|
-
error ? reject(error) : resolve(response);
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
module.exports = proto.sniippaymentgatewayapi;
|
|
248
|
-
|