You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@shipengine/js-api

Package Overview
Dependencies
Maintainers
43
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shipengine/js-api - npm Package Compare versions

Comparing version
4.13.0
to
4.14.0
+15
-3
account-billing/types.d.ts

@@ -23,2 +23,10 @@ import { AbbreviatedCreditCardInfo, BankAccountInfo } from "../payments";

/** @internal */
type PaymentMethodWithId = {
paymentMethodId: string;
};
/** @internal */
type PaymentMethodWithSession = {
sessionId: string;
};
/** @internal */
export type UpsertAccountBillingRequestBody = {

@@ -32,5 +40,9 @@ addressLine1: string;

fullName: string;
paymentMethod: {
sessionId: string;
};
/**
* In the request , payment method has to pass either a paymentMethodId or a sessionId
* Cases:
* 1. When we want to assign a newly created payment method where you don't yet know the payment method ID -> session ID.
* 2. If we already know the payment method ID because it was created previously -> payment method ID.
*/
paymentMethod: PaymentMethodWithId | PaymentMethodWithSession;
phone: string;

@@ -37,0 +49,0 @@ postalCode: string;

+1
-1
{
"name": "@shipengine/js-api",
"version": "4.13.0",
"version": "4.14.0",
"main": "./index.js",

@@ -5,0 +5,0 @@ "types": "./index.d.ts",