Skip to content

Commit d363c4e

Browse files
author
Ricardo
authored
Success (#140)
* Usee succeeded instead of success * Version
1 parent e26630d commit d363c4e

File tree

5 files changed

+101
-101
lines changed

5 files changed

+101
-101
lines changed

cuenca/resources/card_activations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CardActivation(Creatable):
1818
user_id: str
1919
ip_address: str
2020
card_uri: Optional[str]
21-
succeeded: bool
21+
success: bool
2222

2323
@classmethod
2424
def create(

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.7.1'
1+
__version__ = '0.7.2'
22
CLIENT_VERSION = __version__
33
API_VERSION = '2020-03-19'

tests/resources/cassettes/test_blocked_attemps.yaml

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,40 @@ interactions:
2020
X-Cuenca-Api-Version:
2121
- '2020-03-19'
2222
X-Cuenca-LoginId:
23-
- ULPahEA1lCRGuz3iHP7k3l7A
23+
- ULA6spyKFqQLm6TGQfnOiSiQ
2424
method: POST
2525
uri: https://sandbox.cuenca.com/card_activations
2626
response:
2727
body:
28-
string: '{"id":"CAA0Qhh8HH2TSeXdD1sFXYmrw","created_at":"2021-03-24T18:53:33.852000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
29-
10.5.79.172","card_uri":null,"succeeded":false}'
28+
string: '{"id":"CAACKF0mFh7QS6hd3P4FZrNGA","created_at":"2021-03-26T19:16:55.528000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
29+
10.5.70.51","card_uri":null,"success":false}'
3030
headers:
3131
Connection:
3232
- keep-alive
3333
Content-Length:
34-
- '188'
34+
- '185'
3535
Content-Type:
3636
- application/json
3737
Date:
38-
- Wed, 24 Mar 2021 18:53:33 GMT
38+
- Fri, 26 Mar 2021 19:16:55 GMT
3939
X-Amzn-Trace-Id:
40-
- Root=1-605b8aaa-33966e0f4895da0a3f5cc10c;Sampled=0
40+
- Root=1-605e3327-0231fb2069fc133d0a21af2f;Sampled=0
4141
X-Request-Time:
42-
- 'value: 3.171'
42+
- 'value: 0.354'
4343
x-amz-apigw-id:
44-
- ctKasElgCYcFVFA=
44+
- czzuIFYeiYcFaHQ=
4545
x-amzn-Remapped-Connection:
4646
- keep-alive
4747
x-amzn-Remapped-Content-Length:
48-
- '188'
48+
- '185'
4949
x-amzn-Remapped-Date:
50-
- Wed, 24 Mar 2021 18:53:33 GMT
50+
- Fri, 26 Mar 2021 19:16:55 GMT
5151
x-amzn-Remapped-Server:
5252
- nginx/1.18.0
5353
x-amzn-Remapped-x-amzn-RequestId:
54-
- 5625c470-31e1-447b-9a86-f0210c8a528a
54+
- 027bfb84-ea85-4e19-a275-376108c5264d
5555
x-amzn-RequestId:
56-
- 9d1aed19-d53b-4265-b40a-19941cb7ac6a
56+
- 248a83cf-4577-49cc-a426-6e84547c63c4
5757
status:
5858
code: 201
5959
message: Created
@@ -78,13 +78,13 @@ interactions:
7878
X-Cuenca-Api-Version:
7979
- '2020-03-19'
8080
X-Cuenca-LoginId:
81-
- ULPahEA1lCRGuz3iHP7k3l7A
81+
- ULA6spyKFqQLm6TGQfnOiSiQ
8282
method: POST
8383
uri: https://sandbox.cuenca.com/card_activations
8484
response:
8585
body:
86-
string: '{"id":"CAAm1_rxSUgQc6Jf9IEtBAiDg","created_at":"2021-03-24T18:53:34.374000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
87-
10.5.48.2","card_uri":null,"succeeded":false}'
86+
string: '{"id":"CAA4uPnumTyTEi65PpRsRj6Kw","created_at":"2021-03-26T19:16:56.061000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
87+
10.5.52.181","card_uri":null,"success":false}'
8888
headers:
8989
Connection:
9090
- keep-alive
@@ -93,25 +93,25 @@ interactions:
9393
Content-Type:
9494
- application/json
9595
Date:
96-
- Wed, 24 Mar 2021 18:53:34 GMT
96+
- Fri, 26 Mar 2021 19:16:56 GMT
9797
X-Amzn-Trace-Id:
98-
- Root=1-605b8aae-16ff3c0322743b5508c3cb3c;Sampled=0
98+
- Root=1-605e3327-64713b7538cd9d641953cfaa;Sampled=0
9999
X-Request-Time:
100-
- 'value: 0.378'
100+
- 'value: 0.371'
101101
x-amz-apigw-id:
102-
- ctKbNFjqCYcFaww=
102+
- czzuOG-7iYcFaNA=
103103
x-amzn-Remapped-Connection:
104104
- keep-alive
105105
x-amzn-Remapped-Content-Length:
106106
- '186'
107107
x-amzn-Remapped-Date:
108-
- Wed, 24 Mar 2021 18:53:34 GMT
108+
- Fri, 26 Mar 2021 19:16:56 GMT
109109
x-amzn-Remapped-Server:
110110
- nginx/1.18.0
111111
x-amzn-Remapped-x-amzn-RequestId:
112-
- d63d0937-4913-4a1c-9cfe-8a657ca4a39e
112+
- 4fda2581-a7bb-45f9-ba4f-a532de9fb0cb
113113
x-amzn-RequestId:
114-
- de30475a-b566-48f8-851a-d3b46548cbb4
114+
- f0378bc9-882b-46cc-a75c-d499e046c2fb
115115
status:
116116
code: 201
117117
message: Created
@@ -136,40 +136,40 @@ interactions:
136136
X-Cuenca-Api-Version:
137137
- '2020-03-19'
138138
X-Cuenca-LoginId:
139-
- ULPahEA1lCRGuz3iHP7k3l7A
139+
- ULA6spyKFqQLm6TGQfnOiSiQ
140140
method: POST
141141
uri: https://sandbox.cuenca.com/card_activations
142142
response:
143143
body:
144-
string: '{"id":"CAAoEpVsH4nQnGqtT6KX0Zflg","created_at":"2021-03-24T18:53:34.935000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
145-
10.5.52.181","card_uri":null,"succeeded":false}'
144+
string: '{"id":"CAASnsXAcl5RTayaQEY0Z4o_A","created_at":"2021-03-26T19:16:56.544000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
145+
10.5.79.172","card_uri":null,"success":false}'
146146
headers:
147147
Connection:
148148
- keep-alive
149149
Content-Length:
150-
- '188'
150+
- '186'
151151
Content-Type:
152152
- application/json
153153
Date:
154-
- Wed, 24 Mar 2021 18:53:35 GMT
154+
- Fri, 26 Mar 2021 19:16:56 GMT
155155
X-Amzn-Trace-Id:
156-
- Root=1-605b8aae-5619815e066b5f87180e40f7;Sampled=0
156+
- Root=1-605e3328-1651ed3e45353f1a271056c2;Sampled=0
157157
X-Request-Time:
158-
- 'value: 0.448'
158+
- 'value: 0.365'
159159
x-amz-apigw-id:
160-
- ctKbSGd9CYcFpfg=
160+
- czzuTG_KiYcFcDg=
161161
x-amzn-Remapped-Connection:
162162
- keep-alive
163163
x-amzn-Remapped-Content-Length:
164-
- '188'
164+
- '186'
165165
x-amzn-Remapped-Date:
166-
- Wed, 24 Mar 2021 18:53:35 GMT
166+
- Fri, 26 Mar 2021 19:16:56 GMT
167167
x-amzn-Remapped-Server:
168168
- nginx/1.18.0
169169
x-amzn-Remapped-x-amzn-RequestId:
170-
- 19dc9b5a-9d9d-4057-84ed-3dbaf2891d4e
170+
- 196db38b-3a9c-445e-8912-02d7f7e5e02a
171171
x-amzn-RequestId:
172-
- 7834a84e-bf8e-4f10-87ba-7b09d02796ce
172+
- 357fd830-1512-4b8b-95ec-89adb1a61ce7
173173
status:
174174
code: 201
175175
message: Created
@@ -194,40 +194,40 @@ interactions:
194194
X-Cuenca-Api-Version:
195195
- '2020-03-19'
196196
X-Cuenca-LoginId:
197-
- ULPahEA1lCRGuz3iHP7k3l7A
197+
- ULA6spyKFqQLm6TGQfnOiSiQ
198198
method: POST
199199
uri: https://sandbox.cuenca.com/card_activations
200200
response:
201201
body:
202-
string: '{"id":"CAAfVfWhdByQdm7VRP1d1ExvA","created_at":"2021-03-24T18:53:35.427000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
203-
10.5.52.181","card_uri":null,"succeeded":false}'
202+
string: '{"id":"CAAIxrwTcsQSg6KnwAAklIEyA","created_at":"2021-03-26T19:16:57.175000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
203+
10.5.48.2","card_uri":null,"success":false}'
204204
headers:
205205
Connection:
206206
- keep-alive
207207
Content-Length:
208-
- '188'
208+
- '184'
209209
Content-Type:
210210
- application/json
211211
Date:
212-
- Wed, 24 Mar 2021 18:53:35 GMT
212+
- Fri, 26 Mar 2021 19:16:57 GMT
213213
X-Amzn-Trace-Id:
214-
- Root=1-605b8aaf-461d04d155b6e03663268861;Sampled=0
214+
- Root=1-605e3328-16f05295675a8e5e68160cfa;Sampled=0
215215
X-Request-Time:
216-
- 'value: 0.370'
216+
- 'value: 0.354'
217217
x-amz-apigw-id:
218-
- ctKbYHtlCYcFiQw=
218+
- czzuZF5yiYcFcmA=
219219
x-amzn-Remapped-Connection:
220220
- keep-alive
221221
x-amzn-Remapped-Content-Length:
222-
- '188'
222+
- '184'
223223
x-amzn-Remapped-Date:
224-
- Wed, 24 Mar 2021 18:53:35 GMT
224+
- Fri, 26 Mar 2021 19:16:57 GMT
225225
x-amzn-Remapped-Server:
226226
- nginx/1.18.0
227227
x-amzn-Remapped-x-amzn-RequestId:
228-
- 17d5a637-998e-451d-b312-78de2da402ab
228+
- 7425a231-9890-4a29-ba8c-500306fdd426
229229
x-amzn-RequestId:
230-
- aa1a3289-5139-421b-9653-2f55f93b3dd6
230+
- 0227813a-398b-449a-84de-93adba4364bb
231231
status:
232232
code: 201
233233
message: Created
@@ -252,13 +252,13 @@ interactions:
252252
X-Cuenca-Api-Version:
253253
- '2020-03-19'
254254
X-Cuenca-LoginId:
255-
- ULPahEA1lCRGuz3iHP7k3l7A
255+
- ULA6spyKFqQLm6TGQfnOiSiQ
256256
method: POST
257257
uri: https://sandbox.cuenca.com/card_activations
258258
response:
259259
body:
260-
string: '{"id":"CAAsIBL-r5_QsOiGX5TnNgSOQ","created_at":"2021-03-24T18:53:35.869000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
261-
10.5.48.2","card_uri":null,"succeeded":false}'
260+
string: '{"id":"CAAJejaAzBzR5KfwSpiaRtsnw","created_at":"2021-03-26T19:16:57.672000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
261+
10.5.79.172","card_uri":null,"success":false}'
262262
headers:
263263
Connection:
264264
- keep-alive
@@ -267,25 +267,25 @@ interactions:
267267
Content-Type:
268268
- application/json
269269
Date:
270-
- Wed, 24 Mar 2021 18:53:35 GMT
270+
- Fri, 26 Mar 2021 19:16:57 GMT
271271
X-Amzn-Trace-Id:
272-
- Root=1-605b8aaf-16353a4012c5f86446ca5982;Sampled=0
272+
- Root=1-605e3329-22483ccd1f8a47d7183eee81;Sampled=0
273273
X-Request-Time:
274-
- 'value: 0.348'
274+
- 'value: 0.355'
275275
x-amz-apigw-id:
276-
- ctKbcHPUiYcF58Q=
276+
- czzueFF-CYcFffA=
277277
x-amzn-Remapped-Connection:
278278
- keep-alive
279279
x-amzn-Remapped-Content-Length:
280280
- '186'
281281
x-amzn-Remapped-Date:
282-
- Wed, 24 Mar 2021 18:53:35 GMT
282+
- Fri, 26 Mar 2021 19:16:57 GMT
283283
x-amzn-Remapped-Server:
284284
- nginx/1.18.0
285285
x-amzn-Remapped-x-amzn-RequestId:
286-
- 2e8a8118-01cc-4d02-9351-ec3348c33190
286+
- 14d5d514-cb6d-4829-be50-cdf220923e0a
287287
x-amzn-RequestId:
288-
- 9bdf5bd4-ece7-4aa8-bdba-ae93f1cf103e
288+
- f70b9a8d-111e-45ef-8be7-af41e93c12c7
289289
status:
290290
code: 201
291291
message: Created
@@ -310,40 +310,40 @@ interactions:
310310
X-Cuenca-Api-Version:
311311
- '2020-03-19'
312312
X-Cuenca-LoginId:
313-
- ULPahEA1lCRGuz3iHP7k3l7A
313+
- ULA6spyKFqQLm6TGQfnOiSiQ
314314
method: POST
315315
uri: https://sandbox.cuenca.com/card_activations
316316
response:
317317
body:
318-
string: '{"id":"CAAWj_L8nC0RwezWjXBrL8lfg","created_at":"2021-03-24T18:53:36.314000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
319-
10.5.52.181","card_uri":null,"succeeded":false}'
318+
string: '{"id":"CAAhUaOfdNCTp2RleCYt9sT4g","created_at":"2021-03-26T19:16:58.197000","user_id":"US6D1wbTEdLuTjf227iF05js","ip_address":"200.56.74.39,
319+
10.5.70.51","card_uri":null,"success":false}'
320320
headers:
321321
Connection:
322322
- keep-alive
323323
Content-Length:
324-
- '188'
324+
- '185'
325325
Content-Type:
326326
- application/json
327327
Date:
328-
- Wed, 24 Mar 2021 18:53:36 GMT
328+
- Fri, 26 Mar 2021 19:16:58 GMT
329329
X-Amzn-Trace-Id:
330-
- Root=1-605b8ab0-7fe4da78750643f04b4f0bb1;Sampled=0
330+
- Root=1-605e3329-2626aabf0307f51f6c69540c;Sampled=0
331331
X-Request-Time:
332-
- 'value: 0.348'
332+
- 'value: 0.355'
333333
x-amz-apigw-id:
334-
- ctKbhGXHCYcFsIQ=
334+
- czzujH6VCYcFc0A=
335335
x-amzn-Remapped-Connection:
336336
- keep-alive
337337
x-amzn-Remapped-Content-Length:
338-
- '188'
338+
- '185'
339339
x-amzn-Remapped-Date:
340-
- Wed, 24 Mar 2021 18:53:36 GMT
340+
- Fri, 26 Mar 2021 19:16:58 GMT
341341
x-amzn-Remapped-Server:
342342
- nginx/1.18.0
343343
x-amzn-Remapped-x-amzn-RequestId:
344-
- cff6cbcd-453c-4c5d-9a9e-3e42cc81b334
344+
- 85285b9c-a4ee-4c3f-bd20-47bbbb380c3d
345345
x-amzn-RequestId:
346-
- 18b1e46e-8db3-4c03-9972-45b7f7dd1760
346+
- 4fc57316-25af-4a8c-8db8-bacf1caa8d8e
347347
status:
348348
code: 201
349349
message: Created
@@ -368,7 +368,7 @@ interactions:
368368
X-Cuenca-Api-Version:
369369
- '2020-03-19'
370370
X-Cuenca-LoginId:
371-
- ULPahEA1lCRGuz3iHP7k3l7A
371+
- ULA6spyKFqQLm6TGQfnOiSiQ
372372
method: POST
373373
uri: https://sandbox.cuenca.com/card_activations
374374
response:
@@ -382,23 +382,23 @@ interactions:
382382
Content-Type:
383383
- application/json
384384
Date:
385-
- Wed, 24 Mar 2021 18:53:36 GMT
385+
- Fri, 26 Mar 2021 19:16:58 GMT
386386
X-Amzn-Trace-Id:
387-
- Root=1-605b8ab0-676c80013405e58030958dee;Sampled=0
387+
- Root=1-605e332a-50c732541aa26a2e79d92d2e;Sampled=0
388388
x-amz-apigw-id:
389-
- ctKbmGfJiYcFhqA=
389+
- czzuoF-diYcFeiA=
390390
x-amzn-Remapped-Connection:
391391
- keep-alive
392392
x-amzn-Remapped-Content-Length:
393393
- '40'
394394
x-amzn-Remapped-Date:
395-
- Wed, 24 Mar 2021 18:53:36 GMT
395+
- Fri, 26 Mar 2021 19:16:58 GMT
396396
x-amzn-Remapped-Server:
397397
- nginx/1.18.0
398398
x-amzn-Remapped-x-amzn-RequestId:
399-
- b5a22032-dbac-4ece-9adf-bb34ad3af066
399+
- 696c7c21-09b8-4e62-9a6e-327d085b5125
400400
x-amzn-RequestId:
401-
- 8d482026-cce0-4c12-badd-40407bf337b5
401+
- 5f8e4660-3073-4691-b052-1cf636037edd
402402
status:
403403
code: 403
404404
message: Forbidden

0 commit comments

Comments
 (0)