@infrab4a/connect 5.2.0-beta.0 → 5.2.0-beta.2

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/index.cjs.js CHANGED
@@ -9165,8 +9165,6 @@ class PagarmeV5CardAxiosAdapter {
9165
9165
  exp_month: card.expirationDate.split('/').at(0),
9166
9166
  exp_year: card.expirationDate.split('/').at(1),
9167
9167
  cvv: card.cvv,
9168
- brand: card.flag,
9169
- label: card.flag,
9170
9168
  billing_address: {
9171
9169
  line_1: `${customer.billingAddress.number}, ${customer.billingAddress.street}, ${customer.billingAddress.district}`,
9172
9170
  line_2: `${customer.billingAddress.extension}`,
@@ -9180,7 +9178,7 @@ class PagarmeV5CardAxiosAdapter {
9180
9178
  return data;
9181
9179
  }
9182
9180
  catch (error) {
9183
- console.warn(error);
9181
+ console.warn(JSON.stringify(error));
9184
9182
  throw error;
9185
9183
  }
9186
9184
  }
@@ -9249,7 +9247,7 @@ class PagarmeV5CardAxiosAdapter {
9249
9247
  state: customer.billingAddress.state,
9250
9248
  country: 'BR',
9251
9249
  },
9252
- birthdate: dateFns.format(customer.birthday, 'MM/dd/yyyy'),
9250
+ birthdate: dateFns.format(new Date(customer.birthday), 'MM/dd/yyyy'),
9253
9251
  phones: {
9254
9252
  home_phone: {
9255
9253
  country_code: '55',
package/index.esm.js CHANGED
@@ -9140,8 +9140,6 @@ class PagarmeV5CardAxiosAdapter {
9140
9140
  exp_month: card.expirationDate.split('/').at(0),
9141
9141
  exp_year: card.expirationDate.split('/').at(1),
9142
9142
  cvv: card.cvv,
9143
- brand: card.flag,
9144
- label: card.flag,
9145
9143
  billing_address: {
9146
9144
  line_1: `${customer.billingAddress.number}, ${customer.billingAddress.street}, ${customer.billingAddress.district}`,
9147
9145
  line_2: `${customer.billingAddress.extension}`,
@@ -9155,7 +9153,7 @@ class PagarmeV5CardAxiosAdapter {
9155
9153
  return data;
9156
9154
  }
9157
9155
  catch (error) {
9158
- console.warn(error);
9156
+ console.warn(JSON.stringify(error));
9159
9157
  throw error;
9160
9158
  }
9161
9159
  }
@@ -9224,7 +9222,7 @@ class PagarmeV5CardAxiosAdapter {
9224
9222
  state: customer.billingAddress.state,
9225
9223
  country: 'BR',
9226
9224
  },
9227
- birthdate: format(customer.birthday, 'MM/dd/yyyy'),
9225
+ birthdate: format(new Date(customer.birthday), 'MM/dd/yyyy'),
9228
9226
  phones: {
9229
9227
  home_phone: {
9230
9228
  country_code: '55',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.2.0-beta.0",
3
+ "version": "5.2.0-beta.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },