@amos.com/node 0.1.57 → 0.1.58

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
@@ -510,6 +510,26 @@ interface paths {
510
510
  patch?: never;
511
511
  trace?: never;
512
512
  };
513
+ "/origins/{id}": {
514
+ parameters: {
515
+ query?: never;
516
+ header?: never;
517
+ path?: never;
518
+ cookie?: never;
519
+ };
520
+ get?: never;
521
+ put?: never;
522
+ post?: never;
523
+ /**
524
+ * Delete an origin by ID
525
+ * @description Unregisters the origin host with Apple Pay when it is registered, then deletes the origin. Returns 409 if a render template still uses it. Does not delete the origin if Apple Pay unregistration fails.
526
+ */
527
+ delete: operations["DeleteOrigin"];
528
+ options?: never;
529
+ head?: never;
530
+ patch?: never;
531
+ trace?: never;
532
+ };
513
533
  "/embed/payment_intents/{id}": {
514
534
  parameters: {
515
535
  query?: never;
@@ -2086,10 +2106,21 @@ interface components {
2086
2106
  CreateOriginRequest: {
2087
2107
  origin: components["schemas"]["CreateOriginInput"];
2088
2108
  };
2109
+ /** @enum {string} */
2110
+ OriginApplepayRegistrationStateType: "pending" | "skipped" | "registered" | "failed";
2089
2111
  Origin: {
2090
2112
  /** Format: uuid */
2091
2113
  id?: string;
2092
2114
  value?: string;
2115
+ /** @description Apple Pay merchant-domain registration status for this origin host. Null until registration is enabled. */
2116
+ applepay_registration_state?: components["schemas"]["OriginApplepayRegistrationStateType"] | null;
2117
+ /** @description Last Apple Pay registration or unregistration error, if any */
2118
+ applepay_registration_error?: string | null;
2119
+ /**
2120
+ * Format: date-time
2121
+ * @description When this origin host was last registered with Apple Pay
2122
+ */
2123
+ applepay_registered_at?: string | null;
2093
2124
  /** Format: date-time */
2094
2125
  created_at?: string;
2095
2126
  /** Format: date-time */
@@ -3881,6 +3912,54 @@ interface operations {
3881
3912
  };
3882
3913
  };
3883
3914
  };
3915
+ DeleteOrigin: {
3916
+ parameters: {
3917
+ query?: never;
3918
+ header?: never;
3919
+ path: {
3920
+ /** @description The ID of the origin to delete */
3921
+ id: string;
3922
+ };
3923
+ cookie?: never;
3924
+ };
3925
+ requestBody?: never;
3926
+ responses: {
3927
+ /** @description Origin deleted successfully */
3928
+ 204: {
3929
+ headers: {
3930
+ [name: string]: unknown;
3931
+ };
3932
+ content?: never;
3933
+ };
3934
+ /** @description Origin not found */
3935
+ 404: {
3936
+ headers: {
3937
+ [name: string]: unknown;
3938
+ };
3939
+ content: {
3940
+ "application/json": components["schemas"]["Error"];
3941
+ };
3942
+ };
3943
+ /** @description Origin is in use by a render template */
3944
+ 409: {
3945
+ headers: {
3946
+ [name: string]: unknown;
3947
+ };
3948
+ content: {
3949
+ "application/json": components["schemas"]["Error"];
3950
+ };
3951
+ };
3952
+ /** @description Apple Pay unregister failed; the origin was not deleted */
3953
+ 422: {
3954
+ headers: {
3955
+ [name: string]: unknown;
3956
+ };
3957
+ content: {
3958
+ "application/json": components["schemas"]["Error"];
3959
+ };
3960
+ };
3961
+ };
3962
+ };
3884
3963
  GetEmbedPaymentIntent: {
3885
3964
  parameters: {
3886
3965
  query?: never;
@@ -5667,6 +5746,7 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
5667
5746
  declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
5668
5747
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5669
5748
  declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
5749
+ declare const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]>;
5670
5750
  declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
5671
5751
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5672
5752
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
@@ -5713,4 +5793,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5713
5793
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5714
5794
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5715
5795
 
5716
- export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, type paths, paymentIntentCaptureMethodTypeValues, 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 };
5796
+ export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, paymentIntentCaptureMethodTypeValues, 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
@@ -510,6 +510,26 @@ interface paths {
510
510
  patch?: never;
511
511
  trace?: never;
512
512
  };
513
+ "/origins/{id}": {
514
+ parameters: {
515
+ query?: never;
516
+ header?: never;
517
+ path?: never;
518
+ cookie?: never;
519
+ };
520
+ get?: never;
521
+ put?: never;
522
+ post?: never;
523
+ /**
524
+ * Delete an origin by ID
525
+ * @description Unregisters the origin host with Apple Pay when it is registered, then deletes the origin. Returns 409 if a render template still uses it. Does not delete the origin if Apple Pay unregistration fails.
526
+ */
527
+ delete: operations["DeleteOrigin"];
528
+ options?: never;
529
+ head?: never;
530
+ patch?: never;
531
+ trace?: never;
532
+ };
513
533
  "/embed/payment_intents/{id}": {
514
534
  parameters: {
515
535
  query?: never;
@@ -2086,10 +2106,21 @@ interface components {
2086
2106
  CreateOriginRequest: {
2087
2107
  origin: components["schemas"]["CreateOriginInput"];
2088
2108
  };
2109
+ /** @enum {string} */
2110
+ OriginApplepayRegistrationStateType: "pending" | "skipped" | "registered" | "failed";
2089
2111
  Origin: {
2090
2112
  /** Format: uuid */
2091
2113
  id?: string;
2092
2114
  value?: string;
2115
+ /** @description Apple Pay merchant-domain registration status for this origin host. Null until registration is enabled. */
2116
+ applepay_registration_state?: components["schemas"]["OriginApplepayRegistrationStateType"] | null;
2117
+ /** @description Last Apple Pay registration or unregistration error, if any */
2118
+ applepay_registration_error?: string | null;
2119
+ /**
2120
+ * Format: date-time
2121
+ * @description When this origin host was last registered with Apple Pay
2122
+ */
2123
+ applepay_registered_at?: string | null;
2093
2124
  /** Format: date-time */
2094
2125
  created_at?: string;
2095
2126
  /** Format: date-time */
@@ -3881,6 +3912,54 @@ interface operations {
3881
3912
  };
3882
3913
  };
3883
3914
  };
3915
+ DeleteOrigin: {
3916
+ parameters: {
3917
+ query?: never;
3918
+ header?: never;
3919
+ path: {
3920
+ /** @description The ID of the origin to delete */
3921
+ id: string;
3922
+ };
3923
+ cookie?: never;
3924
+ };
3925
+ requestBody?: never;
3926
+ responses: {
3927
+ /** @description Origin deleted successfully */
3928
+ 204: {
3929
+ headers: {
3930
+ [name: string]: unknown;
3931
+ };
3932
+ content?: never;
3933
+ };
3934
+ /** @description Origin not found */
3935
+ 404: {
3936
+ headers: {
3937
+ [name: string]: unknown;
3938
+ };
3939
+ content: {
3940
+ "application/json": components["schemas"]["Error"];
3941
+ };
3942
+ };
3943
+ /** @description Origin is in use by a render template */
3944
+ 409: {
3945
+ headers: {
3946
+ [name: string]: unknown;
3947
+ };
3948
+ content: {
3949
+ "application/json": components["schemas"]["Error"];
3950
+ };
3951
+ };
3952
+ /** @description Apple Pay unregister failed; the origin was not deleted */
3953
+ 422: {
3954
+ headers: {
3955
+ [name: string]: unknown;
3956
+ };
3957
+ content: {
3958
+ "application/json": components["schemas"]["Error"];
3959
+ };
3960
+ };
3961
+ };
3962
+ };
3884
3963
  GetEmbedPaymentIntent: {
3885
3964
  parameters: {
3886
3965
  query?: never;
@@ -5667,6 +5746,7 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
5667
5746
  declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
5668
5747
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5669
5748
  declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
5749
+ declare const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]>;
5670
5750
  declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
5671
5751
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5672
5752
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
@@ -5713,4 +5793,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5713
5793
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5714
5794
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5715
5795
 
5716
- export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, type paths, paymentIntentCaptureMethodTypeValues, 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 };
5796
+ export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, paymentIntentCaptureMethodTypeValues, 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
@@ -58,6 +58,7 @@ __export(index_exports, {
58
58
  legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
59
59
  merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
60
60
  organizationKindValues: () => organizationKindValues,
61
+ originApplepayRegistrationStateTypeValues: () => originApplepayRegistrationStateTypeValues,
61
62
  paymentIntentCaptureMethodTypeValues: () => paymentIntentCaptureMethodTypeValues,
62
63
  paymentIntentStateValues: () => paymentIntentStateValues,
63
64
  paymentLinkAmountTypeValues: () => paymentLinkAmountTypeValues,
@@ -119,6 +120,7 @@ var transactionSourceTypeValues = ["api", "dashboard", "iframe", "system", "subs
119
120
  var walletProviderTypeValues = ["googlepay", "applepay"];
120
121
  var webhookEventTypeValues = ["charge.cancelled", "charge.created", "charge.errored", "charge.failed", "charge.processing", "charge.requires_capture", "charge.requires_confirmation", "charge.requires_review", "charge.settlement_failed", "charge.succeeded", "customer.created", "customer.updated", "legal_entity.created", "legal_entity.updated", "legal_entity_principal.created", "legal_entity_principal.updated", "legal_entity_application.approved", "legal_entity_application.denied", "legal_entity_application.needs_information", "legal_entity_application.pending", "legal_entity_application.submitted", "merchant.created", "merchant.updated", "payment_intent.cancelled", "payment_intent.created", "payment_intent.errored_authorization", "payment_intent.errored_capture", "payment_intent.errored_sale", "payment_intent.processing_authorization", "payment_intent.processing_capture", "payment_intent.processing_sale", "payment_intent.requires_capture", "payment_intent.requires_confirmation", "payment_intent.requires_payment_method", "payment_intent.requires_review", "payment_intent.succeeded", "processor_transaction.completed", "reconciliation.created", "refund.cancelled", "refund.created", "refund.failed", "refund.pending", "refund.processing", "refund.requires_review", "refund.succeeded", "setup_intent.cancelled", "setup_intent.created", "setup_intent.errored", "setup_intent.failed", "setup_intent.requires_confirmation", "setup_intent.requires_payment_method", "setup_intent.requires_review", "setup_intent.succeeded", "setup_intent.verifying", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
121
122
  var organizationKindValues = ["direct", "payfac"];
123
+ var originApplepayRegistrationStateTypeValues = ["pending", "skipped", "registered", "failed"];
122
124
  var paymentIntentStateValues = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
123
125
  var processorTransactionPayment_transaction_typeValues = ["charge", "refund", "void"];
124
126
  var processorTransactionTransaction_typeValues = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
@@ -163,6 +165,7 @@ function createPayApiClient(options) {
163
165
  legalEntityOwnershipTypeValues,
164
166
  merchantBusinessCategoryTypeValues,
165
167
  organizationKindValues,
168
+ originApplepayRegistrationStateTypeValues,
166
169
  paymentIntentCaptureMethodTypeValues,
167
170
  paymentIntentStateValues,
168
171
  paymentLinkAmountTypeValues,