@fluid-app/portal-sdk 0.1.169 → 0.1.170
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/dist/{FluidProvider-4wg1xf_l.mjs → FluidProvider-DrGFcRlB.mjs} +23 -5
- package/dist/FluidProvider-DrGFcRlB.mjs.map +1 -0
- package/dist/{FluidProvider-MFYqEzPc.cjs → FluidProvider-n4cvVkGt.cjs} +23 -5
- package/dist/FluidProvider-n4cvVkGt.cjs.map +1 -0
- package/dist/{MessagingScreen-BodVAop8.cjs → MessagingScreen-BcN85g3v.cjs} +2 -2
- package/dist/{MessagingScreen-GU6S6vv-.mjs → MessagingScreen-Cp8RqZXv.mjs} +2 -2
- package/dist/{MessagingScreen-GU6S6vv-.mjs.map → MessagingScreen-Cp8RqZXv.mjs.map} +1 -1
- package/dist/{MessagingScreen-CEHdeWTl.cjs → MessagingScreen-Cyd_13y-.cjs} +2 -2
- package/dist/{MessagingScreen-CEHdeWTl.cjs.map → MessagingScreen-Cyd_13y-.cjs.map} +1 -1
- package/dist/{ProductsScreen-FI28Unh9.mjs → ProductsScreen-VT0vIB3p.mjs} +1 -0
- package/dist/{ProfileScreen-BfPZOdUy.cjs → ProfileScreen-Bym1xay5.cjs} +2 -2
- package/dist/{ProfileScreen-BtukJFIm.mjs → ProfileScreen-CD2lmt5S.mjs} +84 -46
- package/dist/ProfileScreen-CD2lmt5S.mjs.map +1 -0
- package/dist/{ProfileScreen-DzdtuSBv.cjs → ProfileScreen-PlDpc8RU.cjs} +84 -46
- package/dist/ProfileScreen-PlDpc8RU.cjs.map +1 -0
- package/dist/{ShareablesScreen-kr_IbX2l.mjs → ShareablesScreen-D5bAmr6m.mjs} +1 -0
- package/dist/{ShopScreen-WCUSoGt9.mjs → ShopScreen-Bq0bv8mQ.mjs} +2 -2
- package/dist/{ShopScreen-WCUSoGt9.mjs.map → ShopScreen-Bq0bv8mQ.mjs.map} +1 -1
- package/dist/{ShopScreen-BMFShhIg.cjs → ShopScreen-C6jCsDWH.cjs} +2 -2
- package/dist/{ShopScreen-DyiZc62M.cjs → ShopScreen-C9DPPESd.cjs} +2 -2
- package/dist/{ShopScreen-DyiZc62M.cjs.map → ShopScreen-C9DPPESd.cjs.map} +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.mjs +14 -14
- package/package.json +15 -15
- package/dist/FluidProvider-4wg1xf_l.mjs.map +0 -1
- package/dist/FluidProvider-MFYqEzPc.cjs.map +0 -1
- package/dist/ProfileScreen-BtukJFIm.mjs.map +0 -1
- 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.
|
|
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
|
-
|
|
1004
|
-
environment: response.vault?.environment ?? "
|
|
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-
|
|
2792
|
+
//# sourceMappingURL=FluidProvider-n4cvVkGt.cjs.map
|