@infrab4a/connect 5.6.5-beta.1 → 5.6.5-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
@@ -10955,7 +10955,7 @@ class PagarmeV5BaseAxiosAdapter {
10955
10955
  });
10956
10956
  return {
10957
10957
  status: data.status,
10958
- success: data.success,
10958
+ success: data.status === exports.PagarMeV5OrderStatus.Pago ? true : false,
10959
10959
  };
10960
10960
  }
10961
10961
  catch (error) {
package/index.esm.js CHANGED
@@ -10931,7 +10931,7 @@ class PagarmeV5BaseAxiosAdapter {
10931
10931
  });
10932
10932
  return {
10933
10933
  status: data.status,
10934
- success: data.success,
10934
+ success: data.status === PagarMeV5OrderStatus.Pago ? true : false,
10935
10935
  };
10936
10936
  }
10937
10937
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.6.5-beta.1",
3
+ "version": "5.6.5-beta.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -132,7 +132,6 @@ export type PagarMeV5RefundResponse = {
132
132
  paid_amount: number;
133
133
  canceled_amount: number;
134
134
  status: PagarMeV5OrderStatus;
135
- success: boolean;
136
135
  currency: string;
137
136
  payment_method: string;
138
137
  paid_at: string;