Skip to content

TestOrdersResource

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

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:13

TrendyolTransport

TokenBucketRateLimiter

TestOrdersResource

create(input): Promise<unknown>

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

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.

CreateTestOrderInput

Promise<unknown>

when required top-level fields are missing.


setClaimsWaitingInAction(): Promise<unknown>

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

Move test claims to the WaitingInAction state.

Promise<unknown>


updateStatus(packageId, status): Promise<unknown>

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

Push a test shipment package to the given status.

string | number

TestOrderStatus

Promise<unknown>

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.