From 2214d9e593bd665598383e5218f9205e64d800bd Mon Sep 17 00:00:00 2001 From: Victor Pegado Date: Mon, 9 Nov 2020 15:26:33 +0100 Subject: [PATCH] feat: sender tags --- cloudbuild.yaml | 10 +++++++++- swagger.yml | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index df701b9..3a33d1f 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -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 . . ."' \ No newline at end of file diff --git a/swagger.yml b/swagger.yml index 3670831..673636e 100644 --- a/swagger.yml +++ b/swagger.yml @@ -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' @@ -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' @@ -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 @@ -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 @@ -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 @@ -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