-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13652 from woocommerce/issue/connect-customs-form…
…-with-creation-form [Shipping Labels Revamp] Connect customs form with creation form
- Loading branch information
Showing
12 changed files
with
177 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...lin/com/woocommerce/android/ui/orders/wooshippinglabels/customs/WooShippingCustomsForm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.woocommerce.android.ui.orders.wooshippinglabels.customs | ||
|
||
import android.os.Parcelable | ||
import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.ContentType | ||
import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.RestrictionType | ||
import kotlinx.parcelize.Parcelize | ||
import java.math.BigDecimal | ||
|
||
@Parcelize | ||
data class CustomsData( | ||
val packageId: String, | ||
val packageName: String, | ||
val contentType: ContentType, | ||
val contentDescription: String, | ||
val restrictionType: RestrictionType, | ||
val restrictionDescription: String, | ||
val noDeliveryOption: Boolean, | ||
val itn: String, | ||
val items: List<CustomsItem> | ||
) : Parcelable | ||
|
||
@Parcelize | ||
data class CustomsItem( | ||
val productID: Long, | ||
val description: String, | ||
val quantity: Float, | ||
val value: BigDecimal, | ||
val weight: Float, | ||
val hsTariffNumber: String, | ||
val originCountry: String | ||
) : Parcelable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.