Skip to content

Commit

Permalink
Merge 0d3e1b6 into e061639
Browse files Browse the repository at this point in the history
  • Loading branch information
ashraf-km committed Dec 17, 2020
2 parents e061639 + 0d3e1b6 commit b826523
Show file tree
Hide file tree
Showing 35 changed files with 772 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/mocks/cancel_payment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"resultInfo": {
"code": "fake_code",
"message": "string",
"codeId": "fake_codeId"
}
}
7 changes: 7 additions & 0 deletions tests/mocks/cancel_request_order_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
}
}
10 changes: 10 additions & 0 deletions tests/mocks/capture_payment_payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"merchantPaymentId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"merchantCaptureId": "string",
"requestedAt": 0,
"orderDescription": "string"
}
26 changes: 26 additions & 0 deletions tests/mocks/capture_payment_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
},
"data": {
"paymentId": "string",
"status": "COMPLETED",
"acceptedAt": 0,
"refunds": {},
"captures": {},
"merchantPaymentId": "string",
"userAuthorizationId": "string",
"amount": {},
"requestedAt": 0,
"expiresAt": null,
"storeId": "string",
"terminalId": "string",
"orderReceiptNumber": "string",
"orderDescription": "string",
"orderItems": [],
"metadata": {},
"assumeMerchant": "string"
}
}
26 changes: 26 additions & 0 deletions tests/mocks/create_continues_payment_payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"merchantPaymentId": "fake_merchantPaymentId",
"userAuthorizationId": "fake_userAuthorizationId",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"storeId": "string",
"terminalId": "string",
"orderReceiptNumber": "string",
"orderDescription": "string",
"orderItems": [
{
"name": "string",
"category": "string",
"quantity": 1,
"productId": "string",
"unitPrice": {
"amount": 0,
"currency": "JPY"
}
}
],
"metadata": {}
}
49 changes: 49 additions & 0 deletions tests/mocks/create_continues_payment_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
},
"data": {
"paymentId": "string",
"status": "CREATED",
"acceptedAt": 0,
"refunds": {
"data": [
{
"status": "CREATED",
"acceptedAt": 0,
"merchantRefundId": "string",
"paymentId": "string",
"amount": {},
"requestedAt": 0,
"reason": "string"
}
]
},
"merchantPaymentId": "string",
"userAuthorizationId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"storeId": "string",
"terminalId": "string",
"orderReceiptNumber": "string",
"orderDescription": "string",
"orderItems": [
{
"name": "string",
"category": "string",
"quantity": 1,
"productId": "string",
"unitPrice": {
"amount": 0,
"currency": "JPY"
}
}
],
"metadata": {}
}
}
27 changes: 27 additions & 0 deletions tests/mocks/create_payment_payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"merchantPaymentId": "string",
"userAuthorizationId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"storeId": "string",
"terminalId": "string",
"orderReceiptNumber": "string",
"orderDescription": "string",
"orderItems": [
{
"name": "string",
"category": "string",
"quantity": 1,
"productId": "string",
"unitPrice": {
"amount": 0,
"currency": "JPY"
}
}
],
"metadata": {},
"productType": "VIRTUAL_BONUS_INVESTMENT"
}
49 changes: 49 additions & 0 deletions tests/mocks/create_payment_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
},
"data": {
"paymentId": "string",
"status": "CREATED",
"acceptedAt": 0,
"refunds": {
"data": [
{
"status": "CREATED",
"acceptedAt": 0,
"merchantRefundId": "string",
"paymentId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"reason": "string"
}
]
},
"merchantPaymentId": "string",
"userAuthorizationId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"storeId": "string",
"terminalId": "string",
"orderReceiptNumber": "string",
"orderDescription": "string",
"orderItems": [
{
"name": "string",
"category": "string",
"quantity": 1,
"productId": "string",
"unitPrice": {}
}
],
"metadata": {}
}
}
7 changes: 7 additions & 0 deletions tests/mocks/delete_qrcode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"resultInfo": {
"code": "test_code",
"message": "test message",
"codeId": "test_id"
}
}
27 changes: 27 additions & 0 deletions tests/mocks/get_payment_details.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"resultInfo": {
"code": "fake_code",
"message": "string",
"codeId": "fake_codeId"
},
"data": {
"paymentId": "string",
"status": "CREATED",
"acceptedAt": 0,
"refunds": {},
"captures": {},
"revert": {},
"merchantPaymentId": "cb31bcc0-3b6c-46e0-9002-e5c4bb1e3d5f",
"userAuthorizationId": "string",
"amount": {},
"requestedAt": 0,
"expiresAt": null,
"canceledAt": null,
"storeId": "string",
"terminalId": "string",
"orderReceiptNumber": "string",
"orderDescription": "string",
"orderItems": [],
"metadata": {}
}
}
53 changes: 53 additions & 0 deletions tests/mocks/get_request_order_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
},
"data": {
"paymentId": "string",
"status": "CREATED",
"acceptedAt": 0,
"refunds": {
"data": [
{
"status": "CREATED",
"acceptedAt": 0,
"merchantRefundId": "string",
"paymentId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"reason": "string"
}
]
},
"merchantPaymentId": "string",
"userAuthorizationId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"expiryDate": null,
"storeId": "string",
"terminalId": "string",
"orderReceiptNumber": "string",
"orderDescription": "string",
"orderItems": [
{
"name": "string",
"category": "string",
"quantity": 1,
"productId": "string",
"unitPrice": {
"amount": 0,
"currency": "JPY"
}
}
],
"metadata": {}
}
}
17 changes: 17 additions & 0 deletions tests/mocks/refund_details.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
},
"data": {
"status": "CREATED",
"acceptedAt": 0,
"merchantRefundId": "fake_merchant_refundId",
"paymentId": "string",
"amount": {},
"requestedAt": 0,
"reason": "string",
"assumeMerchant": "string"
}
}
10 changes: 10 additions & 0 deletions tests/mocks/refund_payment_payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"merchantRefundId": "fakeId",
"paymentId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"reason": "string"
}
17 changes: 17 additions & 0 deletions tests/mocks/refund_payment_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
},
"data": {
"status": "CREATED",
"acceptedAt": 0,
"merchantRefundId": "string",
"paymentId": "string",
"amount": {},
"requestedAt": 0,
"reason": "string",
"assumeMerchant": "string"
}
}
11 changes: 11 additions & 0 deletions tests/mocks/refund_request_order_payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"merchantRefundId": "fake_merchantRefundId",
"merchantPaymentId": "fake_merchantPaymentId",
"paymentId": "fake_paymentId",
"amount": {
"amount": 1,
"currency": "JPY"
},
"requestedAt": 0,
"reason": "string"
}
19 changes: 19 additions & 0 deletions tests/mocks/refund_request_order_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"resultInfo": {
"code": "string",
"message": "string",
"codeId": "string"
},
"data": {
"status": "CREATED",
"acceptedAt": 0,
"merchantRefundId": "string",
"paymentId": "string",
"amount": {
"amount": 0,
"currency": "JPY"
},
"requestedAt": 0,
"reason": "string"
}
}

0 comments on commit b826523

Please sign in to comment.