protobuf-platform 1.0.231 → 1.0.232
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 +27 -5
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +991 -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,15 @@ 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
|
-
|
41
|
-
|
42
|
-
|
39
|
+
optional int32 deposit_id = 1;
|
40
|
+
optional int32 withdrawal_id = 2;
|
41
|
+
optional int32 user_id = 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;
|
43
48
|
}
|
44
49
|
//Provider CRUD | Requests
|
45
50
|
message ProviderItem {
|
@@ -134,6 +139,23 @@ message DepositResponse {
|
|
134
139
|
int32 id = 1;
|
135
140
|
string status = 2;
|
136
141
|
}
|
142
|
+
message DepositItem {
|
143
|
+
int32 id = 1;
|
144
|
+
int32 user_id = 2;
|
145
|
+
string status = 3;
|
146
|
+
float amount_attempt = 4;
|
147
|
+
float amount_paid = 5;
|
148
|
+
float fee = 6;
|
149
|
+
string currency = 7;
|
150
|
+
optional string payment_method_title = 8;
|
151
|
+
optional string payment_provider_image = 9;
|
152
|
+
optional string created = 10;
|
153
|
+
}
|
154
|
+
message DepositItemsResponse {
|
155
|
+
repeated DepositItem items = 1;
|
156
|
+
optional int32 total_pages = 2;
|
157
|
+
optional int32 total_items = 3;
|
158
|
+
}
|
137
159
|
//Deposit Status
|
138
160
|
message DepositStatus {
|
139
161
|
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_ = [4,5,8,9];
|
1530
1574
|
|
1531
1575
|
|
1532
1576
|
|
@@ -1559,11 +1603,15 @@ 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
|
+
userId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
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
|
1567
1615
|
};
|
1568
1616
|
|
1569
1617
|
if (includeInstance) {
|
@@ -1602,24 +1650,44 @@ proto.payment.PaymentSearchRequest.deserializeBinaryFromReader = function(msg, r
|
|
1602
1650
|
switch (field) {
|
1603
1651
|
case 1:
|
1604
1652
|
var value = /** @type {number} */ (reader.readInt32());
|
1605
|
-
msg.
|
1653
|
+
msg.setDepositId(value);
|
1606
1654
|
break;
|
1607
1655
|
case 2:
|
1656
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1657
|
+
msg.setWithdrawalId(value);
|
1658
|
+
break;
|
1659
|
+
case 3:
|
1660
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1661
|
+
msg.setUserId(value);
|
1662
|
+
break;
|
1663
|
+
case 4:
|
1608
1664
|
var value = /** @type {string} */ (reader.readString());
|
1609
1665
|
msg.addCurrency(value);
|
1610
1666
|
break;
|
1611
|
-
case
|
1667
|
+
case 5:
|
1612
1668
|
var value = /** @type {string} */ (reader.readString());
|
1613
1669
|
msg.addGeo(value);
|
1614
1670
|
break;
|
1615
|
-
case
|
1671
|
+
case 6:
|
1616
1672
|
var value = /** @type {string} */ (reader.readString());
|
1617
1673
|
msg.setProcessingType(value);
|
1618
1674
|
break;
|
1619
|
-
case
|
1675
|
+
case 7:
|
1620
1676
|
var value = /** @type {string} */ (reader.readString());
|
1621
1677
|
msg.setTransactionType(value);
|
1622
1678
|
break;
|
1679
|
+
case 8:
|
1680
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1681
|
+
for (var i = 0; i < values.length; i++) {
|
1682
|
+
msg.addProviderIds(values[i]);
|
1683
|
+
}
|
1684
|
+
break;
|
1685
|
+
case 9:
|
1686
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1687
|
+
for (var i = 0; i < values.length; i++) {
|
1688
|
+
msg.addMethodIds(values[i]);
|
1689
|
+
}
|
1690
|
+
break;
|
1623
1691
|
default:
|
1624
1692
|
reader.skipField();
|
1625
1693
|
break;
|
@@ -1656,31 +1724,59 @@ proto.payment.PaymentSearchRequest.serializeBinaryToWriter = function(message, w
|
|
1656
1724
|
f
|
1657
1725
|
);
|
1658
1726
|
}
|
1727
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1728
|
+
if (f != null) {
|
1729
|
+
writer.writeInt32(
|
1730
|
+
2,
|
1731
|
+
f
|
1732
|
+
);
|
1733
|
+
}
|
1734
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
1735
|
+
if (f != null) {
|
1736
|
+
writer.writeInt32(
|
1737
|
+
3,
|
1738
|
+
f
|
1739
|
+
);
|
1740
|
+
}
|
1659
1741
|
f = message.getCurrencyList();
|
1660
1742
|
if (f.length > 0) {
|
1661
1743
|
writer.writeRepeatedString(
|
1662
|
-
|
1744
|
+
4,
|
1663
1745
|
f
|
1664
1746
|
);
|
1665
1747
|
}
|
1666
1748
|
f = message.getGeoList();
|
1667
1749
|
if (f.length > 0) {
|
1668
1750
|
writer.writeRepeatedString(
|
1669
|
-
|
1751
|
+
5,
|
1670
1752
|
f
|
1671
1753
|
);
|
1672
1754
|
}
|
1673
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1755
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1674
1756
|
if (f != null) {
|
1675
1757
|
writer.writeString(
|
1676
|
-
|
1758
|
+
6,
|
1677
1759
|
f
|
1678
1760
|
);
|
1679
1761
|
}
|
1680
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1762
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1681
1763
|
if (f != null) {
|
1682
1764
|
writer.writeString(
|
1683
|
-
|
1765
|
+
7,
|
1766
|
+
f
|
1767
|
+
);
|
1768
|
+
}
|
1769
|
+
f = message.getProviderIdsList();
|
1770
|
+
if (f.length > 0) {
|
1771
|
+
writer.writePackedInt32(
|
1772
|
+
8,
|
1773
|
+
f
|
1774
|
+
);
|
1775
|
+
}
|
1776
|
+
f = message.getMethodIdsList();
|
1777
|
+
if (f.length > 0) {
|
1778
|
+
writer.writePackedInt32(
|
1779
|
+
9,
|
1684
1780
|
f
|
1685
1781
|
);
|
1686
1782
|
}
|
@@ -1688,10 +1784,10 @@ proto.payment.PaymentSearchRequest.serializeBinaryToWriter = function(message, w
|
|
1688
1784
|
|
1689
1785
|
|
1690
1786
|
/**
|
1691
|
-
* optional int32
|
1787
|
+
* optional int32 deposit_id = 1;
|
1692
1788
|
* @return {number}
|
1693
1789
|
*/
|
1694
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1790
|
+
proto.payment.PaymentSearchRequest.prototype.getDepositId = function() {
|
1695
1791
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1696
1792
|
};
|
1697
1793
|
|
@@ -1700,7 +1796,7 @@ proto.payment.PaymentSearchRequest.prototype.getPaymentId = function() {
|
|
1700
1796
|
* @param {number} value
|
1701
1797
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1702
1798
|
*/
|
1703
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1799
|
+
proto.payment.PaymentSearchRequest.prototype.setDepositId = function(value) {
|
1704
1800
|
return jspb.Message.setField(this, 1, value);
|
1705
1801
|
};
|
1706
1802
|
|
@@ -1709,7 +1805,7 @@ proto.payment.PaymentSearchRequest.prototype.setPaymentId = function(value) {
|
|
1709
1805
|
* Clears the field making it undefined.
|
1710
1806
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1711
1807
|
*/
|
1712
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1808
|
+
proto.payment.PaymentSearchRequest.prototype.clearDepositId = function() {
|
1713
1809
|
return jspb.Message.setField(this, 1, undefined);
|
1714
1810
|
};
|
1715
1811
|
|
@@ -1718,17 +1814,89 @@ proto.payment.PaymentSearchRequest.prototype.clearPaymentId = function() {
|
|
1718
1814
|
* Returns whether this field is set.
|
1719
1815
|
* @return {boolean}
|
1720
1816
|
*/
|
1721
|
-
proto.payment.PaymentSearchRequest.prototype.
|
1817
|
+
proto.payment.PaymentSearchRequest.prototype.hasDepositId = function() {
|
1722
1818
|
return jspb.Message.getField(this, 1) != null;
|
1723
1819
|
};
|
1724
1820
|
|
1725
1821
|
|
1726
1822
|
/**
|
1727
|
-
*
|
1823
|
+
* optional int32 withdrawal_id = 2;
|
1824
|
+
* @return {number}
|
1825
|
+
*/
|
1826
|
+
proto.payment.PaymentSearchRequest.prototype.getWithdrawalId = function() {
|
1827
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1828
|
+
};
|
1829
|
+
|
1830
|
+
|
1831
|
+
/**
|
1832
|
+
* @param {number} value
|
1833
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1834
|
+
*/
|
1835
|
+
proto.payment.PaymentSearchRequest.prototype.setWithdrawalId = function(value) {
|
1836
|
+
return jspb.Message.setField(this, 2, value);
|
1837
|
+
};
|
1838
|
+
|
1839
|
+
|
1840
|
+
/**
|
1841
|
+
* Clears the field making it undefined.
|
1842
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1843
|
+
*/
|
1844
|
+
proto.payment.PaymentSearchRequest.prototype.clearWithdrawalId = function() {
|
1845
|
+
return jspb.Message.setField(this, 2, undefined);
|
1846
|
+
};
|
1847
|
+
|
1848
|
+
|
1849
|
+
/**
|
1850
|
+
* Returns whether this field is set.
|
1851
|
+
* @return {boolean}
|
1852
|
+
*/
|
1853
|
+
proto.payment.PaymentSearchRequest.prototype.hasWithdrawalId = function() {
|
1854
|
+
return jspb.Message.getField(this, 2) != null;
|
1855
|
+
};
|
1856
|
+
|
1857
|
+
|
1858
|
+
/**
|
1859
|
+
* optional int32 user_id = 3;
|
1860
|
+
* @return {number}
|
1861
|
+
*/
|
1862
|
+
proto.payment.PaymentSearchRequest.prototype.getUserId = function() {
|
1863
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1864
|
+
};
|
1865
|
+
|
1866
|
+
|
1867
|
+
/**
|
1868
|
+
* @param {number} value
|
1869
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1870
|
+
*/
|
1871
|
+
proto.payment.PaymentSearchRequest.prototype.setUserId = function(value) {
|
1872
|
+
return jspb.Message.setField(this, 3, value);
|
1873
|
+
};
|
1874
|
+
|
1875
|
+
|
1876
|
+
/**
|
1877
|
+
* Clears the field making it undefined.
|
1878
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1879
|
+
*/
|
1880
|
+
proto.payment.PaymentSearchRequest.prototype.clearUserId = function() {
|
1881
|
+
return jspb.Message.setField(this, 3, undefined);
|
1882
|
+
};
|
1883
|
+
|
1884
|
+
|
1885
|
+
/**
|
1886
|
+
* Returns whether this field is set.
|
1887
|
+
* @return {boolean}
|
1888
|
+
*/
|
1889
|
+
proto.payment.PaymentSearchRequest.prototype.hasUserId = function() {
|
1890
|
+
return jspb.Message.getField(this, 3) != null;
|
1891
|
+
};
|
1892
|
+
|
1893
|
+
|
1894
|
+
/**
|
1895
|
+
* repeated string currency = 4;
|
1728
1896
|
* @return {!Array<string>}
|
1729
1897
|
*/
|
1730
1898
|
proto.payment.PaymentSearchRequest.prototype.getCurrencyList = function() {
|
1731
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this,
|
1899
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
1732
1900
|
};
|
1733
1901
|
|
1734
1902
|
|
@@ -1737,7 +1905,7 @@ proto.payment.PaymentSearchRequest.prototype.getCurrencyList = function() {
|
|
1737
1905
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1738
1906
|
*/
|
1739
1907
|
proto.payment.PaymentSearchRequest.prototype.setCurrencyList = function(value) {
|
1740
|
-
return jspb.Message.setField(this,
|
1908
|
+
return jspb.Message.setField(this, 4, value || []);
|
1741
1909
|
};
|
1742
1910
|
|
1743
1911
|
|
@@ -1747,7 +1915,7 @@ proto.payment.PaymentSearchRequest.prototype.setCurrencyList = function(value) {
|
|
1747
1915
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1748
1916
|
*/
|
1749
1917
|
proto.payment.PaymentSearchRequest.prototype.addCurrency = function(value, opt_index) {
|
1750
|
-
return jspb.Message.addToRepeatedField(this,
|
1918
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
1751
1919
|
};
|
1752
1920
|
|
1753
1921
|
|
@@ -1761,11 +1929,11 @@ proto.payment.PaymentSearchRequest.prototype.clearCurrencyList = function() {
|
|
1761
1929
|
|
1762
1930
|
|
1763
1931
|
/**
|
1764
|
-
* repeated string geo =
|
1932
|
+
* repeated string geo = 5;
|
1765
1933
|
* @return {!Array<string>}
|
1766
1934
|
*/
|
1767
1935
|
proto.payment.PaymentSearchRequest.prototype.getGeoList = function() {
|
1768
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this,
|
1936
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
1769
1937
|
};
|
1770
1938
|
|
1771
1939
|
|
@@ -1774,7 +1942,7 @@ proto.payment.PaymentSearchRequest.prototype.getGeoList = function() {
|
|
1774
1942
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1775
1943
|
*/
|
1776
1944
|
proto.payment.PaymentSearchRequest.prototype.setGeoList = function(value) {
|
1777
|
-
return jspb.Message.setField(this,
|
1945
|
+
return jspb.Message.setField(this, 5, value || []);
|
1778
1946
|
};
|
1779
1947
|
|
1780
1948
|
|
@@ -1784,7 +1952,7 @@ proto.payment.PaymentSearchRequest.prototype.setGeoList = function(value) {
|
|
1784
1952
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1785
1953
|
*/
|
1786
1954
|
proto.payment.PaymentSearchRequest.prototype.addGeo = function(value, opt_index) {
|
1787
|
-
return jspb.Message.addToRepeatedField(this,
|
1955
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
1788
1956
|
};
|
1789
1957
|
|
1790
1958
|
|
@@ -1798,11 +1966,11 @@ proto.payment.PaymentSearchRequest.prototype.clearGeoList = function() {
|
|
1798
1966
|
|
1799
1967
|
|
1800
1968
|
/**
|
1801
|
-
* optional string processing_type =
|
1969
|
+
* optional string processing_type = 6;
|
1802
1970
|
* @return {string}
|
1803
1971
|
*/
|
1804
1972
|
proto.payment.PaymentSearchRequest.prototype.getProcessingType = function() {
|
1805
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1973
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1806
1974
|
};
|
1807
1975
|
|
1808
1976
|
|
@@ -1811,7 +1979,7 @@ proto.payment.PaymentSearchRequest.prototype.getProcessingType = function() {
|
|
1811
1979
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1812
1980
|
*/
|
1813
1981
|
proto.payment.PaymentSearchRequest.prototype.setProcessingType = function(value) {
|
1814
|
-
return jspb.Message.setField(this,
|
1982
|
+
return jspb.Message.setField(this, 6, value);
|
1815
1983
|
};
|
1816
1984
|
|
1817
1985
|
|
@@ -1820,7 +1988,7 @@ proto.payment.PaymentSearchRequest.prototype.setProcessingType = function(value)
|
|
1820
1988
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1821
1989
|
*/
|
1822
1990
|
proto.payment.PaymentSearchRequest.prototype.clearProcessingType = function() {
|
1823
|
-
return jspb.Message.setField(this,
|
1991
|
+
return jspb.Message.setField(this, 6, undefined);
|
1824
1992
|
};
|
1825
1993
|
|
1826
1994
|
|
@@ -1829,16 +1997,16 @@ proto.payment.PaymentSearchRequest.prototype.clearProcessingType = function() {
|
|
1829
1997
|
* @return {boolean}
|
1830
1998
|
*/
|
1831
1999
|
proto.payment.PaymentSearchRequest.prototype.hasProcessingType = function() {
|
1832
|
-
return jspb.Message.getField(this,
|
2000
|
+
return jspb.Message.getField(this, 6) != null;
|
1833
2001
|
};
|
1834
2002
|
|
1835
2003
|
|
1836
2004
|
/**
|
1837
|
-
* optional string transaction_type =
|
2005
|
+
* optional string transaction_type = 7;
|
1838
2006
|
* @return {string}
|
1839
2007
|
*/
|
1840
2008
|
proto.payment.PaymentSearchRequest.prototype.getTransactionType = function() {
|
1841
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
2009
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1842
2010
|
};
|
1843
2011
|
|
1844
2012
|
|
@@ -1847,7 +2015,7 @@ proto.payment.PaymentSearchRequest.prototype.getTransactionType = function() {
|
|
1847
2015
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1848
2016
|
*/
|
1849
2017
|
proto.payment.PaymentSearchRequest.prototype.setTransactionType = function(value) {
|
1850
|
-
return jspb.Message.setField(this,
|
2018
|
+
return jspb.Message.setField(this, 7, value);
|
1851
2019
|
};
|
1852
2020
|
|
1853
2021
|
|
@@ -1856,7 +2024,7 @@ proto.payment.PaymentSearchRequest.prototype.setTransactionType = function(value
|
|
1856
2024
|
* @return {!proto.payment.PaymentSearchRequest} returns this
|
1857
2025
|
*/
|
1858
2026
|
proto.payment.PaymentSearchRequest.prototype.clearTransactionType = function() {
|
1859
|
-
return jspb.Message.setField(this,
|
2027
|
+
return jspb.Message.setField(this, 7, undefined);
|
1860
2028
|
};
|
1861
2029
|
|
1862
2030
|
|
@@ -1865,7 +2033,81 @@ proto.payment.PaymentSearchRequest.prototype.clearTransactionType = function() {
|
|
1865
2033
|
* @return {boolean}
|
1866
2034
|
*/
|
1867
2035
|
proto.payment.PaymentSearchRequest.prototype.hasTransactionType = function() {
|
1868
|
-
return jspb.Message.getField(this,
|
2036
|
+
return jspb.Message.getField(this, 7) != null;
|
2037
|
+
};
|
2038
|
+
|
2039
|
+
|
2040
|
+
/**
|
2041
|
+
* repeated int32 provider_ids = 8;
|
2042
|
+
* @return {!Array<number>}
|
2043
|
+
*/
|
2044
|
+
proto.payment.PaymentSearchRequest.prototype.getProviderIdsList = function() {
|
2045
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 8));
|
2046
|
+
};
|
2047
|
+
|
2048
|
+
|
2049
|
+
/**
|
2050
|
+
* @param {!Array<number>} value
|
2051
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2052
|
+
*/
|
2053
|
+
proto.payment.PaymentSearchRequest.prototype.setProviderIdsList = function(value) {
|
2054
|
+
return jspb.Message.setField(this, 8, value || []);
|
2055
|
+
};
|
2056
|
+
|
2057
|
+
|
2058
|
+
/**
|
2059
|
+
* @param {number} value
|
2060
|
+
* @param {number=} opt_index
|
2061
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2062
|
+
*/
|
2063
|
+
proto.payment.PaymentSearchRequest.prototype.addProviderIds = function(value, opt_index) {
|
2064
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
2065
|
+
};
|
2066
|
+
|
2067
|
+
|
2068
|
+
/**
|
2069
|
+
* Clears the list making it empty but non-null.
|
2070
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2071
|
+
*/
|
2072
|
+
proto.payment.PaymentSearchRequest.prototype.clearProviderIdsList = function() {
|
2073
|
+
return this.setProviderIdsList([]);
|
2074
|
+
};
|
2075
|
+
|
2076
|
+
|
2077
|
+
/**
|
2078
|
+
* repeated int32 method_ids = 9;
|
2079
|
+
* @return {!Array<number>}
|
2080
|
+
*/
|
2081
|
+
proto.payment.PaymentSearchRequest.prototype.getMethodIdsList = function() {
|
2082
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 9));
|
2083
|
+
};
|
2084
|
+
|
2085
|
+
|
2086
|
+
/**
|
2087
|
+
* @param {!Array<number>} value
|
2088
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2089
|
+
*/
|
2090
|
+
proto.payment.PaymentSearchRequest.prototype.setMethodIdsList = function(value) {
|
2091
|
+
return jspb.Message.setField(this, 9, value || []);
|
2092
|
+
};
|
2093
|
+
|
2094
|
+
|
2095
|
+
/**
|
2096
|
+
* @param {number} value
|
2097
|
+
* @param {number=} opt_index
|
2098
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2099
|
+
*/
|
2100
|
+
proto.payment.PaymentSearchRequest.prototype.addMethodIds = function(value, opt_index) {
|
2101
|
+
return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
|
2102
|
+
};
|
2103
|
+
|
2104
|
+
|
2105
|
+
/**
|
2106
|
+
* Clears the list making it empty but non-null.
|
2107
|
+
* @return {!proto.payment.PaymentSearchRequest} returns this
|
2108
|
+
*/
|
2109
|
+
proto.payment.PaymentSearchRequest.prototype.clearMethodIdsList = function() {
|
2110
|
+
return this.setMethodIdsList([]);
|
1869
2111
|
};
|
1870
2112
|
|
1871
2113
|
|
@@ -5912,6 +6154,716 @@ proto.payment.DepositResponse.prototype.setStatus = function(value) {
|
|
5912
6154
|
|
5913
6155
|
|
5914
6156
|
|
6157
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6158
|
+
/**
|
6159
|
+
* Creates an object representation of this proto.
|
6160
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6161
|
+
* Optional fields that are not set will be set to undefined.
|
6162
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6163
|
+
* For the list of reserved names please see:
|
6164
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6165
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6166
|
+
* JSPB instance for transitional soy proto support:
|
6167
|
+
* http://goto/soy-param-migration
|
6168
|
+
* @return {!Object}
|
6169
|
+
*/
|
6170
|
+
proto.payment.DepositItem.prototype.toObject = function(opt_includeInstance) {
|
6171
|
+
return proto.payment.DepositItem.toObject(opt_includeInstance, this);
|
6172
|
+
};
|
6173
|
+
|
6174
|
+
|
6175
|
+
/**
|
6176
|
+
* Static version of the {@see toObject} method.
|
6177
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6178
|
+
* the JSPB instance for transitional soy proto support:
|
6179
|
+
* http://goto/soy-param-migration
|
6180
|
+
* @param {!proto.payment.DepositItem} msg The msg instance to transform.
|
6181
|
+
* @return {!Object}
|
6182
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6183
|
+
*/
|
6184
|
+
proto.payment.DepositItem.toObject = function(includeInstance, msg) {
|
6185
|
+
var f, obj = {
|
6186
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6187
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
6188
|
+
status: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
6189
|
+
amountAttempt: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
6190
|
+
amountPaid: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
6191
|
+
fee: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
6192
|
+
currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
6193
|
+
paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
6194
|
+
paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
6195
|
+
created: jspb.Message.getFieldWithDefault(msg, 10, "")
|
6196
|
+
};
|
6197
|
+
|
6198
|
+
if (includeInstance) {
|
6199
|
+
obj.$jspbMessageInstance = msg;
|
6200
|
+
}
|
6201
|
+
return obj;
|
6202
|
+
};
|
6203
|
+
}
|
6204
|
+
|
6205
|
+
|
6206
|
+
/**
|
6207
|
+
* Deserializes binary data (in protobuf wire format).
|
6208
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6209
|
+
* @return {!proto.payment.DepositItem}
|
6210
|
+
*/
|
6211
|
+
proto.payment.DepositItem.deserializeBinary = function(bytes) {
|
6212
|
+
var reader = new jspb.BinaryReader(bytes);
|
6213
|
+
var msg = new proto.payment.DepositItem;
|
6214
|
+
return proto.payment.DepositItem.deserializeBinaryFromReader(msg, reader);
|
6215
|
+
};
|
6216
|
+
|
6217
|
+
|
6218
|
+
/**
|
6219
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6220
|
+
* given reader into the given message object.
|
6221
|
+
* @param {!proto.payment.DepositItem} msg The message object to deserialize into.
|
6222
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6223
|
+
* @return {!proto.payment.DepositItem}
|
6224
|
+
*/
|
6225
|
+
proto.payment.DepositItem.deserializeBinaryFromReader = function(msg, reader) {
|
6226
|
+
while (reader.nextField()) {
|
6227
|
+
if (reader.isEndGroup()) {
|
6228
|
+
break;
|
6229
|
+
}
|
6230
|
+
var field = reader.getFieldNumber();
|
6231
|
+
switch (field) {
|
6232
|
+
case 1:
|
6233
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6234
|
+
msg.setId(value);
|
6235
|
+
break;
|
6236
|
+
case 2:
|
6237
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6238
|
+
msg.setUserId(value);
|
6239
|
+
break;
|
6240
|
+
case 3:
|
6241
|
+
var value = /** @type {string} */ (reader.readString());
|
6242
|
+
msg.setStatus(value);
|
6243
|
+
break;
|
6244
|
+
case 4:
|
6245
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6246
|
+
msg.setAmountAttempt(value);
|
6247
|
+
break;
|
6248
|
+
case 5:
|
6249
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6250
|
+
msg.setAmountPaid(value);
|
6251
|
+
break;
|
6252
|
+
case 6:
|
6253
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6254
|
+
msg.setFee(value);
|
6255
|
+
break;
|
6256
|
+
case 7:
|
6257
|
+
var value = /** @type {string} */ (reader.readString());
|
6258
|
+
msg.setCurrency(value);
|
6259
|
+
break;
|
6260
|
+
case 8:
|
6261
|
+
var value = /** @type {string} */ (reader.readString());
|
6262
|
+
msg.setPaymentMethodTitle(value);
|
6263
|
+
break;
|
6264
|
+
case 9:
|
6265
|
+
var value = /** @type {string} */ (reader.readString());
|
6266
|
+
msg.setPaymentProviderImage(value);
|
6267
|
+
break;
|
6268
|
+
case 10:
|
6269
|
+
var value = /** @type {string} */ (reader.readString());
|
6270
|
+
msg.setCreated(value);
|
6271
|
+
break;
|
6272
|
+
default:
|
6273
|
+
reader.skipField();
|
6274
|
+
break;
|
6275
|
+
}
|
6276
|
+
}
|
6277
|
+
return msg;
|
6278
|
+
};
|
6279
|
+
|
6280
|
+
|
6281
|
+
/**
|
6282
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6283
|
+
* @return {!Uint8Array}
|
6284
|
+
*/
|
6285
|
+
proto.payment.DepositItem.prototype.serializeBinary = function() {
|
6286
|
+
var writer = new jspb.BinaryWriter();
|
6287
|
+
proto.payment.DepositItem.serializeBinaryToWriter(this, writer);
|
6288
|
+
return writer.getResultBuffer();
|
6289
|
+
};
|
6290
|
+
|
6291
|
+
|
6292
|
+
/**
|
6293
|
+
* Serializes the given message to binary data (in protobuf wire
|
6294
|
+
* format), writing to the given BinaryWriter.
|
6295
|
+
* @param {!proto.payment.DepositItem} message
|
6296
|
+
* @param {!jspb.BinaryWriter} writer
|
6297
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6298
|
+
*/
|
6299
|
+
proto.payment.DepositItem.serializeBinaryToWriter = function(message, writer) {
|
6300
|
+
var f = undefined;
|
6301
|
+
f = message.getId();
|
6302
|
+
if (f !== 0) {
|
6303
|
+
writer.writeInt32(
|
6304
|
+
1,
|
6305
|
+
f
|
6306
|
+
);
|
6307
|
+
}
|
6308
|
+
f = message.getUserId();
|
6309
|
+
if (f !== 0) {
|
6310
|
+
writer.writeInt32(
|
6311
|
+
2,
|
6312
|
+
f
|
6313
|
+
);
|
6314
|
+
}
|
6315
|
+
f = message.getStatus();
|
6316
|
+
if (f.length > 0) {
|
6317
|
+
writer.writeString(
|
6318
|
+
3,
|
6319
|
+
f
|
6320
|
+
);
|
6321
|
+
}
|
6322
|
+
f = message.getAmountAttempt();
|
6323
|
+
if (f !== 0.0) {
|
6324
|
+
writer.writeFloat(
|
6325
|
+
4,
|
6326
|
+
f
|
6327
|
+
);
|
6328
|
+
}
|
6329
|
+
f = message.getAmountPaid();
|
6330
|
+
if (f !== 0.0) {
|
6331
|
+
writer.writeFloat(
|
6332
|
+
5,
|
6333
|
+
f
|
6334
|
+
);
|
6335
|
+
}
|
6336
|
+
f = message.getFee();
|
6337
|
+
if (f !== 0.0) {
|
6338
|
+
writer.writeFloat(
|
6339
|
+
6,
|
6340
|
+
f
|
6341
|
+
);
|
6342
|
+
}
|
6343
|
+
f = message.getCurrency();
|
6344
|
+
if (f.length > 0) {
|
6345
|
+
writer.writeString(
|
6346
|
+
7,
|
6347
|
+
f
|
6348
|
+
);
|
6349
|
+
}
|
6350
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
6351
|
+
if (f != null) {
|
6352
|
+
writer.writeString(
|
6353
|
+
8,
|
6354
|
+
f
|
6355
|
+
);
|
6356
|
+
}
|
6357
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
6358
|
+
if (f != null) {
|
6359
|
+
writer.writeString(
|
6360
|
+
9,
|
6361
|
+
f
|
6362
|
+
);
|
6363
|
+
}
|
6364
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
6365
|
+
if (f != null) {
|
6366
|
+
writer.writeString(
|
6367
|
+
10,
|
6368
|
+
f
|
6369
|
+
);
|
6370
|
+
}
|
6371
|
+
};
|
6372
|
+
|
6373
|
+
|
6374
|
+
/**
|
6375
|
+
* optional int32 id = 1;
|
6376
|
+
* @return {number}
|
6377
|
+
*/
|
6378
|
+
proto.payment.DepositItem.prototype.getId = function() {
|
6379
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6380
|
+
};
|
6381
|
+
|
6382
|
+
|
6383
|
+
/**
|
6384
|
+
* @param {number} value
|
6385
|
+
* @return {!proto.payment.DepositItem} returns this
|
6386
|
+
*/
|
6387
|
+
proto.payment.DepositItem.prototype.setId = function(value) {
|
6388
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6389
|
+
};
|
6390
|
+
|
6391
|
+
|
6392
|
+
/**
|
6393
|
+
* optional int32 user_id = 2;
|
6394
|
+
* @return {number}
|
6395
|
+
*/
|
6396
|
+
proto.payment.DepositItem.prototype.getUserId = function() {
|
6397
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6398
|
+
};
|
6399
|
+
|
6400
|
+
|
6401
|
+
/**
|
6402
|
+
* @param {number} value
|
6403
|
+
* @return {!proto.payment.DepositItem} returns this
|
6404
|
+
*/
|
6405
|
+
proto.payment.DepositItem.prototype.setUserId = function(value) {
|
6406
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
6407
|
+
};
|
6408
|
+
|
6409
|
+
|
6410
|
+
/**
|
6411
|
+
* optional string status = 3;
|
6412
|
+
* @return {string}
|
6413
|
+
*/
|
6414
|
+
proto.payment.DepositItem.prototype.getStatus = function() {
|
6415
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
6416
|
+
};
|
6417
|
+
|
6418
|
+
|
6419
|
+
/**
|
6420
|
+
* @param {string} value
|
6421
|
+
* @return {!proto.payment.DepositItem} returns this
|
6422
|
+
*/
|
6423
|
+
proto.payment.DepositItem.prototype.setStatus = function(value) {
|
6424
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
6425
|
+
};
|
6426
|
+
|
6427
|
+
|
6428
|
+
/**
|
6429
|
+
* optional float amount_attempt = 4;
|
6430
|
+
* @return {number}
|
6431
|
+
*/
|
6432
|
+
proto.payment.DepositItem.prototype.getAmountAttempt = function() {
|
6433
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
6434
|
+
};
|
6435
|
+
|
6436
|
+
|
6437
|
+
/**
|
6438
|
+
* @param {number} value
|
6439
|
+
* @return {!proto.payment.DepositItem} returns this
|
6440
|
+
*/
|
6441
|
+
proto.payment.DepositItem.prototype.setAmountAttempt = function(value) {
|
6442
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
6443
|
+
};
|
6444
|
+
|
6445
|
+
|
6446
|
+
/**
|
6447
|
+
* optional float amount_paid = 5;
|
6448
|
+
* @return {number}
|
6449
|
+
*/
|
6450
|
+
proto.payment.DepositItem.prototype.getAmountPaid = function() {
|
6451
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
6452
|
+
};
|
6453
|
+
|
6454
|
+
|
6455
|
+
/**
|
6456
|
+
* @param {number} value
|
6457
|
+
* @return {!proto.payment.DepositItem} returns this
|
6458
|
+
*/
|
6459
|
+
proto.payment.DepositItem.prototype.setAmountPaid = function(value) {
|
6460
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
6461
|
+
};
|
6462
|
+
|
6463
|
+
|
6464
|
+
/**
|
6465
|
+
* optional float fee = 6;
|
6466
|
+
* @return {number}
|
6467
|
+
*/
|
6468
|
+
proto.payment.DepositItem.prototype.getFee = function() {
|
6469
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
6470
|
+
};
|
6471
|
+
|
6472
|
+
|
6473
|
+
/**
|
6474
|
+
* @param {number} value
|
6475
|
+
* @return {!proto.payment.DepositItem} returns this
|
6476
|
+
*/
|
6477
|
+
proto.payment.DepositItem.prototype.setFee = function(value) {
|
6478
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
6479
|
+
};
|
6480
|
+
|
6481
|
+
|
6482
|
+
/**
|
6483
|
+
* optional string currency = 7;
|
6484
|
+
* @return {string}
|
6485
|
+
*/
|
6486
|
+
proto.payment.DepositItem.prototype.getCurrency = function() {
|
6487
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
6488
|
+
};
|
6489
|
+
|
6490
|
+
|
6491
|
+
/**
|
6492
|
+
* @param {string} value
|
6493
|
+
* @return {!proto.payment.DepositItem} returns this
|
6494
|
+
*/
|
6495
|
+
proto.payment.DepositItem.prototype.setCurrency = function(value) {
|
6496
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
6497
|
+
};
|
6498
|
+
|
6499
|
+
|
6500
|
+
/**
|
6501
|
+
* optional string payment_method_title = 8;
|
6502
|
+
* @return {string}
|
6503
|
+
*/
|
6504
|
+
proto.payment.DepositItem.prototype.getPaymentMethodTitle = function() {
|
6505
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
6506
|
+
};
|
6507
|
+
|
6508
|
+
|
6509
|
+
/**
|
6510
|
+
* @param {string} value
|
6511
|
+
* @return {!proto.payment.DepositItem} returns this
|
6512
|
+
*/
|
6513
|
+
proto.payment.DepositItem.prototype.setPaymentMethodTitle = function(value) {
|
6514
|
+
return jspb.Message.setField(this, 8, value);
|
6515
|
+
};
|
6516
|
+
|
6517
|
+
|
6518
|
+
/**
|
6519
|
+
* Clears the field making it undefined.
|
6520
|
+
* @return {!proto.payment.DepositItem} returns this
|
6521
|
+
*/
|
6522
|
+
proto.payment.DepositItem.prototype.clearPaymentMethodTitle = function() {
|
6523
|
+
return jspb.Message.setField(this, 8, undefined);
|
6524
|
+
};
|
6525
|
+
|
6526
|
+
|
6527
|
+
/**
|
6528
|
+
* Returns whether this field is set.
|
6529
|
+
* @return {boolean}
|
6530
|
+
*/
|
6531
|
+
proto.payment.DepositItem.prototype.hasPaymentMethodTitle = function() {
|
6532
|
+
return jspb.Message.getField(this, 8) != null;
|
6533
|
+
};
|
6534
|
+
|
6535
|
+
|
6536
|
+
/**
|
6537
|
+
* optional string payment_provider_image = 9;
|
6538
|
+
* @return {string}
|
6539
|
+
*/
|
6540
|
+
proto.payment.DepositItem.prototype.getPaymentProviderImage = function() {
|
6541
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
6542
|
+
};
|
6543
|
+
|
6544
|
+
|
6545
|
+
/**
|
6546
|
+
* @param {string} value
|
6547
|
+
* @return {!proto.payment.DepositItem} returns this
|
6548
|
+
*/
|
6549
|
+
proto.payment.DepositItem.prototype.setPaymentProviderImage = function(value) {
|
6550
|
+
return jspb.Message.setField(this, 9, value);
|
6551
|
+
};
|
6552
|
+
|
6553
|
+
|
6554
|
+
/**
|
6555
|
+
* Clears the field making it undefined.
|
6556
|
+
* @return {!proto.payment.DepositItem} returns this
|
6557
|
+
*/
|
6558
|
+
proto.payment.DepositItem.prototype.clearPaymentProviderImage = function() {
|
6559
|
+
return jspb.Message.setField(this, 9, undefined);
|
6560
|
+
};
|
6561
|
+
|
6562
|
+
|
6563
|
+
/**
|
6564
|
+
* Returns whether this field is set.
|
6565
|
+
* @return {boolean}
|
6566
|
+
*/
|
6567
|
+
proto.payment.DepositItem.prototype.hasPaymentProviderImage = function() {
|
6568
|
+
return jspb.Message.getField(this, 9) != null;
|
6569
|
+
};
|
6570
|
+
|
6571
|
+
|
6572
|
+
/**
|
6573
|
+
* optional string created = 10;
|
6574
|
+
* @return {string}
|
6575
|
+
*/
|
6576
|
+
proto.payment.DepositItem.prototype.getCreated = function() {
|
6577
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
6578
|
+
};
|
6579
|
+
|
6580
|
+
|
6581
|
+
/**
|
6582
|
+
* @param {string} value
|
6583
|
+
* @return {!proto.payment.DepositItem} returns this
|
6584
|
+
*/
|
6585
|
+
proto.payment.DepositItem.prototype.setCreated = function(value) {
|
6586
|
+
return jspb.Message.setField(this, 10, value);
|
6587
|
+
};
|
6588
|
+
|
6589
|
+
|
6590
|
+
/**
|
6591
|
+
* Clears the field making it undefined.
|
6592
|
+
* @return {!proto.payment.DepositItem} returns this
|
6593
|
+
*/
|
6594
|
+
proto.payment.DepositItem.prototype.clearCreated = function() {
|
6595
|
+
return jspb.Message.setField(this, 10, undefined);
|
6596
|
+
};
|
6597
|
+
|
6598
|
+
|
6599
|
+
/**
|
6600
|
+
* Returns whether this field is set.
|
6601
|
+
* @return {boolean}
|
6602
|
+
*/
|
6603
|
+
proto.payment.DepositItem.prototype.hasCreated = function() {
|
6604
|
+
return jspb.Message.getField(this, 10) != null;
|
6605
|
+
};
|
6606
|
+
|
6607
|
+
|
6608
|
+
|
6609
|
+
/**
|
6610
|
+
* List of repeated fields within this message type.
|
6611
|
+
* @private {!Array<number>}
|
6612
|
+
* @const
|
6613
|
+
*/
|
6614
|
+
proto.payment.DepositItemsResponse.repeatedFields_ = [1];
|
6615
|
+
|
6616
|
+
|
6617
|
+
|
6618
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6619
|
+
/**
|
6620
|
+
* Creates an object representation of this proto.
|
6621
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6622
|
+
* Optional fields that are not set will be set to undefined.
|
6623
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6624
|
+
* For the list of reserved names please see:
|
6625
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6626
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6627
|
+
* JSPB instance for transitional soy proto support:
|
6628
|
+
* http://goto/soy-param-migration
|
6629
|
+
* @return {!Object}
|
6630
|
+
*/
|
6631
|
+
proto.payment.DepositItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
6632
|
+
return proto.payment.DepositItemsResponse.toObject(opt_includeInstance, this);
|
6633
|
+
};
|
6634
|
+
|
6635
|
+
|
6636
|
+
/**
|
6637
|
+
* Static version of the {@see toObject} method.
|
6638
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6639
|
+
* the JSPB instance for transitional soy proto support:
|
6640
|
+
* http://goto/soy-param-migration
|
6641
|
+
* @param {!proto.payment.DepositItemsResponse} msg The msg instance to transform.
|
6642
|
+
* @return {!Object}
|
6643
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6644
|
+
*/
|
6645
|
+
proto.payment.DepositItemsResponse.toObject = function(includeInstance, msg) {
|
6646
|
+
var f, obj = {
|
6647
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
6648
|
+
proto.payment.DepositItem.toObject, includeInstance),
|
6649
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
6650
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
6651
|
+
};
|
6652
|
+
|
6653
|
+
if (includeInstance) {
|
6654
|
+
obj.$jspbMessageInstance = msg;
|
6655
|
+
}
|
6656
|
+
return obj;
|
6657
|
+
};
|
6658
|
+
}
|
6659
|
+
|
6660
|
+
|
6661
|
+
/**
|
6662
|
+
* Deserializes binary data (in protobuf wire format).
|
6663
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6664
|
+
* @return {!proto.payment.DepositItemsResponse}
|
6665
|
+
*/
|
6666
|
+
proto.payment.DepositItemsResponse.deserializeBinary = function(bytes) {
|
6667
|
+
var reader = new jspb.BinaryReader(bytes);
|
6668
|
+
var msg = new proto.payment.DepositItemsResponse;
|
6669
|
+
return proto.payment.DepositItemsResponse.deserializeBinaryFromReader(msg, reader);
|
6670
|
+
};
|
6671
|
+
|
6672
|
+
|
6673
|
+
/**
|
6674
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6675
|
+
* given reader into the given message object.
|
6676
|
+
* @param {!proto.payment.DepositItemsResponse} msg The message object to deserialize into.
|
6677
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6678
|
+
* @return {!proto.payment.DepositItemsResponse}
|
6679
|
+
*/
|
6680
|
+
proto.payment.DepositItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6681
|
+
while (reader.nextField()) {
|
6682
|
+
if (reader.isEndGroup()) {
|
6683
|
+
break;
|
6684
|
+
}
|
6685
|
+
var field = reader.getFieldNumber();
|
6686
|
+
switch (field) {
|
6687
|
+
case 1:
|
6688
|
+
var value = new proto.payment.DepositItem;
|
6689
|
+
reader.readMessage(value,proto.payment.DepositItem.deserializeBinaryFromReader);
|
6690
|
+
msg.addItems(value);
|
6691
|
+
break;
|
6692
|
+
case 2:
|
6693
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6694
|
+
msg.setTotalPages(value);
|
6695
|
+
break;
|
6696
|
+
case 3:
|
6697
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6698
|
+
msg.setTotalItems(value);
|
6699
|
+
break;
|
6700
|
+
default:
|
6701
|
+
reader.skipField();
|
6702
|
+
break;
|
6703
|
+
}
|
6704
|
+
}
|
6705
|
+
return msg;
|
6706
|
+
};
|
6707
|
+
|
6708
|
+
|
6709
|
+
/**
|
6710
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6711
|
+
* @return {!Uint8Array}
|
6712
|
+
*/
|
6713
|
+
proto.payment.DepositItemsResponse.prototype.serializeBinary = function() {
|
6714
|
+
var writer = new jspb.BinaryWriter();
|
6715
|
+
proto.payment.DepositItemsResponse.serializeBinaryToWriter(this, writer);
|
6716
|
+
return writer.getResultBuffer();
|
6717
|
+
};
|
6718
|
+
|
6719
|
+
|
6720
|
+
/**
|
6721
|
+
* Serializes the given message to binary data (in protobuf wire
|
6722
|
+
* format), writing to the given BinaryWriter.
|
6723
|
+
* @param {!proto.payment.DepositItemsResponse} message
|
6724
|
+
* @param {!jspb.BinaryWriter} writer
|
6725
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6726
|
+
*/
|
6727
|
+
proto.payment.DepositItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
6728
|
+
var f = undefined;
|
6729
|
+
f = message.getItemsList();
|
6730
|
+
if (f.length > 0) {
|
6731
|
+
writer.writeRepeatedMessage(
|
6732
|
+
1,
|
6733
|
+
f,
|
6734
|
+
proto.payment.DepositItem.serializeBinaryToWriter
|
6735
|
+
);
|
6736
|
+
}
|
6737
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
6738
|
+
if (f != null) {
|
6739
|
+
writer.writeInt32(
|
6740
|
+
2,
|
6741
|
+
f
|
6742
|
+
);
|
6743
|
+
}
|
6744
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
6745
|
+
if (f != null) {
|
6746
|
+
writer.writeInt32(
|
6747
|
+
3,
|
6748
|
+
f
|
6749
|
+
);
|
6750
|
+
}
|
6751
|
+
};
|
6752
|
+
|
6753
|
+
|
6754
|
+
/**
|
6755
|
+
* repeated DepositItem items = 1;
|
6756
|
+
* @return {!Array<!proto.payment.DepositItem>}
|
6757
|
+
*/
|
6758
|
+
proto.payment.DepositItemsResponse.prototype.getItemsList = function() {
|
6759
|
+
return /** @type{!Array<!proto.payment.DepositItem>} */ (
|
6760
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.DepositItem, 1));
|
6761
|
+
};
|
6762
|
+
|
6763
|
+
|
6764
|
+
/**
|
6765
|
+
* @param {!Array<!proto.payment.DepositItem>} value
|
6766
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6767
|
+
*/
|
6768
|
+
proto.payment.DepositItemsResponse.prototype.setItemsList = function(value) {
|
6769
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
6770
|
+
};
|
6771
|
+
|
6772
|
+
|
6773
|
+
/**
|
6774
|
+
* @param {!proto.payment.DepositItem=} opt_value
|
6775
|
+
* @param {number=} opt_index
|
6776
|
+
* @return {!proto.payment.DepositItem}
|
6777
|
+
*/
|
6778
|
+
proto.payment.DepositItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
6779
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.DepositItem, opt_index);
|
6780
|
+
};
|
6781
|
+
|
6782
|
+
|
6783
|
+
/**
|
6784
|
+
* Clears the list making it empty but non-null.
|
6785
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6786
|
+
*/
|
6787
|
+
proto.payment.DepositItemsResponse.prototype.clearItemsList = function() {
|
6788
|
+
return this.setItemsList([]);
|
6789
|
+
};
|
6790
|
+
|
6791
|
+
|
6792
|
+
/**
|
6793
|
+
* optional int32 total_pages = 2;
|
6794
|
+
* @return {number}
|
6795
|
+
*/
|
6796
|
+
proto.payment.DepositItemsResponse.prototype.getTotalPages = function() {
|
6797
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6798
|
+
};
|
6799
|
+
|
6800
|
+
|
6801
|
+
/**
|
6802
|
+
* @param {number} value
|
6803
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6804
|
+
*/
|
6805
|
+
proto.payment.DepositItemsResponse.prototype.setTotalPages = function(value) {
|
6806
|
+
return jspb.Message.setField(this, 2, value);
|
6807
|
+
};
|
6808
|
+
|
6809
|
+
|
6810
|
+
/**
|
6811
|
+
* Clears the field making it undefined.
|
6812
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6813
|
+
*/
|
6814
|
+
proto.payment.DepositItemsResponse.prototype.clearTotalPages = function() {
|
6815
|
+
return jspb.Message.setField(this, 2, undefined);
|
6816
|
+
};
|
6817
|
+
|
6818
|
+
|
6819
|
+
/**
|
6820
|
+
* Returns whether this field is set.
|
6821
|
+
* @return {boolean}
|
6822
|
+
*/
|
6823
|
+
proto.payment.DepositItemsResponse.prototype.hasTotalPages = function() {
|
6824
|
+
return jspb.Message.getField(this, 2) != null;
|
6825
|
+
};
|
6826
|
+
|
6827
|
+
|
6828
|
+
/**
|
6829
|
+
* optional int32 total_items = 3;
|
6830
|
+
* @return {number}
|
6831
|
+
*/
|
6832
|
+
proto.payment.DepositItemsResponse.prototype.getTotalItems = function() {
|
6833
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6834
|
+
};
|
6835
|
+
|
6836
|
+
|
6837
|
+
/**
|
6838
|
+
* @param {number} value
|
6839
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6840
|
+
*/
|
6841
|
+
proto.payment.DepositItemsResponse.prototype.setTotalItems = function(value) {
|
6842
|
+
return jspb.Message.setField(this, 3, value);
|
6843
|
+
};
|
6844
|
+
|
6845
|
+
|
6846
|
+
/**
|
6847
|
+
* Clears the field making it undefined.
|
6848
|
+
* @return {!proto.payment.DepositItemsResponse} returns this
|
6849
|
+
*/
|
6850
|
+
proto.payment.DepositItemsResponse.prototype.clearTotalItems = function() {
|
6851
|
+
return jspb.Message.setField(this, 3, undefined);
|
6852
|
+
};
|
6853
|
+
|
6854
|
+
|
6855
|
+
/**
|
6856
|
+
* Returns whether this field is set.
|
6857
|
+
* @return {boolean}
|
6858
|
+
*/
|
6859
|
+
proto.payment.DepositItemsResponse.prototype.hasTotalItems = function() {
|
6860
|
+
return jspb.Message.getField(this, 3) != null;
|
6861
|
+
};
|
6862
|
+
|
6863
|
+
|
6864
|
+
|
6865
|
+
|
6866
|
+
|
5915
6867
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5916
6868
|
/**
|
5917
6869
|
* Creates an object representation of this proto.
|