1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00
invoiceninja/openapi/components/schemas/payment.yaml

90 lines
2.7 KiB
YAML
Raw Normal View History

2023-03-19 00:39:21 +01:00
Payment:
properties:
id:
description: 'The payment hashed id'
type: string
example: Opnel5aKBz
client_id:
description: 'The client hashed id'
type: string
example: Opnel5aKBz
invitation_id:
description: 'The invitation hashed id'
type: string
example: Opnel5aKBz
client_contact_id:
description: 'The client contact hashed id'
type: string
example: Opnel5aKBz
user_id:
description: 'The user hashed id'
type: string
example: Opnel5aKBz
type_id:
description: 'The Payment Type ID'
type: string
example: '1'
date:
description: 'The Payment date'
type: string
example: 1-1-2014
transaction_reference:
description: 'The transaction reference as defined by the payment gateway'
type: string
example: xcsSxcs124asd
assigned_user_id:
description: 'The assigned user hashed id'
type: string
example: Opnel5aKBz
private_notes:
description: 'The private notes of the payment'
type: string
example: 'The payment was refunded due to error'
is_manual:
description: 'Flags whether the payment was made manually or processed via a gateway'
type: boolean
example: true
is_deleted:
description: 'Defines if the payment has been deleted'
type: boolean
example: true
amount:
description: 'The amount of this payment'
type: number
example: 10
refunded:
description: 'The refunded amount of this payment'
type: number
example: 10
updated_at:
description: Timestamp
type: number
format: integer
example: '1434342123'
archived_at:
description: Timestamp
type: number
format: integer
example: '1434342123'
company_gateway_id:
description: 'The company gateway id'
type: string
example: '3'
paymentables:
$ref: '#/components/schemas/Paymentable'
invoices:
description: ''
type: array
items:
$ref: '#/components/schemas/InvoicePaymentable'
credits:
description: ''
type: array
items:
$ref: '#/components/schemas/CreditPaymentable'
2023-03-19 01:15:52 +01:00
number:
description: 'The payment number - is a unique alpha numeric number per payment per company'
type: string
example: PAY_101
2023-03-19 00:39:21 +01:00
type: object