|
4 | 4 | import com.google.gson.annotations.SerializedName;
|
5 | 5 | import com.stripe.exception.StripeException;
|
6 | 6 | import com.stripe.model.HasId;
|
| 7 | +import com.stripe.model.StripeObject; |
7 | 8 | import com.stripe.net.ApiRequest;
|
8 | 9 | import com.stripe.net.ApiRequestParams;
|
9 | 10 | import com.stripe.net.ApiResource;
|
10 | 11 | import com.stripe.net.BaseAddress;
|
11 | 12 | import com.stripe.net.RequestOptions;
|
| 13 | +import com.stripe.net.StripeResponseGetter; |
12 | 14 | import com.stripe.param.issuing.DisputeSettlementDetailListParams;
|
13 | 15 | import com.stripe.param.issuing.DisputeSettlementDetailRetrieveParams;
|
14 | 16 | import java.util.Map;
|
@@ -80,6 +82,10 @@ public class DisputeSettlementDetail extends ApiResource implements HasId {
|
80 | 82 | @SerializedName("network")
|
81 | 83 | String network;
|
82 | 84 |
|
| 85 | + /** Details about the transaction, such as processing dates, set by the card network. */ |
| 86 | + @SerializedName("network_data") |
| 87 | + NetworkData networkData; |
| 88 | + |
83 | 89 | /**
|
84 | 90 | * String representing the object's type. Objects of the same type share the same value.
|
85 | 91 | *
|
@@ -185,4 +191,27 @@ public static DisputeSettlementDetail retrieve(
|
185 | 191 | options);
|
186 | 192 | return getGlobalResponseGetter().request(request, DisputeSettlementDetail.class);
|
187 | 193 | }
|
| 194 | + |
| 195 | + /** |
| 196 | + * For more details about NetworkData, please refer to the <a |
| 197 | + * href="https://docs.stripe.com/api">API Reference.</a> |
| 198 | + */ |
| 199 | + @Getter |
| 200 | + @Setter |
| 201 | + @EqualsAndHashCode(callSuper = false) |
| 202 | + public static class NetworkData extends StripeObject { |
| 203 | + /** |
| 204 | + * The date the transaction was processed by the card network. This can be different from the |
| 205 | + * date the seller recorded the transaction depending on when the acquirer submits the |
| 206 | + * transaction to the network. |
| 207 | + */ |
| 208 | + @SerializedName("processing_date") |
| 209 | + String processingDate; |
| 210 | + } |
| 211 | + |
| 212 | + @Override |
| 213 | + public void setResponseGetter(StripeResponseGetter responseGetter) { |
| 214 | + super.setResponseGetter(responseGetter); |
| 215 | + trySetResponseGetter(networkData, responseGetter); |
| 216 | + } |
188 | 217 | }
|
0 commit comments