# IapResult

```
public final class IapResult extends Object
```

```
java.lang.Object
    ↳ com.gaa.sdk.iap.IapResult
```

In-app Purchase API 응답의 코드 및 메시지가 포함된 객체 입니다.

## Summary <a href="#id-c-iapresult-summary" id="id-c-iapresult-summary"></a>

***

| **Nested classes** |                                                                                                      |
| ------------------ | ---------------------------------------------------------------------------------------------------- |
| class              | <p><a href="iapresult.builder">\[C]IapResult.Builder</a></p><p>IapResult의 인스턴스를 쉽게 만들기 위한 빌더입니다.</p> |

## Public methods <a href="#id-c-iapresult-publicmethods" id="id-c-iapresult-publicmethods"></a>

***

### getResponseCode <a href="#id-c-iapresult-getresponsecode" id="id-c-iapresult-getresponsecode"></a>

```
int getResponseCode()
```

In-app Purchase API 응답 코드를 반환합니다.

| **Returns:** |                                                                                                                                                         |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| int          | [\[A\]PurchaseClient.ResponseCode](https://onestore-dev.gitbook.io/dev/tools/billing/v21/references/annotations/purchaseclient.responsecode)에 해당되는 결과 값 |

### getMessage <a href="#id-c-iapresult-getmessage" id="id-c-iapresult-getmessage"></a>

```
String getMessage()
```

In-app Purchase API 응답 메시지를 반환합니다.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### isSuccess <a href="#id-c-iapresult-issuccess" id="id-c-iapresult-issuccess"></a>

```
boolean isSuccess()
```

In-app Purchase API 응답 코드가 성공(PurchaseClient.ResponseCode.RESULT\_OK) 인지를 나타냅니다.

| **Returns:** |             |
| ------------ | ----------- |
| boolean      | <p><br></p> |

### isFailure <a href="#id-c-iapresult-isfailure" id="id-c-iapresult-isfailure"></a>

```
boolean isFailure()
```

In-app Purchase API 응답 코드가 실패 인지를 나타냅니다.

| **Returns:** |             |
| ------------ | ----------- |
| boolean      | <p><br></p> |

### newBuilder <a href="#id-c-iapresult-newbuilder" id="id-c-iapresult-newbuilder"></a>

```
[C]IapResult.Builder newBuilder()
```

IapResult의 인스턴스를 만들기 위한 빌더를 생성합니다.

| **Returns:**                                                                                                         |             |
| -------------------------------------------------------------------------------------------------------------------- | ----------- |
| [\[C\]IapResult.Builder](https://onestore-dev.gitbook.io/dev/tools/billing/v21/references/classes/iapresult.builder) | <p><br></p> |

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/tools/billing/v21/references/classes/iapresult.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
