@pushwoosh/rpc-gateway-payment-data 0.2.167 → 0.2.169
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 +93 -2
- package/package.json +1 -1
- package/pushwoosh_accounts_payment_processor.d.ts +31 -2
package/data.js
CHANGED
|
@@ -127,6 +127,18 @@ export const data = {
|
|
|
127
127
|
"method": "get",
|
|
128
128
|
"path": "/api/accounts/counters:total_email_subscribers"
|
|
129
129
|
},
|
|
130
|
+
"GetEmailMAU": {
|
|
131
|
+
"request": "pushwoosh.accounts.payment_processor.GetEmailMAURequest",
|
|
132
|
+
"response": "pushwoosh.accounts.payment_processor.GetEmailMAUResponse",
|
|
133
|
+
"method": "get",
|
|
134
|
+
"path": "/api/accounts/counters:email_mau"
|
|
135
|
+
},
|
|
136
|
+
"GetUnifiedMAU": {
|
|
137
|
+
"request": "pushwoosh.accounts.payment_processor.GetUnifiedMAURequest",
|
|
138
|
+
"response": "pushwoosh.accounts.payment_processor.GetUnifiedMAUResponse",
|
|
139
|
+
"method": "get",
|
|
140
|
+
"path": "/api/accounts/counters:unified_mau"
|
|
141
|
+
},
|
|
130
142
|
"GetAccountsWithSubButNoInvoice": {
|
|
131
143
|
"request": "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceRequest",
|
|
132
144
|
"response": "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceResponse",
|
|
@@ -207,7 +219,8 @@ export const data = {
|
|
|
207
219
|
"values": [
|
|
208
220
|
"PRODUCT_MARKETING",
|
|
209
221
|
"PRODUCT_ENTERPRISE",
|
|
210
|
-
"PRODUCT_UNKNOWN"
|
|
222
|
+
"PRODUCT_UNKNOWN",
|
|
223
|
+
"PRODUCT_OMNICHANNEL"
|
|
211
224
|
]
|
|
212
225
|
},
|
|
213
226
|
"pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.OrderType": {
|
|
@@ -516,6 +529,44 @@ export const data = {
|
|
|
516
529
|
}
|
|
517
530
|
}
|
|
518
531
|
},
|
|
532
|
+
"pushwoosh.accounts.payment_processor.GetEmailMAURequest": {
|
|
533
|
+
"type": "I",
|
|
534
|
+
"fields": {
|
|
535
|
+
"dateFrom": {
|
|
536
|
+
"type": "Date"
|
|
537
|
+
},
|
|
538
|
+
"dateTo": {
|
|
539
|
+
"type": "Date"
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"pushwoosh.accounts.payment_processor.GetEmailMAUResponse": {
|
|
544
|
+
"type": "I",
|
|
545
|
+
"fields": {
|
|
546
|
+
"totalUniqueEmailRecipients": {
|
|
547
|
+
"type": "number"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"pushwoosh.accounts.payment_processor.GetUnifiedMAURequest": {
|
|
552
|
+
"type": "I",
|
|
553
|
+
"fields": {
|
|
554
|
+
"dateFrom": {
|
|
555
|
+
"type": "Date"
|
|
556
|
+
},
|
|
557
|
+
"dateTo": {
|
|
558
|
+
"type": "Date"
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"pushwoosh.accounts.payment_processor.GetUnifiedMAUResponse": {
|
|
563
|
+
"type": "I",
|
|
564
|
+
"fields": {
|
|
565
|
+
"totalUnifiedMau": {
|
|
566
|
+
"type": "number"
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
},
|
|
519
570
|
"pushwoosh.accounts.payment_processor.CreateShopifySubscriptionRequest": {
|
|
520
571
|
"type": "I",
|
|
521
572
|
"fields": {}
|
|
@@ -566,7 +617,11 @@ export const data = {
|
|
|
566
617
|
},
|
|
567
618
|
"pushwoosh.accounts.payment_processor.GetMRRRequest": {
|
|
568
619
|
"type": "I",
|
|
569
|
-
"fields": {
|
|
620
|
+
"fields": {
|
|
621
|
+
"includeAccountBreakdown": {
|
|
622
|
+
"type": "boolean"
|
|
623
|
+
}
|
|
624
|
+
}
|
|
570
625
|
},
|
|
571
626
|
"pushwoosh.accounts.payment_processor.GetMRRResponse.MRR": {
|
|
572
627
|
"type": "I",
|
|
@@ -579,12 +634,30 @@ export const data = {
|
|
|
579
634
|
}
|
|
580
635
|
}
|
|
581
636
|
},
|
|
637
|
+
"pushwoosh.accounts.payment_processor.GetMRRResponse.AccountMRR": {
|
|
638
|
+
"type": "I",
|
|
639
|
+
"fields": {
|
|
640
|
+
"accountId": {
|
|
641
|
+
"type": "number"
|
|
642
|
+
},
|
|
643
|
+
"monthlyAmount": {
|
|
644
|
+
"type": "number"
|
|
645
|
+
},
|
|
646
|
+
"currency": {
|
|
647
|
+
"type": "string"
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
},
|
|
582
651
|
"pushwoosh.accounts.payment_processor.GetMRRResponse": {
|
|
583
652
|
"type": "I",
|
|
584
653
|
"fields": {
|
|
585
654
|
"mrr": {
|
|
586
655
|
"type": "pushwoosh.accounts.payment_processor.GetMRRResponse.MRR",
|
|
587
656
|
"array": true
|
|
657
|
+
},
|
|
658
|
+
"accountMrr": {
|
|
659
|
+
"type": "pushwoosh.accounts.payment_processor.GetMRRResponse.AccountMRR",
|
|
660
|
+
"array": true
|
|
588
661
|
}
|
|
589
662
|
}
|
|
590
663
|
},
|
|
@@ -716,6 +789,12 @@ export const data = {
|
|
|
716
789
|
"method": "post",
|
|
717
790
|
"path": "/api/v1/pay-invoice"
|
|
718
791
|
},
|
|
792
|
+
"ChangeFreeSubscription": {
|
|
793
|
+
"request": "pushwoosh.accounts.payment_processor.ChangeFreeSubscriptionRequest",
|
|
794
|
+
"response": "pushwoosh.accounts.payment_processor.ChangeFreeSubscriptionResponse",
|
|
795
|
+
"method": "post",
|
|
796
|
+
"path": "/api/v1/change-free-subscription"
|
|
797
|
+
},
|
|
719
798
|
"GetCountries": {
|
|
720
799
|
"request": "pushwoosh.accounts.payment_processor.GetCountriesRequest",
|
|
721
800
|
"response": "pushwoosh.accounts.payment_processor.GetCountriesResponse",
|
|
@@ -1092,6 +1171,18 @@ export const data = {
|
|
|
1092
1171
|
}
|
|
1093
1172
|
}
|
|
1094
1173
|
},
|
|
1174
|
+
"pushwoosh.accounts.payment_processor.ChangeFreeSubscriptionRequest": {
|
|
1175
|
+
"type": "I",
|
|
1176
|
+
"fields": {
|
|
1177
|
+
"freeProduct": {
|
|
1178
|
+
"type": "string"
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"pushwoosh.accounts.payment_processor.ChangeFreeSubscriptionResponse": {
|
|
1183
|
+
"type": "I",
|
|
1184
|
+
"fields": {}
|
|
1185
|
+
},
|
|
1095
1186
|
"pushwoosh.accounts.payment_processor.GetCountriesRequest": {
|
|
1096
1187
|
"type": "I",
|
|
1097
1188
|
"fields": {
|
package/package.json
CHANGED
|
@@ -18,6 +18,8 @@ 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
|
+
GetEmailMAU(request: GetEmailMAURequest): Promise<GetEmailMAUResponse>;
|
|
22
|
+
GetUnifiedMAU(request: GetUnifiedMAURequest): Promise<GetUnifiedMAUResponse>;
|
|
21
23
|
GetAccountsWithSubButNoInvoice(request: GetAccountsWithSubButNoInvoiceRequest): Promise<GetAccountsWithSubButNoInvoiceResponse>;
|
|
22
24
|
CreateShopifySubscription(request: CreateShopifySubscriptionRequest): Promise<CreateShopifySubscriptionResponse>;
|
|
23
25
|
RevenueStream(request: RevenueStreamRequest): Promise<RevenueStreamResponse>;
|
|
@@ -37,7 +39,7 @@ export type ActivateDraftSubscriptionRequest = {
|
|
|
37
39
|
orderId?: number;
|
|
38
40
|
};
|
|
39
41
|
export type ActivateDraftSubscriptionResponse = {};
|
|
40
|
-
export type CreateDraftSubscriptionRequest_ProductType = 'PRODUCT_MARKETING' | 'PRODUCT_ENTERPRISE' | 'PRODUCT_UNKNOWN';
|
|
42
|
+
export type CreateDraftSubscriptionRequest_ProductType = 'PRODUCT_MARKETING' | 'PRODUCT_ENTERPRISE' | 'PRODUCT_UNKNOWN' | 'PRODUCT_OMNICHANNEL';
|
|
41
43
|
export type CreateDraftSubscriptionRequest_OrderType = 'ORDER_BRAINTREE' | 'ORDER_XERO' | 'ORDER_MANUAL' | 'ORDER_UNKNOWN';
|
|
42
44
|
export type CreateDraftSubscriptionRequest_PaymentType = 'PAYMENT_PREPAID' | 'PAYMENT_POSTPAID' | 'PAYMENT_UNKNOWN';
|
|
43
45
|
export type CreateDraftSubscriptionRequest_PaymentSchedulingType = 'SCHEDULE_AUTO' | 'SCHEDULE_MANUAL' | 'SCHEDULE_UNKNOWN';
|
|
@@ -139,6 +141,20 @@ export type GetTotalEmailSubscribersCountRequest = {};
|
|
|
139
141
|
export type GetTotalEmailSubscribersCountResponse = {
|
|
140
142
|
totalEmailSubscribers: number;
|
|
141
143
|
};
|
|
144
|
+
export type GetEmailMAURequest = {
|
|
145
|
+
dateFrom?: Date;
|
|
146
|
+
dateTo?: Date;
|
|
147
|
+
};
|
|
148
|
+
export type GetEmailMAUResponse = {
|
|
149
|
+
totalUniqueEmailRecipients: number;
|
|
150
|
+
};
|
|
151
|
+
export type GetUnifiedMAURequest = {
|
|
152
|
+
dateFrom?: Date;
|
|
153
|
+
dateTo?: Date;
|
|
154
|
+
};
|
|
155
|
+
export type GetUnifiedMAUResponse = {
|
|
156
|
+
totalUnifiedMau: number;
|
|
157
|
+
};
|
|
142
158
|
export type CreateShopifySubscriptionRequest = {};
|
|
143
159
|
export type CreateShopifySubscriptionResponse = {};
|
|
144
160
|
export type RevenueStreamRequest = {
|
|
@@ -155,13 +171,21 @@ export type RevenueStreamResponse_RevenueStream = {
|
|
|
155
171
|
export type RevenueStreamResponse = {
|
|
156
172
|
revenueStreams: RevenueStreamResponse_RevenueStream[];
|
|
157
173
|
};
|
|
158
|
-
export type GetMRRRequest = {
|
|
174
|
+
export type GetMRRRequest = {
|
|
175
|
+
includeAccountBreakdown?: boolean;
|
|
176
|
+
};
|
|
159
177
|
export type GetMRRResponse_MRR = {
|
|
160
178
|
monthlyAmount: number;
|
|
161
179
|
currency: string;
|
|
162
180
|
};
|
|
181
|
+
export type GetMRRResponse_AccountMRR = {
|
|
182
|
+
accountId: number;
|
|
183
|
+
monthlyAmount: number;
|
|
184
|
+
currency: string;
|
|
185
|
+
};
|
|
163
186
|
export type GetMRRResponse = {
|
|
164
187
|
mrr: GetMRRResponse_MRR[];
|
|
188
|
+
accountMrr: GetMRRResponse_AccountMRR[];
|
|
165
189
|
};
|
|
166
190
|
export type ChargeAccountTokenWalletRequest_ChargeUnit = {
|
|
167
191
|
model: string;
|
|
@@ -195,6 +219,7 @@ export interface PaymentProcessorService {
|
|
|
195
219
|
CancelSubscription(request: CancelSubscriptionRequest): Promise<CancelSubscriptionResponse>;
|
|
196
220
|
GetNextEstimatedInvoice(request: GetNextEstimatedInvoiceRequest): Promise<GetNextEstimatedInvoiceResponse>;
|
|
197
221
|
PayInvoice(request: PayInvoiceRequest): Promise<PayInvoiceResponse>;
|
|
222
|
+
ChangeFreeSubscription(request: ChangeFreeSubscriptionRequest): Promise<ChangeFreeSubscriptionResponse>;
|
|
198
223
|
GetCountries(request: GetCountriesRequest): Promise<GetCountriesResponse>;
|
|
199
224
|
GetRegions(request: GetRegionsRequest): Promise<GetRegionsResponse>;
|
|
200
225
|
GetAccountCounters(request: GetAccountCountersRequest): Promise<GetAccountCountersResponse>;
|
|
@@ -323,6 +348,10 @@ export type PayInvoiceResponse = {
|
|
|
323
348
|
paid: boolean;
|
|
324
349
|
message: string;
|
|
325
350
|
};
|
|
351
|
+
export type ChangeFreeSubscriptionRequest = {
|
|
352
|
+
freeProduct?: string;
|
|
353
|
+
};
|
|
354
|
+
export type ChangeFreeSubscriptionResponse = {};
|
|
326
355
|
export type GetCountriesRequest = {
|
|
327
356
|
name?: string;
|
|
328
357
|
};
|