diff --git a/openapi/specs/v0.yaml b/openapi/specs/v0.yaml index 772ee8c5..a08088eb 100644 --- a/openapi/specs/v0.yaml +++ b/openapi/specs/v0.yaml @@ -9,558 +9,554 @@ paths: operationId: meta_integrated_system_list description: Viewset for IntegratedSystem model. parameters: - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer tags: - - meta + - meta responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/PaginatedIntegratedSystemList" - description: "" + $ref: '#/components/schemas/PaginatedIntegratedSystemList' + description: '' post: operationId: meta_integrated_system_create description: Viewset for IntegratedSystem model. tags: - - meta + - meta requestBody: content: application/json: schema: - $ref: "#/components/schemas/IntegratedSystemRequest" + $ref: '#/components/schemas/IntegratedSystemRequest' application/x-www-form-urlencoded: schema: - $ref: "#/components/schemas/IntegratedSystemRequest" + $ref: '#/components/schemas/IntegratedSystemRequest' multipart/form-data: schema: - $ref: "#/components/schemas/IntegratedSystemRequest" + $ref: '#/components/schemas/IntegratedSystemRequest' required: true responses: - "201": + '201': content: application/json: schema: - $ref: "#/components/schemas/IntegratedSystem" - description: "" + $ref: '#/components/schemas/IntegratedSystem' + description: '' /api/v0/meta/integrated_system/{id}/: get: operationId: meta_integrated_system_retrieve description: Viewset for IntegratedSystem model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this integrated system. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this integrated system. + required: true tags: - - meta + - meta responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/IntegratedSystem" - description: "" + $ref: '#/components/schemas/IntegratedSystem' + description: '' put: operationId: meta_integrated_system_update description: Viewset for IntegratedSystem model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this integrated system. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this integrated system. + required: true tags: - - meta + - meta requestBody: content: application/json: schema: - $ref: "#/components/schemas/IntegratedSystemRequest" + $ref: '#/components/schemas/IntegratedSystemRequest' application/x-www-form-urlencoded: schema: - $ref: "#/components/schemas/IntegratedSystemRequest" + $ref: '#/components/schemas/IntegratedSystemRequest' multipart/form-data: schema: - $ref: "#/components/schemas/IntegratedSystemRequest" + $ref: '#/components/schemas/IntegratedSystemRequest' required: true responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/IntegratedSystem" - description: "" + $ref: '#/components/schemas/IntegratedSystem' + description: '' patch: operationId: meta_integrated_system_partial_update description: Viewset for IntegratedSystem model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this integrated system. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this integrated system. + required: true tags: - - meta + - meta requestBody: content: application/json: schema: - $ref: "#/components/schemas/PatchedIntegratedSystemRequest" + $ref: '#/components/schemas/PatchedIntegratedSystemRequest' application/x-www-form-urlencoded: schema: - $ref: "#/components/schemas/PatchedIntegratedSystemRequest" + $ref: '#/components/schemas/PatchedIntegratedSystemRequest' multipart/form-data: schema: - $ref: "#/components/schemas/PatchedIntegratedSystemRequest" + $ref: '#/components/schemas/PatchedIntegratedSystemRequest' responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/IntegratedSystem" - description: "" + $ref: '#/components/schemas/IntegratedSystem' + description: '' delete: operationId: meta_integrated_system_destroy description: Viewset for IntegratedSystem model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this integrated system. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this integrated system. + required: true tags: - - meta + - meta responses: - "204": + '204': description: No response body /api/v0/meta/product/: get: operationId: meta_product_list description: Viewset for Product model. parameters: - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: system__slug - schema: - type: string + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: name + schema: + type: string + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - in: query + name: system__slug + schema: + type: string tags: - - meta + - meta responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/PaginatedProductList" - description: "" + $ref: '#/components/schemas/PaginatedProductList' + description: '' post: operationId: meta_product_create description: Viewset for Product model. tags: - - meta + - meta requestBody: content: application/json: schema: - $ref: "#/components/schemas/ProductRequest" + $ref: '#/components/schemas/ProductRequest' application/x-www-form-urlencoded: schema: - $ref: "#/components/schemas/ProductRequest" + $ref: '#/components/schemas/ProductRequest' multipart/form-data: schema: - $ref: "#/components/schemas/ProductRequest" + $ref: '#/components/schemas/ProductRequest' required: true responses: - "201": + '201': content: application/json: schema: - $ref: "#/components/schemas/Product" - description: "" + $ref: '#/components/schemas/Product' + description: '' /api/v0/meta/product/{id}/: get: operationId: meta_product_retrieve description: Viewset for Product model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this product. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this product. + required: true tags: - - meta + - meta responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/Product" - description: "" + $ref: '#/components/schemas/Product' + description: '' put: operationId: meta_product_update description: Viewset for Product model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this product. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this product. + required: true tags: - - meta + - meta requestBody: content: application/json: schema: - $ref: "#/components/schemas/ProductRequest" + $ref: '#/components/schemas/ProductRequest' application/x-www-form-urlencoded: schema: - $ref: "#/components/schemas/ProductRequest" + $ref: '#/components/schemas/ProductRequest' multipart/form-data: schema: - $ref: "#/components/schemas/ProductRequest" + $ref: '#/components/schemas/ProductRequest' required: true responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/Product" - description: "" + $ref: '#/components/schemas/Product' + description: '' patch: operationId: meta_product_partial_update description: Viewset for Product model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this product. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this product. + required: true tags: - - meta + - meta requestBody: content: application/json: schema: - $ref: "#/components/schemas/PatchedProductRequest" + $ref: '#/components/schemas/PatchedProductRequest' application/x-www-form-urlencoded: schema: - $ref: "#/components/schemas/PatchedProductRequest" + $ref: '#/components/schemas/PatchedProductRequest' multipart/form-data: schema: - $ref: "#/components/schemas/PatchedProductRequest" + $ref: '#/components/schemas/PatchedProductRequest' responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/Product" - description: "" + $ref: '#/components/schemas/Product' + description: '' delete: operationId: meta_product_destroy description: Viewset for Product model. parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this product. - required: true + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this product. + required: true tags: - - meta + - meta responses: - "204": + '204': description: No response body /api/v0/meta/product/preload/{system_slug}/{sku}/: get: operationId: meta_product_preload_retrieve - description: - Pre-loads the product metadata for a given SKU, even if the SKU + description: Pre-loads the product metadata for a given SKU, even if the SKU doesn't exist yet. parameters: - - in: path - name: sku - schema: - type: string - pattern: ^[^/]+$ - required: true - - in: path - name: system_slug - schema: - type: string - pattern: ^[^/]+$ - required: true + - in: path + name: sku + schema: + type: string + pattern: ^[^/]+$ + required: true + - in: path + name: system_slug + schema: + type: string + pattern: ^[^/]+$ + required: true tags: - - meta + - meta responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/Product" - description: "" + $ref: '#/components/schemas/Product' + description: '' /api/v0/payments/baskets/: get: operationId: payments_baskets_list description: Retrives the current user's baskets, one per system. parameters: - - in: query - name: integrated_system - schema: - type: integer - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer + - in: query + name: integrated_system + schema: + type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/PaginatedBasketWithProductList" - description: "" + $ref: '#/components/schemas/PaginatedBasketWithProductList' + description: '' /api/v0/payments/baskets/{id}/: get: operationId: payments_baskets_retrieve description: Retrieve a basket for the current user. parameters: - - in: path - name: id - schema: - type: integer - required: true + - in: path + name: id + schema: + type: integer + required: true tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/BasketWithProduct" - description: "" + $ref: '#/components/schemas/BasketWithProduct' + description: '' /api/v0/payments/baskets/add_discount/{system_slug}/: post: operationId: payments_baskets_add_discount_create - description: - Creates or updates a basket for the current user, adding the discount + description: Creates or updates a basket for the current user, adding the discount if valid. parameters: - - in: query - name: discount_code - schema: - type: string - required: true - - in: path - name: system_slug - schema: - type: string - required: true + - in: query + name: discount_code + schema: + type: string + required: true + - in: path + name: system_slug + schema: + type: string + required: true tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/BasketWithProduct" - description: "" + $ref: '#/components/schemas/BasketWithProduct' + description: '' /api/v0/payments/baskets/clear/{system_slug}/: delete: operationId: payments_baskets_clear_destroy description: Clears the basket for the current user. parameters: - - in: path - name: system_slug - schema: - type: string - required: true + - in: path + name: system_slug + schema: + type: string + required: true tags: - - payments + - payments responses: - "204": + '204': description: No response body /api/v0/payments/baskets/create_from_product/{system_slug}/{sku}/: post: operationId: payments_baskets_create_from_product_create - description: - Creates or updates a basket for the current user, adding the selected + description: Creates or updates a basket for the current user, adding the selected product. parameters: - - in: path - name: sku - schema: - type: string - required: true - - in: path - name: system_slug - schema: - type: string - required: true + - in: path + name: sku + schema: + type: string + required: true + - in: path + name: system_slug + schema: + type: string + required: true tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/BasketWithProduct" - description: "" + $ref: '#/components/schemas/BasketWithProduct' + description: '' /api/v0/payments/baskets/for_system/{system_slug}/: get: operationId: payments_baskets_for_system_retrieve description: Returns or creates a basket for the current user and system. parameters: - - in: path - name: system_slug - schema: - type: string - required: true + - in: path + name: system_slug + schema: + type: string + required: true tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/BasketWithProduct" - description: "" + $ref: '#/components/schemas/BasketWithProduct' + description: '' /api/v0/payments/checkout/{system_slug}/: post: operationId: payments_checkout_create - description: - Generates and returns the form payload for the current basket for + description: Generates and returns the form payload for the current basket for the specified system, which can be used to start the checkout process. parameters: - - in: path - name: system_slug - schema: - type: string - required: true + - in: path + name: system_slug + schema: + type: string + required: true tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/CyberSourceCheckout" - description: "" + $ref: '#/components/schemas/CyberSourceCheckout' + description: '' /api/v0/payments/discounts/: post: operationId: payments_discounts_create description: Create a discount. tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/Discount" - description: "" + $ref: '#/components/schemas/Discount' + description: '' /api/v0/payments/orders/history/: get: operationId: payments_orders_history_list description: Retrives the current user's completed orders. parameters: - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/PaginatedOrderHistoryList" - description: "" + $ref: '#/components/schemas/PaginatedOrderHistoryList' + description: '' /api/v0/payments/orders/history/{id}/: get: operationId: payments_orders_history_retrieve description: Retrieve a completed order for the current user. parameters: - - in: path - name: id - schema: - type: integer - required: true + - in: path + name: id + schema: + type: integer + required: true tags: - - payments + - payments responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/OrderHistory" - description: "" + $ref: '#/components/schemas/OrderHistory' + description: '' /api/v0/users/me/: get: operationId: users_me_retrieve description: User retrieve and update viewsets for the current user tags: - - users + - users security: - - {} + - {} responses: - "200": + '200': content: application/json: schema: - $ref: "#/components/schemas/User" - description: "" + $ref: '#/components/schemas/User' + description: '' components: schemas: BasketItemWithProduct: @@ -568,7 +564,7 @@ components: description: Basket item model serializer with product information properties: product: - $ref: "#/components/schemas/Product" + $ref: '#/components/schemas/Product' id: type: integer readOnly: true @@ -592,14 +588,14 @@ components: minimum: 0 discount_applied: allOf: - - $ref: "#/components/schemas/SimpleDiscount" + - $ref: '#/components/schemas/SimpleDiscount' readOnly: true required: - - discount_applied - - discounted_price - - id - - price - - product + - discount_applied + - discounted_price + - id + - price + - product BasketWithProduct: type: object description: Basket model serializer with items and products @@ -610,11 +606,11 @@ components: user: type: integer integrated_system: - $ref: "#/components/schemas/IntegratedSystem" + $ref: '#/components/schemas/IntegratedSystem' basket_items: type: array items: - $ref: "#/components/schemas/BasketItemWithProduct" + $ref: '#/components/schemas/BasketItemWithProduct' subtotal: type: number format: double @@ -626,21 +622,21 @@ components: description: Get the tax for the basket readOnly: true tax_rate: - $ref: "#/components/schemas/TaxRate" + $ref: '#/components/schemas/TaxRate' total_price: type: number format: double description: Get the total price for the basket readOnly: true required: - - basket_items - - id - - integrated_system - - subtotal - - tax - - tax_rate - - total_price - - user + - basket_items + - id + - integrated_system + - subtotal + - tax + - tax_rate + - total_price + - user Company: type: object description: Serializer for companies. @@ -652,259 +648,259 @@ components: type: string maxLength: 255 required: - - id - - name + - id + - name CountryCodeEnum: enum: - - AF - - AX - - AL - - DZ - - AS - - AD - - AO - - AI - - AQ - - AG - - AR - - AM - - AW - - AU - - AT - - AZ - - BS - - BH - - BD - - BB - - BY - - BE - - BZ - - BJ - - BM - - BT - - BO - - BQ - - BA - - BW - - BV - - BR - - IO - - BN - - BG - - BF - - BI - - CV - - KH - - CM - - CA - - KY - - CF - - TD - - CL - - CN - - CX - - CC - - CO - - KM - - CG - - CD - - CK - - CR - - CI - - HR - - CU - - CW - - CY - - CZ - - DK - - DJ - - DM - - DO - - EC - - EG - - SV - - GQ - - ER - - EE - - SZ - - ET - - FK - - FO - - FJ - - FI - - FR - - GF - - PF - - TF - - GA - - GM - - GE - - DE - - GH - - GI - - GR - - GL - - GD - - GP - - GU - - GT - - GG - - GN - - GW - - GY - - HT - - HM - - VA - - HN - - HK - - HU - - IS - - IN - - ID - - IR - - IQ - - IE - - IM - - IL - - IT - - JM - - JP - - JE - - JO - - KZ - - KE - - KI - - KW - - KG - - LA - - LV - - LB - - LS - - LR - - LY - - LI - - LT - - LU - - MO - - MG - - MW - - MY - - MV - - ML - - MT - - MH - - MQ - - MR - - MU - - YT - - MX - - FM - - MD - - MC - - MN - - ME - - MS - - MA - - MZ - - MM - - NA - - NR - - NP - - NL - - NC - - NZ - - NI - - NE - - NG - - NU - - NF - - KP - - MK - - MP - - "NO" - - OM - - PK - - PW - - PS - - PA - - PG - - PY - - PE - - PH - - PN - - PL - - PT - - PR - - QA - - RE - - RO - - RU - - RW - - BL - - SH - - KN - - LC - - MF - - PM - - VC - - WS - - SM - - ST - - SA - - SN - - RS - - SC - - SL - - SG - - SX - - SK - - SI - - SB - - SO - - ZA - - GS - - KR - - SS - - ES - - LK - - SD - - SR - - SJ - - SE - - CH - - SY - - TW - - TJ - - TZ - - TH - - TL - - TG - - TK - - TO - - TT - - TN - - TR - - TM - - TC - - TV - - UG - - UA - - AE - - GB - - UM - - US - - UY - - UZ - - VU - - VE - - VN - - VG - - VI - - WF - - EH - - YE - - ZM - - ZW + - AF + - AX + - AL + - DZ + - AS + - AD + - AO + - AI + - AQ + - AG + - AR + - AM + - AW + - AU + - AT + - AZ + - BS + - BH + - BD + - BB + - BY + - BE + - BZ + - BJ + - BM + - BT + - BO + - BQ + - BA + - BW + - BV + - BR + - IO + - BN + - BG + - BF + - BI + - CV + - KH + - CM + - CA + - KY + - CF + - TD + - CL + - CN + - CX + - CC + - CO + - KM + - CG + - CD + - CK + - CR + - CI + - HR + - CU + - CW + - CY + - CZ + - DK + - DJ + - DM + - DO + - EC + - EG + - SV + - GQ + - ER + - EE + - SZ + - ET + - FK + - FO + - FJ + - FI + - FR + - GF + - PF + - TF + - GA + - GM + - GE + - DE + - GH + - GI + - GR + - GL + - GD + - GP + - GU + - GT + - GG + - GN + - GW + - GY + - HT + - HM + - VA + - HN + - HK + - HU + - IS + - IN + - ID + - IR + - IQ + - IE + - IM + - IL + - IT + - JM + - JP + - JE + - JO + - KZ + - KE + - KI + - KW + - KG + - LA + - LV + - LB + - LS + - LR + - LY + - LI + - LT + - LU + - MO + - MG + - MW + - MY + - MV + - ML + - MT + - MH + - MQ + - MR + - MU + - YT + - MX + - FM + - MD + - MC + - MN + - ME + - MS + - MA + - MZ + - MM + - NA + - NR + - NP + - NL + - NC + - NZ + - NI + - NE + - NG + - NU + - NF + - KP + - MK + - MP + - 'NO' + - OM + - PK + - PW + - PS + - PA + - PG + - PY + - PE + - PH + - PN + - PL + - PT + - PR + - QA + - RE + - RO + - RU + - RW + - BL + - SH + - KN + - LC + - MF + - PM + - VC + - WS + - SM + - ST + - SA + - SN + - RS + - SC + - SL + - SG + - SX + - SK + - SI + - SB + - SO + - ZA + - GS + - KR + - SS + - ES + - LK + - SD + - SR + - SJ + - SE + - CH + - SY + - TW + - TJ + - TZ + - TH + - TL + - TG + - TK + - TO + - TT + - TN + - TR + - TM + - TC + - TV + - UG + - UA + - AE + - GB + - UM + - US + - UY + - UZ + - VU + - VE + - VN + - VG + - VI + - WF + - EH + - YE + - ZM + - ZW type: string description: |- * `AF` - Afghanistan @@ -1157,259 +1153,258 @@ components: * `ZM` - Zambia * `ZW` - Zimbabwe x-enum-descriptions: - - Afghanistan - - Åland Islands - - Albania - - Algeria - - American Samoa - - Andorra - - Angola - - Anguilla - - Antarctica - - Antigua and Barbuda - - Argentina - - Armenia - - Aruba - - Australia - - Austria - - Azerbaijan - - Bahamas - - Bahrain - - Bangladesh - - Barbados - - Belarus - - Belgium - - Belize - - Benin - - Bermuda - - Bhutan - - Bolivia - - Bonaire, Sint Eustatius and Saba - - Bosnia and Herzegovina - - Botswana - - Bouvet Island - - Brazil - - British Indian Ocean Territory - - Brunei - - Bulgaria - - Burkina Faso - - Burundi - - Cabo Verde - - Cambodia - - Cameroon - - Canada - - Cayman Islands - - Central African Republic - - Chad - - Chile - - China - - Christmas Island - - Cocos (Keeling) Islands - - Colombia - - Comoros - - Congo - - Congo (the Democratic Republic of the) - - Cook Islands - - Costa Rica - - Côte d'Ivoire - - Croatia - - Cuba - - Curaçao - - Cyprus - - Czechia - - Denmark - - Djibouti - - Dominica - - Dominican Republic - - Ecuador - - Egypt - - El Salvador - - Equatorial Guinea - - Eritrea - - Estonia - - Eswatini - - Ethiopia - - Falkland Islands (Malvinas) - - Faroe Islands - - Fiji - - Finland - - France - - French Guiana - - French Polynesia - - French Southern Territories - - Gabon - - Gambia - - Georgia - - Germany - - Ghana - - Gibraltar - - Greece - - Greenland - - Grenada - - Guadeloupe - - Guam - - Guatemala - - Guernsey - - Guinea - - Guinea-Bissau - - Guyana - - Haiti - - Heard Island and McDonald Islands - - Holy See - - Honduras - - Hong Kong - - Hungary - - Iceland - - India - - Indonesia - - Iran - - Iraq - - Ireland - - Isle of Man - - Israel - - Italy - - Jamaica - - Japan - - Jersey - - Jordan - - Kazakhstan - - Kenya - - Kiribati - - Kuwait - - Kyrgyzstan - - Laos - - Latvia - - Lebanon - - Lesotho - - Liberia - - Libya - - Liechtenstein - - Lithuania - - Luxembourg - - Macao - - Madagascar - - Malawi - - Malaysia - - Maldives - - Mali - - Malta - - Marshall Islands - - Martinique - - Mauritania - - Mauritius - - Mayotte - - Mexico - - Micronesia - - Moldova - - Monaco - - Mongolia - - Montenegro - - Montserrat - - Morocco - - Mozambique - - Myanmar - - Namibia - - Nauru - - Nepal - - Netherlands - - New Caledonia - - New Zealand - - Nicaragua - - Niger - - Nigeria - - Niue - - Norfolk Island - - North Korea - - North Macedonia - - Northern Mariana Islands - - Norway - - Oman - - Pakistan - - Palau - - Palestine, State of - - Panama - - Papua New Guinea - - Paraguay - - Peru - - Philippines - - Pitcairn - - Poland - - Portugal - - Puerto Rico - - Qatar - - Réunion - - Romania - - Russia - - Rwanda - - Saint Barthélemy - - Saint Helena, Ascension and Tristan da Cunha - - Saint Kitts and Nevis - - Saint Lucia - - Saint Martin (French part) - - Saint Pierre and Miquelon - - Saint Vincent and the Grenadines - - Samoa - - San Marino - - Sao Tome and Principe - - Saudi Arabia - - Senegal - - Serbia - - Seychelles - - Sierra Leone - - Singapore - - Sint Maarten (Dutch part) - - Slovakia - - Slovenia - - Solomon Islands - - Somalia - - South Africa - - South Georgia and the South Sandwich Islands - - South Korea - - South Sudan - - Spain - - Sri Lanka - - Sudan - - Suriname - - Svalbard and Jan Mayen - - Sweden - - Switzerland - - Syria - - Taiwan - - Tajikistan - - Tanzania - - Thailand - - Timor-Leste - - Togo - - Tokelau - - Tonga - - Trinidad and Tobago - - Tunisia - - Türkiye - - Turkmenistan - - Turks and Caicos Islands - - Tuvalu - - Uganda - - Ukraine - - United Arab Emirates - - United Kingdom - - United States Minor Outlying Islands - - United States of America - - Uruguay - - Uzbekistan - - Vanuatu - - Venezuela - - Vietnam - - Virgin Islands (British) - - Virgin Islands (U.S.) - - Wallis and Futuna - - Western Sahara - - Yemen - - Zambia - - Zimbabwe + - Afghanistan + - Åland Islands + - Albania + - Algeria + - American Samoa + - Andorra + - Angola + - Anguilla + - Antarctica + - Antigua and Barbuda + - Argentina + - Armenia + - Aruba + - Australia + - Austria + - Azerbaijan + - Bahamas + - Bahrain + - Bangladesh + - Barbados + - Belarus + - Belgium + - Belize + - Benin + - Bermuda + - Bhutan + - Bolivia + - Bonaire, Sint Eustatius and Saba + - Bosnia and Herzegovina + - Botswana + - Bouvet Island + - Brazil + - British Indian Ocean Territory + - Brunei + - Bulgaria + - Burkina Faso + - Burundi + - Cabo Verde + - Cambodia + - Cameroon + - Canada + - Cayman Islands + - Central African Republic + - Chad + - Chile + - China + - Christmas Island + - Cocos (Keeling) Islands + - Colombia + - Comoros + - Congo + - Congo (the Democratic Republic of the) + - Cook Islands + - Costa Rica + - Côte d'Ivoire + - Croatia + - Cuba + - Curaçao + - Cyprus + - Czechia + - Denmark + - Djibouti + - Dominica + - Dominican Republic + - Ecuador + - Egypt + - El Salvador + - Equatorial Guinea + - Eritrea + - Estonia + - Eswatini + - Ethiopia + - Falkland Islands (Malvinas) + - Faroe Islands + - Fiji + - Finland + - France + - French Guiana + - French Polynesia + - French Southern Territories + - Gabon + - Gambia + - Georgia + - Germany + - Ghana + - Gibraltar + - Greece + - Greenland + - Grenada + - Guadeloupe + - Guam + - Guatemala + - Guernsey + - Guinea + - Guinea-Bissau + - Guyana + - Haiti + - Heard Island and McDonald Islands + - Holy See + - Honduras + - Hong Kong + - Hungary + - Iceland + - India + - Indonesia + - Iran + - Iraq + - Ireland + - Isle of Man + - Israel + - Italy + - Jamaica + - Japan + - Jersey + - Jordan + - Kazakhstan + - Kenya + - Kiribati + - Kuwait + - Kyrgyzstan + - Laos + - Latvia + - Lebanon + - Lesotho + - Liberia + - Libya + - Liechtenstein + - Lithuania + - Luxembourg + - Macao + - Madagascar + - Malawi + - Malaysia + - Maldives + - Mali + - Malta + - Marshall Islands + - Martinique + - Mauritania + - Mauritius + - Mayotte + - Mexico + - Micronesia + - Moldova + - Monaco + - Mongolia + - Montenegro + - Montserrat + - Morocco + - Mozambique + - Myanmar + - Namibia + - Nauru + - Nepal + - Netherlands + - New Caledonia + - New Zealand + - Nicaragua + - Niger + - Nigeria + - Niue + - Norfolk Island + - North Korea + - North Macedonia + - Northern Mariana Islands + - Norway + - Oman + - Pakistan + - Palau + - Palestine, State of + - Panama + - Papua New Guinea + - Paraguay + - Peru + - Philippines + - Pitcairn + - Poland + - Portugal + - Puerto Rico + - Qatar + - Réunion + - Romania + - Russia + - Rwanda + - Saint Barthélemy + - Saint Helena, Ascension and Tristan da Cunha + - Saint Kitts and Nevis + - Saint Lucia + - Saint Martin (French part) + - Saint Pierre and Miquelon + - Saint Vincent and the Grenadines + - Samoa + - San Marino + - Sao Tome and Principe + - Saudi Arabia + - Senegal + - Serbia + - Seychelles + - Sierra Leone + - Singapore + - Sint Maarten (Dutch part) + - Slovakia + - Slovenia + - Solomon Islands + - Somalia + - South Africa + - South Georgia and the South Sandwich Islands + - South Korea + - South Sudan + - Spain + - Sri Lanka + - Sudan + - Suriname + - Svalbard and Jan Mayen + - Sweden + - Switzerland + - Syria + - Taiwan + - Tajikistan + - Tanzania + - Thailand + - Timor-Leste + - Togo + - Tokelau + - Tonga + - Trinidad and Tobago + - Tunisia + - Türkiye + - Turkmenistan + - Turks and Caicos Islands + - Tuvalu + - Uganda + - Ukraine + - United Arab Emirates + - United Kingdom + - United States Minor Outlying Islands + - United States of America + - Uruguay + - Uzbekistan + - Vanuatu + - Venezuela + - Vietnam + - Virgin Islands (British) + - Virgin Islands (U.S.) + - Wallis and Futuna + - Western Sahara + - Yemen + - Zambia + - Zimbabwe CyberSourceCheckout: type: object - description: - Really basic serializer for the payload that we need to send to + description: Really basic serializer for the payload that we need to send to CyberSource. properties: payload: @@ -1420,9 +1415,9 @@ components: method: type: string required: - - method - - payload - - url + - method + - payload + - url Discount: type: object description: Serializer for discounts. @@ -1440,8 +1435,8 @@ components: payment_type: nullable: true oneOf: - - $ref: "#/components/schemas/PaymentTypeEnum" - - $ref: "#/components/schemas/NullEnum" + - $ref: '#/components/schemas/PaymentTypeEnum' + - $ref: '#/components/schemas/NullEnum' max_redemptions: type: integer maximum: 2147483647 @@ -1451,48 +1446,46 @@ components: type: string format: date-time nullable: true - description: - If set, this discount code will not be redeemable before this + description: If set, this discount code will not be redeemable before this date. expiration_date: type: string format: date-time nullable: true - description: - If set, this discount code will not be redeemable after this + description: If set, this discount code will not be redeemable after this date. integrated_system: - $ref: "#/components/schemas/IntegratedSystem" + $ref: '#/components/schemas/IntegratedSystem' product: - $ref: "#/components/schemas/Product" + $ref: '#/components/schemas/Product' assigned_users: type: array items: - $ref: "#/components/schemas/User" + $ref: '#/components/schemas/User' company: - $ref: "#/components/schemas/Company" + $ref: '#/components/schemas/Company' required: - - amount - - assigned_users - - company - - discount_code - - id - - integrated_system - - product + - amount + - assigned_users + - company + - discount_code + - id + - integrated_system + - product DiscountTypeEnum: enum: - - percent-off - - dollars-off - - fixed-price + - percent-off + - dollars-off + - fixed-price type: string description: |- * `percent-off` - percent-off * `dollars-off` - dollars-off * `fixed-price` - fixed-price x-enum-descriptions: - - percent-off - - dollars-off - - fixed-price + - percent-off + - dollars-off + - fixed-price IntegratedSystem: type: object description: Serializer for IntegratedSystem model. @@ -1510,8 +1503,8 @@ components: description: type: string required: - - id - - name + - id + - name IntegratedSystemRequest: type: object description: Serializer for IntegratedSystem model. @@ -1527,7 +1520,7 @@ components: description: type: string required: - - name + - name Line: type: object description: Serializes a line item for an order. @@ -1552,17 +1545,17 @@ components: format: decimal pattern: ^-?\d{0,7}(?:\.\d{0,2})?$ product: - $ref: "#/components/schemas/Product" + $ref: '#/components/schemas/Product' required: - - id - - item_description - - product - - quantity - - total_price - - unit_price + - id + - item_description + - product + - quantity + - total_price + - unit_price NullEnum: enum: - - null + - null OrderHistory: type: object description: Serializer for order history. @@ -1571,7 +1564,7 @@ components: type: integer readOnly: true state: - $ref: "#/components/schemas/StateEnum" + $ref: '#/components/schemas/StateEnum' reference_number: type: string maxLength: 255 @@ -1584,7 +1577,7 @@ components: lines: type: array items: - $ref: "#/components/schemas/Line" + $ref: '#/components/schemas/Line' created_on: type: string format: date-time @@ -1594,17 +1587,17 @@ components: format: date-time readOnly: true required: - - created_on - - id - - lines - - purchaser - - total_price_paid - - updated_on + - created_on + - id + - lines + - purchaser + - total_price_paid + - updated_on PaginatedBasketWithProductList: type: object required: - - count - - results + - count + - results properties: count: type: integer @@ -1622,12 +1615,12 @@ components: results: type: array items: - $ref: "#/components/schemas/BasketWithProduct" + $ref: '#/components/schemas/BasketWithProduct' PaginatedIntegratedSystemList: type: object required: - - count - - results + - count + - results properties: count: type: integer @@ -1645,12 +1638,12 @@ components: results: type: array items: - $ref: "#/components/schemas/IntegratedSystem" + $ref: '#/components/schemas/IntegratedSystem' PaginatedOrderHistoryList: type: object required: - - count - - results + - count + - results properties: count: type: integer @@ -1668,12 +1661,12 @@ components: results: type: array items: - $ref: "#/components/schemas/OrderHistory" + $ref: '#/components/schemas/OrderHistory' PaginatedProductList: type: object required: - - count - - results + - count + - results properties: count: type: integer @@ -1691,7 +1684,7 @@ components: results: type: array items: - $ref: "#/components/schemas/Product" + $ref: '#/components/schemas/Product' PatchedIntegratedSystemRequest: type: object description: Serializer for IntegratedSystem model. @@ -1737,19 +1730,18 @@ components: description: Price (decimal to two places) image_metadata: nullable: true - description: - Image metadata including URL, alt text, and description (in + description: Image metadata including URL, alt text, and description (in JSON). PaymentTypeEnum: enum: - - marketing - - sales - - financial-assistance - - customer-support - - staff - - legacy - - credit_card - - purchase_order + - marketing + - sales + - financial-assistance + - customer-support + - staff + - legacy + - credit_card + - purchase_order type: string description: |- * `marketing` - marketing @@ -1761,14 +1753,14 @@ components: * `credit_card` - credit_card * `purchase_order` - purchase_order x-enum-descriptions: - - marketing - - sales - - financial-assistance - - customer-support - - staff - - legacy - - credit_card - - purchase_order + - marketing + - sales + - financial-assistance + - customer-support + - staff + - legacy + - credit_card + - purchase_order Product: type: object description: Serializer for Product model. @@ -1803,17 +1795,16 @@ components: readOnly: true image_metadata: nullable: true - description: - Image metadata including URL, alt text, and description (in + description: Image metadata including URL, alt text, and description (in JSON). required: - - deleted_by_cascade - - description - - id - - name - - price - - sku - - system + - deleted_by_cascade + - description + - id + - name + - price + - sku + - system ProductRequest: type: object description: Serializer for Product model. @@ -1845,15 +1836,14 @@ components: description: Price (decimal to two places) image_metadata: nullable: true - description: - Image metadata including URL, alt text, and description (in + description: Image metadata including URL, alt text, and description (in JSON). required: - - description - - name - - price - - sku - - system + - description + - name + - price + - sku + - system SimpleDiscount: type: object description: Simpler serializer for discounts. @@ -1869,7 +1859,7 @@ components: format: decimal pattern: ^-?\d{0,18}(?:\.\d{0,2})?$ discount_type: - $ref: "#/components/schemas/DiscountTypeEnum" + $ref: '#/components/schemas/DiscountTypeEnum' formatted_discount_amount: type: string description: |- @@ -1878,20 +1868,20 @@ components: This quantizes percent discounts to whole numbers. This is probably fine. readOnly: true required: - - amount - - discount_code - - discount_type - - formatted_discount_amount - - id + - amount + - discount_code + - discount_type + - formatted_discount_amount + - id StateEnum: enum: - - pending - - fulfilled - - canceled - - refunded - - declined - - errored - - review + - pending + - fulfilled + - canceled + - refunded + - declined + - errored + - review type: string description: |- * `pending` - Pending @@ -1902,13 +1892,13 @@ components: * `errored` - Errored * `review` - Review x-enum-descriptions: - - Pending - - Fulfilled - - Canceled - - Refunded - - Declined - - Errored - - Review + - Pending + - Fulfilled + - Canceled + - Refunded + - Declined + - Errored + - Review TaxRate: type: object description: TaxRate model serializer @@ -1917,7 +1907,7 @@ components: type: integer readOnly: true country_code: - $ref: "#/components/schemas/CountryCodeEnum" + $ref: '#/components/schemas/CountryCodeEnum' tax_rate: type: string format: decimal @@ -1926,8 +1916,8 @@ components: type: string maxLength: 100 required: - - country_code - - id + - country_code + - id User: type: object description: Serializer for User model. @@ -1937,8 +1927,7 @@ components: readOnly: true username: type: string - description: - Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. pattern: ^[\w.@+-]+$ maxLength: 150 @@ -1954,5 +1943,5 @@ components: type: string maxLength: 150 required: - - id - - username + - id + - username