@pushwoosh/rpc-gateway-payment-data 0.2.155 → 0.2.157
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 +33 -0
- package/package.json +1 -1
- package/pushwoosh_accounts_payment_processor.d.ts +10 -0
package/data.js
CHANGED
|
@@ -145,6 +145,12 @@ export const data = {
|
|
|
145
145
|
"method": "post",
|
|
146
146
|
"path": "/api/v1/revenue-stream"
|
|
147
147
|
},
|
|
148
|
+
"GetMRR": {
|
|
149
|
+
"request": "pushwoosh.accounts.payment_processor.GetMRRRequest",
|
|
150
|
+
"response": "pushwoosh.accounts.payment_processor.GetMRRResponse",
|
|
151
|
+
"method": "post",
|
|
152
|
+
"path": "/api/v1/get-mrr"
|
|
153
|
+
},
|
|
148
154
|
"ChargeAccountTokenWallet": {
|
|
149
155
|
"request": "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletRequest",
|
|
150
156
|
"response": "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletResponse",
|
|
@@ -558,6 +564,30 @@ export const data = {
|
|
|
558
564
|
}
|
|
559
565
|
}
|
|
560
566
|
},
|
|
567
|
+
"pushwoosh.accounts.payment_processor.GetMRRRequest": {
|
|
568
|
+
"type": "I",
|
|
569
|
+
"fields": {}
|
|
570
|
+
},
|
|
571
|
+
"pushwoosh.accounts.payment_processor.GetMRRResponse.MRR": {
|
|
572
|
+
"type": "I",
|
|
573
|
+
"fields": {
|
|
574
|
+
"monthlyAmount": {
|
|
575
|
+
"type": "number"
|
|
576
|
+
},
|
|
577
|
+
"currency": {
|
|
578
|
+
"type": "string"
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"pushwoosh.accounts.payment_processor.GetMRRResponse": {
|
|
583
|
+
"type": "I",
|
|
584
|
+
"fields": {
|
|
585
|
+
"mrr": {
|
|
586
|
+
"type": "pushwoosh.accounts.payment_processor.GetMRRResponse.MRR",
|
|
587
|
+
"array": true
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
},
|
|
561
591
|
"pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletRequest.ChargeUnit": {
|
|
562
592
|
"type": "I",
|
|
563
593
|
"fields": {
|
|
@@ -1228,6 +1258,9 @@ export const data = {
|
|
|
1228
1258
|
},
|
|
1229
1259
|
"cacheWriteTokens": {
|
|
1230
1260
|
"type": "number"
|
|
1261
|
+
},
|
|
1262
|
+
"dailySpent": {
|
|
1263
|
+
"type": "google.type.Money"
|
|
1231
1264
|
}
|
|
1232
1265
|
}
|
|
1233
1266
|
},
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ export interface PaymentProcessorServicePrivate {
|
|
|
21
21
|
GetAccountsWithSubButNoInvoice(request: GetAccountsWithSubButNoInvoiceRequest): Promise<GetAccountsWithSubButNoInvoiceResponse>;
|
|
22
22
|
CreateShopifySubscription(request: CreateShopifySubscriptionRequest): Promise<CreateShopifySubscriptionResponse>;
|
|
23
23
|
RevenueStream(request: RevenueStreamRequest): Promise<RevenueStreamResponse>;
|
|
24
|
+
GetMRR(request: GetMRRRequest): Promise<GetMRRResponse>;
|
|
24
25
|
ChargeAccountTokenWallet(request: ChargeAccountTokenWalletRequest): Promise<ChargeAccountTokenWalletResponse>;
|
|
25
26
|
GetAccountTokenWalletUsageAllowed(request: GetAccountTokenWalletUsageAllowedRequest): Promise<GetAccountTokenWalletUsageAllowedResponse>;
|
|
26
27
|
}
|
|
@@ -154,6 +155,14 @@ export type RevenueStreamResponse_RevenueStream = {
|
|
|
154
155
|
export type RevenueStreamResponse = {
|
|
155
156
|
revenueStreams: RevenueStreamResponse_RevenueStream[];
|
|
156
157
|
};
|
|
158
|
+
export type GetMRRRequest = {};
|
|
159
|
+
export type GetMRRResponse_MRR = {
|
|
160
|
+
monthlyAmount: number;
|
|
161
|
+
currency: string;
|
|
162
|
+
};
|
|
163
|
+
export type GetMRRResponse = {
|
|
164
|
+
mrr: GetMRRResponse_MRR[];
|
|
165
|
+
};
|
|
157
166
|
export type ChargeAccountTokenWalletRequest_ChargeUnit = {
|
|
158
167
|
model: string;
|
|
159
168
|
tokenType: string;
|
|
@@ -371,6 +380,7 @@ export type GetAccountTokenWalletResponse_TokenUsage = {
|
|
|
371
380
|
outputTokens: number;
|
|
372
381
|
cacheReadTokens: number;
|
|
373
382
|
cacheWriteTokens: number;
|
|
383
|
+
dailySpent: google_type_Money;
|
|
374
384
|
};
|
|
375
385
|
export type GetAccountTokenWalletResponse = {
|
|
376
386
|
balance: google_type_Money;
|