@miradorlabs/web-grpc 2.1.0 → 2.2.0
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.
|
@@ -206,6 +206,12 @@ export enum TraceEventType {
|
|
|
206
206
|
TRACE_EVENT_TYPE_CANTON_TRANSACTION = 54,
|
|
207
207
|
TRACE_EVENT_TYPE_SPAN_STARTED = 55,
|
|
208
208
|
TRACE_EVENT_TYPE_SPAN_ENDED = 56,
|
|
209
|
+
TRACE_EVENT_TYPE_STRIPE_HINT_ADDED = 57,
|
|
210
|
+
TRACE_EVENT_TYPE_STRIPE_TRACKING_STARTED = 58,
|
|
211
|
+
TRACE_EVENT_TYPE_STRIPE_PAYMENT_SUCCEEDED = 59,
|
|
212
|
+
TRACE_EVENT_TYPE_STRIPE_FUNDS_AVAILABLE = 60,
|
|
213
|
+
TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID = 61,
|
|
214
|
+
TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED = 62,
|
|
209
215
|
UNRECOGNIZED = -1,
|
|
210
216
|
}
|
|
211
217
|
|
|
@@ -346,6 +352,24 @@ export function traceEventTypeFromJSON(object: any): TraceEventType {
|
|
|
346
352
|
case 56:
|
|
347
353
|
case "TRACE_EVENT_TYPE_SPAN_ENDED":
|
|
348
354
|
return TraceEventType.TRACE_EVENT_TYPE_SPAN_ENDED;
|
|
355
|
+
case 57:
|
|
356
|
+
case "TRACE_EVENT_TYPE_STRIPE_HINT_ADDED":
|
|
357
|
+
return TraceEventType.TRACE_EVENT_TYPE_STRIPE_HINT_ADDED;
|
|
358
|
+
case 58:
|
|
359
|
+
case "TRACE_EVENT_TYPE_STRIPE_TRACKING_STARTED":
|
|
360
|
+
return TraceEventType.TRACE_EVENT_TYPE_STRIPE_TRACKING_STARTED;
|
|
361
|
+
case 59:
|
|
362
|
+
case "TRACE_EVENT_TYPE_STRIPE_PAYMENT_SUCCEEDED":
|
|
363
|
+
return TraceEventType.TRACE_EVENT_TYPE_STRIPE_PAYMENT_SUCCEEDED;
|
|
364
|
+
case 60:
|
|
365
|
+
case "TRACE_EVENT_TYPE_STRIPE_FUNDS_AVAILABLE":
|
|
366
|
+
return TraceEventType.TRACE_EVENT_TYPE_STRIPE_FUNDS_AVAILABLE;
|
|
367
|
+
case 61:
|
|
368
|
+
case "TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID":
|
|
369
|
+
return TraceEventType.TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID;
|
|
370
|
+
case 62:
|
|
371
|
+
case "TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED":
|
|
372
|
+
return TraceEventType.TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED;
|
|
349
373
|
case -1:
|
|
350
374
|
case "UNRECOGNIZED":
|
|
351
375
|
default:
|
|
@@ -445,6 +469,18 @@ export function traceEventTypeToJSON(object: TraceEventType): string {
|
|
|
445
469
|
return "TRACE_EVENT_TYPE_SPAN_STARTED";
|
|
446
470
|
case TraceEventType.TRACE_EVENT_TYPE_SPAN_ENDED:
|
|
447
471
|
return "TRACE_EVENT_TYPE_SPAN_ENDED";
|
|
472
|
+
case TraceEventType.TRACE_EVENT_TYPE_STRIPE_HINT_ADDED:
|
|
473
|
+
return "TRACE_EVENT_TYPE_STRIPE_HINT_ADDED";
|
|
474
|
+
case TraceEventType.TRACE_EVENT_TYPE_STRIPE_TRACKING_STARTED:
|
|
475
|
+
return "TRACE_EVENT_TYPE_STRIPE_TRACKING_STARTED";
|
|
476
|
+
case TraceEventType.TRACE_EVENT_TYPE_STRIPE_PAYMENT_SUCCEEDED:
|
|
477
|
+
return "TRACE_EVENT_TYPE_STRIPE_PAYMENT_SUCCEEDED";
|
|
478
|
+
case TraceEventType.TRACE_EVENT_TYPE_STRIPE_FUNDS_AVAILABLE:
|
|
479
|
+
return "TRACE_EVENT_TYPE_STRIPE_FUNDS_AVAILABLE";
|
|
480
|
+
case TraceEventType.TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID:
|
|
481
|
+
return "TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID";
|
|
482
|
+
case TraceEventType.TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED:
|
|
483
|
+
return "TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED";
|
|
448
484
|
case TraceEventType.UNRECOGNIZED:
|
|
449
485
|
default:
|
|
450
486
|
return "UNRECOGNIZED";
|
|
@@ -1199,6 +1235,211 @@ export function relayHintStatusToJSON(object: RelayHintStatus): string {
|
|
|
1199
1235
|
}
|
|
1200
1236
|
}
|
|
1201
1237
|
|
|
1238
|
+
/** StripePaymentStatus mirrors Stripe's PaymentIntent.status state machine. */
|
|
1239
|
+
export enum StripePaymentStatus {
|
|
1240
|
+
STRIPE_PAYMENT_STATUS_UNSPECIFIED = 0,
|
|
1241
|
+
STRIPE_PAYMENT_STATUS_REQUIRES_PAYMENT_METHOD = 1,
|
|
1242
|
+
STRIPE_PAYMENT_STATUS_REQUIRES_CONFIRMATION = 2,
|
|
1243
|
+
STRIPE_PAYMENT_STATUS_REQUIRES_ACTION = 3,
|
|
1244
|
+
STRIPE_PAYMENT_STATUS_PROCESSING = 4,
|
|
1245
|
+
STRIPE_PAYMENT_STATUS_REQUIRES_CAPTURE = 5,
|
|
1246
|
+
STRIPE_PAYMENT_STATUS_SUCCEEDED = 6,
|
|
1247
|
+
STRIPE_PAYMENT_STATUS_CANCELED = 7,
|
|
1248
|
+
UNRECOGNIZED = -1,
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
export function stripePaymentStatusFromJSON(object: any): StripePaymentStatus {
|
|
1252
|
+
switch (object) {
|
|
1253
|
+
case 0:
|
|
1254
|
+
case "STRIPE_PAYMENT_STATUS_UNSPECIFIED":
|
|
1255
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_UNSPECIFIED;
|
|
1256
|
+
case 1:
|
|
1257
|
+
case "STRIPE_PAYMENT_STATUS_REQUIRES_PAYMENT_METHOD":
|
|
1258
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_PAYMENT_METHOD;
|
|
1259
|
+
case 2:
|
|
1260
|
+
case "STRIPE_PAYMENT_STATUS_REQUIRES_CONFIRMATION":
|
|
1261
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_CONFIRMATION;
|
|
1262
|
+
case 3:
|
|
1263
|
+
case "STRIPE_PAYMENT_STATUS_REQUIRES_ACTION":
|
|
1264
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_ACTION;
|
|
1265
|
+
case 4:
|
|
1266
|
+
case "STRIPE_PAYMENT_STATUS_PROCESSING":
|
|
1267
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_PROCESSING;
|
|
1268
|
+
case 5:
|
|
1269
|
+
case "STRIPE_PAYMENT_STATUS_REQUIRES_CAPTURE":
|
|
1270
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_CAPTURE;
|
|
1271
|
+
case 6:
|
|
1272
|
+
case "STRIPE_PAYMENT_STATUS_SUCCEEDED":
|
|
1273
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_SUCCEEDED;
|
|
1274
|
+
case 7:
|
|
1275
|
+
case "STRIPE_PAYMENT_STATUS_CANCELED":
|
|
1276
|
+
return StripePaymentStatus.STRIPE_PAYMENT_STATUS_CANCELED;
|
|
1277
|
+
case -1:
|
|
1278
|
+
case "UNRECOGNIZED":
|
|
1279
|
+
default:
|
|
1280
|
+
return StripePaymentStatus.UNRECOGNIZED;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export function stripePaymentStatusToJSON(object: StripePaymentStatus): string {
|
|
1285
|
+
switch (object) {
|
|
1286
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_UNSPECIFIED:
|
|
1287
|
+
return "STRIPE_PAYMENT_STATUS_UNSPECIFIED";
|
|
1288
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_PAYMENT_METHOD:
|
|
1289
|
+
return "STRIPE_PAYMENT_STATUS_REQUIRES_PAYMENT_METHOD";
|
|
1290
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_CONFIRMATION:
|
|
1291
|
+
return "STRIPE_PAYMENT_STATUS_REQUIRES_CONFIRMATION";
|
|
1292
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_ACTION:
|
|
1293
|
+
return "STRIPE_PAYMENT_STATUS_REQUIRES_ACTION";
|
|
1294
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_PROCESSING:
|
|
1295
|
+
return "STRIPE_PAYMENT_STATUS_PROCESSING";
|
|
1296
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_REQUIRES_CAPTURE:
|
|
1297
|
+
return "STRIPE_PAYMENT_STATUS_REQUIRES_CAPTURE";
|
|
1298
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_SUCCEEDED:
|
|
1299
|
+
return "STRIPE_PAYMENT_STATUS_SUCCEEDED";
|
|
1300
|
+
case StripePaymentStatus.STRIPE_PAYMENT_STATUS_CANCELED:
|
|
1301
|
+
return "STRIPE_PAYMENT_STATUS_CANCELED";
|
|
1302
|
+
case StripePaymentStatus.UNRECOGNIZED:
|
|
1303
|
+
default:
|
|
1304
|
+
return "UNRECOGNIZED";
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/** StripePayoutStatus mirrors Stripe's Payout.status state machine. */
|
|
1309
|
+
export enum StripePayoutStatus {
|
|
1310
|
+
STRIPE_PAYOUT_STATUS_UNSPECIFIED = 0,
|
|
1311
|
+
STRIPE_PAYOUT_STATUS_PENDING = 1,
|
|
1312
|
+
STRIPE_PAYOUT_STATUS_IN_TRANSIT = 2,
|
|
1313
|
+
STRIPE_PAYOUT_STATUS_PAID = 3,
|
|
1314
|
+
STRIPE_PAYOUT_STATUS_FAILED = 4,
|
|
1315
|
+
STRIPE_PAYOUT_STATUS_CANCELED = 5,
|
|
1316
|
+
UNRECOGNIZED = -1,
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
export function stripePayoutStatusFromJSON(object: any): StripePayoutStatus {
|
|
1320
|
+
switch (object) {
|
|
1321
|
+
case 0:
|
|
1322
|
+
case "STRIPE_PAYOUT_STATUS_UNSPECIFIED":
|
|
1323
|
+
return StripePayoutStatus.STRIPE_PAYOUT_STATUS_UNSPECIFIED;
|
|
1324
|
+
case 1:
|
|
1325
|
+
case "STRIPE_PAYOUT_STATUS_PENDING":
|
|
1326
|
+
return StripePayoutStatus.STRIPE_PAYOUT_STATUS_PENDING;
|
|
1327
|
+
case 2:
|
|
1328
|
+
case "STRIPE_PAYOUT_STATUS_IN_TRANSIT":
|
|
1329
|
+
return StripePayoutStatus.STRIPE_PAYOUT_STATUS_IN_TRANSIT;
|
|
1330
|
+
case 3:
|
|
1331
|
+
case "STRIPE_PAYOUT_STATUS_PAID":
|
|
1332
|
+
return StripePayoutStatus.STRIPE_PAYOUT_STATUS_PAID;
|
|
1333
|
+
case 4:
|
|
1334
|
+
case "STRIPE_PAYOUT_STATUS_FAILED":
|
|
1335
|
+
return StripePayoutStatus.STRIPE_PAYOUT_STATUS_FAILED;
|
|
1336
|
+
case 5:
|
|
1337
|
+
case "STRIPE_PAYOUT_STATUS_CANCELED":
|
|
1338
|
+
return StripePayoutStatus.STRIPE_PAYOUT_STATUS_CANCELED;
|
|
1339
|
+
case -1:
|
|
1340
|
+
case "UNRECOGNIZED":
|
|
1341
|
+
default:
|
|
1342
|
+
return StripePayoutStatus.UNRECOGNIZED;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
export function stripePayoutStatusToJSON(object: StripePayoutStatus): string {
|
|
1347
|
+
switch (object) {
|
|
1348
|
+
case StripePayoutStatus.STRIPE_PAYOUT_STATUS_UNSPECIFIED:
|
|
1349
|
+
return "STRIPE_PAYOUT_STATUS_UNSPECIFIED";
|
|
1350
|
+
case StripePayoutStatus.STRIPE_PAYOUT_STATUS_PENDING:
|
|
1351
|
+
return "STRIPE_PAYOUT_STATUS_PENDING";
|
|
1352
|
+
case StripePayoutStatus.STRIPE_PAYOUT_STATUS_IN_TRANSIT:
|
|
1353
|
+
return "STRIPE_PAYOUT_STATUS_IN_TRANSIT";
|
|
1354
|
+
case StripePayoutStatus.STRIPE_PAYOUT_STATUS_PAID:
|
|
1355
|
+
return "STRIPE_PAYOUT_STATUS_PAID";
|
|
1356
|
+
case StripePayoutStatus.STRIPE_PAYOUT_STATUS_FAILED:
|
|
1357
|
+
return "STRIPE_PAYOUT_STATUS_FAILED";
|
|
1358
|
+
case StripePayoutStatus.STRIPE_PAYOUT_STATUS_CANCELED:
|
|
1359
|
+
return "STRIPE_PAYOUT_STATUS_CANCELED";
|
|
1360
|
+
case StripePayoutStatus.UNRECOGNIZED:
|
|
1361
|
+
default:
|
|
1362
|
+
return "UNRECOGNIZED";
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
/** StripeHintStatus indicates the terminal status of a Stripe payment hint. */
|
|
1367
|
+
export enum StripeHintStatus {
|
|
1368
|
+
STRIPE_HINT_STATUS_UNSPECIFIED = 0,
|
|
1369
|
+
/** STRIPE_HINT_STATUS_SUCCESS - Payment succeeded and funds paid out */
|
|
1370
|
+
STRIPE_HINT_STATUS_SUCCESS = 1,
|
|
1371
|
+
/** STRIPE_HINT_STATUS_PAYMENT_FAILED - PaymentIntent failed or was canceled */
|
|
1372
|
+
STRIPE_HINT_STATUS_PAYMENT_FAILED = 2,
|
|
1373
|
+
/** STRIPE_HINT_STATUS_REFUNDED - Charge refunded */
|
|
1374
|
+
STRIPE_HINT_STATUS_REFUNDED = 3,
|
|
1375
|
+
/** STRIPE_HINT_STATUS_DISPUTED - Charge disputed / charged back */
|
|
1376
|
+
STRIPE_HINT_STATUS_DISPUTED = 4,
|
|
1377
|
+
/** STRIPE_HINT_STATUS_PAYOUT_FAILED - Payout to the bank account failed */
|
|
1378
|
+
STRIPE_HINT_STATUS_PAYOUT_FAILED = 5,
|
|
1379
|
+
/** STRIPE_HINT_STATUS_TIMEOUT - Tracker gave up before terminal phase */
|
|
1380
|
+
STRIPE_HINT_STATUS_TIMEOUT = 6,
|
|
1381
|
+
/** STRIPE_HINT_STATUS_NOT_FOUND - PaymentIntent never found in Stripe */
|
|
1382
|
+
STRIPE_HINT_STATUS_NOT_FOUND = 7,
|
|
1383
|
+
UNRECOGNIZED = -1,
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
export function stripeHintStatusFromJSON(object: any): StripeHintStatus {
|
|
1387
|
+
switch (object) {
|
|
1388
|
+
case 0:
|
|
1389
|
+
case "STRIPE_HINT_STATUS_UNSPECIFIED":
|
|
1390
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_UNSPECIFIED;
|
|
1391
|
+
case 1:
|
|
1392
|
+
case "STRIPE_HINT_STATUS_SUCCESS":
|
|
1393
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_SUCCESS;
|
|
1394
|
+
case 2:
|
|
1395
|
+
case "STRIPE_HINT_STATUS_PAYMENT_FAILED":
|
|
1396
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_PAYMENT_FAILED;
|
|
1397
|
+
case 3:
|
|
1398
|
+
case "STRIPE_HINT_STATUS_REFUNDED":
|
|
1399
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_REFUNDED;
|
|
1400
|
+
case 4:
|
|
1401
|
+
case "STRIPE_HINT_STATUS_DISPUTED":
|
|
1402
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_DISPUTED;
|
|
1403
|
+
case 5:
|
|
1404
|
+
case "STRIPE_HINT_STATUS_PAYOUT_FAILED":
|
|
1405
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_PAYOUT_FAILED;
|
|
1406
|
+
case 6:
|
|
1407
|
+
case "STRIPE_HINT_STATUS_TIMEOUT":
|
|
1408
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_TIMEOUT;
|
|
1409
|
+
case 7:
|
|
1410
|
+
case "STRIPE_HINT_STATUS_NOT_FOUND":
|
|
1411
|
+
return StripeHintStatus.STRIPE_HINT_STATUS_NOT_FOUND;
|
|
1412
|
+
case -1:
|
|
1413
|
+
case "UNRECOGNIZED":
|
|
1414
|
+
default:
|
|
1415
|
+
return StripeHintStatus.UNRECOGNIZED;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
export function stripeHintStatusToJSON(object: StripeHintStatus): string {
|
|
1420
|
+
switch (object) {
|
|
1421
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_UNSPECIFIED:
|
|
1422
|
+
return "STRIPE_HINT_STATUS_UNSPECIFIED";
|
|
1423
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_SUCCESS:
|
|
1424
|
+
return "STRIPE_HINT_STATUS_SUCCESS";
|
|
1425
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_PAYMENT_FAILED:
|
|
1426
|
+
return "STRIPE_HINT_STATUS_PAYMENT_FAILED";
|
|
1427
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_REFUNDED:
|
|
1428
|
+
return "STRIPE_HINT_STATUS_REFUNDED";
|
|
1429
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_DISPUTED:
|
|
1430
|
+
return "STRIPE_HINT_STATUS_DISPUTED";
|
|
1431
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_PAYOUT_FAILED:
|
|
1432
|
+
return "STRIPE_HINT_STATUS_PAYOUT_FAILED";
|
|
1433
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_TIMEOUT:
|
|
1434
|
+
return "STRIPE_HINT_STATUS_TIMEOUT";
|
|
1435
|
+
case StripeHintStatus.STRIPE_HINT_STATUS_NOT_FOUND:
|
|
1436
|
+
return "STRIPE_HINT_STATUS_NOT_FOUND";
|
|
1437
|
+
case StripeHintStatus.UNRECOGNIZED:
|
|
1438
|
+
default:
|
|
1439
|
+
return "UNRECOGNIZED";
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1202
1443
|
export interface ListTracesRequest {
|
|
1203
1444
|
organizationId: string;
|
|
1204
1445
|
projectId: string;
|
|
@@ -1567,6 +1808,12 @@ export interface TraceEventEnvelope {
|
|
|
1567
1808
|
cantonTxAdded?: CantonTxAdded | undefined;
|
|
1568
1809
|
spanStarted?: SpanStarted | undefined;
|
|
1569
1810
|
spanEnded?: SpanEnded | undefined;
|
|
1811
|
+
stripeHintAdded?: StripeHintAdded | undefined;
|
|
1812
|
+
stripeTrackingStarted?: StripeTrackingStarted | undefined;
|
|
1813
|
+
stripePaymentSucceeded?: StripePaymentSucceeded | undefined;
|
|
1814
|
+
stripeFundsAvailable?: StripeFundsAvailable | undefined;
|
|
1815
|
+
stripePayoutPaid?: StripePayoutPaid | undefined;
|
|
1816
|
+
stripeTrackingFinished?: StripeTrackingFinished | undefined;
|
|
1570
1817
|
}
|
|
1571
1818
|
|
|
1572
1819
|
/** SpanStarted is emitted when a span opens. */
|
|
@@ -2340,6 +2587,87 @@ export interface RelayNotFound {
|
|
|
2340
2587
|
message?: string | undefined;
|
|
2341
2588
|
}
|
|
2342
2589
|
|
|
2590
|
+
/** StripeHintAdded is emitted when a Stripe PaymentIntent hint is submitted. */
|
|
2591
|
+
export interface StripeHintAdded {
|
|
2592
|
+
pluginCorrelationId: string;
|
|
2593
|
+
paymentIntentId: string;
|
|
2594
|
+
accountId?: string | undefined;
|
|
2595
|
+
details?: string | undefined;
|
|
2596
|
+
clientTimestamp: Date | undefined;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* StripeTrackingStarted is emitted when the stripehint processor begins polling
|
|
2601
|
+
* Stripe for the PaymentIntent.
|
|
2602
|
+
*/
|
|
2603
|
+
export interface StripeTrackingStarted {
|
|
2604
|
+
pluginCorrelationId: string;
|
|
2605
|
+
paymentIntentId: string;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* StripePaymentSucceeded is emitted when the PaymentIntent resolves and the
|
|
2610
|
+
* resulting Charge is known.
|
|
2611
|
+
*/
|
|
2612
|
+
export interface StripePaymentSucceeded {
|
|
2613
|
+
pluginCorrelationId: string;
|
|
2614
|
+
paymentIntentId: string;
|
|
2615
|
+
status: StripePaymentStatus;
|
|
2616
|
+
amount: StripeMoney | undefined;
|
|
2617
|
+
chargeId: string;
|
|
2618
|
+
balanceTransactionId: string;
|
|
2619
|
+
observedAt: Date | undefined;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
/**
|
|
2623
|
+
* StripeFundsAvailable is emitted when the charge's balance transaction becomes
|
|
2624
|
+
* available in the Stripe balance.
|
|
2625
|
+
*/
|
|
2626
|
+
export interface StripeFundsAvailable {
|
|
2627
|
+
pluginCorrelationId: string;
|
|
2628
|
+
balanceTransactionId: string;
|
|
2629
|
+
gross: StripeMoney | undefined;
|
|
2630
|
+
fee: StripeMoney | undefined;
|
|
2631
|
+
net: StripeMoney | undefined;
|
|
2632
|
+
availableOn: Date | undefined;
|
|
2633
|
+
observedAt: Date | undefined;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
/** StripePayoutPaid is emitted when the payout that settled these funds is paid. */
|
|
2637
|
+
export interface StripePayoutPaid {
|
|
2638
|
+
pluginCorrelationId: string;
|
|
2639
|
+
payoutId: string;
|
|
2640
|
+
amount: StripeMoney | undefined;
|
|
2641
|
+
status: StripePayoutStatus;
|
|
2642
|
+
automatic: boolean;
|
|
2643
|
+
arrivalDate: Date | undefined;
|
|
2644
|
+
observedAt: Date | undefined;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* StripeTrackingFinished is emitted when the payment lifecycle reaches a
|
|
2649
|
+
* terminal state. Single per hint.
|
|
2650
|
+
*/
|
|
2651
|
+
export interface StripeTrackingFinished {
|
|
2652
|
+
pluginCorrelationId: string;
|
|
2653
|
+
status: StripeHintStatus;
|
|
2654
|
+
message?: string | undefined;
|
|
2655
|
+
completedAt: Date | undefined;
|
|
2656
|
+
paymentIntentId: string;
|
|
2657
|
+
chargeId: string;
|
|
2658
|
+
payoutId: string;
|
|
2659
|
+
netAmount: StripeMoney | undefined;
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
/**
|
|
2663
|
+
* StripeMoney is an integer amount in the currency's minor unit (e.g. cents)
|
|
2664
|
+
* plus the lowercase ISO currency code, mirroring Stripe's amount/currency pair.
|
|
2665
|
+
*/
|
|
2666
|
+
export interface StripeMoney {
|
|
2667
|
+
amountMinor: number;
|
|
2668
|
+
currency: string;
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2343
2671
|
/** Pagination is used in list requests */
|
|
2344
2672
|
export interface Pagination {
|
|
2345
2673
|
/** Snapshot point for consistent totals */
|
|
@@ -6448,6 +6776,12 @@ function createBaseTraceEventEnvelope(): TraceEventEnvelope {
|
|
|
6448
6776
|
cantonTxAdded: undefined,
|
|
6449
6777
|
spanStarted: undefined,
|
|
6450
6778
|
spanEnded: undefined,
|
|
6779
|
+
stripeHintAdded: undefined,
|
|
6780
|
+
stripeTrackingStarted: undefined,
|
|
6781
|
+
stripePaymentSucceeded: undefined,
|
|
6782
|
+
stripeFundsAvailable: undefined,
|
|
6783
|
+
stripePayoutPaid: undefined,
|
|
6784
|
+
stripeTrackingFinished: undefined,
|
|
6451
6785
|
};
|
|
6452
6786
|
}
|
|
6453
6787
|
|
|
@@ -6621,6 +6955,24 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
6621
6955
|
if (message.spanEnded !== undefined) {
|
|
6622
6956
|
SpanEnded.encode(message.spanEnded, writer.uint32(530).fork()).join();
|
|
6623
6957
|
}
|
|
6958
|
+
if (message.stripeHintAdded !== undefined) {
|
|
6959
|
+
StripeHintAdded.encode(message.stripeHintAdded, writer.uint32(538).fork()).join();
|
|
6960
|
+
}
|
|
6961
|
+
if (message.stripeTrackingStarted !== undefined) {
|
|
6962
|
+
StripeTrackingStarted.encode(message.stripeTrackingStarted, writer.uint32(546).fork()).join();
|
|
6963
|
+
}
|
|
6964
|
+
if (message.stripePaymentSucceeded !== undefined) {
|
|
6965
|
+
StripePaymentSucceeded.encode(message.stripePaymentSucceeded, writer.uint32(554).fork()).join();
|
|
6966
|
+
}
|
|
6967
|
+
if (message.stripeFundsAvailable !== undefined) {
|
|
6968
|
+
StripeFundsAvailable.encode(message.stripeFundsAvailable, writer.uint32(562).fork()).join();
|
|
6969
|
+
}
|
|
6970
|
+
if (message.stripePayoutPaid !== undefined) {
|
|
6971
|
+
StripePayoutPaid.encode(message.stripePayoutPaid, writer.uint32(570).fork()).join();
|
|
6972
|
+
}
|
|
6973
|
+
if (message.stripeTrackingFinished !== undefined) {
|
|
6974
|
+
StripeTrackingFinished.encode(message.stripeTrackingFinished, writer.uint32(578).fork()).join();
|
|
6975
|
+
}
|
|
6624
6976
|
return writer;
|
|
6625
6977
|
},
|
|
6626
6978
|
|
|
@@ -7079,6 +7431,54 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7079
7431
|
message.spanEnded = SpanEnded.decode(reader, reader.uint32());
|
|
7080
7432
|
continue;
|
|
7081
7433
|
}
|
|
7434
|
+
case 67: {
|
|
7435
|
+
if (tag !== 538) {
|
|
7436
|
+
break;
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7439
|
+
message.stripeHintAdded = StripeHintAdded.decode(reader, reader.uint32());
|
|
7440
|
+
continue;
|
|
7441
|
+
}
|
|
7442
|
+
case 68: {
|
|
7443
|
+
if (tag !== 546) {
|
|
7444
|
+
break;
|
|
7445
|
+
}
|
|
7446
|
+
|
|
7447
|
+
message.stripeTrackingStarted = StripeTrackingStarted.decode(reader, reader.uint32());
|
|
7448
|
+
continue;
|
|
7449
|
+
}
|
|
7450
|
+
case 69: {
|
|
7451
|
+
if (tag !== 554) {
|
|
7452
|
+
break;
|
|
7453
|
+
}
|
|
7454
|
+
|
|
7455
|
+
message.stripePaymentSucceeded = StripePaymentSucceeded.decode(reader, reader.uint32());
|
|
7456
|
+
continue;
|
|
7457
|
+
}
|
|
7458
|
+
case 70: {
|
|
7459
|
+
if (tag !== 562) {
|
|
7460
|
+
break;
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7463
|
+
message.stripeFundsAvailable = StripeFundsAvailable.decode(reader, reader.uint32());
|
|
7464
|
+
continue;
|
|
7465
|
+
}
|
|
7466
|
+
case 71: {
|
|
7467
|
+
if (tag !== 570) {
|
|
7468
|
+
break;
|
|
7469
|
+
}
|
|
7470
|
+
|
|
7471
|
+
message.stripePayoutPaid = StripePayoutPaid.decode(reader, reader.uint32());
|
|
7472
|
+
continue;
|
|
7473
|
+
}
|
|
7474
|
+
case 72: {
|
|
7475
|
+
if (tag !== 578) {
|
|
7476
|
+
break;
|
|
7477
|
+
}
|
|
7478
|
+
|
|
7479
|
+
message.stripeTrackingFinished = StripeTrackingFinished.decode(reader, reader.uint32());
|
|
7480
|
+
continue;
|
|
7481
|
+
}
|
|
7082
7482
|
}
|
|
7083
7483
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7084
7484
|
break;
|
|
@@ -7354,6 +7754,36 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7354
7754
|
: isSet(object.span_ended)
|
|
7355
7755
|
? SpanEnded.fromJSON(object.span_ended)
|
|
7356
7756
|
: undefined,
|
|
7757
|
+
stripeHintAdded: isSet(object.stripeHintAdded)
|
|
7758
|
+
? StripeHintAdded.fromJSON(object.stripeHintAdded)
|
|
7759
|
+
: isSet(object.stripe_hint_added)
|
|
7760
|
+
? StripeHintAdded.fromJSON(object.stripe_hint_added)
|
|
7761
|
+
: undefined,
|
|
7762
|
+
stripeTrackingStarted: isSet(object.stripeTrackingStarted)
|
|
7763
|
+
? StripeTrackingStarted.fromJSON(object.stripeTrackingStarted)
|
|
7764
|
+
: isSet(object.stripe_tracking_started)
|
|
7765
|
+
? StripeTrackingStarted.fromJSON(object.stripe_tracking_started)
|
|
7766
|
+
: undefined,
|
|
7767
|
+
stripePaymentSucceeded: isSet(object.stripePaymentSucceeded)
|
|
7768
|
+
? StripePaymentSucceeded.fromJSON(object.stripePaymentSucceeded)
|
|
7769
|
+
: isSet(object.stripe_payment_succeeded)
|
|
7770
|
+
? StripePaymentSucceeded.fromJSON(object.stripe_payment_succeeded)
|
|
7771
|
+
: undefined,
|
|
7772
|
+
stripeFundsAvailable: isSet(object.stripeFundsAvailable)
|
|
7773
|
+
? StripeFundsAvailable.fromJSON(object.stripeFundsAvailable)
|
|
7774
|
+
: isSet(object.stripe_funds_available)
|
|
7775
|
+
? StripeFundsAvailable.fromJSON(object.stripe_funds_available)
|
|
7776
|
+
: undefined,
|
|
7777
|
+
stripePayoutPaid: isSet(object.stripePayoutPaid)
|
|
7778
|
+
? StripePayoutPaid.fromJSON(object.stripePayoutPaid)
|
|
7779
|
+
: isSet(object.stripe_payout_paid)
|
|
7780
|
+
? StripePayoutPaid.fromJSON(object.stripe_payout_paid)
|
|
7781
|
+
: undefined,
|
|
7782
|
+
stripeTrackingFinished: isSet(object.stripeTrackingFinished)
|
|
7783
|
+
? StripeTrackingFinished.fromJSON(object.stripeTrackingFinished)
|
|
7784
|
+
: isSet(object.stripe_tracking_finished)
|
|
7785
|
+
? StripeTrackingFinished.fromJSON(object.stripe_tracking_finished)
|
|
7786
|
+
: undefined,
|
|
7357
7787
|
};
|
|
7358
7788
|
},
|
|
7359
7789
|
|
|
@@ -7527,6 +7957,24 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7527
7957
|
if (message.spanEnded !== undefined) {
|
|
7528
7958
|
obj.spanEnded = SpanEnded.toJSON(message.spanEnded);
|
|
7529
7959
|
}
|
|
7960
|
+
if (message.stripeHintAdded !== undefined) {
|
|
7961
|
+
obj.stripeHintAdded = StripeHintAdded.toJSON(message.stripeHintAdded);
|
|
7962
|
+
}
|
|
7963
|
+
if (message.stripeTrackingStarted !== undefined) {
|
|
7964
|
+
obj.stripeTrackingStarted = StripeTrackingStarted.toJSON(message.stripeTrackingStarted);
|
|
7965
|
+
}
|
|
7966
|
+
if (message.stripePaymentSucceeded !== undefined) {
|
|
7967
|
+
obj.stripePaymentSucceeded = StripePaymentSucceeded.toJSON(message.stripePaymentSucceeded);
|
|
7968
|
+
}
|
|
7969
|
+
if (message.stripeFundsAvailable !== undefined) {
|
|
7970
|
+
obj.stripeFundsAvailable = StripeFundsAvailable.toJSON(message.stripeFundsAvailable);
|
|
7971
|
+
}
|
|
7972
|
+
if (message.stripePayoutPaid !== undefined) {
|
|
7973
|
+
obj.stripePayoutPaid = StripePayoutPaid.toJSON(message.stripePayoutPaid);
|
|
7974
|
+
}
|
|
7975
|
+
if (message.stripeTrackingFinished !== undefined) {
|
|
7976
|
+
obj.stripeTrackingFinished = StripeTrackingFinished.toJSON(message.stripeTrackingFinished);
|
|
7977
|
+
}
|
|
7530
7978
|
return obj;
|
|
7531
7979
|
},
|
|
7532
7980
|
|
|
@@ -7685,6 +8133,27 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7685
8133
|
message.spanEnded = (object.spanEnded !== undefined && object.spanEnded !== null)
|
|
7686
8134
|
? SpanEnded.fromPartial(object.spanEnded)
|
|
7687
8135
|
: undefined;
|
|
8136
|
+
message.stripeHintAdded = (object.stripeHintAdded !== undefined && object.stripeHintAdded !== null)
|
|
8137
|
+
? StripeHintAdded.fromPartial(object.stripeHintAdded)
|
|
8138
|
+
: undefined;
|
|
8139
|
+
message.stripeTrackingStarted =
|
|
8140
|
+
(object.stripeTrackingStarted !== undefined && object.stripeTrackingStarted !== null)
|
|
8141
|
+
? StripeTrackingStarted.fromPartial(object.stripeTrackingStarted)
|
|
8142
|
+
: undefined;
|
|
8143
|
+
message.stripePaymentSucceeded =
|
|
8144
|
+
(object.stripePaymentSucceeded !== undefined && object.stripePaymentSucceeded !== null)
|
|
8145
|
+
? StripePaymentSucceeded.fromPartial(object.stripePaymentSucceeded)
|
|
8146
|
+
: undefined;
|
|
8147
|
+
message.stripeFundsAvailable = (object.stripeFundsAvailable !== undefined && object.stripeFundsAvailable !== null)
|
|
8148
|
+
? StripeFundsAvailable.fromPartial(object.stripeFundsAvailable)
|
|
8149
|
+
: undefined;
|
|
8150
|
+
message.stripePayoutPaid = (object.stripePayoutPaid !== undefined && object.stripePayoutPaid !== null)
|
|
8151
|
+
? StripePayoutPaid.fromPartial(object.stripePayoutPaid)
|
|
8152
|
+
: undefined;
|
|
8153
|
+
message.stripeTrackingFinished =
|
|
8154
|
+
(object.stripeTrackingFinished !== undefined && object.stripeTrackingFinished !== null)
|
|
8155
|
+
? StripeTrackingFinished.fromPartial(object.stripeTrackingFinished)
|
|
8156
|
+
: undefined;
|
|
7688
8157
|
return message;
|
|
7689
8158
|
},
|
|
7690
8159
|
};
|
|
@@ -16423,6 +16892,1073 @@ export const RelayNotFound: MessageFns<RelayNotFound> = {
|
|
|
16423
16892
|
},
|
|
16424
16893
|
};
|
|
16425
16894
|
|
|
16895
|
+
function createBaseStripeHintAdded(): StripeHintAdded {
|
|
16896
|
+
return {
|
|
16897
|
+
pluginCorrelationId: "",
|
|
16898
|
+
paymentIntentId: "",
|
|
16899
|
+
accountId: undefined,
|
|
16900
|
+
details: undefined,
|
|
16901
|
+
clientTimestamp: undefined,
|
|
16902
|
+
};
|
|
16903
|
+
}
|
|
16904
|
+
|
|
16905
|
+
export const StripeHintAdded: MessageFns<StripeHintAdded> = {
|
|
16906
|
+
encode(message: StripeHintAdded, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
16907
|
+
if (message.pluginCorrelationId !== "") {
|
|
16908
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
16909
|
+
}
|
|
16910
|
+
if (message.paymentIntentId !== "") {
|
|
16911
|
+
writer.uint32(18).string(message.paymentIntentId);
|
|
16912
|
+
}
|
|
16913
|
+
if (message.accountId !== undefined) {
|
|
16914
|
+
writer.uint32(26).string(message.accountId);
|
|
16915
|
+
}
|
|
16916
|
+
if (message.details !== undefined) {
|
|
16917
|
+
writer.uint32(34).string(message.details);
|
|
16918
|
+
}
|
|
16919
|
+
if (message.clientTimestamp !== undefined) {
|
|
16920
|
+
Timestamp.encode(toTimestamp(message.clientTimestamp), writer.uint32(42).fork()).join();
|
|
16921
|
+
}
|
|
16922
|
+
return writer;
|
|
16923
|
+
},
|
|
16924
|
+
|
|
16925
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StripeHintAdded {
|
|
16926
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16927
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16928
|
+
const message = createBaseStripeHintAdded();
|
|
16929
|
+
while (reader.pos < end) {
|
|
16930
|
+
const tag = reader.uint32();
|
|
16931
|
+
switch (tag >>> 3) {
|
|
16932
|
+
case 1: {
|
|
16933
|
+
if (tag !== 10) {
|
|
16934
|
+
break;
|
|
16935
|
+
}
|
|
16936
|
+
|
|
16937
|
+
message.pluginCorrelationId = reader.string();
|
|
16938
|
+
continue;
|
|
16939
|
+
}
|
|
16940
|
+
case 2: {
|
|
16941
|
+
if (tag !== 18) {
|
|
16942
|
+
break;
|
|
16943
|
+
}
|
|
16944
|
+
|
|
16945
|
+
message.paymentIntentId = reader.string();
|
|
16946
|
+
continue;
|
|
16947
|
+
}
|
|
16948
|
+
case 3: {
|
|
16949
|
+
if (tag !== 26) {
|
|
16950
|
+
break;
|
|
16951
|
+
}
|
|
16952
|
+
|
|
16953
|
+
message.accountId = reader.string();
|
|
16954
|
+
continue;
|
|
16955
|
+
}
|
|
16956
|
+
case 4: {
|
|
16957
|
+
if (tag !== 34) {
|
|
16958
|
+
break;
|
|
16959
|
+
}
|
|
16960
|
+
|
|
16961
|
+
message.details = reader.string();
|
|
16962
|
+
continue;
|
|
16963
|
+
}
|
|
16964
|
+
case 5: {
|
|
16965
|
+
if (tag !== 42) {
|
|
16966
|
+
break;
|
|
16967
|
+
}
|
|
16968
|
+
|
|
16969
|
+
message.clientTimestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
16970
|
+
continue;
|
|
16971
|
+
}
|
|
16972
|
+
}
|
|
16973
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16974
|
+
break;
|
|
16975
|
+
}
|
|
16976
|
+
reader.skip(tag & 7);
|
|
16977
|
+
}
|
|
16978
|
+
return message;
|
|
16979
|
+
},
|
|
16980
|
+
|
|
16981
|
+
fromJSON(object: any): StripeHintAdded {
|
|
16982
|
+
return {
|
|
16983
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
16984
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
16985
|
+
: isSet(object.plugin_correlation_id)
|
|
16986
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
16987
|
+
: "",
|
|
16988
|
+
paymentIntentId: isSet(object.paymentIntentId)
|
|
16989
|
+
? globalThis.String(object.paymentIntentId)
|
|
16990
|
+
: isSet(object.payment_intent_id)
|
|
16991
|
+
? globalThis.String(object.payment_intent_id)
|
|
16992
|
+
: "",
|
|
16993
|
+
accountId: isSet(object.accountId)
|
|
16994
|
+
? globalThis.String(object.accountId)
|
|
16995
|
+
: isSet(object.account_id)
|
|
16996
|
+
? globalThis.String(object.account_id)
|
|
16997
|
+
: undefined,
|
|
16998
|
+
details: isSet(object.details) ? globalThis.String(object.details) : undefined,
|
|
16999
|
+
clientTimestamp: isSet(object.clientTimestamp)
|
|
17000
|
+
? fromJsonTimestamp(object.clientTimestamp)
|
|
17001
|
+
: isSet(object.client_timestamp)
|
|
17002
|
+
? fromJsonTimestamp(object.client_timestamp)
|
|
17003
|
+
: undefined,
|
|
17004
|
+
};
|
|
17005
|
+
},
|
|
17006
|
+
|
|
17007
|
+
toJSON(message: StripeHintAdded): unknown {
|
|
17008
|
+
const obj: any = {};
|
|
17009
|
+
if (message.pluginCorrelationId !== "") {
|
|
17010
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
17011
|
+
}
|
|
17012
|
+
if (message.paymentIntentId !== "") {
|
|
17013
|
+
obj.paymentIntentId = message.paymentIntentId;
|
|
17014
|
+
}
|
|
17015
|
+
if (message.accountId !== undefined) {
|
|
17016
|
+
obj.accountId = message.accountId;
|
|
17017
|
+
}
|
|
17018
|
+
if (message.details !== undefined) {
|
|
17019
|
+
obj.details = message.details;
|
|
17020
|
+
}
|
|
17021
|
+
if (message.clientTimestamp !== undefined) {
|
|
17022
|
+
obj.clientTimestamp = message.clientTimestamp.toISOString();
|
|
17023
|
+
}
|
|
17024
|
+
return obj;
|
|
17025
|
+
},
|
|
17026
|
+
|
|
17027
|
+
create<I extends Exact<DeepPartial<StripeHintAdded>, I>>(base?: I): StripeHintAdded {
|
|
17028
|
+
return StripeHintAdded.fromPartial(base ?? ({} as any));
|
|
17029
|
+
},
|
|
17030
|
+
fromPartial<I extends Exact<DeepPartial<StripeHintAdded>, I>>(object: I): StripeHintAdded {
|
|
17031
|
+
const message = createBaseStripeHintAdded();
|
|
17032
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
17033
|
+
message.paymentIntentId = object.paymentIntentId ?? "";
|
|
17034
|
+
message.accountId = object.accountId ?? undefined;
|
|
17035
|
+
message.details = object.details ?? undefined;
|
|
17036
|
+
message.clientTimestamp = object.clientTimestamp ?? undefined;
|
|
17037
|
+
return message;
|
|
17038
|
+
},
|
|
17039
|
+
};
|
|
17040
|
+
|
|
17041
|
+
function createBaseStripeTrackingStarted(): StripeTrackingStarted {
|
|
17042
|
+
return { pluginCorrelationId: "", paymentIntentId: "" };
|
|
17043
|
+
}
|
|
17044
|
+
|
|
17045
|
+
export const StripeTrackingStarted: MessageFns<StripeTrackingStarted> = {
|
|
17046
|
+
encode(message: StripeTrackingStarted, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
17047
|
+
if (message.pluginCorrelationId !== "") {
|
|
17048
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
17049
|
+
}
|
|
17050
|
+
if (message.paymentIntentId !== "") {
|
|
17051
|
+
writer.uint32(18).string(message.paymentIntentId);
|
|
17052
|
+
}
|
|
17053
|
+
return writer;
|
|
17054
|
+
},
|
|
17055
|
+
|
|
17056
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StripeTrackingStarted {
|
|
17057
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17058
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
17059
|
+
const message = createBaseStripeTrackingStarted();
|
|
17060
|
+
while (reader.pos < end) {
|
|
17061
|
+
const tag = reader.uint32();
|
|
17062
|
+
switch (tag >>> 3) {
|
|
17063
|
+
case 1: {
|
|
17064
|
+
if (tag !== 10) {
|
|
17065
|
+
break;
|
|
17066
|
+
}
|
|
17067
|
+
|
|
17068
|
+
message.pluginCorrelationId = reader.string();
|
|
17069
|
+
continue;
|
|
17070
|
+
}
|
|
17071
|
+
case 2: {
|
|
17072
|
+
if (tag !== 18) {
|
|
17073
|
+
break;
|
|
17074
|
+
}
|
|
17075
|
+
|
|
17076
|
+
message.paymentIntentId = reader.string();
|
|
17077
|
+
continue;
|
|
17078
|
+
}
|
|
17079
|
+
}
|
|
17080
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17081
|
+
break;
|
|
17082
|
+
}
|
|
17083
|
+
reader.skip(tag & 7);
|
|
17084
|
+
}
|
|
17085
|
+
return message;
|
|
17086
|
+
},
|
|
17087
|
+
|
|
17088
|
+
fromJSON(object: any): StripeTrackingStarted {
|
|
17089
|
+
return {
|
|
17090
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
17091
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
17092
|
+
: isSet(object.plugin_correlation_id)
|
|
17093
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
17094
|
+
: "",
|
|
17095
|
+
paymentIntentId: isSet(object.paymentIntentId)
|
|
17096
|
+
? globalThis.String(object.paymentIntentId)
|
|
17097
|
+
: isSet(object.payment_intent_id)
|
|
17098
|
+
? globalThis.String(object.payment_intent_id)
|
|
17099
|
+
: "",
|
|
17100
|
+
};
|
|
17101
|
+
},
|
|
17102
|
+
|
|
17103
|
+
toJSON(message: StripeTrackingStarted): unknown {
|
|
17104
|
+
const obj: any = {};
|
|
17105
|
+
if (message.pluginCorrelationId !== "") {
|
|
17106
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
17107
|
+
}
|
|
17108
|
+
if (message.paymentIntentId !== "") {
|
|
17109
|
+
obj.paymentIntentId = message.paymentIntentId;
|
|
17110
|
+
}
|
|
17111
|
+
return obj;
|
|
17112
|
+
},
|
|
17113
|
+
|
|
17114
|
+
create<I extends Exact<DeepPartial<StripeTrackingStarted>, I>>(base?: I): StripeTrackingStarted {
|
|
17115
|
+
return StripeTrackingStarted.fromPartial(base ?? ({} as any));
|
|
17116
|
+
},
|
|
17117
|
+
fromPartial<I extends Exact<DeepPartial<StripeTrackingStarted>, I>>(object: I): StripeTrackingStarted {
|
|
17118
|
+
const message = createBaseStripeTrackingStarted();
|
|
17119
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
17120
|
+
message.paymentIntentId = object.paymentIntentId ?? "";
|
|
17121
|
+
return message;
|
|
17122
|
+
},
|
|
17123
|
+
};
|
|
17124
|
+
|
|
17125
|
+
function createBaseStripePaymentSucceeded(): StripePaymentSucceeded {
|
|
17126
|
+
return {
|
|
17127
|
+
pluginCorrelationId: "",
|
|
17128
|
+
paymentIntentId: "",
|
|
17129
|
+
status: 0,
|
|
17130
|
+
amount: undefined,
|
|
17131
|
+
chargeId: "",
|
|
17132
|
+
balanceTransactionId: "",
|
|
17133
|
+
observedAt: undefined,
|
|
17134
|
+
};
|
|
17135
|
+
}
|
|
17136
|
+
|
|
17137
|
+
export const StripePaymentSucceeded: MessageFns<StripePaymentSucceeded> = {
|
|
17138
|
+
encode(message: StripePaymentSucceeded, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
17139
|
+
if (message.pluginCorrelationId !== "") {
|
|
17140
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
17141
|
+
}
|
|
17142
|
+
if (message.paymentIntentId !== "") {
|
|
17143
|
+
writer.uint32(18).string(message.paymentIntentId);
|
|
17144
|
+
}
|
|
17145
|
+
if (message.status !== 0) {
|
|
17146
|
+
writer.uint32(24).int32(message.status);
|
|
17147
|
+
}
|
|
17148
|
+
if (message.amount !== undefined) {
|
|
17149
|
+
StripeMoney.encode(message.amount, writer.uint32(34).fork()).join();
|
|
17150
|
+
}
|
|
17151
|
+
if (message.chargeId !== "") {
|
|
17152
|
+
writer.uint32(42).string(message.chargeId);
|
|
17153
|
+
}
|
|
17154
|
+
if (message.balanceTransactionId !== "") {
|
|
17155
|
+
writer.uint32(50).string(message.balanceTransactionId);
|
|
17156
|
+
}
|
|
17157
|
+
if (message.observedAt !== undefined) {
|
|
17158
|
+
Timestamp.encode(toTimestamp(message.observedAt), writer.uint32(58).fork()).join();
|
|
17159
|
+
}
|
|
17160
|
+
return writer;
|
|
17161
|
+
},
|
|
17162
|
+
|
|
17163
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StripePaymentSucceeded {
|
|
17164
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17165
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
17166
|
+
const message = createBaseStripePaymentSucceeded();
|
|
17167
|
+
while (reader.pos < end) {
|
|
17168
|
+
const tag = reader.uint32();
|
|
17169
|
+
switch (tag >>> 3) {
|
|
17170
|
+
case 1: {
|
|
17171
|
+
if (tag !== 10) {
|
|
17172
|
+
break;
|
|
17173
|
+
}
|
|
17174
|
+
|
|
17175
|
+
message.pluginCorrelationId = reader.string();
|
|
17176
|
+
continue;
|
|
17177
|
+
}
|
|
17178
|
+
case 2: {
|
|
17179
|
+
if (tag !== 18) {
|
|
17180
|
+
break;
|
|
17181
|
+
}
|
|
17182
|
+
|
|
17183
|
+
message.paymentIntentId = reader.string();
|
|
17184
|
+
continue;
|
|
17185
|
+
}
|
|
17186
|
+
case 3: {
|
|
17187
|
+
if (tag !== 24) {
|
|
17188
|
+
break;
|
|
17189
|
+
}
|
|
17190
|
+
|
|
17191
|
+
message.status = reader.int32() as any;
|
|
17192
|
+
continue;
|
|
17193
|
+
}
|
|
17194
|
+
case 4: {
|
|
17195
|
+
if (tag !== 34) {
|
|
17196
|
+
break;
|
|
17197
|
+
}
|
|
17198
|
+
|
|
17199
|
+
message.amount = StripeMoney.decode(reader, reader.uint32());
|
|
17200
|
+
continue;
|
|
17201
|
+
}
|
|
17202
|
+
case 5: {
|
|
17203
|
+
if (tag !== 42) {
|
|
17204
|
+
break;
|
|
17205
|
+
}
|
|
17206
|
+
|
|
17207
|
+
message.chargeId = reader.string();
|
|
17208
|
+
continue;
|
|
17209
|
+
}
|
|
17210
|
+
case 6: {
|
|
17211
|
+
if (tag !== 50) {
|
|
17212
|
+
break;
|
|
17213
|
+
}
|
|
17214
|
+
|
|
17215
|
+
message.balanceTransactionId = reader.string();
|
|
17216
|
+
continue;
|
|
17217
|
+
}
|
|
17218
|
+
case 7: {
|
|
17219
|
+
if (tag !== 58) {
|
|
17220
|
+
break;
|
|
17221
|
+
}
|
|
17222
|
+
|
|
17223
|
+
message.observedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
17224
|
+
continue;
|
|
17225
|
+
}
|
|
17226
|
+
}
|
|
17227
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17228
|
+
break;
|
|
17229
|
+
}
|
|
17230
|
+
reader.skip(tag & 7);
|
|
17231
|
+
}
|
|
17232
|
+
return message;
|
|
17233
|
+
},
|
|
17234
|
+
|
|
17235
|
+
fromJSON(object: any): StripePaymentSucceeded {
|
|
17236
|
+
return {
|
|
17237
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
17238
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
17239
|
+
: isSet(object.plugin_correlation_id)
|
|
17240
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
17241
|
+
: "",
|
|
17242
|
+
paymentIntentId: isSet(object.paymentIntentId)
|
|
17243
|
+
? globalThis.String(object.paymentIntentId)
|
|
17244
|
+
: isSet(object.payment_intent_id)
|
|
17245
|
+
? globalThis.String(object.payment_intent_id)
|
|
17246
|
+
: "",
|
|
17247
|
+
status: isSet(object.status) ? stripePaymentStatusFromJSON(object.status) : 0,
|
|
17248
|
+
amount: isSet(object.amount) ? StripeMoney.fromJSON(object.amount) : undefined,
|
|
17249
|
+
chargeId: isSet(object.chargeId)
|
|
17250
|
+
? globalThis.String(object.chargeId)
|
|
17251
|
+
: isSet(object.charge_id)
|
|
17252
|
+
? globalThis.String(object.charge_id)
|
|
17253
|
+
: "",
|
|
17254
|
+
balanceTransactionId: isSet(object.balanceTransactionId)
|
|
17255
|
+
? globalThis.String(object.balanceTransactionId)
|
|
17256
|
+
: isSet(object.balance_transaction_id)
|
|
17257
|
+
? globalThis.String(object.balance_transaction_id)
|
|
17258
|
+
: "",
|
|
17259
|
+
observedAt: isSet(object.observedAt)
|
|
17260
|
+
? fromJsonTimestamp(object.observedAt)
|
|
17261
|
+
: isSet(object.observed_at)
|
|
17262
|
+
? fromJsonTimestamp(object.observed_at)
|
|
17263
|
+
: undefined,
|
|
17264
|
+
};
|
|
17265
|
+
},
|
|
17266
|
+
|
|
17267
|
+
toJSON(message: StripePaymentSucceeded): unknown {
|
|
17268
|
+
const obj: any = {};
|
|
17269
|
+
if (message.pluginCorrelationId !== "") {
|
|
17270
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
17271
|
+
}
|
|
17272
|
+
if (message.paymentIntentId !== "") {
|
|
17273
|
+
obj.paymentIntentId = message.paymentIntentId;
|
|
17274
|
+
}
|
|
17275
|
+
if (message.status !== 0) {
|
|
17276
|
+
obj.status = stripePaymentStatusToJSON(message.status);
|
|
17277
|
+
}
|
|
17278
|
+
if (message.amount !== undefined) {
|
|
17279
|
+
obj.amount = StripeMoney.toJSON(message.amount);
|
|
17280
|
+
}
|
|
17281
|
+
if (message.chargeId !== "") {
|
|
17282
|
+
obj.chargeId = message.chargeId;
|
|
17283
|
+
}
|
|
17284
|
+
if (message.balanceTransactionId !== "") {
|
|
17285
|
+
obj.balanceTransactionId = message.balanceTransactionId;
|
|
17286
|
+
}
|
|
17287
|
+
if (message.observedAt !== undefined) {
|
|
17288
|
+
obj.observedAt = message.observedAt.toISOString();
|
|
17289
|
+
}
|
|
17290
|
+
return obj;
|
|
17291
|
+
},
|
|
17292
|
+
|
|
17293
|
+
create<I extends Exact<DeepPartial<StripePaymentSucceeded>, I>>(base?: I): StripePaymentSucceeded {
|
|
17294
|
+
return StripePaymentSucceeded.fromPartial(base ?? ({} as any));
|
|
17295
|
+
},
|
|
17296
|
+
fromPartial<I extends Exact<DeepPartial<StripePaymentSucceeded>, I>>(object: I): StripePaymentSucceeded {
|
|
17297
|
+
const message = createBaseStripePaymentSucceeded();
|
|
17298
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
17299
|
+
message.paymentIntentId = object.paymentIntentId ?? "";
|
|
17300
|
+
message.status = object.status ?? 0;
|
|
17301
|
+
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
17302
|
+
? StripeMoney.fromPartial(object.amount)
|
|
17303
|
+
: undefined;
|
|
17304
|
+
message.chargeId = object.chargeId ?? "";
|
|
17305
|
+
message.balanceTransactionId = object.balanceTransactionId ?? "";
|
|
17306
|
+
message.observedAt = object.observedAt ?? undefined;
|
|
17307
|
+
return message;
|
|
17308
|
+
},
|
|
17309
|
+
};
|
|
17310
|
+
|
|
17311
|
+
function createBaseStripeFundsAvailable(): StripeFundsAvailable {
|
|
17312
|
+
return {
|
|
17313
|
+
pluginCorrelationId: "",
|
|
17314
|
+
balanceTransactionId: "",
|
|
17315
|
+
gross: undefined,
|
|
17316
|
+
fee: undefined,
|
|
17317
|
+
net: undefined,
|
|
17318
|
+
availableOn: undefined,
|
|
17319
|
+
observedAt: undefined,
|
|
17320
|
+
};
|
|
17321
|
+
}
|
|
17322
|
+
|
|
17323
|
+
export const StripeFundsAvailable: MessageFns<StripeFundsAvailable> = {
|
|
17324
|
+
encode(message: StripeFundsAvailable, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
17325
|
+
if (message.pluginCorrelationId !== "") {
|
|
17326
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
17327
|
+
}
|
|
17328
|
+
if (message.balanceTransactionId !== "") {
|
|
17329
|
+
writer.uint32(18).string(message.balanceTransactionId);
|
|
17330
|
+
}
|
|
17331
|
+
if (message.gross !== undefined) {
|
|
17332
|
+
StripeMoney.encode(message.gross, writer.uint32(26).fork()).join();
|
|
17333
|
+
}
|
|
17334
|
+
if (message.fee !== undefined) {
|
|
17335
|
+
StripeMoney.encode(message.fee, writer.uint32(34).fork()).join();
|
|
17336
|
+
}
|
|
17337
|
+
if (message.net !== undefined) {
|
|
17338
|
+
StripeMoney.encode(message.net, writer.uint32(42).fork()).join();
|
|
17339
|
+
}
|
|
17340
|
+
if (message.availableOn !== undefined) {
|
|
17341
|
+
Timestamp.encode(toTimestamp(message.availableOn), writer.uint32(50).fork()).join();
|
|
17342
|
+
}
|
|
17343
|
+
if (message.observedAt !== undefined) {
|
|
17344
|
+
Timestamp.encode(toTimestamp(message.observedAt), writer.uint32(58).fork()).join();
|
|
17345
|
+
}
|
|
17346
|
+
return writer;
|
|
17347
|
+
},
|
|
17348
|
+
|
|
17349
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StripeFundsAvailable {
|
|
17350
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17351
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
17352
|
+
const message = createBaseStripeFundsAvailable();
|
|
17353
|
+
while (reader.pos < end) {
|
|
17354
|
+
const tag = reader.uint32();
|
|
17355
|
+
switch (tag >>> 3) {
|
|
17356
|
+
case 1: {
|
|
17357
|
+
if (tag !== 10) {
|
|
17358
|
+
break;
|
|
17359
|
+
}
|
|
17360
|
+
|
|
17361
|
+
message.pluginCorrelationId = reader.string();
|
|
17362
|
+
continue;
|
|
17363
|
+
}
|
|
17364
|
+
case 2: {
|
|
17365
|
+
if (tag !== 18) {
|
|
17366
|
+
break;
|
|
17367
|
+
}
|
|
17368
|
+
|
|
17369
|
+
message.balanceTransactionId = reader.string();
|
|
17370
|
+
continue;
|
|
17371
|
+
}
|
|
17372
|
+
case 3: {
|
|
17373
|
+
if (tag !== 26) {
|
|
17374
|
+
break;
|
|
17375
|
+
}
|
|
17376
|
+
|
|
17377
|
+
message.gross = StripeMoney.decode(reader, reader.uint32());
|
|
17378
|
+
continue;
|
|
17379
|
+
}
|
|
17380
|
+
case 4: {
|
|
17381
|
+
if (tag !== 34) {
|
|
17382
|
+
break;
|
|
17383
|
+
}
|
|
17384
|
+
|
|
17385
|
+
message.fee = StripeMoney.decode(reader, reader.uint32());
|
|
17386
|
+
continue;
|
|
17387
|
+
}
|
|
17388
|
+
case 5: {
|
|
17389
|
+
if (tag !== 42) {
|
|
17390
|
+
break;
|
|
17391
|
+
}
|
|
17392
|
+
|
|
17393
|
+
message.net = StripeMoney.decode(reader, reader.uint32());
|
|
17394
|
+
continue;
|
|
17395
|
+
}
|
|
17396
|
+
case 6: {
|
|
17397
|
+
if (tag !== 50) {
|
|
17398
|
+
break;
|
|
17399
|
+
}
|
|
17400
|
+
|
|
17401
|
+
message.availableOn = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
17402
|
+
continue;
|
|
17403
|
+
}
|
|
17404
|
+
case 7: {
|
|
17405
|
+
if (tag !== 58) {
|
|
17406
|
+
break;
|
|
17407
|
+
}
|
|
17408
|
+
|
|
17409
|
+
message.observedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
17410
|
+
continue;
|
|
17411
|
+
}
|
|
17412
|
+
}
|
|
17413
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17414
|
+
break;
|
|
17415
|
+
}
|
|
17416
|
+
reader.skip(tag & 7);
|
|
17417
|
+
}
|
|
17418
|
+
return message;
|
|
17419
|
+
},
|
|
17420
|
+
|
|
17421
|
+
fromJSON(object: any): StripeFundsAvailable {
|
|
17422
|
+
return {
|
|
17423
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
17424
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
17425
|
+
: isSet(object.plugin_correlation_id)
|
|
17426
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
17427
|
+
: "",
|
|
17428
|
+
balanceTransactionId: isSet(object.balanceTransactionId)
|
|
17429
|
+
? globalThis.String(object.balanceTransactionId)
|
|
17430
|
+
: isSet(object.balance_transaction_id)
|
|
17431
|
+
? globalThis.String(object.balance_transaction_id)
|
|
17432
|
+
: "",
|
|
17433
|
+
gross: isSet(object.gross) ? StripeMoney.fromJSON(object.gross) : undefined,
|
|
17434
|
+
fee: isSet(object.fee) ? StripeMoney.fromJSON(object.fee) : undefined,
|
|
17435
|
+
net: isSet(object.net) ? StripeMoney.fromJSON(object.net) : undefined,
|
|
17436
|
+
availableOn: isSet(object.availableOn)
|
|
17437
|
+
? fromJsonTimestamp(object.availableOn)
|
|
17438
|
+
: isSet(object.available_on)
|
|
17439
|
+
? fromJsonTimestamp(object.available_on)
|
|
17440
|
+
: undefined,
|
|
17441
|
+
observedAt: isSet(object.observedAt)
|
|
17442
|
+
? fromJsonTimestamp(object.observedAt)
|
|
17443
|
+
: isSet(object.observed_at)
|
|
17444
|
+
? fromJsonTimestamp(object.observed_at)
|
|
17445
|
+
: undefined,
|
|
17446
|
+
};
|
|
17447
|
+
},
|
|
17448
|
+
|
|
17449
|
+
toJSON(message: StripeFundsAvailable): unknown {
|
|
17450
|
+
const obj: any = {};
|
|
17451
|
+
if (message.pluginCorrelationId !== "") {
|
|
17452
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
17453
|
+
}
|
|
17454
|
+
if (message.balanceTransactionId !== "") {
|
|
17455
|
+
obj.balanceTransactionId = message.balanceTransactionId;
|
|
17456
|
+
}
|
|
17457
|
+
if (message.gross !== undefined) {
|
|
17458
|
+
obj.gross = StripeMoney.toJSON(message.gross);
|
|
17459
|
+
}
|
|
17460
|
+
if (message.fee !== undefined) {
|
|
17461
|
+
obj.fee = StripeMoney.toJSON(message.fee);
|
|
17462
|
+
}
|
|
17463
|
+
if (message.net !== undefined) {
|
|
17464
|
+
obj.net = StripeMoney.toJSON(message.net);
|
|
17465
|
+
}
|
|
17466
|
+
if (message.availableOn !== undefined) {
|
|
17467
|
+
obj.availableOn = message.availableOn.toISOString();
|
|
17468
|
+
}
|
|
17469
|
+
if (message.observedAt !== undefined) {
|
|
17470
|
+
obj.observedAt = message.observedAt.toISOString();
|
|
17471
|
+
}
|
|
17472
|
+
return obj;
|
|
17473
|
+
},
|
|
17474
|
+
|
|
17475
|
+
create<I extends Exact<DeepPartial<StripeFundsAvailable>, I>>(base?: I): StripeFundsAvailable {
|
|
17476
|
+
return StripeFundsAvailable.fromPartial(base ?? ({} as any));
|
|
17477
|
+
},
|
|
17478
|
+
fromPartial<I extends Exact<DeepPartial<StripeFundsAvailable>, I>>(object: I): StripeFundsAvailable {
|
|
17479
|
+
const message = createBaseStripeFundsAvailable();
|
|
17480
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
17481
|
+
message.balanceTransactionId = object.balanceTransactionId ?? "";
|
|
17482
|
+
message.gross = (object.gross !== undefined && object.gross !== null)
|
|
17483
|
+
? StripeMoney.fromPartial(object.gross)
|
|
17484
|
+
: undefined;
|
|
17485
|
+
message.fee = (object.fee !== undefined && object.fee !== null) ? StripeMoney.fromPartial(object.fee) : undefined;
|
|
17486
|
+
message.net = (object.net !== undefined && object.net !== null) ? StripeMoney.fromPartial(object.net) : undefined;
|
|
17487
|
+
message.availableOn = object.availableOn ?? undefined;
|
|
17488
|
+
message.observedAt = object.observedAt ?? undefined;
|
|
17489
|
+
return message;
|
|
17490
|
+
},
|
|
17491
|
+
};
|
|
17492
|
+
|
|
17493
|
+
function createBaseStripePayoutPaid(): StripePayoutPaid {
|
|
17494
|
+
return {
|
|
17495
|
+
pluginCorrelationId: "",
|
|
17496
|
+
payoutId: "",
|
|
17497
|
+
amount: undefined,
|
|
17498
|
+
status: 0,
|
|
17499
|
+
automatic: false,
|
|
17500
|
+
arrivalDate: undefined,
|
|
17501
|
+
observedAt: undefined,
|
|
17502
|
+
};
|
|
17503
|
+
}
|
|
17504
|
+
|
|
17505
|
+
export const StripePayoutPaid: MessageFns<StripePayoutPaid> = {
|
|
17506
|
+
encode(message: StripePayoutPaid, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
17507
|
+
if (message.pluginCorrelationId !== "") {
|
|
17508
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
17509
|
+
}
|
|
17510
|
+
if (message.payoutId !== "") {
|
|
17511
|
+
writer.uint32(18).string(message.payoutId);
|
|
17512
|
+
}
|
|
17513
|
+
if (message.amount !== undefined) {
|
|
17514
|
+
StripeMoney.encode(message.amount, writer.uint32(26).fork()).join();
|
|
17515
|
+
}
|
|
17516
|
+
if (message.status !== 0) {
|
|
17517
|
+
writer.uint32(32).int32(message.status);
|
|
17518
|
+
}
|
|
17519
|
+
if (message.automatic !== false) {
|
|
17520
|
+
writer.uint32(40).bool(message.automatic);
|
|
17521
|
+
}
|
|
17522
|
+
if (message.arrivalDate !== undefined) {
|
|
17523
|
+
Timestamp.encode(toTimestamp(message.arrivalDate), writer.uint32(50).fork()).join();
|
|
17524
|
+
}
|
|
17525
|
+
if (message.observedAt !== undefined) {
|
|
17526
|
+
Timestamp.encode(toTimestamp(message.observedAt), writer.uint32(58).fork()).join();
|
|
17527
|
+
}
|
|
17528
|
+
return writer;
|
|
17529
|
+
},
|
|
17530
|
+
|
|
17531
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StripePayoutPaid {
|
|
17532
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17533
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
17534
|
+
const message = createBaseStripePayoutPaid();
|
|
17535
|
+
while (reader.pos < end) {
|
|
17536
|
+
const tag = reader.uint32();
|
|
17537
|
+
switch (tag >>> 3) {
|
|
17538
|
+
case 1: {
|
|
17539
|
+
if (tag !== 10) {
|
|
17540
|
+
break;
|
|
17541
|
+
}
|
|
17542
|
+
|
|
17543
|
+
message.pluginCorrelationId = reader.string();
|
|
17544
|
+
continue;
|
|
17545
|
+
}
|
|
17546
|
+
case 2: {
|
|
17547
|
+
if (tag !== 18) {
|
|
17548
|
+
break;
|
|
17549
|
+
}
|
|
17550
|
+
|
|
17551
|
+
message.payoutId = reader.string();
|
|
17552
|
+
continue;
|
|
17553
|
+
}
|
|
17554
|
+
case 3: {
|
|
17555
|
+
if (tag !== 26) {
|
|
17556
|
+
break;
|
|
17557
|
+
}
|
|
17558
|
+
|
|
17559
|
+
message.amount = StripeMoney.decode(reader, reader.uint32());
|
|
17560
|
+
continue;
|
|
17561
|
+
}
|
|
17562
|
+
case 4: {
|
|
17563
|
+
if (tag !== 32) {
|
|
17564
|
+
break;
|
|
17565
|
+
}
|
|
17566
|
+
|
|
17567
|
+
message.status = reader.int32() as any;
|
|
17568
|
+
continue;
|
|
17569
|
+
}
|
|
17570
|
+
case 5: {
|
|
17571
|
+
if (tag !== 40) {
|
|
17572
|
+
break;
|
|
17573
|
+
}
|
|
17574
|
+
|
|
17575
|
+
message.automatic = reader.bool();
|
|
17576
|
+
continue;
|
|
17577
|
+
}
|
|
17578
|
+
case 6: {
|
|
17579
|
+
if (tag !== 50) {
|
|
17580
|
+
break;
|
|
17581
|
+
}
|
|
17582
|
+
|
|
17583
|
+
message.arrivalDate = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
17584
|
+
continue;
|
|
17585
|
+
}
|
|
17586
|
+
case 7: {
|
|
17587
|
+
if (tag !== 58) {
|
|
17588
|
+
break;
|
|
17589
|
+
}
|
|
17590
|
+
|
|
17591
|
+
message.observedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
17592
|
+
continue;
|
|
17593
|
+
}
|
|
17594
|
+
}
|
|
17595
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17596
|
+
break;
|
|
17597
|
+
}
|
|
17598
|
+
reader.skip(tag & 7);
|
|
17599
|
+
}
|
|
17600
|
+
return message;
|
|
17601
|
+
},
|
|
17602
|
+
|
|
17603
|
+
fromJSON(object: any): StripePayoutPaid {
|
|
17604
|
+
return {
|
|
17605
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
17606
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
17607
|
+
: isSet(object.plugin_correlation_id)
|
|
17608
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
17609
|
+
: "",
|
|
17610
|
+
payoutId: isSet(object.payoutId)
|
|
17611
|
+
? globalThis.String(object.payoutId)
|
|
17612
|
+
: isSet(object.payout_id)
|
|
17613
|
+
? globalThis.String(object.payout_id)
|
|
17614
|
+
: "",
|
|
17615
|
+
amount: isSet(object.amount) ? StripeMoney.fromJSON(object.amount) : undefined,
|
|
17616
|
+
status: isSet(object.status) ? stripePayoutStatusFromJSON(object.status) : 0,
|
|
17617
|
+
automatic: isSet(object.automatic) ? globalThis.Boolean(object.automatic) : false,
|
|
17618
|
+
arrivalDate: isSet(object.arrivalDate)
|
|
17619
|
+
? fromJsonTimestamp(object.arrivalDate)
|
|
17620
|
+
: isSet(object.arrival_date)
|
|
17621
|
+
? fromJsonTimestamp(object.arrival_date)
|
|
17622
|
+
: undefined,
|
|
17623
|
+
observedAt: isSet(object.observedAt)
|
|
17624
|
+
? fromJsonTimestamp(object.observedAt)
|
|
17625
|
+
: isSet(object.observed_at)
|
|
17626
|
+
? fromJsonTimestamp(object.observed_at)
|
|
17627
|
+
: undefined,
|
|
17628
|
+
};
|
|
17629
|
+
},
|
|
17630
|
+
|
|
17631
|
+
toJSON(message: StripePayoutPaid): unknown {
|
|
17632
|
+
const obj: any = {};
|
|
17633
|
+
if (message.pluginCorrelationId !== "") {
|
|
17634
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
17635
|
+
}
|
|
17636
|
+
if (message.payoutId !== "") {
|
|
17637
|
+
obj.payoutId = message.payoutId;
|
|
17638
|
+
}
|
|
17639
|
+
if (message.amount !== undefined) {
|
|
17640
|
+
obj.amount = StripeMoney.toJSON(message.amount);
|
|
17641
|
+
}
|
|
17642
|
+
if (message.status !== 0) {
|
|
17643
|
+
obj.status = stripePayoutStatusToJSON(message.status);
|
|
17644
|
+
}
|
|
17645
|
+
if (message.automatic !== false) {
|
|
17646
|
+
obj.automatic = message.automatic;
|
|
17647
|
+
}
|
|
17648
|
+
if (message.arrivalDate !== undefined) {
|
|
17649
|
+
obj.arrivalDate = message.arrivalDate.toISOString();
|
|
17650
|
+
}
|
|
17651
|
+
if (message.observedAt !== undefined) {
|
|
17652
|
+
obj.observedAt = message.observedAt.toISOString();
|
|
17653
|
+
}
|
|
17654
|
+
return obj;
|
|
17655
|
+
},
|
|
17656
|
+
|
|
17657
|
+
create<I extends Exact<DeepPartial<StripePayoutPaid>, I>>(base?: I): StripePayoutPaid {
|
|
17658
|
+
return StripePayoutPaid.fromPartial(base ?? ({} as any));
|
|
17659
|
+
},
|
|
17660
|
+
fromPartial<I extends Exact<DeepPartial<StripePayoutPaid>, I>>(object: I): StripePayoutPaid {
|
|
17661
|
+
const message = createBaseStripePayoutPaid();
|
|
17662
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
17663
|
+
message.payoutId = object.payoutId ?? "";
|
|
17664
|
+
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
17665
|
+
? StripeMoney.fromPartial(object.amount)
|
|
17666
|
+
: undefined;
|
|
17667
|
+
message.status = object.status ?? 0;
|
|
17668
|
+
message.automatic = object.automatic ?? false;
|
|
17669
|
+
message.arrivalDate = object.arrivalDate ?? undefined;
|
|
17670
|
+
message.observedAt = object.observedAt ?? undefined;
|
|
17671
|
+
return message;
|
|
17672
|
+
},
|
|
17673
|
+
};
|
|
17674
|
+
|
|
17675
|
+
function createBaseStripeTrackingFinished(): StripeTrackingFinished {
|
|
17676
|
+
return {
|
|
17677
|
+
pluginCorrelationId: "",
|
|
17678
|
+
status: 0,
|
|
17679
|
+
message: undefined,
|
|
17680
|
+
completedAt: undefined,
|
|
17681
|
+
paymentIntentId: "",
|
|
17682
|
+
chargeId: "",
|
|
17683
|
+
payoutId: "",
|
|
17684
|
+
netAmount: undefined,
|
|
17685
|
+
};
|
|
17686
|
+
}
|
|
17687
|
+
|
|
17688
|
+
export const StripeTrackingFinished: MessageFns<StripeTrackingFinished> = {
|
|
17689
|
+
encode(message: StripeTrackingFinished, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
17690
|
+
if (message.pluginCorrelationId !== "") {
|
|
17691
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
17692
|
+
}
|
|
17693
|
+
if (message.status !== 0) {
|
|
17694
|
+
writer.uint32(16).int32(message.status);
|
|
17695
|
+
}
|
|
17696
|
+
if (message.message !== undefined) {
|
|
17697
|
+
writer.uint32(26).string(message.message);
|
|
17698
|
+
}
|
|
17699
|
+
if (message.completedAt !== undefined) {
|
|
17700
|
+
Timestamp.encode(toTimestamp(message.completedAt), writer.uint32(34).fork()).join();
|
|
17701
|
+
}
|
|
17702
|
+
if (message.paymentIntentId !== "") {
|
|
17703
|
+
writer.uint32(82).string(message.paymentIntentId);
|
|
17704
|
+
}
|
|
17705
|
+
if (message.chargeId !== "") {
|
|
17706
|
+
writer.uint32(90).string(message.chargeId);
|
|
17707
|
+
}
|
|
17708
|
+
if (message.payoutId !== "") {
|
|
17709
|
+
writer.uint32(98).string(message.payoutId);
|
|
17710
|
+
}
|
|
17711
|
+
if (message.netAmount !== undefined) {
|
|
17712
|
+
StripeMoney.encode(message.netAmount, writer.uint32(106).fork()).join();
|
|
17713
|
+
}
|
|
17714
|
+
return writer;
|
|
17715
|
+
},
|
|
17716
|
+
|
|
17717
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StripeTrackingFinished {
|
|
17718
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17719
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
17720
|
+
const message = createBaseStripeTrackingFinished();
|
|
17721
|
+
while (reader.pos < end) {
|
|
17722
|
+
const tag = reader.uint32();
|
|
17723
|
+
switch (tag >>> 3) {
|
|
17724
|
+
case 1: {
|
|
17725
|
+
if (tag !== 10) {
|
|
17726
|
+
break;
|
|
17727
|
+
}
|
|
17728
|
+
|
|
17729
|
+
message.pluginCorrelationId = reader.string();
|
|
17730
|
+
continue;
|
|
17731
|
+
}
|
|
17732
|
+
case 2: {
|
|
17733
|
+
if (tag !== 16) {
|
|
17734
|
+
break;
|
|
17735
|
+
}
|
|
17736
|
+
|
|
17737
|
+
message.status = reader.int32() as any;
|
|
17738
|
+
continue;
|
|
17739
|
+
}
|
|
17740
|
+
case 3: {
|
|
17741
|
+
if (tag !== 26) {
|
|
17742
|
+
break;
|
|
17743
|
+
}
|
|
17744
|
+
|
|
17745
|
+
message.message = reader.string();
|
|
17746
|
+
continue;
|
|
17747
|
+
}
|
|
17748
|
+
case 4: {
|
|
17749
|
+
if (tag !== 34) {
|
|
17750
|
+
break;
|
|
17751
|
+
}
|
|
17752
|
+
|
|
17753
|
+
message.completedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
17754
|
+
continue;
|
|
17755
|
+
}
|
|
17756
|
+
case 10: {
|
|
17757
|
+
if (tag !== 82) {
|
|
17758
|
+
break;
|
|
17759
|
+
}
|
|
17760
|
+
|
|
17761
|
+
message.paymentIntentId = reader.string();
|
|
17762
|
+
continue;
|
|
17763
|
+
}
|
|
17764
|
+
case 11: {
|
|
17765
|
+
if (tag !== 90) {
|
|
17766
|
+
break;
|
|
17767
|
+
}
|
|
17768
|
+
|
|
17769
|
+
message.chargeId = reader.string();
|
|
17770
|
+
continue;
|
|
17771
|
+
}
|
|
17772
|
+
case 12: {
|
|
17773
|
+
if (tag !== 98) {
|
|
17774
|
+
break;
|
|
17775
|
+
}
|
|
17776
|
+
|
|
17777
|
+
message.payoutId = reader.string();
|
|
17778
|
+
continue;
|
|
17779
|
+
}
|
|
17780
|
+
case 13: {
|
|
17781
|
+
if (tag !== 106) {
|
|
17782
|
+
break;
|
|
17783
|
+
}
|
|
17784
|
+
|
|
17785
|
+
message.netAmount = StripeMoney.decode(reader, reader.uint32());
|
|
17786
|
+
continue;
|
|
17787
|
+
}
|
|
17788
|
+
}
|
|
17789
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17790
|
+
break;
|
|
17791
|
+
}
|
|
17792
|
+
reader.skip(tag & 7);
|
|
17793
|
+
}
|
|
17794
|
+
return message;
|
|
17795
|
+
},
|
|
17796
|
+
|
|
17797
|
+
fromJSON(object: any): StripeTrackingFinished {
|
|
17798
|
+
return {
|
|
17799
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
17800
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
17801
|
+
: isSet(object.plugin_correlation_id)
|
|
17802
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
17803
|
+
: "",
|
|
17804
|
+
status: isSet(object.status) ? stripeHintStatusFromJSON(object.status) : 0,
|
|
17805
|
+
message: isSet(object.message) ? globalThis.String(object.message) : undefined,
|
|
17806
|
+
completedAt: isSet(object.completedAt)
|
|
17807
|
+
? fromJsonTimestamp(object.completedAt)
|
|
17808
|
+
: isSet(object.completed_at)
|
|
17809
|
+
? fromJsonTimestamp(object.completed_at)
|
|
17810
|
+
: undefined,
|
|
17811
|
+
paymentIntentId: isSet(object.paymentIntentId)
|
|
17812
|
+
? globalThis.String(object.paymentIntentId)
|
|
17813
|
+
: isSet(object.payment_intent_id)
|
|
17814
|
+
? globalThis.String(object.payment_intent_id)
|
|
17815
|
+
: "",
|
|
17816
|
+
chargeId: isSet(object.chargeId)
|
|
17817
|
+
? globalThis.String(object.chargeId)
|
|
17818
|
+
: isSet(object.charge_id)
|
|
17819
|
+
? globalThis.String(object.charge_id)
|
|
17820
|
+
: "",
|
|
17821
|
+
payoutId: isSet(object.payoutId)
|
|
17822
|
+
? globalThis.String(object.payoutId)
|
|
17823
|
+
: isSet(object.payout_id)
|
|
17824
|
+
? globalThis.String(object.payout_id)
|
|
17825
|
+
: "",
|
|
17826
|
+
netAmount: isSet(object.netAmount)
|
|
17827
|
+
? StripeMoney.fromJSON(object.netAmount)
|
|
17828
|
+
: isSet(object.net_amount)
|
|
17829
|
+
? StripeMoney.fromJSON(object.net_amount)
|
|
17830
|
+
: undefined,
|
|
17831
|
+
};
|
|
17832
|
+
},
|
|
17833
|
+
|
|
17834
|
+
toJSON(message: StripeTrackingFinished): unknown {
|
|
17835
|
+
const obj: any = {};
|
|
17836
|
+
if (message.pluginCorrelationId !== "") {
|
|
17837
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
17838
|
+
}
|
|
17839
|
+
if (message.status !== 0) {
|
|
17840
|
+
obj.status = stripeHintStatusToJSON(message.status);
|
|
17841
|
+
}
|
|
17842
|
+
if (message.message !== undefined) {
|
|
17843
|
+
obj.message = message.message;
|
|
17844
|
+
}
|
|
17845
|
+
if (message.completedAt !== undefined) {
|
|
17846
|
+
obj.completedAt = message.completedAt.toISOString();
|
|
17847
|
+
}
|
|
17848
|
+
if (message.paymentIntentId !== "") {
|
|
17849
|
+
obj.paymentIntentId = message.paymentIntentId;
|
|
17850
|
+
}
|
|
17851
|
+
if (message.chargeId !== "") {
|
|
17852
|
+
obj.chargeId = message.chargeId;
|
|
17853
|
+
}
|
|
17854
|
+
if (message.payoutId !== "") {
|
|
17855
|
+
obj.payoutId = message.payoutId;
|
|
17856
|
+
}
|
|
17857
|
+
if (message.netAmount !== undefined) {
|
|
17858
|
+
obj.netAmount = StripeMoney.toJSON(message.netAmount);
|
|
17859
|
+
}
|
|
17860
|
+
return obj;
|
|
17861
|
+
},
|
|
17862
|
+
|
|
17863
|
+
create<I extends Exact<DeepPartial<StripeTrackingFinished>, I>>(base?: I): StripeTrackingFinished {
|
|
17864
|
+
return StripeTrackingFinished.fromPartial(base ?? ({} as any));
|
|
17865
|
+
},
|
|
17866
|
+
fromPartial<I extends Exact<DeepPartial<StripeTrackingFinished>, I>>(object: I): StripeTrackingFinished {
|
|
17867
|
+
const message = createBaseStripeTrackingFinished();
|
|
17868
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
17869
|
+
message.status = object.status ?? 0;
|
|
17870
|
+
message.message = object.message ?? undefined;
|
|
17871
|
+
message.completedAt = object.completedAt ?? undefined;
|
|
17872
|
+
message.paymentIntentId = object.paymentIntentId ?? "";
|
|
17873
|
+
message.chargeId = object.chargeId ?? "";
|
|
17874
|
+
message.payoutId = object.payoutId ?? "";
|
|
17875
|
+
message.netAmount = (object.netAmount !== undefined && object.netAmount !== null)
|
|
17876
|
+
? StripeMoney.fromPartial(object.netAmount)
|
|
17877
|
+
: undefined;
|
|
17878
|
+
return message;
|
|
17879
|
+
},
|
|
17880
|
+
};
|
|
17881
|
+
|
|
17882
|
+
function createBaseStripeMoney(): StripeMoney {
|
|
17883
|
+
return { amountMinor: 0, currency: "" };
|
|
17884
|
+
}
|
|
17885
|
+
|
|
17886
|
+
export const StripeMoney: MessageFns<StripeMoney> = {
|
|
17887
|
+
encode(message: StripeMoney, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
17888
|
+
if (message.amountMinor !== 0) {
|
|
17889
|
+
writer.uint32(8).int64(message.amountMinor);
|
|
17890
|
+
}
|
|
17891
|
+
if (message.currency !== "") {
|
|
17892
|
+
writer.uint32(18).string(message.currency);
|
|
17893
|
+
}
|
|
17894
|
+
return writer;
|
|
17895
|
+
},
|
|
17896
|
+
|
|
17897
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StripeMoney {
|
|
17898
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17899
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
17900
|
+
const message = createBaseStripeMoney();
|
|
17901
|
+
while (reader.pos < end) {
|
|
17902
|
+
const tag = reader.uint32();
|
|
17903
|
+
switch (tag >>> 3) {
|
|
17904
|
+
case 1: {
|
|
17905
|
+
if (tag !== 8) {
|
|
17906
|
+
break;
|
|
17907
|
+
}
|
|
17908
|
+
|
|
17909
|
+
message.amountMinor = longToNumber(reader.int64());
|
|
17910
|
+
continue;
|
|
17911
|
+
}
|
|
17912
|
+
case 2: {
|
|
17913
|
+
if (tag !== 18) {
|
|
17914
|
+
break;
|
|
17915
|
+
}
|
|
17916
|
+
|
|
17917
|
+
message.currency = reader.string();
|
|
17918
|
+
continue;
|
|
17919
|
+
}
|
|
17920
|
+
}
|
|
17921
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17922
|
+
break;
|
|
17923
|
+
}
|
|
17924
|
+
reader.skip(tag & 7);
|
|
17925
|
+
}
|
|
17926
|
+
return message;
|
|
17927
|
+
},
|
|
17928
|
+
|
|
17929
|
+
fromJSON(object: any): StripeMoney {
|
|
17930
|
+
return {
|
|
17931
|
+
amountMinor: isSet(object.amountMinor)
|
|
17932
|
+
? globalThis.Number(object.amountMinor)
|
|
17933
|
+
: isSet(object.amount_minor)
|
|
17934
|
+
? globalThis.Number(object.amount_minor)
|
|
17935
|
+
: 0,
|
|
17936
|
+
currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
|
|
17937
|
+
};
|
|
17938
|
+
},
|
|
17939
|
+
|
|
17940
|
+
toJSON(message: StripeMoney): unknown {
|
|
17941
|
+
const obj: any = {};
|
|
17942
|
+
if (message.amountMinor !== 0) {
|
|
17943
|
+
obj.amountMinor = Math.round(message.amountMinor);
|
|
17944
|
+
}
|
|
17945
|
+
if (message.currency !== "") {
|
|
17946
|
+
obj.currency = message.currency;
|
|
17947
|
+
}
|
|
17948
|
+
return obj;
|
|
17949
|
+
},
|
|
17950
|
+
|
|
17951
|
+
create<I extends Exact<DeepPartial<StripeMoney>, I>>(base?: I): StripeMoney {
|
|
17952
|
+
return StripeMoney.fromPartial(base ?? ({} as any));
|
|
17953
|
+
},
|
|
17954
|
+
fromPartial<I extends Exact<DeepPartial<StripeMoney>, I>>(object: I): StripeMoney {
|
|
17955
|
+
const message = createBaseStripeMoney();
|
|
17956
|
+
message.amountMinor = object.amountMinor ?? 0;
|
|
17957
|
+
message.currency = object.currency ?? "";
|
|
17958
|
+
return message;
|
|
17959
|
+
},
|
|
17960
|
+
};
|
|
17961
|
+
|
|
16426
17962
|
function createBasePagination(): Pagination {
|
|
16427
17963
|
return { anchorTimestamp: undefined, page: 0, perPage: 0 };
|
|
16428
17964
|
}
|