@amos.com/node 0.1.39 → 0.1.40
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 +94 -3
- package/dist/index.d.ts +94 -3
- 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 +93 -2
- package/package.json +1 -1
package/openapi/schema.ts
CHANGED
|
@@ -452,6 +452,24 @@ export interface paths {
|
|
|
452
452
|
patch?: never;
|
|
453
453
|
trace?: never;
|
|
454
454
|
};
|
|
455
|
+
"/organization": {
|
|
456
|
+
parameters: {
|
|
457
|
+
query?: never;
|
|
458
|
+
header?: never;
|
|
459
|
+
path?: never;
|
|
460
|
+
cookie?: never;
|
|
461
|
+
};
|
|
462
|
+
/** Retrieve the current organization */
|
|
463
|
+
get: operations["GetOrganization"];
|
|
464
|
+
put?: never;
|
|
465
|
+
post?: never;
|
|
466
|
+
delete?: never;
|
|
467
|
+
options?: never;
|
|
468
|
+
head?: never;
|
|
469
|
+
/** Update the current organization */
|
|
470
|
+
patch: operations["UpdateOrganization"];
|
|
471
|
+
trace?: never;
|
|
472
|
+
};
|
|
455
473
|
"/origins": {
|
|
456
474
|
parameters: {
|
|
457
475
|
query?: never;
|
|
@@ -1262,12 +1280,12 @@ export interface components {
|
|
|
1262
1280
|
exp_year?: number;
|
|
1263
1281
|
moto?: boolean;
|
|
1264
1282
|
};
|
|
1265
|
-
/** @description Apple Pay card profile for embed confirm. Clients only send wallet_payload (the raw JSON-encoded PKPaymentToken). Brand, last4, expiration, pan_type,
|
|
1283
|
+
/** @description Apple Pay card profile for embed confirm. Clients only send wallet_payload (the raw JSON-encoded PKPaymentToken). wallet_provider is derived from the payment method type. Brand, last4, expiration, pan_type, and cryptogram are set from the Vault response. Encrypted PAN and client-supplied cryptogram are not supported. */
|
|
1266
1284
|
ApplePayCardProfileInput: {
|
|
1267
1285
|
/** @description The unmodified JSON-encoded PKPaymentToken. */
|
|
1268
1286
|
wallet_payload: string;
|
|
1269
1287
|
};
|
|
1270
|
-
/** @description Google Pay card profile for embed confirm. Clients only send wallet_payload. Brand, last4, expiration, pan_type,
|
|
1288
|
+
/** @description Google Pay card profile for embed confirm. Clients only send wallet_payload. wallet_provider is derived from the payment method type. Brand, last4, expiration, pan_type, and cryptogram are set from the Vault response. Encrypted PAN is not supported. */
|
|
1271
1289
|
GooglePayCardProfileInput: {
|
|
1272
1290
|
/** @description The unmodified Google Pay payment token payload. */
|
|
1273
1291
|
wallet_payload: string;
|
|
@@ -1916,6 +1934,25 @@ export interface components {
|
|
|
1916
1934
|
/** Format: date-time */
|
|
1917
1935
|
updated_at?: string;
|
|
1918
1936
|
};
|
|
1937
|
+
Organization: {
|
|
1938
|
+
/** Format: uuid */
|
|
1939
|
+
id?: string;
|
|
1940
|
+
name?: string;
|
|
1941
|
+
slug?: string;
|
|
1942
|
+
/** @enum {string} */
|
|
1943
|
+
kind?: "direct" | "payfac";
|
|
1944
|
+
/** Format: date-time */
|
|
1945
|
+
created_at?: string;
|
|
1946
|
+
/** Format: date-time */
|
|
1947
|
+
updated_at?: string;
|
|
1948
|
+
};
|
|
1949
|
+
UpdateOrganizationInput: {
|
|
1950
|
+
/** @description Globally unique public slug used in payment link URLs. Changing this breaks existing `/payment_links/{organization_slug}/...` links. */
|
|
1951
|
+
slug: string;
|
|
1952
|
+
};
|
|
1953
|
+
UpdateOrganizationRequest: {
|
|
1954
|
+
organization: components["schemas"]["UpdateOrganizationInput"];
|
|
1955
|
+
};
|
|
1919
1956
|
CreateOriginInput: {
|
|
1920
1957
|
value?: string;
|
|
1921
1958
|
};
|
|
@@ -3486,6 +3523,59 @@ export interface operations {
|
|
|
3486
3523
|
};
|
|
3487
3524
|
};
|
|
3488
3525
|
};
|
|
3526
|
+
GetOrganization: {
|
|
3527
|
+
parameters: {
|
|
3528
|
+
query?: never;
|
|
3529
|
+
header?: never;
|
|
3530
|
+
path?: never;
|
|
3531
|
+
cookie?: never;
|
|
3532
|
+
};
|
|
3533
|
+
requestBody?: never;
|
|
3534
|
+
responses: {
|
|
3535
|
+
/** @description The authenticated organization */
|
|
3536
|
+
200: {
|
|
3537
|
+
headers: {
|
|
3538
|
+
[name: string]: unknown;
|
|
3539
|
+
};
|
|
3540
|
+
content: {
|
|
3541
|
+
"application/json": components["schemas"]["Organization"];
|
|
3542
|
+
};
|
|
3543
|
+
};
|
|
3544
|
+
};
|
|
3545
|
+
};
|
|
3546
|
+
UpdateOrganization: {
|
|
3547
|
+
parameters: {
|
|
3548
|
+
query?: never;
|
|
3549
|
+
header?: never;
|
|
3550
|
+
path?: never;
|
|
3551
|
+
cookie?: never;
|
|
3552
|
+
};
|
|
3553
|
+
requestBody: {
|
|
3554
|
+
content: {
|
|
3555
|
+
"application/json": components["schemas"]["UpdateOrganizationRequest"];
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3558
|
+
responses: {
|
|
3559
|
+
/** @description Organization updated successfully */
|
|
3560
|
+
200: {
|
|
3561
|
+
headers: {
|
|
3562
|
+
[name: string]: unknown;
|
|
3563
|
+
};
|
|
3564
|
+
content: {
|
|
3565
|
+
"application/json": components["schemas"]["Organization"];
|
|
3566
|
+
};
|
|
3567
|
+
};
|
|
3568
|
+
/** @description Unprocessable entity */
|
|
3569
|
+
422: {
|
|
3570
|
+
headers: {
|
|
3571
|
+
[name: string]: unknown;
|
|
3572
|
+
};
|
|
3573
|
+
content: {
|
|
3574
|
+
"application/json": components["schemas"]["Error"];
|
|
3575
|
+
};
|
|
3576
|
+
};
|
|
3577
|
+
};
|
|
3578
|
+
};
|
|
3489
3579
|
ListOrigins: {
|
|
3490
3580
|
parameters: {
|
|
3491
3581
|
query?: {
|
|
@@ -5245,6 +5335,7 @@ export const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<com
|
|
|
5245
5335
|
export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]> = ["api", "dashboard", "iframe", "system", "subscription"];
|
|
5246
5336
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
5247
5337
|
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", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
|
|
5338
|
+
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
5248
5339
|
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"];
|
|
5249
5340
|
export const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]> = ["plaid_auth"];
|
|
5250
5341
|
export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
|