Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 34 additions & 10 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30942,6 +30942,8 @@ components:
- card_holder_name
- card_nickname
- user_id
- user_full_name
- user_email
- amount
- percentage
- change_percentage
Expand Down Expand Up @@ -30971,6 +30973,18 @@ components:
description: |
This id provided by Sage Exp Mgmt to identify a user. This can be null if the corporate card is not assigned to any user.
example: sdfd2391
user_full_name:
type: string
nullable: true
description: |
Full name of the user assigned to the corporate card. Can be null if card is not assigned.
example: John Doe
user_email:
type: string
nullable: true
description: |
Email of the user assigned to the corporate card. Can be null if card is not assigned.
example: john.doe@example.com
amount:
$ref: '#/components/schemas/amount'
percentage:
Expand Down Expand Up @@ -33504,6 +33518,12 @@ components:
statement_mapping:
type: object
properties:
id:
type: string
nullable: true
description: |
Specifies the id of the statement mapping.
example: stmpabcd1234
description_column:
type: string
description: |
Expand Down Expand Up @@ -33578,19 +33598,12 @@ components:
example: VISA
nullable: true
required:
- description_column
- transaction_date_column
- transaction_id_column
- amount_column
- card_number_column
- merchant_column
- foreign_amount_column
- foreign_currency_column
- post_date_column
- bank_name
- is_debit_positive
- name
- card_network
ignored_line_item_ids:
type: array
items:
Expand All @@ -33604,10 +33617,17 @@ components:
description: |
Card number from statement can be passed to get transactions only from specific card
example: xxx5-4543
start_date:
$ref: '#/components/schemas/timestamptz_utc'
description: |
Start date of the statement period
end_date:
$ref: '#/components/schemas/timestamptz_utc'
description: |
End date of the statement period
required:
- id
- statement_mapping
- ignored_line_item_ids
preview_out:
properties:
no_of_debit:
Expand Down Expand Up @@ -34060,6 +34080,12 @@ components:
statement_mapping:
type: object
properties:
id:
type: string
nullable: true
description: |
Specifies the id of the statement mapping.
example: stmpabcd1234
description_column:
type: string
description: |
Expand Down Expand Up @@ -34152,12 +34178,10 @@ components:
$ref: '#/components/schemas/timestamptz_utc'
description: |
Start date of the statement period
nullable: true
end_date:
$ref: '#/components/schemas/timestamptz_utc'
description: |
End date of the statement period
nullable: true
card_mapping:
$ref: '#/components/schemas/card_mapping_in'
reconciliation_method:
Expand Down
14 changes: 14 additions & 0 deletions src/components/schemas/spend_overview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ spend_overview_by_corporate_card_data_out:
- card_holder_name
- card_nickname
- user_id
- user_full_name
- user_email
- amount
- percentage
- change_percentage
Expand Down Expand Up @@ -160,6 +162,18 @@ spend_overview_by_corporate_card_data_out:
description: |
This id provided by Sage Exp Mgmt to identify a user. This can be null if the corporate card is not assigned to any user.
example: 'sdfd2391'
user_full_name:
type: string
nullable: true
description: |
Full name of the user assigned to the corporate card. Can be null if card is not assigned.
example: John Doe
user_email:
type: string
nullable: true
description: |
Email of the user assigned to the corporate card. Can be null if card is not assigned.
example: john.doe@example.com
amount:
$ref: './fields.yaml#/amount'
percentage:
Expand Down
30 changes: 20 additions & 10 deletions src/components/schemas/statements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ preview_from_statement_in:
statement_mapping:
type: object
properties:
id:
type: string
nullable: true
description: |
Specifies the id of the statement mapping.
example: stmpabcd1234
description_column:
type: string
description: |
Expand Down Expand Up @@ -362,19 +368,12 @@ preview_from_statement_in:
example: VISA
nullable: true
required:
- description_column
- transaction_date_column
- transaction_id_column
- amount_column
- card_number_column
- merchant_column
- foreign_amount_column
- foreign_currency_column
- post_date_column
- bank_name
- is_debit_positive
- name
- card_network
ignored_line_item_ids:
type: array
items:
Expand All @@ -388,10 +387,17 @@ preview_from_statement_in:
description: |
Card number from statement can be passed to get transactions only from specific card
example: xxx5-4543
start_date:
$ref: './fields.yaml#/timestamptz_utc'
description: |
Start date of the statement period
end_date:
$ref: './fields.yaml#/timestamptz_utc'
description: |
End date of the statement period
required:
- id
- statement_mapping
- ignored_line_item_ids

summary_from_statement_in:
type: object
Expand Down Expand Up @@ -789,6 +795,12 @@ reconcile_from_statement_in:
statement_mapping:
type: object
properties:
id:
type: string
nullable: true
description: |
Specifies the id of the statement mapping.
example: stmpabcd1234
description_column:
type: string
description: |
Expand Down Expand Up @@ -881,12 +893,10 @@ reconcile_from_statement_in:
$ref: './fields.yaml#/timestamptz_utc'
description: |
Start date of the statement period
nullable: true
end_date:
$ref: './fields.yaml#/timestamptz_utc'
description: |
End date of the statement period
nullable: true
card_mapping:
$ref: '#/card_mapping_in'
reconciliation_method:
Expand Down
Loading