@tolinax/ayoune-interfaces 2024.2.13 → 2024.2.14

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.
@@ -7,6 +7,88 @@ import { IRequirement } from "./IRequirement";
7
7
  import { IComment } from "./IComment";
8
8
  import { IWarning } from "./IWarning";
9
9
  import { IFreeFields } from "./IFreeFields";
10
+ interface IContractPayPalPlanFixedPrice {
11
+ value: string;
12
+ currency_code: string;
13
+ }
14
+ interface IContractPayPalPlanPricingScheme {
15
+ fixed_price: IContractPayPalPlanFixedPrice;
16
+ }
17
+ interface IContractPayPalPlanFrequency {
18
+ interval_unit: string;
19
+ interval_count: number;
20
+ }
21
+ interface IContractPayPalPlanBillingCycles {
22
+ frequency: IContractPayPalPlanFrequency;
23
+ tenure_type: string;
24
+ sequence?: number;
25
+ total_cycles?: number;
26
+ pricing_scheme: IContractPayPalPlanPricingScheme;
27
+ }
28
+ interface IContractPayPalPlanSetupFee {
29
+ value: number;
30
+ currency_code: string;
31
+ }
32
+ interface IContractPayPalPlanPaymentPreferences {
33
+ service_type: string;
34
+ auto_bill_outstanding: boolean;
35
+ setup_fee: IContractPayPalPlanSetupFee;
36
+ setup_fee_failure_action: string;
37
+ payment_failure_threshold: number;
38
+ }
39
+ interface IContractPayPalPlanTaxes {
40
+ percentage: number;
41
+ inclusive: boolean;
42
+ }
43
+ interface IContractPayPalPlan {
44
+ paypalAccount: string;
45
+ plan_id: string;
46
+ product_id: string;
47
+ name: string;
48
+ description: string;
49
+ status: string;
50
+ usage_type: string;
51
+ billing_cycles: IContractPayPalPlanBillingCycles[];
52
+ payment_preferences: IContractPayPalPlanPaymentPreferences;
53
+ taxes: IContractPayPalPlanTaxes;
54
+ quantity_supported: boolean;
55
+ }
56
+ interface IContractPaypalSubscription {
57
+ paypalAccount?: string;
58
+ sub_id?: string;
59
+ status?: string;
60
+ status_update_time?: Date;
61
+ plan_id?: string;
62
+ start_time?: Date;
63
+ quantity?: string;
64
+ shipping_amount?: {
65
+ currency_code?: string;
66
+ value?: string;
67
+ };
68
+ subscriber?: {
69
+ name?: {
70
+ given_name?: string;
71
+ surname?: string;
72
+ };
73
+ email_address?: string;
74
+ shipping_address?: {
75
+ name?: {
76
+ full_name?: string;
77
+ };
78
+ address?: {
79
+ address_line_1?: string;
80
+ address_line_2?: string;
81
+ admin_area_2?: string;
82
+ admin_area_1?: string;
83
+ postal_code?: string;
84
+ country_code?: string;
85
+ };
86
+ };
87
+ };
88
+ auto_renewal?: boolean;
89
+ create_time?: Date;
90
+ links?: any[];
91
+ }
10
92
  export interface IContract extends IDefaultFields, IFreeFields {
11
93
  shortID: string;
12
94
  _customerID: ObjectId;
@@ -112,8 +194,8 @@ export interface IContract extends IDefaultFields, IFreeFields {
112
194
  total_part: number;
113
195
  external_monthly_part: number;
114
196
  external_total_part: number;
115
- paypalPlan: any;
116
- paypalSubscription: any;
197
+ paypalPlan: IContractPayPalPlan;
198
+ paypalSubscription: IContractPaypalSubscription;
117
199
  locale: string;
118
200
  currency: string;
119
201
  foreignCountry: boolean;
@@ -124,3 +206,4 @@ export interface IContract extends IDefaultFields, IFreeFields {
124
206
  requirements: IRequirement[];
125
207
  warnings: IWarning[];
126
208
  }
209
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2024.2.13",
3
+ "version": "2024.2.14",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",