@xyo-network/rebilly-payment-card-authorization-plugin 3.4.2 → 3.4.4

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.
@@ -0,0 +1,88 @@
1
+ export interface ContactPhoneNumber {
2
+ /**
3
+ * Phone number label or name.
4
+ * <= 45 characters
5
+ */
6
+ label: string;
7
+ /**
8
+ * Specifies if the phone number is the contact's primary phone number.
9
+ */
10
+ primary?: boolean;
11
+ /**
12
+ * Phone number value.
13
+ * <= 50 characters
14
+ */
15
+ value: string;
16
+ }
17
+ export interface ContactEmail {
18
+ /**
19
+ * Email label or name.
20
+ * <= 45 characters
21
+ */
22
+ label: string;
23
+ /**
24
+ * Specifies if the email address is the contact's primary email address.
25
+ */
26
+ primary?: boolean;
27
+ /**
28
+ * Email address value.
29
+ * <= 255 characters
30
+ */
31
+ value: string;
32
+ }
33
+ /**
34
+ * Billing address details associated with the payment token.
35
+ */
36
+ export interface RequestBillingAddress {
37
+ /** Street address line 1. */
38
+ address?: string;
39
+ /** Street address line 2. */
40
+ address2?: string | null;
41
+ /** City of the billing address. */
42
+ city?: string;
43
+ /** Country code of the billing address, ISO 3166-1 alpha-2 code. */
44
+ country?: string;
45
+ /** Date of birth of the cardholder. */
46
+ dob?: string;
47
+ /** Email addresses associated with the billing address. */
48
+ emails?: ContactEmail[];
49
+ /** First name of the cardholder. */
50
+ firstName: string;
51
+ /** Job title of the cardholder. */
52
+ jobTitle?: string | null;
53
+ /** Last name of the cardholder. */
54
+ lastName: string;
55
+ /** Organization or company name associated with the billing address. */
56
+ organization?: string | null;
57
+ /** Phone numbers associated with the billing address. */
58
+ phoneNumbers?: ContactPhoneNumber[];
59
+ /** Postal or ZIP code of the billing address. */
60
+ postalCode?: string;
61
+ /** State or region of the billing address. */
62
+ region?: string;
63
+ }
64
+ export interface RequestPaymentCardInstrument {
65
+ /**
66
+ * Card Verification Value (CVV/CVC) of the payment card.
67
+ */
68
+ cvv: string;
69
+ /**
70
+ * Expiration month of the payment card.
71
+ */
72
+ expMonth: number;
73
+ /**
74
+ * Expiration year of the payment card.
75
+ */
76
+ expYear: number;
77
+ /**
78
+ * Primary Account Number (PAN) of the payment card. This value is required to perform a payment.
79
+ */
80
+ pan: string;
81
+ }
82
+ export type PaymentMethod = 'payment-card';
83
+ export interface CreatePaymentTokenRequest {
84
+ billingAddress: RequestBillingAddress;
85
+ method: PaymentMethod;
86
+ paymentInstrument: RequestPaymentCardInstrument;
87
+ }
88
+ //# sourceMappingURL=Request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../src/Api/PaymentCardToken/Request.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uCAAuC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2DAA2D;IAC3D,MAAM,CAAC,EAAE,YAAY,EAAE,CAAA;IACvB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,yDAAyD;IACzD,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACnC,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,MAAM,aAAa,GA8FvB,cAAc,CAAA;AAsDhB,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,qBAAqB,CAAA;IACrC,MAAM,EAAE,aAAa,CAAA;IACrB,iBAAiB,EAAE,4BAA4B,CAAA;CAChD"}
@@ -0,0 +1,70 @@
1
+ import type { PaymentMethod, RequestBillingAddress } from './Request.ts';
2
+ export interface ResponseBillingAddress extends RequestBillingAddress {
3
+ hash?: string | null;
4
+ }
5
+ /**
6
+ * Main interface for API response encapsulating all relevant details.
7
+ */
8
+ export interface CreateTokenResponse {
9
+ /** Hyperlinks to related API resources. */
10
+ _links: Link[];
11
+ /** Billing address associated with the payment token. */
12
+ billingAddress: ResponseBillingAddress;
13
+ /** Card brand such as Visa or Mastercard. */
14
+ brand: string;
15
+ /** An identifier for the browser data. */
16
+ browserData: unknown | null;
17
+ /** Date and time when the token was created. */
18
+ createdTime: string;
19
+ /** Expiration time of the token. */
20
+ expirationTime: string | null;
21
+ /** Date and time when the token expired. */
22
+ expiredTime: string | null;
23
+ /** An identifier for the fingerprint of the device used. */
24
+ fingerprint: string | null;
25
+ /** An identifier of the token. */
26
+ id: string;
27
+ /** Indicates if the token has been used. */
28
+ isUsed: boolean;
29
+ /** The last four digits of the payment instrument. */
30
+ last4: string;
31
+ /** Payment method such as 'payment-card'. */
32
+ method: PaymentMethod;
33
+ /** Payment instrument details. */
34
+ paymentInstrument: ResponsePaymentCardInstrument;
35
+ /** Metadata related to risk evaluation. */
36
+ riskMetadata: unknown | null;
37
+ /** Date and time when the token was last updated. */
38
+ updatedTime: string;
39
+ /** Usage time of the token. */
40
+ usageTime: string | null;
41
+ /** Indicates if the token has already been used. */
42
+ used: boolean;
43
+ /** Date and time when the token was first used. */
44
+ usedTime: string | null;
45
+ }
46
+ /**
47
+ * Payment instrument details such as credit card information.
48
+ */
49
+ export interface ResponsePaymentCardInstrument {
50
+ /** Bank identification number or issuer identification number of the card. */
51
+ bin: string;
52
+ /** Card brand such as Visa or Mastercard. */
53
+ brand: string;
54
+ /** Expiration month of the card. */
55
+ expMonth: number;
56
+ /** Expiration year of the card. */
57
+ expYear: number;
58
+ /** Last four digits of the card number. */
59
+ last4: string;
60
+ }
61
+ /**
62
+ * Links structure for API navigation.
63
+ */
64
+ export interface Link {
65
+ /** URL of the related resource. */
66
+ href: string;
67
+ /** Relation type of the link. */
68
+ rel: string;
69
+ }
70
+ //# sourceMappingURL=Response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../src/Api/PaymentCardToken/Response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAExE,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,2CAA2C;IAC3C,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,yDAAyD;IACzD,cAAc,EAAE,sBAAsB,CAAA;IACtC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,WAAW,EAAE,OAAO,GAAG,IAAI,CAAA;IAC3B,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAA;IACnB,oCAAoC;IACpC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,4CAA4C;IAC5C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,4DAA4D;IAC5D,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,4CAA4C;IAC5C,MAAM,EAAE,OAAO,CAAA;IACf,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,MAAM,EAAE,aAAa,CAAA;IACrB,kCAAkC;IAClC,iBAAiB,EAAE,6BAA6B,CAAA;IAChD,2CAA2C;IAC3C,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAA;IACnB,+BAA+B;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,oDAAoD;IACpD,IAAI,EAAE,OAAO,CAAA;IACb,mDAAmD;IACnD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,8EAA8E;IAC9E,GAAG,EAAE,MAAM,CAAA;IACX,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAA;CACZ"}
@@ -0,0 +1,3 @@
1
+ export * from './Request.ts';
2
+ export * from './Response.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Api/PaymentCardToken/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './PaymentCardToken/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Api/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { RebillyApiDomainSettings } from '@xyo-network/rebilly-payment-payload-plugin';
2
+ import type { SentinelConfig } from '@xyo-network/sentinel-model';
3
+ export declare const RebillyPaymentCardAuthorizationSentinelConfigSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly.config";
4
+ export type RebillyPaymentCardAuthorizationSentinelConfigSchema = typeof RebillyPaymentCardAuthorizationSentinelConfigSchema;
5
+ export type RebillyPaymentCardAuthorizationSentinelConfig = SentinelConfig<{
6
+ /**
7
+ * The config schema
8
+ */
9
+ schema: RebillyPaymentCardAuthorizationSentinelConfigSchema;
10
+ }> & Partial<RebillyApiDomainSettings>;
11
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAIjE,eAAO,MAAM,mDAAmD,uFAA4D,CAAA;AAC5H,MAAM,MAAM,mDAAmD,GAAG,OAAO,mDAAmD,CAAA;AAK5H,MAAM,MAAM,6CAA6C,GAAG,cAAc,CAAC;IACzE;;OAEG;IACH,MAAM,EAAE,mDAAmD,CAAA;CAC5D,CAAC,GACF,OAAO,CAAC,wBAAwB,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { AnyConfigSchema } from '@xyo-network/module-model';
2
+ import type { RebillyOrganizationSettings, RebillyPublishableApiSettings } from '@xyo-network/rebilly-payment-payload-plugin';
3
+ import type { SentinelParams } from '@xyo-network/sentinel-model';
4
+ import type { RebillyPaymentCardAuthorizationSentinelConfig } from './Config.ts';
5
+ export type RebillyPaymentCardAuthorizationParams = Partial<RebillyPublishableApiSettings & RebillyOrganizationSettings>;
6
+ export type RebillyPaymentCardAuthorizationSentinelParams<TConfig extends AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig> = AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig>, TParams extends RebillyPaymentCardAuthorizationParams = RebillyPaymentCardAuthorizationParams> = SentinelParams<TConfig, TParams>;
7
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAA;AAC7H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,aAAa,CAAA;AAEhF,MAAM,MAAM,qCAAqC,GAAG,OAAO,CAAC,6BAA6B,GAAG,2BAA2B,CAAC,CAAA;AAExH,MAAM,MAAM,6CAA6C,CACvD,OAAO,SAAS,eAAe,CAAC,6CAA6C,CAAC,GAAG,eAAe,CAAC,6CAA6C,CAAC,EAC/I,OAAO,SAAS,qCAAqC,GAAG,qCAAqC,IAC3F,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const RebillyPaymentCardAuthorizationSentinelSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly";
2
+ export type RebillyPaymentCardAuthorizationSentinelSchema = typeof RebillyPaymentCardAuthorizationSentinelSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6CAA6C,gFAAgF,CAAA;AAC1I,MAAM,MAAM,6CAA6C,GAAG,OAAO,6CAA6C,CAAA"}
@@ -0,0 +1,45 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { AbstractSentinel } from '@xyo-network/sentinel-abstract';
3
+ import type { SentinelInstance, SentinelModuleEventData } from '@xyo-network/sentinel-model';
4
+ import type { AxiosRequestConfig } from 'axios';
5
+ import type { RebillyPaymentCardAuthorizationSentinelParams } from './Params.ts';
6
+ export declare class RebillyPaymentCardAuthorizationSentinel<TParams extends RebillyPaymentCardAuthorizationSentinelParams = RebillyPaymentCardAuthorizationSentinelParams, TEventData extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> extends AbstractSentinel<TParams, TEventData> {
7
+ static readonly configSchemas: string[];
8
+ static readonly defaultConfigSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly.config";
9
+ protected _apiRoot: string | undefined;
10
+ protected _domain: string | undefined;
11
+ protected _headers: AxiosRequestConfig['headers'] | undefined;
12
+ protected _organizationId: string | undefined;
13
+ protected _publishableApiKey: string | undefined;
14
+ protected _tokenEndpoint: string | undefined;
15
+ /**
16
+ * The Rebilly Organization API root endpoint
17
+ */
18
+ protected get apiRoot(): string;
19
+ /**
20
+ * The Rebilly domain
21
+ */
22
+ protected get domain(): string;
23
+ /**
24
+ * The headers to be included in the request for each request
25
+ */
26
+ protected get headers(): AxiosRequestConfig['headers'];
27
+ /**
28
+ * True if the environment is sandbox (testing), false otherwise
29
+ */
30
+ protected get isSandboxEnvironment(): boolean;
31
+ /**
32
+ * The Rebilly organization ID
33
+ */
34
+ protected get organizationId(): string;
35
+ /**
36
+ * The Rebilly Publishable API key
37
+ */
38
+ protected get publishableApiKey(): string;
39
+ /**
40
+ * The Rebilly Organization token creation endpoint
41
+ */
42
+ protected get tokenEndpoint(): string;
43
+ reportHandler(payloads?: Payload[]): Promise<Payload[]>;
44
+ }
45
+ //# sourceMappingURL=Sentinel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sentinel.d.ts","sourceRoot":"","sources":["../../src/Sentinel.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,4BAA4B,CAAA;AAItE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAK/C,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,aAAa,CAAA;AAShF,qBAAa,uCAAuC,CAClD,OAAO,SAAS,6CAA6C,GAAG,6CAA6C,EAC7G,UAAU,SAAS,uBAAuB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAC1H,SAAQ,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7C,gBAAyB,aAAa,WAAwD;IAC9F,gBAAyB,mBAAmB,wFAAsD;IAElG,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAY;IAClD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAY;IACjD,SAAS,CAAC,QAAQ,EAAE,kBAAkB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAY;IACzE,SAAS,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAY;IACzD,SAAS,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAY;IAC5D,SAAS,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAY;IAExD;;OAEG;IACH,SAAS,KAAK,OAAO,WAGpB;IAED;;OAEG;IACH,SAAS,KAAK,MAAM,WAGnB;IAED;;OAEG;IACH,SAAS,KAAK,OAAO,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAGrD;IAED;;OAEG;IACH,SAAS,KAAK,oBAAoB,IAAI,OAAO,CAE5C;IAED;;OAEG;IACH,SAAS,KAAK,cAAc,WAO3B;IAED;;OAEG;IACH,SAAS,KAAK,iBAAiB,IAAI,MAAM,CAIxC;IAED;;OAEG;IACH,SAAS,KAAK,aAAa,WAG1B;IAEc,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAwBvE"}
@@ -0,0 +1,5 @@
1
+ export * from './Config.ts';
2
+ export * from './Params.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Sentinel.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './toTokenRequest.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { BillingAddress, PaymentCard } from '@xyo-network/payment-payload-plugins';
2
+ import type { CreatePaymentTokenRequest } from '../Api/index.ts';
3
+ /**
4
+ * Converts a payment card and billing address to a token request
5
+ * @param paymentCard The payment card
6
+ * @param billingAddress The billing address
7
+ * @returns The token request
8
+ */
9
+ export declare const toTokenRequest: (paymentCard: PaymentCard, billingAddress: BillingAddress) => CreatePaymentTokenRequest;
10
+ //# sourceMappingURL=toTokenRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/util/toTokenRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAEvF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,aAAa,WAAW,EAAE,gBAAgB,cAAc,KAAG,yBAiBzF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/rebilly-payment-card-authorization-plugin",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,32 +21,32 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/neutral/index.d.ts",
24
+ "types": "./dist/types/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/neutral/index.d.ts",
30
+ "types": "dist/types/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/assert": "^4.5.1",
33
- "@xylabs/axios": "^4.5.1",
34
- "@xyo-network/module-model": "^3.9.16",
35
- "@xyo-network/payload-builder": "^3.9.16",
36
- "@xyo-network/payload-model": "^3.9.16",
37
- "@xyo-network/payment-payload-plugins": "^3.4.2",
38
- "@xyo-network/rebilly-payment-payload-plugin": "^3.4.2",
39
- "@xyo-network/sentinel-abstract": "^3.9.16",
40
- "@xyo-network/sentinel-model": "^3.9.16",
41
- "axios": "^1.7.9"
32
+ "@xylabs/assert": "^4.6.0",
33
+ "@xylabs/axios": "^4.6.0",
34
+ "@xyo-network/module-model": "^3.9.36",
35
+ "@xyo-network/payload-builder": "^3.9.36",
36
+ "@xyo-network/payload-model": "^3.9.36",
37
+ "@xyo-network/payment-payload-plugins": "^3.4.4",
38
+ "@xyo-network/rebilly-payment-payload-plugin": "^3.4.4",
39
+ "@xyo-network/sentinel-abstract": "^3.9.36",
40
+ "@xyo-network/sentinel-model": "^3.9.36",
41
+ "axios": "^1.8.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@xylabs/ts-scripts-yarn3": "^5.0.24",
45
- "@xylabs/tsconfig": "^5.0.24",
46
- "@xylabs/vitest-extended": "^4.5.1",
47
- "@xyo-network/boundwitness-model": "^3.9.16",
48
- "typescript": "^5.7.3",
49
- "vitest": "^3.0.6"
44
+ "@xylabs/ts-scripts-yarn3": "^6.0.5",
45
+ "@xylabs/tsconfig": "^6.0.5",
46
+ "@xylabs/vitest-extended": "^4.6.0",
47
+ "@xyo-network/boundwitness-model": "^3.9.36",
48
+ "typescript": "^5.8.2",
49
+ "vitest": "^3.0.8"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
@@ -1,39 +0,0 @@
1
- import { RebillyApiDomainSettings, RebillyPublishableApiSettings, RebillyOrganizationSettings } from '@xyo-network/rebilly-payment-payload-plugin';
2
- import { SentinelConfig, SentinelParams, SentinelModuleEventData, SentinelInstance } from '@xyo-network/sentinel-model';
3
- import { AnyConfigSchema } from '@xyo-network/module-model';
4
- import { Payload } from '@xyo-network/payload-model';
5
- import { AbstractSentinel } from '@xyo-network/sentinel-abstract';
6
- import { AxiosRequestConfig } from 'axios';
7
-
8
- declare const RebillyPaymentCardAuthorizationSentinelConfigSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly.config";
9
- type RebillyPaymentCardAuthorizationSentinelConfigSchema = typeof RebillyPaymentCardAuthorizationSentinelConfigSchema;
10
- type RebillyPaymentCardAuthorizationSentinelConfig = SentinelConfig<{
11
- schema: RebillyPaymentCardAuthorizationSentinelConfigSchema;
12
- }> & Partial<RebillyApiDomainSettings>;
13
-
14
- type RebillyPaymentCardAuthorizationParams = Partial<RebillyPublishableApiSettings & RebillyOrganizationSettings>;
15
- type RebillyPaymentCardAuthorizationSentinelParams<TConfig extends AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig> = AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig>, TParams extends RebillyPaymentCardAuthorizationParams = RebillyPaymentCardAuthorizationParams> = SentinelParams<TConfig, TParams>;
16
-
17
- declare const RebillyPaymentCardAuthorizationSentinelSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly";
18
- type RebillyPaymentCardAuthorizationSentinelSchema = typeof RebillyPaymentCardAuthorizationSentinelSchema;
19
-
20
- declare class RebillyPaymentCardAuthorizationSentinel<TParams extends RebillyPaymentCardAuthorizationSentinelParams = RebillyPaymentCardAuthorizationSentinelParams, TEventData extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> extends AbstractSentinel<TParams, TEventData> {
21
- static readonly configSchemas: string[];
22
- static readonly defaultConfigSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly.config";
23
- protected _apiRoot: string | undefined;
24
- protected _domain: string | undefined;
25
- protected _headers: AxiosRequestConfig['headers'] | undefined;
26
- protected _organizationId: string | undefined;
27
- protected _publishableApiKey: string | undefined;
28
- protected _tokenEndpoint: string | undefined;
29
- protected get apiRoot(): string;
30
- protected get domain(): string;
31
- protected get headers(): AxiosRequestConfig['headers'];
32
- protected get isSandboxEnvironment(): boolean;
33
- protected get organizationId(): string;
34
- protected get publishableApiKey(): string;
35
- protected get tokenEndpoint(): string;
36
- reportHandler(payloads?: Payload[]): Promise<Payload[]>;
37
- }
38
-
39
- export { type RebillyPaymentCardAuthorizationParams, RebillyPaymentCardAuthorizationSentinel, type RebillyPaymentCardAuthorizationSentinelConfig, RebillyPaymentCardAuthorizationSentinelConfigSchema, type RebillyPaymentCardAuthorizationSentinelParams, RebillyPaymentCardAuthorizationSentinelSchema };