dodopayments-mcp 2.4.6 → 2.6.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 (98) hide show
  1. package/README.md +3 -0
  2. package/code-tool-worker.d.mts.map +1 -1
  3. package/code-tool-worker.d.ts.map +1 -1
  4. package/code-tool-worker.js +2 -0
  5. package/code-tool-worker.js.map +1 -1
  6. package/code-tool-worker.mjs +2 -0
  7. package/code-tool-worker.mjs.map +1 -1
  8. package/package.json +2 -2
  9. package/server.js +1 -1
  10. package/server.mjs +1 -1
  11. package/src/code-tool-worker.ts +2 -0
  12. package/src/server.ts +1 -1
  13. package/src/tools/checkout-sessions/create-checkout-sessions.ts +21 -0
  14. package/src/tools/customers/create-customers.ts +6 -1
  15. package/src/tools/customers/list-customers.ts +1 -1
  16. package/src/tools/customers/retrieve-customers.ts +1 -1
  17. package/src/tools/customers/retrieve-payment-methods-customers.ts +56 -0
  18. package/src/tools/customers/update-customers.ts +6 -1
  19. package/src/tools/disputes/retrieve-disputes.ts +1 -1
  20. package/src/tools/index.ts +4 -0
  21. package/src/tools/licenses/activate-licenses.ts +1 -1
  22. package/src/tools/payments/list-payments.ts +1 -1
  23. package/src/tools/products/create-products.ts +5 -5
  24. package/src/tools/refunds/create-refunds.ts +1 -1
  25. package/src/tools/refunds/retrieve-refunds.ts +1 -1
  26. package/src/tools/subscriptions/update-payment-method-subscriptions.ts +84 -0
  27. package/tools/checkout-sessions/create-checkout-sessions.d.mts.map +1 -1
  28. package/tools/checkout-sessions/create-checkout-sessions.d.ts.map +1 -1
  29. package/tools/checkout-sessions/create-checkout-sessions.js +21 -0
  30. package/tools/checkout-sessions/create-checkout-sessions.js.map +1 -1
  31. package/tools/checkout-sessions/create-checkout-sessions.mjs +21 -0
  32. package/tools/checkout-sessions/create-checkout-sessions.mjs.map +1 -1
  33. package/tools/customers/create-customers.d.mts.map +1 -1
  34. package/tools/customers/create-customers.d.ts.map +1 -1
  35. package/tools/customers/create-customers.js +6 -1
  36. package/tools/customers/create-customers.js.map +1 -1
  37. package/tools/customers/create-customers.mjs +6 -1
  38. package/tools/customers/create-customers.mjs.map +1 -1
  39. package/tools/customers/list-customers.js +1 -1
  40. package/tools/customers/list-customers.js.map +1 -1
  41. package/tools/customers/list-customers.mjs +1 -1
  42. package/tools/customers/list-customers.mjs.map +1 -1
  43. package/tools/customers/retrieve-customers.js +1 -1
  44. package/tools/customers/retrieve-customers.js.map +1 -1
  45. package/tools/customers/retrieve-customers.mjs +1 -1
  46. package/tools/customers/retrieve-customers.mjs.map +1 -1
  47. package/tools/customers/retrieve-payment-methods-customers.d.mts +45 -0
  48. package/tools/customers/retrieve-payment-methods-customers.d.mts.map +1 -0
  49. package/tools/customers/retrieve-payment-methods-customers.d.ts +45 -0
  50. package/tools/customers/retrieve-payment-methods-customers.d.ts.map +1 -0
  51. package/tools/customers/retrieve-payment-methods-customers.js +50 -0
  52. package/tools/customers/retrieve-payment-methods-customers.js.map +1 -0
  53. package/tools/customers/retrieve-payment-methods-customers.mjs +46 -0
  54. package/tools/customers/retrieve-payment-methods-customers.mjs.map +1 -0
  55. package/tools/customers/update-customers.d.mts.map +1 -1
  56. package/tools/customers/update-customers.d.ts.map +1 -1
  57. package/tools/customers/update-customers.js +6 -1
  58. package/tools/customers/update-customers.js.map +1 -1
  59. package/tools/customers/update-customers.mjs +6 -1
  60. package/tools/customers/update-customers.mjs.map +1 -1
  61. package/tools/disputes/retrieve-disputes.js +1 -1
  62. package/tools/disputes/retrieve-disputes.js.map +1 -1
  63. package/tools/disputes/retrieve-disputes.mjs +1 -1
  64. package/tools/disputes/retrieve-disputes.mjs.map +1 -1
  65. package/tools/index.d.mts.map +1 -1
  66. package/tools/index.d.ts.map +1 -1
  67. package/tools/index.js +4 -0
  68. package/tools/index.js.map +1 -1
  69. package/tools/index.mjs +4 -0
  70. package/tools/index.mjs.map +1 -1
  71. package/tools/licenses/activate-licenses.js +1 -1
  72. package/tools/licenses/activate-licenses.js.map +1 -1
  73. package/tools/licenses/activate-licenses.mjs +1 -1
  74. package/tools/licenses/activate-licenses.mjs.map +1 -1
  75. package/tools/payments/list-payments.js +1 -1
  76. package/tools/payments/list-payments.js.map +1 -1
  77. package/tools/payments/list-payments.mjs +1 -1
  78. package/tools/payments/list-payments.mjs.map +1 -1
  79. package/tools/products/create-products.js +5 -5
  80. package/tools/products/create-products.js.map +1 -1
  81. package/tools/products/create-products.mjs +5 -5
  82. package/tools/products/create-products.mjs.map +1 -1
  83. package/tools/refunds/create-refunds.js +1 -1
  84. package/tools/refunds/create-refunds.js.map +1 -1
  85. package/tools/refunds/create-refunds.mjs +1 -1
  86. package/tools/refunds/create-refunds.mjs.map +1 -1
  87. package/tools/refunds/retrieve-refunds.js +1 -1
  88. package/tools/refunds/retrieve-refunds.js.map +1 -1
  89. package/tools/refunds/retrieve-refunds.mjs +1 -1
  90. package/tools/refunds/retrieve-refunds.mjs.map +1 -1
  91. package/tools/subscriptions/update-payment-method-subscriptions.d.mts +45 -0
  92. package/tools/subscriptions/update-payment-method-subscriptions.d.mts.map +1 -0
  93. package/tools/subscriptions/update-payment-method-subscriptions.d.ts +45 -0
  94. package/tools/subscriptions/update-payment-method-subscriptions.d.ts.map +1 -0
  95. package/tools/subscriptions/update-payment-method-subscriptions.js +78 -0
  96. package/tools/subscriptions/update-payment-method-subscriptions.js.map +1 -0
  97. package/tools/subscriptions/update-payment-method-subscriptions.mjs +74 -0
  98. package/tools/subscriptions/update-payment-method-subscriptions.mjs.map +1 -0
package/README.md CHANGED
@@ -301,6 +301,8 @@ The following tools are available in this MCP server.
301
301
  - Paginate results: `?page_size=20&page_number=1`
302
302
  - Recent usage: `?start_date=2024-03-01T00:00:00Z` (from March 1st to now)
303
303
 
304
+ - `update_payment_method_subscriptions` (`write`):
305
+
304
306
  ### Resource `invoices.payments`:
305
307
 
306
308
  - `retrieve_invoices_payments` (`read`):
@@ -330,6 +332,7 @@ The following tools are available in this MCP server.
330
332
  - `retrieve_customers` (`read`):
331
333
  - `update_customers` (`write`):
332
334
  - `list_customers` (`read`):
335
+ - `retrieve_payment_methods_customers` (`read`):
333
336
 
334
337
  ### Resource `customers.customer_portal`:
335
338
 
@@ -1 +1 @@
1
- {"version":3,"file":"code-tool-worker.d.mts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBAyN0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAwDrD,wBAAyB"}
1
+ {"version":3,"file":"code-tool-worker.d.mts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBA2N0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAwDrD,wBAAyB"}
@@ -1 +1 @@
1
- {"version":3,"file":"code-tool-worker.d.ts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBAyN0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAwDrD,wBAAyB"}
1
+ {"version":3,"file":"code-tool-worker.d.ts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBA2N0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAwDrD,wBAAyB"}
@@ -46,6 +46,7 @@ const fuse = new fuse_js_1.default([
46
46
  'client.subscriptions.retrieve',
47
47
  'client.subscriptions.retrieveUsageHistory',
48
48
  'client.subscriptions.update',
49
+ 'client.subscriptions.updatePaymentMethod',
49
50
  'client.invoices.payments.retrieve',
50
51
  'client.invoices.payments.retrieveRefund',
51
52
  'client.licenses.activate',
@@ -60,6 +61,7 @@ const fuse = new fuse_js_1.default([
60
61
  'client.customers.create',
61
62
  'client.customers.list',
62
63
  'client.customers.retrieve',
64
+ 'client.customers.retrievePaymentMethods',
63
65
  'client.customers.update',
64
66
  'client.customers.customerPortal.create',
65
67
  'client.customers.wallets.list',
@@ -1 +1 @@
1
- {"version":3,"file":"code-tool-worker.js","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";AAAA,s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rieve',
42
42
  'client.subscriptions.retrieveUsageHistory',
43
43
  'client.subscriptions.update',
44
+ 'client.subscriptions.updatePaymentMethod',
44
45
  'client.invoices.payments.retrieve',
45
46
  'client.invoices.payments.retrieveRefund',
46
47
  'client.licenses.activate',
@@ -55,6 +56,7 @@ const fuse = new Fuse([
55
56
  'client.customers.create',
56
57
  'client.customers.list',
57
58
  'client.customers.retrieve',
59
+ 'client.customers.retrievePaymentMethods',
58
60
  'client.customers.update',
59
61
  'client.customers.customerPortal.create',
60
62
  'client.customers.wallets.list',
@@ -1 +1 @@
1
- {"version":3,"file":"code-tool-worker.mjs","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,IAAI,MAAM,WAAW;OAErB,IAAI,MAAM,SAAS;OACnB,EAAE,MAAM,YAAY;OAGpB,EAAE,YAAY,EAAE,MAAM,cAAc;AAE3C,SAAS,kBAAkB,CACzB,IAAY;IAEZ,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEtF,KAAK,MAAM,SAAS,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,4CAA4C;QAC5C,IAAI,EAAE,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,CAAC;YACxC,IAAI,SAAS,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC;gBACnC,OAAO,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;QAED,qFAAqF;QACrF,IAAI,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC;YACtC,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;gBACjE,IAAI,EAAE,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,E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C,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QACtE,OAAO,QAAQ,CAAC,IAAI,CAAC;YACnB,MAAM;YACN,QAAQ;YACR,QAAQ;SACe,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,QAAQ,CAAC,IAAI,CAClB;YACE,OAAO,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;SACP,EACvB,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,sBAAsB,EAAE,CACpD,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dodopayments-mcp",
3
- "version": "2.4.6",
3
+ "version": "2.6.0",
4
4
  "description": "The official MCP Server for the Dodo Payments API",
5
5
  "author": "Dodo Payments <support@dodopayments.com>",
6
6
  "types": "./index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "fix": "eslint --fix --ext ts,js ."
28
28
  },
29
29
  "dependencies": {
30
- "dodopayments": "^2.4.6",
30
+ "dodopayments": "^2.6.0",
31
31
  "@cloudflare/cabidela": "^0.2.4",
32
32
  "@modelcontextprotocol/sdk": "^1.11.5",
33
33
  "@valtown/deno-http-worker": "^0.0.21",
package/server.js CHANGED
@@ -22,7 +22,7 @@ var tools_2 = require("./tools.js");
22
22
  Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
23
23
  const newMcpServer = () => new mcp_js_1.McpServer({
24
24
  name: 'dodopayments_api',
25
- version: '2.4.6',
25
+ version: '2.6.0',
26
26
  }, { capabilities: { tools: {}, logging: {} } });
27
27
  exports.newMcpServer = newMcpServer;
28
28
  // Create server instance
package/server.mjs CHANGED
@@ -11,7 +11,7 @@ export { ClientType } from "./compat.mjs";
11
11
  export { endpoints } from "./tools.mjs";
12
12
  export const newMcpServer = () => new McpServer({
13
13
  name: 'dodopayments_api',
14
- version: '2.4.6',
14
+ version: '2.6.0',
15
15
  }, { capabilities: { tools: {}, logging: {} } });
16
16
  // Create server instance
17
17
  export const server = newMcpServer();
@@ -55,6 +55,7 @@ const fuse = new Fuse(
55
55
  'client.subscriptions.retrieve',
56
56
  'client.subscriptions.retrieveUsageHistory',
57
57
  'client.subscriptions.update',
58
+ 'client.subscriptions.updatePaymentMethod',
58
59
  'client.invoices.payments.retrieve',
59
60
  'client.invoices.payments.retrieveRefund',
60
61
  'client.licenses.activate',
@@ -69,6 +70,7 @@ const fuse = new Fuse(
69
70
  'client.customers.create',
70
71
  'client.customers.list',
71
72
  'client.customers.retrieve',
73
+ 'client.customers.retrievePaymentMethods',
72
74
  'client.customers.update',
73
75
  'client.customers.customerPortal.create',
74
76
  'client.customers.wallets.list',
package/src/server.ts CHANGED
@@ -34,7 +34,7 @@ export const newMcpServer = () =>
34
34
  new McpServer(
35
35
  {
36
36
  name: 'dodopayments_api',
37
- version: '2.4.6',
37
+ version: '2.6.0',
38
38
  },
39
39
  { capabilities: { tools: {}, logging: {} } },
40
40
  );
@@ -130,6 +130,27 @@ export const tool: Tool = {
130
130
  type: 'boolean',
131
131
  description: 'if customer is allowed to change currency, set it to true\n\nDefault is true',
132
132
  },
133
+ allow_customer_editing_city: {
134
+ type: 'boolean',
135
+ },
136
+ allow_customer_editing_country: {
137
+ type: 'boolean',
138
+ },
139
+ allow_customer_editing_email: {
140
+ type: 'boolean',
141
+ },
142
+ allow_customer_editing_name: {
143
+ type: 'boolean',
144
+ },
145
+ allow_customer_editing_state: {
146
+ type: 'boolean',
147
+ },
148
+ allow_customer_editing_street: {
149
+ type: 'boolean',
150
+ },
151
+ allow_customer_editing_zipcode: {
152
+ type: 'boolean',
153
+ },
133
154
  allow_discount_code: {
134
155
  type: 'boolean',
135
156
  description:
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'create_customers',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer',\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer',\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata for the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -28,6 +28,11 @@ export const tool: Tool = {
28
28
  name: {
29
29
  type: 'string',
30
30
  },
31
+ metadata: {
32
+ type: 'object',
33
+ description: 'Additional metadata for the customer',
34
+ additionalProperties: true,
35
+ },
31
36
  phone_number: {
32
37
  type: 'string',
33
38
  },
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_customers',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/customer'\n }\n }\n },\n required: [ 'items'\n ],\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/customer'\n }\n }\n },\n required: [ 'items'\n ],\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata for the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'retrieve_customers',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer',\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer',\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata for the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -0,0 +1,56 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { isJqError, maybeFilter } from 'dodopayments-mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from 'dodopayments-mcp/tools/types';
5
+
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import DodoPayments from 'dodopayments';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'customers',
11
+ operation: 'read',
12
+ tags: [],
13
+ httpMethod: 'get',
14
+ httpPath: '/customers/{customer_id}/payment-methods',
15
+ operationId: 'get_customer_payment_methods',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'retrieve_payment_methods_customers',
20
+ description:
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer_retrieve_payment_methods_response',\n $defs: {\n customer_retrieve_payment_methods_response: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n payment_method: {\n type: 'string',\n description: 'PaymentMethod enum from hyperswitch\\n\\nhttps://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097',\n enum: [ 'card',\n 'card_redirect',\n 'pay_later',\n 'wallet',\n 'bank_redirect',\n 'bank_transfer',\n 'crypto',\n 'bank_debit',\n 'reward',\n 'real_time_payment',\n 'upi',\n 'voucher',\n 'gift_card',\n 'open_banking',\n 'mobile_payment'\n ]\n },\n payment_method_id: {\n type: 'string'\n },\n card: {\n type: 'object',\n properties: {\n card_issuing_country: {\n $ref: '#/$defs/country_code'\n },\n card_network: {\n type: 'string'\n },\n card_type: {\n type: 'string'\n },\n expiry_month: {\n type: 'string'\n },\n expiry_year: {\n type: 'string'\n },\n last4_digits: {\n type: 'string'\n }\n }\n },\n last_used_at: {\n type: 'string',\n format: 'date-time'\n },\n payment_method_type: {\n $ref: '#/$defs/payment_method_types'\n },\n recurring_enabled: {\n type: 'boolean'\n }\n },\n required: [ 'payment_method',\n 'payment_method_id'\n ]\n }\n }\n },\n required: [ 'items'\n ]\n },\n country_code: {\n type: 'string',\n description: 'ISO country code alpha2 variant',\n enum: [ 'AF',\n 'AX',\n 'AL',\n 'DZ',\n 'AS',\n 'AD',\n 'AO',\n 'AI',\n 'AQ',\n 'AG',\n 'AR',\n 'AM',\n 'AW',\n 'AU',\n 'AT',\n 'AZ',\n 'BS',\n 'BH',\n 'BD',\n 'BB',\n 'BY',\n 'BE',\n 'BZ',\n 'BJ',\n 'BM',\n 'BT',\n 'BO',\n 'BQ',\n 'BA',\n 'BW',\n 'BV',\n 'BR',\n 'IO',\n 'BN',\n 'BG',\n 'BF',\n 'BI',\n 'KH',\n 'CM',\n 'CA',\n 'CV',\n 'KY',\n 'CF',\n 'TD',\n 'CL',\n 'CN',\n 'CX',\n 'CC',\n 'CO',\n 'KM',\n 'CG',\n 'CD',\n 'CK',\n 'CR',\n 'CI',\n 'HR',\n 'CU',\n 'CW',\n 'CY',\n 'CZ',\n 'DK',\n 'DJ',\n 'DM',\n 'DO',\n 'EC',\n 'EG',\n 'SV',\n 'GQ',\n 'ER',\n 'EE',\n 'ET',\n 'FK',\n 'FO',\n 'FJ',\n 'FI',\n 'FR',\n 'GF',\n 'PF',\n 'TF',\n 'GA',\n 'GM',\n 'GE',\n 'DE',\n 'GH',\n 'GI',\n 'GR',\n 'GL',\n 'GD',\n 'GP',\n 'GU',\n 'GT',\n 'GG',\n 'GN',\n 'GW',\n 'GY',\n 'HT',\n 'HM',\n 'VA',\n 'HN',\n 'HK',\n 'HU',\n 'IS',\n 'IN',\n 'ID',\n 'IR',\n 'IQ',\n 'IE',\n 'IM',\n 'IL',\n 'IT',\n 'JM',\n 'JP',\n 'JE',\n 'JO',\n 'KZ',\n 'KE',\n 'KI',\n 'KP',\n 'KR',\n 'KW',\n 'KG',\n 'LA',\n 'LV',\n 'LB',\n 'LS',\n 'LR',\n 'LY',\n 'LI',\n 'LT',\n 'LU',\n 'MO',\n 'MK',\n 'MG',\n 'MW',\n 'MY',\n 'MV',\n 'ML',\n 'MT',\n 'MH',\n 'MQ',\n 'MR',\n 'MU',\n 'YT',\n 'MX',\n 'FM',\n 'MD',\n 'MC',\n 'MN',\n 'ME',\n 'MS',\n 'MA',\n 'MZ',\n 'MM',\n 'NA',\n 'NR',\n 'NP',\n 'NL',\n 'NC',\n 'NZ',\n 'NI',\n 'NE',\n 'NG',\n 'NU',\n 'NF',\n 'MP',\n 'NO',\n 'OM',\n 'PK',\n 'PW',\n 'PS',\n 'PA',\n 'PG',\n 'PY',\n 'PE',\n 'PH',\n 'PN',\n 'PL',\n 'PT',\n 'PR',\n 'QA',\n 'RE',\n 'RO',\n 'RU',\n 'RW',\n 'BL',\n 'SH',\n 'KN',\n 'LC',\n 'MF',\n 'PM',\n 'VC',\n 'WS',\n 'SM',\n 'ST',\n 'SA',\n 'SN',\n 'RS',\n 'SC',\n 'SL',\n 'SG',\n 'SX',\n 'SK',\n 'SI',\n 'SB',\n 'SO',\n 'ZA',\n 'GS',\n 'SS',\n 'ES',\n 'LK',\n 'SD',\n 'SR',\n 'SJ',\n 'SZ',\n 'SE',\n 'CH',\n 'SY',\n 'TW',\n 'TJ',\n 'TZ',\n 'TH',\n 'TL',\n 'TG',\n 'TK',\n 'TO',\n 'TT',\n 'TN',\n 'TR',\n 'TM',\n 'TC',\n 'TV',\n 'UG',\n 'UA',\n 'AE',\n 'GB',\n 'UM',\n 'US',\n 'UY',\n 'UZ',\n 'VU',\n 'VE',\n 'VN',\n 'VG',\n 'VI',\n 'WF',\n 'EH',\n 'YE',\n 'ZM',\n 'ZW'\n ]\n },\n payment_method_types: {\n type: 'string',\n enum: [ 'credit',\n 'debit',\n 'upi_collect',\n 'upi_intent',\n 'apple_pay',\n 'cashapp',\n 'google_pay',\n 'multibanco',\n 'bancontact_card',\n 'eps',\n 'ideal',\n 'przelewy24',\n 'paypal',\n 'affirm',\n 'klarna',\n 'sepa',\n 'ach',\n 'amazon_pay',\n 'afterpay_clearpay'\n ]\n }\n }\n}\n```",
22
+ inputSchema: {
23
+ type: 'object',
24
+ properties: {
25
+ customer_id: {
26
+ type: 'string',
27
+ },
28
+ jq_filter: {
29
+ type: 'string',
30
+ title: 'jq Filter',
31
+ description:
32
+ 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
33
+ },
34
+ },
35
+ required: ['customer_id'],
36
+ },
37
+ annotations: {
38
+ readOnlyHint: true,
39
+ },
40
+ };
41
+
42
+ export const handler = async (client: DodoPayments, args: Record<string, unknown> | undefined) => {
43
+ const { customer_id, jq_filter, ...body } = args as any;
44
+ try {
45
+ return asTextContentResult(
46
+ await maybeFilter(jq_filter, await client.customers.retrievePaymentMethods(customer_id)),
47
+ );
48
+ } catch (error) {
49
+ if (isJqError(error)) {
50
+ return asErrorResult(error.message);
51
+ }
52
+ throw error;
53
+ }
54
+ };
55
+
56
+ export default { metadata, tool, handler };
@@ -18,13 +18,18 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'update_customers',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer',\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer',\n $defs: {\n customer: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata for the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
25
25
  customer_id: {
26
26
  type: 'string',
27
27
  },
28
+ metadata: {
29
+ type: 'object',
30
+ description: 'Additional metadata for the customer',
31
+ additionalProperties: true,
32
+ },
28
33
  name: {
29
34
  type: 'string',
30
35
  },
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'retrieve_disputes',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/get_dispute',\n $defs: {\n get_dispute: {\n type: 'object',\n properties: {\n amount: {\n type: 'string',\n description: 'The amount involved in the dispute, represented as a string to accommodate precision.'\n },\n business_id: {\n type: 'string',\n description: 'The unique identifier of the business involved in the dispute.'\n },\n created_at: {\n type: 'string',\n description: 'The timestamp of when the dispute was created, in UTC.',\n format: 'date-time'\n },\n currency: {\n type: 'string',\n description: 'The currency of the disputed amount, represented as an ISO 4217 currency code.'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n dispute_id: {\n type: 'string',\n description: 'The unique identifier of the dispute.'\n },\n dispute_stage: {\n $ref: '#/$defs/dispute_stage'\n },\n dispute_status: {\n $ref: '#/$defs/dispute_status'\n },\n payment_id: {\n type: 'string',\n description: 'The unique identifier of the payment associated with the dispute.'\n },\n reason: {\n type: 'string',\n description: 'Reason for the dispute'\n },\n remarks: {\n type: 'string',\n description: 'Remarks'\n }\n },\n required: [ 'amount',\n 'business_id',\n 'created_at',\n 'currency',\n 'customer',\n 'dispute_id',\n 'dispute_stage',\n 'dispute_status',\n 'payment_id'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n dispute_stage: {\n type: 'string',\n enum: [ 'pre_dispute',\n 'dispute',\n 'pre_arbitration'\n ]\n },\n dispute_status: {\n type: 'string',\n enum: [ 'dispute_opened',\n 'dispute_expired',\n 'dispute_accepted',\n 'dispute_cancelled',\n 'dispute_challenged',\n 'dispute_won',\n 'dispute_lost'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/get_dispute',\n $defs: {\n get_dispute: {\n type: 'object',\n properties: {\n amount: {\n type: 'string',\n description: 'The amount involved in the dispute, represented as a string to accommodate precision.'\n },\n business_id: {\n type: 'string',\n description: 'The unique identifier of the business involved in the dispute.'\n },\n created_at: {\n type: 'string',\n description: 'The timestamp of when the dispute was created, in UTC.',\n format: 'date-time'\n },\n currency: {\n type: 'string',\n description: 'The currency of the disputed amount, represented as an ISO 4217 currency code.'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n dispute_id: {\n type: 'string',\n description: 'The unique identifier of the dispute.'\n },\n dispute_stage: {\n $ref: '#/$defs/dispute_stage'\n },\n dispute_status: {\n $ref: '#/$defs/dispute_status'\n },\n payment_id: {\n type: 'string',\n description: 'The unique identifier of the payment associated with the dispute.'\n },\n reason: {\n type: 'string',\n description: 'Reason for the dispute'\n },\n remarks: {\n type: 'string',\n description: 'Remarks'\n }\n },\n required: [ 'amount',\n 'business_id',\n 'created_at',\n 'currency',\n 'customer',\n 'dispute_id',\n 'dispute_stage',\n 'dispute_status',\n 'payment_id'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata associated with the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n dispute_stage: {\n type: 'string',\n enum: [ 'pre_dispute',\n 'dispute',\n 'pre_arbitration'\n ]\n },\n dispute_status: {\n type: 'string',\n enum: [ 'dispute_opened',\n 'dispute_expired',\n 'dispute_accepted',\n 'dispute_cancelled',\n 'dispute_challenged',\n 'dispute_won',\n 'dispute_lost'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -17,6 +17,7 @@ import list_subscriptions from './subscriptions/list-subscriptions';
17
17
  import change_plan_subscriptions from './subscriptions/change-plan-subscriptions';
18
18
  import charge_subscriptions from './subscriptions/charge-subscriptions';
19
19
  import retrieve_usage_history_subscriptions from './subscriptions/retrieve-usage-history-subscriptions';
20
+ import update_payment_method_subscriptions from './subscriptions/update-payment-method-subscriptions';
20
21
  import retrieve_invoices_payments from './invoices/payments/retrieve-invoices-payments';
21
22
  import retrieve_refund_invoices_payments from './invoices/payments/retrieve-refund-invoices-payments';
22
23
  import activate_licenses from './licenses/activate-licenses';
@@ -32,6 +33,7 @@ import create_customers from './customers/create-customers';
32
33
  import retrieve_customers from './customers/retrieve-customers';
33
34
  import update_customers from './customers/update-customers';
34
35
  import list_customers from './customers/list-customers';
36
+ import retrieve_payment_methods_customers from './customers/retrieve-payment-methods-customers';
35
37
  import create_customers_customer_portal from './customers/customer-portal/create-customers-customer-portal';
36
38
  import list_customers_wallets from './customers/wallets/list-customers-wallets';
37
39
  import create_wallets_customers_ledger_entries from './customers/wallets/ledger-entries/create-wallets-customers-ledger-entries';
@@ -102,6 +104,7 @@ addEndpoint(list_subscriptions);
102
104
  addEndpoint(change_plan_subscriptions);
103
105
  addEndpoint(charge_subscriptions);
104
106
  addEndpoint(retrieve_usage_history_subscriptions);
107
+ addEndpoint(update_payment_method_subscriptions);
105
108
  addEndpoint(retrieve_invoices_payments);
106
109
  addEndpoint(retrieve_refund_invoices_payments);
107
110
  addEndpoint(activate_licenses);
@@ -117,6 +120,7 @@ addEndpoint(create_customers);
117
120
  addEndpoint(retrieve_customers);
118
121
  addEndpoint(update_customers);
119
122
  addEndpoint(list_customers);
123
+ addEndpoint(retrieve_payment_methods_customers);
120
124
  addEndpoint(create_customers_customer_portal);
121
125
  addEndpoint(list_customers_wallets);
122
126
  addEndpoint(create_wallets_customers_ledger_entries);
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'activate_licenses',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/license_activate_response',\n $defs: {\n license_activate_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'License key instance ID'\n },\n business_id: {\n type: 'string',\n description: 'Business ID'\n },\n created_at: {\n type: 'string',\n description: 'Creation timestamp',\n format: 'date-time'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n license_key_id: {\n type: 'string',\n description: 'Associated license key ID'\n },\n name: {\n type: 'string',\n description: 'Instance name'\n },\n product: {\n type: 'object',\n description: 'Related product info. Present if the license key is tied to a product.',\n properties: {\n product_id: {\n type: 'string',\n description: 'Unique identifier for the product.'\n },\n name: {\n type: 'string',\n description: 'Name of the product, if set by the merchant.'\n }\n },\n required: [ 'product_id'\n ]\n }\n },\n required: [ 'id',\n 'business_id',\n 'created_at',\n 'customer',\n 'license_key_id',\n 'name',\n 'product'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/license_activate_response',\n $defs: {\n license_activate_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'License key instance ID'\n },\n business_id: {\n type: 'string',\n description: 'Business ID'\n },\n created_at: {\n type: 'string',\n description: 'Creation timestamp',\n format: 'date-time'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n license_key_id: {\n type: 'string',\n description: 'Associated license key ID'\n },\n name: {\n type: 'string',\n description: 'Instance name'\n },\n product: {\n type: 'object',\n description: 'Related product info. Present if the license key is tied to a product.',\n properties: {\n product_id: {\n type: 'string',\n description: 'Unique identifier for the product.'\n },\n name: {\n type: 'string',\n description: 'Name of the product, if set by the merchant.'\n }\n },\n required: [ 'product_id'\n ]\n }\n },\n required: [ 'id',\n 'business_id',\n 'created_at',\n 'customer',\n 'license_key_id',\n 'name',\n 'product'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata associated with the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_payments',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment_list_response'\n }\n }\n },\n required: [ 'items'\n ],\n $defs: {\n payment_list_response: {\n type: 'object',\n properties: {\n brand_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n currency: {\n $ref: '#/$defs/currency'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n digital_products_delivered: {\n type: 'boolean'\n },\n metadata: {\n type: 'object',\n additionalProperties: true\n },\n payment_id: {\n type: 'string'\n },\n total_amount: {\n type: 'integer'\n },\n payment_method: {\n type: 'string'\n },\n payment_method_type: {\n type: 'string'\n },\n status: {\n $ref: '#/$defs/intent_status'\n },\n subscription_id: {\n type: 'string'\n }\n },\n required: [ 'brand_id',\n 'created_at',\n 'currency',\n 'customer',\n 'digital_products_delivered',\n 'metadata',\n 'payment_id',\n 'total_amount'\n ]\n },\n currency: {\n type: 'string',\n enum: [ 'AED',\n 'ALL',\n 'AMD',\n 'ANG',\n 'AOA',\n 'ARS',\n 'AUD',\n 'AWG',\n 'AZN',\n 'BAM',\n 'BBD',\n 'BDT',\n 'BGN',\n 'BHD',\n 'BIF',\n 'BMD',\n 'BND',\n 'BOB',\n 'BRL',\n 'BSD',\n 'BWP',\n 'BYN',\n 'BZD',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CUP',\n 'CVE',\n 'CZK',\n 'DJF',\n 'DKK',\n 'DOP',\n 'DZD',\n 'EGP',\n 'ETB',\n 'EUR',\n 'FJD',\n 'FKP',\n 'GBP',\n 'GEL',\n 'GHS',\n 'GIP',\n 'GMD',\n 'GNF',\n 'GTQ',\n 'GYD',\n 'HKD',\n 'HNL',\n 'HRK',\n 'HTG',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'IQD',\n 'JMD',\n 'JOD',\n 'JPY',\n 'KES',\n 'KGS',\n 'KHR',\n 'KMF',\n 'KRW',\n 'KWD',\n 'KYD',\n 'KZT',\n 'LAK',\n 'LBP',\n 'LKR',\n 'LRD',\n 'LSL',\n 'LYD',\n 'MAD',\n 'MDL',\n 'MGA',\n 'MKD',\n 'MMK',\n 'MNT',\n 'MOP',\n 'MRU',\n 'MUR',\n 'MVR',\n 'MWK',\n 'MXN',\n 'MYR',\n 'MZN',\n 'NAD',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NPR',\n 'NZD',\n 'OMR',\n 'PAB',\n 'PEN',\n 'PGK',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RSD',\n 'RUB',\n 'RWF',\n 'SAR',\n 'SBD',\n 'SCR',\n 'SEK',\n 'SGD',\n 'SHP',\n 'SLE',\n 'SLL',\n 'SOS',\n 'SRD',\n 'SSP',\n 'STN',\n 'SVC',\n 'SZL',\n 'THB',\n 'TND',\n 'TOP',\n 'TRY',\n 'TTD',\n 'TWD',\n 'TZS',\n 'UAH',\n 'UGX',\n 'USD',\n 'UYU',\n 'UZS',\n 'VES',\n 'VND',\n 'VUV',\n 'WST',\n 'XAF',\n 'XCD',\n 'XOF',\n 'XPF',\n 'YER',\n 'ZAR',\n 'ZMW'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n intent_status: {\n type: 'string',\n enum: [ 'succeeded',\n 'failed',\n 'cancelled',\n 'processing',\n 'requires_customer_action',\n 'requires_merchant_action',\n 'requires_payment_method',\n 'requires_confirmation',\n 'requires_capture',\n 'partially_captured',\n 'partially_captured_and_capturable'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment_list_response'\n }\n }\n },\n required: [ 'items'\n ],\n $defs: {\n payment_list_response: {\n type: 'object',\n properties: {\n brand_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n currency: {\n $ref: '#/$defs/currency'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n digital_products_delivered: {\n type: 'boolean'\n },\n metadata: {\n type: 'object',\n additionalProperties: true\n },\n payment_id: {\n type: 'string'\n },\n total_amount: {\n type: 'integer'\n },\n payment_method: {\n type: 'string'\n },\n payment_method_type: {\n type: 'string'\n },\n status: {\n $ref: '#/$defs/intent_status'\n },\n subscription_id: {\n type: 'string'\n }\n },\n required: [ 'brand_id',\n 'created_at',\n 'currency',\n 'customer',\n 'digital_products_delivered',\n 'metadata',\n 'payment_id',\n 'total_amount'\n ]\n },\n currency: {\n type: 'string',\n enum: [ 'AED',\n 'ALL',\n 'AMD',\n 'ANG',\n 'AOA',\n 'ARS',\n 'AUD',\n 'AWG',\n 'AZN',\n 'BAM',\n 'BBD',\n 'BDT',\n 'BGN',\n 'BHD',\n 'BIF',\n 'BMD',\n 'BND',\n 'BOB',\n 'BRL',\n 'BSD',\n 'BWP',\n 'BYN',\n 'BZD',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CUP',\n 'CVE',\n 'CZK',\n 'DJF',\n 'DKK',\n 'DOP',\n 'DZD',\n 'EGP',\n 'ETB',\n 'EUR',\n 'FJD',\n 'FKP',\n 'GBP',\n 'GEL',\n 'GHS',\n 'GIP',\n 'GMD',\n 'GNF',\n 'GTQ',\n 'GYD',\n 'HKD',\n 'HNL',\n 'HRK',\n 'HTG',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'IQD',\n 'JMD',\n 'JOD',\n 'JPY',\n 'KES',\n 'KGS',\n 'KHR',\n 'KMF',\n 'KRW',\n 'KWD',\n 'KYD',\n 'KZT',\n 'LAK',\n 'LBP',\n 'LKR',\n 'LRD',\n 'LSL',\n 'LYD',\n 'MAD',\n 'MDL',\n 'MGA',\n 'MKD',\n 'MMK',\n 'MNT',\n 'MOP',\n 'MRU',\n 'MUR',\n 'MVR',\n 'MWK',\n 'MXN',\n 'MYR',\n 'MZN',\n 'NAD',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NPR',\n 'NZD',\n 'OMR',\n 'PAB',\n 'PEN',\n 'PGK',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RSD',\n 'RUB',\n 'RWF',\n 'SAR',\n 'SBD',\n 'SCR',\n 'SEK',\n 'SGD',\n 'SHP',\n 'SLE',\n 'SLL',\n 'SOS',\n 'SRD',\n 'SSP',\n 'STN',\n 'SVC',\n 'SZL',\n 'THB',\n 'TND',\n 'TOP',\n 'TRY',\n 'TTD',\n 'TWD',\n 'TZS',\n 'UAH',\n 'UGX',\n 'USD',\n 'UYU',\n 'UZS',\n 'VES',\n 'VND',\n 'VUV',\n 'WST',\n 'XAF',\n 'XCD',\n 'XOF',\n 'XPF',\n 'YER',\n 'ZAR',\n 'ZMW'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata associated with the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n intent_status: {\n type: 'string',\n enum: [ 'succeeded',\n 'failed',\n 'cancelled',\n 'processing',\n 'requires_customer_action',\n 'requires_merchant_action',\n 'requires_payment_method',\n 'requires_confirmation',\n 'requires_capture',\n 'partially_captured',\n 'partially_captured_and_capturable'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -20,6 +20,10 @@ export const tool: Tool = {
20
20
  inputSchema: {
21
21
  type: 'object',
22
22
  properties: {
23
+ name: {
24
+ type: 'string',
25
+ description: 'Name of the product',
26
+ },
23
27
  price: {
24
28
  $ref: '#/$defs/price',
25
29
  },
@@ -76,12 +80,8 @@ export const tool: Tool = {
76
80
  description: 'Additional metadata for the product',
77
81
  additionalProperties: true,
78
82
  },
79
- name: {
80
- type: 'string',
81
- description: 'Optional name of the product',
82
- },
83
83
  },
84
- required: ['price', 'tax_category'],
84
+ required: ['name', 'price', 'tax_category'],
85
85
  $defs: {
86
86
  price: {
87
87
  anyOf: [
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'create_refunds',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/refund',\n $defs: {\n refund: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string',\n description: 'The unique identifier of the business issuing the refund.'\n },\n created_at: {\n type: 'string',\n description: 'The timestamp of when the refund was created in UTC.',\n format: 'date-time'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n is_partial: {\n type: 'boolean',\n description: 'If true the refund is a partial refund'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata stored with the refund.',\n additionalProperties: true\n },\n payment_id: {\n type: 'string',\n description: 'The unique identifier of the payment associated with the refund.'\n },\n refund_id: {\n type: 'string',\n description: 'The unique identifier of the refund.'\n },\n status: {\n $ref: '#/$defs/refund_status'\n },\n amount: {\n type: 'integer',\n description: 'The refunded amount.'\n },\n currency: {\n $ref: '#/$defs/currency'\n },\n reason: {\n type: 'string',\n description: 'The reason provided for the refund, if any. Optional.'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer',\n 'is_partial',\n 'metadata',\n 'payment_id',\n 'refund_id',\n 'status'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n refund_status: {\n type: 'string',\n enum: [ 'succeeded',\n 'failed',\n 'pending',\n 'review'\n ]\n },\n currency: {\n type: 'string',\n enum: [ 'AED',\n 'ALL',\n 'AMD',\n 'ANG',\n 'AOA',\n 'ARS',\n 'AUD',\n 'AWG',\n 'AZN',\n 'BAM',\n 'BBD',\n 'BDT',\n 'BGN',\n 'BHD',\n 'BIF',\n 'BMD',\n 'BND',\n 'BOB',\n 'BRL',\n 'BSD',\n 'BWP',\n 'BYN',\n 'BZD',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CUP',\n 'CVE',\n 'CZK',\n 'DJF',\n 'DKK',\n 'DOP',\n 'DZD',\n 'EGP',\n 'ETB',\n 'EUR',\n 'FJD',\n 'FKP',\n 'GBP',\n 'GEL',\n 'GHS',\n 'GIP',\n 'GMD',\n 'GNF',\n 'GTQ',\n 'GYD',\n 'HKD',\n 'HNL',\n 'HRK',\n 'HTG',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'IQD',\n 'JMD',\n 'JOD',\n 'JPY',\n 'KES',\n 'KGS',\n 'KHR',\n 'KMF',\n 'KRW',\n 'KWD',\n 'KYD',\n 'KZT',\n 'LAK',\n 'LBP',\n 'LKR',\n 'LRD',\n 'LSL',\n 'LYD',\n 'MAD',\n 'MDL',\n 'MGA',\n 'MKD',\n 'MMK',\n 'MNT',\n 'MOP',\n 'MRU',\n 'MUR',\n 'MVR',\n 'MWK',\n 'MXN',\n 'MYR',\n 'MZN',\n 'NAD',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NPR',\n 'NZD',\n 'OMR',\n 'PAB',\n 'PEN',\n 'PGK',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RSD',\n 'RUB',\n 'RWF',\n 'SAR',\n 'SBD',\n 'SCR',\n 'SEK',\n 'SGD',\n 'SHP',\n 'SLE',\n 'SLL',\n 'SOS',\n 'SRD',\n 'SSP',\n 'STN',\n 'SVC',\n 'SZL',\n 'THB',\n 'TND',\n 'TOP',\n 'TRY',\n 'TTD',\n 'TWD',\n 'TZS',\n 'UAH',\n 'UGX',\n 'USD',\n 'UYU',\n 'UZS',\n 'VES',\n 'VND',\n 'VUV',\n 'WST',\n 'XAF',\n 'XCD',\n 'XOF',\n 'XPF',\n 'YER',\n 'ZAR',\n 'ZMW'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/refund',\n $defs: {\n refund: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string',\n description: 'The unique identifier of the business issuing the refund.'\n },\n created_at: {\n type: 'string',\n description: 'The timestamp of when the refund was created in UTC.',\n format: 'date-time'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n is_partial: {\n type: 'boolean',\n description: 'If true the refund is a partial refund'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata stored with the refund.',\n additionalProperties: true\n },\n payment_id: {\n type: 'string',\n description: 'The unique identifier of the payment associated with the refund.'\n },\n refund_id: {\n type: 'string',\n description: 'The unique identifier of the refund.'\n },\n status: {\n $ref: '#/$defs/refund_status'\n },\n amount: {\n type: 'integer',\n description: 'The refunded amount.'\n },\n currency: {\n $ref: '#/$defs/currency'\n },\n reason: {\n type: 'string',\n description: 'The reason provided for the refund, if any. Optional.'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer',\n 'is_partial',\n 'metadata',\n 'payment_id',\n 'refund_id',\n 'status'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata associated with the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n refund_status: {\n type: 'string',\n enum: [ 'succeeded',\n 'failed',\n 'pending',\n 'review'\n ]\n },\n currency: {\n type: 'string',\n enum: [ 'AED',\n 'ALL',\n 'AMD',\n 'ANG',\n 'AOA',\n 'ARS',\n 'AUD',\n 'AWG',\n 'AZN',\n 'BAM',\n 'BBD',\n 'BDT',\n 'BGN',\n 'BHD',\n 'BIF',\n 'BMD',\n 'BND',\n 'BOB',\n 'BRL',\n 'BSD',\n 'BWP',\n 'BYN',\n 'BZD',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CUP',\n 'CVE',\n 'CZK',\n 'DJF',\n 'DKK',\n 'DOP',\n 'DZD',\n 'EGP',\n 'ETB',\n 'EUR',\n 'FJD',\n 'FKP',\n 'GBP',\n 'GEL',\n 'GHS',\n 'GIP',\n 'GMD',\n 'GNF',\n 'GTQ',\n 'GYD',\n 'HKD',\n 'HNL',\n 'HRK',\n 'HTG',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'IQD',\n 'JMD',\n 'JOD',\n 'JPY',\n 'KES',\n 'KGS',\n 'KHR',\n 'KMF',\n 'KRW',\n 'KWD',\n 'KYD',\n 'KZT',\n 'LAK',\n 'LBP',\n 'LKR',\n 'LRD',\n 'LSL',\n 'LYD',\n 'MAD',\n 'MDL',\n 'MGA',\n 'MKD',\n 'MMK',\n 'MNT',\n 'MOP',\n 'MRU',\n 'MUR',\n 'MVR',\n 'MWK',\n 'MXN',\n 'MYR',\n 'MZN',\n 'NAD',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NPR',\n 'NZD',\n 'OMR',\n 'PAB',\n 'PEN',\n 'PGK',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RSD',\n 'RUB',\n 'RWF',\n 'SAR',\n 'SBD',\n 'SCR',\n 'SEK',\n 'SGD',\n 'SHP',\n 'SLE',\n 'SLL',\n 'SOS',\n 'SRD',\n 'SSP',\n 'STN',\n 'SVC',\n 'SZL',\n 'THB',\n 'TND',\n 'TOP',\n 'TRY',\n 'TTD',\n 'TWD',\n 'TZS',\n 'UAH',\n 'UGX',\n 'USD',\n 'UYU',\n 'UZS',\n 'VES',\n 'VND',\n 'VUV',\n 'WST',\n 'XAF',\n 'XCD',\n 'XOF',\n 'XPF',\n 'YER',\n 'ZAR',\n 'ZMW'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'retrieve_refunds',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/refund',\n $defs: {\n refund: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string',\n description: 'The unique identifier of the business issuing the refund.'\n },\n created_at: {\n type: 'string',\n description: 'The timestamp of when the refund was created in UTC.',\n format: 'date-time'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n is_partial: {\n type: 'boolean',\n description: 'If true the refund is a partial refund'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata stored with the refund.',\n additionalProperties: true\n },\n payment_id: {\n type: 'string',\n description: 'The unique identifier of the payment associated with the refund.'\n },\n refund_id: {\n type: 'string',\n description: 'The unique identifier of the refund.'\n },\n status: {\n $ref: '#/$defs/refund_status'\n },\n amount: {\n type: 'integer',\n description: 'The refunded amount.'\n },\n currency: {\n $ref: '#/$defs/currency'\n },\n reason: {\n type: 'string',\n description: 'The reason provided for the refund, if any. Optional.'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer',\n 'is_partial',\n 'metadata',\n 'payment_id',\n 'refund_id',\n 'status'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n refund_status: {\n type: 'string',\n enum: [ 'succeeded',\n 'failed',\n 'pending',\n 'review'\n ]\n },\n currency: {\n type: 'string',\n enum: [ 'AED',\n 'ALL',\n 'AMD',\n 'ANG',\n 'AOA',\n 'ARS',\n 'AUD',\n 'AWG',\n 'AZN',\n 'BAM',\n 'BBD',\n 'BDT',\n 'BGN',\n 'BHD',\n 'BIF',\n 'BMD',\n 'BND',\n 'BOB',\n 'BRL',\n 'BSD',\n 'BWP',\n 'BYN',\n 'BZD',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CUP',\n 'CVE',\n 'CZK',\n 'DJF',\n 'DKK',\n 'DOP',\n 'DZD',\n 'EGP',\n 'ETB',\n 'EUR',\n 'FJD',\n 'FKP',\n 'GBP',\n 'GEL',\n 'GHS',\n 'GIP',\n 'GMD',\n 'GNF',\n 'GTQ',\n 'GYD',\n 'HKD',\n 'HNL',\n 'HRK',\n 'HTG',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'IQD',\n 'JMD',\n 'JOD',\n 'JPY',\n 'KES',\n 'KGS',\n 'KHR',\n 'KMF',\n 'KRW',\n 'KWD',\n 'KYD',\n 'KZT',\n 'LAK',\n 'LBP',\n 'LKR',\n 'LRD',\n 'LSL',\n 'LYD',\n 'MAD',\n 'MDL',\n 'MGA',\n 'MKD',\n 'MMK',\n 'MNT',\n 'MOP',\n 'MRU',\n 'MUR',\n 'MVR',\n 'MWK',\n 'MXN',\n 'MYR',\n 'MZN',\n 'NAD',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NPR',\n 'NZD',\n 'OMR',\n 'PAB',\n 'PEN',\n 'PGK',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RSD',\n 'RUB',\n 'RWF',\n 'SAR',\n 'SBD',\n 'SCR',\n 'SEK',\n 'SGD',\n 'SHP',\n 'SLE',\n 'SLL',\n 'SOS',\n 'SRD',\n 'SSP',\n 'STN',\n 'SVC',\n 'SZL',\n 'THB',\n 'TND',\n 'TOP',\n 'TRY',\n 'TTD',\n 'TWD',\n 'TZS',\n 'UAH',\n 'UGX',\n 'USD',\n 'UYU',\n 'UZS',\n 'VES',\n 'VND',\n 'VUV',\n 'WST',\n 'XAF',\n 'XCD',\n 'XOF',\n 'XPF',\n 'YER',\n 'ZAR',\n 'ZMW'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/refund',\n $defs: {\n refund: {\n type: 'object',\n properties: {\n business_id: {\n type: 'string',\n description: 'The unique identifier of the business issuing the refund.'\n },\n created_at: {\n type: 'string',\n description: 'The timestamp of when the refund was created in UTC.',\n format: 'date-time'\n },\n customer: {\n $ref: '#/$defs/customer_limited_details'\n },\n is_partial: {\n type: 'boolean',\n description: 'If true the refund is a partial refund'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata stored with the refund.',\n additionalProperties: true\n },\n payment_id: {\n type: 'string',\n description: 'The unique identifier of the payment associated with the refund.'\n },\n refund_id: {\n type: 'string',\n description: 'The unique identifier of the refund.'\n },\n status: {\n $ref: '#/$defs/refund_status'\n },\n amount: {\n type: 'integer',\n description: 'The refunded amount.'\n },\n currency: {\n $ref: '#/$defs/currency'\n },\n reason: {\n type: 'string',\n description: 'The reason provided for the refund, if any. Optional.'\n }\n },\n required: [ 'business_id',\n 'created_at',\n 'customer',\n 'is_partial',\n 'metadata',\n 'payment_id',\n 'refund_id',\n 'status'\n ]\n },\n customer_limited_details: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string',\n description: 'Unique identifier for the customer'\n },\n email: {\n type: 'string',\n description: 'Email address of the customer'\n },\n name: {\n type: 'string',\n description: 'Full name of the customer'\n },\n metadata: {\n type: 'object',\n description: 'Additional metadata associated with the customer',\n additionalProperties: true\n },\n phone_number: {\n type: 'string',\n description: 'Phone number of the customer'\n }\n },\n required: [ 'customer_id',\n 'email',\n 'name'\n ]\n },\n refund_status: {\n type: 'string',\n enum: [ 'succeeded',\n 'failed',\n 'pending',\n 'review'\n ]\n },\n currency: {\n type: 'string',\n enum: [ 'AED',\n 'ALL',\n 'AMD',\n 'ANG',\n 'AOA',\n 'ARS',\n 'AUD',\n 'AWG',\n 'AZN',\n 'BAM',\n 'BBD',\n 'BDT',\n 'BGN',\n 'BHD',\n 'BIF',\n 'BMD',\n 'BND',\n 'BOB',\n 'BRL',\n 'BSD',\n 'BWP',\n 'BYN',\n 'BZD',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CUP',\n 'CVE',\n 'CZK',\n 'DJF',\n 'DKK',\n 'DOP',\n 'DZD',\n 'EGP',\n 'ETB',\n 'EUR',\n 'FJD',\n 'FKP',\n 'GBP',\n 'GEL',\n 'GHS',\n 'GIP',\n 'GMD',\n 'GNF',\n 'GTQ',\n 'GYD',\n 'HKD',\n 'HNL',\n 'HRK',\n 'HTG',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'IQD',\n 'JMD',\n 'JOD',\n 'JPY',\n 'KES',\n 'KGS',\n 'KHR',\n 'KMF',\n 'KRW',\n 'KWD',\n 'KYD',\n 'KZT',\n 'LAK',\n 'LBP',\n 'LKR',\n 'LRD',\n 'LSL',\n 'LYD',\n 'MAD',\n 'MDL',\n 'MGA',\n 'MKD',\n 'MMK',\n 'MNT',\n 'MOP',\n 'MRU',\n 'MUR',\n 'MVR',\n 'MWK',\n 'MXN',\n 'MYR',\n 'MZN',\n 'NAD',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NPR',\n 'NZD',\n 'OMR',\n 'PAB',\n 'PEN',\n 'PGK',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RSD',\n 'RUB',\n 'RWF',\n 'SAR',\n 'SBD',\n 'SCR',\n 'SEK',\n 'SGD',\n 'SHP',\n 'SLE',\n 'SLL',\n 'SOS',\n 'SRD',\n 'SSP',\n 'STN',\n 'SVC',\n 'SZL',\n 'THB',\n 'TND',\n 'TOP',\n 'TRY',\n 'TTD',\n 'TWD',\n 'TZS',\n 'UAH',\n 'UGX',\n 'USD',\n 'UYU',\n 'UZS',\n 'VES',\n 'VND',\n 'VUV',\n 'WST',\n 'XAF',\n 'XCD',\n 'XOF',\n 'XPF',\n 'YER',\n 'ZAR',\n 'ZMW'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {