Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .mock/definition/accounting/accountDetails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /accounting/v1/account-details
method: GET
auth: true
auth:
- tokenAuth: []
docs: Get details for a linked account.
source:
openapi: openapi/openapi.yml
Expand Down
3 changes: 2 additions & 1 deletion .mock/definition/accounting/accountToken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /accounting/v1/account-token/{public_token}
method: GET
auth: true
auth:
- tokenAuth: []
docs: >-
Returns the account token for the end user with the provided public
token.
Expand Down
13 changes: 11 additions & 2 deletions .mock/definition/accounting/accountingPeriods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
list:
path: /accounting/v1/accounting-periods
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of `AccountingPeriod` objects.
source:
openapi: openapi/openapi.yml
Expand Down Expand Up @@ -45,6 +46,10 @@ service:
examples:
- query-parameters:
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
include_deleted_data: true
include_remote_data: true
include_shell_data: true
page_size: 1
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -72,7 +77,8 @@ service:
retrieve:
path: /accounting/v1/accounting-periods/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `AccountingPeriod` object with the given `id`.
source:
openapi: openapi/openapi.yml
Expand All @@ -98,6 +104,9 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
include_remote_data: true
include_shell_data: true
headers:
X-Account-Token: X-Account-Token
response:
Expand Down
64 changes: 57 additions & 7 deletions .mock/definition/accounting/accounts.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
types:
AccountsListRequestClassification:
enum:
- value: ''
name: EMPTY
- ASSET
- EQUITY
- EXPENSE
- LIABILITY
- REVENUE
source:
openapi: openapi/openapi.yml
AccountsListRequestRemoteFields:
enum:
- classification
Expand All @@ -15,6 +26,15 @@ types:
- status
source:
openapi: openapi/openapi.yml
AccountsListRequestStatus:
enum:
- value: ''
name: EMPTY
- ACTIVE
- INACTIVE
- PENDING
source:
openapi: openapi/openapi.yml
AccountsRetrieveRequestRemoteFields:
enum:
- classification
Expand All @@ -40,7 +60,8 @@ service:
list:
path: /accounting/v1/accounts
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of `Account` objects.
source:
openapi: openapi/openapi.yml
Expand All @@ -51,7 +72,7 @@ service:
type: optional<string>
docs: If provided, will only return accounts with the passed in enum.
classification:
type: optional<string>
type: optional<AccountsListRequestClassification>
docs: If provided, will only return accounts with this classification.
company_id:
type: optional<string>
Expand Down Expand Up @@ -120,15 +141,32 @@ service:
enum values. [Learn
more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
status:
type: optional<string>
type: optional<AccountsListRequestStatus>
docs: If provided, will only return accounts with this status.
response:
docs: ''
type: root.PaginatedAccountList
status-code: 200
examples:
- query-parameters:
account_type: account_type
classification: ''
company_id: company_id
created_after: '2024-01-15T09:30:00Z'
created_before: '2024-01-15T09:30:00Z'
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
expand: company
include_deleted_data: true
include_remote_data: true
include_shell_data: true
modified_after: '2024-01-15T09:30:00Z'
modified_before: '2024-01-15T09:30:00Z'
name: name
page_size: 1
remote_fields: classification
remote_id: remote_id
show_enum_origins: classification
status: ''
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -164,7 +202,8 @@ service:
create:
path: /accounting/v1/accounts
method: POST
auth: true
auth:
- tokenAuth: []
docs: Creates an `Account` object with the given values.
source:
openapi: openapi/openapi.yml
Expand All @@ -188,7 +227,10 @@ service:
type: root.AccountResponse
status-code: 201
examples:
- headers:
- query-parameters:
is_debug_mode: true
run_async: true
headers:
X-Account-Token: X-Account-Token
request:
model: {}
Expand Down Expand Up @@ -243,7 +285,8 @@ service:
retrieve:
path: /accounting/v1/accounts/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `Account` object with the given `id`.
source:
openapi: openapi/openapi.yml
Expand Down Expand Up @@ -284,6 +327,12 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
expand: company
include_remote_data: true
include_shell_data: true
remote_fields: classification
show_enum_origins: classification
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -316,7 +365,8 @@ service:
metaPostRetrieve:
path: /accounting/v1/accounts/meta/post
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns metadata for `Account` POSTs.
source:
openapi: openapi/openapi.yml
Expand Down
8 changes: 7 additions & 1 deletion .mock/definition/accounting/addresses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /accounting/v1/addresses/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `Address` object with the given `id`.
source:
openapi: openapi/openapi.yml
Expand Down Expand Up @@ -43,6 +44,11 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
include_remote_data: true
include_shell_data: true
remote_fields: type
show_enum_origins: type
headers:
X-Account-Token: X-Account-Token
response:
Expand Down
6 changes: 4 additions & 2 deletions .mock/definition/accounting/asyncPassthrough.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
create:
path: /accounting/v1/async-passthrough
method: POST
auth: true
auth:
- tokenAuth: []
docs: >-
Asynchronously pull data from an endpoint not currently supported by
Merge.
Expand All @@ -32,7 +33,8 @@ service:
retrieve:
path: /accounting/v1/async-passthrough/{async_passthrough_receipt_id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Retrieves data from earlier async-passthrough POST request
source:
openapi: openapi/openapi.yml
Expand Down
3 changes: 2 additions & 1 deletion .mock/definition/accounting/asyncTasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /accounting/v1/async-tasks/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `AsyncPostTask` object with the given `id`.
source:
openapi: openapi/openapi.yml
Expand Down
30 changes: 25 additions & 5 deletions .mock/definition/accounting/attachments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
list:
path: /accounting/v1/attachments
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of `AccountingAttachment` objects.
source:
openapi: openapi/openapi.yml
Expand Down Expand Up @@ -70,7 +71,17 @@ service:
status-code: 200
examples:
- query-parameters:
company_id: company_id
created_after: '2024-01-15T09:30:00Z'
created_before: '2024-01-15T09:30:00Z'
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
include_deleted_data: true
include_remote_data: true
include_shell_data: true
modified_after: '2024-01-15T09:30:00Z'
modified_before: '2024-01-15T09:30:00Z'
page_size: 1
remote_id: remote_id
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -99,7 +110,8 @@ service:
create:
path: /accounting/v1/attachments
method: POST
auth: true
auth:
- tokenAuth: []
docs: Creates an `AccountingAttachment` object with the given values.
source:
openapi: openapi/openapi.yml
Expand All @@ -123,7 +135,10 @@ service:
type: root.AccountingAttachmentResponse
status-code: 201
examples:
- headers:
- query-parameters:
is_debug_mode: true
run_async: true
headers:
X-Account-Token: X-Account-Token
request:
model: {}
Expand Down Expand Up @@ -171,7 +186,8 @@ service:
retrieve:
path: /accounting/v1/attachments/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `AccountingAttachment` object with the given `id`.
source:
openapi: openapi/openapi.yml
Expand All @@ -197,6 +213,9 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
include_remote_data: true
include_shell_data: true
headers:
X-Account-Token: X-Account-Token
response:
Expand All @@ -222,7 +241,8 @@ service:
metaPostRetrieve:
path: /accounting/v1/attachments/meta/post
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns metadata for `AccountingAttachment` POSTs.
source:
openapi: openapi/openapi.yml
Expand Down
8 changes: 7 additions & 1 deletion .mock/definition/accounting/auditTrail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
list:
path: /accounting/v1/audit-trail
method: GET
auth: true
auth:
- tokenAuth: []
docs: Gets a list of audit trail events.
source:
openapi: openapi/openapi.yml
Expand Down Expand Up @@ -77,6 +78,11 @@ service:
examples:
- query-parameters:
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
end_date: end_date
event_type: event_type
page_size: 1
start_date: start_date
user_email: user_email
headers:
X-Account-Token: '[object Object]'
response:
Expand Down
3 changes: 2 additions & 1 deletion .mock/definition/accounting/availableActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /accounting/v1/available-actions
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of models and actions available for an account.
source:
openapi: openapi/openapi.yml
Expand Down
Loading