Skip to content

Commit

Permalink
Merge pull request #16 from hellofresh/feature/FINCC-5874-venmo-profi…
Browse files Browse the repository at this point in the history
…le-id-option

Enable Venmo Transaction Options
  • Loading branch information
marijatrajkovahf authored May 28, 2024
2 parents 10e981d + 39b2477 commit 08c57bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ type TransactionOptions struct {
StoreShippingAddressInVault bool `xml:"store-shipping-address-in-vault,omitempty"`
HoldInEscrow bool `xml:"hold-in-escrow,omitempty"`
TransactionOptionsPaypalRequest *TransactionOptionsPaypalRequest `xml:"paypal,omitempty"`
TransactionOptionsVenmoRequest *TransactionOptionsVenmoRequest `xml:"venmo,omitempty"`
SkipAdvancedFraudChecking bool `xml:"skip_advanced_fraud_checking,omitempty"`
ThreeDSecure *TransactionOptionsThreeDSecureRequest `xml:"three-d-secure,omitempty"`
}
Expand All @@ -217,6 +218,10 @@ type TransactionOptionsPaypalRequest struct {
SupplementaryData map[string]string
}

type TransactionOptionsVenmoRequest struct {
ProfileId string `xml:"profile-id"`
}

func (r TransactionOptionsPaypalRequest) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
type transactionOptionsPaypalRequest TransactionOptionsPaypalRequest

Expand Down
1 change: 1 addition & 0 deletions transaction_venmo_account_details_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package braintree
Expand Down

0 comments on commit 08c57bf

Please sign in to comment.