Skip to content

Commit

Permalink
Merge pull request #943 from stripe/remi-add-issuing-changes
Browse files Browse the repository at this point in the history
Add support for `Authentication` and `URL` on Issuing `Authorization`
  • Loading branch information
ob-stripe authored Sep 4, 2019
2 parents 2e4156f + 3cec7ff commit 3e92d63
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions issuing_authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ const (
IssuingAuthorizationStatusReversed IssuingAuthorizationStatus = "reversed"
)

// IssuingAuthorizationVerificationDataAuthentication is the list of possible values for the result
// of an authentication on an issuing authorization.
type IssuingAuthorizationVerificationDataAuthentication string

// List of values that IssuingAuthorizationVerificationDataCheck can take.
const (
IssuingAuthorizationVerificationDataAuthenticationExempt IssuingAuthorizationVerificationDataAuthentication = "exempt"
IssuingAuthorizationVerificationDataAuthenticationFailure IssuingAuthorizationVerificationDataAuthentication = "failure"
IssuingAuthorizationVerificationDataAuthenticationNone IssuingAuthorizationVerificationDataAuthentication = "none"
IssuingAuthorizationVerificationDataAuthenticationSuccess IssuingAuthorizationVerificationDataAuthentication = "success"
)

// IssuingAuthorizationVerificationDataCheck is the list of possible values for result of a check
// for verification data on an issuing authorization.
type IssuingAuthorizationVerificationDataCheck string
Expand Down Expand Up @@ -99,9 +111,10 @@ type IssuingAuthorizationRequestHistory struct {

// IssuingAuthorizationVerificationData is the resource representing verification data on an issuing authorization.
type IssuingAuthorizationVerificationData struct {
AddressLine1Check IssuingAuthorizationVerificationDataCheck `json:"address_line1_check"`
AddressZipCheck IssuingAuthorizationVerificationDataCheck `json:"address_zip_check"`
CVCCheck IssuingAuthorizationVerificationDataCheck `json:"cvc_check"`
AddressLine1Check IssuingAuthorizationVerificationDataCheck `json:"address_line1_check"`
AddressZipCheck IssuingAuthorizationVerificationDataCheck `json:"address_zip_check"`
Authentication IssuingAuthorizationVerificationDataAuthentication `json:"authentication"`
CVCCheck IssuingAuthorizationVerificationDataCheck `json:"cvc_check"`
}

// IssuingAuthorization is the resource representing a Stripe issuing authorization.
Expand Down Expand Up @@ -140,6 +153,7 @@ type IssuingMerchantData struct {
NetworkID string `json:"network_id"`
PostalCode string `json:"postal_code"`
State string `json:"state"`
URL string `json:"url"`
}

// IssuingAuthorizationList is a list of issuing authorizations as retrieved from a list endpoint.
Expand Down

0 comments on commit 3e92d63

Please sign in to comment.