@pushwoosh/rpc-gateway-payment-data 0.2.135 → 0.2.137

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/data.js CHANGED
@@ -127,12 +127,6 @@ export const data = {
127
127
  "method": "get",
128
128
  "path": "/api/accounts/counters:total_email_subscribers"
129
129
  },
130
- "GetAccountTokenWalletUsage": {
131
- "request": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageRequest",
132
- "response": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageResponse",
133
- "method": "get",
134
- "path": "/api/v1/counters:token_wallet"
135
- },
136
130
  "GetAccountsWithSubButNoInvoice": {
137
131
  "request": "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceRequest",
138
132
  "response": "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceResponse",
@@ -607,49 +601,6 @@ export const data = {
607
601
  }
608
602
  }
609
603
  },
610
- "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageRequest": {
611
- "type": "I",
612
- "fields": {
613
- "dateFrom": {
614
- "type": "Date"
615
- },
616
- "dateTo": {
617
- "type": "Date"
618
- }
619
- }
620
- },
621
- "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageResponse.TokenUnit": {
622
- "type": "I",
623
- "fields": {
624
- "model": {
625
- "type": "string"
626
- },
627
- "tokenType": {
628
- "type": "string"
629
- },
630
- "value": {
631
- "type": "number"
632
- },
633
- "messageId": {
634
- "type": "number"
635
- },
636
- "chatId": {
637
- "type": "number"
638
- },
639
- "applicationId": {
640
- "type": "number"
641
- }
642
- }
643
- },
644
- "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageResponse": {
645
- "type": "I",
646
- "fields": {
647
- "units": {
648
- "type": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageResponse.TokenUnit",
649
- "array": true
650
- }
651
- }
652
- },
653
604
  "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageAllowedRequest": {
654
605
  "type": "I",
655
606
  "fields": {}
@@ -1260,6 +1211,26 @@ export const data = {
1260
1211
  "type": "I",
1261
1212
  "fields": {}
1262
1213
  },
1214
+ "pushwoosh.accounts.payment_processor.GetAccountTokenWalletResponse.TokenUsage": {
1215
+ "type": "I",
1216
+ "fields": {
1217
+ "date": {
1218
+ "type": "Date"
1219
+ },
1220
+ "inputTokens": {
1221
+ "type": "number"
1222
+ },
1223
+ "outputTokens": {
1224
+ "type": "number"
1225
+ },
1226
+ "cacheReadTokens": {
1227
+ "type": "number"
1228
+ },
1229
+ "cacheWriteTokens": {
1230
+ "type": "number"
1231
+ }
1232
+ }
1233
+ },
1263
1234
  "pushwoosh.accounts.payment_processor.GetAccountTokenWalletResponse": {
1264
1235
  "type": "I",
1265
1236
  "fields": {
@@ -1274,6 +1245,16 @@ export const data = {
1274
1245
  },
1275
1246
  "autorefillAmount": {
1276
1247
  "type": "google.type.Money"
1248
+ },
1249
+ "monthlyLimit": {
1250
+ "type": "google.type.Money"
1251
+ },
1252
+ "monthlySpent": {
1253
+ "type": "google.type.Money"
1254
+ },
1255
+ "usage": {
1256
+ "type": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletResponse.TokenUsage",
1257
+ "array": true
1277
1258
  }
1278
1259
  }
1279
1260
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-payment-data",
3
- "version": "0.2.135",
3
+ "version": "0.2.137",
4
4
  "description": "Payment processor api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -18,7 +18,6 @@ export interface PaymentProcessorServicePrivate {
18
18
  GetSubscribersCount(request: GetSubscribersCountRequest): Promise<GetSubscribersCountResponse>;
19
19
  GetActiveUsersCount(request: GetActiveUsersCountRequest): Promise<GetActiveUsersCountResponse>;
20
20
  GetTotalEmailSubscribersCount(request: GetTotalEmailSubscribersCountRequest): Promise<GetTotalEmailSubscribersCountResponse>;
21
- GetAccountTokenWalletUsage(request: GetAccountTokenWalletUsageRequest): Promise<GetAccountTokenWalletUsageResponse>;
22
21
  GetAccountsWithSubButNoInvoice(request: GetAccountsWithSubButNoInvoiceRequest): Promise<GetAccountsWithSubButNoInvoiceResponse>;
23
22
  CreateShopifySubscription(request: CreateShopifySubscriptionRequest): Promise<CreateShopifySubscriptionResponse>;
24
23
  RevenueStream(request: RevenueStreamRequest): Promise<RevenueStreamResponse>;
@@ -170,21 +169,6 @@ export type ChargeAccountTokenWalletResponse = {
170
169
  paid: boolean;
171
170
  message: string;
172
171
  };
173
- export type GetAccountTokenWalletUsageRequest = {
174
- dateFrom?: Date;
175
- dateTo?: Date;
176
- };
177
- export type GetAccountTokenWalletUsageResponse_TokenUnit = {
178
- model: string;
179
- tokenType: string;
180
- value: number;
181
- messageId: number;
182
- chatId: number;
183
- applicationId: number;
184
- };
185
- export type GetAccountTokenWalletUsageResponse = {
186
- units: GetAccountTokenWalletUsageResponse_TokenUnit[];
187
- };
188
172
  export type GetAccountTokenWalletUsageAllowedRequest = {};
189
173
  export type GetAccountTokenWalletUsageAllowedResponse = {
190
174
  allowed: boolean;
@@ -381,11 +365,21 @@ export type XeroCallbackRequest = {
381
365
  };
382
366
  export type XeroCallbackResponse = {};
383
367
  export type GetAccountTokenWalletRequest = {};
368
+ export type GetAccountTokenWalletResponse_TokenUsage = {
369
+ date: Date;
370
+ inputTokens: number;
371
+ outputTokens: number;
372
+ cacheReadTokens: number;
373
+ cacheWriteTokens: number;
374
+ };
384
375
  export type GetAccountTokenWalletResponse = {
385
376
  balance: google_type_Money;
386
377
  autorefillEnabled: boolean;
387
378
  autorefillThreshold: google_type_Money;
388
379
  autorefillAmount: google_type_Money;
380
+ monthlyLimit: google_type_Money;
381
+ monthlySpent: google_type_Money;
382
+ usage: GetAccountTokenWalletResponse_TokenUsage[];
389
383
  };
390
384
  export type UpdateAccountTokenWalletRequest = {
391
385
  autorefillEnabled?: boolean;