-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(oas): declare x-codegen on Store routes #3074
Changes from 4 commits
5523222
98a7fa6
b307b92
1b5badd
afe7924
be0f3f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -4,6 +4,8 @@ | |||
* summary: "Customer Log out" | ||||
* description: "Destroys a Customer's authenticated session." | ||||
* x-authenticated: true | ||||
* x-codegen: | ||||
* method: deleteSession | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
* x-codeSamples: | ||||
* - lang: Shell | ||||
* label: cURL | ||||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -13,6 +13,8 @@ import CustomerService from "../../../../services/customer" | |||
* format: email | ||||
* required: true | ||||
* description: The email to check if exists. | ||||
* x-codegen: | ||||
* method: exists | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
* x-codeSamples: | ||||
* - lang: JavaScript | ||||
* label: JS Client | ||||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -6,6 +6,8 @@ import CustomerService from "../../../../services/customer" | |||
* summary: "Get Current Customer" | ||||
* description: "Gets the currently logged in Customer." | ||||
* x-authenticated: true | ||||
* x-codegen: | ||||
* method: getSession | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
* x-codeSamples: | ||||
* - lang: JavaScript | ||||
* label: JS Client | ||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,8 +12,13 @@ import { validator } from "../../../../utils/validator" | |||||||||||
* summary: "Add a Shipping Method" | ||||||||||||
* parameters: | ||||||||||||
* - (path) id=* {string} The cart ID. | ||||||||||||
* - (body) option_id=* {string} ID of the shipping option to create the method from | ||||||||||||
* - (body) data {Object} Used to hold any data that the shipping method may need to process the fulfillment of the order. Look at the documentation for your installed fulfillment providers to find out what to send. | ||||||||||||
* requestBody: | ||||||||||||
* content: | ||||||||||||
* application/json: | ||||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/StorePostCartsCartShippingMethodReq" | ||||||||||||
* x-codegen: | ||||||||||||
* method: addShippingMethod | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 24 to 28 in 5523222
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
@@ -91,6 +96,19 @@ export default async (req, res) => { | |||||||||||
res.status(200).json({ cart: data }) | ||||||||||||
} | ||||||||||||
|
||||||||||||
/** | ||||||||||||
* @schema StorePostCartsCartShippingMethodReq | ||||||||||||
* type: object | ||||||||||||
* required: | ||||||||||||
* - option_id | ||||||||||||
* properties: | ||||||||||||
* option_id: | ||||||||||||
* type: string | ||||||||||||
* description: ID of the shipping option to create the method from | ||||||||||||
* data: | ||||||||||||
* type: object | ||||||||||||
* description: Used to hold any data that the shipping method may need to process the fulfillment of the order. Look at the documentation for your installed fulfillment providers to find out what to send. | ||||||||||||
*/ | ||||||||||||
export class StorePostCartsCartShippingMethodReq { | ||||||||||||
@IsString() | ||||||||||||
option_id: string | ||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ import { IdempotencyKey } from "../../../../models/idempotency-key" | |
* this may involve making 3rd party API calls to a Tax Provider service." | ||
* parameters: | ||
* - (path) id=* {String} The Cart ID. | ||
* x-codegen: | ||
* method: calculateTaxes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could not find an equivalent in JS client. |
||
* x-codeSamples: | ||
* - lang: Shell | ||
* label: cURL | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,6 +15,8 @@ import { IdempotencyKeyService } from "../../../../services" | |||||||||
* will generate one for the request." | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {String} The Cart id. | ||||||||||
* x-codegen: | ||||||||||
* method: complete | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 43 to 46 in 5523222
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -37,6 +37,8 @@ import PublishableAPIKeysFeatureFlag from "../../../../loaders/feature-flags/pub | |||||||||
* application/json: | ||||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/StorePostCartReq" | ||||||||||
* x-codegen: | ||||||||||
* method: create | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 58 to 61 in 5523222
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -20,9 +20,13 @@ import { | |||||||||||||||
* to the Cart" | ||||||||||||||||
* parameters: | ||||||||||||||||
* - (path) id=* {string} The id of the Cart to add the Line Item to. | ||||||||||||||||
* - (body) variant_id=* {string} The id of the Product Variant to generate the Line Item from. | ||||||||||||||||
* - (body) quantity=* {integer} The quantity of the Product Variant to add to the Line Item. | ||||||||||||||||
* - (body) metadata {object} An optional key-value map with additional details about the Line Item. | ||||||||||||||||
* requestBody: | ||||||||||||||||
* content: | ||||||||||||||||
* application/json: | ||||||||||||||||
* schema: | ||||||||||||||||
* $ref: "#/components/schemas/StorePostCartsCartLineItemsReq" | ||||||||||||||||
* x-codegen: | ||||||||||||||||
* method: createLineItem | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will introduce a breaking change with the current JS client. medusa/packages/medusa-js/src/resources/line-items.ts Lines 17 to 23 in 5523222
|
||||||||||||||||
* x-codeSamples: | ||||||||||||||||
* - lang: JavaScript | ||||||||||||||||
* label: JS Client | ||||||||||||||||
|
@@ -129,6 +133,23 @@ export default async (req, res) => { | |||||||||||||||
res.status(idempotencyKey.response_code).json(idempotencyKey.response_body) | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
/** | ||||||||||||||||
* @schema StorePostCartsCartLineItemsReq | ||||||||||||||||
* type: object | ||||||||||||||||
* required: | ||||||||||||||||
* - variant_id | ||||||||||||||||
* - quantity | ||||||||||||||||
* properties: | ||||||||||||||||
* variant_id: | ||||||||||||||||
* type: string | ||||||||||||||||
* description: The id of the Product Variant to generate the Line Item from. | ||||||||||||||||
* quantity: | ||||||||||||||||
* type: number | ||||||||||||||||
* description: The quantity of the Product Variant to add to the Line Item. | ||||||||||||||||
* metadata: | ||||||||||||||||
* type: object | ||||||||||||||||
* description: An optional key-value map with additional details about the Line Item. | ||||||||||||||||
*/ | ||||||||||||||||
export class StorePostCartsCartLineItemsReq { | ||||||||||||||||
@IsString() | ||||||||||||||||
variant_id: string | ||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -10,6 +10,8 @@ import IdempotencyKeyService from "../../../../services/idempotency-key" | |||||||||
* description: "Creates Payment Sessions for each of the available Payment Providers in the Cart's Region." | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||
* x-codegen: | ||||||||||
* method: createPaymentSessions | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 74 to 77 in 5523222
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -10,6 +10,8 @@ import { CartService } from "../../../../services" | |||||||||||
* parameters: | ||||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||||
* - (path) code=* {string} The unique Discount code. | ||||||||||||
* x-codegen: | ||||||||||||
* method: deleteDiscount | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 89 to 93 in 5523222
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -10,6 +10,8 @@ import { CartService } from "../../../../services" | |||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||
* - (path) line_id=* {string} The id of the Line Item. | ||||||||||
* x-codegen: | ||||||||||
* method: deleteLineItem | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change medusa/packages/medusa-js/src/resources/line-items.ts Lines 50 to 53 in 5523222
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -10,6 +10,8 @@ import { EntityManager } from "typeorm" | |||||||||||
* parameters: | ||||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||||
* - (path) provider_id=* {string} The id of the Payment Provider used to create the Payment Session to be deleted. | ||||||||||||
* x-codegen: | ||||||||||||
* method: deletePaymentSession | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 106 to 110 in 5523222
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -7,6 +7,8 @@ import { CartService } from "../../../../services" | |||||||||
* description: "Retrieves a Cart." | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||
* x-codegen: | ||||||||||
* method: retrieve | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 137 to 140 in 5523222
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,6 +9,8 @@ import { EntityManager } from "typeorm" | |||||||||||
* parameters: | ||||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||||
* - (path) provider_id=* {string} The id of the Payment Provider that created the Payment Session to be refreshed. | ||||||||||||
* x-codegen: | ||||||||||||
* method: refreshPaymentSession | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 122 to 126 in 5523222
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -13,6 +13,13 @@ import { validator } from "../../../../utils/validator" | |||||||||||
* parameters: | ||||||||||||
* - (path) id=* {string} The ID of the Cart. | ||||||||||||
* - (body) provider_id=* {string} The ID of the Payment Provider. | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be removed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! Fixed in afe7924 |
||||||||||||
* requestBody: | ||||||||||||
* content: | ||||||||||||
* application/json: | ||||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/StorePostCartsCartPaymentSessionReq" | ||||||||||||
* x-codegen: | ||||||||||||
* method: setPaymentSession | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 152 to 156 in 5523222
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
@@ -78,6 +85,16 @@ export default async (req, res) => { | |||||||||||
res.status(200).json({ cart: data }) | ||||||||||||
} | ||||||||||||
|
||||||||||||
/** | ||||||||||||
* @schema StorePostCartsCartPaymentSessionReq | ||||||||||||
* type: object | ||||||||||||
* required: | ||||||||||||
* - provider_id | ||||||||||||
* properties: | ||||||||||||
* provider_id: | ||||||||||||
* type: string | ||||||||||||
* description: The ID of the Payment Provider. | ||||||||||||
*/ | ||||||||||||
export class StorePostCartsCartPaymentSessionReq { | ||||||||||||
@IsString() | ||||||||||||
provider_id: string | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -27,6 +27,8 @@ import { IsType } from "../../../../utils/validators/is-type" | |||||||||||
* application/json: | ||||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/StorePostCartsCartReq" | ||||||||||||
* x-codegen: | ||||||||||||
* method: update | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 168 to 172 in 5523222
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -13,7 +13,13 @@ import { validator } from "../../../../utils/validator" | |||||||||||||||||
* parameters: | ||||||||||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||||||||||
* - (path) line_id=* {string} The id of the Line Item. | ||||||||||||||||||
* - (body) quantity=* {integer} The quantity to set the Line Item to. | ||||||||||||||||||
* requestBody: | ||||||||||||||||||
* content: | ||||||||||||||||||
* application/json: | ||||||||||||||||||
* schema: | ||||||||||||||||||
* $ref: "#/components/schemas/StorePostCartsCartLineItemsItemReq" | ||||||||||||||||||
* x-codegen: | ||||||||||||||||||
* method: updateLineItem | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change medusa/packages/medusa-js/src/resources/line-items.ts Lines 34 to 41 in 5523222
|
||||||||||||||||||
* x-codeSamples: | ||||||||||||||||||
* - lang: JavaScript | ||||||||||||||||||
* label: JS Client | ||||||||||||||||||
|
@@ -112,6 +118,16 @@ export default async (req, res) => { | |||||||||||||||||
res.status(200).json({ cart: data }) | ||||||||||||||||||
} | ||||||||||||||||||
|
||||||||||||||||||
/** | ||||||||||||||||||
* @schema StorePostCartsCartLineItemsItemReq | ||||||||||||||||||
* type: object | ||||||||||||||||||
* required: | ||||||||||||||||||
* - quantity | ||||||||||||||||||
* properties: | ||||||||||||||||||
* quantity: | ||||||||||||||||||
* type: number | ||||||||||||||||||
* description: The quantity to set the Line Item to. | ||||||||||||||||||
*/ | ||||||||||||||||||
export class StorePostCartsCartLineItemsItemReq { | ||||||||||||||||||
@IsInt() | ||||||||||||||||||
quantity: number | ||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,7 +12,13 @@ import { EntityManager } from "typeorm" | |||||||||||||
* parameters: | ||||||||||||||
* - (path) id=* {string} The id of the Cart. | ||||||||||||||
* - (path) provider_id=* {string} The id of the payment provider. | ||||||||||||||
* - (body) data=* {object} The data to update the payment session with. | ||||||||||||||
* requestBody: | ||||||||||||||
* content: | ||||||||||||||
* application/json: | ||||||||||||||
* schema: | ||||||||||||||
* $ref: "#/components/schemas/StorePostCartsCartPaymentSessionUpdateReq" | ||||||||||||||
* x-codegen: | ||||||||||||||
* method: updatePaymentSession | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/carts.ts Lines 185 to 190 in 5523222
|
||||||||||||||
* x-codeSamples: | ||||||||||||||
* - lang: JavaScript | ||||||||||||||
* label: JS Client | ||||||||||||||
|
@@ -83,6 +89,16 @@ export default async (req, res) => { | |||||||||||||
res.status(200).json({ cart: data }) | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
/** | ||||||||||||||
* @schema StorePostCartsCartPaymentSessionUpdateReq | ||||||||||||||
* type: object | ||||||||||||||
* required: | ||||||||||||||
* - data | ||||||||||||||
* properties: | ||||||||||||||
* data: | ||||||||||||||
* type: object | ||||||||||||||
* description: The data to update the payment session with. | ||||||||||||||
*/ | ||||||||||||||
export class StorePostCartsCartPaymentSessionUpdateReq { | ||||||||||||||
@IsObject() | ||||||||||||||
data: Record<string, unknown> | ||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -7,6 +7,8 @@ import ProductCollectionService from "../../../../services/product-collection" | |||
* description: "Retrieves a Product Collection." | ||||
* parameters: | ||||
* - (path) id=* {string} The id of the Product Collection | ||||
* x-codegen: | ||||
* method: retrieve | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
* x-codeSamples: | ||||
* - lang: JavaScript | ||||
* label: JS Client | ||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -56,6 +56,9 @@ import { Type } from "class-transformer" | |||||||
* type: string | ||||||||
* description: filter by dates greater than or equal to this date | ||||||||
* format: date | ||||||||
* x-codegen: | ||||||||
* method: list | ||||||||
* queryParams: StoreGetCollectionsParams | ||||||||
Comment on lines
+60
to
+61
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/collections.ts Lines 28 to 30 in 5523222
|
||||||||
* x-codeSamples: | ||||||||
* - lang: JavaScript | ||||||||
* label: JS Client | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -17,6 +17,8 @@ import { validator } from "../../../../utils/validator" | |||||||||
* application/json: | ||||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/StorePostCustomersCustomerAddressesReq" | ||||||||||
* x-codegen: | ||||||||||
* method: addAddress | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change. customers.addAddress instead of customers.addresses.addAddress medusa/packages/medusa-js/src/resources/addresses.ts Lines 16 to 19 in 5523222
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -17,6 +17,8 @@ import { validator } from "../../../../utils/validator" | |||||||||
* application/json: | ||||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/StorePostCustomersReq" | ||||||||||
* x-codegen: | ||||||||||
* method: create | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/customers.ts Lines 26 to 29 in 5523222
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -11,6 +11,8 @@ import CustomerService from "../../../../services/customer" | |||||||||||||||
* x-authenticated: true | ||||||||||||||||
* parameters: | ||||||||||||||||
* - (path) address_id=* {string} The id of the Address to remove. | ||||||||||||||||
* x-codegen: | ||||||||||||||||
* method: deleteAddress | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change medusa/packages/medusa-js/src/resources/addresses.ts Lines 30 to 36 in 5523222
|
||||||||||||||||
* x-codeSamples: | ||||||||||||||||
* - lang: JavaScript | ||||||||||||||||
* label: JS Client | ||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -7,6 +7,8 @@ import CustomerService from "../../../../services/customer" | |||||||
* summary: Get a Customer | ||||||||
* description: "Retrieves a Customer - the Customer must be logged in to retrieve their details." | ||||||||
* x-authenticated: true | ||||||||
* x-codegen: | ||||||||
* method: retrieve | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/customers.ts Lines 39 to 41 in 5523222
|
||||||||
* x-codeSamples: | ||||||||
* - lang: JavaScript | ||||||||
* label: JS Client | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,6 +9,8 @@ import { PaymentProvider } from "../../../../models" | |||||||||||||
* summary: Get Payment Methods | ||||||||||||||
* description: "Retrieves a list of a Customer's saved payment methods. Payment methods are saved with Payment Providers and it is their responsibility to fetch saved methods." | ||||||||||||||
* x-authenticated: true | ||||||||||||||
* x-codegen: | ||||||||||||||
* method: listPaymentMethods | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change medusa/packages/medusa-js/src/resources/payment-methods.ts Lines 12 to 17 in 5523222
|
||||||||||||||
* x-codeSamples: | ||||||||||||||
* - lang: JavaScript | ||||||||||||||
* label: JS Client | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
medusa/packages/medusa-js/src/resources/auth.ts
Line 16 in 5523222