@@ -162,6 +162,42 @@ type (
162
162
ApplicationContext ApplicationContext `json:"application_context,omitempty"`
163
163
}
164
164
165
+ // https://developer.paypal.com/docs/api/payments/v2/#definition-platform_fee
166
+ PlatformFee struct {
167
+ Amount * Money `json:"amount,omitempty"`
168
+ Payee * PayeeForOrders `json:"payee,omitempty"`
169
+ }
170
+
171
+ // https://developer.paypal.com/docs/api/payments/v2/#definition-payment_instruction
172
+ PaymentInstruction struct {
173
+ PlatformFees []PlatformFee `json:"platform_fees,omitempty"`
174
+ DisbursementMode string `json:"disbursement_mode,omitempty"`
175
+ }
176
+
177
+ // https://developer.paypal.com/docs/api/payments/v2/#authorizations_capture
178
+ PaymentCaptureRequest struct {
179
+ InvoiceID string `json:"invoice_id,omitempty"`
180
+ NoteToPayer string `json:"note_to_payer,omitempty"`
181
+ SoftDescriptor string `json:"soft_descriptor,omitempty"`
182
+ Amount * Money `json:"amount,omitempty"`
183
+ FinalCapture bool `json:"final_capture,omitempty"`
184
+ }
185
+
186
+ // https://developer.paypal.com/docs/api/payments/v2/#definition-capture_status_details
187
+ CaptureStatusDetails struct {
188
+ Reason string `json:"reason,omitempty"`
189
+ }
190
+
191
+ PaymentCaptureResponse struct {
192
+ Status string `json:"status,omitempty"`
193
+ StatusDetails * CaptureStatusDetails `json:"status_details,omitempty"`
194
+ ID string `json:"id,omitempty"`
195
+ Amount * Money `json:"amount,omitempty"`
196
+ InvoiceID string `json:"invoice_id,omitempty"`
197
+ FinalCapture bool `json:"final_capture,omitempty"`
198
+ DisbursementMode string `json:"disbursement_mode,omitempty"`
199
+ }
200
+
165
201
// CaptureOrderRequest - https://developer.paypal.com/docs/api/orders/v2/#orders_capture
166
202
CaptureOrderRequest struct {
167
203
PaymentSource * PaymentSource `json:"payment_source"`
0 commit comments