public interface StoresResource
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<StoreWithConfiguration> |
create(StoreCreateData dataToPost,
IdempotencyKey idempotencyKey) |
retrofit2.Call<UnivapayCustomerId> |
createCustomerId(StoreId storeId,
CustomerIdRequest userId) |
retrofit2.Call<Void> |
delete(StoreId storeId) |
retrofit2.Call<StoreWithConfiguration> |
get(StoreId storeId) |
retrofit2.Call<CheckoutInfo> |
getCheckoutInfo(Domain origin) |
retrofit2.Call<PaginatedList<Store>> |
list(java.lang.Integer limit,
CursorDirection cursorDirection,
StoreId cursor,
java.lang.String search) |
retrofit2.Call<StoreWithConfiguration> |
update(StoreId storeId,
StoreCreateData dataToPost,
IdempotencyKey idempotencyKey) |
@GET(value="/stores") retrofit2.Call<PaginatedList<Store>> list(@Query(value="limit") @Nullable java.lang.Integer limit, @Query(value="cursor_direction") @Nullable CursorDirection cursorDirection, @Query(value="cursor") @Nullable StoreId cursor, @Query(value="search") @Nullable java.lang.String search)
@POST(value="/stores") retrofit2.Call<StoreWithConfiguration> create(@Body StoreCreateData dataToPost, @Header(value="Idempotency-Key") IdempotencyKey idempotencyKey)
@GET(value="/stores/{storeId}") retrofit2.Call<StoreWithConfiguration> get(@Path(value="storeId") StoreId storeId)
@PATCH(value="/stores/{storeId}") retrofit2.Call<StoreWithConfiguration> update(@Path(value="storeId") StoreId storeId, @Body StoreCreateData dataToPost, @Header(value="Idempotency-Key") IdempotencyKey idempotencyKey)
@DELETE(value="/stores/{storeId}") retrofit2.Call<Void> delete(@Path(value="storeId") StoreId storeId)
@GET(value="/checkout_info") retrofit2.Call<CheckoutInfo> getCheckoutInfo(@Query(value="origin") Domain origin)
@POST(value="/stores/{storeId}/create_customer_id") retrofit2.Call<UnivapayCustomerId> createCustomerId(@Path(value="storeId") StoreId storeId, @Body CustomerIdRequest userId)