fix: updates documentation and fixes script blockers (#765)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
BeforeInsert, Column,
|
||||
BeforeInsert,
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
DeleteDateColumn,
|
||||
Entity,
|
||||
@@ -8,16 +9,15 @@ import {
|
||||
ManyToOne,
|
||||
PrimaryColumn,
|
||||
Unique,
|
||||
UpdateDateColumn
|
||||
} from "typeorm";
|
||||
import { ulid } from "ulid";
|
||||
import { DbAwareColumn, resolveDbType } from "../utils/db-aware-column";
|
||||
import { Cart } from './cart';
|
||||
import { ShippingOption } from "./shipping-option";
|
||||
|
||||
UpdateDateColumn,
|
||||
} from "typeorm"
|
||||
import { ulid } from "ulid"
|
||||
import { DbAwareColumn, resolveDbType } from "../utils/db-aware-column"
|
||||
import { Cart } from "./cart"
|
||||
import { ShippingOption } from "./shipping-option"
|
||||
|
||||
@Entity()
|
||||
@Unique(['shipping_option_id', 'cart_id'])
|
||||
@Unique(["shipping_option_id", "cart_id"])
|
||||
export class CustomShippingOption {
|
||||
@PrimaryColumn()
|
||||
id: string
|
||||
@@ -27,8 +27,8 @@ export class CustomShippingOption {
|
||||
|
||||
@Index()
|
||||
@Column()
|
||||
shipping_option_id: string;
|
||||
|
||||
shipping_option_id: string
|
||||
|
||||
@ManyToOne(() => ShippingOption)
|
||||
@JoinColumn({ name: "shipping_option_id" })
|
||||
shipping_option: ShippingOption
|
||||
@@ -62,7 +62,7 @@ export class CustomShippingOption {
|
||||
}
|
||||
|
||||
/**
|
||||
* @schema Custom shipping_option
|
||||
* @schema custom_shipping_option
|
||||
* title: "Custom Shipping Option"
|
||||
* description: "Custom Shipping Options are 'overriden' Shipping Options. Store managers can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option"
|
||||
* x-resourceId: custom_shipping_option
|
||||
|
||||
@@ -77,7 +77,8 @@ export class Note {
|
||||
* type: string
|
||||
* author:
|
||||
* description: "The author of the note."
|
||||
* type: User
|
||||
* anyOf:
|
||||
* - $ref: "#/components/schemas/user"
|
||||
* created_at:
|
||||
* description: "The date with timezone at which the resource was created."
|
||||
* type: string
|
||||
|
||||
Reference in New Issue
Block a user