Skip to content

Commit

Permalink
fix gateway code update (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
everdance authored and cristiangraz committed May 13, 2019
1 parent 567d924 commit ecb9150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ type Subscription struct {
AutoRenew bool `xml:"auto_renew,omitempty"`
RenewalBillingCycles NullInt `xml:"renewal_billing_cycles,omitempty"`
RemainingBillingCycles NullInt `xml:"remaining_billing_cycles,omitempty"`
GatewayCode string `xml:"gateway_code,omitempty"`
CustomFields *CustomFields `xml:"custom_fields,omitempty"`
}

Expand Down Expand Up @@ -192,14 +193,14 @@ type UpdateSubscription struct {
NetTerms NullInt `xml:"net_terms,omitempty"`
PONumber string `xml:"po_number,omitempty"`
SubscriptionAddOns *[]SubscriptionAddOn `xml:"subscription_add_ons>subscription_add_on,omitempty"`
GatewayCode string `xml:"gateway_code,omitempty"`
CustomFields *CustomFields `xml:"custom_fields,omitempty"`
}

// SubscriptionNotes is used to update a subscription's notes.
type SubscriptionNotes struct {
XMLName xml.Name `xml:"subscription"`
TermsAndConditions string `xml:"terms_and_conditions,omitempty"`
GatewayCode string `xml:"gateway_code,omitempty"`
CustomerNotes string `xml:"customer_notes,omitempty"`
VATReverseChargeNotes string `xml:"vat_reverse_charge_notes,omitempty"`
}
Expand Down

0 comments on commit ecb9150

Please sign in to comment.