@xyo-network/rebilly-payment-card-authorization-plugin 4.0.0 → 4.1.0
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/neutral/index.d.ts +69 -0
- package/dist/neutral/spec/Sentinel.spec.d.ts +2 -0
- package/dist/neutral/spec/Sentinel.spec.d.ts.map +1 -0
- package/dist/neutral/util/spec/toTokenRequest.spec.d.ts +2 -0
- package/dist/neutral/util/spec/toTokenRequest.spec.d.ts.map +1 -0
- package/package.json +16 -16
- package/dist/types/index.d.ts +0 -5
- /package/dist/{types → neutral}/Api/PaymentCardToken/Request.d.ts +0 -0
- /package/dist/{types → neutral}/Api/PaymentCardToken/Request.d.ts.map +0 -0
- /package/dist/{types → neutral}/Api/PaymentCardToken/Response.d.ts +0 -0
- /package/dist/{types → neutral}/Api/PaymentCardToken/Response.d.ts.map +0 -0
- /package/dist/{types → neutral}/Api/PaymentCardToken/index.d.ts +0 -0
- /package/dist/{types → neutral}/Api/PaymentCardToken/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Api/index.d.ts +0 -0
- /package/dist/{types → neutral}/Api/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Config.d.ts +0 -0
- /package/dist/{types → neutral}/Config.d.ts.map +0 -0
- /package/dist/{types → neutral}/Params.d.ts +0 -0
- /package/dist/{types → neutral}/Params.d.ts.map +0 -0
- /package/dist/{types → neutral}/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Sentinel.d.ts +0 -0
- /package/dist/{types → neutral}/Sentinel.d.ts.map +0 -0
- /package/dist/{types → neutral}/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/util/index.d.ts +0 -0
- /package/dist/{types → neutral}/util/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/util/toTokenRequest.d.ts +0 -0
- /package/dist/{types → neutral}/util/toTokenRequest.d.ts.map +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
interface RebillyPaymentCardAuthorizationSentinelConfig extends SentinelConfig<{
|
|
11
|
+
/**
|
|
12
|
+
* The config schema
|
|
13
|
+
*/
|
|
14
|
+
schema: RebillyPaymentCardAuthorizationSentinelConfigSchema;
|
|
15
|
+
}>, Partial<RebillyApiDomainSettings> {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type RebillyPaymentCardAuthorizationParams = Partial<RebillyPublishableApiSettings & RebillyOrganizationSettings>;
|
|
19
|
+
interface RebillyPaymentCardAuthorizationSentinelParams<TConfig extends AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig> = AnyConfigSchema<RebillyPaymentCardAuthorizationSentinelConfig>> extends SentinelParams<TConfig> {
|
|
20
|
+
domain?: string;
|
|
21
|
+
organizationId?: string;
|
|
22
|
+
publishableApiKey?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const RebillyPaymentCardAuthorizationSentinelSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly";
|
|
26
|
+
type RebillyPaymentCardAuthorizationSentinelSchema = typeof RebillyPaymentCardAuthorizationSentinelSchema;
|
|
27
|
+
|
|
28
|
+
declare class RebillyPaymentCardAuthorizationSentinel<TParams extends RebillyPaymentCardAuthorizationSentinelParams = RebillyPaymentCardAuthorizationSentinelParams, TEventData extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> extends AbstractSentinel<TParams, TEventData> {
|
|
29
|
+
static readonly configSchemas: string[];
|
|
30
|
+
static readonly defaultConfigSchema = "network.xyo.sentinel.payments.payment.instrument.card.authorization.rebilly.config";
|
|
31
|
+
protected _apiRoot: string | undefined;
|
|
32
|
+
protected _domain: string | undefined;
|
|
33
|
+
protected _headers: AxiosRequestConfig['headers'] | undefined;
|
|
34
|
+
protected _organizationId: string | undefined;
|
|
35
|
+
protected _publishableApiKey: string | undefined;
|
|
36
|
+
protected _tokenEndpoint: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The Rebilly Organization API root endpoint
|
|
39
|
+
*/
|
|
40
|
+
protected get apiRoot(): string;
|
|
41
|
+
/**
|
|
42
|
+
* The Rebilly domain
|
|
43
|
+
*/
|
|
44
|
+
protected get domain(): string;
|
|
45
|
+
/**
|
|
46
|
+
* The headers to be included in the request for each request
|
|
47
|
+
*/
|
|
48
|
+
protected get headers(): AxiosRequestConfig['headers'];
|
|
49
|
+
/**
|
|
50
|
+
* True if the environment is sandbox (testing), false otherwise
|
|
51
|
+
*/
|
|
52
|
+
protected get isSandboxEnvironment(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The Rebilly organization ID
|
|
55
|
+
*/
|
|
56
|
+
protected get organizationId(): string;
|
|
57
|
+
/**
|
|
58
|
+
* The Rebilly Publishable API key
|
|
59
|
+
*/
|
|
60
|
+
protected get publishableApiKey(): string;
|
|
61
|
+
/**
|
|
62
|
+
* The Rebilly Organization token creation endpoint
|
|
63
|
+
*/
|
|
64
|
+
protected get tokenEndpoint(): string;
|
|
65
|
+
reportHandler(payloads?: Payload[]): Promise<Payload[]>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { RebillyPaymentCardAuthorizationSentinel, RebillyPaymentCardAuthorizationSentinelConfigSchema, RebillyPaymentCardAuthorizationSentinelSchema };
|
|
69
|
+
export type { RebillyPaymentCardAuthorizationParams, RebillyPaymentCardAuthorizationSentinelConfig, RebillyPaymentCardAuthorizationSentinelParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sentinel.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/Sentinel.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toTokenRequest.spec.d.ts","sourceRoot":"","sources":["../../../../src/util/spec/toTokenRequest.spec.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/rebilly-payment-card-authorization-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,30 +21,30 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/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/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xylabs/axios": "^4.
|
|
34
|
-
"@xyo-network/module-model": "^4.
|
|
35
|
-
"@xyo-network/payload-builder": "^4.
|
|
36
|
-
"@xyo-network/payload-model": "^4.
|
|
37
|
-
"@xyo-network/payment-payload-plugins": "^4.
|
|
38
|
-
"@xyo-network/rebilly-payment-payload-plugin": "^4.
|
|
39
|
-
"@xyo-network/sentinel-abstract": "^4.
|
|
40
|
-
"@xyo-network/sentinel-model": "^4.
|
|
32
|
+
"@xylabs/assert": "^4.13.15",
|
|
33
|
+
"@xylabs/axios": "^4.13.15",
|
|
34
|
+
"@xyo-network/module-model": "^4.1.1",
|
|
35
|
+
"@xyo-network/payload-builder": "^4.1.1",
|
|
36
|
+
"@xyo-network/payload-model": "^4.1.1",
|
|
37
|
+
"@xyo-network/payment-payload-plugins": "^4.1.0",
|
|
38
|
+
"@xyo-network/rebilly-payment-payload-plugin": "^4.1.0",
|
|
39
|
+
"@xyo-network/sentinel-abstract": "^4.1.1",
|
|
40
|
+
"@xyo-network/sentinel-model": "^4.1.1",
|
|
41
41
|
"axios": "^1.10.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
45
|
-
"@xylabs/tsconfig": "^
|
|
46
|
-
"@xylabs/vitest-extended": "^4.
|
|
47
|
-
"@xyo-network/boundwitness-model": "^4.
|
|
44
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.24",
|
|
45
|
+
"@xylabs/tsconfig": "^7.0.0-rc.24",
|
|
46
|
+
"@xylabs/vitest-extended": "^4.13.15",
|
|
47
|
+
"@xyo-network/boundwitness-model": "^4.1.1",
|
|
48
48
|
"knip": "^5.61.3",
|
|
49
49
|
"typescript": "^5.8.3",
|
|
50
50
|
"vitest": "^3.2.4"
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|