@headspace/protos-events 1.25.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +10 -10
- package/lib/index.js +30 -30
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -903,11 +903,17 @@ export namespace subscription {
|
|
|
903
903
|
public toJSON(): { [k: string]: any };
|
|
904
904
|
}
|
|
905
905
|
|
|
906
|
+
/** PaymentMethodStatus enum. */
|
|
907
|
+
enum PaymentMethodStatus {
|
|
908
|
+
ACTIVE = 0,
|
|
909
|
+
CLOSED = 1
|
|
910
|
+
}
|
|
911
|
+
|
|
906
912
|
/** Properties of a PaymentMethod. */
|
|
907
913
|
interface IPaymentMethod {
|
|
908
914
|
|
|
909
|
-
/** PaymentMethod
|
|
910
|
-
|
|
915
|
+
/** PaymentMethod paymentMethodStatus */
|
|
916
|
+
paymentMethodStatus?: (subscription.PaymentMethodStatus|null);
|
|
911
917
|
}
|
|
912
918
|
|
|
913
919
|
/** Represents a PaymentMethod. */
|
|
@@ -919,8 +925,8 @@ export namespace subscription {
|
|
|
919
925
|
*/
|
|
920
926
|
constructor(properties?: subscription.IPaymentMethod);
|
|
921
927
|
|
|
922
|
-
/** PaymentMethod
|
|
923
|
-
public
|
|
928
|
+
/** PaymentMethod paymentMethodStatus. */
|
|
929
|
+
public paymentMethodStatus: subscription.PaymentMethodStatus;
|
|
924
930
|
|
|
925
931
|
/**
|
|
926
932
|
* Creates a new PaymentMethod instance using the specified properties.
|
|
@@ -993,12 +999,6 @@ export namespace subscription {
|
|
|
993
999
|
public toJSON(): { [k: string]: any };
|
|
994
1000
|
}
|
|
995
1001
|
|
|
996
|
-
/** PaymentMethodStatus enum. */
|
|
997
|
-
enum PaymentMethodStatus {
|
|
998
|
-
ACTIVE = 0,
|
|
999
|
-
CLOSED = 1
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
1002
|
/** Properties of a Plan. */
|
|
1003
1003
|
interface IPlan {
|
|
1004
1004
|
|
package/lib/index.js
CHANGED
|
@@ -1995,13 +1995,27 @@ $root.subscription = (function() {
|
|
|
1995
1995
|
return UserSubscriptionResponse;
|
|
1996
1996
|
})();
|
|
1997
1997
|
|
|
1998
|
+
/**
|
|
1999
|
+
* PaymentMethodStatus enum.
|
|
2000
|
+
* @name subscription.PaymentMethodStatus
|
|
2001
|
+
* @enum {string}
|
|
2002
|
+
* @property {number} ACTIVE=0 ACTIVE value
|
|
2003
|
+
* @property {number} CLOSED=1 CLOSED value
|
|
2004
|
+
*/
|
|
2005
|
+
subscription.PaymentMethodStatus = (function() {
|
|
2006
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2007
|
+
values[valuesById[0] = "ACTIVE"] = 0;
|
|
2008
|
+
values[valuesById[1] = "CLOSED"] = 1;
|
|
2009
|
+
return values;
|
|
2010
|
+
})();
|
|
2011
|
+
|
|
1998
2012
|
subscription.PaymentMethod = (function() {
|
|
1999
2013
|
|
|
2000
2014
|
/**
|
|
2001
2015
|
* Properties of a PaymentMethod.
|
|
2002
2016
|
* @memberof subscription
|
|
2003
2017
|
* @interface IPaymentMethod
|
|
2004
|
-
* @property {subscription.PaymentMethodStatus|null} [
|
|
2018
|
+
* @property {subscription.PaymentMethodStatus|null} [paymentMethodStatus] PaymentMethod paymentMethodStatus
|
|
2005
2019
|
*/
|
|
2006
2020
|
|
|
2007
2021
|
/**
|
|
@@ -2020,12 +2034,12 @@ $root.subscription = (function() {
|
|
|
2020
2034
|
}
|
|
2021
2035
|
|
|
2022
2036
|
/**
|
|
2023
|
-
* PaymentMethod
|
|
2024
|
-
* @member {subscription.PaymentMethodStatus}
|
|
2037
|
+
* PaymentMethod paymentMethodStatus.
|
|
2038
|
+
* @member {subscription.PaymentMethodStatus} paymentMethodStatus
|
|
2025
2039
|
* @memberof subscription.PaymentMethod
|
|
2026
2040
|
* @instance
|
|
2027
2041
|
*/
|
|
2028
|
-
PaymentMethod.prototype.
|
|
2042
|
+
PaymentMethod.prototype.paymentMethodStatus = 0;
|
|
2029
2043
|
|
|
2030
2044
|
/**
|
|
2031
2045
|
* Creates a new PaymentMethod instance using the specified properties.
|
|
@@ -2051,8 +2065,8 @@ $root.subscription = (function() {
|
|
|
2051
2065
|
PaymentMethod.encode = function encode(message, writer) {
|
|
2052
2066
|
if (!writer)
|
|
2053
2067
|
writer = $Writer.create();
|
|
2054
|
-
if (message.
|
|
2055
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.
|
|
2068
|
+
if (message.paymentMethodStatus != null && message.hasOwnProperty("paymentMethodStatus"))
|
|
2069
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.paymentMethodStatus);
|
|
2056
2070
|
return writer;
|
|
2057
2071
|
};
|
|
2058
2072
|
|
|
@@ -2088,7 +2102,7 @@ $root.subscription = (function() {
|
|
|
2088
2102
|
var tag = reader.uint32();
|
|
2089
2103
|
switch (tag >>> 3) {
|
|
2090
2104
|
case 1:
|
|
2091
|
-
message.
|
|
2105
|
+
message.paymentMethodStatus = reader.int32();
|
|
2092
2106
|
break;
|
|
2093
2107
|
default:
|
|
2094
2108
|
reader.skipType(tag & 7);
|
|
@@ -2125,10 +2139,10 @@ $root.subscription = (function() {
|
|
|
2125
2139
|
PaymentMethod.verify = function verify(message) {
|
|
2126
2140
|
if (typeof message !== "object" || message === null)
|
|
2127
2141
|
return "object expected";
|
|
2128
|
-
if (message.
|
|
2129
|
-
switch (message.
|
|
2142
|
+
if (message.paymentMethodStatus != null && message.hasOwnProperty("paymentMethodStatus"))
|
|
2143
|
+
switch (message.paymentMethodStatus) {
|
|
2130
2144
|
default:
|
|
2131
|
-
return "
|
|
2145
|
+
return "paymentMethodStatus: enum value expected";
|
|
2132
2146
|
case 0:
|
|
2133
2147
|
case 1:
|
|
2134
2148
|
break;
|
|
@@ -2148,14 +2162,14 @@ $root.subscription = (function() {
|
|
|
2148
2162
|
if (object instanceof $root.subscription.PaymentMethod)
|
|
2149
2163
|
return object;
|
|
2150
2164
|
var message = new $root.subscription.PaymentMethod();
|
|
2151
|
-
switch (object.
|
|
2165
|
+
switch (object.paymentMethodStatus) {
|
|
2152
2166
|
case "ACTIVE":
|
|
2153
2167
|
case 0:
|
|
2154
|
-
message.
|
|
2168
|
+
message.paymentMethodStatus = 0;
|
|
2155
2169
|
break;
|
|
2156
2170
|
case "CLOSED":
|
|
2157
2171
|
case 1:
|
|
2158
|
-
message.
|
|
2172
|
+
message.paymentMethodStatus = 1;
|
|
2159
2173
|
break;
|
|
2160
2174
|
}
|
|
2161
2175
|
return message;
|
|
@@ -2175,9 +2189,9 @@ $root.subscription = (function() {
|
|
|
2175
2189
|
options = {};
|
|
2176
2190
|
var object = {};
|
|
2177
2191
|
if (options.defaults)
|
|
2178
|
-
object.
|
|
2179
|
-
if (message.
|
|
2180
|
-
object.
|
|
2192
|
+
object.paymentMethodStatus = options.enums === String ? "ACTIVE" : 0;
|
|
2193
|
+
if (message.paymentMethodStatus != null && message.hasOwnProperty("paymentMethodStatus"))
|
|
2194
|
+
object.paymentMethodStatus = options.enums === String ? $root.subscription.PaymentMethodStatus[message.paymentMethodStatus] : message.paymentMethodStatus;
|
|
2181
2195
|
return object;
|
|
2182
2196
|
};
|
|
2183
2197
|
|
|
@@ -2195,20 +2209,6 @@ $root.subscription = (function() {
|
|
|
2195
2209
|
return PaymentMethod;
|
|
2196
2210
|
})();
|
|
2197
2211
|
|
|
2198
|
-
/**
|
|
2199
|
-
* PaymentMethodStatus enum.
|
|
2200
|
-
* @name subscription.PaymentMethodStatus
|
|
2201
|
-
* @enum {string}
|
|
2202
|
-
* @property {number} ACTIVE=0 ACTIVE value
|
|
2203
|
-
* @property {number} CLOSED=1 CLOSED value
|
|
2204
|
-
*/
|
|
2205
|
-
subscription.PaymentMethodStatus = (function() {
|
|
2206
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
2207
|
-
values[valuesById[0] = "ACTIVE"] = 0;
|
|
2208
|
-
values[valuesById[1] = "CLOSED"] = 1;
|
|
2209
|
-
return values;
|
|
2210
|
-
})();
|
|
2211
|
-
|
|
2212
2212
|
subscription.Plan = (function() {
|
|
2213
2213
|
|
|
2214
2214
|
/**
|
package/package.json
CHANGED