Skip to content

Commit

Permalink
Merge branch 'main' into roshan_86cwk5n8t
Browse files Browse the repository at this point in the history
  • Loading branch information
RoshanMhatre committed Oct 10, 2024
2 parents 7161ab6 + 8ea4e92 commit 2957108
Show file tree
Hide file tree
Showing 7 changed files with 608 additions and 7 deletions.
194 changes: 191 additions & 3 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4158,7 +4158,36 @@ components:
minItems: 0
maxItems: 10
items:
$ref: '#/components/schemas/location'
type: object
nullable: true
properties:
city:
type: string
nullable: true
example: London
state:
type: string
nullable: true
example: London
display:
type: string
nullable: true
country:
type: string
nullable: true
example: United Kingdom
formatted_address:
type: string
nullable: true
example: 221 Baker St, Marylebone, London, United Kingdom
latitude:
type: number
nullable: true
example: 12.971599
longitude:
type: number
nullable: true
example: 77.594566
admin_expense_in:
type: object
additionalProperties: false
Expand Down Expand Up @@ -4210,6 +4239,8 @@ components:
- Admins can't assign the expense to self.
source:
$ref: '#/components/schemas/source'
code:
$ref: '#/components/schemas/code'
merchant:
$ref: '#/components/schemas/merchant'
foreign_currency:
Expand Down Expand Up @@ -4281,6 +4312,41 @@ components:
List of file ids to attach to the expense. <br>
To add new files to the expense, send the list of file ids to be attached. <br>
To remove files from the expense, send the list of all file ids except which you want to remove. <br>
hotel_is_breakfast_provided:
type: boolean
nullable: true
description: |
This field is applicable for only `Hotel` category.
mileage_rate_id:
allOf:
- $ref: '#/components/schemas/fk_integer'
description: |
Specific to mileage expense. This represents the Mileage's rate id given by Fyle
during creation of mileage rate for which this expense is created.
nullable: true
example: 9080
mileage_is_round_trip:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
commute_details_id:
type: integer
nullable: true
description: |
Commute details id of the expense. This id is provided by Fyle to identify a commute details.
example: 1234
commute_deduction:
type: string
nullable: true
maxLength: 12
description: |
Commute deduction type of the expense.
example: ONE_WAY
enum:
- ONE_WAY
- ROUND_TRIP
- NO_DEDUCTION
- null
expenses_in:
type: array
additionalProperties: false
Expand Down Expand Up @@ -12328,7 +12394,7 @@ components:
- post_date_column
- is_auto_created
- card_network
card_transaction_from_statement_in:
preview_from_statement_in:
type: object
properties:
id:
Expand Down Expand Up @@ -12441,6 +12507,11 @@ components:
This specifies list of statement line items which are to be created as RTF missing transactions.
example:
- stlisfdfadssd
statement_card_number:
type: string
description: |
Card number from statement can be passed to get transactions only from specific card
example: xxx5-4543
required:
- id
- statement_mapping
Expand Down Expand Up @@ -12549,6 +12620,123 @@ components:
- no_of_debit
- no_of_credit
- no_of_transactions
card_transaction_from_statement_in:
type: object
properties:
id:
allOf:
- $ref: '#/components/schemas/id_string'
example: stmtadfdsdf
statement_mapping:
type: object
properties:
description_column:
type: string
description: |
Specifies the mapping of description column on the statement
nullable: true
example: description
transaction_date_column:
type: string
description: |
Specifies the mapping of transaction date on the statement.
example: txn date
transaction_id_column:
type: string
description: |
Specifies the mapping of transaction id / unique id on the statement.
example: reference number
nullable: true
amount_column:
type: string
description: |
Specifies the mapping of amount on the statement.
example: amount
card_number_column:
type: string
description: |
Specifies the mapping of card number on the statement.
example: account number
merchant_column:
type: string
description: |
Specifies the mapping of merchant on the statement.
example: Amazon
foreign_amount_column:
type: string
description: |
Specifies the mapping of foreign amount on the statement.
example: foreign amount
nullable: true
foreign_currency_column:
type: string
description: |
Specifies the mapping of foreign currency on the statement.
example: foreign currency
nullable: true
post_date_column:
type: string
description: |
Specifies the header name of the post date column in the statement.
example: post date
nullable: true
bank_name:
type: string
description: |
Specifies the bank name of the statement
example: American Express
is_debit_positive:
type: boolean
description: |
Specifies the representation of the the amount in the statement, if true then the amount represented by |
positive sign are debits, and if false then the amount represented by negative sign are debits.
example: true
name:
type: string
description: |
Specifies the mapping name.
example: USD
nullable: true
card_network:
type: string
description: |
Specifies the credit card network used by the card
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:
type: string
description: |
This specifies list of statement line items to be ignored in the statement.
example:
- stlisfdfadssd
rtf_missing_line_item_ids:
type: array
items:
type: string
description: |
This specifies list of statement line items which are to be created as RTF missing transactions.
example:
- stlisfdfadssd
required:
- id
- statement_mapping
- ignored_line_item_ids
card_stats_out:
properties:
missing_transactions_count:
Expand Down Expand Up @@ -22844,7 +23032,7 @@ paths:
type: object
properties:
data:
$ref: '#/components/schemas/card_transaction_from_statement_in'
$ref: '#/components/schemas/preview_from_statement_in'
required:
- data
responses:
Expand Down
77 changes: 76 additions & 1 deletion reference/approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,36 @@ components:
minItems: 0
maxItems: 10
items:
$ref: '#/components/schemas/location'
type: object
nullable: true
properties:
city:
type: string
nullable: true
example: London
state:
type: string
nullable: true
example: London
display:
type: string
nullable: true
country:
type: string
nullable: true
example: United Kingdom
formatted_address:
type: string
nullable: true
example: 221 Baker St, Marylebone, London, United Kingdom
latitude:
type: number
nullable: true
example: 12.971599
longitude:
type: number
nullable: true
example: 77.594566
custom_fields:
type: array
description: |
Expand Down Expand Up @@ -2437,6 +2466,8 @@ components:
example: '2020-06-01T01:18:19.292-08:00'
source:
$ref: '#/components/schemas/source'
code:
$ref: '#/components/schemas/code'
merchant:
$ref: '#/components/schemas/merchant'
foreign_currency:
Expand Down Expand Up @@ -2499,6 +2530,50 @@ components:
$ref: '#/components/schemas/locations'
custom_fields:
$ref: '#/components/schemas/custom_fields'
file_ids:
type: array
items:
allOf:
- $ref: '#/components/schemas/fk_string'
description: |
List of file ids to attach to the expense. <br>
To add new files to the expense, send the list of file ids to be attached. <br>
To remove files from the expense, send the list of all file ids except which you want to remove. <br>
hotel_is_breakfast_provided:
type: boolean
nullable: true
description: |
This field is applicable for only `Hotel` category.
mileage_rate_id:
allOf:
- $ref: '#/components/schemas/fk_integer'
description: |
Specific to mileage expense. This represents the Mileage's rate id given by Fyle
during creation of mileage rate for which this expense is created.
nullable: true
example: 9080
mileage_is_round_trip:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
commute_details_id:
type: integer
nullable: true
description: |
Commute details id of the expense. This id is provided by Fyle to identify a commute details.
example: 1234
commute_deduction:
type: string
nullable: true
maxLength: 12
description: |
Commute deduction type of the expense.
example: ONE_WAY
enum:
- ONE_WAY
- ROUND_TRIP
- NO_DEDUCTION
- null
expenses_in:
type: array
additionalProperties: false
Expand Down
Loading

0 comments on commit 2957108

Please sign in to comment.