Skip to content
Draft
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
10 changes: 9 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', 'index.html', 'swagger.yml', 'gs://developer.kivra.com']
entrypoint: 'bash'
args:
- '-c'
- '[[ "$BRANCH_NAME" != "master" ]] && gsutil cp index.html swagger.yml "gs://developer.kivra.com/$BRANCH_NAME/" || echo "skipping . . ."'
- name: 'gcr.io/cloud-builders/gsutil'
entrypoint: 'bash'
args:
- '-c'
- '[[ "$BRANCH_NAME" == "master" ]] && gsutil cp index.html swagger.yml "gs://developer.kivra.com/" || echo "skipping . . ."'
25 changes: 25 additions & 0 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,8 @@ paths:
variable_amount: false
min_amount: '50.00'
invoice_reference: 'Invoice Nr #123'
sender_tags:
- 'invoice_consumer_2016-12'
content to user:
value:
ssn: '191212121212'
Expand All @@ -1280,6 +1282,8 @@ paths:
- name: filename.pdf
data: REVBREJFRUY=
content_type: application/pdf
sender_tags:
- 'annual-report_consumer_2016'
payslip to user:
value:
ssn: '191212121212'
Expand All @@ -1293,6 +1297,8 @@ paths:
- name: filename.pdf
data: REVBREJFRUY=
content_type: application/pdf
sender_tags:
- 'payslip_2016-12'
content to company:
value:
vat_number: SE556840226601
Expand All @@ -1304,6 +1310,8 @@ paths:
- name: filename.pdf
data: REVBREJFRUY=
content_type: application/pdf
sender_tags:
- 'invoice_business_2016-12'

# ##############################################
# POST /v1/tenant/TKEY/agreement
Expand Down Expand Up @@ -1780,6 +1788,11 @@ components:
type: string
description: Tenant’s own Invoice Reference
example: "Invoice Nr #123"
sender_tags:
type: array
items:
$ref: '#/components/schemas/SenderTag'
writeOnly: true

# ##############################################
# SCHEMA Content_company
Expand Down Expand Up @@ -1840,6 +1853,18 @@ components:
type: string
description: Tenant’s own Invoice Reference
example: "Invoice Nr #123"
sender_tags:
type: array
items:
$ref: '#/components/schemas/SenderTag'
writeOnly: true

# ##############################################
# SCHEMA SenderTag
# ##############################################
SenderTag:
type: string
description: 'Sender tag to be referenced by campaigns or filtering aggregated sender metrics. examples of this value could be `"batch_12345"`, `"welcome_letter_v3"`, `"insurance_invoice_2020-03"` or something completely different.'

# ##############################################
# SCHEMA Payment
Expand Down