@@ -94,71 +94,71 @@ - (NSError *)addFeesToRequest:(NSString *)requestJson
9494
9595- (NSError *)parseResponseWithFees : (NSString *)responseJson
9696 paymentMethod : (NSString *)paymentMethod
97- utxoJson : (NSString **)utxoJson {
97+ receiptsJson : (NSString **)receiptsJson {
9898 XCTestExpectation *completionExpectation = [[XCTestExpectation alloc ] initWithDescription: @" completion finished" ];
9999 __block NSError *err = nil ;
100- __block NSString *outUtxo = nil ;
100+ __block NSString *outReceipts = nil ;
101101
102102 [IndyPayment parseResponseWithFees: responseJson
103103 paymentMethod: paymentMethod
104- completion: ^(NSError *error, NSString *utxo ) {
104+ completion: ^(NSError *error, NSString *receipts ) {
105105 err = error;
106- outUtxo = utxo ;
106+ outReceipts = receipts ;
107107 [completionExpectation fulfill ];
108108 }];
109109
110110 [self waitForExpectations: @[completionExpectation] timeout: [TestUtils longTimeout ]];
111111
112- if (utxoJson ) {*utxoJson = outUtxo ;}
112+ if (receiptsJson ) {*receiptsJson = outReceipts ;}
113113
114114 return err;
115115}
116116
117- - (NSError *)buildGetUtxoRequest : (IndyHandle)walletHandle
118- submitterDid : (NSString *)submitterDid
119- paymentAddress : (NSString *)paymentAddress
120- getUtxoTxnJson : (NSString **)getUtxoTxnJson
121- paymentMethod : (NSString **)paymentMethod {
117+ - (NSError *)buildGetSourcesRequest : (IndyHandle)walletHandle
118+ submitterDid : (NSString *)submitterDid
119+ paymentAddress : (NSString *)paymentAddress
120+ getSourcesTxnJson : (NSString **)getSourcesTxnJson
121+ paymentMethod : (NSString **)paymentMethod {
122122 XCTestExpectation *completionExpectation = [[XCTestExpectation alloc ] initWithDescription: @" completion finished" ];
123123 __block NSError *err = nil ;
124124 __block NSString *outReq = nil ;
125125 __block NSString *outPayMethod = nil ;
126126
127- [IndyPayment buildGetUtxoRequest : walletHandle
128- submitterDid: submitterDid
129- paymentAddress: paymentAddress
130- completion: ^(NSError *error, NSString *req, NSString *method) {
131- err = error;
132- outReq = req;
133- outPayMethod = method;
134- [completionExpectation fulfill ];
135- }];
127+ [IndyPayment buildGetSourcesRequest : walletHandle
128+ submitterDid: submitterDid
129+ paymentAddress: paymentAddress
130+ completion: ^(NSError *error, NSString *req, NSString *method) {
131+ err = error;
132+ outReq = req;
133+ outPayMethod = method;
134+ [completionExpectation fulfill ];
135+ }];
136136
137137 [self waitForExpectations: @[completionExpectation] timeout: [TestUtils longTimeout ]];
138138
139- if (getUtxoTxnJson ) {*getUtxoTxnJson = outReq;}
139+ if (getSourcesTxnJson ) {*getSourcesTxnJson = outReq;}
140140 if (paymentMethod) {*paymentMethod = outPayMethod;}
141141 return err;
142142}
143143
144- - (NSError *)parseGetUtxoResponse : (NSString *)responseJson
145- paymentMethod : (NSString *)paymentMethod
146- utxoJson : (NSString **)utxoJson {
144+ - (NSError *)parseGetSourcesResponse : (NSString *)responseJson
145+ paymentMethod : (NSString *)paymentMethod
146+ sourcesJson : (NSString **)sourcesJson {
147147 XCTestExpectation *completionExpectation = [[XCTestExpectation alloc ] initWithDescription: @" completion finished" ];
148148 __block NSError *err = nil ;
149- __block NSString *outUtxo = nil ;
149+ __block NSString *outSources = nil ;
150150
151- [IndyPayment parseGetUtxoResponse : responseJson
152- paymentMethod: paymentMethod
153- completion: ^(NSError *error, NSString *utxo ) {
154- err = error;
155- outUtxo = utxo ;
156- [completionExpectation fulfill ];
157- }];
151+ [IndyPayment parseGetSourcesResponse : responseJson
152+ paymentMethod: paymentMethod
153+ completion: ^(NSError *error, NSString *sources ) {
154+ err = error;
155+ outSources = sources ;
156+ [completionExpectation fulfill ];
157+ }];
158158
159159 [self waitForExpectations: @[completionExpectation] timeout: [TestUtils longTimeout ]];
160160
161- if (utxoJson ) {*utxoJson = outUtxo ;}
161+ if (sourcesJson ) {*sourcesJson = outSources ;}
162162
163163 return err;
164164}
@@ -194,22 +194,22 @@ - (NSError *)buildPaymentRequest:(IndyHandle)walletHandle
194194
195195- (NSError *)parsePaymentResponse : (NSString *)responseJson
196196 paymentMethod : (NSString *)paymentMethod
197- utxoJson : (NSString **)utxoJson {
197+ receiptsJson : (NSString **)receiptsJson {
198198 XCTestExpectation *completionExpectation = [[XCTestExpectation alloc ] initWithDescription: @" completion finished" ];
199199 __block NSError *err = nil ;
200- __block NSString *outUtxo = nil ;
200+ __block NSString *outReceipts = nil ;
201201
202202 [IndyPayment parsePaymentResponse: responseJson
203203 paymentMethod: paymentMethod
204- completion: ^(NSError *error, NSString *utxo ) {
204+ completion: ^(NSError *error, NSString *receipts ) {
205205 err = error;
206- outUtxo = utxo ;
206+ outReceipts = receipts ;
207207 [completionExpectation fulfill ];
208208 }];
209209
210210 [self waitForExpectations: @[completionExpectation] timeout: [TestUtils longTimeout ]];
211211
212- if (utxoJson ) {*utxoJson = outUtxo ;}
212+ if (receiptsJson ) {*receiptsJson = outReceipts ;}
213213
214214 return err;
215215}
@@ -249,21 +249,21 @@ - (NSError *)buildSetTxnFeesRequest:(IndyHandle)walletHandle
249249 setTxnFeesReqJson : (NSString **)setTxnFeesReqJson {
250250 XCTestExpectation *completionExpectation = [[XCTestExpectation alloc ] initWithDescription: @" completion finished" ];
251251 __block NSError *err = nil ;
252- __block NSString *outUtxo = nil ;
252+ __block NSString *outSources = nil ;
253253
254254 [IndyPayment buildSetTxnFeesRequest: walletHandle
255255 submitterDid: submitterDid
256256 paymentMethod: paymentMethod
257257 feesJson: feesJson
258- completion: ^(NSError *error, NSString *utxo ) {
258+ completion: ^(NSError *error, NSString *sources ) {
259259 err = error;
260- outUtxo = utxo ;
260+ outSources = sources ;
261261 [completionExpectation fulfill ];
262262 }];
263263
264264 [self waitForExpectations: @[completionExpectation] timeout: [TestUtils longTimeout ]];
265265
266- if (setTxnFeesReqJson) {*setTxnFeesReqJson = outUtxo ;}
266+ if (setTxnFeesReqJson) {*setTxnFeesReqJson = outSources ;}
267267
268268 return err;
269269}
@@ -274,20 +274,20 @@ - (NSError *)buildGetTxnFeesRequest:(IndyHandle)walletHandle
274274 getTxnFeesReqJson : (NSString **)getTxnFeesReqJson {
275275 XCTestExpectation *completionExpectation = [[XCTestExpectation alloc ] initWithDescription: @" completion finished" ];
276276 __block NSError *err = nil ;
277- __block NSString *outUtxo = nil ;
277+ __block NSString *outU = nil ;
278278
279279 [IndyPayment buildGetTxnFeesRequest: walletHandle
280280 submitterDid: submitterDid
281281 paymentMethod: paymentMethod
282- completion: ^(NSError *error, NSString *utxo ) {
282+ completion: ^(NSError *error, NSString *temp ) {
283283 err = error;
284- outUtxo = utxo ;
284+ outU = temp ;
285285 [completionExpectation fulfill ];
286286 }];
287287
288288 [self waitForExpectations: @[completionExpectation] timeout: [TestUtils longTimeout ]];
289289
290- if (getTxnFeesReqJson) {*getTxnFeesReqJson = outUtxo ;}
290+ if (getTxnFeesReqJson) {*getTxnFeesReqJson = outU ;}
291291
292292 return err;
293293}
0 commit comments