@sellout/models 0.0.224 → 0.0.225
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/sellout-proto.js +81 -516
- package/package.json +3 -3
- package/src/proto/stripe.proto +4 -14
package/.dist/sellout-proto.js
CHANGED
|
@@ -105564,30 +105564,24 @@ $root.CreateStripeSetupIntentResponse = (function() {
|
|
|
105564
105564
|
return CreateStripeSetupIntentResponse;
|
|
105565
105565
|
})();
|
|
105566
105566
|
|
|
105567
|
-
$root.
|
|
105567
|
+
$root.StripePublishKeyByResponse = (function() {
|
|
105568
105568
|
|
|
105569
105569
|
/**
|
|
105570
|
-
* Properties of a
|
|
105571
|
-
* @exports
|
|
105572
|
-
* @interface
|
|
105573
|
-
* @property {string|null} [
|
|
105574
|
-
* @property {string|null} [userId] PaymentMethodIdGeneratorRequest userId
|
|
105575
|
-
* @property {string|null} [number] PaymentMethodIdGeneratorRequest number
|
|
105576
|
-
* @property {string|null} [expMonth] PaymentMethodIdGeneratorRequest expMonth
|
|
105577
|
-
* @property {string|null} [expYear] PaymentMethodIdGeneratorRequest expYear
|
|
105578
|
-
* @property {string|null} [cvc] PaymentMethodIdGeneratorRequest cvc
|
|
105579
|
-
* @property {string|null} [name] PaymentMethodIdGeneratorRequest name
|
|
105570
|
+
* Properties of a StripePublishKeyByResponse.
|
|
105571
|
+
* @exports IStripePublishKeyByResponse
|
|
105572
|
+
* @interface IStripePublishKeyByResponse
|
|
105573
|
+
* @property {string|null} [publicStripeKey] StripePublishKeyByResponse publicStripeKey
|
|
105580
105574
|
*/
|
|
105581
105575
|
|
|
105582
105576
|
/**
|
|
105583
|
-
* Constructs a new
|
|
105584
|
-
* @exports
|
|
105585
|
-
* @classdesc Represents a
|
|
105586
|
-
* @implements
|
|
105577
|
+
* Constructs a new StripePublishKeyByResponse.
|
|
105578
|
+
* @exports StripePublishKeyByResponse
|
|
105579
|
+
* @classdesc Represents a StripePublishKeyByResponse.
|
|
105580
|
+
* @implements IStripePublishKeyByResponse
|
|
105587
105581
|
* @constructor
|
|
105588
|
-
* @param {
|
|
105582
|
+
* @param {IStripePublishKeyByResponse=} [properties] Properties to set
|
|
105589
105583
|
*/
|
|
105590
|
-
function
|
|
105584
|
+
function StripePublishKeyByResponse(properties) {
|
|
105591
105585
|
if (properties)
|
|
105592
105586
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
105593
105587
|
if (properties[keys[i]] != null)
|
|
@@ -105595,421 +105589,75 @@ $root.PaymentMethodIdGeneratorRequest = (function() {
|
|
|
105595
105589
|
}
|
|
105596
105590
|
|
|
105597
105591
|
/**
|
|
105598
|
-
*
|
|
105599
|
-
* @member {string}
|
|
105600
|
-
* @memberof
|
|
105601
|
-
* @instance
|
|
105602
|
-
*/
|
|
105603
|
-
PaymentMethodIdGeneratorRequest.prototype.spanContext = "";
|
|
105604
|
-
|
|
105605
|
-
/**
|
|
105606
|
-
* PaymentMethodIdGeneratorRequest userId.
|
|
105607
|
-
* @member {string} userId
|
|
105608
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105609
|
-
* @instance
|
|
105610
|
-
*/
|
|
105611
|
-
PaymentMethodIdGeneratorRequest.prototype.userId = "";
|
|
105612
|
-
|
|
105613
|
-
/**
|
|
105614
|
-
* PaymentMethodIdGeneratorRequest number.
|
|
105615
|
-
* @member {string} number
|
|
105616
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105617
|
-
* @instance
|
|
105618
|
-
*/
|
|
105619
|
-
PaymentMethodIdGeneratorRequest.prototype.number = "";
|
|
105620
|
-
|
|
105621
|
-
/**
|
|
105622
|
-
* PaymentMethodIdGeneratorRequest expMonth.
|
|
105623
|
-
* @member {string} expMonth
|
|
105624
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105625
|
-
* @instance
|
|
105626
|
-
*/
|
|
105627
|
-
PaymentMethodIdGeneratorRequest.prototype.expMonth = "";
|
|
105628
|
-
|
|
105629
|
-
/**
|
|
105630
|
-
* PaymentMethodIdGeneratorRequest expYear.
|
|
105631
|
-
* @member {string} expYear
|
|
105632
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105633
|
-
* @instance
|
|
105634
|
-
*/
|
|
105635
|
-
PaymentMethodIdGeneratorRequest.prototype.expYear = "";
|
|
105636
|
-
|
|
105637
|
-
/**
|
|
105638
|
-
* PaymentMethodIdGeneratorRequest cvc.
|
|
105639
|
-
* @member {string} cvc
|
|
105640
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105641
|
-
* @instance
|
|
105642
|
-
*/
|
|
105643
|
-
PaymentMethodIdGeneratorRequest.prototype.cvc = "";
|
|
105644
|
-
|
|
105645
|
-
/**
|
|
105646
|
-
* PaymentMethodIdGeneratorRequest name.
|
|
105647
|
-
* @member {string} name
|
|
105648
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105649
|
-
* @instance
|
|
105650
|
-
*/
|
|
105651
|
-
PaymentMethodIdGeneratorRequest.prototype.name = "";
|
|
105652
|
-
|
|
105653
|
-
/**
|
|
105654
|
-
* Creates a new PaymentMethodIdGeneratorRequest instance using the specified properties.
|
|
105655
|
-
* @function create
|
|
105656
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105657
|
-
* @static
|
|
105658
|
-
* @param {IPaymentMethodIdGeneratorRequest=} [properties] Properties to set
|
|
105659
|
-
* @returns {PaymentMethodIdGeneratorRequest} PaymentMethodIdGeneratorRequest instance
|
|
105660
|
-
*/
|
|
105661
|
-
PaymentMethodIdGeneratorRequest.create = function create(properties) {
|
|
105662
|
-
return new PaymentMethodIdGeneratorRequest(properties);
|
|
105663
|
-
};
|
|
105664
|
-
|
|
105665
|
-
/**
|
|
105666
|
-
* Encodes the specified PaymentMethodIdGeneratorRequest message. Does not implicitly {@link PaymentMethodIdGeneratorRequest.verify|verify} messages.
|
|
105667
|
-
* @function encode
|
|
105668
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105669
|
-
* @static
|
|
105670
|
-
* @param {IPaymentMethodIdGeneratorRequest} message PaymentMethodIdGeneratorRequest message or plain object to encode
|
|
105671
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
105672
|
-
* @returns {$protobuf.Writer} Writer
|
|
105673
|
-
*/
|
|
105674
|
-
PaymentMethodIdGeneratorRequest.encode = function encode(message, writer) {
|
|
105675
|
-
if (!writer)
|
|
105676
|
-
writer = $Writer.create();
|
|
105677
|
-
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
105678
|
-
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
105679
|
-
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
105680
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
105681
|
-
if (message.number != null && Object.hasOwnProperty.call(message, "number"))
|
|
105682
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.number);
|
|
105683
|
-
if (message.expMonth != null && Object.hasOwnProperty.call(message, "expMonth"))
|
|
105684
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.expMonth);
|
|
105685
|
-
if (message.expYear != null && Object.hasOwnProperty.call(message, "expYear"))
|
|
105686
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.expYear);
|
|
105687
|
-
if (message.cvc != null && Object.hasOwnProperty.call(message, "cvc"))
|
|
105688
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.cvc);
|
|
105689
|
-
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
105690
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
|
|
105691
|
-
return writer;
|
|
105692
|
-
};
|
|
105693
|
-
|
|
105694
|
-
/**
|
|
105695
|
-
* Encodes the specified PaymentMethodIdGeneratorRequest message, length delimited. Does not implicitly {@link PaymentMethodIdGeneratorRequest.verify|verify} messages.
|
|
105696
|
-
* @function encodeDelimited
|
|
105697
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105698
|
-
* @static
|
|
105699
|
-
* @param {IPaymentMethodIdGeneratorRequest} message PaymentMethodIdGeneratorRequest message or plain object to encode
|
|
105700
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
105701
|
-
* @returns {$protobuf.Writer} Writer
|
|
105702
|
-
*/
|
|
105703
|
-
PaymentMethodIdGeneratorRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
105704
|
-
return this.encode(message, writer).ldelim();
|
|
105705
|
-
};
|
|
105706
|
-
|
|
105707
|
-
/**
|
|
105708
|
-
* Decodes a PaymentMethodIdGeneratorRequest message from the specified reader or buffer.
|
|
105709
|
-
* @function decode
|
|
105710
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105711
|
-
* @static
|
|
105712
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
105713
|
-
* @param {number} [length] Message length if known beforehand
|
|
105714
|
-
* @returns {PaymentMethodIdGeneratorRequest} PaymentMethodIdGeneratorRequest
|
|
105715
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
105716
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105717
|
-
*/
|
|
105718
|
-
PaymentMethodIdGeneratorRequest.decode = function decode(reader, length) {
|
|
105719
|
-
if (!(reader instanceof $Reader))
|
|
105720
|
-
reader = $Reader.create(reader);
|
|
105721
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PaymentMethodIdGeneratorRequest();
|
|
105722
|
-
while (reader.pos < end) {
|
|
105723
|
-
var tag = reader.uint32();
|
|
105724
|
-
switch (tag >>> 3) {
|
|
105725
|
-
case 0:
|
|
105726
|
-
message.spanContext = reader.string();
|
|
105727
|
-
break;
|
|
105728
|
-
case 1:
|
|
105729
|
-
message.userId = reader.string();
|
|
105730
|
-
break;
|
|
105731
|
-
case 2:
|
|
105732
|
-
message.number = reader.string();
|
|
105733
|
-
break;
|
|
105734
|
-
case 3:
|
|
105735
|
-
message.expMonth = reader.string();
|
|
105736
|
-
break;
|
|
105737
|
-
case 4:
|
|
105738
|
-
message.expYear = reader.string();
|
|
105739
|
-
break;
|
|
105740
|
-
case 5:
|
|
105741
|
-
message.cvc = reader.string();
|
|
105742
|
-
break;
|
|
105743
|
-
case 6:
|
|
105744
|
-
message.name = reader.string();
|
|
105745
|
-
break;
|
|
105746
|
-
default:
|
|
105747
|
-
reader.skipType(tag & 7);
|
|
105748
|
-
break;
|
|
105749
|
-
}
|
|
105750
|
-
}
|
|
105751
|
-
return message;
|
|
105752
|
-
};
|
|
105753
|
-
|
|
105754
|
-
/**
|
|
105755
|
-
* Decodes a PaymentMethodIdGeneratorRequest message from the specified reader or buffer, length delimited.
|
|
105756
|
-
* @function decodeDelimited
|
|
105757
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105758
|
-
* @static
|
|
105759
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
105760
|
-
* @returns {PaymentMethodIdGeneratorRequest} PaymentMethodIdGeneratorRequest
|
|
105761
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
105762
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105763
|
-
*/
|
|
105764
|
-
PaymentMethodIdGeneratorRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
105765
|
-
if (!(reader instanceof $Reader))
|
|
105766
|
-
reader = new $Reader(reader);
|
|
105767
|
-
return this.decode(reader, reader.uint32());
|
|
105768
|
-
};
|
|
105769
|
-
|
|
105770
|
-
/**
|
|
105771
|
-
* Verifies a PaymentMethodIdGeneratorRequest message.
|
|
105772
|
-
* @function verify
|
|
105773
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105774
|
-
* @static
|
|
105775
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
105776
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
105777
|
-
*/
|
|
105778
|
-
PaymentMethodIdGeneratorRequest.verify = function verify(message) {
|
|
105779
|
-
if (typeof message !== "object" || message === null)
|
|
105780
|
-
return "object expected";
|
|
105781
|
-
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
105782
|
-
if (!$util.isString(message.spanContext))
|
|
105783
|
-
return "spanContext: string expected";
|
|
105784
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
105785
|
-
if (!$util.isString(message.userId))
|
|
105786
|
-
return "userId: string expected";
|
|
105787
|
-
if (message.number != null && message.hasOwnProperty("number"))
|
|
105788
|
-
if (!$util.isString(message.number))
|
|
105789
|
-
return "number: string expected";
|
|
105790
|
-
if (message.expMonth != null && message.hasOwnProperty("expMonth"))
|
|
105791
|
-
if (!$util.isString(message.expMonth))
|
|
105792
|
-
return "expMonth: string expected";
|
|
105793
|
-
if (message.expYear != null && message.hasOwnProperty("expYear"))
|
|
105794
|
-
if (!$util.isString(message.expYear))
|
|
105795
|
-
return "expYear: string expected";
|
|
105796
|
-
if (message.cvc != null && message.hasOwnProperty("cvc"))
|
|
105797
|
-
if (!$util.isString(message.cvc))
|
|
105798
|
-
return "cvc: string expected";
|
|
105799
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
105800
|
-
if (!$util.isString(message.name))
|
|
105801
|
-
return "name: string expected";
|
|
105802
|
-
return null;
|
|
105803
|
-
};
|
|
105804
|
-
|
|
105805
|
-
/**
|
|
105806
|
-
* Creates a PaymentMethodIdGeneratorRequest message from a plain object. Also converts values to their respective internal types.
|
|
105807
|
-
* @function fromObject
|
|
105808
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105809
|
-
* @static
|
|
105810
|
-
* @param {Object.<string,*>} object Plain object
|
|
105811
|
-
* @returns {PaymentMethodIdGeneratorRequest} PaymentMethodIdGeneratorRequest
|
|
105812
|
-
*/
|
|
105813
|
-
PaymentMethodIdGeneratorRequest.fromObject = function fromObject(object) {
|
|
105814
|
-
if (object instanceof $root.PaymentMethodIdGeneratorRequest)
|
|
105815
|
-
return object;
|
|
105816
|
-
var message = new $root.PaymentMethodIdGeneratorRequest();
|
|
105817
|
-
if (object.spanContext != null)
|
|
105818
|
-
message.spanContext = String(object.spanContext);
|
|
105819
|
-
if (object.userId != null)
|
|
105820
|
-
message.userId = String(object.userId);
|
|
105821
|
-
if (object.number != null)
|
|
105822
|
-
message.number = String(object.number);
|
|
105823
|
-
if (object.expMonth != null)
|
|
105824
|
-
message.expMonth = String(object.expMonth);
|
|
105825
|
-
if (object.expYear != null)
|
|
105826
|
-
message.expYear = String(object.expYear);
|
|
105827
|
-
if (object.cvc != null)
|
|
105828
|
-
message.cvc = String(object.cvc);
|
|
105829
|
-
if (object.name != null)
|
|
105830
|
-
message.name = String(object.name);
|
|
105831
|
-
return message;
|
|
105832
|
-
};
|
|
105833
|
-
|
|
105834
|
-
/**
|
|
105835
|
-
* Creates a plain object from a PaymentMethodIdGeneratorRequest message. Also converts values to other types if specified.
|
|
105836
|
-
* @function toObject
|
|
105837
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105838
|
-
* @static
|
|
105839
|
-
* @param {PaymentMethodIdGeneratorRequest} message PaymentMethodIdGeneratorRequest
|
|
105840
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
105841
|
-
* @returns {Object.<string,*>} Plain object
|
|
105842
|
-
*/
|
|
105843
|
-
PaymentMethodIdGeneratorRequest.toObject = function toObject(message, options) {
|
|
105844
|
-
if (!options)
|
|
105845
|
-
options = {};
|
|
105846
|
-
var object = {};
|
|
105847
|
-
if (options.defaults) {
|
|
105848
|
-
object.spanContext = "";
|
|
105849
|
-
object.userId = "";
|
|
105850
|
-
object.number = "";
|
|
105851
|
-
object.expMonth = "";
|
|
105852
|
-
object.expYear = "";
|
|
105853
|
-
object.cvc = "";
|
|
105854
|
-
object.name = "";
|
|
105855
|
-
}
|
|
105856
|
-
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
105857
|
-
object.spanContext = message.spanContext;
|
|
105858
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
105859
|
-
object.userId = message.userId;
|
|
105860
|
-
if (message.number != null && message.hasOwnProperty("number"))
|
|
105861
|
-
object.number = message.number;
|
|
105862
|
-
if (message.expMonth != null && message.hasOwnProperty("expMonth"))
|
|
105863
|
-
object.expMonth = message.expMonth;
|
|
105864
|
-
if (message.expYear != null && message.hasOwnProperty("expYear"))
|
|
105865
|
-
object.expYear = message.expYear;
|
|
105866
|
-
if (message.cvc != null && message.hasOwnProperty("cvc"))
|
|
105867
|
-
object.cvc = message.cvc;
|
|
105868
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
105869
|
-
object.name = message.name;
|
|
105870
|
-
return object;
|
|
105871
|
-
};
|
|
105872
|
-
|
|
105873
|
-
/**
|
|
105874
|
-
* Converts this PaymentMethodIdGeneratorRequest to JSON.
|
|
105875
|
-
* @function toJSON
|
|
105876
|
-
* @memberof PaymentMethodIdGeneratorRequest
|
|
105592
|
+
* StripePublishKeyByResponse publicStripeKey.
|
|
105593
|
+
* @member {string} publicStripeKey
|
|
105594
|
+
* @memberof StripePublishKeyByResponse
|
|
105877
105595
|
* @instance
|
|
105878
|
-
* @returns {Object.<string,*>} JSON object
|
|
105879
105596
|
*/
|
|
105880
|
-
|
|
105881
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
105882
|
-
};
|
|
105883
|
-
|
|
105884
|
-
return PaymentMethodIdGeneratorRequest;
|
|
105885
|
-
})();
|
|
105886
|
-
|
|
105887
|
-
$root.PaymentMethodIdGeneratorResponse = (function() {
|
|
105597
|
+
StripePublishKeyByResponse.prototype.publicStripeKey = "";
|
|
105888
105598
|
|
|
105889
105599
|
/**
|
|
105890
|
-
*
|
|
105891
|
-
* @exports IPaymentMethodIdGeneratorResponse
|
|
105892
|
-
* @interface IPaymentMethodIdGeneratorResponse
|
|
105893
|
-
* @property {string|null} [paymentMethodId] PaymentMethodIdGeneratorResponse paymentMethodId
|
|
105894
|
-
* @property {StatusCode|null} [status] PaymentMethodIdGeneratorResponse status
|
|
105895
|
-
* @property {Array.<IError>|null} [errors] PaymentMethodIdGeneratorResponse errors
|
|
105896
|
-
*/
|
|
105897
|
-
|
|
105898
|
-
/**
|
|
105899
|
-
* Constructs a new PaymentMethodIdGeneratorResponse.
|
|
105900
|
-
* @exports PaymentMethodIdGeneratorResponse
|
|
105901
|
-
* @classdesc Represents a PaymentMethodIdGeneratorResponse.
|
|
105902
|
-
* @implements IPaymentMethodIdGeneratorResponse
|
|
105903
|
-
* @constructor
|
|
105904
|
-
* @param {IPaymentMethodIdGeneratorResponse=} [properties] Properties to set
|
|
105905
|
-
*/
|
|
105906
|
-
function PaymentMethodIdGeneratorResponse(properties) {
|
|
105907
|
-
this.errors = [];
|
|
105908
|
-
if (properties)
|
|
105909
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
105910
|
-
if (properties[keys[i]] != null)
|
|
105911
|
-
this[keys[i]] = properties[keys[i]];
|
|
105912
|
-
}
|
|
105913
|
-
|
|
105914
|
-
/**
|
|
105915
|
-
* PaymentMethodIdGeneratorResponse paymentMethodId.
|
|
105916
|
-
* @member {string} paymentMethodId
|
|
105917
|
-
* @memberof PaymentMethodIdGeneratorResponse
|
|
105918
|
-
* @instance
|
|
105919
|
-
*/
|
|
105920
|
-
PaymentMethodIdGeneratorResponse.prototype.paymentMethodId = "";
|
|
105921
|
-
|
|
105922
|
-
/**
|
|
105923
|
-
* PaymentMethodIdGeneratorResponse status.
|
|
105924
|
-
* @member {StatusCode} status
|
|
105925
|
-
* @memberof PaymentMethodIdGeneratorResponse
|
|
105926
|
-
* @instance
|
|
105927
|
-
*/
|
|
105928
|
-
PaymentMethodIdGeneratorResponse.prototype.status = 0;
|
|
105929
|
-
|
|
105930
|
-
/**
|
|
105931
|
-
* PaymentMethodIdGeneratorResponse errors.
|
|
105932
|
-
* @member {Array.<IError>} errors
|
|
105933
|
-
* @memberof PaymentMethodIdGeneratorResponse
|
|
105934
|
-
* @instance
|
|
105935
|
-
*/
|
|
105936
|
-
PaymentMethodIdGeneratorResponse.prototype.errors = $util.emptyArray;
|
|
105937
|
-
|
|
105938
|
-
/**
|
|
105939
|
-
* Creates a new PaymentMethodIdGeneratorResponse instance using the specified properties.
|
|
105600
|
+
* Creates a new StripePublishKeyByResponse instance using the specified properties.
|
|
105940
105601
|
* @function create
|
|
105941
|
-
* @memberof
|
|
105602
|
+
* @memberof StripePublishKeyByResponse
|
|
105942
105603
|
* @static
|
|
105943
|
-
* @param {
|
|
105944
|
-
* @returns {
|
|
105604
|
+
* @param {IStripePublishKeyByResponse=} [properties] Properties to set
|
|
105605
|
+
* @returns {StripePublishKeyByResponse} StripePublishKeyByResponse instance
|
|
105945
105606
|
*/
|
|
105946
|
-
|
|
105947
|
-
return new
|
|
105607
|
+
StripePublishKeyByResponse.create = function create(properties) {
|
|
105608
|
+
return new StripePublishKeyByResponse(properties);
|
|
105948
105609
|
};
|
|
105949
105610
|
|
|
105950
105611
|
/**
|
|
105951
|
-
* Encodes the specified
|
|
105612
|
+
* Encodes the specified StripePublishKeyByResponse message. Does not implicitly {@link StripePublishKeyByResponse.verify|verify} messages.
|
|
105952
105613
|
* @function encode
|
|
105953
|
-
* @memberof
|
|
105614
|
+
* @memberof StripePublishKeyByResponse
|
|
105954
105615
|
* @static
|
|
105955
|
-
* @param {
|
|
105616
|
+
* @param {IStripePublishKeyByResponse} message StripePublishKeyByResponse message or plain object to encode
|
|
105956
105617
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
105957
105618
|
* @returns {$protobuf.Writer} Writer
|
|
105958
105619
|
*/
|
|
105959
|
-
|
|
105620
|
+
StripePublishKeyByResponse.encode = function encode(message, writer) {
|
|
105960
105621
|
if (!writer)
|
|
105961
105622
|
writer = $Writer.create();
|
|
105962
|
-
if (message.
|
|
105963
|
-
writer.uint32(/* id 0, wireType 2 =*/2).string(message.
|
|
105964
|
-
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
105965
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
105966
|
-
if (message.errors != null && message.errors.length)
|
|
105967
|
-
for (var i = 0; i < message.errors.length; ++i)
|
|
105968
|
-
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
105623
|
+
if (message.publicStripeKey != null && Object.hasOwnProperty.call(message, "publicStripeKey"))
|
|
105624
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.publicStripeKey);
|
|
105969
105625
|
return writer;
|
|
105970
105626
|
};
|
|
105971
105627
|
|
|
105972
105628
|
/**
|
|
105973
|
-
* Encodes the specified
|
|
105629
|
+
* Encodes the specified StripePublishKeyByResponse message, length delimited. Does not implicitly {@link StripePublishKeyByResponse.verify|verify} messages.
|
|
105974
105630
|
* @function encodeDelimited
|
|
105975
|
-
* @memberof
|
|
105631
|
+
* @memberof StripePublishKeyByResponse
|
|
105976
105632
|
* @static
|
|
105977
|
-
* @param {
|
|
105633
|
+
* @param {IStripePublishKeyByResponse} message StripePublishKeyByResponse message or plain object to encode
|
|
105978
105634
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
105979
105635
|
* @returns {$protobuf.Writer} Writer
|
|
105980
105636
|
*/
|
|
105981
|
-
|
|
105637
|
+
StripePublishKeyByResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
105982
105638
|
return this.encode(message, writer).ldelim();
|
|
105983
105639
|
};
|
|
105984
105640
|
|
|
105985
105641
|
/**
|
|
105986
|
-
* Decodes a
|
|
105642
|
+
* Decodes a StripePublishKeyByResponse message from the specified reader or buffer.
|
|
105987
105643
|
* @function decode
|
|
105988
|
-
* @memberof
|
|
105644
|
+
* @memberof StripePublishKeyByResponse
|
|
105989
105645
|
* @static
|
|
105990
105646
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
105991
105647
|
* @param {number} [length] Message length if known beforehand
|
|
105992
|
-
* @returns {
|
|
105648
|
+
* @returns {StripePublishKeyByResponse} StripePublishKeyByResponse
|
|
105993
105649
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
105994
105650
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105995
105651
|
*/
|
|
105996
|
-
|
|
105652
|
+
StripePublishKeyByResponse.decode = function decode(reader, length) {
|
|
105997
105653
|
if (!(reader instanceof $Reader))
|
|
105998
105654
|
reader = $Reader.create(reader);
|
|
105999
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
105655
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StripePublishKeyByResponse();
|
|
106000
105656
|
while (reader.pos < end) {
|
|
106001
105657
|
var tag = reader.uint32();
|
|
106002
105658
|
switch (tag >>> 3) {
|
|
106003
105659
|
case 0:
|
|
106004
|
-
message.
|
|
106005
|
-
break;
|
|
106006
|
-
case 1:
|
|
106007
|
-
message.status = reader.int32();
|
|
106008
|
-
break;
|
|
106009
|
-
case 2:
|
|
106010
|
-
if (!(message.errors && message.errors.length))
|
|
106011
|
-
message.errors = [];
|
|
106012
|
-
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
105660
|
+
message.publicStripeKey = reader.string();
|
|
106013
105661
|
break;
|
|
106014
105662
|
default:
|
|
106015
105663
|
reader.skipType(tag & 7);
|
|
@@ -106020,170 +105668,87 @@ $root.PaymentMethodIdGeneratorResponse = (function() {
|
|
|
106020
105668
|
};
|
|
106021
105669
|
|
|
106022
105670
|
/**
|
|
106023
|
-
* Decodes a
|
|
105671
|
+
* Decodes a StripePublishKeyByResponse message from the specified reader or buffer, length delimited.
|
|
106024
105672
|
* @function decodeDelimited
|
|
106025
|
-
* @memberof
|
|
105673
|
+
* @memberof StripePublishKeyByResponse
|
|
106026
105674
|
* @static
|
|
106027
105675
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
106028
|
-
* @returns {
|
|
105676
|
+
* @returns {StripePublishKeyByResponse} StripePublishKeyByResponse
|
|
106029
105677
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
106030
105678
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
106031
105679
|
*/
|
|
106032
|
-
|
|
105680
|
+
StripePublishKeyByResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
106033
105681
|
if (!(reader instanceof $Reader))
|
|
106034
105682
|
reader = new $Reader(reader);
|
|
106035
105683
|
return this.decode(reader, reader.uint32());
|
|
106036
105684
|
};
|
|
106037
105685
|
|
|
106038
105686
|
/**
|
|
106039
|
-
* Verifies a
|
|
105687
|
+
* Verifies a StripePublishKeyByResponse message.
|
|
106040
105688
|
* @function verify
|
|
106041
|
-
* @memberof
|
|
105689
|
+
* @memberof StripePublishKeyByResponse
|
|
106042
105690
|
* @static
|
|
106043
105691
|
* @param {Object.<string,*>} message Plain object to verify
|
|
106044
105692
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
106045
105693
|
*/
|
|
106046
|
-
|
|
105694
|
+
StripePublishKeyByResponse.verify = function verify(message) {
|
|
106047
105695
|
if (typeof message !== "object" || message === null)
|
|
106048
105696
|
return "object expected";
|
|
106049
|
-
if (message.
|
|
106050
|
-
if (!$util.isString(message.
|
|
106051
|
-
return "
|
|
106052
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
106053
|
-
switch (message.status) {
|
|
106054
|
-
default:
|
|
106055
|
-
return "status: enum value expected";
|
|
106056
|
-
case 0:
|
|
106057
|
-
case 200:
|
|
106058
|
-
case 400:
|
|
106059
|
-
case 401:
|
|
106060
|
-
case 403:
|
|
106061
|
-
case 422:
|
|
106062
|
-
case 404:
|
|
106063
|
-
case 500:
|
|
106064
|
-
case 504:
|
|
106065
|
-
break;
|
|
106066
|
-
}
|
|
106067
|
-
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
106068
|
-
if (!Array.isArray(message.errors))
|
|
106069
|
-
return "errors: array expected";
|
|
106070
|
-
for (var i = 0; i < message.errors.length; ++i) {
|
|
106071
|
-
var error = $root.Error.verify(message.errors[i]);
|
|
106072
|
-
if (error)
|
|
106073
|
-
return "errors." + error;
|
|
106074
|
-
}
|
|
106075
|
-
}
|
|
105697
|
+
if (message.publicStripeKey != null && message.hasOwnProperty("publicStripeKey"))
|
|
105698
|
+
if (!$util.isString(message.publicStripeKey))
|
|
105699
|
+
return "publicStripeKey: string expected";
|
|
106076
105700
|
return null;
|
|
106077
105701
|
};
|
|
106078
105702
|
|
|
106079
105703
|
/**
|
|
106080
|
-
* Creates a
|
|
105704
|
+
* Creates a StripePublishKeyByResponse message from a plain object. Also converts values to their respective internal types.
|
|
106081
105705
|
* @function fromObject
|
|
106082
|
-
* @memberof
|
|
105706
|
+
* @memberof StripePublishKeyByResponse
|
|
106083
105707
|
* @static
|
|
106084
105708
|
* @param {Object.<string,*>} object Plain object
|
|
106085
|
-
* @returns {
|
|
105709
|
+
* @returns {StripePublishKeyByResponse} StripePublishKeyByResponse
|
|
106086
105710
|
*/
|
|
106087
|
-
|
|
106088
|
-
if (object instanceof $root.
|
|
105711
|
+
StripePublishKeyByResponse.fromObject = function fromObject(object) {
|
|
105712
|
+
if (object instanceof $root.StripePublishKeyByResponse)
|
|
106089
105713
|
return object;
|
|
106090
|
-
var message = new $root.
|
|
106091
|
-
if (object.
|
|
106092
|
-
message.
|
|
106093
|
-
switch (object.status) {
|
|
106094
|
-
case "UNKNOWN_CODE":
|
|
106095
|
-
case 0:
|
|
106096
|
-
message.status = 0;
|
|
106097
|
-
break;
|
|
106098
|
-
case "OK":
|
|
106099
|
-
case 200:
|
|
106100
|
-
message.status = 200;
|
|
106101
|
-
break;
|
|
106102
|
-
case "BAD_REQUEST":
|
|
106103
|
-
case 400:
|
|
106104
|
-
message.status = 400;
|
|
106105
|
-
break;
|
|
106106
|
-
case "UNAUTHORIZED":
|
|
106107
|
-
case 401:
|
|
106108
|
-
message.status = 401;
|
|
106109
|
-
break;
|
|
106110
|
-
case "FORBIDDEN":
|
|
106111
|
-
case 403:
|
|
106112
|
-
message.status = 403;
|
|
106113
|
-
break;
|
|
106114
|
-
case "UNPROCESSABLE_ENTITY":
|
|
106115
|
-
case 422:
|
|
106116
|
-
message.status = 422;
|
|
106117
|
-
break;
|
|
106118
|
-
case "NOT_FOUND":
|
|
106119
|
-
case 404:
|
|
106120
|
-
message.status = 404;
|
|
106121
|
-
break;
|
|
106122
|
-
case "INTERNAL_SERVER_ERROR":
|
|
106123
|
-
case 500:
|
|
106124
|
-
message.status = 500;
|
|
106125
|
-
break;
|
|
106126
|
-
case "GATEWAY_TIMEOUT":
|
|
106127
|
-
case 504:
|
|
106128
|
-
message.status = 504;
|
|
106129
|
-
break;
|
|
106130
|
-
}
|
|
106131
|
-
if (object.errors) {
|
|
106132
|
-
if (!Array.isArray(object.errors))
|
|
106133
|
-
throw TypeError(".PaymentMethodIdGeneratorResponse.errors: array expected");
|
|
106134
|
-
message.errors = [];
|
|
106135
|
-
for (var i = 0; i < object.errors.length; ++i) {
|
|
106136
|
-
if (typeof object.errors[i] !== "object")
|
|
106137
|
-
throw TypeError(".PaymentMethodIdGeneratorResponse.errors: object expected");
|
|
106138
|
-
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
106139
|
-
}
|
|
106140
|
-
}
|
|
105714
|
+
var message = new $root.StripePublishKeyByResponse();
|
|
105715
|
+
if (object.publicStripeKey != null)
|
|
105716
|
+
message.publicStripeKey = String(object.publicStripeKey);
|
|
106141
105717
|
return message;
|
|
106142
105718
|
};
|
|
106143
105719
|
|
|
106144
105720
|
/**
|
|
106145
|
-
* Creates a plain object from a
|
|
105721
|
+
* Creates a plain object from a StripePublishKeyByResponse message. Also converts values to other types if specified.
|
|
106146
105722
|
* @function toObject
|
|
106147
|
-
* @memberof
|
|
105723
|
+
* @memberof StripePublishKeyByResponse
|
|
106148
105724
|
* @static
|
|
106149
|
-
* @param {
|
|
105725
|
+
* @param {StripePublishKeyByResponse} message StripePublishKeyByResponse
|
|
106150
105726
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
106151
105727
|
* @returns {Object.<string,*>} Plain object
|
|
106152
105728
|
*/
|
|
106153
|
-
|
|
105729
|
+
StripePublishKeyByResponse.toObject = function toObject(message, options) {
|
|
106154
105730
|
if (!options)
|
|
106155
105731
|
options = {};
|
|
106156
105732
|
var object = {};
|
|
106157
|
-
if (options.
|
|
106158
|
-
object.
|
|
106159
|
-
if (
|
|
106160
|
-
object.
|
|
106161
|
-
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
106162
|
-
}
|
|
106163
|
-
if (message.paymentMethodId != null && message.hasOwnProperty("paymentMethodId"))
|
|
106164
|
-
object.paymentMethodId = message.paymentMethodId;
|
|
106165
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
106166
|
-
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
106167
|
-
if (message.errors && message.errors.length) {
|
|
106168
|
-
object.errors = [];
|
|
106169
|
-
for (var j = 0; j < message.errors.length; ++j)
|
|
106170
|
-
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
106171
|
-
}
|
|
105733
|
+
if (options.defaults)
|
|
105734
|
+
object.publicStripeKey = "";
|
|
105735
|
+
if (message.publicStripeKey != null && message.hasOwnProperty("publicStripeKey"))
|
|
105736
|
+
object.publicStripeKey = message.publicStripeKey;
|
|
106172
105737
|
return object;
|
|
106173
105738
|
};
|
|
106174
105739
|
|
|
106175
105740
|
/**
|
|
106176
|
-
* Converts this
|
|
105741
|
+
* Converts this StripePublishKeyByResponse to JSON.
|
|
106177
105742
|
* @function toJSON
|
|
106178
|
-
* @memberof
|
|
105743
|
+
* @memberof StripePublishKeyByResponse
|
|
106179
105744
|
* @instance
|
|
106180
105745
|
* @returns {Object.<string,*>} JSON object
|
|
106181
105746
|
*/
|
|
106182
|
-
|
|
105747
|
+
StripePublishKeyByResponse.prototype.toJSON = function toJSON() {
|
|
106183
105748
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
106184
105749
|
};
|
|
106185
105750
|
|
|
106186
|
-
return
|
|
105751
|
+
return StripePublishKeyByResponse;
|
|
106187
105752
|
})();
|
|
106188
105753
|
|
|
106189
105754
|
$root.AttachStripePaymentMethodRequest = (function() {
|
|
@@ -112249,35 +111814,35 @@ $root.StripeService = (function() {
|
|
|
112249
111814
|
*/
|
|
112250
111815
|
|
|
112251
111816
|
/**
|
|
112252
|
-
* Callback as used by {@link StripeService#
|
|
111817
|
+
* Callback as used by {@link StripeService#stripePublishKey}.
|
|
112253
111818
|
* @memberof StripeService
|
|
112254
|
-
* @typedef
|
|
111819
|
+
* @typedef stripePublishKeyCallback
|
|
112255
111820
|
* @type {function}
|
|
112256
111821
|
* @param {Error|null} error Error, if any
|
|
112257
|
-
* @param {
|
|
111822
|
+
* @param {StripePublishKeyByResponse} [response] StripePublishKeyByResponse
|
|
112258
111823
|
*/
|
|
112259
111824
|
|
|
112260
111825
|
/**
|
|
112261
|
-
* Calls
|
|
112262
|
-
* @function
|
|
111826
|
+
* Calls stripePublishKey.
|
|
111827
|
+
* @function stripePublishKey
|
|
112263
111828
|
* @memberof StripeService
|
|
112264
111829
|
* @instance
|
|
112265
|
-
* @param {
|
|
112266
|
-
* @param {StripeService.
|
|
111830
|
+
* @param {IRetrieveStripeChargeRequest} request RetrieveStripeChargeRequest message or plain object
|
|
111831
|
+
* @param {StripeService.stripePublishKeyCallback} callback Node-style callback called with the error, if any, and StripePublishKeyByResponse
|
|
112267
111832
|
* @returns {undefined}
|
|
112268
111833
|
* @variation 1
|
|
112269
111834
|
*/
|
|
112270
|
-
Object.defineProperty(StripeService.prototype.
|
|
112271
|
-
return this.rpcCall(
|
|
112272
|
-
}, "name", { value: "
|
|
111835
|
+
Object.defineProperty(StripeService.prototype.stripePublishKey = function stripePublishKey(request, callback) {
|
|
111836
|
+
return this.rpcCall(stripePublishKey, $root.RetrieveStripeChargeRequest, $root.StripePublishKeyByResponse, request, callback);
|
|
111837
|
+
}, "name", { value: "stripePublishKey" });
|
|
112273
111838
|
|
|
112274
111839
|
/**
|
|
112275
|
-
* Calls
|
|
112276
|
-
* @function
|
|
111840
|
+
* Calls stripePublishKey.
|
|
111841
|
+
* @function stripePublishKey
|
|
112277
111842
|
* @memberof StripeService
|
|
112278
111843
|
* @instance
|
|
112279
|
-
* @param {
|
|
112280
|
-
* @returns {Promise<
|
|
111844
|
+
* @param {IRetrieveStripeChargeRequest} request RetrieveStripeChargeRequest message or plain object
|
|
111845
|
+
* @returns {Promise<StripePublishKeyByResponse>} Promise
|
|
112281
111846
|
* @variation 2
|
|
112282
111847
|
*/
|
|
112283
111848
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.225",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hapi/joi": "^16.1.7",
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
20
|
+
"@sellout/utils": "^0.0.225",
|
|
21
21
|
"@types/hapi__joi": "^16.0.1",
|
|
22
22
|
"@types/shortid": "^0.0.29",
|
|
23
23
|
"apollo-link-debounce": "^2.1.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"protobufjs": "^6.11.2",
|
|
32
32
|
"typescript": "^4.4.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "9a218e918592180fc40b6cf2aa8e930d1bb5c73e"
|
|
35
35
|
}
|
package/src/proto/stripe.proto
CHANGED
|
@@ -223,21 +223,10 @@ message CreateStripeSetupIntentResponse {
|
|
|
223
223
|
string clientSecret = 2;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
message
|
|
227
|
-
string
|
|
228
|
-
string userId = 1;
|
|
229
|
-
string number = 2;
|
|
230
|
-
string expMonth = 3;
|
|
231
|
-
string expYear = 4;
|
|
232
|
-
string cvc = 5;
|
|
233
|
-
string name = 6;
|
|
226
|
+
message StripePublishKeyByResponse {
|
|
227
|
+
string publicStripeKey = 0;
|
|
234
228
|
}
|
|
235
229
|
|
|
236
|
-
message PaymentMethodIdGeneratorResponse {
|
|
237
|
-
string paymentMethodId = 0;
|
|
238
|
-
StatusCode status = 1;
|
|
239
|
-
repeated Error errors = 2;
|
|
240
|
-
}
|
|
241
230
|
|
|
242
231
|
message AttachStripePaymentMethodRequest {
|
|
243
232
|
string spanContext = 0;
|
|
@@ -410,5 +399,6 @@ service StripeService {
|
|
|
410
399
|
rpc listStripeTerminalReaders(ListStripeTerminalReadersRequest) returns (ListStripeTerminalReadersResponse) {}
|
|
411
400
|
rpc deleteStripeTerminalReader(DeleteStripeTerminalReaderRequest) returns (DeleteStripeTerminalReaderResponse) {}
|
|
412
401
|
rpc createStripeTerminalConnectionToken(CreateStripeTerminalConnectionTokenRequest) returns (CreateStripeTerminalConnectionTokenResponse) {}
|
|
413
|
-
rpc
|
|
402
|
+
rpc stripePublishKey(RetrieveStripeChargeRequest) returns (StripePublishKeyByResponse) {}
|
|
403
|
+
|
|
414
404
|
}
|