-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from saastechacademy/create-order
Changes related to create#PostalAddress service.
- Loading branch information
Showing
4 changed files
with
224 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
### create#PostalAddress | ||
|
||
1. Parameters | ||
* Input | ||
* toName | ||
* address1 | ||
* address2 | ||
* city | ||
* postalCode | ||
* stateProvinceGeoId | ||
* countryGeoId | ||
* latitude | ||
* longitude | ||
* Output | ||
* contactMechId | ||
2. Call create#ContactMech for [contactMechTypeId:"POSTAL_ADDRESS"]. | ||
3. Set contactMechId = createContactMechOutput.contactMechId. | ||
4. Call create#PostalAddress for context | ||
|
||
```json | ||
{ | ||
"toName": "Demo Customer Company", | ||
"address1": "2004 Factory Blvd", | ||
"city": "Orem", | ||
"stateProvinceGeoId": "UT", | ||
"postalCode": "84057", | ||
"countryGeoId": "USA", | ||
"toName": "Demo Customer Company", | ||
"address1": "2004 Factory Blvd", | ||
"address2": "", | ||
"city": "Orem", | ||
"stateProvinceGeoId": "UT", | ||
"postalCode": "84057", | ||
"countryGeoId": "USA", | ||
"latitude": "40.7650225", | ||
"longitude": "40.7650225" | ||
} | ||
|
||
``` | ||
This would be the oms api the uses entity crud. | ||
Workflow | ||
1. create ContactMech | ||
2. create PostalAddress | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters