@sellout/models 0.0.428 → 0.0.429

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.
@@ -54616,6 +54616,737 @@ $root.FindMobileCheckInOrderResponse = (function() {
54616
54616
  return FindMobileCheckInOrderResponse;
54617
54617
  })();
54618
54618
 
54619
+ $root.ProcessStripeDisputeRequest = (function() {
54620
+
54621
+ /**
54622
+ * Properties of a ProcessStripeDisputeRequest.
54623
+ * @exports IProcessStripeDisputeRequest
54624
+ * @interface IProcessStripeDisputeRequest
54625
+ * @property {string|null} [spanContext] ProcessStripeDisputeRequest spanContext
54626
+ * @property {string|null} [eventId] ProcessStripeDisputeRequest eventId
54627
+ * @property {string|null} [eventType] ProcessStripeDisputeRequest eventType
54628
+ * @property {string|null} [stripeAccountId] ProcessStripeDisputeRequest stripeAccountId
54629
+ * @property {string|null} [disputeId] ProcessStripeDisputeRequest disputeId
54630
+ * @property {string|null} [chargeId] ProcessStripeDisputeRequest chargeId
54631
+ * @property {string|null} [paymentIntentId] ProcessStripeDisputeRequest paymentIntentId
54632
+ * @property {number|null} [amount] ProcessStripeDisputeRequest amount
54633
+ * @property {string|null} [currency] ProcessStripeDisputeRequest currency
54634
+ * @property {string|null} [reason] ProcessStripeDisputeRequest reason
54635
+ * @property {string|null} [status] ProcessStripeDisputeRequest status
54636
+ * @property {number|null} [dueBy] ProcessStripeDisputeRequest dueBy
54637
+ * @property {boolean|null} [livemode] ProcessStripeDisputeRequest livemode
54638
+ */
54639
+
54640
+ /**
54641
+ * Constructs a new ProcessStripeDisputeRequest.
54642
+ * @exports ProcessStripeDisputeRequest
54643
+ * @classdesc Represents a ProcessStripeDisputeRequest.
54644
+ * @implements IProcessStripeDisputeRequest
54645
+ * @constructor
54646
+ * @param {IProcessStripeDisputeRequest=} [properties] Properties to set
54647
+ */
54648
+ function ProcessStripeDisputeRequest(properties) {
54649
+ if (properties)
54650
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
54651
+ if (properties[keys[i]] != null)
54652
+ this[keys[i]] = properties[keys[i]];
54653
+ }
54654
+
54655
+ /**
54656
+ * ProcessStripeDisputeRequest spanContext.
54657
+ * @member {string} spanContext
54658
+ * @memberof ProcessStripeDisputeRequest
54659
+ * @instance
54660
+ */
54661
+ ProcessStripeDisputeRequest.prototype.spanContext = "";
54662
+
54663
+ /**
54664
+ * ProcessStripeDisputeRequest eventId.
54665
+ * @member {string} eventId
54666
+ * @memberof ProcessStripeDisputeRequest
54667
+ * @instance
54668
+ */
54669
+ ProcessStripeDisputeRequest.prototype.eventId = "";
54670
+
54671
+ /**
54672
+ * ProcessStripeDisputeRequest eventType.
54673
+ * @member {string} eventType
54674
+ * @memberof ProcessStripeDisputeRequest
54675
+ * @instance
54676
+ */
54677
+ ProcessStripeDisputeRequest.prototype.eventType = "";
54678
+
54679
+ /**
54680
+ * ProcessStripeDisputeRequest stripeAccountId.
54681
+ * @member {string} stripeAccountId
54682
+ * @memberof ProcessStripeDisputeRequest
54683
+ * @instance
54684
+ */
54685
+ ProcessStripeDisputeRequest.prototype.stripeAccountId = "";
54686
+
54687
+ /**
54688
+ * ProcessStripeDisputeRequest disputeId.
54689
+ * @member {string} disputeId
54690
+ * @memberof ProcessStripeDisputeRequest
54691
+ * @instance
54692
+ */
54693
+ ProcessStripeDisputeRequest.prototype.disputeId = "";
54694
+
54695
+ /**
54696
+ * ProcessStripeDisputeRequest chargeId.
54697
+ * @member {string} chargeId
54698
+ * @memberof ProcessStripeDisputeRequest
54699
+ * @instance
54700
+ */
54701
+ ProcessStripeDisputeRequest.prototype.chargeId = "";
54702
+
54703
+ /**
54704
+ * ProcessStripeDisputeRequest paymentIntentId.
54705
+ * @member {string} paymentIntentId
54706
+ * @memberof ProcessStripeDisputeRequest
54707
+ * @instance
54708
+ */
54709
+ ProcessStripeDisputeRequest.prototype.paymentIntentId = "";
54710
+
54711
+ /**
54712
+ * ProcessStripeDisputeRequest amount.
54713
+ * @member {number} amount
54714
+ * @memberof ProcessStripeDisputeRequest
54715
+ * @instance
54716
+ */
54717
+ ProcessStripeDisputeRequest.prototype.amount = 0;
54718
+
54719
+ /**
54720
+ * ProcessStripeDisputeRequest currency.
54721
+ * @member {string} currency
54722
+ * @memberof ProcessStripeDisputeRequest
54723
+ * @instance
54724
+ */
54725
+ ProcessStripeDisputeRequest.prototype.currency = "";
54726
+
54727
+ /**
54728
+ * ProcessStripeDisputeRequest reason.
54729
+ * @member {string} reason
54730
+ * @memberof ProcessStripeDisputeRequest
54731
+ * @instance
54732
+ */
54733
+ ProcessStripeDisputeRequest.prototype.reason = "";
54734
+
54735
+ /**
54736
+ * ProcessStripeDisputeRequest status.
54737
+ * @member {string} status
54738
+ * @memberof ProcessStripeDisputeRequest
54739
+ * @instance
54740
+ */
54741
+ ProcessStripeDisputeRequest.prototype.status = "";
54742
+
54743
+ /**
54744
+ * ProcessStripeDisputeRequest dueBy.
54745
+ * @member {number} dueBy
54746
+ * @memberof ProcessStripeDisputeRequest
54747
+ * @instance
54748
+ */
54749
+ ProcessStripeDisputeRequest.prototype.dueBy = 0;
54750
+
54751
+ /**
54752
+ * ProcessStripeDisputeRequest livemode.
54753
+ * @member {boolean} livemode
54754
+ * @memberof ProcessStripeDisputeRequest
54755
+ * @instance
54756
+ */
54757
+ ProcessStripeDisputeRequest.prototype.livemode = false;
54758
+
54759
+ /**
54760
+ * Creates a new ProcessStripeDisputeRequest instance using the specified properties.
54761
+ * @function create
54762
+ * @memberof ProcessStripeDisputeRequest
54763
+ * @static
54764
+ * @param {IProcessStripeDisputeRequest=} [properties] Properties to set
54765
+ * @returns {ProcessStripeDisputeRequest} ProcessStripeDisputeRequest instance
54766
+ */
54767
+ ProcessStripeDisputeRequest.create = function create(properties) {
54768
+ return new ProcessStripeDisputeRequest(properties);
54769
+ };
54770
+
54771
+ /**
54772
+ * Encodes the specified ProcessStripeDisputeRequest message. Does not implicitly {@link ProcessStripeDisputeRequest.verify|verify} messages.
54773
+ * @function encode
54774
+ * @memberof ProcessStripeDisputeRequest
54775
+ * @static
54776
+ * @param {IProcessStripeDisputeRequest} message ProcessStripeDisputeRequest message or plain object to encode
54777
+ * @param {$protobuf.Writer} [writer] Writer to encode to
54778
+ * @returns {$protobuf.Writer} Writer
54779
+ */
54780
+ ProcessStripeDisputeRequest.encode = function encode(message, writer) {
54781
+ if (!writer)
54782
+ writer = $Writer.create();
54783
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
54784
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
54785
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
54786
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventId);
54787
+ if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType"))
54788
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventType);
54789
+ if (message.stripeAccountId != null && Object.hasOwnProperty.call(message, "stripeAccountId"))
54790
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.stripeAccountId);
54791
+ if (message.disputeId != null && Object.hasOwnProperty.call(message, "disputeId"))
54792
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.disputeId);
54793
+ if (message.chargeId != null && Object.hasOwnProperty.call(message, "chargeId"))
54794
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.chargeId);
54795
+ if (message.paymentIntentId != null && Object.hasOwnProperty.call(message, "paymentIntentId"))
54796
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.paymentIntentId);
54797
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
54798
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.amount);
54799
+ if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
54800
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.currency);
54801
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
54802
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.reason);
54803
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
54804
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.status);
54805
+ if (message.dueBy != null && Object.hasOwnProperty.call(message, "dueBy"))
54806
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.dueBy);
54807
+ if (message.livemode != null && Object.hasOwnProperty.call(message, "livemode"))
54808
+ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.livemode);
54809
+ return writer;
54810
+ };
54811
+
54812
+ /**
54813
+ * Encodes the specified ProcessStripeDisputeRequest message, length delimited. Does not implicitly {@link ProcessStripeDisputeRequest.verify|verify} messages.
54814
+ * @function encodeDelimited
54815
+ * @memberof ProcessStripeDisputeRequest
54816
+ * @static
54817
+ * @param {IProcessStripeDisputeRequest} message ProcessStripeDisputeRequest message or plain object to encode
54818
+ * @param {$protobuf.Writer} [writer] Writer to encode to
54819
+ * @returns {$protobuf.Writer} Writer
54820
+ */
54821
+ ProcessStripeDisputeRequest.encodeDelimited = function encodeDelimited(message, writer) {
54822
+ return this.encode(message, writer).ldelim();
54823
+ };
54824
+
54825
+ /**
54826
+ * Decodes a ProcessStripeDisputeRequest message from the specified reader or buffer.
54827
+ * @function decode
54828
+ * @memberof ProcessStripeDisputeRequest
54829
+ * @static
54830
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
54831
+ * @param {number} [length] Message length if known beforehand
54832
+ * @returns {ProcessStripeDisputeRequest} ProcessStripeDisputeRequest
54833
+ * @throws {Error} If the payload is not a reader or valid buffer
54834
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54835
+ */
54836
+ ProcessStripeDisputeRequest.decode = function decode(reader, length) {
54837
+ if (!(reader instanceof $Reader))
54838
+ reader = $Reader.create(reader);
54839
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ProcessStripeDisputeRequest();
54840
+ while (reader.pos < end) {
54841
+ var tag = reader.uint32();
54842
+ switch (tag >>> 3) {
54843
+ case 0:
54844
+ message.spanContext = reader.string();
54845
+ break;
54846
+ case 1:
54847
+ message.eventId = reader.string();
54848
+ break;
54849
+ case 2:
54850
+ message.eventType = reader.string();
54851
+ break;
54852
+ case 3:
54853
+ message.stripeAccountId = reader.string();
54854
+ break;
54855
+ case 4:
54856
+ message.disputeId = reader.string();
54857
+ break;
54858
+ case 5:
54859
+ message.chargeId = reader.string();
54860
+ break;
54861
+ case 6:
54862
+ message.paymentIntentId = reader.string();
54863
+ break;
54864
+ case 7:
54865
+ message.amount = reader.int32();
54866
+ break;
54867
+ case 8:
54868
+ message.currency = reader.string();
54869
+ break;
54870
+ case 9:
54871
+ message.reason = reader.string();
54872
+ break;
54873
+ case 10:
54874
+ message.status = reader.string();
54875
+ break;
54876
+ case 11:
54877
+ message.dueBy = reader.int32();
54878
+ break;
54879
+ case 12:
54880
+ message.livemode = reader.bool();
54881
+ break;
54882
+ default:
54883
+ reader.skipType(tag & 7);
54884
+ break;
54885
+ }
54886
+ }
54887
+ return message;
54888
+ };
54889
+
54890
+ /**
54891
+ * Decodes a ProcessStripeDisputeRequest message from the specified reader or buffer, length delimited.
54892
+ * @function decodeDelimited
54893
+ * @memberof ProcessStripeDisputeRequest
54894
+ * @static
54895
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
54896
+ * @returns {ProcessStripeDisputeRequest} ProcessStripeDisputeRequest
54897
+ * @throws {Error} If the payload is not a reader or valid buffer
54898
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54899
+ */
54900
+ ProcessStripeDisputeRequest.decodeDelimited = function decodeDelimited(reader) {
54901
+ if (!(reader instanceof $Reader))
54902
+ reader = new $Reader(reader);
54903
+ return this.decode(reader, reader.uint32());
54904
+ };
54905
+
54906
+ /**
54907
+ * Verifies a ProcessStripeDisputeRequest message.
54908
+ * @function verify
54909
+ * @memberof ProcessStripeDisputeRequest
54910
+ * @static
54911
+ * @param {Object.<string,*>} message Plain object to verify
54912
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
54913
+ */
54914
+ ProcessStripeDisputeRequest.verify = function verify(message) {
54915
+ if (typeof message !== "object" || message === null)
54916
+ return "object expected";
54917
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
54918
+ if (!$util.isString(message.spanContext))
54919
+ return "spanContext: string expected";
54920
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
54921
+ if (!$util.isString(message.eventId))
54922
+ return "eventId: string expected";
54923
+ if (message.eventType != null && message.hasOwnProperty("eventType"))
54924
+ if (!$util.isString(message.eventType))
54925
+ return "eventType: string expected";
54926
+ if (message.stripeAccountId != null && message.hasOwnProperty("stripeAccountId"))
54927
+ if (!$util.isString(message.stripeAccountId))
54928
+ return "stripeAccountId: string expected";
54929
+ if (message.disputeId != null && message.hasOwnProperty("disputeId"))
54930
+ if (!$util.isString(message.disputeId))
54931
+ return "disputeId: string expected";
54932
+ if (message.chargeId != null && message.hasOwnProperty("chargeId"))
54933
+ if (!$util.isString(message.chargeId))
54934
+ return "chargeId: string expected";
54935
+ if (message.paymentIntentId != null && message.hasOwnProperty("paymentIntentId"))
54936
+ if (!$util.isString(message.paymentIntentId))
54937
+ return "paymentIntentId: string expected";
54938
+ if (message.amount != null && message.hasOwnProperty("amount"))
54939
+ if (!$util.isInteger(message.amount))
54940
+ return "amount: integer expected";
54941
+ if (message.currency != null && message.hasOwnProperty("currency"))
54942
+ if (!$util.isString(message.currency))
54943
+ return "currency: string expected";
54944
+ if (message.reason != null && message.hasOwnProperty("reason"))
54945
+ if (!$util.isString(message.reason))
54946
+ return "reason: string expected";
54947
+ if (message.status != null && message.hasOwnProperty("status"))
54948
+ if (!$util.isString(message.status))
54949
+ return "status: string expected";
54950
+ if (message.dueBy != null && message.hasOwnProperty("dueBy"))
54951
+ if (!$util.isInteger(message.dueBy))
54952
+ return "dueBy: integer expected";
54953
+ if (message.livemode != null && message.hasOwnProperty("livemode"))
54954
+ if (typeof message.livemode !== "boolean")
54955
+ return "livemode: boolean expected";
54956
+ return null;
54957
+ };
54958
+
54959
+ /**
54960
+ * Creates a ProcessStripeDisputeRequest message from a plain object. Also converts values to their respective internal types.
54961
+ * @function fromObject
54962
+ * @memberof ProcessStripeDisputeRequest
54963
+ * @static
54964
+ * @param {Object.<string,*>} object Plain object
54965
+ * @returns {ProcessStripeDisputeRequest} ProcessStripeDisputeRequest
54966
+ */
54967
+ ProcessStripeDisputeRequest.fromObject = function fromObject(object) {
54968
+ if (object instanceof $root.ProcessStripeDisputeRequest)
54969
+ return object;
54970
+ var message = new $root.ProcessStripeDisputeRequest();
54971
+ if (object.spanContext != null)
54972
+ message.spanContext = String(object.spanContext);
54973
+ if (object.eventId != null)
54974
+ message.eventId = String(object.eventId);
54975
+ if (object.eventType != null)
54976
+ message.eventType = String(object.eventType);
54977
+ if (object.stripeAccountId != null)
54978
+ message.stripeAccountId = String(object.stripeAccountId);
54979
+ if (object.disputeId != null)
54980
+ message.disputeId = String(object.disputeId);
54981
+ if (object.chargeId != null)
54982
+ message.chargeId = String(object.chargeId);
54983
+ if (object.paymentIntentId != null)
54984
+ message.paymentIntentId = String(object.paymentIntentId);
54985
+ if (object.amount != null)
54986
+ message.amount = object.amount | 0;
54987
+ if (object.currency != null)
54988
+ message.currency = String(object.currency);
54989
+ if (object.reason != null)
54990
+ message.reason = String(object.reason);
54991
+ if (object.status != null)
54992
+ message.status = String(object.status);
54993
+ if (object.dueBy != null)
54994
+ message.dueBy = object.dueBy | 0;
54995
+ if (object.livemode != null)
54996
+ message.livemode = Boolean(object.livemode);
54997
+ return message;
54998
+ };
54999
+
55000
+ /**
55001
+ * Creates a plain object from a ProcessStripeDisputeRequest message. Also converts values to other types if specified.
55002
+ * @function toObject
55003
+ * @memberof ProcessStripeDisputeRequest
55004
+ * @static
55005
+ * @param {ProcessStripeDisputeRequest} message ProcessStripeDisputeRequest
55006
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55007
+ * @returns {Object.<string,*>} Plain object
55008
+ */
55009
+ ProcessStripeDisputeRequest.toObject = function toObject(message, options) {
55010
+ if (!options)
55011
+ options = {};
55012
+ var object = {};
55013
+ if (options.defaults) {
55014
+ object.spanContext = "";
55015
+ object.eventId = "";
55016
+ object.eventType = "";
55017
+ object.stripeAccountId = "";
55018
+ object.disputeId = "";
55019
+ object.chargeId = "";
55020
+ object.paymentIntentId = "";
55021
+ object.amount = 0;
55022
+ object.currency = "";
55023
+ object.reason = "";
55024
+ object.status = "";
55025
+ object.dueBy = 0;
55026
+ object.livemode = false;
55027
+ }
55028
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
55029
+ object.spanContext = message.spanContext;
55030
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
55031
+ object.eventId = message.eventId;
55032
+ if (message.eventType != null && message.hasOwnProperty("eventType"))
55033
+ object.eventType = message.eventType;
55034
+ if (message.stripeAccountId != null && message.hasOwnProperty("stripeAccountId"))
55035
+ object.stripeAccountId = message.stripeAccountId;
55036
+ if (message.disputeId != null && message.hasOwnProperty("disputeId"))
55037
+ object.disputeId = message.disputeId;
55038
+ if (message.chargeId != null && message.hasOwnProperty("chargeId"))
55039
+ object.chargeId = message.chargeId;
55040
+ if (message.paymentIntentId != null && message.hasOwnProperty("paymentIntentId"))
55041
+ object.paymentIntentId = message.paymentIntentId;
55042
+ if (message.amount != null && message.hasOwnProperty("amount"))
55043
+ object.amount = message.amount;
55044
+ if (message.currency != null && message.hasOwnProperty("currency"))
55045
+ object.currency = message.currency;
55046
+ if (message.reason != null && message.hasOwnProperty("reason"))
55047
+ object.reason = message.reason;
55048
+ if (message.status != null && message.hasOwnProperty("status"))
55049
+ object.status = message.status;
55050
+ if (message.dueBy != null && message.hasOwnProperty("dueBy"))
55051
+ object.dueBy = message.dueBy;
55052
+ if (message.livemode != null && message.hasOwnProperty("livemode"))
55053
+ object.livemode = message.livemode;
55054
+ return object;
55055
+ };
55056
+
55057
+ /**
55058
+ * Converts this ProcessStripeDisputeRequest to JSON.
55059
+ * @function toJSON
55060
+ * @memberof ProcessStripeDisputeRequest
55061
+ * @instance
55062
+ * @returns {Object.<string,*>} JSON object
55063
+ */
55064
+ ProcessStripeDisputeRequest.prototype.toJSON = function toJSON() {
55065
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55066
+ };
55067
+
55068
+ return ProcessStripeDisputeRequest;
55069
+ })();
55070
+
55071
+ $root.ProcessStripeDisputeResponse = (function() {
55072
+
55073
+ /**
55074
+ * Properties of a ProcessStripeDisputeResponse.
55075
+ * @exports IProcessStripeDisputeResponse
55076
+ * @interface IProcessStripeDisputeResponse
55077
+ * @property {StatusCode|null} [status] ProcessStripeDisputeResponse status
55078
+ * @property {Array.<IError>|null} [errors] ProcessStripeDisputeResponse errors
55079
+ */
55080
+
55081
+ /**
55082
+ * Constructs a new ProcessStripeDisputeResponse.
55083
+ * @exports ProcessStripeDisputeResponse
55084
+ * @classdesc Represents a ProcessStripeDisputeResponse.
55085
+ * @implements IProcessStripeDisputeResponse
55086
+ * @constructor
55087
+ * @param {IProcessStripeDisputeResponse=} [properties] Properties to set
55088
+ */
55089
+ function ProcessStripeDisputeResponse(properties) {
55090
+ this.errors = [];
55091
+ if (properties)
55092
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55093
+ if (properties[keys[i]] != null)
55094
+ this[keys[i]] = properties[keys[i]];
55095
+ }
55096
+
55097
+ /**
55098
+ * ProcessStripeDisputeResponse status.
55099
+ * @member {StatusCode} status
55100
+ * @memberof ProcessStripeDisputeResponse
55101
+ * @instance
55102
+ */
55103
+ ProcessStripeDisputeResponse.prototype.status = 0;
55104
+
55105
+ /**
55106
+ * ProcessStripeDisputeResponse errors.
55107
+ * @member {Array.<IError>} errors
55108
+ * @memberof ProcessStripeDisputeResponse
55109
+ * @instance
55110
+ */
55111
+ ProcessStripeDisputeResponse.prototype.errors = $util.emptyArray;
55112
+
55113
+ /**
55114
+ * Creates a new ProcessStripeDisputeResponse instance using the specified properties.
55115
+ * @function create
55116
+ * @memberof ProcessStripeDisputeResponse
55117
+ * @static
55118
+ * @param {IProcessStripeDisputeResponse=} [properties] Properties to set
55119
+ * @returns {ProcessStripeDisputeResponse} ProcessStripeDisputeResponse instance
55120
+ */
55121
+ ProcessStripeDisputeResponse.create = function create(properties) {
55122
+ return new ProcessStripeDisputeResponse(properties);
55123
+ };
55124
+
55125
+ /**
55126
+ * Encodes the specified ProcessStripeDisputeResponse message. Does not implicitly {@link ProcessStripeDisputeResponse.verify|verify} messages.
55127
+ * @function encode
55128
+ * @memberof ProcessStripeDisputeResponse
55129
+ * @static
55130
+ * @param {IProcessStripeDisputeResponse} message ProcessStripeDisputeResponse message or plain object to encode
55131
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55132
+ * @returns {$protobuf.Writer} Writer
55133
+ */
55134
+ ProcessStripeDisputeResponse.encode = function encode(message, writer) {
55135
+ if (!writer)
55136
+ writer = $Writer.create();
55137
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
55138
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
55139
+ if (message.errors != null && message.errors.length)
55140
+ for (var i = 0; i < message.errors.length; ++i)
55141
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
55142
+ return writer;
55143
+ };
55144
+
55145
+ /**
55146
+ * Encodes the specified ProcessStripeDisputeResponse message, length delimited. Does not implicitly {@link ProcessStripeDisputeResponse.verify|verify} messages.
55147
+ * @function encodeDelimited
55148
+ * @memberof ProcessStripeDisputeResponse
55149
+ * @static
55150
+ * @param {IProcessStripeDisputeResponse} message ProcessStripeDisputeResponse message or plain object to encode
55151
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55152
+ * @returns {$protobuf.Writer} Writer
55153
+ */
55154
+ ProcessStripeDisputeResponse.encodeDelimited = function encodeDelimited(message, writer) {
55155
+ return this.encode(message, writer).ldelim();
55156
+ };
55157
+
55158
+ /**
55159
+ * Decodes a ProcessStripeDisputeResponse message from the specified reader or buffer.
55160
+ * @function decode
55161
+ * @memberof ProcessStripeDisputeResponse
55162
+ * @static
55163
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55164
+ * @param {number} [length] Message length if known beforehand
55165
+ * @returns {ProcessStripeDisputeResponse} ProcessStripeDisputeResponse
55166
+ * @throws {Error} If the payload is not a reader or valid buffer
55167
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55168
+ */
55169
+ ProcessStripeDisputeResponse.decode = function decode(reader, length) {
55170
+ if (!(reader instanceof $Reader))
55171
+ reader = $Reader.create(reader);
55172
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ProcessStripeDisputeResponse();
55173
+ while (reader.pos < end) {
55174
+ var tag = reader.uint32();
55175
+ switch (tag >>> 3) {
55176
+ case 0:
55177
+ message.status = reader.int32();
55178
+ break;
55179
+ case 1:
55180
+ if (!(message.errors && message.errors.length))
55181
+ message.errors = [];
55182
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
55183
+ break;
55184
+ default:
55185
+ reader.skipType(tag & 7);
55186
+ break;
55187
+ }
55188
+ }
55189
+ return message;
55190
+ };
55191
+
55192
+ /**
55193
+ * Decodes a ProcessStripeDisputeResponse message from the specified reader or buffer, length delimited.
55194
+ * @function decodeDelimited
55195
+ * @memberof ProcessStripeDisputeResponse
55196
+ * @static
55197
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55198
+ * @returns {ProcessStripeDisputeResponse} ProcessStripeDisputeResponse
55199
+ * @throws {Error} If the payload is not a reader or valid buffer
55200
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55201
+ */
55202
+ ProcessStripeDisputeResponse.decodeDelimited = function decodeDelimited(reader) {
55203
+ if (!(reader instanceof $Reader))
55204
+ reader = new $Reader(reader);
55205
+ return this.decode(reader, reader.uint32());
55206
+ };
55207
+
55208
+ /**
55209
+ * Verifies a ProcessStripeDisputeResponse message.
55210
+ * @function verify
55211
+ * @memberof ProcessStripeDisputeResponse
55212
+ * @static
55213
+ * @param {Object.<string,*>} message Plain object to verify
55214
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55215
+ */
55216
+ ProcessStripeDisputeResponse.verify = function verify(message) {
55217
+ if (typeof message !== "object" || message === null)
55218
+ return "object expected";
55219
+ if (message.status != null && message.hasOwnProperty("status"))
55220
+ switch (message.status) {
55221
+ default:
55222
+ return "status: enum value expected";
55223
+ case 0:
55224
+ case 200:
55225
+ case 400:
55226
+ case 401:
55227
+ case 403:
55228
+ case 422:
55229
+ case 404:
55230
+ case 500:
55231
+ case 504:
55232
+ break;
55233
+ }
55234
+ if (message.errors != null && message.hasOwnProperty("errors")) {
55235
+ if (!Array.isArray(message.errors))
55236
+ return "errors: array expected";
55237
+ for (var i = 0; i < message.errors.length; ++i) {
55238
+ var error = $root.Error.verify(message.errors[i]);
55239
+ if (error)
55240
+ return "errors." + error;
55241
+ }
55242
+ }
55243
+ return null;
55244
+ };
55245
+
55246
+ /**
55247
+ * Creates a ProcessStripeDisputeResponse message from a plain object. Also converts values to their respective internal types.
55248
+ * @function fromObject
55249
+ * @memberof ProcessStripeDisputeResponse
55250
+ * @static
55251
+ * @param {Object.<string,*>} object Plain object
55252
+ * @returns {ProcessStripeDisputeResponse} ProcessStripeDisputeResponse
55253
+ */
55254
+ ProcessStripeDisputeResponse.fromObject = function fromObject(object) {
55255
+ if (object instanceof $root.ProcessStripeDisputeResponse)
55256
+ return object;
55257
+ var message = new $root.ProcessStripeDisputeResponse();
55258
+ switch (object.status) {
55259
+ case "UNKNOWN_CODE":
55260
+ case 0:
55261
+ message.status = 0;
55262
+ break;
55263
+ case "OK":
55264
+ case 200:
55265
+ message.status = 200;
55266
+ break;
55267
+ case "BAD_REQUEST":
55268
+ case 400:
55269
+ message.status = 400;
55270
+ break;
55271
+ case "UNAUTHORIZED":
55272
+ case 401:
55273
+ message.status = 401;
55274
+ break;
55275
+ case "FORBIDDEN":
55276
+ case 403:
55277
+ message.status = 403;
55278
+ break;
55279
+ case "UNPROCESSABLE_ENTITY":
55280
+ case 422:
55281
+ message.status = 422;
55282
+ break;
55283
+ case "NOT_FOUND":
55284
+ case 404:
55285
+ message.status = 404;
55286
+ break;
55287
+ case "INTERNAL_SERVER_ERROR":
55288
+ case 500:
55289
+ message.status = 500;
55290
+ break;
55291
+ case "GATEWAY_TIMEOUT":
55292
+ case 504:
55293
+ message.status = 504;
55294
+ break;
55295
+ }
55296
+ if (object.errors) {
55297
+ if (!Array.isArray(object.errors))
55298
+ throw TypeError(".ProcessStripeDisputeResponse.errors: array expected");
55299
+ message.errors = [];
55300
+ for (var i = 0; i < object.errors.length; ++i) {
55301
+ if (typeof object.errors[i] !== "object")
55302
+ throw TypeError(".ProcessStripeDisputeResponse.errors: object expected");
55303
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
55304
+ }
55305
+ }
55306
+ return message;
55307
+ };
55308
+
55309
+ /**
55310
+ * Creates a plain object from a ProcessStripeDisputeResponse message. Also converts values to other types if specified.
55311
+ * @function toObject
55312
+ * @memberof ProcessStripeDisputeResponse
55313
+ * @static
55314
+ * @param {ProcessStripeDisputeResponse} message ProcessStripeDisputeResponse
55315
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55316
+ * @returns {Object.<string,*>} Plain object
55317
+ */
55318
+ ProcessStripeDisputeResponse.toObject = function toObject(message, options) {
55319
+ if (!options)
55320
+ options = {};
55321
+ var object = {};
55322
+ if (options.arrays || options.defaults)
55323
+ object.errors = [];
55324
+ if (options.defaults)
55325
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
55326
+ if (message.status != null && message.hasOwnProperty("status"))
55327
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
55328
+ if (message.errors && message.errors.length) {
55329
+ object.errors = [];
55330
+ for (var j = 0; j < message.errors.length; ++j)
55331
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
55332
+ }
55333
+ return object;
55334
+ };
55335
+
55336
+ /**
55337
+ * Converts this ProcessStripeDisputeResponse to JSON.
55338
+ * @function toJSON
55339
+ * @memberof ProcessStripeDisputeResponse
55340
+ * @instance
55341
+ * @returns {Object.<string,*>} JSON object
55342
+ */
55343
+ ProcessStripeDisputeResponse.prototype.toJSON = function toJSON() {
55344
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55345
+ };
55346
+
55347
+ return ProcessStripeDisputeResponse;
55348
+ })();
55349
+
54619
55350
  $root.OrderService = (function() {
54620
55351
 
54621
55352
  /**
@@ -56463,6 +57194,39 @@ $root.OrderService = (function() {
56463
57194
  * @variation 2
56464
57195
  */
56465
57196
 
57197
+ /**
57198
+ * Callback as used by {@link OrderService#processStripeDispute}.
57199
+ * @memberof OrderService
57200
+ * @typedef processStripeDisputeCallback
57201
+ * @type {function}
57202
+ * @param {Error|null} error Error, if any
57203
+ * @param {ProcessStripeDisputeResponse} [response] ProcessStripeDisputeResponse
57204
+ */
57205
+
57206
+ /**
57207
+ * Calls processStripeDispute.
57208
+ * @function processStripeDispute
57209
+ * @memberof OrderService
57210
+ * @instance
57211
+ * @param {IProcessStripeDisputeRequest} request ProcessStripeDisputeRequest message or plain object
57212
+ * @param {OrderService.processStripeDisputeCallback} callback Node-style callback called with the error, if any, and ProcessStripeDisputeResponse
57213
+ * @returns {undefined}
57214
+ * @variation 1
57215
+ */
57216
+ Object.defineProperty(OrderService.prototype.processStripeDispute = function processStripeDispute(request, callback) {
57217
+ return this.rpcCall(processStripeDispute, $root.ProcessStripeDisputeRequest, $root.ProcessStripeDisputeResponse, request, callback);
57218
+ }, "name", { value: "processStripeDispute" });
57219
+
57220
+ /**
57221
+ * Calls processStripeDispute.
57222
+ * @function processStripeDispute
57223
+ * @memberof OrderService
57224
+ * @instance
57225
+ * @param {IProcessStripeDisputeRequest} request ProcessStripeDisputeRequest message or plain object
57226
+ * @returns {Promise<ProcessStripeDisputeResponse>} Promise
57227
+ * @variation 2
57228
+ */
57229
+
56466
57230
  return OrderService;
56467
57231
  })();
56468
57232
 
@@ -86020,6 +86784,523 @@ $root.FindOrganizationResponse = (function() {
86020
86784
  return FindOrganizationResponse;
86021
86785
  })();
86022
86786
 
86787
+ $root.FindOrganizationByStripeIdRequest = (function() {
86788
+
86789
+ /**
86790
+ * Properties of a FindOrganizationByStripeIdRequest.
86791
+ * @exports IFindOrganizationByStripeIdRequest
86792
+ * @interface IFindOrganizationByStripeIdRequest
86793
+ * @property {string|null} [spanContext] FindOrganizationByStripeIdRequest spanContext
86794
+ * @property {string|null} [stripeId] FindOrganizationByStripeIdRequest stripeId
86795
+ */
86796
+
86797
+ /**
86798
+ * Constructs a new FindOrganizationByStripeIdRequest.
86799
+ * @exports FindOrganizationByStripeIdRequest
86800
+ * @classdesc Represents a FindOrganizationByStripeIdRequest.
86801
+ * @implements IFindOrganizationByStripeIdRequest
86802
+ * @constructor
86803
+ * @param {IFindOrganizationByStripeIdRequest=} [properties] Properties to set
86804
+ */
86805
+ function FindOrganizationByStripeIdRequest(properties) {
86806
+ if (properties)
86807
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
86808
+ if (properties[keys[i]] != null)
86809
+ this[keys[i]] = properties[keys[i]];
86810
+ }
86811
+
86812
+ /**
86813
+ * FindOrganizationByStripeIdRequest spanContext.
86814
+ * @member {string} spanContext
86815
+ * @memberof FindOrganizationByStripeIdRequest
86816
+ * @instance
86817
+ */
86818
+ FindOrganizationByStripeIdRequest.prototype.spanContext = "";
86819
+
86820
+ /**
86821
+ * FindOrganizationByStripeIdRequest stripeId.
86822
+ * @member {string} stripeId
86823
+ * @memberof FindOrganizationByStripeIdRequest
86824
+ * @instance
86825
+ */
86826
+ FindOrganizationByStripeIdRequest.prototype.stripeId = "";
86827
+
86828
+ /**
86829
+ * Creates a new FindOrganizationByStripeIdRequest instance using the specified properties.
86830
+ * @function create
86831
+ * @memberof FindOrganizationByStripeIdRequest
86832
+ * @static
86833
+ * @param {IFindOrganizationByStripeIdRequest=} [properties] Properties to set
86834
+ * @returns {FindOrganizationByStripeIdRequest} FindOrganizationByStripeIdRequest instance
86835
+ */
86836
+ FindOrganizationByStripeIdRequest.create = function create(properties) {
86837
+ return new FindOrganizationByStripeIdRequest(properties);
86838
+ };
86839
+
86840
+ /**
86841
+ * Encodes the specified FindOrganizationByStripeIdRequest message. Does not implicitly {@link FindOrganizationByStripeIdRequest.verify|verify} messages.
86842
+ * @function encode
86843
+ * @memberof FindOrganizationByStripeIdRequest
86844
+ * @static
86845
+ * @param {IFindOrganizationByStripeIdRequest} message FindOrganizationByStripeIdRequest message or plain object to encode
86846
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86847
+ * @returns {$protobuf.Writer} Writer
86848
+ */
86849
+ FindOrganizationByStripeIdRequest.encode = function encode(message, writer) {
86850
+ if (!writer)
86851
+ writer = $Writer.create();
86852
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
86853
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
86854
+ if (message.stripeId != null && Object.hasOwnProperty.call(message, "stripeId"))
86855
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.stripeId);
86856
+ return writer;
86857
+ };
86858
+
86859
+ /**
86860
+ * Encodes the specified FindOrganizationByStripeIdRequest message, length delimited. Does not implicitly {@link FindOrganizationByStripeIdRequest.verify|verify} messages.
86861
+ * @function encodeDelimited
86862
+ * @memberof FindOrganizationByStripeIdRequest
86863
+ * @static
86864
+ * @param {IFindOrganizationByStripeIdRequest} message FindOrganizationByStripeIdRequest message or plain object to encode
86865
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86866
+ * @returns {$protobuf.Writer} Writer
86867
+ */
86868
+ FindOrganizationByStripeIdRequest.encodeDelimited = function encodeDelimited(message, writer) {
86869
+ return this.encode(message, writer).ldelim();
86870
+ };
86871
+
86872
+ /**
86873
+ * Decodes a FindOrganizationByStripeIdRequest message from the specified reader or buffer.
86874
+ * @function decode
86875
+ * @memberof FindOrganizationByStripeIdRequest
86876
+ * @static
86877
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86878
+ * @param {number} [length] Message length if known beforehand
86879
+ * @returns {FindOrganizationByStripeIdRequest} FindOrganizationByStripeIdRequest
86880
+ * @throws {Error} If the payload is not a reader or valid buffer
86881
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86882
+ */
86883
+ FindOrganizationByStripeIdRequest.decode = function decode(reader, length) {
86884
+ if (!(reader instanceof $Reader))
86885
+ reader = $Reader.create(reader);
86886
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FindOrganizationByStripeIdRequest();
86887
+ while (reader.pos < end) {
86888
+ var tag = reader.uint32();
86889
+ switch (tag >>> 3) {
86890
+ case 0:
86891
+ message.spanContext = reader.string();
86892
+ break;
86893
+ case 1:
86894
+ message.stripeId = reader.string();
86895
+ break;
86896
+ default:
86897
+ reader.skipType(tag & 7);
86898
+ break;
86899
+ }
86900
+ }
86901
+ return message;
86902
+ };
86903
+
86904
+ /**
86905
+ * Decodes a FindOrganizationByStripeIdRequest message from the specified reader or buffer, length delimited.
86906
+ * @function decodeDelimited
86907
+ * @memberof FindOrganizationByStripeIdRequest
86908
+ * @static
86909
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86910
+ * @returns {FindOrganizationByStripeIdRequest} FindOrganizationByStripeIdRequest
86911
+ * @throws {Error} If the payload is not a reader or valid buffer
86912
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86913
+ */
86914
+ FindOrganizationByStripeIdRequest.decodeDelimited = function decodeDelimited(reader) {
86915
+ if (!(reader instanceof $Reader))
86916
+ reader = new $Reader(reader);
86917
+ return this.decode(reader, reader.uint32());
86918
+ };
86919
+
86920
+ /**
86921
+ * Verifies a FindOrganizationByStripeIdRequest message.
86922
+ * @function verify
86923
+ * @memberof FindOrganizationByStripeIdRequest
86924
+ * @static
86925
+ * @param {Object.<string,*>} message Plain object to verify
86926
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
86927
+ */
86928
+ FindOrganizationByStripeIdRequest.verify = function verify(message) {
86929
+ if (typeof message !== "object" || message === null)
86930
+ return "object expected";
86931
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
86932
+ if (!$util.isString(message.spanContext))
86933
+ return "spanContext: string expected";
86934
+ if (message.stripeId != null && message.hasOwnProperty("stripeId"))
86935
+ if (!$util.isString(message.stripeId))
86936
+ return "stripeId: string expected";
86937
+ return null;
86938
+ };
86939
+
86940
+ /**
86941
+ * Creates a FindOrganizationByStripeIdRequest message from a plain object. Also converts values to their respective internal types.
86942
+ * @function fromObject
86943
+ * @memberof FindOrganizationByStripeIdRequest
86944
+ * @static
86945
+ * @param {Object.<string,*>} object Plain object
86946
+ * @returns {FindOrganizationByStripeIdRequest} FindOrganizationByStripeIdRequest
86947
+ */
86948
+ FindOrganizationByStripeIdRequest.fromObject = function fromObject(object) {
86949
+ if (object instanceof $root.FindOrganizationByStripeIdRequest)
86950
+ return object;
86951
+ var message = new $root.FindOrganizationByStripeIdRequest();
86952
+ if (object.spanContext != null)
86953
+ message.spanContext = String(object.spanContext);
86954
+ if (object.stripeId != null)
86955
+ message.stripeId = String(object.stripeId);
86956
+ return message;
86957
+ };
86958
+
86959
+ /**
86960
+ * Creates a plain object from a FindOrganizationByStripeIdRequest message. Also converts values to other types if specified.
86961
+ * @function toObject
86962
+ * @memberof FindOrganizationByStripeIdRequest
86963
+ * @static
86964
+ * @param {FindOrganizationByStripeIdRequest} message FindOrganizationByStripeIdRequest
86965
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
86966
+ * @returns {Object.<string,*>} Plain object
86967
+ */
86968
+ FindOrganizationByStripeIdRequest.toObject = function toObject(message, options) {
86969
+ if (!options)
86970
+ options = {};
86971
+ var object = {};
86972
+ if (options.defaults) {
86973
+ object.spanContext = "";
86974
+ object.stripeId = "";
86975
+ }
86976
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
86977
+ object.spanContext = message.spanContext;
86978
+ if (message.stripeId != null && message.hasOwnProperty("stripeId"))
86979
+ object.stripeId = message.stripeId;
86980
+ return object;
86981
+ };
86982
+
86983
+ /**
86984
+ * Converts this FindOrganizationByStripeIdRequest to JSON.
86985
+ * @function toJSON
86986
+ * @memberof FindOrganizationByStripeIdRequest
86987
+ * @instance
86988
+ * @returns {Object.<string,*>} JSON object
86989
+ */
86990
+ FindOrganizationByStripeIdRequest.prototype.toJSON = function toJSON() {
86991
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
86992
+ };
86993
+
86994
+ return FindOrganizationByStripeIdRequest;
86995
+ })();
86996
+
86997
+ $root.FindOrganizationByStripeIdResponse = (function() {
86998
+
86999
+ /**
87000
+ * Properties of a FindOrganizationByStripeIdResponse.
87001
+ * @exports IFindOrganizationByStripeIdResponse
87002
+ * @interface IFindOrganizationByStripeIdResponse
87003
+ * @property {StatusCode|null} [status] FindOrganizationByStripeIdResponse status
87004
+ * @property {Array.<IError>|null} [errors] FindOrganizationByStripeIdResponse errors
87005
+ * @property {IOrganization|null} [organization] FindOrganizationByStripeIdResponse organization
87006
+ */
87007
+
87008
+ /**
87009
+ * Constructs a new FindOrganizationByStripeIdResponse.
87010
+ * @exports FindOrganizationByStripeIdResponse
87011
+ * @classdesc Represents a FindOrganizationByStripeIdResponse.
87012
+ * @implements IFindOrganizationByStripeIdResponse
87013
+ * @constructor
87014
+ * @param {IFindOrganizationByStripeIdResponse=} [properties] Properties to set
87015
+ */
87016
+ function FindOrganizationByStripeIdResponse(properties) {
87017
+ this.errors = [];
87018
+ if (properties)
87019
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87020
+ if (properties[keys[i]] != null)
87021
+ this[keys[i]] = properties[keys[i]];
87022
+ }
87023
+
87024
+ /**
87025
+ * FindOrganizationByStripeIdResponse status.
87026
+ * @member {StatusCode} status
87027
+ * @memberof FindOrganizationByStripeIdResponse
87028
+ * @instance
87029
+ */
87030
+ FindOrganizationByStripeIdResponse.prototype.status = 0;
87031
+
87032
+ /**
87033
+ * FindOrganizationByStripeIdResponse errors.
87034
+ * @member {Array.<IError>} errors
87035
+ * @memberof FindOrganizationByStripeIdResponse
87036
+ * @instance
87037
+ */
87038
+ FindOrganizationByStripeIdResponse.prototype.errors = $util.emptyArray;
87039
+
87040
+ /**
87041
+ * FindOrganizationByStripeIdResponse organization.
87042
+ * @member {IOrganization|null|undefined} organization
87043
+ * @memberof FindOrganizationByStripeIdResponse
87044
+ * @instance
87045
+ */
87046
+ FindOrganizationByStripeIdResponse.prototype.organization = null;
87047
+
87048
+ /**
87049
+ * Creates a new FindOrganizationByStripeIdResponse instance using the specified properties.
87050
+ * @function create
87051
+ * @memberof FindOrganizationByStripeIdResponse
87052
+ * @static
87053
+ * @param {IFindOrganizationByStripeIdResponse=} [properties] Properties to set
87054
+ * @returns {FindOrganizationByStripeIdResponse} FindOrganizationByStripeIdResponse instance
87055
+ */
87056
+ FindOrganizationByStripeIdResponse.create = function create(properties) {
87057
+ return new FindOrganizationByStripeIdResponse(properties);
87058
+ };
87059
+
87060
+ /**
87061
+ * Encodes the specified FindOrganizationByStripeIdResponse message. Does not implicitly {@link FindOrganizationByStripeIdResponse.verify|verify} messages.
87062
+ * @function encode
87063
+ * @memberof FindOrganizationByStripeIdResponse
87064
+ * @static
87065
+ * @param {IFindOrganizationByStripeIdResponse} message FindOrganizationByStripeIdResponse message or plain object to encode
87066
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87067
+ * @returns {$protobuf.Writer} Writer
87068
+ */
87069
+ FindOrganizationByStripeIdResponse.encode = function encode(message, writer) {
87070
+ if (!writer)
87071
+ writer = $Writer.create();
87072
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
87073
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
87074
+ if (message.errors != null && message.errors.length)
87075
+ for (var i = 0; i < message.errors.length; ++i)
87076
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
87077
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
87078
+ $root.Organization.encode(message.organization, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
87079
+ return writer;
87080
+ };
87081
+
87082
+ /**
87083
+ * Encodes the specified FindOrganizationByStripeIdResponse message, length delimited. Does not implicitly {@link FindOrganizationByStripeIdResponse.verify|verify} messages.
87084
+ * @function encodeDelimited
87085
+ * @memberof FindOrganizationByStripeIdResponse
87086
+ * @static
87087
+ * @param {IFindOrganizationByStripeIdResponse} message FindOrganizationByStripeIdResponse message or plain object to encode
87088
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87089
+ * @returns {$protobuf.Writer} Writer
87090
+ */
87091
+ FindOrganizationByStripeIdResponse.encodeDelimited = function encodeDelimited(message, writer) {
87092
+ return this.encode(message, writer).ldelim();
87093
+ };
87094
+
87095
+ /**
87096
+ * Decodes a FindOrganizationByStripeIdResponse message from the specified reader or buffer.
87097
+ * @function decode
87098
+ * @memberof FindOrganizationByStripeIdResponse
87099
+ * @static
87100
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87101
+ * @param {number} [length] Message length if known beforehand
87102
+ * @returns {FindOrganizationByStripeIdResponse} FindOrganizationByStripeIdResponse
87103
+ * @throws {Error} If the payload is not a reader or valid buffer
87104
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87105
+ */
87106
+ FindOrganizationByStripeIdResponse.decode = function decode(reader, length) {
87107
+ if (!(reader instanceof $Reader))
87108
+ reader = $Reader.create(reader);
87109
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FindOrganizationByStripeIdResponse();
87110
+ while (reader.pos < end) {
87111
+ var tag = reader.uint32();
87112
+ switch (tag >>> 3) {
87113
+ case 0:
87114
+ message.status = reader.int32();
87115
+ break;
87116
+ case 1:
87117
+ if (!(message.errors && message.errors.length))
87118
+ message.errors = [];
87119
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
87120
+ break;
87121
+ case 2:
87122
+ message.organization = $root.Organization.decode(reader, reader.uint32());
87123
+ break;
87124
+ default:
87125
+ reader.skipType(tag & 7);
87126
+ break;
87127
+ }
87128
+ }
87129
+ return message;
87130
+ };
87131
+
87132
+ /**
87133
+ * Decodes a FindOrganizationByStripeIdResponse message from the specified reader or buffer, length delimited.
87134
+ * @function decodeDelimited
87135
+ * @memberof FindOrganizationByStripeIdResponse
87136
+ * @static
87137
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87138
+ * @returns {FindOrganizationByStripeIdResponse} FindOrganizationByStripeIdResponse
87139
+ * @throws {Error} If the payload is not a reader or valid buffer
87140
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87141
+ */
87142
+ FindOrganizationByStripeIdResponse.decodeDelimited = function decodeDelimited(reader) {
87143
+ if (!(reader instanceof $Reader))
87144
+ reader = new $Reader(reader);
87145
+ return this.decode(reader, reader.uint32());
87146
+ };
87147
+
87148
+ /**
87149
+ * Verifies a FindOrganizationByStripeIdResponse message.
87150
+ * @function verify
87151
+ * @memberof FindOrganizationByStripeIdResponse
87152
+ * @static
87153
+ * @param {Object.<string,*>} message Plain object to verify
87154
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87155
+ */
87156
+ FindOrganizationByStripeIdResponse.verify = function verify(message) {
87157
+ if (typeof message !== "object" || message === null)
87158
+ return "object expected";
87159
+ if (message.status != null && message.hasOwnProperty("status"))
87160
+ switch (message.status) {
87161
+ default:
87162
+ return "status: enum value expected";
87163
+ case 0:
87164
+ case 200:
87165
+ case 400:
87166
+ case 401:
87167
+ case 403:
87168
+ case 422:
87169
+ case 404:
87170
+ case 500:
87171
+ case 504:
87172
+ break;
87173
+ }
87174
+ if (message.errors != null && message.hasOwnProperty("errors")) {
87175
+ if (!Array.isArray(message.errors))
87176
+ return "errors: array expected";
87177
+ for (var i = 0; i < message.errors.length; ++i) {
87178
+ var error = $root.Error.verify(message.errors[i]);
87179
+ if (error)
87180
+ return "errors." + error;
87181
+ }
87182
+ }
87183
+ if (message.organization != null && message.hasOwnProperty("organization")) {
87184
+ var error = $root.Organization.verify(message.organization);
87185
+ if (error)
87186
+ return "organization." + error;
87187
+ }
87188
+ return null;
87189
+ };
87190
+
87191
+ /**
87192
+ * Creates a FindOrganizationByStripeIdResponse message from a plain object. Also converts values to their respective internal types.
87193
+ * @function fromObject
87194
+ * @memberof FindOrganizationByStripeIdResponse
87195
+ * @static
87196
+ * @param {Object.<string,*>} object Plain object
87197
+ * @returns {FindOrganizationByStripeIdResponse} FindOrganizationByStripeIdResponse
87198
+ */
87199
+ FindOrganizationByStripeIdResponse.fromObject = function fromObject(object) {
87200
+ if (object instanceof $root.FindOrganizationByStripeIdResponse)
87201
+ return object;
87202
+ var message = new $root.FindOrganizationByStripeIdResponse();
87203
+ switch (object.status) {
87204
+ case "UNKNOWN_CODE":
87205
+ case 0:
87206
+ message.status = 0;
87207
+ break;
87208
+ case "OK":
87209
+ case 200:
87210
+ message.status = 200;
87211
+ break;
87212
+ case "BAD_REQUEST":
87213
+ case 400:
87214
+ message.status = 400;
87215
+ break;
87216
+ case "UNAUTHORIZED":
87217
+ case 401:
87218
+ message.status = 401;
87219
+ break;
87220
+ case "FORBIDDEN":
87221
+ case 403:
87222
+ message.status = 403;
87223
+ break;
87224
+ case "UNPROCESSABLE_ENTITY":
87225
+ case 422:
87226
+ message.status = 422;
87227
+ break;
87228
+ case "NOT_FOUND":
87229
+ case 404:
87230
+ message.status = 404;
87231
+ break;
87232
+ case "INTERNAL_SERVER_ERROR":
87233
+ case 500:
87234
+ message.status = 500;
87235
+ break;
87236
+ case "GATEWAY_TIMEOUT":
87237
+ case 504:
87238
+ message.status = 504;
87239
+ break;
87240
+ }
87241
+ if (object.errors) {
87242
+ if (!Array.isArray(object.errors))
87243
+ throw TypeError(".FindOrganizationByStripeIdResponse.errors: array expected");
87244
+ message.errors = [];
87245
+ for (var i = 0; i < object.errors.length; ++i) {
87246
+ if (typeof object.errors[i] !== "object")
87247
+ throw TypeError(".FindOrganizationByStripeIdResponse.errors: object expected");
87248
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
87249
+ }
87250
+ }
87251
+ if (object.organization != null) {
87252
+ if (typeof object.organization !== "object")
87253
+ throw TypeError(".FindOrganizationByStripeIdResponse.organization: object expected");
87254
+ message.organization = $root.Organization.fromObject(object.organization);
87255
+ }
87256
+ return message;
87257
+ };
87258
+
87259
+ /**
87260
+ * Creates a plain object from a FindOrganizationByStripeIdResponse message. Also converts values to other types if specified.
87261
+ * @function toObject
87262
+ * @memberof FindOrganizationByStripeIdResponse
87263
+ * @static
87264
+ * @param {FindOrganizationByStripeIdResponse} message FindOrganizationByStripeIdResponse
87265
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
87266
+ * @returns {Object.<string,*>} Plain object
87267
+ */
87268
+ FindOrganizationByStripeIdResponse.toObject = function toObject(message, options) {
87269
+ if (!options)
87270
+ options = {};
87271
+ var object = {};
87272
+ if (options.arrays || options.defaults)
87273
+ object.errors = [];
87274
+ if (options.defaults) {
87275
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
87276
+ object.organization = null;
87277
+ }
87278
+ if (message.status != null && message.hasOwnProperty("status"))
87279
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
87280
+ if (message.errors && message.errors.length) {
87281
+ object.errors = [];
87282
+ for (var j = 0; j < message.errors.length; ++j)
87283
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
87284
+ }
87285
+ if (message.organization != null && message.hasOwnProperty("organization"))
87286
+ object.organization = $root.Organization.toObject(message.organization, options);
87287
+ return object;
87288
+ };
87289
+
87290
+ /**
87291
+ * Converts this FindOrganizationByStripeIdResponse to JSON.
87292
+ * @function toJSON
87293
+ * @memberof FindOrganizationByStripeIdResponse
87294
+ * @instance
87295
+ * @returns {Object.<string,*>} JSON object
87296
+ */
87297
+ FindOrganizationByStripeIdResponse.prototype.toJSON = function toJSON() {
87298
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
87299
+ };
87300
+
87301
+ return FindOrganizationByStripeIdResponse;
87302
+ })();
87303
+
86023
87304
  $root.DeleteOrganizationRequest = (function() {
86024
87305
 
86025
87306
  /**
@@ -88890,6 +90171,39 @@ $root.OrganizationService = (function() {
88890
90171
  * @variation 2
88891
90172
  */
88892
90173
 
90174
+ /**
90175
+ * Callback as used by {@link OrganizationService#findOrganizationByStripeId}.
90176
+ * @memberof OrganizationService
90177
+ * @typedef findOrganizationByStripeIdCallback
90178
+ * @type {function}
90179
+ * @param {Error|null} error Error, if any
90180
+ * @param {FindOrganizationByStripeIdResponse} [response] FindOrganizationByStripeIdResponse
90181
+ */
90182
+
90183
+ /**
90184
+ * Calls findOrganizationByStripeId.
90185
+ * @function findOrganizationByStripeId
90186
+ * @memberof OrganizationService
90187
+ * @instance
90188
+ * @param {IFindOrganizationByStripeIdRequest} request FindOrganizationByStripeIdRequest message or plain object
90189
+ * @param {OrganizationService.findOrganizationByStripeIdCallback} callback Node-style callback called with the error, if any, and FindOrganizationByStripeIdResponse
90190
+ * @returns {undefined}
90191
+ * @variation 1
90192
+ */
90193
+ Object.defineProperty(OrganizationService.prototype.findOrganizationByStripeId = function findOrganizationByStripeId(request, callback) {
90194
+ return this.rpcCall(findOrganizationByStripeId, $root.FindOrganizationByStripeIdRequest, $root.FindOrganizationByStripeIdResponse, request, callback);
90195
+ }, "name", { value: "findOrganizationByStripeId" });
90196
+
90197
+ /**
90198
+ * Calls findOrganizationByStripeId.
90199
+ * @function findOrganizationByStripeId
90200
+ * @memberof OrganizationService
90201
+ * @instance
90202
+ * @param {IFindOrganizationByStripeIdRequest} request FindOrganizationByStripeIdRequest message or plain object
90203
+ * @returns {Promise<FindOrganizationByStripeIdResponse>} Promise
90204
+ * @variation 2
90205
+ */
90206
+
88893
90207
  /**
88894
90208
  * Callback as used by {@link OrganizationService#deleteOrganization}.
88895
90209
  * @memberof OrganizationService
@@ -100923,6 +102237,541 @@ $root.orderExportIssueEmailRequest = (function() {
100923
102237
  return orderExportIssueEmailRequest;
100924
102238
  })();
100925
102239
 
102240
+ $root.QueueChargebackEmailRequest = (function() {
102241
+
102242
+ /**
102243
+ * Properties of a QueueChargebackEmailRequest.
102244
+ * @exports IQueueChargebackEmailRequest
102245
+ * @interface IQueueChargebackEmailRequest
102246
+ * @property {string|null} [spanContext] QueueChargebackEmailRequest spanContext
102247
+ * @property {string|null} [toAddress] QueueChargebackEmailRequest toAddress
102248
+ * @property {string|null} [orderId] QueueChargebackEmailRequest orderId
102249
+ * @property {string|null} [eventName] QueueChargebackEmailRequest eventName
102250
+ * @property {number|null} [amount] QueueChargebackEmailRequest amount
102251
+ * @property {string|null} [currency] QueueChargebackEmailRequest currency
102252
+ * @property {string|null} [reason] QueueChargebackEmailRequest reason
102253
+ * @property {string|null} [status] QueueChargebackEmailRequest status
102254
+ * @property {string|null} [customerName] QueueChargebackEmailRequest customerName
102255
+ * @property {number|null} [dueBy] QueueChargebackEmailRequest dueBy
102256
+ * @property {boolean|null} [isClosed] QueueChargebackEmailRequest isClosed
102257
+ * @property {string|null} [ordersUrl] QueueChargebackEmailRequest ordersUrl
102258
+ * @property {string|null} [orgName] QueueChargebackEmailRequest orgName
102259
+ * @property {string|null} [disputeId] QueueChargebackEmailRequest disputeId
102260
+ * @property {boolean|null} [livemode] QueueChargebackEmailRequest livemode
102261
+ * @property {Array.<string>|null} [ccAddresses] QueueChargebackEmailRequest ccAddresses
102262
+ */
102263
+
102264
+ /**
102265
+ * Constructs a new QueueChargebackEmailRequest.
102266
+ * @exports QueueChargebackEmailRequest
102267
+ * @classdesc Represents a QueueChargebackEmailRequest.
102268
+ * @implements IQueueChargebackEmailRequest
102269
+ * @constructor
102270
+ * @param {IQueueChargebackEmailRequest=} [properties] Properties to set
102271
+ */
102272
+ function QueueChargebackEmailRequest(properties) {
102273
+ this.ccAddresses = [];
102274
+ if (properties)
102275
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
102276
+ if (properties[keys[i]] != null)
102277
+ this[keys[i]] = properties[keys[i]];
102278
+ }
102279
+
102280
+ /**
102281
+ * QueueChargebackEmailRequest spanContext.
102282
+ * @member {string} spanContext
102283
+ * @memberof QueueChargebackEmailRequest
102284
+ * @instance
102285
+ */
102286
+ QueueChargebackEmailRequest.prototype.spanContext = "";
102287
+
102288
+ /**
102289
+ * QueueChargebackEmailRequest toAddress.
102290
+ * @member {string} toAddress
102291
+ * @memberof QueueChargebackEmailRequest
102292
+ * @instance
102293
+ */
102294
+ QueueChargebackEmailRequest.prototype.toAddress = "";
102295
+
102296
+ /**
102297
+ * QueueChargebackEmailRequest orderId.
102298
+ * @member {string} orderId
102299
+ * @memberof QueueChargebackEmailRequest
102300
+ * @instance
102301
+ */
102302
+ QueueChargebackEmailRequest.prototype.orderId = "";
102303
+
102304
+ /**
102305
+ * QueueChargebackEmailRequest eventName.
102306
+ * @member {string} eventName
102307
+ * @memberof QueueChargebackEmailRequest
102308
+ * @instance
102309
+ */
102310
+ QueueChargebackEmailRequest.prototype.eventName = "";
102311
+
102312
+ /**
102313
+ * QueueChargebackEmailRequest amount.
102314
+ * @member {number} amount
102315
+ * @memberof QueueChargebackEmailRequest
102316
+ * @instance
102317
+ */
102318
+ QueueChargebackEmailRequest.prototype.amount = 0;
102319
+
102320
+ /**
102321
+ * QueueChargebackEmailRequest currency.
102322
+ * @member {string} currency
102323
+ * @memberof QueueChargebackEmailRequest
102324
+ * @instance
102325
+ */
102326
+ QueueChargebackEmailRequest.prototype.currency = "";
102327
+
102328
+ /**
102329
+ * QueueChargebackEmailRequest reason.
102330
+ * @member {string} reason
102331
+ * @memberof QueueChargebackEmailRequest
102332
+ * @instance
102333
+ */
102334
+ QueueChargebackEmailRequest.prototype.reason = "";
102335
+
102336
+ /**
102337
+ * QueueChargebackEmailRequest status.
102338
+ * @member {string} status
102339
+ * @memberof QueueChargebackEmailRequest
102340
+ * @instance
102341
+ */
102342
+ QueueChargebackEmailRequest.prototype.status = "";
102343
+
102344
+ /**
102345
+ * QueueChargebackEmailRequest customerName.
102346
+ * @member {string} customerName
102347
+ * @memberof QueueChargebackEmailRequest
102348
+ * @instance
102349
+ */
102350
+ QueueChargebackEmailRequest.prototype.customerName = "";
102351
+
102352
+ /**
102353
+ * QueueChargebackEmailRequest dueBy.
102354
+ * @member {number} dueBy
102355
+ * @memberof QueueChargebackEmailRequest
102356
+ * @instance
102357
+ */
102358
+ QueueChargebackEmailRequest.prototype.dueBy = 0;
102359
+
102360
+ /**
102361
+ * QueueChargebackEmailRequest isClosed.
102362
+ * @member {boolean} isClosed
102363
+ * @memberof QueueChargebackEmailRequest
102364
+ * @instance
102365
+ */
102366
+ QueueChargebackEmailRequest.prototype.isClosed = false;
102367
+
102368
+ /**
102369
+ * QueueChargebackEmailRequest ordersUrl.
102370
+ * @member {string} ordersUrl
102371
+ * @memberof QueueChargebackEmailRequest
102372
+ * @instance
102373
+ */
102374
+ QueueChargebackEmailRequest.prototype.ordersUrl = "";
102375
+
102376
+ /**
102377
+ * QueueChargebackEmailRequest orgName.
102378
+ * @member {string} orgName
102379
+ * @memberof QueueChargebackEmailRequest
102380
+ * @instance
102381
+ */
102382
+ QueueChargebackEmailRequest.prototype.orgName = "";
102383
+
102384
+ /**
102385
+ * QueueChargebackEmailRequest disputeId.
102386
+ * @member {string} disputeId
102387
+ * @memberof QueueChargebackEmailRequest
102388
+ * @instance
102389
+ */
102390
+ QueueChargebackEmailRequest.prototype.disputeId = "";
102391
+
102392
+ /**
102393
+ * QueueChargebackEmailRequest livemode.
102394
+ * @member {boolean} livemode
102395
+ * @memberof QueueChargebackEmailRequest
102396
+ * @instance
102397
+ */
102398
+ QueueChargebackEmailRequest.prototype.livemode = false;
102399
+
102400
+ /**
102401
+ * QueueChargebackEmailRequest ccAddresses.
102402
+ * @member {Array.<string>} ccAddresses
102403
+ * @memberof QueueChargebackEmailRequest
102404
+ * @instance
102405
+ */
102406
+ QueueChargebackEmailRequest.prototype.ccAddresses = $util.emptyArray;
102407
+
102408
+ /**
102409
+ * Creates a new QueueChargebackEmailRequest instance using the specified properties.
102410
+ * @function create
102411
+ * @memberof QueueChargebackEmailRequest
102412
+ * @static
102413
+ * @param {IQueueChargebackEmailRequest=} [properties] Properties to set
102414
+ * @returns {QueueChargebackEmailRequest} QueueChargebackEmailRequest instance
102415
+ */
102416
+ QueueChargebackEmailRequest.create = function create(properties) {
102417
+ return new QueueChargebackEmailRequest(properties);
102418
+ };
102419
+
102420
+ /**
102421
+ * Encodes the specified QueueChargebackEmailRequest message. Does not implicitly {@link QueueChargebackEmailRequest.verify|verify} messages.
102422
+ * @function encode
102423
+ * @memberof QueueChargebackEmailRequest
102424
+ * @static
102425
+ * @param {IQueueChargebackEmailRequest} message QueueChargebackEmailRequest message or plain object to encode
102426
+ * @param {$protobuf.Writer} [writer] Writer to encode to
102427
+ * @returns {$protobuf.Writer} Writer
102428
+ */
102429
+ QueueChargebackEmailRequest.encode = function encode(message, writer) {
102430
+ if (!writer)
102431
+ writer = $Writer.create();
102432
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
102433
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
102434
+ if (message.toAddress != null && Object.hasOwnProperty.call(message, "toAddress"))
102435
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.toAddress);
102436
+ if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
102437
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.orderId);
102438
+ if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName"))
102439
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.eventName);
102440
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
102441
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.amount);
102442
+ if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
102443
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.currency);
102444
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
102445
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.reason);
102446
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
102447
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.status);
102448
+ if (message.customerName != null && Object.hasOwnProperty.call(message, "customerName"))
102449
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.customerName);
102450
+ if (message.dueBy != null && Object.hasOwnProperty.call(message, "dueBy"))
102451
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.dueBy);
102452
+ if (message.isClosed != null && Object.hasOwnProperty.call(message, "isClosed"))
102453
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isClosed);
102454
+ if (message.ordersUrl != null && Object.hasOwnProperty.call(message, "ordersUrl"))
102455
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.ordersUrl);
102456
+ if (message.orgName != null && Object.hasOwnProperty.call(message, "orgName"))
102457
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.orgName);
102458
+ if (message.disputeId != null && Object.hasOwnProperty.call(message, "disputeId"))
102459
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.disputeId);
102460
+ if (message.livemode != null && Object.hasOwnProperty.call(message, "livemode"))
102461
+ writer.uint32(/* id 15, wireType 0 =*/120).bool(message.livemode);
102462
+ if (message.ccAddresses != null && message.ccAddresses.length)
102463
+ for (var i = 0; i < message.ccAddresses.length; ++i)
102464
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.ccAddresses[i]);
102465
+ return writer;
102466
+ };
102467
+
102468
+ /**
102469
+ * Encodes the specified QueueChargebackEmailRequest message, length delimited. Does not implicitly {@link QueueChargebackEmailRequest.verify|verify} messages.
102470
+ * @function encodeDelimited
102471
+ * @memberof QueueChargebackEmailRequest
102472
+ * @static
102473
+ * @param {IQueueChargebackEmailRequest} message QueueChargebackEmailRequest message or plain object to encode
102474
+ * @param {$protobuf.Writer} [writer] Writer to encode to
102475
+ * @returns {$protobuf.Writer} Writer
102476
+ */
102477
+ QueueChargebackEmailRequest.encodeDelimited = function encodeDelimited(message, writer) {
102478
+ return this.encode(message, writer).ldelim();
102479
+ };
102480
+
102481
+ /**
102482
+ * Decodes a QueueChargebackEmailRequest message from the specified reader or buffer.
102483
+ * @function decode
102484
+ * @memberof QueueChargebackEmailRequest
102485
+ * @static
102486
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
102487
+ * @param {number} [length] Message length if known beforehand
102488
+ * @returns {QueueChargebackEmailRequest} QueueChargebackEmailRequest
102489
+ * @throws {Error} If the payload is not a reader or valid buffer
102490
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
102491
+ */
102492
+ QueueChargebackEmailRequest.decode = function decode(reader, length) {
102493
+ if (!(reader instanceof $Reader))
102494
+ reader = $Reader.create(reader);
102495
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.QueueChargebackEmailRequest();
102496
+ while (reader.pos < end) {
102497
+ var tag = reader.uint32();
102498
+ switch (tag >>> 3) {
102499
+ case 1:
102500
+ message.spanContext = reader.string();
102501
+ break;
102502
+ case 2:
102503
+ message.toAddress = reader.string();
102504
+ break;
102505
+ case 3:
102506
+ message.orderId = reader.string();
102507
+ break;
102508
+ case 4:
102509
+ message.eventName = reader.string();
102510
+ break;
102511
+ case 5:
102512
+ message.amount = reader.int32();
102513
+ break;
102514
+ case 6:
102515
+ message.currency = reader.string();
102516
+ break;
102517
+ case 7:
102518
+ message.reason = reader.string();
102519
+ break;
102520
+ case 8:
102521
+ message.status = reader.string();
102522
+ break;
102523
+ case 9:
102524
+ message.customerName = reader.string();
102525
+ break;
102526
+ case 10:
102527
+ message.dueBy = reader.int32();
102528
+ break;
102529
+ case 11:
102530
+ message.isClosed = reader.bool();
102531
+ break;
102532
+ case 12:
102533
+ message.ordersUrl = reader.string();
102534
+ break;
102535
+ case 13:
102536
+ message.orgName = reader.string();
102537
+ break;
102538
+ case 14:
102539
+ message.disputeId = reader.string();
102540
+ break;
102541
+ case 15:
102542
+ message.livemode = reader.bool();
102543
+ break;
102544
+ case 16:
102545
+ if (!(message.ccAddresses && message.ccAddresses.length))
102546
+ message.ccAddresses = [];
102547
+ message.ccAddresses.push(reader.string());
102548
+ break;
102549
+ default:
102550
+ reader.skipType(tag & 7);
102551
+ break;
102552
+ }
102553
+ }
102554
+ return message;
102555
+ };
102556
+
102557
+ /**
102558
+ * Decodes a QueueChargebackEmailRequest message from the specified reader or buffer, length delimited.
102559
+ * @function decodeDelimited
102560
+ * @memberof QueueChargebackEmailRequest
102561
+ * @static
102562
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
102563
+ * @returns {QueueChargebackEmailRequest} QueueChargebackEmailRequest
102564
+ * @throws {Error} If the payload is not a reader or valid buffer
102565
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
102566
+ */
102567
+ QueueChargebackEmailRequest.decodeDelimited = function decodeDelimited(reader) {
102568
+ if (!(reader instanceof $Reader))
102569
+ reader = new $Reader(reader);
102570
+ return this.decode(reader, reader.uint32());
102571
+ };
102572
+
102573
+ /**
102574
+ * Verifies a QueueChargebackEmailRequest message.
102575
+ * @function verify
102576
+ * @memberof QueueChargebackEmailRequest
102577
+ * @static
102578
+ * @param {Object.<string,*>} message Plain object to verify
102579
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
102580
+ */
102581
+ QueueChargebackEmailRequest.verify = function verify(message) {
102582
+ if (typeof message !== "object" || message === null)
102583
+ return "object expected";
102584
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
102585
+ if (!$util.isString(message.spanContext))
102586
+ return "spanContext: string expected";
102587
+ if (message.toAddress != null && message.hasOwnProperty("toAddress"))
102588
+ if (!$util.isString(message.toAddress))
102589
+ return "toAddress: string expected";
102590
+ if (message.orderId != null && message.hasOwnProperty("orderId"))
102591
+ if (!$util.isString(message.orderId))
102592
+ return "orderId: string expected";
102593
+ if (message.eventName != null && message.hasOwnProperty("eventName"))
102594
+ if (!$util.isString(message.eventName))
102595
+ return "eventName: string expected";
102596
+ if (message.amount != null && message.hasOwnProperty("amount"))
102597
+ if (!$util.isInteger(message.amount))
102598
+ return "amount: integer expected";
102599
+ if (message.currency != null && message.hasOwnProperty("currency"))
102600
+ if (!$util.isString(message.currency))
102601
+ return "currency: string expected";
102602
+ if (message.reason != null && message.hasOwnProperty("reason"))
102603
+ if (!$util.isString(message.reason))
102604
+ return "reason: string expected";
102605
+ if (message.status != null && message.hasOwnProperty("status"))
102606
+ if (!$util.isString(message.status))
102607
+ return "status: string expected";
102608
+ if (message.customerName != null && message.hasOwnProperty("customerName"))
102609
+ if (!$util.isString(message.customerName))
102610
+ return "customerName: string expected";
102611
+ if (message.dueBy != null && message.hasOwnProperty("dueBy"))
102612
+ if (!$util.isInteger(message.dueBy))
102613
+ return "dueBy: integer expected";
102614
+ if (message.isClosed != null && message.hasOwnProperty("isClosed"))
102615
+ if (typeof message.isClosed !== "boolean")
102616
+ return "isClosed: boolean expected";
102617
+ if (message.ordersUrl != null && message.hasOwnProperty("ordersUrl"))
102618
+ if (!$util.isString(message.ordersUrl))
102619
+ return "ordersUrl: string expected";
102620
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
102621
+ if (!$util.isString(message.orgName))
102622
+ return "orgName: string expected";
102623
+ if (message.disputeId != null && message.hasOwnProperty("disputeId"))
102624
+ if (!$util.isString(message.disputeId))
102625
+ return "disputeId: string expected";
102626
+ if (message.livemode != null && message.hasOwnProperty("livemode"))
102627
+ if (typeof message.livemode !== "boolean")
102628
+ return "livemode: boolean expected";
102629
+ if (message.ccAddresses != null && message.hasOwnProperty("ccAddresses")) {
102630
+ if (!Array.isArray(message.ccAddresses))
102631
+ return "ccAddresses: array expected";
102632
+ for (var i = 0; i < message.ccAddresses.length; ++i)
102633
+ if (!$util.isString(message.ccAddresses[i]))
102634
+ return "ccAddresses: string[] expected";
102635
+ }
102636
+ return null;
102637
+ };
102638
+
102639
+ /**
102640
+ * Creates a QueueChargebackEmailRequest message from a plain object. Also converts values to their respective internal types.
102641
+ * @function fromObject
102642
+ * @memberof QueueChargebackEmailRequest
102643
+ * @static
102644
+ * @param {Object.<string,*>} object Plain object
102645
+ * @returns {QueueChargebackEmailRequest} QueueChargebackEmailRequest
102646
+ */
102647
+ QueueChargebackEmailRequest.fromObject = function fromObject(object) {
102648
+ if (object instanceof $root.QueueChargebackEmailRequest)
102649
+ return object;
102650
+ var message = new $root.QueueChargebackEmailRequest();
102651
+ if (object.spanContext != null)
102652
+ message.spanContext = String(object.spanContext);
102653
+ if (object.toAddress != null)
102654
+ message.toAddress = String(object.toAddress);
102655
+ if (object.orderId != null)
102656
+ message.orderId = String(object.orderId);
102657
+ if (object.eventName != null)
102658
+ message.eventName = String(object.eventName);
102659
+ if (object.amount != null)
102660
+ message.amount = object.amount | 0;
102661
+ if (object.currency != null)
102662
+ message.currency = String(object.currency);
102663
+ if (object.reason != null)
102664
+ message.reason = String(object.reason);
102665
+ if (object.status != null)
102666
+ message.status = String(object.status);
102667
+ if (object.customerName != null)
102668
+ message.customerName = String(object.customerName);
102669
+ if (object.dueBy != null)
102670
+ message.dueBy = object.dueBy | 0;
102671
+ if (object.isClosed != null)
102672
+ message.isClosed = Boolean(object.isClosed);
102673
+ if (object.ordersUrl != null)
102674
+ message.ordersUrl = String(object.ordersUrl);
102675
+ if (object.orgName != null)
102676
+ message.orgName = String(object.orgName);
102677
+ if (object.disputeId != null)
102678
+ message.disputeId = String(object.disputeId);
102679
+ if (object.livemode != null)
102680
+ message.livemode = Boolean(object.livemode);
102681
+ if (object.ccAddresses) {
102682
+ if (!Array.isArray(object.ccAddresses))
102683
+ throw TypeError(".QueueChargebackEmailRequest.ccAddresses: array expected");
102684
+ message.ccAddresses = [];
102685
+ for (var i = 0; i < object.ccAddresses.length; ++i)
102686
+ message.ccAddresses[i] = String(object.ccAddresses[i]);
102687
+ }
102688
+ return message;
102689
+ };
102690
+
102691
+ /**
102692
+ * Creates a plain object from a QueueChargebackEmailRequest message. Also converts values to other types if specified.
102693
+ * @function toObject
102694
+ * @memberof QueueChargebackEmailRequest
102695
+ * @static
102696
+ * @param {QueueChargebackEmailRequest} message QueueChargebackEmailRequest
102697
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
102698
+ * @returns {Object.<string,*>} Plain object
102699
+ */
102700
+ QueueChargebackEmailRequest.toObject = function toObject(message, options) {
102701
+ if (!options)
102702
+ options = {};
102703
+ var object = {};
102704
+ if (options.arrays || options.defaults)
102705
+ object.ccAddresses = [];
102706
+ if (options.defaults) {
102707
+ object.spanContext = "";
102708
+ object.toAddress = "";
102709
+ object.orderId = "";
102710
+ object.eventName = "";
102711
+ object.amount = 0;
102712
+ object.currency = "";
102713
+ object.reason = "";
102714
+ object.status = "";
102715
+ object.customerName = "";
102716
+ object.dueBy = 0;
102717
+ object.isClosed = false;
102718
+ object.ordersUrl = "";
102719
+ object.orgName = "";
102720
+ object.disputeId = "";
102721
+ object.livemode = false;
102722
+ }
102723
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
102724
+ object.spanContext = message.spanContext;
102725
+ if (message.toAddress != null && message.hasOwnProperty("toAddress"))
102726
+ object.toAddress = message.toAddress;
102727
+ if (message.orderId != null && message.hasOwnProperty("orderId"))
102728
+ object.orderId = message.orderId;
102729
+ if (message.eventName != null && message.hasOwnProperty("eventName"))
102730
+ object.eventName = message.eventName;
102731
+ if (message.amount != null && message.hasOwnProperty("amount"))
102732
+ object.amount = message.amount;
102733
+ if (message.currency != null && message.hasOwnProperty("currency"))
102734
+ object.currency = message.currency;
102735
+ if (message.reason != null && message.hasOwnProperty("reason"))
102736
+ object.reason = message.reason;
102737
+ if (message.status != null && message.hasOwnProperty("status"))
102738
+ object.status = message.status;
102739
+ if (message.customerName != null && message.hasOwnProperty("customerName"))
102740
+ object.customerName = message.customerName;
102741
+ if (message.dueBy != null && message.hasOwnProperty("dueBy"))
102742
+ object.dueBy = message.dueBy;
102743
+ if (message.isClosed != null && message.hasOwnProperty("isClosed"))
102744
+ object.isClosed = message.isClosed;
102745
+ if (message.ordersUrl != null && message.hasOwnProperty("ordersUrl"))
102746
+ object.ordersUrl = message.ordersUrl;
102747
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
102748
+ object.orgName = message.orgName;
102749
+ if (message.disputeId != null && message.hasOwnProperty("disputeId"))
102750
+ object.disputeId = message.disputeId;
102751
+ if (message.livemode != null && message.hasOwnProperty("livemode"))
102752
+ object.livemode = message.livemode;
102753
+ if (message.ccAddresses && message.ccAddresses.length) {
102754
+ object.ccAddresses = [];
102755
+ for (var j = 0; j < message.ccAddresses.length; ++j)
102756
+ object.ccAddresses[j] = message.ccAddresses[j];
102757
+ }
102758
+ return object;
102759
+ };
102760
+
102761
+ /**
102762
+ * Converts this QueueChargebackEmailRequest to JSON.
102763
+ * @function toJSON
102764
+ * @memberof QueueChargebackEmailRequest
102765
+ * @instance
102766
+ * @returns {Object.<string,*>} JSON object
102767
+ */
102768
+ QueueChargebackEmailRequest.prototype.toJSON = function toJSON() {
102769
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
102770
+ };
102771
+
102772
+ return QueueChargebackEmailRequest;
102773
+ })();
102774
+
100926
102775
  $root.EmailService = (function() {
100927
102776
 
100928
102777
  /**
@@ -101615,6 +103464,39 @@ $root.EmailService = (function() {
101615
103464
  * @variation 2
101616
103465
  */
101617
103466
 
103467
+ /**
103468
+ * Callback as used by {@link EmailService#queueChargebackEmail}.
103469
+ * @memberof EmailService
103470
+ * @typedef queueChargebackEmailCallback
103471
+ * @type {function}
103472
+ * @param {Error|null} error Error, if any
103473
+ * @param {google.protobuf.Empty} [response] Empty
103474
+ */
103475
+
103476
+ /**
103477
+ * Calls queueChargebackEmail.
103478
+ * @function queueChargebackEmail
103479
+ * @memberof EmailService
103480
+ * @instance
103481
+ * @param {IQueueChargebackEmailRequest} request QueueChargebackEmailRequest message or plain object
103482
+ * @param {EmailService.queueChargebackEmailCallback} callback Node-style callback called with the error, if any, and Empty
103483
+ * @returns {undefined}
103484
+ * @variation 1
103485
+ */
103486
+ Object.defineProperty(EmailService.prototype.queueChargebackEmail = function queueChargebackEmail(request, callback) {
103487
+ return this.rpcCall(queueChargebackEmail, $root.QueueChargebackEmailRequest, $root.google.protobuf.Empty, request, callback);
103488
+ }, "name", { value: "queueChargebackEmail" });
103489
+
103490
+ /**
103491
+ * Calls queueChargebackEmail.
103492
+ * @function queueChargebackEmail
103493
+ * @memberof EmailService
103494
+ * @instance
103495
+ * @param {IQueueChargebackEmailRequest} request QueueChargebackEmailRequest message or plain object
103496
+ * @returns {Promise<google.protobuf.Empty>} Promise
103497
+ * @variation 2
103498
+ */
103499
+
101618
103500
  return EmailService;
101619
103501
  })();
101620
103502