Skip to content

Commit

Permalink
feat(resources): update resources to schema v2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Jan 13, 2022
1 parent ea262d0 commit 7cb6e50
Show file tree
Hide file tree
Showing 107 changed files with 1,927 additions and 365 deletions.
1,323 changes: 1,188 additions & 135 deletions gen/openapi.json

Large diffs are not rendered by default.

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
line_1: 'epsilon_54',
city: 'epsilon_82',
state_code: 'beta_31',
country_code: 'delta_57',
phone: 'epsilon_71',
line_1: 'omega_83',
city: 'delta_73',
state_code: 'kappa_24',
country_code: 'omega_48',
phone: 'omega_93',
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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'delta_29',
currency_code: 'alfa_4',
amount_cents: 0,
name: 'epsilon_58',
currency_code: 'delta_53',
amount_cents: 555,
}

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'epsilon_22',
merchant_account: 'alfa_92',
api_key: 'gamma_15',
live_url_prefix: 'epsilon_9',
name: 'gamma_34',
merchant_account: 'sigma_59',
api_key: 'kappa_11',
live_url_prefix: 'alfa_76',
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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'sigma_86',
name: 'beta_39',
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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'lambda_1',
username: 'epsilon_47',
password: 'sigma_0',
company_code: 'sigma_92',
name: 'omega_10',
username: 'alfa_0',
password: 'omega_73',
company_code: 'alfa_69',
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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'kappa_49',
key: 'gamma_38',
name: 'epsilon_27',
key: 'alfa_25',
}

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'omega_38',
merchant_account_id: 'omega_1',
merchant_id: 'alfa_45',
public_key: 'alfa_96',
private_key: 'delta_74',
name: 'epsilon_21',
merchant_account_id: 'sigma_22',
merchant_id: 'sigma_10',
public_key: 'alfa_38',
private_key: 'alfa_39',
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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

import { CommerceLayerClient } from '../../src'
Expand Down
8 changes: 4 additions & 4 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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
code: 'lambda_14',
name: 'kappa_16',
code: 'omega_80',
name: 'gamma_59',
price_amount_cents: 10000,
compare_at_amount_cents: 1000,
compare_at_amount_cents: 55,
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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'beta_27',
secret_key: 'delta_40',
public_key: 'alfa_25',
name: 'delta_98',
secret_key: 'gamma_3',
public_key: 'delta_35',
checkout_com_payments: [ cl.checkout_com_payments.relationship(TestData.id) ],
}

Expand Down
6 changes: 3 additions & 3 deletions specs/resources/checkout_com_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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
payment_type: 'omega_3',
token: 'lambda_31',
payment_type: 'delta_43',
token: 'epsilon_46',
order: cl.orders.relationship(TestData.id),
}

Expand Down
2 changes: 1 addition & 1 deletion specs/resources/coupon_codes_promotion_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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

import { CommerceLayerClient } from '../../src'
Expand Down
4 changes: 2 additions & 2 deletions specs/resources/coupon_recipients.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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
email: 'alfa_75',
email: 'sigma_28',
customer: cl.customers.relationship(TestData.id),
}

Expand Down
6 changes: 3 additions & 3 deletions specs/resources/coupons.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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
code: 'beta_86',
usage_limit: 55,
code: 'delta_71',
usage_limit: 100,
promotion_rule: cl.coupon_codes_promotion_rules.relationship(TestData.id),
}

Expand Down
2 changes: 1 addition & 1 deletion specs/resources/customer_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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

import { CommerceLayerClient } from '../../src'
Expand Down
4 changes: 2 additions & 2 deletions specs/resources/customer_groups.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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
name: 'gamma_19',
name: 'delta_62',
}

const attributes = { ...createAttributes, reference: TestData.reference }
Expand Down
4 changes: 2 additions & 2 deletions specs/resources/customer_password_resets.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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
customer_email: 'sigma_54',
customer_email: 'epsilon_90',
}

const attributes = { ...createAttributes, reference: TestData.reference }
Expand Down
2 changes: 1 addition & 1 deletion specs/resources/customer_payment_sources.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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

import { CommerceLayerClient } from '../../src'
Expand Down
4 changes: 2 additions & 2 deletions specs/resources/customer_subscriptions.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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
customer_email: 'gamma_10',
customer_email: 'delta_9',
}

const attributes = { ...createAttributes, reference: TestData.reference }
Expand Down
4 changes: 2 additions & 2 deletions specs/resources/customers.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.7.6
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
**/

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

const createAttributes = {
email: 'omega_33',
email: 'delta_28',
customer_group: cl.customer_groups.relationship(TestData.id),
}

Expand Down
Loading

0 comments on commit 7cb6e50

Please sign in to comment.