chargefy-js 1.1.9 → 1.1.11
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/chargefy.d.ts +18 -12
- package/dist/chargefy.d.ts.map +1 -1
- package/dist/chargefy.js +20 -12
- package/dist/core.d.ts +9 -9
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +3 -3
- package/dist/funcs/checkoutsClientConfirm.d.ts +11 -11
- package/dist/funcs/checkoutsClientConfirm.d.ts.map +1 -1
- package/dist/funcs/checkoutsClientConfirm.js +3 -3
- package/dist/funcs/checkoutsClientGet.d.ts +7 -7
- package/dist/funcs/checkoutsClientGet.d.ts.map +1 -1
- package/dist/funcs/checkoutsClientGet.js +3 -3
- package/dist/funcs/checkoutsClientUpdate.d.ts +10 -10
- package/dist/funcs/checkoutsClientUpdate.d.ts.map +1 -1
- package/dist/funcs/checkoutsClientUpdate.js +3 -3
- package/dist/index.d.ts +26 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -10
- package/dist/models/checkout.d.ts +4 -0
- package/dist/models/checkout.d.ts.map +1 -1
- package/dist/models/components/checkoutconfirmcelcoin.d.ts +1 -1
- package/dist/models/components/checkoutconfirmcelcoin.d.ts.map +1 -1
- package/dist/models/components/checkoutpublicconfirmed.d.ts +1 -1
- package/dist/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/models/components/checkoutupdatepublic.d.ts +1 -1
- package/dist/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/models/discount.d.ts +108 -0
- package/dist/models/discount.d.ts.map +1 -0
- package/dist/models/discount.js +1 -0
- package/dist/models/webhook.d.ts +47 -0
- package/dist/models/webhook.d.ts.map +1 -0
- package/dist/models/webhook.js +13 -0
- package/dist/namespaces/buyers.d.ts +4 -4
- package/dist/namespaces/buyers.d.ts.map +1 -1
- package/dist/namespaces/checkoutLinks.d.ts +4 -4
- package/dist/namespaces/checkoutLinks.d.ts.map +1 -1
- package/dist/namespaces/checkouts.d.ts +4 -4
- package/dist/namespaces/checkouts.d.ts.map +1 -1
- package/dist/namespaces/checkouts.js +5 -1
- package/dist/namespaces/discounts.d.ts +22 -0
- package/dist/namespaces/discounts.d.ts.map +1 -0
- package/dist/namespaces/discounts.js +119 -0
- package/dist/namespaces/embed-onboarding.d.ts +3 -3
- package/dist/namespaces/embed-onboarding.d.ts.map +1 -1
- package/dist/namespaces/kyc.d.ts +3 -3
- package/dist/namespaces/kyc.d.ts.map +1 -1
- package/dist/namespaces/onboarding-links.d.ts +3 -3
- package/dist/namespaces/onboarding-links.d.ts.map +1 -1
- package/dist/namespaces/organizations.d.ts +3 -3
- package/dist/namespaces/organizations.d.ts.map +1 -1
- package/dist/namespaces/products.d.ts +4 -4
- package/dist/namespaces/products.d.ts.map +1 -1
- package/dist/namespaces/sales.d.ts +4 -4
- package/dist/namespaces/sales.d.ts.map +1 -1
- package/dist/namespaces/sub-organizations.d.ts +43 -3
- package/dist/namespaces/sub-organizations.d.ts.map +1 -1
- package/dist/namespaces/sub-organizations.js +115 -0
- package/dist/namespaces/subscriptions.d.ts +4 -4
- package/dist/namespaces/subscriptions.d.ts.map +1 -1
- package/dist/namespaces/webhooks.d.ts +89 -0
- package/dist/namespaces/webhooks.d.ts.map +1 -0
- package/dist/namespaces/webhooks.js +133 -0
- package/dist/utils/errors.d.ts +8 -8
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +8 -8
- package/dist/utils/transformers.d.ts +1 -1
- package/dist/utils/transformers.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/chargefy.ts +20 -12
- package/src/core.ts +11 -11
- package/src/funcs/checkoutsClientConfirm.ts +13 -13
- package/src/funcs/checkoutsClientGet.ts +9 -9
- package/src/funcs/checkoutsClientUpdate.ts +12 -12
- package/src/index.ts +46 -23
- package/src/models/checkout.ts +4 -0
- package/src/models/components/checkoutconfirmcelcoin.ts +1 -1
- package/src/models/components/checkoutpublicconfirmed.ts +1 -1
- package/src/models/components/checkoutupdatepublic.ts +1 -1
- package/src/models/discount.ts +119 -0
- package/src/models/webhook.ts +96 -0
- package/src/namespaces/buyers.ts +4 -4
- package/src/namespaces/checkoutLinks.ts +4 -4
- package/src/namespaces/checkouts.ts +7 -5
- package/src/namespaces/discounts.ts +119 -0
- package/src/namespaces/embed-onboarding.ts +3 -3
- package/src/namespaces/kyc.ts +3 -3
- package/src/namespaces/onboarding-links.ts +3 -3
- package/src/namespaces/organizations.ts +3 -3
- package/src/namespaces/products.ts +4 -4
- package/src/namespaces/sales.ts +4 -4
- package/src/namespaces/sub-organizations.ts +130 -3
- package/src/namespaces/subscriptions.ts +4 -4
- package/src/namespaces/webhooks.ts +180 -0
- package/src/utils/errors.ts +8 -8
- package/src/utils/transformers.ts +1 -1
package/dist/chargefy.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { type ChargefyCoreOptions } from './core';
|
|
2
|
-
import { Organizations } from './namespaces/organizations';
|
|
3
|
-
import { Products } from './namespaces/products';
|
|
4
|
-
import { CheckoutLinks } from './namespaces/checkoutLinks';
|
|
5
|
-
import { Buyers } from './namespaces/buyers';
|
|
6
|
-
import { Checkouts } from './namespaces/checkouts';
|
|
7
|
-
import { Sales } from './namespaces/sales';
|
|
8
|
-
import { Subscriptions } from './namespaces/subscriptions';
|
|
9
|
-
import { SubOrganizations } from './namespaces/sub-organizations';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { type ChargefyCoreOptions } from './core.js';
|
|
2
|
+
import { Organizations } from './namespaces/organizations.js';
|
|
3
|
+
import { Products } from './namespaces/products.js';
|
|
4
|
+
import { CheckoutLinks } from './namespaces/checkoutLinks.js';
|
|
5
|
+
import { Buyers } from './namespaces/buyers.js';
|
|
6
|
+
import { Checkouts } from './namespaces/checkouts.js';
|
|
7
|
+
import { Sales } from './namespaces/sales.js';
|
|
8
|
+
import { Subscriptions } from './namespaces/subscriptions.js';
|
|
9
|
+
import { SubOrganizations } from './namespaces/sub-organizations.js';
|
|
10
|
+
import { Webhooks } from './namespaces/webhooks.js';
|
|
11
|
+
import { EmbedOnboarding } from './namespaces/embed-onboarding.js';
|
|
12
|
+
import { OnboardingLinks } from './namespaces/onboarding-links.js';
|
|
13
|
+
import { Kyc } from './namespaces/kyc.js';
|
|
14
|
+
import { Discounts } from './namespaces/discounts.js';
|
|
13
15
|
export type { ChargefyCoreOptions };
|
|
14
16
|
/**
|
|
15
17
|
* Chargefy SDK
|
|
@@ -43,12 +45,16 @@ export declare class Chargefy {
|
|
|
43
45
|
readonly subscriptions: Subscriptions;
|
|
44
46
|
/** Sub-organization onboarding and API key management (parent OAT required). */
|
|
45
47
|
readonly subOrganizations: SubOrganizations;
|
|
48
|
+
/** Webhook endpoint management. Create endpoints to receive events (including suborganization events). */
|
|
49
|
+
readonly webhooks: Webhooks;
|
|
46
50
|
/** Embed onboarding flow — no auth, uses link_token. */
|
|
47
51
|
readonly embedOnboarding: EmbedOnboarding;
|
|
48
52
|
/** Create onboarding links (OAT required). */
|
|
49
53
|
readonly onboardingLinks: OnboardingLinks;
|
|
50
54
|
/** KYC document status and upload (OAT or user session). */
|
|
51
55
|
readonly kyc: Kyc;
|
|
56
|
+
/** Discount management: create, list, validate, stats. */
|
|
57
|
+
readonly discounts: Discounts;
|
|
52
58
|
constructor(options?: ChargefyCoreOptions);
|
|
53
59
|
}
|
|
54
60
|
//# sourceMappingURL=chargefy.d.ts.map
|
package/dist/chargefy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chargefy.d.ts","sourceRoot":"","sources":["../src/chargefy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"chargefy.d.ts","sourceRoot":"","sources":["../src/chargefy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAClE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GAA0G;IAC1G,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAA;IACzC,8CAA8C;IAC9C,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAA;IACzC,4DAA4D;IAC5D,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAA;IACjB,0DAA0D;IAC1D,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;gBAEjB,OAAO,GAAE,mBAAwB;CAgB9C"}
|
package/dist/chargefy.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { ChargefyCore } from './core';
|
|
2
|
-
import { Organizations } from './namespaces/organizations';
|
|
3
|
-
import { Products } from './namespaces/products';
|
|
4
|
-
import { CheckoutLinks } from './namespaces/checkoutLinks';
|
|
5
|
-
import { Buyers } from './namespaces/buyers';
|
|
6
|
-
import { Checkouts } from './namespaces/checkouts';
|
|
7
|
-
import { Sales } from './namespaces/sales';
|
|
8
|
-
import { Subscriptions } from './namespaces/subscriptions';
|
|
9
|
-
import { SubOrganizations } from './namespaces/sub-organizations';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { ChargefyCore } from './core.js';
|
|
2
|
+
import { Organizations } from './namespaces/organizations.js';
|
|
3
|
+
import { Products } from './namespaces/products.js';
|
|
4
|
+
import { CheckoutLinks } from './namespaces/checkoutLinks.js';
|
|
5
|
+
import { Buyers } from './namespaces/buyers.js';
|
|
6
|
+
import { Checkouts } from './namespaces/checkouts.js';
|
|
7
|
+
import { Sales } from './namespaces/sales.js';
|
|
8
|
+
import { Subscriptions } from './namespaces/subscriptions.js';
|
|
9
|
+
import { SubOrganizations } from './namespaces/sub-organizations.js';
|
|
10
|
+
import { Webhooks } from './namespaces/webhooks.js';
|
|
11
|
+
import { EmbedOnboarding } from './namespaces/embed-onboarding.js';
|
|
12
|
+
import { OnboardingLinks } from './namespaces/onboarding-links.js';
|
|
13
|
+
import { Kyc } from './namespaces/kyc.js';
|
|
14
|
+
import { Discounts } from './namespaces/discounts.js';
|
|
13
15
|
/**
|
|
14
16
|
* Chargefy SDK
|
|
15
17
|
*
|
|
@@ -42,12 +44,16 @@ export class Chargefy {
|
|
|
42
44
|
subscriptions;
|
|
43
45
|
/** Sub-organization onboarding and API key management (parent OAT required). */
|
|
44
46
|
subOrganizations;
|
|
47
|
+
/** Webhook endpoint management. Create endpoints to receive events (including suborganization events). */
|
|
48
|
+
webhooks;
|
|
45
49
|
/** Embed onboarding flow — no auth, uses link_token. */
|
|
46
50
|
embedOnboarding;
|
|
47
51
|
/** Create onboarding links (OAT required). */
|
|
48
52
|
onboardingLinks;
|
|
49
53
|
/** KYC document status and upload (OAT or user session). */
|
|
50
54
|
kyc;
|
|
55
|
+
/** Discount management: create, list, validate, stats. */
|
|
56
|
+
discounts;
|
|
51
57
|
constructor(options = {}) {
|
|
52
58
|
const core = new ChargefyCore(options);
|
|
53
59
|
this.organizations = new Organizations(core);
|
|
@@ -58,8 +64,10 @@ export class Chargefy {
|
|
|
58
64
|
this.sales = new Sales(core);
|
|
59
65
|
this.subscriptions = new Subscriptions(core);
|
|
60
66
|
this.subOrganizations = new SubOrganizations(core);
|
|
67
|
+
this.webhooks = new Webhooks(core);
|
|
61
68
|
this.embedOnboarding = new EmbedOnboarding(core);
|
|
62
69
|
this.onboardingLinks = new OnboardingLinks(core);
|
|
63
70
|
this.kyc = new Kyc(core);
|
|
71
|
+
this.discounts = new Discounts(core);
|
|
64
72
|
}
|
|
65
73
|
}
|
package/dist/core.d.ts
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* ChargefyCore — typed HTTP client
|
|
3
3
|
* Handles auth, base URL, timeout, and snake_case↔camelCase transformation.
|
|
4
4
|
*/
|
|
5
|
-
import type { Result } from './types/fp';
|
|
6
|
-
import { ConnectionError, RequestTimeoutError, SDKError, type UnexpectedClientError, type InvalidRequestError, type RequestAbortedError } from './models/errors/httpclienterrors';
|
|
7
|
-
import type { ResourceNotFound } from './models/errors/resourcenotfound';
|
|
8
|
-
import type { ExpiredCheckoutError } from './models/errors/expiredcheckouterror';
|
|
9
|
-
import type { HTTPValidationError } from './models/errors/httpvalidationerror';
|
|
10
|
-
import type { PaymentError } from './models/errors/paymenterror';
|
|
11
|
-
import type { NotOpenCheckout } from './models/errors/notopencheckout';
|
|
12
|
-
import type { AlreadyActiveSubscriptionError } from './models/errors/alreadyactivesubscriptionerror';
|
|
13
|
-
import type { PaymentNotReady } from './models/errors/paymentnotready';
|
|
5
|
+
import type { Result } from './types/fp.js';
|
|
6
|
+
import { ConnectionError, RequestTimeoutError, SDKError, type UnexpectedClientError, type InvalidRequestError, type RequestAbortedError } from './models/errors/httpclienterrors.js';
|
|
7
|
+
import type { ResourceNotFound } from './models/errors/resourcenotfound.js';
|
|
8
|
+
import type { ExpiredCheckoutError } from './models/errors/expiredcheckouterror.js';
|
|
9
|
+
import type { HTTPValidationError } from './models/errors/httpvalidationerror.js';
|
|
10
|
+
import type { PaymentError } from './models/errors/paymenterror.js';
|
|
11
|
+
import type { NotOpenCheckout } from './models/errors/notopencheckout.js';
|
|
12
|
+
import type { AlreadyActiveSubscriptionError } from './models/errors/alreadyactivesubscriptionerror.js';
|
|
13
|
+
import type { PaymentNotReady } from './models/errors/paymentnotready.js';
|
|
14
14
|
export interface ChargefyCoreOptions {
|
|
15
15
|
/** Organization Access Token (chargefy_oat_xxx). Required for authenticated endpoints. */
|
|
16
16
|
accessToken?: string;
|
package/dist/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,MA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,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,oFAAoF;IACpF,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;IACpE,gDAAgD;IAChD,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,qBAAa,YAAY;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;gBAE5B,OAAO,GAAE,mBAAwB;IAiBvC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;CAgExE"}
|
package/dist/core.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* ChargefyCore — typed HTTP client
|
|
3
3
|
* Handles auth, base URL, timeout, and snake_case↔camelCase transformation.
|
|
4
4
|
*/
|
|
5
|
-
import { parseAPIError } from './utils/errors';
|
|
6
|
-
import { genericToCamelCase } from './utils/transformers';
|
|
7
|
-
import { ConnectionError, RequestTimeoutError, } from './models/errors/httpclienterrors';
|
|
5
|
+
import { parseAPIError } from './utils/errors.js';
|
|
6
|
+
import { genericToCamelCase } from './utils/transformers.js';
|
|
7
|
+
import { ConnectionError, RequestTimeoutError, } from './models/errors/httpclienterrors.js';
|
|
8
8
|
export class ChargefyCore {
|
|
9
9
|
serverURL;
|
|
10
10
|
accessToken;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Confirm checkout by client secret (public endpoint, no auth required)
|
|
3
3
|
*/
|
|
4
|
-
import type { ChargefyCore } from '../core';
|
|
5
|
-
import type { CheckoutPublicConfirmed } from '../models/components/checkoutpublicconfirmed';
|
|
6
|
-
import type { CheckoutConfirmCelcoin } from '../models/components/checkoutconfirmcelcoin';
|
|
7
|
-
import type { ResourceNotFound } from '../models/errors/resourcenotfound';
|
|
8
|
-
import type { ExpiredCheckoutError } from '../models/errors/expiredcheckouterror';
|
|
9
|
-
import type { HTTPValidationError } from '../models/errors/httpvalidationerror';
|
|
10
|
-
import type { NotOpenCheckout } from '../models/errors/notopencheckout';
|
|
11
|
-
import type { AlreadyActiveSubscriptionError } from '../models/errors/alreadyactivesubscriptionerror';
|
|
12
|
-
import type { PaymentError } from '../models/errors/paymenterror';
|
|
13
|
-
import { SDKError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError } from '../models/errors/httpclienterrors';
|
|
14
|
-
import type { Result } from '../types/fp';
|
|
4
|
+
import type { ChargefyCore } from '../core.js';
|
|
5
|
+
import type { CheckoutPublicConfirmed } from '../models/components/checkoutpublicconfirmed.js';
|
|
6
|
+
import type { CheckoutConfirmCelcoin } from '../models/components/checkoutconfirmcelcoin.js';
|
|
7
|
+
import type { ResourceNotFound } from '../models/errors/resourcenotfound.js';
|
|
8
|
+
import type { ExpiredCheckoutError } from '../models/errors/expiredcheckouterror.js';
|
|
9
|
+
import type { HTTPValidationError } from '../models/errors/httpvalidationerror.js';
|
|
10
|
+
import type { NotOpenCheckout } from '../models/errors/notopencheckout.js';
|
|
11
|
+
import type { AlreadyActiveSubscriptionError } from '../models/errors/alreadyactivesubscriptionerror.js';
|
|
12
|
+
import type { PaymentError } from '../models/errors/paymenterror.js';
|
|
13
|
+
import { SDKError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError } from '../models/errors/httpclienterrors.js';
|
|
14
|
+
import type { Result } from '../types/fp.js';
|
|
15
15
|
export interface CheckoutsClientConfirmRequest {
|
|
16
16
|
clientSecret: string;
|
|
17
17
|
checkoutConfirmCelcoin: CheckoutConfirmCelcoin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutsClientConfirm.d.ts","sourceRoot":"","sources":["../../src/funcs/checkoutsClientConfirm.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkoutsClientConfirm.d.ts","sourceRoot":"","sources":["../../src/funcs/checkoutsClientConfirm.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAA;AAC9F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AAC5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAA;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAI5C,MAAM,WAAW,6BAA6B;IAC5C,YAAY,EAAE,MAAM,CAAA;IACpB,sBAAsB,EAAE,sBAAsB,CAAA;CAC/C;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,6BAA6B,GACrC,OAAO,CACR,MAAM,CACJ,uBAAuB,EACrB,8BAA8B,GAC9B,eAAe,GACf,oBAAoB,GACpB,YAAY,GACZ,gBAAgB,GAChB,mBAAmB,GACnB,QAAQ,GACR,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAmDA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Confirm checkout by client secret (public endpoint, no auth required)
|
|
3
3
|
*/
|
|
4
|
-
import { RequestTimeoutError, ConnectionError, } from '../models/errors/httpclienterrors';
|
|
5
|
-
import { parseAPIError } from '../utils/errors';
|
|
6
|
-
import { transformCheckoutToCamelCase, transformToSnakeCase } from '../utils/transformers';
|
|
4
|
+
import { RequestTimeoutError, ConnectionError, } from '../models/errors/httpclienterrors.js';
|
|
5
|
+
import { parseAPIError } from '../utils/errors.js';
|
|
6
|
+
import { transformCheckoutToCamelCase, transformToSnakeCase } from '../utils/transformers.js';
|
|
7
7
|
export async function checkoutsClientConfirm(client, request) {
|
|
8
8
|
const { clientSecret, checkoutConfirmCelcoin } = request;
|
|
9
9
|
try {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get checkout by client secret (public endpoint, no auth required)
|
|
3
3
|
*/
|
|
4
|
-
import type { ChargefyCore } from '../core';
|
|
5
|
-
import type { CheckoutPublic } from '../models/components/checkoutpublic';
|
|
6
|
-
import type { ResourceNotFound } from '../models/errors/resourcenotfound';
|
|
7
|
-
import type { ExpiredCheckoutError } from '../models/errors/expiredcheckouterror';
|
|
8
|
-
import type { HTTPValidationError } from '../models/errors/httpvalidationerror';
|
|
9
|
-
import { SDKError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError } from '../models/errors/httpclienterrors';
|
|
10
|
-
import type { Result } from '../types/fp';
|
|
4
|
+
import type { ChargefyCore } from '../core.js';
|
|
5
|
+
import type { CheckoutPublic } from '../models/components/checkoutpublic.js';
|
|
6
|
+
import type { ResourceNotFound } from '../models/errors/resourcenotfound.js';
|
|
7
|
+
import type { ExpiredCheckoutError } from '../models/errors/expiredcheckouterror.js';
|
|
8
|
+
import type { HTTPValidationError } from '../models/errors/httpvalidationerror.js';
|
|
9
|
+
import { SDKError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError } from '../models/errors/httpclienterrors.js';
|
|
10
|
+
import type { Result } from '../types/fp.js';
|
|
11
11
|
export interface CheckoutsClientGetRequest {
|
|
12
12
|
clientSecret: string;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutsClientGet.d.ts","sourceRoot":"","sources":["../../src/funcs/checkoutsClientGet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkoutsClientGet.d.ts","sourceRoot":"","sources":["../../src/funcs/checkoutsClientGet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAI5C,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,yBAAyB,GACjC,OAAO,CACR,MAAM,CACJ,cAAc,EACZ,gBAAgB,GAChB,oBAAoB,GACpB,mBAAmB,GACnB,QAAQ,GACR,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA0CA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get checkout by client secret (public endpoint, no auth required)
|
|
3
3
|
*/
|
|
4
|
-
import { RequestTimeoutError, ConnectionError, } from '../models/errors/httpclienterrors';
|
|
5
|
-
import { parseAPIError } from '../utils/errors';
|
|
6
|
-
import { transformCheckoutToCamelCase } from '../utils/transformers';
|
|
4
|
+
import { RequestTimeoutError, ConnectionError, } from '../models/errors/httpclienterrors.js';
|
|
5
|
+
import { parseAPIError } from '../utils/errors.js';
|
|
6
|
+
import { transformCheckoutToCamelCase } from '../utils/transformers.js';
|
|
7
7
|
export async function checkoutsClientGet(client, request) {
|
|
8
8
|
const { clientSecret } = request;
|
|
9
9
|
try {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Update checkout by client secret (public endpoint, no auth required)
|
|
3
3
|
*/
|
|
4
|
-
import type { ChargefyCore } from '../core';
|
|
5
|
-
import type { CheckoutPublic } from '../models/components/checkoutpublic';
|
|
6
|
-
import type { CheckoutUpdatePublic } from '../models/components/checkoutupdatepublic';
|
|
7
|
-
import type { ResourceNotFound } from '../models/errors/resourcenotfound';
|
|
8
|
-
import type { ExpiredCheckoutError } from '../models/errors/expiredcheckouterror';
|
|
9
|
-
import type { HTTPValidationError } from '../models/errors/httpvalidationerror';
|
|
10
|
-
import type { NotOpenCheckout } from '../models/errors/notopencheckout';
|
|
11
|
-
import type { AlreadyActiveSubscriptionError } from '../models/errors/alreadyactivesubscriptionerror';
|
|
12
|
-
import { SDKError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError } from '../models/errors/httpclienterrors';
|
|
13
|
-
import type { Result } from '../types/fp';
|
|
4
|
+
import type { ChargefyCore } from '../core.js';
|
|
5
|
+
import type { CheckoutPublic } from '../models/components/checkoutpublic.js';
|
|
6
|
+
import type { CheckoutUpdatePublic } from '../models/components/checkoutupdatepublic.js';
|
|
7
|
+
import type { ResourceNotFound } from '../models/errors/resourcenotfound.js';
|
|
8
|
+
import type { ExpiredCheckoutError } from '../models/errors/expiredcheckouterror.js';
|
|
9
|
+
import type { HTTPValidationError } from '../models/errors/httpvalidationerror.js';
|
|
10
|
+
import type { NotOpenCheckout } from '../models/errors/notopencheckout.js';
|
|
11
|
+
import type { AlreadyActiveSubscriptionError } from '../models/errors/alreadyactivesubscriptionerror.js';
|
|
12
|
+
import { SDKError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError } from '../models/errors/httpclienterrors.js';
|
|
13
|
+
import type { Result } from '../types/fp.js';
|
|
14
14
|
export interface CheckoutsClientUpdateRequest {
|
|
15
15
|
clientSecret: string;
|
|
16
16
|
checkoutUpdatePublic: CheckoutUpdatePublic;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutsClientUpdate.d.ts","sourceRoot":"","sources":["../../src/funcs/checkoutsClientUpdate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkoutsClientUpdate.d.ts","sourceRoot":"","sources":["../../src/funcs/checkoutsClientUpdate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAA;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAA;AACxG,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAI5C,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,4BAA4B,GACpC,OAAO,CACR,MAAM,CACJ,cAAc,EACZ,8BAA8B,GAC9B,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,mBAAmB,GACnB,QAAQ,GACR,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA8CA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Update checkout by client secret (public endpoint, no auth required)
|
|
3
3
|
*/
|
|
4
|
-
import { RequestTimeoutError, ConnectionError, } from '../models/errors/httpclienterrors';
|
|
5
|
-
import { parseAPIError } from '../utils/errors';
|
|
6
|
-
import { transformCheckoutToCamelCase, transformToSnakeCase } from '../utils/transformers';
|
|
4
|
+
import { RequestTimeoutError, ConnectionError, } from '../models/errors/httpclienterrors.js';
|
|
5
|
+
import { parseAPIError } from '../utils/errors.js';
|
|
6
|
+
import { transformCheckoutToCamelCase, transformToSnakeCase } from '../utils/transformers.js';
|
|
7
7
|
export async function checkoutsClientUpdate(client, request) {
|
|
8
8
|
const { clientSecret, checkoutUpdatePublic } = request;
|
|
9
9
|
try {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @chargefy/sdk — Chargefy TypeScript SDK
|
|
3
3
|
*/
|
|
4
|
-
export { Chargefy, type ChargefyCoreOptions } from './chargefy';
|
|
5
|
-
export { ChargefyCore } from './core';
|
|
6
|
-
export type { APIError } from './core';
|
|
7
|
-
export type { Result } from './types/fp';
|
|
8
|
-
export type { Organization } from './models/organization';
|
|
9
|
-
export type { Product, ProductPrice, CreateProductRequest, UpdateProductRequest, } from './models/product';
|
|
10
|
-
export type { CheckoutLink, CreateCheckoutLinkRequest, UpdateCheckoutLinkRequest, } from './models/checkoutLink';
|
|
11
|
-
export type { Buyer, BuyerListItem, BuyerListParams, CreateBuyerRequest, CreateBuyerResponse, BuyerLookupResult, } from './models/buyer';
|
|
12
|
-
export type { Checkout, CheckoutConfirmed, CheckoutProduct, InstallmentOption, CreateCheckoutRequest, UpdateCheckoutRequest, ConfirmCheckoutRequest, GeneratePixRequest, CardData, PixPaymentData, } from './models/checkout';
|
|
13
|
-
export type { ListResponse, ListParams } from './models/pagination';
|
|
14
|
-
export type { Sale, SaleListParams, SaleStatus, PaymentType, SaleCardData, SaleBoletoData, SalePixData, SaleCustomer, SaleProduct, } from './models/sale';
|
|
15
|
-
export type { Subscription, SubscriptionListParams, SubscriptionStatus, SubscriptionRecurringInterval, CustomerCancellationReason, SubscriptionProduct, SubscriptionCustomer, } from './models/subscription';
|
|
16
|
-
export type { SubOrganizationListItem, SubOrgAddress, SubOrgIndividual, SubOrgBusiness, SubOrgBankAccount, CreateSubOrganizationRequest, CreateSubOrganizationResponse, EmbedSubmitRequest, CheckExistingResponse, LinkExistingResponse, CreateProductForChildRequest, OrgAccessToken, CreateOrgAccessTokenRequest, CreateOrgAccessTokenResponse, } from './models/sub-organization';
|
|
17
|
-
export type {
|
|
18
|
-
export
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
4
|
+
export { Chargefy, type ChargefyCoreOptions } from './chargefy.js';
|
|
5
|
+
export { ChargefyCore } from './core.js';
|
|
6
|
+
export type { APIError } from './core.js';
|
|
7
|
+
export type { Result } from './types/fp.js';
|
|
8
|
+
export type { Organization } from './models/organization.js';
|
|
9
|
+
export type { Product, ProductPrice, CreateProductRequest, UpdateProductRequest, } from './models/product.js';
|
|
10
|
+
export type { CheckoutLink, CreateCheckoutLinkRequest, UpdateCheckoutLinkRequest, } from './models/checkoutLink.js';
|
|
11
|
+
export type { Buyer, BuyerListItem, BuyerListParams, CreateBuyerRequest, CreateBuyerResponse, BuyerLookupResult, } from './models/buyer.js';
|
|
12
|
+
export type { Checkout, CheckoutConfirmed, CheckoutProduct, InstallmentOption, CreateCheckoutRequest, UpdateCheckoutRequest, ConfirmCheckoutRequest, GeneratePixRequest, CardData, PixPaymentData, } from './models/checkout.js';
|
|
13
|
+
export type { ListResponse, ListParams } from './models/pagination.js';
|
|
14
|
+
export type { Sale, SaleListParams, SaleStatus, PaymentType, SaleCardData, SaleBoletoData, SalePixData, SaleCustomer, SaleProduct, } from './models/sale.js';
|
|
15
|
+
export type { Subscription, SubscriptionListParams, SubscriptionStatus, SubscriptionRecurringInterval, CustomerCancellationReason, SubscriptionProduct, SubscriptionCustomer, } from './models/subscription.js';
|
|
16
|
+
export type { SubOrganizationListItem, SubOrgAddress, SubOrgIndividual, SubOrgBusiness, SubOrgBankAccount, CreateSubOrganizationRequest, CreateSubOrganizationResponse, EmbedSubmitRequest, CheckExistingResponse, LinkExistingResponse, CreateProductForChildRequest, OrgAccessToken, CreateOrgAccessTokenRequest, CreateOrgAccessTokenResponse, } from './models/sub-organization.js';
|
|
17
|
+
export type { WebhookEndpoint, WebhookEventType, WebhookFormat, CreateWebhookEndpointRequest, UpdateWebhookEndpointRequest, WebhookEndpointListParams, WebhookDeliveryListParams, } from './models/webhook.js';
|
|
18
|
+
export { SUBORGANIZATION_EVENTS } from './models/webhook.js';
|
|
19
|
+
export type { CreateOnboardingLinkRequest, CreateOnboardingLinkResponse, } from './models/onboarding-link.js';
|
|
20
|
+
export type { KycDocumentType, KycDocumentsResponse, UploadDocumentResponse, } from './models/kyc.js';
|
|
21
|
+
export type { Discount, DiscountCreate, DiscountCreateFixed, DiscountCreatePercentage, DiscountUpdate, ValidateDiscountParams, ValidateDiscountResponse, DiscountStats, DiscountListParams, DiscountListResponse, CreateDiscountForChildRequest, } from './models/discount.js';
|
|
22
|
+
export { SDKError, SDKValidationError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError, } from './models/errors/httpclienterrors.js';
|
|
23
|
+
export { HTTPValidationError, type ValidationErrorDetail } from './models/errors/httpvalidationerror.js';
|
|
24
|
+
export { ResourceNotFound } from './models/errors/resourcenotfound.js';
|
|
25
|
+
export { ExpiredCheckoutError } from './models/errors/expiredcheckouterror.js';
|
|
26
|
+
export { PaymentError } from './models/errors/paymenterror.js';
|
|
27
|
+
export { NotOpenCheckout } from './models/errors/notopencheckout.js';
|
|
28
|
+
export { AlreadyActiveSubscriptionError } from './models/errors/alreadyactivesubscriptionerror.js';
|
|
29
|
+
export { PaymentNotReady } from './models/errors/paymentnotready.js';
|
|
27
30
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,W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B,aAAa,EACb,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,6BAA6B,CAAA;AACpC,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AACxG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAA;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* @chargefy/sdk — Chargefy TypeScript SDK
|
|
3
3
|
*/
|
|
4
4
|
// Main client
|
|
5
|
-
export { Chargefy } from './chargefy';
|
|
6
|
-
export { ChargefyCore } from './core';
|
|
5
|
+
export { Chargefy } from './chargefy.js';
|
|
6
|
+
export { ChargefyCore } from './core.js';
|
|
7
|
+
export { SUBORGANIZATION_EVENTS } from './models/webhook.js';
|
|
7
8
|
// Errors
|
|
8
|
-
export { SDKError, SDKValidationError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError, } from './models/errors/httpclienterrors';
|
|
9
|
-
export { HTTPValidationError } from './models/errors/httpvalidationerror';
|
|
10
|
-
export { ResourceNotFound } from './models/errors/resourcenotfound';
|
|
11
|
-
export { ExpiredCheckoutError } from './models/errors/expiredcheckouterror';
|
|
12
|
-
export { PaymentError } from './models/errors/paymenterror';
|
|
13
|
-
export { NotOpenCheckout } from './models/errors/notopencheckout';
|
|
14
|
-
export { AlreadyActiveSubscriptionError } from './models/errors/alreadyactivesubscriptionerror';
|
|
15
|
-
export { PaymentNotReady } from './models/errors/paymentnotready';
|
|
9
|
+
export { SDKError, SDKValidationError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError, } from './models/errors/httpclienterrors.js';
|
|
10
|
+
export { HTTPValidationError } from './models/errors/httpvalidationerror.js';
|
|
11
|
+
export { ResourceNotFound } from './models/errors/resourcenotfound.js';
|
|
12
|
+
export { ExpiredCheckoutError } from './models/errors/expiredcheckouterror.js';
|
|
13
|
+
export { PaymentError } from './models/errors/paymenterror.js';
|
|
14
|
+
export { NotOpenCheckout } from './models/errors/notopencheckout.js';
|
|
15
|
+
export { AlreadyActiveSubscriptionError } from './models/errors/alreadyactivesubscriptionerror.js';
|
|
16
|
+
export { PaymentNotReady } from './models/errors/paymentnotready.js';
|
|
@@ -111,6 +111,8 @@ export interface ConfirmCheckoutRequest {
|
|
|
111
111
|
/** CPF or CNPJ. */
|
|
112
112
|
customerTaxId?: string;
|
|
113
113
|
card: CardData;
|
|
114
|
+
/** Discount code to apply at payment time. */
|
|
115
|
+
discountCode?: string;
|
|
114
116
|
}
|
|
115
117
|
/** Generate a PIX QR code for a checkout. */
|
|
116
118
|
export interface GeneratePixRequest {
|
|
@@ -120,5 +122,7 @@ export interface GeneratePixRequest {
|
|
|
120
122
|
/** Omit for anonymous / totem checkouts. */
|
|
121
123
|
customerName?: string;
|
|
122
124
|
customerTaxId?: string;
|
|
125
|
+
/** Discount code to apply at payment time. */
|
|
126
|
+
discountCode?: string;
|
|
123
127
|
}
|
|
124
128
|
//# sourceMappingURL=checkout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/models/checkout.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAA;IACpB,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAA;IACtB,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAAA;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE;QACb,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC1B,CAAA;CACF;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAA;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAA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E,MAAM,CAAA;CACtB;AAED,6CAA6C;AAC7C,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAA;IACpB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CheckoutConfirmCelcoin - Parameters for confirming a checkout with Celcoin
|
|
3
3
|
* This replaces Polar's CheckoutConfirmStripe
|
|
4
4
|
*/
|
|
5
|
-
import type { CheckoutUpdatePublic } from './checkoutupdatepublic';
|
|
5
|
+
import type { CheckoutUpdatePublic } from './checkoutupdatepublic.js';
|
|
6
6
|
export interface CardData {
|
|
7
7
|
number: string;
|
|
8
8
|
holderName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutconfirmcelcoin.d.ts","sourceRoot":"","sources":["../../../src/models/components/checkoutconfirmcelcoin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkoutconfirmcelcoin.d.ts","sourceRoot":"","sources":["../../../src/models/components/checkoutconfirmcelcoin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB;IAElE,cAAc,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,CAAA;IAGjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,QAAQ,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IAGrB,eAAe,CAAC,EAAE,MAAM,CAAA;IAGxB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAG/B,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CheckoutPublicConfirmed - Confirmed checkout with customer session token
|
|
3
3
|
*/
|
|
4
|
-
import type { CheckoutPublic } from './checkoutpublic';
|
|
4
|
+
import type { CheckoutPublic } from './checkoutpublic.js';
|
|
5
5
|
export interface CheckoutPublicConfirmed extends CheckoutPublic {
|
|
6
6
|
status: 'confirmed';
|
|
7
7
|
customerSessionToken: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutpublicconfirmed.d.ts","sourceRoot":"","sources":["../../../src/models/components/checkoutpublicconfirmed.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkoutpublicconfirmed.d.ts","sourceRoot":"","sources":["../../../src/models/components/checkoutpublicconfirmed.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,MAAM,EAAE,WAAW,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CheckoutUpdatePublic - Parameters for updating a checkout
|
|
3
3
|
* Compatible with Polar's CheckoutUpdatePublic structure
|
|
4
4
|
*/
|
|
5
|
-
import type { Address } from './checkoutpublic';
|
|
5
|
+
import type { Address } from './checkoutpublic.js';
|
|
6
6
|
export interface CheckoutUpdatePublic {
|
|
7
7
|
productId?: string;
|
|
8
8
|
productPriceId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutupdatepublic.d.ts","sourceRoot":"","sources":["../../../src/models/components/checkoutupdatepublic.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkoutupdatepublic.d.ts","sourceRoot":"","sources":["../../../src/models/components/checkoutupdatepublic.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG5B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAG1B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;IAC5D,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACtC"}
|