@blocklet/payment-types 1.18.20 → 1.18.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/customer.d.ts +16 -0
  2. package/package.json +2 -2
package/lib/customer.d.ts CHANGED
@@ -142,5 +142,21 @@ export declare class Customer extends Model<InferAttributes<Customer>, InferCrea
142
142
  static associate(models: any): void;
143
143
  static findByPkOrDid(id: string, options?: FindOptions<Customer>): Promise<Customer | null>;
144
144
  static getInvoicePrefix(): string;
145
+ static formatAddressFromUser(user: any): {
146
+ country: any;
147
+ state: any;
148
+ city: any;
149
+ line1: any;
150
+ line2: any;
151
+ postal_code: any;
152
+ };
153
+ static formatAddressFromCustomer(customer: Customer): {
154
+ country: string;
155
+ province: string;
156
+ city: string;
157
+ line1: string;
158
+ line2: string;
159
+ postalCode: string;
160
+ };
145
161
  }
146
162
  export type TCustomer = InferAttributes<Customer>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-types",
3
- "version": "1.18.20",
3
+ "version": "1.18.21",
4
4
  "description": "Typings for Payment Kit SDK",
5
5
  "keywords": [
6
6
  "types",
@@ -48,5 +48,5 @@
48
48
  "sequelize": "^6.37.3",
49
49
  "type-fest": "^4.23.0"
50
50
  },
51
- "gitHead": "f71a0013f704d58e4c04ebfcc5a35480a0942bcc"
51
+ "gitHead": "cf08902482dded20ee91402ed6d4678383965daf"
52
52
  }