@pushwoosh/rpc-gateway-payment-data 0.2.233 → 0.2.235

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/commonTypes.d.ts CHANGED
@@ -1 +1,22 @@
1
1
  export type Duration = number;
2
+ /** Arbitrary JSON value (google.protobuf.Value). */
3
+ export type JsonValue = string | number | boolean | null | JsonValue[] | {
4
+ [key: string]: JsonValue;
5
+ };
6
+ /** Arbitrary JSON object (google.protobuf.Struct). */
7
+ export type JsonObject = {
8
+ [key: string]: JsonValue;
9
+ };
10
+ /** Per-call options accepted by every method. */
11
+ export type RpcCallOptions = {
12
+ signal?: AbortSignal;
13
+ };
14
+ export type RpcMethod<Req, Res> = ((request: Req, options?: RpcCallOptions) => Promise<Res>) & {
15
+ safe(request: Req, options?: RpcCallOptions): Promise<[{
16
+ error: unknown;
17
+ }, null] | [null, Res]>;
18
+ };
19
+ export type RpcMethodV3<Req, Res, Err> = ((request: Req, options?: RpcCallOptions) => Promise<Res>) & {
20
+ safe(request: Req, options?: RpcCallOptions): Promise<[Err, null] | [null, Res]>;
21
+ parseError(e: unknown): Err;
22
+ };
package/google_type.d.ts CHANGED
@@ -1,5 +1,19 @@
1
+ /** Represents an amount of money with its currency type. */
1
2
  export type Money = {
3
+ /** The three-letter currency code defined in ISO 4217. */
2
4
  currencyCode: string;
5
+ /**
6
+ * The whole units of the amount.
7
+ * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
8
+ */
3
9
  units: number;
10
+ /**
11
+ * Number of nano (10^-9) units of the amount.
12
+ * The value must be between -999,999,999 and +999,999,999 inclusive.
13
+ * If `units` is positive, `nanos` must be positive or zero.
14
+ * If `units` is zero, `nanos` can be positive, zero, or negative.
15
+ * If `units` is negative, `nanos` must be negative or zero.
16
+ * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
17
+ */
4
18
  nanos: number;
5
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-payment-data",
3
- "version": "0.2.233",
3
+ "version": "0.2.235",
4
4
  "description": "Payment processor api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1,32 +1,60 @@
1
+ import { RpcMethod } from './commonTypes';
1
2
  import { Money as google_type_Money } from './google_type';
3
+ export type PaymentProcessorServicePrivate_GetPaymentHistory = RpcMethod<GetPaymentHistoryRequest, GetPaymentHistoryResponse>;
4
+ export type PaymentProcessorServicePrivate_GetNextEstimatedInvoice = RpcMethod<GetNextEstimatedInvoiceRequest, GetNextEstimatedInvoiceResponse>;
5
+ export type PaymentProcessorServicePrivate_CancelSubscription = RpcMethod<CancelSubscriptionRequest, CancelSubscriptionResponse>;
6
+ export type PaymentProcessorServicePrivate_GetSellerCommission = RpcMethod<GetSellerCommissionRequest, GetSellerCommissionResponse>;
7
+ export type PaymentProcessorServicePrivate_GetAccountCounters = RpcMethod<GetAccountCountersRequest, GetAccountCountersResponse>;
8
+ export type PaymentProcessorServicePrivate_PayInvoice = RpcMethod<PayInvoiceRequest, PayInvoiceResponse>;
9
+ export type PaymentProcessorServicePrivate_RebuildInvoice = RpcMethod<RebuildInvoiceRequest, RebuildInvoiceResponse>;
10
+ export type PaymentProcessorServicePrivate_GetXeroContact = RpcMethod<GetXeroContactRequest, GetXeroContactResponse>;
11
+ export type PaymentProcessorServicePrivate_ApproveInvoice = RpcMethod<ApproveInvoiceRequest, ApproveInvoiceResponse>;
12
+ export type PaymentProcessorServicePrivate_RefundInvoice = RpcMethod<RefundInvoiceRequest, RefundInvoiceResponse>;
13
+ export type PaymentProcessorServicePrivate_CreateDraftSubscription = RpcMethod<CreateDraftSubscriptionRequest, CreateDraftSubscriptionResponse>;
14
+ export type PaymentProcessorServicePrivate_ActivateDraftSubscription = RpcMethod<ActivateDraftSubscriptionRequest, ActivateDraftSubscriptionResponse>;
15
+ export type PaymentProcessorServicePrivate_DeleteDraftSubscription = RpcMethod<DeleteDraftSubscriptionRequest, DeleteDraftSubscriptionResponse>;
16
+ export type PaymentProcessorServicePrivate_GetEmailStatisticCount = RpcMethod<GetEmailStatisticCountRequest, GetEmailStatisticCountResponse>;
17
+ export type PaymentProcessorServicePrivate_GetActiveDevicesCount = RpcMethod<GetActiveDevicesCountRequest, GetActiveDevicesCountResponse>;
18
+ export type PaymentProcessorServicePrivate_GetSubscribersCount = RpcMethod<GetSubscribersCountRequest, GetSubscribersCountResponse>;
19
+ export type PaymentProcessorServicePrivate_GetActiveUsersCount = RpcMethod<GetActiveUsersCountRequest, GetActiveUsersCountResponse>;
20
+ export type PaymentProcessorServicePrivate_GetTotalEmailSubscribersCount = RpcMethod<GetTotalEmailSubscribersCountRequest, GetTotalEmailSubscribersCountResponse>;
21
+ export type PaymentProcessorServicePrivate_GetEmailMAU = RpcMethod<GetEmailMAURequest, GetEmailMAUResponse>;
22
+ export type PaymentProcessorServicePrivate_GetUnifiedMAU = RpcMethod<GetUnifiedMAURequest, GetUnifiedMAUResponse>;
23
+ export type PaymentProcessorServicePrivate_GetAccountsWithSubButNoInvoice = RpcMethod<GetAccountsWithSubButNoInvoiceRequest, GetAccountsWithSubButNoInvoiceResponse>;
24
+ export type PaymentProcessorServicePrivate_GetAIAssistantRequestsUsage = RpcMethod<GetAIAssistantRequestsUsageRequest, GetAIAssistantRequestsUsageResponse>;
25
+ export type PaymentProcessorServicePrivate_CreateShopifySubscription = RpcMethod<CreateShopifySubscriptionRequest, CreateShopifySubscriptionResponse>;
26
+ export type PaymentProcessorServicePrivate_RevenueStream = RpcMethod<RevenueStreamRequest, RevenueStreamResponse>;
27
+ export type PaymentProcessorServicePrivate_GetMRR = RpcMethod<GetMRRRequest, GetMRRResponse>;
28
+ export type PaymentProcessorServicePrivate_ChargeAccountTokenWallet = RpcMethod<ChargeAccountTokenWalletRequest, ChargeAccountTokenWalletResponse>;
29
+ export type PaymentProcessorServicePrivate_GetAccountTokenWalletUsageAllowed = RpcMethod<GetAccountTokenWalletUsageAllowedRequest, GetAccountTokenWalletUsageAllowedResponse>;
2
30
  export interface PaymentProcessorServicePrivate {
3
- GetPaymentHistory(request: GetPaymentHistoryRequest): Promise<GetPaymentHistoryResponse>;
4
- GetNextEstimatedInvoice(request: GetNextEstimatedInvoiceRequest): Promise<GetNextEstimatedInvoiceResponse>;
5
- CancelSubscription(request: CancelSubscriptionRequest): Promise<CancelSubscriptionResponse>;
6
- GetSellerCommission(request: GetSellerCommissionRequest): Promise<GetSellerCommissionResponse>;
7
- GetAccountCounters(request: GetAccountCountersRequest): Promise<GetAccountCountersResponse>;
8
- PayInvoice(request: PayInvoiceRequest): Promise<PayInvoiceResponse>;
9
- RebuildInvoice(request: RebuildInvoiceRequest): Promise<RebuildInvoiceResponse>;
10
- GetXeroContact(request: GetXeroContactRequest): Promise<GetXeroContactResponse>;
11
- ApproveInvoice(request: ApproveInvoiceRequest): Promise<ApproveInvoiceResponse>;
12
- RefundInvoice(request: RefundInvoiceRequest): Promise<RefundInvoiceResponse>;
13
- CreateDraftSubscription(request: CreateDraftSubscriptionRequest): Promise<CreateDraftSubscriptionResponse>;
14
- ActivateDraftSubscription(request: ActivateDraftSubscriptionRequest): Promise<ActivateDraftSubscriptionResponse>;
15
- DeleteDraftSubscription(request: DeleteDraftSubscriptionRequest): Promise<DeleteDraftSubscriptionResponse>;
16
- GetEmailStatisticCount(request: GetEmailStatisticCountRequest): Promise<GetEmailStatisticCountResponse>;
17
- GetActiveDevicesCount(request: GetActiveDevicesCountRequest): Promise<GetActiveDevicesCountResponse>;
18
- GetSubscribersCount(request: GetSubscribersCountRequest): Promise<GetSubscribersCountResponse>;
19
- GetActiveUsersCount(request: GetActiveUsersCountRequest): Promise<GetActiveUsersCountResponse>;
20
- GetTotalEmailSubscribersCount(request: GetTotalEmailSubscribersCountRequest): Promise<GetTotalEmailSubscribersCountResponse>;
21
- GetEmailMAU(request: GetEmailMAURequest): Promise<GetEmailMAUResponse>;
22
- GetUnifiedMAU(request: GetUnifiedMAURequest): Promise<GetUnifiedMAUResponse>;
23
- GetAccountsWithSubButNoInvoice(request: GetAccountsWithSubButNoInvoiceRequest): Promise<GetAccountsWithSubButNoInvoiceResponse>;
24
- GetAIAssistantRequestsUsage(request: GetAIAssistantRequestsUsageRequest): Promise<GetAIAssistantRequestsUsageResponse>;
25
- CreateShopifySubscription(request: CreateShopifySubscriptionRequest): Promise<CreateShopifySubscriptionResponse>;
26
- RevenueStream(request: RevenueStreamRequest): Promise<RevenueStreamResponse>;
27
- GetMRR(request: GetMRRRequest): Promise<GetMRRResponse>;
28
- ChargeAccountTokenWallet(request: ChargeAccountTokenWalletRequest): Promise<ChargeAccountTokenWalletResponse>;
29
- GetAccountTokenWalletUsageAllowed(request: GetAccountTokenWalletUsageAllowedRequest): Promise<GetAccountTokenWalletUsageAllowedResponse>;
31
+ GetPaymentHistory: PaymentProcessorServicePrivate_GetPaymentHistory;
32
+ GetNextEstimatedInvoice: PaymentProcessorServicePrivate_GetNextEstimatedInvoice;
33
+ CancelSubscription: PaymentProcessorServicePrivate_CancelSubscription;
34
+ GetSellerCommission: PaymentProcessorServicePrivate_GetSellerCommission;
35
+ GetAccountCounters: PaymentProcessorServicePrivate_GetAccountCounters;
36
+ PayInvoice: PaymentProcessorServicePrivate_PayInvoice;
37
+ RebuildInvoice: PaymentProcessorServicePrivate_RebuildInvoice;
38
+ GetXeroContact: PaymentProcessorServicePrivate_GetXeroContact;
39
+ ApproveInvoice: PaymentProcessorServicePrivate_ApproveInvoice;
40
+ RefundInvoice: PaymentProcessorServicePrivate_RefundInvoice;
41
+ CreateDraftSubscription: PaymentProcessorServicePrivate_CreateDraftSubscription;
42
+ ActivateDraftSubscription: PaymentProcessorServicePrivate_ActivateDraftSubscription;
43
+ DeleteDraftSubscription: PaymentProcessorServicePrivate_DeleteDraftSubscription;
44
+ GetEmailStatisticCount: PaymentProcessorServicePrivate_GetEmailStatisticCount;
45
+ GetActiveDevicesCount: PaymentProcessorServicePrivate_GetActiveDevicesCount;
46
+ GetSubscribersCount: PaymentProcessorServicePrivate_GetSubscribersCount;
47
+ GetActiveUsersCount: PaymentProcessorServicePrivate_GetActiveUsersCount;
48
+ GetTotalEmailSubscribersCount: PaymentProcessorServicePrivate_GetTotalEmailSubscribersCount;
49
+ GetEmailMAU: PaymentProcessorServicePrivate_GetEmailMAU;
50
+ GetUnifiedMAU: PaymentProcessorServicePrivate_GetUnifiedMAU;
51
+ GetAccountsWithSubButNoInvoice: PaymentProcessorServicePrivate_GetAccountsWithSubButNoInvoice;
52
+ GetAIAssistantRequestsUsage: PaymentProcessorServicePrivate_GetAIAssistantRequestsUsage;
53
+ CreateShopifySubscription: PaymentProcessorServicePrivate_CreateShopifySubscription;
54
+ RevenueStream: PaymentProcessorServicePrivate_RevenueStream;
55
+ GetMRR: PaymentProcessorServicePrivate_GetMRR;
56
+ ChargeAccountTokenWallet: PaymentProcessorServicePrivate_ChargeAccountTokenWallet;
57
+ GetAccountTokenWalletUsageAllowed: PaymentProcessorServicePrivate_GetAccountTokenWalletUsageAllowed;
30
58
  }
31
59
  export type GetAccountsWithSubButNoInvoiceRequest = {};
32
60
  export type GetAccountsWithSubButNoInvoiceResponse = {
@@ -53,6 +81,7 @@ export type CreateDraftSubscriptionRequest = {
53
81
  firstBillingDate?: Date;
54
82
  dueDateDays?: number;
55
83
  currency?: string;
84
+ /** shift invoice generation date by due days */
56
85
  dueDateShift?: boolean;
57
86
  };
58
87
  export type CreateDraftSubscriptionResponse = {
@@ -96,6 +125,7 @@ export type GetSellerCommissionResponse = {
96
125
  commissions: GetSellerCommissionResponse_Commission[];
97
126
  };
98
127
  export type GetEmailStatisticCountRequest = {
128
+ /** only for billing usage, optional */
99
129
  dateFrom?: Date;
100
130
  dateTo?: Date;
101
131
  };
@@ -107,9 +137,11 @@ export type GetEmailStatisticCountResponse = {
107
137
  freeEmailQuota: number;
108
138
  freeEmailLimit: number;
109
139
  billingMonthEmailSendsStat: number;
140
+ /** calculates only if date in request given */
110
141
  requestDateEmailStat: number;
111
142
  };
112
143
  export type GetActiveDevicesCountRequest = {
144
+ /** only for billing usage, optional */
113
145
  dateFrom?: Date;
114
146
  dateTo?: Date;
115
147
  };
@@ -117,6 +149,7 @@ export type GetActiveDevicesCountResponse = {
117
149
  monthlyActiveDevices: number;
118
150
  calendarMonthlyActiveDevices: number;
119
151
  previousMonthActiveDevices: number;
152
+ /** calculates only if date in request given */
120
153
  requestDateActiveDevices: number;
121
154
  };
122
155
  export type GetSubscribersCountRequest = {
@@ -129,6 +162,7 @@ export type GetSubscribersCountResponse = {
129
162
  pushDisabled: number;
130
163
  };
131
164
  export type GetActiveUsersCountRequest = {
165
+ /** only for billing usage, optional */
132
166
  dateFrom?: Date;
133
167
  dateTo?: Date;
134
168
  };
@@ -136,20 +170,26 @@ export type GetActiveUsersCountResponse = {
136
170
  monthlyActiveUsers: number;
137
171
  calendarMonthlyActiveUsers: number;
138
172
  previousMonthActiveUsers: number;
173
+ /** calculates only if date in request given */
139
174
  requestDateActiveUsers: number;
140
175
  };
141
176
  export type GetActiveUsersCountV2Request = {
177
+ /** only for billing usage, optional */
142
178
  dateFrom: Date;
143
179
  dateTo: Date;
144
180
  };
145
181
  export type GetActiveUsersCountV2Response = {
182
+ /** both with tokens and without */
146
183
  monthlyActiveUsers: number;
147
184
  calendarMonthlyActiveUsers: number;
148
185
  previousMonthActiveUsers: number;
186
+ /** calculates only if date in request given */
149
187
  requestDateActiveUsers: number;
188
+ /** only with tokens */
150
189
  monthlyActiveUsersWithTokens: number;
151
190
  calendarMonthlyActiveUsersWithTokens: number;
152
191
  previousMonthActiveUsersWithTokens: number;
192
+ /** calculates only if date in request given */
153
193
  requestDateActiveUsersWithTokens: number;
154
194
  };
155
195
  export type GetTotalEmailSubscribersCountRequest = {};
@@ -216,6 +256,7 @@ export type ChargeAccountTokenWalletRequest_ChargeUnit = {
216
256
  model: string;
217
257
  tokenType: string;
218
258
  value: number;
259
+ /** metadata information */
219
260
  messageId: number;
220
261
  chatId: number;
221
262
  applicationId: number;
@@ -230,31 +271,54 @@ export type ChargeAccountTokenWalletResponse = {
230
271
  export type GetAccountTokenWalletUsageAllowedRequest = {};
231
272
  export type GetAccountTokenWalletUsageAllowedResponse = {
232
273
  allowed: boolean;
274
+ /** always empty if allowed == true */
233
275
  reason: string;
234
276
  };
277
+ export type PaymentProcessorService_GetPaymentHistory = RpcMethod<GetPaymentHistoryRequest, GetPaymentHistoryResponse>;
278
+ export type PaymentProcessorService_ListPaymentMethods = RpcMethod<ListPaymentMethodsRequest, ListPaymentMethodsResponse>;
279
+ export type PaymentProcessorService_DeletePaymentMethod = RpcMethod<DeletePaymentMethodRequest, DeletePaymentMethodResponse>;
280
+ export type PaymentProcessorService_SavePaypal = RpcMethod<SavePaypalRequest, SavePaypalResponse>;
281
+ export type PaymentProcessorService_SaveCard = RpcMethod<SaveCardRequest, SaveCardResponse>;
282
+ export type PaymentProcessorService_SaveDefaultPaymentMethod = RpcMethod<SaveDefaultPaymentMethodRequest, SaveDefaultPaymentMethodResponse>;
283
+ export type PaymentProcessorService_GetEstimatedSubscription = RpcMethod<GetEstimatedSubscriptionRequest, GetEstimatedSubscriptionResponse>;
284
+ export type PaymentProcessorService_CreateSubscription = RpcMethod<CreateSubscriptionRequest, CreateSubscriptionResponse>;
285
+ export type PaymentProcessorService_CancelSubscription = RpcMethod<CancelSubscriptionRequest, CancelSubscriptionResponse>;
286
+ export type PaymentProcessorService_GetNextEstimatedInvoice = RpcMethod<GetNextEstimatedInvoiceRequest, GetNextEstimatedInvoiceResponse>;
287
+ export type PaymentProcessorService_PayInvoice = RpcMethod<PayInvoiceRequest, PayInvoiceResponse>;
288
+ export type PaymentProcessorService_ChangeFreeSubscription = RpcMethod<ChangeFreeSubscriptionRequest, ChangeFreeSubscriptionResponse>;
289
+ export type PaymentProcessorService_GetFreeSubscription = RpcMethod<GetFreeSubscriptionRequest, GetFreeSubscriptionResponse>;
290
+ export type PaymentProcessorService_GetCountries = RpcMethod<GetCountriesRequest, GetCountriesResponse>;
291
+ export type PaymentProcessorService_GetRegions = RpcMethod<GetRegionsRequest, GetRegionsResponse>;
292
+ export type PaymentProcessorService_GetAccountCounters = RpcMethod<GetAccountCountersRequest, GetAccountCountersResponse>;
293
+ export type PaymentProcessorService_GetAIAssistantRequestsUsage = RpcMethod<GetAIAssistantRequestsUsageRequest, GetAIAssistantRequestsUsageResponse>;
294
+ export type PaymentProcessorService_XeroLogin = RpcMethod<XeroLoginRequest, XeroLoginResponse>;
295
+ export type PaymentProcessorService_XeroCallback = RpcMethod<XeroCallbackRequest, XeroCallbackResponse>;
296
+ export type PaymentProcessorService_GetAccountTokenWallet = RpcMethod<GetAccountTokenWalletRequest, GetAccountTokenWalletResponse>;
297
+ export type PaymentProcessorService_UpdateAccountTokenWallet = RpcMethod<UpdateAccountTokenWalletRequest, UpdateAccountTokenWalletResponse>;
298
+ export type PaymentProcessorService_AccountTokenWalletPayment = RpcMethod<AccountTokenWalletPaymentRequest, AccountTokenWalletPaymentResponse>;
235
299
  export interface PaymentProcessorService {
236
- GetPaymentHistory(request: GetPaymentHistoryRequest): Promise<GetPaymentHistoryResponse>;
237
- ListPaymentMethods(request: ListPaymentMethodsRequest): Promise<ListPaymentMethodsResponse>;
238
- DeletePaymentMethod(request: DeletePaymentMethodRequest): Promise<DeletePaymentMethodResponse>;
239
- SavePaypal(request: SavePaypalRequest): Promise<SavePaypalResponse>;
240
- SaveCard(request: SaveCardRequest): Promise<SaveCardResponse>;
241
- SaveDefaultPaymentMethod(request: SaveDefaultPaymentMethodRequest): Promise<SaveDefaultPaymentMethodResponse>;
242
- GetEstimatedSubscription(request: GetEstimatedSubscriptionRequest): Promise<GetEstimatedSubscriptionResponse>;
243
- CreateSubscription(request: CreateSubscriptionRequest): Promise<CreateSubscriptionResponse>;
244
- CancelSubscription(request: CancelSubscriptionRequest): Promise<CancelSubscriptionResponse>;
245
- GetNextEstimatedInvoice(request: GetNextEstimatedInvoiceRequest): Promise<GetNextEstimatedInvoiceResponse>;
246
- PayInvoice(request: PayInvoiceRequest): Promise<PayInvoiceResponse>;
247
- ChangeFreeSubscription(request: ChangeFreeSubscriptionRequest): Promise<ChangeFreeSubscriptionResponse>;
248
- GetFreeSubscription(request: GetFreeSubscriptionRequest): Promise<GetFreeSubscriptionResponse>;
249
- GetCountries(request: GetCountriesRequest): Promise<GetCountriesResponse>;
250
- GetRegions(request: GetRegionsRequest): Promise<GetRegionsResponse>;
251
- GetAccountCounters(request: GetAccountCountersRequest): Promise<GetAccountCountersResponse>;
252
- GetAIAssistantRequestsUsage(request: GetAIAssistantRequestsUsageRequest): Promise<GetAIAssistantRequestsUsageResponse>;
253
- XeroLogin(request: XeroLoginRequest): Promise<XeroLoginResponse>;
254
- XeroCallback(request: XeroCallbackRequest): Promise<XeroCallbackResponse>;
255
- GetAccountTokenWallet(request: GetAccountTokenWalletRequest): Promise<GetAccountTokenWalletResponse>;
256
- UpdateAccountTokenWallet(request: UpdateAccountTokenWalletRequest): Promise<UpdateAccountTokenWalletResponse>;
257
- AccountTokenWalletPayment(request: AccountTokenWalletPaymentRequest): Promise<AccountTokenWalletPaymentResponse>;
300
+ GetPaymentHistory: PaymentProcessorService_GetPaymentHistory;
301
+ ListPaymentMethods: PaymentProcessorService_ListPaymentMethods;
302
+ DeletePaymentMethod: PaymentProcessorService_DeletePaymentMethod;
303
+ SavePaypal: PaymentProcessorService_SavePaypal;
304
+ SaveCard: PaymentProcessorService_SaveCard;
305
+ SaveDefaultPaymentMethod: PaymentProcessorService_SaveDefaultPaymentMethod;
306
+ GetEstimatedSubscription: PaymentProcessorService_GetEstimatedSubscription;
307
+ CreateSubscription: PaymentProcessorService_CreateSubscription;
308
+ CancelSubscription: PaymentProcessorService_CancelSubscription;
309
+ GetNextEstimatedInvoice: PaymentProcessorService_GetNextEstimatedInvoice;
310
+ PayInvoice: PaymentProcessorService_PayInvoice;
311
+ ChangeFreeSubscription: PaymentProcessorService_ChangeFreeSubscription;
312
+ GetFreeSubscription: PaymentProcessorService_GetFreeSubscription;
313
+ GetCountries: PaymentProcessorService_GetCountries;
314
+ GetRegions: PaymentProcessorService_GetRegions;
315
+ GetAccountCounters: PaymentProcessorService_GetAccountCounters;
316
+ GetAIAssistantRequestsUsage: PaymentProcessorService_GetAIAssistantRequestsUsage;
317
+ XeroLogin: PaymentProcessorService_XeroLogin;
318
+ XeroCallback: PaymentProcessorService_XeroCallback;
319
+ GetAccountTokenWallet: PaymentProcessorService_GetAccountTokenWallet;
320
+ UpdateAccountTokenWallet: PaymentProcessorService_UpdateAccountTokenWallet;
321
+ AccountTokenWalletPayment: PaymentProcessorService_AccountTokenWalletPayment;
258
322
  }
259
323
  export type GetPaymentHistoryRequest = {};
260
324
  export type Payment = {
@@ -415,27 +479,38 @@ export type GetAccountCountersRequest = {
415
479
  dateTo?: Date;
416
480
  };
417
481
  export type GetAccountCountersResponse = {
482
+ /** does not have date range */
418
483
  applications: number;
419
484
  activeUsers: number;
420
485
  activeDevices: number;
486
+ /** monthly active push enabled devices */
421
487
  maped: number;
488
+ /** does not have date range */
422
489
  emailSubscribers: number;
490
+ /** does not have date range */
423
491
  pushEnabledDevices: number;
424
492
  emailsPerMonth: number;
493
+ /** does not have date range */
425
494
  usersCount: number;
426
495
  datapointsCount: number;
427
496
  inappImpressions: number;
428
497
  smsSpent: number;
429
498
  parentAccountId: number;
430
499
  subAccountIds: number[];
500
+ /** does not have date range */
431
501
  seatsCount: number;
502
+ /** monthly active users v2 from statisticsv2 */
432
503
  mauV2: number;
504
+ /** monthly active emails */
433
505
  emailRecipients: number;
506
+ /** monthly active users v2 with tokens from statisticsv2 */
434
507
  mauV2WithTokens: number;
508
+ /** monthly active users v2 with tokens from statisticsv2 + email recipients */
435
509
  unifiedMau: number;
436
510
  };
437
511
  export type GetAIAssistantRequestsUsageRequest = {};
438
512
  export type GetAIAssistantRequestsUsageResponse = {
513
+ /** usage count */
439
514
  count: number;
440
515
  quota: number;
441
516
  resetOn: Date;
@@ -459,11 +534,13 @@ export type GetAccountTokenWalletResponse_TokenUsage = {
459
534
  dailySpent: google_type_Money;
460
535
  };
461
536
  export type GetAccountTokenWalletResponse = {
537
+ /** core */
462
538
  balance: google_type_Money;
463
539
  autorefillEnabled: boolean;
464
540
  autorefillThreshold: google_type_Money;
465
541
  autorefillAmount: google_type_Money;
466
542
  monthlyLimit: google_type_Money;
543
+ /** stats */
467
544
  monthlySpent: google_type_Money;
468
545
  usage: GetAccountTokenWalletResponse_TokenUsage[];
469
546
  };
@@ -474,6 +551,7 @@ export type UpdateAccountTokenWalletRequest = {
474
551
  };
475
552
  export type UpdateAccountTokenWalletResponse = {};
476
553
  export type AccountTokenWalletPaymentRequest = {
554
+ /** always validate and use main card */
477
555
  amount?: google_type_Money;
478
556
  };
479
557
  export type AccountTokenWalletPaymentResponse = {
package/types.d.ts CHANGED
@@ -7,12 +7,14 @@ export type InterfaceDefinition = {
7
7
  oneofs?: {
8
8
  [oneofName: string]: OneofGroup;
9
9
  };
10
+ comment?: string;
10
11
  };
11
12
  export type FieldDefinition = {
12
13
  type: string;
13
14
  mapKeyType?: string;
14
15
  array?: boolean;
15
16
  optional?: boolean;
17
+ comment?: string;
16
18
  };
17
19
  export type OneofGroup = {
18
20
  oneof: string[];
@@ -20,6 +22,9 @@ export type OneofGroup = {
20
22
  export type EnumDefinition = {
21
23
  type: 'E';
22
24
  values: string[];
25
+ valuesArgs?: Record<string, string[]>;
26
+ comment?: string;
27
+ valueComments?: Record<string, string>;
23
28
  };
24
29
  export type ServiceDefinition = {
25
30
  type: 'S';
@@ -27,12 +32,20 @@ export type ServiceDefinition = {
27
32
  methods: {
28
33
  [methodName: string]: ServiceMethod;
29
34
  };
35
+ comment?: string;
30
36
  };
31
37
  export type ServiceMethod = {
32
38
  request: string;
33
39
  response: string;
34
40
  method: string;
35
41
  path: string;
42
+ serverStreaming?: boolean;
43
+ errors?: {
44
+ fieldViolations?: string;
45
+ failedPreconditions?: string;
46
+ commonFailedPreconditions?: string;
47
+ };
48
+ comment?: string;
36
49
  };
37
50
  export type InterfaceDefinitionRaw = InterfaceDefinition & {
38
51
  package: string;
package/types.js CHANGED
@@ -1 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
1
3
  export {};