Skip to content

Commit

Permalink
[Auto Generated] 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Jan 14, 2025
1 parent 47c049c commit 96a60f0
Show file tree
Hide file tree
Showing 8 changed files with 329 additions and 7 deletions.
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@



### Cart



#### checkoutCart

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>CartCheckoutDetailCreation</code> in request body


#### checkoutCartV2

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>CartCheckoutDetailV2Creation</code> in request body


### Logistic


Expand All @@ -15,6 +31,17 @@



#### getCountry

- ##### What's New
- [Added] Possible nullable value <code>true</code> to property <code>fields.address[].input</code> of schema <code>GetCountryFieldsAddress</code> in response with status code 200
- [Breaking] [Added] Possible values <code>list,textbox</code> to property <code>fields.address[].input</code> of schema <code>GetCountryFieldsAddress</code> in response with status code 200
- [Added] property <code>fields.address[].next</code> of schema <code>GetCountryFieldsAddress</code> in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] <code>fields.address[].input</code> made optional in response with status code 200


## Platform Client


Expand All @@ -32,6 +59,22 @@
- [Deleted] Required status to Request body content


### Cart



#### platformCheckoutCart

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>PlatformCartCheckoutDetailCreation</code> in request body


#### platformCheckoutCartV2

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>PlatformCartCheckoutDetailV2Creation</code> in request body


### Content


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public extension ApplicationClient.Cart {

public var failureCallbackUrl: String?

public var orderTags: [OrderTag]?


public enum CodingKeys: String, CodingKey {

Expand Down Expand Up @@ -115,9 +117,11 @@ public extension ApplicationClient.Cart {

case failureCallbackUrl = "failure_callback_url"

case orderTags = "order_tags"

}

public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, failureCallbackUrl: String? = nil, id: String? = nil, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentExtraIdentifiers: [String: Any]? = nil, paymentIdentifier: String? = nil, paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil, successCallbackUrl: String? = nil, type: String? = nil) {
public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, failureCallbackUrl: String? = nil, id: String? = nil, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderTags: [OrderTag]? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentExtraIdentifiers: [String: Any]? = nil, paymentIdentifier: String? = nil, paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil, successCallbackUrl: String? = nil, type: String? = nil) {

self.customMeta = customMeta

Expand Down Expand Up @@ -171,6 +175,8 @@ public extension ApplicationClient.Cart {

self.failureCallbackUrl = failureCallbackUrl

self.orderTags = orderTags

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -481,6 +487,18 @@ public extension ApplicationClient.Cart {
}



do {
orderTags = try container.decode([OrderTag].self, forKey: .orderTags)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}


}

public func encode(to encoder: Encoder) throws {
Expand Down Expand Up @@ -590,6 +608,10 @@ public extension ApplicationClient.Cart {
try? container.encodeIfPresent(failureCallbackUrl, forKey: .failureCallbackUrl)



try? container.encodeIfPresent(orderTags, forKey: .orderTags)


}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public extension ApplicationClient.Cart {

public var failureCallbackUrl: String?

public var orderTags: [OrderTag]?


public enum CodingKeys: String, CodingKey {

Expand Down Expand Up @@ -119,9 +121,11 @@ public extension ApplicationClient.Cart {

case failureCallbackUrl = "failure_callback_url"

case orderTags = "order_tags"

}

public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, cartId: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, failureCallbackUrl: String? = nil, id: String? = nil, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentIdentifier: String? = nil, paymentMethods: [PaymentMethod], paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil, successCallbackUrl: String? = nil, type: String? = nil) {
public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, cartId: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, failureCallbackUrl: String? = nil, id: String? = nil, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderTags: [OrderTag]? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentIdentifier: String? = nil, paymentMethods: [PaymentMethod], paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil, successCallbackUrl: String? = nil, type: String? = nil) {

self.customMeta = customMeta

Expand Down Expand Up @@ -177,6 +181,8 @@ public extension ApplicationClient.Cart {

self.failureCallbackUrl = failureCallbackUrl

self.orderTags = orderTags

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -492,6 +498,18 @@ public extension ApplicationClient.Cart {
}



do {
orderTags = try container.decode([OrderTag].self, forKey: .orderTags)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}


}

public func encode(to encoder: Encoder) throws {
Expand Down Expand Up @@ -605,6 +623,10 @@ public extension ApplicationClient.Cart {
try? container.encodeIfPresent(failureCallbackUrl, forKey: .failureCallbackUrl)



try? container.encodeIfPresent(orderTags, forKey: .orderTags)


}

}
Expand Down
75 changes: 75 additions & 0 deletions Sources/code/application/Models/Cart/OrderTagCartAppModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@


import Foundation
public extension ApplicationClient.Cart {
/*
Model: OrderTag
Used By: Cart
*/
class OrderTag: Codable {

public var displayText: String?

public var slug: String?


public enum CodingKeys: String, CodingKey {

case displayText = "display_text"

case slug = "slug"

}

public init(displayText: String? = nil, slug: String? = nil) {

self.displayText = displayText

self.slug = slug

}

required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)


do {
displayText = try container.decode(String.self, forKey: .displayText)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}



do {
slug = try container.decode(String.self, forKey: .slug)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}


}

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)


try? container.encodeIfPresent(displayText, forKey: .displayText)



try? container.encodeIfPresent(slug, forKey: .slug)


}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ public extension ApplicationClient.Logistic {

public var displayName: String

public var next: String?

public var slug: String

public var required: Bool

public var edit: Bool?

public var input: String
public var input: String?

public var validation: FieldValidation?

Expand All @@ -29,6 +31,8 @@ public extension ApplicationClient.Logistic {

case displayName = "display_name"

case next = "next"

case slug = "slug"

case required = "required"
Expand All @@ -45,10 +49,12 @@ public extension ApplicationClient.Logistic {

}

public init(displayName: String, edit: Bool? = nil, errorText: String? = nil, input: String, required: Bool, slug: String, validation: FieldValidation? = nil, values: GetCountryFieldsAddressValues? = nil) {
public init(displayName: String, edit: Bool? = nil, errorText: String? = nil, input: String? = nil, next: String? = nil, required: Bool, slug: String, validation: FieldValidation? = nil, values: GetCountryFieldsAddressValues? = nil) {

self.displayName = displayName

self.next = next

self.slug = slug

self.required = required
Expand All @@ -74,6 +80,18 @@ public extension ApplicationClient.Logistic {



do {
next = try container.decode(String.self, forKey: .next)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}



slug = try container.decode(String.self, forKey: .slug)


Expand All @@ -96,8 +114,15 @@ public extension ApplicationClient.Logistic {



input = try container.decode(String.self, forKey: .input)
do {
input = try container.decode(String.self, forKey: .input)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}



Expand Down Expand Up @@ -146,6 +171,10 @@ public extension ApplicationClient.Logistic {



try? container.encodeIfPresent(next, forKey: .next)



try? container.encodeIfPresent(slug, forKey: .slug)


Expand Down
Loading

0 comments on commit 96a60f0

Please sign in to comment.