btrz-api-client 9.10.1 → 9.12.0

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.
@@ -94,4 +94,23 @@ describe("accounts/external-customers", () => {
94
94
  data
95
95
  });
96
96
  });
97
+
98
+ it("should PUT Saldo Max client data (birthDate) on external-customers/ado/{externalId}", () => {
99
+ const externalId = "01-1224-000001988";
100
+ const data = {
101
+ birthDate: "15/06/1990"
102
+ };
103
+ axiosMock.onPut(`/external-customers/ado/${encodeURIComponent(externalId)}`).reply(expectRequest({
104
+ statusCode: 200,
105
+ token,
106
+ jwtToken,
107
+ body: data
108
+ }));
109
+ return api.accounts.externalCustomers.saldoMax.update({
110
+ token,
111
+ jwtToken,
112
+ id: externalId,
113
+ data
114
+ });
115
+ });
97
116
  });