@amos.com/node 0.1.33 → 0.1.34

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/openapi/schema.ts CHANGED
@@ -1186,6 +1186,7 @@ export interface components {
1186
1186
  /** @description Decoded JWT payload for render token responses. */
1187
1187
  RenderTokenJwt: {
1188
1188
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
1189
+ billing_address_options?: components["schemas"]["BillingAddressOptions"];
1189
1190
  env?: string;
1190
1191
  origins?: string[];
1191
1192
  /** Format: uuid */
@@ -1559,6 +1560,31 @@ export interface components {
1559
1560
  PaymentLinkAmountType: "fixed" | "open";
1560
1561
  /** @enum {string} */
1561
1562
  PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
1563
+ /**
1564
+ * @description US state code (50 states; excludes DC and territories).
1565
+ * @enum {string}
1566
+ */
1567
+ UsStateType: "AK" | "AL" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "IA" | "ID" | "IL" | "IN" | "KS" | "KY" | "LA" | "MA" | "MD" | "ME" | "MI" | "MN" | "MO" | "MS" | "MT" | "NC" | "ND" | "NE" | "NH" | "NJ" | "NM" | "NV" | "NY" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VA" | "VT" | "WA" | "WI" | "WV" | "WY";
1568
+ /** @description Restrict billing addresses to selected US states. */
1569
+ UsOnlyBillingAddressOptions: {
1570
+ /**
1571
+ * @description discriminator enum property added by openapi-typescript
1572
+ * @enum {string}
1573
+ */
1574
+ mode: "us_only";
1575
+ allowed_states: components["schemas"]["UsStateType"][];
1576
+ };
1577
+ /** @description Restrict billing addresses to selected countries. */
1578
+ InternationalBillingAddressOptions: {
1579
+ /**
1580
+ * @description discriminator enum property added by openapi-typescript
1581
+ * @enum {string}
1582
+ */
1583
+ mode: "international";
1584
+ allowed_countries: string[];
1585
+ };
1586
+ /** @description Billing address collection restrictions for a render template. */
1587
+ BillingAddressOptions: components["schemas"]["UsOnlyBillingAddressOptions"] | components["schemas"]["InternationalBillingAddressOptions"];
1562
1588
  /** @description Payment method details used when confirming an embedded intent with a new payment method. */
1563
1589
  EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
1564
1590
  EmbedConfirmCardPaymentMethodInput: {
@@ -2239,6 +2265,7 @@ export interface components {
2239
2265
  };
2240
2266
  CreateRenderTemplateInput: {
2241
2267
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
2268
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2242
2269
  currency?: string;
2243
2270
  origin_ids?: string[];
2244
2271
  };
@@ -2251,6 +2278,7 @@ export interface components {
2251
2278
  /** Format: uuid */
2252
2279
  organization_id?: string;
2253
2280
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
2281
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2254
2282
  currency?: string;
2255
2283
  };
2256
2284
  CreateSetupIntentInput: {
@@ -5191,6 +5219,9 @@ export const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<
5191
5219
  export const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]> = ["business_association", "charity", "church", "county", "federal", "fraternal_org", "government", "higher_education", "k12", "labor_union", "local", "ministry", "pac", "parachurch", "party", "preschool", "social_club", "social_welfare", "state", "tribal", "vendor", "veterans_org"];
5192
5220
  export const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]> = ["fixed", "open"];
5193
5221
  export const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]> = ["card", "bank_account", "googlepay", "applepay"];
5222
+ export const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]> = ["AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY"];
5223
+ export const usOnlyBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsOnlyBillingAddressOptions"]["mode"]> = ["us_only"];
5224
+ export const internationalBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["InternationalBillingAddressOptions"]["mode"]> = ["international"];
5194
5225
  export const embedConfirmCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmCardPaymentMethodInput"]["type"]> = ["card"];
5195
5226
  export const embedConfirmBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"]["type"]> = ["bank_account"];
5196
5227
  export const embedConfirmGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"]["type"]> = ["googlepay"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",