@sellout/models 0.0.223 → 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.
@@ -105564,6 +105564,193 @@ $root.CreateStripeSetupIntentResponse = (function() {
105564
105564
  return CreateStripeSetupIntentResponse;
105565
105565
  })();
105566
105566
 
105567
+ $root.StripePublishKeyByResponse = (function() {
105568
+
105569
+ /**
105570
+ * Properties of a StripePublishKeyByResponse.
105571
+ * @exports IStripePublishKeyByResponse
105572
+ * @interface IStripePublishKeyByResponse
105573
+ * @property {string|null} [publicStripeKey] StripePublishKeyByResponse publicStripeKey
105574
+ */
105575
+
105576
+ /**
105577
+ * Constructs a new StripePublishKeyByResponse.
105578
+ * @exports StripePublishKeyByResponse
105579
+ * @classdesc Represents a StripePublishKeyByResponse.
105580
+ * @implements IStripePublishKeyByResponse
105581
+ * @constructor
105582
+ * @param {IStripePublishKeyByResponse=} [properties] Properties to set
105583
+ */
105584
+ function StripePublishKeyByResponse(properties) {
105585
+ if (properties)
105586
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
105587
+ if (properties[keys[i]] != null)
105588
+ this[keys[i]] = properties[keys[i]];
105589
+ }
105590
+
105591
+ /**
105592
+ * StripePublishKeyByResponse publicStripeKey.
105593
+ * @member {string} publicStripeKey
105594
+ * @memberof StripePublishKeyByResponse
105595
+ * @instance
105596
+ */
105597
+ StripePublishKeyByResponse.prototype.publicStripeKey = "";
105598
+
105599
+ /**
105600
+ * Creates a new StripePublishKeyByResponse instance using the specified properties.
105601
+ * @function create
105602
+ * @memberof StripePublishKeyByResponse
105603
+ * @static
105604
+ * @param {IStripePublishKeyByResponse=} [properties] Properties to set
105605
+ * @returns {StripePublishKeyByResponse} StripePublishKeyByResponse instance
105606
+ */
105607
+ StripePublishKeyByResponse.create = function create(properties) {
105608
+ return new StripePublishKeyByResponse(properties);
105609
+ };
105610
+
105611
+ /**
105612
+ * Encodes the specified StripePublishKeyByResponse message. Does not implicitly {@link StripePublishKeyByResponse.verify|verify} messages.
105613
+ * @function encode
105614
+ * @memberof StripePublishKeyByResponse
105615
+ * @static
105616
+ * @param {IStripePublishKeyByResponse} message StripePublishKeyByResponse message or plain object to encode
105617
+ * @param {$protobuf.Writer} [writer] Writer to encode to
105618
+ * @returns {$protobuf.Writer} Writer
105619
+ */
105620
+ StripePublishKeyByResponse.encode = function encode(message, writer) {
105621
+ if (!writer)
105622
+ writer = $Writer.create();
105623
+ if (message.publicStripeKey != null && Object.hasOwnProperty.call(message, "publicStripeKey"))
105624
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.publicStripeKey);
105625
+ return writer;
105626
+ };
105627
+
105628
+ /**
105629
+ * Encodes the specified StripePublishKeyByResponse message, length delimited. Does not implicitly {@link StripePublishKeyByResponse.verify|verify} messages.
105630
+ * @function encodeDelimited
105631
+ * @memberof StripePublishKeyByResponse
105632
+ * @static
105633
+ * @param {IStripePublishKeyByResponse} message StripePublishKeyByResponse message or plain object to encode
105634
+ * @param {$protobuf.Writer} [writer] Writer to encode to
105635
+ * @returns {$protobuf.Writer} Writer
105636
+ */
105637
+ StripePublishKeyByResponse.encodeDelimited = function encodeDelimited(message, writer) {
105638
+ return this.encode(message, writer).ldelim();
105639
+ };
105640
+
105641
+ /**
105642
+ * Decodes a StripePublishKeyByResponse message from the specified reader or buffer.
105643
+ * @function decode
105644
+ * @memberof StripePublishKeyByResponse
105645
+ * @static
105646
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
105647
+ * @param {number} [length] Message length if known beforehand
105648
+ * @returns {StripePublishKeyByResponse} StripePublishKeyByResponse
105649
+ * @throws {Error} If the payload is not a reader or valid buffer
105650
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
105651
+ */
105652
+ StripePublishKeyByResponse.decode = function decode(reader, length) {
105653
+ if (!(reader instanceof $Reader))
105654
+ reader = $Reader.create(reader);
105655
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StripePublishKeyByResponse();
105656
+ while (reader.pos < end) {
105657
+ var tag = reader.uint32();
105658
+ switch (tag >>> 3) {
105659
+ case 0:
105660
+ message.publicStripeKey = reader.string();
105661
+ break;
105662
+ default:
105663
+ reader.skipType(tag & 7);
105664
+ break;
105665
+ }
105666
+ }
105667
+ return message;
105668
+ };
105669
+
105670
+ /**
105671
+ * Decodes a StripePublishKeyByResponse message from the specified reader or buffer, length delimited.
105672
+ * @function decodeDelimited
105673
+ * @memberof StripePublishKeyByResponse
105674
+ * @static
105675
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
105676
+ * @returns {StripePublishKeyByResponse} StripePublishKeyByResponse
105677
+ * @throws {Error} If the payload is not a reader or valid buffer
105678
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
105679
+ */
105680
+ StripePublishKeyByResponse.decodeDelimited = function decodeDelimited(reader) {
105681
+ if (!(reader instanceof $Reader))
105682
+ reader = new $Reader(reader);
105683
+ return this.decode(reader, reader.uint32());
105684
+ };
105685
+
105686
+ /**
105687
+ * Verifies a StripePublishKeyByResponse message.
105688
+ * @function verify
105689
+ * @memberof StripePublishKeyByResponse
105690
+ * @static
105691
+ * @param {Object.<string,*>} message Plain object to verify
105692
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
105693
+ */
105694
+ StripePublishKeyByResponse.verify = function verify(message) {
105695
+ if (typeof message !== "object" || message === null)
105696
+ return "object expected";
105697
+ if (message.publicStripeKey != null && message.hasOwnProperty("publicStripeKey"))
105698
+ if (!$util.isString(message.publicStripeKey))
105699
+ return "publicStripeKey: string expected";
105700
+ return null;
105701
+ };
105702
+
105703
+ /**
105704
+ * Creates a StripePublishKeyByResponse message from a plain object. Also converts values to their respective internal types.
105705
+ * @function fromObject
105706
+ * @memberof StripePublishKeyByResponse
105707
+ * @static
105708
+ * @param {Object.<string,*>} object Plain object
105709
+ * @returns {StripePublishKeyByResponse} StripePublishKeyByResponse
105710
+ */
105711
+ StripePublishKeyByResponse.fromObject = function fromObject(object) {
105712
+ if (object instanceof $root.StripePublishKeyByResponse)
105713
+ return object;
105714
+ var message = new $root.StripePublishKeyByResponse();
105715
+ if (object.publicStripeKey != null)
105716
+ message.publicStripeKey = String(object.publicStripeKey);
105717
+ return message;
105718
+ };
105719
+
105720
+ /**
105721
+ * Creates a plain object from a StripePublishKeyByResponse message. Also converts values to other types if specified.
105722
+ * @function toObject
105723
+ * @memberof StripePublishKeyByResponse
105724
+ * @static
105725
+ * @param {StripePublishKeyByResponse} message StripePublishKeyByResponse
105726
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
105727
+ * @returns {Object.<string,*>} Plain object
105728
+ */
105729
+ StripePublishKeyByResponse.toObject = function toObject(message, options) {
105730
+ if (!options)
105731
+ options = {};
105732
+ var object = {};
105733
+ if (options.defaults)
105734
+ object.publicStripeKey = "";
105735
+ if (message.publicStripeKey != null && message.hasOwnProperty("publicStripeKey"))
105736
+ object.publicStripeKey = message.publicStripeKey;
105737
+ return object;
105738
+ };
105739
+
105740
+ /**
105741
+ * Converts this StripePublishKeyByResponse to JSON.
105742
+ * @function toJSON
105743
+ * @memberof StripePublishKeyByResponse
105744
+ * @instance
105745
+ * @returns {Object.<string,*>} JSON object
105746
+ */
105747
+ StripePublishKeyByResponse.prototype.toJSON = function toJSON() {
105748
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
105749
+ };
105750
+
105751
+ return StripePublishKeyByResponse;
105752
+ })();
105753
+
105567
105754
  $root.AttachStripePaymentMethodRequest = (function() {
105568
105755
 
105569
105756
  /**
@@ -111626,6 +111813,39 @@ $root.StripeService = (function() {
111626
111813
  * @variation 2
111627
111814
  */
111628
111815
 
111816
+ /**
111817
+ * Callback as used by {@link StripeService#stripePublishKey}.
111818
+ * @memberof StripeService
111819
+ * @typedef stripePublishKeyCallback
111820
+ * @type {function}
111821
+ * @param {Error|null} error Error, if any
111822
+ * @param {StripePublishKeyByResponse} [response] StripePublishKeyByResponse
111823
+ */
111824
+
111825
+ /**
111826
+ * Calls stripePublishKey.
111827
+ * @function stripePublishKey
111828
+ * @memberof StripeService
111829
+ * @instance
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
111832
+ * @returns {undefined}
111833
+ * @variation 1
111834
+ */
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" });
111838
+
111839
+ /**
111840
+ * Calls stripePublishKey.
111841
+ * @function stripePublishKey
111842
+ * @memberof StripeService
111843
+ * @instance
111844
+ * @param {IRetrieveStripeChargeRequest} request RetrieveStripeChargeRequest message or plain object
111845
+ * @returns {Promise<StripePublishKeyByResponse>} Promise
111846
+ * @variation 2
111847
+ */
111848
+
111629
111849
  return StripeService;
111630
111850
  })();
111631
111851
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.223",
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.223",
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": "57bf54edae312c4bfb90a4d7efdfd15a002d5ef4"
34
+ "gitHead": "9a218e918592180fc40b6cf2aa8e930d1bb5c73e"
35
35
  }
@@ -223,6 +223,11 @@ message CreateStripeSetupIntentResponse {
223
223
  string clientSecret = 2;
224
224
  }
225
225
 
226
+ message StripePublishKeyByResponse {
227
+ string publicStripeKey = 0;
228
+ }
229
+
230
+
226
231
  message AttachStripePaymentMethodRequest {
227
232
  string spanContext = 0;
228
233
  string userId = 1;
@@ -394,5 +399,6 @@ service StripeService {
394
399
  rpc listStripeTerminalReaders(ListStripeTerminalReadersRequest) returns (ListStripeTerminalReadersResponse) {}
395
400
  rpc deleteStripeTerminalReader(DeleteStripeTerminalReaderRequest) returns (DeleteStripeTerminalReaderResponse) {}
396
401
  rpc createStripeTerminalConnectionToken(CreateStripeTerminalConnectionTokenRequest) returns (CreateStripeTerminalConnectionTokenResponse) {}
397
-
402
+ rpc stripePublishKey(RetrieveStripeChargeRequest) returns (StripePublishKeyByResponse) {}
403
+
398
404
  }