@pushwoosh/rpc-gateway-payment-data 0.2.135

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 ADDED
@@ -0,0 +1,1317 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export const data = {
4
+ "google.type.Money": {
5
+ "type": "I",
6
+ "fields": {
7
+ "currencyCode": {
8
+ "type": "string"
9
+ },
10
+ "units": {
11
+ "type": "number"
12
+ },
13
+ "nanos": {
14
+ "type": "number"
15
+ }
16
+ }
17
+ },
18
+ "pushwoosh.accounts.payment_processor.PaymentProcessorServicePrivate": {
19
+ "type": "S",
20
+ "key": "paymentProcessorServicePrivate",
21
+ "methods": {
22
+ "GetPaymentHistory": {
23
+ "request": "pushwoosh.accounts.payment_processor.GetPaymentHistoryRequest",
24
+ "response": "pushwoosh.accounts.payment_processor.GetPaymentHistoryResponse",
25
+ "method": "get",
26
+ "path": "/api/v1/payment-history"
27
+ },
28
+ "GetNextEstimatedInvoice": {
29
+ "request": "pushwoosh.accounts.payment_processor.GetNextEstimatedInvoiceRequest",
30
+ "response": "pushwoosh.accounts.payment_processor.GetNextEstimatedInvoiceResponse",
31
+ "method": "post",
32
+ "path": "/api/v1/get-next-estimated-invoice"
33
+ },
34
+ "CancelSubscription": {
35
+ "request": "pushwoosh.accounts.payment_processor.CancelSubscriptionRequest",
36
+ "response": "pushwoosh.accounts.payment_processor.CancelSubscriptionResponse",
37
+ "method": "post",
38
+ "path": "/api/v1/cancel-subscription"
39
+ },
40
+ "GetSellerCommission": {
41
+ "request": "pushwoosh.accounts.payment_processor.GetSellerCommissionRequest",
42
+ "response": "pushwoosh.accounts.payment_processor.GetSellerCommissionResponse",
43
+ "method": "post",
44
+ "path": "/api/v1/get-seller-commission"
45
+ },
46
+ "GetAccountCounters": {
47
+ "request": "pushwoosh.accounts.payment_processor.GetAccountCountersRequest",
48
+ "response": "pushwoosh.accounts.payment_processor.GetAccountCountersResponse",
49
+ "method": "get",
50
+ "path": "/api/v1/get-account-counters"
51
+ },
52
+ "PayInvoice": {
53
+ "request": "pushwoosh.accounts.payment_processor.PayInvoiceRequest",
54
+ "response": "pushwoosh.accounts.payment_processor.PayInvoiceResponse",
55
+ "method": "post",
56
+ "path": "/api/v1/pay-invoice"
57
+ },
58
+ "RebuildInvoice": {
59
+ "request": "pushwoosh.accounts.payment_processor.RebuildInvoiceRequest",
60
+ "response": "pushwoosh.accounts.payment_processor.RebuildInvoiceResponse",
61
+ "method": "post",
62
+ "path": "/api/v1/rebuild-invoice"
63
+ },
64
+ "GetXeroContact": {
65
+ "request": "pushwoosh.accounts.payment_processor.GetXeroContactRequest",
66
+ "response": "pushwoosh.accounts.payment_processor.GetXeroContactResponse",
67
+ "method": "get",
68
+ "path": "/api/v1/get-xero-contact"
69
+ },
70
+ "ApproveInvoice": {
71
+ "request": "pushwoosh.accounts.payment_processor.ApproveInvoiceRequest",
72
+ "response": "pushwoosh.accounts.payment_processor.ApproveInvoiceResponse",
73
+ "method": "post",
74
+ "path": "/api/v1/approve-invoice"
75
+ },
76
+ "RefundInvoice": {
77
+ "request": "pushwoosh.accounts.payment_processor.RefundInvoiceRequest",
78
+ "response": "pushwoosh.accounts.payment_processor.RefundInvoiceResponse",
79
+ "method": "post",
80
+ "path": "/api/v1/refund-invoice"
81
+ },
82
+ "CreateDraftSubscription": {
83
+ "request": "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest",
84
+ "response": "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionResponse",
85
+ "method": "post",
86
+ "path": "/api/v1/create-draft-subscription"
87
+ },
88
+ "ActivateDraftSubscription": {
89
+ "request": "pushwoosh.accounts.payment_processor.ActivateDraftSubscriptionRequest",
90
+ "response": "pushwoosh.accounts.payment_processor.ActivateDraftSubscriptionResponse",
91
+ "method": "post",
92
+ "path": "/api/v1/activate-draft-subscription"
93
+ },
94
+ "DeleteDraftSubscription": {
95
+ "request": "pushwoosh.accounts.payment_processor.DeleteDraftSubscriptionRequest",
96
+ "response": "pushwoosh.accounts.payment_processor.DeleteDraftSubscriptionResponse",
97
+ "method": "post",
98
+ "path": "/api/v1/delete-draft-subscription"
99
+ },
100
+ "GetEmailStatisticCount": {
101
+ "request": "pushwoosh.accounts.payment_processor.GetEmailStatisticCountRequest",
102
+ "response": "pushwoosh.accounts.payment_processor.GetEmailStatisticCountResponse",
103
+ "method": "get",
104
+ "path": "/api/v1/counters:emails"
105
+ },
106
+ "GetActiveDevicesCount": {
107
+ "request": "pushwoosh.accounts.payment_processor.GetActiveDevicesCountRequest",
108
+ "response": "pushwoosh.accounts.payment_processor.GetActiveDevicesCountResponse",
109
+ "method": "get",
110
+ "path": "/api/v1/counters:active_devices"
111
+ },
112
+ "GetSubscribersCount": {
113
+ "request": "pushwoosh.accounts.payment_processor.GetSubscribersCountRequest",
114
+ "response": "pushwoosh.accounts.payment_processor.GetSubscribersCountResponse",
115
+ "method": "get",
116
+ "path": "/api/v1/counters:total_subscribers"
117
+ },
118
+ "GetActiveUsersCount": {
119
+ "request": "pushwoosh.accounts.payment_processor.GetActiveUsersCountRequest",
120
+ "response": "pushwoosh.accounts.payment_processor.GetActiveUsersCountResponse",
121
+ "method": "get",
122
+ "path": "/api/v1/counters:active_users"
123
+ },
124
+ "GetTotalEmailSubscribersCount": {
125
+ "request": "pushwoosh.accounts.payment_processor.GetTotalEmailSubscribersCountRequest",
126
+ "response": "pushwoosh.accounts.payment_processor.GetTotalEmailSubscribersCountResponse",
127
+ "method": "get",
128
+ "path": "/api/accounts/counters:total_email_subscribers"
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
+ "GetAccountsWithSubButNoInvoice": {
137
+ "request": "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceRequest",
138
+ "response": "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceResponse",
139
+ "method": "post",
140
+ "path": "/api/v1/get-accounts-with-sub-but-no-invoice"
141
+ },
142
+ "CreateShopifySubscription": {
143
+ "request": "pushwoosh.accounts.payment_processor.CreateShopifySubscriptionRequest",
144
+ "response": "pushwoosh.accounts.payment_processor.CreateShopifySubscriptionResponse",
145
+ "method": "post",
146
+ "path": "/api/v1/create-subscription:shopify"
147
+ },
148
+ "RevenueStream": {
149
+ "request": "pushwoosh.accounts.payment_processor.RevenueStreamRequest",
150
+ "response": "pushwoosh.accounts.payment_processor.RevenueStreamResponse",
151
+ "method": "post",
152
+ "path": "/api/v1/revenue-stream"
153
+ },
154
+ "ChargeAccountTokenWallet": {
155
+ "request": "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletRequest",
156
+ "response": "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletResponse",
157
+ "method": "post",
158
+ "path": "/api/v1/token-wallet/charge"
159
+ },
160
+ "GetAccountTokenWalletUsageAllowed": {
161
+ "request": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageAllowedRequest",
162
+ "response": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageAllowedResponse",
163
+ "method": "get",
164
+ "path": "/api/v1/token-wallet/usage-allowed"
165
+ }
166
+ }
167
+ },
168
+ "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceRequest": {
169
+ "type": "I",
170
+ "fields": {}
171
+ },
172
+ "pushwoosh.accounts.payment_processor.GetAccountsWithSubButNoInvoiceResponse": {
173
+ "type": "I",
174
+ "fields": {
175
+ "accountIds": {
176
+ "type": "number",
177
+ "array": true
178
+ }
179
+ }
180
+ },
181
+ "pushwoosh.accounts.payment_processor.DeleteDraftSubscriptionRequest": {
182
+ "type": "I",
183
+ "fields": {
184
+ "orderId": {
185
+ "type": "number"
186
+ }
187
+ }
188
+ },
189
+ "pushwoosh.accounts.payment_processor.DeleteDraftSubscriptionResponse": {
190
+ "type": "I",
191
+ "fields": {}
192
+ },
193
+ "pushwoosh.accounts.payment_processor.ActivateDraftSubscriptionRequest": {
194
+ "type": "I",
195
+ "fields": {
196
+ "orderId": {
197
+ "type": "number"
198
+ }
199
+ }
200
+ },
201
+ "pushwoosh.accounts.payment_processor.ActivateDraftSubscriptionResponse": {
202
+ "type": "I",
203
+ "fields": {}
204
+ },
205
+ "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.ProductType": {
206
+ "type": "E",
207
+ "values": [
208
+ "PRODUCT_MARKETING",
209
+ "PRODUCT_ENTERPRISE",
210
+ "PRODUCT_UNKNOWN"
211
+ ]
212
+ },
213
+ "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.OrderType": {
214
+ "type": "E",
215
+ "values": [
216
+ "ORDER_BRAINTREE",
217
+ "ORDER_XERO",
218
+ "ORDER_MANUAL",
219
+ "ORDER_UNKNOWN"
220
+ ]
221
+ },
222
+ "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.PaymentType": {
223
+ "type": "E",
224
+ "values": [
225
+ "PAYMENT_PREPAID",
226
+ "PAYMENT_POSTPAID",
227
+ "PAYMENT_UNKNOWN"
228
+ ]
229
+ },
230
+ "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.PaymentSchedulingType": {
231
+ "type": "E",
232
+ "values": [
233
+ "SCHEDULE_AUTO",
234
+ "SCHEDULE_MANUAL",
235
+ "SCHEDULE_UNKNOWN"
236
+ ]
237
+ },
238
+ "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest": {
239
+ "type": "I",
240
+ "fields": {
241
+ "productType": {
242
+ "type": "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.ProductType"
243
+ },
244
+ "orderType": {
245
+ "type": "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.OrderType"
246
+ },
247
+ "paymentType": {
248
+ "type": "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.PaymentType"
249
+ },
250
+ "paymentSchedulingType": {
251
+ "type": "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionRequest.PaymentSchedulingType"
252
+ },
253
+ "billingCycle": {
254
+ "type": "number"
255
+ },
256
+ "firstBillingDate": {
257
+ "type": "Date"
258
+ },
259
+ "dueDateDays": {
260
+ "type": "number"
261
+ },
262
+ "currency": {
263
+ "type": "string"
264
+ },
265
+ "dueDateShift": {
266
+ "type": "boolean"
267
+ }
268
+ }
269
+ },
270
+ "pushwoosh.accounts.payment_processor.CreateDraftSubscriptionResponse": {
271
+ "type": "I",
272
+ "fields": {
273
+ "orderId": {
274
+ "type": "number"
275
+ }
276
+ }
277
+ },
278
+ "pushwoosh.accounts.payment_processor.RebuildInvoiceRequest": {
279
+ "type": "I",
280
+ "fields": {
281
+ "invoiceId": {
282
+ "type": "number"
283
+ }
284
+ }
285
+ },
286
+ "pushwoosh.accounts.payment_processor.RebuildInvoiceResponse": {
287
+ "type": "I",
288
+ "fields": {}
289
+ },
290
+ "pushwoosh.accounts.payment_processor.RefundInvoiceRequest": {
291
+ "type": "I",
292
+ "fields": {
293
+ "invoiceId": {
294
+ "type": "number"
295
+ }
296
+ }
297
+ },
298
+ "pushwoosh.accounts.payment_processor.RefundInvoiceResponse": {
299
+ "type": "I",
300
+ "fields": {}
301
+ },
302
+ "pushwoosh.accounts.payment_processor.ApproveInvoiceRequest": {
303
+ "type": "I",
304
+ "fields": {
305
+ "invoiceId": {
306
+ "type": "number"
307
+ }
308
+ }
309
+ },
310
+ "pushwoosh.accounts.payment_processor.ApproveInvoiceResponse": {
311
+ "type": "I",
312
+ "fields": {}
313
+ },
314
+ "pushwoosh.accounts.payment_processor.GetXeroContactRequest": {
315
+ "type": "I",
316
+ "fields": {
317
+ "contactId": {
318
+ "type": "string"
319
+ },
320
+ "country": {
321
+ "type": "string"
322
+ }
323
+ }
324
+ },
325
+ "pushwoosh.accounts.payment_processor.GetXeroContactResponse": {
326
+ "type": "I",
327
+ "fields": {
328
+ "contactId": {
329
+ "type": "string"
330
+ },
331
+ "firstName": {
332
+ "type": "string"
333
+ },
334
+ "lastName": {
335
+ "type": "string"
336
+ },
337
+ "email": {
338
+ "type": "string"
339
+ }
340
+ }
341
+ },
342
+ "pushwoosh.accounts.payment_processor.GetSellerCommissionRequest": {
343
+ "type": "I",
344
+ "fields": {
345
+ "sellerId": {
346
+ "type": "number"
347
+ },
348
+ "dateFrom": {
349
+ "type": "Date"
350
+ },
351
+ "dateTo": {
352
+ "type": "Date"
353
+ }
354
+ }
355
+ },
356
+ "pushwoosh.accounts.payment_processor.GetSellerCommissionResponse.Commission": {
357
+ "type": "I",
358
+ "fields": {
359
+ "accountId": {
360
+ "type": "number"
361
+ },
362
+ "accountName": {
363
+ "type": "string"
364
+ },
365
+ "paidDate": {
366
+ "type": "Date"
367
+ },
368
+ "totalAmount": {
369
+ "type": "number"
370
+ },
371
+ "commission": {
372
+ "type": "number"
373
+ }
374
+ }
375
+ },
376
+ "pushwoosh.accounts.payment_processor.GetSellerCommissionResponse": {
377
+ "type": "I",
378
+ "fields": {
379
+ "commissions": {
380
+ "type": "pushwoosh.accounts.payment_processor.GetSellerCommissionResponse.Commission",
381
+ "array": true
382
+ }
383
+ }
384
+ },
385
+ "pushwoosh.accounts.payment_processor.GetEmailStatisticCountRequest": {
386
+ "type": "I",
387
+ "fields": {
388
+ "dateFrom": {
389
+ "type": "Date"
390
+ },
391
+ "dateTo": {
392
+ "type": "Date"
393
+ }
394
+ }
395
+ },
396
+ "pushwoosh.accounts.payment_processor.GetEmailStatisticCountResponse": {
397
+ "type": "I",
398
+ "fields": {
399
+ "dailyEmailStat": {
400
+ "type": "number"
401
+ },
402
+ "monthlyEmailStat": {
403
+ "type": "number"
404
+ },
405
+ "lastEmailStat": {
406
+ "type": "number"
407
+ },
408
+ "paidEmailQuota": {
409
+ "type": "number"
410
+ },
411
+ "freeEmailQuota": {
412
+ "type": "number"
413
+ },
414
+ "freeEmailLimit": {
415
+ "type": "number"
416
+ },
417
+ "billingMonthEmailSendsStat": {
418
+ "type": "number"
419
+ },
420
+ "requestDateEmailStat": {
421
+ "type": "number"
422
+ }
423
+ }
424
+ },
425
+ "pushwoosh.accounts.payment_processor.GetActiveDevicesCountRequest": {
426
+ "type": "I",
427
+ "fields": {
428
+ "dateFrom": {
429
+ "type": "Date"
430
+ },
431
+ "dateTo": {
432
+ "type": "Date"
433
+ }
434
+ }
435
+ },
436
+ "pushwoosh.accounts.payment_processor.GetActiveDevicesCountResponse": {
437
+ "type": "I",
438
+ "fields": {
439
+ "monthlyActiveDevices": {
440
+ "type": "number"
441
+ },
442
+ "calendarMonthlyActiveDevices": {
443
+ "type": "number"
444
+ },
445
+ "previousMonthActiveDevices": {
446
+ "type": "number"
447
+ },
448
+ "requestDateActiveDevices": {
449
+ "type": "number"
450
+ }
451
+ }
452
+ },
453
+ "pushwoosh.accounts.payment_processor.GetSubscribersCountRequest": {
454
+ "type": "I",
455
+ "fields": {
456
+ "platforms": {
457
+ "type": "number",
458
+ "array": true
459
+ },
460
+ "dateFrom": {
461
+ "type": "Date"
462
+ },
463
+ "dateTo": {
464
+ "type": "Date"
465
+ }
466
+ }
467
+ },
468
+ "pushwoosh.accounts.payment_processor.GetSubscribersCountResponse": {
469
+ "type": "I",
470
+ "fields": {
471
+ "pushEnabled": {
472
+ "type": "number"
473
+ },
474
+ "pushDisabled": {
475
+ "type": "number"
476
+ }
477
+ }
478
+ },
479
+ "pushwoosh.accounts.payment_processor.GetActiveUsersCountRequest": {
480
+ "type": "I",
481
+ "fields": {
482
+ "dateFrom": {
483
+ "type": "Date"
484
+ },
485
+ "dateTo": {
486
+ "type": "Date"
487
+ }
488
+ }
489
+ },
490
+ "pushwoosh.accounts.payment_processor.GetActiveUsersCountResponse": {
491
+ "type": "I",
492
+ "fields": {
493
+ "monthlyActiveUsers": {
494
+ "type": "number"
495
+ },
496
+ "calendarMonthlyActiveUsers": {
497
+ "type": "number"
498
+ },
499
+ "previousMonthActiveUsers": {
500
+ "type": "number"
501
+ },
502
+ "requestDateActiveUsers": {
503
+ "type": "number"
504
+ }
505
+ }
506
+ },
507
+ "pushwoosh.accounts.payment_processor.GetTotalEmailSubscribersCountRequest": {
508
+ "type": "I",
509
+ "fields": {}
510
+ },
511
+ "pushwoosh.accounts.payment_processor.GetTotalEmailSubscribersCountResponse": {
512
+ "type": "I",
513
+ "fields": {
514
+ "totalEmailSubscribers": {
515
+ "type": "number"
516
+ }
517
+ }
518
+ },
519
+ "pushwoosh.accounts.payment_processor.CreateShopifySubscriptionRequest": {
520
+ "type": "I",
521
+ "fields": {}
522
+ },
523
+ "pushwoosh.accounts.payment_processor.CreateShopifySubscriptionResponse": {
524
+ "type": "I",
525
+ "fields": {}
526
+ },
527
+ "pushwoosh.accounts.payment_processor.RevenueStreamRequest": {
528
+ "type": "I",
529
+ "fields": {
530
+ "dateFrom": {
531
+ "type": "Date"
532
+ },
533
+ "dateTo": {
534
+ "type": "Date"
535
+ }
536
+ }
537
+ },
538
+ "pushwoosh.accounts.payment_processor.RevenueStreamResponse.RevenueStream": {
539
+ "type": "I",
540
+ "fields": {
541
+ "amountPaid": {
542
+ "type": "number"
543
+ },
544
+ "amountUnpaid": {
545
+ "type": "number"
546
+ },
547
+ "currency": {
548
+ "type": "string"
549
+ },
550
+ "dateFrom": {
551
+ "type": "Date"
552
+ },
553
+ "dateTo": {
554
+ "type": "Date"
555
+ }
556
+ }
557
+ },
558
+ "pushwoosh.accounts.payment_processor.RevenueStreamResponse": {
559
+ "type": "I",
560
+ "fields": {
561
+ "revenueStreams": {
562
+ "type": "pushwoosh.accounts.payment_processor.RevenueStreamResponse.RevenueStream",
563
+ "array": true
564
+ }
565
+ }
566
+ },
567
+ "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletRequest.ChargeUnit": {
568
+ "type": "I",
569
+ "fields": {
570
+ "model": {
571
+ "type": "string"
572
+ },
573
+ "tokenType": {
574
+ "type": "string"
575
+ },
576
+ "value": {
577
+ "type": "number"
578
+ },
579
+ "messageId": {
580
+ "type": "number"
581
+ },
582
+ "chatId": {
583
+ "type": "number"
584
+ },
585
+ "applicationId": {
586
+ "type": "number"
587
+ }
588
+ }
589
+ },
590
+ "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletRequest": {
591
+ "type": "I",
592
+ "fields": {
593
+ "units": {
594
+ "type": "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletRequest.ChargeUnit",
595
+ "array": true
596
+ }
597
+ }
598
+ },
599
+ "pushwoosh.accounts.payment_processor.ChargeAccountTokenWalletResponse": {
600
+ "type": "I",
601
+ "fields": {
602
+ "paid": {
603
+ "type": "boolean"
604
+ },
605
+ "message": {
606
+ "type": "string"
607
+ }
608
+ }
609
+ },
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
+ "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageAllowedRequest": {
654
+ "type": "I",
655
+ "fields": {}
656
+ },
657
+ "pushwoosh.accounts.payment_processor.GetAccountTokenWalletUsageAllowedResponse": {
658
+ "type": "I",
659
+ "fields": {
660
+ "allowed": {
661
+ "type": "boolean"
662
+ },
663
+ "reason": {
664
+ "type": "string"
665
+ }
666
+ }
667
+ },
668
+ "pushwoosh.accounts.payment_processor.PaymentProcessorService": {
669
+ "type": "S",
670
+ "key": "paymentProcessor",
671
+ "methods": {
672
+ "GetPaymentHistory": {
673
+ "request": "pushwoosh.accounts.payment_processor.GetPaymentHistoryRequest",
674
+ "response": "pushwoosh.accounts.payment_processor.GetPaymentHistoryResponse",
675
+ "method": "get",
676
+ "path": "/api/v1/payment-history"
677
+ },
678
+ "ListPaymentMethods": {
679
+ "request": "pushwoosh.accounts.payment_processor.ListPaymentMethodsRequest",
680
+ "response": "pushwoosh.accounts.payment_processor.ListPaymentMethodsResponse",
681
+ "method": "get",
682
+ "path": "/api/v1/list-payment-methods"
683
+ },
684
+ "DeletePaymentMethod": {
685
+ "request": "pushwoosh.accounts.payment_processor.DeletePaymentMethodRequest",
686
+ "response": "pushwoosh.accounts.payment_processor.DeletePaymentMethodResponse",
687
+ "method": "get",
688
+ "path": "/api/v1/delete-payment-method"
689
+ },
690
+ "SavePaypal": {
691
+ "request": "pushwoosh.accounts.payment_processor.SavePaypalRequest",
692
+ "response": "pushwoosh.accounts.payment_processor.SavePaypalResponse",
693
+ "method": "post",
694
+ "path": "/api/v1/save-paypal"
695
+ },
696
+ "SaveCard": {
697
+ "request": "pushwoosh.accounts.payment_processor.SaveCardRequest",
698
+ "response": "pushwoosh.accounts.payment_processor.SaveCardResponse",
699
+ "method": "post",
700
+ "path": "/api/v1/save-card"
701
+ },
702
+ "SaveDefaultPaymentMethod": {
703
+ "request": "pushwoosh.accounts.payment_processor.SaveDefaultPaymentMethodRequest",
704
+ "response": "pushwoosh.accounts.payment_processor.SaveDefaultPaymentMethodResponse",
705
+ "method": "post",
706
+ "path": "/api/v1/save-default-payment-method"
707
+ },
708
+ "GetEstimatedSubscription": {
709
+ "request": "pushwoosh.accounts.payment_processor.GetEstimatedSubscriptionRequest",
710
+ "response": "pushwoosh.accounts.payment_processor.GetEstimatedSubscriptionResponse",
711
+ "method": "post",
712
+ "path": "/api/v1/get-estimated-subscription"
713
+ },
714
+ "CreateSubscription": {
715
+ "request": "pushwoosh.accounts.payment_processor.CreateSubscriptionRequest",
716
+ "response": "pushwoosh.accounts.payment_processor.CreateSubscriptionResponse",
717
+ "method": "post",
718
+ "path": "/api/v1/create-subscription"
719
+ },
720
+ "CancelSubscription": {
721
+ "request": "pushwoosh.accounts.payment_processor.CancelSubscriptionRequest",
722
+ "response": "pushwoosh.accounts.payment_processor.CancelSubscriptionResponse",
723
+ "method": "post",
724
+ "path": "/api/v1/cancel-subscription"
725
+ },
726
+ "GetNextEstimatedInvoice": {
727
+ "request": "pushwoosh.accounts.payment_processor.GetNextEstimatedInvoiceRequest",
728
+ "response": "pushwoosh.accounts.payment_processor.GetNextEstimatedInvoiceResponse",
729
+ "method": "post",
730
+ "path": "/api/v1/get-next-estimated-invoice"
731
+ },
732
+ "PayInvoice": {
733
+ "request": "pushwoosh.accounts.payment_processor.PayInvoiceRequest",
734
+ "response": "pushwoosh.accounts.payment_processor.PayInvoiceResponse",
735
+ "method": "post",
736
+ "path": "/api/v1/pay-invoice"
737
+ },
738
+ "GetCountries": {
739
+ "request": "pushwoosh.accounts.payment_processor.GetCountriesRequest",
740
+ "response": "pushwoosh.accounts.payment_processor.GetCountriesResponse",
741
+ "method": "post",
742
+ "path": "/api/v1/get-countries"
743
+ },
744
+ "GetRegions": {
745
+ "request": "pushwoosh.accounts.payment_processor.GetRegionsRequest",
746
+ "response": "pushwoosh.accounts.payment_processor.GetRegionsResponse",
747
+ "method": "post",
748
+ "path": "/api/v1/get-regions"
749
+ },
750
+ "GetAccountCounters": {
751
+ "request": "pushwoosh.accounts.payment_processor.GetAccountCountersRequest",
752
+ "response": "pushwoosh.accounts.payment_processor.GetAccountCountersResponse",
753
+ "method": "get",
754
+ "path": "/api/v1/get-account-counters"
755
+ },
756
+ "XeroLogin": {
757
+ "request": "pushwoosh.accounts.payment_processor.XeroLoginRequest",
758
+ "response": "pushwoosh.accounts.payment_processor.XeroLoginResponse",
759
+ "method": "get",
760
+ "path": "/api/v1/xero-login/{country}"
761
+ },
762
+ "XeroCallback": {
763
+ "request": "pushwoosh.accounts.payment_processor.XeroCallbackRequest",
764
+ "response": "pushwoosh.accounts.payment_processor.XeroCallbackResponse",
765
+ "method": "get",
766
+ "path": "/api/v1/xero-callback/{country}"
767
+ },
768
+ "GetAccountTokenWallet": {
769
+ "request": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletRequest",
770
+ "response": "pushwoosh.accounts.payment_processor.GetAccountTokenWalletResponse",
771
+ "method": "get",
772
+ "path": "/api/v1/token-wallet/get"
773
+ },
774
+ "UpdateAccountTokenWallet": {
775
+ "request": "pushwoosh.accounts.payment_processor.UpdateAccountTokenWalletRequest",
776
+ "response": "pushwoosh.accounts.payment_processor.UpdateAccountTokenWalletResponse",
777
+ "method": "put",
778
+ "path": "/api/v1/token-wallet/update"
779
+ },
780
+ "AccountTokenWalletPayment": {
781
+ "request": "pushwoosh.accounts.payment_processor.AccountTokenWalletPaymentRequest",
782
+ "response": "pushwoosh.accounts.payment_processor.AccountTokenWalletPaymentResponse",
783
+ "method": "post",
784
+ "path": "/api/v1/token-wallet/payment"
785
+ }
786
+ }
787
+ },
788
+ "pushwoosh.accounts.payment_processor.GetPaymentHistoryRequest": {
789
+ "type": "I",
790
+ "fields": {}
791
+ },
792
+ "pushwoosh.accounts.payment_processor.Payment": {
793
+ "type": "I",
794
+ "fields": {
795
+ "invoiceId": {
796
+ "type": "number"
797
+ },
798
+ "amount": {
799
+ "type": "string"
800
+ },
801
+ "currency": {
802
+ "type": "string"
803
+ },
804
+ "status": {
805
+ "type": "string"
806
+ },
807
+ "type": {
808
+ "type": "string"
809
+ },
810
+ "title": {
811
+ "type": "string"
812
+ },
813
+ "invoiceLink": {
814
+ "type": "string"
815
+ },
816
+ "billingStartDate": {
817
+ "type": "Date"
818
+ },
819
+ "billingEndDate": {
820
+ "type": "Date"
821
+ },
822
+ "createdDate": {
823
+ "type": "Date"
824
+ },
825
+ "receiptDate": {
826
+ "type": "Date"
827
+ }
828
+ }
829
+ },
830
+ "pushwoosh.accounts.payment_processor.GetPaymentHistoryResponse": {
831
+ "type": "I",
832
+ "fields": {
833
+ "payments": {
834
+ "type": "pushwoosh.accounts.payment_processor.Payment",
835
+ "array": true
836
+ }
837
+ }
838
+ },
839
+ "pushwoosh.accounts.payment_processor.ListPaymentMethodsRequest": {
840
+ "type": "I",
841
+ "fields": {}
842
+ },
843
+ "pushwoosh.accounts.payment_processor.PaymentCard": {
844
+ "type": "I",
845
+ "fields": {
846
+ "cardNumber": {
847
+ "type": "string"
848
+ },
849
+ "cardType": {
850
+ "type": "string"
851
+ },
852
+ "token": {
853
+ "type": "string"
854
+ },
855
+ "expirationTime": {
856
+ "type": "Date"
857
+ }
858
+ }
859
+ },
860
+ "pushwoosh.accounts.payment_processor.PaymentPaypal": {
861
+ "type": "I",
862
+ "fields": {
863
+ "email": {
864
+ "type": "string"
865
+ },
866
+ "token": {
867
+ "type": "string"
868
+ }
869
+ }
870
+ },
871
+ "pushwoosh.accounts.payment_processor.PaymentMethod": {
872
+ "type": "I",
873
+ "fields": {
874
+ "card": {
875
+ "type": "pushwoosh.accounts.payment_processor.PaymentCard"
876
+ },
877
+ "paypal": {
878
+ "type": "pushwoosh.accounts.payment_processor.PaymentPaypal"
879
+ },
880
+ "isMain": {
881
+ "type": "boolean"
882
+ }
883
+ },
884
+ "oneofs": {
885
+ "paymentMethod": {
886
+ "oneof": [
887
+ "card",
888
+ "paypal"
889
+ ]
890
+ }
891
+ }
892
+ },
893
+ "pushwoosh.accounts.payment_processor.ListPaymentMethodsResponse": {
894
+ "type": "I",
895
+ "fields": {
896
+ "paymentMethods": {
897
+ "type": "pushwoosh.accounts.payment_processor.PaymentMethod",
898
+ "array": true
899
+ },
900
+ "clientToken": {
901
+ "type": "string"
902
+ }
903
+ }
904
+ },
905
+ "pushwoosh.accounts.payment_processor.SavePaypalRequest": {
906
+ "type": "I",
907
+ "fields": {
908
+ "paypalNonce": {
909
+ "type": "string"
910
+ }
911
+ }
912
+ },
913
+ "pushwoosh.accounts.payment_processor.SavePaypalResponse": {
914
+ "type": "I",
915
+ "fields": {
916
+ "token": {
917
+ "type": "string"
918
+ }
919
+ }
920
+ },
921
+ "pushwoosh.accounts.payment_processor.SaveCardRequest": {
922
+ "type": "I",
923
+ "fields": {
924
+ "cardNumber": {
925
+ "type": "string"
926
+ },
927
+ "cardholderName": {
928
+ "type": "string"
929
+ },
930
+ "expirationMonth": {
931
+ "type": "string"
932
+ },
933
+ "expirationYear": {
934
+ "type": "string"
935
+ },
936
+ "cvv": {
937
+ "type": "string"
938
+ }
939
+ }
940
+ },
941
+ "pushwoosh.accounts.payment_processor.SaveCardResponse": {
942
+ "type": "I",
943
+ "fields": {
944
+ "token": {
945
+ "type": "string"
946
+ }
947
+ }
948
+ },
949
+ "pushwoosh.accounts.payment_processor.SaveDefaultPaymentMethodRequest": {
950
+ "type": "I",
951
+ "fields": {
952
+ "token": {
953
+ "type": "string"
954
+ }
955
+ }
956
+ },
957
+ "pushwoosh.accounts.payment_processor.SaveDefaultPaymentMethodResponse": {
958
+ "type": "I",
959
+ "fields": {}
960
+ },
961
+ "pushwoosh.accounts.payment_processor.DeletePaymentMethodRequest": {
962
+ "type": "I",
963
+ "fields": {
964
+ "token": {
965
+ "type": "string"
966
+ },
967
+ "newMainToken": {
968
+ "type": "string"
969
+ }
970
+ }
971
+ },
972
+ "pushwoosh.accounts.payment_processor.DeletePaymentMethodResponse": {
973
+ "type": "I",
974
+ "fields": {}
975
+ },
976
+ "pushwoosh.accounts.payment_processor.CreateSubscriptionRequest": {
977
+ "type": "I",
978
+ "fields": {
979
+ "product": {
980
+ "type": "string"
981
+ }
982
+ }
983
+ },
984
+ "pushwoosh.accounts.payment_processor.CreateSubscriptionResponse": {
985
+ "type": "I",
986
+ "fields": {
987
+ "paid": {
988
+ "type": "boolean"
989
+ },
990
+ "message": {
991
+ "type": "string"
992
+ }
993
+ }
994
+ },
995
+ "pushwoosh.accounts.payment_processor.GetEstimatedSubscriptionRequest": {
996
+ "type": "I",
997
+ "fields": {
998
+ "product": {
999
+ "type": "string"
1000
+ }
1001
+ }
1002
+ },
1003
+ "pushwoosh.accounts.payment_processor.GetEstimatedSubscriptionResponse": {
1004
+ "type": "I",
1005
+ "fields": {
1006
+ "invoice": {
1007
+ "type": "pushwoosh.accounts.payment_processor.Invoice"
1008
+ }
1009
+ }
1010
+ },
1011
+ "pushwoosh.accounts.payment_processor.CancelSubscriptionRequest": {
1012
+ "type": "I",
1013
+ "fields": {
1014
+ "reason": {
1015
+ "type": "string"
1016
+ }
1017
+ }
1018
+ },
1019
+ "pushwoosh.accounts.payment_processor.CancelSubscriptionResponse": {
1020
+ "type": "I",
1021
+ "fields": {}
1022
+ },
1023
+ "pushwoosh.accounts.payment_processor.GetNextEstimatedInvoiceRequest": {
1024
+ "type": "I",
1025
+ "fields": {
1026
+ "orderId": {
1027
+ "type": "number"
1028
+ }
1029
+ }
1030
+ },
1031
+ "pushwoosh.accounts.payment_processor.InvoiceItem": {
1032
+ "type": "I",
1033
+ "fields": {
1034
+ "amount": {
1035
+ "type": "string"
1036
+ },
1037
+ "currency": {
1038
+ "type": "string"
1039
+ },
1040
+ "description": {
1041
+ "type": "string"
1042
+ },
1043
+ "counterType": {
1044
+ "type": "string"
1045
+ },
1046
+ "counterValue": {
1047
+ "type": "number"
1048
+ }
1049
+ }
1050
+ },
1051
+ "pushwoosh.accounts.payment_processor.Invoice": {
1052
+ "type": "I",
1053
+ "fields": {
1054
+ "amount": {
1055
+ "type": "string"
1056
+ },
1057
+ "currency": {
1058
+ "type": "string"
1059
+ },
1060
+ "paymentDate": {
1061
+ "type": "Date"
1062
+ },
1063
+ "items": {
1064
+ "type": "pushwoosh.accounts.payment_processor.InvoiceItem",
1065
+ "array": true
1066
+ },
1067
+ "billingPeriodMonths": {
1068
+ "type": "number"
1069
+ }
1070
+ }
1071
+ },
1072
+ "pushwoosh.accounts.payment_processor.GetNextEstimatedInvoiceResponse": {
1073
+ "type": "I",
1074
+ "fields": {
1075
+ "planName": {
1076
+ "type": "string"
1077
+ },
1078
+ "planType": {
1079
+ "type": "string"
1080
+ },
1081
+ "payByCard": {
1082
+ "type": "boolean"
1083
+ },
1084
+ "invoice": {
1085
+ "type": "pushwoosh.accounts.payment_processor.Invoice"
1086
+ },
1087
+ "overage": {
1088
+ "type": "pushwoosh.accounts.payment_processor.Invoice"
1089
+ }
1090
+ }
1091
+ },
1092
+ "pushwoosh.accounts.payment_processor.PayInvoiceRequest": {
1093
+ "type": "I",
1094
+ "fields": {
1095
+ "invoiceId": {
1096
+ "type": "number"
1097
+ },
1098
+ "token": {
1099
+ "type": "string"
1100
+ }
1101
+ }
1102
+ },
1103
+ "pushwoosh.accounts.payment_processor.PayInvoiceResponse": {
1104
+ "type": "I",
1105
+ "fields": {
1106
+ "paid": {
1107
+ "type": "boolean"
1108
+ },
1109
+ "message": {
1110
+ "type": "string"
1111
+ }
1112
+ }
1113
+ },
1114
+ "pushwoosh.accounts.payment_processor.GetCountriesRequest": {
1115
+ "type": "I",
1116
+ "fields": {
1117
+ "name": {
1118
+ "type": "string"
1119
+ }
1120
+ }
1121
+ },
1122
+ "pushwoosh.accounts.payment_processor.GetCountriesResponse.Country": {
1123
+ "type": "I",
1124
+ "fields": {
1125
+ "name": {
1126
+ "type": "string"
1127
+ },
1128
+ "code": {
1129
+ "type": "string"
1130
+ }
1131
+ }
1132
+ },
1133
+ "pushwoosh.accounts.payment_processor.GetCountriesResponse": {
1134
+ "type": "I",
1135
+ "fields": {
1136
+ "countries": {
1137
+ "type": "pushwoosh.accounts.payment_processor.GetCountriesResponse.Country",
1138
+ "array": true
1139
+ }
1140
+ }
1141
+ },
1142
+ "pushwoosh.accounts.payment_processor.GetRegionsRequest": {
1143
+ "type": "I",
1144
+ "fields": {
1145
+ "countryCode": {
1146
+ "type": "string"
1147
+ },
1148
+ "name": {
1149
+ "type": "string"
1150
+ }
1151
+ }
1152
+ },
1153
+ "pushwoosh.accounts.payment_processor.GetRegionsResponse.Region": {
1154
+ "type": "I",
1155
+ "fields": {
1156
+ "name": {
1157
+ "type": "string"
1158
+ },
1159
+ "code": {
1160
+ "type": "string"
1161
+ }
1162
+ }
1163
+ },
1164
+ "pushwoosh.accounts.payment_processor.GetRegionsResponse": {
1165
+ "type": "I",
1166
+ "fields": {
1167
+ "regions": {
1168
+ "type": "pushwoosh.accounts.payment_processor.GetRegionsResponse.Region",
1169
+ "array": true
1170
+ }
1171
+ }
1172
+ },
1173
+ "pushwoosh.accounts.payment_processor.GetAccountCountersRequest": {
1174
+ "type": "I",
1175
+ "fields": {
1176
+ "dateFrom": {
1177
+ "type": "Date"
1178
+ },
1179
+ "dateTo": {
1180
+ "type": "Date"
1181
+ }
1182
+ }
1183
+ },
1184
+ "pushwoosh.accounts.payment_processor.GetAccountCountersResponse": {
1185
+ "type": "I",
1186
+ "fields": {
1187
+ "applications": {
1188
+ "type": "number"
1189
+ },
1190
+ "activeUsers": {
1191
+ "type": "number"
1192
+ },
1193
+ "activeDevices": {
1194
+ "type": "number"
1195
+ },
1196
+ "maped": {
1197
+ "type": "number"
1198
+ },
1199
+ "emailSubscribers": {
1200
+ "type": "number"
1201
+ },
1202
+ "pushEnabledDevices": {
1203
+ "type": "number"
1204
+ },
1205
+ "emailsPerMonth": {
1206
+ "type": "number"
1207
+ },
1208
+ "usersCount": {
1209
+ "type": "number"
1210
+ },
1211
+ "datapointsCount": {
1212
+ "type": "number"
1213
+ },
1214
+ "inappImpressions": {
1215
+ "type": "number"
1216
+ },
1217
+ "smsSpent": {
1218
+ "type": "number"
1219
+ },
1220
+ "parentAccountId": {
1221
+ "type": "number"
1222
+ },
1223
+ "subAccountIds": {
1224
+ "type": "number",
1225
+ "array": true
1226
+ },
1227
+ "seatsCount": {
1228
+ "type": "number"
1229
+ }
1230
+ }
1231
+ },
1232
+ "pushwoosh.accounts.payment_processor.XeroLoginRequest": {
1233
+ "type": "I",
1234
+ "fields": {
1235
+ "country": {
1236
+ "type": "string"
1237
+ }
1238
+ }
1239
+ },
1240
+ "pushwoosh.accounts.payment_processor.XeroLoginResponse": {
1241
+ "type": "I",
1242
+ "fields": {}
1243
+ },
1244
+ "pushwoosh.accounts.payment_processor.XeroCallbackRequest": {
1245
+ "type": "I",
1246
+ "fields": {
1247
+ "code": {
1248
+ "type": "string"
1249
+ },
1250
+ "country": {
1251
+ "type": "string"
1252
+ }
1253
+ }
1254
+ },
1255
+ "pushwoosh.accounts.payment_processor.XeroCallbackResponse": {
1256
+ "type": "I",
1257
+ "fields": {}
1258
+ },
1259
+ "pushwoosh.accounts.payment_processor.GetAccountTokenWalletRequest": {
1260
+ "type": "I",
1261
+ "fields": {}
1262
+ },
1263
+ "pushwoosh.accounts.payment_processor.GetAccountTokenWalletResponse": {
1264
+ "type": "I",
1265
+ "fields": {
1266
+ "balance": {
1267
+ "type": "google.type.Money"
1268
+ },
1269
+ "autorefillEnabled": {
1270
+ "type": "boolean"
1271
+ },
1272
+ "autorefillThreshold": {
1273
+ "type": "google.type.Money"
1274
+ },
1275
+ "autorefillAmount": {
1276
+ "type": "google.type.Money"
1277
+ }
1278
+ }
1279
+ },
1280
+ "pushwoosh.accounts.payment_processor.UpdateAccountTokenWalletRequest": {
1281
+ "type": "I",
1282
+ "fields": {
1283
+ "autorefillEnabled": {
1284
+ "type": "boolean"
1285
+ },
1286
+ "autorefillThreshold": {
1287
+ "type": "google.type.Money"
1288
+ },
1289
+ "autorefillAmount": {
1290
+ "type": "google.type.Money"
1291
+ }
1292
+ }
1293
+ },
1294
+ "pushwoosh.accounts.payment_processor.UpdateAccountTokenWalletResponse": {
1295
+ "type": "I",
1296
+ "fields": {}
1297
+ },
1298
+ "pushwoosh.accounts.payment_processor.AccountTokenWalletPaymentRequest": {
1299
+ "type": "I",
1300
+ "fields": {
1301
+ "amount": {
1302
+ "type": "google.type.Money"
1303
+ }
1304
+ }
1305
+ },
1306
+ "pushwoosh.accounts.payment_processor.AccountTokenWalletPaymentResponse": {
1307
+ "type": "I",
1308
+ "fields": {
1309
+ "paid": {
1310
+ "type": "boolean"
1311
+ },
1312
+ "message": {
1313
+ "type": "string"
1314
+ }
1315
+ }
1316
+ }
1317
+ };