|
3802 | 3802 | "// Response body should have value \"succeeded\" for \"status\"",
|
3803 | 3803 | "if (jsonData?.status) {",
|
3804 | 3804 | " 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'\",", |
3806 | 3806 | " function () {",
|
3807 |
| - " pm.expect(jsonData.status).to.eql(\"succeeded\");", |
| 3807 | + " pm.expect(jsonData.status).to.eql(\"partially_captured\");", |
3808 | 3808 | " },",
|
3809 | 3809 | " );",
|
3810 | 3810 | "}",
|
|
3839 | 3839 | " pm.test(",
|
3840 | 3840 | " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
|
3841 | 3841 | " function () {",
|
3842 |
| - " pm.expect(jsonData.amount_capturable).to.eql(6540);", |
| 3842 | + " pm.expect(jsonData.amount_capturable).to.eql(540);", |
3843 | 3843 | " },",
|
3844 | 3844 | " );",
|
3845 | 3845 | "}",
|
|
3964 | 3964 | "// Response body should have value \"Succeeded\" for \"status\"",
|
3965 | 3965 | "if (jsonData?.status) {",
|
3966 | 3966 | " 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'\",", |
3968 | 3968 | " function () {",
|
3969 |
| - " pm.expect(jsonData.status).to.eql(\"succeeded\");", |
| 3969 | + " pm.expect(jsonData.status).to.eql(\"partially_captured\");", |
3970 | 3970 | " },",
|
3971 | 3971 | " );",
|
3972 | 3972 | "}",
|
|
5929 | 5929 | "// Response body should have value \"succeeded\" for \"status\"",
|
5930 | 5930 | "if (jsonData?.status) {",
|
5931 | 5931 | " 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'\",", |
5933 | 5933 | " function () {",
|
5934 |
| - " pm.expect(jsonData.status).to.eql(\"succeeded\");", |
| 5934 | + " pm.expect(jsonData.status).to.eql(\"partially_captured\");", |
5935 | 5935 | " },",
|
5936 | 5936 | " );",
|
5937 | 5937 | "}",
|
|
6091 | 6091 | "// Response body should have value \"succeeded\" for \"status\"",
|
6092 | 6092 | "if (jsonData?.status) {",
|
6093 | 6093 | " 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'\",", |
6095 | 6095 | " function () {",
|
6096 |
| - " pm.expect(jsonData.status).to.eql(\"succeeded\");", |
| 6096 | + " pm.expect(jsonData.status).to.eql(\"partially_captured\");", |
6097 | 6097 | " },",
|
6098 | 6098 | " );",
|
6099 | 6099 | "}",
|
|
6883 | 6883 | "// Response body should have value \"succeeded\" for \"status\"",
|
6884 | 6884 | "if (jsonData?.status) {",
|
6885 | 6885 | " 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'\",", |
6887 | 6887 | " function () {",
|
6888 |
| - " pm.expect(jsonData.status).to.eql(\"succeeded\");", |
| 6888 | + " pm.expect(jsonData.status).to.eql(\"partially_captured\");", |
6889 | 6889 | " },",
|
6890 | 6890 | " );",
|
6891 | 6891 | "}",
|
|
7045 | 7045 | "// Response body should have value \"succeeded\" for \"status\"",
|
7046 | 7046 | "if (jsonData?.status) {",
|
7047 | 7047 | " 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'\",", |
7049 | 7049 | " function () {",
|
7050 |
| - " pm.expect(jsonData.status).to.eql(\"succeeded\");", |
| 7050 | + " pm.expect(jsonData.status).to.eql(\"partially_captured\");", |
7051 | 7051 | " },",
|
7052 | 7052 | " );",
|
7053 | 7053 | "}",
|
|
9061 | 9061 | " },",
|
9062 | 9062 | " );",
|
9063 | 9063 | "}",
|
| 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 | + "}", |
9064 | 9074 | ""
|
9065 | 9075 | ],
|
9066 | 9076 | "type": "text/javascript"
|
|
9195 | 9205 | " },",
|
9196 | 9206 | " );",
|
9197 | 9207 | "}",
|
| 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 | + "}", |
9198 | 9218 | ""
|
9199 | 9219 | ],
|
9200 | 9220 | "type": "text/javascript"
|
|
9329 | 9349 | " },",
|
9330 | 9350 | " );",
|
9331 | 9351 | "}",
|
| 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 | + "}", |
9332 | 9362 | ""
|
9333 | 9363 | ],
|
9334 | 9364 | "type": "text/javascript"
|
|
9916 | 9946 | " \"INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.\",",
|
9917 | 9947 | " );",
|
9918 | 9948 | "}",
|
| 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 | + "}", |
9919 | 9959 | ""
|
9920 | 9960 | ],
|
9921 | 9961 | "type": "text/javascript"
|
|
10042 | 10082 | " },",
|
10043 | 10083 | " );",
|
10044 | 10084 | "}",
|
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 | + "}" |
10046 | 10095 | ],
|
10047 | 10096 | "type": "text/javascript"
|
10048 | 10097 | }
|
|
10142 | 10191 | " \"INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.\",",
|
10143 | 10192 | " );",
|
10144 | 10193 | "}",
|
| 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 | + "}", |
10145 | 10204 | ""
|
10146 | 10205 | ],
|
10147 | 10206 | "type": "text/javascript"
|
|
10503 | 10562 | " );",
|
10504 | 10563 | "}",
|
10505 | 10564 | "",
|
| 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 | + "", |
10506 | 10575 | "// Response body should have value \"connector error\" for \"error type\"",
|
10507 | 10576 | "if (jsonData?.error?.type) {",
|
10508 | 10577 | " pm.test(",
|
|
10632 | 10701 | "// Response body should have value \"cancellation succeeded\" for \"payment status\"",
|
10633 | 10702 | "if (jsonData?.status) {",
|
10634 | 10703 | " 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'\",", |
10636 | 10705 | " function () {",
|
10637 |
| - " pm.expect(jsonData.status).to.eql(\"succeeded\");", |
| 10706 | + " pm.expect(jsonData.status).to.eql(\"partially_captured\");", |
10638 | 10707 | " },",
|
10639 | 10708 | " );",
|
10640 | 10709 | "}",
|
|
0 commit comments