Skip to content

Commit c11afe3

Browse files
Merge pull request #404 from patrick-murphy-intuit/main
Small fix to sms endpoint
2 parents 6a77e5a + 3c3e86c commit c11afe3

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

spec/transactional.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,7 @@
28352835
"properties": {
28362836
"sms": {
28372837
"type": "object",
2838-
"required": ["text", "to", "consent", "track_clicks", "from"],
2838+
"required": ["text", "to", "consent", "from"],
28392839
"properties": {
28402840
"text": {
28412841
"type": "string",
@@ -2857,10 +2857,6 @@
28572857
"track_clicks": {
28582858
"type": "boolean",
28592859
"description": "whether or not to turn on click tracking for the message"
2860-
},
2861-
"from_number": {
2862-
"type": "string",
2863-
"description": "optional phone number to send the SMS from. If not provided, uses the default SMS program's messaging number"
28642860
}
28652861
}
28662862
}
@@ -2885,6 +2881,11 @@
28852881
"description": "the phone number of the recipient",
28862882
"example": "+10000000000"
28872883
},
2884+
"from": {
2885+
"type": "string",
2886+
"description": "the phone number of the sender",
2887+
"example": "+10000000000"
2888+
},
28882889
"status": {
28892890
"type": "string",
28902891
"description": "the sending status of the message",

spec/transactional.openapi.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10891,6 +10891,7 @@
1089110891
"required": [
1089210892
"text",
1089310893
"to",
10894+
"from",
1089410895
"consent"
1089510896
],
1089610897
"properties": {
@@ -10905,10 +10906,9 @@
1090510906
"pattern": "^\\+[1-9]\\d{1,14}$",
1090610907
"example": "+10000000000"
1090710908
},
10908-
"from_number": {
10909+
"from": {
1090910910
"description": "The phone number to send the SMS from.",
1091010911
"type": "string",
10911-
"pattern": "^\\+[1-9]\\d{1,14}$",
1091210912
"example": "+10000000000"
1091310913
},
1091410914
"consent": {
@@ -11134,6 +11134,7 @@
1113411134
"description": "The sending results for a single SMS recipient",
1113511135
"required": [
1113611136
"to",
11137+
"from",
1113711138
"status",
1113811139
"_id"
1113911140
],
@@ -11144,6 +11145,11 @@
1114411145
"pattern": "^\\+[1-9]\\d{1,14}$",
1114511146
"example": "+10000000000"
1114611147
},
11148+
"from": {
11149+
"description": "The phone number of the sender",
11150+
"type": "string",
11151+
"example": "+10000000000"
11152+
},
1114711153
"status": {
1114811154
"description": "The sending status of the recipient",
1114911155
"enum": [

0 commit comments

Comments
 (0)