@prezzee/ts-v2-sdks
Advanced tools
Comparing version 1.7.0 to 1.8.0
{ | ||
"name": "@prezzee/ts-v2-sdks", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
@@ -40,10 +40,12 @@ # Welcome to Prezzee SDKs | ||
### List Styles | ||
`const products = await prezzeeClient.listStyles();` | ||
`const styles = await prezzeeClient.listStyles();` | ||
Returns a list of gift styles for use with the product creation endpoint. | ||
### Create Order | ||
`const product = products.results[0];` | ||
`const style = styles.results[0];` | ||
~~~ | ||
const product = products.results[0]; | ||
`const order = await prezzeeClient.createOrder({ | ||
const style = styles.results[0]; | ||
const order = await prezzeeClient.createOrder({ | ||
reference: generateUUID(), | ||
@@ -69,3 +71,4 @@ payment_method: "POSTPAID_CREDIT", | ||
], | ||
});` | ||
}); | ||
~~~ | ||
@@ -72,0 +75,0 @@ This will return order_uuid in response which can be used in the following example to retrieve the order details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78
289192