@sellout/models 0.0.120 → 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/interfaces/IEvent.d.ts +1 -1
- package/.dist/interfaces/IEvent.js +1 -1
- package/.dist/sellout-proto.js +1470 -0
- package/package.json +3 -3
- package/src/graphql/queries/stripeCardDetail.query.ts +18 -0
- package/src/interfaces/IEvent.ts +1 -1
- package/src/proto/event.proto +14 -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.124",
|
|
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.124",
|
|
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": "c7d76a8e52f9e5ffb0f44a7b1604d3f49f0e8a29"
|
|
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/interfaces/IEvent.ts
CHANGED
package/src/proto/event.proto
CHANGED
|
@@ -221,6 +221,18 @@ 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 EventTicketsResponse {
|
|
231
|
+
StatusCode status = 0;
|
|
232
|
+
repeated Error errors = 1;
|
|
233
|
+
repeated TicketType tickets = 2;
|
|
234
|
+
}
|
|
235
|
+
|
|
224
236
|
// Find Event By Id
|
|
225
237
|
message FindEventByIdRequest {
|
|
226
238
|
string spanContext = 0;
|
|
@@ -310,6 +322,8 @@ service EventService {
|
|
|
310
322
|
rpc updateEvent(UpdateEventRequest) returns (UpdateEventResponse) {}
|
|
311
323
|
// Query
|
|
312
324
|
rpc queryEvents(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
325
|
+
// events ticket by promo
|
|
326
|
+
rpc eventTickets(EventTicketsRequest) returns (EventTicketsResponse) {}
|
|
313
327
|
// Find
|
|
314
328
|
rpc findEventById(FindEventByIdRequest) returns (FindEventByIdResponse) {}
|
|
315
329
|
// 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) {}
|