# PurchaseFlowParams.Builder

```
public final class PurchaseFlowParams.Builder extends Object
```

```
java.lang.Object
    ↳ com.gaa.sdk.iap.PurchaseFlowParams.Builder
```

[PurchaseFlowParams](purchaseflowparams)의 인스턴스를 쉽게 만들기 위한 빌더입니다.

## Public methods <a href="#id-c-purchaseflowparams.builder-publicmethods" id="id-c-purchaseflowparams.builder-publicmethods"></a>

***

### setProductId <a href="#id-c-purchaseflowparams.builder-setproductid" id="id-c-purchaseflowparams.builder-setproductid"></a>

```
PurchaseFlowParams.Builder setProductId(String productId)
```

| **Parameters:**            |             |
| -------------------------- | ----------- |
| productId                  | 인앱 상품의 아이디  |
| **Returns:**               |             |
| PurchaseFlowParams.Builder | <p><br></p> |

### setProductType <a href="#id-c-purchaseflowparams.builder-setproducttype" id="id-c-purchaseflowparams.builder-setproducttype"></a>

```
PurchaseFlowParams.Builder setProductType(String productType)
```

| **Parameters:**            |                                                                                                              |
| -------------------------- | ------------------------------------------------------------------------------------------------------------ |
| productType                | <p>인앱 상품의 상품 타입</p><p><a href="../annotations/purchaseclient.producttype">PurchaseClient.ProductType</a></p> |
| **Returns:**               |                                                                                                              |
| PurchaseFlowParams.Builder | <p><br></p>                                                                                                  |

### setProductName <a href="#id-c-purchaseflowparams.builder-setproductname" id="id-c-purchaseflowparams.builder-setproductname"></a>

```
PurchaseFlowParams.Builder setProductType(String productName)
```

| **Parameters:**            |                                 |
| -------------------------- | ------------------------------- |
| productName                | 등록된 상품의 이름이 아닌구매 당시의 노출될 상품의 이름 |
| **Returns:**               |                                 |
| PurchaseFlowParams.Builder | <p><br></p>                     |

### setDeveloperPayload <a href="#id-c-purchaseflowparams.builder-setdeveloperpayload" id="id-c-purchaseflowparams.builder-setdeveloperpayload"></a>

```
PurchaseFlowParams.Builder setDeveloperPayload(String developerPayload)
```

| **Parameters:**            |             |
| -------------------------- | ----------- |
| developerPayload           | 개발사의 페이로드   |
| **Returns:**               |             |
| PurchaseFlowParams.Builder | <p><br></p> |

### setGameUserId <a href="#id-c-purchaseflowparams.builder-setgameuserid" id="id-c-purchaseflowparams.builder-setgameuserid"></a>

```
PurchaseFlowParams.Builder setGameUserId(String gameUserId)
```

| **Parameters:**            |                                  |
| -------------------------- | -------------------------------- |
| gameUserId                 | <p>개발사에서 확인 가능한 사용자의 아이디<br></p> |
| **Returns:**               |                                  |
| PurchaseFlowParams.Builder | <p><br></p>                      |

### setPromotionApplicable <a href="#id-c-purchaseflowparams.builder-setpromotionapplicable" id="id-c-purchaseflowparams.builder-setpromotionapplicable"></a>

```
PurchaseFlowParams.Builder setPromotionApplicable(boolean promotion)
```

| **Parameters:**            |                       |
| -------------------------- | --------------------- |
| promotion                  | <p>프로모션 가능 여부<br></p> |
| **Returns:**               |                       |
| PurchaseFlowParams.Builder | <p><br></p>           |

### setQuantity <a href="#id-c-purchaseflowparams.builder-setquantity" id="id-c-purchaseflowparams.builder-setquantity"></a>

```
PurchaseFlowParams.Builder setQuantity(int quantity)
```

| **Parameters:**            |             |
| -------------------------- | ----------- |
| quantity                   | 삼품의 수량      |
| **Returns:**               |             |
| PurchaseFlowParams.Builder | <p><br></p> |

### setSubscriptionUpdateParams <a href="#id-c-purchaseflowparams.builder-setsubscriptionupdateparams" id="id-c-purchaseflowparams.builder-setsubscriptionupdateparams"></a>

```
PurchaseFlowParams.Builder setSubscriptionUpdateParams(SubscriptionUpdateParams params)
```

| **Parameters:**            |                                                                                               |
| -------------------------- | --------------------------------------------------------------------------------------------- |
| params                     | <p>정기 결제 상품의 업그레이드 또는 다운그레이드를 위한 모드<br></p><p>PurchaseFlowParams.SubscriptionUpdateParams</p> |
| **Returns:**               |                                                                                               |
| PurchaseFlowParams.Builder | <p><br></p>                                                                                   |

### build <a href="#id-c-purchaseflowparams.builder-build" id="id-c-purchaseflowparams.builder-build"></a>

```
 [C]PurchaseFlowParams build()
```

PurchaseFlowParams의 인스턴스를 생성합니다.

| **Returns:**                             |             |
| ---------------------------------------- | ----------- |
| [PurchaseFlowParams](purchaseflowparams) | <p><br></p> |
