Skip to main content

PurchaseResponse

ZEPETO.Product.PurchaseResponse

The ProductResponse class provides the API call result and the purchase information.

Hierarchy

Constructors

constructor

new PurchaseResponse()

Overrides

ProductBaseResponse.constructor

Properties

isSuccess

isSuccess: boolean

Represents the success status of the request. Set to true upon successful completion.

Inherited from

ProductBaseResponse.isSuccess


message

message: string

Describes the result of the request.

Inherited from

ProductBaseResponse.message


price

price: number

Price of the purchased in-World product.


productId

productId: string

ID of the purchased in-World product.


purchasedAt

purchasedAt: Date

Date and time when the in-World product was purchased.


receiptId

receiptId: string

Receipt ID for the purchase.


userId

userId: string

User ID of the player performed the purchase.

Accessors

ErrorCode

get ErrorCode(): ProductError

Retrieves the error code for a failed product request.

Returns

ProductError

Inherited from

ProductBaseResponse.ErrorCode