Skip to content

TestOrdersResource

Defined in: sdks/trendyol/src/resources/test-orders.ts:16

STAGE-only helper endpoints for creating + driving test orders / test claims through their state machine. Do not use in PROD — Trendyol’s test endpoints are scoped to the test environment.

new TestOrdersResource(transport, limiter?): TestOrdersResource

Defined in: sdks/trendyol/src/resources/test-orders.ts:19

TrendyolTransport

TokenBucketRateLimiter

TestOrdersResource

create(input): Promise<CreateTestOrderResult>

Defined in: sdks/trendyol/src/resources/test-orders.ts:36

Create a test order with the given customer / addresses / lines. The SDK forwards the typed payload verbatim — drill into Trendyol’s createTestOrder doc for inner field rules.

Trendyol documents the response as { orderNumber: string }; the SDK surfaces it as orderNumber and keeps the untouched body on raw.

CreateTestOrderInput

Promise<CreateTestOrderResult>

when required top-level fields are missing.


setClaimsWaitingInAction(input?): Promise<MutationResult>

Defined in: sdks/trendyol/src/resources/test-orders.ts:86

Move test claims to the WaitingInAction state. Trendyol’s updateTestOrderStatus doc shows a { shipmentPackageId } body (the orderShipmentPackageId from claims.list); pass input to send it — omitted, the request goes out body-less as before. Documented response is a bare 200 OK (no body), hence MutationResult.

SetClaimsWaitingInActionInput

Promise<MutationResult>


updateStatus(packageId, status, options?): Promise<MutationResult>

Defined in: sdks/trendyol/src/resources/test-orders.ts:61

Push a test shipment package to the given status. Trendyol’s status-updates-on-test-orders doc shows a { lines, params, status } body — pass options to send the documented lines / params; omitted, the body stays { status } alone as before. Documented response is a bare 200 OK (no body), hence MutationResult.

string | number

TestOrderStatus

UpdateTestOrderStatusOptions = {}

Promise<MutationResult>

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.