@@ -82,33 +82,36 @@ type (
82
82
// Request
83
83
type (
84
84
PaymentRequest struct {
85
- Source payments.PaymentSource `json:"source,omitempty"`
86
- Amount int64 `json:"amount,omitempty"`
87
- Currency common.Currency `json:"currency,omitempty"`
88
- PaymentType payments.PaymentType `json:"payment_type,omitempty"`
89
- MerchantInitiated bool `json:"merchant_initiated"`
90
- Reference string `json:"reference,omitempty"`
91
- Description string `json:"description,omitempty"`
92
- AuthorizationType AuthorizationType `json:"authorization_type,omitempty"`
93
- Capture bool `json:"capture"`
94
- CaptureOn * time.Time `json:"capture_on,omitempty"`
95
- Customer * common.CustomerRequest `json:"customer,omitempty"`
96
- BillingDescriptor * payments.BillingDescriptor `json:"billing_descriptor,omitempty"`
97
- ShippingDetails * payments.ShippingDetails `json:"shipping,omitempty"`
98
- ThreeDsRequest * payments.ThreeDsRequest `json:"3ds,omitempty"`
99
- PreviousPaymentId string `json:"previous_payment_id,omitempty"`
100
- ProcessingChannelId string `json:"processing_channel_id,omitempty"`
101
- Risk * payments.RiskRequest `json:"risk,omitempty"`
102
- SuccessUrl string `json:"success_url,omitempty"`
103
- FailureUrl string `json:"failure_url,omitempty"`
104
- PaymentIp string `json:"payment_ip,omitempty"`
105
- Sender Sender `json:"sender,omitempty"`
106
- Recipient * payments.PaymentRecipient `json:"recipient,omitempty"`
107
- Marketplace * common.MarketplaceData `json:"marketplace,omitempty"`
108
- AmountAllocations []common.AmountAllocations `json:"amount_allocations,omitempty"`
109
- Processing * payments.ProcessingSettings `json:"processing,omitempty"`
110
- Items []payments.Product `json:"items,omitempty"`
111
- Metadata map [string ]interface {} `json:"metadata,omitempty"`
85
+ PaymentContextId string `json:"payment_context_id,omitempty"`
86
+ Source payments.PaymentSource `json:"source,omitempty"`
87
+ Amount int64 `json:"amount,omitempty"`
88
+ Currency common.Currency `json:"currency,omitempty"`
89
+ PaymentType payments.PaymentType `json:"payment_type,omitempty"`
90
+ MerchantInitiated bool `json:"merchant_initiated"`
91
+ Reference string `json:"reference,omitempty"`
92
+ Description string `json:"description,omitempty"`
93
+ AuthorizationType AuthorizationType `json:"authorization_type,omitempty"`
94
+ Capture bool `json:"capture"`
95
+ CaptureOn * time.Time `json:"capture_on,omitempty"`
96
+ Customer * common.CustomerRequest `json:"customer,omitempty"`
97
+ BillingDescriptor * payments.BillingDescriptor `json:"billing_descriptor,omitempty"`
98
+ ShippingDetails * payments.ShippingDetails `json:"shipping,omitempty"`
99
+ Segment * payments.PaymentSegment `json:"segment,omitempty"`
100
+ ThreeDsRequest * payments.ThreeDsRequest `json:"3ds,omitempty"`
101
+ PreviousPaymentId string `json:"previous_payment_id,omitempty"`
102
+ ProcessingChannelId string `json:"processing_channel_id,omitempty"`
103
+ Risk * payments.RiskRequest `json:"risk,omitempty"`
104
+ SuccessUrl string `json:"success_url,omitempty"`
105
+ FailureUrl string `json:"failure_url,omitempty"`
106
+ PaymentIp string `json:"payment_ip,omitempty"`
107
+ Sender Sender `json:"sender,omitempty"`
108
+ Recipient * payments.PaymentRecipient `json:"recipient,omitempty"`
109
+ Marketplace * common.MarketplaceData `json:"marketplace,omitempty"`
110
+ AmountAllocations []common.AmountAllocations `json:"amount_allocations,omitempty"`
111
+ Processing * payments.ProcessingSettings `json:"processing,omitempty"`
112
+ Items []payments.Product `json:"items,omitempty"`
113
+ Retry * payments.PaymentRetryRequest `json:"retry,omitempty"`
114
+ Metadata map [string ]interface {} `json:"metadata,omitempty"`
112
115
}
113
116
114
117
PayoutRequest struct {
@@ -150,27 +153,28 @@ type (
150
153
type (
151
154
PaymentResponse struct {
152
155
HttpMetadata common.HttpMetadata
153
- ActionId string `json:"action_id,omitempty"`
154
- Amount int64 `json:"amount,omitempty"`
155
- Approved bool `json:"approved,omitempty"`
156
- AuthCode string `json:"auth_code,omitempty"`
157
- Id string `json:"id,omitempty"`
158
- Currency common.Currency `json:"currency,omitempty"`
159
- Customer * common.CustomerResponse `json:"customer,omitempty"`
160
- Source * SourceResponse `json:"source,omitempty"`
161
- Status payments.PaymentStatus `json:"status,omitempty"`
162
- ThreeDs * payments.ThreeDsEnrollment `json:"3ds,omitempty"`
163
- Reference string `json:"reference,omitempty"`
164
- ResponseCode string `json:"response_code,omitempty"`
165
- ResponseSummary string `json:"response_summary,omitempty"`
166
- Risk * payments.RiskAssessment `json:"risk,omitempty"`
167
- ProcessedOn * time.Time `json:"processed_on,omitempty"`
168
- ExpiresOn * time.Time `json:"expires_on,omitempty"`
169
- Balances * PaymentResponseBalances `json:"balances,omitempty"`
170
- Processing * payments.PaymentProcessing `json:"processing,omitempty"`
171
- Eci string `json:"eci,omitempty"`
172
- SchemeId string `json:"scheme_id,omitempty"`
173
- Links map [string ]common.Link `json:"_links"`
156
+ ActionId string `json:"action_id,omitempty"`
157
+ Amount int64 `json:"amount,omitempty"`
158
+ Approved bool `json:"approved,omitempty"`
159
+ AuthCode string `json:"auth_code,omitempty"`
160
+ Id string `json:"id,omitempty"`
161
+ Currency common.Currency `json:"currency,omitempty"`
162
+ Customer * common.CustomerResponse `json:"customer,omitempty"`
163
+ Source * SourceResponse `json:"source,omitempty"`
164
+ Status payments.PaymentStatus `json:"status,omitempty"`
165
+ ThreeDs * payments.ThreeDsEnrollment `json:"3ds,omitempty"`
166
+ Reference string `json:"reference,omitempty"`
167
+ ResponseCode string `json:"response_code,omitempty"`
168
+ ResponseSummary string `json:"response_summary,omitempty"`
169
+ Risk * payments.RiskAssessment `json:"risk,omitempty"`
170
+ ProcessedOn * time.Time `json:"processed_on,omitempty"`
171
+ ExpiresOn * time.Time `json:"expires_on,omitempty"`
172
+ Balances * PaymentResponseBalances `json:"balances,omitempty"`
173
+ Processing * payments.PaymentProcessing `json:"processing,omitempty"`
174
+ Eci string `json:"eci,omitempty"`
175
+ SchemeId string `json:"scheme_id,omitempty"`
176
+ Retry * payments.PaymentRetryResponse `json:"retry,omitempty"`
177
+ Links map [string ]common.Link `json:"_links"`
174
178
}
175
179
176
180
PayoutResponse struct {
0 commit comments