Skip to content

Commit

Permalink
Merge branch 'release/1.10.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Yakushev committed May 22, 2019
2 parents 68f86ba + 52b8bfd commit 86795db
Show file tree
Hide file tree
Showing 208 changed files with 2,402 additions and 1,758 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Change Log

## [1.10.0](https://github.com/bunq/sdk_java/tree/1.10.0) (2019-05-09)
## [Unreleased](https://github.com/bunq/sdk_java/tree/HEAD)

[Full Changelog](https://github.com/bunq/sdk_java/compare/1.10.0...HEAD)

**Closed issues:**

- Support for MonetaryAccountBankSavings is missing [\#113](https://github.com/bunq/sdk_java/issues/113)

## [1.10.0](https://github.com/bunq/sdk_java/tree/1.10.0) (2019-05-09)
[Full Changelog](https://github.com/bunq/sdk_java/compare/1.1.0...1.10.0)

**Closed issues:**
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.bunq.sdk'
version '1.10.0'
version '1.10.1'

apply plugin: 'java'
apply plugin: 'maven'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bunq/sdk/http/BunqHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public enum BunqHeader {
LANGUAGE("X-Bunq-Language", "en_US"),
REGION("X-Bunq-Region", "nl_NL"),
SERVER_SIGNATURE("X-Bunq-Server-Signature"),
USER_AGENT("User-Agent", "bunq-sdk-java/1.10.0");
USER_AGENT("User-Agent", "bunq-sdk-java/1.10.1");

private static final String PREFIX = "X-Bunq-";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ public static BunqResponse<byte[]> list(Integer chatConversationId, Integer atta

/**
*/
public boolean isAllFieldNull() {
return true;
public static AttachmentConversationContent fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentConversationContent.class, reader);
}

/**
*/
public static AttachmentConversationContent fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentConversationContent.class, reader);
public boolean isAllFieldNull() {
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public static BunqResponse<Integer> create(Integer monetaryAccountId, byte[] byt
return create(monetaryAccountId, null, bytes);
}

/**
*/
public static AttachmentMonetaryAccount fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentMonetaryAccount.class, reader);
}

/**
* The attachment.
*/
Expand Down Expand Up @@ -93,10 +99,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static AttachmentMonetaryAccount fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentMonetaryAccount.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ public static BunqResponse<AttachmentPublic> get(String attachmentPublicUuid, Ma
return get(attachmentPublicUuid, params, null);
}

/**
*/
public static AttachmentPublic fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentPublic.class, reader);
}

/**
* The UUID of the attachment.
*/
Expand Down Expand Up @@ -163,10 +169,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static AttachmentPublic fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentPublic.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ public static BunqResponse<byte[]> list(String attachmentPublicUuid, Map<String,

/**
*/
public boolean isAllFieldNull() {
return true;
public static AttachmentPublicContent fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentPublicContent.class, reader);
}

/**
*/
public static AttachmentPublicContent fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentPublicContent.class, reader);
public boolean isAllFieldNull() {
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ public static BunqResponse<AttachmentTab> get(Integer attachmentTabId, Integer m
return get(attachmentTabId, monetaryAccountId, params, null);
}

/**
*/
public static AttachmentTab fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentTab.class, reader);
}

/**
* The id of the attachment.
*/
Expand Down Expand Up @@ -172,10 +178,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static AttachmentTab fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentTab.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ public static BunqResponse<byte[]> list(Integer attachmentTabId, Integer monetar

/**
*/
public boolean isAllFieldNull() {
return true;
public static AttachmentTabContent fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentTabContent.class, reader);
}

/**
*/
public static AttachmentTabContent fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentTabContent.class, reader);
public boolean isAllFieldNull() {
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ public static BunqResponse<AttachmentUser> get(Integer attachmentUserId, Map<Str
return get(attachmentUserId, params, null);
}

/**
*/
public static AttachmentUser fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentUser.class, reader);
}

/**
* The id of the attachment.
*/
Expand Down Expand Up @@ -145,10 +151,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static AttachmentUser fromJsonReader(JsonReader reader) {
return fromJsonReader(AttachmentUser.class, reader);
}

}
22 changes: 10 additions & 12 deletions src/main/java/com/bunq/sdk/model/generated/endpoint/Avatar.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@
*/
public class Avatar extends BunqModel {

/**
* Field constants.
*/
public static final String FIELD_ATTACHMENT_PUBLIC_UUID = "attachment_public_uuid";
/**
* Endpoint constants.
*/
protected static final String ENDPOINT_URL_CREATE = "avatar";
protected static final String ENDPOINT_URL_READ = "avatar/%s";

/**
* Field constants.
*/
public static final String FIELD_ATTACHMENT_PUBLIC_UUID = "attachment_public_uuid";

/**
* Object type.
*/
Expand Down Expand Up @@ -117,6 +115,12 @@ public static BunqResponse<Avatar> get(String avatarUuid, Map<String, String> pa
return get(avatarUuid, params, null);
}

/**
*/
public static Avatar fromJsonReader(JsonReader reader) {
return fromJsonReader(Avatar.class, reader);
}

/**
* The UUID of the created avatar.
*/
Expand Down Expand Up @@ -153,10 +157,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static Avatar fromJsonReader(JsonReader reader) {
return fromJsonReader(Avatar.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ public BankSwitchServiceNetherlandsIncoming(Pointer alias, Pointer counterpartyA
this.timeStartActualFieldForRequest = timeStartActual;
}

/**
*/
public static BankSwitchServiceNetherlandsIncoming fromJsonReader(JsonReader reader) {
return fromJsonReader(BankSwitchServiceNetherlandsIncoming.class, reader);
}

/**
* The label of the user creator of this switch service.
*/
Expand Down Expand Up @@ -293,10 +299,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static BankSwitchServiceNetherlandsIncoming fromJsonReader(JsonReader reader) {
return fromJsonReader(BankSwitchServiceNetherlandsIncoming.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ public static BunqResponse<BankSwitchServiceNetherlandsIncomingPayment> get(Inte
return get(bankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, params, null);
}

/**
*/
public static BankSwitchServiceNetherlandsIncomingPayment fromJsonReader(JsonReader reader) {
return fromJsonReader(BankSwitchServiceNetherlandsIncomingPayment.class, reader);
}

/**
* The bank switch service details.
*/
Expand Down Expand Up @@ -101,10 +107,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static BankSwitchServiceNetherlandsIncomingPayment fromJsonReader(JsonReader reader) {
return fromJsonReader(BankSwitchServiceNetherlandsIncomingPayment.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@
*/
public class BillingContractSubscription extends BunqModel {

/**
* Endpoint constants.
*/
protected static final String ENDPOINT_URL_LISTING = "user/%s/billing-contract-subscription";

/**
* Field constants.
*/
public static final String FIELD_SUBSCRIPTION_TYPE = "subscription_type";

/**
* Endpoint constants.
*/
protected static final String ENDPOINT_URL_LISTING = "user/%s/billing-contract-subscription";
/**
* Object type.
*/
Expand Down Expand Up @@ -137,6 +135,12 @@ public static BunqResponse<List<BillingContractSubscription>> list(Map<String, S
return list(params, null);
}

/**
*/
public static BillingContractSubscription fromJsonReader(JsonReader reader) {
return fromJsonReader(BillingContractSubscription.class, reader);
}

/**
* The id of the billing contract.
*/
Expand Down Expand Up @@ -295,10 +299,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static BillingContractSubscription fromJsonReader(JsonReader reader) {
return fromJsonReader(BillingContractSubscription.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ public BunqMeFundraiserProfile(Pointer pointer) {
this.pointerFieldForRequest = pointer;
}

/**
*/
public static BunqMeFundraiserProfile fromJsonReader(JsonReader reader) {
return fromJsonReader(BunqMeFundraiserProfile.class, reader);
}

/**
* The color chosen for the bunq.me fundraiser profile in hexadecimal format.
*/
Expand Down Expand Up @@ -219,10 +225,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static BunqMeFundraiserProfile fromJsonReader(JsonReader reader) {
return fromJsonReader(BunqMeFundraiserProfile.class, reader);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
*/
public class BunqMeFundraiserProfileUser extends BunqModel {

/**
* Endpoint constants.
*/
protected static final String ENDPOINT_URL_READ = "user/%s/bunqme-fundraiser-profile/%s";
protected static final String ENDPOINT_URL_LISTING = "user/%s/bunqme-fundraiser-profile";

/**
* Field constants.
*/
Expand All @@ -35,7 +29,11 @@ public class BunqMeFundraiserProfileUser extends BunqModel {
public static final String FIELD_POINTER = "pointer";
public static final String FIELD_REDIRECT_URL = "redirect_url";
public static final String FIELD_STATUS = "status";

/**
* Endpoint constants.
*/
protected static final String ENDPOINT_URL_READ = "user/%s/bunqme-fundraiser-profile/%s";
protected static final String ENDPOINT_URL_LISTING = "user/%s/bunqme-fundraiser-profile";
/**
* Object type.
*/
Expand Down Expand Up @@ -224,6 +222,12 @@ public static BunqResponse<List<BunqMeFundraiserProfileUser>> list(Map<String, S
return list(params, null);
}

/**
*/
public static BunqMeFundraiserProfileUser fromJsonReader(JsonReader reader) {
return fromJsonReader(BunqMeFundraiserProfileUser.class, reader);
}

/**
* Id of the monetary account on which you want to receive bunq.me payments.
*/
Expand Down Expand Up @@ -351,10 +355,4 @@ public boolean isAllFieldNull() {
return true;
}

/**
*/
public static BunqMeFundraiserProfileUser fromJsonReader(JsonReader reader) {
return fromJsonReader(BunqMeFundraiserProfileUser.class, reader);
}

}
Loading

0 comments on commit 86795db

Please sign in to comment.