Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Remove orika (#85)
Browse files Browse the repository at this point in the history
* remove orika and other unwanted things

* remove smsmapper test

* clever code begone

* remove stringutils and SMS

* remove exceotun
commit message for your changes. Lines starting

* remove debug type and related code

* begone

* remove the odd exceptions

* reduce unneeded complexity

* remvoe unneeded factory

* simplify clever code

* decorate this!

* distilled all the clever code 2 simple config methods

* add contract test and remove more junk

* twst diamond operator

* remove unused imports

* add testing for new mappers

* remove the template ids, theyre not used at all

* remove old artifactory settings

* add DB integratino test

* remove commented tests

* attempt at fixing travis jdk version

* prepare java11 upgrade

* remvoe more junk

* use GMT timezone for travis

* remove the smell

* remove more unneeded config

* revert type change

* add personalisation mapping function
  • Loading branch information
jterryons authored May 20, 2020
1 parent 771ba83 commit cacd3b5
Show file tree
Hide file tree
Showing 66 changed files with 568 additions and 2,931 deletions.
46 changes: 0 additions & 46 deletions .maven.settings.xml

This file was deleted.

8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ services:
- docker

language: java
jdk: openjdk8

before_install: "cp .maven.settings.xml $HOME/.m2/settings.xml"
jdk:
- openjdk8

before_install:
- export TZ=Europe/London

script:
- "mvn clean verify"

Expand Down
20 changes: 0 additions & 20 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,6 @@ This page documents the Notify Gateway service API endpoints. Apart from the Ser
}
```

## Send Text Message
* `POST /texts/f3778220-f877-4a3d-80ed-e8fa7d104563` will asynchronously send a text message using the GOV.UK Notify text message template with an ID of `f3778220-f877-4a3d-80ed-e8fa7d104563`.

**Required parameters:** `phoneNumber` as the phone number of the recipient.

*Optional parameters:* `personalisation` as a collection of string name/value pairs of GOV.UK Notify template placeholder values, `reference` as a reference string.

### Example JSON Response
```json
{
"id": "de0da3c1-2cad-421a-bddd-054ef374c6ab",
"reference": "Test text message",
"censusUacSmsTemplateId": "f3778220-f877-4a3d-80ed-e8fa7d104563",
"fromNumber": "07701234567"
}
```

An `HTTP 201 Created` status code is returned if the text message request was successfully enqueued ready for sending by GOV.UK Notify. An `HTTP 400 Bad Request` is returned if the required parameter is missing.


## Send Email
* `POST /emails/290b93f2-04c2-413d-8f9b-93841e684e90` will asynchronously send an email using the GOV.UK Notify email template with an ID of `290b93f2-04c2-413d-8f9b-93841e684e90`.

Expand Down
238 changes: 0 additions & 238 deletions Jenkinsfile

This file was deleted.

4 changes: 0 additions & 4 deletions _infra/helm/notify-gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ spec:
value: "{{ .Values.notify.enabled }}"
- name: NOTIFY_APIKEY
value: {{ .Values.notify.apiKey }}
- name: NOTIFY_CENSUSUACSMSTEMPLATEID
value: {{ .Values.notify.censusUacSmSTemplateId }}
- name: NOTIFY_ONSSURVEYSRASEMAILREMINDERTEMPLATEID
value: {{ .Values.notify.onsSurveysRasEmailReminderTemplateId }}
- name: SECURITY_USER_NAME
valueFrom:
secretKeyRef:
Expand Down
2 changes: 0 additions & 2 deletions _infra/helm/notify-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ resources:
notify:
enabled: false
apiKey: dummykey-ffffffff-ffff-ffff-ffff-ffffffffffff-ffffffff-ffff-ffff-ffff-ffffffffffff
censusUacSmSTemplateId: ffffffff-ffff-ffff-ffff-ffffffffffff
onsSurveysRasEmailReminderTemplateId: ffffffff-ffff-ffff-ffff-ffffffffffff
endpoints:
enabled: false
infoEnabled: true
Expand Down
Loading

0 comments on commit cacd3b5

Please sign in to comment.