Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions install_crypto_deps.sh

This file was deleted.

61 changes: 0 additions & 61 deletions src/main/java/com/gocardless/http/ArrayRequest.java

This file was deleted.

12 changes: 6 additions & 6 deletions src/main/java/com/gocardless/http/ListResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ public List<Subscription> getSubscriptions() {
return subscriptions;
}

Linked(List<Payout> payouts, List<Customer> customers, List<Creditor> creditors,
List<InstalmentSchedule> instalmentSchedules,
List<OutboundPayment> outboundPayments, List<BillingRequest> billingRequests,
List<SchemeIdentifier> schemeIdentifiers, List<Payment> payments,
List<Subscription> subscriptions, List<Mandate> mandates,
List<PayerAuthorisation> payerAuthorisations, List<Refund> refunds) {
Linked(List<Creditor> creditors, List<Refund> refunds, List<Customer> customers,
List<InstalmentSchedule> instalmentSchedules, List<Subscription> subscriptions,
List<BillingRequest> billingRequests, List<Payout> payouts,
List<SchemeIdentifier> schemeIdentifiers, List<Mandate> mandates,
List<OutboundPayment> outboundPayments, List<Payment> payments,
List<PayerAuthorisation> payerAuthorisations) {
this.billingRequests = billingRequests;
this.creditors = creditors;
this.customers = customers;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/gocardless/resources/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public enum Currency {
UNKNOWN
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/gocardless/resources/BankAuthorisation.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ public enum AuthorisationType {
UNKNOWN
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down
75 changes: 75 additions & 0 deletions src/main/java/com/gocardless/resources/BillingRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ public enum Status {
UNKNOWN
}

/**
* Represents a action resource returned from the API.
*
*
*/
public static class Action {
private Action() {
// blank to prevent instantiation
Expand Down Expand Up @@ -381,6 +386,11 @@ public IncompleteFields getIncompleteFields() {
return incompleteFields;
}

/**
* Represents a incomplete field resource returned from the API.
*
*
*/
public static class IncompleteFields {
private IncompleteFields() {
// blank to prevent instantiation
Expand Down Expand Up @@ -508,6 +518,11 @@ public Integer getTotalAmount() {
return totalAmount;
}

/**
* Represents a instalments with date resource returned from the API.
*
*
*/
public static class InstalmentsWithDate {
private InstalmentsWithDate() {
// blank to prevent instantiation
Expand Down Expand Up @@ -609,6 +624,11 @@ public enum IntervalUnit {
}
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand All @@ -627,6 +647,11 @@ public String getInstalmentSchedule() {
}
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down Expand Up @@ -775,6 +800,7 @@ private MandateRequest() {
private Constraints constraints;
private String currency;
private String description;
private FundsSettlement fundsSettlement;
private Links links;
private Map<String, Object> metadata;
private Boolean payerRequestedDualSignature;
Expand Down Expand Up @@ -830,6 +856,18 @@ public String getDescription() {
return description;
}

/**
* This field will decide how GoCardless handles settlement of funds from the customer.
*
* - `managed` will be moved through GoCardless' account, batched, and payed out. - `direct`
* will be a direct transfer from the payer's account to the merchant where invoicing will
* be handled separately.
*
*/
public FundsSettlement getFundsSettlement() {
return fundsSettlement;
}

public Links getLinks() {
return links;
}
Expand Down Expand Up @@ -907,6 +945,13 @@ public enum AuthorisationSource {
UNKNOWN
}

public enum FundsSettlement {
@SerializedName("managed")
MANAGED, @SerializedName("direct")
DIRECT, @SerializedName("unknown")
UNKNOWN
}

public enum Verify {
@SerializedName("minimum")
MINIMUM, @SerializedName("recommended")
Expand Down Expand Up @@ -981,6 +1026,11 @@ public String getStartDate() {
return startDate;
}

/**
* Represents a periodic limit resource returned from the API.
*
*
*/
public static class PeriodicLimit {
private PeriodicLimit() {
// blank to prevent instantiation
Expand Down Expand Up @@ -1050,6 +1100,11 @@ public enum Period {
}
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down Expand Up @@ -1174,6 +1229,11 @@ public enum FundsSettlement {
UNKNOWN
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand All @@ -1191,6 +1251,11 @@ public String getPayment() {
}
}

/**
* Represents a resource resource returned from the API.
*
*
*/
public static class Resources {
private Resources() {
// blank to prevent instantiation
Expand Down Expand Up @@ -1440,6 +1505,11 @@ public enum AccountType {
UNKNOWN
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down Expand Up @@ -1753,6 +1823,11 @@ public enum Month {
UNKNOWN
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ public Boolean getSkipSuccessScreen() {
return skipSuccessScreen;
}

/**
* Represents a link resource returned from the API.
*
*
*/
public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ public String getStartDate() {
return startDate;
}

/**
* Represents a periodic limit resource returned from the API.
*
*
*/
public static class PeriodicLimit {
private PeriodicLimit() {
// blank to prevent instantiation
Expand Down
Loading