Skip to content

Commit 7d05b74

Browse files
test(postman): update postman collection files
1 parent cb88be0 commit 7d05b74

File tree

2 files changed

+485
-24
lines changed

2 files changed

+485
-24
lines changed

postman/collection-json/checkout.postman_collection.json

Lines changed: 85 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3802,9 +3802,9 @@
38023802
"// Response body should have value \"succeeded\" for \"status\"",
38033803
"if (jsonData?.status) {",
38043804
" pm.test(",
3805-
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'succeeded'\",",
3805+
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'partially_captured'\",",
38063806
" function () {",
3807-
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
3807+
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
38083808
" },",
38093809
" );",
38103810
"}",
@@ -3839,7 +3839,7 @@
38393839
" pm.test(",
38403840
" \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
38413841
" function () {",
3842-
" pm.expect(jsonData.amount_capturable).to.eql(6540);",
3842+
" pm.expect(jsonData.amount_capturable).to.eql(540);",
38433843
" },",
38443844
" );",
38453845
"}",
@@ -3964,9 +3964,9 @@
39643964
"// Response body should have value \"Succeeded\" for \"status\"",
39653965
"if (jsonData?.status) {",
39663966
" pm.test(",
3967-
" \"[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'\",",
3967+
" \"[POST]::/payments/:id - Content check if value for 'status' matches 'partially_captured'\",",
39683968
" function () {",
3969-
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
3969+
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
39703970
" },",
39713971
" );",
39723972
"}",
@@ -5929,9 +5929,9 @@
59295929
"// Response body should have value \"succeeded\" for \"status\"",
59305930
"if (jsonData?.status) {",
59315931
" pm.test(",
5932-
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'succeeded'\",",
5932+
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'partially_captured'\",",
59335933
" function () {",
5934-
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
5934+
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
59355935
" },",
59365936
" );",
59375937
"}",
@@ -6091,9 +6091,9 @@
60916091
"// Response body should have value \"succeeded\" for \"status\"",
60926092
"if (jsonData?.status) {",
60936093
" pm.test(",
6094-
" \"[POST]::/payments - Content check if value for 'status' matches 'succeeded'\",",
6094+
" \"[POST]::/payments - Content check if value for 'status' matches 'partially_captured'\",",
60956095
" function () {",
6096-
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
6096+
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
60976097
" },",
60986098
" );",
60996099
"}",
@@ -6883,9 +6883,9 @@
68836883
"// Response body should have value \"succeeded\" for \"status\"",
68846884
"if (jsonData?.status) {",
68856885
" pm.test(",
6886-
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'succeeded'\",",
6886+
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'partially_captured'\",",
68876887
" function () {",
6888-
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
6888+
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
68896889
" },",
68906890
" );",
68916891
"}",
@@ -7045,9 +7045,9 @@
70457045
"// Response body should have value \"succeeded\" for \"status\"",
70467046
"if (jsonData?.status) {",
70477047
" pm.test(",
7048-
" \"[POST]::/payments - Content check if value for 'status' matches 'succeeded'\",",
7048+
" \"[POST]::/payments - Content check if value for 'status' matches 'partially_captured'\",",
70497049
" function () {",
7050-
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
7050+
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
70517051
" },",
70527052
" );",
70537053
"}",
@@ -9061,6 +9061,16 @@
90619061
" },",
90629062
" );",
90639063
"}",
9064+
"",
9065+
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
9066+
"if (jsonData?.status) {",
9067+
" pm.test(",
9068+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'partially_captured_and_capturable'\",",
9069+
" function () {",
9070+
" pm.expect(jsonData.status).to.eql(\"partially_captured_and_capturable\");",
9071+
" },",
9072+
" );",
9073+
"}",
90649074
""
90659075
],
90669076
"type": "text/javascript"
@@ -9195,6 +9205,16 @@
91959205
" },",
91969206
" );",
91979207
"}",
9208+
"",
9209+
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
9210+
"if (jsonData?.status) {",
9211+
" pm.test(",
9212+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'partially_captured_and_capturable'\",",
9213+
" function () {",
9214+
" pm.expect(jsonData.status).to.eql(\"partially_captured_and_capturable\");",
9215+
" },",
9216+
" );",
9217+
"}",
91989218
""
91999219
],
92009220
"type": "text/javascript"
@@ -9329,6 +9349,16 @@
93299349
" },",
93309350
" );",
93319351
"}",
9352+
"",
9353+
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
9354+
"if (jsonData?.status) {",
9355+
" pm.test(",
9356+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'succeeded'\",",
9357+
" function () {",
9358+
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
9359+
" },",
9360+
" );",
9361+
"}",
93329362
""
93339363
],
93349364
"type": "text/javascript"
@@ -9916,6 +9946,16 @@
99169946
" \"INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.\",",
99179947
" );",
99189948
"}",
9949+
"",
9950+
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
9951+
"if (jsonData?.status) {",
9952+
" pm.test(",
9953+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'requires_capture'\",",
9954+
" function () {",
9955+
" pm.expect(jsonData.status).to.eql(\"requires_capture\");",
9956+
" },",
9957+
" );",
9958+
"}",
99199959
""
99209960
],
99219961
"type": "text/javascript"
@@ -10042,7 +10082,16 @@
1004210082
" },",
1004310083
" );",
1004410084
"}",
10045-
""
10085+
"",
10086+
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
10087+
"if (jsonData?.status) {",
10088+
" pm.test(",
10089+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'partially_captured_and_capturable'\",",
10090+
" function () {",
10091+
" pm.expect(jsonData.status).to.eql(\"partially_captured_and_capturable\");",
10092+
" },",
10093+
" );",
10094+
"}"
1004610095
],
1004710096
"type": "text/javascript"
1004810097
}
@@ -10142,6 +10191,16 @@
1014210191
" \"INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.\",",
1014310192
" );",
1014410193
"}",
10194+
"",
10195+
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
10196+
"if (jsonData?.status) {",
10197+
" pm.test(",
10198+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'partially_captured_and_capturable'\",",
10199+
" function () {",
10200+
" pm.expect(jsonData.status).to.eql(\"partially_captured_and_capturable\");",
10201+
" },",
10202+
" );",
10203+
"}",
1014510204
""
1014610205
],
1014710206
"type": "text/javascript"
@@ -10503,6 +10562,16 @@
1050310562
" );",
1050410563
"}",
1050510564
"",
10565+
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
10566+
"if (jsonData?.status) {",
10567+
" pm.test(",
10568+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'partially_captured_and_capturable'\",",
10569+
" function () {",
10570+
" pm.expect(jsonData.status).to.eql(\"partially_captured_and_capturable\");",
10571+
" },",
10572+
" );",
10573+
"}",
10574+
"",
1050610575
"// Response body should have value \"connector error\" for \"error type\"",
1050710576
"if (jsonData?.error?.type) {",
1050810577
" pm.test(",
@@ -10632,9 +10701,9 @@
1063210701
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
1063310702
"if (jsonData?.status) {",
1063410703
" pm.test(",
10635-
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'succeeded'\",",
10704+
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'partially_captured'\",",
1063610705
" function () {",
10637-
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
10706+
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
1063810707
" },",
1063910708
" );",
1064010709
"}",

0 commit comments

Comments
 (0)