public interface StoresResource
| Modifier and Type | Method | Description |
|---|---|---|
retrofit2.Call<StoreWithConfiguration> |
create(StoreCreateData dataToPost,
IdempotencyKey idempotencyKey) |
|
retrofit2.Call<GopayCustomerId> |
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(Integer limit,
CursorDirection cursorDirection,
StoreId cursor,
String search) |
|
retrofit2.Call<StoreWithConfiguration> |
update(StoreId storeId,
StoreCreateData dataToPost,
IdempotencyKey idempotencyKey) |
@GET("/stores")
retrofit2.Call<PaginatedList<Store>> list(@Query("limit") @Nullable
Integer limit,
@Query("cursor_direction") @Nullable
CursorDirection cursorDirection,
@Query("cursor") @Nullable
StoreId cursor,
@Query("search") @Nullable
String search)
@POST("/stores")
retrofit2.Call<StoreWithConfiguration> create(@Body
StoreCreateData dataToPost,
@Header("Idempotency-Key")
IdempotencyKey idempotencyKey)
@GET("/stores/{storeId}")
retrofit2.Call<StoreWithConfiguration> get(@Path("storeId")
StoreId storeId)
@PATCH("/stores/{storeId}")
retrofit2.Call<StoreWithConfiguration> update(@Path("storeId")
StoreId storeId,
@Body
StoreCreateData dataToPost,
@Header("Idempotency-Key")
IdempotencyKey idempotencyKey)
@GET("/checkout_info")
retrofit2.Call<CheckoutInfo> getCheckoutInfo(@Query("origin")
Domain origin)
@POST("/stores/{storeId}/create_customer_id")
retrofit2.Call<GopayCustomerId> createCustomerId(@Path("storeId")
StoreId storeId,
@Body
CustomerIdRequest userId)
Copyright © 2018 The Apache Software Foundation. All rights reserved.