Skip to content

Commit

Permalink
Add partner overrides to referral request (#124)
Browse files Browse the repository at this point in the history
* Add partner overrides to referral request

Add this object:
https://developer.paypal.com/docs/api/partner-referrals/v2/#definition-partner_configuration_override

* Update types.go
  • Loading branch information
chaseadams509 authored and roopakv committed Oct 11, 2019
1 parent bffc968 commit a6e6c7a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,10 +937,19 @@ type (
}

ReferralRequest struct {
TrackingID string `json:"tracking_id"`
Operations []Operation `json:"operations,omitempty"`
Products []string `json:"products,omitempty"`
LegalConsents []Consent `json:"legal_consents,omitempty"`
TrackingID string `json:"tracking_id"`
PartnerConfigOverride *PartnerConfigOverride `json:"partner_config_override,omitemtpy"`
Operations []Operation `json:"operations,omitempty"`
Products []string `json:"products,omitempty"`
LegalConsents []Consent `json:"legal_consents,omitempty"`
}

PartnerConfigOverride struct {
PartnerLogoURL string `json:"partner_logo_url,omitempty"`
ReturnURL string `json:"return_url,omitempty"`
ReturnURLDescription string `json:"return_url_description,omitempty"`
ActionRenewalURL string `json:"action_renewal_url,omitempty"`
ShowAddCreditCard *bool `json:"show_add_credit_card,omitempty"`
}

Operation struct {
Expand Down

0 comments on commit a6e6c7a

Please sign in to comment.