Skip to content

Add support for network on Charge and funding_method on SourceTransaction #912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2019
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: 14 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,13 @@ public static class Card extends StripeObject {
@SerializedName("moto")
Boolean moto;

/**
* Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`,
* `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
@SerializedName("network")
String network;

/** Populated if this transaction used 3D Secure authentication. */
@SerializedName("three_d_secure")
ThreeDSecure threeDSecure;
Expand Down Expand Up @@ -1507,6 +1514,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("last4")
String last4;

/**
* Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`,
* `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
@SerializedName("network")
String network;

/**
* How were card details read in this transaction. Can be contact_emv, contactless_emv,
* magnetic_stripe_fallback, magnetic_stripe_track2, or contactless_magstripe_mode
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/SourceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ public static class GbpCreditTransferData extends StripeObject {
@SerializedName("fingerprint")
String fingerprint;

/**
* The credit transfer rails the sender used to push money. The three rails are: Faster
* Payments, BACS, and CHAPS.
*/
@SerializedName("funding_method")
String fundingMethod;

/** Last 4 digits of account number associated with the transfer. */
@SerializedName("last4")
String last4;
Expand Down