@paid-ai/paid-node 1.1.0 → 1.2.1
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/README.md +2 -0
- package/dist/cjs/Client.d.ts +12 -0
- package/dist/cjs/Client.js +34 -14
- package/dist/cjs/api/resources/checkouts/client/Client.d.ts +84 -0
- package/dist/cjs/api/resources/checkouts/client/Client.js +350 -0
- package/dist/cjs/api/resources/checkouts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/checkouts/client/index.js +17 -0
- package/dist/cjs/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.d.ts +9 -0
- package/dist/cjs/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.js +3 -0
- package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.ts +25 -0
- package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.js +3 -0
- package/dist/cjs/api/resources/checkouts/client/requests/GetCheckoutRequest.d.ts +9 -0
- package/dist/cjs/api/resources/checkouts/client/requests/GetCheckoutRequest.js +3 -0
- package/dist/cjs/api/resources/checkouts/client/requests/ListCheckoutsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/checkouts/client/requests/ListCheckoutsRequest.js +3 -0
- package/dist/cjs/api/resources/checkouts/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/checkouts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/checkouts/index.d.ts +2 -0
- package/dist/cjs/api/resources/checkouts/index.js +18 -0
- package/dist/cjs/api/resources/checkouts/types/ListCheckoutsRequestStatus.d.ts +6 -0
- package/dist/cjs/api/resources/checkouts/types/ListCheckoutsRequestStatus.js +9 -0
- package/dist/cjs/api/resources/checkouts/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/checkouts/types/index.js +17 -0
- package/dist/cjs/api/resources/credits/client/Client.d.ts +27 -0
- package/dist/cjs/api/resources/credits/client/Client.js +123 -0
- package/dist/cjs/api/resources/credits/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/credits/client/index.js +2 -0
- package/dist/cjs/api/resources/credits/index.d.ts +1 -0
- package/dist/cjs/api/resources/credits/index.js +17 -0
- package/dist/cjs/api/resources/customerPortals/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/customerPortals/client/Client.js +133 -0
- package/dist/cjs/api/resources/customerPortals/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortals/client/index.js +17 -0
- package/dist/cjs/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.js +3 -0
- package/dist/cjs/api/resources/customerPortals/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortals/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerPortals/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortals/index.js +17 -0
- package/dist/cjs/api/resources/customers/client/Client.d.ts +36 -0
- package/dist/cjs/api/resources/customers/client/Client.js +142 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.d.ts +8 -0
- package/dist/cjs/api/resources/index.js +9 -1
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +11 -7
- package/dist/cjs/api/resources/orders/client/requests/UpdateOrderRequest.d.ts +10 -7
- package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +75 -0
- package/dist/cjs/api/resources/valueReceipts/client/Client.js +347 -0
- package/dist/cjs/api/resources/valueReceipts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/valueReceipts/client/index.js +17 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.ts +10 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/valueReceipts/index.d.ts +1 -0
- package/dist/cjs/api/resources/valueReceipts/index.js +17 -0
- package/dist/cjs/api/types/Checkout.d.ts +19 -0
- package/dist/cjs/api/types/Checkout.js +3 -0
- package/dist/cjs/api/types/CheckoutListResponse.d.ts +5 -0
- package/dist/cjs/api/types/CheckoutListResponse.js +3 -0
- package/dist/cjs/api/types/CheckoutProduct.d.ts +3 -0
- package/dist/cjs/api/types/CheckoutProduct.js +3 -0
- package/dist/cjs/api/types/CheckoutProductInput.d.ts +3 -0
- package/dist/cjs/api/types/CheckoutProductInput.js +3 -0
- package/dist/cjs/api/types/CheckoutStatus.d.ts +7 -0
- package/dist/cjs/api/types/CheckoutStatus.js +10 -0
- package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +116 -1
- package/dist/cjs/api/types/CreateOrderLineAttributeRequest.js +70 -0
- package/dist/cjs/api/types/CreateOrderLineRequest.d.ts +3 -3
- package/dist/cjs/api/types/CreditBalance.d.ts +19 -0
- package/dist/cjs/api/types/CreditBalance.js +11 -0
- package/dist/cjs/api/types/CreditBalanceListResponse.d.ts +4 -0
- package/dist/cjs/api/types/CreditBalanceListResponse.js +3 -0
- package/dist/cjs/api/types/CreditCurrency.d.ts +9 -0
- package/dist/cjs/api/types/CreditCurrency.js +3 -0
- package/dist/cjs/api/types/CreditCurrencyListResponse.d.ts +4 -0
- package/dist/cjs/api/types/CreditCurrencyListResponse.js +3 -0
- package/dist/cjs/api/types/CustomerPortal.d.ts +10 -0
- package/dist/cjs/api/types/CustomerPortal.js +3 -0
- package/dist/cjs/api/types/CustomerPortalStatus.d.ts +5 -0
- package/dist/cjs/api/types/CustomerPortalStatus.js +8 -0
- package/dist/cjs/api/types/Order.d.ts +3 -0
- package/dist/cjs/api/types/ValueReceiptDetail.d.ts +19 -0
- package/dist/cjs/api/types/ValueReceiptDetail.js +3 -0
- package/dist/cjs/api/types/ValueReceiptListResponse.d.ts +5 -0
- package/dist/cjs/api/types/ValueReceiptListResponse.js +3 -0
- package/dist/cjs/api/types/ValueReceiptSummary.d.ts +16 -0
- package/dist/cjs/api/types/ValueReceiptSummary.js +3 -0
- package/dist/cjs/api/types/index.d.ts +14 -0
- package/dist/cjs/api/types/index.js +14 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +12 -0
- package/dist/esm/Client.mjs +22 -2
- package/dist/esm/api/resources/checkouts/client/Client.d.mts +84 -0
- package/dist/esm/api/resources/checkouts/client/Client.mjs +313 -0
- package/dist/esm/api/resources/checkouts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/checkouts/client/index.mjs +1 -0
- package/dist/esm/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.d.mts +9 -0
- package/dist/esm/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.mjs +2 -0
- package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.mts +25 -0
- package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.mjs +2 -0
- package/dist/esm/api/resources/checkouts/client/requests/GetCheckoutRequest.d.mts +9 -0
- package/dist/esm/api/resources/checkouts/client/requests/GetCheckoutRequest.mjs +2 -0
- package/dist/esm/api/resources/checkouts/client/requests/ListCheckoutsRequest.d.mts +10 -0
- package/dist/esm/api/resources/checkouts/client/requests/ListCheckoutsRequest.mjs +2 -0
- package/dist/esm/api/resources/checkouts/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/checkouts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/checkouts/index.d.mts +2 -0
- package/dist/esm/api/resources/checkouts/index.mjs +2 -0
- package/dist/esm/api/resources/checkouts/types/ListCheckoutsRequestStatus.d.mts +6 -0
- package/dist/esm/api/resources/checkouts/types/ListCheckoutsRequestStatus.mjs +6 -0
- package/dist/esm/api/resources/checkouts/types/index.d.mts +1 -0
- package/dist/esm/api/resources/checkouts/types/index.mjs +1 -0
- package/dist/esm/api/resources/credits/client/Client.d.mts +27 -0
- package/dist/esm/api/resources/credits/client/Client.mjs +86 -0
- package/dist/esm/api/resources/credits/client/index.d.mts +1 -0
- package/dist/esm/api/resources/credits/client/index.mjs +1 -0
- package/dist/esm/api/resources/credits/index.d.mts +1 -0
- package/dist/esm/api/resources/credits/index.mjs +1 -0
- package/dist/esm/api/resources/customerPortals/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/customerPortals/client/Client.mjs +96 -0
- package/dist/esm/api/resources/customerPortals/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerPortals/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.d.mts +12 -0
- package/dist/esm/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.mjs +2 -0
- package/dist/esm/api/resources/customerPortals/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customerPortals/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerPortals/index.d.mts +1 -0
- package/dist/esm/api/resources/customerPortals/index.mjs +1 -0
- package/dist/esm/api/resources/customers/client/Client.d.mts +36 -0
- package/dist/esm/api/resources/customers/client/Client.mjs +142 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.d.mts +9 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/index.d.mts +8 -0
- package/dist/esm/api/resources/index.mjs +8 -0
- package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +11 -7
- package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.d.mts +10 -7
- package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +75 -0
- package/dist/esm/api/resources/valueReceipts/client/Client.mjs +310 -0
- package/dist/esm/api/resources/valueReceipts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/valueReceipts/client/index.mjs +1 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.mts +10 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.mts +10 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/valueReceipts/index.d.mts +1 -0
- package/dist/esm/api/resources/valueReceipts/index.mjs +1 -0
- package/dist/esm/api/types/Checkout.d.mts +19 -0
- package/dist/esm/api/types/Checkout.mjs +2 -0
- package/dist/esm/api/types/CheckoutListResponse.d.mts +5 -0
- package/dist/esm/api/types/CheckoutListResponse.mjs +2 -0
- package/dist/esm/api/types/CheckoutProduct.d.mts +3 -0
- package/dist/esm/api/types/CheckoutProduct.mjs +2 -0
- package/dist/esm/api/types/CheckoutProductInput.d.mts +3 -0
- package/dist/esm/api/types/CheckoutProductInput.mjs +2 -0
- package/dist/esm/api/types/CheckoutStatus.d.mts +7 -0
- package/dist/esm/api/types/CheckoutStatus.mjs +7 -0
- package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +116 -1
- package/dist/esm/api/types/CreateOrderLineAttributeRequest.mjs +69 -1
- package/dist/esm/api/types/CreateOrderLineRequest.d.mts +3 -3
- package/dist/esm/api/types/CreditBalance.d.mts +19 -0
- package/dist/esm/api/types/CreditBalance.mjs +8 -0
- package/dist/esm/api/types/CreditBalanceListResponse.d.mts +4 -0
- package/dist/esm/api/types/CreditBalanceListResponse.mjs +2 -0
- package/dist/esm/api/types/CreditCurrency.d.mts +9 -0
- package/dist/esm/api/types/CreditCurrency.mjs +2 -0
- package/dist/esm/api/types/CreditCurrencyListResponse.d.mts +4 -0
- package/dist/esm/api/types/CreditCurrencyListResponse.mjs +2 -0
- package/dist/esm/api/types/CustomerPortal.d.mts +10 -0
- package/dist/esm/api/types/CustomerPortal.mjs +2 -0
- package/dist/esm/api/types/CustomerPortalStatus.d.mts +5 -0
- package/dist/esm/api/types/CustomerPortalStatus.mjs +5 -0
- package/dist/esm/api/types/Order.d.mts +3 -0
- package/dist/esm/api/types/ValueReceiptDetail.d.mts +19 -0
- package/dist/esm/api/types/ValueReceiptDetail.mjs +2 -0
- package/dist/esm/api/types/ValueReceiptListResponse.d.mts +5 -0
- package/dist/esm/api/types/ValueReceiptListResponse.mjs +2 -0
- package/dist/esm/api/types/ValueReceiptSummary.d.mts +16 -0
- package/dist/esm/api/types/ValueReceiptSummary.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +14 -0
- package/dist/esm/api/types/index.mjs +14 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +3 -3
- package/reference.md +771 -0
|
@@ -1,5 +1,120 @@
|
|
|
1
1
|
export interface CreateOrderLineAttributeRequest {
|
|
2
2
|
name: string;
|
|
3
3
|
quantity?: number;
|
|
4
|
-
pricing:
|
|
4
|
+
pricing: CreateOrderLineAttributeRequest.Pricing;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace CreateOrderLineAttributeRequest {
|
|
7
|
+
interface Pricing {
|
|
8
|
+
eventName?: string;
|
|
9
|
+
chargeType: Pricing.ChargeType;
|
|
10
|
+
pricePoints: Pricing.PricePoints;
|
|
11
|
+
pricingModel?: Pricing.PricingModel;
|
|
12
|
+
billingFrequency?: Pricing.BillingFrequency;
|
|
13
|
+
billingFrequencyCustomMonths?: number;
|
|
14
|
+
billingType?: Pricing.BillingType;
|
|
15
|
+
signalType?: Pricing.SignalType;
|
|
16
|
+
creditsCurrencyId?: string;
|
|
17
|
+
creditCost?: number;
|
|
18
|
+
overageUnitPrice?: number;
|
|
19
|
+
creditBenefits?: Pricing.CreditBenefits.Item[];
|
|
20
|
+
}
|
|
21
|
+
namespace Pricing {
|
|
22
|
+
const ChargeType: {
|
|
23
|
+
readonly Usage: "usage";
|
|
24
|
+
readonly Recurring: "recurring";
|
|
25
|
+
readonly OneTime: "oneTime";
|
|
26
|
+
readonly SeatBased: "seatBased";
|
|
27
|
+
};
|
|
28
|
+
type ChargeType = (typeof ChargeType)[keyof typeof ChargeType];
|
|
29
|
+
interface PricePoints {
|
|
30
|
+
currency?: string;
|
|
31
|
+
unitPrice: number;
|
|
32
|
+
minQuantity?: number;
|
|
33
|
+
includedQuantity?: number;
|
|
34
|
+
tiers?: PricePoints.Tiers.Item[];
|
|
35
|
+
}
|
|
36
|
+
namespace PricePoints {
|
|
37
|
+
type Tiers = Tiers.Item[];
|
|
38
|
+
namespace Tiers {
|
|
39
|
+
interface Item {
|
|
40
|
+
flatAmount?: number;
|
|
41
|
+
index?: number;
|
|
42
|
+
lowerBound?: number;
|
|
43
|
+
number?: number;
|
|
44
|
+
tierBillingType?: Item.TierBillingType;
|
|
45
|
+
unitAmount?: number;
|
|
46
|
+
upperBound?: number;
|
|
47
|
+
}
|
|
48
|
+
namespace Item {
|
|
49
|
+
const TierBillingType: {
|
|
50
|
+
readonly Flat: "flat";
|
|
51
|
+
readonly PerUnit: "perUnit";
|
|
52
|
+
};
|
|
53
|
+
type TierBillingType = (typeof TierBillingType)[keyof typeof TierBillingType];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const PricingModel: {
|
|
58
|
+
readonly PerUnit: "perUnit";
|
|
59
|
+
readonly VolumePricing: "volumePricing";
|
|
60
|
+
readonly GraduatedPricing: "graduatedPricing";
|
|
61
|
+
readonly PrepaidCredits: "prepaidCredits";
|
|
62
|
+
readonly Flat: "flat";
|
|
63
|
+
};
|
|
64
|
+
type PricingModel = (typeof PricingModel)[keyof typeof PricingModel];
|
|
65
|
+
const BillingFrequency: {
|
|
66
|
+
readonly Monthly: "monthly";
|
|
67
|
+
readonly Quarterly: "quarterly";
|
|
68
|
+
readonly SemiAnnually: "semiAnnually";
|
|
69
|
+
readonly Annual: "annual";
|
|
70
|
+
readonly Custom: "custom";
|
|
71
|
+
};
|
|
72
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
73
|
+
const BillingType: {
|
|
74
|
+
readonly Advance: "advance";
|
|
75
|
+
readonly Arrears: "arrears";
|
|
76
|
+
};
|
|
77
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
78
|
+
const SignalType: {
|
|
79
|
+
readonly Activity: "activity";
|
|
80
|
+
readonly Outcome: "outcome";
|
|
81
|
+
};
|
|
82
|
+
type SignalType = (typeof SignalType)[keyof typeof SignalType];
|
|
83
|
+
type CreditBenefits = CreditBenefits.Item[];
|
|
84
|
+
namespace CreditBenefits {
|
|
85
|
+
interface Item {
|
|
86
|
+
id: string;
|
|
87
|
+
creditsCurrencyId?: string;
|
|
88
|
+
recipient?: Item.Recipient;
|
|
89
|
+
amount: number;
|
|
90
|
+
rolloverAmount?: number;
|
|
91
|
+
rolloverDuration?: number;
|
|
92
|
+
rolloverDurationUnit?: Item.RolloverDurationUnit;
|
|
93
|
+
allocationCadence?: Item.AllocationCadence;
|
|
94
|
+
creditGrantTiming?: Item.CreditGrantTiming;
|
|
95
|
+
}
|
|
96
|
+
namespace Item {
|
|
97
|
+
const Recipient: {
|
|
98
|
+
readonly Organization: "organization";
|
|
99
|
+
readonly Seat: "seat";
|
|
100
|
+
};
|
|
101
|
+
type Recipient = (typeof Recipient)[keyof typeof Recipient];
|
|
102
|
+
const RolloverDurationUnit: {
|
|
103
|
+
readonly Days: "days";
|
|
104
|
+
readonly Months: "months";
|
|
105
|
+
};
|
|
106
|
+
type RolloverDurationUnit = (typeof RolloverDurationUnit)[keyof typeof RolloverDurationUnit];
|
|
107
|
+
const AllocationCadence: {
|
|
108
|
+
readonly Upfront: "upfront";
|
|
109
|
+
readonly Monthly: "monthly";
|
|
110
|
+
};
|
|
111
|
+
type AllocationCadence = (typeof AllocationCadence)[keyof typeof AllocationCadence];
|
|
112
|
+
const CreditGrantTiming: {
|
|
113
|
+
readonly OnPayment: "on_payment";
|
|
114
|
+
readonly OnOrderActivation: "on_order_activation";
|
|
115
|
+
};
|
|
116
|
+
type CreditGrantTiming = (typeof CreditGrantTiming)[keyof typeof CreditGrantTiming];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
5
120
|
}
|
|
@@ -1,3 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateOrderLineAttributeRequest = void 0;
|
|
5
|
+
var CreateOrderLineAttributeRequest;
|
|
6
|
+
(function (CreateOrderLineAttributeRequest) {
|
|
7
|
+
let Pricing;
|
|
8
|
+
(function (Pricing) {
|
|
9
|
+
Pricing.ChargeType = {
|
|
10
|
+
Usage: "usage",
|
|
11
|
+
Recurring: "recurring",
|
|
12
|
+
OneTime: "oneTime",
|
|
13
|
+
SeatBased: "seatBased",
|
|
14
|
+
};
|
|
15
|
+
let PricePoints;
|
|
16
|
+
(function (PricePoints) {
|
|
17
|
+
let Tiers;
|
|
18
|
+
(function (Tiers) {
|
|
19
|
+
let Item;
|
|
20
|
+
(function (Item) {
|
|
21
|
+
Item.TierBillingType = {
|
|
22
|
+
Flat: "flat",
|
|
23
|
+
PerUnit: "perUnit",
|
|
24
|
+
};
|
|
25
|
+
})(Item = Tiers.Item || (Tiers.Item = {}));
|
|
26
|
+
})(Tiers = PricePoints.Tiers || (PricePoints.Tiers = {}));
|
|
27
|
+
})(PricePoints = Pricing.PricePoints || (Pricing.PricePoints = {}));
|
|
28
|
+
Pricing.PricingModel = {
|
|
29
|
+
PerUnit: "perUnit",
|
|
30
|
+
VolumePricing: "volumePricing",
|
|
31
|
+
GraduatedPricing: "graduatedPricing",
|
|
32
|
+
PrepaidCredits: "prepaidCredits",
|
|
33
|
+
Flat: "flat",
|
|
34
|
+
};
|
|
35
|
+
Pricing.BillingFrequency = {
|
|
36
|
+
Monthly: "monthly",
|
|
37
|
+
Quarterly: "quarterly",
|
|
38
|
+
SemiAnnually: "semiAnnually",
|
|
39
|
+
Annual: "annual",
|
|
40
|
+
Custom: "custom",
|
|
41
|
+
};
|
|
42
|
+
Pricing.BillingType = {
|
|
43
|
+
Advance: "advance",
|
|
44
|
+
Arrears: "arrears",
|
|
45
|
+
};
|
|
46
|
+
Pricing.SignalType = {
|
|
47
|
+
Activity: "activity",
|
|
48
|
+
Outcome: "outcome",
|
|
49
|
+
};
|
|
50
|
+
let CreditBenefits;
|
|
51
|
+
(function (CreditBenefits) {
|
|
52
|
+
let Item;
|
|
53
|
+
(function (Item) {
|
|
54
|
+
Item.Recipient = {
|
|
55
|
+
Organization: "organization",
|
|
56
|
+
Seat: "seat",
|
|
57
|
+
};
|
|
58
|
+
Item.RolloverDurationUnit = {
|
|
59
|
+
Days: "days",
|
|
60
|
+
Months: "months",
|
|
61
|
+
};
|
|
62
|
+
Item.AllocationCadence = {
|
|
63
|
+
Upfront: "upfront",
|
|
64
|
+
Monthly: "monthly",
|
|
65
|
+
};
|
|
66
|
+
Item.CreditGrantTiming = {
|
|
67
|
+
OnPayment: "on_payment",
|
|
68
|
+
OnOrderActivation: "on_order_activation",
|
|
69
|
+
};
|
|
70
|
+
})(Item = CreditBenefits.Item || (CreditBenefits.Item = {}));
|
|
71
|
+
})(CreditBenefits = Pricing.CreditBenefits || (Pricing.CreditBenefits = {}));
|
|
72
|
+
})(Pricing = CreateOrderLineAttributeRequest.Pricing || (CreateOrderLineAttributeRequest.Pricing = {}));
|
|
73
|
+
})(CreateOrderLineAttributeRequest || (exports.CreateOrderLineAttributeRequest = CreateOrderLineAttributeRequest = {}));
|
|
@@ -2,8 +2,8 @@ import type * as Paid from "../index.js";
|
|
|
2
2
|
export interface CreateOrderLineRequest {
|
|
3
3
|
productId: string;
|
|
4
4
|
name?: string;
|
|
5
|
-
description?: string
|
|
6
|
-
startDate?: string
|
|
7
|
-
endDate?: string
|
|
5
|
+
description?: string;
|
|
6
|
+
startDate?: string;
|
|
7
|
+
endDate?: string;
|
|
8
8
|
attributes?: Paid.CreateOrderLineAttributeRequest[];
|
|
9
9
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface CreditBalance {
|
|
2
|
+
creditsCurrencyId: string;
|
|
3
|
+
currencyName: string;
|
|
4
|
+
currencyKey: string;
|
|
5
|
+
available: number;
|
|
6
|
+
used: number;
|
|
7
|
+
total: number;
|
|
8
|
+
periodStart: string | null;
|
|
9
|
+
periodEnd: string | null;
|
|
10
|
+
rolloverEndDate: string | null;
|
|
11
|
+
recipient: CreditBalance.Recipient;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace CreditBalance {
|
|
14
|
+
const Recipient: {
|
|
15
|
+
readonly Organization: "organization";
|
|
16
|
+
readonly Seat: "seat";
|
|
17
|
+
};
|
|
18
|
+
type Recipient = (typeof Recipient)[keyof typeof Recipient];
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreditBalance = void 0;
|
|
5
|
+
var CreditBalance;
|
|
6
|
+
(function (CreditBalance) {
|
|
7
|
+
CreditBalance.Recipient = {
|
|
8
|
+
Organization: "organization",
|
|
9
|
+
Seat: "seat",
|
|
10
|
+
};
|
|
11
|
+
})(CreditBalance || (exports.CreditBalance = CreditBalance = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomerPortalStatus = void 0;
|
|
5
|
+
exports.CustomerPortalStatus = {
|
|
6
|
+
Active: "active",
|
|
7
|
+
Expired: "expired",
|
|
8
|
+
};
|
|
@@ -23,5 +23,8 @@ export interface Order {
|
|
|
23
23
|
metadata: Record<string, unknown> | null;
|
|
24
24
|
showPaymentLink: boolean | null;
|
|
25
25
|
showBankDetails: boolean | null;
|
|
26
|
+
autoPostInvoices: boolean | null;
|
|
27
|
+
autoSendBillingEmails: boolean | null;
|
|
28
|
+
autoSendPaymentEmails: boolean | null;
|
|
26
29
|
version: number;
|
|
27
30
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ValueReceiptDetail {
|
|
2
|
+
id: string;
|
|
3
|
+
status: string;
|
|
4
|
+
publicUrlToken: string;
|
|
5
|
+
publicUrl: string;
|
|
6
|
+
isPublished: boolean;
|
|
7
|
+
customerId: string | null;
|
|
8
|
+
customerName: string | null;
|
|
9
|
+
customerExternalId: string | null;
|
|
10
|
+
orderId: string | null;
|
|
11
|
+
currency: string;
|
|
12
|
+
startDate: string | null;
|
|
13
|
+
endDate: string | null;
|
|
14
|
+
totalDeliveredValue: number | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
publishedAt: string | null;
|
|
17
|
+
publishExpiresAt: string | null;
|
|
18
|
+
allowEmbed: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ValueReceiptSummary {
|
|
2
|
+
id: string;
|
|
3
|
+
status: string;
|
|
4
|
+
publicUrlToken: string;
|
|
5
|
+
publicUrl: string;
|
|
6
|
+
isPublished: boolean;
|
|
7
|
+
customerId: string | null;
|
|
8
|
+
customerName: string | null;
|
|
9
|
+
customerExternalId: string | null;
|
|
10
|
+
orderId: string | null;
|
|
11
|
+
currency: string;
|
|
12
|
+
startDate: string | null;
|
|
13
|
+
endDate: string | null;
|
|
14
|
+
totalDeliveredValue: number | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
export * from "./Attribution.js";
|
|
2
2
|
export * from "./BulkSignalsResponse.js";
|
|
3
|
+
export * from "./Checkout.js";
|
|
4
|
+
export * from "./CheckoutListResponse.js";
|
|
5
|
+
export * from "./CheckoutProduct.js";
|
|
6
|
+
export * from "./CheckoutProductInput.js";
|
|
7
|
+
export * from "./CheckoutStatus.js";
|
|
3
8
|
export * from "./Contact.js";
|
|
4
9
|
export * from "./ContactBillingAddress.js";
|
|
5
10
|
export * from "./ContactListResponse.js";
|
|
6
11
|
export * from "./CreateOrderLineAttributeRequest.js";
|
|
7
12
|
export * from "./CreateOrderLineRequest.js";
|
|
13
|
+
export * from "./CreditBalance.js";
|
|
14
|
+
export * from "./CreditBalanceListResponse.js";
|
|
15
|
+
export * from "./CreditCurrency.js";
|
|
16
|
+
export * from "./CreditCurrencyListResponse.js";
|
|
8
17
|
export * from "./Customer.js";
|
|
9
18
|
export * from "./CustomerAttribution.js";
|
|
10
19
|
export * from "./CustomerBillingAddress.js";
|
|
@@ -12,6 +21,8 @@ export * from "./CustomerByExternalId.js";
|
|
|
12
21
|
export * from "./CustomerById.js";
|
|
13
22
|
export * from "./CustomerCreationState.js";
|
|
14
23
|
export * from "./CustomerListResponse.js";
|
|
24
|
+
export * from "./CustomerPortal.js";
|
|
25
|
+
export * from "./CustomerPortalStatus.js";
|
|
15
26
|
export * from "./EmptyResponse.js";
|
|
16
27
|
export * from "./ErrorResponse.js";
|
|
17
28
|
export * from "./Invoice.js";
|
|
@@ -32,3 +43,6 @@ export * from "./Signal.js";
|
|
|
32
43
|
export * from "./UpdateContactRequest.js";
|
|
33
44
|
export * from "./UpdateCustomerRequest.js";
|
|
34
45
|
export * from "./UpdateProductRequest.js";
|
|
46
|
+
export * from "./ValueReceiptDetail.js";
|
|
47
|
+
export * from "./ValueReceiptListResponse.js";
|
|
48
|
+
export * from "./ValueReceiptSummary.js";
|
|
@@ -16,11 +16,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Attribution.js"), exports);
|
|
18
18
|
__exportStar(require("./BulkSignalsResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./Checkout.js"), exports);
|
|
20
|
+
__exportStar(require("./CheckoutListResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./CheckoutProduct.js"), exports);
|
|
22
|
+
__exportStar(require("./CheckoutProductInput.js"), exports);
|
|
23
|
+
__exportStar(require("./CheckoutStatus.js"), exports);
|
|
19
24
|
__exportStar(require("./Contact.js"), exports);
|
|
20
25
|
__exportStar(require("./ContactBillingAddress.js"), exports);
|
|
21
26
|
__exportStar(require("./ContactListResponse.js"), exports);
|
|
22
27
|
__exportStar(require("./CreateOrderLineAttributeRequest.js"), exports);
|
|
23
28
|
__exportStar(require("./CreateOrderLineRequest.js"), exports);
|
|
29
|
+
__exportStar(require("./CreditBalance.js"), exports);
|
|
30
|
+
__exportStar(require("./CreditBalanceListResponse.js"), exports);
|
|
31
|
+
__exportStar(require("./CreditCurrency.js"), exports);
|
|
32
|
+
__exportStar(require("./CreditCurrencyListResponse.js"), exports);
|
|
24
33
|
__exportStar(require("./Customer.js"), exports);
|
|
25
34
|
__exportStar(require("./CustomerAttribution.js"), exports);
|
|
26
35
|
__exportStar(require("./CustomerBillingAddress.js"), exports);
|
|
@@ -28,6 +37,8 @@ __exportStar(require("./CustomerByExternalId.js"), exports);
|
|
|
28
37
|
__exportStar(require("./CustomerById.js"), exports);
|
|
29
38
|
__exportStar(require("./CustomerCreationState.js"), exports);
|
|
30
39
|
__exportStar(require("./CustomerListResponse.js"), exports);
|
|
40
|
+
__exportStar(require("./CustomerPortal.js"), exports);
|
|
41
|
+
__exportStar(require("./CustomerPortalStatus.js"), exports);
|
|
31
42
|
__exportStar(require("./EmptyResponse.js"), exports);
|
|
32
43
|
__exportStar(require("./ErrorResponse.js"), exports);
|
|
33
44
|
__exportStar(require("./Invoice.js"), exports);
|
|
@@ -48,3 +59,6 @@ __exportStar(require("./Signal.js"), exports);
|
|
|
48
59
|
__exportStar(require("./UpdateContactRequest.js"), exports);
|
|
49
60
|
__exportStar(require("./UpdateCustomerRequest.js"), exports);
|
|
50
61
|
__exportStar(require("./UpdateProductRequest.js"), exports);
|
|
62
|
+
__exportStar(require("./ValueReceiptDetail.js"), exports);
|
|
63
|
+
__exportStar(require("./ValueReceiptListResponse.js"), exports);
|
|
64
|
+
__exportStar(require("./ValueReceiptSummary.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1
|
|
1
|
+
export declare const SDK_VERSION = "1.2.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { Checkouts } from "./api/resources/checkouts/client/Client.mjs";
|
|
1
2
|
import { Contacts } from "./api/resources/contacts/client/Client.mjs";
|
|
3
|
+
import { Credits } from "./api/resources/credits/client/Client.mjs";
|
|
4
|
+
import { CustomerPortals } from "./api/resources/customerPortals/client/Client.mjs";
|
|
2
5
|
import { Customers } from "./api/resources/customers/client/Client.mjs";
|
|
3
6
|
import { Invoices } from "./api/resources/invoices/client/Client.mjs";
|
|
4
7
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
5
8
|
import { Products } from "./api/resources/products/client/Client.mjs";
|
|
6
9
|
import { Signals } from "./api/resources/signals/client/Client.mjs";
|
|
10
|
+
import { ValueReceipts } from "./api/resources/valueReceipts/client/Client.mjs";
|
|
7
11
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
8
12
|
export declare namespace PaidClient {
|
|
9
13
|
interface Options extends BaseClientOptions {
|
|
@@ -19,6 +23,10 @@ export declare class PaidClient {
|
|
|
19
23
|
protected _orders: Orders | undefined;
|
|
20
24
|
protected _invoices: Invoices | undefined;
|
|
21
25
|
protected _signals: Signals | undefined;
|
|
26
|
+
protected _credits: Credits | undefined;
|
|
27
|
+
protected _checkouts: Checkouts | undefined;
|
|
28
|
+
protected _customerPortals: CustomerPortals | undefined;
|
|
29
|
+
protected _valueReceipts: ValueReceipts | undefined;
|
|
22
30
|
constructor(_options: PaidClient.Options);
|
|
23
31
|
get products(): Products;
|
|
24
32
|
get customers(): Customers;
|
|
@@ -26,4 +34,8 @@ export declare class PaidClient {
|
|
|
26
34
|
get orders(): Orders;
|
|
27
35
|
get invoices(): Invoices;
|
|
28
36
|
get signals(): Signals;
|
|
37
|
+
get credits(): Credits;
|
|
38
|
+
get checkouts(): Checkouts;
|
|
39
|
+
get customerPortals(): CustomerPortals;
|
|
40
|
+
get valueReceipts(): ValueReceipts;
|
|
29
41
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { Checkouts } from "./api/resources/checkouts/client/Client.mjs";
|
|
2
3
|
import { Contacts } from "./api/resources/contacts/client/Client.mjs";
|
|
4
|
+
import { Credits } from "./api/resources/credits/client/Client.mjs";
|
|
5
|
+
import { CustomerPortals } from "./api/resources/customerPortals/client/Client.mjs";
|
|
3
6
|
import { Customers } from "./api/resources/customers/client/Client.mjs";
|
|
4
7
|
import { Invoices } from "./api/resources/invoices/client/Client.mjs";
|
|
5
8
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
6
9
|
import { Products } from "./api/resources/products/client/Client.mjs";
|
|
7
10
|
import { Signals } from "./api/resources/signals/client/Client.mjs";
|
|
11
|
+
import { ValueReceipts } from "./api/resources/valueReceipts/client/Client.mjs";
|
|
8
12
|
import { mergeHeaders } from "./core/headers.mjs";
|
|
9
13
|
import * as core from "./core/index.mjs";
|
|
10
14
|
export class PaidClient {
|
|
@@ -12,8 +16,8 @@ export class PaidClient {
|
|
|
12
16
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
17
|
"X-Fern-Language": "JavaScript",
|
|
14
18
|
"X-Fern-SDK-Name": "@paid-ai/paid-node",
|
|
15
|
-
"X-Fern-SDK-Version": "1.1
|
|
16
|
-
"User-Agent": "@paid-ai/paid-node/1.1
|
|
19
|
+
"X-Fern-SDK-Version": "1.2.1",
|
|
20
|
+
"User-Agent": "@paid-ai/paid-node/1.2.1",
|
|
17
21
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
22
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
23
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -42,4 +46,20 @@ export class PaidClient {
|
|
|
42
46
|
var _a;
|
|
43
47
|
return ((_a = this._signals) !== null && _a !== void 0 ? _a : (this._signals = new Signals(this._options)));
|
|
44
48
|
}
|
|
49
|
+
get credits() {
|
|
50
|
+
var _a;
|
|
51
|
+
return ((_a = this._credits) !== null && _a !== void 0 ? _a : (this._credits = new Credits(this._options)));
|
|
52
|
+
}
|
|
53
|
+
get checkouts() {
|
|
54
|
+
var _a;
|
|
55
|
+
return ((_a = this._checkouts) !== null && _a !== void 0 ? _a : (this._checkouts = new Checkouts(this._options)));
|
|
56
|
+
}
|
|
57
|
+
get customerPortals() {
|
|
58
|
+
var _a;
|
|
59
|
+
return ((_a = this._customerPortals) !== null && _a !== void 0 ? _a : (this._customerPortals = new CustomerPortals(this._options)));
|
|
60
|
+
}
|
|
61
|
+
get valueReceipts() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._valueReceipts) !== null && _a !== void 0 ? _a : (this._valueReceipts = new ValueReceipts(this._options)));
|
|
64
|
+
}
|
|
45
65
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import * as Paid from "../../../index.mjs";
|
|
4
|
+
export declare namespace Checkouts {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
}
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class Checkouts {
|
|
11
|
+
protected readonly _options: Checkouts.Options;
|
|
12
|
+
constructor(_options: Checkouts.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Get a list of checkouts for the organization
|
|
15
|
+
*
|
|
16
|
+
* @param {Paid.ListCheckoutsRequest} request
|
|
17
|
+
* @param {Checkouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link Paid.BadRequestError}
|
|
20
|
+
* @throws {@link Paid.ForbiddenError}
|
|
21
|
+
* @throws {@link Paid.InternalServerError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.checkouts.listCheckouts()
|
|
25
|
+
*/
|
|
26
|
+
listCheckouts(request?: Paid.ListCheckoutsRequest, requestOptions?: Checkouts.RequestOptions): core.HttpResponsePromise<Paid.CheckoutListResponse>;
|
|
27
|
+
private __listCheckouts;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a checkout link that generates a URL for a customer to complete a purchase
|
|
30
|
+
*
|
|
31
|
+
* @param {Paid.CreateCheckoutRequest} request
|
|
32
|
+
* @param {Checkouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @throws {@link Paid.BadRequestError}
|
|
35
|
+
* @throws {@link Paid.ForbiddenError}
|
|
36
|
+
* @throws {@link Paid.NotFoundError}
|
|
37
|
+
* @throws {@link Paid.InternalServerError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.checkouts.createCheckout({
|
|
41
|
+
* products: [{
|
|
42
|
+
* id: "id"
|
|
43
|
+
* }],
|
|
44
|
+
* successUrl: "successUrl"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
createCheckout(request: Paid.CreateCheckoutRequest, requestOptions?: Checkouts.RequestOptions): core.HttpResponsePromise<Paid.Checkout>;
|
|
48
|
+
private __createCheckout;
|
|
49
|
+
/**
|
|
50
|
+
* Get a checkout by ID
|
|
51
|
+
*
|
|
52
|
+
* @param {Paid.GetCheckoutRequest} request
|
|
53
|
+
* @param {Checkouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Paid.ForbiddenError}
|
|
56
|
+
* @throws {@link Paid.NotFoundError}
|
|
57
|
+
* @throws {@link Paid.InternalServerError}
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.checkouts.getCheckout({
|
|
61
|
+
* id: "id"
|
|
62
|
+
* })
|
|
63
|
+
*/
|
|
64
|
+
getCheckout(request: Paid.GetCheckoutRequest, requestOptions?: Checkouts.RequestOptions): core.HttpResponsePromise<Paid.Checkout>;
|
|
65
|
+
private __getCheckout;
|
|
66
|
+
/**
|
|
67
|
+
* Archive a checkout by ID
|
|
68
|
+
*
|
|
69
|
+
* @param {Paid.ArchiveCheckoutRequest} request
|
|
70
|
+
* @param {Checkouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link Paid.ForbiddenError}
|
|
73
|
+
* @throws {@link Paid.NotFoundError}
|
|
74
|
+
* @throws {@link Paid.InternalServerError}
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.checkouts.archiveCheckout({
|
|
78
|
+
* id: "id"
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
archiveCheckout(request: Paid.ArchiveCheckoutRequest, requestOptions?: Checkouts.RequestOptions): core.HttpResponsePromise<Paid.EmptyResponse>;
|
|
82
|
+
private __archiveCheckout;
|
|
83
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
84
|
+
}
|