@shipengine/react-api 4.3.4 → 4.3.5
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.
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { SE } from "@shipengine/js-api";
|
|
2
2
|
import { QueryProps } from "../../utilities";
|
|
3
|
+
/**
|
|
4
|
+
* @category ShipEngine API Hooks
|
|
5
|
+
* @see [ShipEngine API Reference](https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5951389743/API+Contract+for+Subscriptions+Billing+Info)
|
|
6
|
+
*/
|
|
3
7
|
export declare const useGetAccountBilling: (params?: QueryProps<SE.AccountBillingResponse>) => import("@tanstack/react-query").UseQueryResult<SE.AccountBillingResponse, SE.CodedError[]>;
|
|
@@ -2,5 +2,6 @@ import { SE } from "@shipengine/js-api";
|
|
|
2
2
|
import { MutationProps } from "../../utilities";
|
|
3
3
|
/**
|
|
4
4
|
* @category ShipEngine API Hooks
|
|
5
|
-
*
|
|
5
|
+
* @see [ShipEngine API Reference](https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5951389743/API+Contract+for+Subscriptions+Billing+Info)
|
|
6
|
+
*/
|
|
6
7
|
export declare const useUpsertAccountBilling: (params?: MutationProps<SE.UpsertAccountBillingRequestBody, SE.AccountBillingResponse>) => import("@tanstack/react-query").UseMutationResult<SE.AccountBillingResponse, SE.CodedError[], SE.UpsertAccountBillingRequestBody, unknown>;
|
|
@@ -2,8 +2,6 @@ import { SE } from "@shipengine/js-api";
|
|
|
2
2
|
export type UpdateFundingSourceData = {
|
|
3
3
|
/** (Optional) Auctane Pay Session info */
|
|
4
4
|
auctanePayInfo?: SE.AuctanePayInfo;
|
|
5
|
-
/** (Optional) Bank Account used for the funding source */
|
|
6
|
-
bankAccountInfo?: SE.BankAccountInfo;
|
|
7
5
|
/** Billing info used for the Funding Source */
|
|
8
6
|
billingInfo: SE.FundingSourceAddress;
|
|
9
7
|
/** (Optional) Credit Card used to the funding source */
|
|
@@ -14,7 +12,7 @@ export type UpdateFundingSourceData = {
|
|
|
14
12
|
/**
|
|
15
13
|
* @internal
|
|
16
14
|
* @category ShipEngine API Hooks
|
|
17
|
-
|
|
15
|
+
*/
|
|
18
16
|
export declare const useUpdateFundingSource: () => import("@tanstack/react-query").UseMutationResult<{
|
|
19
17
|
fundingSource: SE.FundingSource;
|
|
20
18
|
}, SE.CodedError[], UpdateFundingSourceData, unknown>;
|
package/index.js
CHANGED
|
@@ -1106,14 +1106,12 @@ const useUpdateFundingSource = () => {
|
|
|
1106
1106
|
mutationFn: (_0) => __async$D(void 0, [_0], function* ({
|
|
1107
1107
|
billingInfo,
|
|
1108
1108
|
creditCardInfo,
|
|
1109
|
-
bankAccountInfo,
|
|
1110
1109
|
fundingSourceId,
|
|
1111
1110
|
auctanePayInfo
|
|
1112
1111
|
}) {
|
|
1113
1112
|
const result = yield client.fundingSources.update(
|
|
1114
1113
|
billingInfo,
|
|
1115
1114
|
creditCardInfo,
|
|
1116
|
-
bankAccountInfo,
|
|
1117
1115
|
auctanePayInfo,
|
|
1118
1116
|
fundingSourceId
|
|
1119
1117
|
);
|
package/index.mjs
CHANGED
|
@@ -1103,14 +1103,12 @@ const useUpdateFundingSource = () => {
|
|
|
1103
1103
|
mutationFn: (_0) => __async$D(void 0, [_0], function* ({
|
|
1104
1104
|
billingInfo,
|
|
1105
1105
|
creditCardInfo,
|
|
1106
|
-
bankAccountInfo,
|
|
1107
1106
|
fundingSourceId,
|
|
1108
1107
|
auctanePayInfo
|
|
1109
1108
|
}) {
|
|
1110
1109
|
const result = yield client.fundingSources.update(
|
|
1111
1110
|
billingInfo,
|
|
1112
1111
|
creditCardInfo,
|
|
1113
|
-
bankAccountInfo,
|
|
1114
1112
|
auctanePayInfo,
|
|
1115
1113
|
fundingSourceId
|
|
1116
1114
|
);
|