protobuf-platform 1.0.231 → 1.0.233
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/package.json +1 -1
- package/payment/payment.proto +28 -5
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +1045 -39
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -20,6 +20,7 @@ service Payment {
|
|
20
20
|
//Deposit
|
21
21
|
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
22
22
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
23
|
+
rpc readListDeposits(PaginationRequest) returns (DepositItemsResponse);
|
23
24
|
//Deposit Statuses
|
24
25
|
rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
|
25
26
|
//User
|
@@ -35,11 +36,16 @@ message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
|
35
36
|
|
36
37
|
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional PaymentSearchRequest payment_search_params = 3; }
|
37
38
|
message PaymentSearchRequest {
|
38
|
-
optional int32
|
39
|
-
|
40
|
-
repeated
|
41
|
-
|
42
|
-
|
39
|
+
optional int32 deposit_id = 1;
|
40
|
+
optional int32 withdrawal_id = 2;
|
41
|
+
repeated int32 user_ids = 3;
|
42
|
+
repeated string currency = 4;
|
43
|
+
repeated string geo = 5;
|
44
|
+
optional string processing_type = 6;
|
45
|
+
optional string transaction_type = 7;
|
46
|
+
repeated int32 provider_ids = 8;
|
47
|
+
repeated int32 method_ids = 9;
|
48
|
+
repeated int32 deposit_statuses = 10;
|
43
49
|
}
|
44
50
|
//Provider CRUD | Requests
|
45
51
|
message ProviderItem {
|
@@ -134,6 +140,23 @@ message DepositResponse {
|
|
134
140
|
int32 id = 1;
|
135
141
|
string status = 2;
|
136
142
|
}
|
143
|
+
message DepositItem {
|
144
|
+
int32 id = 1;
|
145
|
+
int32 user_id = 2;
|
146
|
+
string status = 3;
|
147
|
+
float amount_attempt = 4;
|
148
|
+
float amount_paid = 5;
|
149
|
+
float fee = 6;
|
150
|
+
string currency = 7;
|
151
|
+
optional string payment_method_title = 8;
|
152
|
+
optional string payment_provider_image = 9;
|
153
|
+
optional string created = 10;
|
154
|
+
}
|
155
|
+
message DepositItemsResponse {
|
156
|
+
repeated DepositItem items = 1;
|
157
|
+
optional int32 total_pages = 2;
|
158
|
+
optional int32 total_items = 3;
|
159
|
+
}
|
137
160
|
//Deposit Status
|
138
161
|
message DepositStatus {
|
139
162
|
int32 id = 1;
|
@@ -15,6 +15,17 @@ function deserialize_payment_AttemptDepositRequest(buffer_arg) {
|
|
15
15
|
return payment_pb.AttemptDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
16
16
|
}
|
17
17
|
|
18
|
+
function serialize_payment_DepositItemsResponse(arg) {
|
19
|
+
if (!(arg instanceof payment_pb.DepositItemsResponse)) {
|
20
|
+
throw new Error('Expected argument of type payment.DepositItemsResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_payment_DepositItemsResponse(buffer_arg) {
|
26
|
+
return payment_pb.DepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
18
29
|
function serialize_payment_DepositResponse(arg) {
|
19
30
|
if (!(arg instanceof payment_pb.DepositResponse)) {
|
20
31
|
throw new Error('Expected argument of type payment.DepositResponse');
|
@@ -394,6 +405,17 @@ attemptDeposit: {
|
|
394
405
|
responseSerialize: serialize_payment_DepositResponse,
|
395
406
|
responseDeserialize: deserialize_payment_DepositResponse,
|
396
407
|
},
|
408
|
+
readListDeposits: {
|
409
|
+
path: '/payment.Payment/readListDeposits',
|
410
|
+
requestStream: false,
|
411
|
+
responseStream: false,
|
412
|
+
requestType: payment_pb.PaginationRequest,
|
413
|
+
responseType: payment_pb.DepositItemsResponse,
|
414
|
+
requestSerialize: serialize_payment_PaginationRequest,
|
415
|
+
requestDeserialize: deserialize_payment_PaginationRequest,
|
416
|
+
responseSerialize: serialize_payment_DepositItemsResponse,
|
417
|
+
responseDeserialize: deserialize_payment_DepositItemsResponse,
|
418
|
+
},
|
397
419
|
// Deposit Statuses
|
398
420
|
readListDepositStatuses: {
|
399
421
|
path: '/payment.Payment/readListDepositStatuses',
|
package/payment/payment_pb.js
CHANGED
@@ -22,6 +22,8 @@ var global = (function() {
|
|
22
22
|
}.call(null));
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
|
25
|
+
goog.exportSymbol('proto.payment.DepositItem', null, global);
|
26
|
+
goog.exportSymbol('proto.payment.DepositItemsResponse', null, global);
|
25
27
|
goog.exportSymbol('proto.payment.DepositResponse', null, global);
|
26
28
|
goog.exportSymbol('proto.payment.DepositStatus', null, global);
|
27
29
|
goog.exportSymbol('proto.payment.DepositStatusItemsResponse', null, global);
|
@@ -513,6 +515,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
513
515
|
*/
|
514
516
|
proto.payment.DepositResponse.displayName = 'proto.payment.DepositResponse';
|
515
517
|
}
|
518
|
+
/**
|
519
|
+
* Generated by JsPbCodeGenerator.
|
520
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
521
|
+
* server response, or constructed directly in Javascript. The array is used
|
522
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
523
|
+
* If no data is provided, the constructed object will be empty, but still
|
524
|
+
* valid.
|
525
|
+
* @extends {jspb.Message}
|
526
|
+
* @constructor
|
527
|
+
*/
|
528
|
+
proto.payment.DepositItem = function(opt_data) {
|
529
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
530
|
+
};
|
531
|
+
goog.inherits(proto.payment.DepositItem, jspb.Message);
|
532
|
+
if (goog.DEBUG && !COMPILED) {
|
533
|
+
/**
|
534
|
+
* @public
|
535
|
+
* @override
|
536
|
+
*/
|
537
|
+
proto.payment.DepositItem.displayName = 'proto.payment.DepositItem';
|
538
|
+
}
|
539
|
+
/**
|
540
|
+
* Generated by JsPbCodeGenerator.
|
541
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
542
|
+
* server response, or constructed directly in Javascript. The array is used
|
543
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
544
|
+
* If no data is provided, the constructed object will be empty, but still
|
545
|
+
* valid.
|
546
|
+
* @extends {jspb.Message}
|
547
|
+
* @constructor
|
548
|
+
*/
|
549
|
+
proto.payment.DepositItemsResponse = function(opt_data) {
|
550
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.DepositItemsResponse.repeatedFields_, null);
|
551
|
+
};
|
552
|
+
goog.inherits(proto.payment.DepositItemsResponse, jspb.Message);
|
553
|
+
if (goog.DEBUG && !COMPILED) {
|
554
|
+
/**
|
555
|
+
* @public
|
556
|
+
* @override
|
557
|
+
*/
|
558
|
+
proto.payment.DepositItemsResponse.displayName = 'proto.payment.DepositItemsResponse';
|
559
|
+
}
|
516
560
|
/**
|
517
561
|
* Generated by JsPbCodeGenerator.
|
518
562
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1526,7 +1570,7 @@ proto.payment.PaginationRequest.prototype.hasPaymentSearchParams = function() {
|
|
1526
1570
|
* @private {!Array<number>}
|
1527
1571
|
* @const
|
1528
1572
|
*/
|
1529
|
-
proto.payment.PaymentSearchRequest.repeatedFields_ = [
|
1573
|
+
proto.payment.PaymentSearchRequest.repeatedFields_ = [3,4,5,8,9,10];
|
1530
1574
|
|
1531
1575
|
|
1532
1576
|
|
@@ -1559,11 +1603,16 @@ proto.payment.PaymentSearchRequest.prototype.toObject = function(opt_includeInst
|
|
1559
1603
|
*/
|
1560
1604
|
proto.payment.PaymentSearchRequest.toObject = function(includeInstance, msg) {
|
1561
1605
|
var f, obj = {
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1606
|
+
depositId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1607
|
+
withdrawalId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1608
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
1609
|
+
currencyList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
1610
|
+
geoList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
1611
|
+
processingType: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1612
|
+
transactionType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
1613
|
+
providerIdsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
|
1614
|
+
methodIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
|
1615
|
+
depositStatusesList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f
|
1567
1616
|
};
|
1568
1617
|
|
1569
1618
|
if (includeInstance) {
|
@@ -1602,24 +1651,52 @@ proto.payment.PaymentSearchRequest.deserializeBinaryFromReader = function(msg, r
|
|
1602
1651
|
switch (field) {
|
1603
1652
|
case 1:
|
1604
1653
|
var value = /** @type {number} */ (reader.readInt32());
|
1605
|
-
msg.
|
1654
|
+
msg.setDepositId(value);
|
1606
1655
|
break;
|
1607
1656
|
case 2:
|
1657
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1658
|
+
msg.setWithdrawalId(value);
|
1659
|
+
break;
|
1660
|
+
case 3:
|
1661
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1662
|
+
for (var i = 0; i < values.length; i++) {
|
1663
|
+
msg.addUserIds(values[i]);
|
1664
|
+
}
|
1665
|
+
break;
|
1666
|
+
case 4:
|
1608
1667
|
var value = /** @type {string} */ (reader.readString());
|
1609
1668
|
msg.addCurrency(value);
|
1610
1669
|
break;
|
1611
|
-
case
|
1670
|
+
case 5:
|
1612
1671
|
var value = /** @type {string} */ (reader.readString());
|
1613
1672
|
msg.addGeo(value);
|
1614
1673
|
break;
|
1615
|
-
case
|
1674
|
+
case 6:
|
1616
1675
|
var value = /** @type {string} */ (reader.readString());
|
1617
1676
|
msg.setProcessingType(value);
|
1618
1677
|
break;
|
1619
|
-
case
|
1678
|
+
case 7:
|
1620
1679
|
var value = /** @type {string} */ (reader.readString());
|
1621
1680
|
msg.setTransactionType(value);
|
1622
1681
|
break;
|
1682
|
+
case 8:
|
1683
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1684
|
+
for (var i = 0; i < values.length; i++) {
|
1685
|
+
msg.addProviderIds(values[i]);
|
1686
|
+
}
|
1687
|
+
break;
|
1688
|
+
case 9:
|
1689
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1690
|
+
for (var i = 0; i < values.length; i++) {
|
1691
|
+
msg.addMethodIds(values[i]);
|
1692
|
+
}
|
1693
|
+
break;
|
1694
|
+
case 10:
|
1695
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1696
|
+
for (var i = 0; i < values.length; i++) {
|
1697
|
+
msg.addDepositStatuses(values[i]);
|
1698
|
+
}
|
1699
|
+
break;
|
1623
1700
|
default:
|
1624
1701
|
reader.skipField();
|
1625
1702
|
break;
|
@@ -1656,31 +1733,66 @@ proto.payment.PaymentSearchRequest.serializeBinaryToWriter = function(message, w
|
|
1656
1733
|
f
|
1657
1734
|
);
|
1658
1735
|
}
|
1736
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1737
|
+
if (f != null) {
|
1738
|
+
writer.writeInt32(
|
1739
|
+
2,
|
1740
|
+
f
|
1741
|
+
);
|
1742
|
+
}
|
1743
|
+
f = message.getUserIdsList();
|
1744
|
+
if (f.length > 0) {
|
1745
|
+
writer.writePackedInt32(
|
1746
|
+
3,
|
1747
|
+
f
|
1748
|
+
);
|
1749
|
+
}
|
1659
1750
|
f = message.getCurrencyList();
|
1660
1751
|
if (f.length > 0) {
|
1661
1752
|
writer.writeRepeatedString(
|
1662
|
-
|
1753
|
+
4,
|
1663
1754
|
f
|
1664
1755
|
);
|
1665
1756
|
}
|
1666
1757
|
f = message.getGeoList();
|
1667
1758
|
if (f.length > 0) {
|
1668
1759
|
writer.writeRepeatedString(
|
1669
|
-
|
1760
|
+
5,
|
1670
1761
|
f
|
1671
1762
|
);
|
1672
1763
|
}
|
1673
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1764
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1674
1765
|
if (f != null) {
|
1675
1766
|
writer.writeString(
|
1676
|
-
|
1767
|
+
6,
|
1677
1768
|
f
|
1678
1769
|
);
|
1679
1770
|
}
|
1680
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1771
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1681
1772
|
if (f != null) {
|
1682
1773
|
writer.writeString(
|
1683
|
-
|
1774
|
+
7,
|
1775
|
+
f
|
1776
|
+
);
|
1777
|
+
}
|
1778
|
+
f = message.getProviderIdsList();
|
1779
|
+
if (f.length > 0) {
|
1780
|
+
writer.writePackedInt32(
|
1781
|
+
8,
|
1782
|
+
f
|
1783
|
+
);
|
1784
|
+
}
|
1785
|
+
f = message.getMethodIdsList();
|
1786
|
+
if (f.length > 0) {
|
1787
|
+
writer.writePackedInt32(
|
1788
|
+
9,
|
1789
|
+
f
|
1790
|
+
);
|
1791
|
+
}
|
1792
|
+
f = message.getDepositStatusesList();
|
1793
|
+
if (f.length > 0) {
|
1794
|
+
writer.writePackedInt32(
|
1795
|
+
10,
|
1684
1796
|
f
|
1685
1797
|
);
|
1686
1798
|
}
|
@@ -1688,10 +1800,10 @@ proto.payment.PaymentSearchRequest.serializeBinaryToWriter = function(message, w
|
|
1688
1800
|
|
1689
1801
|
|
1690
1802
|
/**
|
1691
|
-
* optional int32
|
1803
|
+
* optional int32 deposit_id = 1;
|
1692
1804
|
* @return {number}
|
1693
1805
|
*/
|
1694
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1806
|
+
proto.payment.PaymentSearchRequest.prototype.getDepositId = function() {
|
1695
1807
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1696
1808
|
};
|
1697
1809
|
|
@@ -1700,7 +1812,7 @@ proto.payment.PaymentSearchRequest.prototype.getPaymentId = function() {
|
|
1700
1812
|
* @param {number} value
|
1701
1813
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1702
1814
|
*/
|
1703
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1815
|
+
proto.payment.PaymentSearchRequest.prototype.setDepositId = function(value) {
|
1704
1816
|
return jspb.Message.setField(this, 1, value);
|
1705
1817
|
};
|
1706
1818
|
|
@@ -1709,7 +1821,7 @@ proto.payment.PaymentSearchRequest.prototype.setPaymentId = function(value) {
|
|
1709
1821
|
* Clears the field making it undefined.
|
1710
1822
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1711
1823
|
*/
|
1712
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1824
|
+
proto.payment.PaymentSearchRequest.prototype.clearDepositId = function() {
|
1713
1825
|
return jspb.Message.setField(this, 1, undefined);
|
1714
1826
|
};
|
1715
1827
|
|
@@ -1718,17 +1830,90 @@ proto.payment.PaymentSearchRequest.prototype.clearPaymentId = function() {
|
|
1718
1830
|
* Returns whether this field is set.
|
1719
1831
|
* @return {boolean}
|
1720
1832
|
*/
|
1721
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1833
|
+
proto.payment.PaymentSearchRequest.prototype.hasDepositId = function() {
|
1722
1834
|
return jspb.Message.getField(this, 1) != null;
|
1723
1835
|
};
|
1724
1836
|
|
1725
1837
|
|
1726
1838
|
/**
|
1727
|
-
*
|
1839
|
+
* optional int32 withdrawal_id = 2;
|
1840
|
+
* @return {number}
|
1841
|
+
*/
|
1842
|
+
proto.payment.PaymentSearchRequest.prototype.getWithdrawalId = function() {
|
1843
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1844
|
+
};
|
1845
|
+
|
1846
|
+
|
1847
|
+
/**
|
1848
|
+
* @param {number} value
|
1849
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1850
|
+
*/
|
1851
|
+
proto.payment.PaymentSearchRequest.prototype.setWithdrawalId = function(value) {
|
1852
|
+
return jspb.Message.setField(this, 2, value);
|
1853
|
+
};
|
1854
|
+
|
1855
|
+
|
1856
|
+
/**
|
1857
|
+
* Clears the field making it undefined.
|
1858
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1859
|
+
*/
|
1860
|
+
proto.payment.PaymentSearchRequest.prototype.clearWithdrawalId = function() {
|
1861
|
+
return jspb.Message.setField(this, 2, undefined);
|
1862
|
+
};
|
1863
|
+
|
1864
|
+
|
1865
|
+
/**
|
1866
|
+
* Returns whether this field is set.
|
1867
|
+
* @return {boolean}
|
1868
|
+
*/
|
1869
|
+
proto.payment.PaymentSearchRequest.prototype.hasWithdrawalId = function() {
|
1870
|
+
return jspb.Message.getField(this, 2) != null;
|
1871
|
+
};
|
1872
|
+
|
1873
|
+
|
1874
|
+
/**
|
1875
|
+
* repeated int32 user_ids = 3;
|
1876
|
+
* @return {!Array<number>}
|
1877
|
+
*/
|
1878
|
+
proto.payment.PaymentSearchRequest.prototype.getUserIdsList = function() {
|
1879
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
|
1880
|
+
};
|
1881
|
+
|
1882
|
+
|
1883
|
+
/**
|
1884
|
+
* @param {!Array<number>} value
|
1885
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1886
|
+
*/
|
1887
|
+
proto.payment.PaymentSearchRequest.prototype.setUserIdsList = function(value) {
|
1888
|
+
return jspb.Message.setField(this, 3, value || []);
|
1889
|
+
};
|
1890
|
+
|
1891
|
+
|
1892
|
+
/**
|
1893
|
+
* @param {number} value
|
1894
|
+
* @param {number=} opt_index
|
1895
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1896
|
+
*/
|
1897
|
+
proto.payment.PaymentSearchRequest.prototype.addUserIds = function(value, opt_index) {
|
1898
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
1899
|
+
};
|
1900
|
+
|
1901
|
+
|
1902
|
+
/**
|
1903
|
+
* Clears the list making it empty but non-null.
|
1904
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1905
|
+
*/
|
1906
|
+
proto.payment.PaymentSearchRequest.prototype.clearUserIdsList = function() {
|
1907
|
+
return this.setUserIdsList([]);
|
1908
|
+
};
|
1909
|
+
|
1910
|
+
|
1911
|
+
/**
|
1912
|
+
* repeated string currency = 4;
|
1728
1913
|
* @return {!Array<string>}
|
1729
1914
|
*/
|
1730
1915
|
proto.payment.PaymentSearchRequest.prototype.getCurrencyList = function() {
|
1731
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this,
|
1916
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
1732
1917
|
};
|
1733
1918
|
|
1734
1919
|
|
@@ -1737,7 +1922,7 @@ proto.payment.PaymentSearchRequest.prototype.getCurrencyList = function() {
|
|
1737
1922
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1738
1923
|
*/
|
1739
1924
|
proto.payment.PaymentSearchRequest.prototype.setCurrencyList = function(value) {
|
1740
|
-
return jspb.Message.setField(this,
|
1925
|
+
return jspb.Message.setField(this, 4, value || []);
|
1741
1926
|
};
|
1742
1927
|
|
1743
1928
|
|
@@ -1747,7 +1932,7 @@ proto.payment.PaymentSearchRequest.prototype.setCurrencyList = function(value) {
|
|
1747
1932
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1748
1933
|
*/
|
1749
1934
|
proto.payment.PaymentSearchRequest.prototype.addCurrency = function(value, opt_index) {
|
1750
|
-
return jspb.Message.addToRepeatedField(this,
|
1935
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
1751
1936
|
};
|
1752
1937
|
|
1753
1938
|
|
@@ -1761,11 +1946,11 @@ proto.payment.PaymentSearchRequest.prototype.clearCurrencyList = function() {
|
|
1761
1946
|
|
1762
1947
|
|
1763
1948
|
/**
|
1764
|
-
* repeated string geo =
|
1949
|
+
* repeated string geo = 5;
|
1765
1950
|
* @return {!Array<string>}
|
1766
1951
|
*/
|
1767
1952
|
proto.payment.PaymentSearchRequest.prototype.getGeoList = function() {
|
1768
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this,
|
1953
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
1769
1954
|
};
|
1770
1955
|
|
1771
1956
|
|
@@ -1774,7 +1959,7 @@ proto.payment.PaymentSearchRequest.prototype.getGeoList = function() {
|
|
1774
1959
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1775
1960
|
*/
|
1776
1961
|
proto.payment.PaymentSearchRequest.prototype.setGeoList = function(value) {
|
1777
|
-
return jspb.Message.setField(this,
|
1962
|
+
return jspb.Message.setField(this, 5, value || []);
|
1778
1963
|
};
|
1779
1964
|
|
1780
1965
|
|
@@ -1784,7 +1969,7 @@ proto.payment.PaymentSearchRequest.prototype.setGeoList = function(value) {
|
|
1784
1969
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1785
1970
|
*/
|
1786
1971
|
proto.payment.PaymentSearchRequest.prototype.addGeo = function(value, opt_index) {
|
1787
|
-
return jspb.Message.addToRepeatedField(this,
|
1972
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
1788
1973
|
};
|
1789
1974
|
|
1790
1975
|
|
@@ -1798,11 +1983,11 @@ proto.payment.PaymentSearchRequest.prototype.clearGeoList = function() {
|
|
1798
1983
|
|
1799
1984
|
|
1800
1985
|
/**
|
1801
|
-
* optional string processing_type =
|
1986
|
+
* optional string processing_type = 6;
|
1802
1987
|
* @return {string}
|
1803
1988
|
*/
|
1804
1989
|
proto.payment.PaymentSearchRequest.prototype.getProcessingType = function() {
|
1805
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1990
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1806
1991
|
};
|
1807
1992
|
|
1808
1993
|
|
@@ -1811,7 +1996,7 @@ proto.payment.PaymentSearchRequest.prototype.getProcessingType = function() {
|
|
1811
1996
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1812
1997
|
*/
|
1813
1998
|
proto.payment.PaymentSearchRequest.prototype.setProcessingType = function(value) {
|
1814
|
-
return jspb.Message.setField(this,
|
1999
|
+
return jspb.Message.setField(this, 6, value);
|
1815
2000
|
};
|
1816
2001
|
|
1817
2002
|
|
@@ -1820,7 +2005,7 @@ proto.payment.PaymentSearchRequest.prototype.setProcessingType = function(value)
|
|
1820
2005
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1821
2006
|
*/
|
1822
2007
|
proto.payment.PaymentSearchRequest.prototype.clearProcessingType = function() {
|
1823
|
-
return jspb.Message.setField(this,
|
2008
|
+
return jspb.Message.setField(this, 6, undefined);
|
1824
2009
|
};
|
1825
2010
|
|
1826
2011
|
|
@@ -1829,16 +2014,16 @@ proto.payment.PaymentSearchRequest.prototype.clearProcessingType = function() {
|
|
1829
2014
|
* @return {boolean}
|
1830
2015
|
*/
|
1831
2016
|
proto.payment.PaymentSearchRequest.prototype.hasProcessingType = function() {
|
1832
|
-
return jspb.Message.getField(this,
|
2017
|
+
return jspb.Message.getField(this, 6) != null;
|
1833
2018
|
};
|
1834
2019
|
|
1835
2020
|
|
1836
2021
|
/**
|
1837
|
-
* optional string transaction_type =
|
2022
|
+
* optional string transaction_type = 7;
|
1838
2023
|
* @return {string}
|
1839
2024
|
*/
|
1840
2025
|
proto.payment.PaymentSearchRequest.prototype.getTransactionType = function() {
|
1841
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
2026
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1842
2027
|
};
|
1843
2028
|
|
1844
2029
|
|
@@ -1847,7 +2032,7 @@ proto.payment.PaymentSearchRequest.prototype.getTransactionType = function() {
|
|
1847
2032
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1848
2033
|
*/
|
1849
2034
|
proto.payment.PaymentSearchRequest.prototype.setTransactionType = function(value) {
|
1850
|
-
return jspb.Message.setField(this,
|
2035
|
+
return jspb.Message.setField(this, 7, value);
|
1851
2036
|
};
|
1852
2037
|
|
1853
2038
|
|
@@ -1856,7 +2041,7 @@ proto.payment.PaymentSearchRequest.prototype.setTransactionType = function(value
|
|
1856
2041
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1857
2042
|
*/
|
1858
2043
|
proto.payment.PaymentSearchRequest.prototype.clearTransactionType = function() {
|
1859
|
-
return jspb.Message.setField(this,
|
2044
|
+
return jspb.Message.setField(this, 7, undefined);
|
1860
2045
|
};
|
1861
2046
|
|
1862
2047
|
|
@@ -1865,7 +2050,118 @@ proto.payment.PaymentSearchRequest.prototype.clearTransactionType = function() {
|
|
1865
2050
|
* @return {boolean}
|
1866
2051
|
*/
|
1867
2052
|
proto.payment.PaymentSearchRequest.prototype.hasTransactionType = function() {
|
1868
|
-
return jspb.Message.getField(this,
|
2053
|
+
return jspb.Message.getField(this, 7) != null;
|
2054
|
+
};
|
2055
|
+
|
2056
|
+
|
2057
|
+
/**
|
2058
|
+
* repeated int32 provider_ids = 8;
|
2059
|
+
* @return {!Array<number>}
|
2060
|
+
*/
|
2061
|
+
proto.payment.PaymentSearchRequest.prototype.getProviderIdsList = function() {
|
2062
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 8));
|
2063
|
+
};
|
2064
|
+
|
2065
|
+
|
2066
|
+
/**
|
2067
|
+
* @param {!Array<number>} value
|
2068
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2069
|
+
*/
|
2070
|
+
proto.payment.PaymentSearchRequest.prototype.setProviderIdsList = function(value) {
|
2071
|
+
return jspb.Message.setField(this, 8, value || []);
|
2072
|
+
};
|
2073
|
+
|
2074
|
+
|
2075
|
+
/**
|
2076
|
+
* @param {number} value
|
2077
|
+
* @param {number=} opt_index
|
2078
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2079
|
+
*/
|
2080
|
+
proto.payment.PaymentSearchRequest.prototype.addProviderIds = function(value, opt_index) {
|
2081
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
2082
|
+
};
|
2083
|
+
|
2084
|
+
|
2085
|
+
/**
|
2086
|
+
* Clears the list making it empty but non-null.
|
2087
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2088
|
+
*/
|
2089
|
+
proto.payment.PaymentSearchRequest.prototype.clearProviderIdsList = function() {
|
2090
|
+
return this.setProviderIdsList([]);
|
2091
|
+
};
|
2092
|
+
|
2093
|
+
|
2094
|
+
/**
|
2095
|
+
* repeated int32 method_ids = 9;
|
2096
|
+
* @return {!Array<number>}
|
2097
|
+
*/
|
2098
|
+
proto.payment.PaymentSearchRequest.prototype.getMethodIdsList = function() {
|
2099
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 9));
|
2100
|
+
};
|
2101
|
+
|
2102
|
+
|
2103
|
+
/**
|
2104
|
+
* @param {!Array<number>} value
|
2105
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2106
|
+
*/
|
2107
|
+
proto.payment.PaymentSearchRequest.prototype.setMethodIdsList = function(value) {
|
2108
|
+
return jspb.Message.setField(this, 9, value || []);
|
2109
|
+
};
|
2110
|
+
|
2111
|
+
|
2112
|
+
/**
|
2113
|
+
* @param {number} value
|
2114
|
+
* @param {number=} opt_index
|
2115
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2116
|
+
*/
|
2117
|
+
proto.payment.PaymentSearchRequest.prototype.addMethodIds = function(value, opt_index) {
|
2118
|
+
return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
|
2119
|
+
};
|
2120
|
+
|
2121
|
+
|
2122
|
+
/**
|
2123
|
+
* Clears the list making it empty but non-null.
|
2124
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2125
|
+
*/
|
2126
|
+
proto.payment.PaymentSearchRequest.prototype.clearMethodIdsList = function() {
|
2127
|
+
return this.setMethodIdsList([]);
|
2128
|
+
};
|
2129
|
+
|
2130
|
+
|
2131
|
+
/**
|
2132
|
+
* repeated int32 deposit_statuses = 10;
|
2133
|
+
* @return {!Array<number>}
|
2134
|
+
*/
|
2135
|
+
proto.payment.PaymentSearchRequest.prototype.getDepositStatusesList = function() {
|
2136
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 10));
|
2137
|
+
};
|
2138
|
+
|
2139
|
+
|
2140
|
+
/**
|
2141
|
+
* @param {!Array<number>} value
|
2142
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2143
|
+
*/
|
2144
|
+
proto.payment.PaymentSearchRequest.prototype.setDepositStatusesList = function(value) {
|
2145
|
+
return jspb.Message.setField(this, 10, value || []);
|
2146
|
+
};
|
2147
|
+
|
2148
|
+
|
2149
|
+
/**
|
2150
|
+
* @param {number} value
|
2151
|
+
* @param {number=} opt_index
|
2152
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2153
|
+
*/
|
2154
|
+
proto.payment.PaymentSearchRequest.prototype.addDepositStatuses = function(value, opt_index) {
|
2155
|
+
return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
|
2156
|
+
};
|
2157
|
+
|
2158
|
+
|
2159
|
+
/**
|
2160
|
+
* Clears the list making it empty but non-null.
|
2161
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2162
|
+
*/
|
2163
|
+
proto.payment.PaymentSearchRequest.prototype.clearDepositStatusesList = function() {
|
2164
|
+
return this.setDepositStatusesList([]);
|
1869
2165
|
};
|
1870
2166
|
|
1871
2167
|
|
@@ -5912,6 +6208,716 @@ proto.payment.DepositResponse.prototype.setStatus = function(value) {
|
|
5912
6208
|
|
5913
6209
|
|
5914
6210
|
|
6211
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6212
|
+
/**
|
6213
|
+
* Creates an object representation of this proto.
|
6214
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6215
|
+
* Optional fields that are not set will be set to undefined.
|
6216
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6217
|
+
* For the list of reserved names please see:
|
6218
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6219
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6220
|
+
* JSPB instance for transitional soy proto support:
|
6221
|
+
* http://goto/soy-param-migration
|
6222
|
+
* @return {!Object}
|
6223
|
+
*/
|
6224
|
+
proto.payment.DepositItem.prototype.toObject = function(opt_includeInstance) {
|
6225
|
+
return proto.payment.DepositItem.toObject(opt_includeInstance, this);
|
6226
|
+
};
|
6227
|
+
|
6228
|
+
|
6229
|
+
/**
|
6230
|
+
* Static version of the {@see toObject} method.
|
6231
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6232
|
+
* the JSPB instance for transitional soy proto support:
|
6233
|
+
* http://goto/soy-param-migration
|
6234
|
+
* @param {!proto.payment.DepositItem} msg The msg instance to transform.
|
6235
|
+
* @return {!Object}
|
6236
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6237
|
+
*/
|
6238
|
+
proto.payment.DepositItem.toObject = function(includeInstance, msg) {
|
6239
|
+
var f, obj = {
|
6240
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6241
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
6242
|
+
status: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
6243
|
+
amountAttempt: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
6244
|
+
amountPaid: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
6245
|
+
fee: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
6246
|
+
currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
6247
|
+
paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
6248
|
+
paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
6249
|
+
created: jspb.Message.getFieldWithDefault(msg, 10, "")
|
6250
|
+
};
|
6251
|
+
|
6252
|
+
if (includeInstance) {
|
6253
|
+
obj.$jspbMessageInstance = msg;
|
6254
|
+
}
|
6255
|
+
return obj;
|
6256
|
+
};
|
6257
|
+
}
|
6258
|
+
|
6259
|
+
|
6260
|
+
/**
|
6261
|
+
* Deserializes binary data (in protobuf wire format).
|
6262
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6263
|
+
* @return {!proto.payment.DepositItem}
|
6264
|
+
*/
|
6265
|
+
proto.payment.DepositItem.deserializeBinary = function(bytes) {
|
6266
|
+
var reader = new jspb.BinaryReader(bytes);
|
6267
|
+
var msg = new proto.payment.DepositItem;
|
6268
|
+
return proto.payment.DepositItem.deserializeBinaryFromReader(msg, reader);
|
6269
|
+
};
|
6270
|
+
|
6271
|
+
|
6272
|
+
/**
|
6273
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6274
|
+
* given reader into the given message object.
|
6275
|
+
* @param {!proto.payment.DepositItem} msg The message object to deserialize into.
|
6276
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6277
|
+
* @return {!proto.payment.DepositItem}
|
6278
|
+
*/
|
6279
|
+
proto.payment.DepositItem.deserializeBinaryFromReader = function(msg, reader) {
|
6280
|
+
while (reader.nextField()) {
|
6281
|
+
if (reader.isEndGroup()) {
|
6282
|
+
break;
|
6283
|
+
}
|
6284
|
+
var field = reader.getFieldNumber();
|
6285
|
+
switch (field) {
|
6286
|
+
case 1:
|
6287
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6288
|
+
msg.setId(value);
|
6289
|
+
break;
|
6290
|
+
case 2:
|
6291
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6292
|
+
msg.setUserId(value);
|
6293
|
+
break;
|
6294
|
+
case 3:
|
6295
|
+
var value = /** @type {string} */ (reader.readString());
|
6296
|
+
msg.setStatus(value);
|
6297
|
+
break;
|
6298
|
+
case 4:
|
6299
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6300
|
+
msg.setAmountAttempt(value);
|
6301
|
+
break;
|
6302
|
+
case 5:
|
6303
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6304
|
+
msg.setAmountPaid(value);
|
6305
|
+
break;
|
6306
|
+
case 6:
|
6307
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6308
|
+
msg.setFee(value);
|
6309
|
+
break;
|
6310
|
+
case 7:
|
6311
|
+
var value = /** @type {string} */ (reader.readString());
|
6312
|
+
msg.setCurrency(value);
|
6313
|
+
break;
|
6314
|
+
case 8:
|
6315
|
+
var value = /** @type {string} */ (reader.readString());
|
6316
|
+
msg.setPaymentMethodTitle(value);
|
6317
|
+
break;
|
6318
|
+
case 9:
|
6319
|
+
var value = /** @type {string} */ (reader.readString());
|
6320
|
+
msg.setPaymentProviderImage(value);
|
6321
|
+
break;
|
6322
|
+
case 10:
|
6323
|
+
var value = /** @type {string} */ (reader.readString());
|
6324
|
+
msg.setCreated(value);
|
6325
|
+
break;
|
6326
|
+
default:
|
6327
|
+
reader.skipField();
|
6328
|
+
break;
|
6329
|
+
}
|
6330
|
+
}
|
6331
|
+
return msg;
|
6332
|
+
};
|
6333
|
+
|
6334
|
+
|
6335
|
+
/**
|
6336
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6337
|
+
* @return {!Uint8Array}
|
6338
|
+
*/
|
6339
|
+
proto.payment.DepositItem.prototype.serializeBinary = function() {
|
6340
|
+
var writer = new jspb.BinaryWriter();
|
6341
|
+
proto.payment.DepositItem.serializeBinaryToWriter(this, writer);
|
6342
|
+
return writer.getResultBuffer();
|
6343
|
+
};
|
6344
|
+
|
6345
|
+
|
6346
|
+
/**
|
6347
|
+
* Serializes the given message to binary data (in protobuf wire
|
6348
|
+
* format), writing to the given BinaryWriter.
|
6349
|
+
* @param {!proto.payment.DepositItem} message
|
6350
|
+
* @param {!jspb.BinaryWriter} writer
|
6351
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6352
|
+
*/
|
6353
|
+
proto.payment.DepositItem.serializeBinaryToWriter = function(message, writer) {
|
6354
|
+
var f = undefined;
|
6355
|
+
f = message.getId();
|
6356
|
+
if (f !== 0) {
|
6357
|
+
writer.writeInt32(
|
6358
|
+
1,
|
6359
|
+
f
|
6360
|
+
);
|
6361
|
+
}
|
6362
|
+
f = message.getUserId();
|
6363
|
+
if (f !== 0) {
|
6364
|
+
writer.writeInt32(
|
6365
|
+
2,
|
6366
|
+
f
|
6367
|
+
);
|
6368
|
+
}
|
6369
|
+
f = message.getStatus();
|
6370
|
+
if (f.length > 0) {
|
6371
|
+
writer.writeString(
|
6372
|
+
3,
|
6373
|
+
f
|
6374
|
+
);
|
6375
|
+
}
|
6376
|
+
f = message.getAmountAttempt();
|
6377
|
+
if (f !== 0.0) {
|
6378
|
+
writer.writeFloat(
|
6379
|
+
4,
|
6380
|
+
f
|
6381
|
+
);
|
6382
|
+
}
|
6383
|
+
f = message.getAmountPaid();
|
6384
|
+
if (f !== 0.0) {
|
6385
|
+
writer.writeFloat(
|
6386
|
+
5,
|
6387
|
+
f
|
6388
|
+
);
|
6389
|
+
}
|
6390
|
+
f = message.getFee();
|
6391
|
+
if (f !== 0.0) {
|
6392
|
+
writer.writeFloat(
|
6393
|
+
6,
|
6394
|
+
f
|
6395
|
+
);
|
6396
|
+
}
|
6397
|
+
f = message.getCurrency();
|
6398
|
+
if (f.length > 0) {
|
6399
|
+
writer.writeString(
|
6400
|
+
7,
|
6401
|
+
f
|
6402
|
+
);
|
6403
|
+
}
|
6404
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
6405
|
+
if (f != null) {
|
6406
|
+
writer.writeString(
|
6407
|
+
8,
|
6408
|
+
f
|
6409
|
+
);
|
6410
|
+
}
|
6411
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
6412
|
+
if (f != null) {
|
6413
|
+
writer.writeString(
|
6414
|
+
9,
|
6415
|
+
f
|
6416
|
+
);
|
6417
|
+
}
|
6418
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
6419
|
+
if (f != null) {
|
6420
|
+
writer.writeString(
|
6421
|
+
10,
|
6422
|
+
f
|
6423
|
+
);
|
6424
|
+
}
|
6425
|
+
};
|
6426
|
+
|
6427
|
+
|
6428
|
+
/**
|
6429
|
+
* optional int32 id = 1;
|
6430
|
+
* @return {number}
|
6431
|
+
*/
|
6432
|
+
proto.payment.DepositItem.prototype.getId = function() {
|
6433
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6434
|
+
};
|
6435
|
+
|
6436
|
+
|
6437
|
+
/**
|
6438
|
+
* @param {number} value
|
6439
|
+
* @return {!proto.payment.DepositItem} returns this
|
6440
|
+
*/
|
6441
|
+
proto.payment.DepositItem.prototype.setId = function(value) {
|
6442
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6443
|
+
};
|
6444
|
+
|
6445
|
+
|
6446
|
+
/**
|
6447
|
+
* optional int32 user_id = 2;
|
6448
|
+
* @return {number}
|
6449
|
+
*/
|
6450
|
+
proto.payment.DepositItem.prototype.getUserId = function() {
|
6451
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6452
|
+
};
|
6453
|
+
|
6454
|
+
|
6455
|
+
/**
|
6456
|
+
* @param {number} value
|
6457
|
+
* @return {!proto.payment.DepositItem} returns this
|
6458
|
+
*/
|
6459
|
+
proto.payment.DepositItem.prototype.setUserId = function(value) {
|
6460
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
6461
|
+
};
|
6462
|
+
|
6463
|
+
|
6464
|
+
/**
|
6465
|
+
* optional string status = 3;
|
6466
|
+
* @return {string}
|
6467
|
+
*/
|
6468
|
+
proto.payment.DepositItem.prototype.getStatus = function() {
|
6469
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
6470
|
+
};
|
6471
|
+
|
6472
|
+
|
6473
|
+
/**
|
6474
|
+
* @param {string} value
|
6475
|
+
* @return {!proto.payment.DepositItem} returns this
|
6476
|
+
*/
|
6477
|
+
proto.payment.DepositItem.prototype.setStatus = function(value) {
|
6478
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
6479
|
+
};
|
6480
|
+
|
6481
|
+
|
6482
|
+
/**
|
6483
|
+
* optional float amount_attempt = 4;
|
6484
|
+
* @return {number}
|
6485
|
+
*/
|
6486
|
+
proto.payment.DepositItem.prototype.getAmountAttempt = function() {
|
6487
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
6488
|
+
};
|
6489
|
+
|
6490
|
+
|
6491
|
+
/**
|
6492
|
+
* @param {number} value
|
6493
|
+
* @return {!proto.payment.DepositItem} returns this
|
6494
|
+
*/
|
6495
|
+
proto.payment.DepositItem.prototype.setAmountAttempt = function(value) {
|
6496
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
6497
|
+
};
|
6498
|
+
|
6499
|
+
|
6500
|
+
/**
|
6501
|
+
* optional float amount_paid = 5;
|
6502
|
+
* @return {number}
|
6503
|
+
*/
|
6504
|
+
proto.payment.DepositItem.prototype.getAmountPaid = function() {
|
6505
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
6506
|
+
};
|
6507
|
+
|
6508
|
+
|
6509
|
+
/**
|
6510
|
+
* @param {number} value
|
6511
|
+
* @return {!proto.payment.DepositItem} returns this
|
6512
|
+
*/
|
6513
|
+
proto.payment.DepositItem.prototype.setAmountPaid = function(value) {
|
6514
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
6515
|
+
};
|
6516
|
+
|
6517
|
+
|
6518
|
+
/**
|
6519
|
+
* optional float fee = 6;
|
6520
|
+
* @return {number}
|
6521
|
+
*/
|
6522
|
+
proto.payment.DepositItem.prototype.getFee = function() {
|
6523
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
6524
|
+
};
|
6525
|
+
|
6526
|
+
|
6527
|
+
/**
|
6528
|
+
* @param {number} value
|
6529
|
+
* @return {!proto.payment.DepositItem} returns this
|
6530
|
+
*/
|
6531
|
+
proto.payment.DepositItem.prototype.setFee = function(value) {
|
6532
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
6533
|
+
};
|
6534
|
+
|
6535
|
+
|
6536
|
+
/**
|
6537
|
+
* optional string currency = 7;
|
6538
|
+
* @return {string}
|
6539
|
+
*/
|
6540
|
+
proto.payment.DepositItem.prototype.getCurrency = function() {
|
6541
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
6542
|
+
};
|
6543
|
+
|
6544
|
+
|
6545
|
+
/**
|
6546
|
+
* @param {string} value
|
6547
|
+
* @return {!proto.payment.DepositItem} returns this
|
6548
|
+
*/
|
6549
|
+
proto.payment.DepositItem.prototype.setCurrency = function(value) {
|
6550
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
6551
|
+
};
|
6552
|
+
|
6553
|
+
|
6554
|
+
/**
|
6555
|
+
* optional string payment_method_title = 8;
|
6556
|
+
* @return {string}
|
6557
|
+
*/
|
6558
|
+
proto.payment.DepositItem.prototype.getPaymentMethodTitle = function() {
|
6559
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
6560
|
+
};
|
6561
|
+
|
6562
|
+
|
6563
|
+
/**
|
6564
|
+
* @param {string} value
|
6565
|
+
* @return {!proto.payment.DepositItem} returns this
|
6566
|
+
*/
|
6567
|
+
proto.payment.DepositItem.prototype.setPaymentMethodTitle = function(value) {
|
6568
|
+
return jspb.Message.setField(this, 8, value);
|
6569
|
+
};
|
6570
|
+
|
6571
|
+
|
6572
|
+
/**
|
6573
|
+
* Clears the field making it undefined.
|
6574
|
+
* @return {!proto.payment.DepositItem} returns this
|
6575
|
+
*/
|
6576
|
+
proto.payment.DepositItem.prototype.clearPaymentMethodTitle = function() {
|
6577
|
+
return jspb.Message.setField(this, 8, undefined);
|
6578
|
+
};
|
6579
|
+
|
6580
|
+
|
6581
|
+
/**
|
6582
|
+
* Returns whether this field is set.
|
6583
|
+
* @return {boolean}
|
6584
|
+
*/
|
6585
|
+
proto.payment.DepositItem.prototype.hasPaymentMethodTitle = function() {
|
6586
|
+
return jspb.Message.getField(this, 8) != null;
|
6587
|
+
};
|
6588
|
+
|
6589
|
+
|
6590
|
+
/**
|
6591
|
+
* optional string payment_provider_image = 9;
|
6592
|
+
* @return {string}
|
6593
|
+
*/
|
6594
|
+
proto.payment.DepositItem.prototype.getPaymentProviderImage = function() {
|
6595
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
6596
|
+
};
|
6597
|
+
|
6598
|
+
|
6599
|
+
/**
|
6600
|
+
* @param {string} value
|
6601
|
+
* @return {!proto.payment.DepositItem} returns this
|
6602
|
+
*/
|
6603
|
+
proto.payment.DepositItem.prototype.setPaymentProviderImage = function(value) {
|
6604
|
+
return jspb.Message.setField(this, 9, value);
|
6605
|
+
};
|
6606
|
+
|
6607
|
+
|
6608
|
+
/**
|
6609
|
+
* Clears the field making it undefined.
|
6610
|
+
* @return {!proto.payment.DepositItem} returns this
|
6611
|
+
*/
|
6612
|
+
proto.payment.DepositItem.prototype.clearPaymentProviderImage = function() {
|
6613
|
+
return jspb.Message.setField(this, 9, undefined);
|
6614
|
+
};
|
6615
|
+
|
6616
|
+
|
6617
|
+
/**
|
6618
|
+
* Returns whether this field is set.
|
6619
|
+
* @return {boolean}
|
6620
|
+
*/
|
6621
|
+
proto.payment.DepositItem.prototype.hasPaymentProviderImage = function() {
|
6622
|
+
return jspb.Message.getField(this, 9) != null;
|
6623
|
+
};
|
6624
|
+
|
6625
|
+
|
6626
|
+
/**
|
6627
|
+
* optional string created = 10;
|
6628
|
+
* @return {string}
|
6629
|
+
*/
|
6630
|
+
proto.payment.DepositItem.prototype.getCreated = function() {
|
6631
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
6632
|
+
};
|
6633
|
+
|
6634
|
+
|
6635
|
+
/**
|
6636
|
+
* @param {string} value
|
6637
|
+
* @return {!proto.payment.DepositItem} returns this
|
6638
|
+
*/
|
6639
|
+
proto.payment.DepositItem.prototype.setCreated = function(value) {
|
6640
|
+
return jspb.Message.setField(this, 10, value);
|
6641
|
+
};
|
6642
|
+
|
6643
|
+
|
6644
|
+
/**
|
6645
|
+
* Clears the field making it undefined.
|
6646
|
+
* @return {!proto.payment.DepositItem} returns this
|
6647
|
+
*/
|
6648
|
+
proto.payment.DepositItem.prototype.clearCreated = function() {
|
6649
|
+
return jspb.Message.setField(this, 10, undefined);
|
6650
|
+
};
|
6651
|
+
|
6652
|
+
|
6653
|
+
/**
|
6654
|
+
* Returns whether this field is set.
|
6655
|
+
* @return {boolean}
|
6656
|
+
*/
|
6657
|
+
proto.payment.DepositItem.prototype.hasCreated = function() {
|
6658
|
+
return jspb.Message.getField(this, 10) != null;
|
6659
|
+
};
|
6660
|
+
|
6661
|
+
|
6662
|
+
|
6663
|
+
/**
|
6664
|
+
* List of repeated fields within this message type.
|
6665
|
+
* @private {!Array<number>}
|
6666
|
+
* @const
|
6667
|
+
*/
|
6668
|
+
proto.payment.DepositItemsResponse.repeatedFields_ = [1];
|
6669
|
+
|
6670
|
+
|
6671
|
+
|
6672
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6673
|
+
/**
|
6674
|
+
* Creates an object representation of this proto.
|
6675
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6676
|
+
* Optional fields that are not set will be set to undefined.
|
6677
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6678
|
+
* For the list of reserved names please see:
|
6679
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6680
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6681
|
+
* JSPB instance for transitional soy proto support:
|
6682
|
+
* http://goto/soy-param-migration
|
6683
|
+
* @return {!Object}
|
6684
|
+
*/
|
6685
|
+
proto.payment.DepositItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
6686
|
+
return proto.payment.DepositItemsResponse.toObject(opt_includeInstance, this);
|
6687
|
+
};
|
6688
|
+
|
6689
|
+
|
6690
|
+
/**
|
6691
|
+
* Static version of the {@see toObject} method.
|
6692
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6693
|
+
* the JSPB instance for transitional soy proto support:
|
6694
|
+
* http://goto/soy-param-migration
|
6695
|
+
* @param {!proto.payment.DepositItemsResponse} msg The msg instance to transform.
|
6696
|
+
* @return {!Object}
|
6697
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6698
|
+
*/
|
6699
|
+
proto.payment.DepositItemsResponse.toObject = function(includeInstance, msg) {
|
6700
|
+
var f, obj = {
|
6701
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
6702
|
+
proto.payment.DepositItem.toObject, includeInstance),
|
6703
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
6704
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
6705
|
+
};
|
6706
|
+
|
6707
|
+
if (includeInstance) {
|
6708
|
+
obj.$jspbMessageInstance = msg;
|
6709
|
+
}
|
6710
|
+
return obj;
|
6711
|
+
};
|
6712
|
+
}
|
6713
|
+
|
6714
|
+
|
6715
|
+
/**
|
6716
|
+
* Deserializes binary data (in protobuf wire format).
|
6717
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6718
|
+
* @return {!proto.payment.DepositItemsResponse}
|
6719
|
+
*/
|
6720
|
+
proto.payment.DepositItemsResponse.deserializeBinary = function(bytes) {
|
6721
|
+
var reader = new jspb.BinaryReader(bytes);
|
6722
|
+
var msg = new proto.payment.DepositItemsResponse;
|
6723
|
+
return proto.payment.DepositItemsResponse.deserializeBinaryFromReader(msg, reader);
|
6724
|
+
};
|
6725
|
+
|
6726
|
+
|
6727
|
+
/**
|
6728
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6729
|
+
* given reader into the given message object.
|
6730
|
+
* @param {!proto.payment.DepositItemsResponse} msg The message object to deserialize into.
|
6731
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6732
|
+
* @return {!proto.payment.DepositItemsResponse}
|
6733
|
+
*/
|
6734
|
+
proto.payment.DepositItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6735
|
+
while (reader.nextField()) {
|
6736
|
+
if (reader.isEndGroup()) {
|
6737
|
+
break;
|
6738
|
+
}
|
6739
|
+
var field = reader.getFieldNumber();
|
6740
|
+
switch (field) {
|
6741
|
+
case 1:
|
6742
|
+
var value = new proto.payment.DepositItem;
|
6743
|
+
reader.readMessage(value,proto.payment.DepositItem.deserializeBinaryFromReader);
|
6744
|
+
msg.addItems(value);
|
6745
|
+
break;
|
6746
|
+
case 2:
|
6747
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6748
|
+
msg.setTotalPages(value);
|
6749
|
+
break;
|
6750
|
+
case 3:
|
6751
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6752
|
+
msg.setTotalItems(value);
|
6753
|
+
break;
|
6754
|
+
default:
|
6755
|
+
reader.skipField();
|
6756
|
+
break;
|
6757
|
+
}
|
6758
|
+
}
|
6759
|
+
return msg;
|
6760
|
+
};
|
6761
|
+
|
6762
|
+
|
6763
|
+
/**
|
6764
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6765
|
+
* @return {!Uint8Array}
|
6766
|
+
*/
|
6767
|
+
proto.payment.DepositItemsResponse.prototype.serializeBinary = function() {
|
6768
|
+
var writer = new jspb.BinaryWriter();
|
6769
|
+
proto.payment.DepositItemsResponse.serializeBinaryToWriter(this, writer);
|
6770
|
+
return writer.getResultBuffer();
|
6771
|
+
};
|
6772
|
+
|
6773
|
+
|
6774
|
+
/**
|
6775
|
+
* Serializes the given message to binary data (in protobuf wire
|
6776
|
+
* format), writing to the given BinaryWriter.
|
6777
|
+
* @param {!proto.payment.DepositItemsResponse} message
|
6778
|
+
* @param {!jspb.BinaryWriter} writer
|
6779
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6780
|
+
*/
|
6781
|
+
proto.payment.DepositItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
6782
|
+
var f = undefined;
|
6783
|
+
f = message.getItemsList();
|
6784
|
+
if (f.length > 0) {
|
6785
|
+
writer.writeRepeatedMessage(
|
6786
|
+
1,
|
6787
|
+
f,
|
6788
|
+
proto.payment.DepositItem.serializeBinaryToWriter
|
6789
|
+
);
|
6790
|
+
}
|
6791
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
6792
|
+
if (f != null) {
|
6793
|
+
writer.writeInt32(
|
6794
|
+
2,
|
6795
|
+
f
|
6796
|
+
);
|
6797
|
+
}
|
6798
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
6799
|
+
if (f != null) {
|
6800
|
+
writer.writeInt32(
|
6801
|
+
3,
|
6802
|
+
f
|
6803
|
+
);
|
6804
|
+
}
|
6805
|
+
};
|
6806
|
+
|
6807
|
+
|
6808
|
+
/**
|
6809
|
+
* repeated DepositItem items = 1;
|
6810
|
+
* @return {!Array<!proto.payment.DepositItem>}
|
6811
|
+
*/
|
6812
|
+
proto.payment.DepositItemsResponse.prototype.getItemsList = function() {
|
6813
|
+
return /** @type{!Array<!proto.payment.DepositItem>} */ (
|
6814
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.DepositItem, 1));
|
6815
|
+
};
|
6816
|
+
|
6817
|
+
|
6818
|
+
/**
|
6819
|
+
* @param {!Array<!proto.payment.DepositItem>} value
|
6820
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6821
|
+
*/
|
6822
|
+
proto.payment.DepositItemsResponse.prototype.setItemsList = function(value) {
|
6823
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
6824
|
+
};
|
6825
|
+
|
6826
|
+
|
6827
|
+
/**
|
6828
|
+
* @param {!proto.payment.DepositItem=} opt_value
|
6829
|
+
* @param {number=} opt_index
|
6830
|
+
* @return {!proto.payment.DepositItem}
|
6831
|
+
*/
|
6832
|
+
proto.payment.DepositItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
6833
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.DepositItem, opt_index);
|
6834
|
+
};
|
6835
|
+
|
6836
|
+
|
6837
|
+
/**
|
6838
|
+
* Clears the list making it empty but non-null.
|
6839
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6840
|
+
*/
|
6841
|
+
proto.payment.DepositItemsResponse.prototype.clearItemsList = function() {
|
6842
|
+
return this.setItemsList([]);
|
6843
|
+
};
|
6844
|
+
|
6845
|
+
|
6846
|
+
/**
|
6847
|
+
* optional int32 total_pages = 2;
|
6848
|
+
* @return {number}
|
6849
|
+
*/
|
6850
|
+
proto.payment.DepositItemsResponse.prototype.getTotalPages = function() {
|
6851
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6852
|
+
};
|
6853
|
+
|
6854
|
+
|
6855
|
+
/**
|
6856
|
+
* @param {number} value
|
6857
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6858
|
+
*/
|
6859
|
+
proto.payment.DepositItemsResponse.prototype.setTotalPages = function(value) {
|
6860
|
+
return jspb.Message.setField(this, 2, value);
|
6861
|
+
};
|
6862
|
+
|
6863
|
+
|
6864
|
+
/**
|
6865
|
+
* Clears the field making it undefined.
|
6866
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6867
|
+
*/
|
6868
|
+
proto.payment.DepositItemsResponse.prototype.clearTotalPages = function() {
|
6869
|
+
return jspb.Message.setField(this, 2, undefined);
|
6870
|
+
};
|
6871
|
+
|
6872
|
+
|
6873
|
+
/**
|
6874
|
+
* Returns whether this field is set.
|
6875
|
+
* @return {boolean}
|
6876
|
+
*/
|
6877
|
+
proto.payment.DepositItemsResponse.prototype.hasTotalPages = function() {
|
6878
|
+
return jspb.Message.getField(this, 2) != null;
|
6879
|
+
};
|
6880
|
+
|
6881
|
+
|
6882
|
+
/**
|
6883
|
+
* optional int32 total_items = 3;
|
6884
|
+
* @return {number}
|
6885
|
+
*/
|
6886
|
+
proto.payment.DepositItemsResponse.prototype.getTotalItems = function() {
|
6887
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6888
|
+
};
|
6889
|
+
|
6890
|
+
|
6891
|
+
/**
|
6892
|
+
* @param {number} value
|
6893
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6894
|
+
*/
|
6895
|
+
proto.payment.DepositItemsResponse.prototype.setTotalItems = function(value) {
|
6896
|
+
return jspb.Message.setField(this, 3, value);
|
6897
|
+
};
|
6898
|
+
|
6899
|
+
|
6900
|
+
/**
|
6901
|
+
* Clears the field making it undefined.
|
6902
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6903
|
+
*/
|
6904
|
+
proto.payment.DepositItemsResponse.prototype.clearTotalItems = function() {
|
6905
|
+
return jspb.Message.setField(this, 3, undefined);
|
6906
|
+
};
|
6907
|
+
|
6908
|
+
|
6909
|
+
/**
|
6910
|
+
* Returns whether this field is set.
|
6911
|
+
* @return {boolean}
|
6912
|
+
*/
|
6913
|
+
proto.payment.DepositItemsResponse.prototype.hasTotalItems = function() {
|
6914
|
+
return jspb.Message.getField(this, 3) != null;
|
6915
|
+
};
|
6916
|
+
|
6917
|
+
|
6918
|
+
|
6919
|
+
|
6920
|
+
|
5915
6921
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5916
6922
|
/**
|
5917
6923
|
* Creates an object representation of this proto.
|