we need to use this to get around the fact "package" is a reserved keyword

parent 8a4ec06c
......@@ -198,8 +198,6 @@ public interface CubedPayShopAPI {
@GET("/shop/{sid}/ticket")
CompletableFuture<List<SupportTicket>> getSupportTickets(@Path("sid") String shopId, @Query("page") int page, @Query("perpage") int perpage);
//TODO User specification
//TODO API scope
@POST("/shop/{sid}/ticket/open")
CompletableFuture<SupportTicket> createSupportTicket(@Path("sid") String shopId, @Query("from_name") String user_name, @Query("from_email") String user_email, @Query("subject") String subject, @Query("body") String body);
......
package co.melondev.cubedpay.data;
import com.google.gson.annotations.SerializedName;
import java.util.Arrays;
public class ShopPage {
......@@ -25,7 +27,8 @@ public class ShopPage {
private String id;
private String name;
private String description;
private boolean isPublic; //TODO Fix name from api (java keywords pls)
@SerializedName("public")
private boolean isPublic;
private Type type;
private Display display;
private int order;
......
package co.melondev.cubedpay.data;
import com.google.gson.annotations.SerializedName;
public class ShopPagePackage {
private String id;
private ShopPackage thePackage; //TODO fix
@SerializedName("package")
private ShopPackage thePackage;
private int order;
public String getId() {
return id;
}
public ShopPackage getThePackage() {
public ShopPackage getPackage() {
return thePackage;
}
......
package co.melondev.cubedpay.data;
import com.google.gson.annotations.SerializedName;
import java.util.Arrays;
import java.util.Map;
......@@ -31,7 +33,8 @@ public class ShopSidebarModule {
private Side side;
private Type type;
private Map<String, Object> settings;
private boolean isPublic; //todo fix
@SerializedName("public")
private boolean isPublic;
private int order;
public String getId() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment