@easyflow/javascript-sdk 2.1.16 → 2.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -936,7 +936,6 @@ console.log('Charge processed with PIX:', orderId)
|
|
|
936
936
|
```javascript
|
|
937
937
|
// Complete createCustomer example with all available fields
|
|
938
938
|
const customer = await easyflowSDK.createCustomer({
|
|
939
|
-
businessId: 'demo-business-12345',
|
|
940
939
|
name: 'João Silva Santos',
|
|
941
940
|
email: 'joao.silva@exemplo.com',
|
|
942
941
|
document: {
|
|
@@ -967,20 +966,6 @@ const customer = await easyflowSDK.createCustomer({
|
|
|
967
966
|
state: 'SP',
|
|
968
967
|
number: '123',
|
|
969
968
|
},
|
|
970
|
-
birthDate: '1990-05-15',
|
|
971
|
-
gender: 'M',
|
|
972
|
-
maritalStatus: 'single',
|
|
973
|
-
occupation: 'Desenvolvedor',
|
|
974
|
-
company: 'Tech Solutions Ltda',
|
|
975
|
-
website: 'https://joaosilva.com',
|
|
976
|
-
notes: 'Cliente preferencial com histórico de compras',
|
|
977
|
-
tags: ['premium', 'tech-savvy', 'early-adopter'],
|
|
978
|
-
preferences: {
|
|
979
|
-
newsletter: true,
|
|
980
|
-
marketing: false,
|
|
981
|
-
language: 'pt-BR',
|
|
982
|
-
currency: 'BRL',
|
|
983
|
-
},
|
|
984
969
|
})
|
|
985
970
|
|
|
986
971
|
console.log('Customer created with complete data:', customer)
|
|
@@ -1056,7 +1041,6 @@ async function completeWorkflow() {
|
|
|
1056
1041
|
|
|
1057
1042
|
// 2. Create customer with complete data
|
|
1058
1043
|
const customer = await easyflowSDK.createCustomer({
|
|
1059
|
-
businessId: 'demo-business-12345',
|
|
1060
1044
|
name: 'Ana Silva Costa',
|
|
1061
1045
|
email: 'ana.silva@exemplo.com',
|
|
1062
1046
|
document: { type: 'CPF', number: '55566677788' },
|
|
@@ -1180,6 +1164,15 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
1180
1164
|
|
|
1181
1165
|
## Changelog
|
|
1182
1166
|
|
|
1167
|
+
### v2.1.17
|
|
1168
|
+
|
|
1169
|
+
- **Complete Implementation Examples**: Added comprehensive examples for all major methods
|
|
1170
|
+
- **Full Data Models**: Examples showing all available fields for placeOrder, charge, createCustomer, addCreditCard
|
|
1171
|
+
- **Brazilian Data Examples**: Realistic Brazilian addresses, phone
|
|
1172
|
+
- **Version Update**: Patch release for latest improvements
|
|
1173
|
+
- **Documentation**: Updated version references and CDN URLs
|
|
1174
|
+
- **Consistency**: All version references aligned to v2.1.17
|
|
1175
|
+
|
|
1183
1176
|
### v2.1.14
|
|
1184
1177
|
|
|
1185
1178
|
- **Version Update**: Patch release for latest improvements
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyflow/javascript-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.17",
|
|
4
4
|
"description": "Easyflow JavaScript SDK - Documentation and TypeScript definitions. For production use, use the CDN script: https://easyflow-sdk.pages.dev/easyflow-sdk.min.js",
|
|
5
5
|
"main": "README.md",
|
|
6
6
|
"module": "README.md",
|