-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
176 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import type { ChargeBee } from "chargebee-typescript"; | ||
|
||
import { ItemResource } from "./resources/item-resource"; | ||
import { AddonResource } from "./resources/addon-resource"; | ||
import { AddressResource } from "./resources/address-resource"; | ||
import { AttachedItemResource } from "./resources/attached-item-resource"; | ||
import { CardResource } from "./resources/card-resource"; | ||
import { CommentResource } from "./resources/comment-resource"; | ||
import { CouponResource } from "./resources/coupon-resource"; | ||
import { CouponCodeResource } from "./resources/coupon-code-resource"; | ||
import { CouponSetResource } from "./resources/coupon-set-resource"; | ||
import { CreditNoteResource } from "./resources/credit-note-resource"; | ||
import { CustomerResource } from "./resources/customer-resource"; | ||
import { DifferentialPriceResource } from "./resources/differential-price-resource"; | ||
import { EntitlementOverrideResource } from "./resources/entitlement-override-resource"; | ||
import { EstimateResource } from "./resources/estimate-resource"; | ||
import { ExportResource } from "./resources/export-resource"; | ||
import { FeatureResource } from "./resources/feature-resource"; | ||
import { GiftResource } from "./resources/gift-resource"; | ||
import { HostedPageResource } from "./resources/hosted-page-resource"; | ||
import { InAppSubscriptionResource } from "./resources/in-app-subscription-resource"; | ||
import { InvoiceResource } from "./resources/invoice-resource"; | ||
import { ItemEntitlementResource } from "./resources/item-entitlement-resource"; | ||
import { ItemFamilyResource } from "./resources/item-family-resource"; | ||
import { ItemPriceResource } from "./resources/item-price-resource"; | ||
import { NonSubscriptionResource } from "./resources/non-subscription-resource"; | ||
import { OrderResource } from "./resources/order-resource"; | ||
import { PaymentIntentResource } from "./resources/payment-intent-resource"; | ||
import { PaymentSourceResource } from "./resources/payment-source-resource"; | ||
import { PaymentVoucherResource } from "./resources/payment-voucher-resource"; | ||
import { PlanResource } from "./resources/plan-resource"; | ||
import { PortalSessionResource } from "./resources/portal-session-resource"; | ||
import { PromotionalCreditResource } from "./resources/promotional-credit-resource"; | ||
import { PurchaseResource } from "./resources/purchase-resource"; | ||
import { QuoteResource } from "./resources/quote-resource"; | ||
import { ResourceMigrationResource } from "./resources/resource-migration-resource"; | ||
import { SiteMigrationDetailResource } from "./resources/site-migration-detail-resource"; | ||
import { SubscriptionEntitlementResource } from "./resources/subscription-entitlement-resource"; | ||
import { TimeMachineResource } from "./resources/time-machine-resource"; | ||
import { TransactionResource } from "./resources/transaction-resource"; | ||
import { UnbilledChargeResource } from "./resources/unbilled-charge-resource"; | ||
import { UsageResource } from "./resources/usage-resource"; | ||
import { VirtualBankAccountResource } from "./resources/virtual-bank-account-resource"; | ||
import { SubscriptionResource } from "./resources/subscription-resource"; | ||
|
||
export class ChargebeeResourceWrapper { | ||
constructor(private readonly client: ChargeBee) {} | ||
|
||
subscription = new SubscriptionResource(this.client); | ||
customer = new CustomerResource(this.client); | ||
paymentSource = new PaymentSourceResource(this.client); | ||
virtualBankAccount = new VirtualBankAccountResource(this.client); | ||
card = new CardResource(this.client); | ||
promotionalCredit = new PromotionalCreditResource(this.client); | ||
invoice = new InvoiceResource(this.client); | ||
creditNote = new CreditNoteResource(this.client); | ||
unbilledCharge = new UnbilledChargeResource(this.client); | ||
order = new OrderResource(this.client); | ||
gift = new GiftResource(this.client); | ||
transaction = new TransactionResource(this.client); | ||
hostedPage = new HostedPageResource(this.client); | ||
estimate = new EstimateResource(this.client); | ||
quote = new QuoteResource(this.client); | ||
plan = new PlanResource(this.client); | ||
addon = new AddonResource(this.client); | ||
coupon = new CouponResource(this.client); | ||
couponSet = new CouponSetResource(this.client); | ||
couponCode = new CouponCodeResource(this.client); | ||
address = new AddressResource(this.client); | ||
usage = new UsageResource(this.client); | ||
comment = new CommentResource(this.client); | ||
portalSession = new PortalSessionResource(this.client); | ||
siteMigrationDetail = new SiteMigrationDetailResource(this.client); | ||
resourceMigration = new ResourceMigrationResource(this.client); | ||
timeMachine = new TimeMachineResource(this.client); | ||
export = new ExportResource(this.client); | ||
paymentIntent = new PaymentIntentResource(this.client); | ||
itemFamily = new ItemFamilyResource(this.client); | ||
item = new ItemResource(this.client); | ||
itemPrice = new ItemPriceResource(this.client); | ||
attachedItem = new AttachedItemResource(this.client); | ||
differentialPrice = new DifferentialPriceResource(this.client); | ||
feature = new FeatureResource(this.client); | ||
subscriptionEntitlement = new SubscriptionEntitlementResource(this.client); | ||
itemEntitlement = new ItemEntitlementResource(this.client); | ||
inAppSubscription = new InAppSubscriptionResource(this.client); | ||
nonSubscription = new NonSubscriptionResource(this.client); | ||
entitlementOverride = new EntitlementOverrideResource(this.client); | ||
purchase = new PurchaseResource(this.client); | ||
paymentVoucher = new PaymentVoucherResource(this.client); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/resources/attached_item-resource.ts → src/resources/attached-item-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/resources/coupon_code-resource.ts → src/resources/coupon-code-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/resources/coupon_set-resource.ts → src/resources/coupon-set-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/resources/differential_price-resource.ts → src/resources/differential-price-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...esources/entitlement_override-resource.ts → ...esources/entitlement-override-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/resources/hosted_page-resource.ts → src/resources/hosted-page-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...resources/in_app_subscription-resource.ts → ...resources/in-app-subscription-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/resources/item_entitlement-resource.ts → src/resources/item-entitlement-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/resources/item_family-resource.ts → src/resources/item-family-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
src/resources/item_price-resource.ts → src/resources/item-price-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import { ItemPrice } from "chargebee-typescript/lib/resources"; | ||
import { ChargebeeResource } from "../chargebee-resource.class"; | ||
import { ChargebeeResource } from "./abstract-resource"; | ||
export class ItemPriceResource extends ChargebeeResource { | ||
public readonly create = super | ||
.request("item_price", "create") | ||
.returns<{ item_price: ItemPrice }>(); | ||
.returns({ item_price: ItemPrice }); | ||
public readonly retrieve = super | ||
.request("item_price", "retrieve") | ||
.returns<{ item_price: ItemPrice }>(); | ||
.returns({ item_price: ItemPrice }); | ||
public readonly update = super | ||
.request("item_price", "update") | ||
.returns<{ item_price: ItemPrice }>(); | ||
.returns({ item_price: ItemPrice }); | ||
public readonly list = super | ||
.listRequest("item_price", "list") | ||
.returns<{ item_price: ItemPrice }>(); | ||
.returns({ item_price: ItemPrice }); | ||
public readonly delete = super | ||
.request("item_price", "delete") | ||
.returns<{ item_price: ItemPrice }>(); | ||
.returns({ item_price: ItemPrice }); | ||
public readonly findApplicableItems = super | ||
.listRequest("item_price", "find_applicable_items") | ||
.returns<{ item_price: ItemPrice }>(); | ||
.returns({ item_price: ItemPrice }); | ||
public readonly findApplicableItemPrices = super | ||
.listRequest("item_price", "find_applicable_item_prices") | ||
.returns<{ item_price: ItemPrice }>(); | ||
.returns({ item_price: ItemPrice }); | ||
} |
Oops, something went wrong.