xendit-fn 1.0.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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +442 -0
  3. package/lib/index.cjs +1588 -0
  4. package/lib/index.d.cts +9574 -0
  5. package/lib/index.d.ts +7 -0
  6. package/lib/index.d.ts.map +1 -0
  7. package/lib/index.esm.d.ts +9574 -0
  8. package/lib/index.esm.js +1544 -0
  9. package/lib/sdk/axios.d.ts +3 -0
  10. package/lib/sdk/axios.d.ts.map +1 -0
  11. package/lib/sdk/card/index.d.ts +2 -0
  12. package/lib/sdk/card/index.d.ts.map +1 -0
  13. package/lib/sdk/card/schema.d.ts +586 -0
  14. package/lib/sdk/card/schema.d.ts.map +1 -0
  15. package/lib/sdk/common.d.ts +28 -0
  16. package/lib/sdk/common.d.ts.map +1 -0
  17. package/lib/sdk/customer/index.d.ts +7 -0
  18. package/lib/sdk/customer/index.d.ts.map +1 -0
  19. package/lib/sdk/customer/schema.d.ts +5933 -0
  20. package/lib/sdk/customer/schema.d.ts.map +1 -0
  21. package/lib/sdk/ewallet/create.d.ts +173 -0
  22. package/lib/sdk/ewallet/create.d.ts.map +1 -0
  23. package/lib/sdk/ewallet/schema.d.ts +783 -0
  24. package/lib/sdk/ewallet/schema.d.ts.map +1 -0
  25. package/lib/sdk/index.d.ts +2201 -0
  26. package/lib/sdk/index.d.ts.map +1 -0
  27. package/lib/sdk/invoice/index.d.ts +8 -0
  28. package/lib/sdk/invoice/index.d.ts.map +1 -0
  29. package/lib/sdk/invoice/schema.d.ts +2198 -0
  30. package/lib/sdk/invoice/schema.d.ts.map +1 -0
  31. package/lib/sdk/payment-method/index.d.ts +7 -0
  32. package/lib/sdk/payment-method/index.d.ts.map +1 -0
  33. package/lib/sdk/payment-method/schema.d.ts +990 -0
  34. package/lib/sdk/payment-method/schema.d.ts.map +1 -0
  35. package/lib/utils/errors.d.ts +58 -0
  36. package/lib/utils/errors.d.ts.map +1 -0
  37. package/lib/utils/index.d.ts +6 -0
  38. package/lib/utils/index.d.ts.map +1 -0
  39. package/lib/utils/pagination.d.ts +134 -0
  40. package/lib/utils/pagination.d.ts.map +1 -0
  41. package/lib/utils/rate-limit.d.ts +90 -0
  42. package/lib/utils/rate-limit.d.ts.map +1 -0
  43. package/lib/utils/type-guards.d.ts +13 -0
  44. package/lib/utils/type-guards.d.ts.map +1 -0
  45. package/lib/utils/webhook.d.ts +101 -0
  46. package/lib/utils/webhook.d.ts.map +1 -0
  47. package/package.json +83 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAuB3E,YAAY,EAEV,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAEV,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAEV,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAEV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,eAAe,EAAE,CAAC;AAsBhC,UAAU,aAAa;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B;AAED,QAAA,MAAM,MAAM,QAAS,MAAM,YAAW,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { AxiosInstance, AxiosRequestConfig } from "axios";
2
+ import type { CreateInvoice, InvoiceResource, GetInvoice, ListInvoices, ListInvoicesResponse, UpdateInvoiceParams, ExpireInvoice } from "./schema";
3
+ export declare const createInvoice: (params: CreateInvoice, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<InvoiceResource>;
4
+ export declare const getInvoice: (params: GetInvoice, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<InvoiceResource>;
5
+ export declare const listInvoices: (params?: ListInvoices, axiosInstance?: AxiosInstance, config?: AxiosRequestConfig) => Promise<ListInvoicesResponse>;
6
+ export declare const updateInvoice: (params: UpdateInvoiceParams, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<InvoiceResource>;
7
+ export declare const expireInvoice: (params: ExpireInvoice, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<InvoiceResource>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/invoice/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACd,MAAM,UAAU,CAAC;AASlB,eAAO,MAAM,aAAa,WAChB,aAAa,iBACN,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,eAAe,CAmBzB,CAAC;AAEF,eAAO,MAAM,UAAU,WACb,UAAU,iBACH,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,eAAe,CAkBzB,CAAC;AAEF,eAAO,MAAM,YAAY,YACd,YAAY,kBACL,aAAa,WACpB,kBAAkB,KAC1B,OAAO,CAAC,oBAAoB,CAuE9B,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,mBAAmB,iBACZ,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,eAAe,CAmBzB,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,aAAa,iBACN,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,eAAe,CAmBzB,CAAC"}