-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00cfa52
commit d3532c0
Showing
14 changed files
with
796 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1257 | ||
v1258 |
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
188 changes: 188 additions & 0 deletions
188
src/main/java/com/stripe/model/issuing/DisputeSettlementDetail.java
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,188 @@ | ||
// File generated from our OpenAPI spec | ||
package com.stripe.model.issuing; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.stripe.exception.StripeException; | ||
import com.stripe.model.HasId; | ||
import com.stripe.net.ApiRequest; | ||
import com.stripe.net.ApiRequestParams; | ||
import com.stripe.net.ApiResource; | ||
import com.stripe.net.BaseAddress; | ||
import com.stripe.net.RequestOptions; | ||
import com.stripe.param.issuing.DisputeSettlementDetailListParams; | ||
import com.stripe.param.issuing.DisputeSettlementDetailRetrieveParams; | ||
import java.util.Map; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Represents a record from the card network of a money movement or change in state for an Issuing | ||
* dispute. These records are included in the settlement reports that we receive from networks and | ||
* expose to users as Settlement objects. | ||
*/ | ||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public class DisputeSettlementDetail extends ApiResource implements HasId { | ||
/** | ||
* Disputed amount in the card’s currency and in the smallest currency unit. Usually the amount of | ||
* the transaction, but can differ (usually because of currency fluctuation). | ||
*/ | ||
@SerializedName("amount") | ||
Long amount; | ||
|
||
/** The card used to make the original transaction. */ | ||
@SerializedName("card") | ||
String card; | ||
|
||
/** Time at which the object was created. Measured in seconds since the Unix epoch. */ | ||
@SerializedName("created") | ||
Long created; | ||
|
||
/** | ||
* The currency the original transaction was made in. Three-letter <a | ||
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. | ||
* Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>. | ||
*/ | ||
@SerializedName("currency") | ||
String currency; | ||
|
||
/** The ID of the linked dispute. */ | ||
@SerializedName("dispute") | ||
String dispute; | ||
|
||
/** | ||
* The type of event corresponding to this dispute settlement detail, representing the stage in | ||
* the dispute network lifecycle. | ||
* | ||
* <p>One of {@code filing}, {@code loss}, {@code representment}, or {@code win}. | ||
*/ | ||
@SerializedName("event_type") | ||
String eventType; | ||
|
||
/** Unique identifier for the object. */ | ||
@Getter(onMethod_ = {@Override}) | ||
@SerializedName("id") | ||
String id; | ||
|
||
/** | ||
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the | ||
* object exists in test mode. | ||
*/ | ||
@SerializedName("livemode") | ||
Boolean livemode; | ||
|
||
/** | ||
* The card network for this dispute settlement detail. One of ["visa", | ||
* "mastercard", "maestro"] | ||
*/ | ||
@SerializedName("network") | ||
String network; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
* | ||
* <p>Equal to {@code issuing.dispute_settlement_detail}. | ||
*/ | ||
@SerializedName("object") | ||
String object; | ||
|
||
/** The ID of the linked card network settlement. */ | ||
@SerializedName("settlement") | ||
String settlement; | ||
|
||
/** | ||
* Returns a list of Issuing {@code DisputeSettlementDetail} objects. The objects are sorted in | ||
* descending order by creation date, with the most recently created object appearing first. | ||
*/ | ||
public static DisputeSettlementDetailCollection list(Map<String, Object> params) | ||
throws StripeException { | ||
return list(params, (RequestOptions) null); | ||
} | ||
|
||
/** | ||
* Returns a list of Issuing {@code DisputeSettlementDetail} objects. The objects are sorted in | ||
* descending order by creation date, with the most recently created object appearing first. | ||
*/ | ||
public static DisputeSettlementDetailCollection list( | ||
Map<String, Object> params, RequestOptions options) throws StripeException { | ||
String path = "/v1/issuing/dispute_settlement_details"; | ||
ApiRequest request = | ||
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options); | ||
return getGlobalResponseGetter().request(request, DisputeSettlementDetailCollection.class); | ||
} | ||
|
||
/** | ||
* Returns a list of Issuing {@code DisputeSettlementDetail} objects. The objects are sorted in | ||
* descending order by creation date, with the most recently created object appearing first. | ||
*/ | ||
public static DisputeSettlementDetailCollection list(DisputeSettlementDetailListParams params) | ||
throws StripeException { | ||
return list(params, (RequestOptions) null); | ||
} | ||
|
||
/** | ||
* Returns a list of Issuing {@code DisputeSettlementDetail} objects. The objects are sorted in | ||
* descending order by creation date, with the most recently created object appearing first. | ||
*/ | ||
public static DisputeSettlementDetailCollection list( | ||
DisputeSettlementDetailListParams params, RequestOptions options) throws StripeException { | ||
String path = "/v1/issuing/dispute_settlement_details"; | ||
ApiResource.checkNullTypedParams(path, params); | ||
ApiRequest request = | ||
new ApiRequest( | ||
BaseAddress.API, | ||
ApiResource.RequestMethod.GET, | ||
path, | ||
ApiRequestParams.paramsToMap(params), | ||
options); | ||
return getGlobalResponseGetter().request(request, DisputeSettlementDetailCollection.class); | ||
} | ||
|
||
/** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ | ||
public static DisputeSettlementDetail retrieve(String disputeSettlementDetail) | ||
throws StripeException { | ||
return retrieve(disputeSettlementDetail, (Map<String, Object>) null, (RequestOptions) null); | ||
} | ||
|
||
/** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ | ||
public static DisputeSettlementDetail retrieve( | ||
String disputeSettlementDetail, RequestOptions options) throws StripeException { | ||
return retrieve(disputeSettlementDetail, (Map<String, Object>) null, options); | ||
} | ||
|
||
/** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ | ||
public static DisputeSettlementDetail retrieve( | ||
String disputeSettlementDetail, Map<String, Object> params, RequestOptions options) | ||
throws StripeException { | ||
String path = | ||
String.format( | ||
"/v1/issuing/dispute_settlement_details/%s", | ||
ApiResource.urlEncodeId(disputeSettlementDetail)); | ||
ApiRequest request = | ||
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options); | ||
return getGlobalResponseGetter().request(request, DisputeSettlementDetail.class); | ||
} | ||
|
||
/** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ | ||
public static DisputeSettlementDetail retrieve( | ||
String disputeSettlementDetail, | ||
DisputeSettlementDetailRetrieveParams params, | ||
RequestOptions options) | ||
throws StripeException { | ||
String path = | ||
String.format( | ||
"/v1/issuing/dispute_settlement_details/%s", | ||
ApiResource.urlEncodeId(disputeSettlementDetail)); | ||
ApiResource.checkNullTypedParams(path, params); | ||
ApiRequest request = | ||
new ApiRequest( | ||
BaseAddress.API, | ||
ApiResource.RequestMethod.GET, | ||
path, | ||
ApiRequestParams.paramsToMap(params), | ||
options); | ||
return getGlobalResponseGetter().request(request, DisputeSettlementDetail.class); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/stripe/model/issuing/DisputeSettlementDetailCollection.java
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,6 @@ | ||
// File generated from our OpenAPI spec | ||
package com.stripe.model.issuing; | ||
|
||
import com.stripe.model.StripeCollection; | ||
|
||
public class DisputeSettlementDetailCollection extends StripeCollection<DisputeSettlementDetail> {} |
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,107 @@ | ||
// File generated from our OpenAPI spec | ||
package com.stripe.model.issuing; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.stripe.model.HasId; | ||
import com.stripe.model.StripeObject; | ||
import java.util.Map; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* When a non-stripe BIN is used, any use of an <a href="https://stripe.com/docs/issuing">issued | ||
* card</a> must be settled directly with the card network. The net amount owed is represented by an | ||
* Issuing {@code Settlement} object. | ||
*/ | ||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public class Settlement extends StripeObject implements HasId { | ||
/** The Bank Identification Number reflecting this settlement record. */ | ||
@SerializedName("bin") | ||
String bin; | ||
|
||
/** The date that the transactions are cleared and posted to user's accounts. */ | ||
@SerializedName("clearing_date") | ||
Long clearingDate; | ||
|
||
/** Time at which the object was created. Measured in seconds since the Unix epoch. */ | ||
@SerializedName("created") | ||
Long created; | ||
|
||
/** | ||
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, | ||
* in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>. | ||
*/ | ||
@SerializedName("currency") | ||
String currency; | ||
|
||
/** Unique identifier for the object. */ | ||
@Getter(onMethod_ = {@Override}) | ||
@SerializedName("id") | ||
String id; | ||
|
||
/** The total interchange received as reimbursement for the transactions. */ | ||
@SerializedName("interchange_fees") | ||
Long interchangeFees; | ||
|
||
/** | ||
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the | ||
* object exists in test mode. | ||
*/ | ||
@SerializedName("livemode") | ||
Boolean livemode; | ||
|
||
/** | ||
* Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach | ||
* to an object. This can be useful for storing additional information about the object in a | ||
* structured format. | ||
*/ | ||
@SerializedName("metadata") | ||
Map<String, String> metadata; | ||
|
||
/** The total net amount required to settle with the network. */ | ||
@SerializedName("net_total") | ||
Long netTotal; | ||
|
||
/** The card network for this settlement report. One of ["visa", "maestro"] */ | ||
@SerializedName("network") | ||
String network; | ||
|
||
/** The total amount of fees owed to the network. */ | ||
@SerializedName("network_fees") | ||
Long networkFees; | ||
|
||
/** The Settlement Identification Number assigned by the network. */ | ||
@SerializedName("network_settlement_identifier") | ||
String networkSettlementIdentifier; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
* | ||
* <p>Equal to {@code issuing.settlement}. | ||
*/ | ||
@SerializedName("object") | ||
String object; | ||
|
||
/** One of {@code international} or {@code uk_national_net}. */ | ||
@SerializedName("settlement_service") | ||
String settlementService; | ||
|
||
/** | ||
* The current processing status of this settlement. | ||
* | ||
* <p>One of {@code complete}, or {@code pending}. | ||
*/ | ||
@SerializedName("status") | ||
String status; | ||
|
||
/** The total number of transactions reflected in this settlement. */ | ||
@SerializedName("transaction_count") | ||
Long transactionCount; | ||
|
||
/** The total transaction amount reflected in this settlement. */ | ||
@SerializedName("transaction_volume") | ||
Long transactionVolume; | ||
} |
Oops, something went wrong.