@xyo-network/rebilly-payment-card-authorization-plugin 6.0.0 → 6.0.2

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.
@@ -13,7 +13,7 @@ export interface CreateTokenResponse {
13
13
  /** Card brand such as Visa or Mastercard. */
14
14
  brand: string;
15
15
  /** An identifier for the browser data. */
16
- browserData: unknown | null;
16
+ browserData: unknown;
17
17
  /** Date and time when the token was created. */
18
18
  createdTime: string;
19
19
  /** Expiration time of the token. */
@@ -33,7 +33,7 @@ export interface CreateTokenResponse {
33
33
  /** Payment instrument details. */
34
34
  paymentInstrument: ResponsePaymentCardInstrument;
35
35
  /** Metadata related to risk evaluation. */
36
- riskMetadata: unknown | null;
36
+ riskMetadata: unknown;
37
37
  /** Date and time when the token was last updated. */
38
38
  updatedTime: string;
39
39
  /** Usage time of the token. */
@@ -1 +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"}
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;I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C;IACjC,GAAG,EAAE,MAAM,CAAA;CACZ"}
@@ -1,5 +1,5 @@
1
1
  import type { RebillyApiDomainSettings } from '@xyo-network/rebilly-payment-payload-plugin';
2
- import type { SentinelConfig } from '@xyo-network/sentinel-model';
2
+ import type { SentinelConfig } from '@xyo-network/sdk-js';
3
3
  export declare const RebillyPaymentCardAuthorizationSentinelConfigSchema: string & {
4
4
  readonly __schema: true;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAIjE,eAAO,MAAM,mDAAmD;;CAA4E,CAAA;AAC5I,MAAM,MAAM,mDAAmD,GAAG,OAAO,mDAAmD,CAAA;AAK5H,MAAM,WAAW,6CAA8C,SAAQ,cAAc,CAAC;IACpF;;OAEG;IACH,MAAM,EAAE,mDAAmD,CAAA;CAC5D,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC;CAAG"}
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,qBAAqB,CAAA;AAKzD,eAAO,MAAM,mDAAmD;;CAA4E,CAAA;AAC5I,MAAM,MAAM,mDAAmD,GAAG,OAAO,mDAAmD,CAAA;AAK5H,MAAM,WAAW,6CAA8C,SAAQ,cAAc,CAAC;IACpF;;OAEG;IACH,MAAM,EAAE,mDAAmD,CAAA;CAC5D,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC;CAAG"}
@@ -1,6 +1,5 @@
1
- import type { AnyConfigSchema } from '@xyo-network/module-model';
2
1
  import type { RebillyOrganizationSettings, RebillyPublishableApiSettings } from '@xyo-network/rebilly-payment-payload-plugin';
3
- import type { SentinelParams } from '@xyo-network/sentinel-model';
2
+ import type { AnyConfigSchema, SentinelParams } from '@xyo-network/sdk-js';
4
3
  import type { RebillyPaymentCardAuthorizationSentinelConfig } from './Config.ts';
5
4
  export type RebillyPaymentCardAuthorizationParams = Partial<RebillyPublishableApiSettings & RebillyOrganizationSettings>;
6
5
  export interface RebillyPaymentCardAuthorizationSentinelParams<TConfig extends AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig> = AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig>> extends SentinelParams<TConfig> {
@@ -1 +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,WAAW,6CAA6C,CAC5D,OAAO,SAAS,eAAe,CAAC,6CAA6C,CAAC,GAAG,eAAe,CAAC,6CAA6C,CAAC,CAC/I,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAA;AAC7H,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE1E,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,aAAa,CAAA;AAEhF,MAAM,MAAM,qCAAqC,GAAG,OAAO,CAAC,6BAA6B,GAAG,2BAA2B,CAAC,CAAA;AAExH,MAAM,WAAW,6CAA6C,CAC5D,OAAO,SAAS,eAAe,CAAC,6CAA6C,CAAC,GAAG,eAAe,CAAC,6CAA6C,CAAC,CAC/I,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
@@ -1,6 +1,5 @@
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';
1
+ import type { Payload, SentinelInstance, SentinelModuleEventData } from '@xyo-network/sdk-js';
2
+ import { AbstractSentinel } from '@xyo-network/sdk-js';
4
3
  type RequestHeaders = Record<string, string>;
5
4
  import type { RebillyPaymentCardAuthorizationSentinelParams } from './Params.ts';
6
5
  export declare class RebillyPaymentCardAuthorizationSentinel<TParams extends RebillyPaymentCardAuthorizationSentinelParams = RebillyPaymentCardAuthorizationSentinelParams, TEventData extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> extends AbstractSentinel<TParams, TEventData> {
@@ -1 +1 @@
1
- {"version":3,"file":"Sentinel.d.ts","sourceRoot":"","sources":["../../src/Sentinel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,4BAA4B,CAAA;AAKtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAI5F,KAAK,cAAc,GAAG,MAA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IAEc,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAwBvE"}
@@ -1,8 +1,8 @@
1
1
  // src/Config.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
3
3
 
4
4
  // src/Schema.ts
5
- import { asSchema } from "@xyo-network/payload-model";
5
+ import { asSchema } from "@xyo-network/sdk-js";
6
6
  var RebillyPaymentCardAuthorizationSentinelSchema = asSchema("network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly", true);
7
7
 
8
8
  // src/Config.ts
@@ -12,8 +12,7 @@ var RebillyPaymentCardAuthorizationSentinelConfigSchema = asSchema2(`${RebillyPa
12
12
  import { assertEx, FetchJsonClient } from "@xylabs/sdk-js";
13
13
  import { isBillingAddress, isPaymentCard } from "@xyo-network/payment-payload-plugins";
14
14
  import { RebillyPaymentAuthorizationTokenSchema } from "@xyo-network/rebilly-payment-payload-plugin";
15
- import { PayloadBuilder } from "@xyo-network/sdk-js";
16
- import { AbstractSentinel } from "@xyo-network/sentinel-abstract";
15
+ import { AbstractSentinel, PayloadBuilder } from "@xyo-network/sdk-js";
17
16
 
18
17
  // src/util/toTokenRequest.ts
19
18
  var toTokenRequest = (paymentCard, billingAddress) => {
@@ -56,21 +55,21 @@ var RebillyPaymentCardAuthorizationSentinel = class extends AbstractSentinel {
56
55
  * The Rebilly Organization API root endpoint
57
56
  */
58
57
  get apiRoot() {
59
- if (!this._apiRoot) this._apiRoot = `${this.domain}/organizations/${this.organizationId}`;
58
+ this._apiRoot ??= `${this.domain}/organizations/${this.organizationId}`;
60
59
  return this._apiRoot;
61
60
  }
62
61
  /**
63
62
  * The Rebilly domain
64
63
  */
65
64
  get domain() {
66
- if (!this._domain) this._domain = assertEx(this.params.domain ?? this.config.domain, () => `${moduleName}: Missing domain in params/config`);
65
+ this._domain ??= assertEx(this.params.domain ?? this.config.domain, () => `${moduleName}: Missing domain in params/config`);
67
66
  return this._domain;
68
67
  }
69
68
  /**
70
69
  * The headers to be included in the request for each request
71
70
  */
72
71
  get headers() {
73
- if (!this._headers) this._headers = { Authorization: this.publishableApiKey };
72
+ this._headers ??= { Authorization: this.publishableApiKey };
74
73
  return this._headers;
75
74
  }
76
75
  /**
@@ -83,30 +82,28 @@ var RebillyPaymentCardAuthorizationSentinel = class extends AbstractSentinel {
83
82
  * The Rebilly organization ID
84
83
  */
85
84
  get organizationId() {
86
- if (!this._organizationId)
87
- this._organizationId = removePrefix(
88
- assertEx(this.params.organizationId, () => `${moduleName}: Missing organizationId in params`),
89
- "org_"
90
- );
85
+ this._organizationId ??= removePrefix(
86
+ assertEx(this.params.organizationId, () => `${moduleName}: Missing organizationId in params`),
87
+ "org_"
88
+ );
91
89
  return this._organizationId;
92
90
  }
93
91
  /**
94
92
  * The Rebilly Publishable API key
95
93
  */
96
94
  get publishableApiKey() {
97
- if (!this._publishableApiKey)
98
- this._publishableApiKey = assertEx(this.params.publishableApiKey, () => `${moduleName}: Missing publishableApiKey in params`);
95
+ this._publishableApiKey ??= assertEx(this.params.publishableApiKey, () => `${moduleName}: Missing publishableApiKey in params`);
99
96
  return this._publishableApiKey;
100
97
  }
101
98
  /**
102
99
  * The Rebilly Organization token creation endpoint
103
100
  */
104
101
  get tokenEndpoint() {
105
- if (!this._tokenEndpoint) this._tokenEndpoint = `${this.apiRoot}/tokens`;
102
+ this._tokenEndpoint ??= `${this.apiRoot}/tokens`;
106
103
  return this._tokenEndpoint;
107
104
  }
108
105
  async reportHandler(payloads) {
109
- await this.started("throw");
106
+ await this.startedAsync("throw");
110
107
  const results = [];
111
108
  if (!payloads || payloads.length === 0) return results;
112
109
  const paymentCard = payloads?.find(isPaymentCard);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/Sentinel.ts", "../../src/util/toTokenRequest.ts"],
4
- "sourcesContent": ["import { asSchema } from '@xyo-network/payload-model'\nimport type { RebillyApiDomainSettings } from '@xyo-network/rebilly-payment-payload-plugin'\nimport type { SentinelConfig } from '@xyo-network/sentinel-model'\n\nimport { RebillyPaymentCardAuthorizationSentinelSchema } from './Schema.ts'\n\nexport const RebillyPaymentCardAuthorizationSentinelConfigSchema = asSchema(`${RebillyPaymentCardAuthorizationSentinelSchema}.config`, true)\nexport type RebillyPaymentCardAuthorizationSentinelConfigSchema = typeof RebillyPaymentCardAuthorizationSentinelConfigSchema\n\n/*\n * The Rebilly Payment Card Authorization Sentinel Config\n */\nexport interface RebillyPaymentCardAuthorizationSentinelConfig extends SentinelConfig<{\n /**\n * The config schema\n */\n schema: RebillyPaymentCardAuthorizationSentinelConfigSchema\n}>, Partial<RebillyApiDomainSettings> {}\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport const RebillyPaymentCardAuthorizationSentinelSchema = asSchema('network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly', true)\nexport type RebillyPaymentCardAuthorizationSentinelSchema = typeof RebillyPaymentCardAuthorizationSentinelSchema\n", "import { assertEx, FetchJsonClient } from '@xylabs/sdk-js'\nimport type { Payload, WithSources } from '@xyo-network/payload-model'\nimport { isBillingAddress, isPaymentCard } from '@xyo-network/payment-payload-plugins'\nimport type { RebillyPaymentAuthorizationToken } from '@xyo-network/rebilly-payment-payload-plugin'\nimport { RebillyPaymentAuthorizationTokenSchema } from '@xyo-network/rebilly-payment-payload-plugin'\nimport { PayloadBuilder } from '@xyo-network/sdk-js'\nimport { AbstractSentinel } from '@xyo-network/sentinel-abstract'\nimport type { SentinelInstance, SentinelModuleEventData } from '@xyo-network/sentinel-model'\n\nconst HTTP_STATUS_CREATED = 201\n\ntype RequestHeaders = Record<string, string>\n\nimport type { CreateTokenResponse } from './Api/index.ts'\nimport { RebillyPaymentCardAuthorizationSentinelConfigSchema } from './Config.ts'\nimport type { RebillyPaymentCardAuthorizationSentinelParams } from './Params.ts'\nimport { toTokenRequest } from './util/index.ts'\n\nconst removePrefix = (str: string, prefix: string) => {\n const regex = new RegExp(`^${prefix}`)\n return str.replace(regex, '')\n}\n\nconst moduleName = 'RebillyPaymentCardAuthorizationSentinel'\nexport class RebillyPaymentCardAuthorizationSentinel<\n TParams extends RebillyPaymentCardAuthorizationSentinelParams = RebillyPaymentCardAuthorizationSentinelParams,\n TEventData extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>,\n> extends AbstractSentinel<TParams, TEventData> {\n static override readonly configSchemas = [RebillyPaymentCardAuthorizationSentinelConfigSchema]\n static override readonly defaultConfigSchema = RebillyPaymentCardAuthorizationSentinelConfigSchema\n\n protected _apiRoot: string | undefined = undefined\n protected _domain: string | undefined = undefined\n protected _headers: RequestHeaders | undefined = undefined\n protected _organizationId: string | undefined = undefined\n protected _publishableApiKey: string | undefined = undefined\n protected _tokenEndpoint: string | undefined = undefined\n\n /**\n * The Rebilly Organization API root endpoint\n */\n protected get apiRoot() {\n if (!this._apiRoot) this._apiRoot = `${this.domain}/organizations/${this.organizationId}`\n return this._apiRoot\n }\n\n /**\n * The Rebilly domain\n */\n protected get domain() {\n if (!this._domain) this._domain = assertEx(this.params.domain ?? this.config.domain, () => `${moduleName}: Missing domain in params/config`)\n return this._domain\n }\n\n /**\n * The headers to be included in the request for each request\n */\n protected get headers(): RequestHeaders {\n if (!this._headers) this._headers = { Authorization: this.publishableApiKey }\n return this._headers\n }\n\n /**\n * True if the environment is sandbox (testing), false otherwise\n */\n protected get isSandboxEnvironment(): boolean {\n return this.domain.includes('sandbox')\n }\n\n /**\n * The Rebilly organization ID\n */\n protected get organizationId() {\n if (!this._organizationId)\n this._organizationId = removePrefix(\n assertEx(this.params.organizationId, () => `${moduleName}: Missing organizationId in params`),\n 'org_',\n )\n return this._organizationId\n }\n\n /**\n * The Rebilly Publishable API key\n */\n protected get publishableApiKey(): string {\n if (!this._publishableApiKey)\n this._publishableApiKey = assertEx(this.params.publishableApiKey, () => `${moduleName}: Missing publishableApiKey in params`)\n return this._publishableApiKey\n }\n\n /**\n * The Rebilly Organization token creation endpoint\n */\n protected get tokenEndpoint() {\n if (!this._tokenEndpoint) this._tokenEndpoint = `${this.apiRoot}/tokens`\n return this._tokenEndpoint\n }\n\n override async reportHandler(payloads?: Payload[]): Promise<Payload[]> {\n await this.started('throw')\n const results: WithSources<RebillyPaymentAuthorizationToken>[] = []\n // Verify necessary inputs and if nothing meets our criteria, bail early\n if (!payloads || payloads.length === 0) return results\n const paymentCard = payloads?.find(isPaymentCard)\n if (!paymentCard) return results\n const billingAddress = payloads?.find(isBillingAddress)\n if (!billingAddress) return results\n const client = new FetchJsonClient({ headers: this.headers })\n try {\n const data = toTokenRequest(paymentCard, billingAddress)\n const response = await client.post<CreateTokenResponse>(this.tokenEndpoint, data)\n assertEx(response.status === HTTP_STATUS_CREATED, () => `Failed to tokenize payment card: ${response.status}`)\n const { id } = assertEx(response.data, () => 'Empty Rebilly response body')\n const $sources = await PayloadBuilder.dataHashes([paymentCard, billingAddress])\n results.push({\n id, schema: RebillyPaymentAuthorizationTokenSchema, $sources,\n })\n } catch (error) {\n this.logger?.error?.(`${moduleName}: Error creating payment token: ${error}`)\n }\n return results\n }\n}\n", "import type { BillingAddress, PaymentCard } from '@xyo-network/payment-payload-plugins'\n\nimport type { CreatePaymentTokenRequest } from '../Api/index.ts'\n\n/**\n * Converts a payment card and billing address to a token request\n * @param paymentCard The payment card\n * @param billingAddress The billing address\n * @returns The token request\n */\nexport const toTokenRequest = (paymentCard: PaymentCard, billingAddress: BillingAddress): CreatePaymentTokenRequest => {\n const {\n cvv, expMonth, expYear, cardNumber,\n } = paymentCard\n // We are destructuring all but the schema and passing it along to the billingAddress. This\n // is to allow for missing fields to be omitted rather than set to undefined and for any new fields\n // that might be added later to be automatically picked up on. It is fine to pass this along since\n // the user is supplying this data about themselves.\n\n const { schema: _, ...fields } = billingAddress\n return {\n billingAddress: { ...fields },\n method: 'payment-card',\n paymentInstrument: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AAS,IAAI,gBAAgB,EAAE,SAAS,KAAK,QAAQ,CAAC;AAC5D,QAAI;AACF,YAAM,OAAO,eAAe,aAAa,cAAc;AACvD,YAAM,WAAW,MAAM,OAAO,KAA0B,KAAK,eAAe,IAAI;AAChF,eAAS,SAAS,WAAW,qBAAqB,MAAM,oCAAoC,SAAS,MAAM,EAAE;AAC7G,YAAM,EAAE,GAAG,IAAI,SAAS,SAAS,MAAM,MAAM,6BAA6B;AAC1E,YAAM,WAAW,MAAM,eAAe,WAAW,CAAC,aAAa,cAAc,CAAC;AAC9E,cAAQ,KAAK;AAAA,QACX;AAAA,QAAI,QAAQ;AAAA,QAAwC;AAAA,MACtD,CAAC;AAAA,IACH,SAAS,OAAO;AACd,WAAK,QAAQ,QAAQ,GAAG,UAAU,mCAAmC,KAAK,EAAE;AAAA,IAC9E;AACA,WAAO;AAAA,EACT;AACF;",
4
+ "sourcesContent": ["import type { RebillyApiDomainSettings } from '@xyo-network/rebilly-payment-payload-plugin'\nimport type { SentinelConfig } from '@xyo-network/sdk-js'\nimport { asSchema } from '@xyo-network/sdk-js'\n\nimport { RebillyPaymentCardAuthorizationSentinelSchema } from './Schema.ts'\n\nexport const RebillyPaymentCardAuthorizationSentinelConfigSchema = asSchema(`${RebillyPaymentCardAuthorizationSentinelSchema}.config`, true)\nexport type RebillyPaymentCardAuthorizationSentinelConfigSchema = typeof RebillyPaymentCardAuthorizationSentinelConfigSchema\n\n/*\n * The Rebilly Payment Card Authorization Sentinel Config\n */\nexport interface RebillyPaymentCardAuthorizationSentinelConfig extends SentinelConfig<{\n /**\n * The config schema\n */\n schema: RebillyPaymentCardAuthorizationSentinelConfigSchema\n}>, Partial<RebillyApiDomainSettings> {}\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport const RebillyPaymentCardAuthorizationSentinelSchema = asSchema('network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly', true)\nexport type RebillyPaymentCardAuthorizationSentinelSchema = typeof RebillyPaymentCardAuthorizationSentinelSchema\n", "import { assertEx, FetchJsonClient } from '@xylabs/sdk-js'\nimport { isBillingAddress, isPaymentCard } from '@xyo-network/payment-payload-plugins'\nimport type { RebillyPaymentAuthorizationToken } from '@xyo-network/rebilly-payment-payload-plugin'\nimport { RebillyPaymentAuthorizationTokenSchema } from '@xyo-network/rebilly-payment-payload-plugin'\nimport type {\n Payload, SentinelInstance, SentinelModuleEventData, WithSources,\n} from '@xyo-network/sdk-js'\nimport { AbstractSentinel, PayloadBuilder } from '@xyo-network/sdk-js'\n\nconst HTTP_STATUS_CREATED = 201\n\ntype RequestHeaders = Record<string, string>\n\nimport type { CreateTokenResponse } from './Api/index.ts'\nimport { RebillyPaymentCardAuthorizationSentinelConfigSchema } from './Config.ts'\nimport type { RebillyPaymentCardAuthorizationSentinelParams } from './Params.ts'\nimport { toTokenRequest } from './util/index.ts'\n\nconst removePrefix = (str: string, prefix: string) => {\n const regex = new RegExp(`^${prefix}`)\n return str.replace(regex, '')\n}\n\nconst moduleName = 'RebillyPaymentCardAuthorizationSentinel'\nexport class RebillyPaymentCardAuthorizationSentinel<\n TParams extends RebillyPaymentCardAuthorizationSentinelParams = RebillyPaymentCardAuthorizationSentinelParams,\n TEventData extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>,\n> extends AbstractSentinel<TParams, TEventData> {\n static override readonly configSchemas = [RebillyPaymentCardAuthorizationSentinelConfigSchema]\n static override readonly defaultConfigSchema = RebillyPaymentCardAuthorizationSentinelConfigSchema\n\n protected _apiRoot: string | undefined = undefined\n protected _domain: string | undefined = undefined\n protected _headers: RequestHeaders | undefined = undefined\n protected _organizationId: string | undefined = undefined\n protected _publishableApiKey: string | undefined = undefined\n protected _tokenEndpoint: string | undefined = undefined\n\n /**\n * The Rebilly Organization API root endpoint\n */\n protected get apiRoot() {\n this._apiRoot ??= `${this.domain}/organizations/${this.organizationId}`\n return this._apiRoot\n }\n\n /**\n * The Rebilly domain\n */\n protected get domain() {\n this._domain ??= assertEx(this.params.domain ?? this.config.domain, () => `${moduleName}: Missing domain in params/config`)\n return this._domain\n }\n\n /**\n * The headers to be included in the request for each request\n */\n protected get headers(): RequestHeaders {\n this._headers ??= { Authorization: this.publishableApiKey }\n return this._headers\n }\n\n /**\n * True if the environment is sandbox (testing), false otherwise\n */\n protected get isSandboxEnvironment(): boolean {\n return this.domain.includes('sandbox')\n }\n\n /**\n * The Rebilly organization ID\n */\n protected get organizationId() {\n this._organizationId ??= removePrefix(\n assertEx(this.params.organizationId, () => `${moduleName}: Missing organizationId in params`),\n 'org_',\n )\n return this._organizationId\n }\n\n /**\n * The Rebilly Publishable API key\n */\n protected get publishableApiKey(): string {\n this._publishableApiKey ??= assertEx(this.params.publishableApiKey, () => `${moduleName}: Missing publishableApiKey in params`)\n return this._publishableApiKey\n }\n\n /**\n * The Rebilly Organization token creation endpoint\n */\n protected get tokenEndpoint() {\n this._tokenEndpoint ??= `${this.apiRoot}/tokens`\n return this._tokenEndpoint\n }\n\n override async reportHandler(payloads?: Payload[]): Promise<Payload[]> {\n await this.startedAsync('throw')\n const results: WithSources<RebillyPaymentAuthorizationToken>[] = []\n // Verify necessary inputs and if nothing meets our criteria, bail early\n if (!payloads || payloads.length === 0) return results\n const paymentCard = payloads?.find(isPaymentCard)\n if (!paymentCard) return results\n const billingAddress = payloads?.find(isBillingAddress)\n if (!billingAddress) return results\n const client = new FetchJsonClient({ headers: this.headers })\n try {\n const data = toTokenRequest(paymentCard, billingAddress)\n const response = await client.post<CreateTokenResponse>(this.tokenEndpoint, data)\n assertEx(response.status === HTTP_STATUS_CREATED, () => `Failed to tokenize payment card: ${response.status}`)\n const { id } = assertEx(response.data, () => 'Empty Rebilly response body')\n const $sources = await PayloadBuilder.dataHashes([paymentCard, billingAddress])\n results.push({\n id, schema: RebillyPaymentAuthorizationTokenSchema, $sources,\n })\n } catch (error) {\n this.logger?.error?.(`${moduleName}: Error creating payment token: ${error}`)\n }\n return results\n }\n}\n", "import type { BillingAddress, PaymentCard } from '@xyo-network/payment-payload-plugins'\n\nimport type { CreatePaymentTokenRequest } from '../Api/index.ts'\n\n/**\n * Converts a payment card and billing address to a token request\n * @param paymentCard The payment card\n * @param billingAddress The billing address\n * @returns The token request\n */\nexport const toTokenRequest = (paymentCard: PaymentCard, billingAddress: BillingAddress): CreatePaymentTokenRequest => {\n const {\n cvv, expMonth, expYear, cardNumber,\n } = paymentCard\n // We are destructuring all but the schema and passing it along to the billingAddress. This\n // is to allow for missing fields to be omitted rather than set to undefined and for any new fields\n // that might be added later to be automatically picked up on. It is fine to pass this along since\n // the user is supplying this data about themselves.\n\n const { schema: _, ...fields } = billingAddress\n return {\n billingAddress: { ...fields },\n method: 'payment-card',\n paymentInstrument: {\n cvv, expMonth, expYear, pan: cardNumber,\n },\n }\n}\n"],
5
+ "mappings": ";AAEA,SAAS,YAAAA,iBAAgB;;;ACFzB,SAAS,gBAAgB;AAElB,IAAM,gDAAgD,SAAS,+EAA+E,IAAI;;;ADIlJ,IAAM,sDAAsDC,UAAS,GAAG,6CAA6C,WAAW,IAAI;;;AEN3I,SAAS,UAAU,uBAAuB;AAC1C,SAAS,kBAAkB,qBAAqB;AAEhD,SAAS,8CAA8C;AAIvD,SAAS,kBAAkB,sBAAsB;;;ACG1C,IAAM,iBAAiB,CAAC,aAA0B,mBAA8D;AACrH,QAAM;AAAA,IACJ;AAAA,IAAK;AAAA,IAAU;AAAA,IAAS;AAAA,EAC1B,IAAI;AAMJ,QAAM,EAAE,QAAQ,GAAG,GAAG,OAAO,IAAI;AACjC,SAAO;AAAA,IACL,gBAAgB,EAAE,GAAG,OAAO;AAAA,IAC5B,QAAQ;AAAA,IACR,mBAAmB;AAAA,MACjB;AAAA,MAAK;AAAA,MAAU;AAAA,MAAS,KAAK;AAAA,IAC/B;AAAA,EACF;AACF;;;ADlBA,IAAM,sBAAsB;AAS5B,IAAM,eAAe,CAAC,KAAa,WAAmB;AACpD,QAAM,QAAQ,IAAI,OAAO,IAAI,MAAM,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AA,EACd;AAAA,EAEA,MAAe,cAAc,UAA0C;AACrE,UAAM,KAAK,aAAa,OAAO;AAC/B,UAAM,UAA2D,CAAC;AAElE,QAAI,CAAC,YAAY,SAAS,WAAW,EAAG,QAAO;AAC/C,UAAM,cAAc,UAAU,KAAK,aAAa;AAChD,QAAI,CAAC,YAAa,QAAO;AACzB,UAAM,iBAAiB,UAAU,KAAK,gBAAgB;AACtD,QAAI,CAAC,eAAgB,QAAO;AAC5B,UAAM,SAAS,IAAI,gBAAgB,EAAE,SAAS,KAAK,QAAQ,CAAC;AAC5D,QAAI;AACF,YAAM,OAAO,eAAe,aAAa,cAAc;AACvD,YAAM,WAAW,MAAM,OAAO,KAA0B,KAAK,eAAe,IAAI;AAChF,eAAS,SAAS,WAAW,qBAAqB,MAAM,oCAAoC,SAAS,MAAM,EAAE;AAC7G,YAAM,EAAE,GAAG,IAAI,SAAS,SAAS,MAAM,MAAM,6BAA6B;AAC1E,YAAM,WAAW,MAAM,eAAe,WAAW,CAAC,aAAa,cAAc,CAAC;AAC9E,cAAQ,KAAK;AAAA,QACX;AAAA,QAAI,QAAQ;AAAA,QAAwC;AAAA,MACtD,CAAC;AAAA,IACH,SAAS,OAAO;AACd,WAAK,QAAQ,QAAQ,GAAG,UAAU,mCAAmC,KAAK,EAAE;AAAA,IAC9E;AACA,WAAO;AAAA,EACT;AACF;",
6
6
  "names": ["asSchema", "asSchema"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/rebilly-payment-card-authorization-plugin",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,75 +31,51 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@xyo-network/rebilly-payment-payload-plugin": "~6.0.0",
35
- "@xyo-network/payment-payload-plugins": "~6.0.0"
34
+ "@xyo-network/payment-payload-plugins": "~6.0.2",
35
+ "@xyo-network/rebilly-payment-payload-plugin": "~6.0.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@bitauth/libauth": "~3.0.0",
39
39
  "@metamask/providers": "^22.1.1",
40
+ "@noble/post-quantum": "~0.6.1",
40
41
  "@opentelemetry/api": "^1.9.1",
41
42
  "@opentelemetry/sdk-trace-base": "^2.7.1",
42
43
  "@scure/base": "^2.2.0",
43
44
  "@scure/bip39": "~2.2.0",
44
- "@xylabs/crypto": "~6.0",
45
- "@xylabs/geo": "~6.0",
46
- "@xylabs/sdk-js": "~6.0",
47
- "@xylabs/threads": "~6.0",
48
- "@xylabs/toolchain": "~8.1.1",
49
- "@xylabs/tsconfig": "~8.1.1",
50
- "@xylabs/vitest-extended": "~6.0.2",
51
- "@xyo-network/account": "~6.0",
52
- "@xyo-network/account-model": "~6.0",
53
- "@xyo-network/api": "~6.0",
54
- "@xyo-network/api-models": "~6.0",
55
- "@xyo-network/boundwitness-builder": "~6.0",
56
- "@xyo-network/boundwitness-model": "~6.0",
57
- "@xyo-network/boundwitness-validator": "~6.0",
58
- "@xyo-network/boundwitness-wrapper": "~6.0",
59
- "@xyo-network/config-payload-plugin": "~6.0",
60
- "@xyo-network/diviner-hash-lease": "~6.0",
61
- "@xyo-network/diviner-model": "~6.0",
62
- "@xyo-network/huri": "~6.0",
63
- "@xyo-network/manifest-model": "~6.0",
64
- "@xyo-network/module-model": "~6.0",
65
- "@xyo-network/payload-builder": "~6.0",
66
- "@xyo-network/payload-model": "~6.0",
67
- "@xyo-network/payload-plugin": "~6.0",
68
- "@xyo-network/payload-wrapper": "~6.0",
69
- "@xyo-network/query-payload-plugin": "~6.0",
70
- "@xyo-network/sdk-js": "~6.0",
71
- "@xyo-network/sdk-protocol-js": "~6.0",
72
- "@xyo-network/sentinel-abstract": "~6.0",
73
- "@xyo-network/sentinel-model": "~6.0",
74
- "@xyo-network/wallet": "~6.0",
75
- "@xyo-network/wallet-model": "~6.0",
76
- "@xyo-network/witness-model": "~6.0",
45
+ "@xylabs/crypto": "^6.0.6",
46
+ "@xylabs/geo": "^6.0.6",
47
+ "@xylabs/sdk-js": "^6.0.6",
48
+ "@xylabs/threads": "^6.0.6",
49
+ "@xylabs/toolchain": "~8.1.11",
50
+ "@xylabs/tsconfig": "~8.1.11",
51
+ "@xylabs/vitest-extended": "~6.0.6",
52
+ "@xyo-network/boundwitness-model": "^6.0.7",
53
+ "@xyo-network/diviner-hash-lease": "~6.0.2",
54
+ "@xyo-network/sdk-js": "^6.0.2",
55
+ "@xyo-network/sdk-protocol-js": "~6.0.7",
77
56
  "ajv": "^8.20.0",
78
57
  "async-mutex": "^0.5.0",
79
58
  "bn.js": "^5.2.3",
80
59
  "buffer": "^6.0.3",
81
- "chalk": "^5.6.2",
82
60
  "crypto-js": "~4.2.0",
83
61
  "debug": "~4.4.3",
84
- "eslint": "^10.4.0",
62
+ "eslint": "^10.4.1",
85
63
  "ethers": "^6.16.0",
86
64
  "hash-wasm": "^4.12.0",
87
65
  "idb": "^8.0.3",
88
- "lru-cache": "^11.5.0",
89
- "mapbox-gl": "~3.24",
66
+ "lru-cache": "^11.5.1",
90
67
  "observable-fns": "~0.6.1",
91
68
  "pako": "~2.1.0",
92
- "store2": "~2.14.4",
93
69
  "typescript": "~6.0.3",
94
- "vite": "^8.0.13",
95
- "vitest": "^4.1.7",
96
- "wasm-feature-detect": "~1.8.0",
70
+ "vite": "^8.0.16",
71
+ "vitest": "^4.1.8",
97
72
  "webextension-polyfill": "^0.12.0",
98
73
  "zod": "^4.4.3"
99
74
  },
100
75
  "peerDependencies": {
101
76
  "@bitauth/libauth": "~3.0",
102
77
  "@metamask/providers": "^22.1",
78
+ "@noble/post-quantum": "~0.6.1",
103
79
  "@opentelemetry/api": "^1.9",
104
80
  "@opentelemetry/sdk-trace-base": "^2.7",
105
81
  "@scure/base": "^2.2",
@@ -108,48 +84,21 @@
108
84
  "@xylabs/geo": "^6.0",
109
85
  "@xylabs/sdk-js": "^6.0",
110
86
  "@xylabs/threads": "^6.0",
111
- "@xyo-network/account": "~6.0",
112
- "@xyo-network/account-model": "^6.0",
113
- "@xyo-network/api": "~6.0",
114
- "@xyo-network/api-models": "~6.0",
115
- "@xyo-network/boundwitness-builder": "~6.0",
116
- "@xyo-network/boundwitness-model": "^6.0",
117
- "@xyo-network/boundwitness-validator": "^6.0",
118
- "@xyo-network/boundwitness-wrapper": "~6.0",
119
- "@xyo-network/config-payload-plugin": "~6.0",
120
87
  "@xyo-network/diviner-hash-lease": "^6.0",
121
- "@xyo-network/diviner-model": "^6.0",
122
- "@xyo-network/huri": "~6.0",
123
- "@xyo-network/manifest-model": "~6.0",
124
- "@xyo-network/module-model": "^6.0",
125
- "@xyo-network/payload-builder": "~6.0",
126
- "@xyo-network/payload-model": "^6.0",
127
- "@xyo-network/payload-plugin": "~6.0",
128
- "@xyo-network/payload-wrapper": "~6.0",
129
- "@xyo-network/query-payload-plugin": "~6.0",
130
88
  "@xyo-network/sdk-js": "^6.0",
131
89
  "@xyo-network/sdk-protocol-js": "~6.0",
132
- "@xyo-network/sentinel-abstract": "~6.0",
133
- "@xyo-network/sentinel-model": "~6.0",
134
- "@xyo-network/wallet": "~6.0",
135
- "@xyo-network/wallet-model": "~6.0",
136
- "@xyo-network/witness-model": "^6.0",
137
90
  "ajv": "^8.20",
138
91
  "async-mutex": "^0.5",
139
92
  "bn.js": "^5.2",
140
93
  "buffer": "^6.0",
141
- "chalk": "^5.6",
142
94
  "crypto-js": "~4.2",
143
95
  "debug": "~4.4",
144
96
  "ethers": "^6.16",
145
97
  "hash-wasm": "^4.12",
146
98
  "idb": "^8.0",
147
99
  "lru-cache": "^11.3",
148
- "mapbox-gl": "~3.24",
149
100
  "observable-fns": "~0.6",
150
101
  "pako": "~2.1",
151
- "store2": "~2.14",
152
- "wasm-feature-detect": "~1.8",
153
102
  "webextension-polyfill": "^0.12",
154
103
  "zod": "^4.4"
155
104
  },