Skip to content

Commit

Permalink
corrected read me document
Browse files Browse the repository at this point in the history
  • Loading branch information
javidlulu committed Aug 20, 2020
1 parent 3840b8e commit 378473f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 13 deletions.
25 changes: 13 additions & 12 deletions README.md
Expand Up @@ -59,18 +59,19 @@ You need to setup your key and secret using the following:
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*PaymentApi* | [**createAccountLinkQRCode**](docs/PaymentApi.md#createAccountLinkQRCode) | **POST** /v1/qr/sessions | Create an ACCOUNT LINK QR and display it to the user
*PaymentApi* | [**cancelPayment**](docs/PaymentApi.md#cancelPayment) | **DELETE** /v1/payments/{merchantPaymentId} | Cancel a payment
*PaymentApi* | [**capturePaymentAuth**](docs/PaymentApi.md#capturePaymentAuth) | **POST** /v1/payments/capture | Capture a payment authorization
*PaymentApi* | [**createPayment**](docs/PaymentApi.md#createPayment) | **POST** /v1/payments | Create a payment
*PaymentApi* | [**createQRCode**](docs/PaymentApi.md#createQRCode) | **POST** /v1/codes | Create a Code
*PaymentApi* | [**deleteQRCode**](docs/PaymentApi.md#deleteQRCode) | **DELETE** /v1/codes/{codeId} | Delete a Code
*PaymentApi* | [**getPaymentDetails**](docs/PaymentApi.md#getPaymentDetails) | **GET** /v1/payments/{merchantPaymentId} | Get payment details
*PaymentApi* | [**getRefundDetails**](docs/PaymentApi.md#getRefundDetails) | **GET** /v1/refunds/{merchantRefundId} | Get refund details
*PaymentApi* | [**refundPayment**](docs/PaymentApi.md#refundPayment) | **POST** /v1/refunds | Refund a payment
*WalletApi* | [**checkWalletBalance**](docs/WalletApi.md#checkWalletBalance) | **GET** /v1/wallet/check_balance | Check user wallet balance
*UserApi* | [**getMaskedUserProfile**](docs/UserApi.md#getMaskedUserProfile) | **GET** /v1/user/profile/secure?userAuthorizationId={userAuthorizationId} | Get masked user profile
*UserApi* | [**getUserAuthorizationStatus**](docs/UserApi.md#getUserAuthorizationStatus) | **GET** /v1/user/authorizations?userAuthorizationId={userAuthorizationId} | Get user authorization status
*UserApi* | [**unlinkUser**](docs/UserApi.md#unlinkUser) | **DELETE** /v1/user/authorizations/{userAuthorizationId} | Unlink user
*PaymentApi* | [**cancelPayment**](docs/PaymentApi.md#cancelPayment) | **DELETE** /v2/payments/{merchantPaymentId} | Cancel a payment
*PaymentApi* | [**capturePaymentAuth**](docs/PaymentApi.md#capturePaymentAuth) | **POST** /v2/payments/capture | Capture a payment authorization
*PaymentApi* | [**createPayment**](docs/PaymentApi.md#createPayment) | **POST** /v2/payments | Create a payment
*PaymentApi* | [**createQRCode**](docs/PaymentApi.md#createQRCode) | **POST** /v2/codes | Create a Code
*PaymentApi* | [**deleteQRCode**](docs/PaymentApi.md#deleteQRCode) | **DELETE** /v2/codes/{codeId} | Delete a Code
*PaymentApi* | [**getPaymentDetails**](docs/PaymentApi.md#getPaymentDetails) | **GET** /v2/payments/{merchantPaymentId} | Get payment details
*PaymentApi* | [**getCodesPaymentDetails**](docs/PaymentApi.md#getCodesPaymentDetails) | **GET** /v2/codes/payments/{merchantPaymentId} | Get payment details for QR code
*PaymentApi* | [**getRefundDetails**](docs/PaymentApi.md#getRefundDetails) | **GET** /v2/refunds/{merchantRefundId} | Get refund details
*PaymentApi* | [**refundPayment**](docs/PaymentApi.md#refundPayment) | **POST** /v2/refunds | Refund a payment
*WalletApi* | [**checkWalletBalance**](docs/WalletApi.md#checkWalletBalance) | **GET** /v2/wallet/check_balance | Check user wallet balance
*UserApi* | [**getMaskedUserProfile**](docs/UserApi.md#getMaskedUserProfile) | **GET** /v2/user/profile/secure?userAuthorizationId={userAuthorizationId} | Get masked user profile
*UserApi* | [**getUserAuthorizationStatus**](docs/UserApi.md#getUserAuthorizationStatus) | **GET** /v2/user/authorizations?userAuthorizationId={userAuthorizationId} | Get user authorization status
*UserApi* | [**unlinkUser**](docs/UserApi.md#unlinkUser) | **DELETE** /v2/user/authorizations/{userAuthorizationId} | Unlink user

## Documentation for Models

Expand Down
36 changes: 35 additions & 1 deletion docs/PaymentApi.md
Expand Up @@ -8,7 +8,7 @@ Method | HTTP request | Description
[**createQRCode**](PaymentApi.md#createQRCode) | **POST** /v1/codes | Create a Code
[**deleteQRCode**](PaymentApi.md#deleteQRCode) | **DELETE** /v1/codes/{codeId} | Delete a Code
[**getPaymentDetails**](PaymentApi.md#getPaymentDetails) | **GET** /v1/payments/{merchantPaymentId} | Get payment details
[**getPaymentDetails_0**](PaymentApi.md#getPaymentDetails_0) | **GET** /v1/codes/payments/{merchantPaymentId} | Get payment details
[**getCodesPaymentDetails**](PaymentApi.md#getCodesPaymentDetails) | **GET** /v1/codes/payments/{merchantPaymentId} | Get payment details for QR code
[**getRefundDetails**](PaymentApi.md#getRefundDetails) | **GET** /v1/refunds/{merchantRefundId} | Get refund details
[**refundPayment**](PaymentApi.md#refundPayment) | **POST** /v1/refunds | Refund a payment
[**revertAuth**](PaymentApi.md#revertAuth) | **POST** /v1/payments/preauthorize/revert | Revert a payment authorization
Expand Down Expand Up @@ -260,6 +260,40 @@ try {
Please refer to the below document for more information :
https://www.paypay.ne.jp/opa/doc/v1.0/direct_debit#operation/getPaymentDetails
```
<a name="getCodesPaymentDetails"></a>
# **getCodesPaymentDetails**
> PaymentDetails getCodesPaymentDetails(merchantPaymentId)
Get payment details

Get payment details. **Timeout: 15s**

### Example
```java
// Import classes:
import jp.ne.paypay.ApiException;
import jp.ne.paypay.api.PaymentApi;



PaymentApi apiInstance = new PaymentApi(apiClient);

String merchantPaymentId = "MERCHANT_PAYMENT_ID"; // String

try {
PaymentDetails result = apiInstance.getCodesPaymentDetails(merchantPaymentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PaymentApi#getCodesPaymentDetails");
e.printStackTrace();
System.out.println(e.getResponseBody());
}
```

```
Please refer to the below document for more information :
https://www.paypay.ne.jp/opa/doc/v1.0/dynamicqrcode#operation/getPaymentDetails
```

<a name="getRefundDetails"></a>
# **getRefundDetails**
Expand Down

0 comments on commit 378473f

Please sign in to comment.