@fluid-app/portal-sdk 0.1.169 → 0.1.171

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.
Files changed (28) hide show
  1. package/dist/{FluidProvider-4wg1xf_l.mjs → FluidProvider-DrGFcRlB.mjs} +23 -5
  2. package/dist/FluidProvider-DrGFcRlB.mjs.map +1 -0
  3. package/dist/{FluidProvider-MFYqEzPc.cjs → FluidProvider-n4cvVkGt.cjs} +23 -5
  4. package/dist/FluidProvider-n4cvVkGt.cjs.map +1 -0
  5. package/dist/{MessagingScreen-BodVAop8.cjs → MessagingScreen-BcN85g3v.cjs} +2 -2
  6. package/dist/{MessagingScreen-GU6S6vv-.mjs → MessagingScreen-Cp8RqZXv.mjs} +2 -2
  7. package/dist/{MessagingScreen-GU6S6vv-.mjs.map → MessagingScreen-Cp8RqZXv.mjs.map} +1 -1
  8. package/dist/{MessagingScreen-CEHdeWTl.cjs → MessagingScreen-Cyd_13y-.cjs} +2 -2
  9. package/dist/{MessagingScreen-CEHdeWTl.cjs.map → MessagingScreen-Cyd_13y-.cjs.map} +1 -1
  10. package/dist/{ProfileScreen-BfPZOdUy.cjs → ProfileScreen-Bym1xay5.cjs} +2 -2
  11. package/dist/{ProfileScreen-BtukJFIm.mjs → ProfileScreen-CD2lmt5S.mjs} +84 -46
  12. package/dist/ProfileScreen-CD2lmt5S.mjs.map +1 -0
  13. package/dist/{ProfileScreen-DzdtuSBv.cjs → ProfileScreen-PlDpc8RU.cjs} +84 -46
  14. package/dist/ProfileScreen-PlDpc8RU.cjs.map +1 -0
  15. package/dist/{ShopScreen-WCUSoGt9.mjs → ShopScreen-Bq0bv8mQ.mjs} +2 -2
  16. package/dist/{ShopScreen-WCUSoGt9.mjs.map → ShopScreen-Bq0bv8mQ.mjs.map} +1 -1
  17. package/dist/{ShopScreen-BMFShhIg.cjs → ShopScreen-C6jCsDWH.cjs} +2 -2
  18. package/dist/{ShopScreen-DyiZc62M.cjs → ShopScreen-C9DPPESd.cjs} +2 -2
  19. package/dist/{ShopScreen-DyiZc62M.cjs.map → ShopScreen-C9DPPESd.cjs.map} +1 -1
  20. package/dist/index.cjs +11 -26
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.mjs +11 -26
  23. package/dist/index.mjs.map +1 -1
  24. package/package.json +14 -14
  25. package/dist/FluidProvider-4wg1xf_l.mjs.map +0 -1
  26. package/dist/FluidProvider-MFYqEzPc.cjs.map +0 -1
  27. package/dist/ProfileScreen-BtukJFIm.mjs.map +0 -1
  28. package/dist/ProfileScreen-DzdtuSBv.cjs.map +0 -1
@@ -888,7 +888,7 @@ async function payment_methods_create(client, body) {
888
888
  }
889
889
  /**
890
890
  * Update a payment method
891
- * Updates a payment method's attributes. Currently supports setting a payment method as the default.
891
+ * Updates a payment method's attributes. Supports setting as default and replacing the card's billing address.
892
892
  *
893
893
  * @param client - Fetch client instance
894
894
  * @param id - id
@@ -919,7 +919,7 @@ async function payment_methods_vault_show(client) {
919
919
  }
920
920
  /**
921
921
  * List points ledger entries
922
- * Returns loyalty points ledger entries for the member's customer record in this tenant, ordered by most recent first.
922
+ * Returns loyalty points ledger entries for the member's customer record in this tenant, ordered by most recent first. Returns 403 if the company does not have reward points enabled.
923
923
  *
924
924
  * @param client - Fetch client instance
925
925
  * @param [params] - params
@@ -932,6 +932,7 @@ async function points_ledgers_list(client, params) {
932
932
  function mapAddress(raw) {
933
933
  return {
934
934
  id: raw.id ?? 0,
935
+ name: raw.name ?? null,
935
936
  street1: raw.street1 ?? "",
936
937
  street2: raw.street2 ?? null,
937
938
  city: raw.city ?? "",
@@ -943,6 +944,21 @@ function mapAddress(raw) {
943
944
  updated_at: raw.updated_at ?? null
944
945
  };
945
946
  }
947
+ function mapBillingAddress(raw) {
948
+ return {
949
+ id: raw.id ?? 0,
950
+ name: raw.name ?? null,
951
+ street1: raw.street1 ?? "",
952
+ street2: raw.street2 ?? null,
953
+ city: raw.city ?? "",
954
+ state: raw.state ?? "",
955
+ zip: raw.zip ?? "",
956
+ country: raw.country ?? "",
957
+ default: false,
958
+ created_at: raw.created_at ?? null,
959
+ updated_at: raw.updated_at ?? null
960
+ };
961
+ }
946
962
  function mapPaymentMethod(raw) {
947
963
  return {
948
964
  id: raw.id ?? 0,
@@ -952,6 +968,7 @@ function mapPaymentMethod(raw) {
952
968
  exp_month: raw.exp_month ?? null,
953
969
  exp_year: raw.exp_year ?? null,
954
970
  default: raw.default ?? false,
971
+ billing_address: raw.billing_address ? mapBillingAddress(raw.billing_address) : null,
955
972
  created_at: raw.created_at ?? null,
956
973
  updated_at: raw.updated_at ?? null
957
974
  };
@@ -1000,8 +1017,9 @@ function createPortalTenantPayAdapter(client) {
1000
1017
  const response = await payment_methods_vault_show(client);
1001
1018
  return {
1002
1019
  vault: {
1003
- token: response.vault?.token ?? null,
1004
- environment: response.vault?.environment ?? "production"
1020
+ vault_id: response.vault?.vault_id ?? "",
1021
+ environment: response.vault?.environment ?? "sandbox",
1022
+ route_id: response.vault?.route_id ?? null
1005
1023
  },
1006
1024
  meta: {
1007
1025
  request_id: response.meta?.request_id ?? "",
@@ -2771,4 +2789,4 @@ Object.defineProperty(exports, "widgetPropertySchemas", {
2771
2789
  }
2772
2790
  });
2773
2791
 
2774
- //# sourceMappingURL=FluidProvider-MFYqEzPc.cjs.map
2792
+ //# sourceMappingURL=FluidProvider-n4cvVkGt.cjs.map