@amos.com/node 0.1.57 → 0.1.59
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 +81 -1
- package/dist/index.d.ts +81 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +80 -0
- package/package.json +3 -3
package/openapi/schema.ts
CHANGED
|
@@ -507,6 +507,26 @@ export interface paths {
|
|
|
507
507
|
patch?: never;
|
|
508
508
|
trace?: never;
|
|
509
509
|
};
|
|
510
|
+
"/origins/{id}": {
|
|
511
|
+
parameters: {
|
|
512
|
+
query?: never;
|
|
513
|
+
header?: never;
|
|
514
|
+
path?: never;
|
|
515
|
+
cookie?: never;
|
|
516
|
+
};
|
|
517
|
+
get?: never;
|
|
518
|
+
put?: never;
|
|
519
|
+
post?: never;
|
|
520
|
+
/**
|
|
521
|
+
* Delete an origin by ID
|
|
522
|
+
* @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.
|
|
523
|
+
*/
|
|
524
|
+
delete: operations["DeleteOrigin"];
|
|
525
|
+
options?: never;
|
|
526
|
+
head?: never;
|
|
527
|
+
patch?: never;
|
|
528
|
+
trace?: never;
|
|
529
|
+
};
|
|
510
530
|
"/embed/payment_intents/{id}": {
|
|
511
531
|
parameters: {
|
|
512
532
|
query?: never;
|
|
@@ -2083,10 +2103,21 @@ export interface components {
|
|
|
2083
2103
|
CreateOriginRequest: {
|
|
2084
2104
|
origin: components["schemas"]["CreateOriginInput"];
|
|
2085
2105
|
};
|
|
2106
|
+
/** @enum {string} */
|
|
2107
|
+
OriginApplepayRegistrationStateType: "pending" | "skipped" | "registered" | "failed";
|
|
2086
2108
|
Origin: {
|
|
2087
2109
|
/** Format: uuid */
|
|
2088
2110
|
id?: string;
|
|
2089
2111
|
value?: string;
|
|
2112
|
+
/** @description Apple Pay merchant-domain registration status for this origin host. Null until registration is enabled. */
|
|
2113
|
+
applepay_registration_state?: components["schemas"]["OriginApplepayRegistrationStateType"] | null;
|
|
2114
|
+
/** @description Last Apple Pay registration or unregistration error, if any */
|
|
2115
|
+
applepay_registration_error?: string | null;
|
|
2116
|
+
/**
|
|
2117
|
+
* Format: date-time
|
|
2118
|
+
* @description When this origin host was last registered with Apple Pay
|
|
2119
|
+
*/
|
|
2120
|
+
applepay_registered_at?: string | null;
|
|
2090
2121
|
/** Format: date-time */
|
|
2091
2122
|
created_at?: string;
|
|
2092
2123
|
/** Format: date-time */
|
|
@@ -3878,6 +3909,54 @@ export interface operations {
|
|
|
3878
3909
|
};
|
|
3879
3910
|
};
|
|
3880
3911
|
};
|
|
3912
|
+
DeleteOrigin: {
|
|
3913
|
+
parameters: {
|
|
3914
|
+
query?: never;
|
|
3915
|
+
header?: never;
|
|
3916
|
+
path: {
|
|
3917
|
+
/** @description The ID of the origin to delete */
|
|
3918
|
+
id: string;
|
|
3919
|
+
};
|
|
3920
|
+
cookie?: never;
|
|
3921
|
+
};
|
|
3922
|
+
requestBody?: never;
|
|
3923
|
+
responses: {
|
|
3924
|
+
/** @description Origin deleted successfully */
|
|
3925
|
+
204: {
|
|
3926
|
+
headers: {
|
|
3927
|
+
[name: string]: unknown;
|
|
3928
|
+
};
|
|
3929
|
+
content?: never;
|
|
3930
|
+
};
|
|
3931
|
+
/** @description Origin not found */
|
|
3932
|
+
404: {
|
|
3933
|
+
headers: {
|
|
3934
|
+
[name: string]: unknown;
|
|
3935
|
+
};
|
|
3936
|
+
content: {
|
|
3937
|
+
"application/json": components["schemas"]["Error"];
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
/** @description Origin is in use by a render template */
|
|
3941
|
+
409: {
|
|
3942
|
+
headers: {
|
|
3943
|
+
[name: string]: unknown;
|
|
3944
|
+
};
|
|
3945
|
+
content: {
|
|
3946
|
+
"application/json": components["schemas"]["Error"];
|
|
3947
|
+
};
|
|
3948
|
+
};
|
|
3949
|
+
/** @description Apple Pay unregister failed; the origin was not deleted */
|
|
3950
|
+
422: {
|
|
3951
|
+
headers: {
|
|
3952
|
+
[name: string]: unknown;
|
|
3953
|
+
};
|
|
3954
|
+
content: {
|
|
3955
|
+
"application/json": components["schemas"]["Error"];
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3958
|
+
};
|
|
3959
|
+
};
|
|
3881
3960
|
GetEmbedPaymentIntent: {
|
|
3882
3961
|
parameters: {
|
|
3883
3962
|
query?: never;
|
|
@@ -5664,6 +5743,7 @@ export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<co
|
|
|
5664
5743
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
5665
5744
|
export const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]> = ["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"];
|
|
5666
5745
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
5746
|
+
export const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]> = ["pending", "skipped", "registered", "failed"];
|
|
5667
5747
|
export const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]> = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
|
|
5668
5748
|
export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
|
|
5669
5749
|
export const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]> = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amos.com/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"description": "Node.js client for the Amos Pay API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"openapi-fetch": "0.17.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@biomejs/biome": "2.5.
|
|
53
|
+
"@biomejs/biome": "2.5.11",
|
|
54
54
|
"@changesets/cli": "2.31.1",
|
|
55
|
-
"@types/node": "26.
|
|
55
|
+
"@types/node": "26.4.0",
|
|
56
56
|
"openapi-typescript": "7.13.0",
|
|
57
57
|
"tsup": "8.5.1",
|
|
58
58
|
"typescript": "5.9.3"
|