@@ -103,31 +103,32 @@ type Transaction struct {
103103}
104104
105105type TransactionRequest struct {
106- XMLName string `xml:"transaction"`
107- CustomerID string `xml:"customer-id,omitempty"`
108- Type string `xml:"type,omitempty"`
109- Amount * Decimal `xml:"amount"`
110- OrderId string `xml:"order-id,omitempty"`
111- PaymentMethodToken string `xml:"payment-method-token,omitempty"`
112- PaymentMethodNonce string `xml:"payment-method-nonce,omitempty"`
113- MerchantAccountId string `xml:"merchant-account-id,omitempty"`
114- PlanId string `xml:"plan-id,omitempty"`
115- CreditCard * CreditCard `xml:"credit-card,omitempty"`
116- Customer * CustomerRequest `xml:"customer,omitempty"`
117- BillingAddress * Address `xml:"billing,omitempty"`
118- ShippingAddress * Address `xml:"shipping,omitempty"`
119- TaxAmount * Decimal `xml:"tax-amount,omitempty"`
120- TaxExempt bool `xml:"tax-exempt,omitempty"`
121- DeviceData string `xml:"device-data,omitempty"`
122- Options * TransactionOptions `xml:"options,omitempty"`
123- ServiceFeeAmount * Decimal `xml:"service-fee-amount,attr,omitempty"`
124- RiskData * RiskDataRequest `xml:"risk-data,omitempty"`
125- Descriptor * Descriptor `xml:"descriptor,omitempty"`
126- Channel string `xml:"channel,omitempty"`
127- CustomFields customfields.CustomFields `xml:"custom-fields,omitempty"`
128- PurchaseOrderNumber string `xml:"purchase-order-number,omitempty"`
129- TransactionSource TransactionSource `xml:"transaction-source,omitempty"`
130- LineItems TransactionLineItemRequests `xml:"line-items,omitempty"`
106+ XMLName string `xml:"transaction"`
107+ CustomerID string `xml:"customer-id,omitempty"`
108+ Type string `xml:"type,omitempty"`
109+ Amount * Decimal `xml:"amount"`
110+ OrderId string `xml:"order-id,omitempty"`
111+ SharedPaymentMethodToken string `xml:"shared-payment-method-token,omitempty"`
112+ PaymentMethodToken string `xml:"payment-method-token,omitempty"`
113+ PaymentMethodNonce string `xml:"payment-method-nonce,omitempty"`
114+ MerchantAccountId string `xml:"merchant-account-id,omitempty"`
115+ PlanId string `xml:"plan-id,omitempty"`
116+ CreditCard * CreditCard `xml:"credit-card,omitempty"`
117+ Customer * CustomerRequest `xml:"customer,omitempty"`
118+ BillingAddress * Address `xml:"billing,omitempty"`
119+ ShippingAddress * Address `xml:"shipping,omitempty"`
120+ TaxAmount * Decimal `xml:"tax-amount,omitempty"`
121+ TaxExempt bool `xml:"tax-exempt,omitempty"`
122+ DeviceData string `xml:"device-data,omitempty"`
123+ Options * TransactionOptions `xml:"options,omitempty"`
124+ ServiceFeeAmount * Decimal `xml:"service-fee-amount,attr,omitempty"`
125+ RiskData * RiskDataRequest `xml:"risk-data,omitempty"`
126+ Descriptor * Descriptor `xml:"descriptor,omitempty"`
127+ Channel string `xml:"channel,omitempty"`
128+ CustomFields customfields.CustomFields `xml:"custom-fields,omitempty"`
129+ PurchaseOrderNumber string `xml:"purchase-order-number,omitempty"`
130+ TransactionSource TransactionSource `xml:"transaction-source,omitempty"`
131+ LineItems TransactionLineItemRequests `xml:"line-items,omitempty"`
131132}
132133
133134type TransactionRefundRequest struct {
0 commit comments