orb-billing 1.37.4 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/core.d.ts +5 -0
  3. package/core.d.ts.map +1 -1
  4. package/core.js +10 -1
  5. package/core.js.map +1 -1
  6. package/core.mjs +8 -0
  7. package/core.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/customers/costs.d.ts +548 -12
  10. package/resources/customers/costs.d.ts.map +1 -1
  11. package/resources/customers/costs.js.map +1 -1
  12. package/resources/customers/costs.mjs.map +1 -1
  13. package/resources/customers/credits/credits.d.ts +13 -0
  14. package/resources/customers/credits/credits.d.ts.map +1 -1
  15. package/resources/customers/credits/credits.js +5 -0
  16. package/resources/customers/credits/credits.js.map +1 -1
  17. package/resources/customers/credits/credits.mjs +5 -0
  18. package/resources/customers/credits/credits.mjs.map +1 -1
  19. package/resources/customers/credits/index.d.ts +1 -0
  20. package/resources/customers/credits/index.d.ts.map +1 -1
  21. package/resources/customers/credits/index.js +5 -1
  22. package/resources/customers/credits/index.js.map +1 -1
  23. package/resources/customers/credits/index.mjs +1 -0
  24. package/resources/customers/credits/index.mjs.map +1 -1
  25. package/resources/customers/credits/top-ups.d.ts +399 -0
  26. package/resources/customers/credits/top-ups.d.ts.map +1 -0
  27. package/resources/customers/credits/top-ups.js +102 -0
  28. package/resources/customers/credits/top-ups.js.map +1 -0
  29. package/resources/customers/credits/top-ups.mjs +73 -0
  30. package/resources/customers/credits/top-ups.mjs.map +1 -0
  31. package/resources/customers/customers.d.ts +10 -0
  32. package/resources/customers/customers.d.ts.map +1 -1
  33. package/resources/customers/customers.js.map +1 -1
  34. package/resources/customers/customers.mjs.map +1 -1
  35. package/resources/subscriptions.d.ts +273 -5
  36. package/resources/subscriptions.d.ts.map +1 -1
  37. package/resources/subscriptions.js.map +1 -1
  38. package/resources/subscriptions.mjs.map +1 -1
  39. package/src/core.ts +11 -0
  40. package/src/resources/customers/costs.ts +586 -32
  41. package/src/resources/customers/credits/credits.ts +13 -0
  42. package/src/resources/customers/credits/index.ts +13 -0
  43. package/src/resources/customers/credits/top-ups.ts +542 -0
  44. package/src/resources/customers/customers.ts +12 -0
  45. package/src/resources/subscriptions.ts +283 -6
  46. package/src/version.ts +1 -1
  47. package/version.d.ts +1 -1
  48. package/version.js +1 -1
  49. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,UAAU,MAAM,iDAAiD,CAAC;AAC9E,OAAO,KAAK,SAAS,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,KAAK,CAAC,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;IAChE,IAAI,CACF,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;IAehE;;OAEG;IACH,gBAAgB,CACd,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,KAAK,CAAC,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,mCAAmC,EAAE,8BAA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AAC,MAAM,CAAC;IACxC,MAAM,QAAQ,mBAAmB,GAAG,SAAS,CAAC,mBAAmB,CAAC;IAClE,MAAM,QAAQ,iBAAiB,GAAG,SAAS,CAAC,iBAAiB,CAAC;IAC9D,MAAM,QAAQ,+BAA+B,GAAG,SAAS,CAAC,+BAA+B,CAAC;IAC1F,MAAM,QAAQ,6BAA6B,GAAG,SAAS,CAAC,6BAA6B,CAAC;IACtF,MAAM,QAAQ,sBAAsB,GAAG,SAAS,CAAC,sBAAsB,CAAC;IACxE,MAAM,QAAQ,kCAAkC,GAAG,SAAS,CAAC,kCAAkC,CAAC;IAChG,MAAM,QAAQ,iBAAiB,GAAG,SAAS,CAAC,iBAAiB,CAAC;IAC9D,MAAM,QAAQ,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC;IAC1D,MAAM,QAAQ,6BAA6B,GAAG,SAAS,CAAC,6BAA6B,CAAC;IACtF,MAAM,QAAQ,2BAA2B,GAAG,SAAS,CAAC,2BAA2B,CAAC;CACnF"}
@@ -29,11 +29,13 @@ const resource_1 = require("orb-billing/resource");
29
29
  const core_1 = require("orb-billing/core");
30
30
  const CreditsAPI = __importStar(require("orb-billing/resources/customers/credits/credits"));
31
31
  const LedgerAPI = __importStar(require("orb-billing/resources/customers/credits/ledger"));
32
+ const TopUpsAPI = __importStar(require("orb-billing/resources/customers/credits/top-ups"));
32
33
  const pagination_1 = require("orb-billing/pagination");
33
34
  class Credits extends resource_1.APIResource {
34
35
  constructor() {
35
36
  super(...arguments);
36
37
  this.ledger = new LedgerAPI.Ledger(this._client);
38
+ this.topUps = new TopUpsAPI.TopUps(this._client);
37
39
  }
38
40
  list(customerId, query = {}, options) {
39
41
  if ((0, core_1.isRequestOptions)(query)) {
@@ -64,5 +66,8 @@ exports.CreditListByExternalIDResponsesPage = CreditListByExternalIDResponsesPag
64
66
  Credits.Ledger = LedgerAPI.Ledger;
65
67
  Credits.LedgerListResponsesPage = LedgerAPI.LedgerListResponsesPage;
66
68
  Credits.LedgerListByExternalIDResponsesPage = LedgerAPI.LedgerListByExternalIDResponsesPage;
69
+ Credits.TopUps = TopUpsAPI.TopUps;
70
+ Credits.TopUpListResponsesPage = TopUpsAPI.TopUpListResponsesPage;
71
+ Credits.TopUpListByExternalIDResponsesPage = TopUpsAPI.TopUpListByExternalIDResponsesPage;
67
72
  })(Credits = exports.Credits || (exports.Credits = {}));
68
73
  //# sourceMappingURL=credits.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,mDAAmD;AACnD,2CAAoD;AACpD,4FAA8E;AAC9E,0FAA4E;AAC5E,uDAA+D;AAE/D,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsDhE,CAAC;IAxCC,IAAI,CACF,UAAyB,EACzB,QAAgD,EAAE,EAClD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,UAAU,UAAU,EAAE,uBAAuB,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAcD,gBAAgB,CACd,kBAAiC,EACjC,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7D;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,kBAAkB,UAAU,EAC/D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EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAcD,gBAAgB,CACd,kBAAiC,EACjC,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7D;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,kBAAkB,UAAU,EAC/D,mCAAmC,EACnC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAxDD,0BAwDC;AAED,MAAa,uBAAwB,SAAQ,iBAAwB;CAAG;AAAxE,0DAAwE;AAExE,MAAa,mCAAoC,SAAQ,iBAAoC;CAAG;AAAhG,kFAAgG;AAoChG,WAAiB,OAAO;IAGR,+BAAuB,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAC7D,2CAAmC,GAAG,UAAU,CAAC,mCAAmC,CAAC;IAGrF,cAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAK1B,+BAAuB,GAAG,SAAS,CAAC,uBAAuB,CAAC;IAC5D,2CAAmC,GAAG,SAAS,CAAC,mCAAmC,CAAC;IAKpF,cAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAK1B,8BAAsB,GAAG,SAAS,CAAC,sBAAsB,CAAC;IAC1D,0CAAkC,GAAG,SAAS,CAAC,kCAAkC,CAAC;AAKlG,CAAC,EA7BgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA6BvB"}
@@ -3,11 +3,13 @@ import { APIResource } from 'orb-billing/resource';
3
3
  import { isRequestOptions } from 'orb-billing/core';
4
4
  import * as CreditsAPI from 'orb-billing/resources/customers/credits/credits';
5
5
  import * as LedgerAPI from 'orb-billing/resources/customers/credits/ledger';
6
+ import * as TopUpsAPI from 'orb-billing/resources/customers/credits/top-ups';
6
7
  import { Page } from 'orb-billing/pagination';
7
8
  export class Credits extends APIResource {
8
9
  constructor() {
9
10
  super(...arguments);
10
11
  this.ledger = new LedgerAPI.Ledger(this._client);
12
+ this.topUps = new TopUpsAPI.TopUps(this._client);
11
13
  }
12
14
  list(customerId, query = {}, options) {
13
15
  if (isRequestOptions(query)) {
@@ -35,5 +37,8 @@ export class CreditListByExternalIDResponsesPage extends Page {
35
37
  Credits.Ledger = LedgerAPI.Ledger;
36
38
  Credits.LedgerListResponsesPage = LedgerAPI.LedgerListResponsesPage;
37
39
  Credits.LedgerListByExternalIDResponsesPage = LedgerAPI.LedgerListByExternalIDResponsesPage;
40
+ Credits.TopUps = TopUpsAPI.TopUps;
41
+ Credits.TopUpListResponsesPage = TopUpsAPI.TopUpListResponsesPage;
42
+ Credits.TopUpListByExternalIDResponsesPage = TopUpsAPI.TopUpListByExternalIDResponsesPage;
38
43
  })(Credits || (Credits = {}));
39
44
  //# sourceMappingURL=credits.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,sBAAsB;OAC3C,EAAE,gBAAgB,EAAE,MAAM,kBAAkB;OAC5C,KAAK,UAAU,MAAM,iDAAiD;OACtE,KAAK,SAAS,MAAM,gDAAgD;OACpE,EAAE,IAAI,EAAmB,MAAM,wBAAwB;AAE9D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsDhE,CAAC;IAxCC,IAAI,CACF,UAAyB,EACzB,QAAgD,EAAE,EAClD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,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IAKpF,cAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAK1B,8BAAsB,GAAG,SAAS,CAAC,sBAAsB,CAAC;IAC1D,0CAAkC,GAAG,SAAS,CAAC,kCAAkC,CAAC;AAKlG,CAAC,EA7BgB,OAAO,KAAP,OAAO,QA6BvB"}
@@ -1,3 +1,4 @@
1
1
  export { CreditListResponse, CreditListByExternalIDResponse, CreditListParams, CreditListByExternalIDParams, CreditListResponsesPage, CreditListByExternalIDResponsesPage, Credits, } from "./credits.js";
2
2
  export { LedgerListResponse, LedgerCreateEntryResponse, LedgerCreateEntryByExternalIDResponse, LedgerListByExternalIDResponse, LedgerListParams, LedgerCreateEntryParams, LedgerCreateEntryByExternalIDParams, LedgerListByExternalIDParams, LedgerListResponsesPage, LedgerListByExternalIDResponsesPage, Ledger, } from "./ledger.js";
3
+ export { TopUpCreateResponse, TopUpListResponse, TopUpCreateByExternalIDResponse, TopUpListByExternalIDResponse, TopUpCreateParams, TopUpListParams, TopUpCreateByExternalIDParams, TopUpListByExternalIDParams, TopUpListResponsesPage, TopUpListByExternalIDResponsesPage, TopUps, } from "./top-ups.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/customers/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,8BAA8B,EAC9B,gBAAgB,EAChB,4BAA4B,EAC5B,uBAAuB,EACvB,mCAAmC,EACnC,OAAO,GACR,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,qCAAqC,EACrC,8BAA8B,EAC9B,gBAAgB,EAChB,uBAAuB,EACvB,mCAAmC,EACnC,4BAA4B,EAC5B,uBAAuB,EACvB,mCAAmC,EACnC,MAAM,GACP,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/customers/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,8BAA8B,EAC9B,gBAAgB,EAChB,4BAA4B,EAC5B,uBAAuB,EACvB,mCAAmC,EACnC,OAAO,GACR,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,qCAAqC,EACrC,8BAA8B,EAC9B,gBAAgB,EAChB,uBAAuB,EACvB,mCAAmC,EACnC,4BAA4B,EAC5B,uBAAuB,EACvB,mCAAmC,EACnC,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,+BAA+B,EAC/B,6BAA6B,EAC7B,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,kCAAkC,EAClC,MAAM,GACP,MAAM,WAAW,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Ledger = exports.LedgerListByExternalIDResponsesPage = exports.LedgerListResponsesPage = exports.Credits = exports.CreditListByExternalIDResponsesPage = exports.CreditListResponsesPage = void 0;
4
+ exports.TopUps = exports.TopUpListByExternalIDResponsesPage = exports.TopUpListResponsesPage = exports.Ledger = exports.LedgerListByExternalIDResponsesPage = exports.LedgerListResponsesPage = exports.Credits = exports.CreditListByExternalIDResponsesPage = exports.CreditListResponsesPage = void 0;
5
5
  var credits_1 = require("./credits.js");
6
6
  Object.defineProperty(exports, "CreditListResponsesPage", { enumerable: true, get: function () { return credits_1.CreditListResponsesPage; } });
7
7
  Object.defineProperty(exports, "CreditListByExternalIDResponsesPage", { enumerable: true, get: function () { return credits_1.CreditListByExternalIDResponsesPage; } });
@@ -10,4 +10,8 @@ var ledger_1 = require("./ledger.js");
10
10
  Object.defineProperty(exports, "LedgerListResponsesPage", { enumerable: true, get: function () { return ledger_1.LedgerListResponsesPage; } });
11
11
  Object.defineProperty(exports, "LedgerListByExternalIDResponsesPage", { enumerable: true, get: function () { return ledger_1.LedgerListByExternalIDResponsesPage; } });
12
12
  Object.defineProperty(exports, "Ledger", { enumerable: true, get: function () { return ledger_1.Ledger; } });
13
+ var top_ups_1 = require("./top-ups.js");
14
+ Object.defineProperty(exports, "TopUpListResponsesPage", { enumerable: true, get: function () { return top_ups_1.TopUpListResponsesPage; } });
15
+ Object.defineProperty(exports, "TopUpListByExternalIDResponsesPage", { enumerable: true, get: function () { return top_ups_1.TopUpListByExternalIDResponsesPage; } });
16
+ Object.defineProperty(exports, "TopUps", { enumerable: true, get: function () { return top_ups_1.TopUps; } });
13
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/customers/credits/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,wCAQmB;AAHjB,kHAAA,uBAAuB,OAAA;AACvB,8HAAA,mCAAmC,OAAA;AACnC,kGAAA,OAAO,OAAA;AAET,sCAYkB;AAHhB,iHAAA,uBAAuB,OAAA;AACvB,6HAAA,mCAAmC,OAAA;AACnC,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/customers/credits/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,wCAQmB;AAHjB,kHAAA,uBAAuB,OAAA;AACvB,8HAAA,mCAAmC,OAAA;AACnC,kGAAA,OAAO,OAAA;AAET,sCAYkB;AAHhB,iHAAA,uBAAuB,OAAA;AACvB,6HAAA,mCAAmC,OAAA;AACnC,gGAAA,MAAM,OAAA;AAER,wCAYmB;AAHjB,iHAAA,sBAAsB,OAAA;AACtB,6HAAA,kCAAkC,OAAA;AAClC,iGAAA,MAAM,OAAA"}
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
  export { CreditListResponsesPage, CreditListByExternalIDResponsesPage, Credits, } from "./credits.mjs";
3
3
  export { LedgerListResponsesPage, LedgerListByExternalIDResponsesPage, Ledger, } from "./ledger.mjs";
4
+ export { TopUpListResponsesPage, TopUpListByExternalIDResponsesPage, TopUps, } from "./top-ups.mjs";
4
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/customers/credits/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAKL,uBAAuB,EACvB,mCAAmC,EACnC,OAAO,GACR;OACM,EASL,uBAAuB,EACvB,mCAAmC,EACnC,MAAM,GACP"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/customers/credits/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAKL,uBAAuB,EACvB,mCAAmC,EACnC,OAAO,GACR;OACM,EASL,uBAAuB,EACvB,mCAAmC,EACnC,MAAM,GACP;OACM,EASL,sBAAsB,EACtB,kCAAkC,EAClC,MAAM,GACP"}
@@ -0,0 +1,399 @@
1
+ import * as Core from 'orb-billing/core';
2
+ import { APIResource } from 'orb-billing/resource';
3
+ import * as TopUpsAPI from 'orb-billing/resources/customers/credits/top-ups';
4
+ import { Page, type PageParams } from 'orb-billing/pagination';
5
+ export declare class TopUps extends APIResource {
6
+ /**
7
+ * This endpoint allows you to create a new top-up for a specified customer's
8
+ * balance. While this top-up is active, the customer's balance will added in
9
+ * increments of the specified amount whenever the balance reaches the specified
10
+ * threshold.
11
+ *
12
+ * If a top-up already exists for this customer in the same currency, the existing
13
+ * top-up will be replaced.
14
+ */
15
+ create(customerId: string | null, body: TopUpCreateParams, options?: Core.RequestOptions): Core.APIPromise<TopUpCreateResponse>;
16
+ /**
17
+ * List top-ups
18
+ */
19
+ list(customerId: string | null, query?: TopUpListParams, options?: Core.RequestOptions): Core.PagePromise<TopUpListResponsesPage, TopUpListResponse>;
20
+ list(customerId: string | null, options?: Core.RequestOptions): Core.PagePromise<TopUpListResponsesPage, TopUpListResponse>;
21
+ /**
22
+ * Delete top-up
23
+ */
24
+ delete(customerId: string | null, topUpId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
25
+ /**
26
+ * This endpoint allows you to create a new top-up for a specified customer's
27
+ * balance. While this top-up is active, the customer's balance will added in
28
+ * increments of the specified amount whenever the balance reaches the specified
29
+ * threshold.
30
+ *
31
+ * If a top-up already exists for this customer in the same currency, the existing
32
+ * top-up will be replaced.
33
+ */
34
+ createByExternalId(externalCustomerId: string | null, body: TopUpCreateByExternalIDParams, options?: Core.RequestOptions): Core.APIPromise<TopUpCreateByExternalIDResponse>;
35
+ /**
36
+ * Delete top-up by external ID
37
+ */
38
+ deleteByExternalId(externalCustomerId: string | null, topUpId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
39
+ /**
40
+ * List top-ups by external ID
41
+ */
42
+ listByExternalId(externalCustomerId: string | null, query?: TopUpListByExternalIDParams, options?: Core.RequestOptions): Core.PagePromise<TopUpListByExternalIDResponsesPage, TopUpListByExternalIDResponse>;
43
+ listByExternalId(externalCustomerId: string | null, options?: Core.RequestOptions): Core.PagePromise<TopUpListByExternalIDResponsesPage, TopUpListByExternalIDResponse>;
44
+ }
45
+ export declare class TopUpListResponsesPage extends Page<TopUpListResponse> {
46
+ }
47
+ export declare class TopUpListByExternalIDResponsesPage extends Page<TopUpListByExternalIDResponse> {
48
+ }
49
+ export interface TopUpCreateResponse {
50
+ id: string;
51
+ /**
52
+ * The amount to increment when the threshold is reached.
53
+ */
54
+ amount: string;
55
+ /**
56
+ * The currency or custom pricing unit to use for this top-up. If this is a
57
+ * real-world currency, it must match the customer's invoicing currency.
58
+ */
59
+ currency: string;
60
+ /**
61
+ * Settings for invoices generated by triggered top-ups.
62
+ */
63
+ invoice_settings: TopUpCreateResponse.InvoiceSettings;
64
+ /**
65
+ * How much, in the customer's currency, to charge for each unit.
66
+ */
67
+ per_unit_cost_basis: string;
68
+ /**
69
+ * The threshold at which to trigger the top-up. If the balance is at or below this
70
+ * threshold, the top-up will be triggered.
71
+ */
72
+ threshold: string;
73
+ /**
74
+ * The number of days or months after which the top-up expires. If unspecified, it
75
+ * does not expire.
76
+ */
77
+ expires_after?: number | null;
78
+ /**
79
+ * The unit of expires_after.
80
+ */
81
+ expires_after_unit?: 'day' | 'month' | null;
82
+ }
83
+ export declare namespace TopUpCreateResponse {
84
+ /**
85
+ * Settings for invoices generated by triggered top-ups.
86
+ */
87
+ interface InvoiceSettings {
88
+ /**
89
+ * Whether the credits purchase invoice should auto collect with the customer's
90
+ * saved payment method.
91
+ */
92
+ auto_collection: boolean;
93
+ /**
94
+ * The net terms determines the difference between the invoice date and the issue
95
+ * date for the invoice. If you intend the invoice to be due on issue, set this
96
+ * to 0.
97
+ */
98
+ net_terms: number;
99
+ /**
100
+ * An optional memo to display on the invoice.
101
+ */
102
+ memo?: string | null;
103
+ }
104
+ }
105
+ export interface TopUpListResponse {
106
+ id: string;
107
+ /**
108
+ * The amount to increment when the threshold is reached.
109
+ */
110
+ amount: string;
111
+ /**
112
+ * The currency or custom pricing unit to use for this top-up. If this is a
113
+ * real-world currency, it must match the customer's invoicing currency.
114
+ */
115
+ currency: string;
116
+ /**
117
+ * Settings for invoices generated by triggered top-ups.
118
+ */
119
+ invoice_settings: TopUpListResponse.InvoiceSettings;
120
+ /**
121
+ * How much, in the customer's currency, to charge for each unit.
122
+ */
123
+ per_unit_cost_basis: string;
124
+ /**
125
+ * The threshold at which to trigger the top-up. If the balance is at or below this
126
+ * threshold, the top-up will be triggered.
127
+ */
128
+ threshold: string;
129
+ /**
130
+ * The number of days or months after which the top-up expires. If unspecified, it
131
+ * does not expire.
132
+ */
133
+ expires_after?: number | null;
134
+ /**
135
+ * The unit of expires_after.
136
+ */
137
+ expires_after_unit?: 'day' | 'month' | null;
138
+ }
139
+ export declare namespace TopUpListResponse {
140
+ /**
141
+ * Settings for invoices generated by triggered top-ups.
142
+ */
143
+ interface InvoiceSettings {
144
+ /**
145
+ * Whether the credits purchase invoice should auto collect with the customer's
146
+ * saved payment method.
147
+ */
148
+ auto_collection: boolean;
149
+ /**
150
+ * The net terms determines the difference between the invoice date and the issue
151
+ * date for the invoice. If you intend the invoice to be due on issue, set this
152
+ * to 0.
153
+ */
154
+ net_terms: number;
155
+ /**
156
+ * An optional memo to display on the invoice.
157
+ */
158
+ memo?: string | null;
159
+ }
160
+ }
161
+ export interface TopUpCreateByExternalIDResponse {
162
+ id: string;
163
+ /**
164
+ * The amount to increment when the threshold is reached.
165
+ */
166
+ amount: string;
167
+ /**
168
+ * The currency or custom pricing unit to use for this top-up. If this is a
169
+ * real-world currency, it must match the customer's invoicing currency.
170
+ */
171
+ currency: string;
172
+ /**
173
+ * Settings for invoices generated by triggered top-ups.
174
+ */
175
+ invoice_settings: TopUpCreateByExternalIDResponse.InvoiceSettings;
176
+ /**
177
+ * How much, in the customer's currency, to charge for each unit.
178
+ */
179
+ per_unit_cost_basis: string;
180
+ /**
181
+ * The threshold at which to trigger the top-up. If the balance is at or below this
182
+ * threshold, the top-up will be triggered.
183
+ */
184
+ threshold: string;
185
+ /**
186
+ * The number of days or months after which the top-up expires. If unspecified, it
187
+ * does not expire.
188
+ */
189
+ expires_after?: number | null;
190
+ /**
191
+ * The unit of expires_after.
192
+ */
193
+ expires_after_unit?: 'day' | 'month' | null;
194
+ }
195
+ export declare namespace TopUpCreateByExternalIDResponse {
196
+ /**
197
+ * Settings for invoices generated by triggered top-ups.
198
+ */
199
+ interface InvoiceSettings {
200
+ /**
201
+ * Whether the credits purchase invoice should auto collect with the customer's
202
+ * saved payment method.
203
+ */
204
+ auto_collection: boolean;
205
+ /**
206
+ * The net terms determines the difference between the invoice date and the issue
207
+ * date for the invoice. If you intend the invoice to be due on issue, set this
208
+ * to 0.
209
+ */
210
+ net_terms: number;
211
+ /**
212
+ * An optional memo to display on the invoice.
213
+ */
214
+ memo?: string | null;
215
+ }
216
+ }
217
+ export interface TopUpListByExternalIDResponse {
218
+ id: string;
219
+ /**
220
+ * The amount to increment when the threshold is reached.
221
+ */
222
+ amount: string;
223
+ /**
224
+ * The currency or custom pricing unit to use for this top-up. If this is a
225
+ * real-world currency, it must match the customer's invoicing currency.
226
+ */
227
+ currency: string;
228
+ /**
229
+ * Settings for invoices generated by triggered top-ups.
230
+ */
231
+ invoice_settings: TopUpListByExternalIDResponse.InvoiceSettings;
232
+ /**
233
+ * How much, in the customer's currency, to charge for each unit.
234
+ */
235
+ per_unit_cost_basis: string;
236
+ /**
237
+ * The threshold at which to trigger the top-up. If the balance is at or below this
238
+ * threshold, the top-up will be triggered.
239
+ */
240
+ threshold: string;
241
+ /**
242
+ * The number of days or months after which the top-up expires. If unspecified, it
243
+ * does not expire.
244
+ */
245
+ expires_after?: number | null;
246
+ /**
247
+ * The unit of expires_after.
248
+ */
249
+ expires_after_unit?: 'day' | 'month' | null;
250
+ }
251
+ export declare namespace TopUpListByExternalIDResponse {
252
+ /**
253
+ * Settings for invoices generated by triggered top-ups.
254
+ */
255
+ interface InvoiceSettings {
256
+ /**
257
+ * Whether the credits purchase invoice should auto collect with the customer's
258
+ * saved payment method.
259
+ */
260
+ auto_collection: boolean;
261
+ /**
262
+ * The net terms determines the difference between the invoice date and the issue
263
+ * date for the invoice. If you intend the invoice to be due on issue, set this
264
+ * to 0.
265
+ */
266
+ net_terms: number;
267
+ /**
268
+ * An optional memo to display on the invoice.
269
+ */
270
+ memo?: string | null;
271
+ }
272
+ }
273
+ export interface TopUpCreateParams {
274
+ /**
275
+ * The amount to increment when the threshold is reached.
276
+ */
277
+ amount: string;
278
+ /**
279
+ * The currency or custom pricing unit to use for this top-up. If this is a
280
+ * real-world currency, it must match the customer's invoicing currency.
281
+ */
282
+ currency: string;
283
+ /**
284
+ * Settings for invoices generated by triggered top-ups.
285
+ */
286
+ invoice_settings: TopUpCreateParams.InvoiceSettings;
287
+ /**
288
+ * How much, in the customer's currency, to charge for each unit.
289
+ */
290
+ per_unit_cost_basis: string;
291
+ /**
292
+ * The threshold at which to trigger the top-up. If the balance is at or below this
293
+ * threshold, the top-up will be triggered.
294
+ */
295
+ threshold: string;
296
+ /**
297
+ * The number of days or months after which the top-up expires. If unspecified, it
298
+ * does not expire.
299
+ */
300
+ expires_after?: number | null;
301
+ /**
302
+ * The unit of expires_after.
303
+ */
304
+ expires_after_unit?: 'day' | 'month' | null;
305
+ }
306
+ export declare namespace TopUpCreateParams {
307
+ /**
308
+ * Settings for invoices generated by triggered top-ups.
309
+ */
310
+ interface InvoiceSettings {
311
+ /**
312
+ * Whether the credits purchase invoice should auto collect with the customer's
313
+ * saved payment method.
314
+ */
315
+ auto_collection: boolean;
316
+ /**
317
+ * The net terms determines the difference between the invoice date and the issue
318
+ * date for the invoice. If you intend the invoice to be due on issue, set this
319
+ * to 0.
320
+ */
321
+ net_terms: number;
322
+ /**
323
+ * An optional memo to display on the invoice.
324
+ */
325
+ memo?: string | null;
326
+ }
327
+ }
328
+ export interface TopUpListParams extends PageParams {
329
+ }
330
+ export interface TopUpCreateByExternalIDParams {
331
+ /**
332
+ * The amount to increment when the threshold is reached.
333
+ */
334
+ amount: string;
335
+ /**
336
+ * The currency or custom pricing unit to use for this top-up. If this is a
337
+ * real-world currency, it must match the customer's invoicing currency.
338
+ */
339
+ currency: string;
340
+ /**
341
+ * Settings for invoices generated by triggered top-ups.
342
+ */
343
+ invoice_settings: TopUpCreateByExternalIDParams.InvoiceSettings;
344
+ /**
345
+ * How much, in the customer's currency, to charge for each unit.
346
+ */
347
+ per_unit_cost_basis: string;
348
+ /**
349
+ * The threshold at which to trigger the top-up. If the balance is at or below this
350
+ * threshold, the top-up will be triggered.
351
+ */
352
+ threshold: string;
353
+ /**
354
+ * The number of days or months after which the top-up expires. If unspecified, it
355
+ * does not expire.
356
+ */
357
+ expires_after?: number | null;
358
+ /**
359
+ * The unit of expires_after.
360
+ */
361
+ expires_after_unit?: 'day' | 'month' | null;
362
+ }
363
+ export declare namespace TopUpCreateByExternalIDParams {
364
+ /**
365
+ * Settings for invoices generated by triggered top-ups.
366
+ */
367
+ interface InvoiceSettings {
368
+ /**
369
+ * Whether the credits purchase invoice should auto collect with the customer's
370
+ * saved payment method.
371
+ */
372
+ auto_collection: boolean;
373
+ /**
374
+ * The net terms determines the difference between the invoice date and the issue
375
+ * date for the invoice. If you intend the invoice to be due on issue, set this
376
+ * to 0.
377
+ */
378
+ net_terms: number;
379
+ /**
380
+ * An optional memo to display on the invoice.
381
+ */
382
+ memo?: string | null;
383
+ }
384
+ }
385
+ export interface TopUpListByExternalIDParams extends PageParams {
386
+ }
387
+ export declare namespace TopUps {
388
+ export import TopUpCreateResponse = TopUpsAPI.TopUpCreateResponse;
389
+ export import TopUpListResponse = TopUpsAPI.TopUpListResponse;
390
+ export import TopUpCreateByExternalIDResponse = TopUpsAPI.TopUpCreateByExternalIDResponse;
391
+ export import TopUpListByExternalIDResponse = TopUpsAPI.TopUpListByExternalIDResponse;
392
+ export import TopUpListResponsesPage = TopUpsAPI.TopUpListResponsesPage;
393
+ export import TopUpListByExternalIDResponsesPage = TopUpsAPI.TopUpListByExternalIDResponsesPage;
394
+ export import TopUpCreateParams = TopUpsAPI.TopUpCreateParams;
395
+ export import TopUpListParams = TopUpsAPI.TopUpListParams;
396
+ export import TopUpCreateByExternalIDParams = TopUpsAPI.TopUpCreateByExternalIDParams;
397
+ export import TopUpListByExternalIDParams = TopUpsAPI.TopUpListByExternalIDParams;
398
+ }
399
+ //# sourceMappingURL=top-ups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-ups.d.ts","sourceRoot":"","sources":["../../../src/resources/customers/credits/top-ups.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,SAAS,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;OAQG;IACH,MAAM,CACJ,UAA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enAPI spec by Stainless.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.TopUpListByExternalIDResponsesPage = exports.TopUpListResponsesPage = exports.TopUps = void 0;
28
+ const resource_1 = require("orb-billing/resource");
29
+ const core_1 = require("orb-billing/core");
30
+ const TopUpsAPI = __importStar(require("orb-billing/resources/customers/credits/top-ups"));
31
+ const pagination_1 = require("orb-billing/pagination");
32
+ class TopUps extends resource_1.APIResource {
33
+ /**
34
+ * This endpoint allows you to create a new top-up for a specified customer's
35
+ * balance. While this top-up is active, the customer's balance will added in
36
+ * increments of the specified amount whenever the balance reaches the specified
37
+ * threshold.
38
+ *
39
+ * If a top-up already exists for this customer in the same currency, the existing
40
+ * top-up will be replaced.
41
+ */
42
+ create(customerId, body, options) {
43
+ return this._client.post(`/customers/${customerId}/credits/top_ups`, { body, ...options });
44
+ }
45
+ list(customerId, query = {}, options) {
46
+ if ((0, core_1.isRequestOptions)(query)) {
47
+ return this.list(customerId, {}, query);
48
+ }
49
+ return this._client.getAPIList(`/customers/${customerId}/credits/top_ups`, TopUpListResponsesPage, {
50
+ query,
51
+ ...options,
52
+ });
53
+ }
54
+ /**
55
+ * Delete top-up
56
+ */
57
+ delete(customerId, topUpId, options) {
58
+ return this._client.delete(`/customers/${customerId}/credits/top_ups/${topUpId}`, {
59
+ ...options,
60
+ headers: { Accept: '*/*', ...options?.headers },
61
+ });
62
+ }
63
+ /**
64
+ * This endpoint allows you to create a new top-up for a specified customer's
65
+ * balance. While this top-up is active, the customer's balance will added in
66
+ * increments of the specified amount whenever the balance reaches the specified
67
+ * threshold.
68
+ *
69
+ * If a top-up already exists for this customer in the same currency, the existing
70
+ * top-up will be replaced.
71
+ */
72
+ createByExternalId(externalCustomerId, body, options) {
73
+ return this._client.post(`/customers/external_customer_id/${externalCustomerId}/credits/top_ups`, {
74
+ body,
75
+ ...options,
76
+ });
77
+ }
78
+ /**
79
+ * Delete top-up by external ID
80
+ */
81
+ deleteByExternalId(externalCustomerId, topUpId, options) {
82
+ return this._client.delete(`/customers/external_customer_id/${externalCustomerId}/credits/top_ups/${topUpId}`, { ...options, headers: { Accept: '*/*', ...options?.headers } });
83
+ }
84
+ listByExternalId(externalCustomerId, query = {}, options) {
85
+ if ((0, core_1.isRequestOptions)(query)) {
86
+ return this.listByExternalId(externalCustomerId, {}, query);
87
+ }
88
+ return this._client.getAPIList(`/customers/external_customer_id/${externalCustomerId}/credits/top_ups`, TopUpListByExternalIDResponsesPage, { query, ...options });
89
+ }
90
+ }
91
+ exports.TopUps = TopUps;
92
+ class TopUpListResponsesPage extends pagination_1.Page {
93
+ }
94
+ exports.TopUpListResponsesPage = TopUpListResponsesPage;
95
+ class TopUpListByExternalIDResponsesPage extends pagination_1.Page {
96
+ }
97
+ exports.TopUpListByExternalIDResponsesPage = TopUpListByExternalIDResponsesPage;
98
+ (function (TopUps) {
99
+ TopUps.TopUpListResponsesPage = TopUpsAPI.TopUpListResponsesPage;
100
+ TopUps.TopUpListByExternalIDResponsesPage = TopUpsAPI.TopUpListByExternalIDResponsesPage;
101
+ })(TopUps = exports.TopUps || (exports.TopUps = {}));
102
+ //# sourceMappingURL=top-ups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-ups.js","sourceRoot":"","sources":["../../../src/resources/customers/credits/top-ups.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,mDAAmD;AACnD,2CAAoD;AACpD,2FAA6E;AAC7E,uDAA+D;AAE/D,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;OAQG;IACH,MAAM,CACJ,UAAyB,EACzB,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,UAAU,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAcD,IAAI,CACF,UAAyB,EACzB,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,UAAU,kBAAkB,EAAE,sBAAsB,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAyB,EAAE,OAAe,EAAE,OAA6B;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,UAAU,oBAAoB,OAAO,EAAE,EAAE;YAChF,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,kBAAkB,CAChB,kBAAiC,EACjC,I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