New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atoms-studio/commercelayer-sdk

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atoms-studio/commercelayer-sdk - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

dist/resources/CustomerPaymentSources.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.1.0](https://github.com/atoms-studio/commercelayer-sdk/compare/1.0.2...1.1.0) (2021-09-22)
### Features
* add CustomerPaymentSources ([80bb7bd](https://github.com/atoms-studio/commercelayer-sdk/commit/80bb7bd292580f71079291aec57d22abedcb8d3e))
### [1.0.2](https://github.com/atoms-studio/commercelayer-sdk/compare/1.0.1...1.0.2) (2021-09-22)

@@ -2,0 +9,0 @@

@@ -1420,2 +1420,12 @@ 'use strict';

const CustomerPaymentSourcesConfig = {
type: 'customer_payment_sources',
attributes: ['name', 'customer_token', 'payment_source_token'],
relationships: {
customer: 'customers',
payment_source: 'payment_sources', // TODO: this is a polymorphic relation
},
};
const CustomerPaymentSources = createResource(CustomerPaymentSourcesConfig);
exports.Addresses = Addresses;

@@ -1427,2 +1437,3 @@ exports.Adjustments = Adjustments;

exports.CustomerPasswordResets = CustomerPasswordResets;
exports.CustomerPaymentSources = CustomerPaymentSources;
exports.Customers = Customers;

@@ -1429,0 +1440,0 @@ exports.DeliveryLeadTimes = DeliveryLeadTimes;

12

dist/commercelayer-sdk.esm.js

@@ -1412,2 +1412,12 @@ import axios from 'axios';

export { Addresses, Adjustments, Attachments, Auth, CustomerAddresses, CustomerPasswordResets, Customers, DeliveryLeadTimes, GiftCards, LineItems, Markets, OrderCopies, OrderSubscriptions, Orders, PaymentGateways, PaymentMethods, PriceLists, Prices, Refunds, ResourceError, Returns, Shipments, ShippingCategories, ShippingMethods, Skus, StripePayments, WireTransfers, initConfig as init };
const CustomerPaymentSourcesConfig = {
type: 'customer_payment_sources',
attributes: ['name', 'customer_token', 'payment_source_token'],
relationships: {
customer: 'customers',
payment_source: 'payment_sources', // TODO: this is a polymorphic relation
},
};
const CustomerPaymentSources = createResource(CustomerPaymentSourcesConfig);
export { Addresses, Adjustments, Attachments, Auth, CustomerAddresses, CustomerPasswordResets, CustomerPaymentSources, Customers, DeliveryLeadTimes, GiftCards, LineItems, Markets, OrderCopies, OrderSubscriptions, Orders, PaymentGateways, PaymentMethods, PriceLists, Prices, Refunds, ResourceError, Returns, Shipments, ShippingCategories, ShippingMethods, Skus, StripePayments, WireTransfers, initConfig as init };

@@ -29,2 +29,3 @@ export { initConfig as init } from './config';

export { OrderSubscriptions, OrderSubscriptionInstance, } from './resources/OrderSubscriptions';
export { CustomerPaymentSources, CustomerPaymentSourceInstance, } from './resources/CustomerPaymentSources';
//# sourceMappingURL=index.d.ts.map

6

dist/resources/Customers.d.ts

@@ -5,2 +5,4 @@ import { ResourceConfig, ConcreteResourceInstance, Resource } from '../resource';

import { ReturnInstance } from './Returns';
import { CustomerPaymentSourceInstance } from './CustomerPaymentSources';
import { CustomerAddressInstance } from './CustomerAddresses';
export interface CustomerAttributes {

@@ -14,4 +16,4 @@ email: string;

customer_group: any;
customer_addresses: any[];
customer_payment_sources: any[];
customer_addresses: CustomerAddressInstance[];
customer_payment_sources: CustomerPaymentSourceInstance[];
customer_subscriptions: any[];

@@ -18,0 +20,0 @@ orders: OrderInstance[];

{
"name": "@atoms-studio/commercelayer-sdk",
"version": "1.0.2",
"version": "1.1.0",
"repository": "git@github.com:atoms-studio/commercelayer-sdk.git",

@@ -5,0 +5,0 @@ "author": "atoms.studio",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc