Skip to content

Commit

Permalink
[Auto Generated] 1.4.2-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Feb 2, 2024
1 parent 09ba123 commit 3251c30
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 37 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,20 @@
#### getZones

- ##### What's New
- [Breaking] [Added] properties `page.has_next`, `page.item_total`, `page.size`, `page.current`, `page.type` in response with status code 200
- [Breaking] [Added] Required status to properties `page.current`, `page.has_next`, `page.item_total`, `page.size`, `page.type` in response with status code 200
- [Added] property `items[].channels[]` of schema `ListViewItems` in response with status code 200

- ##### What's Deprecated
- [Breaking] [Deleted] property `page[]` of schema `ListViewResponse` in response with status code 200
- [Breaking] [Deleted] property `items[].product` of schema `ListViewItems` in response with status code 200
- [Deleted] properties `items[].channels.channel_id`, `items[].channels.channel_type` in response with status code 200
- [Deleted] Required status from properties `items[].channels.channel_id`, `items[].channels.channel_type` in response with status code 200
- [Deleted] Required status from property `items[].product` in response with status code 200
- [Deleted] Required status from property `summary` in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] Type from `array` to `object` of property `page` of schema `ListViewResponse` in response with status code 200
- [Breaking] [Changed] Type from `object` to `array` of property `items[].channels` of schema `ListViewChannels` in response with status code 200


Expand Down Expand Up @@ -139,6 +146,25 @@
- [Breaking] [Changed] Type from `number` to `string` of property `data.items[].shipment_gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200


### Payment



#### updatePaymentSession

- ##### What's New
- [Added] property `checksum` of schema `PaymentSessionRequestSerializer` in request body
- [Breaking] [Added] Required status to property `checksum` in request body


#### updateRefundSession

- ##### What's New
- [Added] property `checksum` of schema `RefundSessionRequestSerializer` in request body
- [Breaking] [Added] Required status to property `total_amount` in request body
- [Breaking] [Added] Required status to property `checksum` in request body


# CHANGE LOG (1.4.1) - fp-v1.9.0

## Application Client
Expand Down
2 changes: 1 addition & 1 deletion dist/application.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion documentation/platform/PAYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8423,6 +8423,7 @@ Bank details on correct Ifsc Code

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| checksum | string | no | Checksum to verify the payload |
| currency | string | no | currency of the payment. |
| gid | string | no | Global identifier of the entity (e.g. order, cart etc.) against which payment_session was initiated. This is generated by Fynd payments platform and is unique. |
| meta | string? | yes | meta |
Expand Down Expand Up @@ -8766,13 +8767,14 @@ Bank details on correct Ifsc Code

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| checksum | string | no | Checksum to verify payload |
| currency | string | no | The currency of the payment. |
| error | [ErrorDescription](#ErrorDescription)? | yes | |
| gid | string | no | Global identifier of the entity (e.g. order, cart etc.) against which payment_session was initiated. This is generated by Fynd payments platform and is unique. |
| message | string? | yes | The status of the refund. |
| meta | string? | yes | meta |
| payment_details | [PaymentSessionDetail](#PaymentSessionDetail) | no | details of the payment |
| refund_details | [[RefundSessionDetail](#RefundSessionDetail)]? | yes | details of the refund |
| refund_details | [[RefundSessionDetail](#RefundSessionDetail)] | no | details of the refund |
| status | string | no | The status of the refund. |
| total_amount | number | no | The total amount refunded. |

Expand Down
9 changes: 2 additions & 7 deletions documentation/platform/SERVICEABILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2094,11 +2094,7 @@ Zone List of application in descending order of their last modified date.
],
"zone_id": "64c3a0926ea670363c8e2e3d",
"stores_count": 2,
"regions_count": 4242,
"product": {
"count": 0,
"type": "all"
}
"regions_count": 4242
}
],
"page": {
Expand Down Expand Up @@ -3920,7 +3916,6 @@ Response status_code
| company_id | number | no | |
| is_active | boolean | no | |
| name | string | no | |
| product | [ListViewProduct](#ListViewProduct) | no | |
| regions_count | number | no | |
| slug | string | no | |
| stores_count | number | no | |
Expand All @@ -3944,7 +3939,7 @@ Response status_code
| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| items | [[ListViewItems](#ListViewItems)] | no | |
| page | [[ZoneDataItem](#ZoneDataItem)] | no | |
| page | [ZoneDataItem](#ZoneDataItem) | no | |


---
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions sdk/platform/Payment/PaymentPlatformModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ export = PaymentPlatformModel;
* @property {PaymentSessionDetail[]} payment_details - The payment details with
* the schema `PaymentSessionDetail`.
* @property {number} total_amount - Amount paid.
* @property {string} checksum - Checksum to verify the payload
*/
/**
* @typedef PaymentSessionResponseSerializer
Expand Down Expand Up @@ -934,9 +935,10 @@ export = PaymentPlatformModel;
* @property {string} currency - The currency of the payment.
* @property {PaymentSessionDetail} payment_details - Details of the payment
* @property {number} total_amount - The total amount refunded.
* @property {RefundSessionDetail[]} [refund_details] - Details of the refund
* @property {RefundSessionDetail[]} refund_details - Details of the refund
* @property {ErrorDescription} [error]
* @property {string} [message] - The status of the refund.
* @property {string} checksum - Checksum to verify payload
*/
/**
* @typedef RefundSessionResponseSerializer
Expand Down Expand Up @@ -3516,6 +3518,10 @@ type PaymentSessionRequestSerializer = {
* - Amount paid.
*/
total_amount: number;
/**
* - Checksum to verify the payload
*/
checksum: string;
};
/** @returns {PaymentSessionResponseSerializer} */
declare function PaymentSessionResponseSerializer(): PaymentSessionResponseSerializer;
Expand Down Expand Up @@ -3629,12 +3635,16 @@ type RefundSessionRequestSerializer = {
/**
* - Details of the refund
*/
refund_details?: RefundSessionDetail[];
refund_details: RefundSessionDetail[];
error?: ErrorDescription;
/**
* - The status of the refund.
*/
message?: string;
/**
* - Checksum to verify payload
*/
checksum: string;
};
/** @returns {RefundSessionResponseSerializer} */
declare function RefundSessionResponseSerializer(): RefundSessionResponseSerializer;
Expand Down
12 changes: 8 additions & 4 deletions sdk/platform/Payment/PaymentPlatformModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ const Joi = require("joi");
* @property {PaymentSessionDetail[]} payment_details - The payment details with
* the schema `PaymentSessionDetail`.
* @property {number} total_amount - Amount paid.
* @property {string} checksum - Checksum to verify the payload
*/

/**
Expand Down Expand Up @@ -1043,9 +1044,10 @@ const Joi = require("joi");
* @property {string} currency - The currency of the payment.
* @property {PaymentSessionDetail} payment_details - Details of the payment
* @property {number} total_amount - The total amount refunded.
* @property {RefundSessionDetail[]} [refund_details] - Details of the refund
* @property {RefundSessionDetail[]} refund_details - Details of the refund
* @property {ErrorDescription} [error]
* @property {string} [message] - The status of the refund.
* @property {string} checksum - Checksum to verify payload
*/

/**
Expand Down Expand Up @@ -2512,6 +2514,7 @@ class PaymentPlatformModel {
.items(PaymentPlatformModel.PaymentSessionDetail())
.required(),
total_amount: Joi.number().required(),
checksum: Joi.string().allow("").required(),
});
}

Expand Down Expand Up @@ -2553,11 +2556,12 @@ class PaymentPlatformModel {
currency: Joi.string().allow("").required(),
payment_details: PaymentPlatformModel.PaymentSessionDetail().required(),
total_amount: Joi.number().required(),
refund_details: Joi.array().items(
PaymentPlatformModel.RefundSessionDetail()
),
refund_details: Joi.array()
.items(PaymentPlatformModel.RefundSessionDetail())
.required(),
error: PaymentPlatformModel.ErrorDescription(),
message: Joi.string().allow(""),
checksum: Joi.string().allow("").required(),
});
}

Expand Down
6 changes: 2 additions & 4 deletions sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,13 @@ export = ServiceabilityPlatformModel;
* @property {string} slug
* @property {number} stores_count
* @property {boolean} is_active
* @property {ListViewProduct} product
* @property {number} regions_count
* @property {number} company_id
* @property {ListViewChannels[]} channels
*/
/**
* @typedef ListViewResponse
* @property {ZoneDataItem[]} page
* @property {ZoneDataItem} page
* @property {ListViewItems[]} items
*/
/**
Expand Down Expand Up @@ -1057,15 +1056,14 @@ type ListViewItems = {
slug: string;
stores_count: number;
is_active: boolean;
product: ListViewProduct;
regions_count: number;
company_id: number;
channels: ListViewChannels[];
};
/** @returns {ListViewResponse} */
declare function ListViewResponse(): ListViewResponse;
type ListViewResponse = {
page: ZoneDataItem[];
page: ZoneDataItem;
items: ListViewItems[];
};
/** @returns {CompanyStoreView_PageItems} */
Expand Down
8 changes: 2 additions & 6 deletions sdk/platform/Serviceability/ServiceabilityPlatformModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,14 @@ const Joi = require("joi");
* @property {string} slug
* @property {number} stores_count
* @property {boolean} is_active
* @property {ListViewProduct} product
* @property {number} regions_count
* @property {number} company_id
* @property {ListViewChannels[]} channels
*/

/**
* @typedef ListViewResponse
* @property {ZoneDataItem[]} page
* @property {ZoneDataItem} page
* @property {ListViewItems[]} items
*/

Expand Down Expand Up @@ -1214,7 +1213,6 @@ class ServiceabilityPlatformModel {
slug: Joi.string().allow("").required(),
stores_count: Joi.number().required(),
is_active: Joi.boolean().required(),
product: ServiceabilityPlatformModel.ListViewProduct().required(),
regions_count: Joi.number().required(),
company_id: Joi.number().required(),
channels: Joi.array()
Expand All @@ -1226,9 +1224,7 @@ class ServiceabilityPlatformModel {
/** @returns {ListViewResponse} */
static ListViewResponse() {
return Joi.object({
page: Joi.array()
.items(ServiceabilityPlatformModel.ZoneDataItem())
.required(),
page: ServiceabilityPlatformModel.ZoneDataItem().required(),
items: Joi.array()
.items(ServiceabilityPlatformModel.ListViewItems())
.required(),
Expand Down

0 comments on commit 3251c30

Please sign in to comment.