Interface CustomerService


  • public interface CustomerService
    • Method Detail

      • getCustomer

        @GET("{cloudId}/{id}")
        retrofit2.Call<Customer> getCustomer​(@Path("cloudId")
                                             java.lang.Integer cloudId,
                                             @Path("id")
                                             java.lang.Long id)
      • getCustomers

        @GET("{cloudId}")
        retrofit2.Call<java.util.Collection<Customer>> getCustomers​(@Path("cloudId")
                                                                    java.lang.Integer cloudId,
                                                                    @Query("limit")
                                                                    java.lang.Integer limit,
                                                                    @Query("offset")
                                                                    java.lang.Integer offset)
      • getCustomers

        @GET("{cloudId}")
        retrofit2.Call<java.util.Collection<Customer>> getCustomers​(@Path("cloudId")
                                                                    java.lang.Integer cloudId,
                                                                    @Query("limit")
                                                                    java.lang.Integer limit,
                                                                    @Query("offset")
                                                                    java.lang.Integer offset,
                                                                    @Query("sort")
                                                                    java.lang.String sort)
      • createCustomer

        @Headers({"Content-Type: application/json","Accept: application/json"})
        @POST("{cloudId}/create")
        retrofit2.Call<Customer> createCustomer​(@Path("cloudId")
                                                java.lang.Integer cloudId,
                                                @Body
                                                Customer consumer)
      • deleteCustomer

        @GET("{cloudId}/{id}/delete")
        retrofit2.Call<Customer> deleteCustomer​(@Path("cloudId")
                                                java.lang.Integer cloudId,
                                                @Path("id")
                                                java.lang.Long id,
                                                @Query("anonymize")
                                                java.lang.Boolean anonymizeCustomer)
      • updateCustomer

        @POST("{cloudId}/{id}/update")
        @Headers({"Content-Type: application/json","Accept: application/json"})
        retrofit2.Call<Customer> updateCustomer​(@Path("cloudId")
                                                java.lang.Integer cloudId,
                                                @Path("id")
                                                java.lang.Long id,
                                                @Body
                                                Customer consumer)