@sellout/models 0.0.62 → 0.0.64
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/enums/OrderItemTypeEnum.d.ts +4 -0
- package/.dist/enums/OrderItemTypeEnum.js +10 -0
- package/.dist/enums/OrderItemTypeEnum.js.map +1 -0
- package/.dist/graphql/fragments/order.fragment.js +4 -0
- package/.dist/graphql/fragments/order.fragment.js.map +1 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js +10 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js.map +1 -1
- package/.dist/graphql/mutations/breakApartOrder.d.ts +2 -0
- package/.dist/graphql/mutations/breakApartOrder.js +43 -0
- package/.dist/graphql/mutations/breakApartOrder.js.map +1 -0
- package/.dist/graphql/mutations/register.mutation.js +2 -9
- package/.dist/graphql/mutations/register.mutation.js.map +1 -1
- package/.dist/graphql/queries/order.query.js +2 -0
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/publicEvent.query.js +1 -0
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/userProfile.query.js +3 -2
- package/.dist/graphql/queries/userProfile.query.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +1 -2
- package/.dist/interfaces/IOrder.d.ts +0 -2
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderTicket.d.ts +1 -0
- package/.dist/interfaces/IOrderTicket.js.map +1 -1
- package/.dist/interfaces/IOrderUpgrade.d.ts +1 -0
- package/.dist/interfaces/IStripeCustomer.d.ts +2 -2
- package/.dist/interfaces/IStripePaymentMethod.d.ts +10 -0
- package/.dist/interfaces/IStripePaymentMethod.js +3 -0
- package/.dist/interfaces/IStripePaymentMethod.js.map +1 -0
- package/.dist/schemas/Order.d.ts +10 -4
- package/.dist/schemas/Order.js +10 -4
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/sellout-proto.js +1008 -116
- package/.dist/utils/PaymentUtil.js +129 -26
- package/.dist/utils/PaymentUtil.js.map +1 -1
- package/package.json +4 -4
- package/src/enums/OrderItemTypeEnum.ts +4 -0
- package/src/graphql/fragments/order.fragment.ts +4 -0
- package/src/graphql/mutations/attachStripePaymentMethod.mutation.ts +10 -1
- package/src/graphql/mutations/breakApartOrder.ts +39 -0
- package/src/graphql/mutations/register.mutation.ts +2 -9
- package/src/graphql/queries/order.query.ts +2 -0
- package/src/graphql/queries/publicEvent.query.ts +1 -0
- package/src/graphql/queries/userProfile.query.ts +3 -2
- package/src/interfaces/ICreateOrderParams.ts +1 -2
- package/src/interfaces/IOrder.ts +0 -2
- package/src/interfaces/IOrderTicket.ts +1 -0
- package/src/interfaces/IOrderUpgrade.ts +1 -0
- package/src/interfaces/IStripeCustomer.ts +2 -2
- package/src/interfaces/{IStripeSource.ts → IStripePaymentMethod.ts} +2 -2
- package/src/proto/order.proto +21 -5
- package/src/proto/stripe.proto +14 -3
- package/src/schemas/Order.ts +10 -4
- package/src/utils/PaymentUtil.ts +159 -34
- package/src/enums/OrderDeliveryMethodEnum.ts +0 -5
package/.dist/sellout-proto.js
CHANGED
|
@@ -12428,7 +12428,6 @@ $root.Order = (function() {
|
|
|
12428
12428
|
* @property {Array.<IOrderCustomField>|null} [customFields] Order customFields
|
|
12429
12429
|
* @property {string|null} [refundReason] Order refundReason
|
|
12430
12430
|
* @property {Array.<IPayment>|null} [payments] Order payments
|
|
12431
|
-
* @property {string|null} [deliveryMethod] Order deliveryMethod
|
|
12432
12431
|
*/
|
|
12433
12432
|
|
|
12434
12433
|
/**
|
|
@@ -12646,14 +12645,6 @@ $root.Order = (function() {
|
|
|
12646
12645
|
*/
|
|
12647
12646
|
Order.prototype.payments = $util.emptyArray;
|
|
12648
12647
|
|
|
12649
|
-
/**
|
|
12650
|
-
* Order deliveryMethod.
|
|
12651
|
-
* @member {string} deliveryMethod
|
|
12652
|
-
* @memberof Order
|
|
12653
|
-
* @instance
|
|
12654
|
-
*/
|
|
12655
|
-
Order.prototype.deliveryMethod = "";
|
|
12656
|
-
|
|
12657
12648
|
/**
|
|
12658
12649
|
* Creates a new Order instance using the specified properties.
|
|
12659
12650
|
* @function create
|
|
@@ -12734,8 +12725,6 @@ $root.Order = (function() {
|
|
|
12734
12725
|
if (message.payments != null && message.payments.length)
|
|
12735
12726
|
for (var i = 0; i < message.payments.length; ++i)
|
|
12736
12727
|
$root.Payment.encode(message.payments[i], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
12737
|
-
if (message.deliveryMethod != null && Object.hasOwnProperty.call(message, "deliveryMethod"))
|
|
12738
|
-
writer.uint32(/* id 24, wireType 2 =*/194).string(message.deliveryMethod);
|
|
12739
12728
|
return writer;
|
|
12740
12729
|
};
|
|
12741
12730
|
|
|
@@ -12858,9 +12847,6 @@ $root.Order = (function() {
|
|
|
12858
12847
|
message.payments = [];
|
|
12859
12848
|
message.payments.push($root.Payment.decode(reader, reader.uint32()));
|
|
12860
12849
|
break;
|
|
12861
|
-
case 24:
|
|
12862
|
-
message.deliveryMethod = reader.string();
|
|
12863
|
-
break;
|
|
12864
12850
|
default:
|
|
12865
12851
|
reader.skipType(tag & 7);
|
|
12866
12852
|
break;
|
|
@@ -13010,9 +12996,6 @@ $root.Order = (function() {
|
|
|
13010
12996
|
return "payments." + error;
|
|
13011
12997
|
}
|
|
13012
12998
|
}
|
|
13013
|
-
if (message.deliveryMethod != null && message.hasOwnProperty("deliveryMethod"))
|
|
13014
|
-
if (!$util.isString(message.deliveryMethod))
|
|
13015
|
-
return "deliveryMethod: string expected";
|
|
13016
12999
|
return null;
|
|
13017
13000
|
};
|
|
13018
13001
|
|
|
@@ -13131,8 +13114,6 @@ $root.Order = (function() {
|
|
|
13131
13114
|
message.payments[i] = $root.Payment.fromObject(object.payments[i]);
|
|
13132
13115
|
}
|
|
13133
13116
|
}
|
|
13134
|
-
if (object.deliveryMethod != null)
|
|
13135
|
-
message.deliveryMethod = String(object.deliveryMethod);
|
|
13136
13117
|
return message;
|
|
13137
13118
|
};
|
|
13138
13119
|
|
|
@@ -13176,7 +13157,6 @@ $root.Order = (function() {
|
|
|
13176
13157
|
object.ipAddress = "";
|
|
13177
13158
|
object.address = null;
|
|
13178
13159
|
object.refundReason = "";
|
|
13179
|
-
object.deliveryMethod = "";
|
|
13180
13160
|
}
|
|
13181
13161
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
13182
13162
|
object._id = message._id;
|
|
@@ -13250,8 +13230,6 @@ $root.Order = (function() {
|
|
|
13250
13230
|
for (var j = 0; j < message.payments.length; ++j)
|
|
13251
13231
|
object.payments[j] = $root.Payment.toObject(message.payments[j], options);
|
|
13252
13232
|
}
|
|
13253
|
-
if (message.deliveryMethod != null && message.hasOwnProperty("deliveryMethod"))
|
|
13254
|
-
object.deliveryMethod = message.deliveryMethod;
|
|
13255
13233
|
return object;
|
|
13256
13234
|
};
|
|
13257
13235
|
|
|
@@ -13286,6 +13264,7 @@ $root.OrderTicket = (function() {
|
|
|
13286
13264
|
* @property {IRefund|null} [refund] OrderTicket refund
|
|
13287
13265
|
* @property {IScan|null} [scan] OrderTicket scan
|
|
13288
13266
|
* @property {string|null} [state] OrderTicket state
|
|
13267
|
+
* @property {string|null} [qrCodeUrl] OrderTicket qrCodeUrl
|
|
13289
13268
|
*/
|
|
13290
13269
|
|
|
13291
13270
|
/**
|
|
@@ -13391,6 +13370,14 @@ $root.OrderTicket = (function() {
|
|
|
13391
13370
|
*/
|
|
13392
13371
|
OrderTicket.prototype.state = "";
|
|
13393
13372
|
|
|
13373
|
+
/**
|
|
13374
|
+
* OrderTicket qrCodeUrl.
|
|
13375
|
+
* @member {string} qrCodeUrl
|
|
13376
|
+
* @memberof OrderTicket
|
|
13377
|
+
* @instance
|
|
13378
|
+
*/
|
|
13379
|
+
OrderTicket.prototype.qrCodeUrl = "";
|
|
13380
|
+
|
|
13394
13381
|
/**
|
|
13395
13382
|
* Creates a new OrderTicket instance using the specified properties.
|
|
13396
13383
|
* @function create
|
|
@@ -13437,6 +13424,8 @@ $root.OrderTicket = (function() {
|
|
|
13437
13424
|
$root.Scan.encode(message.scan, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
13438
13425
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
13439
13426
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.state);
|
|
13427
|
+
if (message.qrCodeUrl != null && Object.hasOwnProperty.call(message, "qrCodeUrl"))
|
|
13428
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.qrCodeUrl);
|
|
13440
13429
|
return writer;
|
|
13441
13430
|
};
|
|
13442
13431
|
|
|
@@ -13504,6 +13493,9 @@ $root.OrderTicket = (function() {
|
|
|
13504
13493
|
case 10:
|
|
13505
13494
|
message.state = reader.string();
|
|
13506
13495
|
break;
|
|
13496
|
+
case 11:
|
|
13497
|
+
message.qrCodeUrl = reader.string();
|
|
13498
|
+
break;
|
|
13507
13499
|
default:
|
|
13508
13500
|
reader.skipType(tag & 7);
|
|
13509
13501
|
break;
|
|
@@ -13576,6 +13568,9 @@ $root.OrderTicket = (function() {
|
|
|
13576
13568
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13577
13569
|
if (!$util.isString(message.state))
|
|
13578
13570
|
return "state: string expected";
|
|
13571
|
+
if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
|
|
13572
|
+
if (!$util.isString(message.qrCodeUrl))
|
|
13573
|
+
return "qrCodeUrl: string expected";
|
|
13579
13574
|
return null;
|
|
13580
13575
|
};
|
|
13581
13576
|
|
|
@@ -13619,6 +13614,8 @@ $root.OrderTicket = (function() {
|
|
|
13619
13614
|
}
|
|
13620
13615
|
if (object.state != null)
|
|
13621
13616
|
message.state = String(object.state);
|
|
13617
|
+
if (object.qrCodeUrl != null)
|
|
13618
|
+
message.qrCodeUrl = String(object.qrCodeUrl);
|
|
13622
13619
|
return message;
|
|
13623
13620
|
};
|
|
13624
13621
|
|
|
@@ -13647,6 +13644,7 @@ $root.OrderTicket = (function() {
|
|
|
13647
13644
|
object.refund = null;
|
|
13648
13645
|
object.scan = null;
|
|
13649
13646
|
object.state = "";
|
|
13647
|
+
object.qrCodeUrl = "";
|
|
13650
13648
|
}
|
|
13651
13649
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
13652
13650
|
object._id = message._id;
|
|
@@ -13670,6 +13668,8 @@ $root.OrderTicket = (function() {
|
|
|
13670
13668
|
object.scan = $root.Scan.toObject(message.scan, options);
|
|
13671
13669
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13672
13670
|
object.state = message.state;
|
|
13671
|
+
if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
|
|
13672
|
+
object.qrCodeUrl = message.qrCodeUrl;
|
|
13673
13673
|
return object;
|
|
13674
13674
|
};
|
|
13675
13675
|
|
|
@@ -13702,6 +13702,7 @@ $root.OrderUpgrade = (function() {
|
|
|
13702
13702
|
* @property {IRefund|null} [refund] OrderUpgrade refund
|
|
13703
13703
|
* @property {IScan|null} [scan] OrderUpgrade scan
|
|
13704
13704
|
* @property {string|null} [state] OrderUpgrade state
|
|
13705
|
+
* @property {string|null} [qrCodeUrl] OrderUpgrade qrCodeUrl
|
|
13705
13706
|
*/
|
|
13706
13707
|
|
|
13707
13708
|
/**
|
|
@@ -13791,6 +13792,14 @@ $root.OrderUpgrade = (function() {
|
|
|
13791
13792
|
*/
|
|
13792
13793
|
OrderUpgrade.prototype.state = "";
|
|
13793
13794
|
|
|
13795
|
+
/**
|
|
13796
|
+
* OrderUpgrade qrCodeUrl.
|
|
13797
|
+
* @member {string} qrCodeUrl
|
|
13798
|
+
* @memberof OrderUpgrade
|
|
13799
|
+
* @instance
|
|
13800
|
+
*/
|
|
13801
|
+
OrderUpgrade.prototype.qrCodeUrl = "";
|
|
13802
|
+
|
|
13794
13803
|
/**
|
|
13795
13804
|
* Creates a new OrderUpgrade instance using the specified properties.
|
|
13796
13805
|
* @function create
|
|
@@ -13833,6 +13842,8 @@ $root.OrderUpgrade = (function() {
|
|
|
13833
13842
|
$root.Scan.encode(message.scan, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
13834
13843
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
13835
13844
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.state);
|
|
13845
|
+
if (message.qrCodeUrl != null && Object.hasOwnProperty.call(message, "qrCodeUrl"))
|
|
13846
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.qrCodeUrl);
|
|
13836
13847
|
return writer;
|
|
13837
13848
|
};
|
|
13838
13849
|
|
|
@@ -13894,6 +13905,9 @@ $root.OrderUpgrade = (function() {
|
|
|
13894
13905
|
case 8:
|
|
13895
13906
|
message.state = reader.string();
|
|
13896
13907
|
break;
|
|
13908
|
+
case 9:
|
|
13909
|
+
message.qrCodeUrl = reader.string();
|
|
13910
|
+
break;
|
|
13897
13911
|
default:
|
|
13898
13912
|
reader.skipType(tag & 7);
|
|
13899
13913
|
break;
|
|
@@ -13960,6 +13974,9 @@ $root.OrderUpgrade = (function() {
|
|
|
13960
13974
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13961
13975
|
if (!$util.isString(message.state))
|
|
13962
13976
|
return "state: string expected";
|
|
13977
|
+
if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
|
|
13978
|
+
if (!$util.isString(message.qrCodeUrl))
|
|
13979
|
+
return "qrCodeUrl: string expected";
|
|
13963
13980
|
return null;
|
|
13964
13981
|
};
|
|
13965
13982
|
|
|
@@ -13999,6 +14016,8 @@ $root.OrderUpgrade = (function() {
|
|
|
13999
14016
|
}
|
|
14000
14017
|
if (object.state != null)
|
|
14001
14018
|
message.state = String(object.state);
|
|
14019
|
+
if (object.qrCodeUrl != null)
|
|
14020
|
+
message.qrCodeUrl = String(object.qrCodeUrl);
|
|
14002
14021
|
return message;
|
|
14003
14022
|
};
|
|
14004
14023
|
|
|
@@ -14025,6 +14044,7 @@ $root.OrderUpgrade = (function() {
|
|
|
14025
14044
|
object.refund = null;
|
|
14026
14045
|
object.scan = null;
|
|
14027
14046
|
object.state = "";
|
|
14047
|
+
object.qrCodeUrl = "";
|
|
14028
14048
|
}
|
|
14029
14049
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
14030
14050
|
object._id = message._id;
|
|
@@ -14044,6 +14064,8 @@ $root.OrderUpgrade = (function() {
|
|
|
14044
14064
|
object.scan = $root.Scan.toObject(message.scan, options);
|
|
14045
14065
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
14046
14066
|
object.state = message.state;
|
|
14067
|
+
if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
|
|
14068
|
+
object.qrCodeUrl = message.qrCodeUrl;
|
|
14047
14069
|
return object;
|
|
14048
14070
|
};
|
|
14049
14071
|
|
|
@@ -15223,7 +15245,6 @@ $root.CreateOrderParams = (function() {
|
|
|
15223
15245
|
* @property {string|null} [type] CreateOrderParams type
|
|
15224
15246
|
* @property {string|null} [promotionCode] CreateOrderParams promotionCode
|
|
15225
15247
|
* @property {Array.<IOrderCustomField>|null} [customFields] CreateOrderParams customFields
|
|
15226
|
-
* @property {string|null} [deliveryMethod] CreateOrderParams deliveryMethod
|
|
15227
15248
|
* @property {string|null} [paymentMethodType] CreateOrderParams paymentMethodType
|
|
15228
15249
|
* @property {string|null} [holdToken] CreateOrderParams holdToken
|
|
15229
15250
|
* @property {string|null} [ipAddress] CreateOrderParams ipAddress
|
|
@@ -15311,14 +15332,6 @@ $root.CreateOrderParams = (function() {
|
|
|
15311
15332
|
*/
|
|
15312
15333
|
CreateOrderParams.prototype.customFields = $util.emptyArray;
|
|
15313
15334
|
|
|
15314
|
-
/**
|
|
15315
|
-
* CreateOrderParams deliveryMethod.
|
|
15316
|
-
* @member {string} deliveryMethod
|
|
15317
|
-
* @memberof CreateOrderParams
|
|
15318
|
-
* @instance
|
|
15319
|
-
*/
|
|
15320
|
-
CreateOrderParams.prototype.deliveryMethod = "";
|
|
15321
|
-
|
|
15322
15335
|
/**
|
|
15323
15336
|
* CreateOrderParams paymentMethodType.
|
|
15324
15337
|
* @member {string} paymentMethodType
|
|
@@ -15386,14 +15399,12 @@ $root.CreateOrderParams = (function() {
|
|
|
15386
15399
|
if (message.customFields != null && message.customFields.length)
|
|
15387
15400
|
for (var i = 0; i < message.customFields.length; ++i)
|
|
15388
15401
|
$root.OrderCustomField.encode(message.customFields[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
15389
|
-
if (message.deliveryMethod != null && Object.hasOwnProperty.call(message, "deliveryMethod"))
|
|
15390
|
-
writer.uint32(/* id 8, wireType 2 =*/66).string(message.deliveryMethod);
|
|
15391
15402
|
if (message.paymentMethodType != null && Object.hasOwnProperty.call(message, "paymentMethodType"))
|
|
15392
|
-
writer.uint32(/* id
|
|
15403
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.paymentMethodType);
|
|
15393
15404
|
if (message.holdToken != null && Object.hasOwnProperty.call(message, "holdToken"))
|
|
15394
|
-
writer.uint32(/* id
|
|
15405
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.holdToken);
|
|
15395
15406
|
if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress"))
|
|
15396
|
-
writer.uint32(/* id
|
|
15407
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.ipAddress);
|
|
15397
15408
|
return writer;
|
|
15398
15409
|
};
|
|
15399
15410
|
|
|
@@ -15459,15 +15470,12 @@ $root.CreateOrderParams = (function() {
|
|
|
15459
15470
|
message.customFields.push($root.OrderCustomField.decode(reader, reader.uint32()));
|
|
15460
15471
|
break;
|
|
15461
15472
|
case 8:
|
|
15462
|
-
message.deliveryMethod = reader.string();
|
|
15463
|
-
break;
|
|
15464
|
-
case 9:
|
|
15465
15473
|
message.paymentMethodType = reader.string();
|
|
15466
15474
|
break;
|
|
15467
|
-
case
|
|
15475
|
+
case 9:
|
|
15468
15476
|
message.holdToken = reader.string();
|
|
15469
15477
|
break;
|
|
15470
|
-
case
|
|
15478
|
+
case 10:
|
|
15471
15479
|
message.ipAddress = reader.string();
|
|
15472
15480
|
break;
|
|
15473
15481
|
default:
|
|
@@ -15547,9 +15555,6 @@ $root.CreateOrderParams = (function() {
|
|
|
15547
15555
|
return "customFields." + error;
|
|
15548
15556
|
}
|
|
15549
15557
|
}
|
|
15550
|
-
if (message.deliveryMethod != null && message.hasOwnProperty("deliveryMethod"))
|
|
15551
|
-
if (!$util.isString(message.deliveryMethod))
|
|
15552
|
-
return "deliveryMethod: string expected";
|
|
15553
15558
|
if (message.paymentMethodType != null && message.hasOwnProperty("paymentMethodType"))
|
|
15554
15559
|
if (!$util.isString(message.paymentMethodType))
|
|
15555
15560
|
return "paymentMethodType: string expected";
|
|
@@ -15614,8 +15619,6 @@ $root.CreateOrderParams = (function() {
|
|
|
15614
15619
|
message.customFields[i] = $root.OrderCustomField.fromObject(object.customFields[i]);
|
|
15615
15620
|
}
|
|
15616
15621
|
}
|
|
15617
|
-
if (object.deliveryMethod != null)
|
|
15618
|
-
message.deliveryMethod = String(object.deliveryMethod);
|
|
15619
15622
|
if (object.paymentMethodType != null)
|
|
15620
15623
|
message.paymentMethodType = String(object.paymentMethodType);
|
|
15621
15624
|
if (object.holdToken != null)
|
|
@@ -15649,7 +15652,6 @@ $root.CreateOrderParams = (function() {
|
|
|
15649
15652
|
object.eventId = "";
|
|
15650
15653
|
object.type = "";
|
|
15651
15654
|
object.promotionCode = "";
|
|
15652
|
-
object.deliveryMethod = "";
|
|
15653
15655
|
object.paymentMethodType = "";
|
|
15654
15656
|
object.holdToken = "";
|
|
15655
15657
|
object.ipAddress = "";
|
|
@@ -15679,8 +15681,6 @@ $root.CreateOrderParams = (function() {
|
|
|
15679
15681
|
for (var j = 0; j < message.customFields.length; ++j)
|
|
15680
15682
|
object.customFields[j] = $root.OrderCustomField.toObject(message.customFields[j], options);
|
|
15681
15683
|
}
|
|
15682
|
-
if (message.deliveryMethod != null && message.hasOwnProperty("deliveryMethod"))
|
|
15683
|
-
object.deliveryMethod = message.deliveryMethod;
|
|
15684
15684
|
if (message.paymentMethodType != null && message.hasOwnProperty("paymentMethodType"))
|
|
15685
15685
|
object.paymentMethodType = message.paymentMethodType;
|
|
15686
15686
|
if (message.holdToken != null && message.hasOwnProperty("holdToken"))
|
|
@@ -23774,6 +23774,518 @@ $root.QueryOrderAnalyticsResponse = (function() {
|
|
|
23774
23774
|
return QueryOrderAnalyticsResponse;
|
|
23775
23775
|
})();
|
|
23776
23776
|
|
|
23777
|
+
$root.BreakApartOrderRequest = (function() {
|
|
23778
|
+
|
|
23779
|
+
/**
|
|
23780
|
+
* Properties of a BreakApartOrderRequest.
|
|
23781
|
+
* @exports IBreakApartOrderRequest
|
|
23782
|
+
* @interface IBreakApartOrderRequest
|
|
23783
|
+
* @property {string|null} [spanContext] BreakApartOrderRequest spanContext
|
|
23784
|
+
* @property {string|null} [orderId] BreakApartOrderRequest orderId
|
|
23785
|
+
*/
|
|
23786
|
+
|
|
23787
|
+
/**
|
|
23788
|
+
* Constructs a new BreakApartOrderRequest.
|
|
23789
|
+
* @exports BreakApartOrderRequest
|
|
23790
|
+
* @classdesc Represents a BreakApartOrderRequest.
|
|
23791
|
+
* @implements IBreakApartOrderRequest
|
|
23792
|
+
* @constructor
|
|
23793
|
+
* @param {IBreakApartOrderRequest=} [properties] Properties to set
|
|
23794
|
+
*/
|
|
23795
|
+
function BreakApartOrderRequest(properties) {
|
|
23796
|
+
if (properties)
|
|
23797
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23798
|
+
if (properties[keys[i]] != null)
|
|
23799
|
+
this[keys[i]] = properties[keys[i]];
|
|
23800
|
+
}
|
|
23801
|
+
|
|
23802
|
+
/**
|
|
23803
|
+
* BreakApartOrderRequest spanContext.
|
|
23804
|
+
* @member {string} spanContext
|
|
23805
|
+
* @memberof BreakApartOrderRequest
|
|
23806
|
+
* @instance
|
|
23807
|
+
*/
|
|
23808
|
+
BreakApartOrderRequest.prototype.spanContext = "";
|
|
23809
|
+
|
|
23810
|
+
/**
|
|
23811
|
+
* BreakApartOrderRequest orderId.
|
|
23812
|
+
* @member {string} orderId
|
|
23813
|
+
* @memberof BreakApartOrderRequest
|
|
23814
|
+
* @instance
|
|
23815
|
+
*/
|
|
23816
|
+
BreakApartOrderRequest.prototype.orderId = "";
|
|
23817
|
+
|
|
23818
|
+
/**
|
|
23819
|
+
* Creates a new BreakApartOrderRequest instance using the specified properties.
|
|
23820
|
+
* @function create
|
|
23821
|
+
* @memberof BreakApartOrderRequest
|
|
23822
|
+
* @static
|
|
23823
|
+
* @param {IBreakApartOrderRequest=} [properties] Properties to set
|
|
23824
|
+
* @returns {BreakApartOrderRequest} BreakApartOrderRequest instance
|
|
23825
|
+
*/
|
|
23826
|
+
BreakApartOrderRequest.create = function create(properties) {
|
|
23827
|
+
return new BreakApartOrderRequest(properties);
|
|
23828
|
+
};
|
|
23829
|
+
|
|
23830
|
+
/**
|
|
23831
|
+
* Encodes the specified BreakApartOrderRequest message. Does not implicitly {@link BreakApartOrderRequest.verify|verify} messages.
|
|
23832
|
+
* @function encode
|
|
23833
|
+
* @memberof BreakApartOrderRequest
|
|
23834
|
+
* @static
|
|
23835
|
+
* @param {IBreakApartOrderRequest} message BreakApartOrderRequest message or plain object to encode
|
|
23836
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23837
|
+
* @returns {$protobuf.Writer} Writer
|
|
23838
|
+
*/
|
|
23839
|
+
BreakApartOrderRequest.encode = function encode(message, writer) {
|
|
23840
|
+
if (!writer)
|
|
23841
|
+
writer = $Writer.create();
|
|
23842
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
23843
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
23844
|
+
if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
|
|
23845
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orderId);
|
|
23846
|
+
return writer;
|
|
23847
|
+
};
|
|
23848
|
+
|
|
23849
|
+
/**
|
|
23850
|
+
* Encodes the specified BreakApartOrderRequest message, length delimited. Does not implicitly {@link BreakApartOrderRequest.verify|verify} messages.
|
|
23851
|
+
* @function encodeDelimited
|
|
23852
|
+
* @memberof BreakApartOrderRequest
|
|
23853
|
+
* @static
|
|
23854
|
+
* @param {IBreakApartOrderRequest} message BreakApartOrderRequest message or plain object to encode
|
|
23855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23856
|
+
* @returns {$protobuf.Writer} Writer
|
|
23857
|
+
*/
|
|
23858
|
+
BreakApartOrderRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23859
|
+
return this.encode(message, writer).ldelim();
|
|
23860
|
+
};
|
|
23861
|
+
|
|
23862
|
+
/**
|
|
23863
|
+
* Decodes a BreakApartOrderRequest message from the specified reader or buffer.
|
|
23864
|
+
* @function decode
|
|
23865
|
+
* @memberof BreakApartOrderRequest
|
|
23866
|
+
* @static
|
|
23867
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23868
|
+
* @param {number} [length] Message length if known beforehand
|
|
23869
|
+
* @returns {BreakApartOrderRequest} BreakApartOrderRequest
|
|
23870
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23871
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23872
|
+
*/
|
|
23873
|
+
BreakApartOrderRequest.decode = function decode(reader, length) {
|
|
23874
|
+
if (!(reader instanceof $Reader))
|
|
23875
|
+
reader = $Reader.create(reader);
|
|
23876
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreakApartOrderRequest();
|
|
23877
|
+
while (reader.pos < end) {
|
|
23878
|
+
var tag = reader.uint32();
|
|
23879
|
+
switch (tag >>> 3) {
|
|
23880
|
+
case 0:
|
|
23881
|
+
message.spanContext = reader.string();
|
|
23882
|
+
break;
|
|
23883
|
+
case 1:
|
|
23884
|
+
message.orderId = reader.string();
|
|
23885
|
+
break;
|
|
23886
|
+
default:
|
|
23887
|
+
reader.skipType(tag & 7);
|
|
23888
|
+
break;
|
|
23889
|
+
}
|
|
23890
|
+
}
|
|
23891
|
+
return message;
|
|
23892
|
+
};
|
|
23893
|
+
|
|
23894
|
+
/**
|
|
23895
|
+
* Decodes a BreakApartOrderRequest message from the specified reader or buffer, length delimited.
|
|
23896
|
+
* @function decodeDelimited
|
|
23897
|
+
* @memberof BreakApartOrderRequest
|
|
23898
|
+
* @static
|
|
23899
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23900
|
+
* @returns {BreakApartOrderRequest} BreakApartOrderRequest
|
|
23901
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23902
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23903
|
+
*/
|
|
23904
|
+
BreakApartOrderRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
23905
|
+
if (!(reader instanceof $Reader))
|
|
23906
|
+
reader = new $Reader(reader);
|
|
23907
|
+
return this.decode(reader, reader.uint32());
|
|
23908
|
+
};
|
|
23909
|
+
|
|
23910
|
+
/**
|
|
23911
|
+
* Verifies a BreakApartOrderRequest message.
|
|
23912
|
+
* @function verify
|
|
23913
|
+
* @memberof BreakApartOrderRequest
|
|
23914
|
+
* @static
|
|
23915
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
23916
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23917
|
+
*/
|
|
23918
|
+
BreakApartOrderRequest.verify = function verify(message) {
|
|
23919
|
+
if (typeof message !== "object" || message === null)
|
|
23920
|
+
return "object expected";
|
|
23921
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
23922
|
+
if (!$util.isString(message.spanContext))
|
|
23923
|
+
return "spanContext: string expected";
|
|
23924
|
+
if (message.orderId != null && message.hasOwnProperty("orderId"))
|
|
23925
|
+
if (!$util.isString(message.orderId))
|
|
23926
|
+
return "orderId: string expected";
|
|
23927
|
+
return null;
|
|
23928
|
+
};
|
|
23929
|
+
|
|
23930
|
+
/**
|
|
23931
|
+
* Creates a BreakApartOrderRequest message from a plain object. Also converts values to their respective internal types.
|
|
23932
|
+
* @function fromObject
|
|
23933
|
+
* @memberof BreakApartOrderRequest
|
|
23934
|
+
* @static
|
|
23935
|
+
* @param {Object.<string,*>} object Plain object
|
|
23936
|
+
* @returns {BreakApartOrderRequest} BreakApartOrderRequest
|
|
23937
|
+
*/
|
|
23938
|
+
BreakApartOrderRequest.fromObject = function fromObject(object) {
|
|
23939
|
+
if (object instanceof $root.BreakApartOrderRequest)
|
|
23940
|
+
return object;
|
|
23941
|
+
var message = new $root.BreakApartOrderRequest();
|
|
23942
|
+
if (object.spanContext != null)
|
|
23943
|
+
message.spanContext = String(object.spanContext);
|
|
23944
|
+
if (object.orderId != null)
|
|
23945
|
+
message.orderId = String(object.orderId);
|
|
23946
|
+
return message;
|
|
23947
|
+
};
|
|
23948
|
+
|
|
23949
|
+
/**
|
|
23950
|
+
* Creates a plain object from a BreakApartOrderRequest message. Also converts values to other types if specified.
|
|
23951
|
+
* @function toObject
|
|
23952
|
+
* @memberof BreakApartOrderRequest
|
|
23953
|
+
* @static
|
|
23954
|
+
* @param {BreakApartOrderRequest} message BreakApartOrderRequest
|
|
23955
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23956
|
+
* @returns {Object.<string,*>} Plain object
|
|
23957
|
+
*/
|
|
23958
|
+
BreakApartOrderRequest.toObject = function toObject(message, options) {
|
|
23959
|
+
if (!options)
|
|
23960
|
+
options = {};
|
|
23961
|
+
var object = {};
|
|
23962
|
+
if (options.defaults) {
|
|
23963
|
+
object.spanContext = "";
|
|
23964
|
+
object.orderId = "";
|
|
23965
|
+
}
|
|
23966
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
23967
|
+
object.spanContext = message.spanContext;
|
|
23968
|
+
if (message.orderId != null && message.hasOwnProperty("orderId"))
|
|
23969
|
+
object.orderId = message.orderId;
|
|
23970
|
+
return object;
|
|
23971
|
+
};
|
|
23972
|
+
|
|
23973
|
+
/**
|
|
23974
|
+
* Converts this BreakApartOrderRequest to JSON.
|
|
23975
|
+
* @function toJSON
|
|
23976
|
+
* @memberof BreakApartOrderRequest
|
|
23977
|
+
* @instance
|
|
23978
|
+
* @returns {Object.<string,*>} JSON object
|
|
23979
|
+
*/
|
|
23980
|
+
BreakApartOrderRequest.prototype.toJSON = function toJSON() {
|
|
23981
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23982
|
+
};
|
|
23983
|
+
|
|
23984
|
+
return BreakApartOrderRequest;
|
|
23985
|
+
})();
|
|
23986
|
+
|
|
23987
|
+
$root.BreakApartOrderResponse = (function() {
|
|
23988
|
+
|
|
23989
|
+
/**
|
|
23990
|
+
* Properties of a BreakApartOrderResponse.
|
|
23991
|
+
* @exports IBreakApartOrderResponse
|
|
23992
|
+
* @interface IBreakApartOrderResponse
|
|
23993
|
+
* @property {StatusCode|null} [status] BreakApartOrderResponse status
|
|
23994
|
+
* @property {Array.<IError>|null} [errors] BreakApartOrderResponse errors
|
|
23995
|
+
* @property {IOrder|null} [order] BreakApartOrderResponse order
|
|
23996
|
+
*/
|
|
23997
|
+
|
|
23998
|
+
/**
|
|
23999
|
+
* Constructs a new BreakApartOrderResponse.
|
|
24000
|
+
* @exports BreakApartOrderResponse
|
|
24001
|
+
* @classdesc Represents a BreakApartOrderResponse.
|
|
24002
|
+
* @implements IBreakApartOrderResponse
|
|
24003
|
+
* @constructor
|
|
24004
|
+
* @param {IBreakApartOrderResponse=} [properties] Properties to set
|
|
24005
|
+
*/
|
|
24006
|
+
function BreakApartOrderResponse(properties) {
|
|
24007
|
+
this.errors = [];
|
|
24008
|
+
if (properties)
|
|
24009
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24010
|
+
if (properties[keys[i]] != null)
|
|
24011
|
+
this[keys[i]] = properties[keys[i]];
|
|
24012
|
+
}
|
|
24013
|
+
|
|
24014
|
+
/**
|
|
24015
|
+
* BreakApartOrderResponse status.
|
|
24016
|
+
* @member {StatusCode} status
|
|
24017
|
+
* @memberof BreakApartOrderResponse
|
|
24018
|
+
* @instance
|
|
24019
|
+
*/
|
|
24020
|
+
BreakApartOrderResponse.prototype.status = 0;
|
|
24021
|
+
|
|
24022
|
+
/**
|
|
24023
|
+
* BreakApartOrderResponse errors.
|
|
24024
|
+
* @member {Array.<IError>} errors
|
|
24025
|
+
* @memberof BreakApartOrderResponse
|
|
24026
|
+
* @instance
|
|
24027
|
+
*/
|
|
24028
|
+
BreakApartOrderResponse.prototype.errors = $util.emptyArray;
|
|
24029
|
+
|
|
24030
|
+
/**
|
|
24031
|
+
* BreakApartOrderResponse order.
|
|
24032
|
+
* @member {IOrder|null|undefined} order
|
|
24033
|
+
* @memberof BreakApartOrderResponse
|
|
24034
|
+
* @instance
|
|
24035
|
+
*/
|
|
24036
|
+
BreakApartOrderResponse.prototype.order = null;
|
|
24037
|
+
|
|
24038
|
+
/**
|
|
24039
|
+
* Creates a new BreakApartOrderResponse instance using the specified properties.
|
|
24040
|
+
* @function create
|
|
24041
|
+
* @memberof BreakApartOrderResponse
|
|
24042
|
+
* @static
|
|
24043
|
+
* @param {IBreakApartOrderResponse=} [properties] Properties to set
|
|
24044
|
+
* @returns {BreakApartOrderResponse} BreakApartOrderResponse instance
|
|
24045
|
+
*/
|
|
24046
|
+
BreakApartOrderResponse.create = function create(properties) {
|
|
24047
|
+
return new BreakApartOrderResponse(properties);
|
|
24048
|
+
};
|
|
24049
|
+
|
|
24050
|
+
/**
|
|
24051
|
+
* Encodes the specified BreakApartOrderResponse message. Does not implicitly {@link BreakApartOrderResponse.verify|verify} messages.
|
|
24052
|
+
* @function encode
|
|
24053
|
+
* @memberof BreakApartOrderResponse
|
|
24054
|
+
* @static
|
|
24055
|
+
* @param {IBreakApartOrderResponse} message BreakApartOrderResponse message or plain object to encode
|
|
24056
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24057
|
+
* @returns {$protobuf.Writer} Writer
|
|
24058
|
+
*/
|
|
24059
|
+
BreakApartOrderResponse.encode = function encode(message, writer) {
|
|
24060
|
+
if (!writer)
|
|
24061
|
+
writer = $Writer.create();
|
|
24062
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
24063
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
24064
|
+
if (message.errors != null && message.errors.length)
|
|
24065
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
24066
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24067
|
+
if (message.order != null && Object.hasOwnProperty.call(message, "order"))
|
|
24068
|
+
$root.Order.encode(message.order, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
24069
|
+
return writer;
|
|
24070
|
+
};
|
|
24071
|
+
|
|
24072
|
+
/**
|
|
24073
|
+
* Encodes the specified BreakApartOrderResponse message, length delimited. Does not implicitly {@link BreakApartOrderResponse.verify|verify} messages.
|
|
24074
|
+
* @function encodeDelimited
|
|
24075
|
+
* @memberof BreakApartOrderResponse
|
|
24076
|
+
* @static
|
|
24077
|
+
* @param {IBreakApartOrderResponse} message BreakApartOrderResponse message or plain object to encode
|
|
24078
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24079
|
+
* @returns {$protobuf.Writer} Writer
|
|
24080
|
+
*/
|
|
24081
|
+
BreakApartOrderResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24082
|
+
return this.encode(message, writer).ldelim();
|
|
24083
|
+
};
|
|
24084
|
+
|
|
24085
|
+
/**
|
|
24086
|
+
* Decodes a BreakApartOrderResponse message from the specified reader or buffer.
|
|
24087
|
+
* @function decode
|
|
24088
|
+
* @memberof BreakApartOrderResponse
|
|
24089
|
+
* @static
|
|
24090
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24091
|
+
* @param {number} [length] Message length if known beforehand
|
|
24092
|
+
* @returns {BreakApartOrderResponse} BreakApartOrderResponse
|
|
24093
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24094
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24095
|
+
*/
|
|
24096
|
+
BreakApartOrderResponse.decode = function decode(reader, length) {
|
|
24097
|
+
if (!(reader instanceof $Reader))
|
|
24098
|
+
reader = $Reader.create(reader);
|
|
24099
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreakApartOrderResponse();
|
|
24100
|
+
while (reader.pos < end) {
|
|
24101
|
+
var tag = reader.uint32();
|
|
24102
|
+
switch (tag >>> 3) {
|
|
24103
|
+
case 0:
|
|
24104
|
+
message.status = reader.int32();
|
|
24105
|
+
break;
|
|
24106
|
+
case 1:
|
|
24107
|
+
if (!(message.errors && message.errors.length))
|
|
24108
|
+
message.errors = [];
|
|
24109
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
24110
|
+
break;
|
|
24111
|
+
case 2:
|
|
24112
|
+
message.order = $root.Order.decode(reader, reader.uint32());
|
|
24113
|
+
break;
|
|
24114
|
+
default:
|
|
24115
|
+
reader.skipType(tag & 7);
|
|
24116
|
+
break;
|
|
24117
|
+
}
|
|
24118
|
+
}
|
|
24119
|
+
return message;
|
|
24120
|
+
};
|
|
24121
|
+
|
|
24122
|
+
/**
|
|
24123
|
+
* Decodes a BreakApartOrderResponse message from the specified reader or buffer, length delimited.
|
|
24124
|
+
* @function decodeDelimited
|
|
24125
|
+
* @memberof BreakApartOrderResponse
|
|
24126
|
+
* @static
|
|
24127
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24128
|
+
* @returns {BreakApartOrderResponse} BreakApartOrderResponse
|
|
24129
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24130
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24131
|
+
*/
|
|
24132
|
+
BreakApartOrderResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
24133
|
+
if (!(reader instanceof $Reader))
|
|
24134
|
+
reader = new $Reader(reader);
|
|
24135
|
+
return this.decode(reader, reader.uint32());
|
|
24136
|
+
};
|
|
24137
|
+
|
|
24138
|
+
/**
|
|
24139
|
+
* Verifies a BreakApartOrderResponse message.
|
|
24140
|
+
* @function verify
|
|
24141
|
+
* @memberof BreakApartOrderResponse
|
|
24142
|
+
* @static
|
|
24143
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24144
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24145
|
+
*/
|
|
24146
|
+
BreakApartOrderResponse.verify = function verify(message) {
|
|
24147
|
+
if (typeof message !== "object" || message === null)
|
|
24148
|
+
return "object expected";
|
|
24149
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
24150
|
+
switch (message.status) {
|
|
24151
|
+
default:
|
|
24152
|
+
return "status: enum value expected";
|
|
24153
|
+
case 0:
|
|
24154
|
+
case 200:
|
|
24155
|
+
case 400:
|
|
24156
|
+
case 401:
|
|
24157
|
+
case 403:
|
|
24158
|
+
case 422:
|
|
24159
|
+
case 500:
|
|
24160
|
+
case 504:
|
|
24161
|
+
break;
|
|
24162
|
+
}
|
|
24163
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
24164
|
+
if (!Array.isArray(message.errors))
|
|
24165
|
+
return "errors: array expected";
|
|
24166
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
24167
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
24168
|
+
if (error)
|
|
24169
|
+
return "errors." + error;
|
|
24170
|
+
}
|
|
24171
|
+
}
|
|
24172
|
+
if (message.order != null && message.hasOwnProperty("order")) {
|
|
24173
|
+
var error = $root.Order.verify(message.order);
|
|
24174
|
+
if (error)
|
|
24175
|
+
return "order." + error;
|
|
24176
|
+
}
|
|
24177
|
+
return null;
|
|
24178
|
+
};
|
|
24179
|
+
|
|
24180
|
+
/**
|
|
24181
|
+
* Creates a BreakApartOrderResponse message from a plain object. Also converts values to their respective internal types.
|
|
24182
|
+
* @function fromObject
|
|
24183
|
+
* @memberof BreakApartOrderResponse
|
|
24184
|
+
* @static
|
|
24185
|
+
* @param {Object.<string,*>} object Plain object
|
|
24186
|
+
* @returns {BreakApartOrderResponse} BreakApartOrderResponse
|
|
24187
|
+
*/
|
|
24188
|
+
BreakApartOrderResponse.fromObject = function fromObject(object) {
|
|
24189
|
+
if (object instanceof $root.BreakApartOrderResponse)
|
|
24190
|
+
return object;
|
|
24191
|
+
var message = new $root.BreakApartOrderResponse();
|
|
24192
|
+
switch (object.status) {
|
|
24193
|
+
case "UNKNOWN_CODE":
|
|
24194
|
+
case 0:
|
|
24195
|
+
message.status = 0;
|
|
24196
|
+
break;
|
|
24197
|
+
case "OK":
|
|
24198
|
+
case 200:
|
|
24199
|
+
message.status = 200;
|
|
24200
|
+
break;
|
|
24201
|
+
case "BAD_REQUEST":
|
|
24202
|
+
case 400:
|
|
24203
|
+
message.status = 400;
|
|
24204
|
+
break;
|
|
24205
|
+
case "UNAUTHORIZED":
|
|
24206
|
+
case 401:
|
|
24207
|
+
message.status = 401;
|
|
24208
|
+
break;
|
|
24209
|
+
case "FORBIDDEN":
|
|
24210
|
+
case 403:
|
|
24211
|
+
message.status = 403;
|
|
24212
|
+
break;
|
|
24213
|
+
case "UNPROCESSABLE_ENTITY":
|
|
24214
|
+
case 422:
|
|
24215
|
+
message.status = 422;
|
|
24216
|
+
break;
|
|
24217
|
+
case "INTERNAL_SERVER_ERROR":
|
|
24218
|
+
case 500:
|
|
24219
|
+
message.status = 500;
|
|
24220
|
+
break;
|
|
24221
|
+
case "GATEWAY_TIMEOUT":
|
|
24222
|
+
case 504:
|
|
24223
|
+
message.status = 504;
|
|
24224
|
+
break;
|
|
24225
|
+
}
|
|
24226
|
+
if (object.errors) {
|
|
24227
|
+
if (!Array.isArray(object.errors))
|
|
24228
|
+
throw TypeError(".BreakApartOrderResponse.errors: array expected");
|
|
24229
|
+
message.errors = [];
|
|
24230
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
24231
|
+
if (typeof object.errors[i] !== "object")
|
|
24232
|
+
throw TypeError(".BreakApartOrderResponse.errors: object expected");
|
|
24233
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
24234
|
+
}
|
|
24235
|
+
}
|
|
24236
|
+
if (object.order != null) {
|
|
24237
|
+
if (typeof object.order !== "object")
|
|
24238
|
+
throw TypeError(".BreakApartOrderResponse.order: object expected");
|
|
24239
|
+
message.order = $root.Order.fromObject(object.order);
|
|
24240
|
+
}
|
|
24241
|
+
return message;
|
|
24242
|
+
};
|
|
24243
|
+
|
|
24244
|
+
/**
|
|
24245
|
+
* Creates a plain object from a BreakApartOrderResponse message. Also converts values to other types if specified.
|
|
24246
|
+
* @function toObject
|
|
24247
|
+
* @memberof BreakApartOrderResponse
|
|
24248
|
+
* @static
|
|
24249
|
+
* @param {BreakApartOrderResponse} message BreakApartOrderResponse
|
|
24250
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24251
|
+
* @returns {Object.<string,*>} Plain object
|
|
24252
|
+
*/
|
|
24253
|
+
BreakApartOrderResponse.toObject = function toObject(message, options) {
|
|
24254
|
+
if (!options)
|
|
24255
|
+
options = {};
|
|
24256
|
+
var object = {};
|
|
24257
|
+
if (options.arrays || options.defaults)
|
|
24258
|
+
object.errors = [];
|
|
24259
|
+
if (options.defaults) {
|
|
24260
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
24261
|
+
object.order = null;
|
|
24262
|
+
}
|
|
24263
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
24264
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
24265
|
+
if (message.errors && message.errors.length) {
|
|
24266
|
+
object.errors = [];
|
|
24267
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
24268
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
24269
|
+
}
|
|
24270
|
+
if (message.order != null && message.hasOwnProperty("order"))
|
|
24271
|
+
object.order = $root.Order.toObject(message.order, options);
|
|
24272
|
+
return object;
|
|
24273
|
+
};
|
|
24274
|
+
|
|
24275
|
+
/**
|
|
24276
|
+
* Converts this BreakApartOrderResponse to JSON.
|
|
24277
|
+
* @function toJSON
|
|
24278
|
+
* @memberof BreakApartOrderResponse
|
|
24279
|
+
* @instance
|
|
24280
|
+
* @returns {Object.<string,*>} JSON object
|
|
24281
|
+
*/
|
|
24282
|
+
BreakApartOrderResponse.prototype.toJSON = function toJSON() {
|
|
24283
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24284
|
+
};
|
|
24285
|
+
|
|
24286
|
+
return BreakApartOrderResponse;
|
|
24287
|
+
})();
|
|
24288
|
+
|
|
23777
24289
|
$root.OrderService = (function() {
|
|
23778
24290
|
|
|
23779
24291
|
/**
|
|
@@ -23971,6 +24483,39 @@ $root.OrderService = (function() {
|
|
|
23971
24483
|
* @variation 2
|
|
23972
24484
|
*/
|
|
23973
24485
|
|
|
24486
|
+
/**
|
|
24487
|
+
* Callback as used by {@link OrderService#breakApartOrder}.
|
|
24488
|
+
* @memberof OrderService
|
|
24489
|
+
* @typedef breakApartOrderCallback
|
|
24490
|
+
* @type {function}
|
|
24491
|
+
* @param {Error|null} error Error, if any
|
|
24492
|
+
* @param {BreakApartOrderResponse} [response] BreakApartOrderResponse
|
|
24493
|
+
*/
|
|
24494
|
+
|
|
24495
|
+
/**
|
|
24496
|
+
* Calls breakApartOrder.
|
|
24497
|
+
* @function breakApartOrder
|
|
24498
|
+
* @memberof OrderService
|
|
24499
|
+
* @instance
|
|
24500
|
+
* @param {IBreakApartOrderRequest} request BreakApartOrderRequest message or plain object
|
|
24501
|
+
* @param {OrderService.breakApartOrderCallback} callback Node-style callback called with the error, if any, and BreakApartOrderResponse
|
|
24502
|
+
* @returns {undefined}
|
|
24503
|
+
* @variation 1
|
|
24504
|
+
*/
|
|
24505
|
+
Object.defineProperty(OrderService.prototype.breakApartOrder = function breakApartOrder(request, callback) {
|
|
24506
|
+
return this.rpcCall(breakApartOrder, $root.BreakApartOrderRequest, $root.BreakApartOrderResponse, request, callback);
|
|
24507
|
+
}, "name", { value: "breakApartOrder" });
|
|
24508
|
+
|
|
24509
|
+
/**
|
|
24510
|
+
* Calls breakApartOrder.
|
|
24511
|
+
* @function breakApartOrder
|
|
24512
|
+
* @memberof OrderService
|
|
24513
|
+
* @instance
|
|
24514
|
+
* @param {IBreakApartOrderRequest} request BreakApartOrderRequest message or plain object
|
|
24515
|
+
* @returns {Promise<BreakApartOrderResponse>} Promise
|
|
24516
|
+
* @variation 2
|
|
24517
|
+
*/
|
|
24518
|
+
|
|
23974
24519
|
/**
|
|
23975
24520
|
* Callback as used by {@link OrderService#refundOrder}.
|
|
23976
24521
|
* @memberof OrderService
|
|
@@ -58507,7 +59052,7 @@ $root.StripeCustomer = (function() {
|
|
|
58507
59052
|
* @interface IStripeCustomer
|
|
58508
59053
|
* @property {string|null} [stripeCustomerId] StripeCustomer stripeCustomerId
|
|
58509
59054
|
* @property {string|null} [email] StripeCustomer email
|
|
58510
|
-
* @property {Array.<
|
|
59055
|
+
* @property {Array.<IStripePaymentMethod>|null} [paymentMethods] StripeCustomer paymentMethods
|
|
58511
59056
|
*/
|
|
58512
59057
|
|
|
58513
59058
|
/**
|
|
@@ -58519,7 +59064,7 @@ $root.StripeCustomer = (function() {
|
|
|
58519
59064
|
* @param {IStripeCustomer=} [properties] Properties to set
|
|
58520
59065
|
*/
|
|
58521
59066
|
function StripeCustomer(properties) {
|
|
58522
|
-
this.
|
|
59067
|
+
this.paymentMethods = [];
|
|
58523
59068
|
if (properties)
|
|
58524
59069
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58525
59070
|
if (properties[keys[i]] != null)
|
|
@@ -58543,12 +59088,12 @@ $root.StripeCustomer = (function() {
|
|
|
58543
59088
|
StripeCustomer.prototype.email = "";
|
|
58544
59089
|
|
|
58545
59090
|
/**
|
|
58546
|
-
* StripeCustomer
|
|
58547
|
-
* @member {Array.<
|
|
59091
|
+
* StripeCustomer paymentMethods.
|
|
59092
|
+
* @member {Array.<IStripePaymentMethod>} paymentMethods
|
|
58548
59093
|
* @memberof StripeCustomer
|
|
58549
59094
|
* @instance
|
|
58550
59095
|
*/
|
|
58551
|
-
StripeCustomer.prototype.
|
|
59096
|
+
StripeCustomer.prototype.paymentMethods = $util.emptyArray;
|
|
58552
59097
|
|
|
58553
59098
|
/**
|
|
58554
59099
|
* Creates a new StripeCustomer instance using the specified properties.
|
|
@@ -58578,9 +59123,9 @@ $root.StripeCustomer = (function() {
|
|
|
58578
59123
|
writer.uint32(/* id 0, wireType 2 =*/2).string(message.stripeCustomerId);
|
|
58579
59124
|
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
58580
59125
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
|
|
58581
|
-
if (message.
|
|
58582
|
-
for (var i = 0; i < message.
|
|
58583
|
-
$root.
|
|
59126
|
+
if (message.paymentMethods != null && message.paymentMethods.length)
|
|
59127
|
+
for (var i = 0; i < message.paymentMethods.length; ++i)
|
|
59128
|
+
$root.StripePaymentMethod.encode(message.paymentMethods[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58584
59129
|
return writer;
|
|
58585
59130
|
};
|
|
58586
59131
|
|
|
@@ -58622,9 +59167,9 @@ $root.StripeCustomer = (function() {
|
|
|
58622
59167
|
message.email = reader.string();
|
|
58623
59168
|
break;
|
|
58624
59169
|
case 2:
|
|
58625
|
-
if (!(message.
|
|
58626
|
-
message.
|
|
58627
|
-
message.
|
|
59170
|
+
if (!(message.paymentMethods && message.paymentMethods.length))
|
|
59171
|
+
message.paymentMethods = [];
|
|
59172
|
+
message.paymentMethods.push($root.StripePaymentMethod.decode(reader, reader.uint32()));
|
|
58628
59173
|
break;
|
|
58629
59174
|
default:
|
|
58630
59175
|
reader.skipType(tag & 7);
|
|
@@ -58667,13 +59212,13 @@ $root.StripeCustomer = (function() {
|
|
|
58667
59212
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
58668
59213
|
if (!$util.isString(message.email))
|
|
58669
59214
|
return "email: string expected";
|
|
58670
|
-
if (message.
|
|
58671
|
-
if (!Array.isArray(message.
|
|
58672
|
-
return "
|
|
58673
|
-
for (var i = 0; i < message.
|
|
58674
|
-
var error = $root.
|
|
59215
|
+
if (message.paymentMethods != null && message.hasOwnProperty("paymentMethods")) {
|
|
59216
|
+
if (!Array.isArray(message.paymentMethods))
|
|
59217
|
+
return "paymentMethods: array expected";
|
|
59218
|
+
for (var i = 0; i < message.paymentMethods.length; ++i) {
|
|
59219
|
+
var error = $root.StripePaymentMethod.verify(message.paymentMethods[i]);
|
|
58675
59220
|
if (error)
|
|
58676
|
-
return "
|
|
59221
|
+
return "paymentMethods." + error;
|
|
58677
59222
|
}
|
|
58678
59223
|
}
|
|
58679
59224
|
return null;
|
|
@@ -58695,14 +59240,14 @@ $root.StripeCustomer = (function() {
|
|
|
58695
59240
|
message.stripeCustomerId = String(object.stripeCustomerId);
|
|
58696
59241
|
if (object.email != null)
|
|
58697
59242
|
message.email = String(object.email);
|
|
58698
|
-
if (object.
|
|
58699
|
-
if (!Array.isArray(object.
|
|
58700
|
-
throw TypeError(".StripeCustomer.
|
|
58701
|
-
message.
|
|
58702
|
-
for (var i = 0; i < object.
|
|
58703
|
-
if (typeof object.
|
|
58704
|
-
throw TypeError(".StripeCustomer.
|
|
58705
|
-
message.
|
|
59243
|
+
if (object.paymentMethods) {
|
|
59244
|
+
if (!Array.isArray(object.paymentMethods))
|
|
59245
|
+
throw TypeError(".StripeCustomer.paymentMethods: array expected");
|
|
59246
|
+
message.paymentMethods = [];
|
|
59247
|
+
for (var i = 0; i < object.paymentMethods.length; ++i) {
|
|
59248
|
+
if (typeof object.paymentMethods[i] !== "object")
|
|
59249
|
+
throw TypeError(".StripeCustomer.paymentMethods: object expected");
|
|
59250
|
+
message.paymentMethods[i] = $root.StripePaymentMethod.fromObject(object.paymentMethods[i]);
|
|
58706
59251
|
}
|
|
58707
59252
|
}
|
|
58708
59253
|
return message;
|
|
@@ -58722,7 +59267,7 @@ $root.StripeCustomer = (function() {
|
|
|
58722
59267
|
options = {};
|
|
58723
59268
|
var object = {};
|
|
58724
59269
|
if (options.arrays || options.defaults)
|
|
58725
|
-
object.
|
|
59270
|
+
object.paymentMethods = [];
|
|
58726
59271
|
if (options.defaults) {
|
|
58727
59272
|
object.stripeCustomerId = "";
|
|
58728
59273
|
object.email = "";
|
|
@@ -58731,10 +59276,10 @@ $root.StripeCustomer = (function() {
|
|
|
58731
59276
|
object.stripeCustomerId = message.stripeCustomerId;
|
|
58732
59277
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
58733
59278
|
object.email = message.email;
|
|
58734
|
-
if (message.
|
|
58735
|
-
object.
|
|
58736
|
-
for (var j = 0; j < message.
|
|
58737
|
-
object.
|
|
59279
|
+
if (message.paymentMethods && message.paymentMethods.length) {
|
|
59280
|
+
object.paymentMethods = [];
|
|
59281
|
+
for (var j = 0; j < message.paymentMethods.length; ++j)
|
|
59282
|
+
object.paymentMethods[j] = $root.StripePaymentMethod.toObject(message.paymentMethods[j], options);
|
|
58738
59283
|
}
|
|
58739
59284
|
return object;
|
|
58740
59285
|
};
|
|
@@ -59095,6 +59640,348 @@ $root.StripeSource = (function() {
|
|
|
59095
59640
|
return StripeSource;
|
|
59096
59641
|
})();
|
|
59097
59642
|
|
|
59643
|
+
$root.StripePaymentMethod = (function() {
|
|
59644
|
+
|
|
59645
|
+
/**
|
|
59646
|
+
* Properties of a StripePaymentMethod.
|
|
59647
|
+
* @exports IStripePaymentMethod
|
|
59648
|
+
* @interface IStripePaymentMethod
|
|
59649
|
+
* @property {string|null} [paymentMethodId] StripePaymentMethod paymentMethodId
|
|
59650
|
+
* @property {string|null} [brand] StripePaymentMethod brand
|
|
59651
|
+
* @property {string|null} [last4] StripePaymentMethod last4
|
|
59652
|
+
* @property {string|null} [expMonth] StripePaymentMethod expMonth
|
|
59653
|
+
* @property {string|null} [expYear] StripePaymentMethod expYear
|
|
59654
|
+
* @property {string|null} [funding] StripePaymentMethod funding
|
|
59655
|
+
* @property {string|null} [country] StripePaymentMethod country
|
|
59656
|
+
* @property {string|null} [type] StripePaymentMethod type
|
|
59657
|
+
*/
|
|
59658
|
+
|
|
59659
|
+
/**
|
|
59660
|
+
* Constructs a new StripePaymentMethod.
|
|
59661
|
+
* @exports StripePaymentMethod
|
|
59662
|
+
* @classdesc Represents a StripePaymentMethod.
|
|
59663
|
+
* @implements IStripePaymentMethod
|
|
59664
|
+
* @constructor
|
|
59665
|
+
* @param {IStripePaymentMethod=} [properties] Properties to set
|
|
59666
|
+
*/
|
|
59667
|
+
function StripePaymentMethod(properties) {
|
|
59668
|
+
if (properties)
|
|
59669
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59670
|
+
if (properties[keys[i]] != null)
|
|
59671
|
+
this[keys[i]] = properties[keys[i]];
|
|
59672
|
+
}
|
|
59673
|
+
|
|
59674
|
+
/**
|
|
59675
|
+
* StripePaymentMethod paymentMethodId.
|
|
59676
|
+
* @member {string} paymentMethodId
|
|
59677
|
+
* @memberof StripePaymentMethod
|
|
59678
|
+
* @instance
|
|
59679
|
+
*/
|
|
59680
|
+
StripePaymentMethod.prototype.paymentMethodId = "";
|
|
59681
|
+
|
|
59682
|
+
/**
|
|
59683
|
+
* StripePaymentMethod brand.
|
|
59684
|
+
* @member {string} brand
|
|
59685
|
+
* @memberof StripePaymentMethod
|
|
59686
|
+
* @instance
|
|
59687
|
+
*/
|
|
59688
|
+
StripePaymentMethod.prototype.brand = "";
|
|
59689
|
+
|
|
59690
|
+
/**
|
|
59691
|
+
* StripePaymentMethod last4.
|
|
59692
|
+
* @member {string} last4
|
|
59693
|
+
* @memberof StripePaymentMethod
|
|
59694
|
+
* @instance
|
|
59695
|
+
*/
|
|
59696
|
+
StripePaymentMethod.prototype.last4 = "";
|
|
59697
|
+
|
|
59698
|
+
/**
|
|
59699
|
+
* StripePaymentMethod expMonth.
|
|
59700
|
+
* @member {string} expMonth
|
|
59701
|
+
* @memberof StripePaymentMethod
|
|
59702
|
+
* @instance
|
|
59703
|
+
*/
|
|
59704
|
+
StripePaymentMethod.prototype.expMonth = "";
|
|
59705
|
+
|
|
59706
|
+
/**
|
|
59707
|
+
* StripePaymentMethod expYear.
|
|
59708
|
+
* @member {string} expYear
|
|
59709
|
+
* @memberof StripePaymentMethod
|
|
59710
|
+
* @instance
|
|
59711
|
+
*/
|
|
59712
|
+
StripePaymentMethod.prototype.expYear = "";
|
|
59713
|
+
|
|
59714
|
+
/**
|
|
59715
|
+
* StripePaymentMethod funding.
|
|
59716
|
+
* @member {string} funding
|
|
59717
|
+
* @memberof StripePaymentMethod
|
|
59718
|
+
* @instance
|
|
59719
|
+
*/
|
|
59720
|
+
StripePaymentMethod.prototype.funding = "";
|
|
59721
|
+
|
|
59722
|
+
/**
|
|
59723
|
+
* StripePaymentMethod country.
|
|
59724
|
+
* @member {string} country
|
|
59725
|
+
* @memberof StripePaymentMethod
|
|
59726
|
+
* @instance
|
|
59727
|
+
*/
|
|
59728
|
+
StripePaymentMethod.prototype.country = "";
|
|
59729
|
+
|
|
59730
|
+
/**
|
|
59731
|
+
* StripePaymentMethod type.
|
|
59732
|
+
* @member {string} type
|
|
59733
|
+
* @memberof StripePaymentMethod
|
|
59734
|
+
* @instance
|
|
59735
|
+
*/
|
|
59736
|
+
StripePaymentMethod.prototype.type = "";
|
|
59737
|
+
|
|
59738
|
+
/**
|
|
59739
|
+
* Creates a new StripePaymentMethod instance using the specified properties.
|
|
59740
|
+
* @function create
|
|
59741
|
+
* @memberof StripePaymentMethod
|
|
59742
|
+
* @static
|
|
59743
|
+
* @param {IStripePaymentMethod=} [properties] Properties to set
|
|
59744
|
+
* @returns {StripePaymentMethod} StripePaymentMethod instance
|
|
59745
|
+
*/
|
|
59746
|
+
StripePaymentMethod.create = function create(properties) {
|
|
59747
|
+
return new StripePaymentMethod(properties);
|
|
59748
|
+
};
|
|
59749
|
+
|
|
59750
|
+
/**
|
|
59751
|
+
* Encodes the specified StripePaymentMethod message. Does not implicitly {@link StripePaymentMethod.verify|verify} messages.
|
|
59752
|
+
* @function encode
|
|
59753
|
+
* @memberof StripePaymentMethod
|
|
59754
|
+
* @static
|
|
59755
|
+
* @param {IStripePaymentMethod} message StripePaymentMethod message or plain object to encode
|
|
59756
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59757
|
+
* @returns {$protobuf.Writer} Writer
|
|
59758
|
+
*/
|
|
59759
|
+
StripePaymentMethod.encode = function encode(message, writer) {
|
|
59760
|
+
if (!writer)
|
|
59761
|
+
writer = $Writer.create();
|
|
59762
|
+
if (message.paymentMethodId != null && Object.hasOwnProperty.call(message, "paymentMethodId"))
|
|
59763
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.paymentMethodId);
|
|
59764
|
+
if (message.brand != null && Object.hasOwnProperty.call(message, "brand"))
|
|
59765
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.brand);
|
|
59766
|
+
if (message.last4 != null && Object.hasOwnProperty.call(message, "last4"))
|
|
59767
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.last4);
|
|
59768
|
+
if (message.expMonth != null && Object.hasOwnProperty.call(message, "expMonth"))
|
|
59769
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.expMonth);
|
|
59770
|
+
if (message.expYear != null && Object.hasOwnProperty.call(message, "expYear"))
|
|
59771
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.expYear);
|
|
59772
|
+
if (message.funding != null && Object.hasOwnProperty.call(message, "funding"))
|
|
59773
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.funding);
|
|
59774
|
+
if (message.country != null && Object.hasOwnProperty.call(message, "country"))
|
|
59775
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.country);
|
|
59776
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
59777
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.type);
|
|
59778
|
+
return writer;
|
|
59779
|
+
};
|
|
59780
|
+
|
|
59781
|
+
/**
|
|
59782
|
+
* Encodes the specified StripePaymentMethod message, length delimited. Does not implicitly {@link StripePaymentMethod.verify|verify} messages.
|
|
59783
|
+
* @function encodeDelimited
|
|
59784
|
+
* @memberof StripePaymentMethod
|
|
59785
|
+
* @static
|
|
59786
|
+
* @param {IStripePaymentMethod} message StripePaymentMethod message or plain object to encode
|
|
59787
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59788
|
+
* @returns {$protobuf.Writer} Writer
|
|
59789
|
+
*/
|
|
59790
|
+
StripePaymentMethod.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59791
|
+
return this.encode(message, writer).ldelim();
|
|
59792
|
+
};
|
|
59793
|
+
|
|
59794
|
+
/**
|
|
59795
|
+
* Decodes a StripePaymentMethod message from the specified reader or buffer.
|
|
59796
|
+
* @function decode
|
|
59797
|
+
* @memberof StripePaymentMethod
|
|
59798
|
+
* @static
|
|
59799
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59800
|
+
* @param {number} [length] Message length if known beforehand
|
|
59801
|
+
* @returns {StripePaymentMethod} StripePaymentMethod
|
|
59802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59804
|
+
*/
|
|
59805
|
+
StripePaymentMethod.decode = function decode(reader, length) {
|
|
59806
|
+
if (!(reader instanceof $Reader))
|
|
59807
|
+
reader = $Reader.create(reader);
|
|
59808
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StripePaymentMethod();
|
|
59809
|
+
while (reader.pos < end) {
|
|
59810
|
+
var tag = reader.uint32();
|
|
59811
|
+
switch (tag >>> 3) {
|
|
59812
|
+
case 0:
|
|
59813
|
+
message.paymentMethodId = reader.string();
|
|
59814
|
+
break;
|
|
59815
|
+
case 1:
|
|
59816
|
+
message.brand = reader.string();
|
|
59817
|
+
break;
|
|
59818
|
+
case 2:
|
|
59819
|
+
message.last4 = reader.string();
|
|
59820
|
+
break;
|
|
59821
|
+
case 3:
|
|
59822
|
+
message.expMonth = reader.string();
|
|
59823
|
+
break;
|
|
59824
|
+
case 4:
|
|
59825
|
+
message.expYear = reader.string();
|
|
59826
|
+
break;
|
|
59827
|
+
case 5:
|
|
59828
|
+
message.funding = reader.string();
|
|
59829
|
+
break;
|
|
59830
|
+
case 6:
|
|
59831
|
+
message.country = reader.string();
|
|
59832
|
+
break;
|
|
59833
|
+
case 7:
|
|
59834
|
+
message.type = reader.string();
|
|
59835
|
+
break;
|
|
59836
|
+
default:
|
|
59837
|
+
reader.skipType(tag & 7);
|
|
59838
|
+
break;
|
|
59839
|
+
}
|
|
59840
|
+
}
|
|
59841
|
+
return message;
|
|
59842
|
+
};
|
|
59843
|
+
|
|
59844
|
+
/**
|
|
59845
|
+
* Decodes a StripePaymentMethod message from the specified reader or buffer, length delimited.
|
|
59846
|
+
* @function decodeDelimited
|
|
59847
|
+
* @memberof StripePaymentMethod
|
|
59848
|
+
* @static
|
|
59849
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59850
|
+
* @returns {StripePaymentMethod} StripePaymentMethod
|
|
59851
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59852
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59853
|
+
*/
|
|
59854
|
+
StripePaymentMethod.decodeDelimited = function decodeDelimited(reader) {
|
|
59855
|
+
if (!(reader instanceof $Reader))
|
|
59856
|
+
reader = new $Reader(reader);
|
|
59857
|
+
return this.decode(reader, reader.uint32());
|
|
59858
|
+
};
|
|
59859
|
+
|
|
59860
|
+
/**
|
|
59861
|
+
* Verifies a StripePaymentMethod message.
|
|
59862
|
+
* @function verify
|
|
59863
|
+
* @memberof StripePaymentMethod
|
|
59864
|
+
* @static
|
|
59865
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59866
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59867
|
+
*/
|
|
59868
|
+
StripePaymentMethod.verify = function verify(message) {
|
|
59869
|
+
if (typeof message !== "object" || message === null)
|
|
59870
|
+
return "object expected";
|
|
59871
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
59872
|
+
if (!$util.isString(message.paymentMethodId))
|
|
59873
|
+
return "paymentMethodId: string expected";
|
|
59874
|
+
if (message.brand != null && message.hasOwnProperty("brand"))
|
|
59875
|
+
if (!$util.isString(message.brand))
|
|
59876
|
+
return "brand: string expected";
|
|
59877
|
+
if (message.last4 != null && message.hasOwnProperty("last4"))
|
|
59878
|
+
if (!$util.isString(message.last4))
|
|
59879
|
+
return "last4: string expected";
|
|
59880
|
+
if (message.expMonth != null && message.hasOwnProperty("expMonth"))
|
|
59881
|
+
if (!$util.isString(message.expMonth))
|
|
59882
|
+
return "expMonth: string expected";
|
|
59883
|
+
if (message.expYear != null && message.hasOwnProperty("expYear"))
|
|
59884
|
+
if (!$util.isString(message.expYear))
|
|
59885
|
+
return "expYear: string expected";
|
|
59886
|
+
if (message.funding != null && message.hasOwnProperty("funding"))
|
|
59887
|
+
if (!$util.isString(message.funding))
|
|
59888
|
+
return "funding: string expected";
|
|
59889
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
59890
|
+
if (!$util.isString(message.country))
|
|
59891
|
+
return "country: string expected";
|
|
59892
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
59893
|
+
if (!$util.isString(message.type))
|
|
59894
|
+
return "type: string expected";
|
|
59895
|
+
return null;
|
|
59896
|
+
};
|
|
59897
|
+
|
|
59898
|
+
/**
|
|
59899
|
+
* Creates a StripePaymentMethod message from a plain object. Also converts values to their respective internal types.
|
|
59900
|
+
* @function fromObject
|
|
59901
|
+
* @memberof StripePaymentMethod
|
|
59902
|
+
* @static
|
|
59903
|
+
* @param {Object.<string,*>} object Plain object
|
|
59904
|
+
* @returns {StripePaymentMethod} StripePaymentMethod
|
|
59905
|
+
*/
|
|
59906
|
+
StripePaymentMethod.fromObject = function fromObject(object) {
|
|
59907
|
+
if (object instanceof $root.StripePaymentMethod)
|
|
59908
|
+
return object;
|
|
59909
|
+
var message = new $root.StripePaymentMethod();
|
|
59910
|
+
if (object.paymentMethodId != null)
|
|
59911
|
+
message.paymentMethodId = String(object.paymentMethodId);
|
|
59912
|
+
if (object.brand != null)
|
|
59913
|
+
message.brand = String(object.brand);
|
|
59914
|
+
if (object.last4 != null)
|
|
59915
|
+
message.last4 = String(object.last4);
|
|
59916
|
+
if (object.expMonth != null)
|
|
59917
|
+
message.expMonth = String(object.expMonth);
|
|
59918
|
+
if (object.expYear != null)
|
|
59919
|
+
message.expYear = String(object.expYear);
|
|
59920
|
+
if (object.funding != null)
|
|
59921
|
+
message.funding = String(object.funding);
|
|
59922
|
+
if (object.country != null)
|
|
59923
|
+
message.country = String(object.country);
|
|
59924
|
+
if (object.type != null)
|
|
59925
|
+
message.type = String(object.type);
|
|
59926
|
+
return message;
|
|
59927
|
+
};
|
|
59928
|
+
|
|
59929
|
+
/**
|
|
59930
|
+
* Creates a plain object from a StripePaymentMethod message. Also converts values to other types if specified.
|
|
59931
|
+
* @function toObject
|
|
59932
|
+
* @memberof StripePaymentMethod
|
|
59933
|
+
* @static
|
|
59934
|
+
* @param {StripePaymentMethod} message StripePaymentMethod
|
|
59935
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59936
|
+
* @returns {Object.<string,*>} Plain object
|
|
59937
|
+
*/
|
|
59938
|
+
StripePaymentMethod.toObject = function toObject(message, options) {
|
|
59939
|
+
if (!options)
|
|
59940
|
+
options = {};
|
|
59941
|
+
var object = {};
|
|
59942
|
+
if (options.defaults) {
|
|
59943
|
+
object.paymentMethodId = "";
|
|
59944
|
+
object.brand = "";
|
|
59945
|
+
object.last4 = "";
|
|
59946
|
+
object.expMonth = "";
|
|
59947
|
+
object.expYear = "";
|
|
59948
|
+
object.funding = "";
|
|
59949
|
+
object.country = "";
|
|
59950
|
+
object.type = "";
|
|
59951
|
+
}
|
|
59952
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
59953
|
+
object.paymentMethodId = message.paymentMethodId;
|
|
59954
|
+
if (message.brand != null && message.hasOwnProperty("brand"))
|
|
59955
|
+
object.brand = message.brand;
|
|
59956
|
+
if (message.last4 != null && message.hasOwnProperty("last4"))
|
|
59957
|
+
object.last4 = message.last4;
|
|
59958
|
+
if (message.expMonth != null && message.hasOwnProperty("expMonth"))
|
|
59959
|
+
object.expMonth = message.expMonth;
|
|
59960
|
+
if (message.expYear != null && message.hasOwnProperty("expYear"))
|
|
59961
|
+
object.expYear = message.expYear;
|
|
59962
|
+
if (message.funding != null && message.hasOwnProperty("funding"))
|
|
59963
|
+
object.funding = message.funding;
|
|
59964
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
59965
|
+
object.country = message.country;
|
|
59966
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
59967
|
+
object.type = message.type;
|
|
59968
|
+
return object;
|
|
59969
|
+
};
|
|
59970
|
+
|
|
59971
|
+
/**
|
|
59972
|
+
* Converts this StripePaymentMethod to JSON.
|
|
59973
|
+
* @function toJSON
|
|
59974
|
+
* @memberof StripePaymentMethod
|
|
59975
|
+
* @instance
|
|
59976
|
+
* @returns {Object.<string,*>} JSON object
|
|
59977
|
+
*/
|
|
59978
|
+
StripePaymentMethod.prototype.toJSON = function toJSON() {
|
|
59979
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59980
|
+
};
|
|
59981
|
+
|
|
59982
|
+
return StripePaymentMethod;
|
|
59983
|
+
})();
|
|
59984
|
+
|
|
59098
59985
|
$root.ConnectStripeUserRequest = (function() {
|
|
59099
59986
|
|
|
59100
59987
|
/**
|
|
@@ -61867,7 +62754,6 @@ $root.CreateStripeCustomerRequest = (function() {
|
|
|
61867
62754
|
* @interface ICreateStripeCustomerRequest
|
|
61868
62755
|
* @property {string|null} [spanContext] CreateStripeCustomerRequest spanContext
|
|
61869
62756
|
* @property {string|null} [userId] CreateStripeCustomerRequest userId
|
|
61870
|
-
* @property {string|null} [stripeToken] CreateStripeCustomerRequest stripeToken
|
|
61871
62757
|
*/
|
|
61872
62758
|
|
|
61873
62759
|
/**
|
|
@@ -61901,14 +62787,6 @@ $root.CreateStripeCustomerRequest = (function() {
|
|
|
61901
62787
|
*/
|
|
61902
62788
|
CreateStripeCustomerRequest.prototype.userId = "";
|
|
61903
62789
|
|
|
61904
|
-
/**
|
|
61905
|
-
* CreateStripeCustomerRequest stripeToken.
|
|
61906
|
-
* @member {string} stripeToken
|
|
61907
|
-
* @memberof CreateStripeCustomerRequest
|
|
61908
|
-
* @instance
|
|
61909
|
-
*/
|
|
61910
|
-
CreateStripeCustomerRequest.prototype.stripeToken = "";
|
|
61911
|
-
|
|
61912
62790
|
/**
|
|
61913
62791
|
* Creates a new CreateStripeCustomerRequest instance using the specified properties.
|
|
61914
62792
|
* @function create
|
|
@@ -61937,8 +62815,6 @@ $root.CreateStripeCustomerRequest = (function() {
|
|
|
61937
62815
|
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
61938
62816
|
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
61939
62817
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
61940
|
-
if (message.stripeToken != null && Object.hasOwnProperty.call(message, "stripeToken"))
|
|
61941
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.stripeToken);
|
|
61942
62818
|
return writer;
|
|
61943
62819
|
};
|
|
61944
62820
|
|
|
@@ -61979,9 +62855,6 @@ $root.CreateStripeCustomerRequest = (function() {
|
|
|
61979
62855
|
case 1:
|
|
61980
62856
|
message.userId = reader.string();
|
|
61981
62857
|
break;
|
|
61982
|
-
case 2:
|
|
61983
|
-
message.stripeToken = reader.string();
|
|
61984
|
-
break;
|
|
61985
62858
|
default:
|
|
61986
62859
|
reader.skipType(tag & 7);
|
|
61987
62860
|
break;
|
|
@@ -62023,9 +62896,6 @@ $root.CreateStripeCustomerRequest = (function() {
|
|
|
62023
62896
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
62024
62897
|
if (!$util.isString(message.userId))
|
|
62025
62898
|
return "userId: string expected";
|
|
62026
|
-
if (message.stripeToken != null && message.hasOwnProperty("stripeToken"))
|
|
62027
|
-
if (!$util.isString(message.stripeToken))
|
|
62028
|
-
return "stripeToken: string expected";
|
|
62029
62899
|
return null;
|
|
62030
62900
|
};
|
|
62031
62901
|
|
|
@@ -62045,8 +62915,6 @@ $root.CreateStripeCustomerRequest = (function() {
|
|
|
62045
62915
|
message.spanContext = String(object.spanContext);
|
|
62046
62916
|
if (object.userId != null)
|
|
62047
62917
|
message.userId = String(object.userId);
|
|
62048
|
-
if (object.stripeToken != null)
|
|
62049
|
-
message.stripeToken = String(object.stripeToken);
|
|
62050
62918
|
return message;
|
|
62051
62919
|
};
|
|
62052
62920
|
|
|
@@ -62066,14 +62934,11 @@ $root.CreateStripeCustomerRequest = (function() {
|
|
|
62066
62934
|
if (options.defaults) {
|
|
62067
62935
|
object.spanContext = "";
|
|
62068
62936
|
object.userId = "";
|
|
62069
|
-
object.stripeToken = "";
|
|
62070
62937
|
}
|
|
62071
62938
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
62072
62939
|
object.spanContext = message.spanContext;
|
|
62073
62940
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
62074
62941
|
object.userId = message.userId;
|
|
62075
|
-
if (message.stripeToken != null && message.hasOwnProperty("stripeToken"))
|
|
62076
|
-
object.stripeToken = message.stripeToken;
|
|
62077
62942
|
return object;
|
|
62078
62943
|
};
|
|
62079
62944
|
|
|
@@ -64692,7 +65557,7 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64692
65557
|
* @interface IAttachStripePaymentMethodResponse
|
|
64693
65558
|
* @property {StatusCode|null} [status] AttachStripePaymentMethodResponse status
|
|
64694
65559
|
* @property {Array.<IError>|null} [errors] AttachStripePaymentMethodResponse errors
|
|
64695
|
-
* @property {
|
|
65560
|
+
* @property {IStripePaymentMethod|null} [paymentMethod] AttachStripePaymentMethodResponse paymentMethod
|
|
64696
65561
|
*/
|
|
64697
65562
|
|
|
64698
65563
|
/**
|
|
@@ -64728,12 +65593,12 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64728
65593
|
AttachStripePaymentMethodResponse.prototype.errors = $util.emptyArray;
|
|
64729
65594
|
|
|
64730
65595
|
/**
|
|
64731
|
-
* AttachStripePaymentMethodResponse
|
|
64732
|
-
* @member {
|
|
65596
|
+
* AttachStripePaymentMethodResponse paymentMethod.
|
|
65597
|
+
* @member {IStripePaymentMethod|null|undefined} paymentMethod
|
|
64733
65598
|
* @memberof AttachStripePaymentMethodResponse
|
|
64734
65599
|
* @instance
|
|
64735
65600
|
*/
|
|
64736
|
-
AttachStripePaymentMethodResponse.prototype.
|
|
65601
|
+
AttachStripePaymentMethodResponse.prototype.paymentMethod = null;
|
|
64737
65602
|
|
|
64738
65603
|
/**
|
|
64739
65604
|
* Creates a new AttachStripePaymentMethodResponse instance using the specified properties.
|
|
@@ -64764,8 +65629,8 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64764
65629
|
if (message.errors != null && message.errors.length)
|
|
64765
65630
|
for (var i = 0; i < message.errors.length; ++i)
|
|
64766
65631
|
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
64767
|
-
if (message.
|
|
64768
|
-
writer.uint32(/* id 2, wireType
|
|
65632
|
+
if (message.paymentMethod != null && Object.hasOwnProperty.call(message, "paymentMethod"))
|
|
65633
|
+
$root.StripePaymentMethod.encode(message.paymentMethod, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
64769
65634
|
return writer;
|
|
64770
65635
|
};
|
|
64771
65636
|
|
|
@@ -64809,7 +65674,7 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64809
65674
|
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
64810
65675
|
break;
|
|
64811
65676
|
case 2:
|
|
64812
|
-
message.
|
|
65677
|
+
message.paymentMethod = $root.StripePaymentMethod.decode(reader, reader.uint32());
|
|
64813
65678
|
break;
|
|
64814
65679
|
default:
|
|
64815
65680
|
reader.skipType(tag & 7);
|
|
@@ -64869,9 +65734,11 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64869
65734
|
return "errors." + error;
|
|
64870
65735
|
}
|
|
64871
65736
|
}
|
|
64872
|
-
if (message.
|
|
64873
|
-
|
|
64874
|
-
|
|
65737
|
+
if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod")) {
|
|
65738
|
+
var error = $root.StripePaymentMethod.verify(message.paymentMethod);
|
|
65739
|
+
if (error)
|
|
65740
|
+
return "paymentMethod." + error;
|
|
65741
|
+
}
|
|
64875
65742
|
return null;
|
|
64876
65743
|
};
|
|
64877
65744
|
|
|
@@ -64931,8 +65798,11 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64931
65798
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
64932
65799
|
}
|
|
64933
65800
|
}
|
|
64934
|
-
if (object.
|
|
64935
|
-
|
|
65801
|
+
if (object.paymentMethod != null) {
|
|
65802
|
+
if (typeof object.paymentMethod !== "object")
|
|
65803
|
+
throw TypeError(".AttachStripePaymentMethodResponse.paymentMethod: object expected");
|
|
65804
|
+
message.paymentMethod = $root.StripePaymentMethod.fromObject(object.paymentMethod);
|
|
65805
|
+
}
|
|
64936
65806
|
return message;
|
|
64937
65807
|
};
|
|
64938
65808
|
|
|
@@ -64953,7 +65823,7 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64953
65823
|
object.errors = [];
|
|
64954
65824
|
if (options.defaults) {
|
|
64955
65825
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
64956
|
-
object.
|
|
65826
|
+
object.paymentMethod = null;
|
|
64957
65827
|
}
|
|
64958
65828
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
64959
65829
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -64962,8 +65832,8 @@ $root.AttachStripePaymentMethodResponse = (function() {
|
|
|
64962
65832
|
for (var j = 0; j < message.errors.length; ++j)
|
|
64963
65833
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
64964
65834
|
}
|
|
64965
|
-
if (message.
|
|
64966
|
-
object.
|
|
65835
|
+
if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
|
|
65836
|
+
object.paymentMethod = $root.StripePaymentMethod.toObject(message.paymentMethod, options);
|
|
64967
65837
|
return object;
|
|
64968
65838
|
};
|
|
64969
65839
|
|
|
@@ -64995,6 +65865,7 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
64995
65865
|
* @property {number|null} [feeAmount] CreateStripePaymentIntentRequest feeAmount
|
|
64996
65866
|
* @property {string|null} [description] CreateStripePaymentIntentRequest description
|
|
64997
65867
|
* @property {string|null} [currency] CreateStripePaymentIntentRequest currency
|
|
65868
|
+
* @property {string|null} [paymentMethodId] CreateStripePaymentIntentRequest paymentMethodId
|
|
64998
65869
|
*/
|
|
64999
65870
|
|
|
65000
65871
|
/**
|
|
@@ -65076,6 +65947,14 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
65076
65947
|
*/
|
|
65077
65948
|
CreateStripePaymentIntentRequest.prototype.currency = "";
|
|
65078
65949
|
|
|
65950
|
+
/**
|
|
65951
|
+
* CreateStripePaymentIntentRequest paymentMethodId.
|
|
65952
|
+
* @member {string} paymentMethodId
|
|
65953
|
+
* @memberof CreateStripePaymentIntentRequest
|
|
65954
|
+
* @instance
|
|
65955
|
+
*/
|
|
65956
|
+
CreateStripePaymentIntentRequest.prototype.paymentMethodId = "";
|
|
65957
|
+
|
|
65079
65958
|
/**
|
|
65080
65959
|
* Creates a new CreateStripePaymentIntentRequest instance using the specified properties.
|
|
65081
65960
|
* @function create
|
|
@@ -65116,6 +65995,8 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
65116
65995
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
|
|
65117
65996
|
if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
|
|
65118
65997
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.currency);
|
|
65998
|
+
if (message.paymentMethodId != null && Object.hasOwnProperty.call(message, "paymentMethodId"))
|
|
65999
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.paymentMethodId);
|
|
65119
66000
|
return writer;
|
|
65120
66001
|
};
|
|
65121
66002
|
|
|
@@ -65174,6 +66055,9 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
65174
66055
|
case 7:
|
|
65175
66056
|
message.currency = reader.string();
|
|
65176
66057
|
break;
|
|
66058
|
+
case 8:
|
|
66059
|
+
message.paymentMethodId = reader.string();
|
|
66060
|
+
break;
|
|
65177
66061
|
default:
|
|
65178
66062
|
reader.skipType(tag & 7);
|
|
65179
66063
|
break;
|
|
@@ -65233,6 +66117,9 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
65233
66117
|
if (message.currency != null && message.hasOwnProperty("currency"))
|
|
65234
66118
|
if (!$util.isString(message.currency))
|
|
65235
66119
|
return "currency: string expected";
|
|
66120
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
66121
|
+
if (!$util.isString(message.paymentMethodId))
|
|
66122
|
+
return "paymentMethodId: string expected";
|
|
65236
66123
|
return null;
|
|
65237
66124
|
};
|
|
65238
66125
|
|
|
@@ -65264,6 +66151,8 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
65264
66151
|
message.description = String(object.description);
|
|
65265
66152
|
if (object.currency != null)
|
|
65266
66153
|
message.currency = String(object.currency);
|
|
66154
|
+
if (object.paymentMethodId != null)
|
|
66155
|
+
message.paymentMethodId = String(object.paymentMethodId);
|
|
65267
66156
|
return message;
|
|
65268
66157
|
};
|
|
65269
66158
|
|
|
@@ -65289,6 +66178,7 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
65289
66178
|
object.feeAmount = 0;
|
|
65290
66179
|
object.description = "";
|
|
65291
66180
|
object.currency = "";
|
|
66181
|
+
object.paymentMethodId = "";
|
|
65292
66182
|
}
|
|
65293
66183
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
65294
66184
|
object.spanContext = message.spanContext;
|
|
@@ -65306,6 +66196,8 @@ $root.CreateStripePaymentIntentRequest = (function() {
|
|
|
65306
66196
|
object.description = message.description;
|
|
65307
66197
|
if (message.currency != null && message.hasOwnProperty("currency"))
|
|
65308
66198
|
object.currency = message.currency;
|
|
66199
|
+
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
66200
|
+
object.paymentMethodId = message.paymentMethodId;
|
|
65309
66201
|
return object;
|
|
65310
66202
|
};
|
|
65311
66203
|
|