diff --git a/docs/gen/redoc.v1.html b/docs/gen/redoc.v1.html index 0ce1423..0cb524e 100644 --- a/docs/gen/redoc.v1.html +++ b/docs/gen/redoc.v1.html @@ -542,21 +542,17 @@ " class="sc-eVqvcJ sc-fszimp kIppRw drqpJr">
Customer IP address for fraud prevention and compliance
Region/country code using ISO-3166-1 alpha-2 code (e.g., 'US', 'CA', 'GB')
+Customer email for the purchase
Optional flag indicating if customer opted in to email marketing
-Optional extra in-game currency bonus
-Optional extra loyalty points bonus
-Optional extra loyalty credits bonus
Optional list of bonus items to be granted with the purchase
{- "playerId": "string",
- "transactionId": "string",
- "checkoutLinkId": "string",
- "environment": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
- "currency": "string",
- "tax": 0,
- "total": 0,
- "timeMillis": "string",
- "paymentMethodType": "PAYMENT_METHOD_TYPE_UNSPECIFIED",
- "items": [
- {
- "guid": "string",
- "productId": "string",
- "quantity": 0,
- "cents": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
], - "platform": "PURCHASE_PLATFORM_UNSPECIFIED",
- "browser": "string",
- "deviceId": "string",
- "source": "PURCHASE_SOURCE_UNSPECIFIED",
- "ipAddress": "string",
- "region": "string",
- "emailMarketingOptIn": true,
- "extraInGameCurrency": 0,
- "extraLoyaltyPoints": 0,
- "extraLoyaltyCredits": 0,
- "bonusItems": [
- {
- "id": "string",
- "quantity": 0
}
]
}{- "results": [
- {
- "guid": "string",
- "productId": "string"
}
]
}{- "playerId": "string",
- "transactionId": "string",
- "checkoutLinkId": "string",
- "environment": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
- "currency": "string",
- "tax": 0,
- "total": 0,
- "timeMillis": "string",
- "paymentMethodType": "PAYMENT_METHOD_TYPE_UNSPECIFIED",
- "items": [
- {
- "guid": "string",
- "productId": "string",
- "quantity": 0,
- "cents": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
], - "platform": "PURCHASE_PLATFORM_UNSPECIFIED",
- "browser": "string",
- "deviceId": "string",
- "source": "PURCHASE_SOURCE_UNSPECIFIED",
- "ipAddress": "string",
- "region": "string",
- "userEmail": "string",
- "emailMarketingOptIn": true,
- "bonusItems": [
- {
- "id": "string",
- "quantity": 0
}
]
}{- "results": [
- {
- "guid": "string",
- "productId": "string"
}
]
}Step 1: Registers a purchase intent with the game backend. The game backend is expected to reserve inventory for the purchase. IMPORTANT: Always expects HTTP 200 OK response with inline error codes in the body.
Request to register a purchase intent with the game backend, at which point the game backend is expected to reserve the inventory for the purchase.
@@ -592,7 +588,7 @@ " class="sc-eVqvcJ sc-fszimp sc-etsjJW kIppRw jnwENr ljKHqG">An unexpected error response.
{- "playerId": "string",
- "transactionId": "string",
- "checkoutLinkId": "string",
- "environment": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
- "currency": "string",
- "registrations": [
- {
- "guid": "string",
- "productId": "string",
- "cents": 0,
- "quantity": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
], - "platform": "PURCHASE_PLATFORM_UNSPECIFIED",
- "browser": "string",
- "deviceId": "string",
- "source": "PURCHASE_SOURCE_UNSPECIFIED",
- "ipAddress": "string",
- "region": "string"
}{- "statuses": [
- {
- "guid": "string",
- "productId": "string",
- "status": "PURCHASE_REGISTRATION_STATUS_UNSPECIFIED",
- "message": "string"
}
]
}