-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from gocardless/template-changes
Changes from gocardless/gocardless-pro-java-template
- Loading branch information
Showing
17 changed files
with
356 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package com.gocardless.resources; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Represents a export resource returned from the API. | ||
* | ||
* File-based exports of data | ||
*/ | ||
public class Export { | ||
private Export() { | ||
// blank to prevent instantiation | ||
} | ||
|
||
private String createdAt; | ||
private String currency; | ||
private String downloadUrl; | ||
private ExportType exportType; | ||
private String id; | ||
|
||
/** | ||
* Fixed [timestamp](#api-usage-time-zones--dates), recording when this resource was created. | ||
*/ | ||
public String getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
/** | ||
* The currency of the export (if applicable) | ||
*/ | ||
public String getCurrency() { | ||
return currency; | ||
} | ||
|
||
/** | ||
* Download url for the export file. Subject to expiry. | ||
*/ | ||
public String getDownloadUrl() { | ||
return downloadUrl; | ||
} | ||
|
||
/** | ||
* The type of the export | ||
*/ | ||
public ExportType getExportType() { | ||
return exportType; | ||
} | ||
|
||
/** | ||
* Unique identifier, beginning with "EX". | ||
*/ | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
public enum ExportType { | ||
@SerializedName("payments_index") | ||
PAYMENTS_INDEX, @SerializedName("events_index") | ||
EVENTS_INDEX, @SerializedName("refunds_index") | ||
REFUNDS_INDEX, @SerializedName("payouts_index") | ||
PAYOUTS_INDEX, @SerializedName("customers_index") | ||
CUSTOMERS_INDEX, @SerializedName("subscriptions_index") | ||
SUBSCRIPTIONS_INDEX, @SerializedName("payment_events") | ||
PAYMENT_EVENTS, @SerializedName("subscription_events") | ||
SUBSCRIPTION_EVENTS, @SerializedName("payout_events") | ||
PAYOUT_EVENTS, @SerializedName("refund_events") | ||
REFUND_EVENTS, @SerializedName("mandate_events") | ||
MANDATE_EVENTS, @SerializedName("payout_events_breakdown") | ||
PAYOUT_EVENTS_BREAKDOWN, @SerializedName("payout_events_reconciliation") | ||
PAYOUT_EVENTS_RECONCILIATION, @SerializedName("payout_transactions_breakdown") | ||
PAYOUT_TRANSACTIONS_BREAKDOWN, @SerializedName("payout_transactions_reconciliation") | ||
PAYOUT_TRANSACTIONS_RECONCILIATION, @SerializedName("authorisation_requests") | ||
AUTHORISATION_REQUESTS, @SerializedName("customer_bank_accounts") | ||
CUSTOMER_BANK_ACCOUNTS, @SerializedName("users") | ||
USERS, @SerializedName("organisation_authorisations") | ||
ORGANISATION_AUTHORISATIONS, @SerializedName("gc_invalid_authorisation_requests") | ||
GC_INVALID_AUTHORISATION_REQUESTS, @SerializedName("partner_fees") | ||
PARTNER_FEES, @SerializedName("payments_import_template") | ||
PAYMENTS_IMPORT_TEMPLATE, @SerializedName("unknown") | ||
UNKNOWN | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.