Skip to content

Commit

Permalink
Descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
gee-m committed Sep 27, 2016
1 parent b619a5b commit c0a890d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type Subscription struct {
Options *SubscriptionOptions `xml:"options,omitempty"`
// AddOns []interface{} `xml:"add-ons,omitempty"`
// Descriptor interface{} `xml:"descriptor,omitempty"` // struct with name, phone
Descriptor *Descriptor `xml:"descriptor,omitempty"`
}

type Subscriptions struct {
Expand Down
9 changes: 8 additions & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ type Transaction struct {
ProcessorAuthorizationCode string `xml:"processor-authorization-code,omitempty"`
SettlementBatchId string `xml:"settlement-batch-id,omitempty"`

SubscriptionID string `xml:"subscription-id,omitempty"`
SubscriptionID string `xml:"subscription-id,omitempty"`
Descriptor *Descriptor `xml:"descriptor,omitempty"`
}

type Descriptor struct {
Name string `xml:"name"`
Phone string `xml:"phone"`
URL string `xml:"url"`
}

// TODO: not all transaction fields are implemented yet, here are the missing fields (add on demand)
Expand Down

0 comments on commit c0a890d

Please sign in to comment.