Skip to content

Commit f3c5d9e

Browse files
committed
Actually there is already a type for carrier code
1 parent 3bf5a62 commit f3c5d9e

1 file changed

Lines changed: 21 additions & 8 deletions

File tree

openapi.yaml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4811,11 +4811,14 @@ components:
48114811
- $ref: '#/components/schemas/se_id'
48124812
description: A string that uniquely identifies the carrier.
48134813
carrier_code:
4814-
type: string
48154814
readOnly: true
4816-
minLength: 1
4817-
example: stamps_com
4818-
description: A string that uniquely identifies the carrier.
4815+
allOf:
4816+
- $ref: '#/components/schemas/carrier_code'
4817+
description: >
4818+
The [shipping
4819+
carrier](https://www.shipengine.com/docs/carriers/setup/) who
4820+
will ship the package, such as `fedex`, `dhl_express`,
4821+
`stamps_com`, etc.
48194822
account_number:
48204823
type: string
48214824
readOnly: true
@@ -4895,8 +4898,14 @@ components:
48954898
- $ref: '#/components/schemas/se_id'
48964899
description: A string that uniquely identifies the carrier
48974900
carrier_code:
4901+
readOnly: true
48984902
allOf:
4899-
- $ref: '#/components/schemas/se_id'
4903+
- $ref: '#/components/schemas/carrier_code'
4904+
description: >
4905+
The [shipping
4906+
carrier](https://www.shipengine.com/docs/carriers/setup/) who
4907+
will ship the package, such as `fedex`, `dhl_express`,
4908+
`stamps_com`, etc.
49004909
service_code:
49014910
type: string
49024911
minLength: 1
@@ -9110,10 +9119,14 @@ components:
91109119
readOnly: true
91119120
description: Indicates if rate is trackable
91129121
carrier_code:
9113-
type: string
91149122
readOnly: true
9115-
minLength: 1
9116-
description: carrier code
9123+
allOf:
9124+
- $ref: '#/components/schemas/carrier_code'
9125+
description: >
9126+
The [shipping
9127+
carrier](https://www.shipengine.com/docs/carriers/setup/) who
9128+
will ship the package, such as `fedex`, `dhl_express`,
9129+
`stamps_com`, etc.
91179130
carrier_nickname:
91189131
type: string
91199132
readOnly: true

0 commit comments

Comments
 (0)