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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TestOrdersResource(
transport,limiter?):TestOrdersResource
Defined in: sdks/trendyol/src/resources/test-orders.ts:19
Parameters
Section titled “Parameters”transport
Section titled “transport”TrendyolTransport
limiter?
Section titled “limiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”TestOrdersResource
Methods
Section titled “Methods”create()
Section titled “create()”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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<CreateTestOrderResult>
Throws
Section titled “Throws”when required top-level fields are missing.
setClaimsWaitingInAction()
Section titled “setClaimsWaitingInAction()”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.
Parameters
Section titled “Parameters”input?
Section titled “input?”Returns
Section titled “Returns”Promise<MutationResult>
updateStatus()
Section titled “updateStatus()”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.
Parameters
Section titled “Parameters”packageId
Section titled “packageId”string | number
status
Section titled “status”options?
Section titled “options?”UpdateTestOrderStatusOptions = {}
Returns
Section titled “Returns”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.