Skip to content

Commit

Permalink
Regenerated code. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jun 1, 2018
1 parent a709aa6 commit 527577e
Show file tree
Hide file tree
Showing 80 changed files with 250 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static BunqResponse<byte[]> list(Integer chatConversationId, Integer atta

return new BunqResponse<>(responseRaw.getBodyBytes(), responseRaw.getHeaders());
}

public static BunqResponse<byte[]> list() {
return list(null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
package com.bunq.sdk.model.generated.endpoint;

import com.bunq.sdk.context.ApiContext;
import com.bunq.sdk.http.ApiClient;
import com.bunq.sdk.http.BunqResponse;
import com.bunq.sdk.http.BunqResponseRaw;
import com.bunq.sdk.model.core.BunqModel;
import com.bunq.sdk.model.core.MonetaryAccountReference;
import com.bunq.sdk.model.generated.object.Attachment;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.lang.model.type.NullType;

/**
* This call is used to upload an attachment that can be referenced to in payment requests and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public static BunqResponse<AttachmentPublic> get(String attachmentPublicUuid, Ma

return fromJson(AttachmentPublic.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<AttachmentPublic> get() {
return get(null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static BunqResponse<byte[]> list(String attachmentPublicUuid, Map<String,

return new BunqResponse<>(responseRaw.getBodyBytes(), responseRaw.getHeaders());
}

public static BunqResponse<byte[]> list() {
return list(null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public static BunqResponse<AttachmentTab> get(Integer attachmentTabId, Integer m

return fromJson(AttachmentTab.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<AttachmentTab> get() {
return get(null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static BunqResponse<byte[]> list(Integer attachmentTabId, Integer monetar

return new BunqResponse<>(responseRaw.getBodyBytes(), responseRaw.getHeaders());
}

public static BunqResponse<byte[]> list() {
return list(null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public static BunqResponse<String> create(String attachmentPublicUuid, Map<Strin

return processForUuid(responseRaw);
}

public static BunqResponse<String> create() {
return create(null, null);
}
Expand All @@ -88,6 +89,7 @@ public static BunqResponse<Avatar> get(String avatarUuid, Map<String, String> pa

return fromJson(Avatar.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<Avatar> get() {
return get(null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ public class BillingContractSubscription extends BunqModel {
@SerializedName("subscription_type")
private String subscriptionType;

/**
* The subscription status.
*/
@Expose
@SerializedName("status")
private String status;

/**
* The subscription substatus.
*/
@Expose
@SerializedName("sub_status")
private String subStatus;

/**
* @param subscriptionType The subscription type of the user. Can be one of PERSON_LIGHT_V1,
* PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2.
Expand All @@ -102,6 +116,7 @@ public static BunqResponse<Integer> create(String subscriptionType, Map<String,

return processForId(responseRaw);
}

public static BunqResponse<Integer> create() {
return create(null, null);
}
Expand Down Expand Up @@ -206,6 +221,28 @@ public void setSubscriptionType(String subscriptionType) {
this.subscriptionType = subscriptionType;
}

/**
* The subscription status.
*/
public String getStatus() {
return this.status;
}

public void setStatus(String status) {
this.status = status;
}

/**
* The subscription substatus.
*/
public String getSubStatus() {
return this.subStatus;
}

public void setSubStatus(String subStatus) {
this.subStatus = subStatus;
}

/**
*/
public boolean isAllFieldNull() {
Expand Down Expand Up @@ -237,6 +274,14 @@ public boolean isAllFieldNull() {
return false;
}

if (this.status != null) {
return false;
}

if (this.subStatus != null) {
return false;
}

return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public static BunqResponse<Integer> create(BunqMeTabEntry bunqmeTabEntry, Intege

return processForId(responseRaw);
}

public static BunqResponse<Integer> create() {
return create(null, null, null, null);
}
Expand Down Expand Up @@ -158,10 +159,6 @@ public static BunqResponse<Integer> update(Integer bunqMeTabId, Integer monetary
return processForId(responseRaw);
}

public static BunqResponse<Integer> update() {
return update(null, null, null, null);
}

public static BunqResponse<Integer> update(Integer bunqMeTabId) {
return update(bunqMeTabId, null, null, null);
}
Expand Down Expand Up @@ -203,6 +200,7 @@ public static BunqResponse<BunqMeTab> get(Integer bunqMeTabId, Integer monetaryA

return fromJson(BunqMeTab.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<BunqMeTab> get() {
return get(null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,6 @@ public static BunqResponse<Card> update(Integer cardId, String pinCode, String a
return fromJson(Card.class, responseRaw, OBJECT_TYPE_PUT);
}

public static BunqResponse<Card> update() {
return update(null, null, null, null, null, null, null, null, null, null, null);
}

public static BunqResponse<Card> update(Integer cardId) {
return update(cardId, null, null, null, null, null, null, null, null, null, null);
}
Expand Down Expand Up @@ -305,6 +301,7 @@ public static BunqResponse<Card> get(Integer cardId, Map<String, String> params,

return fromJson(Card.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<Card> get() {
return get(null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ public static BunqResponse<CardDebit> create(String secondLine, String nameOnCar

return fromJson(CardDebit.class, responseRaw, OBJECT_TYPE_POST);
}

public static BunqResponse<CardDebit> create() {
return create(null, null, null, null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public static BunqResponse<Integer> create(Integer cardId, Map<String, String> c

return processForId(responseRaw);
}

public static BunqResponse<Integer> create() {
return create(null, null);
}
Expand All @@ -107,6 +108,7 @@ public static BunqResponse<CardGeneratedCvc2> get(Integer cardId, Integer cardGe

return fromJson(CardGeneratedCvc2.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<CardGeneratedCvc2> get() {
return get(null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public static BunqResponse<CardPinChange> get(Integer cardId, Integer cardPinCha

return fromJson(CardPinChange.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<CardPinChange> get() {
return get(null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class CardReplace extends BunqModel {
/**
* Field constants.
*/
public static final String FIELD_NAME_ON_CARD = "name_on_card";
public static final String FIELD_PIN_CODE = "pin_code";
public static final String FIELD_SECOND_LINE = "second_line";

Expand All @@ -41,17 +42,20 @@ public class CardReplace extends BunqModel {

/**
* Request a card replacement.
* @param nameOnCard The user's name as it will be on the card. Check 'card-name' for the
* available card names for a user.
* @param pinCode The plaintext pin code. Requests require encryption to be enabled.
* @param secondLine The second line on the card.
*/
public static BunqResponse<Integer> create(Integer cardId, String pinCode, String secondLine, Map<String, String> customHeaders) {
public static BunqResponse<Integer> create(Integer cardId, String nameOnCard, String pinCode, String secondLine, Map<String, String> customHeaders) {
ApiClient apiClient = new ApiClient(getApiContext());

if (customHeaders == null) {
customHeaders = new HashMap<>();
}

HashMap<String, Object> requestMap = new HashMap<>();
requestMap.put(FIELD_NAME_ON_CARD, nameOnCard);
requestMap.put(FIELD_PIN_CODE, pinCode);
requestMap.put(FIELD_SECOND_LINE, secondLine);

Expand All @@ -61,20 +65,25 @@ public static BunqResponse<Integer> create(Integer cardId, String pinCode, Strin

return processForId(responseRaw);
}

public static BunqResponse<Integer> create() {
return create(null, null, null, null);
return create(null, null, null, null, null);
}

public static BunqResponse<Integer> create(Integer cardId) {
return create(cardId, null, null, null);
return create(cardId, null, null, null, null);
}

public static BunqResponse<Integer> create(Integer cardId, String nameOnCard) {
return create(cardId, nameOnCard, null, null, null);
}

public static BunqResponse<Integer> create(Integer cardId, String pinCode) {
return create(cardId, pinCode, null, null);
public static BunqResponse<Integer> create(Integer cardId, String nameOnCard, String pinCode) {
return create(cardId, nameOnCard, pinCode, null, null);
}

public static BunqResponse<Integer> create(Integer cardId, String pinCode, String secondLine) {
return create(cardId, pinCode, secondLine, null);
public static BunqResponse<Integer> create(Integer cardId, String nameOnCard, String pinCode, String secondLine) {
return create(cardId, nameOnCard, pinCode, secondLine, null);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public static BunqResponse<CardResult> get(Integer cardResultId, Integer monetar

return fromJson(CardResult.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<CardResult> get() {
return get(null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public static BunqResponse<Integer> create(String name, String status, String av

return processForId(responseRaw);
}

public static BunqResponse<Integer> create() {
return create(null, null, null, null, null, null, null, null);
}
Expand Down Expand Up @@ -189,6 +190,7 @@ public static BunqResponse<CashRegister> get(Integer cashRegisterId, Integer mon

return fromJson(CashRegister.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<CashRegister> get() {
return get(null, null, null, null);
}
Expand Down Expand Up @@ -240,10 +242,6 @@ public static BunqResponse<Integer> update(Integer cashRegisterId, Integer monet
return processForId(responseRaw);
}

public static BunqResponse<Integer> update() {
return update(null, null, null, null, null, null, null, null, null);
}

public static BunqResponse<Integer> update(Integer cashRegisterId) {
return update(cashRegisterId, null, null, null, null, null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public static BunqResponse<Integer> create(Integer cashRegisterId, String status

return processForId(responseRaw);
}

public static BunqResponse<Integer> create() {
return create(null, null, null, null);
}
Expand Down Expand Up @@ -143,10 +144,6 @@ public static BunqResponse<Integer> update(Integer cashRegisterId, Integer cashR
return processForId(responseRaw);
}

public static BunqResponse<Integer> update() {
return update(null, null, null, null, null);
}

public static BunqResponse<Integer> update(Integer cashRegisterId) {
return update(cashRegisterId, null, null, null, null);
}
Expand All @@ -173,6 +170,7 @@ public static BunqResponse<CashRegisterQrCode> get(Integer cashRegisterId, Integ

return fromJson(CashRegisterQrCode.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<CashRegisterQrCode> get() {
return get(null, null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static BunqResponse<byte[]> list(Integer cashRegisterId, Integer qrCodeId

return new BunqResponse<>(responseRaw.getBodyBytes(), responseRaw.getHeaders());
}

public static BunqResponse<byte[]> list() {
return list(null, null, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static BunqResponse<Integer> create(List<Certificate> certificateChain, M

return processForId(responseRaw);
}

public static BunqResponse<Integer> create() {
return create(null, null);
}
Expand All @@ -88,6 +89,7 @@ public static BunqResponse<CertificatePinned> delete(Integer certificatePinnedId

return new BunqResponse<>(null, responseRaw.getHeaders());
}

public static BunqResponse<CertificatePinned> delete(Integer certificatePinnedId) {
return delete(certificatePinnedId, null);
}
Expand Down Expand Up @@ -119,6 +121,7 @@ public static BunqResponse<CertificatePinned> get(Integer certificatePinnedId, M

return fromJson(CertificatePinned.class, responseRaw, OBJECT_TYPE_GET);
}

public static BunqResponse<CertificatePinned> get() {
return get(null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static BunqResponse<ChatConversation> get(Integer chatConversationId, Map

return fromJson(ChatConversation.class, responseRaw);
}

public static BunqResponse<ChatConversation> get() {
return get(null, null, null);
}
Expand Down
Loading

0 comments on commit 527577e

Please sign in to comment.