@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/dist/index.d.mts CHANGED
@@ -1189,6 +1189,7 @@ interface components {
1189
1189
  /** @description Decoded JWT payload for render token responses. */
1190
1190
  RenderTokenJwt: {
1191
1191
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
1192
+ billing_address_options?: components["schemas"]["BillingAddressOptions"];
1192
1193
  env?: string;
1193
1194
  origins?: string[];
1194
1195
  /** Format: uuid */
@@ -1562,6 +1563,31 @@ interface components {
1562
1563
  PaymentLinkAmountType: "fixed" | "open";
1563
1564
  /** @enum {string} */
1564
1565
  PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
1566
+ /**
1567
+ * @description US state code (50 states; excludes DC and territories).
1568
+ * @enum {string}
1569
+ */
1570
+ 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";
1571
+ /** @description Restrict billing addresses to selected US states. */
1572
+ UsOnlyBillingAddressOptions: {
1573
+ /**
1574
+ * @description discriminator enum property added by openapi-typescript
1575
+ * @enum {string}
1576
+ */
1577
+ mode: "us_only";
1578
+ allowed_states: components["schemas"]["UsStateType"][];
1579
+ };
1580
+ /** @description Restrict billing addresses to selected countries. */
1581
+ InternationalBillingAddressOptions: {
1582
+ /**
1583
+ * @description discriminator enum property added by openapi-typescript
1584
+ * @enum {string}
1585
+ */
1586
+ mode: "international";
1587
+ allowed_countries: string[];
1588
+ };
1589
+ /** @description Billing address collection restrictions for a render template. */
1590
+ BillingAddressOptions: components["schemas"]["UsOnlyBillingAddressOptions"] | components["schemas"]["InternationalBillingAddressOptions"];
1565
1591
  /** @description Payment method details used when confirming an embedded intent with a new payment method. */
1566
1592
  EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
1567
1593
  EmbedConfirmCardPaymentMethodInput: {
@@ -2242,6 +2268,7 @@ interface components {
2242
2268
  };
2243
2269
  CreateRenderTemplateInput: {
2244
2270
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
2271
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2245
2272
  currency?: string;
2246
2273
  origin_ids?: string[];
2247
2274
  };
@@ -2254,6 +2281,7 @@ interface components {
2254
2281
  /** Format: uuid */
2255
2282
  organization_id?: string;
2256
2283
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
2284
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2257
2285
  currency?: string;
2258
2286
  };
2259
2287
  CreateSetupIntentInput: {
@@ -5194,6 +5222,9 @@ declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired
5194
5222
  declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
5195
5223
  declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
5196
5224
  declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
5225
+ declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
5226
+ declare const usOnlyBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsOnlyBillingAddressOptions"]["mode"]>;
5227
+ declare const internationalBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["InternationalBillingAddressOptions"]["mode"]>;
5197
5228
  declare const embedConfirmCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmCardPaymentMethodInput"]["type"]>;
5198
5229
  declare const embedConfirmBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"]["type"]>;
5199
5230
  declare const embedConfirmGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"]["type"]>;
@@ -5263,4 +5294,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5263
5294
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5264
5295
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5265
5296
 
5266
- export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
5297
+ export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
package/dist/index.d.ts CHANGED
@@ -1189,6 +1189,7 @@ interface components {
1189
1189
  /** @description Decoded JWT payload for render token responses. */
1190
1190
  RenderTokenJwt: {
1191
1191
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
1192
+ billing_address_options?: components["schemas"]["BillingAddressOptions"];
1192
1193
  env?: string;
1193
1194
  origins?: string[];
1194
1195
  /** Format: uuid */
@@ -1562,6 +1563,31 @@ interface components {
1562
1563
  PaymentLinkAmountType: "fixed" | "open";
1563
1564
  /** @enum {string} */
1564
1565
  PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
1566
+ /**
1567
+ * @description US state code (50 states; excludes DC and territories).
1568
+ * @enum {string}
1569
+ */
1570
+ 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";
1571
+ /** @description Restrict billing addresses to selected US states. */
1572
+ UsOnlyBillingAddressOptions: {
1573
+ /**
1574
+ * @description discriminator enum property added by openapi-typescript
1575
+ * @enum {string}
1576
+ */
1577
+ mode: "us_only";
1578
+ allowed_states: components["schemas"]["UsStateType"][];
1579
+ };
1580
+ /** @description Restrict billing addresses to selected countries. */
1581
+ InternationalBillingAddressOptions: {
1582
+ /**
1583
+ * @description discriminator enum property added by openapi-typescript
1584
+ * @enum {string}
1585
+ */
1586
+ mode: "international";
1587
+ allowed_countries: string[];
1588
+ };
1589
+ /** @description Billing address collection restrictions for a render template. */
1590
+ BillingAddressOptions: components["schemas"]["UsOnlyBillingAddressOptions"] | components["schemas"]["InternationalBillingAddressOptions"];
1565
1591
  /** @description Payment method details used when confirming an embedded intent with a new payment method. */
1566
1592
  EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
1567
1593
  EmbedConfirmCardPaymentMethodInput: {
@@ -2242,6 +2268,7 @@ interface components {
2242
2268
  };
2243
2269
  CreateRenderTemplateInput: {
2244
2270
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
2271
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2245
2272
  currency?: string;
2246
2273
  origin_ids?: string[];
2247
2274
  };
@@ -2254,6 +2281,7 @@ interface components {
2254
2281
  /** Format: uuid */
2255
2282
  organization_id?: string;
2256
2283
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
2284
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2257
2285
  currency?: string;
2258
2286
  };
2259
2287
  CreateSetupIntentInput: {
@@ -5194,6 +5222,9 @@ declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired
5194
5222
  declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
5195
5223
  declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
5196
5224
  declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
5225
+ declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
5226
+ declare const usOnlyBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsOnlyBillingAddressOptions"]["mode"]>;
5227
+ declare const internationalBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["InternationalBillingAddressOptions"]["mode"]>;
5197
5228
  declare const embedConfirmCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmCardPaymentMethodInput"]["type"]>;
5198
5229
  declare const embedConfirmBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"]["type"]>;
5199
5230
  declare const embedConfirmGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"]["type"]>;
@@ -5263,4 +5294,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5263
5294
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5264
5295
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5265
5296
 
5266
- export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
5297
+ export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
package/dist/index.js CHANGED
@@ -52,6 +52,7 @@ __export(index_exports, {
52
52
  embedConfirmCardPaymentMethodInputTypeValues: () => embedConfirmCardPaymentMethodInputTypeValues,
53
53
  embedConfirmGooglePayPaymentMethodInputTypeValues: () => embedConfirmGooglePayPaymentMethodInputTypeValues,
54
54
  externalAccountTypeValues: () => externalAccountTypeValues,
55
+ internationalBillingAddressOptionsModeValues: () => internationalBillingAddressOptionsModeValues,
55
56
  legalEntityDocumentTypeValues: () => legalEntityDocumentTypeValues,
56
57
  legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
57
58
  legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
@@ -71,6 +72,8 @@ __export(index_exports, {
71
72
  subscriptionPlanTypeValues: () => subscriptionPlanTypeValues,
72
73
  subscriptionStateValues: () => subscriptionStateValues,
73
74
  transactionSourceTypeValues: () => transactionSourceTypeValues,
75
+ usOnlyBillingAddressOptionsModeValues: () => usOnlyBillingAddressOptionsModeValues,
76
+ usStateTypeValues: () => usStateTypeValues,
74
77
  walletProviderTypeValues: () => walletProviderTypeValues,
75
78
  webhookEventTypeValues: () => webhookEventTypeValues
76
79
  });
@@ -90,6 +93,9 @@ var legalEntityDocumentTypeValues = ["irs_cp_575"];
90
93
  var merchantBusinessCategoryTypeValues = ["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"];
91
94
  var paymentLinkAmountTypeValues = ["fixed", "open"];
92
95
  var paymentMethodTypeValues = ["card", "bank_account", "googlepay", "applepay"];
96
+ var usStateTypeValues = ["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"];
97
+ var usOnlyBillingAddressOptionsModeValues = ["us_only"];
98
+ var internationalBillingAddressOptionsModeValues = ["international"];
93
99
  var embedConfirmCardPaymentMethodInputTypeValues = ["card"];
94
100
  var embedConfirmBankAccountPaymentMethodInputTypeValues = ["bank_account"];
95
101
  var embedConfirmGooglePayPaymentMethodInputTypeValues = ["googlepay"];
@@ -149,6 +155,7 @@ function createPayApiClient(options) {
149
155
  embedConfirmCardPaymentMethodInputTypeValues,
150
156
  embedConfirmGooglePayPaymentMethodInputTypeValues,
151
157
  externalAccountTypeValues,
158
+ internationalBillingAddressOptionsModeValues,
152
159
  legalEntityDocumentTypeValues,
153
160
  legalEntityEntityTypeValues,
154
161
  legalEntityOwnershipTypeValues,
@@ -168,6 +175,8 @@ function createPayApiClient(options) {
168
175
  subscriptionPlanTypeValues,
169
176
  subscriptionStateValues,
170
177
  transactionSourceTypeValues,
178
+ usOnlyBillingAddressOptionsModeValues,
179
+ usStateTypeValues,
171
180
  walletProviderTypeValues,
172
181
  webhookEventTypeValues
173
182
  });