@scaleway/sdk-billing 2.7.1 → 2.8.0

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.
@@ -57,8 +57,10 @@ const unmarshalCharge = (data) => {
57
57
  endDate: unmarshalDate(data.end_date),
58
58
  invoiceId: data.invoice_id,
59
59
  organizationId: data.organization_id,
60
+ organizationName: data.organization_name,
60
61
  price: data.price ? unmarshalMoney(data.price) : void 0,
61
62
  projectId: data.project_id,
63
+ projectName: data.project_name,
62
64
  resourceId: data.resource_id,
63
65
  resourceName: data.resource_name,
64
66
  sku: data.sku,
@@ -4,7 +4,7 @@ export type DiscountFilterType = 'unknown_type' | 'category_name' | 'product_nam
4
4
  export type DownloadInvoiceRequestFileType = 'pdf';
5
5
  export type ExportInvoicesRequestFileType = 'csv';
6
6
  export type ExportInvoicesRequestOrderBy = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
7
- export type InvoiceType = 'unknown_type' | 'periodic' | 'purchase';
7
+ export type InvoiceType = 'unknown_type' | 'periodic' | 'purchase' | 'credit_note';
8
8
  export type ListChargesRequestOrderBy = 'start_date_asc' | 'start_date_desc';
9
9
  export type ListConsumptionsRequestOrderBy = 'updated_at_desc' | 'updated_at_asc' | 'category_name_desc' | 'category_name_asc';
10
10
  export type ListDiscountsRequestOrderBy = 'creation_date_desc' | 'creation_date_asc' | 'start_date_desc' | 'start_date_asc' | 'stop_date_desc' | 'stop_date_asc';
@@ -35,10 +35,18 @@ export interface Charge {
35
35
  * ID of the charged organization.
36
36
  */
37
37
  organizationId: string;
38
+ /**
39
+ * Name of the charged organization.
40
+ */
41
+ organizationName: string;
38
42
  /**
39
43
  * ID of the charged project.
40
44
  */
41
45
  projectId: string;
46
+ /**
47
+ * Name of the charged project.
48
+ */
49
+ projectName: string;
42
50
  /**
43
51
  * ID of the SKU the charge is priced with.
44
52
  */
@@ -263,7 +271,7 @@ export type ExportInvoicesRequest = {
263
271
  */
264
272
  billingPeriodStartBefore?: Date;
265
273
  /**
266
- * Invoice type. It can either be `periodic` or `purchase`.
274
+ * Invoice type. It can either be `periodic`, `purchase` or `credit_note`.
267
275
  */
268
276
  invoiceType?: InvoiceType;
269
277
  /**
@@ -443,7 +451,7 @@ export type ListInvoicesRequest = {
443
451
  */
444
452
  billingPeriodStartBefore?: Date;
445
453
  /**
446
- * Invoice type. It can either be `periodic` or `purchase`.
454
+ * Invoice type. It can either be `periodic`, `purchase` or `credit_note`.
447
455
  */
448
456
  invoiceType?: InvoiceType;
449
457
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-billing",
3
- "version": "2.7.1",
3
+ "version": "2.8.0",
4
4
  "description": "Scaleway SDK billing",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -35,8 +35,8 @@
35
35
  "@scaleway/sdk-std": "2.4.3"
36
36
  },
37
37
  "devDependencies": {
38
- "@repo/configs": "^0.1.1",
39
- "@scaleway/sdk-client": "^2.4.1"
38
+ "@scaleway/sdk-client": "^2.4.1",
39
+ "@repo/configs": "^0.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@scaleway/sdk-client": "^2.4.1"