@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.120",
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.120",
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": "d9577c04cbcd69c21809404c7720d1d55763dca7"
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;
@@ -45,7 +45,7 @@ export enum EventTaxDeductionEnum {
45
45
  export enum SendQRCodeEnum {
46
46
  UponOrder = 'Upon order',
47
47
  TwoWeeksBefore = 'Two weeks before show',
48
- DayOfShow = 'Day of show',
48
+ DayOfShow = 'Day of Show',
49
49
  }
50
50
 
51
51
  export enum EventProcessAsEnum {
@@ -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
@@ -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) {}