@amazon-sp-api-release/amazon-sp-api-sdk-js 1.2.0 → 1.3.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.
@@ -0,0 +1,101 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The ItemRelatedIdentifier model module.
18
+ * @module finances_2024_06_19/model/ItemRelatedIdentifier
19
+ * @version 2024-06-19
20
+ */
21
+ export class ItemRelatedIdentifier {
22
+ /**
23
+ * Constructs a new <code>ItemRelatedIdentifier</code>.
24
+ * Related business identifiers of the item.
25
+ * @alias module:finances_2024_06_19/model/ItemRelatedIdentifier
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>ItemRelatedIdentifier</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/ItemRelatedIdentifier} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/ItemRelatedIdentifier} The populated <code>ItemRelatedIdentifier</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new ItemRelatedIdentifier()
52
+ if (data.hasOwnProperty('itemRelatedIdentifierName')) { obj.itemRelatedIdentifierName = ApiClient.convertToType(data.itemRelatedIdentifierName, 'String') }
53
+ if (data.hasOwnProperty('itemRelatedIdentifierValue')) { obj.itemRelatedIdentifierValue = ApiClient.convertToType(data.itemRelatedIdentifierValue, 'String') }
54
+ }
55
+ return obj
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Allowed values for the <code>itemRelatedIdentifierName</code> property.
61
+ * @enum {String}
62
+ * @readonly
63
+ */
64
+ ItemRelatedIdentifier.ItemRelatedIdentifierNameEnum = {
65
+
66
+ /**
67
+ * value: "ORDER_ADJUSTMENT_ITEM_ID"
68
+ * @const
69
+ */
70
+ ORDER_ADJUSTMENT_ITEM_ID: 'ORDER_ADJUSTMENT_ITEM_ID',
71
+
72
+ /**
73
+ * value: "COUPON_ID"
74
+ * @const
75
+ */
76
+ COUPON_ID: 'COUPON_ID',
77
+
78
+ /**
79
+ * value: "REMOVAL_SHIPMENT_ITEM_ID"
80
+ * @const
81
+ */
82
+ REMOVAL_SHIPMENT_ITEM_ID: 'REMOVAL_SHIPMENT_ITEM_ID',
83
+
84
+ /**
85
+ * value: "TRANSACTION_ID"
86
+ * @const
87
+ */
88
+ TRANSACTION_ID: 'TRANSACTION_ID'
89
+ }
90
+
91
+ /**
92
+ * Enumerated set of related item identifier names for the item.
93
+ * @member {module:finances_2024_06_19/model/ItemRelatedIdentifier.ItemRelatedIdentifierNameEnum} itemRelatedIdentifierName
94
+ */
95
+ ItemRelatedIdentifier.prototype.itemRelatedIdentifierName = undefined
96
+
97
+ /**
98
+ * Corresponding value of ItemRelatedIdentifierName
99
+ * @member {String} itemRelatedIdentifierValue
100
+ */
101
+ ItemRelatedIdentifier.prototype.itemRelatedIdentifierValue = undefined
@@ -0,0 +1,62 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+ import { TransactionsPayload } from './TransactionsPayload.js'
16
+
17
+ /**
18
+ * The ListTransactionsResponse model module.
19
+ * @module finances_2024_06_19/model/ListTransactionsResponse
20
+ * @version 2024-06-19
21
+ */
22
+ export class ListTransactionsResponse {
23
+ /**
24
+ * Constructs a new <code>ListTransactionsResponse</code>.
25
+ * The response schema for the &#x60;listTransactions&#x60; operation.
26
+ * @alias module:finances_2024_06_19/model/ListTransactionsResponse
27
+ * @class
28
+ */
29
+ constructor () {
30
+ }
31
+
32
+ /**
33
+ * Constructs a <code>ListTransactionsResponse</code> from a plain JavaScript object, optionally creating a new instance.
34
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
35
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
36
+ * @param {module:finances_2024_06_19/model/ListTransactionsResponse} obj Optional instance to populate.
37
+ * @return {module:finances_2024_06_19/model/ListTransactionsResponse} The populated <code>ListTransactionsResponse</code> instance.
38
+ */
39
+ static constructFromObject (data, obj) {
40
+ if (data) {
41
+ switch (typeof data) {
42
+ case 'string':
43
+ obj = String(data)
44
+ break
45
+ case 'number':
46
+ obj = Number(data)
47
+ break
48
+ case 'boolean':
49
+ obj = Boolean(data)
50
+ break
51
+ }
52
+ obj = obj || new ListTransactionsResponse()
53
+ if (data.hasOwnProperty('payload')) { obj.payload = TransactionsPayload.constructFromObject(data.payload) }
54
+ }
55
+ return obj
56
+ }
57
+ }
58
+
59
+ /**
60
+ * @member {module:finances_2024_06_19/model/TransactionsPayload} payload
61
+ */
62
+ ListTransactionsResponse.prototype.payload = undefined
@@ -0,0 +1,69 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The MarketplaceDetails model module.
18
+ * @module finances_2024_06_19/model/MarketplaceDetails
19
+ * @version 2024-06-19
20
+ */
21
+ export class MarketplaceDetails {
22
+ /**
23
+ * Constructs a new <code>MarketplaceDetails</code>.
24
+ * Information about the marketplace where the transaction occurred.
25
+ * @alias module:finances_2024_06_19/model/MarketplaceDetails
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>MarketplaceDetails</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/MarketplaceDetails} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/MarketplaceDetails} The populated <code>MarketplaceDetails</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new MarketplaceDetails()
52
+ if (data.hasOwnProperty('marketplaceId')) { obj.marketplaceId = ApiClient.convertToType(data.marketplaceId, 'String') }
53
+ if (data.hasOwnProperty('marketplaceName')) { obj.marketplaceName = ApiClient.convertToType(data.marketplaceName, 'String') }
54
+ }
55
+ return obj
56
+ }
57
+ }
58
+
59
+ /**
60
+ * The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
61
+ * @member {String} marketplaceId
62
+ */
63
+ MarketplaceDetails.prototype.marketplaceId = undefined
64
+
65
+ /**
66
+ * The name of the marketplace where the transaction occurred. Example: 'Amazon.com','Amazon.in'
67
+ * @member {String} marketplaceName
68
+ */
69
+ MarketplaceDetails.prototype.marketplaceName = undefined
@@ -0,0 +1,83 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The PaymentsContext model module.
18
+ * @module finances_2024_06_19/model/PaymentsContext
19
+ * @version 2024-06-19
20
+ */
21
+ export class PaymentsContext {
22
+ /**
23
+ * Constructs a new <code>PaymentsContext</code>.
24
+ * Additional information related to Payments related transactions.
25
+ * @alias module:finances_2024_06_19/model/PaymentsContext
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>PaymentsContext</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/PaymentsContext} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/PaymentsContext} The populated <code>PaymentsContext</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new PaymentsContext()
52
+ if (data.hasOwnProperty('paymentType')) { obj.paymentType = ApiClient.convertToType(data.paymentType, 'String') }
53
+ if (data.hasOwnProperty('paymentMethod')) { obj.paymentMethod = ApiClient.convertToType(data.paymentMethod, 'String') }
54
+ if (data.hasOwnProperty('paymentReference')) { obj.paymentReference = ApiClient.convertToType(data.paymentReference, 'String') }
55
+ if (data.hasOwnProperty('paymentDate')) { obj.paymentDate = ApiClient.convertToType(data.paymentDate, 'Date') }
56
+ }
57
+ return obj
58
+ }
59
+ }
60
+
61
+ /**
62
+ * Type of payment made.
63
+ * @member {String} paymentType
64
+ */
65
+ PaymentsContext.prototype.paymentType = undefined
66
+
67
+ /**
68
+ * Method of payment made.
69
+ * @member {String} paymentMethod
70
+ */
71
+ PaymentsContext.prototype.paymentMethod = undefined
72
+
73
+ /**
74
+ * Reference number of payment made.
75
+ * @member {String} paymentReference
76
+ */
77
+ PaymentsContext.prototype.paymentReference = undefined
78
+
79
+ /**
80
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
81
+ * @member {Date} paymentDate
82
+ */
83
+ PaymentsContext.prototype.paymentDate = undefined
@@ -0,0 +1,83 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The ProductContext model module.
18
+ * @module finances_2024_06_19/model/ProductContext
19
+ * @version 2024-06-19
20
+ */
21
+ export class ProductContext {
22
+ /**
23
+ * Constructs a new <code>ProductContext</code>.
24
+ * Additional information related to the product.
25
+ * @alias module:finances_2024_06_19/model/ProductContext
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>ProductContext</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/ProductContext} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/ProductContext} The populated <code>ProductContext</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new ProductContext()
52
+ if (data.hasOwnProperty('asin')) { obj.asin = ApiClient.convertToType(data.asin, 'String') }
53
+ if (data.hasOwnProperty('sku')) { obj.sku = ApiClient.convertToType(data.sku, 'String') }
54
+ if (data.hasOwnProperty('quantityShipped')) { obj.quantityShipped = ApiClient.convertToType(data.quantityShipped, 'Number') }
55
+ if (data.hasOwnProperty('fulfillmentNetwork')) { obj.fulfillmentNetwork = ApiClient.convertToType(data.fulfillmentNetwork, 'String') }
56
+ }
57
+ return obj
58
+ }
59
+ }
60
+
61
+ /**
62
+ * Amazon Standard Identification Number (ASIN) of the item.
63
+ * @member {String} asin
64
+ */
65
+ ProductContext.prototype.asin = undefined
66
+
67
+ /**
68
+ * Stock keeping unit (SKU) of the item.
69
+ * @member {String} sku
70
+ */
71
+ ProductContext.prototype.sku = undefined
72
+
73
+ /**
74
+ * Quantity of the item shipped.
75
+ * @member {Number} quantityShipped
76
+ */
77
+ ProductContext.prototype.quantityShipped = undefined
78
+
79
+ /**
80
+ * Fulfillment network of the item.
81
+ * @member {String} fulfillmentNetwork
82
+ */
83
+ ProductContext.prototype.fulfillmentNetwork = undefined
@@ -0,0 +1,137 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The RelatedIdentifier model module.
18
+ * @module finances_2024_06_19/model/RelatedIdentifier
19
+ * @version 2024-06-19
20
+ */
21
+ export class RelatedIdentifier {
22
+ /**
23
+ * Constructs a new <code>RelatedIdentifier</code>.
24
+ * Related business identifier of the transaction.
25
+ * @alias module:finances_2024_06_19/model/RelatedIdentifier
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>RelatedIdentifier</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/RelatedIdentifier} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/RelatedIdentifier} The populated <code>RelatedIdentifier</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new RelatedIdentifier()
52
+ if (data.hasOwnProperty('relatedIdentifierName')) { obj.relatedIdentifierName = ApiClient.convertToType(data.relatedIdentifierName, 'String') }
53
+ if (data.hasOwnProperty('relatedIdentifierValue')) { obj.relatedIdentifierValue = ApiClient.convertToType(data.relatedIdentifierValue, 'String') }
54
+ }
55
+ return obj
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Allowed values for the <code>relatedIdentifierName</code> property.
61
+ * @enum {String}
62
+ * @readonly
63
+ */
64
+ RelatedIdentifier.RelatedIdentifierNameEnum = {
65
+
66
+ /**
67
+ * value: "ORDER_ID"
68
+ * @const
69
+ */
70
+ ORDER_ID: 'ORDER_ID',
71
+
72
+ /**
73
+ * value: "SHIPMENT_ID"
74
+ * @const
75
+ */
76
+ SHIPMENT_ID: 'SHIPMENT_ID',
77
+
78
+ /**
79
+ * value: "FINANCIAL_EVENT_GROUP_ID"
80
+ * @const
81
+ */
82
+ FINANCIAL_EVENT_GROUP_ID: 'FINANCIAL_EVENT_GROUP_ID',
83
+
84
+ /**
85
+ * value: "REFUND_ID"
86
+ * @const
87
+ */
88
+ REFUND_ID: 'REFUND_ID',
89
+
90
+ /**
91
+ * value: "INVOICE_ID"
92
+ * @const
93
+ */
94
+ INVOICE_ID: 'INVOICE_ID',
95
+
96
+ /**
97
+ * value: "DISBURSEMENT_ID"
98
+ * @const
99
+ */
100
+ DISBURSEMENT_ID: 'DISBURSEMENT_ID',
101
+
102
+ /**
103
+ * value: "TRANSFER_ID"
104
+ * @const
105
+ */
106
+ TRANSFER_ID: 'TRANSFER_ID',
107
+
108
+ /**
109
+ * value: "DEFERRED_TRANSACTION_ID"
110
+ * @const
111
+ */
112
+ DEFERRED_TRANSACTION_ID: 'DEFERRED_TRANSACTION_ID',
113
+
114
+ /**
115
+ * value: "RELEASE_TRANSACTION_ID"
116
+ * @const
117
+ */
118
+ RELEASE_TRANSACTION_ID: 'RELEASE_TRANSACTION_ID',
119
+
120
+ /**
121
+ * value: "SETTLEMENT_ID"
122
+ * @const
123
+ */
124
+ SETTLEMENT_ID: 'SETTLEMENT_ID'
125
+ }
126
+
127
+ /**
128
+ * Enumerated set of related business identifier names.
129
+ * @member {module:finances_2024_06_19/model/RelatedIdentifier.RelatedIdentifierNameEnum} relatedIdentifierName
130
+ */
131
+ RelatedIdentifier.prototype.relatedIdentifierName = undefined
132
+
133
+ /**
134
+ * Corresponding value of RelatedIdentifierName
135
+ * @member {String} relatedIdentifierValue
136
+ */
137
+ RelatedIdentifier.prototype.relatedIdentifierValue = undefined
@@ -0,0 +1,76 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The SellingPartnerMetadata model module.
18
+ * @module finances_2024_06_19/model/SellingPartnerMetadata
19
+ * @version 2024-06-19
20
+ */
21
+ export class SellingPartnerMetadata {
22
+ /**
23
+ * Constructs a new <code>SellingPartnerMetadata</code>.
24
+ * Metadata describing the seller.
25
+ * @alias module:finances_2024_06_19/model/SellingPartnerMetadata
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>SellingPartnerMetadata</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/SellingPartnerMetadata} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/SellingPartnerMetadata} The populated <code>SellingPartnerMetadata</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new SellingPartnerMetadata()
52
+ if (data.hasOwnProperty('sellingPartnerId')) { obj.sellingPartnerId = ApiClient.convertToType(data.sellingPartnerId, 'String') }
53
+ if (data.hasOwnProperty('accountType')) { obj.accountType = ApiClient.convertToType(data.accountType, 'String') }
54
+ if (data.hasOwnProperty('marketplaceId')) { obj.marketplaceId = ApiClient.convertToType(data.marketplaceId, 'String') }
55
+ }
56
+ return obj
57
+ }
58
+ }
59
+
60
+ /**
61
+ * Unique seller identifier.
62
+ * @member {String} sellingPartnerId
63
+ */
64
+ SellingPartnerMetadata.prototype.sellingPartnerId = undefined
65
+
66
+ /**
67
+ * Account type of transaction.
68
+ * @member {String} accountType
69
+ */
70
+ SellingPartnerMetadata.prototype.accountType = undefined
71
+
72
+ /**
73
+ * The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
74
+ * @member {String} marketplaceId
75
+ */
76
+ SellingPartnerMetadata.prototype.marketplaceId = undefined
@@ -0,0 +1,69 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The TimeRangeContext model module.
18
+ * @module finances_2024_06_19/model/TimeRangeContext
19
+ * @version 2024-06-19
20
+ */
21
+ export class TimeRangeContext {
22
+ /**
23
+ * Constructs a new <code>TimeRangeContext</code>.
24
+ * Additional information related to time range for transaction.
25
+ * @alias module:finances_2024_06_19/model/TimeRangeContext
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>TimeRangeContext</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/TimeRangeContext} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/TimeRangeContext} The populated <code>TimeRangeContext</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new TimeRangeContext()
52
+ if (data.hasOwnProperty('startTime')) { obj.startTime = ApiClient.convertToType(data.startTime, 'Date') }
53
+ if (data.hasOwnProperty('endTime')) { obj.endTime = ApiClient.convertToType(data.endTime, 'Date') }
54
+ }
55
+ return obj
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
61
+ * @member {Date} startTime
62
+ */
63
+ TimeRangeContext.prototype.startTime = undefined
64
+
65
+ /**
66
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
67
+ * @member {Date} endTime
68
+ */
69
+ TimeRangeContext.prototype.endTime = undefined