wash-service-sdk 1.0.0 → 1.0.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.
@@ -69,6 +69,10 @@ export interface PaymentRequest {
69
69
  * @generated from protobuf field: string storeId = 7
70
70
  */
71
71
  storeId: string;
72
+ /**
73
+ * @generated from protobuf field: string transactionId = 8
74
+ */
75
+ transactionId: string;
72
76
  }
73
77
  /**
74
78
  * @generated from protobuf message payment.ConfirmPaymentRequest
@@ -370,11 +374,27 @@ export interface GetPaymentV1Response {
370
374
  */
371
375
  paymentMethod: string;
372
376
  /**
373
- * @generated from protobuf field: string createdAt = 7
377
+ * @generated from protobuf field: optional string paidAt = 7
378
+ */
379
+ paidAt?: string;
380
+ /**
381
+ * @generated from protobuf field: optional string failedAt = 8
382
+ */
383
+ failedAt?: string;
384
+ /**
385
+ * @generated from protobuf field: optional string cancelledAt = 9
386
+ */
387
+ cancelledAt?: string;
388
+ /**
389
+ * @generated from protobuf field: optional string failureReason = 10
390
+ */
391
+ failureReason?: string;
392
+ /**
393
+ * @generated from protobuf field: string createdAt = 11
374
394
  */
375
395
  createdAt: string;
376
396
  /**
377
- * @generated from protobuf field: string updatedAt = 8
397
+ * @generated from protobuf field: string updatedAt = 12
378
398
  */
379
399
  updatedAt: string;
380
400
  }
@@ -129,7 +129,8 @@ class PaymentRequest$Type extends runtime_4.MessageType {
129
129
  { no: 4, name: "amount", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
130
130
  { no: 5, name: "data", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
131
131
  { no: 6, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
132
- { no: 7, name: "storeId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
132
+ { no: 7, name: "storeId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
133
+ { no: 8, name: "transactionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
133
134
  ]);
134
135
  }
135
136
  create(value) {
@@ -141,6 +142,7 @@ class PaymentRequest$Type extends runtime_4.MessageType {
141
142
  message.data = "";
142
143
  message.type = "";
143
144
  message.storeId = "";
145
+ message.transactionId = "";
144
146
  if (value !== undefined)
145
147
  runtime_3.reflectionMergePartial(this, message, value);
146
148
  return message;
@@ -171,6 +173,9 @@ class PaymentRequest$Type extends runtime_4.MessageType {
171
173
  case /* string storeId */ 7:
172
174
  message.storeId = reader.string();
173
175
  break;
176
+ case /* string transactionId */ 8:
177
+ message.transactionId = reader.string();
178
+ break;
174
179
  default:
175
180
  let u = options.readUnknownField;
176
181
  if (u === "throw")
@@ -204,6 +209,9 @@ class PaymentRequest$Type extends runtime_4.MessageType {
204
209
  /* string storeId = 7; */
205
210
  if (message.storeId !== "")
206
211
  writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.storeId);
212
+ /* string transactionId = 8; */
213
+ if (message.transactionId !== "")
214
+ writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.transactionId);
207
215
  let u = options.writeUnknownFields;
208
216
  if (u !== false)
209
217
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1183,8 +1191,12 @@ class GetPaymentV1Response$Type extends runtime_4.MessageType {
1183
1191
  { no: 4, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1184
1192
  { no: 5, name: "method", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1185
1193
  { no: 6, name: "paymentMethod", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1186
- { no: 7, name: "createdAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1187
- { no: 8, name: "updatedAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1194
+ { no: 7, name: "paidAt", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1195
+ { no: 8, name: "failedAt", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1196
+ { no: 9, name: "cancelledAt", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1197
+ { no: 10, name: "failureReason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1198
+ { no: 11, name: "createdAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1199
+ { no: 12, name: "updatedAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1188
1200
  ]);
1189
1201
  }
1190
1202
  create(value) {
@@ -1223,10 +1235,22 @@ class GetPaymentV1Response$Type extends runtime_4.MessageType {
1223
1235
  case /* string paymentMethod */ 6:
1224
1236
  message.paymentMethod = reader.string();
1225
1237
  break;
1226
- case /* string createdAt */ 7:
1238
+ case /* optional string paidAt */ 7:
1239
+ message.paidAt = reader.string();
1240
+ break;
1241
+ case /* optional string failedAt */ 8:
1242
+ message.failedAt = reader.string();
1243
+ break;
1244
+ case /* optional string cancelledAt */ 9:
1245
+ message.cancelledAt = reader.string();
1246
+ break;
1247
+ case /* optional string failureReason */ 10:
1248
+ message.failureReason = reader.string();
1249
+ break;
1250
+ case /* string createdAt */ 11:
1227
1251
  message.createdAt = reader.string();
1228
1252
  break;
1229
- case /* string updatedAt */ 8:
1253
+ case /* string updatedAt */ 12:
1230
1254
  message.updatedAt = reader.string();
1231
1255
  break;
1232
1256
  default:
@@ -1259,12 +1283,24 @@ class GetPaymentV1Response$Type extends runtime_4.MessageType {
1259
1283
  /* string paymentMethod = 6; */
1260
1284
  if (message.paymentMethod !== "")
1261
1285
  writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.paymentMethod);
1262
- /* string createdAt = 7; */
1286
+ /* optional string paidAt = 7; */
1287
+ if (message.paidAt !== undefined)
1288
+ writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.paidAt);
1289
+ /* optional string failedAt = 8; */
1290
+ if (message.failedAt !== undefined)
1291
+ writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.failedAt);
1292
+ /* optional string cancelledAt = 9; */
1293
+ if (message.cancelledAt !== undefined)
1294
+ writer.tag(9, runtime_1.WireType.LengthDelimited).string(message.cancelledAt);
1295
+ /* optional string failureReason = 10; */
1296
+ if (message.failureReason !== undefined)
1297
+ writer.tag(10, runtime_1.WireType.LengthDelimited).string(message.failureReason);
1298
+ /* string createdAt = 11; */
1263
1299
  if (message.createdAt !== "")
1264
- writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.createdAt);
1265
- /* string updatedAt = 8; */
1300
+ writer.tag(11, runtime_1.WireType.LengthDelimited).string(message.createdAt);
1301
+ /* string updatedAt = 12; */
1266
1302
  if (message.updatedAt !== "")
1267
- writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.updatedAt);
1303
+ writer.tag(12, runtime_1.WireType.LengthDelimited).string(message.updatedAt);
1268
1304
  let u = options.writeUnknownFields;
1269
1305
  if (u !== false)
1270
1306
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wash-service-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "",
@@ -23,6 +23,7 @@ message PaymentRequest {
23
23
  string data = 5; // 결제 데이터
24
24
  string type = 6; // 결제 데이터
25
25
  string storeId = 7;
26
+ string transactionId = 8;
26
27
  }
27
28
 
28
29
  message ConfirmPaymentRequest {
@@ -128,8 +129,12 @@ message GetPaymentV1Response {
128
129
  string status = 4;
129
130
  string method = 5;
130
131
  string paymentMethod = 6;
131
- string createdAt = 7;
132
- string updatedAt = 8;
132
+ optional string paidAt = 7;
133
+ optional string failedAt = 8;
134
+ optional string cancelledAt = 9;
135
+ optional string failureReason = 10;
136
+ string createdAt = 11;
137
+ string updatedAt = 12;
133
138
  }
134
139
 
135
140
  // 결제 서비스 정의
@@ -75,6 +75,10 @@ export interface PaymentRequest {
75
75
  * @generated from protobuf field: string storeId = 7
76
76
  */
77
77
  storeId: string;
78
+ /**
79
+ * @generated from protobuf field: string transactionId = 8
80
+ */
81
+ transactionId: string;
78
82
  }
79
83
  /**
80
84
  * @generated from protobuf message payment.ConfirmPaymentRequest
@@ -376,11 +380,27 @@ export interface GetPaymentV1Response {
376
380
  */
377
381
  paymentMethod: string;
378
382
  /**
379
- * @generated from protobuf field: string createdAt = 7
383
+ * @generated from protobuf field: optional string paidAt = 7
384
+ */
385
+ paidAt?: string;
386
+ /**
387
+ * @generated from protobuf field: optional string failedAt = 8
388
+ */
389
+ failedAt?: string;
390
+ /**
391
+ * @generated from protobuf field: optional string cancelledAt = 9
392
+ */
393
+ cancelledAt?: string;
394
+ /**
395
+ * @generated from protobuf field: optional string failureReason = 10
396
+ */
397
+ failureReason?: string;
398
+ /**
399
+ * @generated from protobuf field: string createdAt = 11
380
400
  */
381
401
  createdAt: string;
382
402
  /**
383
- * @generated from protobuf field: string updatedAt = 8
403
+ * @generated from protobuf field: string updatedAt = 12
384
404
  */
385
405
  updatedAt: string;
386
406
  }
@@ -504,7 +524,8 @@ class PaymentRequest$Type extends MessageType<PaymentRequest> {
504
524
  { no: 4, name: "amount", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
505
525
  { no: 5, name: "data", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
506
526
  { no: 6, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
507
- { no: 7, name: "storeId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
527
+ { no: 7, name: "storeId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
528
+ { no: 8, name: "transactionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
508
529
  ]);
509
530
  }
510
531
  create(value?: PartialMessage<PaymentRequest>): PaymentRequest {
@@ -516,6 +537,7 @@ class PaymentRequest$Type extends MessageType<PaymentRequest> {
516
537
  message.data = "";
517
538
  message.type = "";
518
539
  message.storeId = "";
540
+ message.transactionId = "";
519
541
  if (value !== undefined)
520
542
  reflectionMergePartial<PaymentRequest>(this, message, value);
521
543
  return message;
@@ -546,6 +568,9 @@ class PaymentRequest$Type extends MessageType<PaymentRequest> {
546
568
  case /* string storeId */ 7:
547
569
  message.storeId = reader.string();
548
570
  break;
571
+ case /* string transactionId */ 8:
572
+ message.transactionId = reader.string();
573
+ break;
549
574
  default:
550
575
  let u = options.readUnknownField;
551
576
  if (u === "throw")
@@ -579,6 +604,9 @@ class PaymentRequest$Type extends MessageType<PaymentRequest> {
579
604
  /* string storeId = 7; */
580
605
  if (message.storeId !== "")
581
606
  writer.tag(7, WireType.LengthDelimited).string(message.storeId);
607
+ /* string transactionId = 8; */
608
+ if (message.transactionId !== "")
609
+ writer.tag(8, WireType.LengthDelimited).string(message.transactionId);
582
610
  let u = options.writeUnknownFields;
583
611
  if (u !== false)
584
612
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1558,8 +1586,12 @@ class GetPaymentV1Response$Type extends MessageType<GetPaymentV1Response> {
1558
1586
  { no: 4, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1559
1587
  { no: 5, name: "method", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1560
1588
  { no: 6, name: "paymentMethod", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1561
- { no: 7, name: "createdAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1562
- { no: 8, name: "updatedAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1589
+ { no: 7, name: "paidAt", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1590
+ { no: 8, name: "failedAt", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1591
+ { no: 9, name: "cancelledAt", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1592
+ { no: 10, name: "failureReason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1593
+ { no: 11, name: "createdAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1594
+ { no: 12, name: "updatedAt", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1563
1595
  ]);
1564
1596
  }
1565
1597
  create(value?: PartialMessage<GetPaymentV1Response>): GetPaymentV1Response {
@@ -1598,10 +1630,22 @@ class GetPaymentV1Response$Type extends MessageType<GetPaymentV1Response> {
1598
1630
  case /* string paymentMethod */ 6:
1599
1631
  message.paymentMethod = reader.string();
1600
1632
  break;
1601
- case /* string createdAt */ 7:
1633
+ case /* optional string paidAt */ 7:
1634
+ message.paidAt = reader.string();
1635
+ break;
1636
+ case /* optional string failedAt */ 8:
1637
+ message.failedAt = reader.string();
1638
+ break;
1639
+ case /* optional string cancelledAt */ 9:
1640
+ message.cancelledAt = reader.string();
1641
+ break;
1642
+ case /* optional string failureReason */ 10:
1643
+ message.failureReason = reader.string();
1644
+ break;
1645
+ case /* string createdAt */ 11:
1602
1646
  message.createdAt = reader.string();
1603
1647
  break;
1604
- case /* string updatedAt */ 8:
1648
+ case /* string updatedAt */ 12:
1605
1649
  message.updatedAt = reader.string();
1606
1650
  break;
1607
1651
  default:
@@ -1634,12 +1678,24 @@ class GetPaymentV1Response$Type extends MessageType<GetPaymentV1Response> {
1634
1678
  /* string paymentMethod = 6; */
1635
1679
  if (message.paymentMethod !== "")
1636
1680
  writer.tag(6, WireType.LengthDelimited).string(message.paymentMethod);
1637
- /* string createdAt = 7; */
1681
+ /* optional string paidAt = 7; */
1682
+ if (message.paidAt !== undefined)
1683
+ writer.tag(7, WireType.LengthDelimited).string(message.paidAt);
1684
+ /* optional string failedAt = 8; */
1685
+ if (message.failedAt !== undefined)
1686
+ writer.tag(8, WireType.LengthDelimited).string(message.failedAt);
1687
+ /* optional string cancelledAt = 9; */
1688
+ if (message.cancelledAt !== undefined)
1689
+ writer.tag(9, WireType.LengthDelimited).string(message.cancelledAt);
1690
+ /* optional string failureReason = 10; */
1691
+ if (message.failureReason !== undefined)
1692
+ writer.tag(10, WireType.LengthDelimited).string(message.failureReason);
1693
+ /* string createdAt = 11; */
1638
1694
  if (message.createdAt !== "")
1639
- writer.tag(7, WireType.LengthDelimited).string(message.createdAt);
1640
- /* string updatedAt = 8; */
1695
+ writer.tag(11, WireType.LengthDelimited).string(message.createdAt);
1696
+ /* string updatedAt = 12; */
1641
1697
  if (message.updatedAt !== "")
1642
- writer.tag(8, WireType.LengthDelimited).string(message.updatedAt);
1698
+ writer.tag(12, WireType.LengthDelimited).string(message.updatedAt);
1643
1699
  let u = options.writeUnknownFields;
1644
1700
  if (u !== false)
1645
1701
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);