@sellout/models 0.0.121 → 0.0.125
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/promoCodeVerify.query.d.ts +2 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js +30 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -0
- 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 +1790 -0
- package/package.json +3 -3
- package/src/graphql/queries/stripeCardDetail.query.ts +18 -0
- package/src/proto/event.proto +23 -0
- package/src/proto/stripe.proto +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.125",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hapi/joi": "^16.1.7",
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
20
|
+
"@sellout/utils": "^0.0.125",
|
|
21
21
|
"@types/hapi__joi": "^16.0.1",
|
|
22
22
|
"@types/shortid": "^0.0.29",
|
|
23
23
|
"apollo-link-debounce": "^2.1.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"protobufjs": "^6.11.2",
|
|
32
32
|
"typescript": "^4.4.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "18bd3cac21fd479fb0dbc4c2bd024e7661c23efd"
|
|
35
35
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query getStripeCardByMethod($paymentMethodId: String!) {
|
|
5
|
+
getStripeCardByMethod(paymentMethodId: $paymentMethodId) {
|
|
6
|
+
brand
|
|
7
|
+
last4
|
|
8
|
+
expMonth
|
|
9
|
+
expYear
|
|
10
|
+
funding
|
|
11
|
+
country
|
|
12
|
+
paymentMethodId
|
|
13
|
+
type
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
export default query;
|
package/src/proto/event.proto
CHANGED
|
@@ -221,6 +221,27 @@ message QueryEventsResponse {
|
|
|
221
221
|
repeated Event events = 2;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
message EventTicketsRequest {
|
|
225
|
+
string spanContext = 0;
|
|
226
|
+
string eventId = 1;
|
|
227
|
+
string promoCode = 2;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message EventTickets {
|
|
231
|
+
string promoType = 0;
|
|
232
|
+
int32 remainingQty = 2;
|
|
233
|
+
bool active = 3;
|
|
234
|
+
int32 startsAt = 4;
|
|
235
|
+
int32 endsAt = 5;
|
|
236
|
+
repeated TicketType eventTickets = 1;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
message EventTicketsResponse {
|
|
240
|
+
StatusCode status = 0;
|
|
241
|
+
repeated Error errors = 1;
|
|
242
|
+
repeated EventTickets tickets = 2;
|
|
243
|
+
}
|
|
244
|
+
|
|
224
245
|
// Find Event By Id
|
|
225
246
|
message FindEventByIdRequest {
|
|
226
247
|
string spanContext = 0;
|
|
@@ -310,6 +331,8 @@ service EventService {
|
|
|
310
331
|
rpc updateEvent(UpdateEventRequest) returns (UpdateEventResponse) {}
|
|
311
332
|
// Query
|
|
312
333
|
rpc queryEvents(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
334
|
+
// events ticket by promo
|
|
335
|
+
rpc eventTickets(EventTicketsRequest) returns (EventTicketsResponse) {}
|
|
313
336
|
// Find
|
|
314
337
|
rpc findEventById(FindEventByIdRequest) returns (FindEventByIdResponse) {}
|
|
315
338
|
// List
|
package/src/proto/stripe.proto
CHANGED
|
@@ -47,6 +47,17 @@ message StripePaymentMethod {
|
|
|
47
47
|
string type = 7;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
message Card {
|
|
51
|
+
string brand = 1;
|
|
52
|
+
string last4 = 2;
|
|
53
|
+
int32 expMonth = 3;
|
|
54
|
+
int32 expYear = 4;
|
|
55
|
+
string funding = 5;
|
|
56
|
+
string country = 6;
|
|
57
|
+
string paymentMethodId = 7;
|
|
58
|
+
string type = 8;
|
|
59
|
+
}
|
|
60
|
+
|
|
50
61
|
/***************************************************************************************
|
|
51
62
|
Connect Account
|
|
52
63
|
****************************************************************************************/
|
|
@@ -213,6 +224,16 @@ message AttachStripePaymentMethodResponse {
|
|
|
213
224
|
StripePaymentMethod paymentMethod = 2;
|
|
214
225
|
}
|
|
215
226
|
|
|
227
|
+
message GetStripeCardByMethodRequest {
|
|
228
|
+
string spanContext = 0;
|
|
229
|
+
string paymentMethodId = 1;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
message GetStripeCardByMethodResponse {
|
|
233
|
+
StatusCode status = 0;
|
|
234
|
+
repeated Error errors = 1;
|
|
235
|
+
Card card = 2;
|
|
236
|
+
}
|
|
216
237
|
/***************************************************************************************
|
|
217
238
|
Payment Intent
|
|
218
239
|
****************************************************************************************/
|
|
@@ -355,6 +376,7 @@ service StripeService {
|
|
|
355
376
|
// Payment Method
|
|
356
377
|
rpc createStripeSetupIntent(CreateStripeSetupIntentRequest) returns (CreateStripeSetupIntentResponse) {}
|
|
357
378
|
rpc attachStripePaymentMethod(AttachStripePaymentMethodRequest) returns (AttachStripePaymentMethodResponse) {}
|
|
379
|
+
rpc getStripeCardByMethod(GetStripeCardByMethodRequest) returns (GetStripeCardByMethodResponse) {}
|
|
358
380
|
// Terminal
|
|
359
381
|
rpc registerStripeTerminalReader(RegisterStripeTerminalReaderRequest) returns (RegisterStripeTerminalReaderResponse) {}
|
|
360
382
|
rpc listStripeTerminalReaders(ListStripeTerminalReadersRequest) returns (ListStripeTerminalReadersResponse) {}
|