Skip to content

Commit

Permalink
feat(core): updated resources to schema v2.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Jun 8, 2022
1 parent 1bce132 commit 082cef4
Show file tree
Hide file tree
Showing 103 changed files with 431 additions and 234 deletions.
102 changes: 98 additions & 4 deletions gen/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.1",
"info": {
"title": "Commerce Layer API",
"version": "2.9.3",
"version": "2.9.4",
"contact": {
"name": "API Support",
"url": "https://commercelayer.io",
Expand Down Expand Up @@ -10934,6 +10934,60 @@
}
}
},
"/orders/{orderId}/available_free_skus": {
"get": {
"operationId": "GET/orderId/available_free_skus",
"summary": "Retrieve the available free skus associated to the order",
"description": "Retrieve the available free skus associated to the order",
"tags": [
"has_many",
"skus"
],
"parameters": [
{
"name": "orderId",
"in": "path",
"schema": {
"type": "string"
},
"required": true,
"description": "The resource's id"
}
],
"responses": {
"200": {
"description": "The available_free_skus associated to the order"
}
}
}
},
"/orders/{orderId}/available_free_bundles": {
"get": {
"operationId": "GET/orderId/available_free_bundles",
"summary": "Retrieve the available free bundles associated to the order",
"description": "Retrieve the available free bundles associated to the order",
"tags": [
"has_many",
"bundles"
],
"parameters": [
{
"name": "orderId",
"in": "path",
"schema": {
"type": "string"
},
"required": true,
"description": "The resource's id"
}
],
"responses": {
"200": {
"description": "The available_free_bundles associated to the order"
}
}
}
},
"/orders/{orderId}/payment_method": {
"get": {
"operationId": "GET/orderId/payment_method",
Expand Down Expand Up @@ -21913,7 +21967,7 @@
},
"descriptor_phone": {
"type": "string",
"description": "The dynamic descriptor phone number.",
"description": "The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods.",
"example": "3125551212"
},
"descriptor_url": {
Expand Down Expand Up @@ -22048,7 +22102,7 @@
},
"descriptor_phone": {
"type": "string",
"description": "The dynamic descriptor phone number.",
"description": "The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods.",
"example": "3125551212"
},
"descriptor_url": {
Expand Down Expand Up @@ -22171,7 +22225,7 @@
},
"descriptor_phone": {
"type": "string",
"description": "The dynamic descriptor phone number.",
"description": "The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods.",
"example": "3125551212"
},
"descriptor_url": {
Expand Down Expand Up @@ -38980,6 +39034,46 @@
}
}
},
"available_free_skus": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"type": "string",
"description": "The resource's type",
"example": "skus",
"default": "skus"
},
"id": {
"type": "string",
"description": "The resource's id",
"example": "XGZwpOSrWL"
}
}
},
"available_free_bundles": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"type": "string",
"description": "The resource's type",
"example": "bundles",
"default": "bundles"
},
"id": {
"type": "string",
"description": "The resource's id",
"example": "XGZwpOSrWL"
}
}
},
"payment_method": {
"type": "object",
"required": [
Expand Down
12 changes: 6 additions & 6 deletions specs/resources/addresses.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,11 +25,11 @@ describe('Addresses resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
line_1: 'beta_33',
city: 'epsilon_92',
state_code: 'alfa_49',
country_code: 'kappa_34',
phone: 'sigma_66',
line_1: 'beta_19',
city: 'alfa_70',
state_code: 'sigma_70',
country_code: 'alfa_60',
phone: 'epsilon_68',
geocoder: cl.geocoders.relationship(TestData.id),
}

Expand Down
8 changes: 4 additions & 4 deletions specs/resources/adjustments.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,9 +25,9 @@ describe('Adjustments resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
name: 'epsilon_63',
currency_code: 'kappa_63',
amount_cents: 100,
name: 'gamma_74',
currency_code: 'omega_82',
amount_cents: 10,
}

const attributes = { ...createAttributes, reference: TestData.reference }
Expand Down
10 changes: 5 additions & 5 deletions specs/resources/adyen_gateways.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,10 +25,10 @@ describe('AdyenGateways resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
name: 'gamma_36',
merchant_account: 'epsilon_16',
api_key: 'sigma_28',
live_url_prefix: 'sigma_52',
name: 'omega_27',
merchant_account: 'kappa_6',
api_key: 'gamma_15',
live_url_prefix: 'delta_75',
adyen_payments: [ cl.adyen_payments.relationship(TestData.id) ],
}

Expand Down
2 changes: 1 addition & 1 deletion specs/resources/adyen_payments.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand Down
2 changes: 1 addition & 1 deletion specs/resources/application.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand Down
4 changes: 2 additions & 2 deletions specs/resources/attachments.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,7 +25,7 @@ describe('Attachments resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
name: 'beta_97',
name: 'delta_43',
attachable: cl.bundles.relationship(TestData.id),
}

Expand Down
2 changes: 1 addition & 1 deletion specs/resources/authorizations.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand Down
10 changes: 5 additions & 5 deletions specs/resources/avalara_accounts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,10 +25,10 @@ describe('AvalaraAccounts resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
name: 'lambda_89',
username: 'lambda_61',
password: 'omega_54',
company_code: 'epsilon_34',
name: 'kappa_31',
username: 'kappa_13',
password: 'sigma_67',
company_code: 'kappa_2',
tax_categories: [ cl.tax_categories.relationship(TestData.id) ],
}

Expand Down
2 changes: 1 addition & 1 deletion specs/resources/billing_info_validation_rules.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand Down
6 changes: 3 additions & 3 deletions specs/resources/bing_geocoders.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,8 +25,8 @@ describe('BingGeocoders resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
name: 'sigma_65',
key: 'omega_88',
name: 'gamma_85',
key: 'gamma_74',
}

const attributes = { ...createAttributes, reference: TestData.reference }
Expand Down
12 changes: 6 additions & 6 deletions specs/resources/braintree_gateways.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,11 +25,11 @@ describe('BraintreeGateways resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
name: 'gamma_80',
merchant_account_id: 'beta_25',
merchant_id: 'sigma_18',
public_key: 'omega_34',
private_key: 'alfa_31',
name: 'omega_96',
merchant_account_id: 'omega_5',
merchant_id: 'omega_7',
public_key: 'alfa_1',
private_key: 'kappa_68',
braintree_payments: [ cl.braintree_payments.relationship(TestData.id) ],
}

Expand Down
2 changes: 1 addition & 1 deletion specs/resources/braintree_payments.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand Down
10 changes: 5 additions & 5 deletions specs/resources/bundles.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,10 +25,10 @@ describe('Bundles resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
code: 'lambda_39',
name: 'epsilon_55',
price_amount_cents: 555,
compare_at_amount_cents: 555,
code: 'sigma_87',
name: 'sigma_40',
price_amount_cents: 55,
compare_at_amount_cents: 12345,
market: cl.markets.relationship(TestData.id),
sku_list: cl.sku_lists.relationship(TestData.id),
}
Expand Down
2 changes: 1 addition & 1 deletion specs/resources/captures.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand Down
2 changes: 1 addition & 1 deletion specs/resources/carrier_accounts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand Down
8 changes: 4 additions & 4 deletions specs/resources/checkout_com_gateways.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* ©2022 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.3
* Source code generated automatically by SDK codegen from OpenAPI schema 2.9.4
**/

import { CommerceLayerClient } from '../../src'
Expand All @@ -25,9 +25,9 @@ describe('CheckoutComGateways resource', () => {
it(resourceType + '.create', async () => {

const createAttributes = {
name: 'delta_85',
secret_key: 'alfa_38',
public_key: 'sigma_18',
name: 'kappa_40',
secret_key: 'gamma_39',
public_key: 'sigma_96',
checkout_com_payments: [ cl.checkout_com_payments.relationship(TestData.id) ],
}

Expand Down
Loading

0 comments on commit 082cef4

Please sign in to comment.