Skip to content

Commit

Permalink
test(postman): update postman collection files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 22, 2023
1 parent 160acc8 commit b96052f
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 217 deletions.
4 changes: 2 additions & 2 deletions postman/collection-json/adyen_uk.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -6634,7 +6634,7 @@
"language": "json"
}
},
"raw": "{\"amount\":6570,\"currency\":\"USD\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://duck.com\",\"mandate_id\":\"{{mandate_id}}\",\"off_session\":true,\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"PiX\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"}}"
"raw": "{\"amount\":6570,\"currency\":\"USD\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6570,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://duck.com\",\"mandate_id\":\"{{mandate_id}}\",\"off_session\":true,\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"PiX\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"}}"
},
"url": {
"raw": "{{baseUrl}}/payments",
Expand Down Expand Up @@ -13918,7 +13918,7 @@
"language": "json"
}
},
"raw": "{\"amount\":8040,\"currency\":\"USD\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://duck.com\",\"mandate_id\":\"{{mandate_id}}\",\"off_session\":true,\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"PiX\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"PiX\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"}}"
"raw": "{\"amount\":8040,\"currency\":\"USD\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":8040,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://duck.com\",\"mandate_id\":\"{{mandate_id}}\",\"off_session\":true,\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"PiX\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"PiX\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"}}"
},
"url": {
"raw": "{{baseUrl}}/payments",
Expand Down
32 changes: 16 additions & 16 deletions postman/collection-json/bluesnap.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -3166,22 +3166,22 @@
" );",
"}",
"",
"// Response body should have value \"6000\" for \"amount_received\"",
"// Response body should have value \"6540\" for \"amount_received\"",
"if (jsonData?.amount_received) {",
" pm.test(",
" \"[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6000'\",",
" \"[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6540'\",",
" function () {",
" pm.expect(jsonData.amount_received).to.eql(6000);",
" pm.expect(jsonData.amount_received).to.eql(6540);",
" },",
" );",
"}",
"",
"// Response body should have value \"6540\" for \"amount_capturable\"",
"// Response body should have value \"0\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
" \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
" \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'\",",
" function () {",
" pm.expect(jsonData.amount_capturable).to.eql(6540);",
" pm.expect(jsonData.amount_capturable).to.eql(0);",
" },",
" );",
"}",
Expand Down Expand Up @@ -3210,7 +3210,7 @@
"language": "json"
}
},
"raw": "{\"amount_to_capture\":6000,\"statement_descriptor_name\":\"Joseph\",\"statement_descriptor_suffix\":\"JS\"}"
"raw": "{\"amount_to_capture\":6540,\"statement_descriptor_name\":\"Joseph\",\"statement_descriptor_suffix\":\"JS\"}"
},
"url": {
"raw": "{{baseUrl}}/payments/:id/capture",
Expand Down Expand Up @@ -3328,20 +3328,20 @@
" );",
"}",
"",
"// Response body should have value \"6000\" for \"amount_received\"",
"// Response body should have value \"6540\" for \"amount_received\"",
"if (jsonData?.amount_received) {",
" pm.test(",
" \"[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6000'\",",
" \"[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6540'\",",
" function () {",
" pm.expect(jsonData.amount_received).to.eql(6000);",
" pm.expect(jsonData.amount_received).to.eql(6540);",
" },",
" );",
"}",
"",
"// Response body should have value \"6540\" for \"amount_capturable\"",
"// Response body should have value \"0\" for \"amount_capturable\"",
"if (jsonData?.amount) {",
" pm.test(",
" \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
" \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'\",",
" function () {",
" pm.expect(jsonData.amount_capturable).to.eql(0);",
" },",
Expand Down Expand Up @@ -6596,9 +6596,9 @@
"// Response body should have value \"succeeded\" for \"status\"",
"if (jsonData?.status) {",
" pm.test(",
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'succeeded'\",",
" \"[POST]:://payments/:id/capture - Content check if value for 'status' matches 'partially_captured'\",",
" function () {",
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
" },",
" );",
"}",
Expand Down Expand Up @@ -6743,9 +6743,9 @@
"// Response body should have value \"succeeded\" for \"status\"",
"if (jsonData?.status) {",
" pm.test(",
" \"[POST]::/payments - Content check if value for 'status' matches 'succeeded'\",",
" \"[POST]::/payments - Content check if value for 'status' matches 'partially_captured'\",",
" function () {",
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
" pm.expect(jsonData.status).to.eql(\"partially_captured\");",
" },",
" );",
"}",
Expand Down
Loading

0 comments on commit b96052f

Please sign in to comment.