@paddle/paddle-node-sdk 0.1.0 → 0.1.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.
Files changed (66) hide show
  1. package/README.md +11 -11
  2. package/dist/entities/customer/credit-balance.d.ts +10 -0
  3. package/dist/entities/customer/credit-balance.js +19 -0
  4. package/dist/entities/customer/customer-balance.d.ts +8 -0
  5. package/dist/entities/customer/customer-balance.js +18 -0
  6. package/dist/entities/customer/index.d.ts +2 -0
  7. package/dist/entities/customer/index.js +2 -0
  8. package/dist/entities/subscription/index.d.ts +3 -0
  9. package/dist/entities/subscription/index.js +3 -0
  10. package/dist/entities/subscription/subscription-preview-summary-result.d.ts +9 -0
  11. package/dist/entities/subscription/subscription-preview-summary-result.js +18 -0
  12. package/dist/entities/subscription/subscription-preview-update-summary.d.ts +9 -0
  13. package/dist/entities/subscription/subscription-preview-update-summary.js +19 -0
  14. package/dist/entities/subscription/subscription-preview.d.ts +32 -0
  15. package/dist/entities/subscription/subscription-preview.js +79 -0
  16. package/dist/internal/errors/generic.d.ts +2 -4
  17. package/dist/internal/errors/generic.js +10 -12
  18. package/dist/internal/index.d.ts +1 -1
  19. package/dist/internal/types/response.d.ts +6 -1
  20. package/dist/resources/addresses/index.d.ts +1 -1
  21. package/dist/resources/addresses/index.js +2 -2
  22. package/dist/resources/businesses/index.d.ts +1 -1
  23. package/dist/resources/businesses/index.js +2 -2
  24. package/dist/resources/customers/index.d.ts +4 -3
  25. package/dist/resources/customers/index.js +14 -2
  26. package/dist/resources/customers/operations/get-credit-balance-path-parameters.d.ts +3 -0
  27. package/dist/resources/customers/operations/get-credit-balance-path-parameters.js +2 -0
  28. package/dist/resources/customers/operations/get-credit-balance-query-parameters.d.ts +4 -0
  29. package/dist/resources/customers/operations/get-credit-balance-query-parameters.js +2 -0
  30. package/dist/resources/customers/operations/index.d.ts +2 -0
  31. package/dist/resources/customers/operations/index.js +2 -0
  32. package/dist/resources/discounts/index.d.ts +1 -1
  33. package/dist/resources/discounts/index.js +2 -2
  34. package/dist/resources/prices/index.d.ts +1 -1
  35. package/dist/resources/prices/index.js +2 -2
  36. package/dist/resources/subscriptions/index.d.ts +11 -3
  37. package/dist/resources/subscriptions/index.js +90 -2
  38. package/dist/resources/subscriptions/operations/cancel-subscription-request-object.d.ts +4 -0
  39. package/dist/resources/subscriptions/operations/cancel-subscription-request-object.js +2 -0
  40. package/dist/resources/subscriptions/operations/create-subscription-charge-request-object.d.ts +9 -0
  41. package/dist/resources/subscriptions/operations/create-subscription-charge-request-object.js +2 -0
  42. package/dist/resources/subscriptions/operations/index.d.ts +4 -0
  43. package/dist/resources/subscriptions/operations/index.js +4 -0
  44. package/dist/resources/subscriptions/operations/pause-subscription-request-object.d.ts +5 -0
  45. package/dist/resources/subscriptions/operations/pause-subscription-request-object.js +2 -0
  46. package/dist/resources/subscriptions/operations/resume-subscription-request-object.d.ts +4 -0
  47. package/dist/resources/subscriptions/operations/resume-subscription-request-object.js +2 -0
  48. package/dist/resources/transactions/index.d.ts +1 -1
  49. package/dist/resources/transactions/index.js +2 -2
  50. package/dist/types/customer/credit-balance.d.ts +7 -0
  51. package/dist/types/customer/credit-balance.js +2 -0
  52. package/dist/types/customer/customer-balance.d.ts +5 -0
  53. package/dist/types/customer/customer-balance.js +2 -0
  54. package/dist/types/customer/index.d.ts +2 -0
  55. package/dist/types/customer/index.js +2 -0
  56. package/dist/types/subscription/index.d.ts +3 -0
  57. package/dist/types/subscription/index.js +3 -0
  58. package/dist/types/subscription/subscription-preview-update-summary.d.ts +6 -0
  59. package/dist/types/subscription/subscription-preview-update-summary.js +2 -0
  60. package/dist/types/subscription/subscription-preview.d.ts +29 -0
  61. package/dist/types/subscription/subscription-preview.js +2 -0
  62. package/dist/types/subscription/subscription-result.d.ts +4 -0
  63. package/dist/types/subscription/subscription-result.js +2 -0
  64. package/dist/version.d.ts +1 -1
  65. package/dist/version.js +1 -1
  66. package/package.json +1 -1
package/README.md CHANGED
@@ -207,12 +207,12 @@ This table shows which operations are available as of the latest release.
207
207
  | Create a discount | ✅ |
208
208
  | Get a discount | ✅ |
209
209
  | Update a discount | ✅ |
210
- | **Customers** | **Partial** |
210
+ | **Customers** | **Full** |
211
211
  | List customers | ✅ |
212
212
  | Create a customer | ✅ |
213
213
  | Get a customer | ✅ |
214
214
  | Update a customer | ✅ |
215
- | List credit balances for a customer | ❌ |
215
+ | List credit balances for a customer | ✅ |
216
216
  | **Addresses** | **Full** |
217
217
  | List addresses for a customer | ✅ |
218
218
  | Create an addresses for a customer | ✅ |
@@ -230,18 +230,18 @@ This table shows which operations are available as of the latest release.
230
230
  | Update a transaction | ✅ |
231
231
  | Preview a transaction | ❌ |
232
232
  | Get a PDF invoice for a transaction | ❌ |
233
- | **Subscriptions** | **Partial** |
233
+ | **Subscriptions** | **Full** |
234
234
  | List subscriptions | ✅ |
235
235
  | Get a subscription | ✅ |
236
- | Preview an update to a subscription | ❌ |
236
+ | Preview an update to a subscription | ✅ |
237
237
  | Update a subscription | ✅ |
238
- | Get a transaction to update payment method | ❌ |
239
- | Preview a one-time charge for a subscription | ❌ |
240
- | Create a one-time charge for a subscription | ❌ |
241
- | Activate a trialing subscription | ❌ |
242
- | Pause a subscription | ❌ |
243
- | Resume a paused subscription | ❌ |
244
- | Cancel a subscription | ❌ |
238
+ | Get a transaction to update payment method | ✅ |
239
+ | Preview a one-time charge for a subscription | ✅ |
240
+ | Create a one-time charge for a subscription | ✅ |
241
+ | Activate a trialing subscription | ✅ |
242
+ | Pause a subscription | ✅ |
243
+ | Resume a paused subscription | ✅ |
244
+ | Cancel a subscription | ✅ |
245
245
  | **Adjustments** | **Full** |
246
246
  | List adjustments | ✅ |
247
247
  | Create an adjustment | ✅ |
@@ -0,0 +1,10 @@
1
+ import { type ICreditBalance } from '../../types';
2
+ import { CustomerBalance } from '../index';
3
+ import { type CurrencyCode } from '../../enums';
4
+ export declare class CreditBalance {
5
+ readonly customer_id?: string | null | undefined;
6
+ readonly currency_code?: CurrencyCode | null | undefined;
7
+ readonly balance?: CustomerBalance | null | undefined;
8
+ constructor(creditBalance: ICreditBalance);
9
+ toJson(): ICreditBalance;
10
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreditBalance = void 0;
4
+ const index_1 = require("../index");
5
+ class CreditBalance {
6
+ constructor(creditBalance) {
7
+ this.customer_id = creditBalance.customer_id;
8
+ this.currency_code = creditBalance.currency_code;
9
+ this.balance = creditBalance.balance ? new index_1.CustomerBalance(creditBalance.balance) : null;
10
+ }
11
+ toJson() {
12
+ return {
13
+ customer_id: this.customer_id,
14
+ currency_code: this.currency_code,
15
+ balance: this.balance,
16
+ };
17
+ }
18
+ }
19
+ exports.CreditBalance = CreditBalance;
@@ -0,0 +1,8 @@
1
+ import { type ICustomerBalance } from '../../types';
2
+ export declare class CustomerBalance {
3
+ readonly available: string;
4
+ readonly reserved: string;
5
+ readonly used: string;
6
+ constructor(customerBalanceResponse: ICustomerBalance);
7
+ toJson(): ICustomerBalance;
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomerBalance = void 0;
4
+ class CustomerBalance {
5
+ constructor(customerBalanceResponse) {
6
+ this.available = customerBalanceResponse.available;
7
+ this.reserved = customerBalanceResponse.reserved;
8
+ this.used = customerBalanceResponse.used;
9
+ }
10
+ toJson() {
11
+ return {
12
+ available: this.available,
13
+ reserved: this.reserved,
14
+ used: this.used,
15
+ };
16
+ }
17
+ }
18
+ exports.CustomerBalance = CustomerBalance;
@@ -1,2 +1,4 @@
1
1
  export * from './customer-collection';
2
2
  export * from './customer';
3
+ export * from './credit-balance';
4
+ export * from './customer-balance';
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./customer-collection"), exports);
18
18
  __exportStar(require("./customer"), exports);
19
+ __exportStar(require("./credit-balance"), exports);
20
+ __exportStar(require("./customer-balance"), exports);
@@ -10,3 +10,6 @@ export * from './subscription-includes';
10
10
  export * from './next-transaction';
11
11
  export * from './transaction-details-preview';
12
12
  export * from './transaction-line-item-preview';
13
+ export * from './subscription-preview';
14
+ export * from './subscription-preview-update-summary';
15
+ export * from './subscription-preview-summary-result';
@@ -26,3 +26,6 @@ __exportStar(require("./subscription-includes"), exports);
26
26
  __exportStar(require("./next-transaction"), exports);
27
27
  __exportStar(require("./transaction-details-preview"), exports);
28
28
  __exportStar(require("./transaction-line-item-preview"), exports);
29
+ __exportStar(require("./subscription-preview"), exports);
30
+ __exportStar(require("./subscription-preview-update-summary"), exports);
31
+ __exportStar(require("./subscription-preview-summary-result"), exports);
@@ -0,0 +1,9 @@
1
+ import { type ISubscriptionResult } from '../../types';
2
+ import { type CurrencyCode } from '../../enums';
3
+ export declare class SubscriptionPreviewSummaryResult {
4
+ readonly action: 'credit' | 'charge';
5
+ readonly amount: string;
6
+ readonly currency_code: CurrencyCode;
7
+ constructor(resultResponse: ISubscriptionResult);
8
+ toJson(): ISubscriptionResult;
9
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionPreviewSummaryResult = void 0;
4
+ class SubscriptionPreviewSummaryResult {
5
+ constructor(resultResponse) {
6
+ this.action = resultResponse.action;
7
+ this.amount = resultResponse.amount;
8
+ this.currency_code = resultResponse.currency_code;
9
+ }
10
+ toJson() {
11
+ return {
12
+ action: this.action,
13
+ amount: this.amount,
14
+ currency_code: this.currency_code,
15
+ };
16
+ }
17
+ }
18
+ exports.SubscriptionPreviewSummaryResult = SubscriptionPreviewSummaryResult;
@@ -0,0 +1,9 @@
1
+ import { type ISubscriptionPreviewUpdateSummary } from '../../types';
2
+ import { Money, SubscriptionPreviewSummaryResult } from '../index';
3
+ export declare class SubscriptionPreviewUpdateSummary {
4
+ readonly credit: Money;
5
+ readonly charge: Money;
6
+ readonly result: SubscriptionPreviewSummaryResult;
7
+ constructor(previewUpdateSummary: ISubscriptionPreviewUpdateSummary);
8
+ toJson(): ISubscriptionPreviewUpdateSummary;
9
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionPreviewUpdateSummary = void 0;
4
+ const index_1 = require("../index");
5
+ class SubscriptionPreviewUpdateSummary {
6
+ constructor(previewUpdateSummary) {
7
+ this.credit = new index_1.Money(previewUpdateSummary.credit);
8
+ this.charge = new index_1.Money(previewUpdateSummary.charge);
9
+ this.result = new index_1.SubscriptionPreviewSummaryResult(previewUpdateSummary.result);
10
+ }
11
+ toJson() {
12
+ return {
13
+ credit: this.credit,
14
+ charge: this.charge,
15
+ result: this.result,
16
+ };
17
+ }
18
+ }
19
+ exports.SubscriptionPreviewUpdateSummary = SubscriptionPreviewUpdateSummary;
@@ -0,0 +1,32 @@
1
+ import { type ISubscriptionPreview } from '../../types';
2
+ import { BillingDetails, type CustomData, NextTransaction, SubscriptionDiscount, SubscriptionItem, SubscriptionManagement, SubscriptionPreviewUpdateSummary, SubscriptionScheduledChange, SubscriptionTimePeriod, TimePeriod, TransactionDetailsPreview } from '../index';
3
+ import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../enums';
4
+ export declare class SubscriptionPreview {
5
+ readonly status: SubscriptionStatus;
6
+ readonly customer_id: string;
7
+ readonly address_id: string;
8
+ readonly business_id?: string | undefined | null;
9
+ readonly currency_code: CurrencyCode;
10
+ readonly created_at: string;
11
+ readonly updated_at: string;
12
+ readonly started_at?: string | undefined | null;
13
+ readonly first_billed_at?: string | undefined | null;
14
+ readonly next_billed_at?: string | undefined | null;
15
+ readonly paused_at?: string | undefined | null;
16
+ readonly canceled_at?: string | undefined | null;
17
+ readonly discount?: SubscriptionDiscount | undefined | null;
18
+ readonly collection_mode: CollectionMode;
19
+ readonly billing_details?: BillingDetails | undefined | null;
20
+ readonly current_billing_period?: SubscriptionTimePeriod | undefined | null;
21
+ readonly billing_cycle?: TimePeriod | undefined | null;
22
+ readonly scheduled_change?: SubscriptionScheduledChange | undefined | null;
23
+ readonly management_urls?: SubscriptionManagement | undefined | null;
24
+ readonly items: SubscriptionItem[];
25
+ readonly custom_data?: CustomData | undefined | null;
26
+ readonly immediate_transaction?: NextTransaction | undefined | null;
27
+ readonly next_transaction?: NextTransaction | undefined | null;
28
+ readonly recurring_transaction_details?: TransactionDetailsPreview | undefined | null;
29
+ readonly update_summary?: SubscriptionPreviewUpdateSummary | undefined | null;
30
+ constructor(subscriptionPreview: ISubscriptionPreview);
31
+ toJson(): ISubscriptionPreview;
32
+ }
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionPreview = void 0;
4
+ const index_1 = require("../index");
5
+ class SubscriptionPreview {
6
+ constructor(subscriptionPreview) {
7
+ this.status = subscriptionPreview.status;
8
+ this.customer_id = subscriptionPreview.customer_id;
9
+ this.address_id = subscriptionPreview.address_id;
10
+ this.business_id = subscriptionPreview.business_id;
11
+ this.currency_code = subscriptionPreview.currency_code;
12
+ this.created_at = subscriptionPreview.created_at;
13
+ this.updated_at = subscriptionPreview.updated_at;
14
+ this.started_at = subscriptionPreview.started_at;
15
+ this.first_billed_at = subscriptionPreview.first_billed_at;
16
+ this.next_billed_at = subscriptionPreview.next_billed_at;
17
+ this.paused_at = subscriptionPreview.paused_at;
18
+ this.canceled_at = subscriptionPreview.canceled_at;
19
+ this.discount = subscriptionPreview.discount ? new index_1.SubscriptionDiscount(subscriptionPreview.discount) : null;
20
+ this.collection_mode = subscriptionPreview.collection_mode;
21
+ this.billing_details = subscriptionPreview.billing_details
22
+ ? new index_1.BillingDetails(subscriptionPreview.billing_details)
23
+ : null;
24
+ this.current_billing_period = subscriptionPreview.current_billing_period
25
+ ? new index_1.SubscriptionTimePeriod(subscriptionPreview.current_billing_period)
26
+ : null;
27
+ this.billing_cycle = subscriptionPreview.billing_cycle ? new index_1.TimePeriod(subscriptionPreview.billing_cycle) : null;
28
+ this.scheduled_change = subscriptionPreview.scheduled_change
29
+ ? new index_1.SubscriptionScheduledChange(subscriptionPreview.scheduled_change)
30
+ : null;
31
+ this.management_urls = subscriptionPreview.management_urls
32
+ ? new index_1.SubscriptionManagement(subscriptionPreview.management_urls)
33
+ : null;
34
+ this.items = subscriptionPreview.items.map((item) => new index_1.SubscriptionItem(item));
35
+ this.custom_data = subscriptionPreview.custom_data;
36
+ this.immediate_transaction = subscriptionPreview.immediate_transaction
37
+ ? new index_1.NextTransaction(subscriptionPreview.immediate_transaction)
38
+ : null;
39
+ this.next_transaction = subscriptionPreview.next_transaction
40
+ ? new index_1.NextTransaction(subscriptionPreview.next_transaction)
41
+ : null;
42
+ this.recurring_transaction_details = subscriptionPreview.recurring_transaction_details
43
+ ? new index_1.TransactionDetailsPreview(subscriptionPreview.recurring_transaction_details)
44
+ : null;
45
+ this.update_summary = subscriptionPreview.update_summary
46
+ ? new index_1.SubscriptionPreviewUpdateSummary(subscriptionPreview.update_summary)
47
+ : null;
48
+ }
49
+ toJson() {
50
+ return {
51
+ status: this.status,
52
+ customer_id: this.customer_id,
53
+ address_id: this.address_id,
54
+ business_id: this.business_id,
55
+ currency_code: this.currency_code,
56
+ created_at: this.created_at,
57
+ updated_at: this.updated_at,
58
+ started_at: this.started_at,
59
+ first_billed_at: this.first_billed_at,
60
+ next_billed_at: this.next_billed_at,
61
+ paused_at: this.paused_at,
62
+ canceled_at: this.canceled_at,
63
+ discount: this.discount,
64
+ collection_mode: this.collection_mode,
65
+ billing_details: this.billing_details,
66
+ current_billing_period: this.current_billing_period,
67
+ billing_cycle: this.billing_cycle,
68
+ scheduled_change: this.scheduled_change,
69
+ management_urls: this.management_urls,
70
+ items: this.items,
71
+ custom_data: this.custom_data,
72
+ immediate_transaction: this.immediate_transaction,
73
+ next_transaction: this.next_transaction,
74
+ recurring_transaction_details: this.recurring_transaction_details,
75
+ update_summary: this.update_summary,
76
+ };
77
+ }
78
+ }
79
+ exports.SubscriptionPreview = SubscriptionPreview;
@@ -4,9 +4,7 @@ export declare class ApiError extends Error {
4
4
  private readonly code;
5
5
  private readonly detail;
6
6
  private readonly documentationUrl;
7
+ private readonly errors?;
7
8
  constructor(errorDetail: ErrorDetail);
8
- getType(): string;
9
- getCode(): string;
10
- getDetail(): string;
11
- getDocumentation(): string;
9
+ toJson(): ErrorDetail;
12
10
  }
@@ -7,19 +7,17 @@ class ApiError extends Error {
7
7
  this.type = errorDetail.type;
8
8
  this.code = errorDetail.code;
9
9
  this.detail = errorDetail.detail;
10
- this.documentationUrl = errorDetail.documentationUrl;
10
+ this.documentationUrl = errorDetail.documentation_url;
11
+ this.errors = errorDetail.errors;
11
12
  }
12
- getType() {
13
- return this.type;
14
- }
15
- getCode() {
16
- return this.code;
17
- }
18
- getDetail() {
19
- return this.detail;
20
- }
21
- getDocumentation() {
22
- return this.documentationUrl;
13
+ toJson() {
14
+ return {
15
+ type: this.type,
16
+ code: this.code,
17
+ detail: this.detail,
18
+ documentation_url: this.documentationUrl,
19
+ errors: this.errors,
20
+ };
23
21
  }
24
22
  }
25
23
  exports.ApiError = ApiError;
@@ -1,3 +1,3 @@
1
- export type { ErrorResponse, ResponsePaginated, Response, ErrorDetail } from './types/response';
1
+ export type { ErrorResponse, ResponsePaginated, Response, ErrorDetail, ErrorField } from './types/response';
2
2
  export type { PaddleOptions } from './types/config';
3
3
  export { Environment } from './api/environment';
@@ -19,11 +19,16 @@ export interface ResponsePaginated<T> {
19
19
  data: T[];
20
20
  meta: MetaPaginated;
21
21
  }
22
+ export interface ErrorField {
23
+ field: string;
24
+ message: string;
25
+ }
22
26
  export interface ErrorDetail {
23
27
  type: string;
24
28
  code: string;
25
29
  detail: string;
26
- documentationUrl: string;
30
+ documentation_url: string;
31
+ errors?: ErrorField[] | undefined;
27
32
  }
28
33
  export interface ErrorResponse {
29
34
  error: ErrorDetail;
@@ -6,5 +6,5 @@ export declare class AddressesResource extends BaseResource {
6
6
  list(customerId: string, queryParams?: ListAddressQueryParameters): Promise<AddressCollection>;
7
7
  create(customerId: string, createAddressParameters: CreateAddressRequestBody): Promise<Address>;
8
8
  get(customerId: string, addressId: string): Promise<Address>;
9
- update(customerId: string, addressId: string, updateProduct: UpdateAddressRequestBody): Promise<Address>;
9
+ update(customerId: string, addressId: string, updateAddress: UpdateAddressRequestBody): Promise<Address>;
10
10
  }
@@ -64,13 +64,13 @@ class AddressesResource extends base_1.BaseResource {
64
64
  return new entities_1.Address(data);
65
65
  });
66
66
  }
67
- update(customerId, addressId, updateProduct) {
67
+ update(customerId, addressId, updateAddress) {
68
68
  return __awaiter(this, void 0, void 0, function* () {
69
69
  const urlWithPathParams = new base_1.PathParameters(AddressPaths.update, {
70
70
  customer_id: customerId,
71
71
  address_id: addressId,
72
72
  }).deriveUrl();
73
- const response = yield this.client.patch(urlWithPathParams, updateProduct);
73
+ const response = yield this.client.patch(urlWithPathParams, updateAddress);
74
74
  const data = this.handleResponse(response);
75
75
  return new entities_1.Address(data);
76
76
  });
@@ -6,5 +6,5 @@ export declare class BusinessesResource extends BaseResource {
6
6
  list(customerId: string, queryParams?: ListBusinessQueryParameters): Promise<BusinessCollection>;
7
7
  create(customerId: string, createBusinessParameters: CreateBusinessRequestBody): Promise<Business>;
8
8
  get(customerId: string, businessId: string): Promise<Business>;
9
- update(customerId: string, businessId: string, updateProduct: UpdateBusinessRequestBody): Promise<Business>;
9
+ update(customerId: string, businessId: string, updateBusiness: UpdateBusinessRequestBody): Promise<Business>;
10
10
  }
@@ -64,13 +64,13 @@ class BusinessesResource extends base_1.BaseResource {
64
64
  return new entities_1.Business(data);
65
65
  });
66
66
  }
67
- update(customerId, businessId, updateProduct) {
67
+ update(customerId, businessId, updateBusiness) {
68
68
  return __awaiter(this, void 0, void 0, function* () {
69
69
  const urlWithPathParams = new base_1.PathParameters(BusinessPaths.update, {
70
70
  customer_id: customerId,
71
71
  business_id: businessId,
72
72
  }).deriveUrl();
73
- const response = yield this.client.patch(urlWithPathParams, updateProduct);
73
+ const response = yield this.client.patch(urlWithPathParams, updateBusiness);
74
74
  const data = this.handleResponse(response);
75
75
  return new entities_1.Business(data);
76
76
  });
@@ -1,10 +1,11 @@
1
- import { Customer, CustomerCollection } from '../../entities';
1
+ import { CreditBalance, Customer, CustomerCollection } from '../../entities';
2
2
  import { BaseResource } from '../../internal/base';
3
- import { type ListCustomerQueryParameters, type CreateCustomerRequestBody, type UpdateCustomerRequestBody } from './operations';
3
+ import { type ListCustomerQueryParameters, type CreateCustomerRequestBody, type UpdateCustomerRequestBody, type GetCreditBalanceQueryParameters } from './operations';
4
4
  export * from './operations';
5
5
  export declare class CustomersResource extends BaseResource {
6
6
  list(queryParams?: ListCustomerQueryParameters): Promise<CustomerCollection>;
7
7
  create(createCustomerParameters: CreateCustomerRequestBody): Promise<Customer>;
8
8
  get(customerId: string): Promise<Customer>;
9
- update(customerId: string, updateProduct: UpdateCustomerRequestBody): Promise<Customer>;
9
+ update(customerId: string, updateCustomer: UpdateCustomerRequestBody): Promise<Customer>;
10
+ getCreditBalance(customerId: string, queryParams?: GetCreditBalanceQueryParameters): Promise<CreditBalance>;
10
11
  }
@@ -31,6 +31,7 @@ const CustomerPaths = {
31
31
  create: '/customers',
32
32
  get: '/customers/{customer_id}',
33
33
  update: '/customers/{customer_id}',
34
+ getCustomerBalance: '/customers/{customer_id}/credit-balances',
34
35
  };
35
36
  __exportStar(require("./operations"), exports);
36
37
  class CustomersResource extends base_1.BaseResource {
@@ -57,15 +58,26 @@ class CustomersResource extends base_1.BaseResource {
57
58
  return new entities_1.Customer(data);
58
59
  });
59
60
  }
60
- update(customerId, updateProduct) {
61
+ update(customerId, updateCustomer) {
61
62
  return __awaiter(this, void 0, void 0, function* () {
62
63
  const urlWithPathParams = new base_1.PathParameters(CustomerPaths.update, {
63
64
  customer_id: customerId,
64
65
  }).deriveUrl();
65
- const response = yield this.client.patch(urlWithPathParams, updateProduct);
66
+ const response = yield this.client.patch(urlWithPathParams, updateCustomer);
66
67
  const data = this.handleResponse(response);
67
68
  return new entities_1.Customer(data);
68
69
  });
69
70
  }
71
+ getCreditBalance(customerId, queryParams) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const urlWithPathParams = new base_1.PathParameters(CustomerPaths.getCustomerBalance, {
74
+ customer_id: customerId,
75
+ }).deriveUrl();
76
+ const queryParameters = new base_1.QueryParameters(queryParams);
77
+ const response = yield this.client.get(urlWithPathParams, queryParameters);
78
+ const data = this.handleResponse(response);
79
+ return new entities_1.CreditBalance(data);
80
+ });
81
+ }
70
82
  }
71
83
  exports.CustomersResource = CustomersResource;
@@ -0,0 +1,3 @@
1
+ export interface GetCreditBalancePathParameters {
2
+ customer_id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { type CurrencyCode } from '../../../enums';
2
+ export interface GetCreditBalanceQueryParameters {
3
+ currency_code?: CurrencyCode[];
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,3 +3,5 @@ export * from './create-customer-request-body';
3
3
  export * from './get-customer-path-parameters';
4
4
  export * from './update-customer-path-parameters';
5
5
  export * from './update-customer-request-body';
6
+ export * from './get-credit-balance-path-parameters';
7
+ export * from './get-credit-balance-query-parameters';
@@ -19,3 +19,5 @@ __exportStar(require("./create-customer-request-body"), exports);
19
19
  __exportStar(require("./get-customer-path-parameters"), exports);
20
20
  __exportStar(require("./update-customer-path-parameters"), exports);
21
21
  __exportStar(require("./update-customer-request-body"), exports);
22
+ __exportStar(require("./get-credit-balance-path-parameters"), exports);
23
+ __exportStar(require("./get-credit-balance-query-parameters"), exports);
@@ -6,5 +6,5 @@ export declare class DiscountsResource extends BaseResource {
6
6
  list(queryParams?: ListDiscountQueryParameters): Promise<DiscountCollection>;
7
7
  create(createDiscountParameters: CreateDiscountRequestBody): Promise<Discount>;
8
8
  get(discountId: string): Promise<Discount>;
9
- update(discountId: string, updateProduct: UpdateDiscountRequestBody): Promise<Discount>;
9
+ update(discountId: string, updateDiscount: UpdateDiscountRequestBody): Promise<Discount>;
10
10
  }
@@ -57,12 +57,12 @@ class DiscountsResource extends base_1.BaseResource {
57
57
  return new entities_1.Discount(data);
58
58
  });
59
59
  }
60
- update(discountId, updateProduct) {
60
+ update(discountId, updateDiscount) {
61
61
  return __awaiter(this, void 0, void 0, function* () {
62
62
  const urlWithPathParams = new base_1.PathParameters(DiscountPaths.update, {
63
63
  discount_id: discountId,
64
64
  }).deriveUrl();
65
- const response = yield this.client.patch(urlWithPathParams, updateProduct);
65
+ const response = yield this.client.patch(urlWithPathParams, updateDiscount);
66
66
  const data = this.handleResponse(response);
67
67
  return new entities_1.Discount(data);
68
68
  });
@@ -6,5 +6,5 @@ export declare class PricesResource extends BaseResource {
6
6
  list(queryParams?: ListPriceQueryParameters): Promise<PriceCollection>;
7
7
  create(createPriceParameters: CreatePriceRequestBody): Promise<Price>;
8
8
  get(priceId: string, queryParams?: GetPriceQueryParameters): Promise<PriceWithIncludes>;
9
- update(priceId: string, updateProduct: UpdatePriceRequestBody): Promise<Price>;
9
+ update(priceId: string, updatePrice: UpdatePriceRequestBody): Promise<Price>;
10
10
  }
@@ -58,12 +58,12 @@ class PricesResource extends base_1.BaseResource {
58
58
  return new entities_1.PriceWithIncludes(data);
59
59
  });
60
60
  }
61
- update(priceId, updateProduct) {
61
+ update(priceId, updatePrice) {
62
62
  return __awaiter(this, void 0, void 0, function* () {
63
63
  const urlWithPathParams = new base_1.PathParameters(PricePaths.update, {
64
64
  price_id: priceId,
65
65
  }).deriveUrl();
66
- const response = yield this.client.patch(urlWithPathParams, updateProduct);
66
+ const response = yield this.client.patch(urlWithPathParams, updatePrice);
67
67
  const data = this.handleResponse(response);
68
68
  return new entities_1.Price(data);
69
69
  });
@@ -1,9 +1,17 @@
1
- import { Subscription, SubscriptionCollection, SubscriptionIncludes } from '../../entities';
1
+ import { Subscription, SubscriptionCollection, SubscriptionIncludes, SubscriptionPreview, TransactionIncludes } from '../../entities';
2
2
  import { BaseResource } from '../../internal/base';
3
- import { type GetSubscriptionQueryParameters, type ListSubscriptionQueryParameters, type UpdateSubscriptionRequestBody } from './operations';
3
+ import { type GetSubscriptionQueryParameters, type ListSubscriptionQueryParameters, type UpdateSubscriptionRequestBody, type PauseSubscription, type ResumeSubscription, type CancelSubscription, type CreateSubscriptionCharge } from './operations';
4
4
  export * from './operations';
5
5
  export declare class SubscriptionsResource extends BaseResource {
6
- update(subscriptionId: string, updateProduct: UpdateSubscriptionRequestBody): Promise<Subscription>;
6
+ previewUpdate(subscriptionId: string, updateSubscription: UpdateSubscriptionRequestBody): Promise<SubscriptionPreview>;
7
+ update(subscriptionId: string, updateSubscription: UpdateSubscriptionRequestBody): Promise<Subscription>;
7
8
  list(queryParams?: ListSubscriptionQueryParameters): Promise<SubscriptionCollection>;
8
9
  get(subscriptionId: string, queryParams?: GetSubscriptionQueryParameters): Promise<SubscriptionIncludes>;
10
+ activate(subscriptionId: string): Promise<Subscription>;
11
+ pause(subscriptionId: string, requestBody: PauseSubscription): Promise<Subscription>;
12
+ resume(subscriptionId: string, requestBody: ResumeSubscription): Promise<Subscription>;
13
+ cancel(subscriptionId: string, requestBody: CancelSubscription): Promise<Subscription>;
14
+ createOneTimeCharge(subscriptionId: string, requestBody: CreateSubscriptionCharge): Promise<Subscription>;
15
+ previewOneTimeCharge(subscriptionId: string, requestBody: CreateSubscriptionCharge): Promise<SubscriptionPreview>;
16
+ getPaymentMethodChangeTransaction(subscriptionId: string): Promise<TransactionIncludes>;
9
17
  }
@@ -29,16 +29,34 @@ const base_1 = require("../../internal/base");
29
29
  const SubscriptionPaths = {
30
30
  get: '/subscriptions/{subscription_id}',
31
31
  update: '/subscriptions/{subscription_id}',
32
+ updatePreview: '/subscriptions/{subscription_id}/preview',
32
33
  list: '/subscriptions',
34
+ cancel: '/subscriptions/{subscription_id}/cancel',
35
+ pause: '/subscriptions/{subscription_id}/pause',
36
+ resume: '/subscriptions/{subscription_id}/resume',
37
+ activate: '/subscriptions/{subscription_id}/activate',
38
+ createOneTimeCharge: '/subscriptions/{subscription_id}/charge',
39
+ previewOneTimeCharge: '/subscriptions/{subscription_id}/charge/preview',
40
+ getTransactionToUpdatePaymentMethod: '/subscriptions/{subscription_id}/update-payment-method-transaction',
33
41
  };
34
42
  __exportStar(require("./operations"), exports);
35
43
  class SubscriptionsResource extends base_1.BaseResource {
36
- update(subscriptionId, updateProduct) {
44
+ previewUpdate(subscriptionId, updateSubscription) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.updatePreview, {
47
+ subscription_id: subscriptionId,
48
+ }).deriveUrl();
49
+ const response = yield this.client.patch(urlWithPathParams, updateSubscription);
50
+ const data = this.handleResponse(response);
51
+ return new entities_1.SubscriptionPreview(data);
52
+ });
53
+ }
54
+ update(subscriptionId, updateSubscription) {
37
55
  return __awaiter(this, void 0, void 0, function* () {
38
56
  const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.update, {
39
57
  subscription_id: subscriptionId,
40
58
  }).deriveUrl();
41
- const response = yield this.client.patch(urlWithPathParams, updateProduct);
59
+ const response = yield this.client.patch(urlWithPathParams, updateSubscription);
42
60
  const data = this.handleResponse(response);
43
61
  return new entities_1.Subscription(data);
44
62
  });
@@ -60,5 +78,75 @@ class SubscriptionsResource extends base_1.BaseResource {
60
78
  return new entities_1.SubscriptionIncludes(data);
61
79
  });
62
80
  }
81
+ activate(subscriptionId) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.activate, {
84
+ subscription_id: subscriptionId,
85
+ }).deriveUrl();
86
+ const response = yield this.client.post(urlWithPathParams, undefined);
87
+ const data = this.handleResponse(response);
88
+ return new entities_1.Subscription(data);
89
+ });
90
+ }
91
+ pause(subscriptionId, requestBody) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.pause, {
94
+ subscription_id: subscriptionId,
95
+ }).deriveUrl();
96
+ const response = yield this.client.post(urlWithPathParams, requestBody);
97
+ const data = this.handleResponse(response);
98
+ return new entities_1.Subscription(data);
99
+ });
100
+ }
101
+ resume(subscriptionId, requestBody) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.resume, {
104
+ subscription_id: subscriptionId,
105
+ }).deriveUrl();
106
+ const response = yield this.client.post(urlWithPathParams, requestBody);
107
+ const data = this.handleResponse(response);
108
+ return new entities_1.Subscription(data);
109
+ });
110
+ }
111
+ cancel(subscriptionId, requestBody) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.cancel, {
114
+ subscription_id: subscriptionId,
115
+ }).deriveUrl();
116
+ const response = yield this.client.post(urlWithPathParams, requestBody);
117
+ const data = this.handleResponse(response);
118
+ return new entities_1.Subscription(data);
119
+ });
120
+ }
121
+ createOneTimeCharge(subscriptionId, requestBody) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.createOneTimeCharge, {
124
+ subscription_id: subscriptionId,
125
+ }).deriveUrl();
126
+ const response = yield this.client.post(urlWithPathParams, requestBody);
127
+ const data = this.handleResponse(response);
128
+ return new entities_1.Subscription(data);
129
+ });
130
+ }
131
+ previewOneTimeCharge(subscriptionId, requestBody) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.previewOneTimeCharge, {
134
+ subscription_id: subscriptionId,
135
+ }).deriveUrl();
136
+ const response = yield this.client.post(urlWithPathParams, requestBody);
137
+ const data = this.handleResponse(response);
138
+ return new entities_1.SubscriptionPreview(data);
139
+ });
140
+ }
141
+ getPaymentMethodChangeTransaction(subscriptionId) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const urlWithPathParams = new base_1.PathParameters(SubscriptionPaths.getTransactionToUpdatePaymentMethod, {
144
+ subscription_id: subscriptionId,
145
+ }).deriveUrl();
146
+ const response = yield this.client.get(urlWithPathParams);
147
+ const data = this.handleResponse(response);
148
+ return new entities_1.TransactionIncludes(data);
149
+ });
150
+ }
63
151
  }
64
152
  exports.SubscriptionsResource = SubscriptionsResource;
@@ -0,0 +1,4 @@
1
+ import { type SubscriptionEffectiveFrom } from '../../../enums';
2
+ export interface CancelSubscription {
3
+ effective_from?: SubscriptionEffectiveFrom | null;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { type SubscriptionEffectiveFrom } from '../../../enums';
2
+ export interface CreateSubscriptionChargeItem {
3
+ price_id: string;
4
+ quantity: number;
5
+ }
6
+ export interface CreateSubscriptionCharge {
7
+ effective_from: SubscriptionEffectiveFrom;
8
+ items: CreateSubscriptionChargeItem[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,3 +3,7 @@ export * from './get-subscription-path-parameters';
3
3
  export * from './update-subscription-path-parameters';
4
4
  export * from './update-subscription-request-body';
5
5
  export * from './list-subscription-query-parameters';
6
+ export * from './pause-subscription-request-object';
7
+ export * from './resume-subscription-request-object';
8
+ export * from './cancel-subscription-request-object';
9
+ export * from './create-subscription-charge-request-object';
@@ -19,3 +19,7 @@ __exportStar(require("./get-subscription-path-parameters"), exports);
19
19
  __exportStar(require("./update-subscription-path-parameters"), exports);
20
20
  __exportStar(require("./update-subscription-request-body"), exports);
21
21
  __exportStar(require("./list-subscription-query-parameters"), exports);
22
+ __exportStar(require("./pause-subscription-request-object"), exports);
23
+ __exportStar(require("./resume-subscription-request-object"), exports);
24
+ __exportStar(require("./cancel-subscription-request-object"), exports);
25
+ __exportStar(require("./create-subscription-charge-request-object"), exports);
@@ -0,0 +1,5 @@
1
+ import { type SubscriptionEffectiveFrom } from '../../../enums';
2
+ export interface PauseSubscription {
3
+ effective_from?: SubscriptionEffectiveFrom | null;
4
+ resume_at?: null | string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { type SubscriptionEffectiveFrom } from '../../../enums';
2
+ export interface ResumeSubscription {
3
+ effective_from: SubscriptionEffectiveFrom | string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,6 @@ export * from './operations';
5
5
  export declare class TransactionsResource extends BaseResource {
6
6
  list(queryParams?: ListTransactionQueryParameters): Promise<TransactionCollection>;
7
7
  create(createTransactionParameters: CreateTransactionRequestBody, queryParams?: CreateTransactionQueryParameters): Promise<TransactionIncludes>;
8
- update(transactionId: string, updateProduct: UpdateTransactionRequestBody): Promise<Transaction>;
8
+ update(transactionId: string, updateTransaction: UpdateTransactionRequestBody): Promise<Transaction>;
9
9
  get(transactionId: string, queryParams?: GetTransactionQueryParameters): Promise<TransactionIncludes>;
10
10
  }
@@ -48,12 +48,12 @@ class TransactionsResource extends base_1.BaseResource {
48
48
  return new entities_1.TransactionIncludes(data);
49
49
  });
50
50
  }
51
- update(transactionId, updateProduct) {
51
+ update(transactionId, updateTransaction) {
52
52
  return __awaiter(this, void 0, void 0, function* () {
53
53
  const urlWithPathParams = new base_1.PathParameters(TransactionPaths.update, {
54
54
  transaction_id: transactionId,
55
55
  }).deriveUrl();
56
- const response = yield this.client.patch(urlWithPathParams, updateProduct);
56
+ const response = yield this.client.patch(urlWithPathParams, updateTransaction);
57
57
  const data = this.handleResponse(response);
58
58
  return new entities_1.Transaction(data);
59
59
  });
@@ -0,0 +1,7 @@
1
+ import { type ICustomerBalance } from '../index';
2
+ import { type CurrencyCode } from '../../enums';
3
+ export interface ICreditBalance {
4
+ customer_id?: string | null | undefined;
5
+ currency_code?: CurrencyCode | null | undefined;
6
+ balance?: ICustomerBalance | null | undefined;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface ICustomerBalance {
2
+ available: string;
3
+ reserved: string;
4
+ used: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,3 @@
1
1
  export * from './customer';
2
+ export * from './credit-balance';
3
+ export * from './customer-balance';
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./customer"), exports);
18
+ __exportStar(require("./credit-balance"), exports);
19
+ __exportStar(require("./customer-balance"), exports);
@@ -8,3 +8,6 @@ export * from './next-transaction';
8
8
  export * from './subscription-discount';
9
9
  export * from './subscription-update-item';
10
10
  export * from './subscription-response';
11
+ export * from './subscription-preview';
12
+ export * from './subscription-preview-update-summary';
13
+ export * from './subscription-result';
@@ -24,3 +24,6 @@ __exportStar(require("./next-transaction"), exports);
24
24
  __exportStar(require("./subscription-discount"), exports);
25
25
  __exportStar(require("./subscription-update-item"), exports);
26
26
  __exportStar(require("./subscription-response"), exports);
27
+ __exportStar(require("./subscription-preview"), exports);
28
+ __exportStar(require("./subscription-preview-update-summary"), exports);
29
+ __exportStar(require("./subscription-result"), exports);
@@ -0,0 +1,6 @@
1
+ import { type IMoney, type ISubscriptionResult } from '../index';
2
+ export interface ISubscriptionPreviewUpdateSummary {
3
+ credit: IMoney;
4
+ charge: IMoney;
5
+ result: ISubscriptionResult;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { type ISubscriptionDiscount, type IBillingDetails, type ITimePeriod, type ISubscriptionScheduledChange, type ISubscriptionItem, type ICustomData, type INextTransaction, type ITransactionDetailsPreview, type ISubscriptionTimePeriod, type ISubscriptionManagement, type ISubscriptionPreviewUpdateSummary } from '../index';
2
+ import { type CurrencyCode, type CollectionMode, type SubscriptionStatus } from '../../enums';
3
+ export interface ISubscriptionPreview {
4
+ status: SubscriptionStatus;
5
+ customer_id: string;
6
+ address_id: string;
7
+ business_id?: string | undefined | null;
8
+ currency_code: CurrencyCode;
9
+ created_at: string;
10
+ updated_at: string;
11
+ started_at?: string | undefined | null;
12
+ first_billed_at?: string | undefined | null;
13
+ next_billed_at?: string | undefined | null;
14
+ paused_at?: string | undefined | null;
15
+ canceled_at?: string | undefined | null;
16
+ discount?: ISubscriptionDiscount | undefined | null;
17
+ collection_mode: CollectionMode;
18
+ billing_details?: IBillingDetails | undefined | null;
19
+ current_billing_period?: ISubscriptionTimePeriod | undefined | null;
20
+ billing_cycle?: ITimePeriod | undefined | null;
21
+ scheduled_change?: ISubscriptionScheduledChange | undefined | null;
22
+ management_urls?: ISubscriptionManagement | undefined | null;
23
+ items: ISubscriptionItem[];
24
+ custom_data?: ICustomData | undefined | null;
25
+ immediate_transaction?: INextTransaction | undefined | null;
26
+ next_transaction?: INextTransaction | undefined | null;
27
+ recurring_transaction_details?: ITransactionDetailsPreview | undefined | null;
28
+ update_summary?: ISubscriptionPreviewUpdateSummary | undefined | null;
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { type IMoney } from '../shared';
2
+ export interface ISubscriptionResult extends IMoney {
3
+ action: 'credit' | 'charge';
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.0";
1
+ export declare const SDK_VERSION = "0.1.1";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '0.1.0';
4
+ exports.SDK_VERSION = '0.1.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paddle/paddle-node-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A NodeJS SDK for Paddle Billing API",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",